Fuzzy Logic Concepts and Applications in Mechanical Engineering Control Systems
Explore fuzzy logic principles, membership functions, IF-THEN rules, and real-world mechanical engineering applications like temperature and vibration control for smooth, efficient system management.
Fuzzy Logic Concepts and Applications in Mechanical Engineering Control Systems
1.
Sanjivani Rural EducationSociety’s
Sanjivani College of Engineering, Kopargaon-423603
(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Mechanical Engineering
Subject : Foundations of AI and ML
Class : T.Y. Mechanical
Subject Code : PEME 312D
Unit 4 : Optimization and Neural Foundations
By
V. P. Bhaurkar
Department of Mechanical Engineering
2025 – 26 (sem – 6)
2.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Start with a Simple Real-Life Situation
Imagine this
You touch water and say:
“This water is hot”
But someone else says:
“No, it is just warm”
Who is correct?
Both are correct!
Because:
Temperature is not exactly hot or cold
It lies somewhere in between
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
3.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Problem with Traditional Logic
In normal engineering systems, we use:
0 = False
1 = True
Example:
If room temperature > 30°C → Fan ON
Else → Fan OFF
This creates sudden changes
At 29°C → OFF
At 30°C → ON
Not smooth
Not realistic
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
4.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Just 1°C change → sudden ON/OFF
This causes:
Jerks in system
Energy wastage
Poor control
If you control a fan manually:
At 29°C → you may run fan at low speed
At 30°C → slightly increase speed
At 35°C → high speed
You don’t do ON/OFF
You adjust gradually
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
5.
V. P. BhaurkarAI ML (T. Y. Mechanical)
What Fuzzy Logic Does (Core Idea)
Fuzzy logic says:
“Things are not just 0 or 1, they can be in between”
So instead of:
Hot = 1
Not hot = 0
We say:
Hot = 0.7
Warm = 0.5
Cold = 0.1
This is called degree of truth
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
6.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Introduction to Fuzzy Logic
Fuzzy Logic is a method to handle
uncertainty and vagueness.
In real life, many situations are not just true
or false (0 or 1).
Example:
1. Temperature is not just “hot” or “cold”
2. It can be slightly hot, very hot, or
moderate
This type of thinking is called fuzzy
thinking.
Fuzzy Logic – Concepts and Applications
7.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Simple Definition
Fuzzy logic is a method where we take decisions based
on partial truth (values between 0 and 1) instead of
exact yes/no.
Fuzzy logic is a method where we express conditions in degrees
(0 to 1) instead of exact YES or NO.
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
8.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Difference Between Classical Logic and
Fuzzy Logic
Fuzzy Logic – Concepts and Applications
Feature Classical Logic Fuzzy Logic
Values 0 or 1 only Between 0 and 1
Nature Exact Approximate
Exampl
e
Temperature >
30 = Hot
Temperature =
0.7 Hot
9.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Understanding with Temperature Example
Let’s take temperature = 25°C
Instead of saying: It is either hot or cold
We say: Cold = 0.2 Warm = 0.7 Hot = 0.3
So 25°C is:
Mostly warm
Slightly hot
Little bit cold
This is how humans think naturally!
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
10.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Understanding with Temperature Example
Suppose temperature = 30°C
We define three categories:
Cold
Warm
Hot
Now instead of fixed boundaries, we assign:
Meaning:
It is slightly cold
More warm
Also quite hot
This is called fuzzy representation
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
Category Membership Value
Cold 0.1
Warm 0.6
Hot 0.7
11.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Key Concept
a) Membership Function
It tells how much a value belongs to a category
Think like marks in exam:
90 marks → strongly “Excellent”
60 marks → somewhat “Good”
Similarly:
25°C → 0.7 Warm
That 0.7 is membership value
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
12.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Basic Concept: Membership
Function
A membership function (MF) tells how
much a value belongs to a set.
Example: Temperature
Fuzzy Logic – Concepts and Applications
Temperature Cold Warm Hot
20°C 0.8 0.2 0
30°C 0.2 0.7 0.3
So, 30°C is:
70% warm
30% hot
13.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Key Concept
b) IF–THEN Rules
This is like human thinking:
Examples:
IF temperature is high → THEN fan speed is fast
IF load is low → THEN motor speed is low
These rules control the system
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
14.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Fuzzy Logic System (FLS)
A fuzzy system has 4 main parts:
1. Fuzzification
Convert real input into fuzzy values
Example:
Temperature = 35°C → 0.6 Hot
Fuzzy Logic – Concepts and Applications
15.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Fuzzy Logic System (FLS)
A fuzzy system has 4 main parts:
2. Rule Base
Set of IF–THEN rules
Example:
1. IF temperature is high → reduce fuel
supply
2. IF vibration is high → stop machine
Fuzzy Logic – Concepts and Applications
16.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Fuzzy Logic System (FLS)
A fuzzy system has 4 main parts:
3. Inference Engine
Applies rules and makes decision
4. Defuzzification
Convert fuzzy output into exact value
Example:
Output: “Reduce speed slightly” → 1200
RPM
Fuzzy Logic – Concepts and Applications
17.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Full Working in Simple Steps
A fuzzy system works like this:
Step 1: Input
Example: Temperature = 25°C
Step 2: Fuzzification
Convert number into fuzzy values:
Warm = 0.7
Hot = 0.3
Step 3: Apply Rules
Example:
IF temperature is warm → medium fan
IF temperature is hot → high fan
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
18.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Fuzzy IF–THEN Rules
These rules are the heart of fuzzy logic.
Example (Mechanical system):
1. IF load is high AND speed is low →
increase power
2. IF vibration is very high → shutdown
system
These rules are similar to human decision-
making.
Fuzzy Logic – Concepts and Applications
19.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Defuzzification Methods
Common methods:
1.Centroid method (most used)
2.Mean of maxima
3.Weighted average
Example:
Machine gives fuzzy output → converted
to exact speed value
Fuzzy Logic – Concepts and Applications
20.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Applications in Mechanical Engineering
1. Engine Control
Fuel injection control
Air-fuel ratio adjustment
2. Vibration Control
Detect abnormal vibration levels
Prevent machine failure
3. Temperature Control
Boiler systems
HVAC systems
4. Robotics
Path planning
Motion control
5. Manufacturing
CNC tool wear monitoring
Quality control
Fuzzy Logic – Concepts and Applications
21.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Example (Mechanical): Fan Speed
Control
Input: Temperature
Output: Fan speed
Rules:
1. IF temperature is low → fan speed is low
2. IF temperature is medium → fan speed
is medium
3. IF temperature is high → fan speed is
high
Output is smooth, not sudden like
ON/OFF control.
Fuzzy Logic – Concepts and Applications
22.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Simple Real-Life
Mechanical Analogy
Think of a car driver:
1. If road is slightly crowded → slow down
a little
2. If very crowded → slow down more
Driver is using fuzzy logic, not exact
equations.
Fuzzy Logic – Concepts and Applications
23.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Mechanical Engineering Applications – Case studies
Boiler Temperature Control
Problem:
Maintain constant temperature
Without fuzzy:
Heater ON/OFF → unstable system
With fuzzy:
Slightly high temp → slightly reduce heat
Very high temp → strongly reduce heat
Smooth control
Energy saving
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
24.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Mechanical Engineering Applications – Case studies
Automobile Speed Control
While driving:
Uphill → need more power
Downhill → reduce power
Fuzzy rule:
IF slope is high AND speed is low → increase fuel
Works like human driver
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
25.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Mechanical Engineering Applications – Case studies
Problem:
Tool vibration increases
Fuzzy solution:
IF vibration is high → reduce feed rate
Prevents tool damage
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
26.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Mechanical Engineering Applications – Case studies
Air Conditioning System
Instead of:
AC ON/OFF
Fuzzy system:
Slightly hot → low cooling
Very hot → high cooling
Better comfort
Less electricity use
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
27.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Problem 1
At 28°C: Warm = 0.6 , Hot = 0.4
Which condition is stronger?
Solution:
Warm (0.6) > Hot (0.4)
Answer: Temperature is mostly warm
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
28.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Problem 2
Rule:
IF temperature is hot AND load is high
Given: Hot = 0.8
Load high = 0.5
Find output strength.
Solution:
For AND → take minimum
Output = min(0.8, 0.5) = 0.5
Answer: Output strength = 0.5
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems
29.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Problem 3
A motor speed is 1000 rpm. Temperature membership = 0.6 (high)
Reduce speed proportionally.
Solution:
Reduction = 0.6 × 1000 = 600
New speed:
= 1000 – 600 = 400 rpm
Answer: Motor runs at 400 rpm
Fuzzy Logic – Concepts and Applications in Mechanical Control Systems