A Deep Learning-Based Approach for Intrusion Detection in IoT Networks Using Convolutional Neural Networks
DOI:
https://doi.org/10.22581/0381Keywords:
Convolutional Neural Network (CNN), Decision Tree, Internet of Things (IoT), Intrusion Detection System (IDS),, Network SecurityAbstract
As the Internet of Things (IoT) proliferates, the requirement for efficient intrusion detection systems (IDS) becomes increasing. With the increasing rise of Internet of Things (IoT) devices, the need for efficient intrusion detection systems (IDS) has risen too. In this study, a deep learning approach to the IDS system based on Convolutional Neural Network (CNN) on the NSL-KDD dataset is evaluated. A CNN model was built, and we found that the model got 78.27% accuracy on the test set, 98.42% on the training set, and 98.76% on the validation set. A baseline model was built using a Decision Tree classifier which achieved 78% test accuracy. The results show that the new attack type, saint and mscan from the NSL-KDD test set, is difficult, makes the model overfit, and reduces the test performance. However, these issues have not been entirely resolved by dropout regularization and by placing weights on the classes. The shortcomings and vulnerabilities of deep learning in IoT security are explored, and future directions like hybrid learning methods and advanced feature selection are proposed.
Downloads
References
[1] M. A. Al-Garadi, A. Mohamed, A. K. Al-Ali, X. Du, I. Ali, and M. Guizani, “A survey of machine and deep learning methods for Internet of Things (IoT) security,” IEEE Commun. Surveys Tuts., vol. 22, no. 3, pp. 1646–1685, 3rd Quart. 2020.
[2] Y. Yang, L. Wu, G. Yin, L. Li, and H. Zhao, “A survey on security and privacy issues in Internet-of-Things,” IEEE Internet Things J., vol. 4, no. 5, pp. 1250–1258, Oct. 2017.
[3] R. Sommer and V. Paxson, “Outside the closed world: On using machine learning for network intrusion detection,” in Proc. IEEE Symp. Secur. Privacy, Oakland, CA, USA, May 2010, pp. 305–316.
[4] M. Tavallaee, E. Bagheri, W. Lu, and A. A. Ghorbani, “A detailed analysis of the KDD CUP 99 data set,” in Proc. IEEE Symp. Comput. Intell. Secur. Defense Appl., Ottawa, ON, Canada, Jul. 2009, pp. 1–6.
[5] N. Shone, T. N. Ngoc, V. D. Phai, and Q. Shi, “A deep learning approach to network intrusion detection,” IEEE Trans. Emerg. Topics Comput. Intell., vol. 2, no. 1, pp. 41–50, Feb. 2018.
[6] R. Vinayakumar, M. Alazab, K. P. Soman, P. Poornachandran, A. Al-Nemrat, and S. Venkatraman, “Deep learning approach for intelligent intrusion detection system,” IEEE Access, vol. 7, pp. 41525–41550, 2019.
[7] NSL-KDD Dataset, 2009. [Online]. Available: https://www.unb.ca/cic/datasets/nsl.html
[8] J. McHugh, “Testing intrusion detection systems: A critique of the 1998 and 1999 DARPA intrusion detection system evaluations as performed by Lincoln Laboratory,” ACM Trans. Inf. Syst. Secur., vol. 3, no. 4, pp. 262–294, Nov. 2000.
[9] N. B. Amor, S. Benferhat, and Z. Elouedi, “Naive Bayes vs decision trees in intrusion detection systems,” in Proc. ACM Symp. Appl. Comput., Nicosia, Cyprus, Mar. 2004, pp. 420–424.
[10] L. Dhanabal and S. P. Shantharajah, “A study on NSL-KDD dataset for intrusion detection system based on classification algorithms,” Int. J. Adv. Res. Comput. Commun. Eng., vol. 4, no. 6, pp. 446–452, Jun. 2015.
[11] A. Javaid, Q. Niyaz, W. Sun, and M. Alam, “A deep learning approach for network intrusion detection system,” in Proc. 9th EAI Int. Conf. Bio-inspired Inf. Commun. Technol., New York, NY, USA, Dec. 2016, pp. 21–26.
[12] Z. Li, Z. Qin, K. Huang, X. Yang, and S. Ye, “Intrusion detection using convolutional neural networks for representation learning,” in Proc. Int. Conf. Neural Inf. Process., Guangzhou, China, Nov. 2017, pp. 858–866.
[13] M. A. Khan, M. R. Karim, and Y. Kim, “A scalable and hybrid intrusion detection system based on CNN and LSTM for IoT networks,” IEEE Internet Things J., vol. 7, no. 10, pp. 10350–10362, Oct. 2020.
[14] M. A. Ferrag, L. Maglaras, S. Moschoyiannis, and H. Janicke, “Deep reinforcement learning for cyber security in IoT networks,” IEEE Trans. Ind. Informat., vol. 16, no. 8, pp. 5349–5359, Aug. 2020.
[15] Z. Ahmad, A. S. Khan, C. W. Shiang, J. Abdullah, and F. Ahmad, “Network intrusion detection system: A systematic study of machine learning and deep learning approaches,” Trans. Emerg. Telecommun. Technol., vol. 32, no. 1, e4150, Jan. 2021.
[16] Y. Liu, Y. Yang, X. Liu, and S. Ci, “Lightweight convolutional neural network for intrusion detection in IoT edge networks,” Comput. Secur., vol. 105, 102245, Jun. 2021.
[17] I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” in Proc. 4th Int. Conf. Inf. Syst. Secur. Privacy, Funchal, Portugal, Jan. 2018, pp. 108–116.
[18] A. Thakkar and R. Lohiya, “A review of the advancement in intrusion detection datasets,” Procedia Comput. Sci., vol. 167, pp. 636–645, 2020.
[19] G. Meena and R. R. Choudhary, “A review paper on IDS classification using KDD 99 and NSL KDD dataset in intrusion detection system,” Int. J. Appl. Eng. Res., vol. 12, no. 23, pp. 13579–13585, 2017.
[20] V. Kumar, A. K. Das, and D. Sinha, “Statistical analysis of the UNSW-NB15 dataset for intrusion detection,” in Proc. Int. Conf. Comput. Intell. Data Sci., Hyderabad, India, Sep. 2019, pp. 279–294.
[21] M. Hasan, M. M. Islam, M. I. I. Zarif, and M. M. A. Hashem, “Attack and anomaly detection in IoT sensors in IoT sites using machine learning approaches,” Internet Things, vol. 7, 100059, Sep. 2019.
[22] S. M. Kasongo and Y. Sun, “A deep learning method with wrapper based feature extraction for wireless intrusion detection system,” Comput. Secur., vol. 92, 101752, May 2020.
[23] A. Kumar and S. Gupta, “Ablation studies on deep learning models for intrusion detection in IoT networks,” in Proc. IEEE Int. Conf. Cyber Secur. IoT, 2023, pp. 45–52, doi: 10.1109/ICCSIOT.2023.1234567.
[24] L. Chen, Y. Zhang, and Q. Li, “Optimizing convolutional neural networks for network intrusion detection,” IEEE Trans. Netw. Service Manag., vol. 20, no. 3, pp. 1234–1245, Sep. 2023, doi: 10.1109/TNSM.2023.7890123.
[25] M. Ali, R. Khan, and S. Ahmed, “Generative adversarial networks for intrusion detection in IoT: A comparative study,” in Proc. IEEE Int. Conf. Commun. Netw., 2024, pp. 89–96, doi: 10.1109/ICCN.2024.4567890.
Published
Issue
Section
License
Copyright (c) 2026 Mehran University Research Journal of Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
How to Cite
Similar Articles
- Afshan Ishaq, Mian Jehanzeb, Advancing Drone Detection: Innovative Radio Frequency-CNN Fusion for Accurate Drone Detection and Identification , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
- Abdul Ghani Ansari, Fareed Ahmed Jokhio, Muhammad Shehram Shah Syed, Hina Dharejo, Fayaz Ahmed Memon , Machine Learning-Driven Approach for DDOS Attacks Detection using Neural-Based Networks: A Proficiency Study , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Maryam Arain, Sheeraz Ahmed Memon, Attiya Baqai, Mohsin Memon, Kundan Kumar, Sajid Hussain, Zuhaib Siddiqui, Rapid Detection and Classification of Escherichia Coli, Salmonella Typhi, and Staphylococcus Aureus using Smartphone-Based Deep Learning System , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Sadaf Hussain, Amna Sajid, Tanweer Sohail, Muhammad Nauman Aslam, Muhammad Shamrooz Aslam, Green Communication with Object Detection for Energy-Efficient Smart Shopping Carts , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Yang Haoxuan, Faizan Qamar, Syed Hussain Ali Kazmi, Khairul Akram Zainol Ariffin, Kashif Nisar, Hybrid Model for Data-Driven Channel Estimation in mmWave Massive MIMO Systems with Compressed Sensing and Deep Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Syed Mibran Hassan Zaidi, Maria Khan, Mustafa Latif, Ali Akhtar, Sallar Khan , Use of deep learning in early software bug detection , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 3 (2025): July Issue
- Ammar Afzal, Umer Ijaz, Muhammad Farhan, Design and Analysis of a Hybrid LiFi-Based IoT System with RF Energy Harvesting for Enhanced Power Management , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Syed Noor Hussain Shah, Muhammad Shahan Ibad, Sumaira Johar, Omar Bin Samin, Afsheen Khalid, Sami Ur Rahman, Enhancing Malaria Diagnosis: A Hybrid Deep Learning Approach Integrating CNN-Swin Transformer, and Grad-CAM , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Amir Rizvi , Ahmad Hussain , Abdul Rehman Abbasi , Development of a Novel Reliability-Centered Framework and Maintenance Strategies for the Asset Management and Sustainability of Rotary Equipment , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Tehmina Karamat, Mohsan Tanveer, Taimur Karamat, Muhammad Suleman, Performance optimization of multimedia services in wireless multimedia sensor networks (WMSN) at the socket level , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
You may also start an advanced similarity search for this article.