Fuzzy Lec2
Fuzzy Lec2
If either the Arsenal or the Liverpool lose and the United win, then the
Chelesa will be out of first place, and I will lose a bet.
Arsenal lose (p), Liverpool lose (c), United win (g), Chelesa will be out
of first place(d), I will lose a bet (b)
Fuzzy rule as a relation
if x is A then y is B
“x is A”, “y is B” – fuzzy predicates A(x), B(y)
if A(x) then B(y) can be represented as a relation
R(x,y): A(x) B(y)
where R(x,y) can be considered a fuzzy set with 2-dimentional
membership function
μR(x,y)=f(μA(x), μ B(y))
where f is fuzzy implication function.
MIN fuzzy implication
Interprets the fuzzy implication as the minimum operation [Mamdani].
10
50 60 90 100 120 Salary
Small Large
10 15 50 60 Debts
Low Medium High
20 40 60 80 Risk
Salary 55, Debt 50
risk medium
salary good
debt large
0.2
50 100 15 60 20 80
55 50
risk high
salary poor
0.1
10 60 60
55
20 60 80 100
Takagi-Sugeno Method
x is μ A and y is μ B μ A μB
Takagi and Sugeno have described a fuzzy implication R is of the format:
R: if (x1 is mA(x1),… xk is mA(xk)) then y = g(x1, …, xk)
Where:
R: if x1 is m1 and … and xk is mk
then y = p0 + p1x1 + … + pkxk.
1
0.9
0.8
Membership Function
0.7
Small1
0.6
0.5
Small2
0.4
0.3 Big1
0.2
0.1 Big2
0
0 5 10 15 20
Input x
Let us compute the FINAL OUTPUT y for the following
values:
x1 = 12 & x2 = 5
using Takagi and Sugeno’s formula:
y = (S |y= yi | * yi )/ S |y= yi |
where |y= yi | stands for the truth value of a given proposition.
FUZZUFICATION: We have the following values of the membership
functions for the two values x1 = 12 & x2 = 5:
Truth Value
Min (Premise 1 &
Rule Premise 1 Premise 2 Consequenc Premise2)
e
y y (i ) * y ( i )
i 1,3
y
(i )
y y
i 1,3
0.25 *17 0.2 * 24 0.375 *15
y 17.8
0.25 0.2 0.375
In Sugeno’s model, each rule has a crisp output, the
overall input is obtained by a weighted average –
this avoids the time-consuming process of
defuzzification required in a Mamdani model. The
weighted average operator is replaced by a
weighted sum to reduce computation further.