Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM67381
Volume:
10 |
9 |
Sep 2026
Pages:
1-17
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Computer Science
Maulana Azad University, Jodhpur-342802 Rajasthan, India
Network Intrusion Detection Systems (NIDS) must be able to process high volume, high dimensional traffic, and be understandable by security analysts, and be capable of adapting to new networks. Current hybrid deep learning IDSs generally show high accuracy on a single benchmark dataset, and do not always provide a theoretical basis for feature selection based on the knowledge of network-security, seldom perform a generalization analysis on datasets collected under different conditions, and tend to view explainability as an after-thought tool rather than as an analysis tool. In this paper, a domain-aware, explainable hybrid Multi-Layer Perceptron-Long Short-Term Memory (MLP-LSTM) approach for scalable network intrusion detection is proposed. To handle large amounts of traffic, raw flow-level traffic records are fed into and cleaned with a distributed data processing pipeline (Apache Spark). Features are clustered into four sets based on their motivation for network security: flow-based, protocol-based, time-based and payload-based, and filtered for duplication within each set of features, not across all features in an undifferentiated correlation cut. This produces a feature set which is fed to a hybrid architecture comprising of an MLP branch to model static flow statistics and an LSTM branch to model the temporal traffic behaviour, with the two branches combined using a learned fusion layer rather than simple concatenation and provided with an attention-branch mechanism. SHapley Additive exPlanations (SHAP) are used to explain model decisions, and feature importance is aggregated by group and by attack-type, both of which are domain-aware, to generate security-analyst-relevant explanations. The group-level SHAP analysis points in the direction of further analysis, as it is found that the output of the trained model is practically entirely driven by the flow-based features, with 33 of a total 35 non-flow based features having exactly zero attribution despite high variance in the features themselves. The framework is tested in-domain and, to test generalization, without retraining in a cross-domain scenario, where the model is trained on a first intrusion detection dataset and tested in a second, separately collected dataset. For the proposed model, accuracy of 99.81% in domain and macro-F1 score of 99.82% are achieved over seven traffic categories with CICIDS2017 (Domain A). However, when evaluated without retraining on CSE-CIC-IDS2018 (Domain B), the accuracy drops to 90.46% but macro-F1 drops significantly to 32.22% with a per-class breakdown of this drop almost entirely from a complete failure to detect DDoS traffic cross-domain (0.00% recall on 36,641 true DDoS samples, all classified as DoS or Normal Traffic) while Normal Traffic is still detected well (97.61% recall). The proposed fusion mechanism is evaluated using ablation study, with attention-based fusion achieving 99.82% macro-F1, which is higher than 99.48% macro-F1 of the otherwise identical plain-concatenation hybrid, 99.44% macro-F1 of LSTM-only branch and 96.69% macro-F1 of MLP-only branch. Experiments with data volume scaling demonstrate that inference time grows sub-linearly with the number of training samples (from 10% to 100% of the data, it changes from 6.8s to 37.8s), but remains near-constant per sample (from 0.18-0.20 ms per sample), suggesting it is suitable for near-real-time deployment. The results show that the proposed attention-fusion hybrid model can be very effective for in-domain accuracy, but it is difficult to achieve an effective cross-domain generalization performance when using hybrid MLP-LSTM models for intrusion detection, which highlights the needs for testing cross-domain generalization performance in intrusion detection beyond an in-domain setting. The proposed approach introduces a network-security-based feature engineering method, an attention-based fusion method for hybrid spatial-temporal intrusion detection, a group-and-attack-type explainability analysis, and the experimental results of cross-domain generalization for hybrid MLP-LSTM intrusion detection systems.
KEYWORDS
In this paper, a hybrid MLP-LSTM network intrusion detection method is proposed, which is domain-aware, explainable, and scalable. The framework categorizes traffic features into network-security-driven groups, combines spatial and temporal representations by learning an attention mechanism instead of a mere concatenation, proposes explanations aggregated by feature category and type of attack, and is tested both in-domain and in a cross-domain protocol that reflects more closely real-world deployment conditions. Experiments on CICIDS2017 and CSE-CIC-IDS2018 demonstrate that the framework outperforms an otherwise identical plain-concatenation hybrid, and single-branch baselines in terms of in-domain accuracy (99.81% to 99.48% macro-F1) with very near constant sub-millisecond inference latency across data volume (99.82% to 32.22% macro-F1) and a significant cross-domain accuracy gap (99.82% to 32.22% macro-F1) that is robust to the size of the samples in the domain B (in terms of attacks per second); the results indicate that cross-domain accuracy is not merely a secondary test, but should become standard practice in intrusion detection research. Future work will extend this framework with continual or online learning to handle concept drift in evolving traffic patterns, investigate the adversarial robustness of the attention-fusion architecture against evasion attacks specifically designed for it, and explore an edge-cloud deployment split, similar to those used in collaborative architectures proposed for resource constrained IoT intrusion detection [17] where the lightweight MLP branch performs fast triage at the edge and the LSTM branch performs a deeper temporal analysis in the cloud.
[1] Mohammadpour, L., Ling, T. C., Liew, C. S., & Aryanfar, A. (2022). A survey of CNN-based network intrusion detection. Applied Sciences, 12(16), 8162. [2] Halbouni, A., Gunawan, T. S., Habaebi, M. H., Halbouni, M., Kartiwi, M., & Ahmad, R. (2022). CNN-LSTM: Hybrid deep neural network for network intrusion detection system. IEEE Access, 10, 99837–99849. [3] Phalaagae, P., Zungeru, A. M., Yahya, A., Sigweni, B., & Rajalakshmi, S. (2025). A hybrid CNN-LSTM model with attention mechanism for improved intrusion detection in wireless IoT sensor networks. IEEE Access, 13, 57322–57339. [4] Hossan, M. I., Chowdhury Rubel, M. S. K., Rahman, M. A., & Haque, B. M. T. (2026). Hybrid CNN-LSTM framework for intelligent cyber attack detection and prevention in U.S. critical digital infrastructure: A comparative machine learning evaluation on CSE-CIC-IDS2018. arXiv:2606.05714. [5] Tavallaee, M., Bagheri, E., Lu, W., & Ghorbani, A. A. (2009). A detailed analysis of the KDD CUP 99 data set. Proceedings of the 2nd IEEE Symposium on Computational Intelligence for Security and Defense Applications (CISDA). [6] Moustafa, N., & Slay, J. (2015). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS), 1–6. [7] Mane, S., & Rao, D. (2021). Explaining network intrusion detection system using explainable AI framework. arXiv:2103.07110. [8] Hagar, A. A., & Gawali, B. W. (2022). Apache Spark and deep learning models for high-performance network intrusion detection using CSE-CIC-IDS2018. Computational Intelligence and Neuroscience, 2022, 3131153. [9] Cantone, M., Marrocco, C., & Bria, A. (2024). On the cross-dataset generalization of machine learning for network intrusion detection. arXiv:2402.10974. [10] Zaharia, M., Chowdhury, M., Franklin, M. J., Shenker, S., & Stoica, I. (2010). Spark: Cluster computing with working sets. Proceedings of the 2nd USENIX Workshop on Hot Topics in Cloud Computing (HotCloud).
Publication Date
9/21/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
5
Total views since publication
PDF Downloads
3
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...