Unsupervised Anomaly Detection for Heterogeneous IoT Networks Using Autoencoder and Isolation Forest

PDF (911KB), PP.131-146

Views: 0 Downloads: 0

Author(s)

T. Aditya Sai Srinivas 1,* Swapna Siddamsetti 2 Syed Shameem 3 Gopisetty Ramesh 4 D. Kishore 5 B. Ramu 6

1. Department of Computer Science Engineering Ravindra College of Engineering for Women, Kurnool, 518452, India

2. Department of Computer Science and Engineering, Neil Gogte Institute of Technology, Hyderabad, 500088, India

3. Department of Electronics and Communication Engineering,Koneru Lakshmaiah Education Foundation, Vaddeswaram, 522302, India

4. Department of Electronics and Instrumentation Engineering, CVR College of Engineering, Ibrahimpatnam, 501510, India

5. Department of Electronics & Communication Engineering, Aditya University, Surampalem, 533437, India

6. Department of Electronics and Communication Engineering, Geethanjali College of Engineering and Technology, Hyderabad,501301, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijwmt.2026.06.08

Received: 23 Jul. 2026 / Revised: 15 Aug. 2026 / Accepted: 22 Oct. 2026 / Published: 8 Dec. 2026

Index Terms

Internet of Things (IoT), Anomaly Detection, Autoencoder, Deep Learning, Unsupervised Learning, Reconstruction Error, Intrusion Detection System (IDS), Mean Squared Error (MSE), Network Security

Abstract

Internet of Things (IoT) devices are rapidly growing in number and variety, creating complex and heterogeneous networks that are highly prone to cyber-attacks and irregular activities. However, conventional rule-based intrusion detection systems (IDS) are not effective in detecting unknown or zero-day attacks because they are built on labeled datasets and signatures. In order to overcome these challenges, the current paper introduces an unsupervised approach for detecting anomalies in an IoT network, combining an Autoencoder (AE) and an Isolation Forest (IF). The proposed model is trained only with normal IoT traffic data which contain 114 standardized features, to learn compact representations of normal network behaviors. The Autoencoder is trained using a loss function that minimizes the reconstruction error, and then the low dimensional latent representation is passed to an Isolation Forest, which computes an anomaly score for every sample. An algorithm using percentile statistical thresholding of the scores from the Isolation Forest anomaly detection method is used to effectively separate anomalous and normal traffic. Experimental results show that the proposed approach attains a ROC-AUC of 0.943, a PR-AUC of 0.781, an F1 score of 0.69 and a low false positive rate of 0.029 with the N-BaIoT dataset. The cross-validation results demonstrate the stability of the method over several folds, and the robustness analysis with noise injection further confirms the detection capability of the method. The small size of the model (15.7 MB) and low inference time (0.48 ms per sample) allow the proposed framework to be well suited for real-time application in resource-limited IoT applications.

Cite This Paper

T. Aditya Sai Srinivas, Swapna Siddamsetti, Syed Shameem, Gopisetty Ramesh, D. Kishore, B. Ramu, "Unsupervised Anomaly Detection for Heterogeneous IoT Networks Using Autoencoder and Isolation Forest", International Journal of Wireless and Microwave Technologies(IJWMT), Vol.16, No.6, pp.131-146, 2026. DOI:10.5815/ijwmt.2026.06.08

Reference

