Power grid operation risk identification method, device, computer equipment and storage medium
By calculating the matching degree between the current and historical risk information of the power grid, qualified risk information is screened out, which solves the problem of large calculation and long time consumption of the traditional power grid real-time operation risk identification method, and achieves rapid and accurate real-time risk identification of the power grid.
Patent Information
- Application Number
- CN202210753258.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Traditional power grid real-time operation risk identification methods are computationally intensive and time-consuming, making it difficult to meet real-time operation requirements.
By obtaining current and historical power grid risk information, use a risk prediction model to process the current risk information, calculate the matching degree between historical risk information and predicted risk information, and screen out qualified risk information to determine the risk identification results of the power grid.
It improves the speed and accuracy of real-time operation risk identification of the power grid, overcomes the shortcomings of large calculation volume and long time consumption, and achieves fast and accurate risk identification.
Smart Images

Figure CN115081898B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power grid management, and in particular to a method, device, computer equipment, storage medium and computer program product for identifying power grid operation risks. Background Art
[0002] Grid operation risk identification is an important research topic in power system dispatching and operation. The risk identification results will not only serve as a reference for abnormal handling of grid accidents, allowing dispatching and operation personnel to adjust the operation mode and achieve risk reduction, but also serve as a basis for arranging the operation mode to support dispatching personnel in analysis and decision-making.
[0003] Real-time grid operation risk identification refers to the process of identifying possible grid operation accidents and their impacts based on the real-time grid operation status and meteorological information such as precipitation and wind. Traditional methods for identifying real-time grid operation risks require panoramic modeling of the grid, considering the probability of failure of power transmission and transformation equipment under different meteorological conditions, scanning the accident risks after failures of different types and probabilities, and quantifying the consequences of accidents. By statistically analyzing the consequences of accident risks under different probabilities, the real-time grid operation risks are calculated. However, the above process is computationally intensive, and the complete identification calculation takes a very long time. Even if the model is simplified, it is still difficult to meet the real-time operation requirements. Summary of the invention
[0004] Based on this, it is necessary to provide a power grid operation risk identification method, device, computer equipment, computer-readable storage medium and computer program product to address the technical problems of the above-mentioned power grid operation risk identification method, such as the huge amount of calculation and the long time-consuming complete identification calculation.
[0005] In a first aspect, the present application provides a method for identifying power grid operation risks. The method comprises:
[0006] Acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0007] Processing the current power grid risk information through a risk prediction model to obtain predicted power grid risk information;
[0008] Respectively obtain a first matching degree between each piece of historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, screened power grid risk information whose first matching degree meets a first preset condition;
[0009] Based on the risk labels corresponding to the screened risk information, a risk identification result for the power grid is determined.
[0010] In one embodiment, determining the risk identification result for the power grid based on the risk label corresponding to the screened risk information includes:
[0011] In the case where the risk labels corresponding to the historical power grid risk information included in the screened risk information are different from each other, respectively obtaining a second matching degree between each screened power grid risk information and the predicted power grid risk information;
[0012] Based on the first matching degree and the second matching degree, determining target power grid risk information from the screened power grid risk information;
[0013] Based on the risk label corresponding to the target power grid risk information, a risk identification result for the power grid is determined.
[0014] In one embodiment, the obtaining of the second matching degree between each filtered grid risk information and the predicted grid risk information includes:
[0015] Respectively splicing each screened power grid risk information with the predicted power grid risk information to obtain a plurality of spliced power grid risk information;
[0016] Each piece of spliced power grid risk information is input into the trained matching model respectively to obtain a second matching degree between each piece of screened power grid risk information and the predicted power grid risk information.
[0017] In one embodiment, determining target power grid risk information from the screened power grid risk information based on the first matching degree and the second matching degree includes:
[0018] Obtaining a product of the first matching degree and the second matching degree;
[0019] From the screened power grid risk information, the screened power grid risk information with the largest product is determined as the target power grid risk information.
[0020] In one embodiment, the method further comprises:
[0021] When the first matching degrees between the various historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, or when the second matching degrees between the various screened power grid risk information and the predicted power grid risk information do not meet the second preset condition, the predicted power grid risk information is input into the risk identification model to obtain the risk identification result of the power grid.
[0022] In one embodiment, the determining the risk identification result for the power grid based on the risk label corresponding to the screened risk information further includes:
[0023] In the case that identical risk labels exist in the risk labels corresponding to the historical power grid risk information included in the screened risk information, a risk identification result of the power grid is determined based on the identical risk labels.
[0024] In a second aspect, the present application also provides a device for identifying risks in power grid operation. The device comprises:
[0025] An acquisition module is used to acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0026] A prediction module, used to process the current power grid risk information through a risk prediction model to obtain predicted power grid risk information;
[0027] A matching module, used to respectively obtain a first matching degree between each historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, the screened power grid risk information whose first matching degree meets the first preset condition;
[0028] The identification module is used to determine the risk identification result for the power grid based on the risk label corresponding to the screened risk information.
[0029] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0030] Acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0031] Processing the current power grid risk information through a risk prediction model to obtain predicted power grid risk information;
[0032] Respectively obtain a first matching degree between each piece of historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, screened power grid risk information whose first matching degree meets a first preset condition;
[0033] Based on the risk labels corresponding to the screened risk information, a risk identification result for the power grid is determined.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0035] Acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0036] Processing the current power grid risk information through a risk prediction model to obtain predicted power grid risk information;
[0037] Respectively obtain a first matching degree between each piece of historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, screened power grid risk information whose first matching degree meets a first preset condition;
[0038] Based on the risk labels corresponding to the screened risk information, a risk identification result for the power grid is determined.
[0039] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0040] Acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0041] Processing the current power grid risk information through a risk prediction model to obtain predicted power grid risk information;
[0042] Respectively obtain a first matching degree between each piece of historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, screened power grid risk information whose first matching degree meets a first preset condition;
[0043] Based on the risk labels corresponding to the screened risk information, a risk identification result for the power grid is determined.
[0044] The above-mentioned power grid operation risk identification method, device, computer equipment, storage medium and computer program product process the current power grid risk information through the risk prediction model to obtain the predicted power grid risk information, and based on the first matching degree between each historical power grid risk information and the predicted power grid risk information, determine the screened power grid risk information whose first matching degree meets the first preset condition from multiple historical power grid risk information, and determine the risk identification result for the power grid based on the risk label corresponding to the screened risk information. This method determines the real-time operation risk of the power grid based on the matching of historical power grid risk information and predicted power grid risk information. It is simple and fast, can improve the speed and accuracy of real-time operation risk identification of the power grid, and overcome the defects of the traditional method of huge calculation amount and long time-consuming complete evaluation calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1A schematic diagram of a flow chart of a method for identifying power grid operation risks in one embodiment;
[0046] Figure 2 A schematic diagram of a combination form of power grid risk information in one embodiment;
[0047] Figure 3 A schematic diagram of a network structure of a risk prediction model in one embodiment;
[0048] Figure 4a A schematic diagram of the form of early warning data and current power grid risk information before being spliced in an embodiment;
[0049] Figure 4b A schematic diagram of the form of the early warning data and the current power grid risk information after being spliced in an embodiment;
[0050] Figure 5 A schematic diagram of combining the filtered power grid risk information and the predicted power grid risk information in an embodiment;
[0051] Figure 6 A structural block diagram of a power grid operation risk identification system in one embodiment;
[0052] Figure 7 A schematic diagram of a flow chart of a method for identifying power grid operation risks in another embodiment;
[0053] Figure 8 is a structural block diagram of a power grid operation risk identification device in one embodiment;
[0054] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0057] In one embodiment, Figure 1 As shown, a method for identifying power grid operation risks is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers. In this embodiment, the method includes the following steps:
[0058] Step S110, obtaining current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label.
[0059] Among them, power grid risk information includes power grid operation information and environmental information.
[0060] The grid operation information includes: the operating status of the generator set, the active power generated by the generator set, the reactive power generated by the generator set, the active power transmitted by the transmission line, the reactive power transmitted by the transmission line and the system frequency.
[0061] Among them, environmental information includes: wind speed, temperature, rainfall, humidity and lightning level, etc.
[0062] In the specific implementation, for the acquisition of historical grid risk information: after each grid operation risk identification, the grid risk information and corresponding risk tags of the time can be recorded and stored in the database. When new grid risk information is subsequently identified, multiple historical grid risk information can be retrieved from the database. For the acquisition of current grid risk information: severe weather warning information can be obtained from the meteorological platform. After the severe weather warning information is obtained, the grid operation information is collected through the grid operation information collection submodule, and the environmental information is collected through the environmental information collection submodule. The collected grid operation information and environmental information constitute the current grid risk information.
[0063] More specifically, after obtaining the severe weather warning information, the environmental information collection submodule can collect relevant environmental information at preset time intervals starting from the current time until the severe weather ends. For example, relevant environmental information is collected every 5 seconds, a total of 28 times as one round, and one round is collected every 5 minutes until the severe weather ends.
[0064] Similarly, when severe weather warning information is obtained, the power grid operation information collection submodule can collect relevant environmental information at preset time intervals starting from the current time until the severe weather ends. For example, relevant power grid operation information is collected every 5 seconds, a total of 28 times as one round, and one round is collected every 5 minutes until the severe weather ends.
[0065] Furthermore, in an exemplary embodiment, after obtaining the current power grid risk information, it also includes: preprocessing the current power grid risk information to obtain preprocessed power grid risk information, and predicting the preprocessed power grid risk information through a risk prediction model.
[0066] More specifically, refer to Figure 2 , the preprocessing of the current power grid risk information includes: determining the type of information in the current power grid risk information, for character type information, assigning the character type information according to the name of the information and the preset assignment method, and obtaining the preprocessed character type information; for numerical type information, using linear function normalization method to map the information to [0,1] to obtain preprocessed numerical information; combining the preprocessed character type information and numerical type information into a matrix, wherein the rows of the matrix represent the information category, and the columns of the matrix represent the 28 values after normalization of the information.
[0067] Step S120, processing the current power grid risk information through the risk prediction model to obtain predicted power grid risk information.
[0068] Among them, the risk prediction model can adopt the Generative Adversarial Network (GAN).
[0069] In the specific implementation, the risk prediction model can predict the information for the next 5 minutes based on the current power grid risk information. The specific method is to input the preprocessed power grid risk information into the generator of the trained generative adversarial network, and the generator generates the information 5 minutes later, that is, the predicted power grid risk information for the 5th minute in the future is generated.
[0070] refer to Figure 3 , is a schematic diagram of the network structure of the risk prediction model. The input data required for the model is the data obtained by splicing the pre-processed power grid risk information and the early warning data. Figure 3As shown in the figure, the risk prediction model is a generative adversarial network. The generator network structure includes 1 downsampling structure and 1 upsampling structure, wherein each downsampling structure includes 3 downconvolution layers, and the upsampling structure includes 3 deconvolution layers. Each upsampling result will be concatenated with the downsampled features, and after 3 deconvolution layers, the data will pass through the fully connected neural network 3 times to finally obtain the predicted power grid risk information. The form of the predicted power grid risk information is equivalent to one of the columns of the collected current power grid risk information.
[0071] Among them, the number of rows of warning data must be consistent with the number of rows of collected power grid risk information. Each row represents a type of severe weather. 1 means it will happen, and 0 means it will not happen. The order of warning data can be preset. After setting the order, the risk prediction model is trained so that the order during prediction is consistent with the preset order. When the number of rows of warning data is less than the number of rows of power grid risk information, the part exceeding the number of severe weather types is represented by 1, and the number of columns is 1. When warning one or several severe weather types, 1 is taken in the corresponding position, and 0 is taken in other non-corresponding positions.
[0072] For example, suppose the warning data is Figure 4a As shown in the figure, there are 5 types of severe weather, corresponding to 5 rows, and the collected power grid risk information has n rows. The number of rows of warning data is less than the number of rows of collected power grid risk information, and it is impossible to splice. Therefore, it is necessary to expand the warning data (the expanded part has no practical meaning, so all are represented by 1) so that the number of rows of the expanded warning data is consistent with the number of rows of the collected power grid risk information, so as to facilitate splicing. After splicing, the following can be obtained Figure 4b The spliced data are shown.
[0073] Step S130, respectively obtaining the first matching degree between each historical power grid risk information and the predicted power grid risk information, and determining the screened power grid risk information whose first matching degree meets the first preset condition from the multiple historical power grid risk information.
[0074] The first preset condition may be that the first matching degree is greater than a first threshold, and the first threshold may be 0.65.
[0075] In a specific implementation, after obtaining multiple historical power grid risk information from the database, each historical power grid risk information and predicted power grid risk information can be substituted into the matching degree calculation formula to obtain the first matching degree between each historical power grid risk information and the predicted power grid risk information, wherein the matching degree calculation formula is as follows:
[0076]
[0077] Among them, CosSim represents the first matching degree between historical power grid risk information and predicted power grid risk information, XG represents the predicted power grid risk information, X h represents historical power grid risk information, X h T It represents the transpose of the matrix composed of historical power grid risk information. The larger the value of the first matching degree CosSim is, the higher the matching degree between the historical power grid risk information and the predicted power grid risk information is.
[0078] After obtaining the first matching degree between each historical power grid risk information and the predicted power grid risk information, the first matching degree is matched with the first threshold value respectively. If there is no first matching degree greater than the first threshold value, that is, the first matching degree corresponding to each historical power grid risk information is less than or equal to the first threshold value, it means that there is no historical power grid risk information that matches the predicted power grid risk information. The predicted power grid risk information can be processed through the risk identification model to obtain the risk identification result of the power grid. If there is a first matching degree greater than the first threshold value, the historical power grid risk information with a first matching degree greater than the first threshold value is screened out from each historical power grid risk information as the screened power grid risk information.
[0079] More specifically, if the number P of historical power grid risk information with a first matching degree greater than the first threshold is greater than a preset value N (for example, N is 3), the first matching degree value may be sorted to screen out the top N historical power grid risk information with the highest first matching degree as the screened power grid risk information. If the number P of historical power grid risk information with a first matching degree greater than the first threshold is less than the preset value N, the P historical power grid risk information may be screened out as the screened power grid risk information.
[0080] Step S140, determining a risk identification result for the power grid based on the risk label corresponding to the screened risk information.
[0081] In a specific implementation, after obtaining the screened risk information, the risk identification result for the power grid can be further determined based on the comparison results between the risk labels corresponding to the historical power grid risk information included in the screened risk information.
[0082] More specifically, if the risk labels corresponding to the historical power grid risk information included in the screened risk information are different from each other, then the second matching degree between the screened power grid risk information and the predicted power grid risk information is obtained; based on the first matching degree and the second matching degree, the target power grid risk information is determined from the screened power grid risk information; based on the risk label corresponding to the target power grid risk information, the risk identification result for the power grid is determined. If the same risk label exists in the risk labels corresponding to the historical power grid risk information included in the screened risk information, the risk identification result of the power grid is determined based on the same risk label.
[0083] In the above-mentioned power grid operation risk identification method, the current power grid risk information is processed through the risk prediction model to obtain the predicted power grid risk information, and based on the first matching degree between each historical power grid risk information and the predicted power grid risk information, the screened power grid risk information with the first matching degree that meets the first preset condition is determined from multiple historical power grid risk information, and the risk identification result for the power grid is determined based on the risk label corresponding to the screened risk information. This method is aimed at real-time power grid operation risk identification under severe weather conditions, and determines the real-time power grid operation risk based on the matching of historical power grid risk information and predicted power grid risk information. It is simple and fast, and can improve the speed and accuracy of real-time power grid operation risk identification, and overcome the defects of traditional methods such as large amount of calculation and long time-consuming complete evaluation calculation.
[0084] In an exemplary embodiment, in the above step S140, based on the risk label corresponding to the risk information after screening, determining the risk identification result for the power grid includes:
[0085] Step S1401, when the risk labels corresponding to the historical power grid risk information included in the screened risk information are different from each other, respectively obtaining a second matching degree between each screened power grid risk information and the predicted power grid risk information;
[0086] Step S1402, determining target power grid risk information from the screened power grid risk information based on the first matching degree and the second matching degree;
[0087] Step S1403: determining a risk identification result for the power grid based on the risk label corresponding to the target power grid risk information.
[0088] The number of the screened power grid risk information may be one or more.
[0089] In a specific implementation, if the risk labels corresponding to the historical power grid risk information included in the screened risk information are different, the second matching degree between the historical power grid risk information and the predicted power grid risk information can be calculated through a pre-trained matching model, and the second matching degree can be matched with the second threshold.
[0090] If there is no second matching degree greater than the second threshold, that is, the second matching degrees corresponding to each screened power grid risk information are less than or equal to the second threshold, it means that there is no historical power grid risk information that matches the predicted power grid risk information. The predicted power grid risk information can be processed by the risk identification model to obtain the risk identification result of the power grid.
[0091] If there is a second matching degree greater than the second threshold, the product of the first matching degree and the second matching degree is calculated, and based on the product, the target power grid risk information is determined from the screened power grid risk information; the risk label corresponding to the target power grid risk information is determined as the risk label of the power grid.
[0092] In this embodiment, when the risk labels corresponding to the historical power grid risk information included in the screened risk information are different from each other, the screened power grid risk information is further screened by the first matching degree and the second matching degree to obtain the target power grid risk information, and the risk identification result for the power grid is determined based on the risk labels corresponding to the target power grid risk information, which can improve the accuracy of power grid risk identification.
[0093] In an exemplary embodiment, in the above step S1401, respectively obtaining the second matching degree between each filtered power grid risk information and the predicted power grid risk information includes:
[0094] Step S1401A, respectively splicing each screened power grid risk information with the predicted power grid risk information to obtain a plurality of spliced power grid risk information;
[0095] Step S1401B: input each piece of spliced power grid risk information into the trained matching model respectively, and obtain a second matching degree between each piece of screened power grid risk information and the predicted power grid risk information.
[0096] The matching model may be a convolutional neural network.
[0097] In the specific implementation, refer to Figure 5 , is a partial schematic diagram of the principle of the second matching degree acquisition step of an embodiment, such as Figure 5 As shown in the figure, taking any filtered power grid risk information as an example, the filtered power grid risk information is concatenated with the predicted power grid risk information, and then the concatenated power grid risk information is passed into the trained convolutional neural network to obtain a matching value as the second matching degree. The convolutional neural network uses 3 layers of effective one-dimensional convolution and 2 layers of fully connected layers, and finally outputs a value between [0,1].
[0098] In this embodiment, by using a matching model different from the first matching degree calculation method to determine the second matching degree, the matching result obtained is more accurate, so that the screened power grid risk information can be further screened according to the second matching degree, thereby improving the accuracy of subsequent risk identification results.
[0099] In an exemplary embodiment, in the above step S1402, based on the first matching degree and the second matching degree, determining the target power grid risk information from the screened power grid risk information includes:
[0100] Step S1402A, obtaining the product of the first matching degree and the second matching degree;
[0101] Step S1402B, determining the screened power grid risk information with the largest product from the screened power grid risk information as the target power grid risk information.
[0102] In a specific implementation, if there is a second matching degree greater than the second threshold, the product of the first matching degree and the second matching degree is calculated, and the screened grid risk information with the largest product is determined from the screened grid risk information as the target grid risk information.
[0103] In this embodiment, the screened power grid risk information with the largest product is determined from the screened power grid risk information by multiplying the first matching degree and the second matching degree, and used as the target power grid risk information. This ensures that the obtained target power grid risk information is the historical power grid risk information that best matches the predicted power grid risk information, thereby ensuring the accuracy of the risk identification results for the power grid determined based on the target power grid risk information.
[0104] In an exemplary embodiment, the above method also includes: when the first matching degree between each historical power grid risk information and the predicted power grid risk information does not meet the first preset condition, or when the second matching degree between each screened power grid risk information and the predicted power grid risk information does not meet the second preset condition, the predicted power grid risk information is input into the risk identification model to obtain the risk identification result of the power grid.
[0105] The second preset condition may be that the second matching degree is greater than a second threshold, and the second threshold may be 0.6.
[0106] Among them, the risk identification model can be a deep neural network.
[0107] In a specific implementation, if the first matching degrees between each historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, that is, each first matching degree is less than or equal to the first threshold, or the second matching degrees between each screened power grid risk information and the predicted power grid risk information do not meet the second preset condition, that is, each second matching degree is less than or equal to the second threshold, it indicates that there is no historical power grid risk information in the historical power grid risk information that matches the predicted power grid risk information. At this time, the predicted power grid risk information can be input into a deep neural network for risk identification, and processed by the deep neural network to obtain a risk identification result of the power grid.
[0108] In this embodiment, when the first matching degrees between each historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, or when the second matching degrees between each screened power grid risk information and the predicted power grid risk information do not meet the second preset condition, the predicted power grid risk information is input into the risk identification model to obtain the risk identification result of the power grid, thereby realizing risk identification under the condition that there is no historical power grid risk information that matches the predicted power grid risk information.
[0109] In an exemplary embodiment, in the above step S140, based on the risk label corresponding to the risk information after screening, determining the risk identification result for the power grid also includes:
[0110] Step S1404: when there are identical risk tags in the risk tags corresponding to the historical power grid risk information included in the screened risk information, determine the risk identification result of the power grid based on the identical risk tags.
[0111] In a specific implementation, when there are identical risk labels in the risk labels corresponding to the historical power grid risk information included in the risk information after screening, the identical risk labels can be determined as the risk labels of the power grid. More specifically, if there are multiple groups of identical risk labels, the risk label with the largest number of corresponding historical power grid risk information is determined as the risk label of the power grid.
[0112] For example, assume that the risk information after screening includes 5 historical power grid risk information, among which the risk labels of 3 historical power grid risk information are all the first risk labels, and the risk labels of 2 historical power grid risk information are all the second risk labels, then the first risk label is determined as the risk label of the power grid.
[0113] In this embodiment, when the same risk label exists in the risk labels corresponding to the historical power grid risk information included in the risk information after screening, it indicates that when power grid risk information matching the predicted power grid risk information appears, the power grid has a greater probability of being under the same risk label. Therefore, determining the risk identification result of the power grid based on the same risk label can improve the efficiency of risk identification while ensuring the accuracy of the risk identification result.
[0114] In one embodiment, in order to facilitate those skilled in the art to understand the embodiments of the present application, specific examples will be described below with reference to the accompanying drawings.
[0115] refer to Figure 6 , is a structural block diagram of a power grid operation risk identification system shown in an exemplary embodiment, including: a data acquisition module 610, a data processing module 620, a risk identification module 630 and a storage module 640, wherein:
[0116] The data collection module 610 is used to collect environmental information and power grid operation information.
[0117] The data processing module 620 is used to pre-process the collected environmental information and power grid operation information to facilitate subsequent applications.
[0118] The risk identification module 630 is used to quickly identify the risks of power grid operation.
[0119] The storage module 640 is used to store historical grid risk information and new grid risk information. In addition, the storage module can also store historical grid risk information and risk labels processed by the data processing module. At the same time, the storage module can also store predicted grid risk information and its risk labels processed by the data processing module.
[0120] The data acquisition module 610 includes an environmental information acquisition submodule and a power grid operation information acquisition submodule, which are used to collect environmental information and power grid operation information respectively.
[0121] The data processing module 620 is used to convert the collected information of different types into numerical values that meet the requirements, and then combine these numerical values into a set of matrices. The specific steps include:
[0122] Step 1: If the information is of character type, the information is assigned a value according to its name and a preset assignment method; if the information is of numerical type, the information is mapped to [0, 1] using a linear function normalization method.
[0123] Step 2: Combine all collected information into a matrix. The rows of the matrix represent the information categories, and the columns of the matrix represent the 28 values after normalization of the information.
[0124] Among them, the risk identification module 630 includes an information prediction submodule, a historical risk matching submodule and a risk assessment submodule.
[0125] The information prediction submodule is used to predict the power grid risk information in the next 5 minutes based on the currently collected power grid risk information. The specific method is to pass the information processed by the data processing module 620 into the trained risk prediction model (generative adversarial network), and the risk prediction model generates the power grid risk information 5 minutes later.
[0126] The historical risk matching submodule is used to match historical power grid risk information with predicted power grid risk information.
[0127] The risk assessment submodule is used to conduct risk assessment on the predicted power grid risk information that has not been successfully matched with the historical power grid risk information. The specific method is to input the predicted power grid risk information into the trained risk assessment model for risk identification.
[0128] Among them, Figure 3 As shown, the storage module stores historical power grid risk information and predicted power grid risk information in the form of only one column, and the number of rows is consistent with the number of rows of the collected power grid risk information. Each column of stored data has a corresponding label, which represents its risk identification result.
[0129] refer to Figure 7 , is a flowchart of the matching steps of the historical risk matching submodule, and the specific steps include:
[0130] Step 1: Take out multiple historical power grid risk information from the database in sequence, and then calculate the first matching degree CosSim between each historical power grid risk information and the predicted power grid risk information generated by the information prediction submodule.
[0131] Step 2: compare the first matching degree with the first threshold value 0.65. If the CosSim values corresponding to each historical power grid risk information are less than or equal to the first threshold value 0.65, it means that there is no historical power grid risk information matching the predicted power grid risk information, and proceed to step 8.
[0132] Step 3: If there is a first matching degree greater than the first threshold value 0.65, the historical power grid risk information with a CosSim value greater than 0.65 is selected as the screened power grid risk information. The number of historical power grid risk information included in the screened power grid risk information is less than or equal to a preset threshold value N (N may be 3).
[0133] Step 4: Determine whether there is the same risk label in the screened power grid risk information. If there are at least two historical power grid risk information with the same risk label, the predicted power grid risk information is classified as this type of risk, otherwise proceed to step 5.
[0134] Step 5: Concatenate each screened grid risk information with the predicted grid risk information, and then input it into the trained matching model (convolutional neural network) to obtain a second matching degree.
[0135] Step 6: Compare the second matching degree with the second threshold value 0.6. If the second matching degrees corresponding to the screened grid risk information are all less than or equal to the second threshold value 0.6, it means that there is no historical grid risk information matching the predicted grid risk information, and the process goes to step 8.
[0136] Step 7. If there is a second matching degree greater than the second threshold value of 0.6, determine the historical power grid risk information with a second matching degree greater than 0.6 from the screened power grid risk information, and calculate the product of the first matching degree and the second matching degree of these historical power grid risk information with a second matching degree greater than 0.6, and use the historical power grid risk information with the largest product as the target power grid risk information, and further determine the risk label corresponding to the target power grid risk information as the risk identification result for the power grid.
[0137] Step 8: Perform risk assessment on the predicted power grid risk information that has not been successfully matched with the historical power grid risk information. The specific method is to input the predicted power grid risk information into the trained risk assessment model for risk identification.
[0138] This application aims at the real-time operation risk assessment of the power grid under severe weather conditions. The risk assessment model based on historical data matching and deep neural network is simpler, can quickly assess the real-time operation risk of the power grid, and at the same time improves the accuracy of the real-time operation risk assessment of the power grid.
[0139] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0140] Based on the same inventive concept, the embodiment of the present application also provides a power grid operation risk identification device for implementing the power grid operation risk identification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power grid operation risk identification device embodiments provided below can refer to the limitations of the power grid operation risk identification method above, and will not be repeated here.
[0141] In one embodiment, Figure 8 As shown, a power grid operation risk identification device is provided, including: an acquisition module 810, a prediction module 820, a matching module 830 and an identification module 840, wherein:
[0142] The acquisition module 810 is used to acquire the current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label;
[0143] The prediction module 820 is used to process the current power grid risk information through the risk prediction model to obtain predicted power grid risk information;
[0144] A matching module 830 is used to obtain a first matching degree between each historical power grid risk information and the predicted power grid risk information, and determine the screened power grid risk information whose first matching degree meets the first preset condition from the multiple historical power grid risk information;
[0145] The identification module 840 is used to determine the risk identification result for the power grid based on the risk label corresponding to the screened risk information.
[0146] In one embodiment, the identification module 840 includes:
[0147] An acquisition submodule, used for respectively acquiring a second matching degree between each piece of filtered grid risk information and the predicted grid risk information when the risk labels corresponding to the historical grid risk information included in the filtered risk information are different from each other;
[0148] A determination submodule, configured to determine target power grid risk information from the screened power grid risk information based on the first matching degree and the second matching degree;
[0149] The identification submodule is used to determine the risk identification result for the power grid based on the risk label corresponding to the target power grid risk information.
[0150] In one embodiment, the acquisition submodule is further used to splice each screened power grid risk information with the predicted power grid risk information to obtain multiple spliced power grid risk information; and input each spliced power grid risk information into the trained matching model to obtain a second matching degree between each screened power grid risk information and the predicted power grid risk information.
[0151] In one embodiment, the determination submodule is used to obtain the product of the first matching degree and the second matching degree; and determine the screened grid risk information with the largest product from the screened grid risk information as the target grid risk information.
[0152] In one embodiment, the above-mentioned identification module 840 is also used to input the predicted power grid risk information into the risk identification model to obtain the risk identification result of the power grid when the first matching degrees between each historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, or when the second matching degrees between each screened power grid risk information and the predicted power grid risk information do not meet the second preset condition.
[0153] In one embodiment, the identification module 840 is further used to determine the risk identification result of the power grid based on the same risk label when there is an identical risk label in the risk labels corresponding to the historical power grid risk information included in the filtered risk information.
[0154] Each module in the above-mentioned power grid operation risk identification device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0155] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for identifying power grid operation risks is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0156] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0157] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0158] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0159] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0161] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0162] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for identifying power grid operation risks, characterized in that: The method comprises: Acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label; Processing the current power grid risk information through a risk prediction model to obtain predicted power grid risk information; Respectively obtain a first matching degree between each piece of historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, screened power grid risk information whose first matching degree meets a first preset condition; Based on the risk label corresponding to the screened power grid risk information, determine the risk identification result for the power grid; specifically including: when the risk labels corresponding to the historical power grid risk information included in the screened power grid risk information are different from each other, respectively splice each screened power grid risk information with the predicted power grid risk information to obtain a plurality of spliced power grid risk information; respectively input each spliced power grid risk information into the trained matching model to obtain the second matching degree between each screened power grid risk information and the predicted power grid risk information; from the screened power grid risk information, determine the screened power grid risk information with the largest product of the first matching degree and the second matching degree as the target power grid risk information; based on the risk label corresponding to the target power grid risk information, determine the risk identification result for the power grid; The method also includes: when the first matching degrees between the various historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, or when the second matching degrees between the various screened power grid risk information and the predicted power grid risk information do not meet the second preset condition, the predicted power grid risk information is input into a risk identification model to obtain a risk identification result of the power grid.
2. The method according to claim 1, characterized in that The first preset condition is that the first matching degree is greater than a first threshold; The step of determining, from the plurality of historical power grid risk information, screened power grid risk information having a first matching degree that meets a first preset condition comprises: If the number of historical power grid risk information with a first matching degree greater than a first threshold among the plurality of historical power grid risk information is greater than a preset value, the historical power grid risk information is sorted according to the first matching degree, and the top N historical power grid risk information with the highest first matching degree is selected as the selected power grid risk information; N is equal to the preset value; If the number of historical power grid risk information with a first matching degree greater than the first threshold in the multiple historical power grid risk information is less than the preset value, all historical power grid risk information with a first matching degree greater than the first threshold will be screened out as the screened power grid risk information.
3. The method according to claim 1, characterized in that After obtaining the current grid risk information of the grid, the method further includes: Preprocessing the current power grid risk information to obtain preprocessed power grid risk information; The current power grid risk information is processed by the risk prediction model to obtain predicted power grid risk information, including: The preprocessed power grid risk information is processed by the risk prediction model to obtain the predicted power grid risk information.
4. The method according to claim 3, characterized in that: The preprocessing of the current power grid risk information to obtain the preprocessed power grid risk information includes: Determining the type of information in the current power grid risk information; For the character-type information in the current power grid risk information, assign a value to the character-type information according to the name of the information and a preset assignment method to obtain preprocessed character-type information; For the numerical information in the current power grid risk information, a linear function normalization method is used to map the information to the range [0, 1] to obtain pre-processed numerical information; The preprocessed character information and the preprocessed numerical information are combined into a matrix to obtain the preprocessed power grid risk information.
5. The method according to claim 1, characterized in that The step of determining a risk identification result for the power grid based on the risk label corresponding to the screened power grid risk information further includes: In the case that identical risk labels exist in the risk labels corresponding to the historical power grid risk information included in the screened power grid risk information, a risk identification result of the power grid is determined based on the identical risk labels.
6. The method according to claim 5, characterized in that The method further comprises: If there are multiple groups of the same risk labels, the risk label corresponding to the largest number of historical power grid risk information is determined as the risk label of the power grid.
7. A power grid operation risk identification device, characterized in that: The device comprises: An acquisition module is used to acquire current grid risk information and multiple historical grid risk information of the grid; each historical grid risk information has a corresponding risk label; A prediction module, used to process the current power grid risk information through a risk prediction model to obtain predicted power grid risk information; A matching module, used to respectively obtain a first matching degree between each historical power grid risk information and the predicted power grid risk information, and determine, from the plurality of historical power grid risk information, the screened power grid risk information whose first matching degree meets the first preset condition; An identification module, configured to determine a risk identification result for the power grid based on a risk label corresponding to the screened power grid risk information; The identification module is also used for, when the risk labels corresponding to the historical power grid risk information included in the screened power grid risk information are different from each other, respectively splicing each screened power grid risk information with the predicted power grid risk information to obtain a plurality of spliced power grid risk information; respectively inputting each spliced power grid risk information into the trained matching model to obtain the second matching degree between each screened power grid risk information and the predicted power grid risk information; from the screened power grid risk information, determining the screened power grid risk information with the largest product of the first matching degree and the second matching degree as the target power grid risk information; and determining the risk identification result for the power grid based on the risk label corresponding to the target power grid risk information; The identification module is also used to input the predicted power grid risk information into the risk identification model to obtain the risk identification result of the power grid when the first matching degrees between the various historical power grid risk information and the predicted power grid risk information do not meet the first preset condition, or when the second matching degrees between the various screened power grid risk information and the predicted power grid risk information do not meet the second preset condition.
8. 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 steps of the method for identifying power grid operation risks described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for identifying power grid operation risks described in any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for identifying power grid operation risks described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Intelligent data management and risk control system based on artificial intelligence technology
CN111242160A
Learning model for competency based performance
US8628331B1
