Beruflich Dokumente
Kultur Dokumente
System
Rule Extraction
New
Data
Rule: IF - THE N
I nference E n gine
Explanation Facilities
User Interface
User
Approximate reasoning
In a rule-based expert system, the inference engine
compares the condition part of each rule with data
given in the database. When the IF part of the rule
matches the data in the database, the rule is
fired and
its THEN part is executed. The
precise matching is
required.
Neural expert systems use a trained neural network in
place of the knowledge base. The input data
does not
have to precisely match the data that
was used in
network training. This ability is
called approximate
reasoning.
Rule extraction
Neurons in the network are connected by links,
each of which has a numerical weight
attached to it.
The weights in a trained neural network determine
the strength or importance of the
associated neuron
inputs.
-0.8
Tail
0
+1
Rule 1
1.0
-1.6 -0.7
+1
-0.2
Beak
-1.1
2.2
-1.0
Feathers
+1
2.8
-0.1
Rule 2
-1.6
Engine
-1.1 1.9
-1.3
Plane
1.0
0.0
-2.9
1
Bird
Rule 3
Glider
1.0
YRule 1 YBird 1
YRule 2 YPlane 1
YRule 3 YGlider 1
i 1
j 1
xi wi w j
Example:
Enter initial value for the input Feathers:
+1
= 0.8 + 0.2 + 2.2 + 1.1 = 4.3
Rule 5:
IF a5 THEN b3 (0.6)
Rule 2:
IF a1 AND a4 THEN b1 (0.2)
Rule 6:
IF b1 AND b3 THEN c1 (0.7)
Rule 3:
IF a2 AND a5 THEN b2 (-0.1 )
Rule 7:
IF b2 THEN c1 (0.1)
Rule 4:
IF a3 AND a4 THEN b3 (0.9)
Rule 8:
IF b2 AND b3 THEN c2 (0.9)
Input
Layer
a1
Conjunction
Layer
1.0
R1
1.0
a2
1.0
R2
Disjunction
Layer
Conjunction
Layer
0.8
0.2
b1
1.0
R6
1.0
a3
a4
1.0
1.0
1.0
R3
-0.1
R4
0.9
R5
0.6
1.0
a5
1.0
Disjunction
Layer
b2
b3
1.0
1.0
1.0
1.0
R7
0.7
0.1
0.9
R8
c1
c2
Neuro-fuzzy systems
Fuzzy logic and neural networks are natural
complementary tools in building intelligent
systems. While neural networks
are low-level
computational
structures that perform well when
dealing with raw data, fuzzy logic deals with
reasoning on a higher level, using
linguistic
information acquired
from domain experts.
However, fuzzy systems lack the ability
to learn
and cannot adjust
themselves to a new
environment. On the other hand,
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
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
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
i 1
i 1
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