Network security risk prediction method and system based on artificial intelligence

By extracting feature data and modal decomposition of network log information, we build an LSTM network model, which solves the problem of network security risks that are difficult to warn in advance in the existing technology, and achieves precise capture of network traffic changes and accurate risk assessment. Enhanced network security defense capabilities.

CN118659931AInactive Publication Date: 2024-09-17HEBEI SHENYAN INTELLIGENT TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411136399.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology is difficult to provide early warning of network security risks and fails to effectively predict and defend against potential network threats.

Method used

By reading network log information, collecting and dividing network data in time periods, extracting feature data, using artificial intelligence algorithms to perform modal decomposition, building an LSTM network model for prediction, and combining the weight analysis of feature data to determine network security risks.

Benefits of technology

It achieves precise capture of dynamic changes in network traffic, detects potential threats in a timely manner, improves the stability of the prediction model and the accuracy of risk assessment, can more accurately reflect the network status, and enhances network security defense.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659931A
    Figure CN118659931A
Patent Text Reader

Abstract

The invention discloses a network security risk prediction method and system based on artificial intelligence, and relates to the technical field of network security, and the method specifically comprises the steps: 1, reading network log information, collecting normal and abnormal network data, and dividing different time periods; step 2, based on an artificial intelligence algorithm, performing modal decomposition on the feature data according to time periods to obtain decomposition components of the feature data; 3, constructing a prediction model based on the LSTM network, and determining an updating mode of the internal state of the LSTM model; and 4, performing early warning and prediction on the network security risk based on the predicted values of the feature data in different time periods. Through the implementation of the scheme of the invention, the feature extraction of a large amount of network data can be quickly realized, and the accuracy and comprehensiveness of network security risk prediction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network security technology, and specifically relates to a network security risk prediction method and system based on artificial intelligence. Background Art

[0003] Artificial intelligence technology, especially advanced algorithms such as machine learning and deep learning, can process massive amounts of data, discover hidden patterns, abnormal behaviors, and potential threats, and provide strong support for network security defense.

[0004] Based on historical traffic data and current network status, AI can predict future trends in network traffic, including traffic peaks, abnormal traffic bursts, etc. Combining traffic analysis results with threat intelligence data, AI can assess potential network security risks, which helps security teams develop targeted defense strategies. Summary of the invention

[0005] The purpose of the present invention is to provide a network security risk prediction method and system based on artificial intelligence, which is used to solve the technical problem that it is difficult to provide early warning in the prior art.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions: Step 1: Read network log information, collect normal and abnormal network data and divide them into different time periods; collect network data by reading network log information, divide it into normal network data and abnormal network data according to whether there is a record of abnormal behavior in the network data, and extract feature data from the network data. The feature data includes: the number of traffic packets m, the size of traffic packets n, the traffic transmission speed v, the network interface x through which the traffic passes, and the firewall CPU usage rate b of the network interface; abnormal behavior refers to abnormal changes in feature data. The collected network data is processed through data cleaning. Based on the different network interfaces through which the traffic passes, the feature data is divided according to the network interface, and the feature data set is obtained as shown below: ; Among them, i represents different time periods, , , , They represent the change functions of the number of traffic packets, traffic packet size, traffic transmission speed, and firewall CPU usage of the network interface in time period i, respectively. The time periods are divided according to the average value of traffic change. The degree of traffic change in each time period is close. j represents the jth network interface.

[0007] The specific formula for the average flow rate change is as follows: ; Set the flow change threshold O, there are N time points within the time length t, there is time point k within the time length t, and k points The value is the largest, and the average flow change within time t is ,like , no processing is done, instead the duration t is divided into multiple sub-durations to ensure that each sub-duration satisfies the above relationship.

[0008] Step 2: Based on the artificial intelligence algorithm, the feature data is modally decomposed by time period to obtain the decomposed components of the feature data; the signal represented by the feature data is set as , Contains the corresponding signals of all feature data types at time point k in time period i, As the original signal, the original signal is decomposed by the CEEMD method. On the basis of the original signal, a group of white noise signals with opposite positive and negative relationships and the same amplitude are added to obtain two different sets of original signal component sets. The specific formula is as follows: ; ; in, is positive white noise, is negative white noise, c represents the number of times the white noise signal is added, and then the EMD decomposition method is used to and After decomposition, two groups of imf components are obtained, namely imf(+) and imf(-), where imf(+) is the average result of the component set with positive white noise added, and imf(-) is the average result of the component set with negative white noise added. Finally, the decomposition components of each feature data are obtained, and all the decomposition components are randomly divided into training set and control set according to time periods. The ratio of decomposition components contained in each time period in the training set and the control set is 4 to 1.

[0009] Step 3: Construct a prediction model based on the LSTM network and determine the update method of the internal state of the LSTM model; normalize the decomposition components in the training set and the control set, select Y decomposition components for each time period from the training set as input data, and input them into the initialized LSTM network for training. The LSTM network structure includes an input gate, an output gate, a forget gate, a state unit, and a loop unit; the new input information is maintained in the state unit after being determined by the input gate, and the state unit is connected to the loop unit so that the information in the state unit is linearly self-circulated through the loop unit. By presetting the weight value of the forget gate, the output gate controls whether to output. The output value function of each gate is determined based on the sigmoid function, the input vector, the hidden layer vector, and different weight coefficients, where the weight coefficients include: different bias weight coefficients for each gate, input weight coefficients, and loop weight coefficients of the input gate, forget gate, and output gate. The update method of the internal state of the LSTM model is determined based on the output value function of the input gate, forget gate, and output gate. The specific formula is as follows: ; in, represents the output function of the input layer, represents the output function of the forgetting layer, represents the sigmoid function, and They represent the bias weight coefficient and input weight coefficient of the LSTM update method respectively. These weight coefficients can be determined according to specific circumstances and requirements. Represents the output value of the LSTM network at time point k-1 within time period i.

[0010] Furthermore, for the output value of the LSTM network, the specific formula is as follows: ; in Represents the recurrent weight coefficient of the LSTM update method, Represents the output function of the output layer; The feature data of a time period is predicted through the LSTM network to obtain the predicted component of a time period, and the predicted value of the prediction model is compared with the true value in the control set.

[0011] The actual predicted error value is determined by comparing the predicted value with the true value. The specific method is as follows: ; AR represents the actual predicted error value, M represents the predicted M time points, and Represent the true value and predicted value at time point k respectively.

[0012] The predictive ability of the prediction model is measured by comparing the predicted value with the true value. The specific method is as follows: ; R represents the predictive ability value of the prediction model. The larger the value of R, the better the prediction performance of the model. , represents the average value of the true value at M time points, Indicates the accuracy threshold, which is determined based on the specific situation and needs on the basis of ensuring that R is greater than or equal to 0 .

[0013] Set the error value threshold and the prediction ability value threshold, compare the prediction value of the prediction model at M time points with the true value, and when the error value and the prediction ability value of the prediction model are greater than or equal to the corresponding threshold, complete the training of the prediction model, and use the trained prediction model to obtain the prediction values ​​of all feature data in different time periods.

[0014] Step 4: Based on the predicted values ​​of feature data in different time periods, early warning predictions are made for network security risks; the network log information corresponding to different network interfaces is analyzed to obtain the number of abnormal behaviors in each time period and the change trend of the real network data in each time period.

[0015] The actual network change trend in each time period corresponding to different network interfaces. The specific formula is as follows: ; in Indicates the change trend of normal network data of network interface j in time period i, where , , They respectively represent the weight coefficients of the number of traffic packets, the size of traffic packets, and the traffic transmission speed. By reading the abnormal network data corresponding to different network interfaces, the ratio of the number of traffic packets, the size of traffic packets, and the number of abnormal behaviors of traffic transmission speed in the abnormal behaviors of network data in each time period is obtained as the corresponding weight coefficient.

