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
- Najma Imtiaz Ali, Imtiaz Ali Brohi, Aadil Jamali, Kasturi Kanchymalay, Noor Zaman Jhanjhi, Safeeullah Soomro, Overcoming Occlusion in Person Re-Identification: A Multi-Level Attention Transformer Approach , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 1 (2026): January Issue
- Hafiz Abdul Wajid, Muhammad Abid , Tareq Manzoor , Ventilation Optimization Using CFD Analysis for a Sustainable Environmentally Controlled Poultry Shed in Tropical Climates , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Naseer Ahmed, Mansoor Ahmed Khuhro, Asif Ali Laghari, Bridging the Gap: A Transformer-Based Chatbot Architecture for Low-Resource Brahui via Embedding Fusion and Transfer Learning , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Rafique Ahmed Soomro, Hisamuddin Shaikh, Effect Of Porous Baffles On Fluid Flow And Heat Transfer In A BackwardStep Channel: Numerical Predictions , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
- Sajjad Ali Memon , Faheem Ahmed Abbasi , Muhammad Ali Memon , Muhammad Ali Nizamani, A Blockchain-Integrated Digital Twin Framework for Supply Chain Visibility and Traceability , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Shakeel Ahmad , Sheikh Muhammad Saqib, Asif Hassan Syed , Ali Ahmed Abdelrahim , Nashwan Alromema, XAI-Driven Stacking Ensemble for Cross-Disease Feature Modification and Clinical Insights , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Shan Ul Haq, Sabahat Hussan, Muhmmad Qasim Ch, Subhan Hameed, Muhammad Huzaifa, Performance and Economic Evaluation of RAP-Incorporated Asphalt Mixes for Local Road , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 3 (2026): July Issue
- Abid Ali, Audil Rashid, Shahid Mahmood, Tariq Mahmood, Aniqa Batool, Munnaza Khalid, Ismat karim, Muhammad Shafiq, Engineering Assessment of Antibiotic Transport, Retention, and Exposure Pathways in Wastewater impacted Rural Soil–Water Systems of Punjab, Pakistan , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 2 (2026): April Issue
- Muhammad Irfan, Shahzaib Farrukh, Humaira Altaf Khan, Shaista Mahmud, Bassam Nasir, Mohammad Idrees , Spatiotemporal Modelling of Coastal Vulnerability and Ecosystem Degradation in Indus Delta: A Landsat and DSAS Approach , Mehran University Research Journal of Engineering and Technology: Vol. 44 No. 4 (2025): October Issue
- Abdul Rehman Imtiaz, Umer Ijaz, Muhammad Farhan, Reinforcement Learning-Adaptive Hybrid Metaheuristic for Optimal Distributed Generation and Shunt Capacitor Placement with Embedded V2G Dispatch in Distribution Networks , Mehran University Research Journal of Engineering and Technology: Vol. 45 No. 4 (2026): October Issue
You may also start an advanced similarity search for this article.