Skip to main content
QUICK REVIEW

[Paper Review] Improving the Reliability of Network Intrusion Detection Systems through Dataset Integration

Roberto Magán‐Carrión, Daniel Urda|arXiv (Cornell University)|Dec 2, 2021
Network Security and Intrusion DetectionComputer Science46 references17 citations
TL;DR

This paper proposes R-NIDS, a novel methodology that integrates heterogeneous network intrusion detection datasets (UGR'16, UNSW-NB15, NSL-KDD) using Feature as a Counter (FaaC) for unified feature engineering, enabling robust machine learning models to generalize across diverse network environments. The key contribution is UNK21, a new integrated dataset that improves model generalization, reducing overfitting and boosting AUC performance—especially for Port Scanning and DoS attacks—compared to single-dataset training.

ABSTRACT

This work presents Reliable-NIDS (R-NIDS), a novel methodology for Machine Learning (ML) based Network Intrusion Detection Systems (NIDSs) that allows ML models to work on integrated datasets, empowering the learning process with diverse information from different datasets. Therefore, R-NIDS targets the design of more robust models, that generalize better than traditional approaches. We also propose a new dataset, called UNK21. It is built from three of the most well-known network datasets (UGR'16, USNW-NB15 and NLS-KDD), each one gathered from its own network environment, with different features and classes, by using a data aggregation approach present in R-NIDS. Following R-NIDS, in this work we propose to build two well-known ML models (a linear and a non-linear one) based on the information of three of the most common datasets in the literature for NIDS evaluation, those integrated in UNK21. The results that the proposed methodology offers show how these two ML models trained as a NIDS solution could benefit from this approach, being able to generalize better when training on the newly proposed UNK21 dataset. Furthermore, these results are carefully analyzed with statistical tools that provide high confidence on our conclusions.

Motivation & Objective

  • Address the critical limitation in ML-based NIDS where models overfit to single datasets and fail to generalize across different network environments.
  • Overcome the challenge of integrating heterogeneous network datasets with differing features, labels, and data structures (e.g., timestamped vs. non-timestamped).
  • Develop a scalable and flexible methodology to normalize and unify diverse network datasets for training more reliable and robust ML models.
  • Demonstrate that training on a combined dataset (UNK21) leads to superior generalization performance compared to training on individual datasets.
  • Provide a new benchmark dataset (UNK21) that enables fairer and more realistic evaluation of future NIDS models across heterogeneous network scenarios.

Proposed method

  • Propose R-NIDS, a novel methodology for training ML-based NIDS using integrated datasets from multiple sources.
  • Apply the Feature as a Counter (FaaC) technique to transform raw network flow features into aggregated counters, enabling feature homogenization across datasets.
  • Use FaaC to process both timestamped (e.g., UGR'16) and non-timestamped datasets (e.g., NSL-KDD, UNSW-NB15), making cross-dataset integration feasible.
  • Construct UNK21 by merging samples from UGR'16, UNSW-NB15, and NSL-KDD using FaaC-derived features, ensuring consistent feature space across all samples.
  • Train and evaluate two standard ML models—logistic regression (linear) and random forest (non-linear)—on the integrated UNK21 dataset.
  • Apply statistical validation (e.g., AUC, p-values) to compare model performance across individual datasets and the integrated UNK21 dataset, ensuring confidence in generalization claims.

Experimental results

Research questions

  • RQ1Can integrating multiple heterogeneous network intrusion detection datasets improve the generalization capability of ML-based NIDS models?
  • RQ2To what extent does training on a unified dataset (UNK21) reduce overfitting compared to training on individual datasets?
  • RQ3How does the FaaC-based feature engineering method enable the integration of datasets with different features, labels, and temporal structures?
  • RQ4What is the impact of dataset integration on model performance across unseen network environments (i.e., generalization to UGR'16, UNSW-NB15, and NSL-KDD individually)?
  • RQ5Does the proposed methodology lead to more reliable and production-ready NIDS models compared to classical single-dataset training?

Key findings

  • Training a random forest model on the 20,000-observation version of UNK21 achieved an AUC of 0.983 on UGR'16, 0.892 on UNSW-NB15, and 0.676 on NSL-KDD—representing a significant improvement over the best single-dataset results of 0.508, 0.814, and 0.712, respectively.
  • For the Port Scanning class, the same RF model achieved an AUC of 0.991 on UGR'16, 0.780 on UNSW-NB15, and 0.607 on NSL-KDD when trained on UNK21, compared to 0.398, 0.562, and 0.562 on individual datasets—indicating a substantial generalization gain.
  • The performance degradation observed in DoS and Port Scanning on UNK21 (compared to individual datasets) is attributed to the influence of NSL-KDD, which contributes nearly half of the observations for these classes.
  • The R-NIDS framework successfully mitigates data shift issues by enabling consistent feature representation across datasets through FaaC, thus improving model robustness.
  • The study demonstrates that the performance loss when validating a model trained on one dataset and tested on another can be as high as 116.6%, highlighting the risk of overfitting in single-dataset training.
  • The proposed UNK21 dataset enables more reliable evaluation of NIDS models, as it combines diverse network traffic and attack profiles, leading to better generalization across heterogeneous environments.

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.