[0016] Based on the real network change trend of network interface j in time period i, the change range B of network interface j in time period i is obtained. The specific formula is as follows: ; in, represents the duration of time period i, represents the CPU usage of the firewall of network interface j in time period i, e represents the base of the logarithm of natural numbers, and x represents the integral variable.

[0017] According to the trained prediction model, predict the network change trend of different network interfaces in each time period, as well as the predicted value of the change range. Compare B with its predicted value based on the same network interface and the same time period. , determine whether the network interface has network security risks, set the change range threshold L, when B and The positive and negative relationship is opposite, judging whether the corresponding network interface has security risks. If the absolute value of the difference is greater than or equal to L, it is determined whether the corresponding network interface has a security risk.

[0018] Cybersecurity risk prediction based on artificial intelligence includes the following: Network log reading unit: collects network data by reading network log information, divides it into normal network data and abnormal network data according to whether there are records of abnormal behavior in the network data, extracts feature data from the network data, processes the collected network data through data cleaning, divides the feature data according to the network interface based on the different network interfaces through which the traffic passes, obtains a feature data set, and divides the time periods into different time periods by setting the average value of the traffic change.

[0019] Feature data decomposition unit: The feature data is represented as the original signal by time segment, and the original signal is decomposed by the CEEMD method. On the basis of the original signal, a group of white noise signals with opposite positive and negative relationships and the same amplitude are added to obtain two different sets of original signal components. Finally, the decomposed components of each feature data are obtained, and all the decomposed components are randomly divided into training set and control set according to time periods.

[0020] Prediction model construction unit: normalize the decomposition components in the training set and the control set, select Y decomposition components for each time period as input data, train the prediction model based on the LSTM network, predict the feature data of a time period through the LSTM network, obtain the prediction component of a time period, compare the predicted value of the prediction model with the true value in the control set, determine the actual prediction error value and prediction ability value, and determine whether the prediction model is trained by setting the error value threshold and the prediction ability value threshold.

[0021] Security risk prediction unit: By analyzing the network log information corresponding to different network interfaces, the number of abnormal behaviors in each time period and the change trend of the real network data in each time period are obtained. The network change range is obtained from the change trend of the network data. By comparing the predicted value of the change range with the actual value of the change range, it is determined whether each network interface has a network security risk.

[0022] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. The present invention divides time periods and performs predictive analysis on the characteristic data of different network interfaces in different time periods, so as to more finely capture the dynamic changes of network traffic, thereby timely discovering potential network security threats and taking corresponding protective measures; 2. The present invention decomposes the characteristic data by CEEMD and uses the decomposed components as the input of the prediction model, which can more accurately extract the complex patterns in the time series and perform effective prediction analysis on them, which helps to improve the stability and reliability of the prediction model in a complex environment; 3. The present invention predicts feature data based on the prediction model. By integrating multiple feature data and setting corresponding weights, it comprehensively considers multiple aspects of the network status. This multi-feature fusion method can more accurately reflect the actual status of the network, thereby improving the accuracy of risk assessment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A step diagram of a cybersecurity risk prediction method based on artificial intelligence is shown; Figure 2 A flow chart of prediction of feature data based on artificial intelligence algorithms is shown; Figure 3 The structural diagram of the network security risk prediction system based on artificial intelligence is shown. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] Example 1 like Figure 1 , Figure 2 As shown, the network security risk prediction method based on artificial intelligence provided in this embodiment specifically includes the following steps: Step 1: Read network log information, collect normal and abnormal network data and divide them into different time periods; collect network data by reading network log information, divide it into normal network data and abnormal network data according to whether there is a record of abnormal behavior in the network data, and extract feature data from the network data. The feature data includes: the number of traffic packets m, the size of traffic packets n, the traffic transmission speed v, the network interface x through which the traffic passes, and the firewall CPU usage rate b of the network interface; abnormal behavior refers to abnormal changes in feature data. The collected network data is processed through data cleaning. Based on the different network interfaces through which the traffic passes, the feature data is divided according to the network interface, and the feature data set is obtained as shown below: ; Among them, i represents different time periods, , , , They represent the change functions of the number of traffic packets, traffic packet size, traffic transmission speed, and firewall CPU usage of the network interface in time period i, respectively. The time periods are divided according to the average value of traffic change. The degree of traffic change in each time period is close. j represents the jth network interface.

