fuzzy systems - fuzzy rule generationfuzzy.cs.ovgu.de/wiki/uploads/lehre.fs0809/fs09.pdf · •...

39
Fuzzy Systems Fuzzy Rule Generation Prof. Dr. Rudolf Kruse Christian Moewes {kruse,cmoewes}@iws.cs.uni-magdeburg.de Working Group on Computational Intelligence Department of Knowledge and Language Processing School of Computer Science Otto-von-Guericke University of Magdeburg Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 1 / 39

Upload: others

Post on 19-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Fuzzy SystemsFuzzy Rule Generation

Prof. Dr. Rudolf Kruse Christian Moewes

{kruse,cmoewes}@iws.cs.uni-magdeburg.de

Working Group on Computational IntelligenceDepartment of Knowledge and Language ProcessingSchool of Computer ScienceOtto-von-Guericke University of Magdeburg

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 1 / 39

Page 2: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Outline of Today’s Lecture

1. Motivation

2. Extracting Grid-Based Fuzzy Rules

3. Extracting Individual Fuzzy Rules

4. Rule Generation by Fuzzy Clustering

5. Different Approaches

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 2 / 39

Page 3: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Extracting Fuzzy Systems from Data

How can fuzzy systems automatically be derived from example data?

• suppose, input space X and output space Y

• we observe n training patterns (xi , yi ) ∈ S ⊆ X × Y where 1 ≤ i ≤ n

• given numerical input, X = (X1, . . . ,Xp) ⊂ IRp and thus xi 7→ x i

• fuzzy rule base shall approximate S

• classical two-step approach1. find fuzzy sets by

• either predefining them on input and output variables• or constructing them throughout learning procedure

2. find fuzzy rules

• either directly• or iteratively

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 3 / 39

Page 4: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Outline of Today’s Lecture

1. Motivation

2. Extracting Grid-Based Fuzzy RulesWang & Mendel AlgorithmHiggins & Goodman Algorithm

3. Extracting Individual Fuzzy Rules

4. Rule Generation by Fuzzy Clustering

5. Different Approaches

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 4 / 39

Page 5: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Fixed Grid-Based Algorithms

• each input variable is partitioned into small set of linguistic variables

• resulting rule base uses all or subset of possible combinations oflinguistic values

⇒ global granulation of X into tiles

R1,...,1 : if x1 is µ1,1 and ... and xp is µ1,p then ......Rl1,...,lp : if x1 is µl1,1 and ... and xp is µlp ,p then ...

• lj (1 ≤ j ≤ p) indicates number of linguistic values for j-th variable

• problems• exponentially many rules in high-dimensional spaces• if grid is chosen fine enough, arbitrarily good approximation

(but at very high computational costs)• wrong choice of grid may skip extrema

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 5 / 39

Page 6: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Wang & Mendel AlgorithmOverview

• basic fuzzy rule learning method for function approximation

• based on predefined global grid for both X and Y

• after definition of grid, it determines best possible output fuzzy set foreach rule, i.e., each grid position in the input space

• one run through entire data set determines closest example togeometrical center of each rule

• closest output fuzzy value is assigned to corresponding fuzzy

• algorithm encounters problems

1. when function extrema lie far from center point of grid positions2. and it generates huge number of rules for reasonable accuracy

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 6 / 39

Page 7: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Wang & Mendel Algorithm1. Granulate X and Y

x1

1

0

µ1,1 µ1,2 µ1,3

x2

1 0

µ2,1

µ2,2

x1

R1,1R

1,2

R1,3

R2,1

R2,2

R2,3

• divide each variable Xj

into lj equidistanttriangular fuzzy sets

• similarly, Y is granulatedinto ly triangular fuzzysets

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 7 / 39

Page 8: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Wang & Mendel Algorithm2. Determine best consequence for each rule

• for each (x, y) = (x1, . . . , xp, y) ∈ S ...

• ... compute degree of membership to each of possible tiles by

min{

µk1,1(x1), . . . , µkp ,p(xp), µky(y)}

• 1 ≤ kj ≤ lj and 1 ≤ ky ≤ ly

• µkj ,j indicates membership function of kj -th linguistic value of Xj

• tile (k1, . . . , kp, ky ) with max. membership degree generates one rule

R(k1,...,kp) : if x1 is µk1,1 and . . . and xp is µkp ,p then y is µky

