11 - Fuzzy Systems
11 - Fuzzy Systems
Fuzzy Systems
11.1 Introduction
The block diagram of a fuzzy system (FS) with one crisp (or fuzzy) input
and one crisp output is shown in Figure 11.1.1.
A fuzzy system can take either crisp inputs or fuzzy inputs, but the
outputs produced are often fuzzy.
In this chapter, three fuzzy systems are described and each of them
is illustrated by two design examples.
Typical examples are min-max and product-max in which the latter has
been used due to its amenability to mathematical analysis.
The Mamdani fuzzy system can take either crisp inputs or fuzzy inputs
(for example, fuzzy inputs 𝐴 and 𝐴 are used in Figure 11.2.1).
0 0 0
0 50 100 −50 0 50 −10 0 10
x1 x2 y
1 A21 1 A22 1 B2
0.5 0.5 0.5
0 0 0
0 50 100 −50 0 50 −10 0 10
x x y
1 2
Input 1 Input 2 Output
1 A1 1 A2 1 y0
0.5 0.5 0.5
B
0 0 0
0 50 100 −50 0 50 −10 0 10
x x y
1 2
𝜇 𝑥 GBellMF 𝑥, 10, 3, 0
𝜇 𝑥 GBellMF 𝑥, 20, 5, 30
𝜇 𝑥 GBellMF 𝑥, 20, 5, 70
where 𝑥 ∈ 0, 100 .
𝜇 𝑦 GBellMF 𝑦, 1, 8, 0
𝜇 𝑦 GBellMF 𝑦, 1, 6, 2
𝜇 𝑦 GBellMF 𝑦, 2, 6, 5
𝜇 𝑦 GBellMF 𝑦, 2, 8, 9
where 𝑦 ∈ 0, 10 .
Solution
For examples,
𝑤𝑎 𝑦 𝑤 𝑎 𝑦 𝑤 𝑎 𝑦 𝑤𝑎 𝑦 𝑤𝑎 𝑦
𝑦 𝑦 8.4
𝑤𝑎 𝑤 𝑎 𝑤 𝑎 𝑤𝑎 𝑤𝑎
1
Membership Grade
1
Membership Grade
5
y
0
0 20 40 60 80 100
x
𝜇 𝑥 GBellMF 𝑥 , 20, 8, 5
𝜇 𝑥 GBellMF 𝑥 , 15, 8, 30
where 𝑥 ∈ 20, 30 .
𝜇 𝑥 GBellMF 𝑥 , 20,10, 15
where 𝑥 ∈ 20, 30 .
𝜇 𝑦 GBellMF 𝑦, 10, 8, 20
𝜇 𝑦 GBellMF 𝑦, 10, 8, 0
Chapter 11 Fuzzy Systems Page 11-9
𝜇 𝑦 GBellMF 𝑦, 7, 8, 17
𝜇 𝑦 GBellMF 𝑦, 6, 8, 30
where 𝑦 ∈ 20, 30 .
Solution
For examples,
1
Membership Grade
cold warm
0.5
0
−20 −10 0 10 20 30
x
1
(b) Antecedent MFs of x2
1
Membership Grade
cold warm
0.5
0
−20 −10 0 10 20 30
x2
0.5
0
−20 −10 0 10 20 30
y
(d) Overall input/output
20
10
y
0
−10
30
20 30
10 10 20
0 0
−10 −10
−20 −20
x x
2 1
Note that the output variable never reaches the minimum (-20) and the
maximum (30) and of the output universe.
1 1 w11 1
Membership Grade
w12 w1
0.5 0.5 0.5
y
1
0 0 0
0 10 20 −5 0 5 10 0 5
x x y
1 2
1 1 1
Membership Grade
w22
y
2
0 0 0
0 10 20 −5 0 5 10 0 5
x1 x2 y
The inferred output of each rule 𝑦 is a crisp value induced by the rule’s
firing strength (𝑤 for 𝑖 = 1 to 𝑅=2) obtained using the minimum
operator or the algebraic product operator.
∑ 𝑤𝑦 (11.3.1)
𝑦
∑ 𝑤
where 𝑦 is the output of the 𝑖th rule induced by the firing strength 𝑤
and membership function for 𝐵 for 𝑖=1 to 𝑅.
𝜇 𝑥 GBellMF x, 4,10, 10
Chapter 11 Fuzzy Systems Page 11-15
𝜇 𝑥 GBellMF x, 3,10, 3
𝜇 𝑥 GBellMF x, 3,10,3
𝜇 𝑥 GBellMF x, 4,10,10
Solution
With the weighted average for defuzzification, the rule output and the
Page 11-16 Intelligent Computing
1 1
Membership Grade
4 4
2 2
0 0
−10 −5 0 5 10 −10 −5 0 5 10
x x
For examples,
At 𝑥 8:
then
𝑤𝑦 𝑤 𝑦 𝑤 𝑦 𝑤𝑦 1 2 0 0 0
𝑦 2
𝑤 𝑤 𝑤 𝑤 1 0 0 0
At 𝑥 0.0:
At 𝑥 6.0:
then
𝑤𝑦 𝑤 𝑦 𝑤 𝑦 𝑤𝑦 0 0 0.75 9 0.25 8
𝑦
𝑤 𝑤 𝑤 𝑤 0 0 0.75 0.25
8.75
Page 11-18 Intelligent Computing
𝜇 𝑥 GBellMF 𝑥 , 10, 8, 12
𝜇 𝑥 GBellMF 𝑥 , 10, 8, 8
𝜇 𝑥 GBellMF 𝑥 , 4, 10, 2
𝜇 𝑥 GBellMF 𝑥 , 4, 10, 10
𝑦
𝜇 𝑦 min 1, max 1, 0
4
𝑦 7
𝜇 𝑦 1 min 1, max ,0
3
Using the minimum operator for weights, and the weighted average as
the defuzzification scheme, determine the overall input-output curve
with two crisp inputs 𝑥 and 𝑥 and the corresponding output y.
Solution
With the minimum operator for weights, and the weighted average for
defuzzification, the overall input-output curve can be obtained as shown
in Figure E11.4.1 (d).
Page 11-20 Intelligent Computing
1
Membership Grade
dry wet
0.5
0
−10 −5 0 5 10
x1
(b) Antecedent MFs of x2
1
Membership Grade
slow fast
0.5
0
0 2 4 6 8 10
x2
1
Membership Grade
0.5 B1 B2 B3 B4
0
0 2 4 6 8 10
y
(d) Overall input/output
10
5
y
0
5
4 0
3 −4 −2
2 −6
1 −8
0 −10
x x
2 1
For examples,
then
𝑤𝑦 𝑤 𝑦 𝑤 𝑦 𝑤𝑦 1 2 0 6 0 4 0 10
𝑦
𝑤 𝑤 𝑤 𝑤 1 0 0 0
2
wet(2)=0.5, fast(6)=0.5 𝜇 𝑦 𝑤 ⇒𝑦
4
⇒ w4=min[wet(2), fast(6)]=0.5 8.5
then
𝑤𝑦 𝑤 𝑦 𝑤 𝑦 𝑤𝑦
𝑦
𝑤 𝑤 𝑤 𝑤
then
𝑤𝑦 𝑤 𝑦 𝑤 𝑦 𝑤𝑦
𝑦
𝑤 𝑤 𝑤 𝑤
1 1 w
Membership Grade
11
w
12
0.5 0.5
0 0
0 5 10 15 20 −5 0 5 10
x x
1 2
1 1
Membership Grade
w
22
0 0
0 5 10 15 20 −5 0 5 10
x1 x2
𝑦 𝑎 𝑥 𝑎 𝑥 𝑐 (11.4.2)
𝑦 𝑎 𝑥 𝑎 𝑥 𝑐 (11.4.3)
∑ 𝑤𝑦
𝑦 (11.4.4)
∑ 𝑤
𝑦 ∑ 𝑤𝑦 (11.4.5)
Solution
At 𝑥 = 9:
= 23
1
Membership Grade
50
0
y
−50
−100
−10 −5 0 5 10
x
At 𝑥 = 4:
= 16
At 𝑥 = 0:
Using the algebraic product operator for weights, and the weighted
average for defuzzification, determine the input-output curve for the
TSK fuzzy system with two crisp inputs 𝑥 and 𝑥 .
Solution
Page 11-30 Intelligent Computing
1
Membership Grade
wet dry
0.5
0
−5 0 5
x
1
(b) Antecedent MFs of x2
1
Membership Grade
cold hot
0.5
0
−5 0 5
x2
0
y
−5
−10
5
5
0
0
x2 −5 −5
x
1
With the algebraic product operator for weights, and the weighted
average for defuzzification, the overall input-output curve can be
obtained as shown in Figure E11.6.1 (c).
For examples,
Unlike the Mamdani fuzzy system, the TSK fuzzy system does not
follow the compositional rule of inference strictly in its fuzzy reasoning
procedure.
This creates a difficulty when the inputs to a TSK fuzzy system are
fuzzy and a fuzzy output is required. However, due to its simplicity, the
TSK fuzzy system is a popular choice for fuzzy modeling.
Chapter 11 Fuzzy Systems Page 11-33
11.5 Comparisons
All the three systems use either the minimum operator or algebraic
product operator for determining firing strength of each rule.
The Mamdani fuzzy system uses the maximum operator for aggregation
of fuzzy outputs, and then computes the centroid of aggregated output
membership functions for defuzzification.
The Tsukamoto fuzzy system and the TSK fuzzy system both use a
weighted average for output defuzzification.