[0027] The specific formula for the average flow rate change is as follows: ; Set the flow change threshold O, there are N time points within the time length t, there is time point k within the time length t, and k points The value is the largest, and the average flow change within time t is ,like , no processing is done, instead the duration t is divided into multiple sub-durations to ensure that each sub-duration satisfies the above relationship.

[0028] Step 2: Based on the artificial intelligence algorithm, the feature data is modally decomposed by time period to obtain the decomposed components of the feature data; the signal represented by the feature data is set as , Contains the corresponding signals of all feature data types at time point k in time period i, As the original signal, the original signal is decomposed by the CEEMD method. On the basis of the original signal, a group of white noise signals with opposite positive and negative relationships and the same amplitude are added to obtain two different sets of original signal component sets. The specific formula is as follows: ; ; in, is positive white noise, is negative white noise, c represents the number of times the white noise signal is added, in this embodiment, c is set to 400, and then the EMD decomposition method is used to and After decomposition, two groups of imf components are obtained, namely imf(+) and imf(-), where imf(+) is the average result of the component set with positive white noise added, and imf(-) is the average result of the component set with negative white noise added. Finally, the decomposition components of each feature data are obtained, and all the decomposition components are randomly divided into training set and control set according to time periods. The ratio of decomposition components contained in each time period in the training set and the control set is 4 to 1.

[0029] Step 3: Construct a prediction model based on the LSTM network and determine the update method of the internal state of the LSTM model; normalize the decomposition components in the training set and the control set, select Y decomposition components for each time period from the training set as input data, and input them into the initialized LSTM network for training. The LSTM network structure includes an input gate, an output gate, a forget gate, a state unit, and a loop unit; the new input information is maintained in the state unit after being determined by the input gate, and the state unit is connected to the loop unit so that the information in the state unit is linearly self-circulated through the loop unit. By presetting the weight value of the forget gate, the output gate controls whether to output. The output value function of each gate is determined based on the sigmoid function, the input vector, the hidden layer vector, and different weight coefficients, where the weight coefficients include: different bias weight coefficients for each gate, input weight coefficients, and loop weight coefficients of the input gate, forget gate, and output gate. The update method of the internal state of the LSTM model is determined based on the output value function of the input gate, forget gate, and output gate. The specific formula is as follows: ; in, represents the output function of the input layer, represents the output function of the forgetting layer, When it is equal to 1, the cell state at the previous moment is fully input into the cell; When it is equal to 0, all cell states at the previous moment are discarded. represents the sigmoid function, and Represent the bias weight coefficient and input weight coefficient of the LSTM update method respectively, and It is not fixed, but determined according to the network initialization and training process. Therefore, it is impossible to give a specific value as the initial value of these weight coefficients. Represents the output value of the LSTM network at time point k-1 within time period i.

[0030] Furthermore, for the output value of the LSTM network, the specific formula is as follows: ; in Represents the recurrent weight coefficient of the LSTM update method, Represents the output function of the output layer; The feature data of a time period is predicted through the LSTM network to obtain the predicted component of a time period, and the predicted value of the prediction model is compared with the true value in the control set.

[0031] The actual predicted error value is determined by comparing the predicted value with the true value. The specific method is as follows: ; AR represents the actual predicted error value, M represents the predicted M time points, and Represent the true value and predicted value at time point k respectively.

