Industrial control system anomaly type detection method, system, device and medium

The multi-objective particle swarm optimization algorithm is used to optimize the parameters and selection features of the support vector machine, and the anomaly detection model is constructed based on the binary tree theory. This solves the problem of efficiency and accuracy of the intrusion detection system in the industrial control system when processing large amounts of data, and achieves efficient anomaly detection. Type detection.

CN118709059AActive Publication Date: 2024-09-27SHANDONG UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411025629.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-09-27
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing industrial control system intrusion detection systems (IDS) such as support vector machines (SVM) are prone to failure due to insufficient memory or long training when processing large amounts of data, and lack the ability to immediately obtain the importance of features, resulting in increased computational difficulty and Forecast accuracy is weak.

Method used

The multi-objective particle swarm optimization algorithm is used to optimize the parameters and selection characteristics of the support vector machine. The industrial control system operating data is processed through standardization and dimensionality reduction, and a binary tree support vector machine model is constructed to detect anomaly types.

Benefits of technology

It improves the operating efficiency of industrial control system anomaly detection and the accuracy of type prediction, enables accurate classification of different types of attacks, and reduces computing pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709059A
    Figure CN118709059A
Patent Text Reader

Abstract

The invention belongs to the technical field of computer systems based on specific calculation models, and particularly relates to an industrial control system anomaly type detection method, system and device and a medium. Using a multi-target particle swarm optimization algorithm to optimize the parameters of the support vector machine and perform feature selection, thereby obtaining the optimal parameters of the support vector machine and obtaining a feature subset related to the abnormal type; the industrial control system anomaly detection model obtained according to the optimal parameters of the support vector machine and the feature subset is high in operation efficiency and high in type prediction accuracy, and different types of attacks in the industrial control system can be accurately classified.
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 control system security detection, and specifically relates to an industrial control system abnormality type detection method, system, device, and medium. Background Art

[0002] In recent years, various innovative applications such as industrial Internet, smart manufacturing, and the Internet of Things have developed rapidly. The number of networked control devices and data exchange facilities in Industrial Control Systems (ICS) has increased, and data access methods have become more diverse. These changes have made industrial control equipment more vulnerable to various network attacks during operation.

[0003] Currently, intrusion detection systems (IDS) using support vector machines (SVMs) can monitor network data transmission and discover abnormal behaviors by analyzing data. However, SVMs are affected by the size of the data set and may cause system failures due to insufficient memory or long training time. In real life, data usually has a large number of irrelevant or outdated features, and SVMs lack the ability to immediately possess feature importance, which significantly increases the computational difficulty and may lead to weak prediction accuracy. Summary of the invention

[0004] In order to solve the problems raised by the background technology, the present invention provides an industrial control system abnormality type detection method, system, device and medium.

[0005] The technical solution of the present invention is as follows: The present invention provides an abnormal type detection method for an industrial control system, comprising the following steps: S1: Obtain the operation data of the industrial control system, including: tags, command addresses, response addresses, command memory counts, communication read functions, response write functions, sub-functions, set points, control modes, control schemes, and measurements. Calculate the standard deviation of the features in the operation data of the industrial control system, delete the features with zero standard deviation, scale the features to features with a mean of zero and a variance of 1, perform dimensionality reduction, and construct a feature data set. S2: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, which are as follows: S21: Initialize the parameters of the multi-objective particle swarm optimization algorithm, the parameters including the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a parameter combination of the support vector machine and a feature selected from the feature data set; different particle positions have parameter combinations with different values ​​and different feature combinations; S22: construct a fitness value vector according to the classification accuracy and the feature score, and calculate the fitness value vector of the particle based on the position of the particle; S23: If the fitness value vector of the particle is better than the historical optimal fitness value vector of the particle, then the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated; S24: Determine the non-dominated solution based on the optimal position of the particle; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage is full, the congestion of the non-dominated solutions in the storage is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage; S25: The position of the particle with the smallest congestion in the storage repository is taken as the optimal position of the particle swarm; S26: according to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle; According to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle; S27: Obtain a mutation probability according to the first position of the particle, a mutation rate index, a preset number of iterations, and a current round, and generate a random number based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle; S28: If the preset conditions are met, the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm; If the preset condition is not met, S22 is executed until the preset condition is met, and the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm; S3: Match the optimal parameters to the support vector machine, build a binary tree support vector machine based on the binary tree theory, and obtain the industrial control system anomaly detection model after training with feature subsets; S4: Obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

