Open Access iconOpen Access

ARTICLE

crossmark

A Dual-Attention CNN-BiLSTM Model for Network Intrusion Detection

Zheng Zhang1,2, Jie Hao2, Liquan Chen1,*, Tianhao Hou2, Yanan Liu2

1 School of Cyber Science and Engineering, Southeast University, Nanjing, 211199, China
2 School of Network Security, Jinling Institute of Technology, Nanjing, 211169, China

* Corresponding Author: Liquan Chen. Email: email

Computers, Materials & Continua 2026, 86(1), 1-22. https://doi.org/10.32604/cmc.2025.068372

Abstract

With the increasing severity of network security threats, Network Intrusion Detection (NID) has become a key technology to ensure network security. To address the problem of low detection rate of traditional intrusion detection models, this paper proposes a Dual-Attention model for NID, which combines Convolutional Neural Network (CNN) and Bidirectional Long Short-Term Memory (BiLSTM) to design two modules: the FocusConV and the TempoNet module. The FocusConV module, which automatically adjusts and weights CNN extracted local features, focuses on local features that are more important for intrusion detection. The TempoNet module focuses on global information, identifies more important features in time steps or sequences, and filters and weights the information globally to further improve the accuracy and robustness of NID. Meanwhile, in order to solve the class imbalance problem in the dataset, the EQL v2 method is used to compute the class weights of each class and to use them in the loss computation, which optimizes the performance of the model on the class imbalance problem. Extensive experiments were conducted on the NSL-KDD, UNSW-NB15, and CIC-DDos2019 datasets, achieving average accuracy rates of 99.66%, 87.47%, and 99.39%, respectively, demonstrating excellent detection accuracy and robustness. The model also improves the detection performance of minority classes in the datasets. On the UNSW-NB15 dataset, the detection rates for Analysis, Exploits, and Shellcode attacks increased by 7%, 7%, and 10%, respectively, demonstrating the Dual-Attention CNN-BiLSTM model’s excellent performance in NID.

Keywords

Network intrusion detection; class imbalance problem; deep learning

Cite This Article

APA Style
Zhang, Z., Hao, J., Chen, L., Hou, T., Liu, Y. (2026). A Dual-Attention CNN-BiLSTM Model for Network Intrusion Detection. Computers, Materials & Continua, 86(1), 1–22. https://doi.org/10.32604/cmc.2025.068372
Vancouver Style
Zhang Z, Hao J, Chen L, Hou T, Liu Y. A Dual-Attention CNN-BiLSTM Model for Network Intrusion Detection. Comput Mater Contin. 2026;86(1):1–22. https://doi.org/10.32604/cmc.2025.068372
IEEE Style
Z. Zhang, J. Hao, L. Chen, T. Hou, and Y. Liu, “A Dual-Attention CNN-BiLSTM Model for Network Intrusion Detection,” Comput. Mater. Contin., vol. 86, no. 1, pp. 1–22, 2026. https://doi.org/10.32604/cmc.2025.068372



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 911

    View

  • 367

    Download

  • 0

    Like

Share Link