Tn2103 Knowledge Engineering & Expert System
Tn2103 Knowledge Engineering & Expert System
Tn2103 Knowledge Engineering & Expert System
TOPIC 7
REASONING UNDER UNCERTAINTY:
FUZZY LOGIC
Table of Content
What is Fuzzy Logic?
Brief History of Fuzzy Logic
Current Applications of Fuzzy Logic
Overview of Fuzzy Logic
Forming Fuzzy Set
Fuzzy Set Representation
Hedges
Fuzzy Set Operations
Fuzzy Inference
Fuzzy Logic Controllers (FLC)
What is Fuzzy Logic?
What is FUZZINESS?
According to OXFORD DICTIONARY, FUZZY
means
Blurred, Fluffy, Frayed or Indistinct
Fuzziness is deterministic uncertainty
Fuzziness is concerned with the degree to which
events occur rather than the likelihood of their
occurrence (probability)
What is Fuzzy Logic?
For example:
The degree to which a person is young is a fuzzy event rather
than a random event.
Research
1989 First Fuzzy Logic air-conditioner
1990 First Fuzzy Logic washing machine
1990 Japanese companies develop fuzzy logic application in a big way
2000?
Current Applications of Fuzzy Logic
Camera aiming for telecast of sporting events
Expert system for assessment of stock exchange activities
Efficient and stable control of car-engines
Cruise control for automobiles
Medicine technology: cancer diagnosis
Recognition of hand-written symbols with pocket computers
Automatic motor-control for vacuum cleaners
Back light control for camcorders
Single button control for washing machines
Flight aids for helicopters
Controlling of subway systems in order to improve driving comfort,
precision halting and power economy
Improved fuel-consumption for automobiles
Current Applications of Fuzzy Logic
Expert systems also utilised fuzzy logic since the domain is
often inherently fuzzy.
Some examples:
decision support systems
financial planners
diagnosing systems for determining soybean
pathology
a meteorological expert system in China for
determining areas in which to establish rubber tree
orchards
Current Applications of Fuzzy Logic
THE SENDAI SUBWAY SYSTEM
Example:
The Universe of Discourse for the linguistic variable speed
in R1 is in the range [0,100mph].
HOW?
By assigning membership values between 0 and 1.
Overview of Fuzzy Logic
Example:
Consider young people (age <= 10).
If person age is 5 assign membership value 0.9
if 13, a value of 0.1
Example:
Tall = {0/5, 0.25/5.5, 0.76/6, 1/6.5, 1/7}
somewhat tall = { /5, /5.5, /6, /6.5, /7}
Hedges Commonly Used in Practice
Intensification (Indeed)
Example:
short = {1/5, 0.8/5.5, 0.5/6, 0.2/6.5, 0/7}
indeed short = { /5, /5.5, /6, /6.5, /7}
Hedges Commonly Used in Practice
Power (Very Very)
Example:
Create fuzzy set of very very tall person with n=3
Tall = {0/5, 0.25/5.5, 0.76/6, 1/6.5, 1/7}
Very very tall = { /5, /5.5, /6, /6.5, /7}
Fuzzy Set Operations
Intersection
In classical set theory, intersection of 2 sets contains
elements common to both.
In fuzzy sets, an element may be partially in both sets.
AB (X) = min (A(x), B(x)) x X
Example:
Tall = {0/5, 0.2/5.5, 0.5/6, 0.8/6.5, 1/7}
Short = {1/5, 0.8/5.5, 0.5/6, 0.2/6.5, 0/7}
tall short =
Tall and short can mean medium
Highest at the middle and lowest at both end.
Fuzzy Set Operations
Union
Union of 2 sets is comprised of those elements that belong
to one or both sets.
AB (X) = max (A(x), B(x)) x X
Example:
Tall = {0/5, 0.2/5.5, 0.5/6, 0.8/6.5, 1/7}
Short = {1/5, 0.8/5.5, 0.5/6, 0.2/6.5, 0/7}
tall short =
2. Propagation (Inference)
Fuzzy rules are applied to the fuzzy variables where degrees of
membership computed in the condition part are propagated to the
fuzzy variables in the conclusion part. (max-min and max-
product inference)
3. De-fuzzification
The resultant degrees of membership for the fuzzy variables are
converted back into crisp values.
Fuzzy Inference
Fuzzy Inference (Example)
Assume 2 cars travelling the same speed along a straight road. The distance
between the cars becomes one of the factors for the second driver to brake his car
to avoid collision. The following rule might be used by the second driver:
IF the distance between cars is very small
AND the speed of car is high
THEN brake very hard for speed reduction.