A power grid knowledge base adaptive evolution and dynamic updating method and system

By adaptively adjusting the update strategy of the power grid knowledge base through closed-loop adjustment, efficient integration of multi-source heterogeneous data and dynamic updating of the knowledge base are achieved. This solves the problem that the power grid knowledge base update strategy cannot be adaptively adjusted, and improves the timeliness and accuracy of the knowledge base.

CN123178648APending Publication Date: 2026-11-27GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611671559.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The power grid knowledge base update strategy cannot be adaptively adjusted, resulting in long update cycles, slow response speed, limited coverage, insufficient timeliness and accuracy of the knowledge base, and difficulty in guaranteeing the integrity, connectivity and consistency of the knowledge graph.

Method used

Through an adaptive closed loop of evaluation, feedback, and parameter adjustment, the update frequency and knowledge fusion parameters of each data source are dynamically adjusted. Multi-protocol data access, automated knowledge extraction, and semantic analysis are adopted to achieve unified access and incremental fusion of multi-source heterogeneous data, and to conduct multi-dimensional integrity assessments of connectivity, coverage, and consistency.

Benefits of technology

It improves the timeliness and accuracy of the knowledge base, achieves efficient integration of multi-source heterogeneous data, ensures the network connectivity, business coverage and logical consistency of the knowledge base, and enhances the adaptability and application effect of the knowledge base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178648A_ABST
    Figure CN123178648A_ABST
Patent Text Reader

Abstract

The application discloses a power grid knowledge base adaptive evolution and dynamic updating method and system, relates to the technical field of power grid knowledge base, and comprises the following steps: collecting and preprocessing dynamic data according to the updating frequency of each data source; performing entity recognition, relationship extraction and attribute extraction on the standardized data to form a knowledge graph increment; calculating the semantic similarity of the newly added node and the existing node, screening candidate fusion node pairs, verifying the graph structure consistency, calculating the fusion confidence score, and fusing when the score meets the standard to obtain an updated knowledge graph; performing integrity evaluation from connectivity, coverage and consistency; collecting user feedback; updating the updating frequency of each data source and the knowledge fusion parameters according to the integrity evaluation result and the user feedback, and using the updated updating frequency and the knowledge fusion parameters for data collection and knowledge fusion in the next round. Through the closed loop of evaluation, feedback and parameter adjustment, the updating strategy is adaptively adjusted according to the quality state of the knowledge base and the user demand, and the timeliness, accuracy and reliability of the knowledge base are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power grid knowledge management technology, and in particular to a method and system for adaptive evolution and dynamic updating of power grid knowledge base. Background Technology

[0002] Knowledge graphs, as the core implementation form of power grid knowledge bases, semantically organize power grid entities such as substations, transmission lines, and generator units, along with their attributes and interrelationships, through a graph structure. This supports complex relational queries and reasoning analysis, providing a data foundation for intelligent applications such as power grid dispatching decisions, equipment maintenance, and fault diagnosis. With the advancement of smart grid construction and the large-scale grid connection of new energy sources, power grid operation modes are becoming increasingly complex, placing higher demands on the completeness, timeliness, and intelligence level of knowledge graphs.

[0003] Currently, power grid data comes from a wide range of sources and is diverse in format, including real-time operation monitoring data, equipment defect records, technical specifications, policy and regulatory texts, and user feedback. These multi-source heterogeneous data have significant semantic differences, making efficient integration difficult. The power grid operating environment is constantly changing, with events such as the commissioning of new equipment, line upgrades, adjustments to operating modes, and updates to policies and standards constantly generating new knowledge. However, traditional knowledge base update mechanisms often rely on manual maintenance, resulting in technical shortcomings such as long update cycles, slow response times, and limited coverage, making it difficult to guarantee the timeliness and accuracy of the knowledge base. Furthermore, as the scale of knowledge graphs continues to grow, the integrity, connectivity, and consistency of their internal structure degrade with dynamic updates, leading to isolated nodes, semantic conflicts, and logical contradictions, which seriously affect the credibility and application effectiveness of the knowledge base.

[0004] The aforementioned technologies suffer from the problem that the power grid knowledge base update strategy cannot be adaptively adjusted. Therefore, a method and system for the adaptive evolution and dynamic updating of the power grid knowledge base are needed. Summary of the Invention

[0005] To address the problem that power grid knowledge base update strategies cannot be adaptively adjusted in related technologies, this application provides a method and system for adaptive evolution and dynamic updating of power grid knowledge base. Through an adaptive closed loop of evaluation, feedback, and parameter adjustment, the knowledge base update strategy can dynamically adjust the update frequency and knowledge fusion parameters of each data source based on the integrity evaluation results and user feedback information.

[0006] On the one hand, this application provides a method for adaptive evolution and dynamic updating of a power grid knowledge base, employing the following technical solution: An adaptive evolution and dynamic update method for a power grid knowledge base includes the following steps: S1. Collect dynamic data from different data sources according to the update frequency corresponding to each data source, and preprocess the dynamic data to obtain standardized data; the dynamic data includes power grid operation data, equipment maintenance records, technological innovation data, and policy and regulatory change data; S2. Perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph; S3. Based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and the nodes in the existing knowledge base, determine candidate fusion node pairs; perform graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity, and calculate the fusion confidence score based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs to obtain the updated knowledge graph; S4. Perform an integrity assessment on the updated knowledge graph to obtain an integrity assessment result. The integrity assessment result is obtained based on connectivity score, coverage score, and consistency score. The coverage score is determined according to a preset power grid business domain ontology, which includes equipment ontology, topology ontology, operation ontology, maintenance ontology, and regulatory ontology. S5. Collect user feedback on the knowledge base content; S6. Based on the integrity assessment results and the user feedback information, update the update frequency and knowledge fusion parameters of each data source, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

[0007] Preferably, the semantic similarity acquisition process includes: continuously pre-training a pre-trained language model based on power grid domain corpus, wherein the power grid domain corpus includes power grid technical documents, scheduling operation records, equipment ledgers, maintenance work orders and technical standards; based on the continuously pre-trained language model, obtaining the semantic vector representation of each newly added knowledge node and the nodes in the existing knowledge base, and calculating the semantic similarity based on cosine similarity.

[0008] Preferably, S3 specifically includes: Node pairs whose semantic similarity reaches a preset semantic similarity threshold are identified as candidate fusion node pairs; The graph structure consistency verification of the candidate fusion node pairs is performed to obtain graph structure similarity. The graph structure consistency verification includes: determining neighbor overlap based on the intersection and union of the neighbor node sets of the two nodes in the candidate fusion node pair; mapping the neighbor relationship types of the two nodes in the candidate fusion node pair to the first-level classes of the preset power grid relationship type hierarchy tree to obtain a relationship type distribution vector, and determining the relationship type matching degree based on the relationship type distribution vector; performing bounded random walks from the two nodes in the candidate fusion node pair, converting the paths obtained from the walks into template strings, and counting the frequency of each template string to form a path template frequency vector, and determining the path pattern similarity based on the path template frequency vector; and weighted summing the neighbor overlap, the relationship type matching degree, and the path pattern similarity to obtain the graph structure similarity. According to the preset graph structure similarity weight and semantic similarity weight, the semantic similarity and the graph structure similarity are weighted and summed to obtain the fusion confidence score. When the fusion confidence score reaches the preset fusion confidence threshold, the candidate fusion node pair is subjected to fusion processing.

[0009] Preferably, the fusion process includes: Determine the fusion relationship of the candidate fusion node pairs, wherein the fusion relationship includes a merging relationship or an association relationship; wherein, when the fusion relationship is a merging relationship, node merging is performed, and when the fusion relationship is an association relationship, an association edge is established; For the candidate fusion node pair, it is determined whether there is a knowledge conflict according to the preset conflict determination rules; the preset conflict determination rules include attribute conflict determination and relationship and logic conflict determination. For candidate fusion node pairs that are identified as having knowledge conflicts, a confidence-based fusion strategy is used to resolve them. The confidence-based fusion strategy includes: performing a weighted summation based on the data source authority score, the extraction method reliability score, and the time freshness score to obtain a comprehensive confidence score, and retaining the knowledge source with the highest comprehensive confidence score in the knowledge conflict group based on the comprehensive confidence score. The data source authority score is used to measure the authority of the data provider in the power grid system; the extraction method reliability score is used to measure the accuracy of the extraction method used to acquire knowledge; and the time freshness score is used to measure the timeliness of knowledge over time.

[0010] Preferably, the process of obtaining the integrity assessment result includes: Calculate the average shortest path length between all reachable node pairs in the updated knowledge graph, and count the number of independent connected subgraphs in the updated knowledge graph as the number of connected components; determine the reachable node pair ratio based on the ratio of the number of reachable node pairs to the total number of node pairs in the updated knowledge graph; perform a weighted summation based on the reachable node pair ratio, the normalized score of the average shortest path length, and the normalized score of the number of connected components to obtain the connectivity score; The entity types, relationship types, and attributes in the updated knowledge graph are matched with the preset power grid business domain ontology, and the coverage score is obtained by weighted summation based on the entity type coverage, relationship type coverage, and attribute coverage. The updated knowledge graph is subjected to consistency detection based on a preset set of consistency rules to obtain the consistency score. The set of consistency rules includes data type constraint rules, relation mutual exclusion rules, numerical range constraint rules, temporal consistency rules, and causal constraint rules. The connectivity score, coverage score, and consistency score are weighted and summed according to preset connectivity weight, preset coverage weight, and preset consistency weight to obtain the integrity assessment result.

[0011] Preferably, the dynamic data acquisition process includes: acquiring dynamic data from different data sources through a multi-protocol data access method; acquiring dynamic data at acquisition intervals through timed acquisition tasks, and dynamically adjusting the acquisition intervals according to the historical data change rates of each data source; and initiating data acquisition when a preset event type is detected through event-triggered acquisition tasks.

[0012] Preferably, the knowledge graph increment includes a set of knowledge triples; wherein, the set of knowledge triples includes relation triples and / or attribute triples; the relation triples consist of a head entity, a relation type, and a tail entity, and the attribute triples consist of an entity, an attribute name, and an attribute value.

[0013] Preferably, the collection of user feedback information on the knowledge base content includes: Receive the user feedback information through the user interaction interface; The user feedback information is automatically categorized to obtain feedback categories, which include knowledge accuracy feedback, timeliness feedback, completeness feedback, and usability feedback. The level of detail is determined based on the number of words in the problem description, whether supporting materials are provided, whether specific locations are indicated, and whether modification suggestions are given. The level of authority is determined based on the user's role level, historical feedback adoption rate, type of organization, and feedback frequency. The level of detail and the level of authority are weighted and summed according to preset weighting coefficients for the level of detail and the level of authority to obtain a priority score. The user feedback information is sorted according to the priority score to determine the processing order of the user feedback information.