[0006] In S22, a fitness vector is constructed according to the classification accuracy and the feature score, and a fitness value vector of the particle is calculated based on the position of the particle, specifically: According to the formula: , calculate the fitness value vector of the particle; In the formula, is the fitness value vector of the particle, is the classification accuracy, is the feature score.

[0007] The classification accuracy is based on the formula: , calculate the classification accuracy; In the formula, True negatives, the number of samples correctly predicted as negative; True positives are the number of samples correctly predicted as positive; False negatives are the number of positive samples that are incorrectly predicted as negative; False positives are the number of negative samples that are incorrectly predicted as positive; The characteristic score is based on the formula: , calculate the feature score; In the formula, is the number of features selected from the feature dataset, is the total number of features in the feature dataset.

[0008] In S26, the particle speed is updated according to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, and the updated particle speed is obtained, which is specifically: According to the formula: , update the particle velocity, and obtain the updated particle velocity; In the formula, k is the iteration round; is the velocity of the i-th particle in the k+1th round; is the velocity of the i-th particle in the k-th round; is the optimal position of the i-th particle; is the position of the i-th particle in the k-th round; is the inertia weight, which is used to control the inertia of particle movement; is the first cognitive coefficient, which represents the weight of the particle’s own experience; is the second cognitive coefficient, which represents the weight of particle group experience; and All are random numbers between 0 and 1; is the optimal position of the particle swarm.

[0009] In S26, the position of the particle is updated according to the updated particle speed and the position of the particle in the current round to obtain the first position of the particle, which is specifically: According to the formula: , update the position of the particle; In the formula, is the position of the i-th particle in the k+1th round; is the position of the i-th particle in the k-th round; is the velocity of the ith particle in the k+1th round.

[0010] In S27, the mutation probability is obtained according to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, which is based on the formula: , get the mutation probability; In the formula, is the mutation probability, is the mutation rate index, is the preset number of iterations, For the current round.

[0011] In S1, the features are scaled to have a mean of zero and a variance of 1, specifically: According to the formula: , scale the features to have a mean of zero and a variance of 1; In the formula, is the standardized eigenvalue, is the original eigenvalue; is the original eigenvalue The mean of is the original eigenvalue The standard deviation of .

[0012] The present invention also provides an industrial control system abnormality type detection system, comprising: Feature data set construction module: used to obtain industrial control system operation data, including: tags, command addresses, response addresses, command memory counts, communication read functions, response write functions, sub-functions, set points, control modes, control schemes, and measurement values. It calculates the standard deviation of features in the industrial control system operation data, deletes features with zero standard deviation, scales the features to features with a mean of zero and a variance of 1, performs dimensionality reduction processing, and constructs a feature data set. Optimization module: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, specifically: Initialize the parameters of the multi-objective particle swarm optimization algorithm, which include the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a combination of parameters of the support vector machine and a feature selected from a feature data set. The positions of different particles have parameter combinations with different values ​​and different feature combinations. Construct a fitness value vector according to the classification accuracy and feature score, and calculate the fitness value vector of the particle based on the position of the particle; If the fitness value vector of a particle is better than the historical optimal fitness value vector of the particle, the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated; Determine the non-dominated solution based on the optimal position of the particles; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage is full, the congestion of the non-dominated solutions in the storage is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage; The position of the particle with the least crowded non-dominated solution in the repository is taken as the optimal position of the particle swarm; According to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle; According to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle; According to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, the mutation probability is obtained, and a random number is generated based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle; If the preset conditions are met, the optimal parameters of the feature subset and support vector machine are obtained according to the optimal position of the particle swarm; If the preset conditions are not met, the fitness value vector of the particle is recalculated until the preset conditions are met. According to the optimal position of the particle swarm, the optimal parameters of the feature subset and the support vector machine are obtained; Industrial control system anomaly detection model building module: used to match the optimal parameters to the support vector machine, build a binary tree support vector machine based on the binary tree theory, and obtain the industrial control system anomaly detection model after training with feature subsets; Type detection module: used to obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

