Assessing the Effectiveness of Machine-Learning Approaches for Detecting Network Attacks: An Empirical Evaluation on NSL-KDD
DOI:
https://doi.org/10.32628/CSEIT2511644Keywords:
Intrusion Detection Systems, Network Security, Machine Learning, NSL-KDD Dataset, Network Attack DetectionAbstract
Intrusion detection in computer networks is critical for safeguarding sensitive data and maintaining system integrity. This research evaluates the performance of multiple machine-learning models, including Support Vector Machine (SVM), Naive Bayes (NB), Random Forest (RF), Multilayer Perceptron (MLP), and XGBoost, for detecting network intrusions using the NSL-KDD dataset. The dataset, comprising 148,517 network traffic instances with 41 features, represents a diverse range of attack types, including DoS, Probe, U2R, and R2L. Preprocessing steps such as normalization, encoding, and feature selection ensure model-ready inputs. Experimental results demonstrate that ensemble and deep-learning-based models outperform traditional classifiers, with XGBoost achieving the highest accuracy, precision, recall, and F1-score. The findings highlight the effectiveness of modern machine-learning approaches in capturing complex attack patterns and improving intrusion-detection performance.
Downloads
References
Guido, R.; Ferrisi, S.; Lofaro, D.; Conforti, D. An Overview on the Advancements of Support Vector Machine Models in Healthcare Applications: A Review. Information 2024, 15, 235. DOI: https://doi.org/10.3390/info15040235
Peretz, O., Koren, M., &Koren, O. (2024). Naive Bayes classifier – An ensemble procedure for recall and precision enrichment. Engineering Applications of Artificial Intelligence, 136, 108972. DOI: https://doi.org/10.1016/j.engappai.2024.108972
Pereira, J. B., Gomes, Y. S., de Oliveira, J. M. L., & de Alencar, D. B. (2025). Analysis of Naive Bayes and Random Forest Classification Models. IOSR Journal of Business and Management, 27(5), 22-29.
Zhao, Q., Wang, F., Wang, W. et al. Research on intrusion detection model based on improved MLP algorithm. Sci Rep 15, 5159 (2025). DOI: https://doi.org/10.1038/s41598-025-89798-0
Rabbi, F. (2025). A comparative analysis of machine learning techniques for intrusion detection using NSL-KDD dataset. Applied Soft Computing. Advance online publication.
M. S. Hossain et al., "Performance Evaluation of Intrusion Detection System Using Machine Learning and Deep Learning Algorithms," 2023 4th International Conference on Big Data Analytics and Practices (IBDAP), Bangkok, Thailand, 2023, pp. 1-6. DOI: https://doi.org/10.1109/IBDAP58581.2023.10271964
N. D. Patel, B. M. Mehtre and R. Wankar, "Detection of Intrusions using Support Vector Machines and Deep Neural Networks," 2022 10th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), Noida, India, 2022, pp. 1-5. DOI: https://doi.org/10.1109/ICRITO56286.2022.9964756
L. Zou, X. Luo, Y. Zhang, X. Yang and X. Wang, "HC-DTTSVM: A Network Intrusion Detection Method Based on Decision Tree Twin Support Vector Machine and Hierarchical Clustering," in IEEE Access, vol. 11, pp. 21404-21416, 2023. DOI: https://doi.org/10.1109/ACCESS.2023.3251354
B. S. Babu, G. A. Reddy, D. K. Goud, K. Naveen and K. S. T. Reddy, "Network Intrusion Detection using Machine Learning Algorithms," 2023 3rd International Conference on Smart Data Intelligence (ICSMDI), Trichy, India, 2023, pp. 367-371. DOI: https://doi.org/10.1109/ICSMDI57622.2023.00071
Dr. S. Ashok Kumar and R. Latha, “Multi-Factor Authentication Model with Light Weight Encryption for Cloud IoT Systems”, Int. J. Sci. Res. Comput. Sci. Eng. Inf. Technol, vol. 11, no. 6, pp. 178–184, Nov. 2025, doi: 10.32628/CSEIT2511634. DOI: https://doi.org/10.32628/CSEIT2511634
Downloads
Published
Issue
Section
License
Copyright (c) 2025 International Journal of Scientific Research in Computer Science, Engineering and Information Technology

This work is licensed under a Creative Commons Attribution 4.0 International License.