Pumped storage power station monitoring data cleaning method, device, equipment and medium

By using long-short-term memory recurrent neural networks and multiple prediction algorithms to predict and complete missing values ​​in monitoring data, the problem of low data cleaning efficiency and accuracy in pumped storage power stations is solved, achieving efficient data cleaning and reliable analysis results. sex.

CN118690121APending Publication Date: 2024-09-24CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410880476.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Pumped storage power station monitoring data are prone to data duplication, loss, distortion and other problems during the collection, transmission and storage processes, resulting in low data cleaning efficiency and accuracy, affecting the accuracy and reliability of analysis results.

Method used

The trained long short-term memory recurrent neural network (LSTM) model is combined with multiple prediction algorithms to predict and complete the missing values ​​​​in the monitoring data, using methods such as deleting missing values, mean filling, regression filling and intelligent algorithms to calculate each The accuracy value of the algorithm is used to select the highest accuracy algorithm for data cleaning.

Benefits of technology

While reducing computing resources, it achieves the optimization of data cleaning, improves data cleaning efficiency and accuracy, ensures data integrity and reliability, and is suitable for large-scale hydraulic safety monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690121A
    Figure CN118690121A
Patent Text Reader

Abstract

The invention relates to a method for cleaning monitoring data of a pumped storage power station. The method comprises the following steps: selecting missing data to be predicted from all missing data in the monitoring data of the pumped storage power station; after the monitoring data, a prediction model and a plurality of prediction algorithms are utilized to predict the missing data to be predicted, the prediction precision value of each prediction algorithm is calculated, and the prediction model is a trained long-short-term memory recurrent neural network; and complementing all missing data in the monitoring data of the water storage power station by using the prediction algorithm with the highest precision value. The optimal cleaning method is obtained under the condition that computing resources are greatly reduced, and the data cleaning efficiency is improved. The invention also relates to a device and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power systems, and in particular to a method, device, equipment and medium for cleaning monitoring data of a pumped storage power station. Background Art

[0002] The pumped storage power station safety monitoring system may have data duplication, loss, distortion, etc. during the data collection, transmission, and storage process. In order to fully explore the intrinsic value of the monitoring data of the pumped storage power station, it is necessary to clean the monitoring data first. Data cleaning is one of the important steps in data analysis and one of the necessary steps to ensure the accuracy and reliability of the analysis results. Cleaning data can help ensure the accuracy of the data and prevent the analysis results from being affected by errors or inaccuracies in the data. Cleaning data can also find out wrong values, outliers, or out-of-limit values, which helps to better interpret and analyze the data. Data cleaning can also help maintain the integrity of the data. In most cases, data sets are usually obtained from many different sources and formats, so the data may have duplicate values, missing values, etc. After cleaning the data, the integrity of the data can be guaranteed, thereby improving the reliability of subsequent analysis. Cleaning data can reduce noise and redundant information in the data set, avoid calculating unnecessary parts, and reduce the time and computing resources required to analyze and process the data set. The original data set usually contains a lot of useless information or formats. Data cleaning can eliminate this redundant information and make the data easier to analyze and process. The amount of water conservancy safety monitoring data is hundreds of thousands or millions, and the efficiency of using neural networks to process all of them is very low. How to improve the cleaning efficiency and accuracy of monitoring data is a technical problem that needs to be solved urgently. Summary of the invention

[0003] In order to solve the technical problem of how to improve the cleaning efficiency and accuracy of monitoring data, the present invention provides a method, device, equipment and medium for cleaning monitoring data of a pumped storage power station.

[0004] In a first aspect, the present invention provides a method for cleaning monitoring data of a pumped storage power station, the method comprising:

[0005] Obtaining missing data to be predicted in the monitoring data;

[0006] Utilizing the monitoring data, the prediction model, the missing data to be predicted and a plurality of prediction algorithms, the prediction accuracy value of each prediction algorithm is obtained, wherein the prediction model is a trained long short-term memory recursive neural network;

[0007] The prediction algorithm with the highest accuracy value is used to predict all missing data in the monitoring data to obtain predicted values ​​of all the missing data.

