Soft Computing

Chapter 3
Fuzzy Sets and Fuzzy Relations

Post Graduate Program in AI and ML
Soft Computing   •   Post Graduate

Fuzzy Sets and Fuzzy Relations

Introduction

Classical set theory represents membership as a binary condition: an element either belongs to a set or does not. This representation is appropriate for precise categories such as “registered students” or “machines operating above 100 °C.” Many real-world concepts, however, have gradual boundaries. Terms such as high temperature, experienced engineer, moderate risk, and near a destination cannot be defined satisfactorily by a single sharp threshold.

Fuzzy set theory, introduced by Lotfi A. Zadeh in 1965, provides a mathematical framework for representing graded membership and approximate reasoning. It does not treat uncertainty and vagueness as identical. Probability describes uncertainty about whether an event will occur; fuzzy membership describes the degree to which an object is compatible with a concept. A temperature may belong to the fuzzy set “high” with membership 0.7 even when the temperature itself is measured precisely.

Fuzzy sets are central to soft computing because they support reasoning with linguistic information, incomplete models, and gradual transitions. They are used in control systems, medical decision support, image processing, pattern recognition, recommender systems, robotics, industrial diagnosis, and explainable AI.

Learning Objectives

By the end of this chapter, the learner should be able to:

  1. Define fuzzy sets and membership functions and distinguish them from classical sets and probability distributions.
  2. Design and interpret linguistic variables and common membership-function shapes.
  3. Use α-cuts, support, core, height, and convexity to analyze fuzzy sets.
  4. Perform standard fuzzy-set operations and explain alternative operators.
  5. Apply the extension principle to map fuzzy inputs through functions.
  6. Represent fuzzy relations and compute relational compositions.
  7. Explain fuzzification, fuzzy inference, aggregation, and defuzzification.
  8. Evaluate the strengths, limitations, and governance implications of fuzzy models in AI and ML applications.

1. Foundations of Fuzzy Sets

Let X be a universe of discourse. A classical subset A of X is described by a characteristic function χ_A(x), where:

χA(x) = { 1, if x ∈ A; 0, if x ∉ A }

A fuzzy set à on X is represented by a membership function μ_Ã(x) that assigns each x ∈ X a value in [0, 1]:

à = { (x, μ_Ã(x)) | x ∈ X }, μ_à : X → [0,1]

The value μ_Ã(x) is the degree of membership of x in Ã. It expresses compatibility with the concept represented by Ã, not necessarily a frequency, probability, or confidence level.

For a finite universe, a fuzzy set may be written as a list of pairs. For example, if X = {1, 2, 3, 4, 5}, then:

à = {0.1/1 + 0.4/2 + 0.8/3 + 1.0/4 + 0.6/5}

The slash is notation for association, not division. For a continuous universe, the notation may be written symbolically as an integral, but the integral sign denotes collection of memberships rather than an ordinary numerical integral.

Fuzzy sets and probability

A probability distribution assigns probabilities to mutually exclusive outcomes whose total probability is one. A membership function assigns degrees to elements relative to a concept; membership values need not sum to one. For example, a temperature of 30 °C could have membership 0.8 in “warm” and 0.3 in “hot.” These statements are not contradictory because the concepts overlap.

Important structural terms

TermMeaning
Universe of discourseThe complete domain X under consideration
SupportThe set of x for which μ_Ã(x) > 0
CoreThe set of x for which μ_Ã(x) = 1
HeightThe largest membership value, sup_x μ_Ã(x)
Normal fuzzy setA fuzzy set with height equal to 1
Crossover pointsPoints where μ_Ã(x) = 0.5
BoundaryRegion with membership strictly between 0 and 1
Convex fuzzy setA fuzzy set whose α-cuts are convex for every α ∈ (0,1]

A fuzzy set is normal when at least one element has full membership. It is subnormal when its maximum membership is less than one. Normalization may be useful, but it can be inappropriate when the maximum value carries a meaningful scale.

2. Membership Functions

A membership function is the principal modelling decision in a fuzzy system. It translates a qualitative concept into a numerical relation. Its shape should reflect domain knowledge, measurement resolution, and the intended use of the model.

