A computer network intrusion detection method and system
By combining the pre-training model of residual neural network, bidirectional long short-term memory network and deep neural network, the problem of reduced performance and insufficient generalization ability of traditional network traffic anomaly detection methods in complex environments is solved, achieving higher detection accuracy. Safety and robustness ensure network security.
Patent Information
- Application Number
- CN202410789093.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-19
AI Technical Summary
In the face of complex network environments and explosive growth of data, traditional network traffic anomaly detection methods have reduced model performance and insufficient generalization capabilities, and deep learning methods have low detection accuracy and false alarm rates when processing large amounts of complex network traffic data. High, unable to fully exploit the rich information of traffic data.
Using a pre-trained network traffic anomaly detection model, combined with residual neural network, bidirectional long short-term memory network and deep neural network, it captures spatial features and temporal patterns of different scales through the combination of multiple models, and uses pre-processing and feature extraction technology to improve Detection accuracy and robustness, and reducing training time through pre-trained models to adapt to actual network environments.
It improves the accuracy and robustness of network traffic anomaly detection, enhances the generalization ability of the model, and can detect potential network intrusions in real-time or near real-time to ensure network security.
Smart Images

Figure CN118368146B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a computer network intrusion detection method and system. Background Art
[0002] As one of the key technical support means for network security protection, network traffic anomaly detection plays an important role. By processing and analyzing network traffic data, abnormal traffic and potential attack behaviors can be discovered in time. Traditional network traffic anomaly detection is based on rules to filter massive traffic information, but the dangerous information that can be mined is limited. As the means of attack become more and more hidden, traditional methods can no longer meet the safety requirements of power systems. In recent years, machine learning algorithms have been widely used in network traffic anomaly detection, and the recognition accuracy has been improved to a certain extent. However, the machine learning model has a small number of hidden layers and a single structure. It lacks an essential understanding of the behavior patterns of abnormal and normal traffic and cannot make full use of the rich information of traffic data. As a result, in the face of complex network environments and explosive data growth, the model performance is reduced and the generalization ability is also weak. The continuous evolution of deep learning technology has made the application of network traffic anomaly detection integrated with it more and more common. Although deep learning methods can extract data features through multiple hidden layers, they still have problems such as low detection accuracy, high false alarm rate and insufficient generalization ability in processing large amounts of complex network traffic data. Summary of the invention
[0003] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a computer network intrusion detection method and system.
[0004] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0005] In a first aspect, an embodiment of the present invention provides a computer network intrusion detection method, comprising:
[0006] S1. Obtain computer network traffic data;
[0007] S2, inputting the acquired computer network traffic data into a pre-trained network traffic anomaly detection model to obtain a detection result;
[0008] Among them, the network traffic anomaly detection models include residual neural network, bidirectional long short-term memory network, and deep neural network;
[0009] The pre-trained network traffic anomaly detection model is obtained by pre-training the network traffic anomaly detection model using a training network traffic dataset;
[0010] The training network traffic dataset is the intrusion detection dataset CICIDS2017.
[0011] Preferably, the method further comprises before S1:
[0012] S0. Obtain a training network traffic data set, and based on the training network traffic data set, train a pre-acquired network traffic anomaly detection model to obtain a pre-trained network traffic anomaly detection model.
[0013] Preferably, the network traffic anomaly detection model includes a residual neural network, a first structure, and a deep neural network in sequence;
[0014] The first structure includes in sequence: 2 bidirectional long short-term memory network structures;
[0015] Among them, the bidirectional long short-term memory network structure is a bidirectional long short-term memory network, or the bidirectional long short-term memory network structure includes a regularization layer and a bidirectional long short-term memory network connected in sequence.
[0016] Preferably,
[0017] There is also a shape adjustment layer between the two bidirectional long short-term memory network structures in the first structure.
[0018] Preferably, the S0 specifically includes:
[0019] S01. Acquire a training network traffic data set, and preprocess the training network traffic data set to obtain a preprocessed training network traffic data set;
[0020] S02, inputting each flow data in the preprocessed training network flow data set into the residual neural network in the network flow anomaly detection model, and the residual neural network obtains intermediate features corresponding to the network flow data;
[0021] S03, the intermediate features corresponding to the network traffic data are sequentially input into the first structure, and the first structure analyzes the first network traffic data sequence to obtain time series data features;
[0022] The first network traffic data sequence sequentially includes the intermediate features of each traffic data in the entire preprocessed training network traffic data set;
[0023] S04, the deep neural network performs classification and regression processing on the time series data features, and performs softmax processing on the features after the classification and regression processing to obtain a classification result;
[0024] S05, repeat S01-S04 until a pre-specified training end condition is met, and a pre-trained network traffic anomaly detection model is obtained;
[0025] The pre-specified training end condition is: the loss function of the network traffic anomaly detection model converges.
[0026] Preferably,
[0027] The preprocessing includes: data cleaning, feature digitization, feature normalization and data resampling.
[0028] Preferably,
[0029] The residual neural network has 34 layers, including 33 convolutional layers and 1 fully connected layer;
[0030] Among them, the first convolution layer uses 7×7 convolution;
[0031] The remaining convolutional layers use 3×3 convolution;
[0032] The size of the residual neural network traffic data input into the network traffic anomaly detection model is (78, 1).
[0033] Preferably, the loss function of the network traffic anomaly detection model is cross entropy loss.
[0034] Preferably,
[0035] Wherein, in the process of training the network traffic anomaly detection model, the parameters in the network traffic anomaly detection model are adjusted by using the adam optimization function, so as to minimize the loss function of the network traffic anomaly detection model;
[0036] The learning rate of the network traffic anomaly detection model is 0.0001.
[0037] On the other hand, this embodiment provides a computer network intrusion detection system, including:
[0038] at least one processor; and
[0039] At least one memory is communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the computer network intrusion detection method as described in the first aspect.
[0040] The beneficial effects of the present invention are as follows: a computer network intrusion detection method of the present invention adopts a combination of multiple models including residual neural network, bidirectional long short-term memory network and deep neural network. These models can respectively capture spatial features of different scales and forward and backward time series patterns, and their comprehensive utilization improves the accuracy and robustness of network traffic anomaly detection.
[0041] In addition, a computer network intrusion detection method of the present invention uses a pre-trained network traffic anomaly detection model, which can reduce the model training time and improve the performance and generalization ability of the network traffic anomaly detection model. By pre-training the model with a training network traffic data set, it can better adapt to the data characteristics and abnormal behaviors in the actual network environment.
[0042] A computer network intrusion detection method of the present invention uses the intrusion detection dataset CICIDS2017 for training, which is a comprehensive dataset containing various types of network traffic and can better cover various abnormal situations that may occur in the network environment, thereby improving the generalization ability of the network traffic anomaly detection model.
[0043] A computer network intrusion detection method of the present invention, models such as residual neural network and bidirectional long short-term memory network can extract the characteristics of network traffic data from different levels and angles, including time series characteristics, spatial characteristics and spatiotemporal relationship characteristics, so as to more comprehensively describe the characteristics of network traffic data and improve the accuracy and robustness of network traffic anomaly detection.
[0044] A computer network intrusion detection method of the present invention can perform network traffic anomaly detection on network traffic data in real time or near real time due to the high efficiency and parallelism of the deep learning model, timely discover and respond to potential network intrusion behaviors, and ensure network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flow chart of a computer network intrusion detection method of the present invention;
[0046] Figure 2 A flowchart of a computer network intrusion detection method in an embodiment of the present invention;
[0047] Figure 3 Schematic diagram of the network traffic anomaly detection model structure in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0049] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0050] Embodiment 1
[0051] See also Figure 1 , this embodiment provides a computer network intrusion detection method, including:
[0052] S1. Obtain computer network traffic data;
[0053] S2, inputting the acquired computer network traffic data into a pre-trained network traffic anomaly detection model to obtain a detection result;
[0054] Among them, the network traffic anomaly detection models include residual neural network, bidirectional long short-term memory network, and deep neural network;
[0055] The pre-trained network traffic anomaly detection model is obtained by pre-training the network traffic anomaly detection model using a training network traffic dataset;
[0056] The training network traffic dataset is the intrusion detection dataset CICIDS2017.
[0057] The network traffic anomaly detection model includes a residual neural network, a first structure, and a deep neural network in sequence;
[0058] The first structure includes in sequence: 2 bidirectional long short-term memory network structures;
[0059] Among them, the bidirectional long short-term memory network structure is a bidirectional long short-term memory network, or the bidirectional long short-term memory network structure includes a regularization layer and a bidirectional long short-term memory network connected in sequence.
[0060] The residual neural network has 34 layers, including 33 convolutional layers and 1 fully connected layer;
[0061] Among them, the first convolution layer uses 7×7 convolution;
[0062] The remaining convolutional layers use 3×3 convolution;
[0063] The size of the residual neural network traffic data input into the network traffic anomaly detection model is (78, 1).
[0064] The loss function of the network traffic anomaly detection model is cross entropy loss. In this embodiment, cross entropy loss is used as the loss function of the network traffic anomaly detection model, which can effectively guide the training of the model and improve the classification accuracy of the model.
[0065] A computer network intrusion detection method in this embodiment uses a pre-trained network traffic anomaly detection model, which can reduce the model training time and improve the performance and generalization ability of the model. By pre-training the model with a training network traffic data set, it can better adapt to the data characteristics and abnormal behaviors in the actual network environment. A computer network intrusion detection method in this embodiment uses the intrusion detection data set CICIDS2017 for training, which is a comprehensive data set containing multiple types of network traffic, which can better cover various abnormal situations that may occur in the network environment, thereby improving the generalization ability of the model. In this embodiment, models such as residual neural networks and bidirectional long short-term memory networks can extract the characteristics of network traffic data from different levels and angles, including time series features, spatial features, and spatiotemporal relationship features, thereby more comprehensively describing the characteristics of network traffic data and improving the accuracy and robustness of network traffic anomaly detection.
[0066] Embodiment 2
[0067] See also Figure 2 , this embodiment provides a computer network intrusion detection method, including:
[0068] Step 100: Obtain a training network traffic data set, and train a pre-acquired network traffic anomaly detection model based on the training network traffic data set to obtain a pre-trained network traffic anomaly detection model. In this embodiment, the training network traffic data set is an intrusion detection data set CICIDS2017, which contains multiple types of network traffic data, can better cover different network anomaly situations, and improve the generalization ability of the model.
[0069] In this embodiment, the intrusion detection dataset CICIDS2017 (Canadian Institute for Cybersecurity Intrusion Detection Systems 2017 Dataset) is a dataset used for network intrusion detection research, which was released by the Canadian Institute for Cybersecurity in 2017. This dataset is network traffic data captured in a real network environment and is used to evaluate and verify the performance of intrusion detection systems. It contains multiple types of network traffic, including normal traffic and various types of intrusion traffic, covering common network attacks and abnormal behaviors.
[0070] Among them, the network traffic anomaly detection models include residual neural network, bidirectional long short-term memory network, and deep neural network;
[0071] See also Figure 3, the network traffic anomaly detection model described in this embodiment includes a residual neural network, a first structure, and a deep neural network in sequence;
[0072] The step 100 specifically includes:
[0073] Step 101: Acquire a training network traffic data set, and preprocess the training network traffic data set to obtain a preprocessed training network traffic data set;
[0074] The preprocessing includes: data cleaning, feature digitization, feature normalization and data resampling.
[0075] In this embodiment, preprocessing the training network traffic data set includes steps such as cleaning data, feature digitization, feature normalization, and data resampling. These preprocessing steps can make the original data more standardized and easier to process, which is beneficial to the stability and convergence speed of model training.
[0076] Step 102: input each flow data in the preprocessed training network flow data set into the residual neural network in the network flow anomaly detection model, and the residual neural network structure obtains intermediate features corresponding to the network flow data;
[0077] In this embodiment, the residual neural network has 34 layers, including 33 convolutional layers and 1 fully connected layer;
[0078] Among them, the first convolution layer uses 7×7 convolution; the remaining convolution layers use 3×3 convolution;
[0079] In the residual neural network, nonlinear mapping is introduced through the activation of the ReLU function. Linear functions cannot solve complex nonlinear problems, while the ReLU function can keep the output equal to the input when the input is greater than zero, thereby achieving nonlinear transformation. At the same time, the residual neural network can learn more complex feature relationships and alleviate the problem of gradient explosion or gradient disappearance.
[0080] In this embodiment, the size of the residual neural network traffic data input into the network traffic anomaly detection model is (78, 1).
[0081] Step 103: The intermediate features corresponding to the network traffic data are sequentially input into the first structure, and the first structure analyzes the first network traffic data sequence to obtain time series data features;
[0082] The first structure includes in sequence: 2 bidirectional long short-term memory network structures;
[0083] Among them, the bidirectional long short-term memory network structure is a bidirectional long short-term memory network, or the bidirectional long short-term memory network structure includes a regularization layer and a bidirectional long short-term memory network connected in sequence.
[0084] It should be noted that the bidirectional long short-term memory network in the first structure in this embodiment is a deep learning model suitable for sequence data, which has the ability to remember long-term dependencies, and can effectively capture the previous and next context information in the sequence data through the bidirectional structure. The addition of a regularization layer in the bidirectional long short-term memory network structure can help reduce the risk of overfitting and improve the generalization ability of the model, thereby further improving the performance of the network traffic anomaly detection model. In this embodiment, two independent bidirectional long short-term memory network structures provide more parameters and hidden layer states, enhancing the expressive power of the model. This helps the model better adapt to complex network traffic patterns and characteristics, and improves the accuracy and robustness of network traffic anomaly detection. The two independent bidirectional long short-term memory network structures can complement each other, further improving the model's ability to learn long-term dependencies.
[0085] The first network traffic data sequence sequentially includes the intermediate features of each traffic data in the entire preprocessed training network traffic data set;
[0086] The residual neural network and the first structure are used to extract features and analyze time series of network traffic data to obtain time series data features. This feature extraction method can effectively capture the time series patterns and features of network traffic data, providing valuable information for subsequent classification and regression processing.
[0087] Step 104: The deep neural network performs classification and regression processing on the time series data features, and performs softmax processing on the features after the classification and regression processing to obtain a classification result;
[0088] In this embodiment, a combination of multiple models such as residual neural network and deep neural network is adopted, and their respective advantages are comprehensively utilized to improve the accuracy and robustness of network traffic anomaly detection.
[0089] The deep neural network of this embodiment has multiple hidden layers, so that it can better handle complex nonlinear relationships and abstract features. Each hidden layer can be regarded as a series of transformations of the data input into the deep neural network, and each layer can extract features of different levels. By connecting multiple hidden layers in series, the deep neural network can learn more complex feature representations of the data layer by layer, thereby improving the expressiveness and performance of the model.
[0090] Step 105, repeating steps 101 to 104 until a pre-specified training end condition is met, thereby obtaining a pre-trained network traffic anomaly detection model;
[0091] The pre-specified training end condition is: the loss function of the network traffic anomaly detection model converges. The loss function of the network traffic anomaly detection model is a cross entropy loss.
[0092] The network traffic anomaly detection model in this embodiment uses a residual neural network to extract features from the data input into the network traffic anomaly detection model, and then uses a first structure including two bidirectional long short-term memory network structures to perform sequence prediction to obtain the expected results, and finally uses a deep neural network to optimize the error and loss.
[0093] Among them, during the training process of the network traffic anomaly detection model, the adam optimization function is used to adjust the parameters in the network traffic anomaly detection model, so as to minimize the loss function of the network traffic anomaly detection model; the learning rate of the network traffic anomaly detection model is 0.0001. The learning rate in this implementation helps to avoid oscillation and divergence in the model training process, and improves the stability and convergence speed of the model.
[0094] In this embodiment, cross entropy loss is used as the loss function of the network traffic anomaly detection model, which is a commonly used loss function for classification tasks and can effectively guide the training of the model. At the same time, the adam optimization function is used to adjust the parameters in the network traffic anomaly detection model, which helps to accelerate the convergence speed of the model and optimize the training results.
[0095] In this embodiment, the network traffic anomaly detection model combines the residual neural network (ResNet) and the bidirectional long short-term memory network (BiLSTM), and combines them through the design of a multi-layer structure. This combination utilizes the ability of the residual neural network to extract spatial information and the modeling ability of the bidirectional long short-term memory network to model time series data, thereby more comprehensively capturing the features and patterns in the network traffic data. In this embodiment, a bidirectional long short-term memory network structure is adopted in the network traffic anomaly detection model. This structure can effectively capture the long-term dependencies in the time series data, and improves the efficiency of the model's utilization of historical information and future information through bidirectional connections, thereby improving the accuracy of network traffic anomaly detection. In addition, this embodiment introduces a regularization layer in the bidirectional long short-term memory network structure, which helps control the complexity of the model, prevents overfitting, and helps improve the generalization ability of the model. Finally, the network traffic anomaly detection model in this embodiment adopts a multi-layer structure, including a residual neural network, a bidirectional long short-term memory network, and a deep neural network. The design of this multi-layer structure can make full use of the advantages of different models, and through layer-by-layer abstraction and feature extraction, the model can better understand and represent network traffic data.
[0096] Step 200: Obtain computer network traffic data;
[0097] Step 300: input the acquired computer network traffic data into a pre-trained network traffic anomaly detection model to obtain a detection result;
[0098] In another implementation of this embodiment, there is a shape adjustment layer between the two bidirectional long short-term memory network structures in the first structure. In this embodiment, the shape adjustment layer can adjust the data shape between the two bidirectional long short-term memory networks so that the two network structures can be effectively connected and information can be transferred. Since the hidden states generated by the bidirectional long short-term memory network may have different dimensions, the shape adjustment layer can convert them into a unified shape for the next step of processing. In this embodiment, the shape adjustment layer helps to ensure that the hidden states between the two bidirectional long short-term memory network structures have the same dimensions and feature representations, thereby better integrating the information between the two network structures. This can improve the expression ability and performance of the model, so that the model can better learn and understand the characteristics of network traffic data. The shape adjustment layer can simplify the connection mode between the two bidirectional long short-term memory network structures, making the structure of the model clearer and more concise. By unifying the shape of the hidden state, the complexity of the network connection can be reduced, and the interpretability and trainability of the model can be improved. The shape adjustment layer can help reduce the computational burden and improve the operating efficiency of the model. By adjusting the data shape, the amount of calculation of the subsequent network layer can be reduced, and the training and reasoning speed of the model can be accelerated, thereby improving the real-time and response speed of network traffic anomaly detection.
[0099] The pre-trained network traffic anomaly detection model is obtained by pre-training the network traffic anomaly detection model using a training network traffic dataset.
[0100] In this embodiment, experiments are conducted using the intrusion detection dataset CICIDS2017, which contains benign and the latest common attacks, collected from a real network environment. For the intrusion detection dataset CICIDS2017, it constructs abstract behaviors of 25 users based on HTTP, HTTPS, FTP, SSH and email protocols. Data collection ended at 5 pm on Friday, July 7, 2017, for a total of 5 days. Benign data was collected on Monday, and 8 typical attacks such as DoS, Botnet, Heartbleed, WebAttack, Infiltration, and DDoS were collected from Tuesday to Friday. Due to the extremely small number of Heartbleed and Infiltration, these two types of attacks were discarded in the experiment. Finally, 7 types including Normal were experimented. For the input data, preprocessing operations are first performed, including feature digitization, feature normalization, numerical normalization and data resampling. The problem of imbalanced data in the minority class is solved by the data resampling algorithm Borderline-Smotel to improve the detection accuracy. 70% of the processed data is used as a training set and 30% as a test set for experiments. The experiments in this embodiment use a 64-bit Windows 10 operating system, an Intel(R) Core(TM) i7-12700 CPU, 12 GB of memory, an Nvidia GeForceGTX 3060 GPU, a Python 3.7 compilation environment, and a Pytorch 1.10.1+cu111 deep learning framework.
[0101] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0102] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0103] In the present invention, unless otherwise clearly specified and limited, when a first feature is “on” or “below” a second feature, it may be that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Moreover, when a first feature is “above”, “above” or “above” a second feature, it may be that the first feature is directly above or obliquely above the second feature, or it may simply mean that the first feature is higher in level than the second feature. When a first feature is “below”, “below” or “below” a second feature, it may be that the first feature is directly below or obliquely below the second feature, or it may simply mean that the first feature is lower in level than the second feature.
[0104] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0105] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may alter, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A computer network intrusion detection method, characterized in that: include: S1. Obtain computer network traffic data; S2, inputting the acquired computer network traffic data into a pre-trained network traffic anomaly detection model to obtain a detection result; Among them, the network traffic anomaly detection models include residual neural network, bidirectional long short-term memory network, and deep neural network; The pre-trained network traffic anomaly detection model is obtained by pre-training the network traffic anomaly detection model using a training network traffic dataset; The training network traffic dataset is the intrusion detection dataset CICIDS2017; The method further comprises before S1: S0. Obtain a training network traffic data set, and based on the training network traffic data set, train a pre-acquired network traffic anomaly detection model to obtain a pre-trained network traffic anomaly detection model; The network traffic anomaly detection model includes a residual neural network, a first structure, and a deep neural network in sequence; The first structure includes in sequence: 2 bidirectional long short-term memory network structures; Wherein, the bidirectional long short-term memory network structure is a bidirectional long short-term memory network, or the bidirectional long short-term memory network structure includes a regularization layer and a bidirectional long short-term memory network connected in sequence; The S0 specifically includes: S01. Acquire a training network traffic data set, and preprocess the training network traffic data set to obtain a preprocessed training network traffic data set; S02, inputting each flow data in the preprocessed training network flow data set into the residual neural network in the network flow anomaly detection model, and the residual neural network structure obtains intermediate features corresponding to the network flow data; S03, the intermediate features corresponding to the network traffic data are sequentially input into the first structure, and the first structure analyzes the first network traffic data sequence to obtain time series data features; The first network traffic data sequence sequentially includes the intermediate features of each traffic data in the entire preprocessed training network traffic data set; S04, the deep neural network performs classification and regression processing on the time series data features, and performs softmax processing on the features after the classification and regression processing to obtain a classification result; S05, repeat S01-S04 until a pre-specified training end condition is met, and a pre-trained network traffic anomaly detection model is obtained; The pre-specified training condition is that the loss function of the network traffic anomaly detection model converges.
2. The computer network intrusion detection method according to claim 1, characterized in that: There is also a shape adjustment layer between the two bidirectional long short-term memory network structures in the first structure.
3. The computer network intrusion detection method according to claim 2, characterized in that: The preprocessing includes: data cleaning, feature digitization, feature normalization and data resampling.
4. The computer network intrusion detection method according to claim 3, characterized in that: The residual neural network has 34 layers, including 33 convolutional layers and 1 fully connected layer; Among them, the first convolution layer uses 7×7 convolution; The remaining convolutional layers use 3×3 convolution; The size of the residual neural network traffic data input into the network traffic anomaly detection model is (78, 1).
5. The computer network intrusion detection method according to claim 4, characterized in that: The loss function of the network traffic anomaly detection model is cross entropy loss.
6. The computer network intrusion detection method according to claim 5, It is characterized in that in, In the process of training the network traffic anomaly detection model, an adam optimization function is used to adjust the parameters in the network traffic anomaly detection model so as to minimize the loss function of the network traffic anomaly detection model; The learning rate of the network traffic anomaly detection model is 0.0001.
7. A computer network intrusion detection system, characterized in that: include: at least one processor; as well as At least one memory is communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the computer network intrusion detection method according to any one of claims 1-6.