[0008] Based on the above technical solution, further, the monitoring data, the prediction model, the missing data to be predicted and multiple prediction algorithms are used to obtain the prediction accuracy value of each prediction algorithm, specifically including:

[0009] Using the prediction model and the monitoring data, predict each piece of the missing data to be predicted to obtain a first prediction value for each piece of the missing data to be predicted;

[0010] Using multiple prediction algorithms and the monitoring data, each of the missing data to be predicted is predicted respectively, and a prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms is obtained;

[0011] The accuracy values ​​of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are calculated by a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

[0012] Based on the above technical solution, further, the prediction model and the monitoring data are used to predict each missing data to be predicted to obtain a first prediction value of each missing data to be predicted, including:

[0013] A preset number of monitoring data before the position of each piece of the to-be-predicted missing data is input into the prediction model to obtain a first prediction value for each piece of the to-be-predicted missing data.

[0014] Based on the above technical solution, further, the prediction model is constructed by the following method:

[0015] Selecting all sample monitoring data before missing data in the sample monitoring data as training data, and performing normalization processing on the training data;

[0016] Constructing a long short-term memory recursive neural network and determining neural network parameters of the long short-term memory recursive neural network, wherein the neural network parameters include the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, and the descent factor;

[0017] The long short-term memory recursive neural network is trained using the normalized training data, and the loss function result of the initial training is used to adjust the training parameters to obtain the optimal parameters of the neural network parameters and obtain the prediction model.

[0018] Based on the above technical solution, further, the method of using multiple prediction algorithms and the monitoring data to predict each missing data to be predicted, and obtaining the prediction value of each missing data to be predicted corresponding to each prediction algorithm, specifically includes:

[0019] The missing data in the monitoring data are discarded using the missing value deletion algorithm in the prediction algorithm, and the position data of the discarded missing data are completed using the monitoring data following the missing data to be predicted;

[0020] Utilize the mean filling algorithm in the prediction algorithm to calculate the mean of a preset number of monitoring data before and after the missing data to be predicted, and fill the position of the missing data to be predicted with the mean;

[0021] Using the regression filling algorithm in the prediction algorithm to establish a regression equation according to the dependent variable and the independent variable in the monitoring data, and calculating the missing data to be predicted according to the regression equation;

[0022] The intelligent algorithm in the prediction algorithm is used to determine the preset number of samples closest to the missing data to be predicted according to Euclidean distance or correlation analysis, and the sample values ​​of the preset number of samples are weighted averaged to obtain the missing data to be predicted.

[0023] Based on the above technical solution, further, the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are respectively calculated by the benchmark test method to obtain the precision values ​​of all the prediction algorithms, specifically including:

[0024] Respectively calculate the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), and R-square value between the first predicted value of all the missing data to be predicted and the predicted value corresponding to each of the prediction algorithms;

[0025]

[0026] y LSTM (x i ) is the first predicted value of the i-th missing data to be predicted, y t (x i ) is the predicted value of the t-th prediction algorithm, and m is the number of missing data to be predicted;

[0027] The accuracy value of each prediction algorithm is calculated using the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value of each prediction algorithm.

[0028] In a second aspect, the present invention further provides a pumped storage power station monitoring data cleaning device, the device comprising:

[0029] A first processing module, used for obtaining missing data to be predicted in the monitoring data;

[0030] A second processing module is used to obtain the prediction accuracy value of each prediction algorithm by using the monitoring data, the prediction model, the missing data to be predicted and a plurality of prediction algorithms, wherein the prediction model is a trained long short-term memory recursive neural network;

[0031] The third processing module is used to predict all missing data in the monitoring data by using the prediction algorithm with the highest accuracy value to obtain the predicted values ​​of all the missing data.

[0032] Based on the above technical solution, further, the second processing module is specifically used to predict each missing data to be predicted by using the prediction model and the monitoring data to obtain a first prediction value of each missing data to be predicted;

[0033] Using multiple prediction algorithms and the monitoring data, each of the missing data to be predicted is predicted respectively, and a prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms is obtained;

[0034] The accuracy values ​​of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are calculated by a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