Triangular membership function

A triangular membership function is defined by parameters a ≤ b ≤ c:

μ(x; a,b,c) = max(min((x−a)/(b−a), (c−x)/(c−b)), 0)

For b = a or c = b, the corresponding side is treated as a limiting vertical edge rather than evaluated by division by zero. The function reaches 1 at b and decreases linearly to 0 at a and c.

Trapezoidal membership function

For parameters a ≤ b ≤ c ≤ d:

μ(x; a,b,c,d) = max(min((x−a)/(b−a), 1, (d−x)/(d−c)), 0)

The function rises from 0 to 1 between a and b, remains at 1 between b and c, and declines to 0 between c and d. Degenerate shoulder forms are often used for concepts such as “very low” or “very high.”

Gaussian membership function

A Gaussian membership function is smooth and is often useful when gradual transitions are desirable:

μ(x; m,σ) = exp(−(x−m)²/(2σ²)), σ > 0

Here m is the centre and σ controls spread. The function is never exactly zero, although it becomes very small far from m. Gaussian functions are differentiable, which can be useful in optimization and neuro-fuzzy learning.

Generalized bell function

A generalized bell function can be expressed as:

μ(x; a,b,c) = 1 / (1 + |(x−c)/a|^(2b)), a ≠ 0, b > 0

The parameter c controls the centre, a controls width, and b controls slope. Parameters should be constrained so the resulting function has the intended shape.

Designing membership functions

Membership functions can be obtained through expert elicitation, data-driven clustering, statistical estimation, optimization, or hybrid methods. A defensible design process should specify:

  • the universe and physical units;
  • the meaning of membership values;
  • the source of parameter values;
  • overlap between adjacent linguistic terms;
  • behaviour at domain boundaries; and
  • validation criteria with domain experts and data.

Excessive overlap may make rules indistinguishable, whereas insufficient overlap can produce discontinuous or insensitive decisions. A membership value is not automatically a calibrated probability and should not be interpreted as one without separate validation.

3. Linguistic Variables and Hedges

A linguistic variable takes linguistic terms rather than only numerical values. It may be defined as a five-tuple (x, T(x), X, G, M), where x is the variable name, T(x) is its term set, X is the universe, G is a grammar for generating terms, and M assigns a fuzzy set to each term.

For example, the variable temperature may have:

  • X = [0, 50] °C;
  • T(temperature) = {cold, comfortable, hot}; and
  • a membership function for each term.

Linguistic hedges modify meaning. Common computational approximations include:

μvery A(x) = [μA(x)]²

and

μsomewhat A(x) = √μA(x)

These are modelling conventions, not universal laws. Squaring concentrates membership toward 0, while taking the square root broadens the concept. Other hedge operators may be selected when supported by human judgments or application data.

4. α-Cuts and Geometric Interpretation

For α ∈ (0,1], the α-cut of fuzzy set à is the crisp set:

Ã_α = {x ∈ X | μ_Ã(x) ≥ α}

The strong α-cut uses strict inequality:

Ã_α^+ = {x ∈ X | μ_Ã(x) > α}

α-cuts are valuable because they convert a fuzzy set into a family of ordinary sets. For a triangular fuzzy number with parameters (a,b,c), its α-cut is:

Ã_α = [a + α(b−a), c − α(c−b)], 0 ≤ α ≤ 1

At α = 0.5, this gives the interval containing all values with membership at least 0.5. At α = 1, it reduces to the core {b}. For a convex fuzzy set, every α-cut is an interval in one dimension. α-cuts support interval arithmetic, sensitivity analysis, and possibility-based decision methods.

A fuzzy set is convex if, for all x₁, x₂ and λ ∈ [0,1],

μ_Ã(λx₁ + (1−λ)x₂) ≥ min(μ_Ã(x₁), μ_Ã(x₂))

This definition should not be confused with ordinary numerical convexity of the membership graph.

5. Fuzzy Set Operations

For fuzzy sets à and B̃ on the same universe, the standard Zadeh operators are:

