Deep Learning Approach for IoT Traffic Multi-Classification in a Smart-City Scenario

Authors

  • G Ramasubba Reddy Department of CSM, Sai Rajeswari Institute of Technology, Proddatur, India.
  • Sunil J Department of CSM, Sai Rajeswari Institute of Technology, Proddatur, India.
  • S Nareshkumar Reddy Department of CSM, Sai Rajeswari Institute of Technology, Proddatur, India.
  • L Jayasree Department of CSE, Sri Padmavathi Mahila Vishwavidyalaya, Tirupati, India
  • T V N Radha Parameswari Department of CSM, Sai Rajeswari Institute of Technology, Proddatur, India.

DOI:

https://doi.org/10.5281/zenodo.17376640

Keywords:

IoT Security, Intrusion Detection System, CNN-LSTM, Smart City Networks, Network Traffic Classification

Abstract

The recent explosive growth of Internet of Things (IoT) devices in smart cities has grown the attack surface of modern networks exponentially, calling for efficient and scalable intrusion detection means. Classical rule-based and classical machine learning (ML) approaches are typically not able to handle the heterogeneity and dynamic nature of IoT traffic. We recommend Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks combined in a hybrid deep learning (DL) model to effectively capture spatial and temporal dependencies in network flow data in this work. We preprocess ACI-IoT-2023 dataset with over 1.23 million records of benign and malware traffic through feature encoding, Min-Max normalization, and feature selection in order to present the inputs as balanced and optimized. Experimental results confirm that the suggested CNN-LSTM model performs superior with improved classification accuracy of 99.99% on average and near-perfect precision, recall, and F1-measures for every attack type. Comparison to traditional baselines including Logistic Regression (LR), Support Vector Machine (SVM), Decision Tree (DT), Random Forest (RF), CNN, and LSTM indicates the robustness and durability of the proposed method. These results indicate that hybrid CNN-LSTM is a strong contender for real-time IoT intrusion detection in the context of smart cities.

References

Raza, M. S., Nowsin, M., Sheikh, A., & Hwang, I.-S. (2025). Ensemble learning-based DDoS attack recognition in IoT networks. Computer Networks and Communications, 73–83. https://doi.org/10.37256/CNC.3220256755

Al Dawi, A., Tezel, N. S., Rahebi, J., & Akbas, A. (2025). An approach to botnet attacks in the fog computing layer and Apache Spark for smart cities. Journal of Supercomputing, 81(4), 1–30. https://doi.org/10.1007/s11227-024-06915-y

Chennupati, N., Gottam, J., Marrelli, R., & Panda, A. (2025). Enhancing IoT intrusion detection with Greylag Goose Optimization and Extreme Learning Machine: A data-driven study on IoT23. ResearchGate. https://www.researchgate.net/publication/394046831_Enhancing_IoT_Intrusion_Detection_with_Greylag_Goose_Optimization_and_Extreme_Learning_Machine_A_Data-Driven_Study_on_IoT23

Aloqaily, A., Abdallah, E. E., AbuZaid, H., Abdallah, A. E., & Al-Hassan, M. (2025). Supervised machine learning for real-time intrusion attack detection in connected and autonomous vehicles: A security paradigm shift. Informatics, 12(1), 4. https://doi.org/10.3390/informatics12010004

Shan, L. (2025). IoT network intrusion detection system using optimization algorithms. Scientific Reports, 15(1), 1–19. https://doi.org/10.1038/s41598-025-04638-5

Rahmani, A. M., et al. (2022). A particle swarm optimization and deep learning approach for intrusion detection system in Internet of Medical Things. Sustainability, 14(19), 12828. https://doi.org/10.3390/su141912828

Lazrek, G., Chetioui, K., Balboul, Y., Mazer, S., & El Bekkali, M. (2024). An RFE/Ridge-ML/DL based anomaly intrusion detection approach for securing IoMT system. Results in Engineering, 23, 102659. https://doi.org/10.1016/j.rineng.2024.102659

Urs, P. M., Reddy, A. T. N., Mallikarjunaswamy, S., & Lakshminarayan, U. M. (2025). An innovative IoT framework using machine learning for predicting information loss at the data link layer in smart networks. Engineering, Technology & Applied Science Research, 15(2), 20904–20911. https://doi.org/10.48084/ETASR.9597

Ahmed, Y., Beyioku, K., & Yousefi, M. (2024). Securing smart cities through machine learning: A honeypot-driven approach to attack detection in Internet of Things ecosystems. IET Smart Cities, 6(3), 180–198. https://doi.org/10.1049/smc2.12084

Abbasi, M., Shahraki, A., Prieto, J., Arrieta, A. G., & Corchado, J. M. (2024). Unleashing the potential of knowledge distillation for IoT traffic classification. IEEE Transactions on Machine Learning in Communications and Networking, 2, 221–239. https://doi.org/10.1109/TMLCN.2024.3360915