[0035] Based on the above technical solution, further, the second processing module is specifically used to input a preset number of monitoring data before the position of each missing data to be predicted into the prediction model to obtain a first prediction value for each missing data to be predicted.

[0036] Based on the above technical solution, further, it also includes a model construction module, the model construction module is used to select all sample monitoring data before the missing data in the sample monitoring data as training data, and normalize the training data;

[0037] Constructing a long short-term memory recursive neural network and determining neural network parameters of the long short-term memory recursive neural network, wherein the neural network parameters include the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, and the descent factor;

[0038] The long short-term memory recursive neural network is trained using the normalized training data, and the loss function result of the initial training is used to adjust the training parameters to obtain the optimal parameters of the neural network parameters and obtain the prediction model.

[0039] Based on the above technical solution, further, the second processing module is specifically used to discard the missing data in the monitoring data using the missing value deletion algorithm in the prediction algorithm, and use the monitoring data behind the missing data to be predicted to complete the position data of the discarded missing data;

[0040] Utilize the mean filling algorithm in the prediction algorithm to calculate the mean of a preset number of monitoring data before and after the missing data to be predicted, and fill the position of the missing data to be predicted with the mean;

[0041] Using the regression filling algorithm in the prediction algorithm to establish a regression equation according to the dependent variable and the independent variable in the monitoring data, and calculating the missing data to be predicted according to the regression equation;

[0042] The intelligent algorithm in the prediction algorithm is used to determine the preset number of samples closest to the missing data to be predicted according to Euclidean distance or correlation analysis, and the sample values ​​of the preset number of samples are weighted averaged to obtain the missing data to be predicted.

[0043] Based on the above technical solution, further, the second processing module is specifically used to respectively calculate the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value between the first prediction value of all the missing data to be predicted and the prediction value corresponding to each of the prediction algorithms;

[0044]

[0045] y LSTM (x i ) is the first predicted value of the i-th missing data to be predicted, y t (x i ) is the predicted value of the t-th prediction algorithm, and m is the number of missing data to be predicted;

[0046] The accuracy value of each prediction algorithm is calculated using the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value of each prediction algorithm.

[0047] In a third aspect, the present invention further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a method for cleaning monitoring data of a pumped-storage power station described in any one of the above technical solutions is implemented.

[0048] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, a method for cleaning monitoring data of a pumped-storage power station described in any one of the above technical solutions is implemented.

[0049] The present invention provides a method for cleaning monitoring data of a pumped storage power station, comprising selecting missing data to be predicted from all missing data in the monitoring data of the water storage power station; using the monitoring data, a prediction model and multiple prediction algorithms to predict the missing data to be predicted, and then calculating the prediction accuracy value of each prediction algorithm, wherein the prediction model is a trained long short-term memory recursive neural network; and using the prediction algorithm with the highest accuracy value to complete all missing data in the monitoring data of the water storage power station. The present invention realizes the optimal cleaning method while greatly reducing computing resources, thereby improving data cleaning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0051] Figure 1 It is a flow chart of a method for cleaning monitoring data of a pumped storage power station provided by an embodiment of the present invention;

[0052] Figure 2 LSTM model unit structure diagram provided for an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of a module of a pumped storage power station monitoring data cleaning device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0055] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0056] The following will be combined with the attached Figure 1 , a method for cleaning monitoring data of a pumped storage power station provided by an embodiment of the present invention is described, comprising the following steps:

[0057] 110. Obtain missing data to be predicted in the monitoring data;

[0058] Specifically, the missing data to be predicted are selected from all the missing data in the monitoring data of the hydro-storage power station.

[0059] 120. Obtain prediction accuracy values ​​of the prediction algorithms using the monitoring data, the prediction model, the missing data to be predicted, and a plurality of prediction algorithms, wherein the prediction model is a trained long short-term memory recursive neural network;

[0060] 130. Use the prediction algorithm with the highest accuracy value to predict all missing data in the monitoring data to obtain predicted values ​​of all the missing data.

[0061] Based on the above embodiment, further, step 120 specifically includes:

[0062] 121. Predict each piece of the missing data to be predicted using the prediction model and the monitoring data to obtain a first prediction value for each piece of the missing data to be predicted;

