Professional Documents
Culture Documents
Introduction
Neuro-Fuzzy systems are showing significant promise to many researchers in computer science.
ANFIS is one of the first inference systems where neural network and fuzzy inference technology
have been fused together.
In this report, we discussed a decision support system implemented using ANFIS.
What is ANFIS?
ANFIS stands for Adaptive Neuro-Fuzzy Inference System or Adaptive Network-based Fuzzy
Inference System. It was introduced in a paper in 1993.
It uses a Takagi-Sugeno approach for inferencing results. Generally, There are 5 layers in ANFIS.
But, when the input layer is considered, it becomes a 6-layered model. In this case, the second
layer is called the fuzzification layer. Layer 3 is referred to as the rule antecedent layer where the
rule firing strengths are computed. Rule strengths are normalized in layer 4. Layer 5 is the rule
consequent layer where each normalized firing strength for a corresponding rule is multiplied
by the calculated function value for that particular rule. Layer 6 computes the final result by
summing all the outputs of the previous layer. That is why this layer is called the rule inference
layer. Figure 1 shows the architecture of ANFIS.
The Problem
We were to design a decision support system that uses ANFIS to diagnose Sepsis in the ICU.
The system should have four fuzzy variables: PaO2, Base_Access, Thrombocytes, and Creati-
nine. Using the given membership function ranges and terms, we were to implement the fuzzy
inference process by drawing the membership functions and measuring output.
System Architecture
Figure 2 shows the architecture of our decision support system.
Layer 1
Layer 1 is the input layer. As inputs for the system we used the following values given in the
assignment.
P aO2 =3
Base_Access = 12
T hrombocytes = 22
Creatinine = 27
Layer 2
In Layer 2 fuzzification is performed.
0.8
Membership Value
0.6
0.4
0.2 low
high
0
0 5 10
PaO2 Level
In the assignment, we are given, alow = 0, blow = 0, clow = 5, ahigh = 0, bhigh = 5, chigh = 10
and P aO2 = 3
Therefore,
3−0 5−3 2
µlow (3) = max(min( , ), 0) = max(min(∞, ), 0)
0−0 5−0 5
= max(.4, 0) = .4
3 − 0 10 − 3 3 7
µhigh (3) = max(min( , ), 0) = max(min( , ), 0)
5 − 0 10 − 5 5 5
= max(.6, 0) = .6
Fuzzification of Base_Access
1
0.8
Membership Value
0.6
0.4
0.2 normal
abnormal
0
5 10 15 20
Base_Access Value
In the assignment, we are given, anormal = 5, bnormal = 10, cnormal = 15, aabnormal = 10,
babnormal = 10, cabnormal = 20 and Base_Access = 12
Fuzzification of Thrombocytes
1
0.8
Membership Value
0.6
0.4
0.2 low
high
0
10 15 20 25 30
Thrombocytes Level
In the assignment, we are given, alow = 10, blow = 15, clow = 25, ahigh = 15, bhigh = 20, chigh
= 30 and T hrombocytes = 22
Therefore,
22 − 10 25 − 22 12 3
µlow (22) = max(min( , ), 0) = max(min( , ), 0)
15 − 10 25 − 15 5 10
= max(.3, 0) = .3
22 − 15 30 − 22 7 8
µhigh (22) = max(min( , ), 0) = max(min( , ), 0)
20 − 15 30 − 20 5 10
= max(.8, 0) = .8
0.8
Membership Value
0.6
0.4
low
0.2 medium
high
0
20 25 30 35 40
Creatinine Level
27 − 20 30 − 27 7 3
µlow (27) = max(min( , ), 0) = max(min( , ), 0)
25 − 20 30 − 25 5 5
= max(.6, 0) = .6
27 − 25 35 − 27 2 8
µmedium (27) = max(min( , ), 0) = max(min( , ), 0)
30 − 25 35 − 30 5 5
= max(.4, 0) = .4
27 − 30 40 − 27 −3 13
µhigh (27) = max(min( , ), 0) = max(min( , ), 0)
35 − 30 40 − 35 5 5
= max(−.6, 0) = 0
Layer 3
The firing strengths or weights can be computed using the following formula,
If PaO2 is low and Base_Access is normal and Thrombocytes is low and Creatinine is
high then Sepsis is high
If PaO2 is low and Base_Access is normal and Thrombocytes is high and Creatinine is
low then Sepsis is low
For rule 1,
Layer 4
The normalized weights can be calculated using the formula,
wi
wi = , i = 1, 2, ...
w1 + w2 + ...
In our system,
0
w1 = =0
0 + 0.1152
Similarly,
0.1152
w2 = = 0.1152
0 + 0.1152
Layer 5
We use the following formula in this layer
wi fi = wi × (pi x + qi y + ri )
Layer 6
The formula for calculating the output is as follows,
P
w i fi
wi fi = Pi
X
O=
i i wi
Therefore,
O = w 1 f1 + w 2 f2
= 0 + 1.63584 = 1.63584
Conclusion
ANFIS is a brilliant scientific discovery. We hope that this assignment will benefit us in getting
a good grasp on neuro-fuzzy systems.