Network intrusion detection: A comparative study of four classifiers using the NSL-KDD and KDD'99 datasets

Ananya Devarakonda, Nilesh Sharma, Prita Saha, S. Ramya

Research output: Contribution to journalConference articlepeer-review

12 Citations (Scopus)


As most of the population acquires access to the internet, protecting online identity from threats of confidentiality, integrity, and accessibility becomes an increasingly important problem to tackle. By definition, a network intrusion detection system (IDS) helps pinpoint and identify anomalous network traffic to bring forward and classify suspicious activity. It is a fundamental part of network security and provides the first line of defense against a potential attack by alerting an administrator or appropriate personnel of possible malicious network activity. Several academic publications propose various artificial intelligence (AI) methods for an accurate network intrusion detection system (IDS). This paper outlines and compares four AI methods to train two benchmark datasets- the KDD'99 and the NSL-KDD. Apart from model selection, data preprocessing plays a vital role in contributing to accurate solutions, and thus, we propose a simple yet effective data preprocessing method. We also evaluate and compare the accuracy and performance of four popular models- decision tree (DT), multi-layer perceptron (MLP), random forest (RF), and a stacked autoencoder (SAE) model. Of the four methods, the random forest classifier showed the most consistent and accurate results.

Original languageEnglish
Article number012043
JournalJournal of Physics: Conference Series
Issue number1
Publication statusPublished - 11-01-2022
Event1st International Conference on Artificial Intelligence, Computational Electronics and Communication System, AICECS 2021 - Manipal, Virtual, India
Duration: 28-10-202130-10-2021

All Science Journal Classification (ASJC) codes

  • Physics and Astronomy(all)


Dive into the research topics of 'Network intrusion detection: A comparative study of four classifiers using the NSL-KDD and KDD'99 datasets'. Together they form a unique fingerprint.

Cite this