[0032] The prediction ability of the prediction model is measured by comparing the predicted value with the true value. The specific method is as follows: ; R represents the predictive ability value of the prediction model. The larger the value of R, the better the prediction performance of the model. , represents the average value of the true value at M time points, Indicates the accuracy threshold, which is determined based on the specific situation and needs on the basis of ensuring that R is greater than or equal to 0 ,For example: If R is equal to 1, the closer R is to 1, the better the prediction performance of the model.

[0033] Set the error value threshold and the prediction ability value threshold, compare the prediction value of the prediction model at M time points with the true value, and when the error value and the prediction ability value of the prediction model are greater than or equal to the corresponding threshold, complete the training of the prediction model, and use the trained prediction model to obtain the prediction values ​​of all feature data in different time periods.

[0034] Step 4: Based on the predicted values ​​of feature data in different time periods, early warning predictions are made for network security risks; the network log information corresponding to different network interfaces is analyzed to obtain the number of abnormal behaviors in each time period and the change trend of the real network data in each time period.

[0035] The actual network change trend in each time period corresponding to different network interfaces. The specific formula is as follows: ; in Indicates the change trend of normal network data of network interface j in time period i, where , , The weight coefficients respectively represent the number of traffic packets, the size of traffic packets, and the traffic transmission speed. By reading the abnormal network data corresponding to different network interfaces, the ratio of the number of traffic packets, the size of traffic packets, and the number of abnormal behaviors of traffic transmission speed in the abnormal behaviors of network data in each time period is obtained as the corresponding weight coefficient. For example, a network log records 100 network abnormal data, of which 80 have abnormal behaviors of the number of traffic packets, 70 have abnormal behaviors of the size of traffic packets, and 75 have abnormal behaviors of the traffic transmission speed. Then , , The corresponding weight coefficients are 0.8, 0.7, and 0.75 respectively.

[0036] Based on the real network change trend of network interface j in time period i, the change range B of network interface j in time period i is obtained. The specific formula is as follows: ; in, represents the duration of time period i, represents the CPU usage of the firewall of network interface j in time period i, e represents the base of the logarithm of natural numbers, and x represents the integral variable.

[0037] According to the trained prediction model, predict the network change trend of different network interfaces in each time period, as well as the predicted value of the change range. Compare B with its predicted value based on the same network interface and the same time period. , determine whether the network interface has network security risks, set the change range threshold L, when B and The positive and negative relationship is opposite, judging whether the corresponding network interface has security risks. If the absolute value of the difference is greater than or equal to L, it is determined whether the corresponding network interface has a security risk.

[0038] Example 2 like Figure 3 As shown, the network security risk prediction system based on artificial intelligence provided in this embodiment specifically includes the following contents: Network log reading unit: used to read network log information, collect normal and abnormal network data and divide them into different time periods; collect network data by reading network log information, divide them into normal network data and abnormal network data according to whether there are records of abnormal behavior in the network data, and extract feature data from the network data, the feature data includes: the number of traffic data packets m, the size of traffic data packets n, the traffic transmission speed v, the network interface x through which the traffic passes, and the firewall CPU usage rate b of the network interface; abnormal behavior refers to abnormal changes in feature data, and the collected network data is processed through data cleaning. Based on the different network interfaces through which the traffic passes, the feature data is divided according to the network interface, and the feature data set is obtained as shown below: ; Among them, i represents different time periods, , , , They represent the change functions of the number of traffic packets, traffic packet size, traffic transmission speed, and firewall CPU usage of the network interface in time period i, respectively. The time periods are divided according to the average value of traffic change. The degree of traffic change in each time period is close. j represents the jth network interface.

[0039] The specific formula for the average flow rate change is as follows: ; Set the flow change threshold O, there are N time points within the time length t, there is time point k within the time length t, and k points The value is the largest, and the average flow change within the time length t is ,like , no processing is done, instead the duration t is divided into multiple sub-durations to ensure that each sub-duration satisfies the above relationship.

