← Back to Publications List

AWE-SHAP: An Adaptive-Weighted Ensemble Framework with SHAP-Based Explainability for Cross-Dataset Multi-Attack Network Intrusion Detection

Students & Supervisors

Student Authors
Safiul Alam
Bachelor of Science in Computer Science & Engineering, FST
S.m Inthakab Kabir
Bachelor of Science in Computer Science & Engineering, FST
A.m.m Bakibillah
Bachelor of Science in Computer Science & Engineering, FST
Neamul Ahsan Utchas
Bachelor of Science in Computer Science & Engineering, FST
Supervisors
Sharfuddin Mahmood
Assistant Professor, Special Assistant [osa], FST

Abstract

Network Intrusion Detection Systems (NIDS) play a crucial role in modern cyber-security architectures; nevertheless, signature-based methods fail to detect novel attacks, and most of the available machine learning algorithms lack cross-dataset generalization and interpretability. AWESHAP (Adaptive Weighted Ensemble with Unified SHAP) is a cross-dataset multi-attacks detection framework which integrates five different base classifiers such as Random Forest, XGBoost, LightGBM, Extra Trees, and MLP Neural Network into adaptive F1-weighted soft-voting ensemble with SHAP explanations applied to the best-performing base classifier (XGBoost) as a proxy for ensemble interpretability. AWESHAP framework is tested comprehensively on two datasets –CIC-IDS-2017 and CSE-CIC-IDS2018 with within (70/30 stratified split) and cross-dataset setup where CIC-IDS2017 is considered a training dataset, while CSE-CIC-IDS2018 – testing one. In case of within-dataset experiments, F1-scores is 0.9952 and 0.9955 on CIC-IDS2017 and CSE-CIC-IDS2018 datasets respectively. With cross-dataset experiments there is a noticeable decline in results (F1 = 0.7661), proving concept drift effect usually overlooked by single-dataset approaches. To mitigate the cross-dataset performance degradation of static ensembles, we introduce an adaptive weight calibration mechanism using a minimal 5% subset of the target domain, effectively recovering the ensemble's F1-score from 0.7661 to 0.8720.Ablation studies reveal the importance of each element: SMOTE balance contributes most significantly to the model (+8.51 percentage points), followed by feature selection based on mutual information and F1 voting. SHAP studies consistently detect relevant features. The experiment was carried out on a stratified 60% sample of CSE-CIC-IDS2018, as a result of hardware limitations. The current research represents an essential milestone in developing robust, explainable, and drifttolerant approaches for cross evaluation.

Keywords

Network Intrusion Detection Ensemble Learning Explainable AI SHAP Cross-Dataset Evaluation CIC-IDS-2017 CIC-IDS-2018 Soft Voting SMOTE

Publication Details

  • Type of Publication:
  • Conference Name: IEEE 3rd INTERNATIONAL CONFERENCE ON COMPUTING, APPLICATIONS AND SYSTEMS
  • Date of Conference: 10/09/2026 - 10/09/2026
  • Venue: University of Dhaka, Bangladesh
  • Organizer: IEEE Computer Society Bangladesh Chapter