Graph convolutional neural network-based power grid model data problem classification method and system
Through the grid model data classification method based on graph convolution neural network, unqualified points in the grid model data are integrated, and problem classification is used to use graph structure and node characteristics to solve the problem of dispersed and low efficiency of grid state estimation analysis results, and realizes the problem of dispersed grid state estimation analysis results. Fast and accurate problem location.
Patent Information
- Application Number
- CN202411034042.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In the prior art, the analysis results of the unqualified points of the power grid state estimation are dispersed and the degree of integration is low, and the problem positioning efficiency and accuracy are low, especially the parameter problems are difficult to quickly and accurately locate.
Using the grid model data problem classification method based on graph convolution neural network, the grid model problem classification model is constructed and the graph convolution neural network problem classification model is integrated, and the problem classification is classified using graph structure data and node characteristics. , combine automatic labeling and manual labeling to optimize the model to improve accuracy.
It realizes the rapid and accurate classification and positioning of power grid model data problems, improves problem integration and positioning efficiency, and solves the problems of dispersed and low efficiency of analysis results in the existing technology.
Smart Images

Figure CN119004203A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of neural networks and relates to a method and system for classifying power grid model data problems based on graph convolutional neural networks. Background Art
[0002] As the scale of the power grid continues to expand, the scale of power grid computing also expands, which increases the difficulty of model data governance. Due to the large number of problems with the low-voltage side model data (mainly including topology, measurement, parameters, etc.), it cannot meet the implementation requirements of subsequent applications. At present, the analysis of unqualified points in state estimation mainly relies on the results of state estimation model data verification and bus balance verification. These results are relatively scattered and not highly integrated. They also need to rely on manual analysis and reasoning of related model data. The efficiency and accuracy of problem location are low, and some problems (such as parameter problems) are difficult to locate quickly and accurately by manual analysis. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for classifying power grid model data problems based on graph convolutional neural networks, aiming to solve the problems in the prior art that the analysis results of unqualified points in state estimation are relatively scattered, the degree of integration is not high, and the efficiency and accuracy of problem location are low.
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] The present invention proposes a method for classifying power grid model data problems based on a graph convolutional neural network, comprising:
[0006] Acquire power grid model data to be screened;
[0007] Input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data;
[0008] Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps:
[0009] A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed;
[0010] Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification;
[0011] The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model.
[0012] Preferably, the subgraph is constructed based on the measurement unqualified points in the power grid model data, specifically:
[0013] Collect power grid model data, screen the data problems existing in the power grid model data, and obtain unqualified measurement points; collect unqualified points, perform topological search starting from the unqualified point equipment, set the number of layers n_st of adjacent plants and stations, retain all equipment of the adjacent n_st layers of plants and stations, and form a subgraph; and save the subgraph and equipment parameter measurement information to a file; at the same time, traverse all unqualified points until all unqualified points are traversed to form graph structure data for neural network training;
[0014] The power grid model data includes: steady-state parameters of power grid equipment, topological connection relationships and measurement data of equipment during operation; unqualified points of state estimation include: topological problems, measurement problems and parameter problems of power grid model data.
[0015] Preferably, the construction of a graph convolutional neural network problem classification model is specifically as follows:
[0016] The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs of subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; the activation function is the relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
[0017] Preferably, the problem nodes existing in the power grid model data are labeled by type, and the parameter problem nodes in the subgraph are screened out as training samples for problem classification, specifically:
[0018] Problem node types include normal nodes, topology problem nodes, measurement problem nodes and parameter problem nodes; type labeling of problem nodes in power grid model data includes: manual labeling and automatic labeling; the manual labeling is to label the problem nodes in the power grid model based on on-site operation and maintenance experience to generate training samples; the manual labeling information is saved in the label file; the automatic labeling is: search according to the plant station, if a plant station and the surrounding plants and stations have no unqualified points, then the model data is automatically modified at the plant station, the normal model data is changed to abnormal, and the model data problem is generated; the modification of model data includes deleting some equipment, changing the equipment connection point, generating topology problems; modifying equipment measurement or measurement quality bit, generating measurement problems; modifying equipment parameters, generating parameter problems; recording the original parameters and the modified problem parameters, the original parameters are used as the initial values for subsequent physical information neural network training; performing state estimation calculation on the modified section, if a deviation problem occurs near the modification point, the section is used as a problem classification training sample, and the subgraph file and label file are automatically saved.
[0019] Preferably, the training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically:
[0020] The Adam optimizer is used to optimize the parameters of the graph convolutional neural network problem classification model. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the output result of the graph convolutional neural network problem classification model and the label information, specifically:
[0021]
[0022] Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample;
[0023] The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
[0024] The present invention proposes a grid model data problem classification system based on graph convolutional neural network, comprising:
[0025] A data acquisition module, used to acquire the power grid model data to be screened;
[0026] The data processing module is used to input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data;
[0027] Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps:
[0028] A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed;
[0029] Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification;
[0030] The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model.
[0031] Preferably, the construction of a graph convolutional neural network problem classification model is specifically as follows:
[0032] The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs of subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; the activation function is the relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
[0033] Preferably, the training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically:
[0034] The Adam optimizer is used to optimize the neural network parameters. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the neural network output and the label information. Specifically:
[0035]
[0036] Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample;
[0037] The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
[0038] A terminal device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of a method for classifying power grid model data problems based on a graph convolutional neural network are implemented.
[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for classifying power grid model data problems based on a graph convolutional neural network.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The present invention proposes a method for classifying problems of power grid model data based on graph convolutional neural network, which locates problems of equipment near unqualified measurement points, constructs subgraphs for neural network training, and integrates the originally scattered unqualified points into one or more subgraphs so that the neural network can capture the potential relationship and context information between these points. The parameter problem nodes in the subgraph are screened out as training samples for problem classification. Accurate type annotation helps to provide a clear learning goal for the neural network and improve the accuracy of the model; based on the training samples of problem classification, a pre-trained graph convolutional neural network problem classification model is obtained, and the model is optimized through a large number of training samples, which can enable the model to more accurately identify and classify problems; based on the pre-trained graph convolutional neural network problem classification model, the power grid model data is screened to obtain different types of problem data, and the pre-trained model is used to comprehensively screen the power grid model data, so that different types of problem data can be quickly and accurately obtained, and the problem can be centralized and efficiently located. Therefore, the power grid model data problem classification proposed by the present invention can solve the problems existing in the prior art.
[0042] The present invention proposes a grid model data problem classification system based on graph convolutional neural network, which divides the system into data acquisition module and data processing module to obtain different types of problem data, and finally realizes grid model data problem classification. The modularization concept is adopted to make each module independent of each other, which is convenient for unified management of each module. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 It is a flow chart of the method for classifying power grid model data problems based on graph convolutional neural network of the present invention.
[0045] Figure 2 It is a schematic diagram of the model data processing flow of the present invention.
[0046] Figure 3 It is a single-line diagram of a 5-node system of the present invention.
[0047] Figure 4 It is a schematic diagram of the structure of a 5-node system diagram of the present invention.
[0048] Figure 5 It is a schematic diagram of the 5-node features and node labels of the present invention.
[0049] Figure 6 This is a diagram of the power grid model data problem classification system based on graph convolutional neural network of the present invention.
[0050] Figure 7 The figure is a schematic diagram of the structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0052] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0054] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0055] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0056] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0057] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0058] The present invention proposes a method for classifying power grid model data problems based on graph convolutional neural network, such as Figure 1 As shown, including:
[0059] S1. Obtaining power grid model data to be screened;
[0060] S2, inputting the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data;
[0061] Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps:
[0062] S201, constructing a subgraph based on the measurement unqualified points in the power grid model data, and constructing a graph convolutional neural network problem classification model;
[0063] The sub-graph is constructed based on the measurement failure points in the power grid model data, specifically:
[0064] Collect power grid model data, screen the data problems existing in the power grid model data, and obtain unqualified measurement points; collect unqualified points, perform topological search starting from the unqualified point equipment, set the number of layers n_st of adjacent plants and stations, retain all equipment of the adjacent n_st layers of plants and stations, and form a subgraph; and save the subgraph and equipment parameter measurement information to a file; at the same time, traverse all unqualified points until all unqualified points are traversed to form graph structure data for neural network training;
[0065] The power grid model data includes: steady-state parameters of power grid equipment, topological connection relationships and measurement data of equipment during operation; unqualified points of state estimation include: topological problems, measurement problems and parameter problems of power grid model data.
[0066] The construction of the graph convolutional neural network problem classification model is specifically as follows:
[0067] The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs of subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; the activation function is the relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
[0068] S202, marking the types of problem nodes in the power grid model data, and selecting the parameter problem nodes in the subgraph as training samples for problem classification;
[0069] The problem nodes in the power grid model data are labeled by type, and the parameter problem nodes in the subgraph are selected as training samples for problem classification, specifically:
[0070] Problem node types include normal nodes, topology problem nodes, measurement problem nodes and parameter problem nodes; type labeling of problem nodes in power grid model data includes: manual labeling and automatic labeling; the manual labeling is to label the problem nodes in the power grid model based on on-site operation and maintenance experience to generate training samples; the manual labeling information is saved in the label file; the automatic labeling is: search according to the plant station, if a plant station and the surrounding plants and stations have no unqualified points, then the model data is automatically modified at the plant station, the normal model data is changed to abnormal, and the model data problem is generated; the modification of model data includes deleting some equipment, changing the equipment connection point, generating topology problems; modifying equipment measurement or measurement quality bit, generating measurement problems; modifying equipment parameters, generating parameter problems; recording the original parameters and the modified problem parameters, the original parameters are used as the initial values for subsequent physical information neural network training; performing state estimation calculation on the modified section, if a deviation problem occurs near the modification point, the section is used as a problem classification training sample, and the subgraph file and label file are automatically saved.
[0071] S203, training the graph convolutional neural network question classification model based on the training samples of question classification, and obtaining a pre-trained graph convolutional neural network question classification model;
[0072] The training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically:
[0073] The Adam optimizer is used to optimize the parameters of the graph convolutional neural network problem classification model. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the output result of the graph convolutional neural network problem classification model and the label information, specifically:
[0074]
[0075] Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample;
[0076] The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
[0077] The following is a detailed description of a method for classifying power grid model data problems based on graph convolutional neural networks, including: diagnosing problems of equipment near unqualified points of state estimation measurement (points where the measured value and the estimated value have a large deviation), requiring local network topology and parameter information near the unqualified point, centering on the unqualified point of state estimation, searching outward according to a given maximum depth, and forming a subgraph for neural network training; based on on-site operation and maintenance experience and automatic problem generation, the nodes with problems in the power grid model are labeled by type and training samples are generated. A graph neural network model for intelligent classification of power grid model data problems is established, and the graph neural network model is trained using a supervised learning method to divide the nodes into four categories: normal nodes, topology problem nodes, measurement problem nodes, and parameter problem nodes.
[0078] See also Figure 2 , Figure 3 , Figure 4 and Figure 5 , state estimation only diagnoses problems for equipment near measurement failure points (points where the measured value deviates greatly from the estimated value). Therefore, only the local network topology, parameters and measurement information near the failure point are needed. With the state estimation failure point as the center, search outward at a given depth to form graph structure data for neural network training.
[0079] Node characteristics include device ID, voltage level ID, device parameters, device measurements and measurement estimates. Device parameters include resistance, reactance, susceptance, tap type, rated voltage, rated capacity, etc., and device measurements include active power, reactive power, voltage, gear, etc.
[0080] Node labels are divided into four categories: normal nodes, topology problem nodes, measurement problem nodes, and parameter problem nodes.
[0081] The type labeling of problem nodes includes: manual labeling and automatic labeling; manual labeling is to label the type of nodes with problems in the power grid model based on on-site operation and maintenance experience to generate training samples. The manual labeling information is saved in the label file, and the format is shown in Table 1:
[0082] Table 1
[0083] Node ID Question Type Problem node 1 number Parameter Problem Problem node 2 number Measurement issues … …
[0084] Automatic labeling: Search by plant station. If there are no unqualified points in a plant station and the surrounding plants stations, the model data will be automatically modified in the plant station, and the normal model data will be changed to abnormal, generating model data problems; the modification of model data includes deleting some equipment, changing equipment connection points, generating topological problems; modifying equipment measurement or measurement quality bits, generating measurement problems; modifying equipment parameters, generating parameter problems; recording original parameters and modified problem parameters, and the original parameters are used as the initial values for subsequent physical information neural network training; performing state estimation calculations on the modified section, and if a large deviation problem occurs near the modified location, the section is used as a problem classification training sample, and the sub-graph file and label file are automatically saved. By automatically generating samples, the problem of insufficient actual samples is solved.
[0085] The graph convolutional neural network problem classification model suitable for graph node classification tasks is constructed as follows:
[0086] The dimension of the node feature vector is × the number of nodes; the dimension of the output vector is: the node classification dimension × the number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as an activation function and a classifier; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs for subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted previously; the activation function is the relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
[0087] SAGEConv is a convolution operation used in graph neural networks (GNNs). It is derived from an algorithm called GraphSAGE, which is designed to effectively learn node features on graph data. The core idea of SAGEConv is to update the feature representation of each node by aggregating information from neighboring nodes.
[0088] Multiple SAGEConv graph convolution modules are stacked to build a multi-layer graph neural network (more layers means more neighbor information can be accessed) to generate vector representations of nodes. According to experience, a certain failure is closely related to model parameter problems of nearby devices within a range of less than three branches, so three graph convolutions are performed here.
[0089] In the fully connected layer, each node is connected to all nodes in the previous layer to integrate the features extracted previously.
[0090] In order to train deep neural networks, an activation function (relu) is needed that looks and behaves like a linear function, but is actually a nonlinear function that allows learning complex relationships in the data. The function must also provide more sensitive activation and input and avoid saturation.
[0091] The SoftMax classifier is a model that predicts discrete output probabilities based on input features and is suitable for multi-classification prediction problems.
[0092] Based on the training samples of question classification, the graph convolutional neural network question classification model is trained to obtain the pre-trained graph convolutional neural network question classification model. The Adam optimizer is used to optimize the parameters of the graph convolutional neural network question classification model; the cross entropy loss function CrossEntropyLoss is used to calculate the deviation between the output result of the graph convolutional neural network question classification model and the label information, specifically:
[0093]
[0094] Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample;
[0095] In order to improve performance, the training set is processed in batches. Each batch contains 64 sets of test data. Each set of data is input into the neural network for parallel calculation at the same time. The output results and labels are used for loss calculation, and finally the average loss of the 64 sets of data is calculated. When the average loss value is less than the threshold value (according to experience, the threshold value can be equal to 10), the training is stopped.
[0096] Example 2
[0097] See also Figure 6 The present invention proposes a power grid model data problem classification system based on graph convolutional neural network, comprising:
[0098] A data acquisition module, used to acquire the power grid model data to be screened;
[0099] The data processing module is used to input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data;
[0100] Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps:
[0101] A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed;
[0102] The sub-graph is constructed based on the measurement failure points in the power grid model data, specifically:
[0103] Collect power grid model data, screen the data problems existing in the power grid model data, and obtain unqualified measurement points; collect unqualified points, perform topological search starting from the unqualified point equipment, set the number of layers n_st of adjacent plants and stations, retain all equipment of the adjacent n_st layers of plants and stations, and form a subgraph; and save the subgraph and equipment parameter measurement information to a file; at the same time, traverse all unqualified points until all unqualified points are traversed to form graph structure data for neural network training;
[0104] The power grid model data includes: steady-state parameters of power grid equipment, topological connection relationships and measurement data of equipment during operation; unqualified points of state estimation include: topological problems, measurement problems and parameter problems of power grid model data.
[0105] The construction of the graph convolutional neural network problem classification model is specifically as follows:
[0106] The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs of subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; the activation function is the relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
[0107] Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification;
[0108] The problem nodes in the power grid model data are labeled by type, and the parameter problem nodes in the subgraph are selected as training samples for problem classification, specifically:
[0109] Problem node types include normal nodes, topology problem nodes, measurement problem nodes and parameter problem nodes; type labeling of problem nodes in power grid model data includes: manual labeling and automatic labeling; the manual labeling is to label the problem nodes in the power grid model based on on-site operation and maintenance experience to generate training samples; the manual labeling information is saved in the label file; the automatic labeling is: search according to the plant station, if a plant station and the surrounding plants and stations have no unqualified points, then the model data is automatically modified at the plant station, the normal model data is changed to abnormal, and the model data problem is generated; the modification of model data includes deleting some equipment, changing the equipment connection point, generating topology problems; modifying equipment measurement or measurement quality bit, generating measurement problems; modifying equipment parameters, generating parameter problems; recording the original parameters and the modified problem parameters, the original parameters are used as the initial values for subsequent physical information neural network training; performing state estimation calculation on the modified section, if a deviation problem occurs near the modification point, the section is used as a problem classification training sample, and the subgraph file and label file are automatically saved.
[0110] The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model;
[0111] The training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically:
[0112] The Adam optimizer is used to optimize the parameters of the graph convolutional neural network problem classification model. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the output result of the graph convolutional neural network problem classification model and the label information, specifically:
[0113]
[0114] Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample;
[0115] The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
[0116] Example 3
[0117] See also Figure 7As shown, the present invention also provides an electronic device 100 for a power grid model data problem classification method based on a graph convolutional neural network; the electronic device 100 includes a memory 101, at least one processor 102, a computer program 103 stored in the memory 101 and executable on the at least one processor 102, and at least one communication bus 104.
[0118] The memory 101 can be used to store the computer program 103, and the processor 102 implements the steps of the method for classifying power grid model data problems based on graph convolutional neural network described in Example 1 by running or executing the computer program stored in the memory 101 and calling the data stored in the memory 101. The memory 101 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 100, etc. In addition, the memory 101 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0119] The at least one processor 102 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 102 may be a microprocessor or any conventional processor, etc. The processor 102 is the control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device 100.
[0120] The memory 101 in the electronic device 100 stores a plurality of instructions to implement a method for classifying power grid model data problems based on a graph convolutional neural network, and the processor 102 can execute the plurality of instructions to implement:
[0121] Acquire power grid model data to be screened;
[0122] Input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data;
[0123] Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps:
[0124] A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed;
[0125] Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification;
[0126] The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model.
[0127] Example 4
[0128] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory).
[0129] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0130] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for classifying power grid model data problems based on graph convolutional neural network, characterized in that: include: Acquire power grid model data to be screened; Input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data; Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps: A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed; Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification; The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model.
2. The method for classifying power grid model data problems based on graph convolutional neural network according to claim 1 is characterized in that: The sub-graph is constructed based on the measurement failure points in the power grid model data, specifically: Collect power grid model data, screen the data problems in the power grid model data, and obtain unqualified measurement points; collect unqualified points, perform topological search starting from the unqualified point equipment, set the number of layers n_st of adjacent plants and stations, retain all equipment in the adjacent n_st layers of plants and stations, and form a subgraph; and save the subgraph and equipment parameter measurement information to a file; at the same time, traverse all unqualified points until all unqualified points are traversed to form graph structure data for neural network training; The power grid model data includes: steady-state parameters of power grid equipment, topological connection relationships and measurement data of equipment during operation; unqualified points of state estimation include: topological problems, measurement problems and parameter problems of power grid model data.
3. The method for classifying power grid model data problems based on graph convolutional neural network according to claim 1 is characterized in that: The construction of the graph convolutional neural network problem classification model is specifically as follows: The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs for subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; The activation function is a relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
4. The method for classifying power grid model data problems based on graph convolutional neural network according to claim 1, characterized in that: The problem nodes in the power grid model data are labeled by type, and the parameter problem nodes in the subgraph are selected as training samples for problem classification, specifically: Problem node types include normal nodes, topology problem nodes, measurement problem nodes and parameter problem nodes; type labeling of problem nodes in power grid model data includes: manual labeling and automatic labeling; the manual labeling is to label the problem nodes in the power grid model based on on-site operation and maintenance experience to generate training samples; the manual labeling information is saved in the label file; the automatic labeling is: search according to the plant station, if a plant station and the surrounding plants and stations have no unqualified points, then the model data is automatically modified at the plant station, the normal model data is changed to abnormal, and the model data problem is generated; the modification of model data includes deleting some equipment, changing the equipment connection point, generating topology problems; modifying equipment measurement or measurement quality bit, generating measurement problems; modifying equipment parameters, generating parameter problems; recording the original parameters and the modified problem parameters, the original parameters are used as the initial values for subsequent physical information neural network training; performing state estimation calculation on the modified section, if a deviation problem occurs near the modification point, the section is used as a problem classification training sample, and the subgraph file and label file are automatically saved.
5. The method for classifying power grid model data problems based on graph convolutional neural network according to claim 1, characterized in that: The training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically: The Adam optimizer is used to optimize the parameters of the graph convolutional neural network problem classification model. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the output result of the graph convolutional neural network problem classification model and the label information, specifically: Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample; The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
6. A power grid model data problem classification system based on graph convolutional neural network, characterized in that: include: A data acquisition module, used to acquire the power grid model data to be screened; The data processing module is used to input the power grid model data to be screened into the pre-trained graph convolutional neural network problem classification model to obtain different types of problem data; Among them, the pre-trained graph convolutional neural network problem classification model is obtained through the following steps: A subgraph is constructed based on the measurement failure points in the power grid model data, and a graph convolutional neural network problem classification model is constructed; Label the types of problem nodes in the power grid model data, and select the parameter problem nodes in the subgraph as training samples for problem classification; The graph convolutional neural network question classification model is trained based on the training samples of question classification to obtain a pre-trained graph convolutional neural network question classification model.
7. The power grid model data problem classification system based on graph convolutional neural network according to claim 6 is characterized in that: The construction of the graph convolutional neural network problem classification model is specifically as follows: The input dimension of the graph convolutional neural network problem classification model is: node feature vector dimension × number of nodes; the output vector dimension is: node classification dimension × number of nodes; the graph convolutional neural network problem classification model includes a graph embedding layer, three convolutional layers and pooling layers, three fully connected layers, as well as activation functions and classifiers; the graph embedding layer uses the feature representation of nodes and edges on the graph to capture the relationships and attributes in the graph structure data, converts the graph structure data into vectors of other dimensions, and uses these vectors as inputs for subsequent convolutional layers; the convolutional layer is SAGEConv, and multiple SAGEConv graph convolution modules are stacked to construct a multi-layer graph neural network to generate vector representations of nodes; and the number of nodes in the last fully connected layer is reduced through the pooling layer; the fully connected layer connects each node to all nodes in the previous layer to integrate the features extracted from the previous edge; The activation function is a relu function; the classifier is a SoftMax classifier, which is a model that predicts discrete output probabilities based on input features.
8. The power grid model data problem classification system based on graph convolutional neural network according to claim 6 is characterized in that: The training samples based on question classification are used to train the graph convolutional neural network question classification model to obtain a pre-trained graph convolutional neural network question classification model, specifically: The Adam optimizer is used to optimize the neural network parameters. The cross-entropy loss function CrossEntropyLoss is used to calculate the deviation between the neural network output and the label information. Specifically: Where N represents the number of samples, y i represents the true label of the i-th sample, represents the predicted probability of the i-th sample; The total deviation value of the obtained test data is divided by the total number of test data to obtain the average loss; when the average loss value is less than the preset threshold, the training is stopped.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for classifying power grid model data problems based on graph convolutional neural network as described in any one of claims 1 to 5 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for classifying power grid model data problems based on a graph convolutional neural network as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and device for dealing with power grid state estimation problems
CN103617571A
Identification method and system for bad data of power system
CN110298369A
Power distribution network state evaluation method and system based on graph convolutional network
CN113762625A
Electric power equipment fault intelligent prediction method based on graph convolutional neural network
CN114266301A
Target node classification method, system and equipment in graph structure data and medium
CN115718826A
