AI-Driven Intrusion Detection for Secure Internet of Things Networks

Authors

Nwabudike Uju Cynthia

Delta State polytechnic Ogwashi-Uku (Nigeria)

Osita Miracle Nwakeze

Department of Computer Science, Chukwuemeka Odumegwu Ojukwu University Uli, Anambra State (Nigeria)

Oboti Nwamaka Peace

Department of Computer science, Nnamdi Azikiwe University, Awka, Anambra State (Nigeria)

Ike Mgbeafulike Joseph

Department of Computer Science, Chukwuemeka Odumegwu Ojukwu University Uli, Anambra State (Nigeria)

Article Information

DOI: 10.51584/IJRIAS.2026.11090164

Subject Category: Computer Science

Volume/Issue: 11/9 | Page No: 2285-2294

Publication Timeline

Submitted: 2026-10-17

Accepted: 2026-10-22

Published: 2026-10-26

Abstract

There has been an increase in Internet of Things (IoT) devices, which complicates the networks due to their added attack surface. Botnets, denial-of-service attacks, and data exfiltration are threats to large-scale networks that can use IoT infrastructure. This paper proposes an artificial-intelligence-based intrusion detection system for secure IoT networks. The main idea is to represent the flows of traffic observed on the network as an ordered sequence of network flows, rather than a set of independent observations. The Network TON_IoT dataset, published by the University of New South Wales Canberra Cyber Range, was used. It consists of labelled NetFlow records captured from a realistic medium-scale IoT testbed with normal activities and nine attack categories represented. The records were cleaned, one-hot encoded, normalised, and divided into temporal sequences of ten consecutive flows each, which were assigned a binary label benign or intrusive, according to the attack timelines documented in the dataset. A gated recurrent unit (GRU) network was trained to classify the sequences: its recurrent layers encode the progression of an attack through the network, and a decision head interprets the output as the probability of an intrusion being present. The model was compared to logistic regression, support vector machine, and random forest classifiers, which were trained under the same conditions. The results showed that the model achieved 98.4% accuracy, 0.981 precision, 0.972 recall, 0.976 F1-score, and 0.996 AUROC on the test set of 12,000 flow sequences. It correctly recalled over 94% of intrusive sequences at 1% false positive rate. Analysis of the errors showed that false negatives occurred at the beginning of multi-stage attack timelines, while false positives were observed in benign bursts of activity such as firmware updates and cloud synchronisation, which indicates opportunities for the model to be improved upon. In conclusion, the experimental results show that temporal sequences of IoT network traffic can be used as a basis for intrusion detection.

Keywords

intrusion detection; Internet of Things; deep learning; GRU; network traffic analysis; TON_IoT

Downloads

References

1. Al-Jarrah, O. Y., Al-Duwairi, B., Al-Fuqaha, A., & Gupta, A. (2022). Anomaly-based intrusion detection system for IoT applications through deep learning. Journal of Network and Computer Applications, 198, 103268. https://doi.org/10.1016/j.jnca.2021.103268 [Google Scholar] [Crossref]

2. Alotaibi, B., & Barnawi, A. (2021). Efficient smart device identification for intrusion detection systems with long short-term memory. IEEE Access, 9, 104336-104351. https://doi.org/10.1109/ACCESS.2021.3098401 [Google Scholar] [Crossref]

3. Bovenzi, G., Aceto, G., Ciuonzo, D., Montieri, A., & Persico, V. (2022). A hierarchical hybrid intrusion detection approach in IoT scenarios. Journal of Information Security and Applications, 67, 103163. https://doi.org/10.1016/j.jisa.2022.103163 [Google Scholar] [Crossref]

4. Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv:1412.3555. https://doi.org/10.48550/arXiv.1412.3555 [Google Scholar] [Crossref]

