Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM62432

ML-Based Network Intrusion Detection Using Ensemble Methods with SHAP Explainability

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM62432

Volume:

10 |

5 |

May 2026

Pages:

1-7

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
10.55041/IJSREM62432

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.

Share this article:

Authors

Sanchita Jain

Sanchita Jain

Artificial Intelligence and Data science

Dr. Akhilesh Das Gupta Institute of Professional Studies

Download Author Certificate

Mentors

Dr. Ankur Jain

Dr. Ankur Jain

Artificial Intelligence and Data science

Dr. Akhilesh Das Gupta Institute of Professional Studies

Download Mentor Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

Network intrusion detection is fundamental to modern cybersecurity, yet deployed systems frequently suffer from high false-positive rates, limited interpretability, and degraded performance under severe class imbalance. This paper presents a comparative study of five machinelearning classifiers—Random Forest (RF), XGBoost, Decision Tree (DT), K-Nearest Neighbours (KNN), and Support Vector Machine (SVM)—trained on the KDD Cup 99 dataset (100,655 records, 42 features) for multi-class intrusion detection. Synthetic Minority Oversampling Technique (SMOTE) corrects a 28.8:1 class imbalance, expanding the corpus to 194,556 balanced records. The top 20 features selected via Pearson correlation are applied uniformly across all models. RF and XGBoost each achieve 99.98% accuracy and F1score, outperforming DT (99.96%), KNN (99.92%), and SVM (99.61%). SHapley Additive exPlanations (SHAP) identifies src_bytes, dst_bytes, and same_srv_rate as dominant predictive features, providing actionable transparency for security analysts. Macro-averaged AUC reaches 0.9999 for both RF and XGBoost. A Flask-based dashboard enables real-time traffic classification and alert logging. Ablation experiments confirm SMOTE elevates minority-class recall from near-zero to above 97% across all models.

KEYWORDS

Index Terms—Network intrusion detection machine learning ensemble methods SMOTE SHAP explainability KDD Cup 99 Random Forest XGBoost ROC curve class imbalance.

Cite This Article

Sanchita Jain, Dr. Ankur Jain, "ML-Based Network Intrusion Detection Using Ensemble Methods with SHAP Explainability," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 5, pp. 1-7, May 2026. https://doi.org/10.55041/IJSREM62432

Full Article/Conclusion

This paper presented a comprehensive, end-to-end MLbased network intrusion detection system trained and evaluated on the KDD Cup 99 benchmark. SMOTE resampling resolved a severe 28.8:1 class imbalance (Fig. 1), enabling all five classifiers to exceed 99.6% accuracy on the imbalanced test set. RF and XGBoost jointly achieved the highest performance at 99.98% accuracy and F1-score (Table V, Fig. 2), with XGBoost offering a decisive 9.4× training-time advantage. Macro-averaged ROC analysis confirmed AUC of 0.9999 for both ensemble models (Fig. 4). Confusion matrix decomposition (Fig. 3) confirmed near-perfect per-class detection post-SMOTE, with residual errors concentrated at the Normal–DoS boundary. SHAP identified src_bytes, dst_bytes, and same_srv_rate as the dominant predictive features (Fig. 5), yielding three actionable detection heuristics for security operations practitioners. The full pipeline—including trained model artefacts, SMOTE preprocessing, Flask dashboard, and Docker configuration—is            publicly  available at github.com/SANC18/ml-intrusion-detection.

References

[1]      R. Patil and V. Varadarajan, "Explainable artificial intelligence for intrusion detection in IoT networks," Expert Syst. Appl., vol. 216, p. 119483, 2023. [2]      T. Guidotti et al., "A survey of methods for explaining black box models," ACM Comput. Surv., vol. 51, no. 5, pp. 1–42, 2022. [3]      P. A. R. Devan and N. Khare, "An efficient XGBoostDNN-based classification model for network intrusion detection system," Neural Comput. Appl., vol. 33, pp. 12499–12514, 2021. [4]      W. Wang et al., "Malware traffic classification using convolutional neural network for representation learning," in Proc. IEEE ICOIN, 2021, pp. 712–717. [5]      Y. Liu et al., "Intrusion detection systems in the era of cloud computing: A survey," J. Inf. Secur. Appl., vol. 61, p. 102897, 2021. [6]      S. Morgan, "Cybercrime to cost the world $10.5 trillion annually by 2025," Cybercrime Magazine, 2021. [7]      B. Mahbooba et al., "Explainable artificial intelligence (XAI) to enhance trust management in intrusion detection systems," Complexity, vol. 2021, 2021. [8]      M. A. Ferrag et al., "Deep learning for cyber security intrusion detection," J. Inf. Secur. Appl., vol. 50, p. 102419, 2020. [9]      P. Vuttipittayamongkol and E. Elyan, "Neighbourhood-based undersampling for handling imbalanced and overlapped data," Inf. Sci., vol. 509, pp. 47–68, 2020. [10] A. Khraisat et al., "Survey of intrusion detection systems: techniques, datasets and challenges," Cybersecurity, vol. 2, no. 1, p. 20, 2019.

Editorial & Review Transparency

Publication Date

5/3/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

2

Total views since publication

PDF Downloads

7

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

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.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...