← Back to VOLUME 15, ISSUE 11, NOVEMBER 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
A Comparative Study of Machine Learning Algorithms for Network Intrusion Detection
Akash jain, Dr. Pradeep Yadav
đ 4 viewsđĨ 3 downloads
Abstract: The increasing sophistication of cyberattacks poses critical challenges to modern network infrastructure security. Traditional signature-based intrusion detection systems (IDS) are becoming obsolete against zero-day exploits, polymorphic malware, and advanced persistent threats (APTs). This paper presents a comparative study of machine learning (ML) algorithms for network intrusion detection, evaluating Random Forest (RF), Gradient Boosting (GB), and Logistic Regression (LR) on both binary (normal vs. attack) and multiclass classification of nine traffic categories: Normal, Denial-of-Service (DoS), Probe, Remote-to-Local (R2L), User-to-Root (U2R), Botnet, Brute Force, SQL Injection, and Cross-Site Scripting (XSS). Experiments use a synthetic, NSL-KDD-inspired dataset of 4,506 labeled network traffic samples with 35 engineered features, evaluated with a stratified 80/20 hold-out split and five-fold stratified cross-validation. All three algorithms achieve 100% accuracy in binary classification, while Random Forest achieves 90.91% accuracy and a weighted F1-score of 0.9114 in multiclass classification. Per-class analysis shows that the web-application attacks (Brute Force, XSS, and SQL Injection) are the hardest to separate at the network-flow level. Feature importance analysis shows that behavioral indicators such as num_compromised, src_bytes, num_file_creations, and num_failed_logins are the strongest predictors of malicious activity. The results are compared with figures reported in the literature, and the study discusses the practical trade-offs among accuracy, interpretability, and computational cost when selecting an algorithm for deployment.
Keywords: Network Intrusion Detection, Machine Learning, Comparative Study, Random Forest, Gradient Boosting, Logistic Regression, Network Traffic Classification, Anomaly Detection, Feature Engineering, Cybersecurity
Keywords: Network Intrusion Detection, Machine Learning, Comparative Study, Random Forest, Gradient Boosting, Logistic Regression, Network Traffic Classification, Anomaly Detection, Feature Engineering, Cybersecurity
How to Cite:
[1] Akash jain, Dr. Pradeep Yadav, âA Comparative Study of Machine Learning Algorithms for Network Intrusion Detection,â International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2026.151122