• degree of membership will be assigned to each rule as weight β(k1,...,kp)

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 8 / 39

Page 9: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Wang & Mendel AlgorithmDetermining y based on new x

• given an input x ...

• ... learned rule base can be used to compute crisp output y

• first, degree of fulfillment for each rule is computed

µ(k1,...,kp)(x) = min{

µk1,1(x1), . . . , µkp ,p(xp)}

• then, output y is computed by some kind of COG defuzzification

y =

l1,...,lp∑

k1=1,...,kp=1

β(k1,...,kp) · µ(k1,...,kp)(x) · y(k1,...,kp)

β(k1,...,kp) · µ(k1,...,kp)(x)

• y(k1,...,kp) denotes center of output region of corresponding R(k1,...,kp)

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 9 / 39

Page 10: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Wang & Mendel Algorithm

given data points step 1: granulate X and Y

• example data set with one input and one output

• note that closest points to corresponding rules are red

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 10 / 39

Page 11: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Wang & Mendel Algorithm (cont.)

step 2: generate rules resulting crisp approximation

• fuzzy rules are shown by their α = 0.5-cuts

• learned model misses extrema far away from rule centers

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 11 / 39

Page 12: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Wang & Mendel Algorithm (cont.)Generated rule base

R1 : if x is zerox then y is mediumy

R2 : if x is smallx then y is mediumy

R3 : if x is mediumx then y is largey

R4 : if x is largex then y is mediumy

• intuitively, rule R2 should probably be used to describe minimum

R ′2 : if x is smallx then y is smally

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 12 / 39

Page 13: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Wang & Mendel AlgorithmSummary

• only one pattern per rule is used to compute this rule’s outcome

• if function has high variance, resulting rule base will fail to modelsystem’s behavior

• using predefined fixed grid yields to fuzzy model that• either does not fit underlying function very well• or consists of large number of rules

• therefore, we are interested in approaches that fine-tune or evenautomatically determine granulations of both input and outputvariables

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 13 / 39

Page 14: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman AlgorithmOverview

• approach that builds upon Wang & Mendel’s fixed-grid algorithm

• initially, only one membership function is used to describe each inputvariable and output variable

⇒ one large rule covering entire feature space

• then, new membership functions are introduced at points ofmaximum error

• this is repeated until• maximum number of divisions is reached or• approximation error remains below certain threshold

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 14 / 39

Page 15: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman Algorithm1. Initialization

• create two membershipfunctions for each Xj at theirextremal data domain rangepositions

• create membership function forY at corner points of inputspace

• at corner point, each Xj is atmaximum or minimum of itsdomain range

• for each corner point, closestexample from S is used to addmembership function at itsoutput value

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 15 / 39

Page 16: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman Algorithm2. Add new membership functions into input space

• find point within S withmaximum error according tocurrently predicted output value

• defuzzification for output isdone same way as forWang & Mendel algorithm

• for each input variable, add newmembership function atcorresponding value of “maximalerror point”

⇒ this point is described perfectlyby generated model

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 16 / 39

Page 17: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman Algorithm3. Create new cell-based rule set and insert new output fuzzy sets

• constructing new rules is doneby associating outputmembership functions withnewly created cells

⇒ so, taking point which is closestto all membership functions ofX (as done in Wang & Mendel)

• associated output membershipfunction is closest one to outputvalue of “closest point”

• if output value of this “closestpoint” is too far away fromclosest membership function,new output function is created

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 17 / 39

Page 18: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman Algorithm4. Termination detection

• if detected error is below giventhreshold (or if certain numberof iterations have been done)...

• ... then stop algorithm

• otherwise continue at stepnumber 2

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 18 / 39

Page 19: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Higgins & Goodman AlgorithmSummary

• obviously, this approach is able to model extrema much better thanWang & Mendel algorithm

• however, it has definite preference to favor extrema

⇒ strong tendency to concentrate on outliers

• interpretation is difficult since granulation is solely data driven

• grid is often suboptimal due to greedy algorithm

• it also contains method to simplify learned rule base

• done by rule ranking system and afterwards searching for best rules

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 19 / 39

Page 20: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Outline of Today’s Lecture

1. Motivation

2. Extracting Grid-Based Fuzzy Rules

3. Extracting Individual Fuzzy RulesIndividual Membership FunctionsBerthold & Huber Algorithm

4. Rule Generation by Fuzzy Clustering

5. Different Approaches

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 20 / 39

