ICPS unsupervised online attack detection method and device based on community feature selection

By adopting methods based on community feature selection and autoencoders in industrial cyber-physical systems, we solve the difficult problem of feature selection under high-dimensional data, improve the accuracy and efficiency of attack detection, adapt to unknown attacks, and solve system security Protection bottleneck.

CN114528547BActive Publication Date: 2024-09-13CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210048332.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-09-13
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

In industrial cyber-physical systems, high-dimensional data makes feature selection difficult, resulting in low accuracy and low efficiency in attack detection. Especially in complex industrial processes with multiple variables and strong coupling, it is difficult for existing technologies to effectively handle redundant and irrelevant information. This leads to an increase in model computational complexity and processing costs, and a decrease in classifier performance.

Method used

An unsupervised online attack detection method based on community feature selection and autoencoder is adopted. By constructing a feature network, the Louvain community detection method is used to divide feature subsets, and an autoencoder model is constructed to extract potential feature information, and the attack is calculated based on kernel density estimation. Detection threshold to achieve feature reduction and attack detection.

Benefits of technology

It effectively reduces the feature dimension of system data, improves the accuracy of attack detection, can adapt to unknown attacks and advanced sustainable threats, solves the bottleneck problem of industrial cyber-physical system operation security protection, and realizes online protection of system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528547B
    Figure CN114528547B
Patent Text Reader

Abstract

The present invention discloses an ICPS unsupervised online attack detection method and device based on community feature selection, the method is: construct a feature network according to the historical multi-source feature number set of ICPS, and automatically divide and obtain multiple feature subsets based on the community detection method, select the best feature subset from them and then obtain training data; construct an attack detection model based on an autoencoder, and use the training data for training; then use the trained attack detection model to reconstruct the training data to obtain the reconstruction error, and calculate the attack detection threshold according to the reconstruction error; obtain the multi-source feature number set of ICPS in real time online, use its best feature subset as online detection input data, and reconstruct it using the trained attack detection model to obtain the corresponding reconstruction error; finally, by comparing with the attack detection threshold, determine whether the ICPS is under attack at the current moment. The present invention can effectively reduce the feature dimension of system data and improve the accuracy of attack detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of industrial information-physical systems, and specifically relates to an unsupervised online attack detection method and device for industrial information-physical systems based on community feature selection. Background Art

[0002] In recent years, due to the progress of related technologies such as computing, communication and the Internet of Things, cyber-physical systems (CPS) have developed rapidly in the industrial field and have been widely used in key industrial fields such as petrochemicals, water conservancy, energy, and electricity, becoming industrial cyber-physical systems (ICPS). Different from the relatively independent traditional industrial control system (ICS), the close integration of information space and physical processes in ICPS makes efficient, energy-saving and flexible industrial production models possible. However, with the increase in interconnectivity between internal components of the system and access to the external network environment, ICPS is more vulnerable to attacks under an open architecture. Attackers attempt to penetrate through the network layer or physical layer to destroy process equipment or tamper with key controller parameters, resulting in unstable closed-loop control and causing more serious damage, such as huge losses of economic benefits, system downtime and even casualties of security personnel. In recent years, malicious attacks on ICPS have continued to increase, causing huge economic losses and serious social problems. The security of ICPS has received unprecedented attention.

[0003] In ICPS security research, attack detection is regarded as one of the important strategies to protect the system from malicious attacks. The most commonly used method is to detect abnormal events that do not conform to the expected behavior of the system based on the system data collected by the Supervisory Control and Data Acquisition (SCADA) system. In recent years, with the rapid development of technologies such as machine learning (ML), deep learning (DL), and reinforcement learning (RL), big data analysis technology has been widely used in data-driven attack detection research. In fact, an important factor in developing anomaly detection systems based on artificial intelligence algorithms is to find a suitable feature set to characterize and describe the operating mode of the system. Otherwise, the high-throughput and high-dimensional data in the system is likely to cause problems such as exponential explosion and dimensionality disaster in the statistical model, that is, the presence of redundant and irrelevant features will not only increase the computational complexity and processing cost (including offline training time and online deployment efficiency) of the model during training, but also lead to a decrease in the performance of the classifier. Therefore, feature selection is a key research topic based on data-driven attack detection methods.