[0013] The present invention also provides an industrial control system abnormality type detection device, comprising a processor and a memory, wherein the industrial control system abnormality type detection method is implemented when the processor executes a computer program stored in the memory.

[0014] The present invention also provides an industrial control system abnormality type detection medium for storing a computer program, wherein the computer program implements the industrial control system abnormality type detection method when executed by a processor.

[0015] Beneficial effect: The industrial control system anomaly type detection method provided by the present invention first standardizes and reduces the dimension of the features to reduce the computer operation pressure, and then uses the multi-objective particle swarm optimization algorithm to optimize the parameters of the support vector machine and select features, thereby obtaining both the optimal parameters of the support vector machine and the feature subset related to the anomaly type; the industrial control system anomaly detection model obtained according to the optimal parameters and feature subset of the support vector machine has high operating efficiency and high accuracy in type prediction, and can accurately classify different types of attacks in the industrial control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The figure is a flow chart of a method for detecting abnormality types of an industrial control system in an embodiment. DETAILED DESCRIPTION

[0017] The following examples are intended to illustrate the present invention rather than to further limit the present invention.

[0018] The present invention provides a method for detecting abnormal types of industrial control systems, such as Figure 1 As shown, the following steps are included: S1: Obtain the operating data of the industrial control system, including: tags, command addresses, response addresses, command memory counts, communication read functions, response read functions, sub-functions, set points, control modes, control schemes, and measurements. Calculate the standard deviation of the features in the operating data of the industrial control system, delete the features with a standard deviation of zero, scale the features to features with a mean of zero and a variance of 1, perform dimensionality reduction, and construct a feature data set.

[0019] The command address indicates the target address of the command. Different attacks may target different command addresses. By analyzing the changes in the command address, abnormal command injection can be identified.

[0020] Response Address: It indicates the source address of the response. Malicious response injection attacks usually forge the response address. Analyzing the anomalies of the response address can help identify such attacks.

[0021] Command Memory Count: indicates the number of memory regions involved in the command. Abnormal attacks may involve unusual memory region counts. By monitoring this feature, malicious memory operations can be detected.

[0022] Comm Read Function, which indicates the function code of the read command. Different types of read operations correspond to different function codes. Abnormal or malicious read operations will use different function codes, so they can be identified by this feature.

[0023] Resp Read Fun: This indicates the function code of the response to the read command. Malicious responses may use abnormal function codes, and monitoring this feature can help identify abnormal responses.

[0024] Sub Function: It indicates the sub-function code of a command. Malicious command injection attacks may use specific sub-function codes. Analyzing the usage of sub-function codes can help identify malicious commands.

[0025] Setpoint refers to the set value of the control system. Abnormal attacks may modify the setpoint to destroy the system. Monitoring the changes in the setpoint can help detect such attacks.

[0026] Control Mode refers to the working mode of the control system. Different attacks may try to switch the control mode. By monitoring the changes in the control mode, abnormal operations can be identified.

[0027] Control Scheme refers to the configuration of the control system. Attackers may try to change the control scheme to interfere with the system. Analyzing the changes in the control scheme can help detect such attacks.

[0028] Measurement: Indicates the actual measurement value of the system. Attackers may forge or tamper with the measurement value. By monitoring abnormal changes in the measurement value, forged data injection attacks can be identified.