5. Dadkhah, S., Zhang, H., Akbar, R., Chuprat, S., Manickam, S., Hosseinian-Far, A., & Kazemitabar, S. J. (2023). Toward the development of a realistic multi-layered dataset for machine learning-based intrusion detection systems. IEEE Access, 11, 35029-35046. https://doi.org/10.1109/ACCESS.2023.3264744 [Google Scholar] [Crossref]

6. Ferrag, M. A., Shu, L., Djallel, H., & Choo, K.-K. R. (2021a). Deep learning-based intrusion detection for distributed denial of service attack in agriculture 4.0. Electronics, 10(11), 1257. https://doi.org/10.3390/electronics10111257 [Google Scholar] [Crossref]

7. Ferrag, M. A., Tihanyi, L., Cordeiro, L. C., Debbah, M., Guerzoui, L., & Tripathi, S. (2021b). Edge deep learning for the detection of cybersecurity attacks in IoT and smart cities. Journal of Cloud Computing, 10, 67. https://doi.org/10.1186/s13677-021-00282-4 [Google Scholar] [Crossref]

8. Khan, R. U., Zhang, X., & Kumar, R. (2021). An improved intrusion detection system using artificial neural network for IoT networks. Wireless Communications and Mobile Computing, 2021, 5536951. https://doi.org/10.1155/2021/5536951 [Google Scholar] [Crossref]

9. Koroniotis, N., Moustafa, N., & Jha, S. (2022). A new network forensics framework based on deep learning for Internet of Things networks: A particle deep framework. Forensic Science International: Digital Investigation, 38, 301160. https://doi.org/10.1016/j.fsidi.2021.301160 [Google Scholar] [Crossref]

10. Koroniotis, N., Moustafa, N., Sitnikova, E., & Turnbull, B. (2019). Towards the development of realistic botnet dataset in the Internet of Things for network forensic analytics: Bot-IoT dataset. Future Generation Computer Systems, 100, 779-796. https://doi.org/10.1016/j.future.2019.05.041 [Google Scholar] [Crossref]

11. Meidan, Y., Bohadana, M., Mathov, Y., Mirsky, Y., Breitenbacher, D., Shabtai, A., & Elovici, Y. (2021). ProfilIoT: A machine learning approach for IoT device identification based on network traffic analysis. In Proceedings of the 22nd International Workshop on Mobile Computing Systems and Applications (HotMobile '21) (pp. 97-102). ACM. https://doi.org/10.1145/3446382.3448394 [Google Scholar] [Crossref]

12. Moustafa, N. (2021). A new distributed architecture for evaluating AI-based security systems at the edge: Network TON_IoT datasets. Sustainable Cities and Society, 72, 102994. https://doi.org/10.1016/j.scs.2021.102994 [Google Scholar] [Crossref]

13. Rezvy, S., Luo, Y., Petridis, M., Lasebae, A., & Zebin, T. (2021). An efficient intrusion detection system for IoT environments using XGBoost and deep learning. Wireless Communications and Mobile Computing, 2021, 8874127. https://doi.org/10.1155/2021/8874127 [Google Scholar] [Crossref]

14. Sun, P., Liu, P., Li, Q., & Shu, C. (2021). DL-MLP: A novel deep learning intrusion detection approach for MEC environments. Security and Communication Networks, 2021, 5395385. https://doi.org/10.1155/2021/5395385 [Google Scholar] [Crossref]

15. Tama, B. A., & Lim, S. (2021). Ensemble learning for intrusion detection systems: A systematic mapping study and cross-benchmark evaluation. Computer Networks, 195, 108165. https://doi.org/10.1016/j.comnet.2021.108165 [Google Scholar] [Crossref]

16. Thakkar, A., & Lohiya, R. (2021). A review on machine learning and deep learning perspectives of IDS for IoT: Recent updates, security issues, and challenges. Archives of Computational Methods in Engineering, 28(4), 3211-3243. https://doi.org/10.1007/s11831-020-09468-0 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles