Attack and Anomaly Detection in IoT Sensors Using Machine Learning Approaches
DOI:
https://doi.org/10.70454/JRICST.2025.20108Keywords:
Internet of Things, Cybersecurity, Machine Learning, Sensor NetworksAbstract
The extensive usage of IoT sensors significantly improved the collection and monitoring of data within various application domains, such as smart agriculture and industrial automation. On the other hand, the great dependence on IoT sensors makes systems vulnerable to hacks and anomalies. In this paper, we explore machine learning approaches that can be used to protect Internet of Things sensor networks against attacks and anomalies. Due to the limited resources available to IoT devices, traditional security measures fall short. There is, therefore, a need to develop more intelligent smart detection systems. This paper examines the capabilities of machine learning in identifying patterns of anomalies in IoT sensor data. Carried out on a dataset of simulated IoT environments, the research presents the stages of data pre-processing, exploratory data analysis, and feature engineering. In addition, three models; Logistic Regression, Decision Tree, and Random Forest were constructed and tested. The results show that it is possible to use machine learning algorithms for anomaly detection in IoT domains, thereby presenting the possibilities for improving IoT security and reliability. The findings of this study are important in that they highlight how advanced analytics can help organizations deal with IoT environments.
References
1. Abusitta, A., de Carvalho, G.H., Wahab, O.A., Halabi, T., Fung, B.C. and Al Mamoori, S., 2023. Deep learning-enabled anomaly detection for IoT systems. Internet of Things, 21, p.100656.
2. Elmrabit, N., Zhou, F., Li, F. and Zhou, H., 2020, June. Evaluation of machine learning algorithms for anomaly detection. In 2020 international conference on cyber security and protection of digital services (cyber security) (pp. 1-8). IEEE.
3. Zhou, Y., Song, X., Zhang, Y., Liu, F., Zhu, C. and Liu, L., 2021. Feature encoding with autoencoders for weakly supervised anomaly detection. IEEE Transactions on Neural Networks and Learning Systems, 33(6), pp.2454-2465.
4. Alam, S. and Yao, N., 2019. The impact of preprocessing steps on the accuracy of machine learning algorithms in sentiment analysis. Computational and Mathematical Organization Theory, 25, pp.319-335.
5. Ozsahin, D.U., Mustapha, M.T., Mubarak, A.S., Ameen, Z.S. and Uzun, B., 2022, August. Impact of feature scaling on machine learning models for the diagnosis of diabetes. In 2022 International Conference on Artificial Intelligence in Everything (AIE) (pp. 87-94). IEEE.
6. Zhang, Z., Wen, J., Zhang, J., Cai, X. and Xie, L., 2020. A many objective-based feature selection model for anomaly detection in cloud environment. Ieee Access, 8, pp.60218-60231.
7. Noureen, S.S., Bayne, S.B., Shaffer, E., Porschet, D. and Berman, M., 2019, February. Anomaly detection in cyber-physical system using logistic regression analysis. In 2019 IEEE texas power and energy conference (TPEC) (pp. 1-6). IEEE.
8. Aguilar, D.L., Medina-Pérez, M.A., Loyola-Gonzalez, O., Choo, K.K.R. and Bucheli-Susarrey, E., 2022. Towards an interpretable autoencoder: A decision-tree-based autoencoder and its application in anomaly detection. IEEE transactions on dependable and secure computing, 20(2), pp.1048-1059.
9. Biswas, P. and Samanta, T., 2021. Anomaly detection using ensemble random forest in wireless sensor network. International Journal of Information Technology, 13(5), pp.2043-2052.
10. Sahu, N.K. and Mukherjee, I., 2020, June. Machine learning based anomaly detection for IoT network:(Anomaly detection in IoT network). In 2020 4th International Conference on Trends in Electronics and Informatics (ICOEI)(48184) (pp. 787-794). IEEE.
11. Kovács, G., Sebestyen, G. and Hangan, A., 2019. Evaluation metrics for anomaly detection algorithms in time-series. Acta Universitatis Sapientiae, Informatica, 11(2), pp.113-130.
12. A. E. F. Alfalahi, S. R. A. Alhebsi and T. Murugan, "Recent Research Solutions on Deep Learning-based Anomaly Detection in Internet of Things," 2024 15th Annual Undergraduate Research Conference on Applied Computing (URC), Dubai, United Arab Emirates, 2024, pp. 1-6, doi: 10.1109/URC62276.2024.10604622.
13. Y. Y. Ghadi et al., "Machine Learning Solutions for the Security of Wireless Sensor Networks: A Review," in IEEE Access, vol. 12, pp. 12699-12719, 2024, doi: 10.1109/ACCESS.2024.3355312.
14. U. Zukaib, X. Cui, C. Zheng, M. Hassan and Z. Shen, "Meta-IDS: Meta-Learning-Based Smart Intrusion Detection System for Internet of Medical Things (IoMT) Network," in IEEE Internet of Things Journal, vol. 11, no. 13, pp. 23080-23095, 1 July1, 2024, doi: 10.1109/JIOT.2024.3387294.
15. A. H. Farea, O. H. Alhazmi, R. Samet and M. S. Guzel, "AI-Powered Integrated with Encoding Mechanism Enhancing Privacy, Security, and Performance for IoT Ecosystem," in IEEE Access, vol. 12, pp. 121368-121386, 2024, doi: 10.1109/ACCESS.2024.3449630
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ashish Seth (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.