Fuzzy Rule Based System

download Fuzzy Rule Based System

of 26

Transcript of Fuzzy Rule Based System

  • 7/27/2019 Fuzzy Rule Based System

    1/26

  • 7/27/2019 Fuzzy Rule Based System

    2/26

    These axioms attempt to capture the basic properties of set intersection.The basic t-norms are:

    minimum: min(a, b) = min {a, b}, ukasiewicz: T L(a, b) = max {a + b1, 0} product: T P (a, b) = ab

    weak: T W (a, b) = min{a, b} if max{a, b}= 10 otherwise Hamacher:

    H (a, b) =ab

    + (1 )(a + bab), 0

    Dubois and Prade:

    D (a, b) =ab

    max{a,b,}, (0, 1)

    Yager:Y p(a, b) = 1 min{1, p [(1 a) p + (1 b) p]}, p > 0

    Frank:

    F (a, b) =

    min

    {a, b

    }if = 0

    T P (a, b) if = 1T L(a, b) if = 1 log 1 +

    (a 1)(b 1) 1

    otherwise

    2

  • 7/27/2019 Fuzzy Rule Based System

    3/26

    All t-norms may be extended, through associativity, to n > 2 arguments.The minimum t-norm is automatically extended and

    T P (a1 , . . . , a n ) = a1 a2 an ,T L(a1 , . . . a n ) = max {

    n

    i=1a i n + 1 , 0}

    A t-norm T is called strict if T is strictly increasing in each argument.

    Triangular co-norms are extensively used to model logical connectives or .

    De nition 2. (Triangular conorm.) A mapping

    S : [0, 1][0, 1] [0, 1],is a triangular co-norm (t-conorm) if it is symmetric, associative, non-decreasing in each argument and S (a, 0) = a , for all a [0, 1]. In other words, any t-conorm S satis es the properties:

    S (x, y) = S (y, x ) (symmetricity)

    S (x, S (y, z )) = S (S (x, y), z ) (associativity)

    S (x, y) S (x , y ) if x x and y y (monotonicity)S (x, 0) = x , x [0, 1] (zero identy)

    If T is a t-norm then the equality

    S (a, b) := 1 T (1 a, 1 b),denes a t-conorm and we say that S is derived from T . The basic t-conorms are:

    3

  • 7/27/2019 Fuzzy Rule Based System

    4/26

    maximum: max(a, b) = max {a, b} ukasiewicz: S L(a, b) = min {a + b,1} probabilistic: S P (a, b) = a + bab strong:

    STRONG (a, b) =max{a, b} if min{a, b}= 01 otherwise

    Hamacher:HOR (a, b) =

    a + b(2 )ab1 (1 )ab

    , 0

    Yager: Y OR p(a, b) = min {1,p a p + b p}, p > 0.

    Lemma 1. Let T be a t-norm. Then the following statement holds

    T W (x, y) T (x, y) min{x, y}, x, y [0, 1].Proof. From monotonicity, symmetricity and the extremal condition weget

    T (x, y) T (x, 1) x, T (x, y) = T (y, x ) T (y, 1) y.This means that T (x, y)

    min

    {x, y

    }.

    Lemma 2. Let S be a t-conorm. Then the following statement holds

    max{a, b} S (a, b) STRONG (a, b), a, b [0, 1]

    4

  • 7/27/2019 Fuzzy Rule Based System

    5/26

    Proof. From monotonicity, symmetricity and the extremal condition weget

    S (x, y) S (x, 0) x, S (x, y) = S (y, x ) S (y, 0) yThis means that S (x, y) max{x, y}.Lemma 3. T (a, a ) = a holds for any a [0, 1] if and only if T is theminimum norm.

    Proof. If T (a, b) = min( a, b) then T (a, a ) = a holds obviously. SupposeT (a, a ) = a for any a [0, 1], and a b 1. We can obtain the followingexpression using monotonicity of T

    a = T (a, a ) T (a, b) min{a, b}.From commutativity of T it follows that

    a = T (a, a ) T (b, a) min{b, a}.These equations show that T (a, b) = min {a, b}for any a, b [0, 1].Lemma 4. The distributive law of t-norm T on the max operator holds for any a , b , c [0, 1].

    T (max{a, b}, c) = max {T (a, c), T (b, c)}.De nition 3. (t-norm-based intersection) Let T be a t-norm. The T -intersectionof A and B is de ned as

    (A B )( t) = T (A(t), B (t)) , for all t X .

    5

  • 7/27/2019 Fuzzy Rule Based System

    6/26

    Example 1. Let

    T (x, y) = LAND (x, y) = max {x + y 1, 0}be the ukasiewicz t-norm. Then we have

    (A B )( t) = max {A(t) + B (t) 1, 0}, for all t X .

    Let A and B be fuzzy subsets of

    X = {x1 , x 2 , x 3 , x 4 , x 5 , x 6 , x 7}and be dened by

    A = 0 .0/x 1 + 0 .3/x 2 + 0 .6/x 3 + 1 .0/x 4 + 0 .6/x 6 + 0 .3/x 6 + 0 .0/x 7

    B = 0 .1/x 1 + 0 .3/x 2 + 0 .9/x 3 + 1 .0/x 4 + 1 .0/x 5 + 0 .3/x 6 + 0 .2/x 7 .

    Then A B has the following formA B = 0 .0/x 1 + 0 .0/x 2 + 0 .5/x 3 + 1 .0/x 4 + 0 .6/x 5 + 0 .0/x 6 + 0 .2/x 7 .The operation union can be de ned by the help of triangular conorms.

    De nition 4. (t-conorm-based union) Let S be a t-conorm. The S -unionof A and B is dened as

    (A B )( t) = S (A(t), B (t)) ,

    for all t X .

    Example 2. Let

    S (x, y) = LOR (x, y) = min {x + y, 1}6

  • 7/27/2019 Fuzzy Rule Based System

    7/26

    be the ukasiewicz t-conorm. Then we have

    (A B )( t) = min {A(t) + B (t), 1}, for all t X .

    Let A and B be fuzzy subsets of

    X = {x1 , x 2 , x 3 , x 4 , x 5 , x 6 , x 7}and be de ned by

    A = 0 .0/x 1 + 0 .3/x 2 + 0 .6/x 3 + 1 .0/x 4 + 0 .6/x 5 + 0 .3/x 6 + 0 .0/x 7

    B = 0 .1/x 1 + 0 .3/x 2 + 0 .9/x 3 + 1 .0/x 4 + 1 .0/x 5 + 0 .3/x 6 + 0 .2/x 7

    Then A B has the following form

    A B = 0 .1/x 1 + 0 .6/x 2 + 1 .0/x 3 + 1 .0/x 4 + 1 .0/x 5 + 0 .6/x 6 + 0 .2/x 7 .

    If we are given an operator C such that

    min{a, b} C (a, b) max{a, b}, a, b [0, 1]then we say that C is a compensatory operator.

    A typical compensatory operator is the arithmetical mean de ned as

    MEAN (a, b) =a + b

    2

    Averaging operators

    Fuzzy set theory provides a host of attractive aggregation connectives forintegrating membership values representing uncertain information. These

    7

  • 7/27/2019 Fuzzy Rule Based System

    8/26

    connectives can be categorized into the following three classes union, in-tersection and compensation connectives.

    Union produces a high output whenever any one of the input values repre-senting degrees of satisfaction of different features or criteria is high.

    Intersection connectives produce a high output only when all of the in-puts have high values. Compensative connectives have the property thata higher degree of satisfaction of one of the criteria can compensate for alower degree of satisfaction of another criteria to a certain extent.

    In the sense, union connectives provide full compensation and intersec-tion connectives provide no compensation. In a decision process the ideaof trade-offs corresponds to viewing the global evaluation of an action aslying between the worst and the best local ratings. This occurs in the pres-ence of con icting goals, when a compensation between the correspondingcompabilities is allowed. Averaging operators realize trade-offs betweenobjectives, by allowing a positive compensation between ratings.

    De nition 5. An averaging operator M is a function

    M : [0, 1][0, 1] [0, 1], , satisfying the following properties

    Idempotency M (x, x ) = x, x [0, 1],

    Commutativity M (x, y) = M (y, x ), x, y [0, 1], Extremal conditions

    M (0, 0) = 0 , M (1, 1) = 1

    8

  • 7/27/2019 Fuzzy Rule Based System

    9/26

    MonotonicityM (x, y) M (x , y ) if x x and y y ,

    M is continuous.Averaging operators represent a wide class of aggregation operators. Weprove that whatever is the particular de nition of an averaging operator,

    M , the global evaluation of an action will lie between the worst and thebest local ratings:

    Lemma 5. If M is an averaging operator then

    min{x, y} M (x, y) max{x, y}, x, y [0, 1]Proof. From idempotency and monotonicity of M it follows that

    min{x, y}= M (min{x, y}, min{x, y}) M (x, y)and M (x, y) M (max{x, y}, max{x, y}) = max {x, y}. Which ends theproof.

    Averaging operators have the following interesting properties:

    Property 1. A strictly increasing averaging operator cannot be associa-tive.

    Property 2. The only associative averaging operators are de ned by

    M (x,y, ) = med (x,y, ) =y if x y if x yx if x y

    where (0, 1).

    9

  • 7/27/2019 Fuzzy Rule Based System

    10/26

  • 7/27/2019 Fuzzy Rule Based System

    11/26

    neural networks, fuzzy logic controllers, vision systems, expert systemsand multi-criteria decision aids. In 1988 Yager introduced a new aggrega-tion technique based on the ordered weighted averaging (OWA) operators.

    De nition 6. An OWA operator of dimension n is a mapping F : IR n IR ,that has an associated weighting vector W = ( w1 , w2 , . . . , wn )T such aswi [0, 1], 1 i n , and

    w1 + + wn = 1 .Furthermore

    F (a1 , . . . , a n ) = w1 b1 + + wnbn =n

    j =1w j b j

    where b j is the j -th largest element of the bag a1 , . . . , a n .

    Example 3. Assume W = (0 .4, 0.3, 0.2, 0.1)T then

    F (0.7, 1, 0.2, 0.6) = 0 .4 1 + 0 .3 0.7 + 0 .2 0.6 + 0 .1 0.2 = 0.75.A fundamental aspect of this operator is the re-ordering step, in particularan aggregate a i is not associated with a particular weight wi but rather aweight is associated with a particular ordered position of aggregate. Whenwe view the OWA weights as a column vector we shall nd it convenientto refer to the weights with the low indices as weights at the top and thosewith the higher indices with weights at the bottom.

    It is noted that different OWA operators are distinguished by their weight-

    ing function. In 1988 Yager pointed out three important special cases of OWA aggregations:

    F : In this case W = W = (1 , 0 . . . , 0)T andF (a1 , . . . , a n ) = max {a1 , . . . , a n},

    11

  • 7/27/2019 Fuzzy Rule Based System

    12/26

    F : In this case W = W = (0 , 0 . . . , 1)T andF (a1 , . . . , a n ) = min {a1 , . . . , a n},

    F A: In this case W = W A = (1 /n , . . . , 1/n )T andF A(a1 , . . . , a n ) =

    a1 + + ann

    .

    A number of important properties can be associated with the OWA opera-tors. We shall now discuss some of these. For any OWA operator F holds

    F (a1 , . . . , a n ) F (a1 , . . . , a n ) F (a1 , . . . , a n ).Thus the upper an lower star OWA operator are its boundaries. From theabove it becomes clear that for any F

    min{a1 , . . . , a n} F (a1 , . . . , a n ) max{a1 , . . . , a n}.The OWA operator can be seen to be commutative . Let a1 , . . . , a n be a

    bag of aggregates and let {d1 , . . . , d n}be any permutation of the a i . Thenfor any OWA operatorF (a1 , . . . , a n ) = F (d1 , . . . , d n ).

    A third characteristic associated with these operators is monotonicity . As-sume a i and ci are a collection of aggregates, i = 1 , . . . , n such that foreach i, a i ci . Then

    F (a1 , . . . , a n ) F (c1 , c2 , . . . , cn )where F is some xed weight OWA operator.

    Another characteristic associated with these operators is idempotency . If a i = a for all i then for any OWA operator

    F (a1 , . . . , a n ) = a.

    12

  • 7/27/2019 Fuzzy Rule Based System

    13/26

    k k+m-11 n

    1/m

    From the above we can see the OWA operators have the basic propertiesassociated with an averaging operator .

    Example 4. A window type OWA operator takes the average of the m ar-guments around the center. For this class of operators we have

    wi =

    0 if i < k1m

    if k i < k + m0 if i k + m

    (1)

    Figure 1: Window type OWA operator.

    In order to classify OWA operators in regard to their location between and and or , a measure of orness , associated with any vector W is introduce byYager as follows

    orness(W ) =1

    n 1n

    i=1(n i)wi.

    It is easy to see that for any W the orness(W ) is always in the unit interval.Furthermore, note that the nearer W is to an or , the closer its measure is toone; while the nearer it is to an and , the closer is to zero.

    Lemma 6. Let us consider the the vectors

    W = (1 , 0 . . . , 0)T , W = (0 , 0 . . . , 1)T ,

    13

  • 7/27/2019 Fuzzy Rule Based System

    14/26

    W A = (1 /n , . . . , 1/n )T .

    Then it can easily be shown that

    orness(W ) = 1 , orness(W ) = 0

    and orness(W A) = 0 .5.

    A measure of andness is dened as

    andness( W ) = 1 orness(W ).Generally, an OWA opeartor with much of nonzero weights near the topwill be an orlike operator, that is,

    orness(W ) 0.5and when much of the weights are nonzero near the bottom, the OWAoperator will be andlike , that is,

    andness( W ) 0.5.Example 5. Let W = (0 .8, 0.2, 0.0)T . Then

    orness(W ) =13(2 0.8 + 0 .2) = 0 .6,

    and andness( W ) = 1 orness(W ) = 1 0.6 = 0.4.

    This means that the OWA operator, de ned by

    F (a1 , a 2 , a 3 ) = 0 .8b1 + 0 .2b2 + 0 .0b3 = 0 .8b1 + 0 .2b2 ,

    where b j is the j -th largest element of the bag a1 , a 2 , a 3 , is an orlikeaggregation.

    14

  • 7/27/2019 Fuzzy Rule Based System

    15/26

    The following theorem shows that as we move weight up the vector weincrease the orness, while moving weight down causes us to decreaseorness (W ).

    Theorem 1. (Yager, 1993) Assume W and W are two n-dimensional OWAvectors such that

    W = ( w1 , . . . , wn )T ,

    and

    W = ( w1 , . . . , w j + , . . . , w k , . . . , w n )T where > 0 , j < k . Then orness (W ) > orness (W ).

    Proof. From the de nition of the measure of orness we get

    orness (W ) =1

    n 1 i(n i)wi =

    1n 1 i(n 1)wi + ( n j ) (n k) ,

    orness (W ) = orness (W ) +1

    n 1(k j ).

    Since k > j , orness (W ) > orness (W ).

    In 1988 Yager de ned the measure of dispersion (or entropy) of an OWAvector by

    disp (W ) = i

    wi ln wi .

    We can see when using the OWA operator as an averaging operator Disp (W )measures the degree to which we use all the aggregates equally.

    15

  • 7/27/2019 Fuzzy Rule Based System

    16/26

    1

    x0

    x0 _

    Figure 2: Fuzzy singleton.

    Suppose now that the fact of the GMP is given by a fuzzy singleton. Thenthe process of computation of the membership function of the consequencebecomes very simple.

    For example, if we use Mamdani s implication operator in the GMP then

    rule 1: if x is A1 then z is C 1fact: x is x0consequence: z is C

    where the membership function of the consequence C is computed as

    C (w) = supu

    min{x0 (u), (A1 C 1 )(u, w)}=

    supu min{x0

    (u), min{A1

    (u), C 1

    (w)}},for all w. Observing that x0 (u) = 0 , u = x0 , the supremum turns into asimple minimum

    C (w) = min {x0 (x0 ) A1 (x0 ) C 1 (w)}=16

  • 7/27/2019 Fuzzy Rule Based System

    17/26

    A1 C1

    x0 wu

    A1(x0)

    C

    A1

    u w

    C1

    C

    x 0

    Figure 3: Inference with Mamdani s implication operator.

    min{1 A1 (x0 ) C 1 (w)}= min {A1 (x0 ), C 1 (w)}for all w.

    and if we use G odel implication operator in the GMP then

    C (w) = supu

    min{x0 (u), (A1 C 1 )(u, w)}=

    A1 (x0 ) C 1 (w)for all w.

    So,

    C (w) = 1 if A1 (x0 ) C 1 (w)C 1 (w) otherwise

    17

  • 7/27/2019 Fuzzy Rule Based System

    18/26

    Inference with G odel implication operator.

    rule 1: if x is A1 then z is C 1fact: x is x0consequence: z is C

    where the membership function of the consequence C is computed as

    C (w) = supu

    min{x0 (u), (A1 C 1 )(u, w)}=A1 (x0 ) C 1 (w)

    for all w.

    18

  • 7/27/2019 Fuzzy Rule Based System

    19/26

    Consider a block of fuzzy IF-THEN rules

    1: if x is A1 then z is C 1also

    2: if x is A2 then z is C 2also

    . . . . . . . . . . . .

    also

    n : if x is An then z is C n

    fact: x is x0

    consequence: z is C

    The i-th fuzzy rule from this rule-base

    i : if x is Ai then z is C i

    is implemented by a fuzzy implication R i and is de ned asR i(u, w) = (Ai C i)(u, w) = Ai(u) C i(w)

    for i = 1, . . . , n .

    19

  • 7/27/2019 Fuzzy Rule Based System

    20/26

    Find C from the input x0 and from the rule base

    = { 1, . . . , n}.

    20

  • 7/27/2019 Fuzzy Rule Based System

    21/26

    Interpretation of

    sentence connective also implication operator then compositional operator

    We rst compose x0 with each R i producing intermediate re-sult

    C i = x0 R ifor i = 1, . . . , n .

    C i is called the output of the i-th rule

    C i(w) = Ai(x0) C i(w),for each w.Then combine the C i component wise into C by some aggre-gation operator:

    C =

    n

    i=1 C i = x0 R1 x0 RnC (w) = A1(x0) C 1(w)

    21

  • 7/27/2019 Fuzzy Rule Based System

    22/26

    An(x0) C n(w).

    22

  • 7/27/2019 Fuzzy Rule Based System

    23/26

  • 7/27/2019 Fuzzy Rule Based System

    24/26

    A1

    A2

    C1

    C2 = C' 2

    C'1

    degree of match

    degree of match

    individual rule output

    individual rule output

    x0

    x0

    overall system output

    overall system output (action) isC (w) =

    n

    i=1

    Ai(x0) C i(w)

    Larsen (a b = ab)

    input to the system is x0 fuzzi ed input is x0 ring strength of the i-th rule is Ai(x0)

    24

  • 7/27/2019 Fuzzy Rule Based System

    25/26

    x0

    A1

    A2

    C1

    C2

    A1( x0 )

    A2( x0 )

    C'1

    C'2

    C = C' 2

    the i-th individual rule output isC i(w) = Ai(x0)C i(w)

    overall system output (action) isC (w) =

    n

    i=1

    Ai(x0)C i(w)

    The output of the inference process so far is a fuzzy set, spec-ifying a possibility distribution of the (control) action. In theon-line control, a nonfuzzy (crisp) control action is usually re-quired. Consequently, one must defuzzify the fuzzy control

    25

  • 7/27/2019 Fuzzy Rule Based System

    26/26