International Journal of Advances in Intelligent Informatics
Vol 12, No 4 (2026): November 2026

A hybrid CNN-BiLSTM-attention framework with class-aware gating for network intrusion detection

Mohammed Saeed Hamid (Shahrood University of Technology)
Mohsen Rezvani (Shahrood University of Technology)
Esmaeel Tahanian (Shahrood University of Technology)



Article Info

Publish Date
30 Nov 2026

Abstract

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.

Copyrights © 2026






Journal Info

Abbrev

IJAIN

Publisher

Subject

Computer Science & IT

Description

International journal of advances in intelligent informatics (IJAIN) e-ISSN: 2442-6571 is a peer reviewed open-access journal published three times a year in English-language, provides scientists and engineers throughout the world for the exchange and dissemination of theoretical and ...