Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter...

23
CSE 513 Soft Computing Dr. Djamel Bouchaffra CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning Extension Principle & Fuzzy Relations (3.2) Fuzzy if-then Rules(3.3) Fuzzy Reasonning (3.4) Jyh-Shing Roger Jang et al., Neuro-Fuzzy and Soft Computing: A Computational Approach to Learning and Machine Intelligence, First Edition, Prentice Hall, 1997 Extension Principle & Fuzzy Relations (3.2) Extension principle A is a fuzzy set on X : A x x x x x x A A A n n = + + + µ µ µ ( )/ ( )/ ( )/ 1 1 2 2 L The image of A under f(.) is a fuzzy set B: B x y x y x y B B B n n = + + + µ µ µ ( )/ ( )/ ( )/ 1 1 2 2 L where y i = f(x i ), i = 1 to n If f(.) is a many-to-one mapping, then µ µ B x f y A y x ( ) max ( ) ( ) = = 1

Transcript of Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter...

Page 1: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 1

Chapter 3: Fuzzy Rules & Fuzzy Reasoning

Extension Principle & Fuzzy Relations (3.2)

Fuzzy if-then Rules(3.3)

Fuzzy Reasonning (3.4)

Jyh-Shing Roger Jang et al., Neuro-Fuzzy and Soft Computing: A Computational Approach to Learning and Machine Intelligence, First Edition, Prentice Hall, 1997

Extension Principle & Fuzzy Relations (3.2)

Extension principle

A is a fuzzy set on X :A x x x x x xA A A n n= + + +µ µ µ( ) / ( ) / ( ) /1 1 2 2 L

The image of A under f(.) is a fuzzy set B:B x y x y x yB B B n n= + + +µ µ µ( ) / ( ) / ( ) /1 1 2 2 L

where yi = f(xi), i = 1 to n

If f(.) is a many-to-one mapping, thenµ µB x f y Ay x( ) m a x ( )

( )=

= − 1

Page 2: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 2

Extension Principle & Fuzzy Relations (3.2) (cont.)– Example:

Application of the extension principle to fuzzy sets with discrete universes

Let A = 0.1 / -2+0.4 / -1+0.8 / 0+0.9 / 1+0.3 / 2and f(x) = x2 – 3

Applying the extension principle, we obtain:B = 0.1 / 1+0.4 / -2+0.8 / -3+0.9 / -2+0.3 /1

= 0.8 / -3+(0.4V0.9) / -2+(0.1V0.3) / 1= 0.8 / -3+0.9 / -2+0.3 / 1

where “V” represents the “max” operator

Same reasoning for continuous universes

Fuzzy relations

– A fuzzy relation R is a 2D MF:

– Examples: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:

if X = {3,4,5} & Y = {3,4,5,6,7}

R x y x y x y X YR= ∈ ×{(( , ), ( , ))| ( , ) }µ

>++

−=µ

xy if , 0

xy if ,2yx

