On Generalisability of Machine Learning-based Network Intrusion Detection Systems
Not on the map. Why?
Abstract (arXiv)
Many of the proposed machine learning (ML) based network intrusion detection systems (NIDSs) achieve near perfect detection performance when evaluated on synthetic benchmark datasets. Though, there is no record of if and how these results generalise to other network scenarios, in particular to real-world networks. In this paper, we investigate the generalisability property of ML-based NIDSs by extensively evaluating seven supervised and unsupervised learning models on four recently published benchmark NIDS datasets. Our investigation indicates that none of the considered models is able to generalise over all studied datasets. Interestingly, our results also indicate that the generalisability has a high degree of asymmetry, i.e., swapping the source and target domains can significantly change the classification performance. Our investigation also indicates that overall, unsupervised learning methods generalise better than supervised learning models in our considered scenarios. Using SHAP values to explain these results indicates that the lack of generalisability is mainly due to the presence of strong correspondence between the values of one or more features and Attack/Benign classes in one dataset-model combination and its absence in other datasets that have different feature distributions.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 11 of its 31 references that are in the map. First posted on arXiv 9 May 2022.
Builds on
11 of 31 references.
References · 11
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2018Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics: Bot-IoT Datasetcited by 98
- 2021E-GraphSAGE: A Graph Neural Network based Intrusion Detection System for IoTcited by 55
- 2020NetFlow Datasets for Machine Learning-based Network Intrusion Detection Systemscited by 45
- 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
- 2021From Zero-Shot Machine Learning to Zero-Day Attack Detectioncited by 10
- 2022The Cross-evaluation of Machine Learning-based Network Intrusion Detection Systemscited by 8
- 2019A Transfer Learning Approach for Network Intrusion Detectioncited by 6
- 2017A Grassmannian Approach to Zero-Shot Learning for Network Intrusion Detectioncited by 5
- 2021Exploring Edge TPU for Network Intrusion Detection in IoTcited by 5
- 2021Benchmarking the Benchmark -- Analysis of Synthetic NIDS Datasetscited by 5
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 3; 2025: 2.
8 papers.
- 2022Anomal-E: A Self-Supervised Network Intrusion Detection System based on Graph Neural Networkscited by 25
- 2023FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systemscited by 24
- 2024Transformers and Large Language Models for Efficient Intrusion Detection Systems: A Comprehensive Surveycited by 21
- 2024Towards Explainable Network Intrusion Detection using Large Language Modelscited by 12
- 2022DI-NIDS: Domain Invariant Network Intrusion Detection Systemcited by 7
- 2025Generative Active Adaptation for Drifting and Imbalanced Network Intrusion Detectioncited by 4
- 2024Integrating Graph Neural Networks with Scattering Transform for Anomaly Detectioncited by 1
- 2025Contrastive Self-Supervised Network Intrusion Detection using Augmented Negative Pairscited by 0
- 2025Contrastive Self-Supervised Network Intrusion Detection using Augmented Negative Pairs8 Sep 2025
- 2025Generative Active Adaptation for Drifting and Imbalanced Network Intrusion Detection4 Mar 2025
- 2024Transformers and Large Language Models for Efficient Intrusion Detection Systems: A Comprehensive Survey14 Aug 2024
- 2024Towards Explainable Network Intrusion Detection using Large Language Models8 Aug 2024
- 2024Integrating Graph Neural Networks with Scattering Transform for Anomaly Detection16 Apr 2024
- 2023FlowTransformer: A Transformer Framework for Flow-based Network Intrusion Detection Systems28 Apr 2023
- 2022DI-NIDS: Domain Invariant Network Intrusion Detection System15 Oct 2022
- 2022Anomal-E: A Self-Supervised Network Intrusion Detection System based on Graph Neural Networks14 Jul 2022