Professional Documents
Culture Documents
Introduction
Neural expert systems
Neuro-fuzzy systems
ANFIS: Adaptive Neuro-Fuzzy Inference
System
Summary
Hybrid Systems
A hybrid intelligent system is one that combines at least two
intelligent technologies.
For example, combining a neural network with a fuzzy system
results in a hybrid neuro-fuzzy system.
x1 x1
A2 R2
x1 A2 R2
wR3 C1
C1
A3 A3 R3 R3 wR6
y
wR1
B1 B1 R4 R4 wR2
x2 C2
wR4
C2
R5 wR5
x2 x2 B2
B2 R5
x2
R6
B3
B3 R6
Each layer in the neuro-fuzzy system is associated
with a particular step in the fuzzy inference process.
Layer 1 is the input layer. Each neuron in this layer
transmits external crisp signals directly to the next
layer. That is,
yi(1) xi(1)
x1 x1
A2 R2
x1 A2 R2
wR3 C1
C1
A3 A3 R3 R3 wR6
y
wR1
B1 B1 R4 R4 wR2
x2 C2
wR4
C2
R5 wR5
x2 x2 B2
B2 R5
x2
R6
B3
B3 R6
0.6 0.6
0.4 0.4
0.2 0.2
0 X 0 X
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
x1 x1
A2 R2
x1 A2 R2
wR3 C1
C1
A3 A3 R3 R3 wR6
y
wR1
B1 B1 R4 R4 wR2
x2 C2
wR4
C2
R5 wR5
x2 x2 B2
B2 R5
x2
R6
B3
B3 R6
2. A fuzzy rule neuron receives inputs from the fuzzification neurons that represent
fuzzy sets in the rule antecedents.
3. For instance, neuron R1, which corresponds to Rule 1, receives inputs from neurons
A1 and B1.
Layer 3 is the fuzzy rule layer.
x1 x1
A2 R2
x1 A2 R2
wR3 C1
C1
A3 A3 R3 R3 wR6
y
wR1
B1 B1 R4 R4 wR2
x2 C2
wR4
C2
R5 wR5
x2 x2 B2
B2 R5
x2
R6
B3
B3 R6
The value of C1 represents the integrated firing strength of fuzzy rule
neurons R3 and R6.
Layer 4 is the output membership layer. Neurons
in this layer represent fuzzy sets used in the
consequent of fuzzy rules.
An output membership neuron combines all its
inputs by using the fuzzy operation union.
This operation can be implemented by the
probabilistic OR. That is,
( 4)
yi( 4) x1(i4) x2( 4i ) xli( 4) yC1 R3 R 6 C1
x1 x1
A2 R2
x1 A2 R2
wR3 C1
C1
A3 A3 R3 R3 wR6
y
wR1
B1 B1 R4 R4 wR2
x2 C2
wR4
C2
R5 wR5
x2 x2 B2
B2 R5
x2
R6
B3
B3 R6
Layer 5 is the defuzzification layer. Each neuron in this layer represents a single
output of the neuro-fuzzy system. It takes the output fuzzy sets clipped by the
respective integrated firing strengths and combines them into a single fuzzy
set.
0
1
0
0
The data set is used for training the five-rule neuro-
fuzzy system shown below.
Five-rule neuro-fuzzy system
S 1 1
wR1
x2 0.99 wR5
0.8
L 2 0
S y 0.6 wR3 wR4
Weight
3 0.72
L 0.4
0.61
S 4
x2 0.2 wR2
0.79
L 5 0
0 10 20 30 40 50
Epoch
0.80
0.1 wR4
L 8 0
0 10 20 30 40 50
Epoch
AND xm is Am
THEN y = f (x1, x2, . . . , xm)
where x1, x2, . . . , xm are input variables; A1, A2, . . . , Am
Orders of Sugeno fuzzy model
A2 2 N2 2
y
B1 3 N3 3
x2
B2 4 N4 4
Layer 1 is the input layer. Neurons in this layer simply pass external crisp
signals to Layer 2.
A2 2 N2 2
y
B1 3 N3 3
x2
B2 4 N4 4
A2 2 N2 2
y
B1 3 N3 3
x2
B2 4 N4 4
n n
y xi(6) i ki 0 ki1 x1 ki 2 x 2
i 1 i 1
Can an ANFIS deal with problems where we
do not have any prior knowledge of the rule
consequent parameters?
A2 2 N2 2
y
B1 3 N3 3
x2
B2 4 N4 4
The ANFIS training data includes 101 training
samples.
They are represented by a 101 3 matrix [x1 x2
yd], where x1 and x2 are input vectors, and yd is a
desired output vector.
-1
-2
-3
1
0.5 10
8
0 6
-0.5 4
2
-1
x2 0
x1
Learning in an ANFIS with two membership
functions assigned to each input (100 epochs)
y
Training Data
2 ANFIS Output
-1
-2
-3
1
0.5 10
8
0 6
-0.5 4
2
-1 0
x2 x1
We can achieve some improvement, but much
better results are obtained when we assign three
membership functions to each input variable.
x1
2 N2 2
A2
3 N3 3
A3 4 N4 4
y
5 N5 5
B1 6 N6 6
x2
7 N7 7
B2
8 N8 8
B3 9 N9 9
Learning in an ANFIS with three membership
functions assigned to each input (one epoch)
y
Training Data
2 ANFIS Output
-1
-2
-3
1
0.5 10
8
0 6
-0.5 4
2
-1
x2 0
x1
Learning in an ANFIS with three membership
functions assigned to each input (100 epochs)
y
Training Data
2 ANFIS Output
-1
-2
-3
1
0.5 10
8
0 6
-0.5 4
2
-1 0
x2 x1
Initial and final membership functions of the ANFIS
Neural expert systems
Neural expert systems
Expert systems rely on logical inferences and decision trees and
focus on modelling human reasoning.
Neural networks rely on parallel data processing and focus
on modelling a human brain.
Inference Engine
Explanation Facilities
User Interface
User
The inference engine
The heart of a neural expert system is the
inference engine.
0.2 1.0
a2 1.0 R2 b1 R6 0.7
1.0 c1
0.1
-0.1 1.0
a3 1.0 R3 b2 R7
1.0
1.0 1.0 0.9
c2
1.0 0.9 1.0
a4 R4 b3 R8
1.0
1.0 0.6
a5 R5