Professional Documents
Culture Documents
AI Module5 Fuzzylogic Week10
AI Module5 Fuzzylogic Week10
AI Module5 Fuzzylogic Week10
Contents
Introduction to fuzzy logic
Membership function
Fuzzy sets
Features of fuzzy sets
Degree of membership
Operations on fuzzy sets
Fuzzy set identities
Fuzzy logic architecture
Fuzzy Inference system
Fuzzy inference process steps
2
Introduction to Fuzzy logic
2
Fuzzy logic
2
Temperature Example
Boolean vs.
Cris Fuzzy
p Definitely
Fuzzy Logic Vs
Yes Boolean Logic
Are you under 40 Why not?
years of age? Are you young
No
………
Not that much
Boolean logic can have only two possible values as 0/1, yes/no,
right/wrong etc.
Fuzzy logic can be multi valued. It can have relative values like
yes, no, not so much, a little bit etc.
Crisp set vs Fuzzy set
• Crisp set:- A set is a collection of distinct elements, or members, without
repetition and without ordering.
E.g. atomic particles = {electron, proton, neutron}.
Fuzzy Sets
• Fuzzy set is a set having degrees of membership between 1 and 0.
• For example, Number of cars following traffic signals at a particular time out of all
cars present will have membership value between [0,1]
Compute the membership function
Features of Fuzzy Sets
• Normality
A fuzzy set F is said to be normal if there exists an element x that completely belongs
to F, F (x) = 1. A fuzzy set which is not normal is said to be sub-normal.
• Height
The height of a fuzzy set is defined as the maximal membership value attained by its
elements.
U is the universe of discourse, or, the reference set, for F, and height (F) is the height
of the fuzzy set F.
F is a normal fuzzy set if height (F) = 1.
• Support
The support of a fuzzy set F, denoted by supp (F), is the set of all elements
of the reference set U with non-zero membership to F.
Features of Fuzzy Sets
• Core
Th e core of a fuzzy set F is the set of all elements of the reference set U with complete
membership to F.
Both supp (F) and core (F) are crisp sets. It is easy to see that core (F) ⊆ supp (F).
• Cardinality
The sum of all membership values of the members of a fuzzy set F is said to be the
cardinality of F.
The fuzzy set M is normal, because we have M (d) = 1.0. Its height is 1.0. Moreover,
as we see, supp (M) = {a, c, d, e}, core (M) = {d}, and the cardinality of M is | M | =
0.375 + 0.5 +1.0 + 0.875 = 2.750.
Extent/ Degree of membership
Example:
Ann is 28, 0.8 in set “Young”
Bob is 35, 0.1 in set “Young”
Charlie is 23, 1.0 in set “Young”
18
Membership function of fuzzy logic
A membership function
(MF) is a curve that
defines how each point in
Fuzzy values
DOM the input space is mapped
Degree of to a membership value (or
Membership degree of membership)
Young Middle Old
1 between 0 and 1. The input
space is often referred to
as the universe of
0.5
discourse.
0
25 40 55 Age
19
Membership function?
• Decision-making through a fuzzy inference system has to take into account the
contribution of each rule in the system.
• Therefore the individual fuzzy sets obtained by evaluating the rules must be combined
in some manner into a single resultant fuzzy set.
• This aggregation process takes the truncated membership profiles returned by the
implication process as its input, and produces one fuzzy set for each output variable as
the output.
• Taking the maximum among all inputs (max), or taking the algebraic sum of all inputs
(sum) are two methods widely employed by the professionals.
• In the next figure, all three rules R1, R2, and R3 are placed together to show how the
outputs of all the rules are combined into a single fuzzy set using the max aggregation
method.
Two popular aggregation methods – max and sum.
DEFUZZIFICATION OF THE RESULTANT AGGREGATE
FUZZY SET
Defuzzification is the process of converting the aggregate output sets into one crisp value
for each output variable. This is the last step of a fuzzy inference process.
There are several defuzzification methods in vogue, viz., centroid method, centre-of-sums
(CoS) method, mean-of-maxima (MoM) method.
AGGREGATION OF FUZZY SETS ACROSS THE RULES.
Centroid method
Centre-of-gravity or centre-of-area method
Centroid method
Center of Sums (CoS) Method
The only difference is, here the aggregate output set is obtained by the sum method rather
than the max method.
Mean-of-Maxima (MoM) Method
MoM is a simple defuzzification method where the highest degree of membership among all
fuzzy sets is taken as the output defuzzified value. In case there are more than one elements,
say x1, …, xk, having the same highest degree of membership, then the mean of those points
is taken as the defuzzified value.
Mean-of-Maxima (MoM) Method
COMPUTATION OF AREAS AND CENTROIDS
Fuzzy inference process using centre of sums (CoS) method
Thank You