[0063] 122. Use multiple prediction algorithms and the monitoring data to predict each of the missing data to be predicted, and obtain the prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms;

[0064] 123. Calculate the accuracy of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm by using a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

[0065] Based on the above embodiment, further, step 121 includes:

[0066] A preset number of monitoring data before the position of each piece of the to-be-predicted missing data is input into the prediction model to obtain a first prediction value for each piece of the to-be-predicted missing data.

[0067] Based on the above embodiment, further, step 200 is included, and step 200 includes:

[0068] Selecting all sample monitoring data before missing data in the sample monitoring data as training data, and performing normalization processing on the training data;

[0069] Constructing a long short-term memory recursive neural network and determining neural network parameters of the long short-term memory recursive neural network, wherein the neural network parameters include the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, and the descent factor;

[0070] The long short-term memory recursive neural network is trained using the normalized training data, and the loss function result of the initial training is used to adjust the training parameters to obtain the optimal parameters of the neural network parameters and obtain the prediction model.

[0071] Based on the above embodiment, further, step 122 specifically includes:

[0072] The missing data in the monitoring data are discarded using the missing value deletion algorithm in the prediction algorithm, and the position data of the discarded missing data are completed using the monitoring data following the missing data to be predicted;

[0073] Utilize the mean filling algorithm in the prediction algorithm to calculate the mean of a preset number of monitoring data before and after the missing data to be predicted, and fill the position of the missing data to be predicted with the mean;

[0074] Using the regression filling algorithm in the prediction algorithm to establish a regression equation according to the dependent variable and the independent variable in the monitoring data, and calculating the missing data to be predicted according to the regression equation;

[0075] The intelligent algorithm in the prediction algorithm is used to determine the preset number of samples closest to the missing data to be predicted according to Euclidean distance or correlation analysis, and the sample values ​​of the preset number of samples are weighted averaged to obtain the missing data to be predicted.

[0076] Based on the above embodiment, further, step 123 specifically includes:

[0077] Respectively calculate the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), and R-square value between the first predicted value of all the missing data to be predicted and the predicted value corresponding to each of the prediction algorithms;

[0078]

[0079] y LSTM (x i ) is the first predicted value of the i-th missing data to be predicted, y t (x i ) is the predicted value of the t-th prediction algorithm, and m is the number of missing data to be predicted;

[0080] The accuracy value of each prediction algorithm is calculated using the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value of each prediction algorithm.

[0081] The present embodiment proposes a method for cleaning monitoring data of a pumped storage power station, comprising selecting missing data to be predicted from all missing data in the monitoring data of the water storage power station; using the monitoring data, prediction model and multiple prediction algorithms to predict the missing data to be predicted, and then calculating the prediction accuracy value of each prediction algorithm, wherein the prediction model is a trained long short-term memory recursive neural network; and using the prediction algorithm with the highest accuracy value to complete all missing data in the monitoring data of the water storage power station. The present invention realizes the optimal cleaning method while greatly reducing computing resources, thereby improving data cleaning efficiency.

[0082] The present invention proposes an evaluation of the cleaning effect of monitoring data of a pumped-storage power station based on a long short-term memory recursive neural network (LSTM network). Under different data cleaning methods for defective data, the progress evaluation of the cleaned data is realized, and the optimal selection of data cleaning is achieved, including multi-dimensional factors such as accuracy and time, and finally the demand for data standardization of the monitoring system of the pumped-storage power station is realized.

[0083] In view of the problems of high difficulty, low precision and large amount of engineering in cleaning the monitoring data of the pumped-storage power station, the present invention can clearly determine the cleaning effect of the monitoring data of the pumped-storage power station in a short time and select the most optimized cleaning method to clean the data.

[0084] Another embodiment of the present invention has the following specific steps:

[0085] 1. Clarify the types, forms, scope and degree of missing of safety monitoring data

[0086] Taking a certain project as an example, its monitoring data is the seepage monitoring data of different parts of hydraulic structures, and the data format is as follows:

[0087]

[0088]

[0089] There are 6 sensors in total, which are the detection values ​​of 6 different seepage monitoring points. The sensors are divided into 2 groups for monitoring, one group of 3 and the other group of 3. Sensors 1, 2, and 3 are monitored once an hour, and sensors 4, 5, and 6 are monitored once every 6 hours.

