A power distribution network diagnosis knowledge base construction and application method and system

By constructing structured knowledge cards and using rule-based knowledge registry to query evidence associations, the problem of distinguishing the sources of different batches of test results in distribution network diagnosis was solved. This enabled the clear operating scope of test results in the distribution network diagnosis knowledge base and the reusability of historical review data, thereby improving the accuracy and efficiency of retrieval.

CN123138447APending Publication Date: 2026-11-20SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611558175.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-09
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In power distribution network diagnosis, existing technologies have difficulty in effectively distinguishing the sources of test results from different operating batches and historical review data. This makes it difficult to distinguish between existing judgment criteria and incomplete criteria. Furthermore, the status and test results of the same equipment may differ in different batches, making it difficult to maintain a clear operating range and basis for the results.

Method used

By acquiring the operation identifiers, detection sets, case sets, and evidence sets of the same distribution network diagnostic operation batch, a structured knowledge card is constructed. This card preserves the relationship between detection results, rule bases, and valid evidence. The rule knowledge registry is used to query evidence associations, and the source of historical review experience is indicated during retrieval, ensuring the completeness and validity of the rule bases in the knowledge base.

Benefits of technology

This technology enables the separation of test results from historical review data for the same equipment in different batches of distribution network diagnostics. It maintains the clear operating range and basis of the test results, ensures the reusability and retrieval accuracy of historical review data, and improves the application efficiency of the knowledge base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138447A_ABST
    Figure CN123138447A_ABST
Patent Text Reader

Abstract

The application discloses a power distribution network diagnosis knowledge base construction and application method and system, and belongs to the technical field of power distribution network data processing. The method comprises the following steps: acquiring detection findings, cases and evidences of the same operation batch, obtaining rule basis according to rule identification, performing intersection operation on the evidence identification cited by the case and the batch evidence identification set, and generating a knowledge card of the associated detection result, the rule basis and the effective evidence; when the rule basis is not obtained, the detection result is reserved and a knowledge gap is recorded; and the knowledge package is saved according to the operation identification. When inquiring, current diagnosis knowledge is read from the selected operation knowledge package, historical experience is screened according to the source category and the evidence classification, and the source identification of the search result is reserved. The operation range and the basis state formed in the library construction stage are continued to the knowledge application stage, the current detection result, the missing basis and the historical experience have distinguishable data representation, and invalid evidence association and mixed use of knowledge of different sources are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power distribution network data processing technology, and in particular relates to a method and system for constructing and applying a power distribution network diagnostic knowledge base. Background Technology

[0002] Digital operation and maintenance of distribution networks involves data such as equipment master files, terminal connections, connection points, feeder affiliation, switch status, and telemetry measurements. Topology checks, telemetry consistency checks, and main distribution network interface checks generate different types of detection results. Model analysis and manual review also produce anomaly candidates, review conclusions, and handling experience. Organizing this data into a knowledge base helps in interpreting diagnostic results and reusing handling experience.

[0003] In organizing diagnostic data into searchable documents, test results may become separated from the source fields, screening criteria, and judgment criteria used. Evidence cited in a case may also be inaccessible due to incomplete evidence. If only the result description is retained, subsequent searches will struggle to distinguish between existing judgment criteria and those that are yet to be supplemented.

[0004] On the other hand, the status and test results of the same equipment may differ in different batches of operation. Historical review data and initial model review recommendations have different formation processes. If they are mixed and loaded with current test results, the retrieved entries with similar relevance may have different time ranges and review statuses. Simply adding source text at the output stage is insufficient to compensate for the operational correlations and basis status lost during database construction.

[0005] Therefore, it is necessary to preserve the relationships between test results, rule-based evidence, and valid evidence when constructing knowledge, and to ensure that these relationships continue to function in subsequent searches, in order to adapt to application scenarios where current diagnostic knowledge and historical review experience are used together for interpretation. Summary of the Invention

[0006] This invention addresses the problems existing in the prior art by providing a method and system for constructing and applying a distribution network diagnostic knowledge base. The method of this invention can construct knowledge with a clear operating scope and basis status under conditions where the sources of distribution network diagnostic data and operating batches are different, and some rules or reference evidence are missing. When reusing historical experience, it maintains the distinction between the sources of current test results and historical review data.

[0007] To address the above technical problems, this invention provides the following technical solution: a method for constructing and applying a power distribution network diagnostic knowledge base, comprising the following steps:

[0008] S101, obtain the operation identifier, detection discovery set, case set and evidence set of the same distribution network diagnostic operation batch, as well as the rule knowledge registry indexed by the rule identifier;

[0009] The detection findings include a discovery identifier, a rule identifier, the object being detected, and the detection result; the case includes a related discovery identifier and a cited evidence identifier.

[0010] S102, Evidence Association and Knowledge Card Construction: For each detection discovery, query the rule knowledge registry according to its rule identifier, and obtain the referenced evidence identifier from the cases containing the discovery identifier. Intersect the referenced evidence identifier with the evidence identifier in the evidence set to obtain the valid associated evidence identifier.

