SlideShare a Scribd company logo
1 of 69
Fuzzy Logic : Introduction
Soft Computing Applications 1 /69
What is Fuzzy logic?
Fuzzy logic is a mathematical language to express something.
This means it has grammar, syntax, semantic like a language for
communication.
There are some other mathematical languages also known
• Relational algebra (operations on sets)
• Boolean algebra (operations on Boolean variables)
• Predicate logic (operations on well formed formulae (wff), also
called predicate propositions)
Fuzzy logic deals with Fuzzy set.
2 /69
A brief history of Fuzzy Logic
First time introduced by Lotfi Abdelli Zadeh (1965), University of
California, Berkley, USA (1965).
He is fondly nick-named as LAZ
Soft Computing Applications 3 /69
A brief history of Fuzzy logic
1
2
Dictionary meaning of fuzzy is not clear, noisy etc.
Example: Is the picture on this slide is fuzzy?
Antonym of fuzzy is crisp
Example: Are the chips crisp?
Soft Computing Applications 4 /69
Example : Fuzzy logic vs. Crisp logic
Milk
Water
Coca
Sprite
Crisp answer
Yes or No
True or False
Crisp
Is the liquid
colorless?
Yes
No
A liquid
5 /69
Example : Fuzzy logic vs. Crisp logic
Fuzzy answer
May be
May notbe
Absolutely
Partially
etc
Soft Computing Applications 6 /69
Example : Fuzzy logic vs. Crisp logic
Fuzzy
Is the person
honest?
Extremely honest
Very honest
Honest at times
Extremely dishonest
99
75
55
35
 Ankit
 Rajesh
 Santosh
 Kavita
 Salman
Score
Soft Computing Applications 7 /69
World is fuzzy!
Our world is better
described with
fuzzily!
Soft Computing Applications 8 /69
Concept of fuzzy system
Fuzzy element(s)
Fuzzy set(s)
Fuzzy rule(s)
Fuzzy implication(s)
(Inferences)
Fuzzy system
O
U
T
P
U
T
I
N
P
U
T
Soft Computing Applications 9 /69
Concept of fuzzy set
Tounderstand the concept of fuzzy set it is better, if we first clear our
idea of crisp set.
X = The entire population of India.
H = All Hindu population = { h1, h2, h3, ... , hL }
M = All Muslim population = { m1, m2, m3, ... , mN }
H
M
X
Universe of discourse
Here, All are the sets of finite numbers of individuals.
Such a set is called crisp set.
Soft Computing Applications 10 /69
Example of fuzzy set
Let us discuss about fuzzy set.
X = All students in IT60108.
S = All Good students.
S = { (s, g) |s ∈X } and g(s) is a measurement of goodness ofthe
students.
Example:
S = { (Rajat, 0.8), (Kabita, 0.7), (Salman, 0.1), (Ankit, 0.9) } etc.
Soft Computing Applications 11 /69
Fuzzy set vs. Crisp set
Crisp Set Fuzzy Set
1. S = { s |s ∈X } 1. F = (s, µ) |s ∈X and
µ(s) is the degree of s.
2. It is a collection of el-
ements.
2. It is collection of or-
dered pairs.
3. Inclusion of an el-
ement s ∈ X into S is
crisp, that is, has strict
boundary yes or no.
3. Inclusion of an el-
ement s ∈ X into F is
fuzzy, that is, if present,
then with a degree of
membership.
Soft Computing Applications 12 /69
Fuzzy set vs. Crisp set
Note: A crisp set is a fuzzy set, but, a fuzzy set is not necessarily a
crisp set.
Example:
H = { (h1, 1), (h2, 1), ... , (hL, 1)}
Person = { (p1, 1), (p2, 0), ... , (pN , 1) }
In case of a crisp set, the elements are with extreme values of degree
of membership namely either 1 or 0.
How to decide the degree of memberships of elements in a fuzzy set?
City Bangalor
e
Bombay Hyderaba d
Kharagpur
Madras Delhi
DoM 0.95 0.90 0.80 0.01 0.65 0.75
How the cities of comfort can be judged?
Soft Computing Applications 13 /69
Example: Course evaluation in a crisp way
1
2
3
4
5
6
7
EX = Marks ≥ 90
A = 80 ≤ Marks < 90
B = 70 ≤ Marks < 80
C = 60 ≤ Marks < 70
D = 50 ≤ Marks < 60
P = 35 ≤ Marks < 50
F = Marks < 35
Soft Computing Applications 14 /69
Example: Course evaluation in a crisp way
F P D C B A EX
1
0
35 50 60 70 80 90 100

Soft Computing Applications 15 /69
Example: Course evaluation in a fuzzy way
1
0
F P B A EX
35 50 60 70 80 90 100

D C
Soft Computing Applications 16 /69
Few examples of fuzzy set
High Temperature
Low Pressure
Color of Apple
Sweetness of Orange
Weight of Mango
Note: Degree of membership values lie in the range [0...1].
Soft Computing Applications 17 /69
Some basic terminologies and notations
Definition 1: Membership function (and Fuzzy set)
If X is a universe of discourse and x ∈X, then a fuzzy set A in X is
defined as a set of ordered pairs, that is
A = {(x, µA(x))|x ∈X} where µA(x) is called the membership function
for the fuzzy set A.
Note:
µA(x) map each element of X onto a membership grade (or
membership value) between 0 and 1 (both inclusive).
Question:
How (and who) decides µA(x) for a Fuzzy set A in X?
Soft Computing Applications 18 /69
Some basic terminologies and notations
Example:
X = All cities in India
A = City of comfort
A={(New Delhi, 0.7), (Bangalore, 0.9), (Chennai, 0.8), (Hyderabad,
0.6), (Kolkata, 0.3), (Kharagpur, 0)}
Soft Computing Applications 19 /69
Membership function with discrete membership
values
The membership values may be of discrete values.
A

Soft Computing Applications 20 /69
Membership function with discrete membership
values
Either elements or their membership values (or both) also may be of
discrete values.
0 2 4 6 8 10
1.0
0.8
0.6
0.4
0.2
µ
A ={(0,0.1),(1,0.30),(2,0.78)……(10,0.1)}
Note : X = discrete value
How you measure happiness ??
Number of children (X)
A = “Happy family”
Soft Computing Applications 21 /69
Membership function with continuous
membership values
0 50 100
1.0
0.8
0.6
0.4
0.2
Age (X)
B = “Middle aged”
1
B
 x50