[0004] At present, although there have been many attempts in feature selection, such as particle swarm optimization, genetic algorithms, and simulated annealing, there are still major challenges in processing redundant and irrelevant information through feature selection, especially in industrial scenarios where system data has extremely high dimensionality and correlation. In fact, the physical layer of ICPS is usually a multivariate, strongly coupled complex industrial process, and the system data has varying degrees of correlation. Variables with strong process sensitivity are usually closely related to other variables and are key variables with security sensitivity. They can accurately reflect the operating status of the system and are crucial for the anomaly detection of the system. Therefore, how to mine the potential feature information of the data through the correlation between high-dimensional data to achieve feature dimensionality reduction is of great significance for data-driven security detection research.

[0005] In order to adapt to the safety monitoring of industrial information-physical systems under high-dimensional data, this patent develops an ICPS unsupervised online attack detection method based on community feature selection and autoencoder. The method is mainly divided into two parts: feature reduction and detection model training in the offline stage and attack detection in the online stage. Among them, in the feature reduction in the offline stage, firstly, a feature network is constructed for the multi-source feature data set and the network is pruned; then, the feature network is automatically divided based on the Louvain community detection method to obtain multiple feature subsets; finally, by constructing a feature selection optimization model, the key feature subset that can accurately characterize and describe the system operation is obtained based on the minimum misclassification rate standard, thereby achieving feature reduction. In the detection model training, firstly, an attack detection model based on the autoencoder is constructed, and the model is trained using the system's historical normal data; then, the attack detection threshold is calculated for the system's historical normal data based on the kernel density estimation method. In the attack detection in the online stage, firstly, the online streaming data is feature screened; then, the data samples after feature selection are input into the autoencoder classification model to obtain the reconstruction error; finally, the attack detection is achieved by comparing the reconstruction error with the attack detection threshold. This method can automatically extract the potential global structural information between multi-source features based on the system's historical normal operation data, thereby obtaining a key feature subset that accurately characterizes and describes the system operation. At the same time, a deep learning autoencoder is used to monitor the system's operating status. The proposed method can effectively reduce the feature dimension of the system data and improve the accuracy of attack detection. It can realize online protection of the safe operation of industrial information-physical systems and can adapt to unknown attacks or advanced sustainable threats. It is expected to solve the bottleneck problem of safe protection of the operation of industrial information-physical systems. Summary of the invention

[0006] In order to adapt to the security monitoring of industrial cyber-physical systems under high-dimensional data, the present invention provides an ICPS unsupervised online attack detection method based on community feature selection and autoencoder, which can effectively reduce the feature dimension of system data and improve the accuracy of attack detection.

[0007] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:

[0008] An ICPS unsupervised online attack detection method based on community feature selection, including:

[0009] Feature reduction and training data acquisition: A feature network is constructed based on the ICPS historical multi-source feature set. The feature network is then automatically divided into multiple feature subsets based on the community detection method. The best feature subset is then selected based on the minimum misclassification rate standard. The best feature subset of the historical multi-source feature set is used as training data.

[0010] Model training and attack detection threshold calculation: Build an attack detection model based on an autoencoder, and use the training data as input and output to train the attack detection model; then use the trained attack detection model to reconstruct the training data to obtain the corresponding reconstruction error, and then calculate the attack detection threshold based on the reconstruction error based on the kernel density estimation method;

[0011] Online attack detection: The multi-source feature set of ICPS is obtained in real time online, and its best feature subset is used as the online detection input data; then the trained attack detection model is used to reconstruct the online detection input data to obtain the corresponding reconstruction error; finally, the reconstruction error of the online detection input data is compared with the attack detection threshold to determine whether the ICPS is under attack at the current moment.

[0012] Furthermore, the multi-source feature number set refers to data collected by M sensors; the historical multi-source feature number set includes N data collected by M sensors respectively; the gold source feature number set obtained in real time online includes the data collected by M sensors at the current moment.

[0013] Furthermore, the historical multi-source feature set is represented as X = [x1, x2, ..., x M ]∈R N×M , where x i ∈R N , i=1,2,...,M,x i represents the N data samples collected by the i-th sensor, and M represents the number of sensors in ICPS; then the method for constructing the feature network is:

[0014] Step A1: define the node set of the weighted undirected graph G = (V, E, W) as V = {x i |i=,1,2,...,M}, the edge set is E={(x i ,x j ):x i ,x j∈V}; i, j are used to distinguish different sensor nodes;

[0015] Step A2, calculate the weight set W = {w ij |i,j=,1,2,...,M}, where w ij Defined as two sensor nodes x i and x j The similarity measure between them is calculated using Pearson correlation, namely:

[0016]

[0017] in, and The vector x i and x j The average value of . Therefore, we get the weight matrix of the weighted undirected graph G = (V, E, W), that is,

[0018]

[0019] Step A3: Define a threshold η for pruning the weight elements of the weighted undirected network G = (V, E, W), that is,

[0020]

[0021] This transforms the weighted undirected graph G into the unweighted undirected graph G * , and the unweighted undirected graph G * The node set V * ={x i |i=,1,2,...,M}, the edge set E * ={(x i ,x j ):x i ,x j ∈V *} is represented as an edge matrix:

[0022]

[0023] in, Represents the data set X = [x1, x2, ..., x M ]∈R N×M Features of x i and x j Is there a strong discriminant relationship between them? If so, otherwise So far, the historical multi-source dataset X=[x1,x2,...,x M ]∈R N×M The feature network G * =(V* ,E * ) is built.

[0024] Furthermore, the feature network is automatically divided based on the Louvain community detection method. The specific process is as follows:

[0025] Step B1: transform the feature network G * =(V * ,E * ) Each sensor node is initialized as an independent community, and the number of communities is the same as the number of sensor nodes;

[0026] Step B2: for each node i, try to assign the node to the community C where each of its neighboring nodes is located, and calculate the module change degree ΔQ of community C before and after the assignment. The calculation method is:

[0027]

[0028] where Σ in represents the sum of the weights of the edges in community C, Σ tot represents the sum of the weights of the edges connected to the nodes in community C, K i,in represents the sum of the weights of the edges between each node in community C and node i, K i represents the sum of the weights of all edges connected to node i, and m represents the sum of the weights of all edges;

[0029] Step B3, record the neighbor node with the largest ΔQ. If maxΔQ>0, assign node i to the community where the neighbor node with the largest ΔQ is located, otherwise it remains unchanged.

[0030] Step B4, repeat steps B2-B3 until the communities to which all nodes belong no longer change;

[0031] Step B5, compress the nodes in the same community into a new node, convert the edge weights between nodes in the community into the ring weights of the new node, and convert the edge weights between communities into edge weights between new nodes;

[0032] Step B6, repeat steps B1-B5 until the community no longer changes, and obtain the community division result Ω={C1,C2,...,C k}, C1,C2,...,C k are k feature subsets obtained by automatic division.

[0033] Furthermore, the attack detection model based on the autoencoder includes an encoder and a decoder; the loss function used in training the attack detection model is the reconstruction error between the input and the output, that is:

[0034]

[0035] In the formula, x is the training data of the attack detection model, y is the data obtained by reconstructing the training data by the attack detection model, and loss is the reconstruction error.

[0036] Furthermore, the method for calculating the attack detection threshold based on the reconstruction error based on the kernel density estimation method is:

[0037]

[0038] Among them, K(l) represents the positive definite kernel function, loss = (l1,l2,...,l N ) represents the reconstruction error of the training data, l refers to the reconstruction error in general, h represents the positive smoothing parameter, represents the scaling kernel function.

[0039] Furthermore, if the reconstruction error of the online detection input data is greater than the attack detection threshold, it is determined that the ICPS is under attack at the current moment, otherwise it is determined that the ICPS is normal at the current moment.

