11 Fuzzy Rule-Based Models Fuzzy Systems Engineering Toward - - PowerPoint PPT Presentation

11 fuzzy rule based models
SMART_READER_LITE
LIVE PREVIEW

11 Fuzzy Rule-Based Models Fuzzy Systems Engineering Toward - - PowerPoint PPT Presentation

11 Fuzzy Rule-Based Models Fuzzy Systems Engineering Toward Human-Centric Computing Contents 11.1 Fuzzy rules as a vehicle of knowledge representation 11.2 General categories of fuzzy rules and their semantics 11.3 Syntax of fuzzy rules 11.4


slide-1
SLIDE 1

11 Fuzzy Rule-Based Models

Fuzzy Systems Engineering Toward Human-Centric Computing

slide-2
SLIDE 2

11.1 Fuzzy rules as a vehicle of knowledge representation 11.2 General categories of fuzzy rules and their semantics 11.3 Syntax of fuzzy rules 11.4 Basic functional modules 11.5 Types of rule-based systems and architectures 11.6 Approximation properties of fuzzy rule-based models 11.7 Development of rule-based systems

Contents

Pedrycz and Gomide, FSE 2007

slide-3
SLIDE 3

11.8 Parameter estimation procedure for functional rule-based systems 11.9 Design of rule-based systems: consistency, completeness and the curse of dimensionality 11.10 Course of dimensionality in rule-based systems 11.11 Development scheme of fuzzy rule-based models

Pedrycz and Gomide, FSE 2007

slide-4
SLIDE 4

11.1 Fuzzy rules as a vehicle of knowledge representation

Pedrycz and Gomide, FSE 2007

slide-5
SLIDE 5

Rule ≡ conditional statement

If 〈 input variable is A 〉 then 〈 output variable is B 〉 – A and B: descriptors of pieces of knowledge – rule: expresses a relationship between inputs and outputs Example – If 〈 the temperature is high 〉 then 〈 the electricity demand is high 〉 If and then parts 〈.......〉 formed by information granules – sets – rough sets – fuzzy sets

Pedrycz and Gomide, FSE 2007

slide-6
SLIDE 6

Rule-based system/model (FRBS)

FRBS is a family of rules of the form If 〈 input variable is Ai 〉 then 〈 output variable is Bi 〉 i = 1, 2,..., c Ai and Bi are information granules More complex rules If 〈 input variable1 is Ai 〉 and 〈 input variable2 is Bi 〉 and ..... then 〈 output variable is Zi 〉

– multidimensional input space (Cartesian product of inputs) – individual inputs aggregated by the and connective – highly parallel, modular granular model

Pedrycz and Gomide, FSE 2007

slide-7
SLIDE 7

11.2 General categories of fuzzy rules and their semantics

Pedrycz and Gomide, FSE 2007

slide-8
SLIDE 8

Multi-input multi-output fuzzy rules

If X1 is A1 and X2 is A2 and ..... and Xn is An then Y1 is B1 and Y2 is B2 and ..... and Ym is Bm Xi = variables whose values are fuzzy sets Ai Yj = variables whose values are fuzzy sets Bj Ai on Xi, i = 1, 2,...,n Bj on Yj, j = 1, 2,...,m No loss of generality if we assume rules of the form If X is A and Y is B then Z is C

Pedrycz and Gomide, FSE 2007

slide-9
SLIDE 9

Certainty-qualified rules

If X is A and Y is B then Z is C with certainty µ µ ∈[0,1] µ : degree of certainty of the rule µ = 1 rule is certain

Pedrycz and Gomide, FSE 2007

slide-10
SLIDE 10

Gradual rules

the more X is A the more Y is B – relationships between changes in X and Y – captures tendency between information granules

Examples:

the higher the income, the higher the taxes the lower the temperature, the higher energy consumption

Pedrycz and Gomide, FSE 2007

slide-11
SLIDE 11

Functional fuzzy rules

If X is Ai then y = f (x,ai) f : X → Y x∈Rn Rule: confines the function to the support of granule Ai f : linear or nonlinear (neural nets, etc..) Highly modular models

Pedrycz and Gomide, FSE 2007

slide-12
SLIDE 12

11.3 Syntax of fuzzy rules

Pedrycz and Gomide, FSE 2007

slide-13
SLIDE 13

Backus-Naur form (BNF)

〈 If_then_rule〉 ::= if 〈antecedent〉 then 〈consequent〉{〈certainty〉} 〈gradual_rule 〉 ::= 〈word〉 〈antecedent〉〈word〉 〈consequent〉 〈word〉 ::= 〈more〉 {〈less〉} 〈antecedent〉 ::= 〈expression〉 〈consequent〉 ::= 〈expression〉 〈expression〉 ::= 〈disjunction〉{and 〈disjunction〉} 〈disjunction〉 ::= 〈variable〉{or〈variable〉} 〈variable〉 ::= 〈attribute〉 is 〈value〉 〈certainty〉 ::= 〈none〉{certainty µ∈[0,1]}

Pedrycz and Gomide, FSE 2007

slide-14
SLIDE 14

Construction of computable representations

Main steps:

  • 1. specification of the fuzzy variables to be used
  • 2. association of the fuzzy variables using fuzzy sets
  • 3. computational formalization of each rule using fuzzy

relations and definition of aggregation operator to combine rules together

Pedrycz and Gomide, FSE 2007

slide-15
SLIDE 15

11.4 Basic functional modules of FRBS

Pedrycz and Gomide, FSE 2007

slide-16
SLIDE 16

Input Interface Rule Base Data Base Fuzzy Inference Output Interface X Y

General architecture of FRBS

Fuzzy if-then rules (input-output relationship) Parameters

  • f the FRBS

