Skip to content
Open access

A Stacking Ensemble Framework with Mutual Information Feature Selection and SHAP for Explainable Network Intrusion Detection

Jul 2026 · Applied Science and Engineering Journal for Advanced Research · Vol 5, pp. 1-16 · 0 citations · 12 references

TL;DR

An explainable network intrusion detection framework that integrates Mutual Information-based feature selection, a stacking ensemble classifier, and SHapley Additive exPlanations (SHAP) that provides both global and local interpretations of model decisions is proposed.

Abstract

The rapid evolution of cyber threats has significantly increased the demand for intelligent intrusion detection systems (IDSs) capable of accurately distinguishing malicious network activities from legitimate traffic. Traditional signature-based IDSs are often ineffective against previously unseen attacks, while many machine learning-based approaches suffer from limited interpretability despite achieving high detection performance. To address these challenges, this paper proposes an explainable network intrusion detection framework that integrates Mutual Information (MI)-based feature selection, a stacking ensemble classifier, and SHapley Additive exPlanations (SHAP). The proposed framework is evaluated using the UNSW-NB15 benchmark dataset. During preprocessing, categorical attributes are transformed using label encoding, highly skewed numerical features are normalized through logarithmic transformation, and robust scaling is applied to mitigate the influence of outliers. Mutual Information is employed to rank feature relevance, and the twenty most informative features are selected to reduce computational complexity while preserving discriminative information. A stacking ensemble model comprising XGBoost, LightGBM, and CatBoost as base learners, with Logistic Regression serving as the meta-learner, is then trained for binary intrusion detection. Experimental evaluation demonstrates that the proposed model achieves an accuracy of 93.40%, precision of 94.50%, recall of 95.22%, F1-score of 94.86%, and an ROC-AUC score of 98.74%. Furthermore, SHAP-based explainability provides both global and local interpretations of model decisions, identifying sttl, sbytes, and synack as the most influential features contributing to attack detection. The experimental results indicate that the proposed framework offers a robust balance between predictive performance and interpretability, making it suitable for practical cybersecurity applications.

Read PDF

Similar papers

Open access Jul 2026

Cost-Sensitive Stacking Ensemble with Hybrid Feature Selection for Rare Attack Detection in Network Intrusion Detection Systems

The results show that cost-sensitive learning is a simple and practical mechanism for improving rare-attack visibility, but also reveal a remaining limitation for R2L detection, where feature overlap with Normal traffic remains substantial.

I. C. Sălișteanu, I. Udroiu, A. Gheorghe et al. · 0 citations
Conference Aug 2026

A Stacking Enriched Explainable Machine Learning Approach for Multiclass DoS Attack and Network Intrusion Prediction

DoS attack and intrusion prediction is essential for IoT networks because it guarantees service availability, and preserves reputation by reducing expensive downtime. Benign, infiltration traffic, DoS golden eye, hulk, slowloris, and slow http test classes were all not taken at the same time with high accuracy in earli...

Maimuna Tabassum, Umme Saima Tonny, Sabila Anzum et al. · 0 citations
Open access Aug 2026

Modified Multi-Stage Ensemble Feature Selection (MMSE-FS) for Network Intrusion Detection

A modified multi-stage ensemble feature selection (MMSE-FS) framework that incorporates algorithmic adaptations of Random Forest, Principal Component Analysis, and KBest methods is introduced that substantially reduced the feature space while maintaining high detection performance across both binary and multi-class int...

Faruq Al-Omari, Alaa Y. Mhesin, Mohammad M. Al-Shurman · 0 citations
Open access Jul 2026

Comparative performance evaluation of machine learning classifiers for multi-class intrusion detection on the NSL-KDD dataset.

A feature-driven Intrusion Detection (ID) framework that combines XGBoost-based feature selection with multiple ML classifiers to improve attack detection performance while reducing computational complexity is proposed.

Aman Jyoti, Maninder Singh, V. Banga et al. · 0 citations
Open access Jul 2026

Explainable AI for Intrusion Detection: A SHAP-Guided Machine Learning Framework for Actionable Cybersecurity Insights

An explainable machine learning framework for network intrusion detection using the CICIDS2017 dataset is proposed, which improves detection accuracy, reduces false positives, and supports informed decision-making, thereby enhancing the transparency, trustworthiness, and practical applicability of intrusion detection s...

Moa’ath Sa’ad Al-A’athal, Q. A. Al-Haija · 0 citations
Open access Jul 2026

CS-Forest: A Cost-Sensitive Explainable Ensemble Framework for Minority Attack Detection in Intrusion Detection Systems

With the proliferation of internet-connected infrastructures and the complexity of cyberattacks, cybersecurity and intelligent intrusion detection systems have become more and more critical. Intrusion detection datasets, however, are now highly imbalanced, and conventional machine learning models have become biased tow...

Muhammad Binsawad · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.