Network abnormal traffic detection method based on ensemble learning and feature fusion
Through the method of integrated learning and feature fusion, CNN, Transformer and BiLSTM are combined to extract the characteristics of network traffic, and the decision tree and XGBoost model are used for integrated learning, which solves the problem of incomplete feature information extraction and low detection accuracy in the existing technology. problem, achieving more efficient and accurate network abnormal traffic detection.
Patent Information
- Application Number
- CN202410820536.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing network abnormal traffic detection methods have problems such as incomplete feature information extraction and low detection accuracy when dealing with the high-dimensional and nonlinear characteristics of large-scale network abnormal traffic.
Using a method based on integrated learning and feature fusion, the CNN and Transformer models are combined to extract spatial features, and BiLSTM is used to capture temporal features. The decision tree and XGBoost model are combined for integrated learning, and the majority voting method is used for prediction output to improve the accuracy of detection. and stability.
It has significantly improved the accuracy and stability of abnormal network traffic detection, enhanced the model's generalization ability to unseen data, and verified the model's excellent performance through experiments on KDDCup99 and other data sets.
Smart Images

Figure CN118694590A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network security, and specifically relates to a network abnormal traffic detection method based on ensemble learning and feature fusion. Background Art
[0002] The widespread application and rapid development of the Internet in political, economic and social life have provided strong technical support for political stability, economic prosperity, social harmony and convenience of life. However, its potential risks should not be ignored, which may pose a serious threat to personal privacy, business operations and even national security. Network security detection plays an important role in ensuring the peace of people's lives and national security. Therefore, it is particularly important to deeply study and improve intrusion detection systems (IDS).
[0003] The network abnormal traffic detection system is a tool for dynamically detecting network attack behaviors in information and communication systems. It is divided into two categories: misuse-based and anomaly-based detection systems. Misuse-based network abnormal traffic detection systems are highly dependent on the statistical characteristics of known attacks, so their recognition capabilities have inherent limitations. Such systems are often unable to effectively identify unknown or new attacks. In contrast, anomaly-based network abnormal traffic detection systems analyze long-term traffic data in the network, gain in-depth insights into user behavior, and build a sophisticated model of regular user activity characteristics. With this model, the system can accurately distinguish between normal and abnormal events in network traffic, detect new attacks, and thus provide more comprehensive and advanced network security protection.
[0004] Anomaly-based network anomaly traffic detection systems usually detect abnormal behaviors in the network by training network models composed of machine learning or deep learning. Traditional machine learning-based network anomaly traffic detection methods have the advantages of low model complexity, strong interpretability, and fast training speed, such as decision trees, Bayesian network models, and support vector machines. However, a single model is usually inferior to an integrated learning model in terms of generalization ability, stability, and robustness to outliers. The latter improves performance by combining the prediction results of multiple models. Although the above methods have been widely used, they still face challenges in dealing with the high-dimensionality and nonlinear characteristics of large-scale network anomaly traffic.
[0005] At present, the deep learning algorithms commonly used in network abnormal traffic detection systems mainly include algorithms based on DNN, algorithms based on CNN, algorithms based on graph neural network GNN, etc. The network abnormal traffic detection method based on deep learning shows significant advantages in feature extraction. For example, the convolution layer and pooling layer of CNN can help capture local patterns and abstract features in the data; the long short-term memory network (Long Short-Term Memory, LSTM) is very good at capturing time dependencies and long-term dependencies in sequences. However, CNN lacks global perception capabilities in the spatial dimension and cannot solve the long-term dependencies of longer information; the core structure and operation of LSTM are mainly based on one-dimensional vectors, and cannot directly and effectively capture spatial features from data with spatial characteristics. Summary of the invention
[0006] CNN is an important model in deep learning. The typical CNN model includes input layer, convolution layer, pooling layer and fully connected layer, which is good at extracting local spatial features from data. This patent uses the convolution layer in CNN to accurately extract local information, the maximum pooling layer to screen key features, the batch normalization layer to suppress internal covariate shift, and the loss layer to improve the generalization ability of the model to capture local spatial features in network traffic data. Transformer performs well in sequence data modeling, and its self-attention mechanism can accurately capture global dependencies in time series including network traffic data. When faced with such data, Transformer can process it directly and efficiently, and capture key features in time series through its encoder. The "gate" mechanism inside LSTM can flexibly adjust the transmission of information flow, ensuring that key information can be effectively transmitted along long sequences, so as to accurately perform prediction tasks. BiLSTM is composed of forward LSTM and backward LSTM, which can better capture bidirectional semantic dependencies.
[0007] In supervised learning, the ideal goal is to build a stable and comprehensive model, but in reality, weak models that perform well in certain specific aspects are common. Ensemble learning combines these weak models in the hope of obtaining a more powerful and comprehensive model. The principle is that even if a model predicts incorrectly, other models can correct it, thereby improving overall performance and generalization ability. The advantages of ensemble learning include reducing the risk of overfitting, being robust to complex data and noise, being highly adaptable, and being able to combine multiple learners such as decision trees and neural networks.
[0008] In view of the problems of incomplete feature information extraction and low detection accuracy in the current network abnormal traffic detection method, a network abnormal traffic detection method based on ensemble learning and feature fusion is proposed, which can be applied to abnormal detection of network traffic and maintain network space security. The present invention uses spatial features extracted by CNN and Transformer respectively to extract and fuse, and extracts time series features through BiLSTM, integrates decision tree and XGBoost model, and completes the recognition and classification of feature information. At the same time, by designing ensemble learning of decision tree and XGBoost, the majority voting method is adopted to select the most common category as the prediction output, and further obtain the evaluation result. The present invention realizes the task of network abnormal traffic detection more efficiently and accurately on data sets such as KDDCup99.
[0009] In order to solve the shortcomings of the existing work, the present invention adopts the following technical solution to achieve: a network abnormal traffic detection method based on ensemble learning and feature fusion, which includes the following steps:
[0010] Step 1: Data preprocessing: The captured network traffic data is digitized and normalized using the data preprocessing module and converted into matrices as training samples and test samples;
[0011] Step 2, model construction and training: Step 2.1, training sample loading: use the deep learning framework Pytorch1.13.1 to load the training samples, and use DataLoader to load the training samples; Step 2.2, model construction, use PyTorch to build a NATDBELFF abnormal traffic detection model, the NATDBELFF abnormal traffic detection model includes a data preprocessing module, a feature extraction module, and anomaly detection module, wherein the feature extraction module includes a spatial feature extraction module and a temporal feature extraction module; Step 2.3, model training, input the training samples into the NATDBELFF abnormal traffic detection model for training;
[0012] Step 3, model performance evaluation: Use accuracy, precision, recall, and F1 score to compare with the existing abnormal traffic detection model to measure the performance of the NATDBELFF abnormal traffic detection model. If the four evaluation indicators of the NATDBELFF abnormal traffic detection model are better than the existing abnormal traffic detection model, execute step 4, otherwise, return to step 2.3 to continue training;
[0013] Step 4: Detection of network traffic: Input the training samples preprocessed in step 1 into the trained NATDBELFF abnormal traffic detection model for detection.
[0014] Further, in step 1, the specific steps of the data preprocessing module are as follows:
[0015] Step 1.1, numerical processing: The non-numerical features in the network traffic data are processed using the one-hot encoding method to obtain a data set with obvious feature value range differences as the input of step 1.2;
[0016] Step 1.2, normalization: Normalize the data set obtained in step 1.1 to obtain the data network, that is, the eigenvalues in the interval [0,1];
[0017] Step 1.3, convert the data network dimension into a matrix, that is, generate training samples in the corresponding grayscale image format.
[0018] Furthermore, the specific steps of the training process are as follows:
[0019] Step 2.3.1, in the spatial feature extraction module, input the training samples into CNN to obtain spatial local features, and input the training samples into Transformer to obtain spatial global features; in CNN, the training samples are processed by the following layers: the convolution layer accurately extracts local information, the maximum pooling layer screens key features, the batch normalization layer suppresses internal covariate shifts, and the dropout layer improves the generalization ability of the model to capture local spatial features in the training samples; in Transformer, the attention mechanism is used to capture the spatial global features of the training samples; the features extracted by CNN and Transformer are concatenated and fused to obtain all the spatial features of the training samples;
[0020] Step 2.3.2, in the time series feature extraction module, the dimension of the training sample obtained in step 2.3.1 is fixed to 70 and input into the bidirectional long short-term memory network, and the past and future time feature information of the training sample is extracted from the forward hidden layer and the backward hidden layer of the bidirectional long short-term memory network;
[0021] Step 2.3.3, in the anomaly detection module, the output of step 2.3.2 is input into the integrated model for identification and classification. The integrated model includes a decision tree and an XGboost model. The majority voting mechanism is used to vote on the results trained by the decision tree and the XGboost model, and the most common category is selected as the prediction output to further obtain the evaluation result.
[0022] Furthermore, the construction of the decision tree includes the following steps: the first step is to select an attribute as the root node of the tree; the second step is to divide the data set into several subsets according to the value of the attribute; the third step is to repeat the above node selection and division process for each divided subset until the preset stop condition is met; the construction of the XGboost model includes the following steps: the first step is to initialize a basic learner; the second step is to calculate its negative gradient for the training sample; the third step is to use this negative gradient value as the objective function for training the next basic learner; the fourth step is to integrate the basic learner in the third step into the XGboost model; the fifth step is to repeat the second step to the fourth step until the preset maximum number of iterations is reached or the stop condition is triggered.
[0023] Further, in step 4, the specific steps are as follows:
[0024] Step 4.1, feature extraction: First, the test sample is input into the spatial feature extraction module for spatial feature extraction, and then the temporal feature extraction is performed through the temporal feature extraction module to obtain the input of step 4.2;
[0025] Step 4.2, anomaly detection: Take the features extracted in step 4.1 as input and use the ensemble learning model of decision tree and XGBoost for classification evaluation.
[0026] Further, in step 3, the evaluation index is calculated as follows:
[0027] The accuracy calculation formula is:
[0028] The calculation formula for accuracy is:
[0029] The calculation formula for recall is:
[0030] The calculation formula of F1 score is
[0031] In the formula: TP is the true positive, that is, the number of abnormal records correctly classified; TN is the true negative, that is, the number of normal records correctly classified; FP is the false positive, that is, the number of normal records misclassified; FN is the false negative, that is, the number of abnormal records misclassified.
[0032] Furthermore, the existing abnormal traffic detection model is a network abnormal traffic detection model based on CNN, a network abnormal traffic detection model based on CNN-LSTM, and a network abnormal traffic detection model based on CNN-BiLSTM.
[0033] Compared with the prior art, the present invention proposes a network abnormal traffic detection method based on ensemble learning and feature fusion, and its beneficial effects are mainly reflected in the following three aspects:
[0034] 1. In the key link of feature extraction, the NATDBELFF abnormal traffic detection model of the present invention innovatively integrates the CNN and Transformer architectures to achieve efficient capture and fusion of spatial features. The features extracted by the CNN and Transformer models are unique and complementary. The fusion of the two greatly improves the overall classification performance and effectively enhances the model's generalization ability for unseen data. In addition, the present invention also introduces BiLSTM to capture the temporal characteristics between data, comprehensively considers the correlation and influence between the previous and subsequent attribute information, and makes the feature representation more complete and accurate.
[0035] 2. In the NATDBELFF abnormal traffic detection model, the present invention innovatively uses the integration strategy of decision tree and XGboost model to achieve accurate identification and classification of features, significantly improving the accuracy and stability of the model.
[0036] 3. The NATDBELFF abnormal traffic detection model designed by the present invention uses a unified set of evaluation indicators (including accuracy, precision, recall and F1 score) for performance evaluation. Experiments are conducted on three different datasets, KDDCup99, NSL-KDD and UNSW-NB15, and compared with existing models such as CNN, CNN-LSTM and CNN-BiLSTM. The experimental results show that in most test scenarios, the model proposed by the present invention shows excellent performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural diagram of the NATDBELFF abnormal traffic detection model in the present invention;
[0038] Figure 2 It is a structural diagram of the spatial feature extraction module in the present invention;
[0039] Figure 3 It is a structural diagram of the temporal feature extraction module in the present invention;
[0040] Figure 4 The algorithm of the NATDBELFF abnormal traffic detection model in the present invention in the training phase and the testing phase;
[0041] Figure 5 This is the data set used in the NATDBELFF abnormal traffic detection model in the present invention;
[0042] Figure 6It is a comparison chart of experimental results of the NATDBELFF abnormal traffic detection model in the present invention and the existing abnormal traffic detection model;
[0043] Figure 7 This is the accuracy effect diagram of the benchmark model CNN-BiLSTM in the present invention after 50 iterations;
[0044] Figure 8 This is a graph showing the accuracy of the NATDBELFF abnormal traffic detection model in the present invention after 50 iterations. Specific implementation methods
[0046] In order to better understand the present invention, Figures 1 to 8 The present invention is further illustrated by the following examples, but the present invention is not limited thereto.
[0047] As attached Figure 1 As shown, a network abnormal traffic detection method based on integrated learning and feature fusion, the NATDBELFF abnormal traffic detection model proposed by the present invention is composed of a NATDBELFF abnormal traffic detection model including a data preprocessing module, a feature extraction module, and an anomaly detection module, wherein the feature extraction module includes a spatial feature extraction module and a temporal feature extraction module. 1. The data preprocessing module is mainly used to improve the quality, availability and applicability of data to ensure the accuracy and effectiveness of subsequent analysis and modeling; 2. The feature extraction module uses CNN and Transformer structures to extract and fuse spatial features, and then uses BiLSTM to extract the temporal features of the data; 3. The anomaly detection module uses DT and XGBoost models for integration, identifies and classifies feature information, and completes anomaly detection.
[0048] As attached Figure 1 and 4 As shown, the specific implementation steps of network traffic anomaly detection are as follows:
[0049] Step 1: Data preprocessing: The captured network traffic data is digitized and normalized using the data preprocessing module and converted into matrices as training samples and test samples.
[0050] In this embodiment, the specific steps of the data preprocessing module are as follows:
[0051] Step 1.1, numerical processing: The non-numerical features in the network traffic data are processed using the one-hot encoding method to obtain a data set with obvious feature value range differences as the input of step 1.2;
[0052] Step 1.2, normalization: Normalize the data set obtained in step 1.1 to obtain the data network, that is, the eigenvalues in the interval [0,1];
[0053] Step 1.3, convert the data network dimension into a matrix, that is, generate training samples in the corresponding grayscale image format.
[0054] Step 2, model construction and training: Step 2.1, training sample loading: use the deep learning framework Pytorch1.13.1 to load the training samples, and use DataLoader to load the training samples; Step 2.2, model construction, use PyTorch to build a NATDBELFF abnormal traffic detection model, the NATDBELFF abnormal traffic detection model includes a data preprocessing module, a feature extraction module, and anomaly detection module, wherein the feature extraction module includes a spatial feature extraction module and a temporal feature extraction module, Step 2.3, model training, input the training samples into the NATDBELFF abnormal traffic detection model for training.
[0055] Step 3, model performance evaluation: Use accuracy, precision, recall, and F1 score to compare with the existing abnormal traffic detection model to measure the performance of the NATDBELFF abnormal traffic detection model. If the four evaluation indicators of the NATDBELFF abnormal traffic detection model are better than the existing abnormal traffic detection model, execute step 4, otherwise, return to step 2.3 to continue training. The existing abnormal traffic detection models are CNN-based network abnormal traffic detection model, CNN-LSTM-based network abnormal traffic detection model, and CNN-BiLSTM-based network abnormal traffic detection model.
[0056] In this embodiment, the evaluation index is calculated as follows:
[0057] The accuracy calculation formula is:
[0058] The calculation formula for accuracy is:
[0059] The calculation formula for recall is:
[0060] The calculation formula of F1 score is
[0061] In the formula: TP is the true positive, that is, the number of abnormal records correctly classified; TN is the true negative, that is, the number of normal records correctly classified; FP is the false positive, that is, the number of normal records misclassified; FN is the false negative, that is, the number of abnormal records misclassified.
[0062] Step 4: Detection of network traffic: Input the training samples preprocessed in step 1 into the trained NATDBELFF abnormal traffic detection model for detection.
[0063] In this embodiment, the specific steps of detecting the network traffic are as follows:
[0064] Step 4.1, feature extraction: First, the test sample is input into the spatial feature extraction module for spatial feature extraction, and then the temporal feature extraction is performed through the temporal feature extraction module to obtain the input of step 4.2;
[0065] Step 4.2, anomaly detection: Take the features extracted in step 4.1 as input and use the ensemble learning model of decision tree and XGBoost for classification evaluation.
[0066] In the above embodiment, the model training process is as follows: Step 2.3.1, as shown in the attached Figure 2 As shown in the figure, in the spatial feature extraction module, the training samples are input into CNN to obtain spatial local features, and the training samples are input into Transformer to obtain spatial global features. In CNN, the training samples are processed by the following layers: the convolution layer accurately extracts local information, the maximum pooling layer screens key features, the batch normalization layer suppresses internal covariate shifts, and the loss layer improves the generalization ability of the model to capture local spatial features in the training samples. In Transformer, the attention mechanism is used to capture the spatial global features of the training samples. The features extracted by CNN and Transformer are concatenated and fused to obtain all the spatial features of the training samples.
[0067] Step 2.3.2, as attached Figure 3 As shown, in the time series feature extraction module, the dimension of the training sample obtained in step 2.3.1 is fixed to 70 and input into the bidirectional long short-term memory network, and the past and future time feature information of the training sample is extracted from the forward hidden layer and the backward hidden layer of the bidirectional long short-term memory network;
[0068] Step 2.3.3, in the anomaly detection module, the output of step 2.3.2 is input into the integrated model for identification and classification. The integrated model includes a decision tree and an XGboost model. The majority voting mechanism is used to vote on the results trained by the decision tree and the XGboost model, and the most common category is selected as the prediction output to further obtain the evaluation result.
[0069] In the above embodiment, the construction of the decision tree includes the following steps: the first step is to select an attribute as the root node of the tree; the second step is to divide the data set into several subsets according to the value of the attribute; the third step is to repeat the above node selection and division process for each divided subset until the preset stop condition is met; the construction of the XGboost model includes the following steps: the first step is to initialize a basic learner; the second step is to calculate its negative gradient for the training sample; the third step is to use this negative gradient value as the objective function for training the next basic learner; the fourth step is to integrate the basic learner in the third step into the XGboost model; the fifth step is to repeat the second step to the fourth step until the preset maximum number of iterations is reached or the stop condition is triggered.
[0070] In order to verify the effectiveness of the NATDBELFF abnormal traffic detection model proposed in this invention, we conducted a large number of experiments to evaluate the NATDBELFF abnormal traffic detection model.
[0071] As attached Figure 5 As shown in the figure, we use three different datasets, KDDCup99, NSL-KDD and UNSW-NB15, to conduct experiments on the NATDBELFF abnormal traffic detection model and existing models such as CNN, CNN-LSTM, and CNN-BiLSTM; as shown in the attached Figure 6 As shown in the Appendix, we evaluate the results by using a unified set of evaluation metrics (accuracy, precision, recall, and F1 score). Figure 7-8 As shown in Figure 2, we also conduct ablation experiments on the NATDBELFF abnormal traffic detection model.
[0072] In summary, the network abnormal traffic detection method based on ensemble learning and feature fusion proposed in the present invention has strong performance and has certain advantages in accuracy compared with existing methods.
[0073] The above shows and describes the main features and advantages of the present invention. For those skilled in the art, it is obvious that the specific implementation of the present invention is not limited to the details of the above exemplary embodiments, and the creative ideas and design ideas of the present invention can be realized in other specific forms without departing from the spirit or basic features of the present invention, which should be equivalent to the protection scope disclosed in the technical solution of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended to include all changes within the meaning and scope of the equivalent elements of the claims in the present invention.
[0074] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A network abnormal traffic detection method based on ensemble learning and feature fusion, Features: The following steps are involved: Step 1: Data preprocessing: The captured network traffic data is digitized and normalized using the data preprocessing module and converted into matrices as training samples and test samples; Step 2, model construction and training: Step 2.1, training sample loading: use the deep learning framework Pytorch1.13.1 to load the training samples, and use DataLoader to load the training samples; Step 2.2, model construction, use PyTorch to build the NATDBELFF abnormal traffic detection model, the NATDBELFF abnormal traffic detection model includes a data preprocessing module, a feature extraction module, and anomaly detection module, The feature extraction module includes a spatial feature extraction module and a temporal feature extraction module. Step 2.3: Model training: input the training samples into the NATDBELFF abnormal traffic detection model for training; Step 3, model performance evaluation: Use accuracy, precision, recall, and F1 score to compare with the existing abnormal traffic detection model to measure the performance of the NATDBELFF abnormal traffic detection model. If the four evaluation indicators of the NATDBELFF abnormal traffic detection model are better than the existing abnormal traffic detection model, execute step 4, otherwise, return to step 2.3 to continue training; Step 4: Detection of network traffic: Input the training samples preprocessed in step 1 into the trained NATDBELFF abnormal traffic detection model for detection.
2. According to claim 1, a network abnormal traffic detection method based on ensemble learning and feature fusion, Features: In step 1, the specific steps of the data preprocessing module are as follows: Step 1.1, numerical processing: The non-numerical features in the network traffic data are processed using the one-hot encoding method to obtain a data set with obvious feature value range differences as the input of step 1.2; Step 1.2, normalization: Normalize the data set obtained in step 1.1 to obtain the data network, that is, the eigenvalues in the interval [0,1]; Step 1.3, convert the data network dimension into a matrix, that is, generate training samples in the corresponding grayscale image format.
3. According to claim 2, a network abnormal traffic detection method based on ensemble learning and feature fusion, Features: In step 2.3, the specific steps of the training process are as follows: Step 2.3.1, in the spatial feature extraction module, input the training samples into CNN to obtain spatial local features, and input the training samples into Transformer to obtain spatial global features; in CNN, the training samples are processed by the following layers: the convolution layer accurately extracts local information, the maximum pooling layer screens key features, the batch normalization layer suppresses internal covariate shifts, and the dropout layer improves the generalization ability of the model to capture local spatial features in the training samples; in Transformer, the attention mechanism is used to capture the spatial global features of the training samples; the features extracted by CNN and Transformer are concatenated and fused to obtain all the spatial features of the training samples; Step 2.3.2, in the time series feature extraction module, the dimension of the training sample obtained in step 2.3.1 is fixed to 70 and input into the bidirectional long short-term memory network, and the past and future time feature information of the training sample is extracted from the forward hidden layer and the backward hidden layer of the bidirectional long short-term memory network; Step 2.3.3, in the anomaly detection module, the output of step 2.3.2 is input into the integrated model for identification and classification. The integrated model includes a decision tree and an XGboost model. The majority voting mechanism is used to vote on the results trained by the decision tree and the XGboost model, and the most common category is selected as the prediction output to further obtain the evaluation result.
4. According to claim 3, a network abnormal traffic detection method based on ensemble learning and feature fusion, Features: The construction of a decision tree includes the following steps: First, select an attribute as the root node of the tree; The second step is to divide the data set into several subsets according to the value of the attribute; the third step is to repeat the above node selection and division process for each divided subset until the preset stop condition is met; the construction of the XGboost model includes the following steps: the first step is to initialize a basic learner; the second step is to calculate its negative gradient for the training sample; the third step is to use this negative gradient value as the objective function to train the next basic learner; the fourth step is to integrate the basic learner in the third step into the XGboost model; Step 5: Repeat steps 2 to 4 until the preset maximum number of iterations is reached or the stop condition is triggered.
5. A network abnormal traffic detection method based on ensemble learning and feature fusion according to any one of claims 1 to 4, Features: In step 4, the specific steps are as follows: Step 4.1, feature extraction: First, the test sample is input into the spatial feature extraction module for spatial feature extraction, and then the temporal feature extraction is performed through the temporal feature extraction module to obtain the input of step 4.2; Step 4.2, anomaly detection: Take the features extracted in step 4.1 as input and use the ensemble learning model of decision tree and XGBoost for classification evaluation.
6. According to claim 5, a method for detecting abnormal network traffic based on ensemble learning and feature fusion, Features: In step 3, the evaluation index is calculated as follows: The accuracy calculation formula is: The calculation formula for accuracy is: The calculation formula for recall is: The calculation formula of F1 score is In the formula: TP is the true positive, that is, the number of abnormal records correctly classified; TN is the true negative, that is, the number of normal records correctly classified; FP is the false positive, that is, the number of normal records misclassified; FN is the false negative, that is, the number of abnormal records misclassified.
7. According to claim 6, a method for detecting abnormal network traffic based on ensemble learning and feature fusion, Features: The existing abnormal traffic detection models are a network abnormal traffic detection model based on CNN, a network abnormal traffic detection model based on CNN-LSTM, and a network abnormal traffic detection model based on CNN-BiLSTM.
Citation Information
Cited By
Integrated single classification abnormal traffic detection method and system based on width network
CN119561791A
Network situation prediction method based on spatial-temporal characteristics and XGBOOST model
CN119814388A
Computer network security data processing method and system based on artificial intelligence
CN120934905A