[0090] After preliminary statistics, it is known that the main problem with the data is data loss, and the probability of system error is 8.48‰.

[0091] Randomly select a piece of missing data to show typical errors. The data format is as follows:

[0092]

[0093] The data shows that the PXX-3 sensor experienced data transmission failure during the t(m) period.

[0094] 2. Establish LSTM network and modify network parameters

[0095] Select the first n groups of data. According to the number of sensors in the figure, the data is divided into 4 columns according to the sensors. Each column is composed of a separate sensor. Use the previous row of data to predict the next row of data, mainly predicting the original value, calculated value and final value.

[0096] First, the data is processed to identify the data used for training and prediction. In the present invention, all data before the missing data are used for training, and the data for missing value prediction is normalized for the training data. The purpose of normalization is to limit the data to a certain range (such as [0,1]), thereby eliminating the adverse effects caused by singular sample data.

[0097] Build the LSTM network and determine the neural network parameters, such as the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, the descent factor and other model parameters.

[0098] Use data for training, and adjust training parameters such as optimization algorithm type, number of neural network layers, minimum number of iterations, etc. according to the results of the initial training loss function, so that the LSTM network is in the best state.

[0099] LSTM neural network is an improved recurrent neural network that can effectively solve the problem of RNN gradient disappearance and has the ability to learn long-term dependencies. The basic unit of LSTM neural network is called cell, which contains a "gate" structure to control the flow of information. The structure of the cell is as follows Figure 2 As shown, where i t 、f t , σ t , the activation function is σ, σ is the sigmoid activation function, the formula is c t The activation function is tanh(x), and the formula is

[0100] The LSTM neural network has three main structures: input gate, output gate, and forget gate. The input gate is responsible for determining how much of the cell state from the previous moment is retained by the new input information and updating the cell state c. t , using the intermediate vector C t , as input. The output gate controls the information output. Sigmoid determines the initial output o t , the tanh unit processes and multiplies to get the final output h tThe forget gate is used in the LSTM neural network to decide how much information to retain or discard from the unit state at the previous moment. This decision is made by the sigmoid unit reading the current and previous state information, and deciding which state information needs to be output at the previous moment to generate a control value of 0 to 1.

[0101] f t =C t =σ(W f [h t-1 ,x t ]+b f )

[0102] i t =σ(W i [h t-1 ,x t ]+b i )

[0103] c t =f t C t-1 +i t C t

[0104] O t =σ(W o [h t-1 ,x t ]+b o )

[0105] h t =o t tanh(c t )

[0106] In the formula, f t For the forget gate; t is the input gate; o t is the output gate; h t-1 and x t are the unit output at time t-1 and the unit input vector at time t; c t and c t-1 , are the unit states of the hidden layer at time t and time t-1 respectively; w f , w i , w o , w c are the weight matrices of the forget gate, input gate, output gate and tanh unit respectively; b f , b i , b o , b c The corresponding w f , w i , w o , w cThe bias vector of .

[0107] 3. Use the trained LSTM network to complete the missing data segments

[0108] Use the trained LSTM network to predict the missing data and use anti-normalization to calculate the true value of the missing value.

[0109] 4. Use other algorithms to complete missing data

[0110] Missing data are completed by deleting missing values, filling in the mean, regression algorithm, and intelligent algorithm respectively.

[0111] 4.1 Remove missing values

[0112] When the number of samples is large and the proportion of samples with missing values ​​in the entire sample is relatively small, the samples with missing values ​​are directly discarded. The disadvantage of this method is that it changes the data distribution of the samples, distorts the data of the samples, and deletes very important feature values ​​under certain conditions.

[0113] 4.2 Mean Imputation Method

[0114] Calculate the mean of the data near the missing data and fill in the missing value position with these means. The disadvantage of this method is that it changes the data distribution of the sample, distorts the data of the sample, and deletes very important eigenvalues ​​under certain conditions.

[0115] 4.3 Regression imputation method

