Fuzzy Logic Architecture
Fuzzy Logic systems are made up of four main components that work together
to process imprecise or uncertain data:
1. Fuzzification: It is the process of converting precise input values(such as
temperature or pressure readings) into fuzzy sets. This step is important
because real-world inputs like those from sensors aren’t perfect or exact.
2. Rule Base: A collection of "if-then" rules created by experts to guide the
system's decisions. These rules use natural language terms (like "high,"
"low," "warm") to describe conditions and actions.
3. Inference Engine: It evaluates the fuzzified input data and applies the
relevant rules from the rule base. It find which rules are most appropriate
and then combines the results to generate a control action.
4. Defuzzification: Once the inference engine processes the rules and
generates fuzzy outputs, it converts these fuzzy results back into a
precise, crisp value. This final step ensures that the system can take clear
actions based on the fuzzy logic outputs.
Membership Functions
A membership function describes how much an input value belongs to a fuzzy
set. It assigns a value between 0 and 1 to each point in the input space also
called the universe of discourse:
0 -> the value does not belong to the set
1 -> the value fully belongs to the set
Values in between -> partial membership
These functions are a key part of fuzzification, helping translate precise real-
world data into fuzzy values that can be processed by the system.
Common Types of membership (Shapes) functions:
1. Singleton: Represents a crisp value as a fuzzy value at one specific point.
2. Gaussian: Based on the Gaussian curve, this allows smooth transitions
between membership degrees.
3. Trapezoidal or Triangular: It uses straight-line shapes to define how
membership changes across a range of values.
By choosing the right membership function, we can represent uncertainty more
naturally and make fuzzy logic systems respond in a way that feels closer to
human reasoning.
Numerical Example
Input: Temperature = 32°C
Goal: Adjust fan speed (Low / Medium / High)
Step 1: Fuzzification
Define sets:
Warm = triangular(20, 30, 40)
Hot = triangular(30, 40, 50)
40−32
Warm membership: μwarm (32)= 40−30 =0.8
= Warm(high)- Input temp./ Warm(High)- Average(Warm triangular)
32−30
Hot membership: μhot (32)= 40−30 =0.2
= Input temp. – Hot(low temp.)/ Avg(Hot )- Hot(low)
Step 2: Rule Base
IF temperature is warm -> fan = medium
IF temperature is hot -> fan = high
Step 3: Inference
Medium fan output = 0.8
High fan output = 0.2
Step 4: Defuzzification (Centroid Method)
Assume:
Medium = 50
High = 80
Member function(warm)* Medium vale+ Member function(hot)* High
value/ Member function(warm)+Member function(hot)
0.8 ⋅50+0.2 ⋅80
Output¿ 0.8+0.2
40+16
¿ =56
1.0
Final Output: Fan speed = 56%
Fuzzy Control
Fuzzy control is a method of designing systems that make decisions in a way
similar to human reasoning. Instead of depending only on exact values, it works
with approximate information to produce results that are practical and
acceptable, even if they aren’t perfectly precise. This approach is useful when
dealing with uncertainty or incomplete data, situations where traditional control
methods might fail.
Example: In an air conditioning system, fuzzy control can adjust the cooling not
just as “on” or “off” but based on degrees like “slightly cool” or “very cool,”
creating smoother and more comfortable temperature control.
Capturing the flexibility of human decision-making, it helps systems operate
effectively in complex, unpredictable environments.
Boolean Logic vs Fuzzy Logic
Concept Boolean Logic Fuzzy Logic
Values 0 or 1 Any value between 0 and 1
Truth Absolute Partial
Useful
Exact systems Real-world uncertain systems
For
Example Hot or Not Hot Slightly Hot, Warm, Very Hot
Applications of Fuzzy Logic
Fuzzy logic is used in many fields where precision isn’t always possible:
1. Aerospace: Fuzzy logic is used in spacecraft and satellite altitude control
systems.
2. Automotive: It's applied in speed control and traffic management
systems.
3. Industrial: It is used for processes like pH control, drying and distillation
in the chemical industry.
4. Artificial Intelligence: In areas like natural language processing and
decision-making support systems.
5. Control Systems: It is integral to many modern control systems
including expert systems and robotics.
Advantages of Fuzzy Logic
Fuzzy logic systems has several benefits which are as follows:
1. Handles imprecise or noisy data: Whether the data is distorted or not
completely accurate, it can still make sense of it.
2. Easy to design and understand: Unlike many complex algorithms,
fuzzy logic systems are straightforward and simple to implement.
3. Efficient for complex problems: Fuzzy logic mirrors human reasoning,
so it’s great for solving problems in many areas like decision-making or
control systems.
4. Low memory requirements: The algorithms are simple and can operate
with little data.
Disadvantages of Fuzzy Logic
While fuzzy logic has many strengths, it also comes with some challenges:
1. Ambiguity: Different researchers may propose different solutions to the
same problem, making the approach less systematic.
2. Difficulty in proving correctness: Since fuzzy logic deals with
uncertainty, proving that a system works as expected can be tricky.
3. Accuracy compromises: Because fuzzy logic deals with both precise and
imprecise data, the system might sacrifice some level of accuracy.