Page 21: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Extracting Individual Fuzzy RulesExtensions avoiding Global Grids

• in high-dimensional X , global granulation leads to big number of rules

⇒ now, no global dependence on granulation• individual membership functions for each rule• better modeling of local properties

R1 : if x1 is µ1,1 and . . . and xp is µ1,p then ......

Rr : if x1 is µr ,1 and . . . and xp is µr ,p then ...

• not all attributes will be used for all rules• individual choice of constraints on few attributes per rule• better interpretability in high dimensions• no exponential growth of number of rules with increasing dimensionality

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 21 / 39

Page 22: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Local GranulationIndividual membership functions for each rule

x1

1

0

x2

1 0

x1

µ1,1µ1,2 µ1,3

µ2,1

µ2,2

µ2,2

R1

R2 R3

• example for three rulesin two dimensions

• compare with globalgranulation à laWang & Mendel

• possible disadvantage ofindividual fuzzy sets

• potential loss ofinterpretation

• projecting all fuzzysets onto one variablewill usually not leadto meaningfullinguistic values

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 22 / 39

Page 23: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Berthold & Huber AlgorithmOverview

• algorithm that constructs rule base with individual fuzzy sets per rule

• parameters that must be specified• granulation of Y, i.e., number and shape of membership functions of Y• c fuzzy sets are defined by µk

y whereas 1 ≤ k ≤ c

• algorithm iterates over examples S and fine-tunes evolving model

• resulting rule base consists of fuzzy rules Rkd , 1 ≤ d ≤ rk

• rk represents number of rules for output region k

• output for k−th region and new x equals Mamdani controller output

µk(x) = max1≤d≤rk

{

min1≤j≤p

{µkd,j(xj)}

}

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 23 / 39

Page 24: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Berthold & Huber AlgorithmRules

• all rules relie on trapezoidal membership functions

⇒ each rule can be described by four parameters per dimension

if x1 is 〈a1, b1, c1, d1〉 and . . . and xp is 〈ap, bp, cp, dp〉then y is µk

y

• however, if some trapezoids cover entire domain of an Xj ...

• ... then rule’s degree of fulfillment is independent from of this Xj

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 24 / 39

Page 25: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Berthold & Huber AlgorithmProcedure

0. given S = {(x i , ci ) | 1 ≤ i ≤ n} with x ∈ IRp and c ∈ IN class of x

1. for each training example (x, c) ∈ S do1.1 if correct rule of class c exists, then COVER

• increase weight by one• adjust core region of rule to cover x

else COMMIT

• insert new rule with core equals x

• support equals ∞ (i.e., rule is not constrained)

1.2 SHRINK

• reduce support of all rules of conflicting class that cover x

2. repeat last step until no more changes occur

• COVER and COMMIT are easy to implement

• SHRINK is based on heuristics (e.g., volume-based)

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 25 / 39

Page 26: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Berthold & Huber AlgorithmSome remarks on fuzzy sets’ core and support

• algorithm finds rule base that completely describes data (as long as Sis conflict-free)

• each rule is partial hypothesis for subset of S• core = most specific hypothesis covering subset of S• support = (one of the) most general hypotheses covering subset of S⇒ support is more general than core

• both core and support regions can be seen as• smallest area with highest degree of confidence (we have evidence)• largest area without conflict (we haven’t seen any counter-example)

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 26 / 39

Page 27: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Berthold & Huber Algorithm

• given two-dimensional X andtraining data S where |Y| = 2

• task is binary fuzzy classification

• first, start with empty rule basefor each region/class

• Java applet is available thatdemonstrates algorithm

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 27 / 39

Page 28: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Berthold & Huber Algorithm (cont.)

• insert general rule for firstexample pattern

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 28 / 39

Page 29: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Berthold & Huber Algorithm (cont.)

• suppose, second pattern fromdifferent class

⇒ insert new rule for secondexample pattern

• also adjust first (conflicting) rule

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 29 / 39

Page 30: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Berthold & Huber Algorithm (cont.)

• suppose, third pattern fromsame class as second one

⇒ adjust free feature to avoidconflict with third pattern

• and so on...

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 30 / 39

Page 31: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Berthold & Huber AlgorithmChoosing the right feature to shrink

• in p-dimensional feature space, there are p choices

• algorithm uses heuristics• maximize remaining volume⇒ low number of rules, good coverage