[0040] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements any of the above-mentioned ICPS unsupervised online attack detection methods based on community feature selection.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] The present invention is mainly divided into two parts: feature simplification and detection model training in the offline stage and attack detection in the online stage. Among them, in the feature simplification in the offline stage, firstly, a feature network is constructed for a multi-source feature data set and the network is pruned; then, the feature network is automatically divided based on the Louvain community detection method to obtain multiple feature subsets; finally, by constructing a feature selection optimization model, a key feature subset that can accurately characterize and describe the operation of the system is obtained based on the minimum misclassification rate standard, thereby achieving feature simplification. In the detection model training, firstly, an attack detection model based on an autoencoder is constructed, and the model is trained using the system's historical normal data; then, the attack detection threshold is calculated for the system's historical normal data based on the kernel density estimation method. In the attack detection in the online stage, firstly, the online streaming data is feature screened; then, the data sample after feature selection is input into the autoencoder classification model to obtain the reconstruction error; finally, the attack detection is achieved by comparing the reconstruction error with the attack detection threshold. This invention can automatically extract the potential global structural information between multi-source features based on the system's historical normal operation data, so as to obtain a key feature subset that accurately characterizes and describes the system operation. At the same time, a deep learning automatic encoder is used to monitor the system's operating status. The proposed method can effectively reduce the feature dimension of the system data and improve the accuracy of attack detection. It can realize online protection of the safe operation of industrial information-physical systems and can adapt to unknown attacks or advanced sustainable threats. It is expected to solve the bottleneck problem of safe protection of the operation of industrial information-physical systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a flow chart of the method described in an embodiment of the present invention;

[0044] Figure 2 It is an attack detection model based on an autoencoder in the method described in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following is a detailed description of an embodiment of the present invention. This embodiment is based on the technical solution of the present invention, and provides a detailed implementation method and a specific operation process to further explain the technical solution of the present invention.

[0046] This embodiment provides an ICPS unsupervised online attack detection method based on community feature selection, which mainly includes three steps: feature reduction, model training, and online attack detection. The first two steps belong to the offline operation stage, and the last step belongs to the online operation stage.

[0047] In the first step, a feature network is first constructed for the multi-source feature data set and the network is pruned; then, the feature network is automatically divided based on the Louvain community detection method to extract the potential global structural information between multi-source features, thereby obtaining multiple feature subsets; finally, by constructing a feature selection optimization model, the key feature subset that can accurately characterize and describe the system operation is obtained based on the minimum misclassification rate standard, thereby achieving feature simplification. In the second step, an attack detection model based on an autoencoder is first constructed, and the model is trained using the system's historical normal data; then, the attack detection threshold is calculated for the system's historical normal data based on the kernel density estimation method. In the third step, first, feature screening is performed on the online streaming data; then, the data samples after feature selection are input into the autoencoder classification model to obtain the reconstruction error; finally, attack detection is achieved by comparing the reconstruction error with the attack detection threshold. The algorithm flow is as follows: Figure 1 shown.

[0048] 2. Offline stage: feature reduction + model training

[0049] Considering the actual industrial process, it is assumed that this patent has collected N data samples from M sensors, and the data set is represented as X = [x1, x2, ..., x M ]∈R N×M , where x i ∈R N , i=1,2,...,M. First, construct a feature network for the data set. The steps are as follows.

[0050] Step 1: Build the feature network of the dataset according to Algorithm 1.

[0051]

[0052]

[0053] Through Algorithm 1, the present invention can construct a data set X = [x1, x2, ..., x M ]∈R N×M The feature network G * =(V * ,E * ), providing a network structure for the feature selection method based on community detection. In the next step, the present invention will * =(V * ,E * ) Perform reasonable community detection and division to obtain multiple feature subsets.

[0054] Step 2: Perform feature network division based on the Louvain community detection algorithm according to Algorithm 2.

[0055]

[0056]

