A method, device and storage medium for automatically generating emergency plans for power supply command
A dynamic knowledge graph is constructed through knowledge graph technology, and the power supply command emergency plan is automatically generated by combining the existing knowledge graph, which solves the problems of large workload and low level of intelligence in emergency plan formulation in the existing technology, and achieves efficient and accurate emergency plan generation. and information aggregation, improving the intelligence of the power supply command system.
Patent Information
- Application Number
- CN202210696941.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-06-20
AI Technical Summary
In the power supply command task of large-scale events, the formulation and compilation of emergency plans in the existing technology requires a lot of workload, and the degree of intelligence is low, and it lacks efficient knowledge reuse and information aggregation capabilities.
Knowledge graph technology is used to construct a dynamic knowledge graph, and combined with the existing power supply command knowledge graph, the power supply command emergency plan is generated through semantic understanding and knowledge fusion, realizing automatic generation, and ensuring the rationality of the plan through rationality verification and manual adjustment.
It effectively reduces the workload of formulating and writing emergency plans, improves the intelligence of the power supply command system, ensures the rationality and accuracy of emergency plans, quickly gathers relevant information, and improves the efficiency of fault handling.
Smart Images

Figure CN115129889B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method, a device and a storage medium for automatically generating an emergency plan for power supply command, and belongs to the technical field of power supply command. Background Art
[0002] The development and writing of emergency response plans is a crucial step in the power supply command and control tasks of large-scale events. In traditional power supply command and control tasks, emergency response plans are typically developed and written by the relevant responsible individuals, requiring considerable effort. The power supply command and control system, which utilizes computer technology, has greatly improved the digitization and informatization of power supply command and control tasks, and a large amount of knowledge related to power supply command and control emergency response plans has been accumulated within the system. When developing and writing power supply command and control emergency response plans, the knowledge accumulated within the power supply command and control system has a high value for reuse. Manual knowledge retrieval can facilitate the rapid development of power supply command and control emergency response plans, but there is still room for improvement in terms of intelligence. Summary of the Invention
[0003] The purpose of the present invention is to overcome the shortcomings of the existing technology and provide a method, device and storage medium for automatically generating emergency plans for power supply command, which uses knowledge graph technology to empower the power supply command system. By constructing a dynamic knowledge graph of power supply plans and combining it with the existing power supply command knowledge graph, the power supply command emergency plan is automatically generated, thereby improving the intelligence level of the power supply command system.
[0004] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0005] In a first aspect, the present invention provides a method for automatically generating a power supply command emergency plan, comprising:
[0006] Obtain existing power supply emergency plans and analyze them using knowledge graph semantic understanding technology, and build a dynamic knowledge graph of power supply emergency plans based on the analysis results;
[0007] Obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive power supply knowledge graph;
[0008] Traverse the comprehensive knowledge graph of power supply protection starting from the entity nodes of the protection points in the comprehensive knowledge graph of power supply protection, and construct a subgraph of power supply protection plan with the entity nodes of the protection points as the core based on the traversal results;
[0009] The rationality of the support plan sub-graph is verified based on the preset rationality constraints. If the rationality verification fails, manual adjustments are made;
[0010] Based on the support plan subgraph after rationality verification, a power supply command emergency plan corresponding to the physical node of each support point is generated.
[0011] Optionally, the analysis results include the equipment type after power protection knowledge, equipment basic situation description, equipment normal status description, equipment abnormal status description, fault type, fault name, fault description and fault handling steps.
[0012] Optionally, the fusion with the dynamic knowledge graph of the power supply plan includes obtaining the entity node of the protection equipment involved in any protection point in the power supply command knowledge graph through entity matching technology, and constructing a mapping relationship between the two entity nodes.
[0013] Optionally, traversing the comprehensive knowledge graph for power supply protection includes traversing the comprehensive knowledge graph for power supply protection using a depth-optimized traversal or a breadth-first traversal algorithm and recording the traversed nodes and edges.
[0014] Optionally, the rationality constraint includes a normal-abnormal state mutual exclusion constraint of the equipment and a fault handling step sequence constraint;
[0015] The rationality of the device normal state description and the device abnormal state description in the support plan subgraph is verified by the device normal-abnormal state mutual exclusion constraint: the device normal state description and the device abnormal state description in the support plan subgraph are extracted, and the similarity of the device normal state description and the device abnormal state description is calculated by semantic similarity. If the similarity between the device abnormal state description and the normal state description is higher than a preset threshold, the device abnormal state description does not meet the device normal-abnormal state mutual exclusion constraint, and the rationality verification fails.
[0016] The rationality of the fault handling steps in the assurance plan subgraph is verified by the fault handling step sequence constraint: the fault handling steps in the assurance plan subgraph are extracted. If the fault handling steps do not meet the fault handling step sequence constraint, the rationality verification fails.
[0017] Optionally, the manual adjustment includes deleting the entity node of the device corresponding to the device abnormal state description that fails to verify the rationality of the normal-abnormal state mutual exclusion constraint of the device; and optimizing the fault handling steps that fail to verify the rationality of the fault handling step sequence constraint.
[0018] Optionally, the generation of the power supply command emergency plan corresponding to the physical node of each security point includes performing information analysis of the power supply knowledge on the security plan sub-graph corresponding to the physical node of each security point, restoring the information fields corresponding to each power supply knowledge from the security plan sub-graph, and filling the information fields into the power supply command emergency plan template to generate the power supply command emergency plan for the security point.
[0019] In a second aspect, the present invention provides a device for automatically generating a power supply command emergency plan, the device comprising:
[0020] The dynamic knowledge graph module is used to obtain existing power supply emergency plans and parse them using knowledge graph semantic understanding technology, and then build a dynamic knowledge graph of power supply emergency plans based on the parsing results;
[0021] The comprehensive knowledge graph module is used to obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive power supply knowledge graph;
[0022] The security plan subgraph module is used to traverse the power supply comprehensive knowledge graph starting from the entity nodes of the security points in the power supply comprehensive knowledge graph, and construct a security plan subgraph with the entity nodes of the security points as the core based on the traversal results;
[0023] The rationality verification module is used to verify the rationality of the support plan sub-graph based on the preset rationality constraints. If the rationality verification fails, manual adjustments are made;
[0024] The command emergency plan module is used to generate a power supply command emergency plan corresponding to the physical node of each protection point based on the protection plan subgraph after rationality verification.
[0025] In a third aspect, the present invention provides a device for automatically generating a power supply command emergency plan, comprising a processor and a storage medium;
[0026] The storage medium is used to store instructions;
[0027] The processor is configured to operate according to the instructions to execute the steps of the above method.
[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] The present invention provides a method, device and storage medium for automatically generating power supply command emergency plans, which can effectively reuse the power supply plans and power supply command knowledge graphs accumulated in the power supply command system, reducing the workload of power supply command personnel in formulating and writing power supply command emergency plans; based on knowledge graph technology and rationality verification technology, it realizes the accurate aggregation of power supply command emergency knowledge, and ensures the rationality of generating emergency plans; in summary, the present invention can be oriented to power supply command scenarios, improves the intelligence level of the power supply command system, and quickly aggregates relevant power supply information during the occurrence and handling of faults, notifies relevant personnel, and provides command decisions based on fault rules. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flow chart of a method for automatically generating a power supply command emergency plan provided in the first embodiment of the present invention;
[0032] Figure 2 This is a schematic diagram of a dynamic knowledge graph for constructing a power supply protection plan provided by the first embodiment of the present invention;
[0033] Figure 3 This is a schematic diagram of generating a comprehensive knowledge graph for power protection provided by the first embodiment of the present invention. DETAILED DESCRIPTION
[0034] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.
[0035] Example 1:
[0036] like Figure 1 As shown, an embodiment of the present invention provides a method for automatically generating a power supply command emergency plan, comprising:
[0037] 1. Obtain the existing power supply emergency plan and analyze it using knowledge graph semantic understanding technology, and build a dynamic knowledge graph of the power supply emergency plan based on the analysis results;
[0038] The analysis results include the equipment type after power protection knowledge, basic equipment description, normal equipment status description, abnormal equipment status description, fault type, fault name, fault description and fault handling steps.
[0039] like Figure 2 As shown, a schematic diagram of a dynamic knowledge graph for constructing a power protection plan is given; the abnormal state description of the equipment is associated with the equipment type, the fault type is associated with the abnormal state description, and the fault handling steps (handling step 1, handling step 2, handling step 3) are associated with the fault type.
[0040] 2. Obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive power supply knowledge graph; the fusion includes the entity nodes of the support equipment involved in any support point in the power supply command knowledge graph, obtaining the entity nodes of the equipment type corresponding to the entity nodes in the dynamic knowledge graph through entity matching technology, building a mapping relationship between the two entity nodes, and building a comprehensive power supply knowledge graph through the mapping relationship.
[0041] like Figure 3As shown in the figure, a schematic diagram of generating a comprehensive knowledge graph for power protection is given; wherein, the power protection command knowledge graph includes the protection potential, the protection potential-related protection equipment, the protection equipment-related entity nodes (cable terminal box, generator, T15 box transformer), and the power protection plan dynamic knowledge graph is shown in the figure. Figure 2 Constructed dynamic knowledge graph.
[0042] 3. Traverse the comprehensive power supply knowledge graph starting from the entity nodes of the security points in the comprehensive power supply knowledge graph, and construct a security plan subgraph with the entity nodes of the security points as the core based on the traversal results; traversing the comprehensive power supply knowledge graph includes traversing the comprehensive power supply knowledge graph using a depth optimization traversal or a breadth-first traversal algorithm and recording the traversed nodes and edges, and generating a security plan subgraph through the nodes and edges.
[0043] 4. Perform rationality verification on the support plan sub-map based on the preset rationality constraints. If the rationality verification fails, make manual adjustments.
[0044] 4.1. In this embodiment, rationality constraints include the mutual exclusion constraint of normal and abnormal states of equipment and the sequence constraint of fault handling steps;
[0045] The rationality of the normal and abnormal state descriptions of the equipment in the support plan subgraph is verified by the mutual exclusion constraint of the normal and abnormal state of the equipment: the normal and abnormal state descriptions of the equipment in the support plan subgraph are extracted, and the similarity between the normal and abnormal state descriptions is calculated using semantic similarity. If the similarity between the abnormal state description and the normal state description of any equipment exceeds the preset threshold, the abnormal state description does not meet the normal and abnormal state mutual exclusion constraint, and the rationality verification fails.
[0046] The rationality of the fault handling steps in the assurance plan subgraph is verified by the fault handling step sequence constraint: the fault handling steps in the assurance plan subgraph are extracted. If the fault handling steps do not meet the fault handling step sequence constraint, the rationality verification fails.
[0047] 4.2. Manual adjustments include deleting the entity nodes of the devices corresponding to the abnormal state descriptions of the devices that fail to verify the rationality of the normal-abnormal state mutual exclusion constraint; and optimizing the fault handling steps that fail to verify the rationality of the fault handling step sequence constraint.
[0048] 5. Based on the security plan subgraph after rationality verification, generate the power supply command emergency plan corresponding to the physical node of each security point; including information analysis of power supply knowledge on the security plan subgraph corresponding to the physical node of each security point, restoring the information fields corresponding to each power supply knowledge from the security plan subgraph, and filling the information fields into the power supply command emergency plan template to generate the power supply command emergency plan for the security point.
[0049] Example 2:
[0050] An embodiment of the present invention provides a device for automatically generating a power supply command emergency plan, the device comprising:
[0051] The dynamic knowledge graph module is used to obtain existing power supply emergency plans and parse them using knowledge graph semantic understanding technology, and then build a dynamic knowledge graph of power supply emergency plans based on the parsing results;
[0052] The comprehensive knowledge graph module is used to obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive power supply knowledge graph;
[0053] The security plan subgraph module is used to traverse the power supply comprehensive knowledge graph starting from the entity nodes of the security points in the power supply comprehensive knowledge graph, and construct a security plan subgraph with the entity nodes of the security points as the core based on the traversal results;
[0054] The rationality verification module is used to verify the rationality of the support plan sub-graph based on the preset rationality constraints. If the rationality verification fails, manual adjustments are made;
[0055] The command emergency plan module is used to generate a power supply command emergency plan corresponding to the physical node of each protection point based on the protection plan subgraph after rationality verification.
[0056] Example 3:
[0057] Based on the first embodiment, the embodiment of the present invention provides a device for automatically generating a power supply command emergency plan, including a processor and a storage medium;
[0058] The storage medium is used to store instructions;
[0059] The processor is configured to operate according to the instructions to execute the steps of the above method.
[0060] Example 4:
[0061] Based on the first embodiment, the embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above method are implemented.
[0062] The information aggregation capabilities provided by knowledge graph technology enable efficient and rapid aggregation of knowledge related to power supply command emergency response plans, enabling the automatic and accurate generation of corresponding emergency response plans, which has important application value for power supply command tasks. Therefore, the automatic generation method, device, and storage medium for power supply command emergency response plans provided in the embodiments of the present invention are of great significance for accelerating the system's response to power grid safety incidents and ensuring the safe and stable operation of the power system.
[0063] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0064] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0065] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0067] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for automatically generating a power supply command emergency plan, characterized in that: include: Obtain the existing power supply plan and parse it through knowledge graph semantic understanding technology, and build a dynamic knowledge graph of the power supply plan based on the parsing results; Obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive knowledge graph of power supply; Starting from the entity nodes of the security points in the power supply security comprehensive knowledge graph, the power supply security comprehensive knowledge graph is traversed, and based on the traversal results, a security plan subgraph with the entity nodes of the security points as the core is constructed; Based on the preset rationality constraints, the rationality of the support plan sub-map is verified. If the rationality verification fails, manual adjustments are made; Based on the support plan subgraph after rationality verification, generate the power supply command emergency plan corresponding to the entity node of each support point; The fusion with the dynamic knowledge graph of the power supply plan includes obtaining the entity node of the equipment type corresponding to any security point in the power supply command knowledge graph through the entity matching technology, and constructing a mapping relationship between the two entity nodes; Wherein, the rationality constraints include the equipment normal-abnormal state mutual exclusion constraint and the fault handling step sequence constraint; The rationality of the device normal state description and the device abnormal state description in the security plan subgraph is verified through the device normal-abnormal state mutual exclusion constraint: the device normal state description and the device abnormal state description in the security plan subgraph are extracted, and the similarity of the device normal state description and the device abnormal state description is calculated through semantic similarity. If the similarity between any device abnormal state description and the normal state description is higher than a preset threshold, the device abnormal state description does not meet the device normal-abnormal state mutual exclusion constraint, and the rationality verification fails; The rationality of the fault handling steps in the support plan subgraph is verified through the fault handling step sequence constraint: the fault handling steps in the support plan subgraph are extracted. If the fault handling steps do not meet the fault handling step sequence constraint, the rationality verification fails. Among them, the generation of the power supply command emergency plan corresponding to the physical node of each security point includes performing information analysis of the power supply knowledge on the security plan sub-graph corresponding to the physical node of each security point, restoring the information fields corresponding to each power supply knowledge from the security plan sub-graph, and filling the information fields into the power supply command emergency plan template to generate the power supply command emergency plan for the security point.
2. The method for automatically generating a power supply command emergency plan according to claim 1, characterized in that: The analysis results include the equipment type after power protection knowledge, the basic situation description of the equipment, the normal state description of the equipment, the abnormal state description of the equipment, the fault type, the fault name, the fault description and the fault handling steps.
3. The method for automatically generating a power supply command emergency plan according to claim 1, characterized in that: The traversing of the comprehensive knowledge graph for power supply protection includes traversing the comprehensive knowledge graph for power supply protection using a deep optimization traversal or a breadth-first traversal algorithm and recording the traversed nodes and edges.
4. The method for automatically generating a power supply command emergency plan according to claim 1, characterized in that: The manual adjustment includes deleting the entity node of the device corresponding to the abnormal state description of the device that fails the rationality verification of the normal-abnormal state mutual exclusion constraint of the device; and optimizing the fault processing steps that fail the rationality verification of the sequence constraint of the fault processing steps.
5. A device for automatically generating emergency plans for power supply command, characterized in that: The device is configured to perform the steps of the method according to any one of claims 1 to 4, and the device comprises: The dynamic knowledge graph module is used to obtain the existing power supply emergency plan and analyze it through the knowledge graph semantic understanding technology, and build a dynamic knowledge graph of the power supply emergency plan based on the analysis results; The comprehensive knowledge graph module is used to obtain the existing power supply command knowledge graph and fuse it with the dynamic knowledge graph of the power supply plan through knowledge fusion technology to generate a comprehensive knowledge graph for power supply; The security plan subgraph module is used to traverse the power supply comprehensive knowledge graph starting from the entity nodes of the security points in the power supply comprehensive knowledge graph, and construct a security plan subgraph with the entity nodes of the security points as the core based on the traversal results; The rationality verification module is used to verify the rationality of the support plan sub-map based on the preset rationality constraints. If the rationality verification fails, manual adjustments are made; The command emergency plan module is used to generate a power supply command emergency plan corresponding to the entity node of each guarantee point based on the guarantee plan subgraph after rationality verification.
6. A device for automatically generating emergency plans for power supply command, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
