A method and system for early warning of power grid equipment damage
By improving the RNN model and using the beta distribution function to calculate weights, combined with SGD algorithm training, the problem of low accuracy in early warning of damage to power grid equipment is solved, a more efficient early warning capability is achieved, and the robustness and accuracy of the model are enhanced.
Patent Information
- Application Number
- CN202410740861.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Existing power grid equipment damage early warning methods have the problems of low warning accuracy and low efficiency. In particular, methods based on multiple linear regression methods and exponential smoothing methods perform poorly when there is less data, while methods based on gray theory and neural network models do not perform well when there is less data. Generalization ability is weak.
By improving the RNN model, using the beta distribution function to calculate the weight of historical data, and combining it with the SGD algorithm to train the model, the early warning capability of the network is enhanced, and the composite detection index is used to screen historical data to improve the robustness and accuracy of the model.
It improves the accuracy and efficiency of power grid equipment damage early warning, enables the model to better learn long-term historical data, enhances early warning accuracy and robustness, and reduces the impact of redundant data.
Smart Images

Figure CN118332474B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of damage warning, and in particular to a method and system for warning damage of power grid equipment. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] As users' electricity demand continues to increase, power grid equipment often needs to run uninterruptedly for 24 hours. Long-term operation may cause various hidden dangers of power grid equipment. Therefore, it is necessary to predict the status trend and loss of power grid equipment in order to grasp the real-time operating status of power grid equipment and discover abnormalities of power grid equipment in time.
[0004] The damage warning methods in the prior art mainly include warning models based on multiple linear regression, warning models based on exponential smoothing, warning models based on grey theory, and warning models based on neural networks. Among them, the warning models based on multiple linear regression and the warning models based on exponential smoothing consider less power grid equipment operation data, simplify the problem of damage warning of power grid equipment, make the final warning result deviate greatly from the actual result, and lead to low accuracy of damage warning of power grid equipment; and although the warning models based on grey theory and neural network can realize damage warning modeling, the final warning results have been effectively improved, but the existing network models still have problems such as training obstruction, weak generalization ability, and low accuracy and efficiency of damage warning. Summary of the invention
[0005] In order to solve the technical problems in the prior art, the present invention proposes a method and system for early warning of damage to power grid equipment. By improving the traditional RNN model, the network training process is simpler and more convenient, and the accuracy and efficiency of damage early warning are effectively improved.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a method for early warning of power grid equipment damage, comprising:
[0008] Acquire historical data of power grid equipment, wherein the historical data includes historical operation data and historical lossy data;
[0009] Preprocess the acquired historical data;
[0010] An improved RNN model is constructed, the preprocessed historical data is input into the improved RNN model, the weight of the historical data is calculated using the beta distribution function, the input of the input layer is superimposed on the output of the output layer after weighted calculation, and the superimposed output is used as the output of the improved RNN model; the improved RNN model is trained, and the parameters of the improved RNN model are updated by the SGD algorithm to obtain the trained improved RNN model as a damage warning model;
[0011] The current operation data of the power grid equipment to be tested is obtained, the current operation data is preprocessed, the preprocessed operation data is input into the lossy early warning model, and the early warning information of the power grid equipment is output.
[0012] A further technical solution is that the method for preprocessing the acquired historical data is as follows: the historical operating data includes the operating temperature, pressure, speed, load, voltage and current data of the power grid equipment; the historical lossy data includes overvoltage data, overcurrent data, undervoltage data, undercurrent data and bearing loss data.
[0013] According to a further technical solution, the method for preprocessing the acquired historical data is: a method for calculating a composite detection index is used for the acquired historical data.
[0014] Further technical solution, the specific steps of calculating the composite detection index are:
[0015] Calculate the detection index, expressed as: = ,in, represents the detection index, i and j are different states of the power grid equipment, , and represents the standard deviation value;
[0016] Calculate the composite detection index, expressed as: = ,in, represents the composite detection index, and n represents the number of categories in the historical lossy data.
[0017] A further technical solution is to construct an improved RNN model including: constructing an input layer for data input, filtering invalid data and adding valid data, constructing a forgetting layer for deleting invalid data, constructing a cell state and constructing an output layer for outputting warning information of power grid equipment.
[0018] A further technical solution is that the weight of the historical data is calculated using the beta distribution function as follows:
[0019] Calculate the mean and covariance of the weighted parameters of historical data and calculate the mean of the weighted beta distribution, expressed as: = + (1- ),in, represents the mean of the beta distribution after the kth calculation, is the weighted parameter after the kth calculation, is the mean value of the weighted parameter after the kth calculation, l is a constant; according to the mean value of the weighted parameter, covariance and the mean value of the β distribution of the historical data, the β distribution parameters are obtained, and the β distribution function is constructed. Based on the β distribution function, the weighted parameters are updated by sampling, and the weighted parameters at time t are obtained. .
[0020] As a further technical solution, the power grid equipment damage early warning method further includes:
[0021] The current operation data of the power grid equipment to be tested is obtained, the current operation data is preprocessed, the preprocessed operation data is input into the lossy early warning model, and the early warning information of the power grid equipment is output.
[0022] In a second aspect, the present invention provides a power grid equipment damage early warning system, comprising:
[0023] The historical data acquisition module is configured to: acquire historical data of the power grid equipment, wherein the historical data includes historical operation data and historical lossy data;
[0024] The preprocessing module is configured to: preprocess the acquired historical data;
[0025] The module for constructing and training a lossy warning model is configured to: construct an improved RNN model, input preprocessed historical data into the improved RNN model, calculate the weight of the historical data using the beta distribution function, superimpose the input of the input layer to the output of the output layer after weighted calculation, and use the superimposed output as the output of the improved RNN model; train the improved RNN model, update the parameters of the improved RNN model through the SGD algorithm, and obtain the trained improved RNN model as a lossy warning model.
[0026] The early warning model is configured to: obtain current operating data of the power grid equipment to be tested, preprocess the current operating data, input the preprocessed operating data into the lossy early warning model, and output early warning information of the power grid equipment.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] 1. The present invention improves the traditional RNN model. On the basis of the traditional output layer, by calculating the weight of historical data, the input of the input layer is superimposed on the output of the output layer after weighted calculation, that is, the input layer is connected to the output layer. The advantage is that the improved RNN model can learn long-term historical data, which can enhance the warning accuracy and robustness of the network model.
[0029] 2. The historical data of power grid equipment includes long-term historical operation data and historical lossy data. In the process of acquiring historical data, a large amount of data information will be obtained, but there is no shortage of redundant and useless historical data in these historical information. The present invention screens all the acquired historical data by calculating the composite detection index. In the calculation process, the present invention also considers the number of types of lossy power grid equipment. The larger the composite detection index, the more sensitive the historical data is to the lossy type, that is, the closer it is to the valid historical data. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings in the specification, which constitute 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 improper limitations on the present invention.
[0031] Figure 1 This is a damage warning flow chart of the present invention; DETAILED DESCRIPTION
[0032] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0033] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0034] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0035] Embodiment 1
[0036] In this embodiment, the power grid equipment is a wind turbine equipment in a large wind power plant, such as Figure 1 As shown, this embodiment provides a power grid equipment damage warning method, the steps include:
[0037] S1: Acquire historical data of power grid equipment, where the historical data includes historical operation data and historical lossy data;
[0038] S2: preprocess the acquired historical data;
[0039] S3: Construct an improved RNN model, input the preprocessed historical data into the improved RNN model, use the beta distribution function to calculate the weight of the historical data, superimpose the input of the input layer to the output of the output layer after weighted calculation, and use the superimposed output as the output of the improved RNN model; train the improved RNN model, update the improved RNN model parameters through the SGD algorithm, and obtain the trained improved RNN model as a damage warning model.
[0040] In step S1, the historical operation data includes the operating temperature, pressure, speed, load, voltage and current of the power grid equipment; the historical lossy data includes the fan overvoltage data, fan overcurrent data, fan undervoltage data, fan undercurrent data and fan bearing loss data, etc.
[0041] In step S2, the method for preprocessing the acquired historical data is: using a method for calculating a composite detection index;
[0042] Since the historical data of power grid equipment includes long-term historical operation data and historical lossy data, a large amount of data information will be obtained in the process of obtaining historical data. However, there is no lack of redundant and useless historical data in these historical information. In order to improve the effectiveness of historical data, after normalizing the historical data, the composite detection index is calculated for the historical data, and all the acquired historical data are screened. The specific steps for calculating the composite detection index are as follows:
[0043] Calculate the detection index, expressed as: = ,in, represents the detection index, i and j are different states of the power grid equipment, , and represents the standard deviation value;
[0044] Calculate the composite detection index, expressed as: = ,in, Indicates the composite detection index, and n indicates the number of types in the historical lossy data. In the calculation process, the present invention also considers the number of types of lossy power grid equipment. The larger the composite detection index, the more sensitive the historical data is to the lossy type, that is, the closer it is to the valid historical data.
[0045] In step S3, the weight of historical data is calculated using the beta distribution function as follows:
[0046] Calculate the mean and covariance of the weighted parameters of historical data and calculate the mean of the weighted beta distribution, expressed as: = + (1- ),in, represents the mean of the beta distribution after the kth calculation, is the weighted parameter after the kth calculation, is the mean value of the weighted parameter after the kth calculation, l is a constant; according to the mean value of the weighted parameter, covariance and the mean value of the β distribution of the historical data, the β distribution parameters are obtained, and the β distribution function is constructed. Based on the β distribution function, the weighted parameters are updated by sampling, and the weighted parameters at time t are obtained. .
[0047] Building an improved RNN model includes: building an input layer for data input, filtering invalid data and adding valid data; it can be expressed as: = , where n is a certain moment, is the normalized historical data in step 2, For input data, () is the activation function, For input data and The weight coefficient between is the hidden state at time n-1, For input data and The weight coefficient between is the cell state at time n-1, For input data and The weight coefficient between is the bias term of the input layer;
[0048] Construct a forgetting layer to delete invalid data; it can be expressed as: = , where is the forgetting layer sample data, is the forgetting layer sample data and The weight coefficient between is the forgetting layer sample data and The weight coefficient between is the forgetting layer sample data and The weight coefficient between is the bias term of the forgetting layer;
[0049] Construct the cell state; it can be expressed as: = + tanh( ), where Cell status and The weight coefficient between Cell status and The weight coefficient between is the bias term of the cell state;
[0050] Construct an output layer to output early warning information of power grid equipment; it can be expressed as: = ( )+ , where is the output layer data, The output layer data and The weight coefficient between The output layer data and The weight coefficient between The output layer data and The weight coefficient between is the bias term of the output layer.
[0051] Update the current state of the output layer, specifically using the activation function, the activation function uses the tanh function: it can be expressed as: = tanh( ).
[0052] In this embodiment, the power grid equipment damage warning method also includes: after obtaining the damage warning model, obtaining the current operating data of the power grid equipment to be tested, preprocessing the current operating data, inputting the preprocessed operating data into the damage warning model, and outputting the warning information of the power grid equipment.
[0053] Embodiment 2
[0054] This embodiment provides a power grid equipment damage warning system, which specifically includes the following modules:
[0055] The historical data acquisition module is configured to: acquire historical data of the power grid equipment, wherein the historical data includes historical operation data and historical lossy data;
[0056] The preprocessing module is configured to: preprocess the acquired historical data;
[0057] The module for constructing and training a lossy warning model is configured to: construct an improved RNN model, input preprocessed historical data into the improved RNN model, calculate the weight of the historical data using the beta distribution function, superimpose the input of the input layer to the output of the output layer after weighted calculation, and use the superimposed output as the output of the improved RNN model; train the improved RNN model, update the parameters of the improved RNN model through the SGD algorithm, and obtain the trained improved RNN model as a lossy warning model.
[0058] It should be noted here that each module in this embodiment corresponds one-to-one to the method in Embodiment 1, and the specific implementation process is the same, which will not be repeated here.
[0059] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0060] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present invention.
Claims
1. A method for early warning of power grid equipment damage, It is characterized in that include: Acquire historical data of power grid equipment, wherein the historical data includes historical operation data and historical lossy data; Preprocess the acquired historical data; The method for preprocessing the acquired historical data is: using a method for calculating a composite detection index for the acquired historical data, and the specific steps of calculating the composite detection index are: Calculate the detection index, expressed as: = ,in, represents the detection index, i and j are different states of the power grid equipment, , and represents the standard deviation value; Calculate the composite detection index, expressed as: = , where CD represents the composite detection index, and n represents the number of types in the historical lossy data; the larger the composite detection index, the more sensitive the historical data is to the lossy type, that is, the closer it is to the valid historical data; An improved RNN model is constructed, the preprocessed historical data is input into the improved RNN model, the weight of the historical data is calculated using the beta distribution function, the input of the input layer is superimposed on the output of the output layer after weighted calculation, and the superimposed output is used as the output of the improved RNN model; the improved RNN model is trained, and the parameters of the improved RNN model are updated by the SGD algorithm to obtain the trained improved RNN model as a damage warning model; The current operation data of the power grid equipment to be tested is obtained, the current operation data is preprocessed, the preprocessed operation data is input into the lossy early warning model, and the early warning information of the power grid equipment is output.
2. A power grid equipment damage early warning method as claimed in claim 1, It is characterized in that The historical operation data includes the operating temperature, pressure, speed, load, voltage and current data of the power grid equipment.
3. A power grid equipment damage early warning method as claimed in claim 1, It is characterized in that The historical damage data includes overvoltage data, overcurrent data, undervoltage data, undercurrent data and bearing damage data.
4. A power grid equipment damage early warning method as claimed in claim 1, It is characterized in that The improved RNN model construction includes: constructing an input layer for data input and filtering invalid data to add valid data, constructing a forgetting layer for deleting invalid data, constructing a cell state and constructing an output layer for outputting warning information of power grid equipment.
5. A power grid equipment damage early warning method as claimed in claim 1, It is characterized in that The specific calculation of the weight of historical data using the beta distribution function is: Calculate the mean and covariance of the weighted parameters of historical data and calculate the mean of the weighted beta distribution, expressed as: = + (1- ),in, represents the mean of the beta distribution after the kth calculation, is the weighted parameter after the kth calculation, is the mean value of the weighted parameter after the kth calculation, l is a constant; according to the mean value of the weighted parameter, covariance and the mean value of the β distribution of the historical data, the β distribution parameters are obtained, and the β distribution function is constructed. Based on the β distribution function, the weighted parameters are updated by sampling, and the weighted parameters at time t are obtained. .
6. A power grid equipment damage early warning system, It is characterized in that include: The historical data acquisition module is configured to: acquire historical data of the power grid equipment, wherein the historical data includes historical operation data and historical lossy data; The preprocessing module is configured to: preprocess the acquired historical data; The method for preprocessing the acquired historical data is: using a method for calculating a composite detection index for the acquired historical data, and the specific steps of calculating the composite detection index are: Calculate the detection index, expressed as: = ,in, represents the detection index, i and j are different states of the power grid equipment, , and represents the standard deviation value; Calculate the composite detection index, expressed as: = , where CD represents the composite detection index, and n represents the number of types in the historical lossy data; the larger the composite detection index, the more sensitive the historical data is to the lossy type, that is, the closer it is to the valid historical data; The module for constructing and training a lossy early warning model is configured to: construct an improved RNN model, input the preprocessed historical data into the improved RNN model, calculate the weight of the historical data using the beta distribution function, superimpose the input of the input layer to the output of the output layer after weighted calculation, and use the superimposed output as the output of the improved RNN model; train the improved RNN model, update the parameters of the improved RNN model through the SGD algorithm, and obtain the trained improved RNN model as a lossy early warning model; The early warning module is configured to: obtain current operating data of the power grid equipment to be tested, preprocess the current operating data, input the preprocessed operating data into the lossy early warning model, and output early warning information of the power grid equipment.
7. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the steps of a power grid equipment damage early warning method as described in any one of claims 1 to 5 are implemented.
8. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the power grid equipment damage early warning method as described in any one of claims 1-5 are implemented.
