Академический Документы
Профессиональный Документы
Культура Документы
X1 and X2
two inputs
Y one output
Neuro-fuzzy system
L ayer 1
L ayer 2
x1
x1
x1
x1
A1 A1
R1
A2
A2
R2
A3 A3
x2
x2
x2
x2
L ayer 3
B1 B1
B2
B3
B2
B3
L ayer 4
L ayer 5
R1
R2
R3 R3
R4 R4
R5
R5
R6
R6
wR3
C1
wR
C1
wR1
wR2
wR4
wR5
C2
C2
( 2)
0
,
if
x
parameters { a, b} as follows:
i a
2
yi( 2 ) 1
0,
2 xi( 2 ) a
b
b
b
xi( 2) a
2
2
b
( 2)
if xi a
2
, if a
a = 4, b = 6
a = 4.5, b = 6
a = 4, b = 6
0.8
0.8
0.6
0.6
0.4
0.4
0.2
0.2
a = 4, b = 4
Training patterns
0
1
1
The data set is used for training the five-rule neurofuzzy system shown below.
1
0.9 9
x2
w R5
0.8
wR1
0.72
0.61
0.6
wR3
0.4
wR2
0.2
0.79
wR4
10
20
Epoch
30
40
50
Given input and output linguistic values, a neurofuzzy system can automatically generate a
complete
set of fuzzy IF-THEN rules.
Let us create the system for the XOR example.
This system consists of 22 2 = 8
rules. Because
expert knowledge is not embodied
in the system
this time, we set all initial
weights between Layer 3
and Layer
4 to 0.5.
After training we can eliminate all rules whose
certainty factors are less than some
sufficiently
small number, say
S
L
1
2
0.78
0.69
4
5
x2
6
7
0.8
0.80
wR3
0.6
0
0.62
0
0
wR2 wR8
0.7
0.5
0.4
0.3
0.2
0.1
0
0
wR4
10
wR1
20
30
Epoch
wR5
40
50
ANFIS:
Adaptive NeuroFuzzy Inference System
The Sugeno fuzzy model was proposed for generating
fuzzy rules from a given input-output
data set. A typical
Sugeno fuzzy rule is
expressed in the following form:
IF
x1 is A1
AND x2 is A2
.....
AND
xm is Am
THEN y = f (x1, x2, . . . , xm)
Layer 2
Layer 3
Layer 4
A1
N1
A2
N2
x1 x2
Layer 5
Layer 6
x1
B1
N3
B2
N4
x2
(
4
)
( 4)
1
ii
i y
1
y
output
ofi neuron
Layer
4
is
i
N1 i in
n
n
( 4)
1 2 3 4
x ji as, j
determined
j 1
j 1
x
ki 0 weighted
ki1 x1 kiconsequent
x1 a ki 2 x 2]
calculates
2 x 2 i [ki value
0 k i1 of
i
i the
given rule as,
where is the input and is the output of
defuzzification neuron i in Layer 5, and
ki0, ki1
and ki2 is a set of
consequent parameters of rule i.
i 1
i 1
n(p) fn(p)
n(P) fn(P)
yd (1)
yd (2)
yd
y (p)
d
yd (P)
Layer 2
Layer 3
Layer 4
A1
N1
A2
N2
x1 x2
Layer 5
Layer 6
x1
B1
N3
B2
N4
x2
2
1
0
-1
-2
-3
1
0.5
0
-0.5
x2
-1
x1
10
2
1
0
-1
-2
-3
1
0.5
0
-0.5
x2
-1
x1
10
A1
x1
A2
A3
B1
x2
B2
B3
N1
N2
N3
N4
N5
N6
N7
N8
N9
2
1
0
-1
-2
-3
1
0.5
0
-0.5
x2
-1
x1
10
2
1
0
1
2
3
1
0.5
0
-0.5
x2
-1
x1
10
0.8
0.8
0.6
0.6
0.4
0.4
0.2
0.2
0
0
10
0
-1
-0.8
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.8
x1
x2
x2
0.8
0.8
0.6
0.6
0.4
0.4
0.2
0.2
0
0
10
x1
0
-1
-0.8
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.8
x2