[0014] Preferably, after obtaining the updated knowledge graph, a distributed graph database is used to store the updated knowledge graph. The distributed graph database includes coordination nodes, computing nodes, and storage nodes. Task scheduling and query routing are performed through the coordination nodes, graph traversal and graph computation tasks are executed through the computing nodes, and graph data is stored through the storage nodes. The updated knowledge graph is distributed to multiple storage nodes using a graph partitioning algorithm, which iteratively optimizes the algorithm with the goal of balancing the number of cut edges and the size of subgraphs. The graph data in the storage nodes is stored using an adjacency list compression storage format, and node identifiers are encoded and compressed. A multi-level index structure including at least one of node type index, attribute value index, and timestamp index is used to query the stored graph data.

[0015] On the other hand, this application provides an adaptive evolution and dynamic update system for a power grid knowledge base, comprising: The data access module is configured to collect dynamic data from different data sources according to the update frequency corresponding to each data source, and to preprocess the dynamic data to obtain standardized data. The knowledge recognition module is configured to perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph. The knowledge fusion module is configured to determine candidate fusion node pairs based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and nodes in the existing knowledge base; perform graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity; calculate fusion confidence scores based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs; and, when it is determined to perform fusion processing, fuse the knowledge graph increment with the existing knowledge base to obtain an updated knowledge graph. The integrity assessment module is configured to perform an integrity assessment on the updated knowledge graph and obtain an integrity assessment result, which is based on connectivity score, coverage score and consistency score. The feedback collection module is configured to collect user feedback on the knowledge base content. The strategy optimization module is configured to update the update frequency and knowledge fusion parameters of each data source based on the integrity assessment results and the user feedback information, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

[0016] Compared with related technologies, the beneficial effects of this application are as follows: 1. By forming an adaptive closed loop through steps S1 to S6, the knowledge base update strategy can adjust the update frequency and knowledge fusion parameters of each data source according to the integrity assessment results and user feedback information, and use them for the next round of data collection and knowledge fusion. This helps to solve the problem that the update strategy is difficult to adjust adaptively in the existing technology, and is conducive to improving the timeliness and accuracy of the knowledge base. 2. Through multi-protocol data access, automated knowledge extraction, and semantic analysis and graph fusion, unified access and incremental fusion of multi-source heterogeneous data can be achieved; through multi-dimensional integrity assessment of connectivity, coverage and consistency, it helps to ensure the network connectivity, business coverage and logical consistency of the knowledge base, thereby improving the quality and credibility of the knowledge base. 3. Through distributed architecture and federated learning, collaborative updates of multi-level knowledge bases can be achieved, which helps protect data privacy at each level; through lightweight deployment and rapid integration strategies, the needs for rapid construction and updating of knowledge bases in emergency scenarios can be met, which is conducive to enhancing the adaptability and application effect of knowledge bases. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of this application, the accompanying drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.

[0018] Figure 1 This is a schematic diagram of the main steps of a method for adaptive evolution and dynamic updating of a power grid knowledge base according to an embodiment of this application; Figure 2 This is a schematic diagram of a module of a power grid knowledge base adaptive evolution and dynamic update system according to an embodiment of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0021] It should also be understood that the terminology used in this application specification is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0022] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0023] This application provides a method and system for adaptive evolution and dynamic updating of a power grid knowledge base.

[0024] Example 1 Embodiment 1 of this application provides a method for adaptive evolution and dynamic updating of a power grid knowledge base. Figure 1 This is a schematic flowchart of the main steps of a power grid knowledge base adaptive evolution and dynamic update method according to an embodiment of this application, referring to... Figure 1 The method includes the following main steps: S1. Collect dynamic data from different data sources according to the update frequency corresponding to each data source, and preprocess the dynamic data to obtain standardized data; the dynamic data includes power grid operation data, equipment maintenance records, technological innovation data, and policy and regulatory change data; S2. Perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph; S3. Based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and the nodes in the existing knowledge base, determine candidate fusion node pairs; perform graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity, and calculate the fusion confidence score based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs to obtain the updated knowledge graph; S4. Perform an integrity assessment on the updated knowledge graph to obtain an integrity assessment result. The integrity assessment result is obtained based on connectivity score, coverage score, and consistency score. The coverage score is determined according to a preset power grid business domain ontology, which includes equipment ontology, topology ontology, operation ontology, maintenance ontology, and regulatory ontology. S5. Collect user feedback on the knowledge base content; S6. Based on the integrity assessment results and the user feedback information, update the update frequency and knowledge fusion parameters of each data source, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

[0025] In one implementation, the method is executed by a power grid knowledge base adaptive evolution and dynamic update system, which includes a data access module, a knowledge identification module, a knowledge fusion module, an integrity assessment module, a feedback collection module, and a strategy optimization module. It is understood that the above modules are merely illustrative and do not constitute a limitation on the subject executing the method.

[0026] Step S1: Collect dynamic data from different data sources according to the update frequency corresponding to each data source, and preprocess the dynamic data to obtain standardized data; the dynamic data includes power grid operation data, equipment maintenance records, technological innovation data, and policy and regulatory change data.

[0027] In one implementation, step S1 is performed by the data access module. The data access module includes a multi-protocol data access module and a preprocessing module. The multi-protocol data access module collects dynamic data from different data sources according to the update frequency corresponding to each data source, and the preprocessing module preprocesses the collected dynamic data to obtain standardized data.

[0028] S11. Collect dynamic data from different data sources according to the update frequency corresponding to each data source.

[0029] Specifically, dynamic data from different data sources is collected through multi-protocol data access. This dynamic data includes power grid operation data, equipment maintenance records, technological innovation information, and policy and regulatory change data. Multi-protocol data access supports the IEC 61850 standard protocol, the IEC 60870-5-104 telemetry protocol, and the Modbus industrial communication protocol.

[0030] Specifically, the IEC 61850 protocol collects data from process and bay level devices in substation automation systems, parsing sampled value messages and GOOSE messages. In its implementation, a single channel can achieve a data acquisition rate of up to 10,000 data points per second. The IEC 60870-5-104 protocol collects telemetry, telesignaling, remote control, and remote adjustment data between the dispatch master station and substations, supporting balanced and unbalanced transmission modes, with port 2404 as the default. The Modbus protocol collects data from generator sets, distribution terminals, and measuring instruments, supporting RTU, ASCII, and TCP transmission modes.

[0031] The data collection tasks include scheduled data collection tasks and event-triggered data collection tasks. Scheduled data collection tasks employ a periodic execution mechanism with configurable collection intervals. The initial default value for the collection interval is set based on the update frequency of the data source. In one implementation, the collection interval is 1 second for data changing at the second level; 60 seconds for data changing at the minute level; 3600 seconds for data changing at the hour level; and 86400 seconds for data changing at the daily level.

[0032] Furthermore, the timed data acquisition task employs an adaptive acquisition interval adjustment algorithm, dynamically calculating the optimal acquisition interval based on the historical rate of change of the data source. The calculation method of the adaptive acquisition interval adjustment algorithm is as follows: in, This indicates the adjusted data collection interval. Indicates the basic data acquisition interval. This represents the variance of the rate of change in historical data. This represents the preset rate of change variance threshold.

[0033] The event-triggered data acquisition task immediately initiates data acquisition upon detecting a preset event type. These preset event types include, but are not limited to, switch position change events, protection action events, alarm events, telemetry limit exceedance events, manual operation events, and external system triggered events. The event-triggered data acquisition task supports a multi-level event filtering mechanism, executing acquisition responses only for events that meet the event priority and event type conditions. Event priorities are divided into four levels: urgent, important, general, and alert. In one implementation, the acquisition response delay for urgent events does not exceed 100 milliseconds.

[0034] S12. Preprocess the collected dynamic data to obtain standardized data.

[0035] Specifically, a protocol conversion engine is deployed at the data conversion layer. Its core function is to uniformly convert heterogeneous data formats from different protocols into a standardized intermediate representation. This intermediate representation adopts a unified data model architecture, including standardized fields such as data source identifier, timestamp, data type, numerical value, quality stamp, and metadata attributes. The data source identifier uses a five-level coding system of "data source type-voltage level-plant number-equipment number-measuring point number" to ensure the unique identifiability of each data point globally. The timestamp adopts the ISO 8601 standard format, supporting millisecond-level precision, and time synchronization is based on the PTP precise time protocol.

[0036] Based on the unified data format mentioned above, a distributed data cleaning algorithm is used to preprocess the collected dynamic data. This distributed data cleaning algorithm is implemented based on a distributed computing framework. The distributed computing framework uses a message queue as a data distribution middleware. Collected data first enters the raw data buffer queue, and the cleaned data enters the cleaned data queue for subsequent processing stages.

[0037] In one embodiment, the distributed data cleaning algorithm includes three processing stages: noise detection and removal, redundancy identification and elimination, and missing value completion.

[0038] Noise detection and removal employs a density-based noise point detection algorithm, specifically implemented as a parameterized adaptive density clustering method. This method maps data points to a feature space and then determines whether a data point is a noise point by calculating the number of neighboring points within its neighborhood radius ε. Neighborhood radius ε The neighborhood radius is dynamically determined based on data distribution characteristics: for numerical data, 1.5 times the interquartile range is used as the neighborhood radius; for time-series data, twice the sampling period length is used. When the number of neighboring points is less than the minimum cluster size... When this occurs, the data point is determined to be a noise point. In one implementation, The default value is 5. After detecting a noise point, the system removes the noise point from the data stream and records a noise point log. The noise point log includes the data point identifier, detection time, data source, and the specific reason for determining it to be a noise point.

[0039] Redundancy identification and elimination employs a hybrid approach combining hash deduplication and semantic similarity calculation. An MD5 hash value is calculated for each data record, and a global hash index table is constructed. Completely duplicate data records are identified by hash value matching. The hash calculation covers the core fields of the data records, including timestamps, data source identifiers, measurement point identifiers, and numerical values. For suspected duplicate records with the same hash value but minor differences in field content, semantic similarity is further calculated: the text description of the data record is converted into a dense vector representation, and cosine similarity is used to measure the degree of semantic similarity. In one implementation, the default value for the similarity threshold is 0.95. When the calculation result exceeds this threshold, the record is determined to be semantically redundant and is merged. The merging strategy prioritizes retaining the data record with the most recent timestamp, while recording the timestamp and data identifier of the merged record in the merge log.

[0040] Missing value completion employs differentiated completion strategies for different data types. For numerical missing fields in time series data, one implementation method can use cubic spline interpolation for completion.

[0041] Specifically, for missing intervals Construct a cubic polynomial function To satisfy: , in, and These represent the time points at the two ends of the missing interval, and Representing time points and The corresponding known value, Indicates the missing interval The cubic polynomial interpolation function constructed on top.

[0042] Meanwhile, the cubic polynomial The first and second derivatives are continuous at the nodes, and the boundary conditions are natural boundary conditions, that is, the second derivative is zero at the boundary points.

[0043] For consecutive deletions exceeding the length of the original sequence In cases of severe missing data, instead of interpolation for completion, an alarm is triggered, and manual judgment is required to determine whether data should be retrieved from an alternative data source or the data collection strategy adjusted. For missing fields in text data, one implementation method can use context-based semantic inference for completion. Context-based semantic inference is based on a pre-trained text generation model, analyzing the contextual information of the record containing the missing field to generate the most likely filler content. Model input includes the content of other fields in the record containing the missing field, the content of the same field in other records within the same batch, and the statistical characteristics of historical records of the same type.

[0044] After the above preprocessing, standardized data is obtained. This standardized data possesses the unified data model architecture described above; its field definitions will not be repeated here.

[0045] Step S2: Perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph.

[0046] In one implementation, step S2 is performed by the knowledge recognition module. The knowledge recognition module is used to perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph.

[0047] Entity recognition can employ a sequence labeling model combining a bidirectional long short-term memory network (BSL-LSM) and a conditional random field (CRF). The BSL-LSM has 256 hidden layer neurons, a word vector dimension of 128, and a maximum input sequence length of 512. The CRF layer, located above the BSL-LSM output layer, is used to learn the transition probabilities between labeled sequences. Sequence labeling uses the BIO labeling system, where B tags indicate the start position of an entity, I tags indicate the continuation position, and O tags indicate non-entity positions. Entity types are categorized into six main types: equipment entities, topology entities, parameter entities, personnel entities, organizational entities, and policy entities. A power grid domain dictionary can serve as an auxiliary resource for entity recognition. The dictionary contains at least 500,000 power grid professional terms, sourced from power industry standards and specifications, power grid enterprise technical documents, equipment manuals, dispatching and operation procedures, and historical labeling data. The dictionary uses a hybrid index structure combining prefix trees and hash tables, supporting term queries with O(1) time complexity. For terms contained in the dictionary, a hybrid recognition strategy combining dictionary-based fast matching and model-based sequence labeling is adopted, with the dictionary matching results serving as one of the feature inputs for model recognition.

[0048] Relation extraction employs a Transformer encoder structure enhanced with an attention mechanism. The Transformer encoder consists of six stacked self-attention sublayers and a feedforward neural network sublayer, with eight self-attention heads, each with a dimension of 64. The attention mechanism enables the model to automatically learn dependencies between different word positions in the text, capturing long-distance semantic associations between entities. The input to the relation extraction task is a text fragment containing two entities, and the output is the possible relation types between the two entities. Relation types are categorized into five main types: inclusion relations, operational relations, state relations, causal relations, and temporal relations, each further subdivided into multiple subcategories. Operational relations are further subdivided into control operations, maintenance operations, and testing operations; state relations are further subdivided into operating states, alarm states, and fault states; and temporal relations are further subdivided into sequential relations, synchronous relations, and periodic relations. The relation extraction model is pre-trained on a large-scale labeled corpus in the power grid domain, with a total training corpus exceeding one million labeled samples.

[0049] Attribute extraction can be achieved using a combination of rule templates and deep learning models. The rule template library contains over 5000 attribute extraction rules, with each rule structure including trigger patterns, attribute names, attribute value positions, and value type constraints. Trigger patterns are described using regular expressions, supporting flexible pattern matching. Attribute value type constraints include string, numeric, enumeration, date, and time types. The deep learning attribute extraction model employs an end-to-end extraction method based on pointer networks, enabling direct location of the start and end positions of attribute values ​​from unstructured text. For attribute extraction from structured data, field mapping is directly performed based on the data pattern definition; for attribute extraction from semi-structured data, attribute recognition is achieved by combining rule templates and weakly supervised learning methods.

[0050] The output of knowledge element identification is a structured set of knowledge triples. Each knowledge triple includes a head entity, a relation type, and a tail entity, or an entity, attribute name, and attribute value. The knowledge triples are accompanied by metadata information, including a confidence score, data source identifier, extraction timestamp, original text fragment, and model version number. The confidence score is calculated based on a multi-model ensemble method, which weights and fuses the outputs of rule-based extraction methods and deep learning-based extraction methods. The weight parameters are dynamically adjusted based on performance on the validation set.

[0051] Step S3: Based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and the nodes in the existing knowledge base, determine candidate fusion node pairs; perform graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity, and calculate the fusion confidence score based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs to obtain the updated knowledge graph.

[0052] In one implementation, step S3 is performed by the knowledge fusion module. The knowledge fusion module determines the fusion relationship based on the semantic similarity and graph structure consistency between the newly added knowledge nodes in the knowledge graph increment and the nodes in the existing knowledge base, and then merges the knowledge graph increment with the existing knowledge base based on the fusion relationship to obtain an updated knowledge graph.

[0053] Specifically, semantic analysis algorithms and graph fusion algorithms are used to integrate newly added knowledge with the existing knowledge base, forming an updated knowledge graph. Semantic similarity calculation is based on a pre-trained language model to compute the semantic vector representations of newly added knowledge nodes and related nodes in the existing knowledge base. The pre-trained language model is continuously pre-trained using a large-scale corpus from the power grid field, with sources including power grid technical documents, dispatch operation records, equipment ledgers, maintenance work orders, and technical standards. In one implementation, the language model has 750 million parameters, the total training corpus exceeds 100GB, and the semantic vector representation has a dimension of 768. For each entity node and relation edge in the knowledge graph, its corresponding semantic vector representation is calculated. Semantic similarity is calculated using the cosine similarity formula: in, and These represent the semantic vector representations of the two knowledge nodes, respectively. Represents the vector dimension. The value range is [-1, 1], and the closer the value is to 1, the higher the semantic similarity.

[0054] Specifically, in the candidate fusion node pair screening stage, node pairs with semantic similarity reaching a preset semantic similarity threshold are identified as candidate fusion node pairs; node pairs with semantic similarity below the preset semantic similarity threshold are excluded, and subsequent graph structure consistency verification is not performed on them. Graph structure consistency verification is only performed on the selected candidate fusion node pairs.

[0055] Graph structure consistency verification is used to perform graph structure-level verification analysis on candidate node pairs. Verification includes analysis of the overlap of neighbor node sets, the matching degree of relation types, and the similarity of path patterns.

[0056] Preferably, graph structure similarity It is calculated by weighting neighbor overlap, relation type matching degree, and path pattern similarity, and the calculation formula is as follows: in, This represents the graph structure similarity between node A and node B. These represent the weighting coefficients for neighbor overlap, relation type matching, and path pattern similarity, respectively. These represent the neighbor overlap, relationship type matching, and path pattern similarity between node A and node B, respectively.

[0057] The default weight is set to ,and In practice, if a certain item cannot be calculated due to missing data, the missing item will be set to zero, and the remaining weights will be renormalized.

[0058] Specifically, neighbor overlap The calculation method is as follows: in, , Let A and B represent the sets of neighboring nodes, respectively. This represents the number of common neighbor nodes of node A and node B (i.e., the size of their intersection). This represents the total number of all neighboring nodes of node A and node B (i.e., the size of the union).

[0059] Furthermore, the relationship type matching degree is calculated based on a pre-established hierarchical tree of power grid relationship types. Fine-grained relationship types are aggregated upwards according to the following rules: First-level categories include containment relationships, operational relationships, state relationships, causal relationships, and temporal relationships; examples of second-level categories are: operational relationships → control operations, maintenance operations, test operations; state relationships → operating states, alarm states, fault states; temporal relationships → sequential relationships, synchronization relationships, and periodic relationships; causal relationships → direct causation and indirect causation; and containment relationships → spatial containment, organizational containment, and logical containment.

[0060] During aggregation, fine-grained relationship types Mapped to its first-level class For nodes A and B, respectively, calculate the distribution vector of their neighbor relationship types on the first-level class. and .

[0061] in, , These represent the distribution vectors of the neighbor relationship types of node A and node B on the first-level class, respectively. Indicates the total number of relation types in the first-level class; These represent the percentages of the neighbors of node A and node B that belong to the i-th first-level class, respectively. , This represents the number of edges belonging to the i-th class after aggregation of relationships with A among the neighbors of node A; j is the traversal index variable in the summation symbol. This represents the summation of all first-level relation edges of node A, i.e., the total number of neighbor relation edges of node A. This is used to normalize the distribution vector, making it... Similarly, It can be calculated in the same way.

[0062] Specifically, relation type matching degree The calculation method is as follows: in, This represents the minimum value of two vectors in the i-th dimension. The summation symbol represents the maximum value of two vectors in the i-th dimension. This represents the summation over all m first-level category dimensions. In an optional embodiment, if fine-grained differences need to be preserved, weighting can be performed based on hierarchical distance: 1.0 for the same fine-grained type, 0.7 for the same second-level category, 0.4 for the same first-level category, and 0 for different first-level categories.

[0063] Specifically, path pattern similarity The path length is obtained by performing a bounded random walk starting from candidate nodes A and B. K represents the path length of the random walk; each node is sampled. There are 10 paths, each path is represented as 10. Where P represents a specific sampling path; Indicates the node type of the i-th node in the path; This represents the relation type of the i-th edge in the path. The path is converted into a template string, and the frequency of each template is counted to form a path template frequency vector. , Let A and B represent the path pattern frequency vectors of node A and node B, respectively. The path pattern similarity can be calculated using any of the following methods: in, Represents the dot product of two vectors. , These represent the magnitudes of the two vectors, respectively.

[0064] Alternatively, the Jaccard coefficients of the template set can be used. ,in, , These are template sets for the sampling paths of nodes A and B, respectively.

[0065] Preferably, when calculating the fusion confidence score based on the combined semantic similarity and graph structure similarity, a weighted summation method is used, with the semantic similarity weight set to 0.6 and the graph structure similarity weight set to 0.4. The fusion confidence threshold is set to 0.75; candidate pairs below this threshold are not fused, thereby effectively improving the accuracy and reliability of power grid knowledge graph fusion.

[0066] Furthermore, in the stage of determining the fusion relationship, a merging relationship or an association relationship is established for node pairs that meet the fusion conditions. Let semantic similarity be represented as... Graph structural similarity is represented as The attribute conflict rate is expressed as The consistency rate of core attributes is expressed as .