[0040] Feature data decomposition unit: used to perform modal decomposition of feature data by time period based on artificial intelligence algorithm to obtain decomposed components of feature data; set the signal represented by feature data as , Contains the corresponding signals of all feature data types at time point k in time period i, As the original signal, the original signal is decomposed by the CEEMD method. On the basis of the original signal, a group of white noise signals with opposite positive and negative relationships and the same amplitude are added to obtain two different sets of original signal component sets. The specific formula is as follows: ; ; in, is positive white noise, is negative white noise, c represents the number of times the white noise signal is added, and then the EMD decomposition method is used to and After decomposition, two groups of imf components are obtained, namely imf(+) and imf(-), where imf(+) is the average result of the component set with positive white noise added, and imf(-) is the average result of the component set with negative white noise added. Finally, the decomposition components of each feature data are obtained, and all the decomposition components are randomly divided into training set and control set according to time periods. The ratio of decomposition components contained in each time period in the training set and the control set is 4 to 1.

[0041] Prediction model construction unit: used to construct a prediction model based on the LSTM network and determine the update method of the internal state of the LSTM model; normalize the decomposition components in the training set and the control set, select Y decomposition components for each time period from the training set as input data, and input them into the initialized LSTM network for training. The LSTM network structure includes an input gate, an output gate, a forget gate, a state unit, and a loop unit; the new input information is maintained in the state unit after being determined by the input gate, and the state unit is connected to the loop unit so that the information in the state unit is linearly self-circulated through the loop unit. By presetting the weight value of the forget gate, the output gate controls whether to output. The output value function of each gate is determined based on the sigmoid function, the input vector, the hidden layer vector, and different weight coefficients, where the weight coefficients include: different bias weight coefficients for each gate, input weight coefficients, and loop weight coefficients of the input gate, forget gate, and output gate. The update method of the internal state of the LSTM model is determined based on the output value function of the input gate, forget gate, and output gate. The specific formula is as follows: ; in, represents the output function of the input layer, represents the output function of the forgetting layer, represents the sigmoid function, and They represent the bias weight coefficient and input weight coefficient of the LSTM update method respectively. These weight coefficients can be determined according to specific circumstances and needs, and are usually jointly formulated and confirmed by professionals or relevant stakeholders. Represents the output value of the LSTM network at time point k-1 within time period i.

[0042] Furthermore, for the output value of the LSTM network, the specific formula is as follows: ; in Represents the recurrent weight coefficient of the LSTM update method, Represents the output function of the output layer; The feature data of a time period is predicted through the LSTM network to obtain the predicted component of a time period, and the predicted value of the prediction model is compared with the true value in the control set.

[0043] The actual predicted error value is determined by comparing the predicted value with the true value. The specific method is as follows: ; AR represents the actual predicted error value, M represents the predicted M time points, and Represent the true value and predicted value at time point k respectively.

[0044] The prediction ability of the prediction model is measured by comparing the predicted value with the true value. The specific method is as follows: ; R represents the predictive ability value of the prediction model. The larger the value of R, the better the prediction performance of the model. , represents the average value of the true value at M time points, Indicates the accuracy threshold, which is determined based on the specific situation and needs on the basis of ensuring that R is greater than or equal to 0 .

[0045] Set the error value threshold and the prediction ability value threshold, compare the prediction value of the prediction model at M time points with the true value, and when the error value and the prediction ability value of the prediction model are greater than or equal to the corresponding threshold, complete the training of the prediction model, and use the trained prediction model to obtain the prediction values ​​of all feature data in different time periods.

[0046] Security risk prediction unit: used to make early warning predictions on network security risks based on the predicted values ​​of feature data in different time periods; analyze the network log information corresponding to different network interfaces to obtain the number of abnormal behaviors in each time period, as well as the change trend of the real network data in each time period.

[0047] The actual network change trend in each time period corresponding to different network interfaces. The specific formula is as follows: ; in Indicates the change trend of normal network data of network interface j in time period i, where , , They respectively represent the weight coefficients of the number of traffic packets, the size of traffic packets, and the traffic transmission speed. By reading the abnormal network data corresponding to different network interfaces, the ratio of the number of traffic packets, the size of traffic packets, and the number of abnormal behaviors of traffic transmission speed in the abnormal behaviors of network data in each time period is obtained as the corresponding weight coefficient.

