An Autoencoder-Based Network Anomaly Detection Framework for Unknown Cyberattacks
Main Article Content
Abstract
As network attacks evolve at a rapid rate, advanced Network Intrusion Detection Systems (NIDS) that use machine learning and deep learning methods have become critical for detecting new and previously unknown cyber threats. Traditional detection strategies often fail to identify zero-day attacks and complicated malicious network actions owing to their dependency on predetermined signatures and acknowledged attack patterns. This research suggests a framework for detecting network anomalies in order to prevent unknown cyberattacks utilizing the TON_IoT dataset, which has around 46,000 records and 45 characteristics, in order to overcome these obstacles. Data cleansing, label encoding, Min-Max normalization, SMOTE-ENN class balance, and Select Best feature selection are all parts of the suggested framework. After that, CNN and RF models are implemented. A 99.97% F1-score, 99.98% recall, and 99.97% precision were achieved by the RF model, whereas a 99.99% F1-score, 99.98% recall, and 99.97% accuracy were achieved by the CNN model, according to the experimental data. These results show that ML/DL techniques may work together to improve network anomaly detection and help identify harmful network behaviors.
Downloads
Article Details
Section

This work is licensed under a Creative Commons Attribution 4.0 International License.
This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) License. Authors retain the copyright of their work and grant the Journal of Global Research in Multidisciplinary Studies (JGRMS) the right of first publication. This license permits unrestricted use, distribution, adaptation, and reproduction in any medium or format, provided the original author(s), source, and publication are properly credited. Users may copy, redistribute, remix, transform, and build upon the published material for any purpose, including commercial use, in accordance with the terms of the CC BY 4.0 License.
How to Cite
References
[1] K. Korniszuk and B. Sawicki, “Autoencoder-Based Anomaly Detection in Network Traffic,” in 2024 25th International Conference on Computational Problems of Electrical Engineering (CPEE), IEEE, Sep. 2024, pp. 1–4. doi: 10.1109/CPEE64152.2024.10720411. DOI: https://doi.org/10.1109/CPEE64152.2024.10720411
[2] A. B. Owolabi, “A Multi-Layer Deep Learning Framework for Intelligent Cyber Attack Prevention,” Int. J. Res. Innov. Appl. Sci., vol. 11, no. 6, pp. 2521–2541, 2026, doi: 10.51584/IJRIAS.2026.11060195. DOI: https://doi.org/10.51584/IJRIAS.2026.11060195
[3] Q. P. Nguyen, K. W. Lim, D. M. Divakaran, K. H. Low, and M. C. Chan, “GEE: A Gradient-based Explainable Variational Autoencoder for Network Anomaly Detection,” in 2019 IEEE Conference on Communications and Network Security (CNS), IEEE, Jun. 2019, pp. 91–99. doi: 10.1109/CNS.2019.8802833. DOI: https://doi.org/10.1109/CNS.2019.8802833
[4] C. Park, J. Lee, Y. Kim, J.-G. Park, H. Kim, and D. Hong, “An Enhanced AI-Based Network Intrusion Detection System Using Generative Adversarial Networks,” IEEE Internet Things J., vol. 10, no. 3, pp. 2330–2345, Feb. 2023, doi: 10.1109/JIOT.2022.3211346. DOI: https://doi.org/10.1109/JIOT.2022.3211346
[5] T. A. Khan et al., “Multi-Source Cyber Intrusion Detection Using Ensemble Machine Learning,” J. Comput. Sci., vol. 21, no. 1, pp. 111–123, Jan. 2025, doi: 10.3844/jcssp.2025.111.123. DOI: https://doi.org/10.3844/jcssp.2025.111.123
[6] G. Prabhakar and B. B. Rao, “Enhanced Deep Learning-Based Security Model for Data in Cloud,” Int. J. Electron. Commun. Eng., vol. 12, no. 3, pp. 88–100, Mar. 2025, doi: 10.14445/23488549/IJECE-V12I3P108. DOI: https://doi.org/10.14445/23488549/IJECE-V12I3P108
[7] F. W. Alsaade and M. H. Al-Adhaileh, “Cyber Attack Detection for Self-Driving Vehicle Networks Using Deep Autoencoder Algorithms,” Sensors, vol. 23, no. 8, p. 4086, Apr. 2023, doi: 10.3390/s23084086. DOI: https://doi.org/10.3390/s23084086
[8] Y. Song, S. Hyun, and Y.-G. Cheong, “Analysis of Autoencoders for Network Intrusion Detection,” Sensors, vol. 21, no. 13, p. 4294, Jun. 2021, doi: 10.3390/s21134294. DOI: https://doi.org/10.3390/s21134294
[9] K. Thirumalaisamy, “Zero-Day Vulnerabilities in Container Images: Risks and Detection using Generative AI,” Int. J. Sci. Res., vol. 14, no. 6, pp. 309–317, Jun. 2025, doi: 10.21275/SR25603123105. DOI: https://doi.org/10.21275/SR25603123105
[10] P. G. Himanshu Kumar et al., “The Journey to Intent-based Networking: Ten Key Principles for Accelerating Adoption,” IEEE Access, 2017.
[11] Nisha, “Machine learning-based intrusion and anomaly detection for enhancing security in IoT networks using BoT-IoT dataset,” Int. J. Eng. Comput. Sci., vol. 6, no. 2, pp. 241–248, Jul. 2024, doi: 10.33545/26633582.2024.v6.i2c.174. DOI: https://doi.org/10.33545/26633582.2024.v6.i2c.174
[12] B. A. Manjunatha, K. A. Shastry, E. Naresh, P. K. Pareek, and K. T. Reddy, “A network intrusion detection framework on sparse deep denoising auto-encoder for dimensionality reduction,” Soft Comput., vol. 28, no. 5, pp. 4503–4517, Mar. 2024, doi: 10.1007/s00500-023-09408-x. DOI: https://doi.org/10.1007/s00500-023-09408-x
[13] F. S. Alrayes, M. Zakariah, S. U. Amin, Z. Iqbal 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. DOI: https://doi.org/10.1109/ACCESS.2024.3451726
[14] D. K. Jayswal and S. Gupta, “Intelligent Detection of Anomalous Online Payments Using Machine Learning for Financial Cyber Defense,” in 2026 International Conference on Intelligent Digitization of Systems and Services (IDSS), San Antonio, TX, USA: IEEE, May 2026, pp. 102–108. doi: 10.1109/IDSS69894.2026.11691329. DOI: https://doi.org/10.1109/IDSS69894.2026.11691329
[15] K. Siddique, Z. Akhtar, F. Aslam Khan, and Y. Kim, “KDD Cup 99 Data Sets: A Perspective on the Role of Data Sets in Network Intrusion Detection Research,” Computer (Long. Beach. Calif)., vol. 52, no. 2, pp. 41–51, Feb. 2019, doi: 10.1109/MC.2018.2888764. DOI: https://doi.org/10.1109/MC.2018.2888764
[16] R. Chitrakar and C. Huang, “Selection of Candidate Support Vectors in incremental SVM for network intrusion detection,” Comput. Secur., vol. 45, pp. 231–241, Sep. 2014, doi: 10.1016/j.cose.2014.06.006. DOI: https://doi.org/10.1016/j.cose.2014.06.006
[17] F. Harrou, B. Bouyeddou, A. Dairi, and Y. Sun, “Exploiting Autoencoder-Based Anomaly Detection to Enhance Cybersecurity in Power Grids,” Futur. Internet, vol. 16, no. 6, p. 184, May 2024, doi: 10.3390/fi16060184. DOI: https://doi.org/10.3390/fi16060184
[18] A. Y. D. Siale, Q. M. Z. Hassan, M. F. A. S. Kadekle, and B. S. Veena, “Enhancing Large-Scale Network Security with a VGG-Net-Based DCNN: A Deep Learning Approach to Anomaly Detection,” J. Robot. Control, vol. 6, no. 3, pp. 1316–1331, May 2025, doi: 10.18196/jrc.v6i3.25169. DOI: https://doi.org/10.18196/jrc.v6i3.25169
[19] M. H. Hamza Afzal, “Securing AI Systems Against Adversarial Attacks: A Framework for Building Robust and Trustworthy Machine Learning Models,” Comput. Fraud Secur., no. 5, pp. 65–74, May 2024, doi: 10.52710/cfs.867. DOI: https://doi.org/10.52710/cfs.867
[20] A. Bhushan, N. Kaur, Monisha, M. Srivastava, S. Sethi, and M. Kaur, “AI-Powered Neural Network System for Real-Time Network Anomaly Detection in Cybersecurity,” in 2026 5th International Conference on Innovative Practices in Technology and Management (ICIPTM), IEEE, Feb. 2026, pp. 1–6. doi: 10.1109/ICIPTM69057.2026.11465896. DOI: https://doi.org/10.1109/ICIPTM69057.2026.11465896
[21] M. Bachar, A. Khiat, and K. El Guemmat, “A Multi-Stage Hybrid Anomaly Detection Framework for IoT Security Using Machine Learning and Deep Learning,” in 2026 International Conference on Circuit, Systems and Communication (ICCSC), IEEE, Jul. 2026, pp. 1–6. doi: 10.1109/ICCSC71566.2026.11650024. DOI: https://doi.org/10.1109/ICCSC71566.2026.11650024
[22] A. J. M. Rani, A. Rajalingam, O. L, T. S. Rao, R. Shalinirajan, and V. S. Pandi, “An Innovative Use of Deep Learning in Cybersecurity: Implement Sequential Pattern Recognition and Autoencoders for Real-Time Intrusion Detection,” in 2025 International Conference on Future Technologies (ICFT), IEEE, Nov. 2025, pp. 1–7. doi: 10.1109/ICFT66708.2025.11336606. DOI: https://doi.org/10.1109/ICFT66708.2025.11336606
[23] S. K. Udayakumar, H. Ragothaman, and K. M. Khare, “A Novel Dataset and a Hybrid Ensemble Approach for Anomaly Detection in Enterprise-Access-Logs for Anomaly Detection,” in 2025 International Conference on Data Science, Agents & Artificial Intelligence (ICDSAAI), IEEE, Mar. 2025, pp. 1–6. doi: 10.1109/ICDSAAI65575.2025.11011761. DOI: https://doi.org/10.1109/ICDSAAI65575.2025.11011761
[24] N. P. A and S. Ravindran, “Cloud-Based Adaptive Detection Framework for IIoT Networks Using Machine Learning Techniques,” in 2025 First International Conference on Intelligent Computing and Systems at the Edge (ICEdge), IEEE, Dec. 2025, pp. 1–5. doi: 10.1109/ICEdge67252.2025.11412464. DOI: https://doi.org/10.1109/ICEdge67252.2025.11412464
[25] M. B. Vemula, K. P. Kumar, H. R. S. Thipparthi, and P. S. Jasti, “Network Anomaly Detection Using Generative Adversarial Networks,” in 2024 First International Conference on Software, Systems and Information Technology (SSITCON), IEEE, Oct. 2024, pp. 1–6. doi: 10.1109/SSITCON62437.2024.10796515. DOI: https://doi.org/10.1109/SSITCON62437.2024.10796515
[26] A. Almeida, L. Gonçalves, C. Zanchettin, and B. L. D. Bezerra, “A Semi-Supervised Autoencoder Approach for Efficient Intrusion Detection in Network Traffic,” in 2023 IEEE Latin American Conference on Computational Intelligence (LA-CCI), IEEE, Oct. 2023, pp. 1–6. doi: 10.1109/LA-CCI58595.2023.10409491. DOI: https://doi.org/10.1109/LA-CCI58595.2023.10409491
[27] N. W. Khan et al., “A hybrid deep learning-based intrusion detection system for IoT networks,” Math. Biosci. Eng., vol. 20, no. 8, pp. 13491–13520, 2023, doi: 10.3934/mbe.2023602. DOI: https://doi.org/10.3934/mbe.2023602
[28] M. S. Abdullah Sami and M. Abid, “Unsupervised Anomaly Detection for Smart IoT Devices: Performance and Resource Comparison,” in 2025 IEEE 2nd International Conference on Computing, Applications and Systems (COMPAS), IEEE, Oct. 2025, pp. 1–5. doi: 10.1109/COMPAS67506.2025.11381608. DOI: https://doi.org/10.1109/COMPAS67506.2025.11381608
[29] A. M. Almasabi, M. Khemakhem, F. E. Eassa, A. Ahmed Abi Sen, A. B. Alkhodre, and A. Harbaoui, “A Smart Framework to Detect Threats and Protect Data of IoT Based on Machine Learning,” IEEE Access, vol. 12, no. November, pp. 176833–176844, 2024, doi: 10.1109/ACCESS.2024.3498603. DOI: https://doi.org/10.1109/ACCESS.2024.3498603
[30] H. Alamro et al., “An intelligent deep representation learning with enhanced feature selection approach for cyberattack detection in internet of things enabled cloud environment,” Sci. Rep., vol. 15, no. 1, p. 34013, Sep. 2025, doi: 10.1038/s41598-025-13457-7. DOI: https://doi.org/10.1038/s41598-025-13457-7
[31] N. Dharini, V. S. Janani, and J. Katiravan, “Efficient detection of intrusions in TON-IoT dataset using hybrid feature selection approach,” Sci. Rep., vol. 16, no. 1, p. 7763, Feb. 2026, doi: 10.1038/s41598-026-37834-y. DOI: https://doi.org/10.1038/s41598-026-37834-y