Week 11 Fuzzy Logic (Type-1 Fuzzy Logic)
Week 11 Fuzzy Logic (Type-1 Fuzzy Logic)
IF temperature = cool
THEN SLOW fan
IF temperature = cold
THEN STOP fan
Fuzzy Logic
(Introduction)
Philosophical approach
Decisions based on “degree of truth”
Is not a probability
Crisp Facts – distinct boundaries
Fuzzy Facts – imprecise boundaries
Probability - incomplete facts
Example – Scout reporting an enemy
“Two tanks at grid NV 54“ (Crisp)
“A few tanks at grid NV 54” (Fuzzy)
“There might be 2 tanks at grid NV 54 (Probabilistic)
WHAT IS FUZZY LOGIC?
Definition of fuzzy
Fuzzy – “not clear, distinct, or precise; blurred”
• Also note that people whose ages are > 20 and < 30 are
partial members of
the young set.
• For example, a person who is 25 would be young to the
degree of 0.5.
• Finally people whose ages are >= 30 are non-members
of the young set.
Fuzzy set theory
contd….
Human brains interpret imprecise and incomplete
sensory information provided by perceptive
organs
Fuzzy set theory provides a systematic calculus
to deal with such information linguistically
It performs numerical computation by using
linguistic labels stimulated by membership
functions
It lacks the adaptability to deal with changing
external environments ==> incorporate NN
learning concepts in fuzzy inference systems: NF
modeling (neuro-fuzzy)
Fuzzy Sets Theory
0.6
their height.
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degree of
Fuzzy Sets
Membership
1.0
0.8
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
+ Terminologies
0.6
0.2
1.0
0.6
0.2
tall, 1.0
0.6
short and 0.4
0.2
average 0.0
men. 150 160 170 180 190 200 210
Height, cm
Degreeof Fuzzy Sets
Membership
1.0
0.8
0.4
0.2
0.0
150 160 170 180 190 200 210
+ Crisp and Fuzzy Set
(x)
X FuzzySubsetA
1
0
Crisp SubsetA Fuzziness x
Fuzzy Logic
-or-
F.A.M. Note:
FAM=fuzzy Associative
Memory
“Fuzzy” Output
De-Fuzzification “Crisp” Output
Example
https://www.youtube.com/watch?
v=__0nZuG4sTw
Definitions
Fuzzifcation: is the process of changing a real scalar
value into a fuzzy value. This is achieved with the
different types of fuzzifiers (membership
functions).
Inference: A fuzzy inference system (FIS) is a
system that uses fuzzy set theory to map inputs to
outputs.
Defuzzification: The input for the defuzzification
process is the aggregate output fuzzy set and the
output is a single number. i.e. it convert the out fuzzy
terms into crisp number again.
Example………….
We will get,
Begin
Fuzzy Logic System
Crisp input
Rule Evaluation
(Inference)
Fuzzy output
Defuzzification
Crisp output
End
Fuzzy Systems
Inference
Input Fuzzification Defuzzification Output
Engine
Fuzzy
Knowledge base
Sample Fuzzy Rules
https://home.agh.edu.pl/~vlsi/AI/
fuzzy_t/example.html