μÃ∩B̃(x) = min(μ_Ã(x), μB̃(x))
μÃ∪B̃(x) = max(μ_Ã(x), μB̃(x))
μ¬Ã(x) = 1 − μ_Ã(x)

These generalize intersection, union, and complement. They preserve the classical operations when membership values are restricted to 0 and 1.

Worked example: standard operations

Suppose at x = 25 °C, μ_Warm(x) = 0.7 and μ_Humid(x) = 0.4. Then:

  • μ_Warm∩Humid(x) = min(0.7, 0.4) = 0.4;
  • μ_Warm∪Humid(x) = max(0.7, 0.4) = 0.7; and
  • μ_NotWarm(x) = 1 − 0.7 = 0.3.

The calculations are dimensionless because membership values are normalized to [0,1], while the input temperature retains its unit of °C.

t-norms and t-conorms

The minimum and maximum are not the only valid operators. A t-norm T models fuzzy conjunction and a t-conorm S models fuzzy disjunction. Common choices include:

OperatorConjunction T(a,b)Disjunction S(a,b)
Minimum/maximummin(a,b)max(a,b)
Algebraic product/sumaba + b − ab
Łukasiewiczmax(0,a+b−1)min(1,a+b)

For a = 0.7 and b = 0.4, the conjunction values are 0.4, 0.28, and 0.1 respectively. Operator choice affects inference behaviour and should be justified by system semantics, validation, or sensitivity analysis.

6. Fuzzy Numbers and the Extension Principle

A fuzzy number is generally a normal, convex fuzzy set on the real line with a bounded support. It represents a quantity whose value is vague rather than precisely known. A triangular fuzzy number is a common example.

The extension principle maps fuzzy input sets through a function. If y = f(x) and à is a fuzzy set on X, then the induced fuzzy set B̃ on Y is:

μB̃(y) = supx:f(x)=y μ_Ã(x)

If several inputs are involved, for y = f(x₁,…,x_n):

μB̃(y) = supf(x₁,…,xn)=y mini μÃi(xi)

The minimum is the standard fuzzy intersection for the joint input; another t-norm may be used if specified. The supremum is used because multiple input combinations can produce the same output.

Worked example: monotonic transformation

Let à be a triangular fuzzy number with parameters (2, 4, 6), and let y = 2x. Since the function is increasing, each α-cut transforms directly:

Ã_α = [2 + 2α, 6 − 2α]

Therefore:

B̃_α = [4 + 4α, 12 − 4α]

The output is a triangular fuzzy number with parameters (4, 8, 12). At α = 0.5, the input interval is [3,5] and the output interval is [6,10]. Units must also transform: if x is measured in metres, y = 2x is measured in metres when 2 is dimensionless.

For non-monotonic functions, direct endpoint transformation may fail. The full extension principle or α-cut optimization must then consider all feasible input combinations.

7. Fuzzy Relations

A fuzzy relation represents graded association among elements. A binary fuzzy relation R between universes X and Y is a fuzzy set on the Cartesian product X × Y:

R = {((x,y), μR(x,y)) | x ∈ X, y ∈ Y}

The value μ_R(x,y) indicates the strength of the relation between x and y. Examples include compatibility between a symptom and a disease, similarity between objects, and suitability between jobs and applicants.

For finite universes, a fuzzy relation can be represented by a matrix. If X = {x₁,x₂} and Y = {y₁,y₂,y₃}, then:

R = [ [0.8, 0.3, 0.0], [0.4, 1.0, 0.6] ]

The row index corresponds to x and the column index to y. Matrix entries are membership grades, not probabilities.

Properties of relations

For a relation on one universe X:

  • Reflexive: μ_R(x,x) = 1 for every x.
  • Symmetric: μ_R(x,y) = μ_R(y,x).
  • Transitive under a chosen composition: for example, μ_R(x,z) ≥ sup_y min(μ_R(x,y), μ_R(y,z)).

A fuzzy equivalence relation is commonly required to be reflexive, symmetric, and max–min transitive. Different t-norms produce different notions of transitivity, so the operator must always be stated.

