Real-Time Anomaly Detection in IoT Sensor Data Using Statistical and Machine Learning Methods

Authors

  • Muhammad Ahmad Hanif Minhaj University Lahore, Pakistan Author
  • Abdul Wadood Shaukat Khanum Hospital and Research Center Lahore, Pakistan Author
  • Rana Waseem Ahmad Minhaj University Lahore, Pakistan Author
  • Sayed Alamgir Shah International Islamic University Islamabad, Pakistan Author
  • Roidar Khan University of Malakand, Pakistan Author

DOI:

https://doi.org/10.63056/ACAD.004.03.0784

Keywords:

Internet of Things, anomaly detection, statistical analysis, machine learning, real-time monitoring, Random Forest

Abstract

The proliferation of the Internet of Things (IoT) has intensified the need for robust real-time anomaly detection to safeguard system reliability and operational efficiency. This study presents a comprehensive framework that integrates statistical methods with machine learning techniques for anomaly detection in IoT sensor data. Initial analyses employed descriptive statistics, correlation structures, Z-score, and Interquartile Range (IQR) to characterize data distributions, establish anomaly thresholds, and assess sensor stability. Results identified loudness as the most volatile feature, while light demonstrated high consistency. To enhance detection accuracy, multiple machine learning models were evaluated, including Logistic Regression, Decision Tree, Random Forest, Support Vector Machine (SVM), and Neural Network (MLP). Comparative findings revealed that ensemble and deep learning methods significantly outperformed traditional approaches, with the Neural Network achieving superior accuracy and Random Forest providing strong efficiency. The results highlight the potential of hybrid statistical–machine learning frameworks for effective, scalable, and interpretable real-time anomaly detection in IoT environments.

Downloads

Published

2025-09-16

How to Cite

Hanif, M. A. ., Abdul Wadood, Ahmad, R. W. ., Shah, S. A. ., & Khan, R. . (2025). Real-Time Anomaly Detection in IoT Sensor Data Using Statistical and Machine Learning Methods. ACADEMIA International Journal for Social Sciences, 4(3), 5203-3227. https://doi.org/10.63056/ACAD.004.03.0784

Similar Articles

1-10 of 576

You may also start an advanced similarity search for this article.