Professional Documents
Culture Documents
Outline
Objective
Fuzzy Control
Background, Technology & Typology
ANFIS:
as a Type III Fuzzy Control
as a fuzzification of CART
Characteristics
Pros and Cons
Opportunities
Applications
References
Copyright 2002 by Piero P. Bonissone
ANFIS Objective
To integrate the best features of Fuzzy
Systems and Neural Networks:
From FS: Representation of prior knowledge into
a set of constraints (network topology) to reduce
the optimization search space
From NN: Adaptation of backpropagation to
structured network to automate FC parametric
tuning
FC Types
Type I: RHS is a monotonic function
Type II: RHS is a fuzzy set
Type III: RHS is a (linear) function of state
FC Technology (Background)
Fuzzy KB representation
Scaling factors, Termsets, Rules
ANFIS Network
Inputs
IF-part
Rules + Norm
Input 1
Output
1
&
THEN-part
x1
&
Input 2
Layers:
&
&
Output
x2
1 p 2j
j
CART Problems
Discontinuity
Lack of locality (sign of coefficients)
10
x1
x1
a1 x1
a1 > x1
x2
x2
a2 x2
a2 > x2
a2 x2
f1(x1,x2)
f2(x1,x2)
f3 (x1,x2)
a2 > x2
f4 (x1,x2)
Partition Tree
x2
a1
a2
f1(x1,x2)
a1
> a2
f2(x1,x2)
a1 >
a2
f3(x1,x2)
a1 >
> a2
f4(x1,x2)
Rule Table
11
x1
y3= f3(x11, . )
a1 > x1
x1 a1
x2
x2
x2 a2
y1= f1(x11, . )
a2 x2
f1(x1,x2 )
a2 > x2
f2 (x1,x2)
f3 (x1,x2)
a2 > x2
f4 (x1,x2)
X1
(a )(x1)
1
X1
x11
a1
x21
12
Y w
j
Y =
Copyright 2002 by Piero P. Bonissone
j =1
n
w
j =1
j
13
ANFIS Characteristics
Adaptive Neural Fuzzy Inference System
(ANFIS)
Algorithm defined by J.-S. Roger Jang in 1992
Creates a fuzzy decision tree to classify the data
into one of 2n (or pn) linear regression models to
minimize the sum of squared errors (SSE):
SSE = e2j
j
where:
ej is the error between the desired and the actual output
p is the number of fuzzy partitions of each variable
n is the number of input variables
Copyright 2002 by Piero P. Bonissone
14
15
ANFIS Architecture
Rule Set:
IF ( x 1 is A 1 ) AND (x 2 is B 1 ) THEN
f 1 = p 1 x 1 + q 1 x 2 + r1
IF ( x 1 is A 2 ) AND (x 2 is B 2 ) THEN
f 2 = p 2 x 1 + q 2 x 2 + r2
...
x1 x2
x1
x2
Layers: 0
A1
A2
B1
B2
1
1
2
2
1 f1
N 1
N
2 f2
x1 x2
4
16
Fuzzy reasoning
B1
A1
A2
B2
w1
w2
y1 =
p1*x1 +q1*x2+r1
y2 =
p2*x1+q2* x2 +r2
z=
w1*y1+w2*y2
w1+w2
A2
B1
B2
w1
w1*y1
wi*yi
w2*y2
w2
wi
17
O1,i = Ai (x1 )
O1,i = Bi 2 ( x 2 )
where
A is a linguistic label (small, large, )
A ( x1 ) =
1
x1 c i
1+
ai
2b
18
A (x) =
1+
x ci
ai
2b
0.8
0 .8
0.6
0 .6
0.4
0 .4
0.2
0 .2
0
-10
-5
10
0
-1 0
0.8
0 .8
0.6
0 .6
0.4
0 .4
0.2
0 .2
-5
10
0
-10
-5
10
0
-1 0
-5
10
19
O2 ,i = wi = Ai (x1 ) Bi (x2 )
(for i=1,2)
20
O 3 ,i
wi
= wi =
w1 + w 2
(for i=1,2)
21
O4,i = wi fi = wi ( pi x1 + qi x2 + ri )
Consequent parameters {pi, qi, ri}
Node output: Evaluation of Right Hand
Side Polynomials
Copyright 2002 by Piero P. Bonissone
22
wi fi =
w f
w
i
Note:
Output is linear in consequent parameters p,q,r:
=
w1
w2
f1 +
f2
w1 + w 2
w1 + w 2
= w 1 ( p 1 x 1 + q 1 x 2 + r1 ) + w
(p 2 x1
( )
+ q 2 x 2 + r2
( )r
= w 1 x 1 p 1 + w 1 x 2 q 1 + w 1 r1 + w 2 x 1 p 2 + w 2 x 2 q 2 + w
23
ANFIS Network
Inputs
IF-part
Rules + Norm
Input 1
Output
1
&
THEN-part
x1
&
Input 2
Layers:
&
&
Output
x2
24
L-Type # Nodes
# Param
L0
L1
Inputs
Values
n
(pn)
0
3(pn)=|S1|
L2
Rules
pn
L3
L4
Normalize
Lin. Funct.
pn
pn
0
(n+1)pn=|S2|
L5
Sum
25
{{c
10 ,c11 ,...,c1n
},..., {c p 0 ,c p 1 ,...,c p n }
26
Backward pass:
S2 is fixed and S1 is computed using a gradient
descent algorithm (usually Back-propagation)
27
x1
x2
A1
A2
B1
B2
w1
linear
parameters
w1*y1
wi*yi
w4*y4
w4
wi
x2
A2
B2
x1
B2
B1
x2
A1
A2 x1
fixed
steepest descent
least-squares
fixed
28
( )
( )
29
Si+1 = Si
,
T
1 + a(i+1) Si a(i+1)
for i = 0,1,..., K 1
T
T
Xi+1 = Xi + S(i+1) a(i+1) (b(i+1) a(i+1) Xi )
T
Si
Si a(i+1) a(i+1)
where:
X 0 = 0,
S 0 = I , (where is a large number )
a Ti = i th line of matrix A
b Ti = i th element of vector B
X * = Xk
Copyright 2002 by Piero P. Bonissone
30
ANFIS Back-propagation
Error measure Ek
(for the kth (1kK) entry of the training data)
Ek =
where :
N(L) = number
N ( L)
2
(
d
x
)
i L ,i
i =1
nodes in layer L
d i = i th component
x L , i = i th component
of desired
output
vector
of actual
output
vector
k=1
Ek
31
+E
=
i
where :
E
i
i
is the step size
+E
is the ordered derivative
i
Copyright 2002 by Piero P. Bonissone
32
33
ANFIS Pros
Characteristics
Translates prior
knowledge into
network topology
& initial fuzzy
partitions
Advantages
Network's first
three layers not
fully connected
(inputs-valuesrules)
Smaller
fan-out for
Backprop
Uses data to
determine
rules RHS
(TSK model)
Network
implementation of
Takagi-Sugeno-Kang
FLC
Faster
convergency
than typical
feedforward
NN
++
Smaller size
training set
+++
Model
compactness
(smaller # rules
than using labels)
34
ANFIS Cons
Characteristics
Translates prior
knowledge into
network topology
& initial fuzzy
partitions
Disadvantages
Sensitivity to
initial number
of partitions "
P"
Sensitivity to
number of input
variables " n "
Uses data to
determine rules
RHS (TSK
model)
Partial loss of
rule "locality"
Surface oscillations
around points (caused
by high partition
number)
--
Spatial exponential
complexity:
^n
# Rules = P
--
35
Uses Backprop
tune fuzzy
partitions
Advantages
Uses fuzzy
partitions to
discount outlier
effects
to
Automatic FLC
parametric
tuning
+++
Smoothness
guaranteed by
interpolation
++
Error pressure to
modify only
"values" layer
36
Characteristics
Uses LMS algorithm
to compute
polynomials
coefficients
Uses Backprop
tune fuzzy
partitions
Batch process
disregards previous
state (or IC)
to
Based on
quadratic
error cost
function
Not possible to
represent known
monotonic
relations
Cannot use
trapezoids nor
"Min"
Symmetric error
treatment & great
outliers influence
--
"Awkward"
interpolation
between slopes of
different sign
37
ANFIS Opportunities
Changes to decrease ANFIS complexity
Use dont care values in rules (no connection
between any node of value layer and rule layer)
Use reduced subset of state vector in partition tree
while evaluating linear functions on complete state
X = ( X r U X (nr) )
# RULES = pi
i=1
38
39
ANFIS Applications at GE
40
ANFIS References
ANFIS: Adaptive-Network-Based Fuzzy Inference System,
J.S.R. Jang, IEEE Trans. Systems, Man, Cybernetics,
23(5/6):665-685, 1993.
Neuro-Fuzzy Modeling and Control, J.S.R. Jang and C.-T.
Sun, Proceedings of the IEEE, 83(3):378-406
Industrial Applications of Fuzzy Logic at General Electric,
Bonissone, Badami, Chiang, Khedkar, Marcelle, Schutten,
Proceedings of the IEEE, 83(3):450-465
The Fuzzy Logic Toolbox for use with MATLAB, J.S.R. Jang
and N. Gulley, Natick, MA: The MathWorks Inc., 1995
Machine Learning, Neural and Statistical Classification
Michie, Spiegelhart & Taylor (Eds.), NY: Ellis Horwood 1994
Classification and Regression Trees, Breiman, Friedman,
Olshen & Stone, Monterey, CA: Wadsworth and Brooks, 1985
Copyright 2002 by Piero P. Bonissone
41