Liao, N., & Guan, J. (2024). Multi-scale convolutional feature fusion network based on attention mechanism for IoT traffic classification. International Journal of Computational Intelligence Systems, 17(1), 1–25. https://doi.org/10.1007/s44196-024-00421-y

Afifi, F., Zaki, F., Hanif, H., Aqil, N., & Anuar, N. B. (2025). Transformer-based tokenization for IoT traffic classification across diverse network environments. PeerJ Computer Science, 11, e3126. https://doi.org/10.7717/peerj-cs.3126

Ismail, S., Dandan, S., & Qushou, A. (2025). Intrusion detection in IoT and IIoT: Comparing lightweight machine learning techniques using TON_IoT, WUSTL-IIoT-2021, and EdgeIIoTset datasets. IEEE Access, 13, 73468–73485. https://doi.org/10.1109/ACCESS.2025.3554083

Zahid, M., & Bharati, T. S. (2025). Enhancing cybersecurity in IoT systems: A hybrid deep learning approach for real-time attack detection. Discover Internet of Things, 5(1), 1–31. https://doi.org/10.1007/s43926-025-00156-y

Miao, Z., & Liao, Q. (2025). IoT-based traffic prediction for smart cities. IEEE Access, 13, 52369–52384. https://doi.org/10.1109/ACCESS.2025.3552276

An, R., Zhang, X., Sun, M., & Wang, G. (2024). GC-YOLOv9: Innovative smart city traffic monitoring solution. Alexandria Engineering Journal, 106, 277–287. https://doi.org/10.1016/j.aej.2024.07.004

Nack, E. A., McKenzie, M. C., & Bastian, N. D. (2024). ACI-IoT-2023: A robust dataset for Internet of Things network security analysis. In Proceedings of the IEEE Military Communications Conference (MILCOM). https://doi.org/10.1109/MILCOM61039.2024.10773916

Yang, J., et al. (2025). BrainCNN: Automated brain tumor grading from magnetic resonance images using a convolutional neural network-based customized model. SLAS Technology, 34, 100334. https://doi.org/10.1016/j.slast.2025.100334

Ali, M., et al. (2025). Improving daily reference evapotranspiration forecasts: Designing AI-enabled recurrent neural networks based long short-term memory. Ecological Informatics, 85, 102995. https://doi.org/10.1016/j.ecoinf.2025.102995

Zhang, J., Lai, Z., Kong, H., & Yang, J. (2025). Learning the optimal discriminant SVM with feature extraction. IEEE Transactions on Pattern Analysis and Machine Intelligence, 47(4), 2897–2911. https://doi.org/10.1109/TPAMI.2025.3529711

Wu, W. (2025). Research on customer traffic value recognition model based on improved random forest algorithm. International Journal of Business, Management and Economics Technology. https://doi.org/10.38007/IJBMET.2025.060109

Achari, A. P. S. K., & Sugumar, R. (2025). Performance analysis and determination of accuracy using machine learning techniques for decision tree and RNN. AIP Conference Proceedings, 3252(1). https://doi.org/10.1063/5.0258588

Sinha, P., Sahu, D., Prakash, S., Yang, T., Rathore, R. S., & Pandey, V. K. (2025). A high performance hybrid LSTM-CNN secure architecture for IoT environments using deep learning. Scientific Reports, 15(1), 1–26. https://doi.org/10.1038/s41598-025-94500-5

Pasha, A., Ahmed, S. T., Painam, R. K., Mathivanan, S. K., Mallik, S., & Qin, H. (2024). Leveraging ANFIS with Adam and PSO optimizers for Parkinson's disease. Heliyon, 10(9).

Ahmed, S. T., Priyanka, H. K., Attar, S., & Patted, A. (2017, June). Cataract density ratio analysis under color image processing approach. In 2017 International Conference on Intelligent Computing and Control Systems (ICICCS) (pp. 178-180). IEEE

Ahmed, S. T., Kumar, V. V., & Jeong, J. (2024). Heterogeneous workload-based consumer resource recommendation model for smart cities: EHealth edge–cloud connectivity using federated split learning. IEEE Transactions on Consumer Electronics, 70(1), 4187-4196.

Downloads

Published

2025-10-17

How to Cite

G Ramasubba Reddy, Sunil J, S Nareshkumar Reddy, L Jayasree, & T V N Radha Parameswari. (2025). Deep Learning Approach for IoT Traffic Multi-Classification in a Smart-City Scenario . International Journal of Computational Learning and Intelligence, An Open AI Journal, 4(4), 877–893. https://doi.org/10.5281/zenodo.17376640

Issue

Section

RESEARCH ARTICLES