Process inputs and rules (approximate reasoning)

Pedrycz and Gomide, FSE 2007

slide-17
SLIDE 17

Input interface

(attribute) of (input) is (value) the temperature of the motor is high Canonical (atomic) form p: X is A temperature (motor) is high X A fuzzy set

Low Medium High x (°C)

Pedrycz and Gomide, FSE 2007

slide-18
SLIDE 18

Multiple fuzzy inputs: conjunctive canonical form

p : X1 is A1 and X2 is A2 and ..... and Xn is An conjunctive canonical form Xi are fuzzy (linguistic) variables Ai : fuzzy sets on Xi i = 1, 2, ..., n Compound proposition induces a fuzzy relation P on X1×X1×... Xn

) ( ) ( ) ( ) ( ) (

1 2 2 1 1 2 1 i i n i n n n

x A T x tA t x tA x A x , , x , x P

=

= =

  • p : (X1, X2 , ....., Xn) is P

t (T) = t-norm

Pedrycz and Gomide, FSE 2007

slide-19
SLIDE 19

5 10 10 20

x y (b) Contours of P

Example

Fuzzy relation associated with (X,Y) is P Triangular fuzzy sets A1(x,4,5,6) = A, A2(y,8,10,12) = B t-norm: algebraic product

P

Pedrycz and Gomide, FSE 2007

slide-20
SLIDE 20

q : X1 is A1 or X2 is A2 or ..... or Xn is An disjunctive canonical form Xi are fuzzy (linguistic) variables Ai : fuzzy sets on Xi i = 1, 2, ..., n Compound proposition induces a fuzzy relation Q on X1×X1×... Xn

) ( ) ( ) ( ) ( ) (

1 2 2 1 1 2 1 i i n i n n n

x A S x sA s x sA x A x , , x , x Q

=

= =

  • q : (X1, X2 , ....., Xn) is Q

s (S) = t-conorm

Multiple fuzzy inputs: disjunctive canonical form

Pedrycz and Gomide, FSE 2007

slide-21
SLIDE 21

Example

Fuzzy relation associated with (X,Y) is Q Triangular fuzzy sets A1(x,4,5,6) = A, A2(y,8,10,12) = B t-conorm: probabilistic sum

Q

5 10 10 20

x y (d) Contours of Q

Pedrycz and Gomide, FSE 2007

slide-22
SLIDE 22

Rule base

Fuzzy rule: If X is A then Y is B ≡ relationship between X and Y Semantics of the rule is given by a fuzzy relation R on X×Y R determined by a relational assignment R(x,y) = f (A(x),B(y)) ∀(x, y)∈X×Y f : [0,1]2 → [0,1] In general f can be – fuzzy conjunction: ft – fuzzy disjunction: fs – fuzzy implication: fi

Pedrycz and Gomide, FSE 2007

slide-23
SLIDE 23

Choose a t-norm t and define: R(x,y) ≡ ft (x,y) = A(x) t B(y) ∀(x,y) ∈ X×Y Examples:

  • t = min

Rc(x,y) ≡ fc (x,y) = min[A(x) t B(y)] (Mamdani)

  • t = algebraic product

Rp(x,y) ≡ fp (x,y) = A(x)B(y) (Larsen)

Fuzzy conjunction

Pedrycz and Gomide, FSE 2007

slide-24
SLIDE 24

Rc(x,y) = min {a, b} ∀ (a, b)∈[0,1]2 Rc(x,y) = min {A(x), B(y)} ∀ (A(x), B(y))∈[0,1]2

Example: t = min

Pedrycz and Gomide, FSE 2007

A(x) = A(x,4,5,6), B(y) = B(y,4,5,6)

slide-25
SLIDE 25

Rp(x,y) =ab ∀ (a, b)∈[0,1]2 Rp(x,y) = A(x)B(y) ∀ (a, b)∈[0,1]2

Example: t = algebraic product

Pedrycz and Gomide, FSE 2007

A(x) = A(x,4,5,6), B(y) = B(y,4,5,6)

slide-26
SLIDE 26

Choose a t-conorm s and define: Rs(x,y) ≡ fs (x,y) = A(x) s B(y) ∀(x,y) ∈ X×Y Examples:

  • s = max

Rm(x,y) ≡ fm (x,y) = max[A(x), B(y)]

  • s = Lukasiewicz t-conorm

R (x,y) ≡ f (x,y) = min[1, A(x) + B(y)]

Fuzzy disjunction

Pedrycz and Gomide, FSE 2007

slide-27
SLIDE 27

Example: s = max

Rm (x,y) = max{A(x), B(y)} ∀ (A(x), B(y))∈[0,1]2 Rm (x,y) = max {A(x), B(y)} A(x) = A(x,4,5,6) B(y) = B(y,4,5,6)

Pedrycz and Gomide, FSE 2007

slide-28
SLIDE 28

Example: s = Lukasiewicz

R (x,y) = min{1, A(x)+B(y)} ∀ (A(x), B(y))∈[0,1]2 R (x,y) = min{1, A(x)+B(y)} A(x) = A(x,4,5,6) B(y) = B(y,4,5,6)

Pedrycz and Gomide, FSE 2007

slide-29
SLIDE 29

Fuzzy implication

Choose a fuzzy implication fi and define:

Ri(x,y) ≡ fi (x,y) ∀(x,y) ∈ X×Y

fi : [0,1]2 → [0,1] is a fuzzy implication if:

  • 1. B(y1) ≤ B(y2) ⇒ fi (A(x), B(y1)) ≤ fi (A(x), B(y2))

monotonicity 2nd argument

  • 2. fi (0, B(y)) = 1

dominance of falsity

  • 3. fi (1, B(y)) = B(y)

neutrality of truth

Pedrycz and Gomide, FSE 2007

slide-30
SLIDE 30

Further requirements may include:

  • 4. A(x1) ≤ A(x2) ⇒ fi (A(x1), B(y)) ≥ fi (A(x2), B(y))

monotonicity 1st argument

  • 5. fi (A(x1), fi (A(x2), B(y)) = fi (A(x2), fi (A(x1), B(y))

exchange

  • 6. fi (A(x), A(x)) = 1

identity

  • 7. fi (A(x), B(y)) = 1 ⇔ A(x) ≤ B(y)

boundary condition

  • 8. fi is a continuous function

continuity

Pedrycz and Gomide, FSE 2007

slide-31
SLIDE 31

      λ + + λ + − =

λ

) ( 1 ) ( ) 1 ( ) ( 1 1 min )) ( ) ( ( x A y B x A , y B , x A f ] ) ) ( ) ( 1 ( 1 [ min )) ( ) ( (

1 w / w w w

y B x A , y B , x A f + − =    ≤ =

  • therwise

) ( ) ( if 1 )) ( ) ( ( y B x A y B , x A fa    ≤ =

  • therwise

) ( ) ( ) ( if 1 )) ( ) ( ( y B y B x A y B , x A fg      ≤ =

  • therwise

) ( ) ( ) ( ) ( if 1 )) ( ) ( ( x A y B y B x A y B , x A fe )] ( ) ( 1 [ max )) ( ) ( ( y B , x A y B , x A fb − = Name Definition Comment Lukasiewicz f(A(x), B(y)) = min [1, 1 − A(x) + B(y)] Pseudo-Lukasiewicz λ > -1 Pseudo-Lukasiewicz w > 0 Gaines Gödel Goguen Kleene Reichenbach Zadeh Klir-Yuan )] ( ) ( ) ( 1 )) ( ) ( ( y B x A x A y B , x A fr + − = ))] ( ) ( ( min ) ( 1 [ max )) ( ) ( ( y B , x A , x A y B , x A fz − = ) ( ) ( ) ( 1 )) ( ) ( (

2

y B x A x A y B , x A fk + − =

Examples of fuzzy implications

Pedrycz and Gomide, FSE 2007

slide-32
SLIDE 32

Example: f = Lukasiewicz

R (x,y) = min{1, 1– A(x)+B(y)} ∀ (A(x), B(y))∈[0,1]2 R (x,y) = min{1, 1– A(x)+B(y)} A(x) = A(x,4,5,6) B(y) = B(y,4,5,6)

Pedrycz and Gomide, FSE 2007

slide-33
SLIDE 33

Example: fk = Klir–Yuan

Rk (x,y) = 1– A(x)+A(x)2B(y) ∀ (A(x), B(y))∈[0,1]2 Rk (x,y) = 1– A(x)+A(x)2B(y) A(x) = A(x,4,5,6) B(y) = B(y,4,5,6)

Pedrycz and Gomide, FSE 2007

slide-34
SLIDE 34

Categories of fuzzy implications:

  • 1. s-implications

z Lukasiewic )} ( ) ( 1 1 min{ )) ( ), ( ( Kleene )] ( ) ( 1 max[ )) ( ), ( ( ) ( ) ( ) ( )) ( ), ( ( y B x A , y B x A f y B , x A y B x A f y , x y sB x A y B x A f

g b is

+ − = − = × ∈ ∀ = Y X

  • 2. r-implications

Gödel ) ( ) ( ) ( ) ( ) ( if 1 )) ( ), ( ( min ) ( )] ( ) ( | ] 1 [ sup[ )) ( ), ( (    > ≤ = = × ∈ ∀ ≤ ∈ = y B x A y B y B x A y B x A f t y , x y B c t x A , c y B x A f

g ir

Y X

Pedrycz and Gomide, FSE 2007

slide-35
SLIDE 35

Semantics of gradual rules

x A(x) B(y) y 1.0 1.0 BRd

the more X is A, the more Y is B ⇒ B(y) ≥ A(x) ∀x∈X and ∀y∈Y BRd = {y∈Y |B(y) ≥ A(x)} for each x∈X

Pedrycz and Gomide, FSE 2007

slide-36
SLIDE 36

Example: Rd = fa = Gaines

   ≥ =

  • therwise

) ( ) ( if 1 ) , ( x A y B y x Rd

Rd(x,y) ∀ (A(x), B(y))∈[0,1]2 Rd (x,y) A(x) = A(x,3,5,7) B(y) = B(y,3,5,7)

0.2 0.4 0.6 0.8 1 0.5 1 0.2 0.4 0.6 0.8 1

A(x) (a) Gradual rule Rd = fa B(y)

Pedrycz and Gomide, FSE 2007

slide-37
SLIDE 37

Main types of rule bases

Fuzzy rule base ≡ {R1, R2,....,RN} ≡ finite family of fuzzy rules Fuzzy rule base can assume various formats:

  • 1. fuzzy graph

Ri: If X is Ai then Y is Bi is a fuzzy granule in X×Y, i = 1,...,N

  • 2. fuzzy implication rule base

Ri: If X is Ai then Y is Bi is fuzzy implication, i = 1,...,N

  • 3. functional fuzzy rule base

Ri: If X is Ai then y = fi(x) is a functional fuzzy rule, i = 1,...,N

Pedrycz and Gomide, FSE 2007

slide-38
SLIDE 38

Fuzzy graph

Fuzzy rule base R ≡ collection of rules R1, R2,....,RN Each fuzzy rule Ri is a fuzzy granule (point) Fuzzy graph ≡ R is a collection of fuzzy granules – granular approximation of a function – R = R1 or R2 or....or RN – general form

) (

1 1 i N i i N i i

B A R R × = =

= =

  • )]

( ) ( [ ) , (

1

y tB x A S y x R

i i N i=

=

Pedrycz and Gomide, FSE 2007

slide-39
SLIDE 39

Point

2 4 6 8 10 2 4 6 8 10

x (b) P

2 4 6 8 10 1

x A(x) (c) A

2 4 6 8 10 1

(a) B(y) B y

Point P in X×Y P = A×B A is a singleton in X B is a singleton in Y

Pedrycz and Gomide, FSE 2007

slide-40
SLIDE 40

Granule

2 4 6 8 10 2 4 6 8 10

x y (b) G

2 4 6 8 10 1

x A(x) (c) A

2 4 6 8 10 1

(a) B(y) B

Granule G in X×Y G = A×B A is an interval in X B is an interval in Y

Pedrycz and Gomide, FSE 2007

slide-41
SLIDE 41

Fuzzy granules ≡ fuzzy points

5 10 2 4 6 8 10

x y R (b) Fuzzy granule R

2 4 6 8 10 1

x A(x) (c) A

2 4 6 8 10 1

(a) B(y) B

fuzzy granule R in X×Y R = A×B A is a fuzzy set on X B is a fuzzy set on Y

Pedrycz and Gomide, FSE 2007

slide-42
SLIDE 42

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 x (b) Fuzzy granules Ri R1 R2 R3 R4 R5 y 2 4 6 8 10 1 x (c) A1 A2 A3 A4 A5 2 4 6 8 10 1 (a) B(y) B1 B2 B3 B4 B5 y

Fuzzy rule base as a set fuzzy granules

Ri = Ai×Bi

Pedrycz and Gomide, FSE 2007

slide-43
SLIDE 43

2 4 6 8 10 12 2 4 6 8 10 12

x y (a) function y = f(x) f

1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12

x y (b)Granular approximation of y = f(x) R R1 R2 R3 R4 R5 R6 R7 R8

Graph of a function f and its granular approximation R

f R

Ri = Ai×Bi

Pedrycz and Gomide, FSE 2007

slide-44
SLIDE 44

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x (b)Fuzzy rule base as a fuzzy graph (t = min) R = Union Ri y

Fuzzy rule base and fuzzy graph Example 1

Ri = Ai×Bi ⇒ Ri(x,y) = min [Ai(x), Bi(y)] R = ∪ Ri ⇒ R(x,y) = max [Ri(x,y), i = 1,..., N ]

Pedrycz and Gomide, FSE 2007

slide-45
SLIDE 45

Fuzzy rule base and fuzzy graph Example 2

Ri = Ai t Bi ⇒ Ri(x,y) = Ai(x) Bi(y) R = ∪ Ri ⇒ R(x,y) = max [Ri(x,y), i = 1,..., N ]

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x (d) Fuzzy rule base as a fuzzy graph (t = product) R = Union Ri y

Pedrycz and Gomide, FSE 2007

slide-46
SLIDE 46

Fuzzy implication

  • Fuzzy rule base R ≡ collection of rules R1, R2,....,RN
  • Each fuzzy rule Ri is a fuzzy implication
  • Fuzzy rule base R is a collection of fuzzy relations
  • relation R is obtained using intersection
  • R = R1 and R2 and....and RN
  • general form

) (

1 1 1 i N i i N i i N i i

B A f R R

  • =

= =

⇒ = = = )) ( ) ( (

1

y B , x A f T R

i i i N i=

=

Pedrycz and Gomide, FSE 2007

slide-47
SLIDE 47

Fuzzy rule as an implication

2 4 6 8 10 2 4 6 8 10

x y (b) Lukasiewicz implication R R

2 4 6 8 10 1

x A(x) (c) A

2 4 6 8 10 1

(a) B(y) B

fuzzy rule R in X×Y R = f (A,B) Lukasiewicz implication

Pedrycz and Gomide, FSE 2007

slide-48
SLIDE 48

Fuzzy rule base and fuzzy implication Example 1a

Ri = f (A,B) ⇒ Ri(x,y) = min [1, 1 – Ai(x) + Bi(y)] Lukasiewicz implication R = ∩ Ri ⇒ R(x,y) = min [Ri(x,y), i = 1,..., 5] min t-norm

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x y (b) Fuzzy rule base as Lukasiewicz implication (t = min)

Pedrycz and Gomide, FSE 2007

slide-49
SLIDE 49

Fuzzy rule base and fuzzy implication Example 1b

Ri = f (A,B) ⇒ Ri(x,y) = min [1, 1 – Ai(x) + Bi(y)] Lukasiewicz implication R = ∩ Ri ⇒ R(x,y) = R1(x,y) tl R2(x,y) tl .... tl Ri(x,y) Lukasiewicz t-norm

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x y (b) Fuzzy rule base as Lukasiewicz implication (t = min)

Pedrycz and Gomide, FSE 2007

slide-50
SLIDE 50

Fuzzy rule base and fuzzy implication Example 2a

Ri = fz (A,B) ⇒ Ri(x,y) = max [1 – Ai(x), min(Ai(x), Bi(y)] Zadeh implication R = ∩ Ri ⇒ R(x,y) = min [Ri(x,y), i = 1,..., 5] min t-norm

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x y (b) Fuzzy rule base as Zadeh implication (t = min)

Pedrycz and Gomide, FSE 2007

slide-51
SLIDE 51

Fuzzy rule base and fuzzy implication Example 2b

Ri = fz (A,B) ⇒ Ri(x,y) = max [1 – Ai(x), min(Ai(x), Bi(y)] Zadeh implication R = ∩ Ri ⇒ R(x,y) = R1(x,y) tl R2(x,y) tl .... tl Ri(x,y) Lukasiewicz t-norm

1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

x y (d) Fuzzy rule base as Zadeh implication (t = Lukasiewicz)

Pedrycz and Gomide, FSE 2007

slide-52
SLIDE 52

Data base

Data base contains definitions of: – universes – scaling functions of input and output variables – granulation of the universes membership functions Granulation – granular constructs in the form of fuzzy points – granules along different regions of the universes Construction of membership functions – expert knowledge – learning from data

Pedrycz and Gomide, FSE 2007

slide-53
SLIDE 53

Granulation

X X

granular constructs in the form of fuzzy points granules along different regions of the universes

Pedrycz and Gomide, FSE 2007

slide-54
SLIDE 54

Fuzzy inference

Basic idea of inference

2 4 6 8 10 12 2 4 6 8 10 12

x y (a) I ac f a b

x = a y = f (x) y = b b = ProjY (ac ∩ f ) ⇓ b = ProjY ( I )

Pedrycz and Gomide, FSE 2007

slide-55
SLIDE 55

Inference involves operations with sets

x = A y = f (x) B = f (A) ={f (x), x∈A} B = ProjY (Ac ∩ f ) ⇓ B = ProjY ( I )

2 4 6 8 10 12 2 4 6 8 10 12

x y (b) I Ac A a b B c d

f Pedrycz and Gomide, FSE 2007

slide-56
SLIDE 56

Inference involving sets and relations

x is A (x,y) is R y is B B = ProjY (Ac ∩ R ) ⇓ B = ProjY ( I )

f

2 4 6 8 10 12 2 4 6 8 10 12

x y (a) I Ac R A B

Pedrycz and Gomide, FSE 2007

slide-57
SLIDE 57

Fuzzy inference ands operations with fuzzy sets and relations

X is A (fuzzy set on X) (X,Y) is R (fuzzy relation on X×Y) Y is B (fuzzy set on Y) B = ProjY (Ac ∩ R ) ⇓ B = ProjY ( I )

f

2 4 6 8 10 12 2 4 6 8 10 12

x y (b) A B R I Ac

)} ( ) ( { sup ) ( y , x tR x A y B

x X ∈

=

Pedrycz and Gomide, FSE 2007

slide-58
SLIDE 58

Fuzzy inference

Compositional rule of inference X is A (X,Y) is R Y is B X is A (X,Y) is R Y is AoR

R A B

  • =

Pedrycz and Gomide, FSE 2007

slide-59
SLIDE 59

procedure FUZZY-INFERENCE (A, R) returns a fuzzy set input : fuzzy relation: R fuzzy set: A local: x, y: elements of X and Y t: t-norm for all x and y do Ac(x,y) ← A(x) for all x and y do I(x,y) ← Ac(x,y) t R(x,y) B(y) ← supx I(x,y) return B

Fuzzy inference procedure

Pedrycz and Gomide, FSE 2007

slide-60
SLIDE 60

Example: compositional rule of inference

Pedrycz and Gomide, FSE 2007

slide-61
SLIDE 61

Example: fuzzy inference with fuzzy graph

Pedrycz and Gomide, FSE 2007

slide-62
SLIDE 62

11.5 Types of rule-based systems and architectures

Pedrycz and Gomide, FSE 2007

slide-63
SLIDE 63

Linguistic fuzzy models

P: X is A and Y is B input R1: If X is A1 and Y is B1 then Z is C1 ...................... Ri: If X is Ai and Y is Bi then Z is Ci rule base ....................... RN: If X is AN and Y is BN then Z is CN Z: Z is C

  • utput

all fuzzy sets A, B, Ai,s and Bi,s are given rule and connectives (and, or) with known semantics membership function of fuzzy set C = ??

Pedrycz and Gomide, FSE 2007

slide-64
SLIDE 64

min-max models

Assume P: X is A and Y is B P(x,y) = min{A(x), B(y)} Ri: If X is Ai and Y is Bi then Z is Ci Ri(x,y,z) = min{Ai(x), Bi(y), Ci(z)} i = 1,..., N

)]} 1 ), ( max( ), ( {min[ sup ) (

1

,...,N i z , y , x R y , x P z C R P R P C

i y , x N i i

= = = =

=

  • Using the compositional rule of inference (t = min)

Pedrycz and Gomide, FSE 2007

slide-65
SLIDE 65

rule th i

  • f

activation

  • f

degree the is } 1 ), ( max{ } 1 ) max{( ) ( ) ( ) ( ) Poss( )] ( ) ( [ sup ) Poss( )] ( ) ( [ sup )]} ( ) ( ) ( ) ( ) ( { sup )]} ( ), ( {min[ sup ) ( ) (

1 1 1

− = ∧ = = ∧ = ∧ ∧ = ′ = = ∧ = = ∧ ∧ ∧ ∧ ∧ = = ′ = ′ ′ = = = =

= = = i i i i i i i i i i i i i y i i i x i i i y , x i y , x i i i N i i N i i N i i

λ N , , i z C λ N , , i , C n m z C z C n m z C n B , B y B y B m A , A x A x A z C y B x A y B x A z , y , x R y , x P z C R P C C R P R P R P C

  • Pedrycz and Gomide, FSE 2007
slide-66
SLIDE 66

procedure MIN-MAX-MODEL (A,B) returns a fuzzy set local: fuzzy sets: Ai, Bi, Ci, i =1,.., N activation degrees: λi Initialization C = ∅ for i = 1: N do mi = max (min (A, Ai)) ni = max (min (B, Bi)) λi = min (mi, ni) if λi ≠ 0 then Ci

’ = min (λi , Ci) and C = max(C, Ci ’)

return C

min-max fuzzy model processing

Pedrycz and Gomide, FSE 2007

slide-67
SLIDE 67

Example: min-max fuzzy model processing

Ai Aj Bi Bj A B

mi mj ni nj

Ci Cj

1 1 1 nj mi Ci

Cj

x y z

Pedrycz and Gomide, FSE 2007

slide-68
SLIDE 68

min-max fuzzy model architecture

Poss λ1 Min Max A1,B1 C1 Poss λi Min Ai,Bi Ci Poss λN Min AN,BN CN C (A,B) Ci

CN

C1

Pedrycz and Gomide, FSE 2007

slide-69
SLIDE 69

Special case: numeric inputs

   = =    = =

  • therwise

if 1 ) (

  • therwise

if 1 ) (

  • y

y y B and x x x A

Numeric output

i N i i i N i i i i

v n m v n m z dz z C dz z zC z values modal average weighted ) ( ) ( ation defuzzific centroid ) ( ) (

1 1

∑ ∑ ∫ ∫

= =

∧ ∧ = =

Z Z

Pedrycz and Gomide, FSE 2007

slide-70
SLIDE 70

Example

P: X is xo and Y is yo inputs (xo, yo), ∀xo, yo ∈[-2, 2] R1: If X is A1 and Y is B1 then Z is C1 rules R2: If X is A2 and Y is B2 then Z is C2 N = 2, centroid defuzzification

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

x Ai(x) A1 A2

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

y Bi(y) B2 B2 (a) Input and output fuzzy sets

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

z Ci(z) C1 C2

  • 2
  • 1

1 2

  • 2
  • 1

1 2

  • 0.5

0.5

x (b) Input-output mapping y z

Pedrycz and Gomide, FSE 2007

slide-71
SLIDE 71

min-sum models

Assume P: X is A and Y is B P(x,y) = min{A(x), B(y)} Ri: If X is Ai and Y is Bi then Z is Ci Ri(x,y,z) = min{Ai(x), Bi(y), Ci(z)} i = 1,..., N

=

′ = ∧ ∧ ∧ ∧ = ′

N i i i i i i y , x i

C w z C z C y B x A y B x A z C

1

) ( )] ( ) ( ) ( ) ( ) ( [ sup ) (

Using the compositional rule of inference (t = min) Additive fuzzy models (Kosko, 1992)

Pedrycz and Gomide, FSE 2007

slide-72
SLIDE 72

Example: min-sum fuzzy model processing

Ai Aj Bi Bj A B

mi mj ni nj

Ci Cj

1 1 1 nj mi Ci

Cj

x y z ∑Ci

Pedrycz and Gomide, FSE 2007

slide-73
SLIDE 73

min-sum fuzzy model architecture

Poss λ1 Min ∑ A1,B1 C1 Poss λi Min Ai,Bi Ci Poss λN Min AN,BN CN C (A,B) wi w1 wN CN’ C1’ Ci’

Pedrycz and Gomide, FSE 2007

slide-74
SLIDE 74

Example

P: X is xo and Y is yo inputs (xo, yo), ∀xo, yo ∈[-2, 2] R1: If X is A1 and Y is B1 then Z is C1 rules R2: If X is A2 and Y is B2 then Z is C2 N = 2 w1 = w2 = 1, centroid defuzzification

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

x Ai(x) A1 A2

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

y Bi(y) B2 B2 (a) Input and output fuzzy sets

  • 2
  • 1.5
  • 1
  • 0.5

0.5 1 1.5 2 0.5 1

z Ci(z) C1 C2

  • 2
  • 1

1 2

  • 2
  • 1

1 2

  • 0.5

0.5

x (b) Input-output mapping y z

Pedrycz and Gomide, FSE 2007

slide-75
SLIDE 75

product-sum models

1- Product–probabilistic sum

) ( ) ( ) ( ) (

1

z C S z C z C n m z C

i N i p i i i i

′ = = ′

=

2- Product–sum

=

′ = = ′

N i i i i i i

z C z C z C n m z C

1

) ( ) ( ) ( ) (

  • 2
  • 1

1 2

  • 2
  • 1

1 2

  • 0.5

0.5 x (b) Input-output mapping of product-probabilistic sum model y z

  • 2
  • 1

1 2

  • 2
  • 1

1 2

  • 0.5

0.5 x (d) Input-output mapping of product-sum model y z

Pedrycz and Gomide, FSE 2007

slide-76
SLIDE 76

3 - Bounded product-bounded sum

] 1 [ } 1 min{ } 1 max{ ) ( ) ( ) ( ) (

1

, a,b b a , b a b a , b a z C z C z C n m z C

i N i i i i i

∈ + = ⊕ − + = ⊗ ′ ⊕ = ⊗ ⊗ = ′

=

  • 2
  • 1

1 2

  • 2
  • 1

1 2

  • 1
  • 0.5

0.5 1

x (c) Input-output mapping of bounded product-bounded sum model y z

Pedrycz and Gomide, FSE 2007

slide-77
SLIDE 77

Functional fuzzy models

P: X is x and Y is y input R1: If X is A1 and Y is B1 then z = f1 (x,y) ...................... Ri: If X is Ai and Y is Bi then z = fi (x,y) rule base ....................... RN: If X is AN and Y is BN then z = fN (x,y) λi(x,y) = Ai(x) t Bi(y) t = t-norm degree of activation

  • utput

∑ ∑

= =

= =

N i i i i N i i i

y , x λ λ w , y , x f y , x w z

1 1

) ( ) ( ) (

Pedrycz and Gomide, FSE 2007

slide-78
SLIDE 78

Functional fuzzy model architecture

⊗ w1 f1(x,y) ∑ A1,B1 wi Ai,Bi wN AN,BN z (x,y) f2(x,y) fN(x,y) ⊗ ⊗ × × ×

Pedrycz and Gomide, FSE 2007

slide-79
SLIDE 79

Example 1

P: X is x inputs x ∈ [0, 3] R1: If X is A1 then z = x rules R2: If X is A2 then z = – x + 3

0.5 1 1.5 2 2.5 3 0.2 0.4 0.6 0.8 1 1.2 x Ai A1 A2 (a) Antecedent fuzzy sets 0.5 1 1.5 2 2.5 3 0.5 1 1.5 2 2.5 3 f1 f2 x y (b) Consequent functions

Pedrycz and Gomide, FSE 2007

slide-80
SLIDE 80

     ∈ + − ∈ + − + ∈ = ) 3 2 [ if 3 ] 2 1 [ if ) 3 )( ( ) ( ] 1 ( if

2 1

, x x , x x x A x x A , x x z

0.5 1 1.5 2 2.5 3 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

x y (b) Output of the functional model

  • utput

Pedrycz and Gomide, FSE 2007

slide-81
SLIDE 81

Example 2

P: X is x inputs x ∈ [0, 3] R1: If X is A1 then y = – sin(2x) R2: If X is A2 then y = – 0.5x rules R3: If X is A3 then y = sin(3x)

  • 5
  • 4
  • 3
  • 2
  • 1

1 2 3 4 5 0.2 0.4 0.6 0.8 1 1.2 A1 A2 A3 (a) Antecedent fuzzy sets x y

  • 5
  • 4
  • 3
  • 2
  • 1

1 2 3 4 5

  • 1.5
  • 1
  • 0.5

0.5 1 1.5 (b) output of the functional fuzzy model y x

  • utput

Pedrycz and Gomide, FSE 2007

slide-82
SLIDE 82

Example 2

P: X is x inputs x ∈ [0, 3] R1: If X is A1 then y = – 1 R2: If X is A2 then y = x rules R3: If X is A3 then y = 1

  • 5
  • 4
  • 3
  • 2
  • 1

1 2 3 4 5 0.2 0.4 0.6 0.8 1 1.2 A1 A2 A3 (a) Antecedent fuzzy sets x y

  • 5
  • 4
  • 3
  • 2
  • 1

1 2 3 4 5

  • 1.5
  • 1
  • 0.5

0.5 1 1.5 x y (c) output of the functional fuzzy model

  • utput

Pedrycz and Gomide, FSE 2007

slide-83
SLIDE 83

Gradual fuzzy models

Ri: The more X is Ai the more Z is Ci i = 1,..., N

  • N

i N i i i i i

i i

C C C x A z C y x R

1 1

) (

  • therwise

) ( ) ( if 1 ) , (

= α α =

= ′ =    ≥ =

Pedrycz and Gomide, FSE 2007

slide-84
SLIDE 84

Gradual fuzzy model architecture

Poss α1 Cα1 Min A1 C1 Poss αi Ai Ci Poss αN AN CN C x Ci

CN

C1

Cα1 Cα1

Pedrycz and Gomide, FSE 2007

slide-85
SLIDE 85

x z

A1 A2

α2 α1

C1 C2

1 1 α1 α2 C1

C2

Example: gradual fuzzy model processing

Pedrycz and Gomide, FSE 2007

slide-86
SLIDE 86

Example

P: X is x inputs x ∈ [0, 3] R1: The more X is A1 the more Z is C1 rules R2: The more X is A1 the more Z is C1

1 1.5 2 2.5 3 3.5 4 0.2 0.4 0.6 0.8 1

x Ai A1 A2

1 1.5 2 2.5 3 3.5 4 0.2 0.4 0.6 0.8 1

z Ci C1 C2

1 1.5 2 2.5 3 3.5 4 1 1.5 2 2.5 3 3.5 4

x z

  • utput

Pedrycz and Gomide, FSE 2007

slide-87
SLIDE 87

11.6 Approximation properties

  • f fuzzy rule-based models

Pedrycz and Gomide, FSE 2007

slide-88
SLIDE 88

FRBS uniformly approximates continuous functions – any degree of accuracy – closed and bounded sets Universal approximation with (Wang & Mendel, 1992): – algebraic product t-norm in antecedent – rule semantics via algebraic product – rule aggregation via ordinary sum – Gaussian membership functions – sup-min compositional rule of inference – pointwise inputs – centroid defuzzification

Pedrycz and Gomide, FSE 2007

slide-89
SLIDE 89

Universal approximation when (Kosko, 1992): – min t-norm in antecedent – rule aggregation via ordinary sum – symmetric consequent membership functions – sup-min compositional rule of inference – pointwise inputs – centroid defuzzification (additive models)

Pedrycz and Gomide, FSE 2007

slide-90
SLIDE 90

Universal approximation with (Castro, 1995): – arbitrary t-norm in antecedent – rule semantics: r-implications or conjunctions – triangular or trapezoidal membership functions – sup-min compositional rule of inference – pointwise inputs – centroid defuzzification

Pedrycz and Gomide, FSE 2007

slide-91
SLIDE 91

11.7 Development of rule-based systems

Pedrycz and Gomide, FSE 2007

slide-92
SLIDE 92

Expert-based development

Knowledge provided by domain experts – basic concepts and variables – links between concepts and variables to form rules Reflects existing knowledge – can be readily quantified – short development time

Pedrycz and Gomide, FSE 2007

slide-93
SLIDE 93

Example: fuzzy control

Fuzzy Controller Process r e u y + −

Ri: If Error is Ai and Change of Error is Bi then Control is Ci Ri: If e is Ai and de is Bi then u is Ci

Pedrycz and Gomide, FSE 2007

slide-94
SLIDE 94

Ri: If e is Ai and de is Bi then u is Ci

Change of Error (de) / Error (e) NM NS ZE PS PM NB PM NB NB NB NM NM PM NB NS NM NM NS PM NS Z NS NM Z PM NS Z NS NM PS PM PS Z NS NM PM PM PM PS PM NM PB PM PM PM PM NM

r y t e

Pedrycz and Gomide, FSE 2007

slide-95
SLIDE 95

Data-driven development

Given a finite set of input/output pairs {(xk, yk), k = 1,..., M} xk = [x1k, x2k,...., xnk] ∈Rn zk = [xk, yk] ∈Rn+1, k = 1,..., M Clustering zk = [xk, yk] ∈Rn+1, k = 1,..., M (e.g. using FCM) v1, v2,....,vN prototypes/cluster centers vi ∈ Rn+1, i = 1,..., N Idea: fuzzy clusters ≡ fuzzy rules

Pedrycz and Gomide, FSE 2007

slide-96
SLIDE 96

Example

R1 v1 v2 v3 v4 R2 R3 R4

Pedrycz and Gomide, FSE 2007

slide-97
SLIDE 97

Projecting the prototypes in the input and output spaces v1[y], v2[y],....,vN [y] projections of prototypes in Y v1[x], v2[x],....,vN [x] projections of prototypes in X Ri: If X is Ai then Y is Ci, i = 1,..., N

x y x y

x y

Pedrycz and Gomide, FSE 2007

slide-98
SLIDE 98

11.8 Parameter estimation for functional rule-based systems

Pedrycz and Gomide, FSE 2007

slide-99
SLIDE 99

Functional fuzzy rules Ri: If Xi1 is Ai1 and ... and Xin is Ain then z = aio + ai1x1 + ....+ ainxn i = 1,..., N Given input/output data: {(x1, y1), (x2, y2),....,(xM, yM)} Let ai = [aio, ai1, ai2,...., ain]T Output of functional models Output for linear consequents ∑ ∑

= =

= =

N i k i k i ik N i i k i ik k

x λ x λ w , , f w y ˆ

1 1

) ( ) ( ) ( a x

T T 1 T

] 1 [

k ik ik N i i ik k

w , , y ˆ x z a z = = ∑

=

Pedrycz and Gomide, FSE 2007

slide-100
SLIDE 100

[ ]

            =             =

N Nk k k k N

y ˆ a a a z z z a a a a

  • 2

1 T T 2 T 1 2 1

              =             =

T T 2 T 1 T 2 T 22 T 12 T 1 T 12 T 11 2 1 NM M M N N M

Z y ˆ y ˆ y ˆ z z z z z z z z z y

  • Let

and then y = Za

Pedrycz and Gomide, FSE 2007

slide-101
SLIDE 101

Global least squares approach

Mina JG(a) = || y – Za||2 || y – Za||2 = (y – Za)T (y – Za) Solution aopt = Z# y Z# = (ZT)–1ZT

Pedrycz and Gomide, FSE 2007

slide-102
SLIDE 102

Local least squares approach

Solution aiopt = Zi

# y

Zi

# = (Zi T)–1Zi T

              = − = ∑

= T T 2 T 1 1 2

) ( J Min

iM i i i N i i i L

Z Z z z z a y a

a

  • Pedrycz and Gomide, FSE 2007
slide-103
SLIDE 103

11.9 Design issues of FRBS: Consistency and completeness

Pedrycz and Gomide, FSE 2007

slide-104
SLIDE 104

Given input/output data: {(x1, y1), (x2, y2),....,(xM, yM)}

data consistency completeness accuracy rules Issue: quality of the rules

Pedrycz and Gomide, FSE 2007

slide-105
SLIDE 105

Completeness of rules

All data points represented through some fuzzy set maxi = 1,..., M Ai(xk) > 0 for all k = 1,2,..., M Input space completely covered by fuzzy sets maxi = 1,..., M Ai(xk) > δ for all k = 1,2,..., M

Pedrycz and Gomide, FSE 2007

slide-106
SLIDE 106

Consistency of rules

Rules in conflict – similar or same conditions – completely different conclusions

Conditions and Conclusions Similar Conclusions Different Conclusions Similar Conditions rules are redundant rules are in conflict Different Conditions different rules; could be eventually merged different rules

Pedrycz and Gomide, FSE 2007

slide-107
SLIDE 107

|} ) ( ) ( | | ) ( ) ( {| ) cons(

1 k j k i k j M i k i

x A x A y B y B j , i − ⇒ − = ∑

=

Ri: If X is Ai then Y is Bi Rj: If X is Aj then Y is Bj

⇒ is an implication induced by some t-norm (r-implication)

))} ( ) ( Poss( )) ( ) ( {Poss( ) cons(

1 k j k i k j M i k i

y B , y B x A , x A j , i ⇒ = ∑

=

Alternatively

=

=

N j

j i N i

1

) , cons( 1 ) cons(

Pedrycz and Gomide, FSE 2007

slide-108
SLIDE 108

11.10 The curse of dimensionality in rule-based systems

Pedrycz and Gomide, FSE 2007

slide-109
SLIDE 109

Curse of dimensionality – number of variables increase – exponential growth of the number of rules Example – n variables – each granulated using p fuzzy sets – number of different rules = pn Scalability challenges

Pedrycz and Gomide, FSE 2007

slide-110
SLIDE 110

11.11 Development scheme of fuzzy rule-based models

Pedrycz and Gomide, FSE 2007

slide-111
SLIDE 111

Accuracy Stability Interpretability Knowledge Representation

Spiral model of development – incremental design, implementation and testing – multidimensional space of fundamental characteristics

Pedrycz and Gomide, FSE 2007