Fuzzy Sets and Membership Functions
Fuzzy sets and membership functions are foundational concepts in fuzzy logic, enabling the
representation of vague or imprecise information.
Fuzzy Sets
A fuzzy set is an extension of a classical set where elements can have partial membership,
represented by a value between 0 and 1.
Definition
A fuzzy set A in a universe of discourse X is defined as:
1. A = {(x, μ_A(x)) | x ∈ X}
Set of Tall People:
In a universe of human heights X, a fuzzy set "Tall" could assign membership values like:
- 5'6" → 0.4 (partially tall)
- 6'0" → 0.8 (mostly tall)
- 6'5" → 1.0 (fully tall)
Set of Hot Days:
For temperatures X, a fuzzy set "Hot" could assign:
- 25°C → 0.3 (slightly hot)
- 30°C → 0.7 (moderately hot)
- 35°C → 1.0 (very hot)
Membership Functions
A membership function (MF) is a curve that defines how each element in the universe X is
mapped to a membership value between 0 and 1. It determines the degree to which an
element belongs to a fuzzy set.
Types of Membership Functions
1. Triangular Membership Function
Defined by a triangular shape.
μ_A(x) = { 0, x ≤ a or x ≥ c; (x - a) / (b - a), a ≤ x ≤ b; (c - x) / (c - b), b ≤ x ≤ c }
Example: Representing "Moderate Temperature" with a peak at 30°C.
2. Trapezoidal Membership Function
Similar to the triangular function but with a flat top.
μ_A(x) = { 0, x ≤ a or x ≥ d; (x - a) / (b - a), a ≤ x ≤ b; 1, b ≤ x ≤ c; (d - x) / (d - c), c ≤ x ≤ d }
Example: Representing "Comfortable Temperature" over a range of values.
3. Gaussian Membership Function
Defined by a bell-shaped curve.
μ_A(x) = e^(-(x - c)^2 / 2σ^2)
Where c is the center, and σ controls the width.
Example: Representing smooth transitions, like "Hotness."
4. Sigmoidal Membership Function
Defined by an S-shaped curve.
μ_A(x) = 1 / (1 + e^(-a(x - c)))
Where a controls the slope, and c is the center.
Operations on Fuzzy Sets
Fuzzy sets allow operations similar to classical sets, but with adjusted rules for membership
values:
1. Union (A ∪ B)
μ_A∪B(x) = max(μ_A(x), μ_B(x))
2. Intersection (A ∩ B)
μ_A∩B(x) = min(μ_A(x), μ_B(x))
3. Complement (A^c)
μ_A^c(x) = 1 - μ_A(x)
Applications of Membership Functions
1. Control Systems: To model temperature, speed, or pressure in fuzzy controllers.
2. Image Processing: For edge detection or image enhancement.
3. Decision Making: In systems requiring subjective evaluations, such as medical diagnoses.
Fuzzy sets and membership functions provide the flexibility to model imprecise concepts,
making them essential in systems where traditional binary logic is inadequate.