Skip to content

Comparison of Network Attack Detection Algorithms Based on NSL-KDD Dataset

Aug 2026 · Applied and Computational Engineering · 0 citations

TL;DR

The paper put three classical machine learning methods—Decision Tree, Random Forest, and K-Nearest Neighbors—through the same set of binary and five-class detection tests, arguing for treating rare-class detection as the main priority in future work.

Abstract

Intrusion detection systems built on hand-written rules are losing ground as attackers find new ways to bypass fixed signatures. Working with the NSL-KDD benchmark, the paper put three classical machine learning methods—Decision Tree (DT), Random Forest (RF), and K-Nearest Neighbors (KNN)—through the same set of binary and five-class detection tests. Random forest handled the diverse five-class label set best, hitting 76.3% accuracy with an F1 of 0.720. In the simpler binary task, however, the decision tree pulled ahead (81.2%, F1 0.813). The reason was straightforward: the ensemble model grew too cautious when samples were scarce, suppressing false alarms at the cost of missing real attacks. DoS floods were caught almost without fail (F1 0.884). R2L and U2R, on the other hand, evaded detection almost entirely—their training presence was vanishingly small, at 0.83% and 0.04% of the training pool. Feature importance scores from the random forest pointed overwhelmingly to traffic volume and rate-based statistics as the strongest signals, while class skew stood out as the single largest obstacle. Rather than chasing marginal accuracy gains, the results argue for treating rare-class detection as the main priority in future work.

View source

Similar papers

Open access Aug 2026

AI Transparency in Network Intrusion Detection

Machine-learning intrusion detectors often report near-perfect performance on familiar benchmarks, yet their generalization and decision transparency remain uncertain. This study evaluates a reproducible and explainable binary network-intrusion-detection workflow using the NSL-KDD KDDTrain+_20Percent file (25,192 recor...

Dawlat Mustafa Sulaiman · 0 citations
Open access Aug 2026

Random Forest-Based Network Intrusion Detection with Feature Selection and Class Balancing on UNSW-NB15 Traffic

Machine-learning intrusion detection is challenged by attacks resembling legitimate traffic and by class imbalance. This study evaluates Random Forest detection on the UNSW-NB15 dataset for five binary attack-versus-normal tasks: DoS, Exploit, Backdoor, Analysis, and Reconnaissance. Categorical attributes were label-en...

J. Pospíchal, A. Augustín, L. Huraj et al. · 0 citations
Open access Oct 2026

Automated Intrusion Detection and Prevention System using Machine Learning

Cyberspace is becoming a growing arena of threats and intrusion detection systems have become an important challenge in the network. Conventional signature-based solutions are no longer sufficient to cope with this increasing complexity. This paper introduces an Automated Intrusion Detection and Prevention System (AIDP...

Pratham Akangire, U. Pujeri · 0 citations
Conference Aug 2026

From KNN to Ensemble Learning: Advancing Real-Time Network Intrusion Detection with Asymmetric SMOTE-ENN Balancing on the CSE-CIC-IDS2018 Benchmark

The increasing occurrence and sophistication of attacks on current enterprise-grade computer networks require the development of IDSs with real-time, per-flow traffic categorization capability while ensuring a low rate of false positives. Most traditional architectures based on machine learning models are typically pla...

Piyush Parate, Vashisht Urgonda, Chintan Parmar et al. · 0 citations
Open access 2026

When Calibrated Detectors Meet New Attacks: Per-Category Reliability of Machine-Learning Intrusion Detection Under Distribution Shift

A decision-curve analysis and expected-cost comparison show that an uncalibrated score used at its nominal cost threshold is very costly, and that both recalibration and a target-tuned threshold reduce operating cost, with recalibration additionally improving the multiclass probabilities.

Khalid Alalawi · 0 citations
Open access Aug 2026

Network Attack Detection Using Machine Learning, Deep Learning, and Autonomous Defense Agents

This paper presents a data-driven analysis of network attack detection and reduction using machine learning, deep learning, and an Autonomous Defense Agent (ADA) for real-time threat detection and response, and provides an ADA design to validate real benchmark datasets.

Marwah Yaseen · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.