Professional Documents
Culture Documents
SC Chap4 Fall 2016
SC Chap4 Fall 2016
SC Chap4 Fall 2016
• Husband’s rule:
Fuzzy
Knowledge base
Most Widely
Adopted
Defuzzification
Strategy
A ( Z ) : A g g re gate d o u t p u t M F
Ch4 SC Fall 2016 13
• B i s e c t o r o f A r e a Z B O A , This operator satisfies:
where
and
• The vertical line z = z B O A partitions the region
between z = α , z = β , y = 0 & y = A ( Z ) into
t w o regions with the same area.
• M e a n o f M ax i m u m Z M O M
This operator computes the
average of the maximizing z Where, Z ’ { z | A ( z ) = * }
R 2: I f X i s m e d i u m t h e n Y i s m e d i u m
R 3: I f X i s l a r g e t h e n Y i s l a r g e
X = input [-10, 10] Slide 17
Y = output [0, 10] Slide 17
Using m a x - m i n composition ( R 1 o R 2 o R 3 ) , and
C e n t r o i d defuzzification, we obtain the following
overall input-output curve (Slide 17):
Ch4 SC Fall 2016 16
SISO antecedent & consequent MFs
Ch4 SC Fall 2016 17
Overall input-output curve
Ch4 SC Fall 2016 18
Example #2: T I S O Mamdani Fuzzy
model
• Two Input Single Output TISO Mamdani fuzzy model with
4 rules:
R 1 : If X is small & Y is small then Z is negative large
x
A' ( x ) A ( x )
y
B' ( y ) B ( y ) (z )
C
w1 w2
(w 1 w 2 ) C ( z )
Ch4 SC Fall 2016 22
• w1 degree of compatibility between A & A’
• w2 degree of compatibility between B & B’
• w1 w2 degree of fulfillment of the fuzzy rule
(antecedent part) = firing strength
• Qualified (induced) consequent MFs represent how
the firing strength gets propagated & used in a fuzzy
implication statement
• Overall output MF aggregate all the qualified
consequent MFs to obtain an overall output MF
– One might use p r o d u c t for firing strength computation;
– One might use m i n for qualified consequent MFs
computation
– One might use m a x for MFs aggregation into an overall
output MF
Ch4 SC Fall 2016 23
• Conclusion: To completely specify the operation of a
Mamdani f i s System, we need to assign a function for
each of the following operators:
– A N D operator (usually T-norm) to compute the rule
firing strength with AND’ed antecedents;
– O R operator (usually T-conorm) to calculate the firing
strength of a rule with OR’ed antecedents;
– I m p l i c a t i o n operator (usually T-norm) to calculate
qualified consequent MFs based on given firing strength
– A g g r e g a t e operator (usually T-conorm) to aggregate
qualified consequent MFs to generate an overall output
MF (composition of facts & rules to derive a
consequent);
– D e f u z z i f i c a t i o n operator for transforming an output
MF to a crisp single output value.
Ch4 SC Fall 2016 24
Under the sum-product composition:
Final crisp output (of a Mamdani f i s with Centroid
defuzzification) e q u a l s Weighted average of Centroids
of consequent MFs;
Where, each of the weighting factors equals the product
of the a firing strength and the consequent MF’s area;
That is, w(rulei)=(firing strength)i*Area (consequent MFs)
Proof(PP80-81) Use the equation:
C' ( z ) w 1 C1 ( z ) w 2 C2 ( z )
and compute: z C O A (centroid defuzzification)
Conclusion: Final crisp output can be computed if:
–Area of each consequent MF is known
–Centroid of each consequent Mf is known
RUN Mamdani FIS mam21
Ch4 SC Fall 2016 25
Ch4 SC Fall 2016 26
Sugeno Fuzzy Models
• Also known as Takagi, Sugeno & Kang, T S K model (1985);
• Goal: Generation of f u z z y r u l e s from a given
input-output data set
• A TSK fuzzy rule has the form:
If x is A & y is B then z = f(x, y)
Where A & B are f u z z y s e t s in the a n t e c e d e n t ,
while z = f ( x , y ) is a c r i s p f u n c t i o n in the c o n s e q u e n t
f ( x , y ) is very often a p o l y n o m i a l function in the
i n p u t variables x & y .
• When f ( x , y ) is a f i r s t - o r d e r p o l y n o m i a l , the resulting
fuzzy inference is: A f i r s t - o r d e r S u g e n o fuzzy model;
Ch4 SC Fall 2016 27
Sugeno Fuzzy Models
• f(x,y) is a first order polynomial
Example: a two-input one-output TSK
I F x i s A j a n d y i s B k t h e n z i= p x + q y + r
• The degree the input matches ith rule is typically computed
using min operator: w i = m i n ( m A ( x ) , m B ( y ) )
j k
Each rule has a crisp output
• Overall output is obtained via weighted average (reduce
computation time of defuzzification required in a
Mamdani model) 𝐳 = σ𝒊 𝒘 𝒊 𝒛 𝒊 / σ𝒊 𝒘 𝒊
Where Wi is matching degree of rule Ri
(result of the if … part evaluation)
• To further reduce computation, weighted sum may be
used, I.e. 𝐳 = σ𝒊 𝒘 𝒊 𝒛 𝒊
Ch4 SC Fall 2016 28
Sugeno Fuzzy Models
30
Ch4 SC Fall 2016
Example 1: Single-input single output fuzzy model with 3
rules:
•I f X i s s m a l l then Y = 0.1 X +6.4.
•I f X i s m e d i u m then Y = -0.5X +4.
•I f X i s l a r g e then Y = X-2.
• If “small”, “medium.” and “large” are non fuzzy sets , then
the overall input-output curve is piecewise linear.