EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

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

Muhammad Binsawad

Electronics · 2026-07-27 · 15 (15) · 3299

DOI: 10.3390/electronics15153299 ↗

At a glance

Journal article in Electronics, published online on 2026-07-27. Written by Muhammad Binsawad. 33 references. The full text is freely available (open access, CC BY 4.0). Funded by: Deanship of Scientific Research (DSR) at King Abdulaziz University.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

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 towards the majority of benign traffic, misclassifying minority attack classes. This paper introduces a Cost-Sensitive Forest (CS-Forest) approach to enhance the detection of minority attacks in the CSE-CIC-IDS2018 dataset. The proposed framework combines cost-sensitive learning, ensemble-based Random Forest classification, feature selection, and SHAP explainability analysis to boost the performance of intrusion detection and interpretability. Various machine learning algorithms such as Decision Tree, Random Forest, AdaBoost, and XGBoost were tested and compared based on accuracy, precision, recall, F1-score, ROC-AUC, false positive rate, and false negative rate. Experimental results proved that the proposed CS-Forest has excellent performance, with 99.81% accuracy, 99.55% recall, 99.61% F1-score, and 0.998 ROC-AUC, significantly enhancing the performance of minority attack detection and reduced false negatives. The framework learned meaningful and interpretable network traffic behaviors, which was also confirmed using SHAP analysis. The research suggests that future IDS systems should incorporate cost-sensitive learning and explainable AI techniques to ensure improved reliability, transparency, and deployment in the cybersecurity landscape.

Funding

  • Deanship of Scientific Research (DSR) at King Abdulaziz University

Cite

APA

Binsawad, M. (2026). CS-Forest: A Cost-Sensitive Explainable Ensemble Framework for Minority Attack Detection in Intrusion Detection Systems. Electronics, 15(15), 3299. https://doi.org/10.3390/electronics15153299

Vancouver

Binsawad M. CS-Forest: A Cost-Sensitive Explainable Ensemble Framework for Minority Attack Detection in Intrusion Detection Systems. Electronics. 2026;15(15):3299. doi:10.3390/electronics15153299

BibTeX
@article{Binsawad2026,
  author = {Binsawad, Muhammad},
  title = {CS-Forest: A Cost-Sensitive Explainable Ensemble Framework for Minority Attack Detection in Intrusion Detection Systems},
  journal = {Electronics},
  year = {2026},
  volume = {15},
  number = {15},
  pages = {3299},
  doi = {10.3390/electronics15153299}
}
Start for free →