8. Composition of Fuzzy Relations

Let R be a relation from X to Y and S a relation from Y to Z. Their max–min composition R ∘ S is:

μR∘S(x,z) = supy∈Y min(μR(x,y), μS(y,z))

For finite universes, the supremum becomes a maximum. An alternative max–product composition is:

μR∘S(x,z) = supy∈Y [μR(x,y) × μS(y,z)]

Worked matrix composition

Let

R = [ [0.8, 0.3], [0.4, 1.0] ]

and

S = [ [0.5, 0.9], [0.7, 0.2] ]

For the first row and first column of R ∘ S:

max(min(0.8,0.5), min(0.3,0.7)) = max(0.5,0.3) = 0.5

For the first row and second column:

max(min(0.8,0.9), min(0.3,0.2)) = max(0.8,0.2) = 0.8

For the second row and first column:

max(min(0.4,0.5), min(1.0,0.7)) = max(0.4,0.7) = 0.7

For the second row and second column:

max(min(0.4,0.9), min(1.0,0.2)) = max(0.4,0.2) = 0.4

Thus:

R∘S = [ [0.5, 0.8], [0.7, 0.4] ]

Composition is useful for chaining approximate relations, such as connecting customer needs to product features through an intermediate set of service attributes.

9. Fuzzification, Inference, and Defuzzification

A fuzzy decision system generally has four stages:

  1. Fuzzification: numerical inputs are converted into degrees of membership.
  2. Rule evaluation: linguistic rules calculate firing strengths.
  3. Aggregation and implication: rule outputs are combined into an output fuzzy set.
  4. Defuzzification: the output fuzzy set is converted into a numerical action or estimate.

A rule may be written as:

IF temperature is high AND pressure is high THEN valve opening is large.

With product conjunction, if the antecedent memberships are 0.7 and 0.6, the firing strength is 0.42. With minimum conjunction, it is 0.6. The inference engine must specify which operator is used.

Mamdani and Sugeno models

In Mamdani inference, a rule produces a fuzzy consequent, commonly clipped or scaled by the firing strength. In Sugeno inference, each rule produces a crisp constant or function, and the final output is often a weighted average. For a zero-order Sugeno model:

y* = (∑i wi zi) / (∑i wi), provided ∑i wi > 0

Here w_i is rule strength and z_i is the rule consequent. If all strengths are zero, a fallback policy is required; silently returning zero may be unsafe.

Defuzzification methods

The centroid or centre-of-area method is:

y* = (∫ y μB̃(y) dy) / (∫ μB̃(y) dy)

The denominator must be nonzero. For discrete output values y_j:

y* = (∑j yj μB̃(yj)) / (∑j μB̃(yj))

Other methods include mean of maxima, smallest of maxima, largest of maxima, and bisector of area. Centroid usually uses the entire output shape and is sensitive to asymmetry; mean of maxima ignores all membership information below the maximum.

10. Applied Case: Fuzzy Motor-Speed Control

The following is an illustrative case, not a report of a specific commercial deployment.

Background and problem

A conveyor motor must maintain suitable speed despite changing load. A classical controller based on a hard error threshold may oscillate: an error of 4.9 units is treated differently from 5.1 units even though the physical conditions are nearly identical.

Analysis

Define the input variable speed error e = desired speed − measured speed, and the output variable change in motor command. Linguistic terms for e are {negative, zero, positive}; output terms are {decrease, hold, increase}. Triangular and shoulder membership functions are selected using operator knowledge and historical operating data.

Suppose the measured error has memberships μ_Positive(e) = 0.7 and μ_Zero(e) = 0.3. Two rules are activated:

  • IF error is positive THEN command change is increase.
  • IF error is zero THEN command change is hold.

Using a zero-order Sugeno model, let the consequents be +10 command units for increase and 0 for hold. The output is:

y* = (0.7×10 + 0.3×0)/(0.7+0.3) = 7

Approach and outcome

The controller applies a command increase of 7 units rather than an abrupt full increase or no change. In an actual implementation, the model would be tested against overshoot, settling time, energy consumption, actuator limits, sensor noise, and failure conditions. Membership parameters could be tuned using expert review and operating data, but optimization must be constrained so that learned rules remain safe and interpretable.

