Abstract
Network intrusion detection is one of the most important issues in the field of cyber security, and various machine learning techniques have been applied to build intrusion detection systems. However, since the number of features to describe the network connections is often large, where some features are redundant or noisy, feature selection is necessary in such scenarios, which can both improve the efficiency and accuracy. Recently, some researchers focus on using multi-objective evolutionary algorithms (MOEAs) to select features. But usually, they only consider the number of features and classification accuracy as the objectives, resulting in unsatisfactory performance on a critical metric, detection rate. This will lead to the missing of many real attacks and bring huge losses to the network system. In this paper, we propose DR-MOFS to model the feature selection problem in network intrusion detection as a three-objective optimization problem, where the number of features, accuracy and detection rate are optimized simultaneously, and use MOEAs to solve it. Experiments on two popular network intrusion detection datasets NSL-KDD and UNSW-NB15 show that in most cases the proposed method can outperform previous methods, i.e., lead to fewer features, higher accuracy and detection rate.
Introduction
Network Intrusion Detection Systems (IDS) serve as critical digital sentries, analyzing traffic to identify malicious activity. Modern network data, however, is high-dimensional and contains many redundant or noisy features that can degrade detection performance and increase computational costs. While feature selection is a standard remedy, traditional methods often fall into the "Accuracy Trap."
In cybersecurity, network traffic is heavily imbalanced, with normal traffic vastly outnumbering attacks. A model can achieve high overall accuracy by simply classifying most traffic as normal, while failing to detect actual intrusions. This failure is reflected in a low detection rate (or recall for the attack class). As shown in the comparison of related works, most existing research focuses on a two-way trade-off between minimizing feature count and maximizing accuracy, often neglecting the detection rate as an independent objective.
Methods
To address these limitations, we propose DR-MOFS (Detection-Rate-Emphasized Multi-objective Evolutionary Feature Selection). The framework models feature selection as a three-objective optimization problem:
- Minimize Feature Subset Size: To ensure model efficiency and speed.
- Maximize Classification Accuracy: To maintain overall correctness.
- Maximize Detection Rate (DR): To specifically prioritize the identification of attack samples.
The DR-MOFS framework follows a wrapper-based approach, as illustrated in Figure 1. It utilizes Multi-objective Evolutionary Algorithms (MOEAs) such as NSGA-II, NSGA-III, and MOEA/D to evolve a population of feature subsets. Each subset is evaluated by training a classifier (e.g., Decision Tree, Logistic Regression, or Random Forest) on training data and measuring its performance on validation data across the three objectives.
By treating the detection rate as a standalone objective, the evolutionary process is forced to retain feature combinations that are effective at spotting attacks, even if they do not significantly improve overall accuracy. This approach generates a "Pareto optimal set," allowing security administrators to choose solutions based on their specific requirements for model size versus detection sensitivity.
Experimental Evaluation
The proposed method was evaluated on two benchmark datasets: NSL-KDD (41 features) and UNSW-NB15 (42 features). These datasets represent a wide range of attack types, including DoS, Probe, and more modern contemporary patterns.
Key results include:
- Superior Detection Performance: On NSL-KDD using Decision Trees, DR-MOFS achieved a detection rate of 82.71% with only 5 features. In contrast, standard bi-objective methods (Size + Accuracy) reached only 76.09% while requiring more features.
- Model Compactness: The method successfully identified subsets with as few as 2 or 3 features that maintained higher performance metrics than models using the full set of 40+ features.
- Robustness: Performance gains were consistent across various classifiers (CART, LR, RF), indicating that the selected feature subsets are inherently high-quality and not overfitted to a specific algorithm.
Conclusion
DR-MOFS demonstrates that explicitly optimizing for detection rate alongside accuracy and model size leads to more effective intrusion detection. While the wrapper approach introduces computational overhead due to repeated classifier training, the resulting models are leaner and significantly better at catching real-world attacks. Future work will focus on scaling this approach to larger datasets and exploring many-objective formulations to further enhance IDS robustness in evolving threat landscapes.
Summary updated