Professional Documents
Culture Documents
Systems
Adriano Cruz
Mestrado NCE, IM, UFRJ
Summary
Introduction
ANFIS Architecture
Simulation Examples
Introduction
Sugeno Model
Rule1:
If x is A1 and y is B1 , then f1 = p1 x + q1 y + r1
Rule2:
If x is A2 and y is B2 , then f2 = p2 x + q2 y + r2
Sugeno Model - I
B1
A1
W1
X
A2
B2
W2
X
x
f1=p1x+q1y+r1
f2=p2x+q2y+r2
f=
Y
y
w1.f1+w2.f2
w1+w2
ANFIS Architecture
Layer1
Layer2
Layer4
Layer3
A1
x
W1
Prod
Layer5
y
W1f1
Norm
f
A2
Sum
W2
Prod
B1
W1f2
Norm
x
y
B2
Layer 1 - I
Ol,i
Layer 1 - II
ai , bi , ci
1
i 2bi
1 + | xc
ai |
Layer 2
Layer 3
O3,i = w i = wi , i = 1, 2
w1 +w2
Layer 4
wi
{pi , qi , ri }
Layer 5
i w i fi
P
Pi wi fi
i wi
Alternative Structures
Layer2
Layer3
x
A1
x
W1
Layer4
Layer5
y
W1f1
Prod
W1f1+W2f2
Sum
A2
W2
Prod
B1
W1f2
x
y
B2
Sum
Learning Algorithm
Forward Pass
Backward Pass
Premise Parameters
Fixed
Gradient Descent
Consequent Parameters
Least-squares estimator
Fixed
Signals
Node outputs
Error signals
Universal Aproximator
Stone-Weierstrauss theorem - I
Indentity function:
Separability:
Algebraic closure:
Stone-Weierstrauss theorem - II
Matlab
Command anfisedit.
ANFIS gui
Applying
Initializing
Training
Testing
Using
Initializing - GENFIS1 - 1
Initializing - GENFIS1 - 2
Initializing - GENFIS1 - 3
data = [rand(10,1) 10*rand(10,1)-5 rand(10,1)];
fis = genfis1(data, [3 7], char(pimf,trimf));
[x,mf] = plotmf(fis,input,1);
subplot(2,1,1), plot(x,mf);
xlabel(input 1 (pimf));
[x,mf] = plotmf(fis,input,2);
subplot(2,1,2), plot(x,mf);
xlabel(input 2 (trimf));
Initializing - GENFIS1 - 4
1
0.8
0.6
0.4
0.2
0
0.2
0.3
0.4
0.5
0.6
0.7
input 1 (pimf)
0.8
0.9
1
0.8
0.6
0.4
0.2
0
2
1
input 2 (trimf)
Initializing - GENFIS2
Training
Some examples:
[FIS,ERROR] = ANFIS(TRNDATA)
[FIS,ERROR] =
ANFIS(TRNDATA,INITFIS)
Using
Example
run exemplo06_03.m
The End