4
1 10 
 
 (x) 
B
Note : x = real value
= R+
Soft Computing Applications 22 /69
Fuzzy terminologies: Support
Support: The support of a fuzzy set A is the set of all points x ∈X
such that µA(x) > 0
A
Soft Computing Applications 23 /69
Fuzzy terminologies: Core
µ
Core: The core of a fuzzy set A is the set of all points x in X such that
µA(x) = 1
core (A) = {x | µA(x) = 1}
x
1.0
0.5
Soft Computing Applications 24 /69
Fuzzy terminologies: Normality
Normality : A fuzzy set A is a normal if its core is non-empty. In other
words, we can always find a point x ∈X such that µA(x ) =1.
1.0
Soft Computing Applications 25 /69
Fuzzy terminologies: Crossover points
Crossover point : A crossover point of a fuzzy set A is a point x ∈X
at which µA(x ) = 0.5. That is
Crossover (A) = {x |µA(x) = 0.5}.
Soft Computing Applications 26 /69
Fuzzy terminologies: Fuzzy Singleton
Fuzzy Singleton : A fuzzy set whose support is a single point in X
with µA(x ) = 1 is called a fuzzy singleton. That is
|A| = |{ x | µA(x) = 1}| = 1. Following fuzzy set is not a fuzzy singleton.
Soft Computing Applications 27 /69
Fuzzy terminologies: α-cut and strong α-cut
α-cut and strong α-cut :
The α-cut of a fuzzy set A is a crisp set defined by
Aα = {x |µA(x) ≥ α }
Strong α-cut is defined similarly :
Aα’ = {x |µA(x) > α }
Note : Support(A) = A0’ and Core(A) = A1.
Soft Computing Applications 28 /69
Fuzzy terminologies: Convexity
Convexity : A fuzzy set A is convex if and only if for any x1 and x2 ∈ X
and any λ ∈[0, 1]
µA (λx1 + (1 -λ)x2) ≥ min(µA(x1),µA(x2))
Note :
• A is convex if all its α- level sets are convex.
• Convexity (Aα) =⇒ Aα is composed of a single line segment only.
Membership function is
convex
1.0
Non-convex
Membership function
1.0
Soft Computing Applications 29 /69
Fuzzy terminologies: Bandwidth
Bandwidth :
For a normal and convex fuzzy set, the bandwidth (or width) is defined
as the distance the two unique crossover points:
Bandwidth(A) = |x1 - x2 |
where µA(x1) = µA(x2) = 0.5
Soft Computing Applications 30 /69
Fuzzy terminologies: Symmetry
Symmetry :
A fuzzy set A is symmetric if its membership function around a certain
point x = c, namely µA(x + c) = µA(x - c) for all x ∈ X.
Soft Computing Applications 31 /69
Fuzzy terminologies: Open and Closed
A fuzzy set A is
Open left
If limx→−∞ µA(x) = 1 and limx→+∞ µA(x) = 0
Open right:
If limx→−∞µA(x) = 0 and limx→+∞ µA(x) = 1
Closed
If : limx →−∞ µA(x) = limx →+∞ µA(x) =0
Open left Open right
Closed
Soft Computing Applications 32 /69
Fuzzy vs. Probability
Fuzzy : When we say about certainty of a thing
Example: A patient come to the doctor and he has to diagnose so that
medicine can be prescribed.
Doctor prescribed a medicine with certainty 60% that the patient is
suffering from flue. So, the disease will be cured with certainty of 60%
and uncertainty 40%. Here, in stead of flue, other diseases with some
other certainties may be.
Probability: When we say about the chance of an event to occur
Example: India will win the T20 tournament with a chance 60% means
that out of 100 matches, India own 60 matches.
Soft Computing Applications 33 /69
Prediction vs. Forecasting
The Fuzzy vs. Probability is analogical to Prediction vs. Forecasting
Prediction : When you start guessing about things.
Forecasting : When you take the information from the past job and
apply it to new job.
The main difference:
Prediction is based on the best guess from experiences.
Forecasting is based on data you have actually recorded and packed
from previous job.
Soft Computing Applications 34 /69
Fuzzy Membership
Functions
Soft Computing Applications 35 /69
Fuzzy membership functions
A fuzzy set is completely characterized by its membership function
(sometimes abbreviated as MF and denoted as µ ). So, it would be
important to learn how a membership function can be expressed
(mathematically or otherwise).
Note: A membership function can be on
(a) a discrete universe of discourse and
(b) a continuous universe of discourse.
Example:
0 2 4 6 8 10
1.0
0.8
0.6
0.4
0.2
µ
A
Number of children(X)
A = Fuzzy set of “Happyfamily”
0
1.0
0.8
0.6
0.4
0.2
µ
B
Age (X)
B = “Youngage”
10 20 30 40 50 60
Soft Computing Applications 36 /69
Fuzzy membership functions
So, membership function on a discrete universe of course is trivial.
However, a membership function on a continuous universe of
discourse needs a special attention.
Following figures shows a typical examples of membership functions.
µ
x x x
< triangular> < trapezoidal > < curve >
x
< non-uniform >
x
< non-uniform >
µ
µ
µ
µ
Soft Computing Applications 37 /69
Fuzzy MFs : Formulation and parameterization
In the following, we try to parameterize the different MFs on a
continuous universe of discourse.
Triangular MFs : A triangular MF is specified by three parameters
{a, b,c} and can be formulated as follows.
triangle x a bc
( ; , , ) =
0
x−a
b−a
c−x
c−b
0
if x ≤ a
if a ≤ x ≤ b
if b ≤ x ≤ c
if c ≤ x
(1)
a b c
1.0
Soft Computing Applications 38 /69
Fuzzy MFs: Trapezoidal
A trapezoidal MF is specified by four parameters {a, b,c,d} and can
be defined as follows:
trapeziod(x;a,b,c,d) =
b−a
d−x
d−c
1 if x ≤ a
x−a if a ≤ x ≤ b
1 if b ≤ x ≤ c
if c ≤ x ≤ d
0 if d ≤x
(2)
a b c d
1.0
Soft Computing Applications 39 /69
Fuzzy MFs: Gaussian
A Gaussian MF is specified by two parameters {c, σ} and can be
defined as below:
gaussian(x;c,σ) =e− (
1 x− c
2 σ 2
) .
c