[0011] The detection results, case identifiers, valid related evidence identifiers, and the rules obtained from the query are organized into a structured knowledge card; when no rule is found, the detection results are retained in the knowledge card, the corresponding rule field is set to empty and the rule knowledge is marked as missing, and a knowledge gap record associated with the discovery identifier is generated at the same time.

[0012] S103, the knowledge card, rule basis, and knowledge gap record are saved as a running knowledge package associated with the running identifier;

[0013] S104: Receive the selected operation identifier and query question; read the current operation knowledge from the operation knowledge package corresponding to the operation identifier and add it to the document set to be retrieved; filter the entries in the historical knowledge index, and add entries whose source category is manual review experience and whose evidence category is reviewed experience or reviewed case set as historical experience to the document set to be retrieved, excluding model preliminary review drafts; retrieve knowledge entries related to the query question from the document set to be retrieved, and output the knowledge entries and their source identifiers, wherein the current operation knowledge retains the rule basis field, rule knowledge missing marker, and valid related evidence identifier in the knowledge card, and marks the historical manual review source for historical experience.

[0014] Furthermore, in the aforementioned step S101, the rule knowledge registry is saved according to the detection module. Each module declares the structural contract version and the module identifier to which it belongs. Each rule registers a globally unique rule identifier, source table, usage fields, association conditions, record filtering conditions, detection method, judgment conditions, problem semantics, and applicable boundaries. When loading, the structural contract version, the uniqueness of the rule identifier, and the list field type are verified, and the rule registration content that passes the verification is used as the basis for the rule.

[0015] Furthermore, in the aforementioned step S102, the effective associated evidence identifiers are deduplicated and sorted, and the knowledge identifier, discovery identifier, case identifier set, effective associated evidence identifier set, rule identifier, detected object, actual observation value, expected conditions, severity, certainty and processing suggestions are stored in the knowledge card; the operating scope of the knowledge card is determined by the operating identifier of the operating knowledge package to which the knowledge card is located.

[0016] Furthermore, in the aforementioned step S102, when no rule basis is found, the data source description and detection method description of the knowledge card are set to empty, and the discovery identifier, module identifier and rule identifier are saved in the knowledge gap record; when the number of detected discoveries is greater than zero, the rule knowledge coverage rate is calculated based on the proportion of the number of detected discoveries corresponding to the registered rules to the total number of detected discoveries; when the number of detected discoveries is zero, the rule knowledge coverage rate is set to a state with no value.

[0017] Furthermore, in the aforementioned step S103, the knowledge package also saves the dataset identifier, rule directory, module summary, description of applicable conditions for indicators, and record of knowledge generation process. The rule directory saves the rule registration content loaded in this database construction, and the knowledge card saves the actual observed values ​​and expected conditions in the original detection results. When generating a knowledge package for an existing running directory, the running status is read as completed or partially completed, and the specified rule knowledge registry is called using the supplementary generation. If the target directory does not exist, the knowledge package is first written completely to the temporary directory, and then the temporary directory is renamed to the target directory.

[0018] Furthermore, the aforementioned method for constructing and applying a distribution network diagnostic knowledge base also includes the step of generating review candidates: reading the equipment model predictions and rule-model divergence records of a batch of operations, sorting them in the order of divergent equipment first, equipment with higher model uncertainty under the same divergence state first, and equipment with higher model score under the same uncertainty state first; when the above conditions are the same, sorting them by equipment identifier, and truncating the review queue according to the maximum number of candidates; the queue retains the operation identifier, equipment identifier, equipment type, weak rule label, model score, and divergence marker.

[0019] Furthermore, the aforementioned method for constructing and applying a distribution network diagnostic knowledge base also includes the step of updating the historical knowledge index based on the review queue: receiving review conclusions that confirm anomalies, confirm normality, or require supplementary evidence, along with the reviewer and review time; skipping records where the conclusion cannot be identified or where the reviewer and review time are empty; removing the blanks at both ends from the operation identifier, equipment identifier, original review label, reviewer, and review time, concatenating them, and performing hash processing to obtain a record identifier; appending only records whose record identifiers do not yet exist in the review ledger to the ledger; grouping by equipment type, weak rule label, model score range, and divergence marker, counting the number of records for the three types of review conclusions respectively, and saving a deduplicated set of equipment identifiers to form historical experience entries with human review sources; setting evidence classification into reviewed experience or reviewed case sets according to the number of records within a group, and writing the entries into the historical knowledge index.

[0020] Furthermore, the aforementioned method for constructing and applying a distribution network diagnostic knowledge base also includes the step of receiving case experience: verifying that the operating user has supervisory authority, the selected case is confirmed, and the experience description meets the minimum length condition; and associating and saving the experience description, operation identifier, case identifier, and case evidence to the set of reviewed experience records; in step S104, the records in the set of reviewed experience records are read as historical experience from another source.