[0048] Based on the real network change trend of network interface j in time period i, the change range B of network interface j in time period i is obtained. The specific formula is as follows: ; in, represents the duration of time period i, represents the CPU usage of the firewall of network interface j in time period i, e represents the base of the logarithm of natural numbers, and x represents the integral variable.

[0049] According to the trained prediction model, predict the network change trend of different network interfaces in each time period, as well as the predicted value of the change range. Compare B with its predicted value based on the same network interface and the same time period. , determine whether the network interface has network security risks, set the change range threshold L, when B and The positive and negative relationship is opposite, judging whether the corresponding network interface has security risks. If the absolute value of the difference is greater than or equal to L, it is determined whether the corresponding network interface has a security risk.

[0050] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

[0051] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A network security risk prediction method based on artificial intelligence, characterized in that: include: Step 1: Read network log information, collect normal and abnormal network data and divide them into different time periods; extract feature data from the network data, divide the feature data according to the network interface based on the different network interfaces through which the traffic passes, obtain a feature data set, and divide the time period according to the average value of the traffic change; Step 2: Based on the artificial intelligence algorithm, the feature data is modally decomposed according to the time period to obtain the decomposed components of the feature data; the original signal represented by the feature data is decomposed by the CEEMD method to obtain two different sets of original signal component sets, and finally the decomposed components of each feature data are obtained; Step 3: Construct a prediction model based on the LSTM network and determine the update method of the internal state of the LSTM model; train the model and use the trained prediction model to predict the feature data of different time periods; Step 4: Based on the predicted values ​​of feature data in different time periods, early warning predictions are made for network security risks. According to the trained prediction model, the network change trends in each time period corresponding to different network interfaces are predicted. The predicted value of the change range is obtained by predicting the network change trend. The predicted value of the change range is compared with the actual value to determine whether the corresponding network interface has security risks.

2. The network security risk prediction method based on artificial intelligence according to claim 1 is characterized in that: Get the characteristic data set and divide the time period according to the average value of traffic change. The specific method is as follows: Divide the feature data according to the network interface to obtain a feature data set , where i represents different time periods, j represents the jth network interface, , , , They represent the number of traffic packets, traffic packet size, traffic transmission speed, and firewall CPU usage of the jth network interface in time period i, respectively; Using the formula Indicates the average flow change, sets the flow change threshold O, there are N time points in the time t, there are time points k in the time t, and k points The value is the largest, and the average flow change within time t is ,like , no processing is done, instead the duration t is divided into multiple sub-durations, ensuring that each sub-duration satisfies the inequality .

3. The network security risk prediction method based on artificial intelligence according to claim 1 is characterized in that: The original signal represented by the characteristic data is decomposed by the CEEMD method to obtain two different sets of original signal component sets. The specific method is as follows: Set the signal represented by the characteristic data to a time segment , Contains the corresponding signals of all feature data types at time point k in time period i, As the original signal, using the formula With the formula , we get two different sets of original signal components, where is positive white noise, is negative white noise, c represents the number of times the white noise signal is added, and then the EMD decomposition method is used to and Decompose it and finally get the decomposition components of each feature data.

4. The network security risk prediction method based on artificial intelligence according to claim 1 is characterized in that: Construct a prediction model based on the LSTM network and determine how to update the internal state of the LSTM model. The specific method is as follows: Based on the output value function of the input gate, forget gate, and output gate, the update method of the internal state of the LSTM model is determined using the formula Determine how the internal state of the LSTM model is updated, where: represents the output function of the input layer, represents the output function of the forgetting layer, represents the sigmoid function, and Represent the bias weight coefficient and input weight coefficient of the LSTM update method respectively, Represents the output value of the LSTM network at time point k-1 within time period i; The feature data of a time period is predicted through the LSTM network to obtain the predicted component of a time period, and the predicted value of the prediction model is compared with the true value in the control set.

