Lec.4.D. M. FCDS Spring 2024
Lec.4.D. M. FCDS Spring 2024
Lec.4.
Fuzzy clustering
Density-based clustering
Model-based clustering
Fuzzy cluster
10
Crisp sets v.s. Fuzzy sets:
◦ The crisp set: is defined in such a way as to the individuals in
some given universe of discourse into two groups: members
and nonmembers.
However, many classification concepts do not exhibit this
characteristic.
For example, the set of tall people, expensive cars, or sunny
days.
Crisp Set
1.0
Degree of membership
0.8
0.6
Short Average Tall
0.4
0.2
Crisp and fuzzy sets of “tall men”
Degree of
Crisp Sets
Membership
1.0
0.8
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degree of
Membership Fuzzy Sets
1.0
0.8
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
0.8
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degree of
Membership Fuzzy Sets
1.0
0.8
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Crisp and fuzzy sets of short, average and tall men
Degreeof Crisp Sets
Membership
1.0
0.8 Short Average Tall
0.6
0.4
0.2
0.0
150 160 170 180 190 200 210
Height, cm
Degreeof Fuzzy Sets
Membership
1.0
0.8
0.6 Short Average Tall
0.4
0.2
0.0
150 160 170 180 190 200 210
Fuzzy Logic Example: Tallness
Fuzzy Logic Example: Tallness
Membership Functions
1000
0
Speed 0 20 40 60 80
Slow
Medium
Fast
22
Membership Function for Fuzzy Set “Speed”
Confidence
1000
500
0
Speed 0 20 30 40 60 80
Slow
Medium
Fast
23
Advantages of Fuzzy Logic
More natural to construct
Easy to understand - Frees the imagination
Provides flexibility
More forgiving
Shortens system development time
Increases the system's maintainability
Uses less expensive hardware
Handles control or decision-making problems not easily
defined by mathematical models
…more…
Fuzzy Inference System (FIS) = Expert
System + Fuzzy Logic
●A Fuzzy Inference System (FIS) is a way of
mapping an input space to an output space
using fuzzy logic
Defuzzyfication
Fuzzyfication
Input 1
Service (0-10)
IF service is good Output
Rule 2 THEN tip is average Summation
Tip (5 - 25%)
Input 2
Food (0-10)
IF service is excellent or food is delicious
Rule 3 THEN tip is generous
Crisp Crisp
Fuzzification Inferencing Composition Defuzzification
Inputs Outputs
30
Fuzzification
● In the process of fuzzification, membership functions
defined on input variables are applied to their actual
values so that the degree of truth for each rule premise
can be determined.
39
Example:
●We will explain these steps using an example
of Tipping Problem
●Two inputs : Quality of food and Service at a
restaurant rated at scale from 0-10
●One output: Amount of tip to be given
●Tip should reflect the quality of the food and
service.
●The tip might be in the range 5-15% of total
bill paid.
Rules for Tipping
● Let us consider the following three rules
− If service is poor or food is bad, then tip is cheap
− If service is good, then tip is average
− If service is excellent or food is delicious, then
tip is generous
● Input variables
− Service : represented by poor, good, excellent
− Food : represented by bad, delicious
● Output Variable:
− Tip : represented by cheap, average, generous
The Reasoning Process for FIS
(the tipping example)
Example: What % tip to leave at a restaurant?
“Given the
quality of Rule 1
IF service is poor or food is bad
THEN tip is low
service and
Defuzzyfication
Fuzzyfication
Input 1
the food, Service (0-10)
Crisp Crisp
Fuzzification Inferencing Composition Defuzzification
Inputs Outputs