[0067] Among them, the attribute conflict rate The core attribute consistency rate is the ratio of the number of conflicting attribute items to the number of non-empty comparable attribute items for the same entity within the overlapping effective time, i.e., Cconf = Nconflict / Ncompare. Ncompare represents the number of non-empty and comparable attribute items for the same entity within the overlapping effective time, and Nconflict represents the number of conflicting attribute items. Even if multiple rules are triggered for the same attribute item, it is only counted once. Before comparison, attribute names and units of measurement are standardized. Single-valued non-numerical attributes are judged based on whether their normalized values ​​are consistent, while numerical attributes are judged based on whether the difference exceeds the ontology's preset tolerance. The core attribute is the ratio of the number of consistent core attributes to the number of comparable core attributes between the two parties, i.e., Mcore = Ncore_match / Ncore_compare, where Ncore_compare is the number of comparable core attributes between the two parties, and Ncore_match is the number of consistent attributes determined according to the following comparison criteria. Core attributes are pre-determined by the business ontology corresponding to the entity type, including unique device identifier, device type, and voltage level, etc. When the denominator is 0, the corresponding indicator is considered uncalculated and cannot be used to determine that the merging conditions are met. Data should be supplemented or manual review should be performed.

[0068] Knowledge conflict confirmation is performed before the fusion results are written to the knowledge base: First, the same business entity is identified based on the device's unique identifier, master node identifier, and verified alias mapping. Attribute names, relationship names, units of measurement, data types, and time representations are unified, and the source, extraction time, and valid time interval are retained. Conflict comparison is only performed when describing the same entity or entity pair, the same attribute or relationship constraint, and the valid time intervals overlap or belong to the same valid state at the same evaluation time. Legitimate historical changes with non-overlapping valid times are saved by version; missing values ​​and information where the entity's corresponding relationship or valid time cannot be determined are entered into a verification queue and do not directly overwrite existing knowledge.

[0069] The preset conflict determination rules include attribute conflict determination and relationship and logic conflict determination.

[0070] The determination of attribute conflicts is as follows: for single-valued attributes with the same name or synonyms for the same entity, if the values ​​of non-numeric attributes are still inconsistent after normalization using synonym representations, then it is considered an attribute conflict; for numeric attributes, after unifying the units of measurement, if... If the values ​​are equal, then a conflict is identified, where x and y are the numerical attribute values ​​from the two sources, respectively. This is the absolute tolerance threshold. r is the relative tolerance threshold. and r is preset by the power grid business ontology, and attributes that require precise consistency are set to 0; set attributes are only identified as conflicting when they violate cardinality constraints or mutual exclusion value constraints.

[0071] The determination of relational and logical conflicts is based on the following: Pre-defined mutually exclusive relationships exist simultaneously within the same subject, object, and overlapping valid time period; or, adding new knowledge to the view to be merged violates data type, numerical range, relation cardinality, temporal order, or causal constraint rules. A knowledge conflict is determined when output values ​​contradict each other or rules are violated. Conflicts are classified into three levels: severe, moderate, and minor. Severe conflicts involve critical rules related to safety, protection, topology, or scheduling control; moderate conflicts affect equipment status, parameters, or maintenance conclusions but can be verified by other sources; and minor conflicts only affect non-critical descriptions, formats, or low-importance attributes.

[0072] A merge relationship is determined when the following conditions are met: the entity types are the same or belong to a predefined compatible type; ; Consistency rate of core attributes Attribute conflict rate Or there may be a clear correspondence between aliases, abbreviations, synonyms, old names, scheduling names, and ledger names. The criteria for determining "semantic similarity or high similarity" are: the entity types are the same or compatible, and... The consistency rate of core attributes is no less than 90%.

[0073] For node pairs that meet the merging criteria, calculate the information richness. ,in Indicates attribute completeness. This indicates that the degree of the relation is normalized. Indicates the authority of the source in the rating. This indicates the extraction confidence level. Indicates time freshness; selection The node with the higher F value is selected as the master node. If the F difference is less than 0.05, the data source with higher authority is selected; otherwise, manual verification is required. After determining the master node, the alias or synonym linking step is executed: a unique master node identifier is assigned to the merged node group. Establish `aliasOf` or `sameAs` edges between slave nodes and master nodes; record "slave node ID → master node ID" in the alias index table; rewrite aliases, synonyms, and old names as master node identifiers during queries; retain the original node ID and original source as traceability information, and do not delete them directly; prioritize matching the master node during subsequent incremental fusion.

[0074] Furthermore, if a candidate node pair does not meet the above merging conditions, but meets any of the following conditions, it is determined to be an associated relationship: Scenario 1, And graph structure ( and ); Scenario 2: The semantic similarity is less than 0.75, but there is a co-occurrence frequency exceeding the threshold, the same plant, the same interval, the same equipment type, or a relationship path or business rule association; Scenario 3: The two entities belong to different aspects of the same business object, such as "equipment" and its "defect record", "maintenance work order" or "monitoring point".

[0075] Specifically, the criteria for determining "having semantic association but not being completely identical" are as follows: the entity types may be different, but the semantic similarity is greater than or equal to 0.75, or although the semantic similarity is less than 0.75, at least one of the following is satisfied: co-occurrence, topological proximity, or business rules.

[0076] Furthermore, the association types include those related to the same plant / station, the same bay, electrical connection, superior / subordinate relationship, inclusion, monitoring, control, maintenance, fault association, causal association, temporal association, spatial proximity, functional similarity, parameter similarity, and document reference. To quantify the degree of association, this invention classifies association strength into three levels: strong, medium, and weak.

[0077] The association strength score is calculated using the following formula: in, Indicates the correlation strength score. Indicates path proximity. This represents the normalized value of co-occurrence frequency. Indicates the degree of matching of business rules. When When it is determined to be a strong association, When it is determined to be a medium association, when It is determined to be a weak association.

[0078] Preferably, for knowledge conflicts that arise during the fusion process, this invention employs a confidence-based fusion strategy for resolution. The overall confidence level is calculated using the following formula: Where A represents the data source authority score, which measures the authority of the institution or system providing the data; R represents the extraction method reliability score, which measures the accuracy of the extraction model used to acquire the knowledge; and T represents the timeliness score, which measures the timeliness of the data over time. , , These represent the weighting coefficients for the data source authority score, the extraction method reliability score, and the time freshness score, respectively, and are set to [default value]. , , .

[0079] Furthermore, the data source authority score A is pre-set based on the data provider's level and function within the power grid system. In specific implementations, the score is 1.0 for dispatching agencies, 0.9 for provincial power grid companies, 0.8 for municipal power supply companies, 0.7 for county-level power supply companies, 0.75 for research institutes, 0.65 for equipment manufacturers, and 0.3 for individual publishers. The extraction method reliability score R is pre-set based on different extraction methods. In specific implementations, the score is 0.85 for rule-based extraction methods; for deep learning model-based extraction methods, the score is equal to the F1 score of the model on the validation set; if an ensemble model is used, the score is equal to the weighted average of the reliability of each sub-model. The time freshness score T is calculated using an exponential decay function, and its calculation formula is: in, This indicates the half-life of the corresponding data type. In specific implementations, the half-life of the data is used... The device parameter half-life is set to 1 day. The policy and regulation half-life is set at 180 days. Set to 365 days.

[0080] When resolving knowledge conflicts, priority is given to retaining knowledge sources with higher overall confidence scores (C). Specifically, for the same group of knowledge conflicts, the overall confidence scores of each knowledge source are obtained, and the highest score is determined. and the second highest score .like and The difference is greater than or equal to 0.1, or If the score is greater than or equal to 0.85, the highest score will be retained. The corresponding knowledge source; if the difference is less than 0.1 and If the confidence level is less than 0.85, the conflict is determined to be unresolved automatically. The conflict knowledge is then recorded in the conflict knowledge base, triggering a manual review process. The confidence level selection applies to the same fact and overlapping valid time intervals of identified conflicts, not directly covering legitimate versions from different periods. After conflict resolution, the consistency rules that triggered the conflict are re-executed; only those that pass verification are written to the main knowledge graph. Those that fail or whose critical business conflicts cannot be resolved are transferred to the conflict knowledge base for review. Unused knowledge and selection criteria are retained as source traceability records.

[0081] Optionally, after obtaining the updated knowledge graph, the storage optimization module uses a distributed graph database to store the updated knowledge graph, distributes the updated knowledge graph to multiple storage nodes using a graph partitioning algorithm, and stores the graph data in the storage nodes using a compressed storage format.

[0082] Specifically, the distributed graph database adopts a distributed graph database cluster deployment method, and the cluster consists of three types of nodes: coordination nodes, compute nodes, and storage nodes. Coordination nodes are responsible for task scheduling and query routing; a single cluster is configured with 1 to 3 coordination nodes to achieve high availability. Compute nodes are responsible for executing graph traversal and graph computation tasks, supporting horizontal scaling. Storage nodes are responsible for persistent storage of graph data; the number of storage nodes is determined based on the scale of the graph data and the data distribution strategy. The cluster as a whole adopts a master-slave replication architecture, with each shard configured with one master replica and two slave replicas. The master replica supports read and write operations, while the slave replicas support read-only operations and failover.

[0083] The proposed graph segmentation algorithm distributes a large-scale knowledge graph across multiple storage nodes. The algorithm design comprehensively considers the balance of node degree distribution and edge distribution. First, it constructs a structural feature matrix of the graph, including node degree statistics, edge weight distribution, and community structure detection results. Then, it employs a label-based graph segmentation method, iteratively optimizing to minimize the number of cut edges while maintaining a balanced subgraph size. During segmentation, a streaming segmentation strategy is used to process ultra-large-scale graph data, and incremental segmentation reduces the impact of resegmentation on online services. The segmentation results record the mapping relationship between each node and the shard to which each edge belongs; this mapping relationship is stored in the metadata service of the coordinating node.

[0084] The storage nodes employ an adjacency list compressed storage format to manage graph data. The adjacency list structure comprises two core data structures: a node table and an edge table. The node table stores node identifiers, node types, attribute lists, and adjacent edge identifier lists; the attribute lists are stored in key-value pair format. The edge table stores edge identifiers, start node, end node, relationship type, edge attributes, and timestamps. Node identifiers use 64-bit integer encoding, supporting a unique identifier space for over 1800 trillion nodes.

[0085] Furthermore, the Delta encoding algorithm is used to compress the node identifier sequence. Delta encoding transforms the original large integer sequence into a small integer sequence based on the differences between adjacent elements, thereby improving the compression ratio. In the specific implementation, the Delta encoding block size is 128, meaning that every 128 consecutive node identifiers constitute a block. The first identifier within a block is stored using its original value, while subsequent identifiers are stored using variable-length encoding based on the differences from the previous identifier. Variable-length encoding uses a UTF-8 style byte sequence representation; the smaller the difference, the fewer bytes are required.

[0086] Furthermore, a multi-level index structure is employed to accelerate query operations. This index structure comprises three dimensions: node type index, attribute value index, and timestamp index. The node type index is built on a B+ tree, supporting range queries and equality queries based on node type. The attribute value index supports indexing both numeric and string attributes; numeric attributes use a B+ tree index, while string attributes use an inverted index structure. The timestamp index uses an LSM tree structure, supporting efficient time range queries and rapid location of the latest version data. The query operation first involves a coordinating node parsing the query request to determine the shard range involved in the query. Then, subqueries are distributed in parallel to each storage node. The storage nodes utilize the multi-level index to quickly locate the target data and perform graph traversal calculations. Finally, the coordinating node aggregates the query results from each shard and returns them to the client.

[0087] Step S4: Perform an integrity assessment on the updated knowledge graph to obtain an integrity assessment result. The integrity assessment result is obtained based on connectivity score, coverage score, and consistency score. The coverage score is determined according to a preset power grid business domain ontology, which includes equipment ontology, topology ontology, operation ontology, maintenance ontology, and regulatory ontology.

[0088] In one implementation, step S4 is performed by the integrity assessment module. The integrity assessment module is used to assess the integrity of the updated knowledge graph from three dimensions: connectivity, coverage, and consistency, to obtain the integrity assessment result.

[0089] Specifically, the integrity assessment module calculates the connectivity score of the updated knowledge graph. The connectivity score is determined based on the average path length and the number of connected components.

[0090] Knowledge graph snapshots at the same evaluation time showing the proportion of reachable nodes The calculation is performed above, where V represents all entity nodes and isolated nodes within the evaluation scope, and E represents the currently valid relation edges, excluding attribute value fields. This represents the total number of nodes. The node range, relationship type range, and valid time conditions remain consistent within the same evaluation period; directed relationships are traversed according to the direction defined by the business logic; the ontology specifies that bidirectional relationships establish bidirectional traversal edges, and unidirectional reachability is not considered bidirectional reachability. Let B... For reachability indicators: when And when there exists a finite relation path from node i to node j, ;otherwise The node itself is not counted as a reachable node pair.

[0091] Number of reachable ordered node pairs For all distinct node pairs B The sum represents the number of reachable node pairs. The proportion of reachable node pairs is... The number of reachable ordered node pairs Total number of ordered node pairs that are distinct from all nodes The ratio, that is The value range is [0,1]; the denominator is the number of ordered node pairs of all distinct nodes, and the numerator only counts the reachable node pairs; in an undirected graph, the same unordered node pair is counted in two directions. For example, when there are 3 nodes containing only a→b and b→c, the reachable pairs are (a,b), (a,c), and (b,c). , .

[0092] During computation, starting from each node i, a breadth-first traversal is performed according to the relational direction, setting access markers to avoid loops and duplicate counts; when reaching other nodes j for the first time, a... Set to 1, and record the shortest path length in terms of the number of relation edges. .make Let i be the number of other nodes reachable from the source node i. For all The sum of the traversal messages is achieved by passing them across shards. The messages are deduplicated and summarized using the source node identifier and the target node identifier as keys, and included in the cross-shard path. During incremental updates, the reachable set of source nodes affected by relation changes is recalculated. If the scope of the impact cannot be determined, a full traversal is performed.

[0093] When N≤1, there are no distinct node pairs, according to the convention. The report will then mark the number of nodes as insufficient.

[0094] The average path length is the average of the shortest path lengths between all reachable node pairs in the knowledge graph, and can be calculated using the following formula: in, Let Q represent the average path length, and let Q be the set of all reachable ordered node pairs. and This represents two nodes in a knowledge graph. express Nodes and The shortest path length and average path length of a node are only related to... The average of the node pairs in the data is calculated. ;like Then the average path length is not calculated and Take 0. hour This represents the normalized score for the average path length.

[0095] The number of connected components is the number of independent connected subgraphs in a knowledge graph. Ideally, a single connected graph corresponds to 1 connected component. The number of connected components K is counted for weakly connected components (ignoring edge directions) in directed graphs and for ordinary connected components in undirected graphs. hour , hour 0. All three connectivity metrics are based on the same graph snapshot. For example, the shorter the average path length and the closer the number of connected components is to 1, the higher the connectivity score.

[0096] Specifically, connectivity score It is obtained by weighting the reachability ratio, the normalized score of the average path length, and the normalized score of the connected components. The calculation formula is as follows: in, This indicates the proportion of reachable nodes. This represents the normalized score for the average path length. This represents the normalized score of the connected components; Connectivity assessment can also include node degree distribution analysis, key node identification, and reachability matrix calculation. Node degree distribution analysis counts the number of nodes corresponding to each degree value to determine if the graph structure conforms to scale-free properties. Key node identification uses betweenness centrality and proximity centrality indicators to identify nodes in the graph network that play a significant bridging role. The reachability matrix calculates the Boolean reachability values ​​between any pair of nodes to accurately determine the feasibility of specific business query paths.

[0097] The integrity assessment module calculates the coverage score of the updated knowledge graph based on a pre-defined power grid business domain ontology. The power grid business domain ontology defines the core concept hierarchy and business relationship model within the power grid business scenario, including equipment ontology, topology ontology, operation ontology, maintenance ontology, and regulatory ontology. The coverage score includes entity type coverage, relationship type coverage, and attribute coverage. Entity type coverage can be calculated using the following formula: in, Indicates entity type coverage. This represents the number of entity types in the knowledge graph that have been mapped to the ontology. This represents the total number of entity types defined in the ontology.

[0098] Relation type coverage and attribute coverage are calculated using a similar method. Coverage assessment may also include gap analysis to identify insufficiently covered conceptual regions in the ontology and generate a list of supplementary knowledge suggestions.

[0099] Specifically, coverage score It is obtained by weighting entity type coverage, relation type coverage, and attribute coverage, and the calculation formula is as follows: in, Indicates entity type coverage. Indicates relation type coverage. Indicates attribute coverage.

[0100] The integrity assessment module also performs consistency checks on the updated knowledge graph based on a preset set of consistency rules, obtaining a consistency score. The consistency rule set includes data type constraint rules, relation mutual exclusion rules, numerical range constraint rules, temporal consistency rules, and causal constraint rules. Specifically, data type constraint rules verify whether attribute values ​​conform to preset data type definitions; for example, voltage level attribute values ​​must be specific enumerated values. Relationship mutual exclusion rules verify the mutual exclusion between specific relation types; for example, the same pair of devices cannot simultaneously have both "series connection" and "parallel connection" relationships. Numerical range constraint rules verify whether numerical attributes are within a reasonable range; for example, transformer load rates must be within a certain range. arrive between.

[0101] Consistency checks are performed by the rule-based reasoning engine. Rule-based reasoning employs a hybrid strategy combining forward-chain reasoning and backward-chain reasoning. Forward-chain reasoning derives implicit conclusions from known facts, while backward-chain reasoning searches for knowledge that satisfies the conditions based on the query target. This hybrid reasoning strategy detects logical contradictions and semantic conflicts within the knowledge graph.

[0102] Specifically, the consistency assessment uses a rule-based reasoning engine to detect logical contradictions and semantic conflicts in the knowledge graph. The rule-based reasoning engine loads a predefined set of consistency rules. The consistency assessment output includes a consistency score. The system includes a conflict list, improvement suggestions, and a structured JSON report. Each conflict in the conflict list contains a rule ID, conflict type, involved nodes / edges, severity, and source.

[0103] Furthermore, the consistency score The value range is 0-100, and its specific calculation method is as follows: Let N be the total number of rules involved in the inspection, and C be the set of detected conflicts. The weight w corresponding to each severity level is: Severe Conflict medium-level conflict minor conflict ,but: If the conflict involves critical business rules, it is multiplied by a penalty factor of 0.8; when there is inconsistency in distributed multi-replicas, each inconsistent record is counted as a medium conflict.

[0104] The consistency assessment also relies on a distributed consistency protocol to ensure data consistency among multiple replicas. This protocol employs a variant of the Raft consensus algorithm, optimized for the characteristics of graph data. The protocol includes three core mechanisms: leader election, log replication, and snapshot synchronization. Leader election uses a random timeout strategy, with the timeout set to a random value between 150 and 300 milliseconds. Log replication uses a pipelined batch replication strategy to improve replication throughput. Snapshot synchronization is used to quickly synchronize the state when followers are severely lagging; snapshots are triggered when the number of log entries exceeds 10,000 or the log size exceeds 500 MB.

[0105] The integrity assessment module performs a weighted summation of connectivity scores, coverage scores, and consistency scores according to preset weights to obtain the integrity assessment result. In the specific implementation, the preset weights are 30% for connectivity, 40% for coverage, and 30% for consistency. Specifically, the comprehensive integrity score is calculated using a normalized weighted summation formula: Among them, connectivity score Coverage score and consistency score The results are calculated using the aforementioned formulas and will not be repeated here. The integrity assessment results are output in the form of a quantitative score, including a list of issues and improvement suggestions, and can be exported as a structured data format. The assessment result report contains a detailed list of issues and improvement suggestions, and can be exported as a structured data format for subsequent processing. The above weights can be configured according to business needs, and this application does not impose any restrictions on them.

[0106] S5. Collect user feedback on the knowledge base content.

[0107] In one implementation, step S5 is performed by a feedback collection module. This module collects user feedback on the knowledge base content. Through a user interaction interface, the feedback collection module receives user satisfaction levels and feedback regarding the knowledge base content, and categorizes and prioritizes the received feedback. The ranking results are used to support the continuous optimization of the knowledge base.

[0108] The user interface provides three access methods: web-based, mobile-based, and API-based. The web-based interface offers a graphical user interface (GUI) where users access the knowledge base portal via a browser to perform queries, browse, and submit feedback. This interface is responsive and adaptable to various display sizes. The mobile-based interface provides a dedicated mobile application that supports iOS and Android operating systems. Its interface is optimized for touch operation and supports quick feedback submission and push notifications. The API-based interface provides standardized RESTful API services to external systems. External systems call the feedback submission interface via HTTP requests. This interface uses the OAuth 2.0 protocol for authentication and access control and supports batch feedback submission and feedback status queries.

[0109] Specifically, the user interaction interface supports three access methods: web, mobile, and API. The web interface provides a complete graphical user interface, allowing users to access the knowledge base portal through a browser to query, browse, and submit feedback. The interface adopts a responsive design, displaying correctly on devices of different sizes. The mobile interface provides a dedicated mobile application supporting the two major operating systems, iOS and Android. The mobile interface is optimized for touch operation, supporting quick feedback submission and push notifications. The API provides standardized RESTful API services. External systems call the feedback submission interface via HTTP requests. The API uses the OAuth 2.0 protocol for authentication and access control, supporting batch feedback submission and feedback status queries.

[0110] Specifically, the feedback collection module performs automated classification processing on the received user feedback. In one implementation, the automated classification processing adopts a process of "keyword rule matching + text classification model + conflict review". First, the user feedback is preprocessed, including word segmentation, stop word removal, and standardization of professional terms. Then, keyword matching is performed, maintaining a dictionary of over 10,000 keywords in the power grid field. If the feedback is "incorrect, incorrect, numerical error, or description error", it is classified as knowledge accuracy feedback; if it is "expired, not updated, new regulations, or old standards", it is classified as timeliness feedback; if it is "missing, not available, not included, or missing relationship", it is classified as completeness feedback; and if it is "unintelligible, cannot be retrieved, disordered format, or ambiguous", it is classified as usability feedback. The resulting feedback categories include knowledge accuracy feedback, timeliness feedback, completeness feedback, and usability feedback. Knowledge accuracy feedback refers to situations where users point out errors or inaccuracies in the knowledge content, and its subcategories include numerical errors, description errors, logical errors, and citation errors. Timeliness feedback refers to situations where users point out that knowledge content is outdated or not updated in a timely manner. Subcategories include outdated equipment parameters, updated standards and specifications, and changes in policies and regulations. Completeness feedback refers to situations where users point out missing information in knowledge content. Subcategories include missing equipment, missing relationships, and missing attributes. Usability feedback refers to situations where users point out problems with the way knowledge is expressed or presented. Subcategories include ambiguous expression, inconsistent formatting, and difficulty in retrieval.

[0111] Feedback intent recognition employs a combination of keyword matching and text classification models. The keyword matching module maintains a keyword dictionary containing over 10,000 professional terms and common expressions related to power grid operations. The results of keyword matching are used as auxiliary features input into the text classification model. The text classification model uses a finely tuned pre-trained language model. This model shares its underlying parameters with the entity recognition model in step S2, and its classification head is independently trained for the aforementioned four classification tasks.

[0112] Specifically, the text classification model uses a fine-tuned pre-trained language model to output four class probabilities; if the model has the highest probability... Use the model results; if the model probability The results are determined by keywords; if the two conflict and the model confidence is high... The data is then transferred to manual review. In practice, the accuracy of this classification model is no less than 92%, and the recall rate is no less than 89%.

[0113] Feedback prioritization scoring is used to determine the order in which feedback is processed. This scoring takes into account both the level of detail in the feedback content and the authority of the feedback source.

[0114] The level of detail is assessed based on the following four dimensions: word count of the problem description, whether supporting materials are provided, whether specific locations are indicated, and whether modification suggestions are given. Each dimension corresponds to a score of 0 to 25 points, and the total score for the four dimensions is 100 points.

[0115] Specifically, in terms of detail The scoring rules are as follows: 5 points for 0-20 words in the problem description, 10 points for 21-50 words, 15 points for 51-100 words, 20 points for 101-200 words, and 25 points for more than 200 words; 0 points for no supporting materials, 10 points for screenshots or links, 15 points for documents, 20 points for multiple source materials, and 25 points for authoritative documents; 0 points for no specific location, 10 points for modules, 15 points for pages, 20 points for entities or relationships, and 25 points for precise IDs or URLs; 0 points for no modification suggestions, 5 points for vague suggestions, 10 points for general suggestions, 20 points for specific and actionable suggestions, and 25 points for specific suggestions with supporting evidence.

[0116] Authority is assessed based on the following four dimensions: user role level, historical feedback adoption rate, type of organization, and feedback frequency. Each dimension corresponds to a score of 0 to 25, and the total score for the four dimensions is 100 points.

[0117] Specifically, authoritative The scoring rules are as follows: In terms of user role level, ordinary users get 5 points, registered users get 10 points, professional users get 15 points, experts get 20 points, and administrators or dispatchers get 25 points; in terms of historical feedback adoption rate, less than 10% gets 5 points, 10-30% gets 10 points, 30-50% gets 15 points, 50-70% gets 20 points, and greater than 70% gets 25 points; in terms of organizational type, individuals get 5 points, manufacturers get 10 points, county companies get 15 points, prefecture-level cities get 20 points, and provincial or dispatching institutions get 25 points; in terms of feedback frequency, very few get 5 points, occasional get 10 points, average get 15 points, frequent get 20 points, and very frequent get 25 points.

[0118] Furthermore, the feedback priority score is calculated according to the following formula: in, Indicates feedback priority rating; The score indicates the level of detail. Indicates an authority score. This represents the weighting coefficient corresponding to the detail score; This represents the weighting coefficient corresponding to the authority score. In the specific implementation, The value is 0.6. The value is 0.4. Feedback scores are categorized as follows: 60-79 are considered high priority, 60-79 are considered medium priority, and less than 60 are considered low priority. This priority score determines the processing order; high-priority feedback is prioritized and assigned to experts in the relevant field. The specific values ​​and parameters described above are illustrative and can be adjusted by those skilled in the art according to actual needs.

[0119] S6. Based on the integrity assessment results and the user feedback information, update the update frequency and knowledge fusion parameters of each data source, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

[0120] In one implementation, step S6 is executed by the strategy optimization module. The strategy optimization module updates the update frequency and knowledge fusion parameters of each data source based on the integrity assessment results and user feedback information. The adjusted update frequency of each data source is used for data collection in the next round of step S1, and the adjusted knowledge fusion parameters are used for knowledge fusion in the next round of step S3. The adjusted update frequency and knowledge fusion parameters do not constitute knowledge graph increments but serve as input parameters for the next round of data collection and knowledge fusion. The strategy optimization module analyzes the knowledge evolution effect based on the integrity assessment results and user feedback information, dynamically adjusting the update frequency and knowledge fusion parameters of each data source. The knowledge fusion parameters include a semantic similarity threshold, graph structure similarity weight, and fusion confidence threshold. Adjusting these parameters affects the selection of candidate fusion node pairs and the calculation of fusion confidence scores in step S3, thereby influencing whether fusion processing is performed.

[0121] The update frequency is adjusted based on a multi-dimensional weighting model. This model determines the weight of each data source by integrating the following four dimensions: timeliness, importance, source reliability, and user attention. The timeliness dimension assesses the frequency of data changes; the timeliness weight is calculated based on historical data change rate statistics, with higher change rates resulting in higher timeliness weights. The importance dimension assesses the criticality of data to power grid operations; the importance weight is determined based on the position of the data source's business domain within power grid operations. Data from the dispatching and operation domain has the highest importance weight, followed by the equipment management domain, with relatively lower weights for the administrative management domain. The source reliability dimension assesses the trustworthiness of the data provider, with weight values ​​determined based on the data source's system type and operation and maintenance management level. The user attention dimension assesses the frequency of user queries and feedback tendencies for specific knowledge content; the user attention weight is calculated based on historical query log analysis and feedback sentiment analysis results.

[0122] Specifically, for each data source, scores for the four dimensions mentioned above are calculated and normalized to 0-1. Among these, timeliness... The importance is determined by the ratio of the variance of the historical rate of change to a threshold. The values ​​are: scheduling operation domain 1.0, equipment management domain 0.8, marketing domain 0.6, and administration domain 0.4; source reliability. The base score for system type is adjusted by adding a maintenance level correction. For example, scheduling automation systems are scored 0.95, SCADA systems 0.95, production management systems 0.9, marketing systems 0.8, and external network systems 0.5. Then, adjustments are made by ±0.1 based on availability, data quality, and security level; user attention is also considered. The result is obtained by normalizing query frequency, number of responses, and feedback sentiment analysis results. A timeliness weight is set. Importance weight Source reliability weight User attention weight The sum of all weights is 1, used to adjust the contribution of different dimensions to the update requirement, thus forming the overall update requirement score. The calculation formula is: . The value ranges from 0 to 1, and the larger the value, the more urgent the need to update the data source.

[0123] Furthermore, the update mode is configured differently based on the comprehensive update requirement score U. The update mode mapping rule is as follows: Real-time updates are used, with a delay of ≤5 seconds; Updates are performed on a minute-by-minute basis, ranging from 1 minute to 1 hour. Updated hourly, from 1 to 24 hours; Updated daily, every 1-7 days; Manual update is used.

[0124] Based on the above mapping rules, for operational data and policy changes with high timeliness requirements, a real-time update mode is adopted, with a data latency of no more than 5 seconds from collection to storage. Updates are triggered using an event-driven mechanism, with data change events directly pushed from the collection layer to the processing layer. For equipment parameters and technical specifications with medium timeliness requirements, a scheduled update mode is adopted. In the scheduled update mode, the update cycle is adaptively set based on the frequency of knowledge type changes, ranging from 1 hour to 7 days. For static reference information with low timeliness requirements, a manual update mode is adopted, triggering the update operation only upon receiving a clear update instruction or when a knowledge base version is released.

[0125] After determining the update mode, the update frequency adjustment amount is further calculated. The It is used to characterize the magnitude of the frequency adjustment based on the current update. Its calculation formula is: .in, Indicates the current update frequency. This represents a preset reference benchmark score, in this embodiment. .

[0126] The adjustment of knowledge fusion parameters is performed based on the evaluation results of knowledge evolution. The adjustments include preset semantic similarity thresholds, graph structure similarity weights, and preset fusion confidence thresholds. Parameter adjustment employs reinforcement learning, using changes in knowledge base quality indicators as reward signals to continuously optimize parameter configurations through online learning. Specifically, when the knowledge base integrity score continuously improves, the preset semantic similarity threshold and preset fusion confidence threshold are lowered, allowing more candidate fusion node pairs to meet the fusion conditions, thereby accelerating knowledge accumulation. When an increase in the knowledge conflict rate is detected, the preset semantic similarity threshold and preset fusion confidence threshold are raised, making the fusion conditions more stringent and improving fusion accuracy. If the integrity assessment decreases or the conflict rate increases, the fusion conditions are tightened; if the integrity continues to improve, the fusion conditions are relaxed to accelerate knowledge accumulation. The graph structure similarity weight can be adjusted according to the consistency of the knowledge graph structure.

[0127] The strategy optimization module also performs knowledge aging management. Based on the timeliness and change frequency of knowledge, knowledge aging management automatically calculates the recommended refresh cycle for knowledge. When knowledge has not been updated within the recommended refresh cycle, an early warning is triggered. The calculation of the recommended refresh cycle comprehensively considers the following factors: the average change cycle of the knowledge type, user query frequency, and feedback quality. Knowledge types include equipment parameters, technical specifications, operational data, policies and regulations, personnel information, and organizational information, each with a different basic refresh cycle.

[0128] In a specific application scenario, let's take the knowledge base update of a provincial power grid company as an example. This power grid company manages over 500 substations with voltage levels of 35kV and above, and over 20,000 kilometers of transmission lines. The daily real-time data volume generated by its dispatch and control system exceeds 10GB. After implementing the method described in this embodiment, the multi-protocol data access module simultaneously connects to the IEC 61850 substation automation system, the IEC 60870-5-104 dispatch master station system, and the Modbus distribution terminal system, achieving unified access to various types of data. The data acquisition interval is dynamically adjusted according to the data source type: second-level operational data uses a 1-second acquisition interval, minute-level alarm data uses a 60-second acquisition interval, and hourly-level equipment status data uses a 3600-second acquisition interval.

