Real-Time Anomaly Detection in IoT Sensor Data Using Statistical and Machine Learning Methods
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.
Authors
- Muḥammad Ḥanīf (ORCID: https://orcid.org/0000-0001-8312-0996)
- Rehan Ahmad (ORCID: https://orcid.org/0000-0002-0194-6653)
- Wadood Abdul (ORCID: https://orcid.org/0000-0002-6871-6633)
- Roidar Khan
- Sayed Alamgir Shah
Institutions
- International Islamic University, Islamabad (PK)
- Minhaj University Lahore (PK)
- Shaukat Khanum Memorial Cancer Hospital and Research Center (PK)
- University of Malakand (PK)
Publication Details
- Journal
- ACADEMIA International Journal for Social Sciences
- Published
- 2025-09-16
- DOI
- https://doi.org/10.63056/acad.004.03.0784
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00