fuzzy systems
play

Fuzzy Systems Christian Jacob jacob@cpsc.ucalgary.ca - PDF document

Fuzzy Systems in Knowledge Engineering Chapter 4 Fuzzy Systems Christian Jacob jacob@cpsc.ucalgary.ca Department of Computer Science University of Calgary [Kasabov, 1996] 4. Fuzzy Systems Fuzzy


  1. Fuzzy Systems in Knowledge Engineering Chapter 4 Fuzzy Systems —————————————— Christian Jacob jacob@cpsc.ucalgary.ca Department of Computer Science University of Calgary [Kasabov, 1996] 4. Fuzzy Systems Fuzzy Systems in Motivation 4.1 Fuzzy Sets Knowledge 4.2 Fuzzy Numbers Engineering 4.3 Fuzzy Sets and Fuzzy Logic Operations on Fuzzy Sets Inference with Partial Truth Fuzzy Rules 4.4 Extracting Fuzzy Models from Data 4.5 Examples of Fuzzy Systems [Kasabov, 1996] What Does Fuzzy Logic Mean? Fuzzy Logic: Just Human ... ❏ Fuzzy logic was introduced by Lotfi Zadeh (UC ❏ Humans primarily use fuzzy terms: Berkeley) in 1965. large, small, fast, slow, warm, cold, … ❏ Fuzzy logic attempts to formalize “approximate knowledge” and approximate reasoning. ❏ We say: “If the weather is nice and I have a little time, I will ❏ Fuzzy logic is based on fuzzy set theory, an probably go for a hike in the Rockies.” extension of classical set theory. ❏ Fuzzy logic did not attract any attention until the ❏ We don’t say: 1980s (fuzzy controller applications) “If the temperature is above 24 degrees and the cloud cover is less than 10% and I have 3 hours time, I will go for a hike with a probability of 0.47.”

  2. Fuzzy Logic: Motivation 4. Fuzzy Systems ❏ Lotfi Zadeh: “Make use of the leeway of fuzziness.” Motivation ❏ Fuzziness as a principle of economics: 4.1 Fuzzy Sets – Precision is expensive. 4.2 Fuzzy Numbers – Only apply as much precision to a problem as necessary. 4.3 Fuzzy Sets and Fuzzy Logic ❏ Example (1): Backing into a parking space Operations on Fuzzy Sets How long would it take if we had to park the car Inference with Partial Truth with a precision of ± 2 mm? Fuzzy Rules ❏ Example (2): Temperature control 4.4 Extracting Fuzzy Models from Data How much effort would be involved in controlling 4.5 Examples of Fuzzy Systems the temperature of the water flowing into your bathtub by ± 1 ° C ? Basics of Fuzzy Sets Basics of Fuzzy Sets (2) ❏ Example: the set of “young people” ❏ Fuzzy set theory offers a variable notion of membership: – A person of age 21 could still belong to the set of young people, but only to a degree of less than one, maybe 0.9. ❏ We can also define a characteristic function for this set: – Now the set young contains people with ages between 20 and 30 with a linearly decreasing degree of membership. Fuzzy Membership Function Linguistic Variables ❏ Covering the domain of a variable with several fuzzy sets, together with a corresponding semantics, defines a linguistic variable . ❏ Linguistic variable age

  3. Linguistic Variables (2) Fuzzy Granules ❏ Using fuzzy sets allows us to incorporate the fact ❏ Granulation results in a grouping of objects into that no sharp boundaries between these groups imprecise clusters of fuzzy granules . exist. ❏ The objects forming a granule are drawn together by ❏ The corresponding fuzzy sets overlap in certain similarity. areas, forming non-crisp or fuzzy boundaries. ❏ This can be seen as a form of fuzzy data ❏ This way of defining fuzzy sets over the domain of a compression. variable is referred to as granulation , – in contrast to the division into crisp sets (quantization). ❏ Often granulation is obtained manually through expert interviews. Finding Fuzzy Granules Shapes for Membership Functions ❏ If expert knowledge on a domain is not available, an automatic granulation approach can be used. Triangle: [a,b,c] Trapezoid: [a,b,c,d] ❏ Standard granulation using an odd number of membership functions: Singleton: [a,m] – NL: negative large, NM: negative medium, NS: negative Gaussian: [a, θ ] small,Z: zero, ... s A := { x : µ A (x) > 0 } Parameters of Fuzzy Membership Fcts. Membership Functions: Support ❏ Support : s A := { x : µ A (x) > 0 } – The area where the membership function is greater than zero. ❏ Core: c A := { x : µ A (x) = 1 } – The area for which elements have maximum degree of membership to the fuzzy set A. Triangle: [a,b,c] Trapezoid: [a,b,c,d] ❏ α -Cut : A α := { x : µ A (x) = α } – The cut through the membership function of A at height α . ❏ Height : h A := max x { µ A (x) } – The maximum value of the membership function of A. Singleton: [a,m] Gaussian: [a, θ ]

  4. c A := { x : µ A (x) = 1 } A α := { x : µ A (x) = α } Membership Functions: α -Cut Membership Functions: Core α α Triangle: [a,b,c] Trapezoid: [a,b,c,d] Triangle: [a,b,c] Trapezoid: [a,b,c,d] m=1 α α Singleton: [a,m] Singleton: [a,m] Gaussian: [a, θ ] Gaussian: [a, θ ] h A := max x { µ A (x) } Membership Functions: Height 4. Fuzzy Systems Height = 1 Height = 1 Motivation 4.1 Fuzzy Sets 4.2 Fuzzy Numbers 4.3 Fuzzy Sets and Fuzzy Logic Operations on Fuzzy Sets Triangle: [a,b,c] Trapezoid: [a,b,c,d] Inference with Partial Truth Height = 1 Fuzzy Rules 4.4 Extracting Fuzzy Models from Data Height = m 4.5 Examples of Fuzzy Systems Singleton: [a,m] Gaussian: [a, θ ] Fuzzy Numbers Fuzzy Numbers as Fuzzy Sets ❏ Real-world measurements are always imprecise in ❏ Fuzzy numbers are a special type of fuzzy sets, nature. restricting the possible types of membership functions: ❏ Usually such measurements are modeled through a – µ A must be normalized (i.e., the core is non-empty, c A ≠ ∅ ). crisp number x , denoting the most typical value, – µ A must be singular , i.e., there is precisely one point which together with an interval describing the amount of lies inside the core, modeling the typical value (= modal imprecision. value ) of the fuzzy number. ❏ In a linguistic sense, this could be described as – µ A must be monotonically increasing left of the core and “about x ”. monotonically decreasing on the right. ❏ Using fuzzy sets we can incorporate this information This makes sure that there is only one peak, and therefore directly. only one typical value exists.

  5. Fuzzy Numbers: Example Adding Numbers ❏ Typically triangular membership functions are ❏ Let us first consider the classical crisp version of chosen for fuzzy numbers. addition. About 2 About 1 -2 -1 1 2 About 0 Operations on Fuzzy Numbers Fuzzy Addition on Crisp Numbers ❏ Using the so-called extension principle , we extend ❏ We check whether the fuzzy addition is consistent classical operators (addition, multiplication) to their with “normal” addition on crisp numbers. fuzzy counterparts, such that we can also handle intermediate degrees of membership. ❏ For an arbitrary binary operator ⊗ : – For a value x a degree of membership is derived which is the maximum of min{ µ A ( y ), µ B ( z )} over all possible pairs of y , z for which y ⊗ z = x holds. Fuzzy Addition Fuzzy Addition

  6. Fuzzy Addition and Multiplication Fuzzy Number Operations: How to ... ❏ For practical purposes we can calculate the result of applying a monotonical operation on fuzzy numbers as follows: – Subdivide the membership functions µ A ( x ) and µ B ( x ) into monotonically increasing and decreasing parts. – Then perform the operation jointly on the increasing (decreasing) parts of numbers A and B . – Plateaus can be dealt with in a single computation step. Fuzzy Number Operations: How to … (2) Again: Adding Fuzzy Numbers ❏ Let A and B be fuzzy numbers and ⊗ a strongly ❏ monotonical operation. ❏ Let [a 1 , a 2 ] and [b 1 , b 2 ] be the intervals in which µ A ( x ) and µ B ( x ) are monotonically increasing (decreasing). µ A + B ( t ) = 1.0 t = ... ❏ Now if there exist subintervals [ α 1 , α 2 ] ⊆ [a 1 , a 2 ] and [ β 1 , β 2 ] ⊆ [b 1 , b 2 ] such that µ A ( x A ) = µ B ( x B ) = λ ∀ x A ∈ [ α 1 , α 2 ], ∀ x B ∈ [ β 1 , β 2 ], then: µ A ⊗ B ( t ) = λ ∀ t ∈ [ α 1 ⊗ β 1 , α 2 ⊗ β 2 ], Again: Adding Fuzzy Numbers Again: Adding Fuzzy Numbers ❏ ❏ µ A + B ( t ) = 1.0 µ A + B ( t ) = 0.4 ∀ t ∈ [..., ...] t = 40 + 70 = 110

  7. Again: Adding Fuzzy Numbers Again: Adding Fuzzy Numbers ❏ ❏ µ A + B ( t ) = 0.4 ∀ t ∈ [20+64, 30+64] µ A + B ( t ) = 0.4 ∀ t ∈ [20+64, 30+64] = [84, 94] Again: Adding Fuzzy Numbers Again: Adding Fuzzy Numbers ❏ ❏ µ A + B ( t ) = 0.4 t = ... µ A + B ( t ) = 0.4 t = 46 + 76 = 122 Again: Adding Fuzzy Numbers Again: Adding Fuzzy Numbers ❏ ❏ µ A + B ( t ) = 0.4 t = 46 + 76 = 122 Support: s A + B = [..., ...]

  8. Again: Adding Fuzzy Numbers Again: Adding Fuzzy Numbers ❏ ❏ Support: s A + B = [10+60, 50+80] = [70, 130] … and the rest by linear interpolation: Done! Fuzzy Addition and Multiplication Applying a Function to a Fuzzy Number µ looses its triangular shape! 4. Fuzzy Systems ❏ Examples from the Mathematica Motivation 4.1 Fuzzy Sets Fuzzy Logic Package 4.2 Fuzzy Numbers 4.3 Fuzzy Sets and Fuzzy Logic Operations on Fuzzy Sets Inference with Partial Truth Fuzzy Rules 4.4 Extracting Fuzzy Models from Data 4.5 Examples of Fuzzy Systems

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend