Fuzzy System - 1
Fuzzy System - 1
J.-S. R. Jang, Neuro-fuzzy and soft computing, Matlab curriculum series, 1997
What is fuzzy thinking?
• Experts rely on common sense when they solve problems
• Expert knowledge is vague and ambiguous - How to represent in a computer?
• Fuzzy logic is not logic that is fuzzy, but logic that is used to describe fuzziness.
Fuzzy logic is the theory of fuzzy sets, which calibrate vagueness.
• Boolean logic used sharp distinctions. It forces us to draw lines between
members of a class and nonmembers.
• For instance, we may say, Tom is tall because his height is 181 cm. If we drew a
line at 180cm, we would find that David, who is 179cm, is short.
• Fuzzy Logic reflects how people think. It attempts to model our sense of words,
our decision making and our common sense. As a result, it is leading to new,
more human, intelligent systems.
• Fuzzy logic is based on the idea that all things admit of degrees. Temperature,
height, speed, distance, beauty – all come on a sliding scale.
What is fuzzy thinking?
• Humans primarily use fuzzy terms: large, small, fast, slow, warm, cold, ….
• We say: “if the weather is nice and I have a little time, I will probably go for a walk in the park”
• We don’t say: “If the temperature is above 24 degrees and the cloud cover is less than 10% and
I have 3 hours time, I will go for a walk with a probability of 0.47.”
Fuzzy Logic: Motivation
• A lot of discussion about the nature of fuzzy logic since its appearance in the 1970s
• Many regard it as just a form of probability and question the soundness of its basis and
its reliability – the name “fuzzy” has not helped
• Both fuzzy logic and probability deal with the issue of uncertainty
• But despite their apparent similarity, there is an important difference between the two
paradigms...
Fuzzy Logic and Probability - The Difference
• Fuzzy logic deals not with likelihood of something having a certain property, but the
degree to which it has that property
• Fuzzy set theory and fuzzy logic provide a mathematical tool for handling this second
kind of uncertainty
• Despite the associated debate, its usefulness as a powerful tool for solving problems is
well established.
For example you have an exam tomorrow for subject X, and you say I'm pretty sure that the exam will
be 60% easy, 30% very easy, and 10% hard, but after you take the exam you know now that the exam
is hard, so the other probabilities are all 0 and Hard is 1.
In fuzzy logic the membership P of Y to a certain Set is a fact and stays as it is after the event is
executed so if the subject is 0.8 easy and the exam had been hard the subject will still have the
membership of 0.8 to easy.
So probability has no meaning after the event occurs, but membership is like a fact/knowledge it will
still be true after the event.
The difference between probability and fuzzy logic is clear when we consider the underlying
concept that each attempts to model. Probability is concerned with the un-decidability in the
outcome of clearly defined and randomly occurring events, while fuzzy logic is concerned
with the ambiguity or un-decidability inherent in the description of the event itself. Fuzziness
is often expressed as ambiguity rather than imprecision or uncertainty and remains a
characteristic of perception as well as concept.
Different types of uncertainty
Classical uncertainty
o “Head or a Tails?”
o Uncertain and precise
o Mostly can be handle by probability theory
Vague
o “Steve is tall”
o Certain but imprecise
o Can be handle by fuzzy sets and fuzzy logic
Imprecise
o “Mark weighs between 50kg and 65 kg”
o Uncertain and imprecise
o Probability or possibilities theory
Pros Why use Fuzzy Logic?
• Conceptually easy to understand w/ “natural” math
• Tolerant to imprecise data
• Universal Approximation: Can model arbitrary nonlinear functions
• Intuitive
• Based on linguistic terms
• Convenient way to express expert and common sense knowledge
• Requires little data
• Applicable to all kinds of uncertainty
• Fully comprehensive
• Fast and easy to compute
• Doesn’t require information about correlations
• Conservative, but not hyper-conservative
• In between worst case and probability
• Back calculations easy to solve
Cons
• Controversial
• Not a cure-all approach
• Crisp/precise models can be more efficient and even more convenient
• Other approaches might be formally verified to work
What are fuzzy systems and Why ?
• Traditional logic is two-valued – any proposition is either true or false
• Problem solving in real-life must deal with partially true or partially false propositions
• Imposing precision may be difficult and lead to less than optimal solutions
• Fuzzy systems handle imprecise information by assigning degrees of truth - using fuzzy logic
• It works on fuzzy logic, which superset of conventional (Boolean) logic that has been
extended to handle the concept of partial truth -- truth values between "completely true"
and "completely false".
• Intelligent control and decision support systems based on fuzzy logic have proved their
superiority over conventional hard logic based systems
Fuzzy System
Fuzzy system Applications
Rules
Air Conditioning Controller Example:
1.0 Membership
.9 function
.5
5’10’’ Heights
38.7°C
38°C
40.1°C 41.4°C Fuzzy Set
42°C
39.3°C
“Strong Fever” 38.7°C
37.2°C 38°C
40.1°C 41.4°C
42°C
39.3°C
“Strong Fever”
“More-or-Less” Rather Than “Either-Or” ! 37.2°C
Fuzzy sets
• The x-axis represents the universe of discourse – the range of all possible values
applicable to a chosen variable. In our case, the variable is the man height. According to
this representation, the universe of men’s heights consists of all tall men.
• The y-axis represents the membership value of the fuzzy sets. In our case, the fuzzy set of
“tall men” maps height values into corresponding membership values.
Fuzzy Sets
Example: the set of “young people”
Characteristics of MFs:
Subjective measures
Not probability functions
.8
.5 “tall” in the US
“tall” in NBA
.1
5’10’’ Heights
Fuzzy Sets and MFs
Formal definition:
A fuzzy set A in X is expressed as a set of ordered pairs:
Fuzzy set
Membership
function
(MF)
Universe or
universe of discourse
Continuous Universes
X is discrete
X is continuous
lingmf.m