[0021] Furthermore, the aforementioned step S104 also includes: loading shared electrical rules, converting the question and the document to be retrieved into a term set of adjacent Chinese binary words and English or numeric identifiers, sorting them according to the term overlap ratio and source identifier matching score, and deduplicating them according to the combination of source path and source identifier to obtain a limited number of knowledge fragments; returning an insufficient evidence status when no knowledge fragments are obtained; assigning a current round citation number to each fragment when knowledge fragments are obtained, providing the numbered fragments to the generation model to generate explanations, checking the explanation text and response truncation status, and checking whether the citation number exists and whether it is within the range of current round fragment numbers; returning the explanation and corresponding source entry when the check passes, and returning an abnormal status when the check fails.

[0022] This invention also provides a distribution network diagnostic knowledge base construction and application system, applied to the distribution network diagnostic knowledge base construction and application method described in this invention, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to form the following mutually cooperating functional modules:

[0023] The operation data access module is used to obtain the operation identifier, detection discovery set, case set and evidence set of the same distribution network diagnostic operation batch. The detection discovery includes the discovery identifier, rule identifier, detected object and detection result. The case includes the associated discovery identifier and the cited evidence identifier.

[0024] The rule knowledge registration module is used to provide a rule knowledge registry indexed by rule identifiers;

[0025] The evidence association database module is used to query the rule basis according to the rule identifier discovered by the detection, obtain the referenced evidence identifier from the cases containing the discovery identifier, find the intersection of the referenced evidence identifier with the evidence identifier in the evidence set to obtain the valid associated evidence identifier, and organize the detection results, case identifier, valid associated evidence identifier and rule basis into a structured knowledge card; when no rule basis is found, the detection results are retained, the corresponding rule basis field is set to empty and the rule knowledge is marked as missing, and a knowledge gap record associated with the discovery identifier is generated at the same time.

[0026] The knowledge storage module is used to save the knowledge cards, rule bases, and knowledge gap records as a running knowledge package associated with the running identifier;

[0027] The knowledge access and application module receives the selected operation identifier and query question, reads the current operation knowledge from the corresponding operation knowledge package and adds it to the document set to be retrieved, filters entries in the historical knowledge index, adds entries whose source category is manual review experience and whose evidence category is reviewed experience or reviewed case set as historical experience to the document set to be retrieved, and excludes the model initial review draft, retrieves and outputs relevant knowledge entries and source identifiers; among them, the current operation knowledge retains the rule basis field, rule knowledge missing mark and valid related evidence identifier in the knowledge card, and marks the historical manual review source for historical experience.

[0028] Compared with the prior art, the beneficial technical effects of the present invention using the above technical solution are as follows:

[0029] The intersection of case citations and the current batch of evidence limits the scope of valid evidence in the knowledge card, excluding citations that cannot be parsed in the input evidence while retaining detection findings. Rule-based fields and missing markers are saved and retrieved along with the knowledge card, ensuring that findings lacking rule descriptions remain identifiable. Selected runs retrieve the current knowledge, filtering and marking historical experience sources within the same search entry point, keeping different batches of results corresponding to the same device identifier separate, and allowing historical review data to be reused. The review log maintains the number of records for different conclusions; duplicate import control and source filtering jointly support the continuous accumulation of experience. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the data flow between the core modules of the system and the knowledge sources.

[0031] Figure 2 A flowchart for rule association, knowledge gap representation, and knowledge package generation within the same running batch.

[0032] Figure 3 A flowchart for generating historical manual review experience.

[0033] Figure 4 This is a flowchart for knowledge retrieval and interpretation output based on the scope of operation and the source of verification.

[0034] In the diagram: 101-Running data access module, 102-Rule knowledge registration module, 103-Evidence association database construction module, 104-Running knowledge storage module, 105-Candidate review module, 106-Experience update module, 107-Knowledge access and application module. Detailed Implementation

[0035] To better understand the technical content of the present invention, specific embodiments are described below in conjunction with the accompanying drawings.

[0036] In this invention, various aspects of the invention are described with reference to the accompanying drawings, in which numerous illustrative embodiments are shown. Embodiments of the invention are not limited to those depicted in the drawings. It should be understood that the invention is implemented through any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed herein are not limited to any particular implementation. Furthermore, some aspects of the invention disclosed may be used alone or in any suitable combination with other aspects of the invention disclosed.

[0037] An embodiment provides a method for constructing and applying a power distribution network diagnostic knowledge base, including the following steps.

[0038] S101, Data Input and Rule Knowledge Acquisition: Acquire the operation identifier, detection discovery set, case set, and evidence set for the same operation batch; acquire the rule knowledge registry indexed by rule identifiers. Store the association between detection discovery identifiers and cited evidence identifiers within each case.

[0039] S102, Evidence Association and Knowledge Card Construction: Obtain the rule basis according to the rule identifiers discovered by the detection, extract the evidence identifiers cited in cases containing the discovery, find the intersection with the identifiers in the current evidence set, and organize the resulting valid associated evidence, case relationships, original detection results, and rule basis into a knowledge card. When the rule basis is not registered, the original detection results continue to be saved, the corresponding basis fields are set to empty, and the missing status is reflected in the knowledge card and knowledge gap record.

[0040] S103, Runtime Knowledge Package Storage: Save knowledge cards, rule bases, and knowledge gaps as runtime knowledge packages associated with the runtime identifier. The runtime knowledge package provides the storage scope of the current runtime knowledge, and the knowledge cards within it provide the detection results, basis status, and association with valid evidence.

[0041] S104, Knowledge Filtering and Retrieval Output: Determine the current knowledge reading scope based on the running identifier, retain the rule basis missing status and valid related evidence identifiers in the knowledge card; select entries from the historical index whose source category is manual review experience and whose evidence category is reviewed experience or reviewed case set, and combine them with the current running knowledge to form a document set to be retrieved. Retrieve relevant entries according to the query question, output the knowledge content and source identifier, and indicate the source of manual review of historical experience.

[0042] Preferably, the rule knowledge registry registers the source table, used fields, association conditions, record filtering conditions, detection methods, judgment conditions, problem semantics, and applicable boundaries, and checks the structural contract version, rule identifier uniqueness, and data type of the specified fields. The structural contract version is used to determine the registry format; the knowledge package stores the registration content loaded during database creation, and the knowledge card stores the actual observations and expected conditions in the original detection results.

[0043] Preferably, historical experience is generated through equipment review or case experience entry. Equipment review can arrange candidate order according to rules and model discrepancies, uncertainties, and model scores. Review records are added to the ledger after being identified and deduplicated, and the number of records for the three types of conclusions is aggregated according to common characteristics. Case experience entry can receive experience based on user permissions, case confirmation status, and description length. The above entry provides historical data with human review sources for retrieval.

[0044] Preferably, historical index entries store two fields: source category and evidence classification. The evidence classification for manually reviewed experience entries is set to either reviewed experience or a set of reviewed cases based on the number of records within the group; both values ​​can participate in historical experience retrieval. The source category and evidence classification for the model's initial review draft are both set to the model's initial review draft and are excluded during loading.

[0045] Preferably, knowledge fragments are selected based on the overlap between query terms and knowledge document terms, deduplicated by source, and assigned citation numbers for the current round. When generating an explanation, the fragments are provided to the generation model, and the existence and scope of the main text, truncation status, and citation numbers are checked before returning the explanation.

[0046] The present invention also provides a system for implementing the above method, including a runtime data access module 101, a rule knowledge registration module 102, an evidence association database construction module 103, a runtime knowledge storage module 104, and a knowledge access and application module 107. The system can further be configured with a candidate review module 105 and an experience update module 106 to form historical experience for the knowledge access and application module 107 to read.

[0047] like Figure 1 and Figure 2 As shown, the operation data access module 101 receives the standard output of the distribution network diagnostic system, including detection findings, cases, and evidence generated from topology quality, remote signaling and telemetry consistency, and main distribution network interface correlation checks. 'r' represents the operation identifier, 'd' represents the dataset identifier, and F, C, and E represent the set of detection findings, case sets, and evidence sets for that operation, respectively. The operation identifier distinguishes different processing steps of the data, and the dataset identifier indicates the set of data being processed.

[0048] The detection findings (f) include a discovery identifier, rule identifier, detector identifier, module identifier, detected object, observed value, expected conditions, severity, certainty, recommendations, and conclusion boundaries. Evidence (e) contains an evidence identifier and diagnostic facts. Case (c) contains a case identifier and a set of related discovery identifiers. and the set of cited evidence identifiers The running identity is associated with the entire set of knowledge cards through its running directory and knowledge task cards.

[0049] The rule knowledge registration module 102 reads the registry saved by module and forms a mapping from rule identifiers to rule knowledge descriptions. Each rule knowledge is represented as follows: Where u is the rule identifier, T is the source table set, A is the field set, J is the association condition, Q is the filtering condition, M is the detection method, P is the judgment condition, U is the problem semantics, and B is the applicable boundary. The registry also stores the module identifier and structural contract version.

[0050] The loader checks whether the declared structural contract version is supported, whether the rule identifier is duplicated, and the types of list fields such as source table, fields, association conditions, and filter conditions. If the validation passes, a rule knowledge mapping is formed; otherwise, an error is returned. Business value thresholds are provided by the detection rule configuration, and the registry records the threshold's participation in the judgment. The expected conditions for the detection output are stored in the knowledge card.

[0051] The evidence association database module 103 searches for cases containing the identifier of the target f and summarizes the evidence identifiers cited in these cases. Let... To record the identifier of x, Let the set of identifiers be the set of input evidence for this instance, then:

[0052]

[0053]

[0054] in, A set of identifiers for related cases. This is the set of valid, related evidence identifiers at the case level. After deduplication and sorting, both are written into the knowledge card. A case can contain multiple findings and their related evidence; the knowledge card stores the set of evidence obtained through association with that case. Reference identifiers not present in the input evidence set are excluded after intersection.

[0055] For registered rules, their data sources, detection methods, problem semantics, and applicable boundaries are merged with the original detection results to generate knowledge cards. The rule knowledge status is set to registered. The knowledge card also stores the discovery identifier, rule identifier, detected object, and related case identifier. The knowledge identifier consists of a fixed prefix and the discovery identifier.

[0056] For unregistered rules, the knowledge card saves the original detection results and valid related evidence, sets the rule knowledge status to missing, and leaves the data source description and detection method description empty; the knowledge gap set G records the discovery identifier, module identifier, and rule identifier. When the knowledge card is read subsequently, the original results and the rule are retained according to the missing status.

[0057] Let Ω be the set of registered rule identifiers. To discover the rule identifier for f, The identifier of the discovery, the object being detected, and the original detection results. and These are the data source description and detection method description for rule u, respectively. The above information, case and evidence associations, and rule knowledge status in the knowledge card constitute the core field combination. : ,

[0058] Where ⊥ indicates that the corresponding field is empty. When no rules are registered, the discovery identifier, module identifier, and rule identifier are written into the knowledge gap set G; in both cases, they are saved. , and The semantics of the problem and its applicable boundaries are written into the knowledge card in the manner described above.

[0059] Let N be the number of detections, and let the number of detections corresponding to unregistered rules be... When N is greater than zero, the rule knowledge coverage rate is:

[0060] When N is zero, the coverage rate is set to a null value. This metric describes the proportion of currently discovered items with rule registration descriptions. The knowledge storage module 104 saves the rule directory, knowledge cards, module summaries, task cards, metric application condition descriptions, knowledge gaps, and knowledge generation process records into a single knowledge package. The task card stores r, d, and the number of discoveries, cases, evidence, and rules.

[0061] The knowledge generation process records and saves the inputs, processing actions, and outputs of six stages: result collection, rule knowledge supplementation, evidence association, rule and module summarization, indicator interpretation, and report presentation. The indicator applicability conditions description saves the evaluation objects and applicable prerequisites for each indicator. The module summary first counts the number of findings according to the rules, and then summarizes them according to their respective modules; the structured file is used by both the program and report generation.

[0062] When generating a knowledge package from an existing runtime, the runtime directory that is in a completed or partially completed state is read, and the findings, cases, and evidence within, along with the registry directory specified by the caller, are passed to the knowledge building module. The rules directory stores the loaded registry contents, and the actual observations and expected conditions in the knowledge cards are taken from the original runtime output.

[0063] The registry's structural contract version is used to verify format compatibility, and the rule content is determined by the incoming registry. When reproducing the rule descriptions of a historical run, the caller provides the retained registry corresponding to that run and verifies the judgment conditions in conjunction with the original rule configuration.

[0064] Knowledge packages are written using a temporary directory: if the target directory does not exist, a temporary directory is created in the same parent directory. After all knowledge files are written, the temporary directory is renamed to the target directory; if the target directory already exists, an error is returned. Subsequent queries retrieve the saved knowledge packages.

[0065] Figure 3 This presents one method for forming historical experience. The candidate review module 105 reads the selected running device model predictions and the record of discrepancies between rules and the model. For device i, let... This is a divergence marker; it is 1 if a divergence exists, and 0 otherwise. The standard deviation of the score output by the upstream model. For model scores, For device identification, the following sorting keys are used to sort in ascending lexicographical order: ,

[0066] The above order prioritizes divergent devices, comparing uncertainties and model scores sequentially within the same divergent state, and then determining the order of parallel processing based on device identifiers. The review queue is truncated to a preset upper limit, for example, 200 entries. The queue stores the run identifier, device identifier, device type, weak rule label, model score, and divergence flag, and provides review label, description, reviewer, and review time fields.

[0067] Manual confirmation is required for records that are abnormal, normal, or require supplementary evidence. The importer maps recognizable Chinese or conventional English labels to three types of conclusions; if a conclusion cannot be recognized, or if the reviewer or review time is empty, the corresponding record is skipped. For valid records, the run identifier r, device identifier a, original review label L, reviewer v, and review time t are each delimited and concatenated to calculate the record identifier:

[0068] ,

[0069] In this code, vertical lines serve as separators, and prefix20 indicates that the first 20 hexadecimal characters are extracted. The importer reads existing identifiers from the ledger and updates the set of seen identifiers in the same import; records with existing identifiers are skipped, and the remaining records are appended to the ledger, while the normalization conclusion, source file, and import time are saved. Deduplication is based on the original field combination, and the normalization conclusion obtained from label mapping is saved separately and does not replace the original verification labels in the record identifier calculation.

[0070] The experience update module 106 assembles a grouping key g based on device type, weak rule label, model score range, and divergence marker. In this embodiment, the model score... To get a high score, Parted in the middle, Use an array of unknown scores when the score is too low to be converted to a numerical value:

[0071] ,

[0072] For each group, the number of records confirmed as abnormal, confirmed as normal, and requiring supplementary evidence were counted separately. , and It also saves a deduplicated set of associated device identifiers. The source category field (category) of experience entries is set to manually reviewed experience. The evidence classification field (evidence_level) is set according to the number of records in the group: at least 3 records indicate reviewed experience, otherwise it indicates a set of reviewed cases.

[0073] The review conclusion field (review_verdict) in the ledger stores the specific review conclusion, and the aggregate statistics store the number of records for each type of conclusion. Both evidence categories can participate in the search, using the same relevance scoring method.

[0074] Multiple records can be generated from reviews of the same device at different times. The three types of conclusions are retained separately, with those requiring supplementary evidence included. The experience entry saves the number of records, the deduplication device identifier, and the source information, and writes them into the historical knowledge index. The optional model preliminary draft sets both the source category and evidence classification as the model preliminary draft, and records the status pending manual review using a status field. Search loading is filtered based on source category and evidence classification.

[0075] In another case experience entry point, users with supervisory authority select a confirmed case and submit an experience description. The server verifies permissions, case confirmation status, and the minimum description length (e.g., at least 10 characters after removing leading and trailing spaces). Upon approval, the description, running identifier, case identifier, and associated evidence are saved to the reviewed experience record set. This type of experience is saved as a case record and provides historical data through the retrieval and loading phase, together with the aforementioned device-reviewed experience.

[0076] like Figure 4 As shown, the knowledge access and application module 107 receives the selected operation identifier and query question, and reads the rule directory, module summary, knowledge generation process record, task card, and indicator application condition description from the corresponding operation directory. When a case, knowledge card, or detection discovery identifier appears in the question, a record containing the corresponding identifier is supplemented from the knowledge card file of that operation. The results of the knowledge card, the rule basis status, and the valid related evidence identifier are retained in the document text for retrieval.

[0077] For historical indexes, the loader checks whether the source category is manually reviewed experience and whether the evidence category is reviewed experience or a reviewed case set; only entries that meet both conditions are added to the document set to be retrieved. For case experience, it reads experience records with the record type (kind) and set tag (scope) in the database, specifying the record type as experience and the set tag as reviewed. Each document saves the source identifier, title, source path, and body, and indicates the historical review source. Shared electrical rules can be loaded together, and their source paths are stored separately.

[0078] Let x be an entry in the historical knowledge index. and They are respectively classified by their source category and evidence category; Indicates the category of manual review experience. and These represent the reviewed experience and the reviewed case sets, respectively. Entry admission values. Determine using the following formula: ,

[0079] Only Historical index entries are added to the document set to be retrieved, and then sorted by relevance. The same admission criteria are used for both permitted evidence categories; case experience is read according to the aforementioned database record types and set labels.

[0080] Runtime knowledge and historical experience are subject to different loading conditions: the former is limited by the selected runtime directory, while the latter can be reused across runtimes but must meet the source condition of manual review. Subsequent relevance retrieval is performed after loading is complete, and model drafts that do not meet the admission criteria are not included in the ranking.

[0081] Extract English or numeric identifiers and adjacent Chinese bigrams from questions and documents, and convert them into lowercase, deduplicated term sets Q and D. When the source identifier appears in the question... ,otherwise The search score is:

[0082] ,

[0083] Documents with scores greater than zero are retained, sorted in descending order of score, and ordered by source identifier. Duplicates are removed based on the combination of source path and source identifier, and the first k documents are truncated. k is 6 in fast mode and 10 in deep mode. For follow-up questions containing referential references, the most recent user question can be concatenated with the current question before retrieval.

[0084] If no knowledge fragment is obtained, the system returns to an insufficient evidence state. When a fragment is obtained, it is assigned citation numbers K1 to Kk sequentially. The fragment text, source identifier, title, and path are organized as input to the generative model, requiring key conclusions in the explanation to cite this round's citation number. When a conversational context is provided, historical responses serve as the dialogue background, and the citation numbers for this round are reassigned.

[0085] After obtaining the explanation, check if the text is empty, if the response is truncated, and if a citation number exists, and check if the number belongs to the fragment range provided in this round. If the checks pass, return the explanation text and the corresponding source entry; if any check fails, return the corresponding exception status. This process retains the source relationships provided by the retrieval phase in the output.

[0086] Knowledge card for switch status and measurement conflicts: Taking the rule OPEN_SWITCH_NONZERO_MEASUREMENT as an example, its registration name is non-zero measurement of the switch. Sources include the device master file EQUIP_JBS_PWEQUIPINFO, the telemetry table EQUIP_JBS_PWREAL, and the signal table EQUIP_JBS_ZWSIGNAL, using the device identifier, device type, telemetry device association identifier, data time, record number, status, and three-phase current and active power measurement fields.

[0087] The rule registration process is as follows: Grouping by telemetry device association identifier and time, the record with the largest sequence number is selected, and then the latest device record is selected based on time and sequence number. Status is prioritized using telemetry records, followed by signal records, and finally the default closed position. For switches with the latest telemetry record and a valid status of open, when the maximum absolute value of the three-phase current exceeds the current threshold, or the absolute value of active power exceeds the active power threshold, a status and measurement conflict candidate is formed.

[0088] Example inputs for constructing device A-1 have a maximum phase current of 1.2 A, an expected condition of no more than 0.1 A, and a certainty of pending verification. Cases and evidence are generated from this discovery, and operational knowledge is then constructed. The knowledge card stores the aforementioned values, case and valid evidence identifiers, as well as the source table, screening conditions, and judgment methods for rule registration, and retains applicable instructions for status, association, or time-stamped issues.

[0089] When the rule identifier is changed to an unregistered identifier, the same discovery and its observations are still saved, the data source description and detection method description are left blank, the rule status is missing, and a knowledge gap is generated. When querying for a knowledge card with this identifier, the loader reads the running knowledge card, thus providing the detection result and the missing status together for subsequent interpretation.

[0090] This embodiment illustrates the knowledge retrieval and evidence association process using constructed operation records and historical indexes.

[0091] Device A-1 has the same discovery identifier M3-000001 in both RUN-A and RUN-B runs, with result titles of "Abnormal" and "Normal" respectively, and observation values ​​of 1.2 A and 0.0 A respectively. When querying KN-M3-000001, selecting RUN-A retrieves its abnormal result knowledge card, while selecting RUN-B retrieves its normal result knowledge card. The current knowledge card for each query is obtained from the selected run; therefore, the results from the two batches of the same device are saved and retrieved separately.

[0092] A case saves three evidence citations, of which the valid identifier appears twice, and the other identifier is not in the current input evidence set. During knowledge construction, the citation identifiers are deduplicated and their intersection with the input evidence identifier set is calculated. The valid association list retains only one actually existing identifier, and the original detection findings are continued to be written into the knowledge card.

[0093] The historical index stores one record each of the reviewed case set, reviewed experience, and initial model draft, with all three records containing the same search terms. The loader accepts the first two human review experiences based on source category and evidence classification, excluding the model draft. The two human review experiences are ranked for relevance in the same way, and their historical human review sources are marked.

[0094] Furthermore, the system can be implemented using a processor, memory, and file system. Module 101 provides module 103 with batches of discoveries, cases, and evidence; module 102 provides module 103 with rule knowledge mapping; module 103 generates and retains knowledge cards that retain valid evidence and their status; module 104 saves knowledge packages according to the selected operation; module 107 loads knowledge based on the selected operation and historical source conditions and provides retrieval results. The candidate review module 105 and the experience update module 106 serve as entry points for generating historical experience and are connected to module 107 through an experience index.

[0095] Knowledge packages can be saved as JSON and JSONL files, review queues as CSV files, review ledgers as append-only JSONL files, and case experience can be stored in a database. Modules are linked using run, rule, discovery, case, device, and evidence identifiers. Knowledge packages and historical experience are stored separately, and query results retain their respective sources.

[0096] While the present invention has been described above with reference to preferred embodiments, it is not intended to limit the invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention shall be determined by the claims.

Claims

1. A method for constructing and applying a distribution network diagnostic knowledge base, characterized in that, Includes the following steps: S101, obtain the operation identifier, detection discovery set, case set and evidence set of the same distribution network diagnostic operation batch, as well as the rule knowledge registry indexed by the rule identifier; The detection findings include a discovery identifier, a rule identifier, the object being detected, and the detection result; the case includes a related discovery identifier and a cited evidence identifier. S102, Evidence Association and Knowledge Card Construction: For each detection discovery, query the rule knowledge registry according to its rule identifier, and obtain the referenced evidence identifier from the cases containing the discovery identifier. Intersect the referenced evidence identifier with the evidence identifier in the evidence set to obtain the valid associated evidence identifier. The detection results, case identifiers, valid related evidence identifiers, and the rules obtained from the query are organized into a structured knowledge card; when no rule is found, the detection results are retained in the knowledge card, the corresponding rule field is set to empty and the rule knowledge is marked as missing, and a knowledge gap record associated with the discovery identifier is generated at the same time. S103, the knowledge card, rule basis, and knowledge gap record are saved as a running knowledge package associated with the running identifier; S104, Receive the selected operation identifier and query question, read the current operation knowledge from the operation knowledge package corresponding to the operation identifier and add it to the set of documents to be retrieved; The entries in the historical knowledge index are filtered, and those whose source category is manual review experience and whose evidence category is reviewed experience or a set of reviewed cases are added to the document set to be retrieved as historical experience, excluding the model initial review draft; knowledge entries related to the query question are retrieved from the document set to be retrieved, and the knowledge entries and their source identifiers are output. The rule basis field, rule knowledge missing marker, and valid related evidence identifier in the knowledge card of the currently running knowledge are used to mark the historical manual review source of the historical experience.

2. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, In step S101, the rule knowledge registry is saved according to the detection module. Each module declares the structural contract version and the module identifier to which it belongs. Each rule registers a globally unique rule identifier, source table, usage fields, association conditions, record filtering conditions, detection method, judgment conditions, problem semantics and applicable boundaries. When loading, the structural contract version, the uniqueness of the rule identifier and the list field type are verified, and the rule registration content that passes the verification is used as the basis of the rule.

3. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, In step S102, the valid association evidence identifiers are deduplicated and sorted, and the knowledge identifier, discovery identifier, case identifier set, valid association evidence identifier set, rule identifier, detected object, actual observation value, expected conditions, severity, certainty and processing suggestions are stored in the knowledge card; the operating scope of the knowledge card is determined by the operating identifier of the operating knowledge package to which the knowledge card is located.

4. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, In step S102, if no rule basis is found, the data source description and detection method description of the knowledge card are set to empty, and the discovery identifier, module identifier and rule identifier are saved in the knowledge gap record. When the number of detected rules is greater than zero, the rule knowledge coverage rate is calculated as the ratio of the number of detected rules corresponding to the registered rules to the total number of detected rules. When the number of detected rules is zero, the rule knowledge coverage rate is set to a zero value.

5. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, In step S103, the knowledge package also saves the dataset identifier, rule directory, module summary, description of applicable conditions for indicators, and record of knowledge generation process. The rule directory saves the rule registration content loaded in this database construction, and the knowledge card saves the actual observed values ​​and expected conditions in the original detection results. When generating a knowledge package for an existing running directory, read the running status as completed or partially completed, and use the supplementary generation to call the specified rule knowledge registry. If the target directory does not exist, first write the knowledge package completely to the temporary directory, and then rename the temporary directory to the target directory.

6. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, It also includes the step of generating review candidates: reading the device model prediction and rule-model divergence records of a running batch, sorting them in the order of divergent devices first, devices with higher model uncertainty under the same divergence state first, and devices with higher model scores under the same uncertainty first. If the above conditions are the same, sorting them by device identifier, and truncating the review queue according to the maximum number of candidates; the queue retains the running identifier, device identifier, device type, weak rule label, model score and divergence mark.

7. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, It also includes the step of updating the historical knowledge index according to the review queue: receiving review conclusions that confirm anomalies, confirm normality, or require supplementary evidence, along with the reviewer and review time; skipping records where the conclusion cannot be identified or where the reviewer and review time are empty; removing the blanks at both ends of the operation identifier, device identifier, original review label, reviewer, and review time, concatenating them, and performing hash processing to obtain the record identifier; only adding records whose record identifiers do not yet exist in the review ledger to the ledger; grouping by device type, weak rule label, model score range, and divergence marker, counting the number of records for the three types of review conclusions respectively, and saving the deduplicated device identifier set to form historical experience entries with human review sources; setting the evidence classification as reviewed experience or reviewed case set according to the number of records in the group, and writing the entries into the historical knowledge index.

8. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, It also includes the step of receiving case experience: verifying that the operating user has supervisory authority, the status of the selected case is confirmed, and the experience description meets the minimum length condition, and saving the experience description, operation identifier, case identifier, and case evidence together to the reviewed experience record set; in step S104, the records in the reviewed experience record set are read as historical experience from another source.

9. The method for constructing and applying a distribution network diagnostic knowledge base according to claim 1, characterized in that, Step S104 further includes: loading shared electrical rules, converting the question and the document to be retrieved into a term set of adjacent Chinese binary words and English or numeric identifiers, sorting them according to the term overlap ratio and source identifier matching score, and deduplicating them according to the combination of source path and source identifier to obtain a limited number of knowledge fragments; returning an insufficient evidence status when no knowledge fragments are obtained; assigning a current round citation number to each fragment when knowledge fragments are obtained, providing the numbered fragments to the generation model to generate explanations, checking the explanation text and response truncation status, and checking whether the citation number exists and whether it is within the range of current round fragment numbers; returning the explanation and corresponding source entry when the check passes, and returning an abnormal status when the check fails.

10. A system for constructing and applying a distribution network diagnostic knowledge base, applied to the method for constructing and applying a distribution network diagnostic knowledge base as described in claim 1, characterized in that, It includes a memory and a processor, the memory storing a computer program and the processor executing the computer program to form the following mutually cooperating functional modules: The operation data access module is used to obtain the operation identifier, detection discovery set, case set and evidence set of the same distribution network diagnostic operation batch. The detection discovery includes the discovery identifier, rule identifier, detected object and detection result. The case includes the associated discovery identifier and the cited evidence identifier. The rule knowledge registration module is used to provide a rule knowledge registry indexed by rule identifiers; The evidence association database module is used to query the rule basis according to the rule identifier discovered by the detection, obtain the referenced evidence identifier from the cases containing the discovery identifier, find the intersection of the referenced evidence identifier with the evidence identifier in the evidence set to obtain the valid associated evidence identifier, and organize the detection results, case identifier, valid associated evidence identifier and rule basis into a structured knowledge card; when no rule basis is found, the detection results are retained, the corresponding rule basis field is set to empty and the rule knowledge is marked as missing, and a knowledge gap record associated with the discovery identifier is generated at the same time. The knowledge storage module is used to save the knowledge cards, rule bases, and knowledge gap records as a running knowledge package associated with the running identifier; The knowledge access and application module receives the selected operation identifier and query question, reads the current operation knowledge from the corresponding operation knowledge package and adds it to the document set to be retrieved, filters entries in the historical knowledge index, adds entries whose source category is manual review experience and whose evidence category is reviewed experience or reviewed case set as historical experience to the document set to be retrieved, and excludes the model initial review draft, retrieves and outputs relevant knowledge entries and source identifiers; among them, the current operation knowledge retains the rule basis field, rule knowledge missing mark and valid related evidence identifier in the knowledge card, and marks the historical manual review source for historical experience.