All Week Combined Notes
All Week Combined Notes
Lecture 01
1 Introduction
1.1 What are Fuzzy Systems?
• Definition: Fuzzy systems are computational frameworks based on fuzzy logic, a
form of multivalued logic designed to handle ambiguity and partial truths.
• Motivation: Traditional binary logic (true/false) is too rigid for uncertain or im-
precise information. Fuzzy systems emulate human reasoning, where statements
can be “partly true” instead of strictly true or false.
• Key Benefit: Allows intuitive and flexible modeling of real-world problems with
linguistic or subjective terms (e.g., “hot,” “cold,” “moderate”).
• 1940s: Warren McCulloch and Walter Pitts developed threshold logic, an early
model of neural networks.
• 1957: The Perceptron model was introduced as an early neural network capable of
learning.
1
2.3 Emergence of Fuzzy Logic
• 1965: Lotfi A. Zadeh introduced Fuzzy Logic to mathematically handle linguistic
and ambiguous variables.
• Fuzzy (Multivalent) Logic: Statements can have degrees of truth in the range
[0, 1].
2
5.2 Fuzzy Logic
• Flexible and nuanced: Allows “partial truths.”
7 Key Takeaways
• Fuzzy Logic bridges binary logic and real-world complexity by allowing partial
truths.
3
Fuzzy Sets, Logic and Systems & Applications
Lecture 02
• These systems are commonly applied in various domains, such as control systems,
decision-making, and medical diagnostics.
• Washing Machines: Modify washing cycles based on fuzzy inputs like load size
and dirt level.
2.3 Healthcare
• Disease Diagnosis: Fuzzy systems incorporate imprecise symptom descriptions
to make diagnostic decisions.
1
2.5 Finance and Risk Analysis
• Forecasting: Handle ambiguous market indicators to predict trends.
5 Key Takeaways
• Fuzzy systems are widely applied in domains where traditional systems struggle
due to ambiguous, nonlinear, or uncertain conditions.
• The ability to handle uncertainty and mimic human reasoning makes fuzzy systems
indispensable in modern technology.
2
Fuzzy Sets, Logic and Systems & Applications
Lecture 03
• This toolbox is a powerful tool for modeling systems with uncertainties and non-
linear behavior.
– Logical IF-THEN rules link inputs to outputs using fuzzy logic operators.
– Test and visualize the behavior of fuzzy systems under various input condi-
tions.
1
3. Define Fuzzy Rules:
• Example: “IF temperature is high AND humidity is low, THEN fan speed is
high.”
4 Applications in MATLAB
• Control Systems:
• Decision-Making Systems:
5 Key Takeaways
• The MATLAB Fuzzy Logic Toolbox simplifies the design and implementation of
fuzzy systems.
2
Fuzzy Sets, Logic and Systems & Applications
Lecture 04
• Simulation Environment:
• Example: Inputs could be “temperature” and “pressure,” and the output could
be “flow rate.”
1
• Define membership functions for each input and output variable.
• Choose appropriate shapes based on system requirements.
• Case Studies:
• Decision-Making Systems:
4 Key Takeaways
• The MATLAB Fuzzy Logic Toolbox provides an intuitive interface for creating,
testing, and refining fuzzy systems.
• Advanced features like the Rule Editor and Membership Function Editor make it
easy to customize and optimize systems.
2
Fuzzy Sets, Logic and Systems & Applications
Lecture 05
1
– Flat top allows for a wider range of full membership.
– Mathematical expression:
0, x<a
x−a
b−a , a≤x≤b
µ(x) = 1, b≤x≤c (2)
d−x
, c≤x≤d
d−c
0, x>d
(x − c)2
µ(x) = exp − (3)
2σ 2
– Similar to Gaussian but allows for more control over the steepness.
– Mathematical expression:
1
µ(x) = (4)
x−c 2b
1+ a
where a determines the width, b controls the slope, and c is the center.
• Optimization:
2
5 Applications of Membership Functions
• Control Systems:
• Decision-Making:
• Image Processing:
6 Key Takeaways
• Membership functions are the backbone of fuzzy systems, enabling the representa-
tion of uncertainty and vagueness.
• Different types (e.g., triangular, trapezoidal, Gaussian) are suited to different ap-
plications.
• Proper design and optimization of membership functions are critical for achieving
accurate and efficient fuzzy systems.
3
Fuzzy Sets, Logic and Systems & Applications
Week 2: Lectures 06 - 10
Membership Functions
There are some commonly employed membership functions (MFs) in fuzzy theory, as
listed below.
An alternate expression for the triangular function using min and max can be
written as:
x−a c−x
triangle(x; a, b, c) = max min , ,0
b−a c−b
1
An alternate expression for the trapezoidal function using min and max can be
written as:
x−a d−x
trapezoid(x; a, b, c, d) = max min , 1, ,0
b−a d−c
3. Gaussian Membership Function:
A Gaussian MF is specified by two parameters [c, σ] as:
1 x − c !2
−
gaussian(x; c, σ) = e 2 σ
where c represents the MF’s center and σ determines the MF’s width.
4. Generalized Bell-shaped Membership Function:
A generalized bell-shaped MF (or bell MF) is specified by three parameters [a, b, c]
as:
1
bell(x; a, b, c) =
x−c 2b
1+ a
Here:
• a defines the width of the membership function i.e., larger value creates a
wider membership function.
• b defines the shape of the curve on either side of the central plateau i.e., larger
value creates a steeper transition.
• c defines the center of the membership function.
1
Sig(x; a, c) =
1 + e−a(x−c)
Here,
where FL (.) and FR (.) are monotonically decreasing functions, defined on [0, ∞)
with FL (0) = FR (0) = 1 and limx→∞ FL (.) = limx→∞ FR (.) = 0.
2
• c defines the point where the value of the membership function is 1.
• α controls the width of the left region for x ≤ c.
• β controls the width of the right region for x ≥ c.
1
π1 (x; a, b) =
x−a 2
1+ b
Parameters lw and rw define the feet of the membership function, and lp and rp
define its shoulders, respectively. This membership function was used to define
the fuzzy set “Good Stopping Accuracy” in the Sendai Subway Train Control
System.
3
10. S-shaped Membership Function:
A S-shaped membership function is defined by two parameters [a, b] as follows:
0 x≤a
x−a 2
a+b
2 a≤x≤
b−a 2
f (x; a, b) =
x−b 2 a+b
1−2 ≤x≤b
b−a 2
1 x≥b
The parameter a defines the feet of the membership function, and b defines its
shoulder.
1. Support:
The support of a fuzzy set A is the set of all points x in the universe of discourse
X for any associated membership function such that:
µA (x) = 0, ∀x ∈
/ (x1 , x2 ) (4)
2. Core:
The core of fuzzy set A is the set of all points x in the universe of discourse X such
that:
µA (x) = 1 (5)
4
Core(A) = {x | µA (x) = 1} (6)
For the given fuzzy set A with universe of discourse X, we can express this as:
3. Crossover Points:
The crossover points of a fuzzy set A are the points x in the universe of discourse
X at which:
For the given fuzzy set A with universe of discourse X, the crossover points are:
• The height of a fuzzy set A is the maximum value of the membership function.
It is represented as:
If hgt(A) < 1, then the fuzzy set A is called a Subnormal fuzzy set.
The hgt(A) is viewed as the degree of validity or credibility of information expressed
by the fuzzy set A.
For example, given fuzzy sets A, B, and C:
µA (x) = 1 (13)
Since the core of A is non-empty, the fuzzy set A is a normal fuzzy set.
5
6. Subnormal Fuzzy Sets:
A fuzzy set A is called normal if there exists at least one element x in the universe
of discourse X such that:
µA (x) = 1 (15)
A′ = Norm(A) (18)
X µA (x)
A′ = Norm(A) = /x (19)
X
hgt(A)
where:
7. Fuzzy Singleton:
A fuzzy set whose support is a single point in the universe of discourse X with
µA (x) = 1 is called a Fuzzy Singleton. In other words, we can say that:
“A fuzzy singleton has a core with only one element in its set.”
6
Mathematically, it is represented as:
This means that a fuzzy singleton has exactly one element where the membership
function is equal to 1.
Aα = {x | µA (x) ≥ α} (22)
where:
where:
Additionally, the relationships between the core and support of a fuzzy set can be
written as:
7
Core(A) = A1 Support(A) = A′0
where:
• Aα represents the set of elements with membership values greater than or equal
to α.
• A′α represents the set of elements with membership values strictly greater than
α.
• Core(A) contains elements where membership is exactly 1.
• Support(A) contains elements where membership is positive.
where:
• A special property of convex fuzzy sets is that the intersection of two convex
fuzzy sets is also convex.
• If fuzzy sets A and B are convex, then the fuzzy set A ∩ B is also convex.
• A crisp set C in Rn is convex if and only if for any two points x1 ∈ C and
x2 ∈ C, their convex combination λx1 +(1−λ)x2 is still in C, where 0 ≤ λ ≤ 1.
• The definition of convexity of a fuzzy set is not as strict as the common def-
inition of convexity for functions. For comparison, the definition of convexity
of a function f (x) is given as:
8
11. Cardinality of a Fuzzy Set:
In a crisp set, the cardinality of a set is a measure of the ”number of elements
of the set”. For example, the set:
• A fuzzy number A is a fuzzy set in the real number space (R) that satisfies
the condition for normality and convexity.
• Most (non-composite) fuzzy sets used in the literature satisfy the condition for
normality and convexity, so fuzzy numbers are the most basic type of fuzzy
sets.
Width(A) = |x1 − x2 |
Here,
µA (x1 ) = µA (x2 ) = 0.5
9
Set Theoretic Operations on Fuzzy Sets
• Set Theory Notations:
For two sets A and B, which consist of the collection of some elements in the
universe of discourse X, the set theory notations are defined as follows:
x∈X → x belongs to X
x∈A → x belongs to A
x∈
/A → x does not belong to A
A⊂B → A is fully contained in B
A⊆B → A is contained in B and equivalent to B
A=B → A is equivalent to B, i.e., A ⊆ B and B ⊆ A
ϕ → Null/empty set i.e. the set contains no element
µA (x) = µB (x), ∀x ∈ X
Here, X is the universe of discourse, and µA (x) and µB (x) are membership degrees
for an element x in the fuzzy sets A and B, respectively.
• Containment (Subset) of a Fuzzy Set:
Fuzzy set B contains another fuzzy set A if and only if the following condition
satisfies:
µA (x) ≤ µB (x), ∀x ∈ X
It can be denoted by:
A⊆B
• Complement of a Classical Set:
The complement of a set A, denoted by Ā, represents all elements in the universe
of discourse X that do not belong to set A.
It can be represented as:
Ā = {x | x ∈
/ A and x ∈ X}
• Complement of a Fuzzy Set:
The complement of a fuzzy set A is a fuzzy set Ā in the universe of discourse X
whose membership function is defined as:
10
Fuzzy Sets, Logic and Systems & Applications
Week 3: Lectures 11 - 15
x∈X → x belongs to X
x∈A → x belongs to A
x∈
/A → x does not belong to A
A⊂B → A is fully contained in B
A⊆B → A is contained in B and equivalent to B
A=B → A is equivalent to B, i.e., A ⊆ B and B ⊆ A
ϕ → Null/empty set i.e. the set contains no element
µA (x) = µB (x), ∀x ∈ X
Here, X is the universe of discourse, and µA (x) and µB (x) are membership degrees
for an element x in the fuzzy sets A and B, respectively.
µA (x) ≤ µB (x), ∀x ∈ X
A⊆B
1
• Complement of a Classical Set:
The complement of a set A, denoted by Ā, represents all elements in the universe
of discourse X that do not belong to set A.
It can be represented as:
Ā = {x | x ∈
/ A and x ∈ X}
The complement of a fuzzy set should contain all elements along with their mem-
bership values from the universe of discourse.
A ∪ B = {x | x ∈ A or x ∈ B}
A ∩ B = {x | x ∈ A and x ∈ B}
2
• Difference of Classical Sets:
The difference of a set A with respect to B is defined as the collection of all elements
in the universe of discourse X that belong to set A but do not belong to B. It is
denoted by A|B.
It can be represented as:
A|B = {x | x ∈ A and x ∈
/ B}, B|A = {x | x ∈
/ A and x ∈ B}
If we compare the properties of crisp sets with fuzzy sets, we observe that the following
three properties are not similar:
• Law of Contradiction
• Absorption of Complement
3
Fuzzy Sets, Logic and Systems & Applications
Week 4: Lectures 16 - 20
µd(A,B) (δ)
Z
d(A, B) = dX → For continuous fuzzy sets A and B
X δ
where,
and δ is the difference between corresponding generic values of two fuzzy sets for a generic
variable.
Please note that xA and xB are the generic variables of the fuzzy sets A and B, respec-
tively, ∀xA , xB ∈ X.
Example 1: Find the distance d(A, B) between fuzzy sets A and B given below with
the universe of discourse X = {1, 2, 3, 4}.
∀xA , xB ∈ X
1
Arithmetic Operations on Fuzzy Numbers
There are four types of arithmetic operations that can be performed on fuzzy sets, pro-
vided fuzzy sets are qualified for fuzzy numbers. These operations are:
C =A+B
The new fuzzy number C is defined as,
X µC (xC )
C= → For discrete
X
xC
µC (xC )
Z
C= dX → For continuous
X xC
The membership function values of a fuzzy number C are
2
µC (xC ) = µA+B (xC ) = max µA (xA ) ∧ µB (xB )
xA ,xB
where xC = xA + xB ; ∀xA , xB , xC ∈ X.
X µC (xC )
C=
X
xC
X µC (xC ) X µA+B (xC )
C= =
X
xC X
xC
X µC (xC ) X µA+B (xC ) X maxxA ,xB µA (xA ) ∧ µB (xB )
C= = =
X
xC X
xC X
xC
3
Fuzzy Sets, Logic and Systems & Applications
Week 5: Lectures 21 - 25
C =A+B (1)
The new fuzzy number C is defined as,
X µC (xC )
C= → For discrete (2)
X
xC
µC (xC )
Z
C= dX → For continuous (3)
X xC
The membership function values of a fuzzy number C are
where xC = xA + xB ; ∀xA , xB , xC ∈ X.
X µC (xC )
C= (6)
X
xC
1
X µC (xC ) X µA+B (xC )
C= = (7)
X
xC X
xC
X µC (xC ) X µA+B (xC ) X maxxA ,xB µA (xA ) ∧ µB (xB )
C= = = (8)
X
xC X
xC X
xC
C =A−B (9)
The membership function values of the fuzzy number C are defined as,
where xC = xA − xB ; ∀xA , xB , xC ∈ X.
C =A×B (12)
The membership function values of C are given by,
where xC = xA × xB ; ∀xA , xB , xC ∈ X.
2
xA
where xC = xB
; ∀xA , xB , xC ∈ X and xB ̸= 0.
Note: Addition, Subtraction, Multiplication, and Division of fuzzy numbers always result
in a fuzzy number provided the universe of discourse is sufficiently large.
3
T-norm or S-conorm
Let T : [0, 1] × [0, 1] → [0, 1] be a mapping function that transforms the membership
functions of fuzzy sets A and B into the membership function of the T-norm of fuzzy
sets A and B with the universe of discourse X. It can be defined as:
T-norm Operators
There are four commonly used T-norm operators:
Minimum
Tmin (µA (x), µB (x)) = min(µA (x), µB (x)) = µA (x) ∧ µB (x) (30)
Algebraic Product
Tap (µA (x), µB (x)) = µA (x) × µB (x) (31)
4
Bounded Product
Tbp (µA (x), µB (x)) = max(0, µA (x) + µB (x) − 1) (32)
Drastic Product
µA (x), if µB (x) = 1
Tdp (µA (x), µB (x)) = µB (x), if µA (x) = 1 (33)
0, if µA (x), µB (x) < 1
S-norm or T-conorm
Let S : [0, 1] × [0, 1] → [0, 1] be a mapping function that transforms the membership
functions of fuzzy sets A and B into the membership function of the S-norm of fuzzy sets
A and B with the universe of discourse X. It can be defined as:
S-norm Operators
There are four commonly used S-norm operators:
5
Maximum
Smax (µA (x), µB (x)) = max(µA (x), µB (x)) = µA (x) ∨ µB (x) (40)
Algebraic Sum
Sas (µA (x), µB (x)) = µA (x) + µB (x) − (µA (x) × µB (x)) (41)
Bounded Sum
Sbs (µA (x), µB (x)) = min(1, µA (x) + µB (x)) (42)
Drastic Sum
µA (x), if µB (x) = 0
Sds (µA (x), µB (x)) = µB (x), if µA (x) = 0 (43)
1, if µA (x), µB (x) > 0
6
Fuzzy Sets, Logic and Systems & Applications
Week 6: Lectures 26 - 30
where, λ ∈ (0, ∞) and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
µA (x) × µB (x)
Tα (µA (x), µB (x)) = (2)
max(µA (x), µB (x), α)
where, α ∈ [0, 1] and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
where, w ∈ (0, ∞) and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
1
Parameterized S-norm or T-conorm
Dombi’s Class of S-norm
Let A and B be two fuzzy sets with the universe of discourse X. The Dombi’s class of
S-norm is defined as follows:
1
Sλ (µA (x), µB (x)) = (4)
−λ −λ − λ1
1 1
1+ µA (x)
−1 + µB (x) − 1
where, λ ∈ (0, ∞) and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
where, α ∈ [0, 1] and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
where, w ∈ (0, ∞) and µA (x) and µB (x) denote the membership function values for fuzzy
sets A and B, respectively.
2
Fuzzy Relation
Cartesian Product of Crisp Sets
Let A and B be two arbitrary crisp sets with the universe of discourse X and Y , respec-
tively.
The Cartesian product of A and B is the crisp set of all ordered pairs (x, y) such that
x ∈ X and y ∈ Y . It is denoted by A × B and can be defined as:
A × B = {(0, a), (0, b), (0, c), (1, a), (1, b), (1, c)} (8)
B × A = {(a, 0), (b, 0), (c, 0), (a, 1), (b, 1), (c, 1)} (9)
Hence,
A × B ̸= B × A (10)
Q(A1 , A2 , A3 , . . . , An ) ⊂ A1 × A2 × A3 . . . An (12)
A relation set between crisp sets A and B is the subset of Cartesian product A × B.
3
The membership function values of the resulting fuzzy set can be defined as:
4
Operations on Crisp and Fuzzy Relation
Union of Crisp Relations
Let R and S be the crisp relations defined on the space X ×Y . Then, the union is defined
by:
T =R∪S (17)
T is said to be the union of R and S:
If
∀(x, y) ∈ R or ∀(x, y) ∈ S (18)
Then
∀(x, y) ∈ T | ∀(x, y) ∈ X × Y (19)
T =R∩S (22)
T is said to be the intersection of R and S:
If
∀(x, y) ∈ R and ∀(x, y) ∈ S (23)
Then
∀(x, y) ∈ T | ∀(x, y) ∈ X × Y (24)
5
Complement of Crisp Relation
Let R be the crisp relation defined on the space X × Y . Then, the complement of relation
R is defined by:
If ∀(x, y) ∈
/ R, then ∀(x, y) ∈ R̄; i.e.,
R̄ = {(x, y) | ∀(x, y) ∈
/ R} (27)
where ∀(x, y) ∈ X × Y .
T =R⊂S (30)
R is contained in S.
If
∀(x, y) ∈ R and ∀(x, y) ∈ S (31)
Then
R(x, y) ≤ S(x, y) | ∀(x, y) ∈ X × Y (32)
T =R⊂S (33)
R is contained in S.
If
∀(x, y) ∈ R and ∀(x, y) ∈ S (34)
Then
µR (x, y) ≤ µS (x, y) | ∀(x, y) ∈ X × Y (35)
6
Fuzzy Sets, Logic and Systems & Applications
Week 7: Lectures 31 - 35
Projection of R on A:
µRA (x) = max µR (x, y) (2)
y
Projection of R on B:
µRB (y) = max µR (x, y) (3)
x
The fuzzy relation R(x, y) and its projections can also be represented as integrals:
Z
R(x, y) = µR (x, y) d(x, y) (4)
X×Y
Z
RA (x) = µRA (x) dx (5)
X
Z
RB (y) = µRB (y) dy (6)
Y
The projection of a fuzzy relation can be extended to n-dimension. Let relation R be
defined among fuzzy sets A1 , A2 , A3 , . . . , An in the space X1 × X2 × X3 . . . Xn . Projecting
this relation to X1 × X2 × X3 · · · × Xk gives a projected relation as,
∀(x1 , x2 , x3 , . . . , xn ) ∈ X1 × X2 × X3 · · · × Xn (9)
1
where, k + m = n.
Here, X1 , X2 , X3 . . . , Xm represent the omitted dimensions, and X1 , X2 , X3 . . . , Xk is the
remaining dimensions. It can be concluded as,
2
Properties of Crisp Sets and Fuzzy Sets
If we compare the properties of crisp sets with fuzzy sets, we observe that the following
three properties do not hold for fuzzy sets:
• Law of Contradiction
• Absorption of Complement
• Law of Contradiction
• Absorption of Complement
3
Figure 2: Properties of Crisp and Fuzzy Relations
4
Extension Principle
The extension principle is a basic concept of fuzzy set theory that provides a general
procedure for transforming a fuzzy set from one universe of discourse to another universe
of discourse, provided we have point-to-point mapping of a function f (.) to a mapping
between known.
This procedure generalizes a common point-to-point mapping of a function f (.) to a
mapping between fuzzy sets. More specifically, suppose that f is a function from X to
Y and A is a fuzzy set with the universe of discourse X defined as,
µB (y) = max
−1
µA (x) (22)
x∈f (y)
where f −1 (y) denotes the set of all points in the universe of discourse x ∈ X such that
f (x) = y.
This is called the extension principle.
Suppose that function f is a mapping from n-dimensional Cartesian product space X1 ×
X2 × · · · × Xn to a one-dimensional universe of discourse Y such that y = f (x1 , . . . , xn ),
and suppose A1 , . . . , An are n fuzzy sets with the universe of discourse X1 , . . . , Xn , re-
spectively.
Then, the extension principle asserts that the membership values of fuzzy set B induced
by the mapping f are defined by,
(
max(xi1 ,xi2 ,...,xin )=f −1 (y) [mini µAi (xi )] , if f −1 (y) ̸= ∅
µB (y) = (23)
0, if f −1 (y) = ∅
5
Fuzzy Sets, Logic and Systems & Applications
Week 8: Lectures 36 - 40
• Max-min Composition
• Max-product Composition
These compositions help determine the relationship between elements of different fuzzy
sets by defining new membership values based on specific operations.
Max-min Composition
Let R1 (x, y) and R2 (y, z) be two fuzzy relations defined on the product spaces X × Y
and Y × Z, respectively. The max-min composition of R1 and R2 results in a fuzzy
set defined as:
µR1 ◦R2 (x, z) = max min [µR1 (x, y), µR2 (y, z)] |∀(x, y) ∈ X × Y and ∀(y, z) ∈ Y × Z (2)
y
where:
1
Interpretation
• If R1 (x, y) and R2 (y, z) are represented as fuzzy relation matrices, their composition
R1 ◦ R2 is similar to matrix multiplication but replaces multiplication (×) and
addition (+) with the min and max operators, respectively.
• Due to this similarity, the max-min composition is also called the max-min prod-
uct.
Max-product Composition
Similar to max-min composition, let R1 (x, y) and R2 (y, z) be two fuzzy relations defined
on X × Y and Y × Z, respectively. The max-product composition of R1 and R2
results in a fuzzy set:
µR1 ◦R2 (x, z) = max [µR1 (x, y) × µR2 (y, z)] |∀(x, y) ∈ X × Y and ∀(y, z) ∈ Y × Z (5)
y
2
Properties of Composition of Fuzzy Relations
The composition of fuzzy relations holds the following properties:
3
Fuzzy Tolerance Relations
Let R be a fuzzy relation defined in the space X × X such that R ⊆ X × X, then R will
be a fuzzy tolerance relation if it satisfies the following two properties.
1. Reflexivity:
µR (xi , xi ) = 1.0, ∀xi ∈ X. (7)
2. Symmetry:
µR (xi , xj ) = µR (xj , xi ), ∀xi , xj ∈ X. (8)
where, µR (xi , xi ), µR (xi , xj ), and µR (xj , xi ) are the membership values of the elements
(xi , xi ), (xi , xj ), and (xj , xi ), respectively, for the fuzzy relation R.
where, λ ≥ min[λ1 , λ2 ].
Here, µR (xi , xj ), µR (xj , xk ), and µR (xi , xk ) are the membership values of the elements
(xi , xj ), (xj , xk ), and (xi , xk ), respectively, for the fuzzy relation R.
A fuzzy tolerance relation R defined in the space X × X, that has properties of reflexivity
and symmetry, can be reformed into a fuzzy equivalence relation by at most (n − 1)
compositions with itself, where n is the cardinal number of the set defining R. It is given
below.
Rn−1 = R ◦ R ◦ R · · · ◦ R = R′ . (12)
4
Some more properties
(i) Anti-reflexivity
Let R be a fuzzy relation defined in the space X × X such that R ⊆ X × X, then R will
satisfy the anti-reflexivity property if
5
Fuzzy Sets, Logic and Systems & Applications
Week 9: Lectures 41 - 45
Linguistic Hedges
A linguistic variable is characterized by a quintuple as,
• T (x) is the term set of x, i.e., the set of its linguistic values or linguistic terms.
• M is a semantic rule which associates with each linguistic value x, i.e., M (x), where
M (x) denotes a fuzzy set with the universe of discourse X.
• Term set (T (x)): If “age” is interpreted as a linguistic variable, then its term set
T (age) could be as follows:
The “age is young” denotes the assignment of the linguistic value “young” to the
linguistic variable “age”.
• Universe of discourse (X): In the term set T (age), each term can be character-
ized by a fuzzy set of the universe of discourse X = [0, 100].
• Syntactic rule (G): The syntactic rule refers to the way the linguistic values in
the term set T (age) are generated. In the figure below, “young”, “middle aged”,
etc., are the syntactic labels.
• Semantic rule (M ): The semantic rule specifies the procedure for computing the
meaning of any linguistic value through specified membership functions.
1
For linguistic variables, we use words as values of linguistic variables. In the case of
linguistics, we often use more than one word to describe a variable.
For example:
If “the intensity of light” is a linguistic variable, then its linguistic values might be “very
bright,” “slightly dim,” and “more or less bright,” etc.
So, the values of a linguistic variable may be a composite term and can be classified into
three groups:
1. Primary Terms
2. Linguistic Hedges
3. Negation / Complement and Connectives
Primary Terms
• For instance, if “age” is a linguistic variable, then its primary terms could be young,
middle aged, old, etc.
• Each primary term can be defined by a fuzzy set.
• For example, young can be expressed by a fuzzy set, and middle aged and old can
also be expressed by other fuzzy sets.
Linguistic Hedges
• In linguistics, fundamental atomic terms are often modified with adjectives (nouns)
or adverbs (verbs) such as very, low, slight, more or less, fairly, slightly, almost,
barely, mostly, roughly, approximately, etc.
• These modifiers are known as linguistic hedges, i.e., the singular meaning of an
atomic term is modified or hedged from its original interpretation.
Let us consider a fuzzy set A with the universe of discourse X defined as
Z
For continuous A = µA (x)/x (3)
x∈X
X
For discrete A = µA (x)/x (4)
x∈X
ii. The membership values for the linguistic term “More or Less” is defined as,
1
µM ore or Less A (x) = [µA (x)] 2 (6)
iii. The membership values for the linguistic term “Extremely Or Very Very Very” is
defined as,
µExtremely A (x) = µV ery V ery V ery A (x) = [µA (x)]8 (7)
2
Linguistic Hedges and Negation/ Complement and Connectives
In the case of linguistic terms, we can interpret the negation operator NOT and the
connectives AND and OR as defined below:
Z
N OT (A) = ¬A = [1 − µA (x)]/x (1)
x∈X
Z
A AND B = A ∩ B = [µA (x) ∧ µB (x)]/x (2)
x∈X
Z
A OR B = A ∪ B = [µA (x) ∨ µB (x)]/x (3)
x∈X
where, A and B are the linguistic values with the membership values µA (·) and µB (·).
3
Concentration
Let A be a linguistic value characterized by a fuzzy set with the membership value µA (·).
Then A(k) is interpreted as the concentration of the original linguistic value or a fuzzy
set A and is expressed as:
Z
(k)
A = [µA (x)]k /x (For continuous) (1)
X
X
A(k) = [µA (x)]k /x (For discrete) (2)
X
Dilation
Let A be a linguistic value characterized by a fuzzy set with the membership value µA (·).
Then A(k) is interpreted as the dilation of the original linguistic value or a fuzzy set A
and is expressed as:
Z
(k)
A = [µA (x)]k /x (For continuous) (5)
X
X
A(k) = [µA (x)]k /x (For discrete) (6)
X
4
Fuzzy Sets, Logic and Systems & Applications
Week 10: Lectures 46 - 50
Contrast Intensification
Let A be a linguistic value characterized by a fuzzy set with the membership value µA (·)
as:
Z
A= µA (x)/x (For continuous) (1)
X
X
A= µA (x)/x (For discrete) (2)
X
Orthogonality
A term set T (x) = t1 (x), . . . , tn (x) of a linguistic variable x on the universe of discourse
X is orthogonal if it satisfies the following property:
n
X
µti (x) = 1, ∀x ∈ X (1)
i=1
where, the fuzzy sets ti (x) are convex and normal fuzzy sets defined on X and these fuzzy
sets make up the term set T (x).
1
Fuzzy If-Then Rule
A fuzzy if-then rule, also known as a fuzzy rule, fuzzy implication, or fuzzy conditional
statement, assumes the form:
IF x is A THEN y is B (1)
where, A and B are linguistic values characterized by fuzzy sets with the universe of
discourse X and Y , respectively.
Often, ”x is A” is called the antecedent or premise, while ”y is B” is called the
consequence or conclusion.
Examples
• If the temperature is very cold, then stop the air conditioner.
A→B (2)
The above expression describes a relation between two linguistic values, A and B. There
are two ways to interpret a fuzzy if-then rule:
1. A coupled with B
2. A entails B
This suggests that a fuzzy if-then rule can be defined as a fuzzy relation R on the space
X × Y , as:
For continuous:
Z
R=A→B =A×B = µR (x, y)/(x, y), ∀x, y ∈ X × Y (3)
X×Y
For discrete:
X
R=A→B =A×B = µR (x, y)/(x, y), ∀x, y ∈ X × Y (4)
X×Y
2
Fuzzy Rule Interpretation as A coupled with B
If A → B is interpreted as A coupled with B, then it can be interpreted by a fuzzy relation
R as follows:
For continuous:
Z
R=A→B =A×B = T [µA (x), µB (y)]/(x, y), ∀x, y ∈ X × Y
X×Y
For discrete:
X
R=A→B =A×B = T [µA (x), µB (y)]/(x, y), ∀x, y ∈ X × Y
X×Y
For discrete:
X
Rmin = A → B = A × B = (µA (x) ∧ µB (y))/(x, y), ∀x, y ∈ X × Y
X×Y
For discrete:
X
Rap = A → B = A × B = (µA (x) × µB (y))/(x, y), ∀x, y ∈ X × Y
X×Y
3
(c) A coupled with B using bounded product T-norm operator
For continuous:
Z
Rbp = A → B = A × B = (0 ∨ (µA (x) + µB (y) − 1))/(x, y), ∀x, y ∈ X × Y
X×Y
For discrete:
X
Rbp = A → B = A × B = (0 ∨ (µA (x) + µB (y) − 1))/(x, y), ∀x, y ∈ X × Y
X×Y
For discrete:
X
Rdp = A → B = A × B = µRdp (x, y)/(x, y), ∀x, y ∈ X × Y
X×Y
where,
µA (x) if µB (y) = 1
µRdp (x, y) = µB (y) if µA (x) = 1
0 otherwise
4
Fuzzy Rule Interpretation as A entails B
If A → B is interpreted as A extbfentails B, then it can be defined by the following four
different forms:
Rmi = A → B = ¬A ∪ B (5)
Rpc = A → B = ¬A ∪ (A ∩ B) (6)
Rgmp = A → B = A ≲ B (8)
For discrete:
X
Rmi = A → B = ¬A ∪ B = (1 ∧ (1 − µA (x) + µB (y))) /(x, y), ∀x, y ∈ X × Y (10)
X×Y
Zadeh’s arithmetic rule, which follows ¬A ∪ B using the bounded sum operator for
union.
5
(c) Extended Propositional Calculus
For continuous:
Z
Repc = A → B = (¬A∩¬B)∪B = (((1 − µA (x)) ∧ (1 − µB (y))) ∨ µB (x)) /(x, y), ∀x, y ∈ X×Y
X×Y
(13)
For discrete:
X
Repc = A → B = (¬A∩¬B)∪B = (((1 − µA (x)) ∧ (1 − µB (y))) ∨ µB (x)) /(x, y), ∀x, y ∈ X×Y
X×Y
(14)
Boolean fuzzy implication, using max for ∪.
For discrete:
X
Rgmp = A → B = A ≲ B = µRgmp (x, y)/(x, y), ∀x, y ∈ X × Y (16)
X×Y
where,
(
1, if µA (x) ≤ µB (y)
µRgmp (x, y) = µA (x) ≲ µB (y) = (17)
µB (y)/µA (x), if µA (x) > µB (y)
Goguen’s fuzzy implication, which follows A ≲ B using the algebraic product for the
T-norm operator.
6
Fuzzy Inference System
• Fuzzy inference is the process of mapping from a given input to an output using
fuzzy logic. It involves all the pieces discussed in the previous sections: membership
functions, fuzzy logic operators, and if-then rules.
• Fuzzy inference systems have been successfully applied in various fields such as
automatic control, data classification, decision analysis, expert systems, computer
vision, etc.
• Because of its multidisciplinary nature, a fuzzy inference system is also known as:
3. Generate the qualified consequents (either fuzzy or crisp) or each rule depending
on the firing strength.
4. Aggregate the qualified consequents to produce a crisp output. (This step is called
defuzzification.)
7
• A database that defines the membership functions of the fuzzy sets used in the
fuzzy rules.
Fuzzifier
Converts the crisp input to a linguistic variable using the membership functions stored
in the fuzzy knowledge base.
Defuzzifier
It converts the fuzzy output of the inference engine to crisp using membership functions
analogous to the ones used by the fuzzifier.
Five commonly used defuzzification methods are as follows:
Fuzzy Reasoning
Fuzzy reasoning is also known as approximate reasoning. It is an inference procedure
that derives conclusions from a set of fuzzy if-then rules and known facts.
8
Fuzzy Sets, Logic and Systems & Applications
Week 11: Lectures 51 - 55
• Combining the fuzzified inputs according to the fuzzy rules to establish a rule
strength.
• Finding the consequence of the rule by combining the rule strength and output
membership function.
• Defuzzifying the output distribution (this step is required only if a crisp output
is needed).
2. Rule evaluation:
1
• The next step is to take the fuzzified inputs and apply the antecedents of the
fuzzy rules.
• If a given fuzzy rule has multiple antecedents, the fuzzy operator (AND or
OR) is used to obtain a single number representing the result of the antecedent
evaluation. This number (the truth value) is then applied to the consequent
membership function.
• Aggregation is the process of unification of the outputs of all the rules. The
input of the aggregation process is the list of clipped or scaled consequent
membership functions, and the output is one fuzzy set for each output variable.
4. Defuzzification:
• The input for the defuzzification process is the aggregated output fuzzy sets.
• If only crisp values are needed, a defuzzifier is used to convert a fuzzy set to a
crisp value.
2
Defuzzification
Defuzzification is the process of converting a fuzzy output set into a crisp value. Several
defuzzification methods exist, including:
• Centroid of Area (COA)
where, α = min{z|z ∈ Z} and β = max{z|z ∈ Z}. The vertical line z = zBOA partitions
the output region between z = α and z = β into two regions with the same area.
3
Fuzzy Sets, Logic and Systems & Applications
Week 12: Lectures 56 - 60
Firing Strengths
The firing strength of the ith -rule is defined as:
wi = µAi (x) ∧ µBi (y) ⇒ For max-min composition (2)
wi = µAi (x) × µBi (y) ⇒ For max-product composition (3)
Final Output
Z
′
C = µC ′ (z)/z (5)
z∈Z
The fuzzy output C ′ can be further defuzzified to obtain a crisp value.
1
Tsukamoto Fuzzy Model
In the Tsukamoto fuzzy model, the consequent of each fuzzy if-then rule is represented
by a fuzzy set with a monotonically (increasing/decreasing) membership function.
As a result, the inferred output of each rule is a crisp value corresponding to the firing
strength w of that rule. The overall output is taken as the weighted average of the output
of each rule.
Tsukamoto fuzzy model avoids the time-consuming process of defuzzification.
If a fuzzy rule base with n rules for input membership functions Ai and Bi with the
universe of discourse X and Y , respectively, and the output membership function Ci
with the universe of discourse Z is defined as:
IF x is Ai AND/OR y is Bi THEN z is Ci
The overall output is taken as the weighted average of each rule’s output as follows:
Pn
∗ i=1 wi × zi
z = P n (8)
i=1 wi
where zi is the output of each rule induced by the firing strength wi and the output
membership function Ci .
Since the reasoning mechanism of the Tsukamoto fuzzy model doesn’t strictly follow the
compositional rule of inference, the output is always crisp, even when the inputs are fuzzy.
where A and B are fuzzy sets in the antecedent, while z = f (x, y) is a crisp function in
the consequent.
Usually, f (x, y) is a polynomial, but it can be any function as long as it can appropriately
describe the output of the model within the fuzzy region specified by the antecedent of
the fuzzy rule.
2
Since each rule has a crisp output, the overall output is obtained via weighted average,
thus avoiding the time-consuming process of defuzzification required in a Mamdani fuzzy
model.
Classification of TSK Models:
The Zero-Order TSK Fuzzy Model is a special case of the Mamdani fuzzy model in
which the consequent of each rule is specified by a fuzzy singleton (or a pre-defuzzified
consequent) and a special case of the Tsukamoto fuzzy model, in which the consequent
of each rule is specified by a membership function of a step function centered at the
constant.
If a fuzzy rule base with n rules for input membership functions Ai and Bi with the
universe of discourse X and Y , respectively, is defined as:
The overall output is taken as the weighted average of each rule’s output as follows:
Pn
∗ i=1 wi × zi
z = P n (11)
i=1 wi