Fuzzy Relations and Reasoning
Fuzzy Relations and Reasoning
Reasoning
Dr. Ngo Thanh Long
Department of Information Systems,
Faculty of Information Technology
Email: [email protected]
Fuzzy Relations
• A fuzzy relation R is a 2 D MF:
– R :{ ((x, y), R(x, y)) | (x, y) X Y}
Examples:
• x is close to y (x & y are real numbers)
• x depends on y (x & y are events)
• x and y look alike (x & y are persons or objects)
• Let X = Y = IR+
and R(x,y) = “y is much greater than x”
The MF of this fuzzy relation can be subjectively defined as:
yx
, if y x
R ( x, y ) x y 2
0 , if y x
if X = {3,4,5} & Y = {3,4,5,6,7}
Extension Principle
The image of a fuzzy set A on X
A A ( x1 ) / x1 A ( x 2 ) / x 2 A ( x n ) / x n
A k [ A ( x )]k / x
X
– is a modified version of the original linguistic value.
– A2 = CON(A) is called the concentration operation
A = DIL(A) is called the dilation operation
– CON(A) & DIL(A) are useful in expression the hedges such as
“very” & “more or less” in the linguistic term A
– Other definitions for linguistic hedges are also possible
Linguistic variables
– Composite linguistic terms
NOT( A ) A [1 A ( x)] / x,
X
– Let’s define: A and B A B [ A ( x ) B ( x )] / x
X
A or B A B [ A ( x ) B ( x )] / x
X
1 1 1
/x
x
4 4
x x
1 1 20
20
1
6
/x
x x 100
1
30
Linguistic variables
– Contrast intensification
– the operation of contrast intensification on a
linguistic value A is defined by
2 A 2
if 0 A ( x ) 0.5
INT( A )
2
2( A ) if 0.5 A ( x ) 1
Rp A * B A (x) B (y ) /( x, y )
X*Y
(product proposed by Larsen, 1980)
R bp A * B A ( x ) B ( y ) /( x, y )
X* Y
0 ( A ( x ) B ( y ) 1) /( x, y )
X* Y
~ 1 if a b
where : a b
b / a otherwise
(Goguen’s fuzzy implication with algebraic product for T-norm)
Fuzzy if-then rules
A entails B
Fuzzy Reasoning
b b
y = f(x) y = f(x)
a x x
a
a and b: points
a and b: intervals
y = f(x) : a curve
y = f(x) : an interval-valued
function
Compositional Rule of Inference
– The extension principle is a special case of the
compositional rule of inference
• F is a fuzzy relation on X*Y, A is a fuzzy set
of X & the goal is to determine the resulting
fuzzy set B
– Construct a cylindrical extension c(A) with
base A
– Determine c(A) F (using minimum operator)
– Project c(A) F onto the y-axis which
provides B
Compositional Rule of Inference
• a is a fuzzy set and y = f(x) is a fuzzy relation:
B?
(a) F: X Y
(b) c(A)
(c) c(A)F
(d) Y as a
fuzzy
set B
on the
y-axis.
– A = “today is sunny”
– A B: day = sunny then sky = blue
infer: “sky is blue”
• illustration
– Premise 1 (fact): x is A
– Premise 2 (rule): if x is A then y is B
– Consequence: y is B
Fuzzy Reasoning
• Approximation
A’ = “ today is more or less sunny”
B’ = “ sky is more or less blue”
• illustration
Premise 1 (fact): x is A’
Premise 2 (rule): if x is A then y is B
Consequence: y is B’
Definition:
Let A, A’, and B be fuzzy sets of X, X, and Y,
respectively. Assume that the fuzzy implication
AB is expressed as a fuzzy relation R on XX.
Then, the fuzzy set B induced by “x is A ” and the
fuzzy rule “if x is A then y is B” is defined by
B (y) = maxx min [A (x), R (x,y)]
= x [A (x) R (x,y)]
B = A R = A (AB)
• Graphic Representation:
A’ A B
w
X Y
A’
B’
X Y
x is A’ y is B’
Fuzzy Reasoning
– Single rule with multiple antecedents
• Premise 1 (fact): x is A’ and y is B’
• Premise 2 (rule): if x is A and y is B then z is C
• Conclusion: z is C’
• Premise 2: A*B C
R mamdani ( A , B, C) ( A * B ) * C ( x ) ( y ) ( z ) /( x, y , z )
A B C
X* Y* Z
C' ( A'*B' ) ( A * B C)
premise 1 premise 2
C' ( z )
x ,y
A ' ( x ) B ' ( y ) A ( x ) B ( y ) C ( z )
A ' ( x ) B ' ( y ) A ( x ) B ( y ) C ( z )
x ,y
x
A ' ( x ) A ( x) y B ' ( y ) B ( y ) C ( z )
w1 w2
(w 1 w 2 ) C ( z )
Fuzzy Reasoning
T-norm
A’ A B’ B C2
Z
X Y
A’ B’
C’
Z
x is A’ X y is B’ Y z is C’
Fuzzy Reasoning
– Multiple rules with multiple antecedents
Premise 1 (fact): x is A’ and y is B’
Premise 2 (rule 1): if x is A1 and y is B1 then z is C1
Premise 3 (rule 2): If x is A2 and y is B2 then z is C2
Consequence (conclusion): z is C’
R1 = A1 * B1 C1
R2 = A2 * B2 C2
Since the max-min composition operator o is distributive over
the union operator, it follows:
C’ = (A’ * B’) o (R1 R2) = [(A’ * B’) o R1] [(A’ * B’) o R2]
= C’1 C’2
Where C’1 & C’2 are the inferred fuzzy set for rules 1 & 2
respectively
Fuzzy Reasoning
A’ A1 B’ B1 C1
w1
Z
X Y
A’ A2 B’ B2 C2
w2
Z
X Y
T-norm
A’ B’
C’
Z
x is A’ X y is B’ Y z is C’