A hybrid CNN-BiLSTM-attention framework with class-aware gating for network intrusion detection
Network intrusion detection is challenging because traffic features are high-dimensional and attack classes are highly imbalanced. This study evaluates a hybrid CNN-BiLSTM-Attention framework with class-aware gating for multiclass intrusion detection using CICIDS2017. Random Forest-based feature selection retained 51 of 78 numerical traffic features. Each flow was represented as an ordered feature vector, not as a chronological traffic sequence. The original evaluation across 13 traffic categories yielded 98.78% accuracy, 98.76% weighted F1-score, and 81.26% macro F1-score. However, recall was only 38.93% for Bot, 11.24% for Web Attack, and 0% for Infiltration. A Random Forest baseline using the same 51 features achieved 99.49% accuracy and 93.14% macro F1-score, outperforming the hybrid model on both measures. In a separate stratified 60/20/20 ablation study, the gating configuration outperformed the attention-only variant but did not outperform the simpler CNN-BiLSTM model. In the original evaluation, mean imputation was performed before the train-test split, introducing a potential source of information leakage. The findings characterize the architecture’s measured performance and its limitations regarding minority-class detection, comparative effectiveness, and evaluation methodology.
Authors
- Mohsen Rezvani (ORCID: https://orcid.org/0000-0002-1172-1941)
- Esmaeel Tahanian
- Mohammed Saeed Hamid
Institutions
- University of Shahrood (IR)
Publication Details
- Journal
- International Journal of Advances in Intelligent Informatics
- Published
- 2026-11-30
- DOI
- https://doi.org/10.26555/ijain.v12i4.2613
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00