[0057] Through Algorithm 2, this patent can obtain the original data set X = [x1, x2, ..., x M ]∈R N×M After community detection, the feature subset Ω={C1,C2,...,C k In order to further select the optimal feature subset that can characterize and describe the accurate operation mode of the system, it is necessary to further construct the following optimization model based on the minimum misclassification rate standard to select the best feature subset, that is,

[0058]

[0059] st.C * ∈{C1,C2,...,C k}

[0060] Among them, Φ normal (·) represents the statistical function model for calculating the misclassification rate based on the normal data feature set. The optimal feature subset is obtained by optimizing the above model.

[0061] Step 3: Train the attack detection model based on the autoencoder. Since abnormal samples are difficult to obtain in actual scenarios, the present invention transforms the attack detection problem into a classification problem, that is, extracting the normal operating mode of the system according to the normal operating conditions of the system, and judging whether it is under potential attack by monitoring the deviation during the actual operation of the system. The offline training process of the detection model mainly includes the following steps:

[0062] First, if Figure 2 As shown, the encoding layer and decoding layer are constructed based on the autoencoder model, that is,

[0063] h=f(x)=s f (Wx+b) (7)

[0064] y=g(h)=s g (W T h+b T ) (8)

[0065] Where W∈R m×n and b∈R m Represent the weight matrix and bias vector of the encoder and decoder respectively, s f (·) and s g (·) denote the activation functions of the encoding layer and the decoding layer, respectively.

[0066] Second, a reconstruction error is constructed between the input and the reconstructed output, defined as

[0067]

[0068] In formula (9), the autoencoder model is trained using the autoencoder reconstruction error as the loss function.

[0069] Step 4: Calculate the attack detection threshold. In order to identify abnormal samples in the test phase, the detection threshold is calculated in the historical normal data set using the non-parametric statistical method, kernel density estimation (KDE), as follows:

[0070]

[0071] Among them, K(l) represents the positive definite kernel function, loss = (l1,l2,...,l N ) represents the reconstruction error of the training data, h represents the positive smoothing parameter, represents the scaling kernel function.

[0072] 3. Online Attack Detection

[0073] In the offline learning stage, the present invention can obtain the optimal feature subset standard, the autoencoder attack detection model and the attack detection threshold. Next, online attack detection is required, and this process mainly includes the following steps:

[0074] Step 1: Based on the optimal feature subset standard, the test data X t =[x 1t ,x 2t ,...,x Mt ]∈R M Perform feature screening to obtain a set of key variables

[0075] Step 2: Set the key variables Input into the autoencoder attack detection model to obtain the reconstruction error err.

[0076] Step 3: Compare the reconstruction error err with the attack detection threshold thr to determine whether the test data is normal. That is, if the reconstruction error of the test data is greater than the threshold thr, the test data is judged as the system is under attack at the current moment; otherwise, the test data is judged as the system is normal at the current moment.

[0077] In summary, the present invention proposes a semi-supervised online attack detection method for industrial cyber-physical systems based on community feature selection, which can automatically extract potential global structural information between multi-source features based on the historical normal operation data of the system, thereby obtaining a key feature subset that accurately characterizes and describes the operation of the system, and at the same time uses a deep learning autoencoder as a classifier to convert the anomaly detection problem into a classification problem, and performs attack detection by monitoring the deviation degree of the current operation mode of the system. The present invention can effectively reduce the feature dimension of the system monitoring data, thereby performing accurate attack anomaly detection.

[0078] The present invention can be applied to monitoring the operating status of industrial information-physical systems. The method does not require prior knowledge of the process, does not require label data of the process, and can effectively reduce the characteristic dimensions of the system data. It can avoid the dimensionality disaster and data imbalance problems faced by artificial intelligence algorithms in processing high-dimensional data. It can accurately monitor the operating status of the system and detect attack samples, improve the accuracy of attack detection, and achieve online protection of the safe operation of industrial information-physical systems. It can also adapt to unknown attacks or advanced sustainable threats, and is expected to solve the bottleneck problem of safe protection of the operation of industrial information-physical systems.

[0079] The above embodiments are preferred embodiments of the present application. Ordinary technicians in this field can also make various changes or improvements on this basis. Without departing from the overall concept of the present application, these changes or improvements should fall within the scope of protection required by the present application.

Claims

1. An ICPS unsupervised online attack detection method based on community feature selection, characterized in that: include: Feature reduction and training data acquisition: A feature network is constructed based on the ICPS historical multi-source feature set. The feature network is then automatically divided into multiple feature subsets based on the community detection method. The best feature subset is then selected based on the minimum misclassification rate standard. The best feature subset of the historical multi-source feature set is used as training data. The historical multi-source feature set is represented as X = [x1, x2, ..., x M ]∈R N×M , where x i ∈R N , i=1,2,...,M,x i represents the N data samples collected by the i-th sensor, and M represents the number of sensors in ICPS; then the method for constructing the feature network is: Step A1, define the node set of the weighted undirected graph G = (V, E, W) as V = {x i |i=,1,2,...,M}, the edge set is E={(x i ,x j ):x i ,x j ∈V}; i, j are used to distinguish different sensor nodes; Step A2, calculate the weight set W = {w ij |i,j=,1,2,...,M}, where w ij Defined as two sensor nodes x i and x j The similarity measure between them is calculated using Pearson correlation, namely: in, and are vectors xi and x respectively j The average value of the weight matrix of the weighted undirected graph G = (V, E, W) is obtained, that is, Step A3: Define a threshold η for pruning the weight elements of the weighted undirected network G = (V, E, W), that is, This transforms the weighted undirected graph G into the unweighted undirected graph G * , and the unweighted undirected graph G * The node set V * ={x i |i=,1,2,...,M}, the edge set E * ={(x i ,x j ):x i ,x j ∈V * } is represented as an edge matrix: in, Represents the data set X = [x1, x2, ..., x M ]∈R N×M Features of x i and x j Is there a strong discriminant relationship between them? If so, otherwise So far, the historical multi-source dataset X=[x1,x2,...,x M ]∈R N×M The feature network G * =(V * ,E * ) is constructed; Automatically divide the feature network. The specific process is as follows: Step B1: transform the feature network G * =(V * ,E * ) Each sensor node is initialized as an independent community, and the number of communities is the same as the number of sensor nodes; Step B2: for each node i, try to assign the node to the community C where each of its neighboring nodes is located, and calculate the module change degree ΔQ of community C before and after the assignment. The calculation method is: where Σ in represents the sum of the weights of the edges in community C, Σ tot represents the sum of the weights of the edges connected to the nodes in community C, K i,in represents the sum of the weights of the edges between each node in community C and node i, K i represents the sum of the weights of all edges connected to node i, and m represents the sum of the weights of all edges; Step B3, record the neighbor node with the largest ΔQ. If maxΔQ>0, assign node i to the community where the neighbor node with the largest ΔQ is located, otherwise it remains unchanged. Step B4, repeat steps B2-B3 until the communities to which all nodes belong no longer change; Step B5, compress the nodes in the same community into a new node, convert the edge weights between nodes in the community into the ring weights of the new node, and convert the edge weights between communities into edge weights between new nodes; Step B6, repeat steps B1-B5 until the community no longer changes, and obtain the community division result Ω={C1,C2,...,C k },C1,C2,...,C k are the k feature subsets obtained by automatic division; Model training and attack detection threshold calculation: Build an attack detection model based on an autoencoder, and use the training data as input and output to train the attack detection model; then use the trained attack detection model to reconstruct the training data to obtain the corresponding reconstruction error, and then calculate the attack detection threshold based on the reconstruction error based on the kernel density estimation method; The method for calculating the attack detection threshold based on the reconstruction error based on the kernel density estimation method is: Among them, K(l) represents the positive definite kernel function, loss = (l1,l2,...,l N ) represents the reconstruction error of the training data, l refers to the reconstruction error in general, h represents the positive smoothing parameter, represents the scaling kernel function; Online attack detection: The multi-source feature set of ICPS is obtained in real time online, and its best feature subset is used as the online detection input data; then the trained attack detection model is used to reconstruct the online detection input data to obtain the corresponding reconstruction error; finally, the reconstruction error of the online detection input data is compared with the attack detection threshold to determine whether the ICPS is under attack at the current moment.

2. The method according to claim 1, characterized in that The multi-source feature number set refers to data collected by M sensors; the historical multi-source feature number set includes data collected by M sensors at N historical sampling points; the gold source feature number set obtained in real time online includes data collected by M sensors at the current moment.

3. The method according to claim 1, characterized in that The attack detection model based on the autoencoder includes an encoder and a decoder; the loss function used in training the attack detection model is the reconstruction error between the input and the output, that is: In the formula, x is the training data of the attack detection model, y is the data obtained by reconstructing the training data by the attack detection model, and loss is the reconstruction error.

4. The method according to claim 1, characterized in that: If the reconstruction error of the online detection input data is greater than the attack detection threshold, it is determined that the ICPS is under attack at the current moment, otherwise it is determined that the ICPS is normal at the current moment.

5. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 4.