Mahalanobis Distance-Based Supervised and Semi-Supervised Machine Learning Methods for Anomaly Detection in IoT Sensor Data

Introduction: The data collected in Internet of Things (IoT) applications consist of unreliable and erroneous data due to their deployment in harsh or unattended environments. Such data is considered an anomaly as it deviates from the regular data. These anomalies need to be identified correctly to enhance decision-making. For this purpose, machine learning techniques have gained significant attention due to their ability to classify the data into normal and abnormal (or anomaly). Methods: This work proposes novel adaptations to supervised and semi-supervised machine learning algorithms by integrating the Mahalanobis Distance (MD) metric. These adapted algorithms are named as Mahalanobis Binary Classification (M-BC) and Mahalanobis One Class Classification (MOCC). The performance of these proposed algorithms was evaluated on well-known IoT sensor datasets using performance metrics such as balanced accuracy, F1-Score, and AUC-ROC score. Results: The results show that the M-BC algorithm exhibits significant improvements over conventional machine learning methods across several datasets considered in this study, including SHM4, MHM1, Occupancy, and Timeseries. The M-BC achieved an average improvement of 13.03% in balanced accuracy, 10.29% in F1-Score, and 13.16% in AUC score. Similarly, the M-OCC algorithm demonstrated substantial gains in one-class classification, with an average improvement of 21.07% in balanced accuracy, 26.49% in F1-Score, and 26% in AUC score across datasets such as AnomIoT, IBRL, SHM4, MHM1, Occupancy, and Timeseries compared to OCSVM. Discussion: The results confirm that the proposed MD-based approaches are found to be simple, effective, and more accurate for detecting anomalies in IoT sensor data compared to their base methods. The integration of the MD metric significantly enhanced the ability of the algorithms to identify anomalous data points across various IoT domains. Conclusion: The work presented successfully demonstrated the incorporation of the Mahalanobis distance into binary and one-class classification algorithms to improve anomaly detection performance. These M-BC and M-OCC algorithms show a robust and efficient solution to ensure data reliability in IoT sensor networks.

Authors

Institutions

Publication Details

Journal
International Journal of Sensors Wireless Communications and Control
Published
2026-01-21
DOI
https://doi.org/10.2174/0122103279403481251014104800
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mahalanobis Distance-Based Supervised and Semi-Supervised Machine Learning Methods for Anomaly Detection in IoT Sensor Data

Aparna Shrivastava, P. Raghu Vamsi
International Journal of Sensors Wireless Communications and Control
Anomaly Detection Techniques and Applications
article

Mahalanobis Distance-Based Supervised and Semi-Supervised Machine Learning Methods for Anomaly Detection in IoT Sensor Data

Aparna Shrivastava, P. Raghu Vamsi
article en

Abstract

Introduction: The data collected in Internet of Things (IoT) applications consist of unreliable and erroneous data due to their deployment in harsh or unattended environments. Such data is considered an anomaly as it deviates from the regular data. These anomalies need to be identified correctly to enhance decision-making. For this purpose, machine learning techniques have gained significant attention due to their ability to classify the data into normal and abnormal (or anomaly). Methods: This work proposes novel adaptations to supervised and semi-supervised machine learning algorithms by integrating the Mahalanobis Distance (MD) metric. These adapted algorithms are named as Mahalanobis Binary Classification (M-BC) and Mahalanobis One Class Classification (MOCC). The performance of these proposed algorithms was evaluated on well-known IoT sensor datasets using performance metrics such as balanced accuracy, F1-Score, and AUC-ROC score. Results: The results show that the M-BC algorithm exhibits significant improvements over conventional machine learning methods across several datasets considered in this study, including SHM4, MHM1, Occupancy, and Timeseries. The M-BC achieved an average improvement of 13.03% in balanced accuracy, 10.29% in F1-Score, and 13.16% in AUC score. Similarly, the M-OCC algorithm demonstrated substantial gains in one-class classification, with an average improvement of 21.07% in balanced accuracy, 26.49% in F1-Score, and 26% in AUC score across datasets such as AnomIoT, IBRL, SHM4, MHM1, Occupancy, and Timeseries compared to OCSVM. Discussion: The results confirm that the proposed MD-based approaches are found to be simple, effective, and more accurate for detecting anomalies in IoT sensor data compared to their base methods. The integration of the MD metric significantly enhanced the ability of the algorithms to identify anomalous data points across various IoT domains. Conclusion: The work presented successfully demonstrated the incorporation of the Mahalanobis distance into binary and one-class classification algorithms to improve anomaly detection performance. These M-BC and M-OCC algorithms show a robust and efficient solution to ensure data reliability in IoT sensor networks.

International Journal of Sensors Wireless Communications and ControlVol. 16
Jaypee Institute of Information Technology (IN)
Peace, Justice and strong institutions
Openalex Percentile: Top 78%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.