Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017
Abstract
In view of continuously evolving cyber-attacks, intrusion detection systems play a crucial role in modern network infrastructures. Traditional methods conventionally rely on rule-based systems, which cannot scale well with the increasing complexity and diversity in network threats. This paper presents the application of Long Short-Term Memory and Bidirectional Long Short-Term Memory on multiclass intrusion detection using the CIC IDS 2017 dataset containing benign and malicious network traffic data. A combined preprocessing strategy of random undersampling and SMOTE was used to address the challenge of class imbalance. Both LSTM and Bi-LSTM architectures were studied for accurate classification of network behaviors. The various metrics adopted for the performance evaluation included accuracy, precision, recall, F1-score, and confusion matrix analysis. It has shown that the Bi-LSTM network is better compared with the LSTM model due to considering the contextual information in both directions, which is pretty helpful for those attack types with complicated temporal relationships. This leads to the thought that deep learning methods may boost the robustness and accuracy of an IDS significantly and, in this respect, one shall investigate the technique of Bi-LSTM.
Keywords
References
- Tomar, V., & Mehra, P. S. (2023). Deep learning Bi-LSTM model for intrusion detection in IoT. In 2023 5th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N) (pp. 1342–1347). IEEE. https://doi.org/10.1109/ICAC3N60023.2023.10541944
- Bukhari, S. M. S., Zafar, M. H., Abou Houran, M., Moosavi, S. K. R., Mansoor, M., Muaaz, M., & Sanfilippo, F. (2024). Secure and privacy-preserving intrusion detection in wireless sensor networks: Federated learning with SCNN-Bi-LSTM for enhanced reliability. Ad Hoc Networks, 155, 103407.
- Bhattarai, A., Gyawali, U., Verma, A., & Ranga, V. (2024, June). Improving intrusion detection in a software-defined network using hybrid CNN and Bi-LSTM. In 2024 3rd International Conference on Applied Artificial Intelligence and Computing (ICAAIC) Proceedings (pp. 117–122). IEEE.
- Praveen, S. P., Sindhura, S., Srinivasu, P. N., & Ahmed, S. (2023). Combining CNNs and Bi-LSTMs for enhanced network intrusion detection: A deep learning approach. In Proceedings of the 2023 3rd International Conference on Computing and Information Technology (ICCIT) (pp. 261–268).
- Tharun, A. S., Kondapalli, & Prabakeran, S. (2024). Optimizing intrusion detection through long short-term memory model. In Proceedings of the International Conference on Advances in Modern Age Technologies for Health and Engineering Science (AMATHE) (pp. 1–7).
- Wanshun, L., Panxiang, Z., Gang, D., & Min, T. (2023). BI-TBL: A network intrusion detection method based on payload analysis. In Proceedings of the 20th International Computer Conference on Wavelet Active Media Technology and Information Processing (ICCWAMTIP) (pp. 1–5).
- Wang, X., Liu, J., & Zhang, C. (2023). Network intrusion detection based on multi-domain data and ensemble-bidirectional LSTM. EURASIP Journal on Information Security, 2023(1), 5.
- Salim, S., & Lahcen, O. (2023). Accuracy improvement of network intrusion detection system using bidirectional long-short term memory (Bi-LSTM). In Proceedings of the International Conference on Digital Technologies and Applications (pp. 143–152).
Details
Primary Language
English
Subjects
Computer System Software
Journal Section
Research Article
Authors
Publication Date
July 1, 2025
Submission Date
March 15, 2025
Acceptance Date
April 16, 2025
Published in Issue
Year 2025 Volume: 9 Number: 3
APA
S.p., S., & Balasubramanian, S. K. (2025). Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017. Turkish Journal of Engineering, 9(3), 578-590. https://doi.org/10.31127/tuje.1658662
AMA
1.S.p. S, Balasubramanian SK. Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017. TUJE. 2025;9(3):578-590. doi:10.31127/tuje.1658662
Chicago
S.p., Senthilkumar, and Suresh Kumar Balasubramanian. 2025. “Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017”. Turkish Journal of Engineering 9 (3): 578-90. https://doi.org/10.31127/tuje.1658662.
EndNote
S.p. S, Balasubramanian SK (July 1, 2025) Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017. Turkish Journal of Engineering 9 3 578–590.
IEEE
[1]S. S.p. and S. K. Balasubramanian, “Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017”, TUJE, vol. 9, no. 3, pp. 578–590, July 2025, doi: 10.31127/tuje.1658662.
ISNAD
S.p., Senthilkumar - Balasubramanian, Suresh Kumar. “Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017”. Turkish Journal of Engineering 9/3 (July 1, 2025): 578-590. https://doi.org/10.31127/tuje.1658662.
JAMA
1.S.p. S, Balasubramanian SK. Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017. TUJE. 2025;9:578–590.
MLA
S.p., Senthilkumar, and Suresh Kumar Balasubramanian. “Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017”. Turkish Journal of Engineering, vol. 9, no. 3, July 2025, pp. 578-90, doi:10.31127/tuje.1658662.
Vancouver
1.Senthilkumar S.p., Suresh Kumar Balasubramanian. Advancing Multi-Class Intrusion Detection: A Comparative Evaluation of LSTM and Bi-LSTM on Class-Imbalanced CIC-IDS-2017. TUJE. 2025 Jul. 1;9(3):578-90. doi:10.31127/tuje.1658662
Cited By
Object Recognition Using Deep Learning‐Powered Glove With Flex and MPU Sensors Fusion
Journal of Robotics
https://doi.org/10.1155/joro/6642796A Deep Learning Framework for Detection and Localization in Molecular Communication
Turkish Journal of Engineering
https://doi.org/10.31127/tuje.1887895