journal article·2023-05-19Open access

Intrusion Detection Model Based on Improved Transformer

Yi Liu, Lanjian Wu

Applied Sciences· Volume 13· Issue 10

Abstract

This paper proposes an enhanced Transformer-based intrusion detection model to tackle the challenges of lengthy training time, inaccurate detection of overlapping classes, and poor performance in multi-class classification of current intrusion detection models. Specifically, the proposed model includes the following: (i) A data processing strategy that initially reduces the data dimension using a stacked auto-encoder to speed up training. In addition, a novel under-sampling method based on the KNN principle is introduced, along with the Borderline-SMOTE over-sampling method, for hybrid data sampling that balances the dataset while addressing the issue of low detection accuracy in overlapping data classes. (ii) An improved position encoding method for the Transformer model that effectively learns the dependencies between features by embedding the position information of features, resulting in better classification accuracy. (iii) A two-stage learning strategy in which the model first performs rough binary prediction (determining whether it is an illegal intrusion) and then inputs the prediction value and original features together for further multi-class prediction (predicting the intrusion category), addressing the issue of low accuracy in multi-class classification. Experimental results on the official NSL-KDD test set demonstrate that the proposed model achieves an accuracy of 88.7% and an F1-score of 88.2% in binary classification and an accuracy of 84.1% and an F1-score of 83.8% in multi-class classification. Compared to existing intrusion detection models, our model exhibits higher accuracy and F1-score and trains faster than other models.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Anomaly Detection Techniques and Applications · Advanced Malware Detection Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computers, Guangdong University of Technology, Guangzhou 510006, China

References (35)

