In Unit III, we studied the basic concepts of fuzzy sets, membership values, fuzzy union, fuzzy intersection, and fuzzy complement.
In this unit, we move one step further and learn how fuzzy systems represent linguistic concepts such as:
Low
Medium
High
Slow
Fast
Cold
Warm
Hot
The main topics covered in this unit are:
Membership Functions
Triangular Membership Function
Trapezoidal Membership Function
Gaussian Membership Function
Sigmoid Membership Function
Fuzzy Rules
Fuzzification
Fuzzy Inference
Defuzzification
Centroid Method
1. Membership Functions
A membership function determines the degree to which an element belongs to a fuzzy set.
For a fuzzy set A, the membership function is written as:
μA(x):X→[0,1]
Therefore:
0≤μA(x)≤1
where:
x = input value
A = fuzzy set
μA(x) = membership degree of x in fuzzy set
The membership value can be interpreted as:
Membership
Interpretation
0
Does not belong
0.2
Very low membership
0.5
Partial membership
0.8
High membership
1
Full membership
For example:
μHot(30)=0.8
means that a temperature of 30∘C has a membership degree of 0.8 in the fuzzy set Hot.
2. Common Membership Functions
Several mathematical functions can be used to define fuzzy membership.
Common membership functions include:
Triangular
Trapezoidal
Gaussian
Sigmoid
Each function produces a different shape for the membership curve.
The choice of membership function depends on the application and the shape of the concept being modeled.
3. Triangular Membership Function
The triangular membership function is one of the simplest and most commonly used membership functions.
It is defined using three parameters:
a,b,c
where:
a = left endpoint
b = peak
c = right endpoint
The triangular membership function is:
μ(x)=
At the peak:
μ(b)=1
Example
Suppose:
a=10,b=20,c=30
Then:
μ(x)=
At x=20:
μ(20)=1
At x=15:
μ(15)=1015−10=0.5
Thus:
μ(15)=0.5
4. Trapezoidal Membership Function
A trapezoidal membership function is similar to the triangular function, but it contains a flat region where the membership value is 1.
It uses four parameters:
a,b,c,d
The function is:
μ(
Here:
a = beginning of the rising edge
b = beginning of the plateau
c = end of the plateau
d = end of the falling edge
The membership is completely active between b and c:
μ(x)=1for b≤x≤c
5. Gaussian Membership Function
The Gaussian membership function produces a smooth bell-shaped curve.
It is commonly defined as:
μ(x)=exp(−2σ2(x−
where:
c = center of the Gaussian curve
σ = standard-deviation-like width parameter
x = input value
At the center (x=c):
μ(c)=exp(0)=1
As x moves farther away from c, the membership value decreases.
6. Gaussian Membership Example
Suppose:
c=50,σ=10
The membership function becomes:
μ(x)=exp(−200(x−50)2
At x=50:
μ(50)=1
At x=60:
μ(60)=exp(−200(60−50)
Thus, 60 has approximately 0.607 membership in this fuzzy set.
7. Effect of σ
The parameter σ controls the width of the Gaussian curve.
A smaller σ produces a narrower curve.
A larger σ produces a wider curve.
The Gaussian membership function remains:
μ(x)=exp(−2σ2(x−
Therefore:
Small σ → narrow membership region
Large σ → wide membership region
8. Sigmoid Membership Function
The sigmoid membership function produces a smooth S-shaped curve.
A common sigmoid function is:
μ(x)=1+e−a(x−c)1
where:
a controls the slope
c controls the transition point
At x=c:
μ(c)=1+e01=
The sign of a determines the direction of the transition.
9. Comparison of Membership Functions
Function
Shape
Parameters
Common Use
Triangular
Triangle
a,b,c
Simple fuzzy systems
Trapezoidal
Trapezoid
a,b,c,d
Concepts with a plateau
Gaussian
Bell-shaped
10. Fuzzy Rules
A fuzzy rule represents knowledge using linguistic variables.
A common fuzzy rule has the form:
IF temperature is HIGH THEN fan speed is FAST.
Mathematically, a fuzzy rule can be represented as:
IF A THEN B
where:
A = antecedent
B = consequent
For example:
IF Temperature is High THEN FanSpeed is Fast
Here:
Temperature is High → antecedent
Fan Speed is Fast → consequent
11. Multiple Fuzzy Rules
A fuzzy system can contain multiple rules.
For example:
Rule 1: IF temperature is LOW THEN fan speed is SLOW.
Rule 2: IF temperature is MEDIUM THEN fan speed is MODERATE.
Rule 3: IF temperature is HIGH THEN fan speed is FAST.
Mathematically:
R1
These rules allow the system to make decisions using linguistic concepts.
12. Fuzzy AND
Fuzzy rules may contain multiple conditions.
For example:
IF temperature is HIGH AND humidity is HIGH THEN fan speed is FAST.
Using the standard minimum operator, the firing strength is:
α=min(μHigh(T),μHigh
Suppose:
μHigh(T)=0.8,μHigh(H)
Then:
α=min(0.8,0.6)=0.6
The rule fires with strength 0.6.
13. Fuzzy OR
For an OR condition:
IF temperature is HIGH OR humidity is HIGH THEN fan speed is FAST.
Using the standard maximum operator:
α=max(μHigh(T),μHigh
If:
μHigh(T)=0.8,μHigh(H)
then:
α=max(0.8,0.6)=0.8
14. Fuzzification
Fuzzification is the process of converting a crisp numerical input into fuzzy membership values.
Suppose the input temperature is:
T=30∘C
We may have three fuzzy sets: Cold, Warm, Hot.
The membership functions may produce:
μCold(30)
Therefore, the crisp input T=30 is transformed into fuzzy values:
T→{Cold:0.0,Warm:0.7,Hot:0.4}
Notice that an input can have non-zero membership in multiple fuzzy sets.
15. Fuzzification Example
Suppose the fuzzy sets for temperature are Cold, Warm, Hot.
For an input T=25, the membership functions may produce:
μCold(25)
The fuzzified representation is:
T=25→⎩⎨
This is different from crisp classification, where 25 would typically be assigned to only one category.
16. Fuzzy Inference
After fuzzification, the fuzzy rules are evaluated.
These rule strengths are then used to determine the fuzzy output.
17. Defuzzification
The output of a fuzzy inference system is often a fuzzy set.
However, many real-world applications require a single numerical value.
Defuzzification converts the fuzzy output into a crisp numerical value.
For example:
Fuzzy Fan Speed→Crisp Fan Speed
If the fuzzy system determines that the appropriate fan speed is represented by several membership values, defuzzification can produce a value such as:
Fan Speed=72
18. Centroid Method
The centroid method (also called the center of gravity method) is one of the most common defuzzification techniques.
For discrete values, the centroid is:
x∗=i∑μ
where:
xi = possible output value
μ(xi) = membership value at x
The formula calculates a weighted average of the output values.
19. Centroid Example
Suppose the output membership values are:
xi
μ(xi)
20
0.2
40
0.5
60
0.8
80
0.4
The centroid is:
x∗=0.2+0.5+0.8+0.4
Numerator:
20(0.2)+40(0.5)+60(0.8)+80(0.4)=4+20
Denominator:
0.2+0.5+0.8+0.4=1.9
Therefore:
x∗=1.9104≈54.74
The final crisp output is approximately 54.74.
20. Continuous Centroid Formula
For a continuous output membership function, the centroid can be written as:
x∗=∫μ(x)dx∫
The numerator represents the weighted first moment of the membership function, while the denominator represents the total membership area.
For a general output domain:
x∗=∫Xμ
21. Complete Fuzzy Logic System
A complete fuzzy logic system can be represented as:
The centroid method is one of the most widely used defuzzification methods:
x∗=∑iμ(x
These concepts form the foundation for designing practical fuzzy-control systems such as temperature controllers, washing machines, automatic braking systems, air conditioners, and decision-support systems.
A
X = universe of discourse
⎩⎨⎧
0,b−ax−a,c−bc−x,0,x≤aa<x≤bb<x<cx≥c
⎩⎨⎧
0,10x−10,1030−x,0,x≤1010<x≤2020<x<30x≥30
x
)
=
⎩⎨⎧0,b−ax−a,1,d−cd−x,0,x≤aa<x<bb≤x≤cc<x<dx≥d
c
)2
)
)
2
)
=
e−0.5≈
0.607
c
)2
)
21
=
0.5
c,σ
Smooth transitions
Sigmoid
S-shaped
a,c
Gradual increasing/decreasing concepts
R2
R3
:IF T=Low THEN F=Slow:IF T=Medium THEN F=Moderate:IF T=High THEN F=Fast