[0029] In addition, the industrial control system operation data also includes: command memory (memory location related to the command), response memory (memory location related to the response), response memory count (the number of memory areas involved in the response), communication write function (function code of the write command), response write function (function code of the response write command), error status (current error status), error count (number of times the error occurs), cyclic redundancy check (CRC), function code (function code), command (command content), response (response content), rate (transmission rate), pump (pump status), solenoid valve (solenoid valve status), CRC check rate, time (timestamp or time interval), and result (classification result).

[0030] In order to reduce the operating burden of the computer, considering that the standard deviation of some features is close to zero, it means that the feature has no difference in the sample and does not work for classification. Therefore, the features with a standard deviation of zero are deleted, and according to the formula: , scale the features to have a mean of zero and a variance of 1; In the formula, is the standardized eigenvalue, is the original eigenvalue; is the original eigenvalue The mean of is the original eigenvalue The standard deviation of .

[0031] In addition, since the number of samples of some types in this data set is too different from that of normal samples, in order to avoid overfitting, the SMOTE algorithm is used to oversample the smaller number of type samples to balance the data set. When the number of samples of a certain type is less than 5% of the normal samples, the samples of that type are increased to 5% of the normal samples and added to the data set to synthesize new samples.

[0032] Regarding dimensionality reduction, linear discriminant analysis (LDA) can be used to reduce the dimensionality of the original data, reduce the complexity of the data, and use type label information to maximize the ratio of between-class variance to within-class variance, thereby enhancing the separability of the data.

[0033] S2: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, which are as follows: S21: Initialize the parameters of the multi-objective particle swarm optimization algorithm, wherein the parameters include the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a parameter combination of the support vector machine and a feature selected from the feature data set. The positions of different particles have parameter combinations with different values ​​and different feature combinations.

[0034] The search objectives of particles are two, namely, maximizing classification accuracy and minimizing the number of features.

[0035] In addition, the parameters include: inertia weight , used to control the inertia of particle movement; the first cognitive coefficient , which represents the weight of the particle’s own experience; the second cognitive coefficient , represents the weight of particle group experience; number of particles, upper and lower boundaries of search space.

[0036] The parameters of the support vector machine are the penalty parameter C and the kernel function parameter γ, which determine the classification performance of the support vector machine.

[0037] The features selected from the feature dataset can be achieved through a feature selection mask, which is a binary vector representing the selected features.

[0038] Additionally, a repository of nondominated solutions is created and the size of the repository is initialized.

[0039] S22: Construct a fitness value vector according to the classification accuracy and the feature score, and calculate the fitness value vector of the particle based on the position of the particle, specifically: According to the formula: , calculate the fitness value vector of the particle; In the formula, is the fitness value vector of the particle, is the classification accuracy, is the feature score.

[0040] The classification accuracy is based on the formula: , calculate the classification accuracy; In the formula, True negatives, the number of samples correctly predicted as negative; True positives are the number of samples correctly predicted as positive; False negatives are the number of positive samples that are incorrectly predicted as negative; False positives are the number of negative samples that are incorrectly predicted as positive; The characteristic score is based on the formula: , calculate the feature score; In the formula, is the number of features selected from the feature dataset, is the total number of features in the feature dataset.

[0041] S23: If the fitness value vector of the particle is better than the historical optimal fitness value vector of the particle, then the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated.

[0042] In the multi-objective particle swarm optimization algorithm, each particle has its own speed and position. The speed indicates the moving direction and speed of the particle in the search space, and the position indicates the position of the particle in the current round. Each particle searches for the optimal solution in the search space individually and records it as the current individual extreme value, that is, the particle's historical optimal fitness value vector, thereby ensuring that each particle records the best solution encountered by the individual particle during its own search process.

[0043] S24: Determine the non-dominated solution based on the optimal position of the particle; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage repository is full, the congestion of the non-dominated solutions in the storage repository is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage repository.

