An industrial control system anomaly detection method based on adversarial driving deep support vector data description

By combining deep single classification with adversarial generative networks to generate pseudo-anomaly samples, the boundary of the anomaly detection model for industrial control systems is optimized, solving the problem of scarce anomaly data in traditional methods and achieving more efficient anomaly detection results.

CN118734225BActive Publication Date: 2026-11-27CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931983.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2026-11-27
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Traditional deep support vector data description methods lack effective training on abnormal data in industrial control systems, making it difficult for models to accurately describe the separation boundary between normal and abnormal data.

Method used

By combining deep single-class classification with generative adversarial networks, pseudo-anomaly samples are generated. The boundary of the single-class classification model is optimized by constructing constraints. A bidirectional generative adversarial network and an autoencoder are used for feature extraction and screening to construct an anomaly detection model.

Benefits of technology

It improved the model's performance in anomaly detection tasks, enhanced detection precision and accuracy, effectively expanded the training dataset, and improved the model's anomaly detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734225B_ABST
    Figure CN118734225B_ABST
Patent Text Reader

Abstract

The application relates to an industrial control system anomaly detection method based on an adversarial driving deep support vector data description, and the steps are as follows: learning normal samples and generating pseudo abnormal samples through a bidirectional generative adversarial network, designing different penalty terms for constraining the range of the generated pseudo abnormal samples; defining an abnormal filter to screen the pseudo abnormal samples; adopting an automatic encoder to extract features of the normal samples and the pseudo abnormal samples, comprehensively constructing an optimization objective function from feature reconstruction errors, a hypersphere volume of the normal samples and a projection of the pseudo abnormal samples on a hypersphere boundary, training a deep support vector data description network; and constructing an abnormal score and a threshold to judge the abnormality. The application combines adversarial learning and deep single classification, constructs a constraint condition to optimize a classification boundary, solves the problem of generating pseudo abnormal data to enhance the classification performance in the case that abnormal events are rare in an industrial control system, and improves the accuracy and reliability of the abnormal detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial control system anomaly detection technology, and relates to an anomaly detection method for industrial control systems based on Adversarial Driven Deep Support Vector Data Description (AD-DeSVDD). Background Technology

[0002] Industrial Control Systems (ICS) are a core component of modern industrial production. Their main function is to monitor and control industrial processes in real time, ensuring safe, efficient, and stable operation. With the development of Industry 4.0 and the Industrial Internet, ICS are gradually moving from closed to open systems, facing increasing security threats and challenges. Anomaly detection technology is a crucial means of ensuring the safe operation of ICS. ICS anomaly detection technology identifies abnormal points that do not match the normal pattern, enabling real-time monitoring and identification of system anomalies. It is characterized by high efficiency, accuracy, and reliability. In recent years, with the widespread application of intelligent ICS and big data technologies, anomaly detection technology helps to promptly detect abnormal behaviors in the system and provide early warnings of potential security risks, which is of great significance for ensuring the safe operation of ICS.

[0003] Deep Support Vector Data Description (DeSVDD) is an emerging deep single-class classification network proposed by Ruff et al. in 2018. Because it combines deep learning, it can effectively extract the intrinsic features of high-dimensional complex data, and its training relies solely on normal data, making it more suitable for handling imbalanced data and unknown anomalies than traditional multi-class classification. Despite DeSVDD's significant advantages in ICS anomaly detection, it still faces some challenges. In practical applications, anomaly data in ICS is often very scarce, and the anomaly class information is completely lost during training, making it difficult for the model to accurately describe the separation boundary between normal and anomalies. Therefore, exploring the impact of anomaly data on the training results of deep single-class classification networks is an urgent problem to be solved. Summary of the Invention

[0004] This invention addresses the problem that traditional DeSVDD does not fully consider and utilize anomalous samples during training, and provides an anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description. This method combines deep single-class classification with adversarial generative networks, introducing adversarial learning to generate pseudo-anomaly samples with anomalous features, and constructing constraints to optimize the boundary of the single-class classification model.

[0005] To achieve the above objectives, this invention provides an anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description, comprising the following steps:

