Académique Documents
Professionnel Documents
Culture Documents
17 20 26 29
30 50 100
Fuzzyfication Implication
48 Defuzzyfication
. .
Database
Rule base
&
Cold Low
OR
Temp.
&
Hot
Operational parameters
Low
Pressure
&
High High
OR
Gas
&
Cold Low
OR
Temp.
&
Hot
Connective parameters
Low
Pressure
&
High High
OR
Gas
&
Cold Low
OR
Temp.
&
Hot
Weights
Consequents
Antecedents Rules
Structural parameters
Low
Pressure
&
High High
OR
Gas
&
Cold Low
OR
Temp.
&
Hot
Number of
{ Relevant variables
Rules
Membership functions
Logical parameters
Low
Pressure
&
High High
OR
Gas
&
Cold Low
OR
Temp.
Hot
& Reasoning mechanism
Fuzzy operators
Membership function types
Defuzzification method
Carlos Andrés Peña−Reyes
. Logic Systems Laboratory − Swiss Federal Institute of Technology Lausanne .
. .
Database
Connective parameters:
If V1 is Low AND ....
Rule base Behavior learning.
Fuzzifier
Inference
Defuzzifier Structure learning. f1, ... , fm
Engine
Logical parameters:
System design. and, or, not, ...
Knowledge engineering
Neuro−fuzzy systems
Domain Knowledge
expert engineer
Fuzzy
model
Design loop
Validation loop
Validation loop
Domain expert
Interpretability−related constraints
Temperature Temperature
0 0
R7 R8 R9 RB RB
R4 R5 R6 R4 R5 RA R5 RA
R1 R2 R3 R1 R2 R0
R5 RA
R0
17 20 26 29
Human Logic
design Structural
Estimation Connective
algorithm Operational Fuzzy system
Constructive−learning
Fuzzy system
Structural Connective Operational
Data
Detlef Nauck
Detlef.Nauck@cs.uni-magdeburg.de
http://fuzzy.cs.uni-magdeburg.de
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -1-
Concurrent ”Neuro-Fuzzy Models“
Not a neuro-fuzzy model in the narrow sense, because the neural net does not
modify the fuzzy system
NN modifies the output from the fuzzy system, or
NN modifies/produces the input to the fuzzy system
The overall system is not completely interpretable
Easy to implement, e.g. used in consumer products that adapt to the
customer's needs/preferences/environments. N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -5-
Cooperative Neuro-Fuzzy Models
UZZY
Dr. Detlef Nauck EUFIT‘97 -6-
Hybrid Neuro-Fuzzy Systems
control output
external
reinforce-
ment determine
THEN
error S
IF
Hybrid
Neuro-Fuzzy
Controller
system state
An architecture that can be intertpreted in terms of a neural network with fuzzy weights,
or in terms of a fuzzy system.
E.g.: A neuro-fuzzy controller trained by reinforcement learning
(like GARIC [Berenji/Khedkar] or NEFCON [Nauck/Kruse])
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -7-
Our View of Neuro-Fuzzy Systems
I.
A neuro-fuzzy system is a fuzzy system that is trained
by a learning algorithm (usually) derived from neural
network theory.
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -10-
Neuro-Fuzzy Systems (contd.)
II.
A neuro-fuzzy system CAN be viewed as a special 3-layer feed-
forward neural network.
The units in this network use t-norms or t-conorms as activation
functions. The hidden layer represents fuzzy rules. Fuzzy sets are
encoded as (fuzzy) connection weights.
This view of a fuzzy system illustrates the data flow within the
system (data and error signals), and its parallel nature.
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -11-
Foundational Model: A Generic Fuzzy Perceptron
Y1 Y2
1
The connections are
0 weighted by fuzzy sets
R1 R2 R3
1
The connections are
weighted by fuzzy sets
0
X1 X2
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -12-
Learning in Neuro-Fuzzy Systems
Learning algorithms must determine:
fuzzy rules
fuzzy sets
(sometimes additional parameters are used, e.g. rule weights, etc. Semantics!)
Learning paradigms:
supervised learning: function approximation, classification
reinforcement learning: control
Learning fuzzy rules:
cluster oriented approaches
structured sample space (rules on a grid)
Learning fuzzy sets:
gradient descent methods (only Sugeno-type fuzzy systems)
heuristics based on backpropagation
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -18-
Approaches to Learning Fuzzy Rules
Cluster-oriented approaches:
combinations with RBF networks (only for certain Sugeno-type models)
or fuzzy clustering:
search for hyperellipsoidal clusters, obtain fuzzy sets by
projecton (errors occur), problems with interpretation.
Fuzzy RuleNet, Fuzzy Min-Max networks:
search for hyperrectangular clusters, obtain fuzzy sets by
projection (no errors), interpretation can be difficult.
Combinatorical approaches:
FuNe, WINROSA:
provide initial fuzzy sets, test combinations of several variables,
pick best rules, can provide small rule bases, computationally expensive.
Structured data space approaches:
NEFCLASS, NEFCON, NEFPROX:
pick rules from a grid (data space is structured by initial fuzzy sets),
simple and fast but limited, no problems with interpretation.
N
SF EURO
UZZY
Dr. Detlef Nauck EUFIT‘97 -19-
Artificial Evolution
A metaphor of natural evolution
T T T T S S S X X X A At As C O A As C O A As C O
1 2 3 4 1 2 3 1 2 3 1 1 1 1 1 t2 2 2 2 t3 3 3 3
Set of parameters
Artificial evolution
Natural evolution
ADN
M
O
D
E
L
40
T T T T S S S X X X A A A C O A A C O A A C O
91
Evaluate A A C O A A C O A A C O
systems
X A
70
X X
S S
T S
T T
T
T T T T S S S X X X A A A C O A A C O A A C O
19
T
T
T
T
S
S
Initialize
S T T T T S S S X X X A A A C O A A C O A A C O
X
X
X
A
A
56
A
Select
C
O
A
A
population
C
O
A
A
C
O
individuals
Parents
T T T T S S S X X X A A A C O A A C O A A C O
Crossover
T T T T S S S X X X A A A C O A A C O A A C O
T T T T S S S X X X A A A C O A A C O A A C O
Mutation
T T T T S S S X X X A A A C O A A C O A A C O
Offspring
Artificial Evolution
What do you evolve in fuzzy systems?
17 20 26 29 30 50 100 0 50 100 H S H O O W P M A C C L O
Q3
R3 R6 R9
- Rules of type:
Normal
R2 R5 R8
Small
R1 R4 R7
which searches for membership function values
X1
P1 P2 P3
N rules * 15 bits
R1 R2 .... Ri .... Rn
15 bits
A1 A2 A3 A4 C
5 * 3 bits
5 functions + 3 don’t care
- Parameter representation
- Tight interdependency
- Size of the search space
- Computation requirements
6 bits 18 bits
P d A1 .... Ai .... A9
Example: Evolving fuzzy rule based classifiers with GA–P (García et al. 99)
- Genome encodes: Complete rule base and membership function parameters
- A simple genetic algorithm searches for the database
- The rule base is evolved using genetic programming
1 0 0 1 0 0 0 1 1 0 0
Example: Breast cancer diagnosis (J.-F. Philagor, student project SPG, 1999)
- Evolution searches for a fixed-size rule base
Genome encodes rules: Antecedents and consequent
- Database is tuned using a neuro-fuzzy approach
A fuzzy self-organizing map searches for P and Q values
X2
R1 R3
N rules * 19 bits
Normal Big
Q3
R2
R1 R2 .... Ri .... Rn
Q2
19 bits
Small
Q1
A1 A2 ... A9 C
X1
9 * 2 bits + 1 bit P1 P2 P3
The features
The test
The database
R1: if (V1 is Low) and (V2 is High) and ... and (V9 is Low) then (output is Benign)
R2: if (V1 is Low) and (V2 is Low) and ... and (V9 is None) then (output is Benign)
...
...
...
...
...
else (Output is Malignant)
.....
Low Low None Benign
.....
V1 V2 V9
Malignant
P1 P1+d 1 P2 P2+d 2 P9 P9+d 9
Genome encoding
P d A1 .... Ai .... A9
Ai = 1 (Benign)
P = [1;8]
Ai = 2 (Malignant)
d = [1;8]
Ai = 0 or 3 (Variable not assigned)
Fitness function
Fc : Classification performance,
the most important performance measure
Fv : Number of variables
F = Fc + a* Fv + b*Fe measures the interpretability
Fe : Quadratic error
selection pressure to fine tune parameters
4 97.80% (4.8)
v1 v2 v6 v8
Malignant
IF the clump of cells is not very thick,
AND the cell’s size is quite uniform,
AND there are few bare nuclei,
AND nucleoli are not highly abnormal,
THEN the case is benign;
ELSE the case is malignant.
Database Fuzzy
CoCo
Fuzzy CoCo:
A cooperative coevolutionary approach to fuzzy modeling
Rules MFs
g−1
Cooperators
Generation
Fitness
2. Individuals are combined with cooperators
g to form fuzzy systems.
3. These fuzzy systems are evaluated, and
Selected cooperators individual fitness is then calculated.
R5 RA
R0
Temperature
0
Case SL SW PL PW Class
The database
The variables
Features Classes
(1) SL Sepal length (1) setosa 1 5.1 3.5 1.4 0.2 Setosa
(2) SW Sepal width (2) versicolor 2 4.9 3.0 1.4 0.2 Setosa
(3) PL Petal length (3) virginica
(4) PW Petal width 150 5.9 3.0 5.1 1.8 Virginica
Database
Subsystem
Rule base
Inference
estimation
Crisp Defuzzifier Crisp
Fuzzifier Engine
Input Fuzzy Fuzzy Output
Input Output
...
...
...
...
Rn: if (SL is An1) and (SW is An2) and (PL is An3) and (PW is An4) then (output is Classn)
else (Output is Class0)
.....
1 2 3
.....
1 2 3
SL SW PW
virginica
P11 P21 P31 P12 P22 P32 P14 P24
1 2 3
Crisp Inference
Defuzzifier Crisp
µ (virginica)
Fuzzifier Engine
Input Fuzzy Fuzzy Output
Input Output
...
...
...
...
Rn: if (SL is An1) and ... and (PW is An4) then (setosa is No),(versicolor is No),(virginica is Yes)
else (setosa is No),(versicolor is Yes),(virginica is No)
.....
No Yes No Yes No Yes
Medium None
setosa versicolor virginica
.....
SL PW No Yes No Yes No Yes
setosa versicolor virginica
P11 P21 P31 P14 P24
SL SW PL SW
P R1 ... Ri ... Rn Co
P1 P2 P3 A1 .... A4 Ci
2 98 % (1.5)
3 96.2 % (4) 99.33% (2.3)
4 97.4 % (4) 99.33% (2)
8 97.3 % (2)
SL SW PL PW Class
SL SW PL PW Class
SL SW PL PW Class
Class
The database
The test
Input Appraisal
solution
malignant
benign
The genomes
P d A1 .... A9 Ci
Ai = 1 (Low)
Ci = 1 (Benign)
P = [1;8] Ai = 2 (High)
Ai = 2 (Malignant)
d = [1;8] Ai = 0 or 3 (None)
if (v1 is Low) and (v3 is Low) and (v5 is Low) then (output is Benign)
if (v1 is Low) and (v4 is Low) and (v6 is Low) and (v8 is Low) and (v9 is Low) then (output is Benign)
else (output is Malignant)
v1 v3
v4 v5 v6 v8 v9
Computing requirements
Fuzzy GA: Single population (Peña & Sipper 99)
Database
{ 516 readings
187 malignant (pos)
329 benign (neg)
biopsy
recommendation
Database
Ri: if (v1 is Ai1) and (v2 is Ai2) and (v3 is Ai3) and ... and (v15 is Ai15) then (output is Ci)
Low High None Benign Malignant
V1 V3 ..... V15
P1 P’1 P3 P’3 P15 P’15
22 2 2 2 2 2 1 1
Ac1 Ac2 Ac3 Ar1 Ar2 ... Ar6 Sr C
20
20 1
R1 ... Ri ... Rn Co
TP + TN Accuracy reinforcement
Accuracy
TP+TN+FP+FN
Fbase + β Accuracy
1+β
TP (note: done only if Accuracy > 0.7)
PPV
TP + FN
10
Best individual
Nr Fitness Reff Vr
5 10 0.8910 9 2.22
5 4
3 15 0.8978 12 2.50
1 2 20 0.9109 17 2.41
0 25 0.9154 17 2.70
0.82 0.83 0.84 0.85 0.86 0.87 0.88 0.89 0.9 0.91 0.92
17−rule 9−rule
Measure Figure Ratio Figure Ratio
Sensitivity 99.47% 186/187 98.40% 184/187
Specificity 68.69% 226/329 64.13% 211/329
Accuracy 79.84% 412/516 76.55% 395/516
PPV 64.36% 186/289 60.93% 184/302
Threshold = 2 Threshold = 3
Measure Figure Ratio Figure Ratio
Sensitivity 100.0% 187/187 98.40% 184/187
Specificity 63.22% 208/329 64.13% 211/329
Accuracy 76.55% 395/516 76.55% 395/516
PPV 60.71% 187/308 60.93% 184/302