[0044] Specifically, after obtaining the optimal position of the particle, determine whether the fitness value vector of the current particle is better than some non-dominated solutions in the repository. If the fitness value vector of the particle is better than some solutions in the repository in terms of both "maximizing classification accuracy and minimizing the number of features", the particle needs to be added to the repository.

[0045] If the repository is full, the congestion of all non-dominated solutions in the repository is calculated. The roulette wheel selection strategy can be used to remove the non-dominated solution with the highest congestion to make room for new non-dominated solutions. Non-dominated solutions with high congestion indicate that the solution has a high distribution density in the target space, which means that it contributes less diversity in the repository. Removing non-dominated solutions with high congestion ensures that the repository always stores the best non-dominated solution in the current particle swarm and maintains diversity.

[0046] S25: The position of the particle of the non-dominated solution with the minimum congestion in the storage repository is taken as the optimal position of the particle swarm.

[0047] The optimal position of the particle swarm represents the highest fitness value vector of the particle, thus achieving the goal of maximizing classification accuracy and minimizing the number of features.

[0048] S26: According to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle, which is specifically: According to the formula: , update the particle velocity, and obtain the updated particle velocity; In the formula, k is the iteration round; is the velocity of the i-th particle in the k+1th round; is the velocity of the i-th particle in the k-th round; is the optimal position of the i-th particle; is the position of the i-th particle in the k-th round; is the inertia weight, which is used to control the inertia of particle movement; is the first cognitive coefficient, which represents the weight of the particle’s own experience; is the second cognitive coefficient, which represents the weight of particle group experience; and All are random numbers between 0 and 1; is the optimal position of the particle swarm.

[0049] Then, according to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle, specifically: According to the formula: , update the position of the particle; In the formula, is the position of the i-th particle in the k+1th round; is the position of the i-th particle in the k-th round; is the velocity of the ith particle in the k+1th round.

[0050] S27: Obtain a mutation probability according to the first position of the particle, a mutation rate index, a preset number of iterations, and a current round, and generate a random number based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle.

[0051] Specifically, in S27, the mutation probability is obtained according to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, which is based on the formula: , get the mutation probability; In the formula, is the mutation probability, is the mutation rate index, is the preset number of iterations, For the current round.

[0052] As the number of iterations increases, the current round value becomes larger and larger, and the probability of mutation becomes smaller and smaller, that is, the probability of mutation is higher in the early stage of search and lower in the later stage of search. This helps to increase diversity in the early stage of search, while the later stage of search is more focused on local search.

[0053] In each iteration, according to the current mutation probability , generate a random number rand. If rand < , then the particle is mutated; otherwise, no mutation is performed. For the selected particle, a dimension (i.e., an element in the position vector) is randomly selected for mutation. The position of the mutated particle can be randomly selected between the upper and lower bounds, thereby changing the positions of some particles, increasing the diversity of solutions, and obtaining updated particle positions. The specific formula is as follows: ,in, is the position of particle i, is the lower bound of the variable, is the upper bound of the variable, is the upper bound of the search space, is the lower bound of the search space. Mutate to a new location ,in yes A random value in the interval.

[0054] S28: If the preset conditions are met, the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm; If the preset condition is not met, S22 is executed until the preset condition is met, and the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm.

[0055] Specifically, the preset condition may be a preset number of iterations or a preset fitness threshold.

[0056] S3: Match the optimal parameters to the support vector machine, and build a binary tree support vector machine based on the binary tree theory. After training with the feature subset, the industrial control system anomaly detection model is obtained.

[0057] By constructing a binary tree support vector machine, the multi-classification problem is transformed into multiple binary classification problems. Specifically, a binary tree structure is constructed, in which each node is a binary classification support vector machine, and each binary classification support vector machine is trained on the feature subset using the optimal parameters (C, γ); the test data is detected and classified by the binary tree support vector machine to obtain the prediction result, and the prediction result is compared with the actual label. The accuracy, recall rate, F1 score and other indicators are calculated through the multi-classification confusion matrix to evaluate the performance of the trained industrial control system anomaly detection model.

