A security risk detection method and system based on artificial intelligence
By building a safety risk detection system based on artificial intelligence in hydropower stations, using deep learning and other algorithms for automated identification and prediction, the problems of high labor costs and poor accuracy in traditional methods are solved, and the safety management level and misoperation of hydropower stations are improved. identification efficiency.
Patent Information
- Application Number
- CN202410540619.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-04-30
AI Technical Summary
Traditional hydropower station safety risk detection methods rely on manual judgment, resulting in high labor costs, heavy workload, low practicability and poor accuracy. It is difficult to cope with the complex and changeable actual operating environment, and it is difficult to identify all possible misoperation situations.
Adopt artificial intelligence-based security risk detection methods, build misoperation instruction identification models, security risk prediction models, and hydropower equipment anomaly detection models in the data center, and use deep learning algorithms and algorithms such as IAFSA-BiLSTM and IAFSA-DBN to conduct real-time data Analyze and predict, automatically identify misoperation instructions and safety risks, and promptly withdraw abnormal operation instructions.
It improves the accuracy and efficiency of misoperation identification, enhances the ability to respond to complex operating environments, reduces labor cost investment, improves the safety management level of hydropower stations, and ensures the safe operation of equipment.
Smart Images

Figure CN118350639B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of security risk detection, and specifically relates to a security risk detection method and system based on artificial intelligence. Background Art
[0002] With the rapid development of hydropower station construction in my country, the safety issues of hydropower stations have become increasingly prominent. In particular, accidents caused by misoperation have occurred frequently, causing huge economic losses and casualties to hydropower stations. In order to improve the safety management level of hydropower stations and reduce misoperation accidents, it is necessary to conduct safety risk detection on the equipment operation instructions involved in hydropower stations.
[0003] Misoperation may be caused by a variety of factors, including but not limited to operator fatigue, unreasonable operation procedures, equipment failure or improper maintenance, environmental factors (such as high temperature, high humidity, strong noise, etc.), and inadequate management. Traditional safety risk detection methods usually rely on the formulation of detailed operating procedures and safety checklists, but these methods often rely on manual judgment and execution, with high labor costs and heavy workload; it is difficult to cope with complex and changeable actual operating environments, with low practicality, and it is difficult to identify all possible misoperation situations, with poor accuracy. Summary of the invention
[0004] In order to solve the problems of high manpower cost investment, heavy workload, low practicality and poor accuracy in the prior art, the present invention aims to provide a security risk detection method and system based on artificial intelligence.
[0005] The technical solution adopted by the present invention is:
[0006] A security risk detection method based on artificial intelligence includes the following steps:
[0007] Based on the data center, we build models for identifying erroneous operation instructions, predicting safety risks, and detecting abnormalities in hydropower equipment;
[0008] Collecting real-time operation instructions of the hydropower control unit and real-time target hydropower equipment information of the associated hydropower execution unit;
[0009] Input the real-time operation instruction and the real-time target hydropower equipment information into the erroneous operation instruction recognition model, perform erroneous operation instruction recognition, and obtain the corresponding real-time erroneous operation instruction recognition result;
[0010] If the real-time erroneous operation instruction recognition result is that there is an erroneous operation instruction, a corresponding real-time erroneous operation alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step;
[0011] Input the real-time operation instructions and the real-time target hydropower equipment information into the safety risk prediction model, perform safety risk prediction, and obtain the corresponding real-time safety risk prediction results;
[0012] If the real-time security risk prediction result indicates that there is a security risk, a corresponding real-time security risk alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step;
[0013] Run the real-time operation instruction in the hydropower execution unit, and call the hydropower monitoring unit to collect the real-time hydropower equipment operation data corresponding to the hydropower execution unit according to the real-time target hydropower equipment information;
[0014] Inputting the real-time hydropower equipment operation data into the hydropower equipment anomaly detection model to perform hydropower equipment anomaly detection and obtain the real-time hydropower equipment anomaly detection result;
[0015] If the real-time hydropower equipment abnormality detection result is that there is a hydropower equipment abnormality, a corresponding real-time hydropower equipment abnormality alarm signal is generated, and the real-time operation instruction is withdrawn.
[0016] Furthermore, based on the data center, a misoperation instruction recognition model, a safety risk prediction model, and a hydropower equipment anomaly detection model are constructed, including the following steps:
[0017] Based on the data center, a number of historical operation instructions of the hydropower control unit are collected, and a number of target hydropower equipment with control associations are set for each historical operation instruction;
[0018] Controlling a number of associated target hydropower equipment according to each historical operation instruction, and generating corresponding historical target hydropower equipment information;
[0019] Based on several historical operation instructions and corresponding several historical target hydropower equipment information, a deep learning algorithm is used to build an erroneous operation instruction recognition model and a safety risk prediction model;
[0020] Collect some historical hydropower equipment operation data, and use deep learning algorithm to build a hydropower equipment anomaly detection model based on some historical hydropower equipment operation data.
[0021] Furthermore, according to a number of historical operation instructions and a number of corresponding historical target hydropower equipment information, a deep learning algorithm is used to construct an erroneous operation instruction recognition model and a safety risk prediction model, including the following steps:
[0022] Associating each historical operation instruction with the corresponding historical target hydropower equipment information to obtain a number of corresponding historical association data;
[0023] Using the FCM clustering algorithm, clustering and labeling are performed on a number of historical correlation data to obtain a number of standardized historical correlation data samples with preset misoperation labels and preset security risk labels.
[0024] Based on several standardized historical correlation data samples, the IAFSA-BiLSTM algorithm is used to build an incorrect operation instruction recognition model and a safety risk prediction model.
[0025] Furthermore, the FCM clustering algorithm is used to cluster and label a number of historical association data to obtain a number of standardized historical association data samples with preset misoperation labels and preset security risk labels, including the following steps:
[0026] Use the FCM clustering algorithm to cluster several historical correlation data to obtain several cluster centers, and set corresponding preset misoperation labels and preset security risk labels for each cluster center;
[0027] According to the Euclidean distance between each historical association data and several cluster centers, the historical association data are divided into the cluster center with the closest Euclidean distance to obtain several cluster clusters;
[0028] The preset misoperation labels and preset safety risk labels of each cluster center are diffused to the corresponding cluster clusters to obtain a number of standardized historical association data samples with preset misoperation labels and preset safety risk labels.
[0029] Furthermore, based on several standardized historical correlation data samples, the IAFSA-BiLSTM algorithm is used to build an erroneous instruction recognition model and a safety risk prediction model, including the following steps:
[0030] Divide a number of standardized historical correlation data samples into a first model training sample set and a first model test sample set in a ratio of 7:3;
[0031] Use the IAFSA optimization algorithm to obtain the optimal first initial network parameters of the BiLSTM network;
[0032] According to the optimal first initial network parameters, the BiLSTM algorithm is used to build the initial misoperation instruction recognition model and the initial safety risk prediction model;
[0033] Using the first model training sample set, respectively optimizing and training the initial erroneous operation instruction recognition model and the initial safety risk prediction model to obtain an optimized erroneous operation instruction recognition model and an optimized safety risk prediction model;
[0034] Inputting the first model test sample set into the optimized erroneous operation instruction recognition model and the optimized safety risk prediction model respectively, performing model testing, and obtaining a corresponding number of historical predicted erroneous operation labels and a number of historical predicted safety risk labels;
[0035] Statistically comparing a number of historical predicted erroneous operation labels with a number of corresponding preset erroneous operation labels to obtain a first prediction accuracy rate of an optimized erroneous operation instruction recognition model;
[0036] Statistically comparing a number of historically predicted security risk labels with a number of corresponding preset security risk labels to obtain a second prediction accuracy rate of the optimized security risk prediction model;
[0037] If the first and / or second prediction accuracy is greater than the corresponding first and / or second accuracy threshold, the optimal safety risk prediction model and / or the optimal safety risk prediction model is output, otherwise, the optimization training continues.
[0038] Furthermore, a number of historical hydropower equipment operation data are collected, and based on the historical hydropower equipment operation data, a deep learning algorithm is used to construct a hydropower equipment anomaly detection model, including the following steps:
[0039] Collecting some historical hydropower equipment operation data, and preprocessing some historical hydropower equipment operation data to obtain some preprocessed historical hydropower equipment operation data;
[0040] Based on several preprocessed historical hydropower equipment operation data, the IAFSA-DBN algorithm is used to build a hydropower equipment anomaly detection model.
[0041] Furthermore, based on some pre-processed historical hydropower equipment operation data, the IAFSA-DBN algorithm is used to construct a hydropower equipment anomaly detection model, which includes the following steps:
[0042] Use the IAFSA optimization algorithm to obtain the optimal second initial network parameters of the DBN network;
[0043] According to the optimal second initial network parameters, the DBN algorithm is used to build an initial hydropower equipment anomaly detection model;
[0044] Using a number of pre-processed historical hydropower equipment operation data that are not provided with preset hydropower equipment abnormality labels, pre-training an initial hydropower equipment abnormality detection model to obtain a corresponding pre-trained hydropower equipment abnormality detection model;
[0045] Divide a number of pre-processed historical hydropower equipment operation data samples with preset hydropower equipment abnormality labels into a second model training sample set and a second model test sample set in a ratio of 7:3;
[0046] Using the second model training sample set, optimizing the pre-trained hydropower equipment anomaly detection model to obtain an optimized hydropower equipment anomaly detection model;
[0047] Inputting the second model test sample set into the optimized hydropower equipment anomaly detection model to perform model testing to obtain a number of corresponding historical predicted hydropower equipment anomaly labels;
[0048] Statistically comparing a number of historically predicted hydropower equipment anomaly labels with a number of corresponding preset hydropower equipment anomaly labels to obtain a third prediction accuracy rate of the optimized hydropower equipment anomaly detection model;
[0049] If the third prediction accuracy is greater than the third accuracy threshold, the optimal hydropower equipment anomaly detection model is output, otherwise, the optimization training continues.
[0050] Furthermore, the AFSA optimization algorithm is improved by introducing a chaotic initialization mechanism, an adaptive field of view update mechanism based on Cauchy distribution, a convergence step update mechanism and a dynamic reverse learning mechanism to obtain the IAFSA optimization algorithm.
[0051] A safety risk detection system based on artificial intelligence is used to implement a safety risk detection method. The system includes a data center, a hydropower control unit, a hydropower execution unit and a hydropower monitoring unit. The data center is communicated with the hydropower control unit, the hydropower execution unit and the hydropower monitoring unit respectively, and the data center is provided with an erroneous operation instruction recognition model, a safety risk prediction model and a hydropower equipment abnormality detection model.
[0052] Furthermore, the data center includes a model building model, an instruction collection module, an erroneous operation instruction recognition module, a safety risk prediction module, a data collection module and a hydropower equipment anomaly detection module which are connected in sequence.
[0053] The beneficial effects of the present invention are:
[0054] The present invention provides an artificial intelligence-based safety risk detection method and system. By using a deep learning algorithm to construct an erroneous operation instruction recognition model, the method can automatically and accurately perform erroneous operation instructions according to the data characteristics of the real-time operation instructions and the real-time target hydropower equipment information associated with the control, accurately identify erroneous operations from the operation logic, and improve the accuracy and efficiency of preventing erroneous operations; by using a deep learning algorithm to construct a safety risk prediction model, the safety risks existing in the real-time operation instructions are predicted from the mechanism, the practicality of safety risk detection is improved, and the method can cope with complex and changeable actual operating environments; by using a deep learning algorithm to construct a hydropower equipment abnormality detection model, the execution effect of the real-time operation instructions can be detected according to the specific operating conditions of the hydropower equipment. When it is found that the real-time operation instructions will cause abnormal operation, the real-time operation instructions are withdrawn in time, thereby ensuring the safe operation of the hydropower station and improving the safety management level of the hydropower station; through the above-mentioned automated and intelligent model, reliance on manual judgment and execution is avoided, the manpower cost investment is reduced, and the workload is reduced.
[0055] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 It is a flowchart of the security risk detection method based on artificial intelligence in the present invention.
[0057] Figure 2 It is a structural block diagram of the security risk detection system based on artificial intelligence in the present invention. DETAILED DESCRIPTION
[0058] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.
[0059] Embodiment 1:
[0060] like Figure 1 As shown, this embodiment provides a security risk detection method based on artificial intelligence, including the following steps:
[0061] S1: Based on the data center, build an erroneous operation instruction recognition model, a safety risk prediction model, and a hydropower equipment anomaly detection model, including the following steps:
[0062] S1-1: Based on the data center, a number of historical operation instructions of the hydropower control unit are collected, and a number of target hydropower equipment with control association is set for each historical operation instruction;
[0063] S1-2: controlling a number of associated target hydropower equipment according to each historical operation instruction, and generating corresponding historical target hydropower equipment information;
[0064] S1-3: Based on several historical operation instructions and corresponding several historical target hydropower equipment information, a deep learning algorithm is used to construct an erroneous operation instruction recognition model and a safety risk prediction model, including the following steps:
[0065] S1-3-1: Associating each historical operation instruction with the corresponding historical target hydropower equipment information to obtain corresponding historical associated data;
[0066] S1-3-2: Use the fuzzy C-mean (FCM) clustering algorithm to cluster and label a number of historical association data to obtain a number of standardized historical association data samples with preset misoperation labels and preset security risk labels, including the following steps:
[0067] S1-3-2-1: Use the FCM clustering algorithm to cluster a number of historical correlation data to obtain a number of cluster centers, and set a corresponding preset misoperation label and preset security risk label for each cluster center, including the following steps:
[0068] S1-3-2-1-1: Set the clustering parameters of the FCM clustering algorithm, including the fuzzy factor m and the total number of cluster centers;
[0069] S1-3-2-1-1: Cluster several historical correlation data according to clustering parameters to obtain several initial cluster centers;
[0070] S1-3-2-1-2: According to the Euclidean distance between each historical association data and several initial cluster centers, a corresponding fuzzy membership is set for each initial cluster center;
[0071] The formula is:
[0072] d ij =||x i' -z j || 2
[0073] Where, d i'j is the Euclidean distance between the i'th historical association data and the jth cluster center; x i' is the i'th historical associated data; z j is the jth cluster center; i' is the data indicator; j is the cluster center indicator;
[0074] S1-3-2-1-3: Update the cluster center according to the fuzzy membership degree to obtain several corresponding updated cluster centers;
[0075] The formula for updating fuzzy membership is:
[0076]
[0077] In the formula, x i is the i'th historical associated data; i' is the data indicator; j and k are both cluster center indicators; c is the total number of cluster centers; d i'j ,d i'k is the distance from the i'th historical association data to the jth and kth cluster centers; u i'j is the updated fuzzy membership of the i'th historical association data belonging to the jth cluster center;
[0078] The formula for updating the cluster center is:
[0079]
[0080] In the formula, z' j is the cluster center updated for the jth time; m is the fuzzy factor; i' is the data indicator; n' is the total number of data; j is the cluster center indicator; x i' is the i'th historical associated data; u i'j is the fuzzy membership degree of the i'th historical association data belonging to the jth cluster center;
[0081] S1-3-2-1-4: Use the Lagrange multiplier method to calculate the combined function and obtain the combined function value and combined function change value. The formula is:
[0082]
[0083] In the formula, J t , J t-1 is the combined function value of the Lagrange multiplier method at the t and t-1 iterations; ΔJ t is the corresponding change value; λ' i' is the i'th characteristic parameter; t is the indicator of the number of iterations; u ij is the degree of membership of the i'th historical associated data to the jth cluster center; m is the fuzzy factor; i' is the data indicator; n' is the total number of data; j is the cluster center indicator; c is the total number of cluster centers; d i'j is the Euclidean distance from the i'th historical association data to the jth cluster center;
[0084] S1-3-2-1-5: If the merge function value is greater than the function threshold, or the merge function change value is greater than the change value threshold, continue to update the cluster center, otherwise, use the current cluster center as the final cluster center;
[0085] S1-3-2-1-6: Repeat the above steps to obtain several final cluster centers;
[0086] S1-3-2-2: According to the Euclidean distance between each historical association data and several cluster centers, the historical association data are divided into cluster centers with the closest Euclidean distance to obtain several cluster clusters;
[0087] S1-3-2-3: diffuse the preset misoperation labels and preset safety risk labels of each cluster center to the corresponding cluster clusters, and obtain a number of standardized historical association data samples with preset misoperation labels and preset safety risk labels;
[0088] S1-3-3: Based on several standardized historical correlation data samples, the IAFSA-BiLSTM algorithm is used to build an incorrect operation instruction recognition model and a safety risk prediction model, including the following steps:
[0089] S1-3-3-1: Divide a number of standardized historical correlation data samples into a first model training sample set and a first model test sample set in a ratio of 7:3;
[0090] S1-3-3-2: Use the Improved Artificial Fish Swarm Algorithm (IAFSA) optimization algorithm to obtain the optimal first initial network parameters of the Bidirectional Long Short-Term Memory (BiLSTM) network;
[0091] By introducing chaos initialization mechanism, adaptive field of view update mechanism based on Cauchy distribution, convergence step update mechanism and dynamic reverse learning mechanism, the artificial fish swarm algorithm (AFSA) is improved to obtain the IAFSA optimization algorithm.
[0092] The steps include:
[0093] S1-3-3-2-1: Encode several candidate first initial network parameters as positions of IAFSA individuals of the IAFSA optimization algorithm;
[0094] S1-3-3-2-2: Set the IAFSA population parameters, maximum number of iterations and fitness function of the IAFSA optimization algorithm;
[0095] S1-3-3-2-3: According to the IAFSA population parameters, the Circle chaotic mapping sequence is used to initialize the IAFSA population to obtain the initialized IAFSA population;
[0096] The initialization formula is:
[0097]
[0098] In the formula, q i is the initial IAFSA individual of the Circle chaotic map; q * i is the randomly generated initial IAFSA individual; i is the IAFSA individual indicator;
[0099] S1-3-3-2-4: According to the fitness function, the fitness values of all initial IAFSA individuals in the initialized IAFSA population are obtained, and according to the fitness value, the position of the optimal IAFSA individual is assigned to the IAFSA optimization algorithm bulletin board;
[0100] The formula for the fitness value is:
[0101]
[0102] In the formula, f(q i ) is the fitness value of the i-th initial IAFSA individual; Y' i is the predicted value; Y i MSE is the true value; i is the IAFSA individual indicator;
[0103] S1-3-3-2-5: According to the adaptive initial IAFSA individual field of view update mechanism based on Cauchy distribution, the field of view of the initialized IAFSA population is updated to obtain the updated field of view of the initial IAFSA individual;
[0104] The formula for updating the individual field of view of IAFSA based on the adaptive initialization of Cauchy distribution is:
[0105]
[0106] In the formula, v(q i ) is the updated visual field of the initial IAFSA individual; v is the original visual field of the initial IAFSA individual; v C (q i ) is the visual field of the initial IAFSA individual after the Cauchy distribution transformation in the second half of the iteration; t' and T are the current iteration number and the maximum iteration number respectively; q i is the i-th initial IAFSA individual;
[0107] The formula for the field of view after the Cauchy distribution transformation is:
[0108]
[0109] In the formula, f(q i ) is the fitness value of the i-th initial IAFSA individual; f worstis the worst fitness value of the initial IAFSA individual; γ is the scale parameter, the smaller its value, the steeper the Cauchy distribution probability density curve, γ = 1 / (π·v origin );v origin is the initial field of view value; v C (q i ) is the updated visual field of the initial IAFSA individual in the second half of the iteration after the Cauchy distribution transformation;
[0110] S1-3-3-2-6: Introduce the convergence factor, update the step size of the initialized IAFSA population, and obtain the updated step size of the initial IAFSA individual;
[0111] The formula for the updated step size is:
[0112] step=step' min +step'*a
[0113] Where step is the update step size of the initial IAFSA individual; step' is the initial step size of the initial IAFSA individual; a is the convergence factor; step' min is the initial minimum step size of the initial IAFSA individual;
[0114] The formula for the convergence factor is:
[0115]
[0116] Where a is the convergence factor; tanh(.) is the hyperbolic tangent function; t' and T are the current and maximum iterations, respectively; a max 、a min are the maximum and minimum values of the convergence factor respectively; λ is the decreasing rate parameter; k' is the decreasing period parameter, set λ=-2π, k'=π;
[0117] S1-3-3-2-7: Based on the updated field of view and the updated step size, the initialized IAFSA population is subjected to the flocking behavior, the tail-chasing behavior and the foraging behavior to obtain the updated IAFSA population;
[0118] S1-3-3-2-8: According to the dynamic reverse learning mechanism, dynamic reverse learning is performed on all updated IAFSA individuals in the updated IAFSA population to obtain reverse IAFSA individuals;
[0119] The formula for dynamic reverse learning is:
[0120]
[0121] In the formula, q' i is the i-th reverse IAFSA individual; is the updated IAFSA individual; γ' is the decreasing inertia coefficient; L max , L min are the maximum and minimum values of the vector space respectively;
[0122] S1-3-3-2-9: Use the Gaussian mutation algorithm to perform Gaussian mutation on all updated IAFSA individuals in the updated IAFSA population to generate Gaussian mutated IAFSA individuals;
[0123] The formula is:
[0124]
[0125] In the formula, q" l' is the IAFSA individual of Gaussian variation; is the ith updated IAFSA individual; μ is the Gaussian variation amplitude parameter; λ is the Gaussian variation probability parameter; For the updated IAFSA entity q i The fitness value of is a random variable that follows a Gaussian distribution with a mean of 0 and a standard deviation of 1;
[0126] S1-3-3-2-10: Obtain the fitness values of all updated IAFSA individuals, all reverse IAFSA individuals, and all Gaussian mutated IAFSA individuals, and assign the position of the best IAFSA individual to the IAFSA optimization algorithm bulletin board according to the fitness value;
[0127] S1-3-3-2-11: If the number of iterations reaches the maximum number of iterations or the fitness value of the optimal IAFSA individual meets the requirements, the optimal solution corresponding to the optimal IAFSA individual on the IAFSA optimization algorithm bulletin board is output to obtain the optimal first initial network parameters;
[0128] S1-3-3-3: Based on the optimal first initial network parameters, use the BiLSTM algorithm to build an initial misoperation instruction recognition model and an initial safety risk prediction model;
[0129] S1-3-3-4: using the first model training sample set, respectively optimizing the initial erroneous operation instruction recognition model and the initial safety risk prediction model to obtain an optimized erroneous operation instruction recognition model and an optimized safety risk prediction model;
[0130] S1-3-3-5: Input the first model test sample set into the optimized erroneous operation instruction recognition model and the optimized safety risk prediction model respectively, perform model testing, and obtain a corresponding number of historical predicted erroneous operation labels and a number of historical predicted safety risk labels;
[0131] S1-3-3-6: Statistically compare a number of historical predicted erroneous operation labels with a number of corresponding preset erroneous operation labels to obtain a first prediction accuracy rate of the optimized erroneous operation instruction recognition model;
[0132] S1-3-3-7: Statistically compare a number of historically predicted security risk labels with a number of corresponding preset security risk labels to obtain a second prediction accuracy rate of the optimized security risk prediction model;
[0133] S1-3-3-8: If the first and / or second prediction accuracy is greater than the corresponding first and / or second accuracy threshold, output the optimal safety risk prediction model and / or the optimal safety risk prediction model, otherwise, continue the optimization training;
[0134] S1-4: Collect some historical hydropower equipment operation data, and use deep learning algorithms to build a hydropower equipment anomaly detection model based on some historical hydropower equipment operation data, including the following steps:
[0135] S1-4-1: Collect some historical hydropower equipment operation data, and pre-process some historical hydropower equipment operation data to obtain some pre-processed historical hydropower equipment operation data;
[0136] S1-4-2: Based on some pre-processed historical hydropower equipment operation data, the IAFSA-DBN algorithm is used to build a hydropower equipment anomaly detection model, including the following steps:
[0137] S1-4-2-1: Use the IAFSA optimization algorithm to obtain the optimal second initial network parameters of the Deep Belief Networks (DBN);
[0138] S1-4-2-2: Based on the optimal second initial network parameters, use the DBN algorithm to build an initial hydropower equipment anomaly detection model;
[0139] S1-4-2-3: using a number of pre-processed historical hydropower equipment operation data that are not provided with preset hydropower equipment abnormality labels, pre-training the initial hydropower equipment abnormality detection model to obtain a corresponding pre-trained hydropower equipment abnormality detection model;
[0140] S1-4-2-4: Divide a number of pre-processed historical hydropower equipment operation data samples with preset hydropower equipment abnormality labels into a second model training sample set and a second model test sample set in a ratio of 7:3;
[0141] S1-4-2-5: using the second model training sample set, optimizing the pre-trained hydropower equipment anomaly detection model to obtain an optimized hydropower equipment anomaly detection model;
[0142] S1-4-2-6: input the second model test sample set into the optimized hydropower equipment anomaly detection model, perform model testing, and obtain a number of corresponding historical prediction hydropower equipment anomaly labels;
[0143] S1-4-2-7: Statistically compare a number of historically predicted hydropower equipment anomaly labels with a number of corresponding preset hydropower equipment anomaly labels to obtain a third prediction accuracy rate of the optimized hydropower equipment anomaly detection model;
[0144] S1-4-2-8: If the third prediction accuracy is greater than the third accuracy threshold, output the optimal hydropower equipment anomaly detection model, otherwise, continue to perform optimization training;
[0145] S2: Collecting real-time operation instructions of the hydropower control unit and real-time target hydropower equipment information of the associated hydropower execution unit;
[0146] S3: inputting the real-time operation instruction and the real-time target hydropower equipment information into the erroneous operation instruction recognition model, performing erroneous operation instruction recognition, and obtaining the corresponding real-time erroneous operation instruction recognition result;
[0147] S4: If the real-time erroneous operation instruction recognition result is that an erroneous operation instruction exists, a corresponding real-time erroneous operation alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step;
[0148] S5: inputting the real-time operation instructions and the real-time target hydropower equipment information into the safety risk prediction model, performing safety risk prediction, and obtaining corresponding real-time safety risk prediction results;
[0149] S6: If the real-time security risk prediction result is that there is a security risk, a corresponding real-time security risk alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step;
[0150] S7: Execute the real-time operation instruction in the hydropower execution unit, and call the hydropower monitoring unit to collect the real-time hydropower equipment operation data corresponding to the hydropower execution unit according to the real-time target hydropower equipment information;
[0151] S8: inputting the real-time hydropower equipment operation data into the hydropower equipment anomaly detection model to perform hydropower equipment anomaly detection and obtain the real-time hydropower equipment anomaly detection result;
[0152] S9: If the real-time hydropower equipment abnormality detection result is that there is a hydropower equipment abnormality, a corresponding real-time hydropower equipment abnormality alarm signal is generated, and the real-time operation instruction is withdrawn.
[0153] Embodiment 2:
[0154] like Figure 2As shown, this embodiment provides a safety risk detection system based on artificial intelligence, which is used to implement a safety risk detection method. The system includes a data center, a hydropower control unit, a hydropower execution unit, and a hydropower monitoring unit. The data center is respectively connected to the hydropower control unit, the hydropower execution unit, and the hydropower monitoring unit for communication, and the data center is provided with a misoperation instruction recognition model, a safety risk prediction model, and a hydropower equipment abnormality detection model;
[0155] The data center is used to build an erroneous operation instruction recognition model, a safety risk prediction model, and a hydropower equipment anomaly detection model; use the erroneous operation instruction recognition model to identify erroneous operation instructions; use the safety risk prediction model to predict safety risks; use the hydropower equipment anomaly detection model to detect hydropower equipment anomalies;
[0156] A hydropower control unit, used to receive real-time operation instructions input by a user, and send the real-time operation instructions and real-time target hydropower equipment information of the associated hydropower execution unit to a data center;
[0157] A hydropower execution unit for executing real-time operation instructions;
[0158] The hydropower monitoring unit is used to collect the real-time hydropower equipment operation data corresponding to the hydropower execution unit, and send the real-time hydropower equipment operation data to the data center.
[0159] Preferably, the data center includes a model building model, an instruction collection module, an erroneous operation instruction recognition module, a safety risk prediction module, a data collection module, and a hydropower equipment anomaly detection module connected in sequence;
[0160] Model building model, used to build the wrong operation instruction recognition model, safety risk prediction model and hydropower equipment anomaly detection model;
[0161] An instruction collection module is used to collect real-time operation instructions of the hydropower control unit and real-time target hydropower equipment information of the associated hydropower execution unit;
[0162] The erroneous operation instruction recognition module is used to input the real-time operation instruction and the real-time target hydropower equipment information into the erroneous operation instruction recognition model, perform erroneous operation instruction recognition, and obtain the corresponding real-time erroneous operation instruction recognition result; when the real-time erroneous operation instruction recognition result is that there is an erroneous operation instruction, a corresponding real-time erroneous operation alarm signal is generated to block the real-time operation instruction;
[0163] The safety risk prediction module is used to input the real-time operation instructions and the real-time target hydropower equipment information into the safety risk prediction model, perform safety risk prediction, and obtain the corresponding real-time safety risk prediction results; when the real-time safety risk prediction results indicate that there is a safety risk, a corresponding real-time safety risk alarm signal is generated to block the real-time operation instructions;
[0164] The data acquisition module is used to call the hydropower monitoring unit to collect the real-time hydropower equipment operation data corresponding to the hydropower execution unit after the hydropower execution unit runs the real-time operation instruction and according to the real-time target hydropower equipment information;
[0165] The hydropower equipment anomaly detection module is used to input the real-time hydropower equipment operation data into the hydropower equipment anomaly detection model, perform hydropower equipment anomaly detection, and obtain the real-time hydropower equipment anomaly detection result; when the real-time hydropower equipment anomaly detection result shows that there is a hydropower equipment anomaly, a corresponding real-time hydropower equipment anomaly alarm signal is generated and the real-time operation instruction is withdrawn.
[0166] The present invention provides an artificial intelligence-based safety risk detection method and system. By using a deep learning algorithm to construct an erroneous operation instruction recognition model, the method can automatically and accurately perform erroneous operation instructions according to the data characteristics of the real-time operation instructions and the real-time target hydropower equipment information associated with the control, accurately identify erroneous operations from the operation logic, and improve the accuracy and efficiency of preventing erroneous operations; by using a deep learning algorithm to construct a safety risk prediction model, the safety risks existing in the real-time operation instructions are predicted from the mechanism, the practicality of safety risk detection is improved, and the method can cope with complex and changeable actual operating environments; by using a deep learning algorithm to construct a hydropower equipment abnormality detection model, the execution effect of the real-time operation instructions can be detected according to the specific operating conditions of the hydropower equipment. When it is found that the real-time operation instructions will cause abnormal operation, the real-time operation instructions are withdrawn in time, thereby ensuring the safe operation of the hydropower station and improving the safety management level of the hydropower station; through the above-mentioned automated and intelligent model, reliance on manual judgment and execution is avoided, the manpower cost investment is reduced, and the workload is reduced.
[0167] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A security risk detection method based on artificial intelligence, Features: The steps include: Based on the data center, we build a misoperation instruction recognition model, a safety risk prediction model, and a hydropower equipment anomaly detection model, including the following steps: Based on the data center, a number of historical operation instructions of the hydropower control unit are collected, and a number of target hydropower equipment with control associations are set for each historical operation instruction; According to each historical operation instruction, a number of target hydropower equipment associated with the control are generated to generate corresponding historical target hydropower equipment information; According to several historical operation instructions and corresponding several historical target hydropower equipment information, a deep learning algorithm is used to build an erroneous operation instruction recognition model and a safety risk prediction model, including the following steps: Associating each historical operation instruction with the corresponding historical target hydropower equipment information to obtain a number of corresponding historical association data; Using the FCM clustering algorithm, clustering and labeling are performed on a number of historical correlation data to obtain a number of standardized historical correlation data samples with preset misoperation labels and preset security risk labels. Based on several standardized historical correlation data samples, the IAFSA-BiLSTM algorithm is used to build an erroneous instruction recognition model and a safety risk prediction model; Collect some historical hydropower equipment operation data, and use deep learning algorithms to build a hydropower equipment anomaly detection model based on some historical hydropower equipment operation data, including the following steps: Collecting some historical hydropower equipment operation data, and preprocessing some historical hydropower equipment operation data to obtain some preprocessed historical hydropower equipment operation data; Based on some pre-processed historical hydropower equipment operation data, the IAFSA-DBN algorithm is used to build a hydropower equipment anomaly detection model; Collecting real-time operation instructions of the hydropower control unit and real-time target hydropower equipment information of the associated hydropower execution unit; Input the real-time operation instruction and the real-time target hydropower equipment information into the erroneous operation instruction recognition model, perform erroneous operation instruction recognition, and obtain the corresponding real-time erroneous operation instruction recognition result; If the real-time erroneous operation instruction recognition result is that there is an erroneous operation instruction, a corresponding real-time erroneous operation alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step; Input the real-time operation instructions and the real-time target hydropower equipment information into the safety risk prediction model, perform safety risk prediction, and obtain the corresponding real-time safety risk prediction results; If the real-time security risk prediction result indicates that there is a security risk, a corresponding real-time security risk alarm signal is generated to block the real-time operation instruction and end the current workflow; otherwise, proceed to the next step; Run the real-time operation instruction in the hydropower execution unit, and call the hydropower monitoring unit to collect the real-time hydropower equipment operation data corresponding to the hydropower execution unit according to the real-time target hydropower equipment information; Inputting the real-time hydropower equipment operation data into the hydropower equipment anomaly detection model to perform hydropower equipment anomaly detection and obtain the real-time hydropower equipment anomaly detection result; If the real-time hydropower equipment abnormality detection result is that there is a hydropower equipment abnormality, a corresponding real-time hydropower equipment abnormality alarm signal is generated, and the real-time operation instruction is withdrawn.
2. According to the security risk detection method based on artificial intelligence in claim 1, Features: Using the FCM clustering algorithm, clustering and labeling are performed on a number of historical correlation data to obtain a number of standardized historical correlation data samples with preset misoperation labels and preset security risk labels, including the following steps: Use the FCM clustering algorithm to cluster several historical correlation data to obtain several cluster centers, and set corresponding preset misoperation labels and preset security risk labels for each cluster center; According to the Euclidean distance between each historical association data and several cluster centers, the historical association data are divided into the cluster center with the closest Euclidean distance to obtain several cluster clusters; The preset misoperation labels and preset safety risk labels of each cluster center are diffused to the corresponding cluster clusters to obtain a number of standardized historical association data samples with preset misoperation labels and preset safety risk labels.
3. According to the security risk detection method based on artificial intelligence in claim 1, Features: Based on several standardized historical correlation data samples, the IAFSA-BiLSTM algorithm is used to build an incorrect operation instruction recognition model and a safety risk prediction model, including the following steps: Divide a number of standardized historical correlation data samples into a first model training sample set and a first model test sample set in a ratio of 7:3; Use the IAFSA optimization algorithm to obtain the optimal first initial network parameters of the BiLSTM network; According to the optimal first initial network parameters, the BiLSTM algorithm is used to build the initial misoperation instruction recognition model and the initial safety risk prediction model; Using the first model training sample set, respectively optimizing and training the initial erroneous operation instruction recognition model and the initial safety risk prediction model to obtain an optimized erroneous operation instruction recognition model and an optimized safety risk prediction model; Inputting the first model test sample set into the optimized erroneous operation instruction recognition model and the optimized safety risk prediction model respectively, performing model testing, and obtaining a corresponding number of historical predicted erroneous operation labels and a number of historical predicted safety risk labels; Statistically comparing a number of historical predicted erroneous operation labels with a number of corresponding preset erroneous operation labels to obtain a first prediction accuracy rate of an optimized erroneous operation instruction recognition model; Statistically comparing a number of historically predicted security risk labels with a number of corresponding preset security risk labels to obtain a second prediction accuracy rate of the optimized security risk prediction model; If the first and / or second prediction accuracy is greater than the corresponding first and / or second accuracy threshold, the optimal safety risk prediction model and / or the optimal safety risk prediction model is output, otherwise, the optimization training continues.
4. According to the security risk detection method based on artificial intelligence in claim 1, Features: Based on some pre-processed historical hydropower equipment operation data, the IAFSA-DBN algorithm is used to build a hydropower equipment anomaly detection model, which includes the following steps: Use the IAFSA optimization algorithm to obtain the optimal second initial network parameters of the DBN network; According to the optimal second initial network parameters, the DBN algorithm is used to build an initial hydropower equipment anomaly detection model; Using a number of pre-processed historical hydropower equipment operation data that are not provided with preset hydropower equipment abnormality labels, pre-training an initial hydropower equipment abnormality detection model to obtain a corresponding pre-trained hydropower equipment abnormality detection model; Divide a number of pre-processed historical hydropower equipment operation data samples with preset hydropower equipment abnormality labels into a second model training sample set and a second model test sample set in a ratio of 7:3; Using the second model training sample set, optimizing the pre-trained hydropower equipment anomaly detection model to obtain an optimized hydropower equipment anomaly detection model; Inputting the second model test sample set into the optimized hydropower equipment anomaly detection model to perform model testing to obtain a number of corresponding historical predicted hydropower equipment anomaly labels; Statistically comparing a number of historically predicted hydropower equipment anomaly labels with a number of corresponding preset hydropower equipment anomaly labels to obtain a third prediction accuracy rate of the optimized hydropower equipment anomaly detection model; If the third prediction accuracy is greater than the third accuracy threshold, the optimal hydropower equipment anomaly detection model is output, otherwise, the optimization training continues.
5. According to any one of claims 3 and 4, a security risk detection method based on artificial intelligence, Features: The AFSA optimization algorithm is improved by introducing a chaotic initialization mechanism, an adaptive field of view update mechanism based on Cauchy distribution, a convergence step update mechanism and a dynamic reverse learning mechanism, and the IAFSA optimization algorithm is obtained.
6. A security risk detection system based on artificial intelligence, used to implement the security risk detection method as described in any one of claims 1 to 5, Features: The system includes a data center, a hydropower control unit, a hydropower execution unit and a hydropower monitoring unit. The data center is respectively communicated with the hydropower control unit, the hydropower execution unit and the hydropower monitoring unit, and the data center is provided with an erroneous operation instruction recognition model, a safety risk prediction model and a hydropower equipment abnormality detection model.
7. The artificial intelligence-based security risk detection system according to claim 6, Features: The data center includes a model building model, an instruction collection module, an erroneous operation instruction recognition module, a safety risk prediction module, a data collection module and a hydropower equipment anomaly detection module which are connected in sequence.
Citation Information
Patent Citations
Industrial production safety identification system and method
CN115618353A
Regulation and control intelligent anti-misoperation and networked order issuing command platform
CN116308139A
Slope safety management method and system based on digital twinning
CN116402951A
Risk identification method and device, storage medium and electronic equipment
CN116502084A
Method and system for assisting intelligent operation of hydropower station
CN117040111A