[0116] The idea of ​​regression filling method is very simple. Assuming that there are two variables, monitoring time and monitoring data, to fill the missing values ​​of monitoring data, monitoring data can be used as the dependent variable, monitoring time as the independent variable, and a regression equation of weight on monitoring data can be established. Then, according to the missing values, the method has the disadvantage that linear and nonlinear regression have insufficient generalization ability and cannot fully reflect the changing law of changing data.

[0117] 4.4 Intelligent Algorithm

[0118] Taking the K nearest neighbor algorithm as an example, we study the data completion of intelligent algorithms. The algorithm idea is as follows: first determine the K samples closest to the sample with missing data based on Euclidean distance or correlation analysis, and then use the weighted average of these K values ​​to estimate the missing data of the sample.

[0119] In this embodiment, k "neighbors" are first selected based on some distance metric, and their mean is used to interpolate the missing data. This method requires us to choose the value of k (the number of nearest neighbors) and the distance metric. KNN can predict both discrete attributes (the most common value among the k nearest neighbors) and continuous attributes (the mean of the k nearest neighbors). The disadvantage of this embodiment is that in high-dimensional data sets, the difference between the nearest and farthest neighbors is very small, so the accuracy of KNN will not be high.

[0120] 5. Clarify the optimal method for completing this data segment

[0121] Use the benchmark test to test the data completion of different algorithms and determine the final algorithm to be used. Calculate the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE) and R-square between the missing data of the above algorithms and the data completed by the LSTM network to determine the best data completion method for the missing data area.

[0122]

[0123] y LSTM (x i ) is the value calculated by the LSTM network, y t (x i ) is the predicted value of various methods, y LSTM (x i ) is the average value calculated by the LSTM network.

[0124] 6Select the optimal algorithm to complete the overall data completion

[0125] Then randomly select a few missing data segments and repeat steps 2, 3, 4, and 5 until the quantity requirement is met. Then rank the accuracy of different algorithms and select the most optimized algorithm. Complete all the data.

[0126] The present invention randomly selects data near defect data as training data, uses genetic algorithm for parameter training, obtains optimized parameters, and uses the most optimized long short-term memory recursive neural network to predict missing data for monitoring of pumped storage power stations. By comparing and analyzing the common analysis mean, median or mode filling, interpolation method, regression method, and prediction value of intelligent algorithm with the prediction value of long short-term memory recursive neural network, the most optimized data cleaning method under conventional algorithm is obtained. Without increasing the technical difficulty, the data cleaning accuracy of pumped storage power station is improved.

[0127] 1. The present invention can use a higher-precision LSTM deep learning algorithm to evaluate the cleaning effects of different data cleaning algorithms, thereby selecting the most appropriate algorithm for large-scale cleaning of hydraulic monitoring data.

[0128] 2 The parameters of the LSTM deep learning method proposed in the present invention are randomly selected using data near the missing data, and the parameters of the LSTM deep learning method are calculated using a genetic algorithm until the optimal deep learning parameters are obtained. The evaluation of the cleaning effect of monitoring data of a pumped storage power station based on a long short-term memory recursive neural network includes a method for selecting training samples in deep learning and a prediction algorithm for missing data.

[0129] 3 The conventional algorithms mentioned in the present invention include but are not limited to four common data cleaning algorithms.

[0130] 4 and use LSTM to analyze the errors of conventional algorithms, where the error analysis indicators include but are not limited to (root mean square error, mean square error, mean absolute error, mean absolute percentage error).

[0131] The following will be combined with the attached Figure 3 , a pumped storage power station monitoring data cleaning device provided by an embodiment of the present invention is described, the device comprising:

[0132] A first processing module, used for obtaining missing data to be predicted in the monitoring data;

[0133] A second processing module is used to obtain the prediction accuracy value of each prediction algorithm by using the monitoring data, the prediction model, the missing data to be predicted and a plurality of prediction algorithms, wherein the prediction model is a trained long short-term memory recursive neural network;

[0134] The third processing module is used to predict all missing data in the monitoring data by using the prediction algorithm with the highest accuracy value to obtain the predicted values ​​of all the missing data.

[0135] Based on the above embodiment, further, the second processing module is specifically used to predict each missing data to be predicted by using the prediction model and the monitoring data to obtain a first prediction value of each missing data to be predicted;

[0136] Using multiple prediction algorithms and the monitoring data, each of the missing data to be predicted is predicted respectively, and a prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms is obtained;

[0137] The accuracy values ​​of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are calculated by a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

[0138] Based on the above embodiment, further, the second processing module is specifically used to input a preset number of monitoring data before the position of each missing data to be predicted into the prediction model to obtain a first prediction value for each missing data to be predicted.

[0139] Based on the above embodiment, further, a model building module is included, the model building module is used to select all sample monitoring data before the missing data in the sample monitoring data as training data, and normalize the training data;

[0140] Constructing a long short-term memory recursive neural network and determining neural network parameters of the long short-term memory recursive neural network, wherein the neural network parameters include the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, and the descent factor;

[0141] The long short-term memory recursive neural network is trained using the normalized training data, and the loss function result of the initial training is used to adjust the training parameters to obtain the optimal parameters of the neural network parameters and obtain the prediction model.

[0142] Based on the above embodiment, further, the second processing module is specifically used to discard the missing data in the monitoring data by using the missing value deletion algorithm in the prediction algorithm, and use the monitoring data behind the missing data to be predicted to complete the position data of the discarded missing data;

[0143] Utilize the mean filling algorithm in the prediction algorithm to calculate the mean of a preset number of monitoring data before and after the missing data to be predicted, and fill the position of the missing data to be predicted with the mean;

[0144] Using the regression filling algorithm in the prediction algorithm to establish a regression equation according to the dependent variable and the independent variable in the monitoring data, and calculating the missing data to be predicted according to the regression equation;

[0145] The intelligent algorithm in the prediction algorithm is used to determine the preset number of samples closest to the missing data to be predicted according to Euclidean distance or correlation analysis, and the sample values ​​of the preset number of samples are weighted averaged to obtain the missing data to be predicted.

[0146] Based on the above embodiment, further, the second processing module is specifically used to calculate the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value between the first prediction value of all the missing data to be predicted and the prediction value corresponding to each of the prediction algorithms respectively;

[0147]

[0148] y LSTM (x i ) is the first predicted value of the i-th missing data to be predicted, y t (x i) is the predicted value of the t-th prediction algorithm, and m is the number of missing data to be predicted;

[0149] The accuracy value of each prediction algorithm is calculated using the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value of each prediction algorithm.

[0150] The present embodiment proposes a pumped storage power station monitoring data cleaning device, comprising selecting missing data to be predicted from all missing data in the monitoring data of the water storage power station; using the monitoring data, prediction model and multiple prediction algorithms to predict the missing data to be predicted, and then calculating the prediction accuracy value of each prediction algorithm, wherein the prediction model is a trained long short-term memory recursive neural network; using the prediction algorithm with the highest accuracy value to complete all missing data in the monitoring data of the water storage power station. The present invention realizes the optimal cleaning method while greatly reducing computing resources, thereby improving data cleaning efficiency.

[0151] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a method for cleaning monitoring data of a pumped storage power station described in any one of the above technical solutions is implemented.

[0152] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, a method for cleaning monitoring data of a pumped-storage power station described in any one of the above technical solutions is implemented.

[0153] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the specific implementation modes of the present invention can still be modified or replaced by equivalents, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for cleaning monitoring data of a pumped storage power station, characterized in that: include: Obtaining missing data to be predicted in the monitoring data; Utilizing the monitoring data, the prediction model, the missing data to be predicted and a plurality of prediction algorithms, the prediction accuracy value of each prediction algorithm is obtained, wherein the prediction model is a trained long short-term memory recursive neural network; The prediction algorithm with the highest accuracy value is used to predict all missing data in the monitoring data to obtain predicted values ​​of all the missing data.

2. The method according to claim 1, characterized in that: The using of the monitoring data, the prediction model, the missing data to be predicted and the plurality of prediction algorithms to obtain the prediction accuracy value of each prediction algorithm specifically includes: Using the prediction model and the monitoring data, predict each piece of the missing data to be predicted to obtain a first prediction value for each piece of the missing data to be predicted; Using multiple prediction algorithms and the monitoring data, each of the missing data to be predicted is predicted respectively, and a prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms is obtained; The accuracy values ​​of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are calculated by a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

