Reproducible and Explainable Machine Learning for Intrusion Detection: A Unified Benchmarking Framework with Cross-Dataset Feature Stability for Resilient Digital Infrastructure

Machine learning (ML) has markedly improved intrusion detection systems (IDSs), yet benchmarking studies rarely follow a common protocol, and explainability is usually reported for one model on one dataset, so it is unknown whether the features that drive detection are stable across heterogeneous network environments. This study proposes and validates a Unified Benchmarking and Explainability Framework (UBEF) that integrates standardized preprocessing, multi-criteria model ranking, SHapley Additive exPlanations (SHAP) and a new Cross-Dataset Feature Stability Indicator (CDFSI) in a single reproducible workflow for resilient digital infrastructure and sustainable innovation. The study employs three public benchmark datasets, CIC-IDS2017 (enterprise network), UNSW-NB15 (modern network) and IoT-23 (Internet of Things) and six supervised classifiers (Logistic Regression, Decision Tree, Random Forest, XGBoost, LightGBM and CatBoost) trained and tested under identical conditions, complemented by Jaccard similarity and Spearman rank correlation. The results show that LightGBM ranked first on CIC-IDS2017 (Accuracy 99.91%, F1-score 99.76%, average rank 1.43) and on UNSW-NB15 (Accuracy 87.59%, F1-score 89.75%, average rank 1.43), whereas Random Forest ranked first on IoT-23 (Accuracy 99.9987%, F1-score 99.9992%, average rank 1.00); Logistic Regression was weakest on every dataset (F1-scores of 84.76%, 84.42% and 96.11%). SHAP analysis of the highest-ranked models yielded an overall CDFSI of 0.0000, zero pairwise Jaccard similarity and negative Spearman rank correlations (−0.65 to −0.82, p < 0.001). The findings suggest that ensemble learners dominate, but no single classifier is best everywhere. High predictive Accuracy does not translate into transferable explanations: the Top-10 SHAP features of enterprise, modern-network and IoT traffic share no elements. JEL Classification Codes: C45, C52, C63, L86, O33.

Authors

Institutions

Publication Details

Journal
Bangladesh Journal of Multidisciplinary Scientific Research
Published
2026-11-25
DOI
https://doi.org/10.46281/bjmsr-2027-12-02-02
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Reproducible and Explainable Machine Learning for Intrusion Detection: A Unified Benchmarking Framework with Cross-Dataset Feature Stability for Resilient Digital Infrastructure

Marwan Alshar’e, Fouad Jameel Ibrahim Alazzawi, Said Almaqbali, Oualid Ali et al.
Bangladesh Journal of Multidisciplinary Scientific Research
Network Security and Intrusion Detection
article

Reproducible and Explainable Machine Learning for Intrusion Detection: A Unified Benchmarking Framework with Cross-Dataset Feature Stability for Resilient Digital Infrastructure

Marwan Alshar’e, Fouad Jameel Ibrahim Alazzawi, Said Almaqbali, Oualid Ali, Boumedyen Ahmad
article en

Abstract

Machine learning (ML) has markedly improved intrusion detection systems (IDSs), yet benchmarking studies rarely follow a common protocol, and explainability is usually reported for one model on one dataset, so it is unknown whether the features that drive detection are stable across heterogeneous network environments. This study proposes and validates a Unified Benchmarking and Explainability Framework (UBEF) that integrates standardized preprocessing, multi-criteria model ranking, SHapley Additive exPlanations (SHAP) and a new Cross-Dataset Feature Stability Indicator (CDFSI) in a single reproducible workflow for resilient digital infrastructure and sustainable innovation. The study employs three public benchmark datasets, CIC-IDS2017 (enterprise network), UNSW-NB15 (modern network) and IoT-23 (Internet of Things) and six supervised classifiers (Logistic Regression, Decision Tree, Random Forest, XGBoost, LightGBM and CatBoost) trained and tested under identical conditions, complemented by Jaccard similarity and Spearman rank correlation. The results show that LightGBM ranked first on CIC-IDS2017 (Accuracy 99.91%, F1-score 99.76%, average rank 1.43) and on UNSW-NB15 (Accuracy 87.59%, F1-score 89.75%, average rank 1.43), whereas Random Forest ranked first on IoT-23 (Accuracy 99.9987%, F1-score 99.9992%, average rank 1.00); Logistic Regression was weakest on every dataset (F1-scores of 84.76%, 84.42% and 96.11%). SHAP analysis of the highest-ranked models yielded an overall CDFSI of 0.0000, zero pairwise Jaccard similarity and negative Spearman rank correlations (−0.65 to −0.82, p < 0.001). The findings suggest that ensemble learners dominate, but no single classifier is best everywhere. High predictive Accuracy does not translate into transferable explanations: the Top-10 SHAP features of enterprise, modern-network and IoT traffic share no elements. JEL Classification Codes: C45, C52, C63, L86, O33.

Bangladesh Journal of Multidisciplinary Scientific ResearchVol. 12(2)
University of Bahrain (BH), Multimedia University (MY), Islamic University Babylon Campus (IQ), Sohar University (OM)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon