A method and system for intelligent monitoring of power grid measurement data quality
By constructing knowledge graphs and hybrid models, the problems of cross-section and low quality of power grid measurement data are solved, efficient monitoring and processing of data is achieved, and the intelligence and adaptability of the system are improved.
Patent Information
- Application Number
- CN202411096869.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The power grid measurement data has insufficient sectionalization and systematic structure, which results in the data not being fully connected, the service scope being uncertain, and the data quality being low, resulting in a long waiting period for services.
The resource description framework RDF is used to build a knowledge graph, obtain multi-source data and process missing values, redundant data and outliers, and combine GCN, GAT and R-GCN layers to build a hybrid model to achieve data consistency and efficient monitoring.
It achieves efficient monitoring and processing of power grid measurement data, improves data consistency, accuracy and real-time performance, and enhances the intelligence and adaptability of the system.
Smart Images

Figure CN118626573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data quality inspection, and in particular to a method and system for intelligently monitoring power grid measurement data quality. Background Art
[0002] At present, the power system measurement data service center has taken over a variety of measurement data, completed the construction and release of related services, and supported the business applications of multiple departments such as the Development Department, Marketing Department, and Material Department. However, in the application process, the following problems have gradually been exposed: First, the sectional and systematic form of measurement data is slightly insufficient, and the relationship between measurement data and measurement data, between equipment entities and equipment entities, and the scope of measurement services have formed a sectional and systematic structure, resulting in problems such as the inability to fully connect the data of each node and the inability to determine the scope of the service; second, the quality of measurement data is low. Due to errors in manual work, data is lost, wrong or repeated. There are still major problems, which cannot meet the needs of rapid construction and rapid support for applications, resulting in a long waiting period for business. Summary of the invention
[0003] In order to solve the above problems, the purpose of the present invention is to provide a method and system for intelligent monitoring of power grid measurement data quality, which can realize efficient monitoring and processing of power grid measurement data, and has good data consistency, high monitoring accuracy, strong real-time performance and strong system adaptability.
[0004] To achieve the above object, the present invention adopts the following technical solutions:
[0005] A method for intelligently monitoring the quality of power grid measurement data comprises the following steps:
[0006] S1: Define entities and relationships in the power grid system and build a knowledge graph using the resource description framework RDF;
[0007] S2: Obtain multi-source data of the power grid system, including measurement data, topology, equipment information, and environmental data, and process missing values, redundant data, and outliers. Convert data from different data sources into a unified format and combine it with the knowledge graph. Then, based on the semantic fusion of the knowledge graph, eliminate data conflicts and redundancies and achieve data consistency.
[0008] S3: Combine GCN, GAT and R-GCN layers to build a multi-layer hybrid model, extract semantic features from the knowledge graph, train the hybrid model, and obtain a data quality monitoring model;
[0009] The multi-layer hybrid model includes an input layer, a multi-layer hybrid neural network, a merging layer, a fully connected layer and an output layer, as follows:
[0010] Input layer: Input the node feature matrix X and adjacency matrix A from the knowledge graph;
[0011] The multi-layer hybrid neural network includes three hidden layers, as follows:
[0012] The first layer uses the GCN layer to extract features from the initial input:
[0013] ;
[0014] in, is the adjacency matrix with self-connection added, is the adjacency matrix between node i and its neighbor node j; I is the self-connection matrix; is the weight matrix of GCN; is the activation function; N(i) is the set of neighbor nodes directly connected to node i; is the initial hidden state vector of node j;
[0015] The second layer uses the GAT layer for weighted aggregation:
[0016] ;
[0017] in, is the attention weight of nodes i and j; is the attention score of nodes i and j; a is the GAT projection vector; is the hidden state vector of node i in layer 1; is the hidden state vector of node j in layer 1; Indicates a connection operation; , and is the activation function; is the weight matrix of the GAT layer;
[0018] Finally, the R-GCN layer is used to extract the relationship-dependent features of the nodes:
[0019]
[0020] Where R is a set of relations, is the set of neighbor nodes of node i under relation r, is the normalized matrix, is the weight matrix of relation r, is the autoregressive coefficient, is the hidden state vector of node i in layer 2; Is a node Hidden state vector at layer 2;
[0021] Merging layer: Merge the output of each layer to enrich the representation capability;
[0022] ;
[0023] in, They are the outputs of the corresponding layers of the multi-layer hybrid neural network;
[0024] Fully connected layer: further process the merged features;
[0025] ;
[0026] in, and They are the weights and biases of the fully connected layer respectively;
[0027] Output layer: classify or regress nodes and perform final data quality detection;
[0028] S4: Obtain real-time power grid measurement data through data streams, extract real-time features based on knowledge graphs, and use data quality monitoring models to predict and monitor real-time data;
[0029] S5: Correct the abnormal data and store the updated data back into the knowledge graph.
[0030] Furthermore, S1 is specifically:
[0031] First, we construct the ontology model of the power grid system by defining various nodes and their relationships. We use graph theory to represent it and formalize it into a directed graph G=(V,E), where V is the node set corresponding to the entities in the power grid, and E is the edge set corresponding to the relationships between entities.
[0032] Clarify the inheritance and association relationships between various categories;
[0033] Establish the specific attributes and constraints of each type of entity, and generate corresponding instances based on specific power grid entities.
[0034] Furthermore, the inheritance relationship and association relationship between the various categories are clarified as follows:
[0035] The inheritance relationship is hierarchical through a top-level class entity Entity:
[0036] Entity: Top-level class, representing common features shared by all entities;
[0037] Substation: inherited from Entity, representing a specific class of a substation, containing substation-specific attributes;
[0038] TransmissionLine: inherited from Entity, representing the properties specific to transmission lines;
[0039] Equipment: Inherits from Entity and is divided into four subclasses, each with specific equipment type attributes; including Transformer, CircuitBreaker, Switch, and Sensor;
[0040] Inheritance relationships are expressed using set and subset notation:
[0041] Let V Entity Represents the set of all entities:
[0042] V Entity =V Substation ∪V TransmissionLine ∪V Equipment ;
[0043] Among them, V Substation 、V TransmissionLine and V Equipment They are the entity collections of substations, lines and equipment respectively;
[0044] V Equipment =V Transformer ∪V CircuitBreaker ∪V Switch ∪V Sensor ;
[0045] Among them, V Transformer 、V CircuitBreaker 、V Switch and V Sensor are the entity collections of transformer, circuit breaker, switch and sensor respectively.
[0046] Association relationships include connection relationships , Subordinate Relationship and perceived relationship . Indicates the connection relationship between devices; Indicates that the equipment belongs to a substation or line; Indicates that the sensor is used to monitor the device.
[0047] Furthermore, based on the semantic fusion of knowledge graphs, data conflicts and redundancies are eliminated and data consistency is achieved, as follows:
[0048] Unify the multi-source data formats and use representation methods to map the data into the form of knowledge graphs;
[0049] Through the rules and logic checks embedded in the knowledge graph, including:
[0050] Conflict detection: two or more data entries have different values for the same entity attribute and the same timestamp;
[0051] Redundancy detection: The same entity attribute has duplicate values at different timestamps;
[0052] In the conflicting data, the data with the latest timestamp is selected as the final value; and based on the credibility weight of the data source, the value of the most credible data source is selected:
[0053] ;
[0054] Among them, WeightedValue(e,a) represents the weighted average value calculated based on the credibility of the data source given the entity e and its attribute a; n is the number of data in the data source, w i’ is the weight of the i'th data in the data source, v i’ is the value of the i'th data from the data source.
[0055] Furthermore, semantic features are extracted from the knowledge graph, and the hybrid model is trained to obtain a data quality monitoring model, as follows:
[0056] Based on the knowledge graph dataset, obtain semantic features and construct the node feature matrix X and adjacency matrix A;
[0057] Initialize the parameters of each layer of the hybrid model, randomly initialize the parameters of the model, and calculate the output of each layer;
[0058] The loss is calculated using the cross entropy loss function:
[0059] ;
[0060] Among them, U is the training data set; is the actual output of the u-th data; is the predicted output of the u-th data;
[0061] Calculate the gradient of the loss function with respect to the parameters layer by layer through the chain rule;
[0062] Use the stochastic gradient descent method to update the model parameters and repeat the above steps until the loss function converges or the predetermined number of iterations is reached.
[0063] Furthermore, S5 is specifically as follows: based on the corrected data, convert the corrected data into RDF, a storage format suitable for the knowledge graph; after the data is imported, verify the consistency of the data to ensure that the data complies with the format specifications of the knowledge graph, and ensure that the attributes and relationships in the newly imported data can be correctly mapped to the entities and attributes in the knowledge graph; write the verified data into the storage system of the knowledge graph to ensure that the relationships between entities in the new data and existing entities are correctly updated, maintain the relevance and integrity of the data, and record each update operation and its impact to facilitate subsequent auditing and tracing.
[0064] Furthermore, knowledge graph updates include batch updates and incremental updates, as follows:
[0065] Batch update: Process several batches of data, each batch of data contains a set of related entities and attributes, ensuring that a large amount of data can be updated at one time; each batch of data is checked for consistency, formatted, and then stored in the knowledge graph, and finally updated in a log record;
[0066] Incremental update: only processes new or revised data since the last update. This process includes data consistency check, format conversion, and updating the corresponding entities and attributes in the knowledge graph, and finally recording the update log.
[0067] Furthermore, the knowledge graph has a data update interface for adding, deleting, modifying and querying entities and attributes in the knowledge graph, including:
[0068] POST / update interface: accepts new data and performs consistency check and format conversion, then stores it in the knowledge graph and records the update log;
[0069] PUT / update / {entity_id} interface: receives the updated data of a specific entity, performs verification and format conversion, updates the entity information in the knowledge graph, and records the changes;
[0070] DELETE / delete / {entity_id} interface: receives deletion requests, deletes entities in the knowledge graph, and records deletion operations;
[0071] GET / query interface: supports querying data in the knowledge graph, facilitating data viewing and analysis.
[0072] A power grid measurement data quality intelligent monitoring system comprises a processor, a memory and a computer program stored in the memory. When the processor executes the computer program, it specifically executes the steps in the above-mentioned power grid measurement data quality intelligent monitoring method.
[0073] The present invention has the following beneficial effects:
[0074] 1. The present invention realizes data quality monitoring in complex power grid systems, improves the intelligence level and processing capability of the system, can effectively cope with the complex data environment and diverse data types of the power grid system, and has strong versatility and applicability;
[0075] 2. The present invention uses RDF to construct a knowledge graph to define entities and relationships in the power grid system. This method can make full use of semantic information to achieve data fusion from different data sources. Semantic fusion based on the knowledge graph can not only eliminate conflicts and redundancies between data, but also achieve data consistency and efficient processing through deep semantic understanding of nodes and relationships;
[0076] 3. The present invention combines graph convolutional network (GCN), graph attention network (GAT) and relational graph convolutional network (R-GCN) to construct a multi-layer hybrid model, which can fully extract the semantic features in the knowledge graph and improve the accuracy and robustness of data quality monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0078] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0079] refer to Figure 1 In this embodiment, a method for intelligently monitoring the quality of power grid measurement data includes the following steps:
[0080] S1: Define entities (such as substations, lines, equipment, etc.) and relationships (such as connection relationships, subordinate relationships, etc.) in the power grid system, and use the resource description framework RDF to build a knowledge graph;
[0081] S2: Obtain multi-source data of the power grid system, including measurement data, topology, equipment information, and environmental data, and process missing values, redundant data, and outliers. Convert data from different data sources into a unified format and combine it with the knowledge graph. Then, based on the semantic fusion of the knowledge graph, eliminate data conflicts and redundancies and achieve data consistency.
[0082] S3: Combine GCN, GAT and R-GCN layers to build a multi-layer hybrid model, extract semantic features from the knowledge graph, train the hybrid model, and obtain a data quality monitoring model;
[0083] The multi-layer hybrid model includes an input layer, a multi-layer hybrid neural network, a merging layer, a fully connected layer and an output layer, as follows:
[0084] Input layer: Input the node feature matrix X and adjacency matrix A from the knowledge graph;
[0085] The multi-layer hybrid neural network includes three hidden layers, as follows:
[0086] The first layer uses the GCN layer to extract features from the initial input:
[0087] ;
[0088] in, is the adjacency matrix with self-connection added, is the adjacency matrix between node i and its neighbor node j; I is the self-connection matrix; is the weight matrix of GCN; is the activation function; N(i) is the set of neighbor nodes directly connected to node i; is the initial hidden state vector of node j;
[0089] The second layer uses the GAT layer for weighted aggregation:
[0090] ;
[0091] in, is the attention weight of nodes i and j; is the attention score of nodes i and j; a is the GAT projection vector; is the hidden state vector of node i in layer 1; is the hidden state vector of node j in layer 1; Indicates a connection operation; , and is the activation function; is the weight matrix of the GAT layer;
[0092] Finally, the R-GCN layer is used to extract the relationship-dependent features of the nodes:
[0093]
[0094] Where R is a set of relations, is the set of neighbor nodes of node i under relation r, is the normalized matrix, is the weight matrix of relation r, is the autoregressive coefficient, is the hidden state vector of node i in layer 2; Is a node Hidden state vector at layer 2;
[0095] Merging layer: Merge the output of each layer to enrich the representation capability;
[0096] ;
[0097] in, They are the outputs of the corresponding layers of the multi-layer hybrid neural network;
[0098] Fully connected layer: further process the merged features;
[0099] ;
[0100] in, and They are the weights and biases of the fully connected layer respectively;
[0101] Output layer: classify or regress nodes and perform final data quality detection;
[0102] S4: Obtain real-time power grid measurement data through data streams, extract real-time features based on knowledge graphs, and use data quality monitoring models to predict and monitor real-time data;
[0103] S5: Correct the abnormal data and store the updated data back into the knowledge graph.
[0104] In this embodiment, S1 is specifically:
[0105] First, we construct the ontology model of the power grid system by defining various nodes and their relationships. We use graph theory to represent it and formalize it into a directed graph G=(V,E), where V is the node set corresponding to the entities in the power grid, and E is the edge set corresponding to the relationships between entities.
[0106] Clarify the inheritance and association relationships between various categories;
[0107] Establish the specific attributes and constraints of each type of entity, and generate corresponding instances based on specific power grid entities.
[0108] In this embodiment, the inheritance relationship and association relationship between the various categories are clarified as follows:
[0109] The inheritance relationship is hierarchical through a top-level class entity Entity:
[0110] Entity: Top-level class representing common features shared by all entities;
[0111] Substation: A specific class that inherits from Entity and represents a substation, containing substation-specific attributes;
[0112] TransmissionLine (Line): inherited from Entity to represent the properties specific to the transmission line;
[0113] Equipment: Inherits from Entity and is divided into four subclasses, each with specific equipment type attributes; including Transformer, CircuitBreaker, Switch, and Sensor;
[0114] Inheritance relationships are expressed using set and subset notation:
[0115] Let V Entity Represents the set of all entities:
[0116] V Entity =V Substation ∪V TransmissionLine ∪V Equipment ;
[0117] Among them, V Substation 、V TransmissionLine and V Equipment They are the entity collections of substations, lines and equipment respectively;
[0118] V Equipment =V Transformer ∪V CircuitBreaker ∪V Switch ∪V Sensor ;
[0119] Among them, V Transformer 、V CircuitBreaker 、V Switch and V Sensor are the entity collections of transformer, circuit breaker, switch and sensor respectively.
[0120] Association relationships include connection relationships , Subordinate Relationship and perceived relationship . Indicates the connection relationship between devices; Indicates that the equipment belongs to a substation or line; Indicates that the sensor is used to monitor the device.
[0121] Specific properties and constraints of entities
[0122] The properties and constraints of each class will be given in its definition, including basic properties and constraints. For example, the definition is as follows:
[0123] Top-level class: Entity
[0124] Attributes: id: unique identifier
[0125] Constraint: Each entity must have a unique id
[0126] Substation
[0127] Attributes: id: unique identifier; name: substation name; location: geographical location
[0128] Constraints: id is unique; name is unique;
[0129] TransmissionLine
[0130] Attributes: id: unique identifier; name: line name; length: line length (positive value);
[0131] Constraints: id is unique; name is unique; length is a positive value;
[0132] Equipment
[0133] The Device class contains four subclasses, each of which inherits and extends the properties of the Device class.
[0134] In order to ensure the integrity of the power grid system, some comprehensive constraints in the business process need to be added:
[0135] Each substation must have at least one type of equipment connection:
[0136] Each grid device must be monitored by at least one sensor:
[0137] In this embodiment, based on the semantic fusion of knowledge graph, data conflicts and redundancies are eliminated to achieve data consistency, as follows:
[0138] Unify the multi-source data formats and use representation methods to map the data into the form of knowledge graphs;
[0139] Through the rules and logic checks embedded in the knowledge graph, including:
[0140] Conflict detection: two or more data entries have different values for the same entity attribute and the same timestamp;
[0141] Redundancy detection: The same entity attribute has duplicate values at different timestamps;
[0142] In the conflicting data, the data with the latest timestamp is selected as the final value, and the value of the most credible data source is selected based on the credibility weight of the data source:
[0143] ;
[0144] Among them, WeightedValue(e,a) represents the weighted average value calculated based on the credibility of the data source given the entity e and its attribute a; n is the number of data in the data source, w i’ is the weight of the i'th data in the data source, v i’ is the value of the i'th data from the data source.
[0145] In this embodiment, semantic features are extracted from the knowledge graph, and the hybrid model is trained to obtain a data quality monitoring model, as follows:
[0146] Based on the knowledge graph dataset, obtain semantic features and construct the node feature matrix X and adjacency matrix A;
[0147] Initialize the parameters of each layer of the hybrid model, randomly initialize the parameters of the model, and calculate the output of each layer;
[0148] The loss is calculated using the cross entropy loss function:
[0149] ;
[0150] Among them, U is the training data set; is the actual output of the u-th data; is the predicted output of the u-th data;
[0151] Calculate the gradient of the loss function with respect to the parameters layer by layer through the chain rule;
[0152] Use the stochastic gradient descent method to update the model parameters and repeat the above steps until the loss function converges or the predetermined number of iterations is reached.
[0153] In this embodiment, S5 is specifically as follows: according to the corrected data, converting the corrected data into RDF, a storage format suitable for the knowledge graph; after the data is imported, verifying the consistency of the data to ensure that the data complies with the format specification of the knowledge graph and that the attributes and relationships in the newly imported data can be correctly mapped to the entities and attributes in the knowledge graph; writing the verified data into the storage system of the knowledge graph to ensure that the relationships between entities in the new data and existing entities are correctly updated, maintaining the relevance and integrity of the data, and recording each update operation and its impact to facilitate subsequent auditing and tracing.
[0154] In this embodiment, the knowledge graph update includes batch update and incremental update, as follows:
[0155] Batch update: Process several batches of data, each batch of data contains a set of related entities and attributes, ensuring that a large amount of data can be updated at one time; each batch of data is checked for consistency, formatted, and then stored in the knowledge graph, and finally updated in a log record;
[0156] Incremental update: only processes new or revised data since the last update. This process includes data consistency check, format conversion, and updating the corresponding entities and attributes in the knowledge graph, and finally recording the update log.
[0157] In this embodiment, the knowledge graph is provided with a data update interface for performing add, delete, modify and query operations on entities and attributes in the knowledge graph, including:
[0158] POST / update interface: accepts new data and performs consistency check and format conversion, then stores it in the knowledge graph and records the update log;
[0159] PUT / update / {entity_id} interface: receives the updated data of a specific entity, performs verification and format conversion, updates the entity information in the knowledge graph, and records the changes;
[0160] DELETE / delete / {entity_id} interface: receives deletion requests, deletes entities in the knowledge graph, and records deletion operations;
[0161] GET / query interface: supports querying data in the knowledge graph, facilitating data viewing and analysis.
[0162] It will be appreciated by those skilled in the art 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. Furthermore, 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.
[0163] 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 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0164] 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.
[0165] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0166] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.
Claims
1. A method for intelligent monitoring of power grid measurement data quality, characterized in that: The following steps are involved: S1: Define entities and relationships in the power grid system and build a knowledge graph using the resource description framework RDF; S2: Obtain multi-source data of the power grid system, including measurement data, topology, equipment information, and environmental data, and process missing values, redundant data, and outliers. Convert data from different data sources into a unified format and combine it with the knowledge graph. Then, based on the semantic fusion of the knowledge graph, eliminate data conflicts and redundancies and achieve data consistency. S3: Combine GCN, GAT and R-GCN layers to build a multi-layer hybrid model, extract semantic features from the knowledge graph, train the hybrid model, and obtain a data quality monitoring model; The multi-layer hybrid model includes an input layer, a multi-layer hybrid neural network, a merging layer, a fully connected layer and an output layer, as follows: Input layer: Input the node feature matrix X and adjacency matrix A from the knowledge graph; The multi-layer hybrid neural network includes three hidden layers, as follows: The first layer uses the GCN layer to extract features from the initial input: ; in, is the adjacency matrix with self-connection added, is the adjacency matrix between node i and its neighbor node j; I is the self-connection matrix; is the weight matrix of GCN; is the activation function; N(i) is the set of neighbor nodes directly connected to node i; is the initial hidden state vector of node j; The second layer uses the GAT layer for weighted aggregation: ; in, is the attention weight of nodes i and j; is the attention score of nodes i and j; a is the GAT projection vector; is the hidden state vector of node i in layer 1; is the hidden state vector of node j in layer 1; Indicates a connection operation; , and is the activation function; is the weight matrix of the GAT layer; Finally, the R-GCN layer is used to extract the relationship-dependent features of the nodes: Where R is a set of relations, is the set of neighbor nodes of node i under relation r, is the normalized matrix, is the weight matrix of relation r, is the autoregressive coefficient, is the hidden state vector of node i in layer 2; Is a node Hidden state vector at layer 2; Merging layer: Merge the output of each layer to enrich the representation capability; ; in, They are the outputs of the corresponding layers of the multi-layer hybrid neural network; Fully connected layer: further process the merged features; ; in, and They are the weights and biases of the fully connected layer respectively; Output layer: classify or regress nodes and perform final data quality detection; S4: Obtain real-time power grid measurement data through data streams, extract real-time features based on knowledge graphs, and use data quality monitoring models to predict and monitor real-time data; S5: Correct the abnormal data and store the updated data back into the knowledge graph; The semantic fusion based on knowledge graph eliminates data conflicts and redundancies and achieves data consistency, as follows: Unify the multi-source data formats and use representation methods to map the data into the form of knowledge graphs; Through the rules and logic checks embedded in the knowledge graph, including: Conflict detection: two or more data entries have different values for the same entity attribute and the same timestamp; Redundancy detection: The same entity attribute has duplicate values at different timestamps; In the conflicting data, the data with the latest timestamp is selected as the final value, and the value of the most credible data source is selected based on the credibility weight of the data source: ; Among them, WeightedValue(e,a) represents the weighted average value calculated based on the credibility of the data source given the entity e and its attribute a; n is the number of data in the data source, w i’ is the weight of the i'th data in the data source, v i’ is the value of the i'th data from the data source; The semantic features are extracted from the knowledge graph, and the hybrid model is trained to obtain a data quality monitoring model, as follows: Based on the knowledge graph dataset, obtain semantic features and construct the node feature matrix X and adjacency matrix A; Initialize the parameters of each layer of the hybrid model, randomly initialize the parameters of the model, and calculate the output of each layer; The loss is calculated using the cross entropy loss function: ; Among them, U is the training data set; is the actual output of the u-th data; is the predicted output of the u-th data; Calculate the gradient of the loss function with respect to the parameters layer by layer through the chain rule; Use the stochastic gradient descent method to update the model parameters and repeat the above steps until the loss function converges or the predetermined number of iterations is reached.
2. A method for intelligent monitoring of power grid measurement data quality according to claim 1, characterized in that: The S1 is specifically: First, we construct the ontology model of the power grid system by defining various nodes and their relationships. We use graph theory to represent it and formalize it into a directed graph G=(V,E), where V is the node set corresponding to the entities in the power grid, and E is the edge set corresponding to the relationships between entities. Clarify the inheritance and association relationships between various categories; Establish the specific attributes and constraints of each type of entity, and generate corresponding instances based on specific power grid entities.
3. The method for intelligent monitoring of power grid measurement data quality according to claim 2, characterized in that: The inheritance relationship and association relationship between the various categories are clarified as follows: The inheritance relationship is hierarchical through a top-level class entity Entity: Entity: Top-level class, representing common features shared by all entities; Substation: inherited from Entity, representing a specific class of a substation, containing substation-specific attributes; TransmissionLine: inherited from Entity, representing the properties specific to transmission lines; Equipment: Inherits from Entity and is divided into four subclasses, each with specific equipment type attributes; including Transformer, CircuitBreaker, Switch, and Sensor; Inheritance relationships are expressed using set and subset notation: Let V Entity Represents the set of all entities: V Entity =V Substation ∪V TransmissionLine ∪V Equipment ; Among them, V Substation 、V TransmissionLine and V Equipment They are the entity collections of substations, lines and equipment respectively; V Equipment =V Transformer ∪V CircuitBreaker ∪V Switch ∪V Sensor ; Among them, V Transformer 、V CircuitBreaker 、V Switch and V Sensor are the entity sets of transformer, circuit breaker, switch and sensor respectively; Association relationships include connection relationships , Subordinate Relationship and perceived relationship ; Indicates the connection relationship between devices; Indicates that the equipment belongs to a substation or line; Indicates that the sensor is used to monitor the device.
4. The method for intelligent monitoring of power grid measurement data quality according to claim 1, characterized in that: The S5 is specifically as follows: based on the corrected data, convert the corrected data into RDF, a storage format suitable for the knowledge graph; after the data is imported, verify the consistency of the data to ensure that the data complies with the format specifications of the knowledge graph and that the attributes and relationships in the newly imported data can be correctly mapped to the entities and attributes in the knowledge graph; write the verified data into the storage system of the knowledge graph to ensure that the relationships between entities in the new data and existing entities are correctly updated, maintain the relevance and integrity of the data, and record each update operation and its impact to facilitate subsequent auditing and tracing.
5. A method for intelligent monitoring of power grid measurement data quality according to claim 4, characterized in that: Knowledge graph updates include batch updates and incremental updates, as follows: Batch update: Process several batches of data, each batch of data contains a set of related entities and attributes, ensuring that a large amount of data can be updated at one time; each batch of data is checked for consistency, formatted, and then stored in the knowledge graph, and finally updated in a log record; Incremental update: only processes new or revised data since the last update. This process includes data consistency check, format conversion, and updating the corresponding entities and attributes in the knowledge graph, and finally recording the update log.
6. A method for intelligent monitoring of power grid measurement data quality according to claim 4, characterized in that: The knowledge graph is provided with a data update interface for adding, deleting, modifying and querying entities and attributes in the knowledge graph, including: POST / update interface: accepts new data and performs consistency check and format conversion, then stores it in the knowledge graph and records the update log; PUT / update / {entity_id} interface: receives the updated data of a specific entity, performs verification and format conversion, updates the entity information in the knowledge graph, and records the changes; DELETE / delete / {entity_id} interface: receives deletion requests, deletes entities in the knowledge graph, and records deletion operations; GET / query interface: supports querying data in the knowledge graph, facilitating data viewing and analysis.
7. An intelligent monitoring system for power grid measurement data quality, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory. When the processor executes the computer program, the method specifically executes the steps in the method for intelligent monitoring of power grid measurement data quality as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Power grid anomaly detection method based on AI technology
CN117520984A
Automatic relation identification method and system based on deep learning
CN118193749A