[1]S. Givnan, C. Chalmers, P. Fergus, S. Ortega, and T. Whalley, “Real-Time Predictive Maintenance using Autoencoder Reconstruction and Anomaly Detection,” arXiv preprint arXiv: 2110.01447, 2021.
[2]M. Rezakhani, T. Seyfi, and F. Afghah, “A transfer learning framework for anomaly detection in multivariate IoT traffic data,” in Proc. IEEE Int. Conf. Communications (ICC), pp. 4975–4980,2025.
[3]K. C. Chen, S. Y. C. Chen, C. Y. Liu, and K. K. Leung, “Federated Quantum Kernel Learning for Anomaly Detection in Multivariate IoT Time-Series,” arXiv preprint arXiv: 2511.02301, 2025.
[4]P. Yan et al., “A comprehensive survey of deep transfer learning for anomaly detection in industrial time series: Methods, applications, and directions,” IEEE Access, vol. 12, pp. 3768–3789, 2024. doi: 10.1109/ACCESS.2023.3349132.
[5]R. H. Hwang, M. C. Peng, C. W. Huang, P. C. Lin, and V. L. Nguyen, “An unsupervised deep learning model for early network traffic anomaly detection,” IEEE Access, vol. 8, pp. 30387–30399, 2020..
[6]I. Gullah and Q. H. Mahmoud, “Design and development of a deep learning-based model for anomaly detection in IoT networks,” IEEE Access, vol. 9, pp. 103906–103926, 2021. doi: 10.1109/ACCESS.2021.3094024.
[7]Y. Hou, R. He, J. Dong, Y. Yang, and W. Ma, “IoT anomaly detection based on autoencoder and Bayesian Gaussian mixture model,” Electronics, vol. 11, no. 20, pp. 3287, 2022. doi: 10.3390/electronics11203287.
[8]S. Zhang, Y. Wang, and H. Weng, “Industrial IoT Anomaly Detection Using Improved Autoencoder Architecture,” Artificial Intelligence and Machine Learning Review, vol. 5, no. 1, pp. 67–78, 2024.
[9]A. M. Almasabi et al., “Internet of things-based anomaly detection hybrid framework simulation integration of deep learning and blockchain,” Information, vol. 16, no. 5, pp. 406, 2025. doi: 10.3390/info16050406.
[10]F. S. Alrayes, M. Zakariah, S. U. Amin, Z. I. Khan, and M. Helal, “Intrusion detection in IoT systems using denoising autoencoder,” IEEE Access, vol. 12, pp. 122401–122425, 2024. doi: 10.1109/ACCESS.2024.3451726.
[11]T. Zhang et al., “Federated learning for internet of things,” in Proc. 19th ACM Conf. Embedded Networked Sensor Systems, 2021, pp. 413–419. doi: 10.1145/3485730.3493444.
[12]C. W. Tien, T. Y. Huang, P. C. Chen, and J. H. Wang, “Using autoencoders for anomaly detection and transfer learning in IoT,” Computers, vol. 10, no. 7, pp. 88, 2021. doi: 10.3390/computers10070088.
[13]L. Vu, Q. U. Nguyen, D. N. Nguyen, D. T. Hoang, and E. Dutkiewicz, “Deep transfer learning for IoT attack detection,” IEEE Access, vol. 8, pp. 107335–107344, 2020. doi: 10.1109/ACCESS.2020.3000476.
[14]K. A. Alaghbari, H. S. Lim, M. H. M. Saad, and Y. S. Yong, “Deep autoencoder-based integrated model for anomaly detection and efficient feature extraction in IoT networks,” IoT, vol. 4, no. 3, pp. 345–365, 2023. doi: 10.3390/iot4030016.
[15]A. G. Ayad, M. M. El-Gayar, N. A. Hikal, and N. A. Sakr, “Efficient real-time anomaly detection in IoT networks using one-class autoencoder and deep neural network,” Electronics, vol. 14, no. 1, pp. 104, 2024. doi: 10.3390/electronics14010104.
[16]H. Rhachi, Y. Balboul, and A. Booed, “Enhanced anomaly detection in IoT networks using deep autoencoders with feature selection techniques,” Sensors, vol. 25, no. 10, pp. 3150, 2025..
[17]Z. Ahmad et al., “Anomaly detection using deep neural network for IoT architecture,” Applied Sciences, vol. 11, no. 15, pp. 7050, 2021. doi: 10.3390/app11157050.
[18]G. Cerar, H. Yetgin, B. Bertalanic, and C. Fortuna, “Learning to detect anomalous wireless links in IoT networks,” IEEE Access, vol. 8, pp. 212130–212155, 2020. doi: 10.1109/access.2020.3039333.
[19]S. Yoon, Y. Lee, J. G. Lee, and B. S. Lee, “Adaptive model pooling for online deep anomaly detection from a complex evolving data stream,” in Proc. 28th ACM SIGKDD Conf. Knowledge Discovery and Data Mining, 2022, pp. 2347–2357..
[20]Y. Meidan et al., “N-BaIoT—Network-based detection of IoT botnet attacks using deep autoencoders,” IEEE Pervasive Computing, vol. 17, no. 3, pp. 12–22, 2018. doi: 10.1109/MPRV.2018.03367731.