Fine Decision Tree Outperforms in Early Intrusion Detection: A Supervised Learning Comparison on NSL-KDD and NID

Authors

  • Muhammad Zubair Khan Department of Computer Science, Green International University, Lahore, Pakistan.
  • Naveed Mukhtar Faculty of Computer Science & Information Technology, Superior University, Lahore, Pakistan.
  • Aaliya Ali Department of Computer Science, Pakistan Navy Engineering College, NUST, Pakistan.
  • Tahira Ali Computer Science and Information Technology Department, NED University of Engineering and Technology, Pakistan.
  • Waqar Hussain Department of Artificial Intelligence, University of Kotli Azad Kashmir, Pakistan.
  • Muhammad Farrukh Khan Department Artificial intelligence, NASTP institute of Information Technology, Lahore, Pakistan.
  • Zahid Iqbal School of Computer Science, Minhaj University Lahore, Pakistan.
  • Gullelala Jadoon Department of Information Technology, University of Haripur, Pakistan.
  • Shahan Yamin Siddiqui Department Computer Science, NASTP institute of Information Technology, Lahore, Pakistan.

Keywords:

Intrusion Detection System (IDS), Machine Learning (ML), Support Vector Machine (SVM), Naive Bayes (NB), Logistics Regression (LR), Decision Tree (DT), Neural Networks (NN)

Abstract

The intrusion detection system plays a major role towards network security, to prevent network threats. An intrusion detection system is used to keep track of network or systems activity in a bid to detect any mischievous activity. The dataset containing intrusion attacks is used to detect abnormalities in the network with the help of the machine learning algorithm. Machine learning has three major subcategories, which include supervised, unsupervised, as well as reinforcement learning. The most common and the most important supervised learning classifiers are used in machine learning. The most scholar has been looking on the intrusion detection through various machine-learning methods. Nevertheless, it still brings out some weaknesses. In order to identify the most successful supervised machine learning algorithm that could be used in detecting intrusions. This paper used the two feature-based datasets, namely NSL_KDD and NID and the five supervised machine learning algorithms, such as Support Vector Machine, Naive Bayes, Logistics Regression, Decision Tree and Neural Networks. Those algorithms can be used in an intrusion detection system, however, the comparison of the results demonstrates their efficiency. It also recommends the best approach which should be adopted so as to prevent attacks at an early stage in this field. The fine Decision Tree algorithm had an accuracy of 99.4%, which is better in identifying intrusions at the beginning. Their performance is far much better when compared to other algorithms.

Downloads

Published

2025-06-01

How to Cite

Muhammad Zubair Khan, Naveed Mukhtar, Aaliya Ali, Tahira Ali, Waqar Hussain, Muhammad Farrukh Khan, Zahid Iqbal, Gullelala Jadoon, & Shahan Yamin Siddiqui. (2025). Fine Decision Tree Outperforms in Early Intrusion Detection: A Supervised Learning Comparison on NSL-KDD and NID. Journal of Computing & Biomedical Informatics, 9(01). Retrieved from https://jcbi.org/index.php/Main/article/view/1010