5. The network security risk prediction method based on artificial intelligence according to claim 4 is characterized in that: The output values ​​of the LSTM network are as follows: Using the formula Get the output value of the LSTM network, where Represents the recurrent weight coefficient of the LSTM update method, Represents the output function of the output layer.

6. The network security risk prediction method based on artificial intelligence according to claim 4 is characterized in that: Compare the predicted values ​​of the prediction model with the true values ​​in the control set by: Set the error value threshold and the prediction ability value threshold, compare the prediction value and the true value of the prediction model at M time points, calculate the error value and the prediction ability value of the prediction model, and complete the training of the prediction model when the error value of the prediction model is greater than or equal to the error value threshold and the prediction ability value of the prediction model is greater than or equal to the prediction ability value threshold. Otherwise, continue to train the model until the error value of the prediction model is greater than or equal to the error value threshold and the prediction ability value is greater than or equal to the prediction ability value threshold.

7. The network security risk prediction method based on artificial intelligence according to claim 6 is characterized in that: The error value and prediction ability value are obtained by the following method: Using the formula Get the actual predicted error value AR, where M represents the predicted M time points. and Represent the true value and predicted value at time point k respectively; Using the formula Get the prediction ability value R of the prediction model. The larger the value of R, the better the prediction performance of the model. , represents the average value of the true value at M time points, Indicates the accuracy threshold, which is determined based on the specific situation and needs when R is greater than or equal to 0. .

8. The network security risk prediction method based on artificial intelligence according to claim 1 is characterized in that: The network change trend and change range are obtained by the following methods: Using the formula Obtain network change trends ,in , , They represent the weight coefficients of the number of traffic packets, the size of traffic packets, and the traffic transmission speed respectively; Based on the network change trend of network interface j in time period i, the formula , and obtain the variation range B, where represents the duration of time period i, represents the CPU usage of the firewall of network interface j in time period i, e represents the base of the logarithm of natural numbers, and x represents the integral variable.

9. An artificial intelligence-based network security risk prediction system, applied to the artificial intelligence-based network security risk prediction method according to any one of claims 1 to 8, characterized in that: It includes a network log reading unit, a feature data decomposition unit, a prediction model construction unit, and a security risk prediction unit; Network log reading unit: divides network data into normal network data and abnormal network data according to whether there are records of abnormal behavior in the network data, extracts characteristic data from the network data, divides the characteristic data according to the network interface, obtains a characteristic data set, and divides different time periods by setting the average value of traffic changes; Characteristic data decomposition unit: decomposes the original signal by CEEMD method to obtain two different sets of original signal components, and finally obtains the decomposition components of each characteristic data; Prediction model construction unit: predicts the characteristic data of a time period through the LSTM network, obtains the prediction component of a time period, determines the error value and prediction ability value of the actual prediction, and determines whether the prediction model training is completed by setting the error value threshold and the prediction ability value threshold; Security risk prediction unit: Determine the change trend of real network data in each time period, obtain the network change range from the change trend of network data, and judge whether there is a network security risk on each network interface by comparing the predicted value of the change range with the actual value of the change range.

Citation Information

Patent Citations

  • System load prediction method integrating isolated forest and long-term and short-term memory network

    CN111738520A

  • Online car-hailing demand prediction method based on improved EMD-LSTM

    CN116468469A

  • Short-term wind power prediction method based on improved entropy weight method and SECEEMD

    CN116865255A

  • CEEMDAN-LSTM-based water quality prediction method

    CN117217548A

  • Electric quantity and electricity price level fusion prediction method based on modal decomposition and neural network

    CN117557304A

Cited By

  • Intelligent network security protection method and system

    CN119182603A

  • Method and device for Behavior Characteristic Unit Based Anomaly Detection of Facility Equipment

    KR103037870B1