Unit 4 Fuzzy Systems
Unit 4 Fuzzy Systems
Soft Computing
Therefore:
– "You can log on to the network“
• Therefore
– You don't have a current password.
• This is an argument of the form:
¬q
p→q
• ¬p
4. Defuzzification.
Rule: 1 Rule: 1
IF x is A3 IF project_funding is adequate
OR y is B1 OR project_staffing is small
THEN z is C1 THEN risk is low
Rule: 2 Rule: 2
IF x is A2 IF project_funding is marginal
AND y is B2 AND project_staffing is large
THEN z is C2 THEN risk is normal
Rule: 3 Rule: 3
IF x is A1 IF project_funding is inadequate
THEN z is C3 THEN risk is high
1 1 B1 B2
A1 A2 A3 0.7
0.5
0.2 0.1
0 0
x1 X y1 Y
(x = A1) = 0.5 (y = B1) = 0.1
(x = A2) = 0.2 (y = B2) = 0.7
• If a given fuzzy rule has multiple antecedents, the fuzzy operator (AND or
OR) is used to obtain a single number that represents the result of the
antecedent evaluation.
0 x1 X 0 Z
Rule 3: IF x is A1 (0.5) THEN z is C3 (0.5)
3/26/2019 Indu Bhardwaj 62
Step 2: Rule Evaluation
• Now the result of the antecedent evaluation can be applied to the
membership function of the consequent.
• Since the top of the membership function is sliced, the clipped fuzzy set
loses some information.
• This method, which generally loses less information, can be very useful in
fuzzy expert systems.
Degree of Degree of
Membership Membership
1.0 1.0
C2 C2
0.2 0.2
0.0 0.0
Z Z
clipping scaling
1 1 1
C1 C2 C3
0.5 0.5
0.2 0.2
0.1 0.1
0 Z 0 Z 0 Z 0 Z
z is C 1 (0.1) z is C 2 (0.2) z is C 3 (0.5)
• Fuzziness helps us to evaluate the rules, but the final output of a fuzzy
system has to be a crisp number.
• The input for the defuzzification process is the aggregate output fuzzy set
and the output is a single number.
b
A x x dx
COG a
b
A x dx
a
0.6 A
0.4
0.2
a b
0.0 X
150 160 170 180 190 200 210
0.4
0.2
0.0
0 10 20 30 40 50 60 70 80 90 100
67.4 Z
IF x is A
AND y is B
THEN z is f(x, y)
where x, y and z are linguistic variables; A and B are fuzzy sets on universe
of discourses X and Y, respectively; and f(x, y) is a mathematical function.
IF x is A
AND y is B
THEN z is k
where k is a constant.
• In this case, the output of each fuzzy rule is constant. All consequent
membership functions are represented by singleton spikes.
0 x1 X 0 k3 Z
Rule 3: IF x is A1 (0.5) THEN z is k3 (0.5)
3/26/2019 Indu Bhardwaj 76
Sugeno Aggregation of the Rule Outputs
1 1 1 1
0.5 0.5
0.2
0.1 0.2 0.1
0 k1 Z 0 k2 Z 0 k3 Z 0 k1 k2 k3 Z
0 z1 Z
Crisp Output
z1