Machine Learning Fundamentals: K-Means Clustering Applications in Mechanical Engineering
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 3 : Fundamentals of Machine Learning
By
V. P. Bhaurkar
Department of Mechanical Engineering
2025 – 26 (sem – 6)
2.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Q.1] A CNC machine tool is monitored using two
features: 1) Cutting Force (N), 2) Temperature
(°C). The data points are given in table. Classify
the tool condition using k-means clustering
technique.
Problem Solving
Solution
Step 1: Initialize Centroids
Assume:
1) C1 = A (100, 40)
2) C2 = D (200, 60)
Point Force (N) Temp (°C)
A 100 40
B 120 42
C 130 45
D 200 60
E 220 65
F 250 70
3.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Iteration 1
Step 1: Calculate Distance (Euclidean)
Example for B:
1) Distance to C1 = √[(120−100)² + (42−40)²] ≈
20.1
2) Distance to C2 = √[(120−200)² + (42−60)²] ≈
82.5
Assign B → Cluster 1 (Data point B is close to
cluster 1)
Problem Solving
Step 2
Prepare table
Cluster 1 –
Cluster 2 –
C1 C2 Close to
A
B
C
D
E
F
4.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Step 3: Update Centroids
1) C1 = ((100+120+130)/3 ,
(40+42+45)/3)
= (116.7, 42.3)
2) C2 = ((200+220+250)/3 ,
(60+65+70)/3)
= (223.3, 65)
Problem Solving
Repeat the steps for iteration 2
and 3. (Students brainstorming
activity)
5.
V. P. BhaurkarAI ML (T. Y. Mechanical)
Q.2] In a manufacturing plant, rotating machines
are monitored regularly to avoid sudden failure.
Two important indicators are: Vibration level
(mm/s), Noise level (dB)
Based on these parameters, machines can be
classified into three conditions: Normal operation,
Moderate fault, Severe fault. Apply K-means
clustering with k = 3 to classify the machines into
three groups
Problem Solving
Point Vibration Noise
A 2 50
B 3 55
C 4 52
D 8 70
E 9 75
F 10 72
G 15 90
H 16 95