Learning points

The case illustrates that fuzzy control is especially useful when an approximate control strategy is known but an exact physical model is difficult to obtain. It also demonstrates that the numerical output depends on membership functions, rule strengths, consequent values, and the chosen aggregation method. Fuzzy logic is not automatically robust; validation under abnormal conditions is essential.

11. Limitations, Governance, and Contemporary Directions

Fuzzy systems have several limitations. Membership design can be subjective, and different experts may produce different functions. Rule bases can grow exponentially with the number of input variables. Standard fuzzy models may not represent randomness, temporal dependence, or causal structure adequately. Defuzzification can conceal uncertainty and produce a single number that appears more precise than the evidence warrants.

In AI and ML systems, fuzzy models can improve interpretability, but interpretability is not guaranteed. A large rule base with opaque learned parameters may be as difficult to audit as a black-box model. Governance should therefore require traceable training data, documented membership definitions, versioned rule bases, validation across demographic and operating groups, uncertainty communication, and human override for high-impact decisions.

Fuzzy systems can be combined with neural networks, evolutionary optimization, reinforcement learning, and probabilistic models. Neuro-fuzzy systems learn membership parameters or rules from data while retaining a linguistic structure. Type-2 fuzzy sets represent uncertainty about membership functions themselves by assigning a fuzzy footprint of uncertainty. Interval type-2 systems are often used when expert disagreement or noisy data makes a single membership grade inadequate. These extensions increase modelling capacity but also increase computational and interpretive complexity.

Best practice is to use the simplest model that captures the application’s semantics, report all operator choices, test sensitivity to membership parameters, distinguish vagueness from randomness, and retain a safe fallback when the rule base does not fire.

Chapter Summary

Fuzzy set theory models gradual membership using functions whose values lie between 0 and 1. Unlike probability, membership expresses compatibility with a concept and need not sum to one. Membership functions may be triangular, trapezoidal, Gaussian, bell-shaped, or learned from data. Linguistic variables connect numerical domains with human-readable terms, while hedges modify those terms through explicitly chosen operators.

α-cuts convert fuzzy sets into crisp sets and support geometric analysis and interval-based computation. Standard fuzzy intersection, union, and complement use minimum, maximum, and standard complement, although t-norms and t-conorms provide alternative semantics. The extension principle maps fuzzy inputs through functions and is particularly important for fuzzy arithmetic.

Fuzzy relations represent graded associations over Cartesian products. Their max–min or max–product compositions support chaining of approximate relationships. In practical systems, fuzzification transforms numerical observations into memberships, rules perform approximate inference, and defuzzification produces an actionable numerical output. Fuzzy models are interpretable and effective for vague knowledge, but they require careful design, validation, sensitivity analysis, and governance.

Key Terms

Fuzzy set: A set whose elements have membership grades in [0,1].

Membership function: A function assigning each element its degree of membership.

Universe of discourse: The domain over which a fuzzy variable is defined.

Linguistic variable: A variable whose values are represented by linguistic terms.

Linguistic hedge: An operator such as “very” or “somewhat” that modifies a fuzzy term.

Support: The elements having positive membership.

Core: The elements having membership equal to 1.

Height: The maximum membership grade of a fuzzy set.

Normal fuzzy set: A fuzzy set with height 1.

α-cut: The crisp set of elements with membership at least α.

Fuzzy number: A normal, convex fuzzy set representing a vague numerical quantity.

t-norm: An operator modelling fuzzy conjunction.

t-conorm: An operator modelling fuzzy disjunction.

Extension principle: A method for propagating fuzzy sets through functions.

Fuzzy relation: A fuzzy set defined on a Cartesian product.

Composition: The operation that chains fuzzy relations.

Fuzzification: Conversion of crisp inputs into membership grades.

Defuzzification: Conversion of an output fuzzy set into a crisp value.

Mamdani inference: Rule-based inference with fuzzy consequents.

Sugeno inference: Rule-based inference with constant or functional consequents.

