Back to search

Universidade de Coimbro

Evaluating the Performance and Generalization of Machine Learning Network Intrusion Detection Systems

Abstract

dc:description.abstract

With the increase in occurrences and costs of intrusions into information systems, Intrusion Detection Systems (IDSs) have become popular as a tool for detecting attacks in real time. Moreover, advanced solutions, sometimes referred to as Intrusion Detection and Prevention Systems (IDPSs), can also take autonomous action to mitigate or stop these attacks, giving security teams more time to respond manually. Machine Learning (ML) has proven to deliver solid performance on a diverse set of problems, among them intrusion detection. However, solving any problem using ML is not trivial, becoming a multidisciplinary issue, where knowledge of both the intrinsics of the problem and ML is required to create representative solutions.Recent academic literature has presented models with excellent detection performance, using public intrusion datasets, and varied ML algorithms.However, many intrusions stay undetected for long periods of time, which raises suspicions regarding the efficacy of these systems. ML models can underperform in many ways, such as overfitting, for reasons such as training data splits that can leak information. To create a model which is effective in a production scenario, a solid methodology for its development is required.To better understand the current state of this topic, we conducted an evaluation of ML models on the most popular and current datasets in use. Furthermore, to test the generalization of these models, we performed cross-validation between datasets. Our results contradict the near-perfect performance obtained in previous works, and lead to the identification of multiple issues both in the datasets and ML processes used. Some of these issues have also been identified by other more recent works. Currently available datasets often fall short due to outdated attackmethods, misconfigured attacks, and mislabeled samples, which can skew the results obtained in previous works. Furthermore, we believe that the development process of some works on ML models using these datasets is flawed, particularly in their data partitioning methods, in part due to the use of these datasets withouta critical analysis of the data and its format. The highly optimistic results obtained by the authors raise the suspicion that there may have been an information leak during the training of these models. While ML has great potential, small mistakes in the development process can compromise results and cause solutions to loseusefulness in a production environment.This work aims to identify the current state of research on ML-based intrusion detection, argue the issue with common data partitioning methods for this specific problem, and propose an alternative to correct this issue. The text begins by exploring the available datasets for and research works on ML-based intrusiondetection. Next, we detail an attempt to repeat a previous work, and what issues and questions arose from these experiments. Having identified a potential issue in data partitioning for flow datasets, we propose Experiment-wise Leave-One-Out Cross-Validation (ELOOCV) as a suitable data partitioning which respects the data’s properties, as well as a methodology for applying it to flow-based intrusion detection datasets. Using some select datasets, and a few varied scenarios, we test the performance of some ML algorithms using ELOOCV, to compare withprevious works, and conclude that our more conservatively trained ML-based network intrusion detection models have limited generalization abilities and might not meet the needs of real-life traffic scenarios.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Machado, Rodrigo Alexandre da Mota
Advisor dc:contributor.advisor
  • Campos, João Rodrigues de

Subjects

dc:subject × 10

Rights

dc:rights
Statement dc:rights
  • openAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
204038049

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Machado, Rodrigo Alexandre da Mota. Evaluating the Performance and Generalization of Machine Learning Network Intrusion Detection Systems. 2025. https://hdl.handle.net/10316/120963