Skip to main content
QUICK REVIEW

[Paper Review] A Robust Comparison of the KDDCup99 and NSL-KDD IoT Network Intrusion Detection Datasets Through Various Machine Learning Algorithms

Suchet Sapre, Pouyan Ahmadi|arXiv (Cornell University)|Dec 31, 2019
Network Security and Intrusion DetectionComputer Science4 references49 citations
TL;DR

The paper compares KDDCup99 and NSL-KDD IoT intrusion datasets across multiple ML classifiers, finding NSL-KDD is higher quality but yields lower accuracy due to its rigor and reduced redundancy.

ABSTRACT

In recent years, as intrusion attacks on IoT networks have grown exponentially, there is an immediate need for sophisticated intrusion detection systems (IDSs). A vast majority of current IDSs are data-driven, which means that one of the most important aspects of this area of research is the quality of the data acquired from IoT network traffic. Two of the most cited intrusion detection datasets are the KDDCup99 and the NSL-KDD. The main goal of our project was to conduct a robust comparison of both datasets by evaluating the performance of various Machine Learning (ML) classifiers trained on them with a larger set of classification metrics than previous researchers. From our research, we were able to conclude that the NSL-KDD dataset is of a higher quality than the KDDCup99 dataset as the classifiers trained on it were on average 20.18% less accurate. This is because the classifiers trained on the KDDCup99 dataset exhibited a bias towards the redundancies within it, allowing them to achieve higher accuracies.

Motivation & Objective

  • Assess the comparative data quality of KDDCup99 and NSL-KDD for IoT intrusion detection.
  • Evaluate multiple ML classifiers on both datasets using a broader set of metrics.
  • Understand how dataset characteristics (redundancy, balance) affect classifier performance.
  • Provide guidance on dataset choice for IDS research based on empirical results.

Proposed method

  • One-hot encode categorical features in both datasets and apply L2 normalization to train/test splits.
  • Train and evaluate Naïve Bayes, Support Vector Machines, Random Forest, and Artificial Neural Networks on both datasets.
  • Use binary and type classification tasks, with ANN architectures of two hidden layers (100 nodes each).
  • For SVM, use a linear kernel and a 0.05% random sample of training data for binary classification.
  • For Random Forest, use 5 estimators and a 0.1% random sample for both binary and type classification.
  • Assess performance with accuracy (type classification) and precision/recall/F1 (binary classification).
  • Optimize ANN with Adam, patience of 20 epochs, and model checkpoints; use cross-entropy loss and softmax/sigmoid outputs.

Experimental results

Research questions

  • RQ1How do KDDCup99 and NSL-KDD compare in terms of dataset quality for IoT intrusion detection across different ML classifiers?
  • RQ2Do classifiers trained on KDDCup99 achieve higher accuracy due to redundancy, and does NSL-KDD’s higher quality reduce this bias?
  • RQ3How do type-classification and binary-classification tasks differ in classifier performance across datasets?
  • RQ4What are the impacts of dataset-specific characteristics (class imbalance, redundancy) on precision, recall, and F1 scores?
  • RQ5Can ensemble or stacked methods improve NSL-KDD performance given its rigor?

Key findings

  • NSL-KDD is of higher quality than KDDCup99, with classifiers on NSL-KDD averaging 20.18% lower accuracy due to removal of easy-to-classify records.
  • ANNs consistently yield the highest type-classification accuracy on both datasets, but NSL-KDD-trained classifiers show markedly lower recall (e.g., NSL-KDD recall averages around 0.556 vs. 0.902 for KDDCup99).
  • Binary classification results favor SVMs for F1-score on both datasets, while Random Forests provide the best precision; NSL-KDD exhibits notably lower average F1 (0.6630) than KDDCup99 (0.9452).
  • KDDCup99 PCA plots show greater separation between intrusion types, while NSL-KDD shows more overlap, aligning with easier classification on KDDCup99 but indicating redundancy in KDDCup99.
  • R2L and U2R intrusion types are poorly detected on NSL-KDD by the ANN, with very low true positive rates, suggesting remaining data quality issues for these classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.