Review Questions

Short Answer Questions

  1. How does a fuzzy membership grade differ from a probability?
  2. Define the support, core, and height of a fuzzy set.
  3. What is an α-cut, and why is it useful?
  4. State the standard fuzzy union, intersection, and complement operators.
  5. Distinguish fuzzification from defuzzification.

Long Answer Questions

  1. Explain triangular, trapezoidal, and Gaussian membership functions, including situations in which each may be appropriate.
  2. Describe linguistic variables and linguistic hedges with a suitable example.
  3. Explain the extension principle and its use in fuzzy arithmetic.
  4. Derive and discuss max–min composition of two finite fuzzy relations.
  5. Compare Mamdani and Sugeno fuzzy inference systems, including their aggregation and output procedures.

Analytical / Application Questions

  1. Design membership functions for the linguistic variable “traffic congestion” over a speed range of 0–100 km/h. Justify the terms, overlaps, parameters, and boundary behaviour.
  2. Given two fuzzy relations between customers, service attributes, and products, construct their max–min composition and interpret the strongest resulting associations.
  3. Develop a fuzzy controller for room temperature using at least two inputs and one output. Specify the linguistic variables, membership functions, rules, inference operators, defuzzification method, safety constraints, and validation measures.

Multiple Choice Questions with Answers

Question 1

Which statement best distinguishes a fuzzy membership value from a probability?

A. A membership value must always sum to one across all elements.

B. A membership value expresses compatibility with a concept and need not sum to one.

C. A membership value can only be 0 or 1.

D. A membership value describes the frequency of an event in repeated trials.

Correct Answer: B. A membership value expresses compatibility with a concept and need not sum to one.

Question 2

For μ_A(x) = 0.7 and μ_B(x) = 0.4, what is the standard fuzzy intersection membership?

A. 0.28

B. 0.40

C. 0.70

D. 1.10

Correct Answer: B. 0.40

Question 3

Which condition defines a normal fuzzy set?

A. Its support contains exactly one element.

B. All elements have membership 0.5.

C. Its maximum membership value is 1.

D. Its α-cut is empty for α = 1.

Correct Answer: C. Its maximum membership value is 1.

Question 4

For a triangular fuzzy number with parameters (2, 4, 6), what is its α-cut at α = 0.5?

A. [2, 6]

B. [2.5, 5.5]

C. [3, 5]

D. [4, 4]

Correct Answer: C. [3, 5]

Question 5

In max–min composition, which operation is performed over each intermediate element before taking the maximum?

A. Addition

B. Minimum

C. Division

D. Complement

Correct Answer: B. Minimum

Question 6

If μ_Warm(x) = 0.7, what is the standard complement membership μ_NotWarm(x)?

A. 0.0

B. 0.3

C. 0.7

D. 1.7

Correct Answer: B. 0.3

Question 7

Which stage converts a numerical sensor reading into memberships such as 0.2 cold and 0.8 warm?

A. Defuzzification

B. Composition

C. Fuzzification

D. Normalization of a probability distribution

Correct Answer: C. Fuzzification

Question 8

For a zero-order Sugeno model with rule strengths 0.7 and 0.3 and consequents 10 and 0, what is the weighted-average output?

A. 3

B. 5

C. 7

D. 10

Correct Answer: C. 7

Question 9

Which formula represents centroid defuzzification for a continuous output fuzzy set?

A. y* = max μ_B̃(y)

B. y* = ∫μ_B̃(y)dy

C. y* = (∫yμ_B̃(y)dy)/(∫μ_B̃(y)dy)

D. y* = 1 − μ_B̃(y)

Correct Answer: C. y* = (∫yμ_B̃(y)dy)/(∫μ_B̃(y)dy)

Question 10

What is the principal role of the extension principle?

A. To convert every fuzzy set into a probability distribution

B. To propagate fuzzy input sets through a mathematical function

C. To force all membership functions to be triangular

D. To remove the need for a rule base

Correct Answer: B. To propagate fuzzy input sets through a mathematical function

Soft Computing
Chapter 3 of 15