[0129] The distributed data cleaning algorithm runs on a distributed computing cluster with 20 computing nodes, processing over 100GB of data daily. Noise detection accuracy exceeds 95%, and redundancy elimination rate exceeds 80%. The knowledge extraction stage performs entity recognition and relation extraction on power grid dispatch operation logs, including dispatch instructions, operation records, maintenance requests, and accident reports. After fine-tuning the entity recognition model on annotated corpora in the power grid domain, the entity recognition F1 score reaches 91.3%, and the relation extraction F1 score reaches 88.7%. The knowledge graph fusion stage integrates newly added knowledge with the existing knowledge base, reducing the fusion processing time from 48 hours for manual review to less than 2 hours for automated processing.

[0130] After adopting a distributed graph database cluster for storage optimization, the number of storage nodes increased to 12, the number of shards to 36, and the total graph data exceeded 5 billion edges. The average query response time was reduced to less than 50 milliseconds. The compressed storage format saved approximately 35% of storage space, and the multi-level index structure improved the performance of complex graph traversal queries by about 5 times.

[0131] The integrity assessment is conducted daily with a full evaluation, maintaining coverage scores above 85%, connectivity scores above 90%, and consistency scores above 95%. The user feedback collection process handles over 5,000 pieces of feedback monthly, with automatic feedback categorization accuracy exceeding 90%. Priority scoring identifies and processes high-value feedback first. The strategy optimization process dynamically adjusts and updates strategies based on assessment results and user feedback, resulting in an approximately 15% improvement in the overall knowledge base quality score and an approximately 20% improvement in user satisfaction scores.

[0132] The implementation principle of the adaptive evolution and dynamic update method for a power grid knowledge base in Embodiment 1 of this application is as follows: Multi-source dynamic data is collected and preprocessed. An incremental knowledge graph is formed through entity recognition, relation extraction, and attribute extraction. Based on semantic similarity and graph structure consistency, the incremental knowledge graph is fused with the existing knowledge base. The updated knowledge graph is evaluated for integrity from three dimensions: connectivity, coverage, and consistency, and user feedback is collected. The update frequency and knowledge fusion parameters of each data source are updated according to the integrity evaluation results and user feedback. The adjusted update frequency and knowledge fusion parameters are then used in the next round of data collection and knowledge fusion, forming an adaptive closed loop. This allows the update strategy to automatically change according to the quality status of the knowledge base and user needs, thereby achieving adaptive adjustment of the knowledge base update strategy through a closed loop of evaluation, feedback, and parameter adjustment.

[0133] Example 2 Embodiment 2 of this application also provides an adaptive evolution and dynamic update system for a power grid knowledge base, used to execute the method described in Embodiment 1 above. (Refer to...) Figure 2The system includes a data access module, a knowledge recognition module, a knowledge fusion module, an integrity assessment module, a feedback collection module, and a strategy optimization module.

[0134] The data access module is configured to collect dynamic data from different data sources according to the update frequency corresponding to each data source, and preprocess the dynamic data to obtain standardized data. Specifically, the data access module includes a multi-protocol data access submodule and a preprocessing submodule. The multi-protocol data access submodule supports at least one of the IEC 61850 protocol, IEC 60870-5-104 protocol, and Modbus protocol, and can collect dynamic data according to timed collection tasks or event-triggered collection tasks; the preprocessing submodule uses a distributed data cleaning algorithm to perform at least one of the following on the dynamic data: noise detection and removal, redundancy identification and elimination, and missing value completion, to obtain standardized data.

[0135] The knowledge recognition module is configured to perform entity recognition, relation extraction, and attribute extraction on the standardized data to form a knowledge graph increment. Specifically, the knowledge recognition module uses a sequence labeling model combining a bidirectional long short-term memory network and a conditional random field for entity recognition, a Transformer encoder with attention mechanism enhancement for relation extraction, and a method combining rule templates and deep learning models for attribute extraction, outputting a set of knowledge triples; the head entity, tail entity, and entity in the knowledge triple set constitute the new knowledge nodes in the knowledge graph increment.

[0136] The knowledge fusion module is configured to determine the fusion relationship based on the semantic similarity and graph structure consistency between the newly added knowledge nodes in the knowledge graph increment and the nodes in the existing knowledge base, and to fuse the knowledge graph increment with the existing knowledge base based on the fusion relationship to obtain an updated knowledge graph.

[0137] Specifically, the knowledge fusion module calculates the semantic similarity between each newly added knowledge node in the knowledge graph increment and nodes in the existing knowledge base, and determines the node pairs whose semantic similarity reaches a preset semantic similarity threshold as candidate fusion node pairs; performs graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity, and calculates the fusion confidence score according to the semantic similarity and the graph structure similarity weight; when the fusion confidence score reaches the preset fusion confidence threshold, performs fusion processing on the candidate fusion node pairs, the fusion processing including node merging or establishing associated edges.

[0138] The integrity assessment module is configured to assess the updated knowledge graph from three dimensions: connectivity, coverage, and consistency, to obtain an integrity assessment result. Specifically, the integrity assessment module calculates the connectivity score of the updated knowledge graph; calculates the coverage score of the updated knowledge graph based on a preset power grid business domain ontology; performs consistency checks on the updated knowledge graph based on a preset consistency rule set to obtain a consistency score; and performs a weighted sum of the connectivity score, the coverage score, and the consistency score according to preset weights to obtain the integrity assessment result.

[0139] The feedback collection module is configured to collect user feedback on the knowledge base content. Specifically, the feedback collection module receives user feedback through a user interaction interface; automatically categorizes the user feedback and determines priority scores for different categories of user feedback based on the categorization results; and sorts the user feedback based on the priority scores to determine the processing order of the user feedback.

[0140] The strategy optimization module is configured to update the update frequency and knowledge fusion parameters of each data source based on the integrity assessment results and the user feedback information, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

[0141] In one embodiment, the system further includes a storage optimization module, configured to, after obtaining the updated knowledge graph, store the updated knowledge graph in a distributed graph database, distribute the updated knowledge graph to multiple storage nodes using a graph partitioning algorithm, and store the graph data in the storage nodes using a compressed storage format.

[0142] In one implementation, the strategy optimization module updates the update frequency of each data source based on at least one of the timeliness, importance, reliability, and user attention of each data source; and uses a reinforcement learning method to determine a reward signal based on changes in the knowledge base quality indicators, and updates the knowledge fusion parameters based on the reward signal.

[0143] The specific working process of each module can be referred to the corresponding descriptions of steps S1 to S6 in Example 1, which will not be repeated here.

[0144] The implementation principle of the adaptive evolution and dynamic update system for power grid knowledge base provided in Embodiment 2 of this application is as follows: This embodiment applies the above method to the adaptive evolution and dynamic update system for power grid knowledge base. Through the collaborative work of each module, the adaptive adjustment of the knowledge base update strategy is realized, thereby improving the timeliness, integration quality and credibility of the knowledge base.

[0145] Example 3 This embodiment provides an adaptive evolution and dynamic update system for a power grid knowledge base under a distributed architecture. Based on the system described in Embodiment 2, this embodiment is applicable to a multi-level management system consisting of a provincial dispatch center and multiple municipal and county-level power supply companies, and further improves the data access module, knowledge fusion module, and integrity assessment module.

[0146] In this embodiment, the provincial dispatch center deploys a core knowledge base cluster, the municipal power supply company deploys distributed knowledge base nodes, and the county power supply company accesses the superior knowledge base through an API interface.

[0147] Regarding the data access module, this embodiment adds support for the DNP3.0 protocol based on Embodiment 2. The DNP3.0 protocol adapter enables data acquisition from the distribution network automation system. The protocol conversion engine supports hierarchical conversion of data formats, converting the raw data collected at the county / district level into a unified intermediate representation before reporting it to the prefecture-level node. The prefecture-level node then performs data aggregation and standardization processing before synchronizing it to the provincial node.

[0148] Regarding the knowledge fusion module, this embodiment employs a federated learning approach to achieve collaborative updates of cross-level knowledge bases. Local city nodes train knowledge extraction models on local data, only updating and synchronizing model parameters to the provincial node. The provincial node aggregates the model parameters from all cities to generate a global model, which is then distributed to the local city nodes. Through this federated learning architecture, business data at each level remains local, eliminating the need to upload original data, effectively protecting data privacy and security, while simultaneously achieving cross-level knowledge sharing and collaborative evolution.

[0149] Regarding the integrity assessment module, this embodiment adds a cross-level consistency verification mechanism based on Embodiment 2 to verify the data consistency between the provincial knowledge base and the municipal knowledge base, ensuring the global consistency of key business knowledge. The cross-level consistency verification adopts an eventual consistency model, allowing for brief data synchronization delays but guaranteeing the consistency of the final state.

[0150] The implementation principle of the power grid knowledge base adaptive evolution and dynamic update system under a distributed architecture provided in Embodiment 3 of this application is as follows: This embodiment applies the above method to the power grid knowledge base adaptive evolution and dynamic update system under a distributed architecture. Based on the system described in Embodiment 2, the data access module adds DNP3.0 protocol support to realize the hierarchical conversion and reporting of county-level data. The knowledge fusion module uses a federated learning method to train the knowledge extraction model locally at each city node and only synchronizes the model parameters to the provincial node. The integrity assessment module verifies the data consistency between the provincial knowledge base and the city knowledge base through a cross-level consistency verification mechanism. Through the collaborative work of the above modules, the system protects the data privacy at each level while realizing the unified update and synchronization of the provincial, city, and county-level knowledge bases, improving the cross-level sharing capability and collaborative evolution efficiency of the knowledge base.

[0151] Example 4 This embodiment provides a system for rapidly constructing and updating a power grid emergency knowledge base for extreme natural disaster scenarios. Based on the system described in Embodiment 2, this embodiment adds an independently operating emergency knowledge base and further improves the data access module, knowledge identification module, knowledge fusion module, integrity assessment module, and feedback collection module.

[0152] In this embodiment, the emergency knowledge base operates independently of the regular knowledge base and adopts a lightweight deployment architecture, enabling rapid deployment and activation on mobile emergency command vehicles.

[0153] Regarding the data access module, this embodiment adds support for satellite communication links and portable measurement devices. The satellite communication adapter enables real-time data interaction with the headquarters command center; the portable device adapter allows emergency personnel to quickly access measurement data and on-site photos. The data acquisition strategy is adjusted to a high-priority mode, prioritizing the acquisition of equipment status and load data directly related to emergency response.

