Research Article

Network Anomaly Traffic Detection Model Based on Spatio-Temporal Attention Feature Fusion

Xinpeng Chen*, Jinan Shen, Fang Liang, Qiuyang Du
College of Intelligent Systems Science and Engineering, Hubei Minzu University

* Corresponding author: [email protected]

Abstract

With the rapid proliferation of 5G, IoT devices are increasingly subjected to network attacks. Traditional Network Intrusion Detection Systems (NIDS) are becoming inadequate in the face of more complex network environments and massive data traffic. Deep learning-based intrusion detection algorithms have thus become a hot topic in cybersecurity research. However, existing NIDS have limitations in terms of accuracy, recall rates, false alarm rates, and generalization capabilities. The impact of data redundancy and data imbalance further degrades model performance. We have designed a new network that integrates Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks, incorporating an attention mechanism to enhance learning capabilities. This allows the model to focus on both temporal and spatial features. Additionally, the introduction of the attention mechanism makes it easier to identify key anomalous data features amidst the redundant data. We also paid special attention to the issue of data imbalance. Our model and methods for balancing datasets were validated through binary and multi-class classification experiments on the two most commonly used datasets (UNSW_NB15, CICIDS2017). The results demonstrated good convergence and high accuracy. Compared to traditional models, our model shows significant improvements in detecting large-scale and multi-scenario network data attacks, making it suitable for network security detection in modern IoT environments.

Keywords: Network Intrusion Detection Systems; Convolutional Neural Networks; Long Short-Term Memory
Published: March 28, 2025
DOI: 10.54254/2755-2721/2025.TJ21647
Volume: ACE Vol.119
pp. 19-23
Download PDF

References

  1. Bataev, A.V.; Zhuzhoma, I.; Bulatova, N.N. Digital Transformation of the World Economy: Evaluation of the Global and Russian Internet of Things Markets. In Proceedings of the 2020 9th International Conference on Industrial Technology and Management (ICITM). IEEE, 2020, pp. 274–278.
  2. Aldweesh, A.; Derhab, A.; Emam, A.Z. Deep learning approaches for anomaly-based intrusion detection systems: A survey, taxonomy, and open issues. Knowledge-Based Systems 2020, 189, 105124.
  3. Shitharth, S.; Kshirsagar, P.R.; Balachandran, P.K.; Alyoubi, K.H.; Khadidos, A.O. An innovative perceptual pigeon galvanized optimization (PPGO) based likelihood Naïve Bayes (LNB) classification approach for network intrusion detection system. IEEE Access 2022, 10, 46424–46441.
  4. Islam, R.; Devnath, M.K.; Samad, M.D.; Al Kadry, S.M.J. GGNB: Graph-based Gaussian naive Bayes intrusion detection system for CAN bus. Vehicular Communications 2022, 33, 100442.
  5. Saheed, Y.K.; Arowolo, M.O.; Tosho, A.U. An efficient hybridization of k-means and genetic algorithm based on support vector machine for cyber intrusion detection system. International Journal on Electrical Engineering and Informatics 2022, 14, 426–442.
  6. Jain, M.; Kaur, G.; Saxena, V. A K-Means clustering and SVM based hybrid concept drift detection technique for network anomaly detection. Expert Systems with Applications 2022, 193, 116510.
  7. Waskle, S.; Parashar, L.; Singh, U. Intrusion detection system using PCA with random forest approach. In Proceedings of the 2020 International Conference on Electronics and Sustainable 445 Communication Systems (ICESC). IEEE, 2020,pp. 803–808.
  8. Liu, C.; Gu, Z.; Wang, J. A hybrid intrusion detection system based on scalable K-means+random forest and deep learning. Ieee Access 2021, 9, 75729–75740.
  9. Almaiah, M.A.; Almomani, O.; Alsaaidah, A.; Al-Otaibi, S.; Bani-Hani, N.; Hwaitat, A.K.A.; Al-Zahrani, A.; Lutfi, A.; Awad, A.B.; Aldhyani, T.H. Performance investigation of principal component analysis for intrusion detection system using different support vector machine kernels. Electronics 2022, 11, 3571.
  10. Kumari,A.; Mehta,A.K. A hybrid intrusion detection system based on decision tree and support vector machine. In Proceedings of the 2020 IEEE 5th International conference on computing communication and automation (ICCCA). IEEE, 2020,pp. 396–400.
  11. Devan, P.; Khare, N. An efficient XGBoost–DNN-based classification model for network intrusion detection system. Neural Computing and Applications 2020, 32, 12499–12514.
  12. Bhati, B.S.; Chugh, G.; Al-Turjman, F.; Bhati, N.S. An improved ensemble based intrusion detection technique using XGBoost. Transactions on emerging telecommunications technologies 2021, 32, e4076.
  13. Louk, M.H.L.; Tama, B.A. Dual-IDS: A bagging-based gradient boosting decision tree model for network anomaly intrusion detection system. Expert Systems with Applications 2023, 213, 119030.
  14. Kasongo, S.M. An advanced intrusion detection system for IIoT based on GA and tree based algorithms. IEEE Access 2021, 9, 113199–113212.