xy)y,x(R

Extension Principle & Fuzzy Relations (3.2) (cont.)

Page 3: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 3

• Then R can be Written as a matrix:

where R{i,j} = µ[xi, yj]

– x is close to y (x and y are numbers)

– x depends on y (x and y are events)

– x and y look alike (x and y are persons or objects)

– If x is large, then y is small (x is an observed reading and Y is a corresponding action)

=

0.143 0.077 0 0 00.231 0.167 0.091 0 00.333 0.273 0.200 0.111 0

R

Extension Principle & Fuzzy Relations (3.2) (cont.)

– Max-Min Composition

• The max-min composition of two fuzzy relations R1 (defined on Xand Y) and R2 (defined on Y and Z) is

• Properties:– Associativity:

– Distributivity over union:

– Week distributivity over intersection:

– Monotonicity:

µ µ µR R y R Rx z x y y z1 2 1 2o ( , ) [ ( , ) ( , )]= ∨ ∧

R S T R S R To U o U o( ) ( ) ( )=

R S T R S To o o o( ) ( )=

R S T R S R To I o I o( ) ( ) ( )⊆

S T R S R T⊆ ⇒ ⊆( ) ( )o o

Extension Principle & Fuzzy Relations (3.2) (cont.)

Page 4: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 4

• Max-min composition is not mathematically tractable, therefore other compositions such as max-product composition have been suggested

– Max-product composition

µ µ µR R y R Rx z x y y z1 2 1 2o ( , ) [ ( , ) ( , )]= ∨

Extension Principle & Fuzzy Relations (3.2) (cont.)

– Example of max-min & max-product composition

• Let R1 = “x is relevant to y”R2 = “y is relevant to z”

be two fuzzy relations defined on X*Y and Y*Z respectivelyX = {1,2,3}, Y = {α,β,χ,δ} and Z = {a,b}.

Assume that:

=

=

0.2 0.70.6 0.50.3 0.20.1 9.0

R 0.2 0.3 0.8 0.60.9 0.8 0.2 0.40.7 0.5 0.3 1.0

R 21

Extension Principle & Fuzzy Relations (3.2) (cont.)

Page 5: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 5

The derived fuzzy relation “x is relevant to z” based on R1& R2

Let’s assume that we want to compute the degree of relevance between 2 ∈ X & a ∈ Z

Using max-min, we obtain:

Using max-product composition, we obtain:

{ }{ }

0.7 5,0.70.4,0.2,0.max

7.09.0,5.08.0,2.02.0,9.04.0max)a,2(2R1R

==

∧∧∧∧=µ o

{ }{ }

0.63 0.40,0.630.36,0.04,max

7.0*9.0,5.0*8.0,2.0*2.0,9.0*4.0max)a,2(2R1R

==

=µ o

Extension Principle & Fuzzy Relations (3.2) (cont.)

Fuzzy if-then rules (3.3)Linguistic Variables

– Conventional techniques for system analysis are intrinsically unsuited for dealing with systems based on human judgment, perception & emotion

– Principle of incompatibility

• As the complexity of a system increases, our ability to make precise & yet significant statements about its behavior decreases until a fixed threshold

• Beyond this threshold, precision & significance become almost mutually exclusive characteristics [Zadeh, 1973]

Page 6: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 6

Fuzzy if-then rules (3.3) (cont.)– The concept of linguistic variables introduced by Zadeh is an

alternative approach to modeling human thinking

– Information is expressed in terms of fuzzy sets instead of crispnumbers

– Definition: A linguistic variable is a quintuple (x, T(x), X, G, M) where:

• x is the name of the variable• T(x) is the set of linguistic values (or terms)• X is the universe of discourse• G is a syntactic rule that generates the linguistic values• M is a semantic rule which provides meanings for the linguistic

values

Fuzzy if-then rules (3.3) (cont.)– Example:

A numerical variable takes numerical valuesAge = 65

A linguistic variables takes linguistic valuesAge is old

A linguistic value is a fuzzy set

All linguistic values form a term set

T(age) = {young, not young, very young, ...middle aged, not middle aged, ...old, not old, very old, more or less old, ...not very yound and not very old, ...}

Page 7: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 7

• Where each term T(age) is characterized by a fuzzy set of a universe of discourse X= = [0,100]

Fuzzy if-then rules (3.3) (cont.)

– The syntactic rule refers to the way the terms in T(age) are generated

– The semantic rule defines the membership function of each linguistic value of the term set

– The term set consists of primary terms as (young, middle aged, old) modified by the negation (“not”) and/or the hedges (very, more or less, quite, extremely,…) and linked by connectives such as (and, or, either, neither,…)

Fuzzy if-then rules (3.3) (cont.)

Page 8: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 8

– Concentration & dilation of linguistic values

• Let A be a linguistic value described by a fuzzy set with membership function µA(.)

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

∫ µ=X

kA

k x/)]x([A

Fuzzy if-then rules (3.3) (cont.)

– Composite linguistic terms

Let’s define:

where A, B are two linguistic values whose semantics are respectively defined by µA(.) & µB(.)

Composite linguistic terms such as: “not very young”, “not very old” & “young but not too young”can be easily characterized

µ∨µ=∪=

µ∧µ=∩=

µ−=¬=

XBA

XBA

XA

x/)]x()x([B A Bor A

x/)]x()x([B A B and A

,x/)]x(1[A)A(NOT

Fuzzy if-then rules (3.3) (cont.)

Page 9: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 9

– Example: Construction of MFs for composite linguistic terms

Let’s

Where x is the age of a person in the universe of discourse [0, 100]

• More or less = DIL(old) = √old =

6old

4young

30100x1

1)100,3,30,x(bell)x(

20x1

1)0,2,20,x(bell)x(

+

==µ

+

==µ

x/

30100x1

1

X6∫

+

Fuzzy if-then rules (3.3) (cont.)

• Not young and not old = ¬young ∩ ¬old =

• Young but not too young = young ∩ ¬young2 (too = very) =

• Extremely old ≡ very very very old = CON (CON(CON(old))) =

x/

30100x1

11

20x1

11 6X

4

+

−∧

+

−∫

+

−∧

+x

2

44 x/

20x1

11

20x1

1

+x

8

6 x/

30100x1

1

Fuzzy if-then rules (3.3) (cont.)

Page 10: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 10

– Contrast intensification

the operation of contrast intensification on a linguistic value A is defined by

• INT increases the values of µA(x) which are greater than 0.5 & decreases those which are less or equal that 0.5

• Contrast intensification has effect of reducing the fuzziness of the linguistic value A

≤µ≤¬¬

≤µ≤=

1)x(0.5 if )A(2

5.0)x(0 if A2)A(INT

A2

A2

Fuzzy if-then rules (3.3) (cont.)

Page 11: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 11

– Orthogonality

A term set T = t1,…, tn of a linguistic variable x on the universe X is orthogonal if:

Where the ti’s are convex & normal fuzzy sets defined on X.

∑=

∈∀=µn

1iit Xx ,1)x(

Fuzzy if-then rules (3.3) (cont.)

Page 12: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 12

General format:

– If x is A then y is B (where A & B are linguistic values defined by fuzzy sets on universes of discourse X & Y).

• “x is A” is called the antecedent or premise• “y is B” is called the consequence or conclusion

– Examples:

• If pressure is high, then volume is small.• If the road is slippery, then driving is dangerous.• If a tomato is red, then it is ripe.• If the speed is high, then apply the brake a little.

Fuzzy if-then rules (3.3) (cont.)

– Meaning of fuzzy if-then-rules (A ⇒ B)

• It is a relation between two variables x & y; therefore it is a binary fuzzy relation R defined on X * Y

• There are two ways to interpret A ⇒ B:

– A coupled with B– A entails B

if A is coupled with B then:

or.normoperat-T a is * where

)y,x/()y(*)x(B*ABAR

~Y*X

B

~

A∫ µµ==⇒=

Fuzzy if-then rules (3.3) (cont.)

Page 13: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 13

If A entails B then:

R = A ⇒ B = ¬ A ∪ B ( material implication)

R = A ⇒ B = ¬ A ∪ (A ∩ B) (propositional calculus)

R = A ⇒ B = (¬ A ∩ ¬ B) ∪ B (extended propositional calculus)

≤≤µ≤µ=µ 1c0),y(c*)x(;csup)y,x( B

~

AR

Fuzzy if-then rules (3.3) (cont.)

Two ways to interpret “If x is A then y is B”:

A

B

A entails By

x

A coupled with B

A

B

x

y

Fuzzy if-then rules (3.3) (cont.)

Page 14: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 14

• Note that R can be viewed as a fuzzy set with a two-dimensional MF

µR(x, y) = f(µA(x), µB(y)) = f(a, b)

With a = µA(x), b = µB(y) and f called the fuzzy implication function provides the membership value of (x, y)

Fuzzy if-then rules (3.3) (cont.)

– Case of “A coupled with B”

(minimum operator proposed by Mamdani, 1975)

(product proposed by Larsen, 1980)

(bounded product operator)

∫ ∧==YX

BAm yxyxBAR*

),/()()(* µµ

)y,x/()y( )x(B*ARY*X

BAp ∫ µµ==

)y,x/()1)y()x((0

)y,x/()y()x(B*AR

BAY*X

Y*XBAbp

−µ+µ∨=

µ⊗µ==

Fuzzy if-then rules (3.3) (cont.)

Page 15: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 15

– Case of “A coupled with B” (cont.)

(Drastic operator)

)10,3,4;()( and )10,3,4;()(for otherwise if 0

1a if 1b if

.̂ab)f(a, :

),/()(.̂)(*

BA

*

ybellyxbellxExample

ba

bwhere

yxyxBARYX

BAdp

==

==

==

== ∫

µµ

µµ

Fuzzy if-then rules (3.3) (cont.)

A coupled with B

Fuzzy if-then rules (3.3) (cont.)

Page 16: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 16

– Case of “A entails B”

(Zadeh’s arithmetic rule by using bounded sum operator for union)

(Zadeh’s max-min rule)

)ba1(1)b,a(f :where

)y,x/()y()x(1(1BAR

a

Y*XBAa

+−∧=

µ+µ−∧=∪¬= ∫

)ba()a1()b,a(f :where

)y,x/())y()x(())x(1()BA(AR

m

Y*XBAAmm

∧∨−=

µ∧µ∨µ−=∩∪¬= ∫

Fuzzy if-then rules (3.3) (cont.)

– Case of “A entails B” (cont.)

(Boolean fuzzy implication with max for union)

(Goguen’s fuzzy implication with algebraic product for T-norm)

b)a1()b,a(f :where

)y,x/()y())x(1(BAR

s

Y*XBAs

∨−=

µ∨µ−=∪¬= ∫

=<

µ<µ= ∫∆

otherwise a/bba if 1

b~a :where

)y,x/())y(~)x((RY*X

BA

Fuzzy if-then rules (3.3) (cont.)

Page 17: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 17

A entails B

Fuzzy Reasoning (3.4)

Definition

– Known also as approximate reasoning

– It is an inference procedure that derives conclusions from a set of fuzzy if-then-rules & known facts

Page 18: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 18

Fuzzy Reasoning (3.4) (cont.)

Compositional rule of inference

– Idea of composition (cylindrical extension & projection)

• Computation of b given a & f is the goal of the composition

– Image of a point is a point

– Image of an interval is an interval

Derivation of y = b from x = a and y = f(x):

a and b: pointsy = f(x) : a curve

x

y

a

b

y = f(x)

a

b

y

x

a and b: intervalsy = f(x) : an interval-valued

function

y = f(x)

Fuzzy Reasoning (3.4) (cont.)

Page 19: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 19

– 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

Fuzzy Reasoning (3.4) (cont.)

a is a fuzzy set and y = f(x) is a fuzzy relation:

cri.m

Fuzzy Reasoning (3.4) (cont.)

Page 20: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 20

Given A, A ⇒ B, infer B

A = “today is sunny”A ⇒ B: day = sunny then sky = blueinfer: “sky is blue”

• illustration

Premise 1 (fact): x is APremise 2 (rule): if x is A then y is B

Consequence: y is B

Fuzzy Reasoning (3.4) (cont.)

Approximation

A’ = “ today is more or less sunny”B’ = “ sky is more or less blue”

• iIlustration

Premise 1 (fact): x is A’Premise 2 (rule): if x is A then y is B

Consequence: y is B’

(approximate reasoning or fuzzy reasoning!)

Fuzzy Reasoning (3.4) (cont.)

Page 21: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 21

Definition of fuzzy reasoning

Let A, A’ and B be fuzzy sets of X, X, and Y, respectively. Assume that the fuzzy implication A ⇒ B is expressed as a fuzzy relation R on X*Y. 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:

Single rule with single antecedentRule : if x is A then y is BFact: x is A’Conclusion: y is B’ (µB’(y) = [∨x (µA’(x) ∧ µA(x)] ∧ µB(y))

[ ])y,x(),x(minmax)y( R'Ax

'B µµ=µ

Fuzzy Reasoning (3.4) (cont.)

A

X

w

A’ B

Y

x is A’

B’

Y

A’

Xy is B’

Fuzzy Reasoning (3.4) (cont.)

Page 22: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 22

– Single rule with multiple antecedentsPremise 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

[ ] [ ]

[ ]{ }

[ ]{ } [ ]

)z()w(w

)z()y()y()x()x(

)z()y()x()y()x(

)z()y()x()y()x()z(

)CB*A()'B'*A('C

)z,y,x/()z()y()x(C*)B*A()C,B,A(R

C21

C

2w

B'By

1w

A'Ax

CBA'B'Ay,x

CBA'B'Ay,x'C

2premise1premise

CBZ*Y*X

Amamdani

µ∧∧=

µ∧

µ∧µ∨∧µ∧µ∨=

µ∧µ∧µ∧µ∧µ∨=

µ∧µ∧µ∧µ∧µ∨=µ

→=

µ∧µ∧µ== ∫

444 3444 21444 3444 21

4434421o

43421

A BT-norm

X Y

w

A’ B’ C2

Z

C’

ZX Y

A’ B’

x is A’ y is B’ z is C’

w1

w2

Page 23: Chapter 3: Fuzzy Rules & Fuzzy Reasoning513].pdf · CH. 3: Fuzzy rules & fuzzy reasoning 1 Chapter 3: Fuzzy Rules & Fuzzy Reasoning ... Application of the extension principle to fuzzy

CSE 513 Soft Computing Dr. Djamel Bouchaffra

CH. 3: Fuzzy rules & fuzzy reasoning 23

– 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’2Where C’1 & C’2 are the inferred fuzzy set for rules 1 & 2 respectively

Fuzzy Reasoning (3.4) (cont.)

A1 B1

A2 B2

T-norm

X

X

Y

Y

w1

w2

A’

A’ B’

B’ C1

C2

Z

Z

C’

ZX Y

A’ B’

x is A’ y is B’ z is C’