• minimize number of constrained attributes⇒ feature reduction

• minimize number of constraints on free features⇒ interpretability

• use information theoretic measures⇒ generalization, feature importance

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 31 / 39

Page 32: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Outline of Today’s Lecture

1. Motivation

2. Extracting Grid-Based Fuzzy Rules

3. Extracting Individual Fuzzy Rules

4. Rule Generation by Fuzzy ClusteringExtend Membership Values to Continuous Membership FunctionsExample: Traffic Jam Detection SystemInformation Loss from Projection

5. Different Approaches

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 32 / 39

Page 33: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Rule Generation by Fuzzy ClusteringGeneral idea

1. apply fuzzy clustering to X ⇒ fuzzy partition matrix U = [uij ]

2. use obtained U = [uij ] to define membership functions

• usually, X is multidimensional

⇒ how to specify meaningful labels for multidimensional membershipfunctions?

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 33 / 39

Page 34: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Extend uij to Continuous Membership Functions

• assigning labels for one-dimensional domains is easier, thus

1. project U down to X1, . . . ,Xp axis, respectively2. linear interpolate membership values to obtain membership functions3. cylindrically extend membership functions to multidimensional

arguments

• with labels for all attributes, original clusters can be interpreted asconjunction of cylindrical extensions

• e.g., cylindrical extensions “x1 is low”, “x2 is high”⇒ multidimensional cluster label “x1 is low and x2 is high”

• labeled clusters can be represented as classes characterized by labels

• every cluster thus symbolized one fuzzy rule

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 34 / 39

Page 35: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Example: Traffic Jam Detection System

• an induction loop in the road is used as metal detector

• serves as sensor for cars moving across or standing on it

• each passing car induces pulse from sensor

• frequency f of pulse equals number of cars per minute

• pulse width is inversely proportional to current velocity v of car

• after clustering• determine clusters for both classes, i.e., traffic jam and no traffic jam• output values of classifier are µr (f , v) with 1 ≤ r ≤ c

if (f , v) is µ1 then “traffic jam”

if f is µ(f )1 and v is µ

(v)1 then “traffic jam”

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 35 / 39

Page 36: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Information Loss from Projection

• rule derived from fuzzy clusterrepresents approximation of cluster

• information gets lost by projection• ideal cluster shape of fuzzy c-means

(FCM) is spherical• projecting an FCM cluster leads to

hypercube that contains hypersphere

• loss of information can be kept smallusing axes-parallel clusters

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 36 / 39

Page 37: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Outline of Today’s Lecture

1. Motivation

2. Extracting Grid-Based Fuzzy Rules

3. Extracting Individual Fuzzy Rules

4. Rule Generation by Fuzzy Clustering

5. Different Approaches

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 37 / 39

Page 38: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Different Approaches

• constructive• find fuzzy rules by growing singletons

• hierarchical• merge grid cells if no points are covered or same class is predicted

• adaptive• initialize rules randomly (e.g., with expert knowledge) and iteratively

optimize rule parameters (e.g., location, number of fuzzy sets)• based on, e.g., gradient descent, neural networks, ...

• evolutionary (to be discussed)• find good rules by mutation/crossover over many generations

• neuro-fuzzy (to be discussed)• inject fuzzy rules into neural network and use its learning algorithm

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 38 / 39

Page 39: Fuzzy Systems - Fuzzy Rule Generationfuzzy.cs.ovgu.de/wiki/uploads/Lehre.FS0809/fs09.pdf · • basic fuzzy rule learning method for function approximation • based on predefined

Literature about Fuzzy Rule Generation

Berthold, M. R. and Hand, D. J., editors (2003).

Intelligent Data Analysis: An Introduction.

Springer, Berlin, Germany, 2nd edition.

Borgelt, C., Klawonn, F., Kruse, R., and Nauck, D.(2003).

Neuro-Fuzzy-Systeme: Von den Grundlagen

künstlicher Neuronaler Netze zur Kopplung mit

Fuzzy-Systemen.

Vieweg, Wiesbaden, Germany, 3rd edition.

Höppner, F., Klawonn, F., Kruse, R., and Runkler,T. (1999).

Fuzzy Cluster Analysis: Methods for Classification,

Data Analysis and Image Recognition.

John Wiley & Sons Ltd, New York, NY, USA.

Rudolf Kruse, Christian Moewes Fuzzy Systems 2009/01/21 39 / 39