A Hybrid Feature Selection and Stacking Ensemble Framework for Intrusion Detection in the Internet of Vehicles Ecosystem
Abstract:
The Internet of Vehicles (IoV) ecosystem is a rapidly evolving paradigm that integrates intelligent vehicles, infrastructure, and cloud technologies to enable seamless communication and smart mobility. As the IoV ecosystem grows in scale and complexity, optimizing its performance, security, and adaptability becomes increasingly critical. This work presents an approach to optimize intrusion detection performance in the IoV ecosystem by exploring the impact of different feature selection techniques on the performance of tree-based machine learning algorithms. We evaluated the impact of seven feature selection methods across three categories —filter, wrapper, and embedded— on four tree-based machine learning algorithms (Decision Tree, Random Forest, Extra Trees, and Extreme Gradient Boosting) applied both individually and within a stacking ensemble using Logistic regression as a meta-model. A hybrid feature selection has been implemented with four models and the stacking approach. Different experiments conducted on the Canadian Institute for Cybersecurity Internet of Things Dataset 2023 (CICIoT2023) demonstrate the positive impact of using a hybrid feature selection method on model performance. The solution combining the hybrid FS with the stacking approach achieved a weighted accuracy of 85.50% and a weighted AUC of 0.9835, which outperforms the other models used individually with individual feature selection methods. The findings highlight the potential of machine learning, coupled with effective feature selection, to develop robust, secure, and efficient IoV systems, enabling potential real-time IoV applications.
1. Introduction
Due to technological progress, the number of connected vehicles worldwide is growing rapidly. There were more than 230 million connected vehicles worldwide in 2025. Projections exceed 400 million connected vehicles by 2025–2027. These vehicles use 4G/5G technologies for telecommunications, and more than 90% of new cars are expected to be connected by 2030. However, with this great boom in the connected vehicle industry, the Internet of Vehicles (IoV) has become a prime target for hackers. As a subset of the Internet of Things (IoT), the IoV is an open and integrated network system established through the interconnection of vehicles, wireless networks, and other units. According to the Upstream 2026 Global Automotive Cybersecurity Report, the automotive and smart mobility ecosystem experienced significant cybercrime in 2025, marked by a surge in incident volume and scale as well as billions of dollars in damages resulting from service disruptions, recovery expenses, and direct financial losses. Furthermore, more than 70% of these attacks were executed remotely [1].
IoV integrates advanced communication technologies, cloud computing, and vehicular networks to ease interaction between vehicles, infrastructure, and network services. This convergence facilitates real-time traffic management, collision avoidance, remote diagnostics, autonomous driving, and infotainment services. However, as vehicles become increasingly connected and autonomous, the potential attacks expand dramatically, introducing severe cybersecurity threats that can compromise safety, privacy, and system integrity.
IoV systems are vulnerable to a wide range of cyber-attacks, including Denial-of-Service (DoS), data injection, man-in-the-middle attacks, malware propagation, and spoofing. These threats can lead to catastrophic outcomes, such as traffic disruptions, hijacking of vehicle control systems, and leakage of sensitive data. Therefore, ensuring the security and reliability of IoV infrastructure is of primary importance. Traditional Intrusion Detection Systems (IDSs) based on signature- or rule-based detection mechanisms are often incapable of adapting to the dynamic nature and scale of IoV networks. IDSs play a crucial role in maintaining the reliability, safety, and operational continuity of IoV environments. Since IoV relies on continuous communication among vehicles, roadside infrastructure, and network services, cyber-attacks such as Denial-of-Service (DoS), Distributed Denial-of-Service (DDoS), Spoofing, and false-information dissemination can compromise the availability and integrity of exchanged information. Moreover, because vehicles increasingly rely on exchanged information for navigation, collision avoidance, and cooperative driving decisions, undetected malicious activities can directly threaten road safety. At the transportation-system level, successful attacks may disrupt traffic management, increase congestion, affect routing decisions, and degrade the continuity of intelligent transportation services. Such disruptions may delay or prevent the transmission of safety-critical messages, thereby reducing communication reliability.
Despite growing interest in machine learning (ML) based security frameworks in the scientific community, several challenges remain unaddressed, particularly in feature selection, classifier optimization, and model ensemble techniques. Cossa and Shukla [2] reviewed ML methods for malware detection in IoV and noted that detection accuracy is highly dependent on the quality of input features and the relevance of training datasets. Furthermore, the complexity of vehicular environments demands lightweight models capable of real-time inference without compromising accuracy. To address these challenges, this research proposes the evaluation of the impact of feature selection on the performance of ML models. These ML models are trained and tested on the Canadian Institute for Cybersecurity Internet of Things Dataset 2023 (CICIoT2023) [3], a large-scale and diverse benchmark that includes various types of IoT-based attacks and benign traffic scenarios.
In this paper, we evaluate multiple ML models (specifically tree-based classifiers) using advanced feature selection techniques. We have used the following feature selection techniques:
$\bullet$ Tree-based FS: a baseline model using the full feature set and traditional tree-based classifiers.
$\bullet$ Sequential Feature Selection (SFS): an iterative method that selects features based on predictive performance.
$\bullet$ Recursive Feature Elimination (RFE): a backward selection technique that removes the least relevant features.
$\bullet$ L1 Regularization-Based FS: also called Least Absolute Shrinkage and Selection Operator (LASSO), uses feature selection and regularization to enhance the prediction accuracy and interpretability of the models.
$\bullet$ Chi-square ($\chi^2$) Test: a statistical method that evaluates the relevance of features to the class label.
$\bullet$ ANOVA: an approach measuring linear dependency between each feature and the target variable.
$\bullet$ Mutual information: a measure of the similarity between two random variables.
$\bullet$ A hybrid feature selection approach based on the selection frequency threshold of the most relevant features from different previously listed feature selection methods.
To classify network behavior, we employ a suite of high-performing tree-based classifiers including Decision Tree (DT), Random Forest (RF), Extra Trees (ET), and Extreme Gradient Boosting (XGB). To enhance detection accuracy and model robustness, these classifiers are also combined to form a stacking meta-model, where predictions from base learners are aggregated by Logistic Regression to make optimal final predictions.
The main contributions of this paper are summarized as follows:
$\bullet$ A comprehensive evaluation of seven individual feature selection methods, namely Tree-based feature importance, SFS, RFE, L1 Regularization, $\chi^2$, ANOVA, and Mutual Information. These techniques are used to evaluate the performance of ML-based IDSs.
$\bullet$ Proposition of a hybrid feature selection approach that combines the most relevant features selected by the other feature selection methods. This approach has been tested with different ML models.
$\bullet$ The design of a stacking ensemble learning model that improves detection performance.
$\bullet$ An empirical performance comparison of the four tree-based classifiers and the stacking model under multiple feature selection settings. The implementation of different models was performed using the CICIoT2023 dataset.
$\bullet$ A contextual discussion linking our findings to ongoing efforts to secure intelligent transportation systems through ML techniques coupled with an appropriate feature selection method.
The present paper is structured as follows. After the introduction, Section 2 presents a comprehensive literature review in relation to the subject. A technical background is given in Section 3, and then a detailed description of our proposed approach is presented in Section 4. Section 5 focuses on our experimental results and their analysis. Finally, we present our conclusion and some future directions
2. Literature Review
The rapid growth of interconnected devices in the IoV has significantly improved automation, remote monitoring, and intelligent transportation services. However, this increasing connectivity has also enlarged the attack surface, making IoV networks highly vulnerable to cyber-attacks. Security breaches may disrupt Vehicle-to-Vehicle (V2V) communications, preventing the timely dissemination of critical information such as traffic congestion, road accidents, and hazardous driving conditions. Furthermore, cyber-attacks consume valuable computational and network resources, including CPU capacity and bandwidth, resulting in degraded communication performance and potentially severe economic and safety consequences [4]. ML has emerged as one of the most promising approaches for intrusion detection in IoV because of its ability to learn from historical traffic patterns, detect previously unseen attacks, and adapt to evolving threats. Recent studies have reported impressive detection performances using a variety of ML and Deep Learning techniques. For instance, Tiwari et al. [4] proposed a tree-based IDS that achieved detection metrics close to 100% on real-world IoV datasets, while Sousa et al. [5] demonstrated the effectiveness of DT and RF for flooding attack detection. Similarly, Yanmin et al. [6] employed Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) models to detect both network attacks and vehicle-specific cyber threats with high accuracy. Huang et al. [7] explored complementary directions, including federated learning to preserve data privacy (FED-IoV). Meanwhile, the authors in Ref. [8] developed a deep reinforcement learning model to improve IDS adaptability. In addition, accurate and timely monitoring of road surface conditions is critical for intelligent transportation systems (ITS), directly impacting traffic safety, infrastructure maintenance, and autonomous vehicle navigation [9]. Beyond physical road safety, cybersecurity remains a major challenge in connected ITS environments. To address this, Haider et al. [10] highlighted the growing role of Artificial Intelligence and Data Science in enhancing IoT security through more intelligent detection and prediction mechanisms. Despite these encouraging results, several limitations remain common across the existing literature.
First, many studies report extremely high detection accuracies, using relatively small, simulated, or highly balanced datasets, raising concerns about the generalization capability of the proposed models in realistic IoV environments. Second, several approaches focus only on binary classification (normal traffic versus attack), whereas practical IoV deployments require accurate identification of multiple attack categories. Third, highly complex deep learning architectures often incur high computational costs, limiting their deployment on resource-constrained vehicular devices. Although federated learning addresses privacy concerns, it introduces additional communication overhead and system complexity.
Finally, only a limited number of studies explicitly investigate the trade-off between detection accuracy, computational efficiency, scalability, and real-time applicability, which are essential requirements for practical IoV intrusion detection systems. Motivated by these limitations, the present work aims to develop an intrusion detection approach that not only achieves high detection performance but also addresses the practical constraints of IoV environments. In particular, our study emphasizes model generalization, scalability, computational efficiency, and suitability for a possible real-time deployment test. We summarize and compare some previous related studies in Table 1.
| Year | Authors | Dataset | Feature Selection Method | Classifier | Main Limitation |
|---|---|---|---|---|---|
| 2023 | Neto et al. [3] | CICIoT2023 | None | Logistic Regression, Perceptron, AdaBoost, RF, DNN | TPR, FPR, and ROC-AUC weren't measured. Also, detection of attacks wasn't measured. |
| 2023 | Sousa et al. [5] | Generated from SUMO | None | Decision Tree Random Forest | Limited to binary classification, which is too simplistic. Small datasets. Hyperparameter tuning not performed. |
| 2020 | Suma and Siddaraju [11] | NSL-KDD | L1-regulated feature selection | Multi-Layer Perceptron Naïve Bayes Support Vector Machine | Only one feature selection method; TPR, FPR, and ROC-AUC weren’t measured. Computational cost. |
| Present | Our project | CICIoT2023 | $\chi^2$, ANOVA, MI, Lasso, RFE, SFS, Tree-based, Hybrid FS | DT, ET, RF, XGB Meta-Model Stacking | Real-time deployment |
3. Technical Background
Feature Selection is the process by which we choose only the most representative input features for ML algorithm. This technique is widely used in data science and machine learning for several key reasons, including improving model performance, accelerating training by reducing computational time, enhancing interpretability, and reducing dimensionality. In the present section, we will present the feature selection methods we have used in our approach: filter-based methods and Wrapper and Embedded methods. Then, we will give a brief description of the ML algorithms used in the proposed intrusion detection solution and a detailed description of the metrics used to evaluate them.
$\bullet$ Chi-Square Test ($\chi^2$):
The $\chi^2$ score is defined by the sum of the squared differences between the observed values ($O_i$) and expected ($E_i$) values:
$ \chi^2=\sum_{i=1}^k \frac{\left(O_i-E_i\right)^2}{E_i} $
It measures the statistical independence between characteristic values and class labels [12], [13].
$\bullet$ ANOVA F-Test:
The one-way, or one-factor, ANOVA test compares the means of three or more independent samples simultaneously. It evaluates whether the means of different classes vary significantly between features [14].
$\bullet$ Mutual Information (MI):
MI between two random variables is a measure of the similarity between them. It's a non-negative value that measures the mutual dependence between the two variables $X$ and $Y$:
$ I(X ; Y)=\sum_{x \in \mathcal{X}} \sum_{y \in \mathcal{Y}} P(x, y) \log \frac{P(x, y)}{P(x) P(y)} $
It quantifies the dependency between two variables, helping to select the most relevant features and improve model performance [15], [16].
$\bullet$ RFE: It recursively removes the least important features based on feature weights from base models (e.g., RF, ET, DT, and XGB [17].
$\bullet$ SFS: SFS methods are either forward or backward. Forward SFS is a greedy approach that iteratively discovers the optimal new feature to add to the collection of selected features. The process begins with no features, and the feature that maximizes a cross-validated score when an estimator is trained on it alone is identified. Backward-SFS is the same as Forward-SFS but in the opposite direction. Instead of commencing with no features and then incrementally adding them, it starts with all the available features and subsequently eliminates them in a greedy manner [18].
$\bullet$ L1-Regularization (Lasso): Lasso is commonly used with linear classifiers to apply penalties to features that do not contribute significantly to the model. It penalizes the magnitude of coefficients in linear models to effectively eliminate irrelevant features [11].
$\bullet$ Tree-Based Feature Importance: Tree-based models like RF or XGB algorithms assign feature importance by measuring how much each feature reduces the model’s impurity or error during the splitting process. Impurity refers to a measure of data heterogeneity.
The lower impurity indicates more homogeneity, i.e., more data points belong to the same set. For example, Gini impurity at a splitting node is defined as:
$ \operatorname{Gini}(D)=1-\sum_{i=1}^C p_i^2 $
where, $p_i$ is the proportion of samples of class $j$ in the node and $C$ is the number of classes. Each tree in the ensemble splits the data using features that reduce impurity, and the importance of a feature is calculated based on the average reduction in impurity across all trees [19].
In this subsection, we present a brief description of the ML algorithms used.
$\bullet$ DT: is a non-parametric supervised learning algorithm, which is utilized for both classification and regression tasks. It’s built on a collection of attributes (features). A root node represents a test attribute. Branches represent the results. Decision leaves show the final decision taken after calculating all features in the form of a class label [20-21].
$\bullet$ RF: is an ensemble of DTs trained with bootstrap aggregation, reducing variance and improving generalization. This DT-based classifier was proposed by Breiman in 2001. It’s based on the principle that a strong learner group is created by a group of weak learners. It’s also one of the ensemble classifier methods. It combines multiple base classifiers to generate a unified hypothesis and produce a final, more accurate prediction. Each DT is created through a random selection of attributes at each node for separation. The final result of a classification can be decided by majority voting or weighted voting. Random Forest has an interesting advantage: its variance decreases as the number of trees increases while the bias remains the same [22].
$\bullet$ ET: It’s similar to RF but introduces random splits for lower bias, also called Extremely Randomized Trees. It is an ensemble learning method. It builds an ensemble of regression trees according to the classical method and consists of implementing extra randomness when growing trees on sub-samples of the dataset. It uses averaging to improve the predictive accuracy and control over-fitting. As a result, it trades more bias for a lower variance [23].
$\bullet$ XGB: is a gradient-boosted tree model optimized for speed and accuracy. It handles class imbalance and missing values internally. It’s a supervised learning algorithm whose principle is to combine the results of a set of simpler and weaker models in order to provide a better prediction. It’s a scalable and distributed gradient-boosted DT ML library. The principle is that, instead of using a single model, the algorithm will use several, which will then be combined to obtain a single result. It works sequentially and provides parallel tree boosting. XGB is the leading ML library for regression, classification, and ranking problems [24].
To assess the effectiveness of our models, we have calculated multiple metrics:
$\bullet$ Accuracy: Measures the overall correctness of the classifier. It’s calculated using the Eq. (1) below:
$\bullet$ Precision: Also known as positive predictive value, precision signifies the proportion of correctly detected intrusions among all instances classified as intrusions. It’s calculated using the Eq. (2) below:
$\bullet$ Recall: Also known as Sensitivity or True Positive Rate (TPR), it’s the proportion of actual correctly identified labels to the total number of occurrences of that particular label. Recall, Sensitivity and TPR are different names used in different fields. (ML, Medicine, Statistics). They are all computed using the same Eq. (3) below:
$\bullet$ F1-score: It’s a harmonic mean of the precision and recall. F1- score is computed by using the Eq. (4):
$\bullet$ False Positive Rate (FPR): is the proportion of negative instances that are incorrectly classified as positive. It’s computed using the Eq. (5) below:
Receiver operating characteristic-area under the curve (ROC-AUC): This curve visualizes the trade-off between TPR and FPR.
$\bullet$ Confusion Matrix: It’s a table used to evaluate the performance of a classification model by comparing the actual (true) classes with the predicted classes. The matrix contains one row and one column for each class. The diagonal elements represent correctly classified samples, while the off-diagonal elements represent misclassifications.
$\bullet$ Detection Time: measures inference time, which is crucial for real-time vehicular systems.
$\bullet$ Averaging procedure: for the multiclass classification problem, Precision, Recall, and F1-score will be calculated using the weighted averaging strategy. This approach computes the metric independently for each class and then calculates their weighted average according to the number of samples belonging to each class. Therefore, classes with a larger number of samples have a greater influence on the overall metric. For the AUC, it was computed using weighted averaging across the individual class-wise AUC values. This averaging procedure provides an overall performance measure while accounting for the class distribution in the dataset. The reported values for these two metrics are weighted averages.
4. Proposed Approach
To effectively secure the IoV ecosystem from evolving cyber threats, our approach combines advanced pre-processing, a hybrid feature selection strategy, implementation of four classification models, and a meta-model via stacking. The complete architecture is implemented and evaluated using the CICIoT2023 dataset. A detailed description of the overview is detailed in the following.
The proposed experimental pipeline consists of several steps, including:
$\bullet$ Downloading all the files (attacks) constituting the database.
$\bullet$ Undersampling the overrepresented files.
$\bullet$ Merging the file samples to constitute a final raw subset.
$\bullet$ Partitioning the dataset into training sets (70%) and testing sets (30%).
$\bullet$ Preprocessing of the raw CICIoT2023 subset; missing values and infinite values are replaced using inferential statistics to ensure data consistency.
Also, categorical variables are encoded using a one-hot encoder in order to transform them into numerical variables. Values are normalized using the Min–Max normalization technique.
$\bullet$ Seven feature selection techniques, including ANOVA, Tree-Based Feature Selection, Sequential Feature Selection, RFE, Mutual Information, LASSO, and Chi-Square, are performed to select the most relevant features.
$\bullet$ Hybrid feature selection is performed, and six groups of selected features are constituted by varying the threshold of the number of feature selection methods that selected the attribute.
$\bullet$ Five ML algorithms (DT, RF, ET, XGB, and the stacking method) are trained on the training set.
$\bullet$ Finally, the ML algorithms are evaluated with the testing subsets and their performances are compared. The proposed experimental pipeline is visualized in Figure 1.

The CIC-IoT-2023 dataset [3] is chosen due to its diversity, realism, and detailed labeling of network attacks targeting IoT networks. The dataset was created by the Canadian Institute for Cybersecurity at the University of New Brunswick (UNB) to provide a real and comprehensive dataset for the IoT environment. It was collected through a real physical simulation environment containing 105 IoT devices.
Among them, 67 IoT devices were directly involved in the attacks, whereas the other 38 devices were connected to five hubs. Multiple protocols such as DNS, HTTP, HTTPS, MQTT, and various modern attacks were used to produce this dataset. A real operating platform (servers, Wi-Fi, access point, firewall, and Wireshark) was set up and utilized to simulate the traffic. Moreover, it contains real attacks generated using professional tools such as Nmap, Hping3, and Metasploit. All this generated a rich dataset containing more than 46 million records, 47 features, and a class label containing 33 attacks and benign traffic [24]. This helps to make it completely reliable for building robust IDSs, especially in training and evaluating IDSs [3].
The features in this dataset represent various types of information in the network traffic, some of which assist in the speed of data training and performance of intrusion detection tasks, whereas others do not help. Moreover, they can cause noise that leads to the degradation of model performance and the occurrence of overfitting [3].
The dataset contains 33 different attacks and benign traffic. It’s representative of real attacks that the IoT network was exposed to while collecting data in the real world. Some of these attacks represent the common attacks used by attackers targeting IoV networks, namely DoS, DDoS, and Spoofing. Figure 2 shows the histogram of attacks in the CICIoT2023 dataset. It's a huge dataset with a severe class imbalance. After the preprocessing phase, the data should be cleaned, balanced, and ready to be used with ML algorithms and feature selection techniques.

$\bullet$ Data Cleaning: During this phase, we have removed duplicated features, handled missing values through interpolation and imputation, and eliminated noisy data points.
$\bullet$ Encoding and Transformation: Categorical variables such as protocol types are encoded using one-hot encoding to transform them into numerical variables.
$\bullet$ Normalization: All numerical features are normalized using Min-Max scaling to bring them to a common scale $[0,1]$ [25]. It is formulated by the following equation, where $x_\mathrm{normalized}$ represents the normalized value of a data point and $x$ represents the original value of a data point while $x_\mathrm{min}$ and $x_\mathrm{max}$ represent respectively the minimum and the maximum values in the dataset for that particular feature.
$ x_{\mathrm{normalized }}=\frac{x-x_{\min }}{x_{\max }-x_{\min }} $
$\bullet$ Class Balancing and Relabeling:
The CICIoT2023 dataset is a huge and imbalanced dataset. The whole dataset contains more than 46 million instances, 47 features, 33 attacks, and benign traffic. Some classes are underrepresented. Figure 2 illustrates the imbalance characteristics of the dataset. To deal with this problem, we have grouped attacks by categories and performed a new relabeling of the classes in the dataset. Thereby, we have grouped the 33 attacks and the benign traffic into 8 groups of attacks according to their mutual resemblance (Benign, DDoS, brute force, Spoofing, DoS, Recon, web-based, and Mirai). After that, we have addressed the problem of overrepresented instances by undersampling some of them, as shown in Table 2. Finally, our CICIoT2023 Subset will contain only eight attacks and 6113838 instances. Table 2 and Figure 3 show the results of the performed relabeling and sampling. To overcome class imbalance, adversarial vulnerabilities, and low interpretability in cyber intrusion detection systems, Arslan et al. [26] introduced HCABS-NID, a two-layer hierarchical stacking framework for connected device ecosystems. By combining heterogeneous learners (LightGBM, XGB, CatBoost, and TabNet) with meta-learning, SMOTENC-based class balancing, and TreeSHAP for multi-level interpretability.
Old Labels | Instances in Original Dataset | Sampling Rate (%) | Instances in Subset | New Labels | Instances |
|---|---|---|---|---|---|
Benign | 1098191 | 100 | 1098191 | Benign | 1098191 |
ACK Fragmentation | 285104 | 5 | 14255 | DDoS | 1699222 |
UDP Flood | 5412287 | 5 | 270614 | ||
SlowLoris | 23426 | 5 | 1171 | ||
ICMP Flood | 7200450 | 5 | 360023 | ||
RSTFIN Flood | 4045273 | 5 | 202264 | ||
PSHAK Flood | 4094741 | 5 | 204737 | ||
HTTP Flood | 28790 | 5 | 1440 | ||
UDP Fragmentation | 286925 | 5 | 14346 | ||
ICMP Fragmentation | 452489 | 5 | 22624 | ||
TCP Flood | 4497637 | 5 | 224882 | ||
Syn Flood | 4059190 | 5 | 202960 | ||
Synonymous IP Flood | 3598128 | 5 | 179906 | ||
Brute force | 13064 | 100 | 13064 | Brute force | 13064 |
ARP Spoofing | 307553 | 100 | 307553 | Spoofing | 486458 |
DNS Spoofing | 178905 | 100 | 178905 | ||
TCP Flood | 2590345 | 10 | 259035 | DoS | 784512 |
HTTP Flood | 69682 | 10 | 6968 | ||
Syn Flood | 1967243 | 10 | 196724 | ||
UDP Flood | 3217849 | 10 | 321785 | ||
Ping sweep | 4405 | 100 | 4405 | Recon | 690535 |
OS Scan | 191365 | 100 | 191365 | ||
Vulnerability Scan | 72803 | 100 | 72803 | ||
Port Scan | 160253 | 100 | 160253 | ||
Host Discovery | 261709 | 100 | 261709 | ||
SQL Injection | 5245 | 100 | 5245 | Web Based | 24829 |
Command Injection | 5409 | 100 | 5409 | ||
Backdoor Malware | 3218 | 100 | 3218 | ||
Uploading Attack | 1252 | 100 | 1252 | ||
XSS | 3846 | 100 | 3846 | ||
Browser Hijacking | 5859 | 100 | 5859 | ||
GREIP Flood | 751662 | 50 | 375831 | Mirai | 1317027 |
GREETH Flood | 991826 | 50 | 495913 | ||
UDP Plain | 890566 | 50 | 445283 | ||
Total | 46776690 | Total | 6113838 | Total | 6113838 |

In addition to the individual feature selection using the seven methods previously described, we introduced a hybrid approach based on a voting mechanism. This method is based on the selection frequency of each feature. This is how we determined 6 groups of selected features based on the selection frequency threshold using the methods mentioned above. Thus, we have constituted six groups of selected features.
$\bullet$ Group 1: consists of all the features selected by at least one of the 7 feature selection methods mentioned above. This group contains 39 selected features and a label.
$\bullet$ Group 2: This group consists of the features selected by at least 2 of the 7 feature selection methods. It contains 36 features and a label.
$\bullet$ Group 3: consists of the features selected by at least 3 of the 7 feature selection methods. It contains 30 features and a label.
$\bullet$ Group 4: consists of the features selected by at least 4 of the 7 feature selection methods. It contains 21 features and a label.
$\bullet$ Group 5: consists of the features selected by at least 5 of the 7 feature selection methods. It contains 10 features and a label.
$\bullet$ Group 6: consists of the features selected by at least 6 of the 7 feature selection methods. It contains only 3 features and a label.
Table 3 shows detailed results of the feature selection process, including the groups of hybrid feature selection and lists of selected features and the six resulting subsets of hybrid selected features forming our final data files. These files have been used to implement the ML models and the Stacking meta-model.
Feature Selection Method | Original Features | Selected Features | Selected Feature Names |
|---|---|---|---|
Chi-Square | 47 | 13 | ‘Protocol Type’, ‘syn_flag_number’, ‘rst_flag_number’, ‘ack_flag_number’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTPS’, ‘SSH’, ‘TCP’, ‘ICMP’, ‘Tot sum’, ‘Number’ |
ANOVA | 47 | 1 | ‘Number’ |
MI | 47 | 18 | ‘Header_Length’, ‘Protocol Type’, ‘Time_To_Live’, ‘Rate’, ‘psh_flag_number’, ‘ack_flag_number’, ‘ack_count’, ‘HTTPS’, ‘TCP’, ‘Tot sum’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘IAT’, ‘Number’, ‘Variance’ |
RFE | 47 | 35 | ‘Header_Length’, ‘Protocol Type’, ‘Time_To_Live’, ‘Rate’, ‘fin_flag_number’, ‘syn_flag_number’, ‘rst_flag_number’, ‘psh_flag_number’, ‘ack_flag_number’, ‘ece_flag_number’, ‘cwr_flag_number’, ‘ack_count’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTP’, ‘HTTPS’, ‘DNS’, ‘SSH’, ‘IRC’, ‘TCP’, ‘UDP’, ‘DHCP’, ‘ARP’, ‘ICMP’, ‘IPv’, ‘LLC’, ‘Tot sum’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘Number’, ‘Variance’ |
SFS | 47 | 19 | ‘Header_Length’, ‘Time_To_Live’, ‘fin_flag_number’, ‘syn_flag_number’, ‘psh_flag_number’, ‘ece_flag_number’, ‘ack_count’, ‘syn_count’, ‘rst_count’, ‘HTTP’, ‘HTTPS’, ‘DNS’, ‘SSH’, ‘UDP’, ‘ARP’, ‘Tot sum’, ‘Min’, ‘Max’, ‘Std’ |
Lasso | 47 | 39 | ‘Header_Length’, ‘ProtocolType’, ‘Time_To_Live’,' Rate’, ‘fin_flag_number’, ‘syn_flag_numb er’, ‘rst_flag_number’, ‘psh_flag_number’, ‘ack_flag_number’, ‘ece_flag_number’, ‘cwr_flag_number’, ‘ack_count’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTP’, ‘HTTPS’, ‘DNS’, ‘Telnet’, ‘SMTP’, ‘SSH’, ‘IRC’, ‘TCP’, ‘UDP’, ‘DHCP’, ‘ARP’, ‘ICMP’, ‘IGMP’, ‘IPv’, ‘LLC’, ‘Tot sum’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘IAT’, ‘Number’, ‘Variance’ |
Tree-Based | 47 | 14 | ‘Header_Length’, ‘Protocol Type’, ‘Time_To_Live’, ‘Rate’, ‘ack_flag_number’, ‘HTTPS ’, ’ Tot sum’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘Number’, ‘Variance’ |
Group 1 (votes $\geq$ 1) | 47 | 39 | ‘Number’, ‘Protocol Type’, ‘syn_flag_number’, ‘rst_flag_number’, ‘ack_flag_number’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTPS’, SSH’, ‘TCP’, ‘ICMP’, ‘Totsum’, ‘Header_Length’, ‘Time_To_Live’, ‘Rate’, ‘fin_flag_number’, ‘psh_flag_number’, ‘ece_flag_number’, ‘cwr_flag_number’, ‘ack_count’, ‘HTTP’, ‘DNS’, ‘Telnet’, ‘SMTP’, ‘IRC’, ‘UDP’, ‘DHCP’, ‘ARP’, ‘IGMP’, ‘IPv’, ‘LLC’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘IAT’, ‘Variance’ |
Group 2 (votes $\geq$ 2) | 47 | 36 | ‘Number’, ‘Protocol Type’, ‘syn_flag_number’, ‘rst_flag_number’, ‘ack_flag_number’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTPS’, ‘SSH’, ‘TCP’, ‘ICMP’, ‘Tot sum’, ‘Header_Length’, ‘Time_To_Live’, ‘Rate’, ‘fin_flag_number’, ‘psh_flag_number’, ‘ece_flag_number’, ‘cwr_flag_number’, ‘ack_count’, ‘HTTP’, ‘DNS’, ‘IRC’, ‘UDP’, ‘DHCP’, ‘ARP’, ‘IPv’, ‘LLC’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘IAT’, ‘Variance’ |
Group 3 (votes $\geq$ 3) | 47 | 30 | ‘Number’, ‘Protocol Type’, ‘syn_flag_number’, ‘rst_flag_number’, ‘ack_flag_number’, ‘syn_count’, ‘fin_count’, ‘rst_count’, ‘HTTPS’, ‘SSH’, ‘TCP’, ‘ICMP’, ‘Tot sum’, ‘Header_Length’, ‘Time_To_Live’, ‘Rate’, ‘fin_flag_number’, ‘psh_flag_number’, ‘ece_flag_number’, ‘ack_count’, ‘HTTP’, ‘DNS’, ‘UDP’, ‘ARP’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘Variance’ |
Group 4 (votes $\geq$ 4) | 47 | 21 | ‘Number’, ‘Protocol Type’, ‘syn_flag_number’, ‘ack_flag_number’, ‘syn_count’, ‘rst_count’, ‘HTTPS’, ‘SSH’, ‘TCP’, ‘Tot sum’, ‘Header_Length’, ‘Time_To_Live’, ‘Rate’, ‘psh flag number’, ‘ack count’, ‘Min’, ‘Max’, ‘AVG’, ‘Std’, ‘Tot size’, ‘Variance’ |
Group 5 (votes $\geq$ 5) | 47 | 10 | ‘Number’, ‘Protocol Type’, ‘ack_flag_number’, ‘HTTPS’, ‘Tot sum’, ‘Header_Length’, ‘Time_To_Live’, ‘Min’, ‘Max’, ‘Std’ |
Group 6 | 47 | 3 | ‘Number’, ‘HTTPS’, ‘Tot sum’ |
Some relevant features are explained in Table 3, and the selected features by the hybrid feature selection method are shown in Table 4.
Features | Explanation |
|---|---|
Number | The number of packets in the flow |
HTTPS | Indicates if the application layer protocol is HTTPS |
Tot sum | Summation of packet lengths in the flow |
Protocol Type | IP, UDP, TCP, IGMP, ICMP, Unknown (Integers) |
ack_flag_number | Ack flag value |
Header_Length | Header Length |
Time_To_Live | Duration |
TCP-related flags are useful for distinguishing attacks because they reveal how a connection is being established, maintained, or terminated. Normal TCP communications are made up of a sequence of steps:
$\bullet$ SYN $\rightarrow$ connection request
$\bullet$ SYN-ACK $\rightarrow$ server acknowledgment
$\bullet$ ACK $\rightarrow$ connection established
$\bullet$ FIN or RST $\rightarrow$ connection closed
Attackers generate unusual combinations or frequencies of TCP flags that differ from legitimate traffic. They often initiate many incomplete connections, send malformed or unusual flag combinations, or generate packets at abnormal rates. That’s why TCP flags are important for intrusion detection. For example, a SYN flood reveals a very large number of SYN packets without completing the three-way handshake, and a high RST count indicates excessive RST packets, which means connection resets or session disruption.
DoS (Denial of Service) and DDoS (Distributed Denial of Service) attacks can be difficult to distinguish because they often produce the same visible effect: the service becomes slow, unavailable, or crashes. The main difference is related to the origin of the attack. While DoS attacks are launched from a single source, the principal characteristic of DDoS attacks is that they are launched from many distributed devices. Besides that, DoS attacks can be identified and blocked easily, while DDoS attacks are harder to detect and block because they come from many devices. Finally, DoS and DDoS attacks are difficult to separate because they produce similar effects on the victims. Table 3 shows some relevant feature explanations.
Once feature selection was conducted, we determined the optimal parameters for our models. Hyperparameter tuning was conducted with GridSearchCV. We tested different parameters in order to find the optimal parameters and consequently the best models. Table 5 presents the optimal hyperparameters and the best models’ parameters. Then, we train and test the four best ML algorithms: DT, ET, RF, XGB, and a meta-model by stacking on different groups of features selected with a hybrid feature selection method. Base classifiers (DT, RF, ET, XGB) and the meta-model using stacking are trained using 10-fold cross-validation. The predictions of these models are used as inputs to the meta-classifier.
Models | Optimal Parameters | Tuning Time (Seconds) | Best Models | Best Cross Validation Score |
|---|---|---|---|---|
DT | ‘criterion’:‘gini’, ‘max_depth’:20, ‘min_samples_leaf:1’, ‘min_samples_split’: 2 | 8340 | max_depth = 20, random_state = 0 | 0.84949 |
ET | max_depth:20, min_samples_leaf:1, min_samples_split:5, n_estimators: 75 | 26103 | max_depth = 20, min_samples_split = 5, n_estimators = 75, n_jobs = 1, random_state = 0 | 0.8179 |
RF | 'max_depth': 20, 'min_samples_leaf:1, 'min_samples_split': 2, 'n_estimators': 90 | 13653 | max_depth = 20, n_estimators = 90, n_jobs = -1, random_state $=0$ | 0.939118 |
XGB | ‘colsample_bytree’: 1.0, ‘learning_rate’:0.1, ‘max_depth’:7, ‘n_estimators’:100, ‘subsample’: 0.8 | 29755 | XGBClassifier(base_score = None, booster = None, callbacks = None, colsample_bylevel = None, colsample_bynode = None ,colsample_bytree = 1.0, device = None, early_stopping_rounds = None, enable_categorical = False,eval_metric = ‘mlogloss’, feature_types = None, gamma = None,grow_policy = None, importance_type = None, interaction_constraints = None, learning_rate = 0.1, max_bin = None, max_cat_threshold = None max_cat_to_onehot = None, max_delta_step = None,max_depth = 7,max_leaves = None, min_child_weight = None, missing = nan, monotone_constraints = None, multi_strategy = None, n_estimators = 100, n_jobs = -1, num_parallel_tree = None, objective = ‘multi:softprob’, ...) | 0.8509 |
Stacking | estimators = DT, RF, ET, XGB Final estimator = Loogistic Regression (max iter = 1000) | Best (DT, RF, ET, XGB) estimators = estimators, final_estimator = meta_model, CV = 3, stack_method = “predict_proba”, n_jobs = 1 |
5. Experimental Results
In this section, we evaluate the impact of feature selection on M-based intrusion detection through two sets of experiments: The first set of experiments evaluated the performance of the ML models using individual feature selection methods. The second set employed a hybrid feature selection approach to determine the optimal number of features that maximizes detection performance while minimizing computational resource consumption.
All experiments were conducted on a computer with the specifications listed in Table 6.
Hardware Characteristic | Specification |
|---|---|
Processor | Intel® Core™ 17-8565U |
Architecture | 64-bit |
Processor family | Inte164 Family 6 |
Base frequency | 1.80 GHz |
Maximum Turbo frequency | Up to 4.60 GHz |
Number of cores | 4 |
Number of threads | 8 |
Cache | 8 MB Intel\textregistered{} Smart Cache |
RAM | 32 GB |
GPU | NVIDIA GeForce MX130, 2 GB |
The experiments were implemented in Python 3.11.5 using the Jupyter Notebook environment. The main libraries used for data preprocessing and feature selection included NumPy 1.24.3, Pandas 2.0.3, and Scikit-learn 1.3.0.
The reported execution times refer to total times, measured from the beginning of the experiment procedure until its completion. This includes data loading, data preprocessing, model training, and model testing. For hyperparameter tuning, the reported time refers to the complete GridSearchCV procedure, including all cross-validation folds and parameter combinations.
We have implemented the five models (DT, ET, RF, XGB, and Stacking) on our dataset after applying seven individual feature selection methods, namely ANOVA F-test, Chi-Square, Lasso, Mutual Information, RFE, SFS, and Tree-Based. We evaluated and compared the performance of these algorithms and methods across forty experiments. The evaluation was conducted using several metrics, namely Accuracy, Precision, Recall, F1-score, Execution Time, Correct Predictions, and Incorrect Predictions.
The results of the feature selection process are given in Table 7 and Table 8, while the performances of different ML algorithms using different methods of feature selection are given in Table 9. We have compared these methods, especially their optimal numbers of selected features, their mean execution times, and their selected features.
Features | Number of FS Methods (Votes) | FS Methods (Voters) |
|---|---|---|
HTTPS | 6 | $\chi^2$-Lasso-MI-RFE-SFE-Tree Based |
Tot sum | 6 | $\chi^2$-Lasso-MI-RFE-SFE-Tree-Based |
Number | 6 | $\chi^2$-Lasso-MI-RFE-ANOVA-Tree Based |
Header_Length | 5 | Lasso-MI-RFE-SFE-Tree Based |
Protocol Type | 5 | $\chi^2$-Lasso-MI-RFE-Tree Based |
Time_To_Live | 5 | Lasso-MI-RFE-SFE-Tree Based |
Min | 5 | Lasso-MI-RFE-SFE-Tree Based |
Max | 5 | Lasso-MI-RFE-SFE-Tree Based |
Std | 5 | Lasso-MI-RFE-SFE-Tree Based |
Rate | 4 | Lasso-MI-RFE-Tree Based |
syn_flag_number | 4 | $\chi^2$-Lasso-RFE-SFE |
psh_flag_number | 4 | $\chi^2$-Lasso-MI-RFE |
ack_flag_number | 4 | $\chi^2$-Lasso-RFE-Tree Based |
ece_flag_number | 4 | Lasso-MI-RFE-SFE |
ack_count | 4 | Lasso-MI-RFE-SFE |
syn_count | 4 | $\chi^2$-Lasso-RFE - SFE |
rst_count | 4 | $\chi^2$-Lasso-RFE - SFE |
SSH | 4 | $\chi^2$-Lasso-RFE - SFE |
TCP | 4 | $\chi^2$-Lasso-MI- RFE |
AVG | 4 | Lasso-MI-RFE-Tree Based |
Tot size | 4 | Lasso-MI-RFE-Tree Based |
| Feature Selection Methods | Optimal Numbers of Selected Features | Mean Execution Times (s) |
|---|---|---|
| ANOVA | 1 | 805.16 |
| $\chi^2$ | 13 | 2174.28 |
| Lasso | 39 | 3158.27 |
| MI | 18 | 6496.23 |
| RFE | 35 | 2799.46 |
| SFS | 19 | 2062.67 |
| Tree-based | 14 | 6278.1 |
Model | FS Method | Accuracy (%) | Precision (%) | Recall (%) | F1 (%) | Execution Time (s) | Correct Prediction | Incorrect Prediction | Total Instances |
|---|---|---|---|---|---|---|---|---|---|
DT | Without FS | 75.88 | 77.73 | 75.88 | 75.71 | 205.03 | 1391755 | 442397 | 1834152 |
ANOVA F test | 45.83 | 38.27 | 45.83 | 28.94 | 11.08 | 840592 | 993560 | 1834152 | |
Chi-Square | 75.92 | 75.50 | 75.92 | 75.09 | 34.62 | 1392488 | 441664 | 1834152 | |
Lasso | 81.27 | 80.92 | 81.27 | 80.94 | 49.21 | 1490615 | 343537 | 1834152 | |
MI | 79.29 | 78.75 | 79.29 | 78.69 | 69.49 | 1454299 | 379853 | 1834152 | |
RFE | 81.28 | 80.92 | 81.28 | 80.94 | 57.64 | 1490799 | 343353 | 1834152 | |
SFS | 80.07 | 80.00 | 80.07 | 79.91 | 25.64 | 1468606 | 365546 | 1834152 | |
Tree based | 79.33 | 78.88 | 79.33 | 78.71 | 61.05 | 1455033 | 379119 | 1834152 | |
RF | Without FS | 75.19 | 74.82 | 75.19 | 75.93 | 3883.75 | 1379099 | 455053 | 1834152 |
ANOVA F test | 45.83 | 38.27 | 45.83 | 28.94 | 228.67 | 840592 | 993560 | 1834152 | |
Chi-Square | 75.36 | 74.79 | 75.36 | 74.98 | 654.66 | 1382217 | 451935 | 1834152 | |
Lasso | 81.65 | 81.33 | 81.65 | 81.41 | 524.53 | 1497585 | 336567 | 1834152 | |
MI | 80.17 | 79.59 | 80.17 | 79.76 | 815.96 | 1470440 | 363712 | 1834152 | |
RFE | 81.07 | 80.70 | 81.07 | 80.82 | 490.64 | 1486947 | 347205 | 1834152 | |
SFS | 81.43 | 80.90 | 81.43 | 81.03 | 371.85 | 1493550 | 340602 | 1834152 | |
Tree based | 79.19 | 78.82 | 79.19 | 78.93 | 834.73 | 1452465 | 381687 | 1834152 | |
ET | Without FS | 74.75 | 74.70 | 74.75 | 74.82 | 459.90 | 1371029 | 463123 | 1834152 |
ANOVA F test | 45.83 | 38.02 | 45.83 | 28.94 | 223.35 | 840592 | 993560 | 1834152 | |
$\chi^2$ | 74.86 | 74.40 | 74.86 | 74.57 | 581.22 | 1373046 | 461106 | 1834152 | |
Lasso | 79.75 | 79.58 | 79.75 | 79.55 | 382.14 | 1462736 | 371416 | 1834152 | |
MI | 78.45 | 78.23 | 78.45 | 78.23 | 486.95 | 1438892 | 395260 | 1834152 | |
RFE | 79.37 | 79.21 | 79.37 | 79.19 | 359.27 | 1455766 | 378386 | 1834152 | |
SFS | 80.23 | 79.69 | 80.23 | 79.78 | 295.70 | 1471540 | 362612 | 1834152 | |
Tree based | 78.12 | 77.84 | 78.12 | 77.89 | 357.80 | 1432840 | 401312 | 1834152 | |
XGB | Without FS | 76.01 | 76.40 | 76.01 | 77.11 | 3677.20 | 1394139 | 440013 | 1834152 |
ANOVA F test | 45.82 | 38.51 | 45.82 | 28.94 | 357.85 | 840408 | 993744 | 1834152 | |
Chi-Square | 76.06 | 75.42 | 76.06 | 75.46 | 1525.45 | 1395056 | 439096 | 1834152 | |
Lasso | 82.03 | 81.74 | 82.03 | 81.81 | 1457.56 | 1504555 | 329597 | 1834152 | |
MI | 80.39 | 79.77 | 80.39 | 79.97 | 1751.90 | 1474475 | 359677 | 1834152 | |
RFE | 82.13 | 81.84 | 82.13 | 81.90 | 1241.11 | 1506389 | 327763 | 1834152 | |
SFS | 81.52 | 81.03 | 81.52 | 81.16 | 929.49 | 1495201 | 338951 | 1834152 | |
Tree based | 80.34 | 79.68 | 80.34 | 79.90 | 1601.80 | 1473558 | 360594 | 1834152 | |
Stacking | Without FS | 76.76 | 74.83 | 76.76 | 75.97 | 33515.02 | 1407895 | 426257 | 1834152 |
ANOVA F test | 45.76 | 36.84 | 45.76 | 28.75 | 3204.85 | 839308 | 994844 | 1834152 | |
Chi-Square | 76.51 | 75.71 | 76.51 | 75.71 | 8075.67 | 1403310 | 430842 | 1834152 | |
Lasso | 82.55 | 82.10 | 82.55 | 82.28 | 13378.93 | 1514092 | 320060 | 1834152 | |
MI | 80.99 | 80.01 | 80.99 | 80.20 | 29365.85 | 1485480 | 348672 | ||
RFE | 82.66 | 82.12 | 82.66 | 82.34 | 11848.63 | 1516110 | 318042 | ||
SFS | 81.88 | 81.24 | 81.88 | 81.46 | 8690.89 | 1501804 | 332348 | ||
Tree based | 80.76 | 79.83 | 80.76 | 79.97 | 28535.02 | 1481261 | 352891 |
The results of feature selection obtained after the seven individual feature selection methods will be used for hybrid feature selection. Indeed, Table 7 lists the selected features, their selection frequencies, and the specific feature selection methods that identified them. The most relevant features are those selected by six feature selection methods. We have constituted six groups of features by varying the number of feature selection methods that selected the feature. Group 1 contains the 39 features selected by at least one method. Group 2 contains the 36 features selected by at least two methods. Table 3 shows details of the constitution of the six groups. These six groups constitute our final subsets. We have implemented and tested DT, ET, RF, XGB, and the meta-model Stacking on these six subsets and measured the detailed performance of each classifier.
The detailed results are reported in Table 9, Table 10, Table 11, Table 12, and Table 13.
$\bullet$ Without any feature selection, the execution time was 205.03 seconds. We obtained a weighted accuracy of 75.88% and a weighted precision of 77.73%.
$\bullet$ When experimenting with the DT model with Group 3, the results obtained are better than those obtained without feature selection, especially for execution time and accuracy. Accuracy, precision, recall, and F1-score have increased to reach values of 85.03%, 84.90%, 85.03%, and 84.82%, respectively, while Macro-F1 was about 70%.
$\bullet$ With Group 6, Mirai is still correctly detected (99.51%), but brute force is not detected at all, and web-based attacks are detected with a low detection rate of 5.17%, as shown in Table 13.
$\bullet$ The optimal results are obtained with Group 3 (30 features). Performance indicators are better, and execution times have also decreased from 205.03 seconds to 166 seconds, as illustrated in Table 14.
$\bullet$ Mirai is correctly detected with a detection rate of 99.88%. DDoS, Benign traffic, spoofing, and Recon are also detected with detection rates above 74%.
Metrics/Attacks | DT | ET | RF | XGB | Stacking |
|---|---|---|---|---|---|
Weighted Accuracy (%) | 85.05 | 81.70 | 85.46 | 85.12 | 85.47 |
Weighted Precision (%) | 84.91 | 82.07 | 85.53 | 85.26 | 85.41 |
Weighted Recall (%) | 85.05 | 81.70 | 85.46 | 85.12 | 85.47 |
Weighted F1 Score (%) | 84.84 | 81.28 | 85.24 | 84.97 | 85.28 |
Macro-F1 (%) | 69 | 64 | 70 | 70 | 72 |
Benign (%) | 87.98 | 88.06 | 89.21 | 88.84 | 88.52 |
Brute force (%) | 19.57 | 15.39 | 18.63 | 23.40 | 28.45 |
DDoS (%) | 86.87 | 85.43 | 86.65 | 85.06 | 86.79 |
DoS (%) | 64.23 | 58.37 | 65.56 | 68.05 | 64.99 |
Mirai (%) | 99.88 | 99.97 | 99.96 | 99.94 | 99.93 |
Recon (%) | 74.91 | 71.38 | 75.74 | 74.72 | 76.54 |
Spoofing (%) | 85.33 | 61.22 | 85.05 | 84.54 | 85.48 |
Web-based (%) | 14.20 | 5.22 | 11.24 | 10.91 | 17.36 |
Total Instances | 1834152 | 1834152 | 1834152 | 1834152 | 1834152 |
Correct Prediction | 1560010 | 1498535 | 1567412 | 1561225 | 1567586 |
Incorrect Prediction | 274142 | 335617 | 266740 | 272927 | 266566 |
Global Detection Rate | 0.8505 | 0.8170 | 0.8546 | 0.8512 | 0.8547 |
Global TPR | 0.6662 | 0.6075 | 0.6650 | 0.6693 | 0.6851 |
Global FPR | 0.0230 | 0.0282 | 0.0224 | 0.0228 | 0.0224 |
AUC (weighted) | 0.8967 | 0.9428 | 0.9615 | 0.9577 | 0.9835 |
Metrics/Attacks | DT | ET | RF | XGB | Stacking |
|---|---|---|---|---|---|
Weighted Accuracy (%) | 85.03 | 81.71 | 85.47 | 85.08 | 85.50 |
Weighted Precision (%) | 84.90 | 82.06 | 85.54 | 85.22 | 85.45 |
Weighted Recall (%) | 85.03 | 81.71 | 85.47 | 85.08 | 85.50 |
Weighted F1 Score (%) | 84.82 | 81.32 | 85.25 | 84.93 | 85.31 |
Macro-F1 (%) | 70 | 64 | 70 | 70 | 72 |
Benign (%) | 87.03 | 87.88 | 89.20 | 88.79 | 88.63 |
Brute force (%) | 20.18 | 15.34 | 19.19 | 23.88 | 28.88 |
DDoS (%) | 86.78 | 85.07 | 86.65 | 85.07 | 86.82 |
DoS (%) | 64.21 | 59.76 | 65.52 | 67.82 | 65.00 |
Mirai (%) | 99.88 | 99.98 | 99.96 | 99.94 | 99.94 |
Recon (%) | 74.81 | 71.40 | 75.90 | 74.75 | 76.54 |
Spoofing (%) | 85.41 | 62.29 | 85.05 | 84.45 | 85.53 |
Web-based (%) | 14.34 | 6.26 | 11.73 | 10.81 | 17.00 |
Total Instances | 1834152 | 1834152 | 1834152 | 1834152 | 1834152 |
Correct Prediction | 1559649 | 1498689 | 1567724 | 1560471 | 1568188 |
Incorrect Prediction | 274503 | 335463 | 266428 | 273681 | 265964 |
Global Detection Rate | 0.8503 | 0.8171 | 0.8547 | 0.8508 | 0.8550 |
Global TPR | 0.6671 | 0.6099 | 0.6665 | 0.6694 | 0.6854 |
Global FPR | 0.0231 | 0.0282 | 0.0224 | 0.0229 | 0.0224 |
AUC (weighted) | 0.8947 | 0.9429 | 0.9620 | 0.9577 | 0.9835 |
Metrics/Attacks | DT | ET | RF | XGB | Stacking |
|---|---|---|---|---|---|
Weighted accuracy (%) | 82.47 | 80.77 | 82.91 | 82.21 | 82.92 |
Weighted precision (%) | 82.56 | 81.26 | 83.22 | 82.44 | 82.79 |
Weighted recall (%) | 82.47 | 80.77 | 82.91 | 82.21 | 82.92 |
Weighted F1 score (%) | 80.79 | 78.84 | 81.22 | 80.42 | 81.51 |
Macro-F1 (%) | 65 | 59 | 64 | 62 | 66 |
Benign (%) | 86.52 | 86.55 | 87.97 | 87.24 | 87.70 |
Brute force (%) | 13.06 | 0.43 | 10.64 | 8.04 | 15.41 |
DDoS (%) | 95.44 | 95.75 | 95.60 | 95.43 | 93.99 |
DoS (%) | 30.64 | 28.72 | 30.97 | 29.84 | 34.02 |
Mirai (%) | 99.85 | 99.95 | 99.93 | 99.91 | 99.90 |
Recon (%) | 71.99 | 67.91 | 73.07 | 70.88 | 73.54 |
Spoofing (%) | 84.75 | 71.52 | 84.42 | 83.03 | 84.92 |
Web-based (%) | 14.23 | 7.45 | 11.68 | 7.71 | 14.77 |
Total Instances | 1834152 | 1834152 | 1834152 | 1834152 | 1834152 |
Correct prediction | 1512586 | 1481389 | 1520738 | 1507819 | 1520813 |
Incorrect prediction | 321566 | 352763 | 313414 | 326333 | 313339 |
Global detection rate | 0.8247 | 0.8077 | 0.8291 | 0.8221 | 0.8292 |
Global TPR | 0.6206 | 0.5729 | 0.6179 | 0.6026 | 0.6303 |
Global FPR | 0.0280 | 0.0307 | 0.0274 | 0.0285 | 0.0273 |
AUC (weighted) | 0.8965 | 0.9421 | 0.9564 | 0.9470 | 0.9732 |
Metrics/Attacks | DT | ET | RF | XGB | Stacking |
|---|---|---|---|---|---|
Weighted Accuracy (%) | 75.83 | 75.19 | 76.22 | 74.81 | 76.24 |
Weighted Precision (%) | 76.04 | 76.09 | 76.57 | 74.82 | 76.12 |
Weighted Recall (%) | 75.83 | 75.19 | 76.22 | 74.81 | 76.24 |
Weighted F1 Score (%) | 72.94 | 71.45 | 73.36 | 71.39 | 73.65 |
Macro-F1 (%) | 51 | 49 | 52 | 49 | 52 |
Benign (%) | 83.82 | 84.90 | 84.61 | 83.19 | 83.90 |
Brute force (%) | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
DDoS (%) | 96.05 | 97.76 | 96.13 | 96.49 | 95.26 |
DoS (%) | 21.83 | 15.70 | 21.82 | 18.05 | 23.76 |
Mirai (%) | 99.51 | 99.67 | 99.63 | 99.80 | 99.63 |
Recon (%) | 60.67 | 58.82 | 60.74 | 58.39 | 59.93 |
Spoofing (%) | 37.39 | 33.06 | 39.76 | 32.94 | 42.62 |
Web-based (%) | 5.17 | 3.50 | 4.94 | 3.41 | 4.79 |
Total Instances | 1834152 | 1834152 | 1834152 | 1834152 | 1834152 |
Correct Prediction | 1390924 | 1379158 | 1398005 | 1372067 | 1398274 |
Incorrect Prediction | 443228 | 454994 | 436147 | 462085 | 435878 |
Global Detection Rate | 0.7583 | 0.7519 | 0.7622 | 0.7481 | 0.7624 |
Global TPR | 0.5055 | 0.4918 | 0.5094 | 0.4903 | 0.5124 |
Global FPR | 0.0382 | 0.0393 | 0.0377 | 0.0398 | 0.0375 |
AUC (weighted) | 0.8575 | 0.9100 | 0.9101 | 0.9032 | 0.9481 |
| Group 1 | Group 2 | Group 3 | Group 4 | Group 5 | Group 6 | |
|---|---|---|---|---|---|---|
| DT | 186 | 181 | 166 | 146 | 71 | 35 |
| ET | 260 | 296 | 232 | 217 | 173 | 103 |
| XGB | 300 | 316 | 313 | 268 | 207 | 171 |
| RF | 528 | 534 | 502 | 475 | 341 | 249 |
| Stacking | 4787 | 4580 | 4318 | 4000 | 3382 | 2858 |
$\bullet$ Weighted AUCs range from 0.8967 for Group1 to 0.8575 for Group 6, which is low when compared with other models.
$\bullet$ Weighted accuracies vary from 75.88% (without FS) to 85.05% (Group 1).
$\bullet$ Macro-F1 scores vary from 51% (Group 6) to 69% (Group 1).
$\bullet$ Figure 4 shows the confusion matrix obtained with DT for Group 4, and Figure 5 shows DT ROC curves and AUC for different attacks and the same Group.
$\bullet$ It is still difficult to distinguish between DDoS and DoS attacks.


We have implemented RF without any feature selection and with different feature selection methods, including hybrid feature selection. The results showed that:
$\bullet$ Using RF without any feature selection, the experiment lasted 3883.75 seconds. The execution time decreased to 524.53 seconds when Lasso was applied. Weighted recall is 76.19% without any feature selection.
$\bullet$ When we used RF with Lasso, accuracy, precision, recall, and F1-score increased to 81.65%, 81.33%, 81.65%, and 81.41%, respectively.
$\bullet$ Also, using RF with RFE (35 most relevant features selected), we obtained an accuracy of 81.07% and an F1-score of 80.82%. Execution time has also decreased to 490.64 seconds with this method.
$\bullet$ RF model with hybrid feature selection (Group 1) achieved better results than those obtained without any feature selection. Accuracy, precision, recall, and F1-score have increased to reach: 85.45%, 85.53%, 85.45%, and 85.24%, respectively.
$\bullet$ However, the distinction between DoS and DDoS attacks remains difficult, and the specific detection of Web-based and Brute Force attacks is weak.
$\bullet$ After Hybrid feature selection, weighted accuracies range from 76.22% (Group 6) to 85.46% (Group 1).
$\bullet$ Macro-F1 scores vary from 52% (Group 6) to 70% (Group 1).
Group 3: Mirai attack is detected with a detection rate of 99.96%. Benign traffic (89.20%), DDoS (86.65%), and Spoofing (85.05%) are also correctly detected.
$\bullet$ Group 6: Even if Mirai is still detected with a detection rate of 99.63%, DDoS with a detection rate of 96.13%, and Benign traffic with 84.61%, Web-Based attacks are detected with a low detection rate of 4.94%, and brute force is not detected at all.
$\bullet$ Weighted AUCs range from 0.9101 for Group 6 to 0.9615 for Group1.
$\bullet$ Figure 6 is the confusion matrix obtained with RF for Group 6, and Figure 7 shows Random Forest ROC curves and AUC for different attacks and the same Group.


$\bullet$ A comparison of execution times after hybrid feature selection is given in Figure 8 and Table 14.

$\bullet$ When we use ET without any feature selection (all features), the execution time is 459.90 seconds. Accuracy, Precision, Recall, and F1-score are 74.75%, 74.70%, 74.75%, and 74.82%, respectively.
$\bullet$ When used with Lasso (39 most relevant features selected), execution time decreases to 382.14 seconds, while Accuracy, Precision, Recall, and F1-score have improved to 79.75%, 79.58%, 79.75%, and 79.55%, respectively.
$\bullet$ Used with RFE (35 most relevant features), execution time decreases to 359.27 seconds, and other performance metrics improve to 79.37% for accuracy and 79.19% for F1-score.
$\bullet$ Using the ET model with hybrid feature selection (Group 3), the results obtained with this method are better than those obtained without feature selection. Accuracy, Precision, Recall, and F1-score increased to 81.71%, 82.06%, 81.71%, and 81.32%, respectively.
$\bullet$ Group 3: Mirai is detected with a detection rate of nearly 1 (99.98%). Benign and DDoS are also detected with rates exceeding 80%. Web-based attacks are detected with a detection rate of just 6.26%.
$\bullet$ Group 6: Mirai is detected with a detection rate of 99.67%, and DDoS with a detection rate of 97.76%, but DoS, Web-based, and brute force have very low detection rates: 15.70%, 3.50%, and 0.00%, respectively.
$\bullet$ Weighted accuracies range from 74.75% without any feature selection to 81.71% after hybrid feature selection (Group 3).
$\bullet$ Weighted AUCs vary from 0.9100 (Group 6) to 0.9429 (Group 3).
$\bullet$ Weighted Macro-F1 scores range from 49% (Group 6) to 64% (Group 1).
$\bullet$ Figure 9 illustrates the confusion matrix of ET model used with Hybrid Feature Selection (Group 3). Global and detailed results can also be seen in Figure 8, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, and Figure 15, and in Table 9, Table 10, Table 11, Table 12, and Table 13.







$\bullet$ Figure 16 shows Extra Trees ROC curves and AUC for different attacks (Group 3).

$\bullet$ At first, we implemented XGB without any feature selection. The execution time was 3677.20 seconds, and the weighted accuracy was 76.01%. Weighted recall and F1-score were equal to 76.01% and 77.11%, respectively.
$\bullet$ Using XGB with Lasso feature selection (39 most relevant features), execution time decreased to 1457.56 seconds, while accuracy, precision, recall, and F1-score improved to 82.03%, 81.74%, 82.03%, and 81.81%, respectively.
$\bullet$ Used with RFE (35 most relevant features), execution time decreased to 1241.11 seconds, while accuracy, precision, recall, and F1-score improved to 82.13%, 81.84%, 82.13%, and 81.90%, respectively.
$\bullet$ Using XGB with SFS for feature selection (19 most relevant features), execution time decreases to 929.49 seconds, and accuracy, precision, recall, and F1-score have increased to 81.52%, 81.03%, 81.52%, and 81.16%, respectively.
$\bullet$ Using XGB with hybrid feature selection (Group 3), the results are better than those obtained without feature selection; accuracy, precision, recall, and F1-score have increased to reach values of 85.08%, 85.22%, 85.08%, and 84.94%, respectively.
Weighted Macro-F1 scores range from 49% (Group 6) to 70% (Group 3 and Group 1).
$\bullet$ Group 3: Mirai (99.94%), Benign traffic (88.79%), DDoS (85.07%), and Spoofing (84.45%) are correctly detected with rates of more than 84%. Recon and DoS attacks are detected with detection rates of 74.75% and 67.82%, respectively.
$\bullet$ Group 5—10 features: Mirai (99.91%) and DDoS (95.43%) are detected with high rates. Benign traffic (87.24%) and Spoofing (83.03%) are also correctly detected with rates more than 80%, but DoS detection rate is just of 29.84%.
$\bullet$ Group 6: With only three selected features, Mirai, DDoS, and Benign traffic are detected with detection rates of 99.80%, 96.49%, and 83.19%. Web-based attack detection rate is just 3.41%. Brute force is not detected at all.
$\bullet$ After hybrid feature selection, weighted accuracies range from 74.81% (Group 6) to 85.12% (Group 1).
$\bullet$ Weighted AUCs vary from 0.9032 (Group 6) to 0.9577 (Group 1).
$\bullet$ The Confusion matrix in Figure 17 illustrates the results obtained using XGB with Group 5.

$\bullet$ Figure 18 shows XGB ROC curves and AUC for different attacks (Group 5).

$\bullet$ Table 9, Table 10, Table 11, Table 12, and Table 13 show different detection performance criteria obtained with XGB coupled with different feature selection methods.
$\bullet$ Other global results and their comparisons are visualized in Figure 8, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15, Figure 19, Figure 20, and Figure 21.



Finally, we evaluated the stacking ensemble model both with and without feature selection.
When Stacking was used without any feature selection, the execution time was too long. Accuracy, precision, recall, and F1-score are 76.76%, 74.83%, 76.76%, and 75.97%, respectively.
Using Stacking with Lasso (39 most relevant features), execution time decreases, while accuracy, precision, recall, and F1-score increase to 82.55%, 82.10%, 82.55%, and 82.28%, respectively.
Using Stacking and MI feature selection (18 most relevant features), execution time increased, while accuracy, precision, recall, and F1-score decreased to 80.99%, 80.01%, 80.99%, and 80.20%, respectively.
$\bullet$ After Hybrid feature selection, weighted accuracies vary from 76.24% (Group 6) to 85.50% (Group 3).
$\bullet$ Weighted Macro-F1 scores range from 52% (Group 6) to 72% (Group 3 and Group 1).
$\bullet$ Weighted AUCs vary from 0.9481 (Group 6) to 0.9835 (Group 3 and Group 1).
$\bullet$ Group 1: Mirai (99.93%), Benign traffic (88.52%), DDoS (86.79%), and Spoofing (85.48%) are detected with high detection rates. Recon (76.54%) and DoS (64.99%) are detected with good detection rates.
$\bullet$ With Stacking and hybrid feature selection (Group 3), execution time decreases to 4318 seconds, as shown in Table 14. Accuracy, precision, recall, and F1-score have increased to reach values of 85.50%, 85.45%, 85.50%, and 85.31%, respectively.
$\bullet$ Weighted Macro-F1 reached its maximum values ranging from 52% (Group 6) to 72% (Groups 1 and 3).
$\bullet$ Group 6: Mirai is detected with a detection rate of 99.63%. DDoS is detected with a detection rate of 95.26%, which is better than other Groups. Benign traffic is detected with 83.90%, but web-based traffic is detected with a low detection rate of 4.79%, and brute force is not detected.
The first part of this work aimed to evaluate the impact of individual feature selection methods on the performance of ML algorithms. The results of individual feature selection, obtained during this first step, will be used as an input for a hybrid feature selection process.
Overall, all individual feature selection methods led to algorithm performance improvement, except for ANOVA. Accuracy decreased to less than 46% with ANOVA for all algorithms.
$\bullet$ DT: accuracies increased from 75.88% (without FS) to 81.28% (RFE).
$\bullet$ RF: accuracies increased from 75.19% (without FS) to 81.65% (Lasso).
$\bullet$ ET: accuracies increased from 74.75% (without FS) to 80.23% (SFS).
$\bullet$ XGB: accuracies increased from 76.01% (without FS) to 82.13% (RFE).
$\bullet$ Stacking: accuracies varied from 76.76% (without FS) to 82.66% (RFE).
The results obtained at the end of this stage did not allow us to decide on the best feature selection method coupled with the best ML algorithm. That’s why we have decided to introduce a hybrid feature selection based on the selection frequency threshold.
Using this hybrid method, we have created six groups of features. (Group 1—39 features, Group 2—36 features, Group 3—30 features, Group 4—21 features, Group 5—10 features, and Group 6—3 features). All the ML models were trained and tested on the six groups of selected features.
For the model’s evaluation, different performance metrics were calculated. Evaluation results are tabulated in Table 10, Table 11, Table 12, Table 13, and Table 14. Results are also visualized in Figure 4, Figure 5, Figure 6, Figure 7, Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15, Figure 16, Figure 17, Figure 18, Figure 19, Figure 20, Figure 21, Figure 22, and Figure 23 (Confusion matrices, ROC-AUC curves, Histograms).


Group 1—39 features: weighted accuracies range from 81.70% with ET to 85.47% with Stacking, and Macro-F1 scores range from 64% (ET) to 72% (Stacking).
But it should be noted that these accuracies could have reached values above 94% if we had grouped DoS and DDoS attacks into the same label. Weighted AUCs range from 0.8967 (DT) to 0.9835 (Stacking). Mirai is perfectly detected by all algorithms, with detection rates above 99.88%. Benign traffic is also detected with high detection rates ranging from 87.98% (DT) to 89.21% (RF). DDoS detection rates range from 85.06% (XGB) to 86.87% (DT). Web-based and brute force are detected with weak detection rates by ET (5.23% and 15.39%, respectively).
Group 3—30 features: as can be seen in Table 10, Table 11, and Table 12 weighted performance metrics (Accuracies and AUCs) achieved with Stacking and Group 3 are slightly better than the global performance achieved with Group 1, while execution times are shorter for Group 3 than for Group 1. Weighted accuracies range from 81.71% with ET to 85.50% with Stacking, and Macro-F1 scores range from 64% (ET) to 72% (Stacking).
Weighted AUCs range from 0.8947 (DT) to 0.9835 (Stacking). Mirai is perfectly detected by all algorithms with detection rates above 99.94%. DDoS detection rates range from 85.06% (ET and XGB) to 86.82% (Stacking). The Stacking model achieved an overall accuracy of 85.50% and a Macro-F1 score of 72%. However, it achieved a detection rate of 28.88% for Brute Force and 17.00% for Web-based attacks.
Spoofing is also detected with detection rates around 85% for all classifiers except for ET (62.29%).
$\bullet$ Group 5—10 features: weighted accuracies range from 80.77% (ET) to 82.92% (Stacking).
Macro-F1 score ranged from 59% (ET) to 66% (Stacking).
DDoS detection rate increased to more than 94.29% for all models. DoS detection rates decreased to 34.02% (Stacking), 30.64% (DT), 30.97% (RF), 29.84% (XGB), and 28.72% (ET). Mirai is still perfectly detected by all algorithms. Benign and Spoofing are also correctly detected with detection rates of nearly 87% and 84% for all algorithms, except for Spoofing with ET (71.52%). ET detects brute force with a negligible detection rate of 0.43%.
$\bullet$ Group 6—3 features: weighted accuracies range from 74.81% (XGB) to 76.24% (Stacking).
Weighted AUCs range from 0.8575 (DT) to 0.9481 (Stacking). Macro-F1 score varies from 49% (ET, XGB) to 52% (RF, Stacking).
Mirai is still perfectly detected by all algorithms with detection rates above 99.51%. But with only 3 selected features, DDoS attacks are detected with high detection rates ranging from 95.26% (Stacking) to 97.76% (ET). Web-based attacks are detected with low detection rates ranging from 3.41% (XGB) to 5.17% (DT). Brute force is not detected by all classifiers.
Small AUCs are always achieved with DT, compared with other algorithms. The best detection rates for all attacks are not necessarily achieved by meta-model Stacking. Certain higher or even the best detection rates are achieved with Group 6 containing only three selected features for Mirai and DDoS attacks.
IoV networks are often exposed to DoS/DDoS attacks. In IoV environments, such attacks may reduce the availability and reliability of Vehicle-to-Vehicle (V2V) communication and Vehicle-to-Infrastructure (V2I) communications by causing network congestion, packet loss, or communication delays. The highest DDoS detection rate (97.76%) was achieved using the ET model with Group 6.
Spoofing is also a frequent attack in IoV networks. Undetected spoofing attacks represent a significant security concern in IoV environments because they may allow an attacker to impersonate a legitimate vehicle, device, or communication entity while transmitting falsified information. The best spoofing detection rate (85.53%) was achieved with Stacking (Group 3), and the lowest Spoofing detection rate (32.94%) was achieved with XGB (Group 6).
When considering global detection of the most common attack categories encountered in IoV networks, namely, DoS, DDoS, Spoofing, and benign traffic, the best models are RF, DT, and Stacking. However, when execution time is also taken into account, DT showed comparatively lower computational costs under the experimental conditions, while its real-time inference performance requires separate evaluation.
Figure 8 illustrates the overall execution times after hybrid feature selection across different models. Figure 15 presents a histogram of the AUC scores across attack categories and algorithms using Hybrid FS Group 3 (30 features), while Figure 21 displays the macro-F1 scores across algorithms and feature selection groups.
6. Conclusions and Future Work
This work aimed to assess the performance of intrusion detection when subjected to various feature selection methods and ML algorithms. We have experimented with and compared seven feature selection methods. Then, we combined the results of these seven feature selection methods by voting to lead to the formation of six subsets of selected features. That’s how we have constituted six groups of selected features called: Group1 (39 features), Group 2 (36 features), Group 3 (30 features), Group 4 (21 features), Group 5 (10 features), and Group 6 (3 features). After performing DT, ET, RF, XGB, and a meta-model by stacking on the six final subsets, before and after hybrid feature selection, we have analyzed performance criteria for each group. We have gained valuable insights into enhancing the effectiveness of intrusion detection. The results obtained after experiments emphasize the profound impact of feature selection in improving intrusion detection.
The performance improvements achieved with the groups formed after hybrid feature selection are superior to those obtained using individual feature selection methods. After hybrid feature selection and model hyperparameter tuning with GridSearchCV, computational costs have been lowered and execution times decreased for all classifier algorithms. Moreover, since the reported execution times also included the learning times, a real-time test in an IoV context can be envisaged. The best weighted accuracy and Macro-F1 score were obtained with a stacking ensemble learning model coupled with the hybrid FS method (Group 3). With that solution, we have achieved a global accuracy of 85.50%, a Macro-F1 of 72%, and a weighted AUC of 0.9835. Mirai attacks are detected perfectly by all classifiers, with detection rates over 99%. DDoS attacks are also perfectly detected, with detection rates over 95% after hybrid feature selection (Group 5 and Group 6). Brute force is not detected at all when we use Group 5 or Group 6. The hybrid FS method has also led to an important gain in execution time without altering detection performance rates (Group 1 to Group 3). This result was also obtained for certain attacks, for which detection rates were significantly improved between Group 3 and Group 6 despite feature selection (DDoS, Mirai, Benign traffic).
As future work, we propose to integrate and test other feature selection techniques to achieve better performance and adaptability, particularly in dynamic network environments. Ongoing efforts should be directed at minimizing execution time while upholding high accuracy and AUC levels. Furthermore, exploring more recent and diverse datasets and incorporating real-world traffic data from various network environments, including IoT and industrial control systems, is crucial for validating the robustness and generalizability of our approach. Another potential future work could be the development of a deep learning model based on Artificial Neural Networks with the aim of enhancing intrusion detection.
Conceptualization, L.B. and G.O.; methodology, L.B., G.O., and A.M.; software, L.B., A.M., and Y.R.; validation, L.B. and G.O.; data curation, A.M. and L.B.; writing—original draft preparation, Y.R., A.M., G.O., and L.B.; writing—review and editing, L.B., G.O., and A.M.; supervision, L.B. and G.O. All authors have read and agreed to the published version of the manuscript.
The data used to support the research findings are available from the corresponding author upon request.
The authors declare no conflicts of interest.