[0058] S4: Obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

[0059] Generally, the type detection results are: Simple Malicious Response Injection (NMRI): involves a simpler malicious response injection; Complex Malicious Response Injection (CMRI): involves complex malicious response injection, which may have multiple steps or more complex logic; Malicious State Command Injection (MSCI): Change the system state through malicious command injection; Malicious parameter command injection (MPCI): Influences the system's running commands by injecting malicious parameters; Malicious Function Command Injection (MFCI): Injecting malicious function commands that may change or destroy system functions; Denial of service attack (DOS): Make the system unable to provide normal services through a large number of requests or other means; Recon: The attacker attempts to gather information about the system in order to conduct further attacks.

[0060] The method for detecting abnormal types of industrial control systems provided by the present invention first standardizes and reduces the dimensions of features to reduce the operating pressure of the computer, and then uses a particle swarm optimization algorithm to optimize the parameters of a support vector machine and select features, thereby obtaining both the optimal parameters of the support vector machine and a feature subset related to the abnormal type; the industrial control system abnormality detection model obtained according to the optimal parameters and feature subset of the support vector machine has high operating efficiency and high accuracy in type prediction, and can accurately classify different types of attacks in the industrial control system.

[0061] The present invention also provides an industrial control system abnormality type detection system, comprising: Feature data set construction module: used to obtain industrial control system operation data, including: tags, command addresses, response addresses, command memory counts, communication read functions, response write functions, sub-functions, set points, control modes, control schemes, and measurement values. It calculates the standard deviation of features in the industrial control system operation data, deletes features with zero standard deviation, scales the features to features with a mean of zero and a variance of 1, performs dimensionality reduction processing, and constructs a feature data set. Optimization module: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, specifically: Initialize the parameters of the multi-objective particle swarm optimization algorithm, which include the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a combination of parameters of the support vector machine and a feature selected from a feature data set. The positions of different particles have parameter combinations with different values ​​and different feature combinations. Construct a fitness value vector according to the classification accuracy and feature score, and calculate the fitness value vector of the particle based on the position of the particle; If the fitness value vector of a particle is better than the historical optimal fitness value vector of the particle, the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated; Determine the non-dominated solution based on the optimal position of the particles; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage is full, the congestion of the non-dominated solutions in the storage is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage; The position of the particle with the least crowded non-dominated solution in the repository is taken as the optimal position of the particle swarm; According to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle; According to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle; According to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, the mutation probability is obtained, and a random number is generated based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle; If the preset conditions are met, the optimal parameters of the feature subset and support vector machine are obtained according to the optimal position of the particle swarm; If the preset conditions are not met, the fitness value vector of the particle is recalculated until the preset conditions are met. According to the optimal position of the particle swarm, the optimal parameters of the feature subset and the support vector machine are obtained; Industrial control system anomaly detection model building module: used to match the optimal parameters to the support vector machine, build a binary tree support vector machine based on the binary tree theory, and obtain the industrial control system anomaly detection model after training with feature subsets; Type detection module: used to obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

[0062] The present invention also provides an industrial control system abnormality type detection device, comprising a processor and a memory, wherein the industrial control system abnormality type detection method is implemented when the processor executes a computer program stored in the memory.

[0063] The present invention also provides an industrial control system abnormality type detection medium for storing a computer program, wherein the computer program implements the industrial control system abnormality type detection method when executed by a processor.

Claims

