A Comparative Evaluation of Class-imbalance Handling Strategies for Machine Learning-based Intrusion Detection
Year: 2026
Type: article
Abstract: In machine learning-based network intrusion detection systems, class imbalance can negatively affect the effectiveness of detecting rare attack types. This article presents a comparative analysis grounded in existing literature of balancing strategies aimed at addressing this issue. Specifically, it examines the advantages and limitations of three approaches: the initial imbalanced state (baseline), the generation of synthetic samples for minority classes (SMOTE), and the reduction of samples from majority classes (Random Undersampling – RUS). The analysis utilizes the CIC-IDS2017 and UNSW-NB15 datasets, alongside classifiers such as Decision Tree (DT), Random Forest (RF), K-Nearest Neighbors (KNN), and Multilayer Perceptron (MLP). Findings from existing research indicate that the effectiveness of class balancing depends on the specific dataset, the classifier employed, and the evaluation conditions. Consequently, the study argues that system performance should not be assessed solely through overall accuracy; rather, it necessitates the use of metrics such as Macro-F1, Macro-Precision, class-specific Recall, and the false positive rate. The study establishes a methodological framework for comparing balancing strategies under identical experimental conditions, along with key criteria for future experimental research.
Source: HSR (London)
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
SDG: Reduced inequalities
Open Access status: diamond
OpenAlex ID: W7238687916