[0006] (I) Collecting data on normal operating conditions of industrial control systems As training data, a pseudo-abnormal sample dataset is generated by learning normal operating condition data using a bidirectional generative adversarial network. Where n is the number of normal samples, m is the number of abnormal samples, and y i =G(z) i G is the generator in a generative adversarial network, and z is the z-generator. i It is a random latent vector with a mean of 0 and a variance of 1;

[0007] (II) Calculating Pseudo-Abnormal Samples Euclidean distance from normal data center point c Define an exception filter Filter(d) i The pseudo-anomaly samples are filtered to obtain the filtered pseudo-anomaly samples. in This represents the number of pseudo-anomaly samples after filtering.

[0008] (III) Using an automatic encoder on normal samples and pseudo-anomaly samples Feature extraction is performed, and the objective function is constructed by combining the feature reconstruction error, the hypersphere volume of normal samples, and the projection of pseudo-abnormal samples onto the hypersphere boundary. The deep support vector data description network is then trained.

[0009] (iv) Define the anomaly score formula and calculate the scores for all normal training samples. Determine the threshold ξ by sorting in ascending order;

[0010] (V) Collecting Test Data x t Calculate the anomaly score s(x) of the test data. t If s(x) t If )>ξ, then the test data x t If it is an exception, it is classified as an exception; otherwise, it is classified as a normal exception.

[0011] Furthermore, in step (i), the generator G in the bidirectional generative adversarial network is trained using formulas (1)-(4) to generate pseudo-abnormal samples. The expressions for formulas (1) to (4) are:

[0012]

[0013]

[0014]

[0015]

[0016] In the formula, G is the generator of the bidirectional generative adversarial network, E is the encoder of the bidirectional generative adversarial network, D is the discriminator of the bidirectional generative adversarial network, and L... GAN L is the joint loss of the generator and discriminator combination. AE For reconstruction loss, L DIST It is a penalty loss. This is a Boolean function that takes the value 1 when the condition (·) is true, and 0 otherwise. The hyperparameter γ>1 is used to adjust the range of generated data, and c represents normal samples. The center of , r is the normal sample The average Euclidean distance from the center point c;

[0017] The center point c of the normal sample is calculated using formula (5), and the expression of formula (5) is:

[0018]

[0019] The average Euclidean distance r is calculated using formula (6), and the expression for formula (6) is:

[0020]

[0021] Furthermore, the pseudo-anomaly samples in step (ii) Euclidean distance from normal data center point c Calculated using formula (7), the expression of formula (7) is:

[0022] d i =‖y i -c‖ (7)

[0023] Filter(d) i ) Calculated using formula (8), the expression of formula (8) is:

[0024] Filter(d i )={r≤d i <γ*r} (8)

[0025] In the formula, the hyperparameter γ > 1;

[0026] After passing through the filter Filter(d) in the above formula (8) i )right Process and filter out those that satisfy the condition r≤d i <γ*r That is, the filtered pseudo-anomaly samples are obtained.

[0027] Furthermore, in step (iii), the objective function is optimized using formula (9), which is expressed as follows:

[0028]

[0029] In the formula, n and , respectively, represent the number of normal samples and pseudo-abnormal samples, o is the center of the hypersphere, x i This is a normal sample. This is a pseudo-anomaly sample. For normal sample x i The reconstructed samples are denoted by μ, which represents the loss ratio between normal samples and pseudo-abnormal samples, and β and λ are the trade-off parameters between reconstruction error and network regularization, respectively. For the mapping network of the autoencoder, W l Let L be the connection weights of the l-th layer network, and L be the number of network layers. The optimization is achieved by solving formula (9). Connection weights, ||·|| F It is the Frobenius norm;

[0030] The center of the hypersphere o is composed of normal sample x i and pseudo-anomaly samples The potential characteristics determine that the center o of the hypersphere is calculated using formula (10), and the expression of formula (10) is:

[0031]

[0032] Furthermore, in step (iv), the anomaly score for identifying anomalies is calculated using formula (11), the expression of which is:

[0033]

[0034] In the formula, The optimal connection weights are obtained by solving formula (10);

[0035] The threshold ξ is calculated using formula (12), and the expression for formula (12) is:

[0036]

[0037] In the formula, s represents all normal training samples. Abnormal scores An ascending sorted array, This is the floor operator. To obtain the value of the 95th percentile in an array s of length n.

[0038] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0039] This invention provides an anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description. It combines generative adversarial learning with deep single-class classification based on normal process data samples from the industrial control system. By utilizing a bidirectional generative adversarial network to generate pseudo-anomaly samples, it effectively generates samples with anomaly features to expand the training dataset, thus improving the model's training effect and performance. Furthermore, by constructing constraints to optimize the boundary of the single-class classification model, it further improves the performance of the deep single-class classification model in anomaly detection tasks, enhancing the model's anomaly detection capability and accuracy. Attached Figure Description

[0040] Figure 1 This is a model structure diagram of the industrial control system anomaly detection method based on adversarial-driven deep support vector data description as described in this invention. Detailed Implementation

[0041] The present invention will now be described in detail through exemplary embodiments. However, it should be understood that, without further description, elements, structures, and features in one embodiment may be advantageously incorporated into other embodiments.

[0042] See Figure 1 This invention provides an anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description, comprising the following steps:

[0043] (I) Collecting data on normal operating conditions of industrial control systems As training data, a pseudo-abnormal sample dataset is generated by learning normal operating condition data using a bidirectional generative adversarial network. Where n is the number of normal samples, m is the number of abnormal samples, and y i =G(z) i G is the generator in a generative adversarial network, and z is the z-generator. i It is a random latent vector with a mean of 0 and a variance of 1.

[0044] Specifically, pseudo-anomaly samples are generated by training the generator G in the bidirectional generative adversarial network using formulas (13)-(16). The expressions for formulas (13) to (16) are:

[0045]

[0046]

[0047]

[0048]

[0049] In the formula, G is the generator of the bidirectional generative adversarial network, E is the encoder of the bidirectional generative adversarial network, D is the discriminator of the bidirectional generative adversarial network, and L... GAN L is the joint loss of the generator and discriminator combination. AE For reconstruction loss, L DIST It is a penalty loss. This is a Boolean function that takes the value 1 when the condition (·) is true, and 0 otherwise. The hyperparameter γ>1 is used to adjust the range of generated data, and c represents normal samples. The center of , r is the normal sample The average Euclidean distance from the center point c;

[0050] The center point c of the normal sample is calculated using formula (17), and the expression of formula (17) is:

[0051]

[0052] The average Euclidean distance r is calculated using formula (18), and the expression for formula (18) is as follows:

[0053]

[0054] (II) Calculating Pseudo-Abnormal Samples Euclidean distance from normal data center point c Define an exception filter Filter(d) i The pseudo-anomaly samples are filtered to obtain the filtered pseudo-anomaly samples. in This represents the number of pseudo-anomaly samples after filtering.

[0055] Specifically, pseudo-anomaly samples Euclidean distance from normal data center point c Calculated using formula (19), the expression for formula (19) is:

[0056] d i =‖y i -c‖ (19) Filter(d i ) Calculated using formula (20), the expression of formula (20) is:

[0057] Filter(d i )={r≤d i <γ*r} (20)

[0058] In the formula, the hyperparameter γ > 1;

[0059] After passing through the filter Filter(d) in the above formula (20) i )right Process and filter out those that satisfy the condition r≤d i <γ*r That is, the filtered pseudo-anomaly samples are obtained.

[0060] (III) Using an automatic encoder on normal samples and pseudo-anomaly samples Feature extraction is performed, and an optimization objective function is constructed by combining feature reconstruction error, hypersphere volume of normal samples, and projection of pseudo-abnormal samples onto the hypersphere boundary. A deep support vector data description network is then trained.

[0061] Specifically, the objective function is expressed by formula (21), and the expression of formula (21) is:

[0062]

[0063] In the formula, n and , representing the number of normal samples and pseudo-abnormal samples respectively, o is the center of the hypersphere, x i This is a normal sample. This is a pseudo-anomaly sample. For normal sample x i The reconstructed samples are denoted by μ, which represents the loss ratio between normal samples and pseudo-abnormal samples, and β and λ are the trade-off parameters between reconstruction error and network regularization, respectively. For the mapping network of the autoencoder, W l Let L be the connection weights of the l-th layer network, and L be the number of network layers. The optimization is achieved by solving formula (21). Connection weights, ||·|| F It is the Frobenius norm;

[0064] The center of the hypersphere o is composed of normal sample x i and pseudo-anomaly samples The potential characteristics determine that the center o of the hypersphere is calculated using formula (22), and the expression of formula (22) is:

[0065]

[0066] (iv) Define the anomaly score formula and calculate the scores for all normal training samples. Determine the threshold ξ by sorting in ascending order.

[0067] Specifically, the anomaly score for identifying anomalies is calculated using formula (23), which is expressed as follows:

[0068]

[0069] In the formula, The optimal connection weights are obtained by solving formula (21);

[0070] The threshold ξ is calculated using formula (24), and the expression for formula (24) is:

[0071]

[0072] In the formula, s represents all normal training samples. Abnormal scores An ascending sorted array, This is the floor operator. To obtain the value of the 95th percentile in an array s of length n.

[0073] (V) Collecting Test Data x t Calculate the anomaly score s(x) of the test data. t If s(x) t If )>ξ, then the test data x t If it is an exception, it is classified as an exception; otherwise, it is classified as a normal exception.

[0074] The present invention provides an anomaly detection method for industrial control systems. This method learns from normal samples using a bidirectional generative adversarial network (GAN) to generate pseudo-anomaly samples. Different penalty terms are designed to constrain the range of generated pseudo-anomaly samples, and a penalty term loss is constructed and incorporated into the GAN training. A filter is used to screen the data, returning an index of pseudo-anomaly samples that meet the conditions. An autoencoder is employed to extract features from both normal and pseudo-anomaly samples, and the reconstruction error of normal samples is calculated. Pseudo-anomaly samples are used to constrain the boundary of a single-class hypersphere. In the detection phase, anomalies are determined by constructing anomaly scores and thresholds. This invention combines GAN with deep single-class classification, explores the role of anomaly samples in deep single-class training, and constructs a constraint mechanism to further improve the model's detection accuracy.

[0075] To more clearly illustrate the beneficial effects of the above-described industrial control system anomaly detection method of the present invention, the following detailed description of the above-described industrial control system anomaly detection method of the present invention is provided in conjunction with specific embodiments.

[0076] Example:

[0077] The SWaT dataset was collected and developed by the iTrust organization at the Singapore University of Technology and Design (SUTD) as a water treatment testing platform for cybersecurity research. It includes six stages of a water treatment plant: raw water intake and storage in tanks, raw water quality assessment, mechanical water filtration, dechlorination, reverse osmosis, and distillation of purified water into storage or another cleaning cycle. The collected data covers 51 sensors and actuators.

[0078] In this embodiment, a simulation comparison is performed using Support Vector Data Description (SVDD), Deep Support Vector Data Description (DeSVDD), and the Adversarial-Driven Deep Support Vector Data Description (AD-DeSVDD) method of this invention. Accuracy, Precision, Recall, F1 score, and AUC are used as performance metrics to evaluate the different anomaly detection methods. The hyperparameters μ, β, and λ in the AD-DeSVDD method of this invention are 10... -4 10 -1 10 -6 The experimental results are shown in Table 1.

[0079] Table 1 Experimental results on the SWaT dataset

[0080]

[0081] The experimental results in Table 1 verify the effectiveness of the AD-DeSVDD method of this invention in anomaly detection tasks. By introducing pseudo-anomaly samples generated by adversarial learning into the training process of DeSVDD, and constructing constraints to optimize the boundary of the single-classification model, the AD-DeSVDD method of this invention can perform radius edge detection more efficiently and accurately identify anomalous data, increasing detection accuracy compared to the other two methods. Therefore, the AD-DeSVDD method provided by this invention demonstrates high feasibility and practicality in the field of anomaly detection.

[0082] Based on the above analysis, the AD-DeSVDD method provided by this invention combines adversarial learning with deep single classification and constructs a constraint mechanism, which further improves the detection accuracy of the anomaly detection model of the industrial control system, proving that its performance is superior to traditional single classification methods.

[0083] The embodiments described above are merely illustrative of the present invention and are not intended to limit the scope of protection of the present invention. Any simple modifications and variations made by those skilled in the art within the scope of the technical solutions described in the present invention should be included within the scope of the above-mentioned patent applications.

Claims

1. An anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description, characterized in that, Includes the following steps: (a) Collecting data on normal operating conditions of industrial control systems As training data, a pseudo-abnormal sample dataset is generated by learning normal operating condition data using a bidirectional generative adversarial network. ,in This is the number of normal samples. This represents the number of outlier samples. , It is a generator in generative adversarial networks. It is a random latent vector with a mean of 0 and a variance of 1; the industrial control system dataset is the SWaT dataset, which includes 6 stages of the water treatment plant: taking raw water and storing it in a water tank, raw water quality assessment, mechanical water filtration, dechlorination, reverse osmosis, distilling purified water into the storage or performing another cleaning cycle, and the collected data covers 51 sensors and actuators; The generator in the bidirectional generative adversarial network is trained using formulas (1)-(4). Generate pseudo-anomaly samples The expressions for formulas (1) to (4) are: (1) (2) (3) (4) In the formula, A generator for bidirectional generative adversarial networks. For the encoder of a bidirectional generative adversarial network, A discriminator for bidirectional generative adversarial networks. The joint loss of the generator and discriminator combination. To reconstruct the loss, It is a penalty loss. It is a Boolean function, when the condition is met. The value is 1 when the condition is met, and 0 otherwise. (Hyperparameter) Used to adjust the range of generated data. Normal sample The center, Normal sample With the center point The average Euclidean distance; normal sample center point Calculated using formula (5), the expression of formula (5) is: (5) Calculated using formula (6), the expression of formula (6) is: (6); (ii) Calculating pseudo-anomaly samples Compared with normal data center points Euclidean distance Define anomaly filters The pseudo-anomaly samples are filtered to obtain the filtered pseudo-anomaly samples. ,in This represents the number of pseudo-anomaly samples after filtering. (iii) Using an autoencoder on normal samples and pseudo-anomaly samples Feature extraction is performed, and the objective function is constructed by combining the feature reconstruction error, the hypersphere volume of normal samples and the projection of pseudo-abnormal samples on the hypersphere boundary as shown in Equation (9). The deep support vector data description network is then trained. The expression for formula (9) is: (9) In the formula, and These represent the number of normal samples and the number of pseudo-abnormal samples, respectively. The center of this hypersphere, This is a normal sample. This is a pseudo-abnormal sample. Normal sample Reconstructed samples, To balance the loss ratio between normal samples and pseudo-abnormal samples, and These are the tradeoff parameters between reconstruction error and network regularization, respectively. For the mapping network of the autoencoder, , For the first Connection weights of layered networks, Given the number of network layers, optimization is achieved by solving formula (9). Connection weights, It is the Frobenius norm; Hypersphere Center From normal samples and pseudo-anomaly samples The potential characteristics determine the calculation of the hypersphere center using formula (10). The expression for formula (10) is: (10); (iv) Define the anomaly scoring formula and calculate the scores for all normal training samples. Determine the threshold by sorting in ascending order. ; (v) Collect test data Calculate the anomaly score of the test data. ,if Then the test data If it is an exception, it is classified as an exception; otherwise, it is classified as a normal exception.

2. The anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description as described in claim 1, characterized in that, The pseudo-anomaly samples in step (II) Compared with normal data center points Euclidean distance Calculated using formula (7), the expression of formula (7) is: (7) Filter Calculated using formula (8), the expression of formula (8) is: (8) In the formula, hyperparameters ; After passing through the filter in the above formula (8) right Process and filter those that meet the conditions. of That is, to obtain the filtered pseudo-abnormal samples .

3. The anomaly detection method for industrial control systems based on adversarial-driven deep support vector data description as described in claim 1, characterized in that, In step (iv), the anomaly score for identifying anomalies is calculated using formula (11), and the expression for formula (11) is: (11) In the formula, The optimal connection weights are obtained by solving formula (10); threshold Calculated using formula (12), the expression for formula (12) is: (12) In the formula, For all normal training samples Abnormal scores An ascending sorted array, This is the floor operator. To obtain a length of array The value at the 95th percentile.