Show source-provided references
1. Wang, H.W., Han, B.A., Su, J.S., and Wang, X.Y. (2018, January 7–11). A High-Performance Intrusion Detection Method Based on Combining Supervised and Unsupervised Learning. Proceedings of the IEEE SmartWorld, Ubiquitous Intelligence & Computing, Advanced & Trusted Computing, Scalable Computing & Communications, Cloud & Big Data Computing, Internet of People and Smart City Innovation (SmartWorld/SCALCOM/UIC/ATC/CBDCom/IOP/SCI), Guangzhou, China.10.1109/SmartWorld.2018.00304 ↗
2. A Detailed Investigation and Analysis of Using Machine Learning Techniques for Intrusion Detection10.1109/COMST.2018.2847722 ↗
3. Shojaei, M., Movahhedinia, N., and Tork Ladani, B. (2011, January 8–10). An entropy based approach for DDoS attack detection in IEEE 802.16 based networks. Proceedings of the Advances in Information and Computer Security: 6th International Workshop, IWSEC 2011, Tokyo, Japan.10.1007/978-3-642-25141-2_9 ↗
4. Babić, I., Miljković, A., Čabarkapa, M., Nikolić, V., Đorđević, A., Ranđelović, M., and Ranđelović, D. (2021). Triple modular redundancy optimization for threshold determination in intrusion detection systems. Symmetry, 13.10.3390/sym13040557 ↗
5. Neural embedding singular value decomposition for collaborative filtering10.1109/TNNLS.2021.3070853 ↗
6. Improving the generalization ability of deep neural networks for cross-domain visual recognition10.1109/TCDS.2020.2965166 ↗
7. Transfer learning model to indicate heart health status using phonocardiogram
8. Decision tree based intrusion detection system for NSL-KDD dataset
9. Random-forests-based network intrusion detection systems10.1109/TSMCC.2008.923876 ↗
10. Use of k-nearest neighbor classifier for intrusion detection10.1016/S0167-4048(02)00514-X ↗
11. Network intrusion detection system (NIDS) in cloud environment based on hidden Naïve Bayes multiclass classifier10.23851/mjs.v28i2.508 ↗
12. Kim, J., Kim, J., Kim, H., Shim, M., and Choi, E. (2020). CNN-based network intrusion detection against denial-of-service attacks. Electronics, 9.10.3390/electronics9060916 ↗
13. Khan, M.A. (2021). HCRNNIDS: Hybrid convolutional recurrent neural network-based network intrusion detection system. Processes, 9.10.3390/pr9050834 ↗
14. Imrana, Y., Xiang, Y., Ali, L., and Abdul-Rauf, Z. (2021). A bidirectional LSTM deep learning approach for intrusion detection. Expert Syst. Appl., 185.10.1016/j.eswa.2021.115524 ↗
15. Liu, X., Li, T., Zhang, R., Wu, D., Liu, Y., and Yang, Z. (2021). A GAN and feature selection-based oversampling technique for intrusion detection. Secur. Commun. Netw., 2021.10.1155/2021/9947059 ↗
16. Network Intrusion Detection Combined Hybrid Sampling with Deep Hierarchical Network10.1109/ACCESS.2020.2973730 ↗
17. Zhang, H.P., Huang, L.L., Wu, C.Q., and Li, Z.B. (2020). An effective convolutional neural network based on SMOTE and Gaussian mixture model for intrusion detection in imbalanced dataset. Comput. Netw., 177.10.1016/j.comnet.2020.107315 ↗
18. Combinatorial Intrusion Detection Model Based on Deep Recurrent Neural Network and Improved SMOTE Algorithm
19. Network intrusion detection method based on autoencoder and RESNET
20. Intrusion detection model based on principal component analysis and cyclic neural network
21. A hybrid deep learning model for efficient intrusion detection in big data environment10.1016/j.ins.2019.10.069 ↗
22. A hybrid unsupervised clustering-based anomaly detection method10.26599/TST.2019.9010051 ↗
23. CANintelliIDS: Detecting In-Vehicle Intrusion Attacks on a Controller Area Network Using CNN and Attention-Based GRU10.1109/TNSE.2021.3059881 ↗
24. Situation, trends and prospects of deep learning applied to cyberspace security
25. Attention is all you need
26. RTIDS: A robust transformer-based approach for intrusion detection system10.1109/ACCESS.2022.3182333 ↗
27. Yang, Y.G., Fu, H.M., Gao, S., Zhou, Y.H., and Shi, W.M. (2022). Intrusion detection: A model based on the improved vision transformer. Trans. Emerg. Telecommun. Technol., 33.10.1002/ett.4522 ↗
28. Zhang, Z., and Wang, L. (2022, January 26–27). An Efficient Intrusion Detection Model Based on Convolutional Neural Network and Transformer. Proceedings of the 2021 Ninth International Conference on Advanced Cloud and Big Data (CBD), Xi’an, China.10.1109/CBD54617.2021.00050 ↗
29. Ullah, F., Ullah, S., Srivastava, G., and Lin, J.C.-W. (2023). IDS-INT: Intrusion detection system using transformer-based transfer learning for imbalanced network traffic. Digit. Commun. Netw., in press.10.1016/j.dcan.2023.03.008 ↗
30. Adversarial Feature Selection Against Evasion Attacks10.1109/TCYB.2015.2415032 ↗
31. Archibe, U.K. (2023, March 27). NSL Data. Available online: http://nsl.cs.unb.ca/NSL-KDD.
32. Zainel, H., and Koçak, C. (2022). LAN Intrusion Detection Using Convolutional Neural Networks. Appl. Sci., 12.10.3390/app12136645 ↗
33. Shen, Y., Zheng, K., Yang, Y., Liu, S., and Huang, M. (2022). CBA-CLSVE: A Class-Level Soft-Voting Ensemble Based on the Chaos Bat Algorithm for Intrusion Detection. Appl. Sci., 12.10.3390/app122111298 ↗
34. Cao, B., Li, C., Song, Y., Qin, Y., and Chen, C. (2022). Network Intrusion Detection Model Based on CNN and GRU. Appl. Sci., 12.10.3390/app12094184 ↗
35. Chen, C., Song, Y., Yue, S., Xu, X., Zhou, L., Lv, Q., and Yang, L. (2022). FCNN-SE: An Intrusion Detection Model Based on a Fusion CNN and Stacked Ensemble. Appl. Sci., 12.10.3390/app12178601 ↗