1. A method for detecting abnormal types of industrial control systems, characterized in that: The following steps are involved: S1: Obtain the operation data of the industrial control system, including: tags, command addresses, response addresses, command memory counts, communication read functions, response write functions, sub-functions, set points, control modes, control schemes, and measurements. Calculate the standard deviation of the features in the operation data of the industrial control system, delete the features with zero standard deviation, scale the features to features with a mean of zero and a variance of 1, perform dimensionality reduction, and construct a feature data set. S2: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, which are as follows: S21: Initialize the parameters of the multi-objective particle swarm optimization algorithm, the parameters including the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a parameter combination of the support vector machine and a feature selected from the feature data set; different particle positions have parameter combinations with different values ​​and different feature combinations; S22: construct a fitness value vector according to the classification accuracy and the feature score, and calculate the fitness value vector of the particle based on the position of the particle; S23: If the fitness value vector of the particle is better than the historical optimal fitness value vector of the particle, then the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated; S24: Determine the non-dominated solution based on the optimal position of the particle; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage is full, the congestion of the non-dominated solutions in the storage is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage; S25: The position of the particle with the smallest congestion in the storage repository is taken as the optimal position of the particle swarm; S26: according to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle; According to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle; S27: Obtain a mutation probability according to the first position of the particle, a mutation rate index, a preset number of iterations, and a current round, and generate a random number based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle; S28: If the preset conditions are met, the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm; If the preset condition is not met, S22 is executed until the preset condition is met, and the optimal parameters of the feature subset and the support vector machine are obtained according to the optimal position of the particle swarm; S3: Match the optimal parameters to the support vector machine, build a binary tree support vector machine based on the binary tree theory, and obtain the industrial control system anomaly detection model after training with feature subsets; S4: Obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

2. The method for detecting abnormality types of industrial control systems according to claim 1, characterized in that: In S22, a fitness value vector is constructed according to the classification accuracy and the feature score, and the fitness value vector of the particle is calculated based on the position of the particle, specifically: According to the formula: , calculate the fitness value vector of the particle; In the formula, is the fitness value vector of the particle, is the classification accuracy, is the feature score.

3. The method for detecting abnormality types of industrial control systems according to claim 2, characterized in that: The classification accuracy is based on the formula: , calculate the classification accuracy; In the formula, True negatives are the number of samples correctly predicted as negative; True positives are the number of samples correctly predicted as positive; False negatives are the number of positive samples that are incorrectly predicted as negative; False positives are the number of negative samples that are incorrectly predicted as positive; The characteristic score is based on the formula: , calculate the feature score; In the formula, is the number of features selected from the feature dataset, is the total number of features in the feature dataset.

4. The method for detecting abnormality types of industrial control systems according to claim 1, characterized in that: In S26, the particle speed is updated according to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, and the updated particle speed is obtained, which is specifically: According to the formula: , update the particle velocity, and obtain the updated particle velocity; In the formula, k is the iteration round; is the velocity of the i-th particle in the k+1th round; is the velocity of the i-th particle in the k-th round; is the optimal position of the i-th particle; is the position of the i-th particle in the k-th round; is the inertia weight, which is used to control the inertia of particle movement; is the first cognitive coefficient, which represents the weight of the particle’s own experience; is the second cognitive coefficient, which represents the weight of particle group experience; and All are random numbers between 0 and 1; is the optimal position of the particle swarm.

5. The method for detecting abnormality types of industrial control systems according to claim 1, characterized in that: In S26, the position of the particle is updated according to the updated particle speed and the position of the particle in the current round to obtain the first position of the particle, which is specifically: According to the formula: , update the position of the particle; In the formula, is the position of the i-th particle in the k+1th round; is the position of the i-th particle in the k-th round; is the velocity of the ith particle in the k+1th round.

6. The method for detecting abnormality types of industrial control systems according to claim 1, characterized in that: In S27, the mutation probability is obtained according to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, which is based on the formula: , get the mutation probability; In the formula, is the mutation probability, is the mutation rate index, is the preset number of iterations, For the current round.

7. The method for detecting abnormality types of industrial control systems according to claim 1, characterized in that: In S1, the features are scaled to have a mean of zero and a variance of 1, specifically: According to the formula: , scale the features to have a mean of zero and a variance of 1; In the formula, is the standardized eigenvalue, is the original eigenvalue; is the original eigenvalue The mean of is the original eigenvalue The standard deviation of .

8. An industrial control system abnormality type detection system, characterized in that: include: Feature data set construction module: used to obtain industrial control system operation data, including: tags, command addresses, response addresses, command memory counts, communication read functions, response write functions, sub-functions, set points, control modes, control schemes, and measurement values. It calculates the standard deviation of features in the industrial control system operation data, deletes features with zero standard deviation, scales the features to features with a mean of zero and a variance of 1, performs dimensionality reduction processing, and constructs a feature data set. Optimization module: Based on the feature data set, the optimal parameters of the feature subset and support vector machine are obtained through the multi-objective particle swarm optimization algorithm, specifically: Initialize the parameters of the multi-objective particle swarm optimization algorithm, which include the position, speed, mutation rate index, and preset number of iterations of the particle. The position of each particle in the particle swarm is a combination of parameters of the support vector machine and a feature selected from a feature data set. The positions of different particles have parameter combinations with different values ​​and different feature combinations. Construct a fitness value vector according to the classification accuracy and feature score, and calculate the fitness value vector of the particle based on the position of the particle; If the fitness value vector of a particle is better than the historical optimal fitness value vector of the particle, the optimal position of the particle is updated according to the fitness value vector of the particle; If the fitness value vector of a particle is not better than the historical optimal fitness value vector of the particle, the optimal position of the particle will not be updated; Determine the non-dominated solution based on the optimal position of the particles; If the storage bin is not full, the non-dominated solution is directly added to the storage bin; If the storage is full, the congestion of the non-dominated solutions in the storage is calculated, the non-dominated solution with the largest congestion is removed, and the new non-dominated solution is added to the storage; The position of the particle with the least crowded non-dominated solution in the repository is taken as the optimal position of the particle swarm; According to the speed of the particle in the current round, the optimal position of the particle and the optimal position of the particle group, the speed of the particle is updated to obtain the updated speed of the particle; According to the updated particle speed and the position of the particle in the current round, the particle position is updated to obtain the first position of the particle; According to the first position of the particle, the mutation rate index, the preset number of iterations, and the current round, the mutation probability is obtained, and a random number is generated based on the mutation probability; If the random number is less than the mutation probability, the first position of the particle is mutated to obtain the updated position of the particle; If the random number is not less than the mutation probability, no mutation operation is performed, and the first position of the particle is used as the updated position of the particle; If the preset conditions are met, the optimal parameters of the feature subset and support vector machine are obtained according to the optimal position of the particle swarm; If the preset conditions are not met, the fitness value vector of the particle is recalculated until the preset conditions are met. According to the optimal position of the particle swarm, the optimal parameters of the feature subset and the support vector machine are obtained; Industrial control system anomaly detection model building module: used to match the optimal parameters to the support vector machine, build a binary tree support vector machine based on the binary tree theory, and obtain the industrial control system anomaly detection model after training with feature subsets; Type detection module: used to obtain the operating data of the industrial control system to be detected, and output the type detection result after detection by the industrial control system anomaly detection model.

9. An abnormality type detection device for an industrial control system, characterized in that: The method comprises a processor and a memory, wherein the processor implements the industrial control system abnormality type detection method as described in any one of claims 1 to 7 when executing the computer program stored in the memory.

10. An industrial control system abnormality type detection medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the industrial control system abnormality type detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Methods and compositions for highly sensitive detection of molecules

    CN102016552A

  • PSO-OCSVM based industrial control system communication behavior anomaly detection method

    CN105703963A

  • Modbus TCP communication behavior abnormity detection method based on OCSVM double-contour model

    CN105704103A

  • Method for optimizing support vector machine based on Particle Swarm Optimization

    CN106682682A

  • Method and device for nondestructive detection of fruit phosphorus content of Huangguan pears

    CN117538287A