[0154] Regarding the knowledge recognition module, this embodiment enhances the ability to quickly process event scene documents, employs a lightweight model to perform real-time knowledge extraction on edge devices, and synchronizes the extraction results to the emergency knowledge base through an encrypted channel.

[0155] Regarding the knowledge fusion module, this embodiment simplifies the fusion process for emergency scenarios and adopts a rule-based rapid fusion strategy to maximize the knowledge update speed while ensuring basic accuracy.

[0156] Regarding the integrity assessment module, this embodiment adopts a simplified assessment strategy, performing only critical node reachability verification and basic consistency checks, reducing the assessment time from the usual minutes to seconds.

[0157] Regarding the feedback collection module, this embodiment supports voice feedback. Emergency responders can describe the problem by voice, and the system will automatically convert it into text feedback and classify it.

[0158] The implementation principle of the rapid construction and updating system for a power grid emergency knowledge base in extreme natural disaster scenarios provided in Embodiment 4 of this application is as follows: This embodiment applies the above method to the rapid construction and updating system for a power grid emergency knowledge base in extreme natural disaster scenarios. Based on Embodiment 2, an emergency knowledge base that operates independently of a conventional knowledge base is set up; the data access module accesses field data through satellite communication and portable measurement equipment and adopts high-priority acquisition; the knowledge recognition module extracts knowledge in real time on edge devices using a lightweight model; the knowledge fusion module adopts a rule-based rapid fusion strategy; the integrity assessment module performs key node reachability verification and basic consistency checks; the feedback collection module supports voice feedback and automatically converts it to text for classification. This enables rapid construction and updating of the emergency knowledge base, meeting the requirements for real-time performance and portability. Through the collaborative work of the above modules, the system achieves rapid construction and updating of the emergency knowledge base in extreme natural disaster scenarios, meeting the requirements of emergency response scenarios for the real-time performance and portability of the knowledge base.

[0159] Those skilled in the art will recognize that the units of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0160] In the embodiments provided in this application, it should be understood that the division of units is only a logical functional division. In actual implementation, there may be other division methods, such as multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored.

[0161] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0162] If the integrated unit is implemented as 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 technical solution of this application, in essence, or the part that contributes to related technologies, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application.

Claims

1. A method for adaptive evolution and dynamic updating of a power grid knowledge base, characterized in that, include: S1. Collect dynamic data from different data sources according to the update frequency corresponding to each data source, and preprocess the dynamic data to obtain standardized data; The dynamic data includes power grid operation data, equipment maintenance records, technological innovation information, and policy and regulatory change data. S2. Perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph; S3. Based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and the nodes in the existing knowledge base, determine candidate fusion node pairs; perform graph structure consistency verification on the candidate fusion node pairs to obtain graph structure similarity, and calculate the fusion confidence score based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs to obtain the updated knowledge graph; S4. Perform an integrity assessment on the updated knowledge graph to obtain an integrity assessment result. The integrity assessment result is obtained based on connectivity score, coverage score, and consistency score. The coverage score is determined according to a preset power grid business domain ontology, which includes equipment ontology, topology ontology, operation ontology, maintenance ontology, and regulatory ontology. S5. Collect user feedback on the knowledge base content; S6. Based on the integrity assessment results and the user feedback information, update the update frequency and knowledge fusion parameters of each data source, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.

2. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, The process of obtaining semantic similarity includes: pre-training a pre-trained language model based on power grid domain corpus, which includes power grid technical documents, dispatch operation records, equipment ledgers, maintenance work orders and technical standards; based on the pre-trained language model, obtaining the semantic vector representation of each newly added knowledge node and the nodes in the existing knowledge base, and calculating the semantic similarity based on cosine similarity.

3. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, Specifically, S3 is: Node pairs whose semantic similarity reaches a preset semantic similarity threshold are identified as candidate fusion node pairs; The graph structure consistency verification of the candidate fusion node pairs is performed to obtain graph structure similarity. The graph structure consistency verification includes: determining neighbor overlap based on the intersection and union of the neighbor node sets of the two nodes in the candidate fusion node pair; mapping the neighbor relationship types of the two nodes in the candidate fusion node pair to the first-level classes of the preset power grid relationship type hierarchy tree to obtain a relationship type distribution vector, and determining the relationship type matching degree based on the relationship type distribution vector; performing bounded random walks from the two nodes in the candidate fusion node pair, converting the paths obtained from the walks into template strings, and counting the frequency of each template string to form a path template frequency vector, and determining the path pattern similarity based on the path template frequency vector; and weighted summing the neighbor overlap, the relationship type matching degree, and the path pattern similarity to obtain the graph structure similarity. According to the preset graph structure similarity weight and semantic similarity weight, the semantic similarity and the graph structure similarity are weighted and summed to obtain the fusion confidence score. When the fusion confidence score reaches the preset fusion confidence threshold, the candidate fusion node pair is subjected to fusion processing.

4. The adaptive evolution and dynamic update method for a power grid knowledge base according to claim 3, characterized in that, The fusion process includes: Determine the fusion relationship of the candidate fusion node pairs, wherein the fusion relationship includes a merging relationship or an association relationship; wherein, when the fusion relationship is a merging relationship, node merging is performed, and when the fusion relationship is an association relationship, an association edge is established; For the candidate fusion node pair, it is determined whether there is a knowledge conflict according to the preset conflict determination rules; the preset conflict determination rules include attribute conflict determination and relationship and logic conflict determination. For candidate fusion node pairs that are identified as having knowledge conflicts, a confidence-based fusion strategy is used to resolve them. The confidence-based fusion strategy includes: performing a weighted summation based on the data source authority score, the extraction method reliability score, and the time freshness score to obtain a comprehensive confidence score, and retaining the knowledge source with the highest comprehensive confidence score in the knowledge conflict group based on the comprehensive confidence score. The data source authority score is used to measure the authority of the data provider in the power grid system; the extraction method reliability score is used to measure the accuracy of the extraction method used to acquire knowledge; and the time freshness score is used to measure the timeliness of knowledge over time.

5. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, The process of obtaining the integrity assessment results includes: Calculate the average shortest path length between all reachable node pairs in the updated knowledge graph, and count the number of independent connected subgraphs in the updated knowledge graph as the number of connected components; determine the reachable node pair ratio based on the ratio of the number of reachable node pairs to the total number of node pairs in the updated knowledge graph; perform a weighted summation based on the reachable node pair ratio, the normalized score of the average shortest path length, and the normalized score of the number of connected components to obtain the connectivity score; The entity types, relationship types, and attributes in the updated knowledge graph are matched with the preset power grid business domain ontology, and the coverage score is obtained by weighted summation based on the entity type coverage, relationship type coverage, and attribute coverage. The updated knowledge graph is subjected to consistency detection based on a preset set of consistency rules to obtain the consistency score. The set of consistency rules includes data type constraint rules, relation mutual exclusion rules, numerical range constraint rules, temporal consistency rules, and causal constraint rules. The connectivity score, coverage score, and consistency score are weighted and summed according to preset connectivity weight, preset coverage weight, and preset consistency weight to obtain the integrity assessment result.

6. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, The dynamic data acquisition process includes: acquiring dynamic data from different data sources through multi-protocol data access; acquiring dynamic data at intervals through timed acquisition tasks, and dynamically adjusting the acquisition intervals according to the historical data change rates of each data source; and initiating data acquisition when a preset event type is detected through event-triggered acquisition tasks.

7. The adaptive evolution and dynamic update method for a power grid knowledge base according to claim 1, characterized in that, The knowledge graph increment includes a set of knowledge triples; wherein, the set of knowledge triples includes relation triples and / or attribute triples; the relation triples consist of a head entity, a relation type, and a tail entity, and the attribute triples consist of an entity, an attribute name, and an attribute value.

8. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, The collection of user feedback information on the knowledge base content includes: Receive the user feedback information through the user interaction interface; The user feedback information is automatically categorized to obtain feedback categories, which include knowledge accuracy feedback, timeliness feedback, completeness feedback, and usability feedback. The level of detail is determined based on the number of words in the problem description, whether supporting materials are provided, whether specific locations are indicated, and whether modification suggestions are given. The level of authority is determined based on the user's role level, historical feedback adoption rate, type of organization, and feedback frequency. The level of detail and the level of authority are weighted and summed according to preset weighting coefficients for the level of detail and the level of authority to obtain a priority score. The user feedback information is sorted according to the priority score to determine the processing order of the user feedback information.

9. The method for adaptive evolution and dynamic updating of a power grid knowledge base according to claim 1, characterized in that, After obtaining the updated knowledge graph, a distributed graph database is used to store the updated knowledge graph. The distributed graph database includes coordination nodes, computing nodes, and storage nodes. The coordination nodes are used for task scheduling and query routing, the computing nodes are used to execute graph traversal and graph computation tasks, and the storage nodes are used to store graph data. The updated knowledge graph is distributed to multiple storage nodes using a graph partitioning algorithm. The graph partitioning algorithm is iteratively optimized with the optimization objectives of balancing the number of cut edges and the size of subgraphs. The graph data in the storage nodes is stored using an adjacency list compressed storage format, and the node identifiers are encoded and compressed; a multi-level index structure including at least one of node type index, attribute value index, and timestamp index is used to query the stored graph data.

10. A power grid knowledge base adaptive evolution and dynamic update system, characterized in that, include: The data access module is configured to collect dynamic data from different data sources according to the update frequency corresponding to each data source, and to preprocess the dynamic data to obtain standardized data. The knowledge recognition module is configured to perform entity recognition, relation extraction, and attribute extraction on the standardized data to form an incremental knowledge graph. The knowledge fusion module is configured to determine candidate fusion node pairs based on the semantic similarity between each newly added knowledge node in the knowledge graph increment and nodes in the existing knowledge base; The candidate fusion node pairs are subjected to graph structure consistency verification to obtain graph structure similarity; the fusion confidence score is calculated based on the semantic similarity and the graph structure similarity to determine whether to perform fusion processing on the candidate fusion node pairs; and when it is determined to perform fusion processing, the knowledge graph increment is fused with the existing knowledge base to obtain the updated knowledge graph. The integrity assessment module is configured to perform an integrity assessment on the updated knowledge graph and obtain an integrity assessment result, which is based on connectivity score, coverage score and consistency score. The feedback collection module is configured to collect user feedback on the knowledge base content. The strategy optimization module is configured to update the update frequency and knowledge fusion parameters of each data source based on the integrity assessment results and the user feedback information, and use the adjusted update frequency of each data source for the data collection in the next round of step S1, and use the adjusted knowledge fusion parameters for the knowledge fusion in the next round of step S3; the knowledge fusion parameters include at least one of semantic similarity threshold, graph structure similarity weight and fusion confidence threshold.