Professional Documents
Culture Documents
Applications Domain Some Interesting Applications
Applications Domain Some Interesting Applications
rs Relatively simple, fast and adaptive Less sensitive to system fluctuations Can implement design objectives, difficult to express mathematically, in linguistic or descriptive rules.
Applications Domain
Fuzzy Logic Fuzzy Control
Neuro-Fuzzy System Intelligent Control Hybrid Control
Conventional or crisp sets are binary. An element either belongs to the set or doesn't. {True, false} {1, 0}
B =1 C =1
Crisp Set/Subset A =0 A =1
Subset A Subset B
Universe (X)
Subset C
Fuzzy Indicators
Examples of fuzzy measures include close, heavy, light, big, small, smart, fast, slow, hot, cold, tall and short.
Can you distinguish between American and French person? Some Rules:
If If If If If If speaks English then American speaks French then French loves perfume then French loves outdoors then American good cook then French plays baseball then American
10
9 9.5
Fuzzy Indicators
Rules may give contradictory indicators {good cook, loves outdoors, speaks French} The right answer is a question of a degree of association Fuzzy logic resolves these conflicting indicators
Membership of the person in the French set is 0.9 Membership of the person in the American set is 0.1
Fuzzy Probability Probability deals with uncertainty and likelihood Fuzzy logic deals with ambiguity and vagueness
Example #2
A bottle of liquid has a probability of of being rat poison and of being pure water. A second bottles contents, in the fuzzy set of liquids containing lots of rat poison, is . The meaning of for the two bottles clearly differs significantly and would impact your choice should you be dying of thirst. 50% probability means 50% chance that the water is clean. 50% fuzzy membership means that the water has poison.
(cite: Bezdek)
#1
#2
Crisp membership functions () are either one or zero. e.g. Numbers greater than 10.
A ={x | x>10} 1 x 10
A(x)
B ( x) = e | x 2|
0 1 2 3
Fuzzy Sets
A fuzzy set, A, is said to be a subset of B if
A ( x) B ( x)
e.g. B = far and A=very far. For example...
2 A ( x) = B ( x)
Tall Tall or Short? Short
Very Tall
Fuzzy Measures
Membership Function
Short Medium Tall Very Tall
= [vs , s , m , t , vt ]
Very Short 1.0
Membership Function
Short Medium Tall Very Tall
4 Short
6 Medium Tall
AB ( x) = min [ A ( x ), B ( x)]
A ( x) = 1 A ( x)
AB ( x) = min [ A ( x ), B ( x)]
A(x)
B(x)
AB ( x) = min [ A ( x ), B ( x)]
Complement operation
AB(x)
A ( x) = 1 A ( x)
0 1 2 3
B(x)
A+B (x)
Fuzzifier converts a crisp input into a fuzzy variable. Definition of the membership functions must
reflects the designer's knowledge provides smooth transition between member and nonmembers of a fuzzy set simple to calculate
Typical shapes of the membership function are Gaussian, trapezoidal and triangular.
Assume we want to evaluate the health of a person based on his height and weight. The input variables are the crisp numbers of the persons height and weight. Fuzzification is a process by which the numbers are changes into linguistic words
Fuzzification of Height
Short Medium Tall Very Tall
Fuzzification of Weight
Slim Medium Heavy Very heavy
200lb
250lb
300lb
Rules reflect experts decisions. Rules are tabulated as fuzzy words Rules can be grouped in subsets Rules can be redundant Rules can be adjusted to match desired results
Rule function f
f = {U , LH , SH , H }
f
Height
Very Short Short Medium Tall
Weight
Very Slim Slim Medium Heavy Very Heavy
H SH LH U U
SH H H SH LH
LH SH H H H
U LH LH SH SH
U U U U LH
f = {U , LH , SH , H }
Very Tall
Membership of Height
For a given person, compute the membership of his/her weight and height Example:
Assume that a person height is 6 1 Assume that the persons weight is 140 lb
Membership of Weight
Weight
Very Slim Slim Medium Heavy Very Heavy Very Short Short Medium Tall Very Tall
Height
H SH LH U U
SH H H SH LH
LH SH H H H
U LH LH SH SH
U U U U LH
Height
Short
SH LH U U
SH H H H
LH LH SH SH
U U U LH
Height
Very Short
LH
0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0.7 0.3
Very Tall
0.7 0.3
V. Tall (0)
0.7 0.3
0
0.2 0.2
0
f
Weight 0.8
V. Short (0) Short (0)
Weight
0.2
0 0
Very Short Short
0.7
0.2
SH H H SH LH H
0.8
SH LH U U
0 0
0.7 0.3
V. Tall (0)
0.7 0.3
0
0.2 0.2
0
0.7 0.3
Very Tall
0.3 0.2
Use the fuzzified rules to compute the final decision. Two methods are often used. Maximum Method (not often used) Centroid
Fuzzy set with the largest membership value is selected. Fuzzy decision:
f = {U , LH , SH , H }
Final Decision (FD) = Less Healthy If two decisions have same membership max, use the average of the two.
f
0.7 0.3 0.2
FD =
D =
FD =
0.3 0.2 + 0.7 0.4 + 0.2 0.6 + 0.2 0.8 = 0.4429 0.3 + 0.7 + 0.2 + 0.2
f
0.7 0.3 0.2
f
0.75 0.25
Fuzzy Decision Index (D) 75% in Less Healthy group 25% in Somewhat Healthy group
Assume that we need to evaluate student applicants based on their GPA and GRE scores. Let us assume that the decision should be Excellent (E), Very Good (VG), Good (G), Fair (F) or Poor (P) An expert will associate the decisions to the GPA and GRE score. They are then Tabulated.
Assume that we need to evaluate student applicants based on their GPA and GRE scores. For simplicity, let us have three categories for each score [High (H), Medium (M), and Low(L)] Let us assume that the decision should be Excellent (E), Very Good (VG), Good (G), Fair (F) or Poor (P) An expert will associate the decisions to the GPA and GRE score. They are then Tabulated.
Fuzzifier converts a crisp input into a fuzzy variable. Definition of the membership functions must
reflects the designer's knowledge provides smooth transition between member and nonmembers of a fuzzy set simple to calculate
GRE
Typical shapes of the membership function are Gaussian, trapezoidal and triangular.
GRE
= {L , M , H }
GPA
Fn
GPA
= {L , M , H }
GRE=900
Assume a student with GRE=900 and GPA=3.6 A decision on the classification of the applicant is needed.
Excellent Very good Etc.
GRE
GRE
= {L = 0.8 , M = 0.2 , H = 0}
GPA=3.6
GRE
= {L = 0.8 , M = 0.2 , H = 0}
GPA
= {L = 0 , M = 0.6 , H = 0.4}
GPA
= {L = 0 , M = 0.6 , H = 0.4}
10
Fn
0.6 0.4 0.2
Converting the output fuzzy variable into a unique number Two defuzzifier methods are often used. Maximum Method (not often used) Centroid
Fuzzy set with the largest membership value is selected. Fuzzy decision: Fn = {P, F, G,VG, E} Fn = {0.6, 0.4, 0.2, 0.2, 0} Final Decision (FD) = Poor Student If two decisions have same membership max, use the average of the two.
Fn
FD = FD =
fn =
f i f i
E + VG VG + ..... E + VG + .....
11
F
Reference
Input
Fuzzy Controller
Output
System
Speed Regulation
LN MN SN E ZE SP MP LP LN LN LN LN LN SN ZE SP MN LN LN LN MN ZE ZE SP SN LN LN MN SN ZE SP MP CE ZE LN MN SN ZE SP MP LP
3.0
SP MN SN ZE SP MP LP LP
MP SN ZE ZE MP LP LP LP
LP SN ZE SP LP LP LP LP
Tracking (HPD)
3
Position
0 0 1 2 3
Time
12
Irony
Stability and reliability studies
Neural and Fuzzy Control Based on intuitions and judgments. Relatively simple, fast and adaptable Can implement design objectives, difficult to express mathematically, in linguistic or descriptive rules.
Time(sec)
20
13
E
1
LN
MN
SN ZE
SP
MP
LP
0 -6 LN MN
-3 SN
-1
0 ZE
1 SP
3 MP
6 LP
0 -3
-2
-1
14