3. The method according to claim 2, characterized in that The using the prediction model and the monitoring data to predict each of the missing data to be predicted to obtain a first prediction value of each of the missing data to be predicted includes: A preset number of monitoring data before the position of each piece of the to-be-predicted missing data is input into the prediction model to obtain a first prediction value for each piece of the to-be-predicted missing data.

4. The method according to claim 1, characterized in that: The prediction model is constructed by the following method: Selecting all sample monitoring data before missing data in the sample monitoring data as training data, and performing normalization processing on the training data; Constructing a long short-term memory recursive neural network and determining neural network parameters of the long short-term memory recursive neural network, wherein the neural network parameters include the number of input parameters, the number of output parameters, the number of deep learning network layers, the optimization algorithm used, the maximum number of iterations, the initial learning rate, and the descent factor; The long short-term memory recursive neural network is trained using the normalized training data, and the loss function result of the initial training is used to adjust the training parameters to obtain the optimal parameters of the neural network parameters and obtain the prediction model.

5. The method according to claim 2, characterized in that: The using of multiple prediction algorithms and the monitoring data to predict each of the missing data to be predicted respectively, and obtaining the prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms, specifically includes: The missing data in the monitoring data are discarded using the missing value deletion algorithm in the prediction algorithm, and the position data of the discarded missing data are completed using the monitoring data following the missing data to be predicted; Utilize the mean filling algorithm in the prediction algorithm to calculate the mean of a preset number of monitoring data before and after the missing data to be predicted, and fill the position of the missing data to be predicted with the mean; Using the regression filling algorithm in the prediction algorithm to establish a regression equation according to the dependent variable and the independent variable in the monitoring data, and calculating the missing data to be predicted according to the regression equation; The intelligent algorithm in the prediction algorithm is used to determine the preset number of samples closest to the missing data to be predicted according to Euclidean distance or correlation analysis, and the sample values ​​of the preset number of samples are weighted averaged to obtain the missing data to be predicted.

6. The method according to claim 2, characterized in that The method of calculating the accuracy of each first prediction value of each missing data to be predicted and the prediction value of each prediction algorithm by using the benchmark test method to obtain the accuracy values ​​of all the prediction algorithms specifically includes: Respectively calculate the mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), and R-square value between the first predicted value of all the missing data to be predicted and the predicted value corresponding to each of the prediction algorithms; y LSTM (x i ) is the first predicted value of the i-th missing data to be predicted, y t (x i ) is the predicted value of the t-th prediction algorithm, and m is the number of missing data to be predicted; The accuracy value of each prediction algorithm is calculated using the mean square error MSE, root mean square error RMSE, mean absolute error MAE and R-square value of each prediction algorithm.

7. A pumped storage power station monitoring data cleaning device, characterized in that: The device comprises: A first processing module, used for obtaining missing data to be predicted in the monitoring data; A second processing module is used to obtain the prediction accuracy value of each prediction algorithm by using the monitoring data, the prediction model, the missing data to be predicted and a plurality of prediction algorithms, wherein the prediction model is a trained long short-term memory recursive neural network; The third processing module is used to predict all missing data in the monitoring data by using the prediction algorithm with the highest accuracy value to obtain the predicted values ​​of all the missing data.

8. The device according to claim 7, characterized in that The second processing module is specifically used to predict each missing data to be predicted by using the prediction model and the monitoring data to obtain a first prediction value for each missing data to be predicted; Using multiple prediction algorithms and the monitoring data, each of the missing data to be predicted is predicted respectively, and a prediction value of each of the missing data to be predicted corresponding to each of the prediction algorithms is obtained; The accuracy values ​​of the first prediction value of each missing data to be predicted and the prediction value of each corresponding prediction algorithm are calculated by a benchmark test method to obtain the accuracy values ​​of all the prediction algorithms.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method for cleaning monitoring data of a pumped storage power station according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for cleaning monitoring data of a pumped storage power station according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Method and device for predicting missing data in power grid transmission, medium and product

    CN121278251A