Optimizing Machine Learning-based Intrusion Detection Systems: A Comparative Study on KDD99 and BKIDS2025 Datasets

The increasing sophistication and frequency of cyberattacks make Intrusion Detection Systems (IDSs) essential, yet many machine learning-based IDSs studies still rely on legacy benchmarks such as KDD99, raising concerns about real-world generalization. This study optimizes and comparatively evaluates supervised IDS models on KDD99 and BKIDS2025, a contemporary dataset collected from a production university network (1,463,847 labeled flows over 30 days) covering modern protocols and usage patterns, including TLS 1.3, DNS-over-HTTPS, and IoT traffic. Five supervised models — Logistic Regression (LR), Random Forest (RF), XGBoost (XGB), Voting, and Stacking — are assessed under a unified pipeline using precision, recall, F1-score, and false alarm rate. Ensemble methods consistently outperform individual classifiers across both datasets. The Stacking Classifier (SC) achieves the best results, reaching 99.8% recall on KDD99 and 96.0% recall with a 97.2% F1-score on BKIDS2025. A Wilcoxon signed-rank test supports the statistical significance of the ensemble advantage, and runtime profiling indicates sub-millisecond inference latency, enabling real-time deployment. The performance drop on BKIDS2025 highlights the limitations of benchmark-only evaluation and motivates routine validation on up-to-date, real-world datasets for robust IDS design.

Authors

Institutions

Publication Details

Journal
Vietnam Journal of Computer Science
Published
2026-04-16
DOI
https://doi.org/10.1142/s2196888826400014
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
article

Optimizing Machine Learning-based Intrusion Detection Systems: A Comparative Study on KDD99 and BKIDS2025 Datasets

Nguyen Kim Quoc, Kien Cao-Van, Thuan An Vu
Vietnam Journal of Computer Science
Network Security and Intrusion Detection
article

Optimizing Machine Learning-based Intrusion Detection Systems: A Comparative Study on KDD99 and BKIDS2025 Datasets

Nguyen Kim Quoc, Kien Cao-Van, Thuan An Vu
article en

Abstract

The increasing sophistication and frequency of cyberattacks make Intrusion Detection Systems (IDSs) essential, yet many machine learning-based IDSs studies still rely on legacy benchmarks such as KDD99, raising concerns about real-world generalization. This study optimizes and comparatively evaluates supervised IDS models on KDD99 and BKIDS2025, a contemporary dataset collected from a production university network (1,463,847 labeled flows over 30 days) covering modern protocols and usage patterns, including TLS 1.3, DNS-over-HTTPS, and IoT traffic. Five supervised models — Logistic Regression (LR), Random Forest (RF), XGBoost (XGB), Voting, and Stacking — are assessed under a unified pipeline using precision, recall, F1-score, and false alarm rate. Ensemble methods consistently outperform individual classifiers across both datasets. The Stacking Classifier (SC) achieves the best results, reaching 99.8% recall on KDD99 and 96.0% recall with a 97.2% F1-score on BKIDS2025. A Wilcoxon signed-rank test supports the statistical significance of the ensemble advantage, and runtime profiling indicates sub-millisecond inference latency, enabling real-time deployment. The performance drop on BKIDS2025 highlights the limitations of benchmark-only evaluation and motivates routine validation on up-to-date, real-world datasets for robust IDS design.

Vietnam Journal of Computer Science
Trường ĐH Nguyễn Tất Thành (VN)
Openalex Percentile: Top 24%
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.