0.9c
0.1c
0.1
Soft Computing Applications 40 /69
Fuzzy MFs: Generalized bell
It is also called Cauchy MF. A generalized bell MF is specified by three
parameters {a, b,c} and is defined as:
bell(x; a, b, c)= 1
1+|x−
a
c |2b
c c+a
c-a
b
2a
b
2a
b
Slope at x =
x y
Slope at y =
Soft Computing Applications 41 /69
Example: Generalized bell MFs
Example: µ(x)= 1
1+x2 ;
a = b = 1 and c = 0;
1.0
-1 1
0
1
Soft Computing Applications 42 /69
Generalized bell MFs: Different shapes
Changinga Changingb
Changinga
Changing a andb
Soft Computing Applications 43 /69
Fuzzy MFs: Sigmoidal MFs
Parameters: {a, c} ; where c = crossover point and a = slope at c;
Sigmoid(x;a,c)= 1
a
1+e−[ x− c ]
1.0
0.5
c
Slope = a
Soft Computing Applications 44 /69
Fuzzy MFs : Example
Example : Consider the following grading system for a course.
Excellent = Marks ≤ 90
Very good = 75 ≤ Marks ≤ 90
Good = 60 ≤ Marks ≤ 75
Average = 50 ≤ Marks ≤ 60
Poor = 35 ≤ Marks ≤ 50
Bad= Marks ≤ 35
Soft Computing Applications 45 /69
Grading System
A fuzzy implementation will look like the following.
60 70 80 90
10 20 30
Bad poor Average Good VeryGood Excellent
40 50
marks
1
.8
.6
.4
.2
0
You can decide a standard fuzzy MF for each of the fuzzy garde.
Soft Computing Applications 46 /69
Operations on Fuzzy Sets
Soft Computing Applications 47 /69
Basic fuzzy set operations: Union
q
µ
µB
b c q
Union (A ∪B):
µA∪B(x) = max{µA(x), µB(x)}
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and
B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)};
C = A ∪B = {(x1, 0.5), (x2, 0.3), (x3, 0.5)}
µA µA
µB
b c
µ
AUB
a p x a p x
Soft Computing Applications 48 /69
Basic fuzzy set operations: Intersection
q
Intersection (A ∩B):
µA∩B(x) = min{µA(x), µB(x)}
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and
B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)};
C = A ∩B = {(x1, 0.2), (x2, 0.1), (x3, 0.4)}
µA
µB
µ
b c q
b c
a p x a p x
µ
AᴖB
Soft Computing Applications 49 /69
Basic fuzzy set operations: Complement
Complement (AC):
µAAC (x) = 1-µA(x)
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)}
C = AC = {(x1, 0.5), (x2, 0.9), (x3, 0.6)}
q
µA
µ
p x p q
x
1.0 µA’
µA
Soft Computing Applications 50 /69
Basic fuzzy set operations: Products
Algebric product or Vector product (A•B):
µA•B(x) = µA(x) •µB(x)
Scalar product (α × A):
µαA(x) = α ·µA(x)
Soft Computing Applications 51 /69
Basic fuzzy set operations: Sum and Difference
Sum (A +B):
µA+B(x) = µA(x) + µB(x) − µA(x) ·µB(x)
Difference (A − B = A ∩BC ):
µA−B (x ) = µA∩BC (x )
Disjunctive sum: A ⊕ B = (AC ∩B) ∪(A ∩BC))
Bounded Sum: |A(x) ⊕ B(x) |
µ|A(x)⊕B(x)| = min{1, µA(x) + µB(x)}
Bounded Difference: |A(x) g B(x) |
µ|A(x)gB(x )| = max{0, µA(x) + µB(x) − 1}
Soft Computing Applications 52 /69
Basic fuzzy set operations: Equality and Power
Equality (A = B):
µA(x) = µB(x)
Power of a fuzzy set Aα:
µAα (x) = {µA(x)}α
If α < 1, then it is calleddilation
If α > 1, then it is calledconcentration
Soft Computing Applications 53 /69
Basic fuzzy set operations: Cartesian product
Caretsian Product (A ×B):
µA×B(x, y) = min{µA(x),µB(y)
Example 3:
A(x) = {(x1, 0.2), (x2, 0.3), (x3, 0.5), (x4, 0.6)}
B(y) = {(y1, 0.8), (y2, 0.6), (y3, 0.3)}
A × B = min{µA(x), µB(y)} =
y1 y2 y3
2
x 0.3 0.3 0.3
3
x 0
x4 0.6 0.6
.5 0.5 0.3
0.3
x1 0.2 0.2 0.2
Soft Computing Applications 54 /69
Properties of fuzzy sets
Commutativity :
A∪B = B∪A
A∩B = B∩A
Associativity :
A ∪(B ∪C) = (A ∪B) ∪C
A ∩(B ∩C) = (A ∩B) ∩C
Distributivity :
A ∪(B ∩C) = (A ∪B) ∩(A ∪C)
A ∩(B ∪C) = (A ∩B) ∪(A ∩C)
Soft Computing Applications 55 /69
Properties of fuzzy sets
Idempotence :
A ∪A = A
A ∩A = A
A ∪∅
= A
A ∩∅
= ∅
Transitivity :
If A ⊆ B, B ⊆ C then A ⊆C
Involution :
(Ac )c = A
De Morgan’s law :
(A ∩B)c = Ac ∪Bc
(A ∪B)c = Ac ∩Bc
Soft Computing Applications 56 /69
Few Illustrations on Fuzzy
Sets
Soft Computing Applications 57 /69
Example 1: Fuzzy Set Operations
Let A and B are two fuzzy sets defined over a universe of discourse X
with membership functions µA(x) and µB(x), respectively. Two MFs
µA(x) and µB(x) are shown graphically.
µ
A
(x)
a1 a2 a3 a4
x
µ
B
(x) b1 a1=b2 a2=b3 a4 x
Soft Computing Applications 58 /69
Example 1: Plotting two sets on the same graph
Let’s plot the two membership functions on the same graph
µ
b1 a1
x
µA
µB
a2 b4 a3 a4
Soft Computing Applications 59 /69
Example 1: Union and Intersection
The plots of union A ∪B and intersection A ∩B are shown in the
following.
x
a2 b4
x

A
B
(
)x

A
B
(
)x b1 a1 a2 a3 a4
µ
µA
µB
b1 a1 a2 b4 a3 a4 x
Soft Computing Applications 60 /69
Example 1: Intersection
The plots of union µA
¯(x) of the fuzzy set A is shown in the following.
x
a b

A
(
)x
x
a b

(
)x
A
Soft Computing Applications 61 /69
Fuzzy set operations: Practice
Consider the following two fuzzy sets A and B defined over a universe
of discourse [0,5] of real numbers with their membership functions
+x
µA(x ) = 1
x and µB(x) = 2−x
Determine the membership functions of the following and draw them
graphically.
i. A , B
ii. A ∪B
iii. A ∩B
iv.(A ∪B)c [Hint: Use De’ Morgan law]
Soft Computing Applications 62 /69
Example 2: A real-life example
Two fuzzy sets A and B with membership functions µA(x) and µB(x),
respectively defined as below.
A = Cold climate with µA(x ) as the MF.
B = Hot climate with µB(x) as the M.F.
µ
-15 -10 -5 0 5 10 15 20 25 30 35 40
x
45 50
0.5
1.0
µA µB
Here, X being the universe of discourse representing entire range of
temperatures.
Soft Computing Applications 63 /69
Example 2: A real-life example
What are the fuzzy sets representing the following?
1
2
3
4
Not cold climate
Not hold climate
Extreme climate
Pleasantclimate
Note: Note that ”Not cold climate” ƒ= ”Hot climate” and vice-versa.
Soft Computing Applications 64 /69
Example 2 : A real-life example
Answer would be the following.
1 Not cold climate
A with 1 − µA(x) as the MF.
2 Not hot climate
B with 1 − µB(x) as the MF.
3 Extreme climate
A ∪B with µA∪B(x) = max(µA(x),µB(x)) as the MF.
4 Pleasant climate
A ∩B with µA∩B(x) = min(µA(x), µB(x)) as the MF.
The plot of the MFs of A ∪B and A ∩B are shown in the following.
5 15 25
x

AB

x
5 25

AB

µ
15 10 -5 0 5 10 15 20 25 30 35 40 45 50
x
0.
5
- -
1.0
µA µB
Extreme climate Pleasant climate
1.0
Soft Computing Applications 65 /69
Few More on Membership
Functions
Soft Computing Applications 66 /69
Generation of MFs
Given a membership function of a fuzzy set representing a linguistic
hedge, we can derive many more MFs representing several other
linguistic hedges using the concept of Concentration and Dilation.
Concentration:
Ak = [µA(x )]k ; k >1
Dilation:
Ak = [µA(x )]k ; k <1
Example : Age = { Young, Middle-aged, Old}
Thus, corresponding to Young, we have : Not young, Very young, Not
very young and so on.
Similarly, with Old we can have : old, very old, very very old, extremely
old etc.
Thus, Extremely old = (((old )2)2)2 and soon
Or, More or less old = A0.5 = (old )0.5
Soft Computing Applications 67 /69
Linguistic variables and values
Young Old
Middle-Aged
0 30 60 100
Very Old
Very young

X = Age
young
µ (x) = bell(x, 20,2,0) = 1
20
1+( x )4
µold(x) = bell(x, 30,3,100) = 1
x 100
1+( −
30 )6
µmiddle−aged = bell(x, 30,60,50)
Not young = µyoung(x) = 1 − µyoung(x)
Young but not too young = µyoung(x) ∩µyoung(x)
Soft Computing Applications 68 /69
Any questions??
Soft Computing Applications 69 /69

More Related Content

What's hot

Back propagation
Back propagationBack propagation
Back propagationNagarajan
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemDigiGurukul
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural NetworkSaransh Choudhary
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKnaimish12
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real WorldBCSLeicester
 
M ary psk and m ary qam ppt
M ary psk and m ary qam pptM ary psk and m ary qam ppt
M ary psk and m ary qam pptDANISHAMIN950
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networksAkash Goel
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGSnehal Hedau
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filtersop205
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madalineNagarajan
 

What's hot (20)

Back propagation
Back propagationBack propagation
Back propagation
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th Sem
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASK
 
Classical Sets & fuzzy sets
Classical Sets & fuzzy setsClassical Sets & fuzzy sets
Classical Sets & fuzzy sets
 
Equalization
EqualizationEqualization
Equalization
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
 
M ary psk and m ary qam ppt
M ary psk and m ary qam pptM ary psk and m ary qam ppt
M ary psk and m ary qam ppt
 
Associative memory network
Associative memory networkAssociative memory network
Associative memory network
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
Information theory
Information theoryInformation theory
Information theory
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
DIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSINGDIGITAL SIGNAL PROCESSING
DIGITAL SIGNAL PROCESSING
 
Source coding
Source codingSource coding
Source coding
 
Design of FIR filters
Design of FIR filtersDesign of FIR filters
Design of FIR filters
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Introduction to soft computing
 Introduction to soft computing Introduction to soft computing
Introduction to soft computing
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 

Similar to FL-01 Introduction.pptx

Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computingPurnima Pandit
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series editedProf Dr S.M.Aqil Burney
 
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptxsaadurrehman35
 
Fuzzy Logic.pptx
Fuzzy Logic.pptxFuzzy Logic.pptx
Fuzzy Logic.pptxImXaib
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfRamya Nellutla
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set TheoryAMIT KUMAR
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic pptRitu Bafna
 
Statistical Inference Part II: Types of Sampling Distribution
Statistical Inference Part II: Types of Sampling DistributionStatistical Inference Part II: Types of Sampling Distribution
Statistical Inference Part II: Types of Sampling DistributionDexlab Analytics
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansijsc
 
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022S
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022SEcon 103 Homework 2Manu NavjeevanAugust 15, 2022S
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022SEvonCanales257
 
On fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncceOn fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncceSurender Singh
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheetSuvrat Mishra
 
Lecture 1 computational intelligence
Lecture 1  computational intelligenceLecture 1  computational intelligence
Lecture 1 computational intelligenceParveenMalik18
 
Fuzzy logicintro by
Fuzzy logicintro by Fuzzy logicintro by
Fuzzy logicintro by Waseem Abbas
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheetJoachim Gwoke
 

Similar to FL-01 Introduction.pptx (20)

Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computing
 
Fuzzy sets
Fuzzy sets Fuzzy sets
Fuzzy sets
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series edited
 
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
53158699-d7c5-4e6e-af19-1f642992cc58-161011142651.pptx
 
Fuzzy Logic.pptx
Fuzzy Logic.pptxFuzzy Logic.pptx
Fuzzy Logic.pptx
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdf
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic ppt
 
Statistical Inference Part II: Types of Sampling Distribution
Statistical Inference Part II: Types of Sampling DistributionStatistical Inference Part II: Types of Sampling Distribution
Statistical Inference Part II: Types of Sampling Distribution
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-means
 
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022S
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022SEcon 103 Homework 2Manu NavjeevanAugust 15, 2022S
Econ 103 Homework 2Manu NavjeevanAugust 15, 2022S
 
On fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncceOn fuzzy concepts in engineering ppt. ncce
On fuzzy concepts in engineering ppt. ncce
 
Bayesian_Decision_Theory-3.pdf
Bayesian_Decision_Theory-3.pdfBayesian_Decision_Theory-3.pdf
Bayesian_Decision_Theory-3.pdf
 
Lesson 26
Lesson 26Lesson 26
Lesson 26
 
AI Lesson 26
AI Lesson 26AI Lesson 26
AI Lesson 26
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheet
 
Probability Cheatsheet.pdf
Probability Cheatsheet.pdfProbability Cheatsheet.pdf
Probability Cheatsheet.pdf
 
Lecture 1 computational intelligence
Lecture 1  computational intelligenceLecture 1  computational intelligence
Lecture 1 computational intelligence
 
Fuzzy logicintro by
Fuzzy logicintro by Fuzzy logicintro by
Fuzzy logicintro by
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheet
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

FL-01 Introduction.pptx

  • 1. Fuzzy Logic : Introduction Soft Computing Applications 1 /69
  • 2. What is Fuzzy logic? Fuzzy logic is a mathematical language to express something. This means it has grammar, syntax, semantic like a language for communication. There are some other mathematical languages also known • Relational algebra (operations on sets) • Boolean algebra (operations on Boolean variables) • Predicate logic (operations on well formed formulae (wff), also called predicate propositions) Fuzzy logic deals with Fuzzy set. 2 /69
  • 3. A brief history of Fuzzy Logic First time introduced by Lotfi Abdelli Zadeh (1965), University of California, Berkley, USA (1965). He is fondly nick-named as LAZ Soft Computing Applications 3 /69
  • 4. A brief history of Fuzzy logic 1 2 Dictionary meaning of fuzzy is not clear, noisy etc. Example: Is the picture on this slide is fuzzy? Antonym of fuzzy is crisp Example: Are the chips crisp? Soft Computing Applications 4 /69
  • 5. Example : Fuzzy logic vs. Crisp logic Milk Water Coca Sprite Crisp answer Yes or No True or False Crisp Is the liquid colorless? Yes No A liquid 5 /69
  • 6. Example : Fuzzy logic vs. Crisp logic Fuzzy answer May be May notbe Absolutely Partially etc Soft Computing Applications 6 /69
  • 7. Example : Fuzzy logic vs. Crisp logic Fuzzy Is the person honest? Extremely honest Very honest Honest at times Extremely dishonest 99 75 55 35  Ankit  Rajesh  Santosh  Kavita  Salman Score Soft Computing Applications 7 /69
  • 8. World is fuzzy! Our world is better described with fuzzily! Soft Computing Applications 8 /69
  • 9. Concept of fuzzy system Fuzzy element(s) Fuzzy set(s) Fuzzy rule(s) Fuzzy implication(s) (Inferences) Fuzzy system O U T P U T I N P U T Soft Computing Applications 9 /69
  • 10. Concept of fuzzy set Tounderstand the concept of fuzzy set it is better, if we first clear our idea of crisp set. X = The entire population of India. H = All Hindu population = { h1, h2, h3, ... , hL } M = All Muslim population = { m1, m2, m3, ... , mN } H M X Universe of discourse Here, All are the sets of finite numbers of individuals. Such a set is called crisp set. Soft Computing Applications 10 /69
  • 11. Example of fuzzy set Let us discuss about fuzzy set. X = All students in IT60108. S = All Good students. S = { (s, g) |s ∈X } and g(s) is a measurement of goodness ofthe students. Example: S = { (Rajat, 0.8), (Kabita, 0.7), (Salman, 0.1), (Ankit, 0.9) } etc. Soft Computing Applications 11 /69
  • 12. Fuzzy set vs. Crisp set Crisp Set Fuzzy Set 1. S = { s |s ∈X } 1. F = (s, µ) |s ∈X and µ(s) is the degree of s. 2. It is a collection of el- ements. 2. It is collection of or- dered pairs. 3. Inclusion of an el- ement s ∈ X into S is crisp, that is, has strict boundary yes or no. 3. Inclusion of an el- ement s ∈ X into F is fuzzy, that is, if present, then with a degree of membership. Soft Computing Applications 12 /69
  • 13. Fuzzy set vs. Crisp set Note: A crisp set is a fuzzy set, but, a fuzzy set is not necessarily a crisp set. Example: H = { (h1, 1), (h2, 1), ... , (hL, 1)} Person = { (p1, 1), (p2, 0), ... , (pN , 1) } In case of a crisp set, the elements are with extreme values of degree of membership namely either 1 or 0. How to decide the degree of memberships of elements in a fuzzy set? City Bangalor e Bombay Hyderaba d Kharagpur Madras Delhi DoM 0.95 0.90 0.80 0.01 0.65 0.75 How the cities of comfort can be judged? Soft Computing Applications 13 /69
  • 14. Example: Course evaluation in a crisp way 1 2 3 4 5 6 7 EX = Marks ≥ 90 A = 80 ≤ Marks < 90 B = 70 ≤ Marks < 80 C = 60 ≤ Marks < 70 D = 50 ≤ Marks < 60 P = 35 ≤ Marks < 50 F = Marks < 35 Soft Computing Applications 14 /69
  • 15. Example: Course evaluation in a crisp way F P D C B A EX 1 0 35 50 60 70 80 90 100  Soft Computing Applications 15 /69
  • 16. Example: Course evaluation in a fuzzy way 1 0 F P B A EX 35 50 60 70 80 90 100  D C Soft Computing Applications 16 /69
  • 17. Few examples of fuzzy set High Temperature Low Pressure Color of Apple Sweetness of Orange Weight of Mango Note: Degree of membership values lie in the range [0...1]. Soft Computing Applications 17 /69
  • 18. Some basic terminologies and notations Definition 1: Membership function (and Fuzzy set) If X is a universe of discourse and x ∈X, then a fuzzy set A in X is defined as a set of ordered pairs, that is A = {(x, µA(x))|x ∈X} where µA(x) is called the membership function for the fuzzy set A. Note: µA(x) map each element of X onto a membership grade (or membership value) between 0 and 1 (both inclusive). Question: How (and who) decides µA(x) for a Fuzzy set A in X? Soft Computing Applications 18 /69
  • 19. Some basic terminologies and notations Example: X = All cities in India A = City of comfort A={(New Delhi, 0.7), (Bangalore, 0.9), (Chennai, 0.8), (Hyderabad, 0.6), (Kolkata, 0.3), (Kharagpur, 0)} Soft Computing Applications 19 /69
  • 20. Membership function with discrete membership values The membership values may be of discrete values. A  Soft Computing Applications 20 /69
  • 21. Membership function with discrete membership values Either elements or their membership values (or both) also may be of discrete values. 0 2 4 6 8 10 1.0 0.8 0.6 0.4 0.2 µ A ={(0,0.1),(1,0.30),(2,0.78)……(10,0.1)} Note : X = discrete value How you measure happiness ?? Number of children (X) A = “Happy family” Soft Computing Applications 21 /69
  • 22. Membership function with continuous membership values 0 50 100 1.0 0.8 0.6 0.4 0.2 Age (X) B = “Middle aged” 1 B  x50 4 1 10     (x)  B Note : x = real value = R+ Soft Computing Applications 22 /69
  • 23. Fuzzy terminologies: Support Support: The support of a fuzzy set A is the set of all points x ∈X such that µA(x) > 0 A Soft Computing Applications 23 /69
  • 24. Fuzzy terminologies: Core µ Core: The core of a fuzzy set A is the set of all points x in X such that µA(x) = 1 core (A) = {x | µA(x) = 1} x 1.0 0.5 Soft Computing Applications 24 /69
  • 25. Fuzzy terminologies: Normality Normality : A fuzzy set A is a normal if its core is non-empty. In other words, we can always find a point x ∈X such that µA(x ) =1. 1.0 Soft Computing Applications 25 /69
  • 26. Fuzzy terminologies: Crossover points Crossover point : A crossover point of a fuzzy set A is a point x ∈X at which µA(x ) = 0.5. That is Crossover (A) = {x |µA(x) = 0.5}. Soft Computing Applications 26 /69
  • 27. Fuzzy terminologies: Fuzzy Singleton Fuzzy Singleton : A fuzzy set whose support is a single point in X with µA(x ) = 1 is called a fuzzy singleton. That is |A| = |{ x | µA(x) = 1}| = 1. Following fuzzy set is not a fuzzy singleton. Soft Computing Applications 27 /69
  • 28. Fuzzy terminologies: α-cut and strong α-cut α-cut and strong α-cut : The α-cut of a fuzzy set A is a crisp set defined by Aα = {x |µA(x) ≥ α } Strong α-cut is defined similarly : Aα’ = {x |µA(x) > α } Note : Support(A) = A0’ and Core(A) = A1. Soft Computing Applications 28 /69
  • 29. Fuzzy terminologies: Convexity Convexity : A fuzzy set A is convex if and only if for any x1 and x2 ∈ X and any λ ∈[0, 1] µA (λx1 + (1 -λ)x2) ≥ min(µA(x1),µA(x2)) Note : • A is convex if all its α- level sets are convex. • Convexity (Aα) =⇒ Aα is composed of a single line segment only. Membership function is convex 1.0 Non-convex Membership function 1.0 Soft Computing Applications 29 /69
  • 30. Fuzzy terminologies: Bandwidth Bandwidth : For a normal and convex fuzzy set, the bandwidth (or width) is defined as the distance the two unique crossover points: Bandwidth(A) = |x1 - x2 | where µA(x1) = µA(x2) = 0.5 Soft Computing Applications 30 /69
  • 31. Fuzzy terminologies: Symmetry Symmetry : A fuzzy set A is symmetric if its membership function around a certain point x = c, namely µA(x + c) = µA(x - c) for all x ∈ X. Soft Computing Applications 31 /69
  • 32. Fuzzy terminologies: Open and Closed A fuzzy set A is Open left If limx→−∞ µA(x) = 1 and limx→+∞ µA(x) = 0 Open right: If limx→−∞µA(x) = 0 and limx→+∞ µA(x) = 1 Closed If : limx →−∞ µA(x) = limx →+∞ µA(x) =0 Open left Open right Closed Soft Computing Applications 32 /69
  • 33. Fuzzy vs. Probability Fuzzy : When we say about certainty of a thing Example: A patient come to the doctor and he has to diagnose so that medicine can be prescribed. Doctor prescribed a medicine with certainty 60% that the patient is suffering from flue. So, the disease will be cured with certainty of 60% and uncertainty 40%. Here, in stead of flue, other diseases with some other certainties may be. Probability: When we say about the chance of an event to occur Example: India will win the T20 tournament with a chance 60% means that out of 100 matches, India own 60 matches. Soft Computing Applications 33 /69
  • 34. Prediction vs. Forecasting The Fuzzy vs. Probability is analogical to Prediction vs. Forecasting Prediction : When you start guessing about things. Forecasting : When you take the information from the past job and apply it to new job. The main difference: Prediction is based on the best guess from experiences. Forecasting is based on data you have actually recorded and packed from previous job. Soft Computing Applications 34 /69
  • 36. Fuzzy membership functions A fuzzy set is completely characterized by its membership function (sometimes abbreviated as MF and denoted as µ ). So, it would be important to learn how a membership function can be expressed (mathematically or otherwise). Note: A membership function can be on (a) a discrete universe of discourse and (b) a continuous universe of discourse. Example: 0 2 4 6 8 10 1.0 0.8 0.6 0.4 0.2 µ A Number of children(X) A = Fuzzy set of “Happyfamily” 0 1.0 0.8 0.6 0.4 0.2 µ B Age (X) B = “Youngage” 10 20 30 40 50 60 Soft Computing Applications 36 /69
  • 37. Fuzzy membership functions So, membership function on a discrete universe of course is trivial. However, a membership function on a continuous universe of discourse needs a special attention. Following figures shows a typical examples of membership functions. µ x x x < triangular> < trapezoidal > < curve > x < non-uniform > x < non-uniform > µ µ µ µ Soft Computing Applications 37 /69
  • 38. Fuzzy MFs : Formulation and parameterization In the following, we try to parameterize the different MFs on a continuous universe of discourse. Triangular MFs : A triangular MF is specified by three parameters {a, b,c} and can be formulated as follows. triangle x a bc ( ; , , ) = 0 x−a b−a c−x c−b 0 if x ≤ a if a ≤ x ≤ b if b ≤ x ≤ c if c ≤ x (1) a b c 1.0 Soft Computing Applications 38 /69
  • 39. Fuzzy MFs: Trapezoidal A trapezoidal MF is specified by four parameters {a, b,c,d} and can be defined as follows: trapeziod(x;a,b,c,d) = b−a d−x d−c 1 if x ≤ a x−a if a ≤ x ≤ b 1 if b ≤ x ≤ c if c ≤ x ≤ d 0 if d ≤x (2) a b c d 1.0 Soft Computing Applications 39 /69
  • 40. Fuzzy MFs: Gaussian A Gaussian MF is specified by two parameters {c, σ} and can be defined as below: gaussian(x;c,σ) =e− ( 1 x− c 2 σ 2 ) . c  0.9c 0.1c 0.1 Soft Computing Applications 40 /69
  • 41. Fuzzy MFs: Generalized bell It is also called Cauchy MF. A generalized bell MF is specified by three parameters {a, b,c} and is defined as: bell(x; a, b, c)= 1 1+|x− a c |2b c c+a c-a b 2a b 2a b Slope at x = x y Slope at y = Soft Computing Applications 41 /69
  • 42. Example: Generalized bell MFs Example: µ(x)= 1 1+x2 ; a = b = 1 and c = 0; 1.0 -1 1 0 1 Soft Computing Applications 42 /69
  • 43. Generalized bell MFs: Different shapes Changinga Changingb Changinga Changing a andb Soft Computing Applications 43 /69
  • 44. Fuzzy MFs: Sigmoidal MFs Parameters: {a, c} ; where c = crossover point and a = slope at c; Sigmoid(x;a,c)= 1 a 1+e−[ x− c ] 1.0 0.5 c Slope = a Soft Computing Applications 44 /69
  • 45. Fuzzy MFs : Example Example : Consider the following grading system for a course. Excellent = Marks ≤ 90 Very good = 75 ≤ Marks ≤ 90 Good = 60 ≤ Marks ≤ 75 Average = 50 ≤ Marks ≤ 60 Poor = 35 ≤ Marks ≤ 50 Bad= Marks ≤ 35 Soft Computing Applications 45 /69
  • 46. Grading System A fuzzy implementation will look like the following. 60 70 80 90 10 20 30 Bad poor Average Good VeryGood Excellent 40 50 marks 1 .8 .6 .4 .2 0 You can decide a standard fuzzy MF for each of the fuzzy garde. Soft Computing Applications 46 /69
  • 47. Operations on Fuzzy Sets Soft Computing Applications 47 /69
  • 48. Basic fuzzy set operations: Union q µ µB b c q Union (A ∪B): µA∪B(x) = max{µA(x), µB(x)} Example: A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)}; C = A ∪B = {(x1, 0.5), (x2, 0.3), (x3, 0.5)} µA µA µB b c µ AUB a p x a p x Soft Computing Applications 48 /69
  • 49. Basic fuzzy set operations: Intersection q Intersection (A ∩B): µA∩B(x) = min{µA(x), µB(x)} Example: A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)}; C = A ∩B = {(x1, 0.2), (x2, 0.1), (x3, 0.4)} µA µB µ b c q b c a p x a p x µ AᴖB Soft Computing Applications 49 /69
  • 50. Basic fuzzy set operations: Complement Complement (AC): µAAC (x) = 1-µA(x) Example: A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} C = AC = {(x1, 0.5), (x2, 0.9), (x3, 0.6)} q µA µ p x p q x 1.0 µA’ µA Soft Computing Applications 50 /69
  • 51. Basic fuzzy set operations: Products Algebric product or Vector product (A•B): µA•B(x) = µA(x) •µB(x) Scalar product (α × A): µαA(x) = α ·µA(x) Soft Computing Applications 51 /69
  • 52. Basic fuzzy set operations: Sum and Difference Sum (A +B): µA+B(x) = µA(x) + µB(x) − µA(x) ·µB(x) Difference (A − B = A ∩BC ): µA−B (x ) = µA∩BC (x ) Disjunctive sum: A ⊕ B = (AC ∩B) ∪(A ∩BC)) Bounded Sum: |A(x) ⊕ B(x) | µ|A(x)⊕B(x)| = min{1, µA(x) + µB(x)} Bounded Difference: |A(x) g B(x) | µ|A(x)gB(x )| = max{0, µA(x) + µB(x) − 1} Soft Computing Applications 52 /69
  • 53. Basic fuzzy set operations: Equality and Power Equality (A = B): µA(x) = µB(x) Power of a fuzzy set Aα: µAα (x) = {µA(x)}α If α < 1, then it is calleddilation If α > 1, then it is calledconcentration Soft Computing Applications 53 /69
  • 54. Basic fuzzy set operations: Cartesian product Caretsian Product (A ×B): µA×B(x, y) = min{µA(x),µB(y) Example 3: A(x) = {(x1, 0.2), (x2, 0.3), (x3, 0.5), (x4, 0.6)} B(y) = {(y1, 0.8), (y2, 0.6), (y3, 0.3)} A × B = min{µA(x), µB(y)} = y1 y2 y3 2 x 0.3 0.3 0.3 3 x 0 x4 0.6 0.6 .5 0.5 0.3 0.3 x1 0.2 0.2 0.2 Soft Computing Applications 54 /69
  • 55. Properties of fuzzy sets Commutativity : A∪B = B∪A A∩B = B∩A Associativity : A ∪(B ∪C) = (A ∪B) ∪C A ∩(B ∩C) = (A ∩B) ∩C Distributivity : A ∪(B ∩C) = (A ∪B) ∩(A ∪C) A ∩(B ∪C) = (A ∩B) ∪(A ∩C) Soft Computing Applications 55 /69
  • 56. Properties of fuzzy sets Idempotence : A ∪A = A A ∩A = A A ∪∅ = A A ∩∅ = ∅ Transitivity : If A ⊆ B, B ⊆ C then A ⊆C Involution : (Ac )c = A De Morgan’s law : (A ∩B)c = Ac ∪Bc (A ∪B)c = Ac ∩Bc Soft Computing Applications 56 /69
  • 57. Few Illustrations on Fuzzy Sets Soft Computing Applications 57 /69
  • 58. Example 1: Fuzzy Set Operations Let A and B are two fuzzy sets defined over a universe of discourse X with membership functions µA(x) and µB(x), respectively. Two MFs µA(x) and µB(x) are shown graphically. µ A (x) a1 a2 a3 a4 x µ B (x) b1 a1=b2 a2=b3 a4 x Soft Computing Applications 58 /69
  • 59. Example 1: Plotting two sets on the same graph Let’s plot the two membership functions on the same graph µ b1 a1 x µA µB a2 b4 a3 a4 Soft Computing Applications 59 /69
  • 60. Example 1: Union and Intersection The plots of union A ∪B and intersection A ∩B are shown in the following. x a2 b4 x  A B ( )x  A B ( )x b1 a1 a2 a3 a4 µ µA µB b1 a1 a2 b4 a3 a4 x Soft Computing Applications 60 /69
  • 61. Example 1: Intersection The plots of union µA ¯(x) of the fuzzy set A is shown in the following. x a b  A ( )x x a b  ( )x A Soft Computing Applications 61 /69
  • 62. Fuzzy set operations: Practice Consider the following two fuzzy sets A and B defined over a universe of discourse [0,5] of real numbers with their membership functions +x µA(x ) = 1 x and µB(x) = 2−x Determine the membership functions of the following and draw them graphically. i. A , B ii. A ∪B iii. A ∩B iv.(A ∪B)c [Hint: Use De’ Morgan law] Soft Computing Applications 62 /69
  • 63. Example 2: A real-life example Two fuzzy sets A and B with membership functions µA(x) and µB(x), respectively defined as below. A = Cold climate with µA(x ) as the MF. B = Hot climate with µB(x) as the M.F. µ -15 -10 -5 0 5 10 15 20 25 30 35 40 x 45 50 0.5 1.0 µA µB Here, X being the universe of discourse representing entire range of temperatures. Soft Computing Applications 63 /69
  • 64. Example 2: A real-life example What are the fuzzy sets representing the following? 1 2 3 4 Not cold climate Not hold climate Extreme climate Pleasantclimate Note: Note that ”Not cold climate” ƒ= ”Hot climate” and vice-versa. Soft Computing Applications 64 /69
  • 65. Example 2 : A real-life example Answer would be the following. 1 Not cold climate A with 1 − µA(x) as the MF. 2 Not hot climate B with 1 − µB(x) as the MF. 3 Extreme climate A ∪B with µA∪B(x) = max(µA(x),µB(x)) as the MF. 4 Pleasant climate A ∩B with µA∩B(x) = min(µA(x), µB(x)) as the MF. The plot of the MFs of A ∪B and A ∩B are shown in the following. 5 15 25 x  AB  x 5 25  AB  µ 15 10 -5 0 5 10 15 20 25 30 35 40 45 50 x 0. 5 - - 1.0 µA µB Extreme climate Pleasant climate 1.0 Soft Computing Applications 65 /69
  • 66. Few More on Membership Functions Soft Computing Applications 66 /69
  • 67. Generation of MFs Given a membership function of a fuzzy set representing a linguistic hedge, we can derive many more MFs representing several other linguistic hedges using the concept of Concentration and Dilation. Concentration: Ak = [µA(x )]k ; k >1 Dilation: Ak = [µA(x )]k ; k <1 Example : Age = { Young, Middle-aged, Old} Thus, corresponding to Young, we have : Not young, Very young, Not very young and so on. Similarly, with Old we can have : old, very old, very very old, extremely old etc. Thus, Extremely old = (((old )2)2)2 and soon Or, More or less old = A0.5 = (old )0.5 Soft Computing Applications 67 /69
  • 68. Linguistic variables and values Young Old Middle-Aged 0 30 60 100 Very Old Very young  X = Age young µ (x) = bell(x, 20,2,0) = 1 20 1+( x )4 µold(x) = bell(x, 30,3,100) = 1 x 100 1+( − 30 )6 µmiddle−aged = bell(x, 30,60,50) Not young = µyoung(x) = 1 − µyoung(x) Young but not too young = µyoung(x) ∩µyoung(x) Soft Computing Applications 68 /69
  • 69. Any questions?? Soft Computing Applications 69 /69

Editor's Notes

  1. H={ h1,h2,………,hl} H = { (h1, 0), (h2, 1), ... , (hL, 1) } P={p1,p3,p5,......pn}