Electric power emergency plan information instruction interaction method and related device

Through the textual processing of power emergency plans, command-based interactive instructions are formed, which solves the problem of difficulty in finding paper plans and dependence on experience in emergency response, achieves real-time and accurate emergency decision support, and improves the level of emergency response.

CN118568199APending Publication Date: 2024-08-30GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410691607.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the emergency response process of power emergencies, existing paper emergency plans have problems such as difficulty in finding and updating, dependence on experience, leading to decision-making errors, and lack of real-time and command-based interactive support, which affects the efficiency and accuracy of emergency response.

Method used

By obtaining the power emergency plan interaction request, the instruction template is used to perform subject identification, tree structure segmentation, semantic identification and sentence extraction of the text emergency plan to form command-based emergency plan interactive instructions and provide real-time emergency response support.

Benefits of technology

It realizes the digitization and instruction of power emergency plans, improves the decision-making accuracy and efficiency of emergency response personnel, avoids the disadvantages of relying on experience, and enhances the degree of digital use of emergency plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568199A
    Figure CN118568199A
Patent Text Reader

Abstract

The invention belongs to the field of electric power systems, and discloses an electric power emergency plan information instruction interaction method and a related device, and the method comprises the steps: obtaining an electric power emergency plan interaction request; obtaining a query label based on the electric power emergency plan interaction request; selecting a plurality of electric power emergency plan text interaction instructions most relevant to the query label from preset electric power emergency plan text interaction instructions, and feeding back the selected electric power emergency plan text interaction instructions; wherein the electric power emergency plan text interaction instruction is obtained by instructing an electric power emergency plan text by adopting an instruction template. An electric power emergency plan text is instructed by adopting an instruction template to obtain a plurality of electric power emergency plan text interaction instructions, and an electric power emergency plan interaction request can be formed based on a current scene in early warning and emergency response processes, especially in a complex and changeable emergency scene. And furthermore, instructed related electric power emergency plan text interaction instructions are fed back for emergency disposal personnel to refer to and execute, so that the defects caused by directly carrying out work according to previous experience are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electric power systems and relates to an electric power emergency plan information instruction interaction method and related devices. Background Art

[0002] In the emergency response process of power emergencies, emergency response personnel play a vital role. They must quickly and accurately perform a series of operations in accordance with the requirements of the emergency plan to minimize the impact of the incident on the power system and ensure public safety. Although a relatively complete emergency plan system has been established, it often faces many challenges in actual application, which limits its role in the emergency response process.

[0003] First, emergency plans are usually recorded in traditional paper documents, which have significant limitations. In an emergency, the process of searching and reading paper plans is not only time-consuming, but also prone to errors, and cannot provide key information in a timely manner to guide emergency response personnel. In addition, the update and maintenance of paper plans are relatively difficult, and it is difficult to adapt to the rapidly changing power system and emergency needs. Secondly, faced with complex and changing emergency scenarios, commanders tend to rely more on their own experience and intuition to make decisions. Although their experience and expertise play an important role in emergency response, this reliance may lead to wrong decisions or delays in some extreme or unknown situations. In addition, over-reliance on experience may also cause commanders to ignore key information or disposal measures in the plan, thereby reducing the efficiency and accuracy of emergency response.

[0004] Currently, digital technology is developing rapidly. In the field of power emergency, emergency plans are also facing technical demands for digital transformation. How to provide real-time and directive interaction between power emergency plans and emergency response personnel during emergency response has become an urgent problem that needs to be solved. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method and related device for interactive information instruction of power emergency plan.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] According to a first aspect of the present invention, there is provided a method for interactively directing information of an electric power emergency plan, comprising: obtaining an interactive request for an electric power emergency plan; obtaining a query tag based on the interactive request for the electric power emergency plan; selecting and feeding back a number of electric power emergency plan text interactive instructions that are most relevant to the query tag from preset electric power emergency plan text interactive instructions; wherein the electric power emergency plan text interactive instructions are obtained by directing the electric power emergency plan text using an instruction template.

[0008] Optionally, the method of converting the electric power emergency plan text into an instruction template includes: subject identification of the electric power emergency plan text to obtain event labels of the electric power emergency plan text; tree-structured segmentation and paragraph extraction of the electric power emergency plan text to obtain extracted paragraphs of the electric power emergency plan text; and semantic identification of each extracted paragraph to obtain stage labels, link labels and scenario labels of each extracted paragraph of the electric power emergency plan text; sentence extraction of each extracted paragraph to obtain a number of sentences, and obtaining task measure labels and task measure attribute labels of each extracted paragraph of the electric power emergency plan text based on the number of sentences; entity filling of the instruction template based on the event label of the electric power emergency plan text, the stage labels, link labels and scenario labels of each paragraph of the electric power emergency plan text, and the task measure labels and task measure attribute labels of each paragraph of the electric power emergency plan text to obtain interactive instructions for the electric power emergency plan text.

[0009] Optionally, the subject identification of the electric power emergency plan text to obtain the event tag of the electric power emergency plan text includes: based on preset subject keywords, using a keyword matching method based on a specific domain to obtain the subject of the electric power emergency plan text and use it as the event tag of the electric power emergency plan text.

[0010] Optionally, the tree-structured segmentation and paragraph extraction of the electric power emergency plan text to obtain the extracted paragraphs of the electric power emergency plan text; and the semantic recognition of each extracted paragraph to obtain the stage label, link label and scenario label of each extracted paragraph of the electric power emergency plan text include: based on the preset paragraph structure corresponding to the event label of the electric power emergency plan text, the electric power emergency plan text is segmented into a tree structure, and the paragraphs to be extracted are marked; based on the preset extraction start keyword and end keyword, the paragraphs marked as needing to be extracted are extracted, and the subtitle field of the paragraph is combined at the same time to obtain the extracted paragraphs of the electric power emergency plan text; the subtitle field of each extracted paragraph is semantically recognized to obtain the stage label, link label and scenario label of each extracted paragraph of the electric power emergency plan text.

[0011] Optionally, extracting sentences from each extracted paragraph to obtain a number of sentences includes: dividing each extracted paragraph into sentences according to punctuation marks to obtain segmentation results, and completing the segmentation results using a Chinese dependency syntax analysis tool to obtain a number of sentences.

[0012] Optionally, the method of obtaining task measure labels and task measure attribute labels for each extracted paragraph of the power emergency plan text based on several sentences: using a Chinese dependency syntax analysis tool to obtain the syntactic structure of each sentence; and based on a pre-trained information extraction model, performing entity recognition on each sentence to obtain an entity recognition result for each sentence; and obtaining task measure labels and task measure attribute labels for each extracted paragraph of the power emergency plan text based on the syntactic structure and entity recognition results of each sentence.

[0013] Optionally, the information extraction model includes a bidirectional long short-term memory network BiLSTM model and a conditional random field CRF model connected in sequence; the loss function of the information extraction model adopts a negative log-likelihood loss function.

[0014] Optionally, the instruction template adopts multi-level labels; the multi-level labels are events, stages, links, scenarios, task measures and task measure attributes in sequence; wherein the task measure attributes include one or more of the following: trigger conditions, executors, recipients, prerequisites and resource requirements.

[0015] According to a second aspect of the present invention, there is provided an electric power emergency plan information instruction-based interactive system, comprising: an interactive request acquisition module, used to acquire an electric power emergency plan interactive request; a label determination module, used to obtain a query label based on the electric power emergency plan interactive request; an interactive instruction feedback module, used to select and feedback a number of electric power emergency plan text interactive instructions that are most relevant to the query label from preset electric power emergency plan text interactive instructions; wherein the electric power emergency plan text interactive instructions are obtained by instruction-based electric power emergency plan texts using instruction templates.

[0016] Optionally, the method of converting the electric power emergency plan text into an instruction template includes: subject identification of the electric power emergency plan text to obtain event labels of the electric power emergency plan text; tree-structured segmentation and paragraph extraction of the electric power emergency plan text to obtain extracted paragraphs of the electric power emergency plan text; and semantic identification of each extracted paragraph to obtain stage labels, link labels and scenario labels of each extracted paragraph of the electric power emergency plan text; sentence extraction of each extracted paragraph to obtain a number of sentences, and obtaining task measure labels and task measure attribute labels of each extracted paragraph of the electric power emergency plan text based on the number of sentences; entity filling of the instruction template based on the event label of the electric power emergency plan text, the stage labels, link labels and scenario labels of each paragraph of the electric power emergency plan text, and the task measure labels and task measure attribute labels of each paragraph of the electric power emergency plan text to obtain interactive instructions for the electric power emergency plan text.

[0017] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for interactive instruction of electric power emergency plan information when executing the computer program.

[0018] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for interactive instruction of electric power emergency plan information are implemented.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] The electric power emergency plan information instruction interaction method of the present invention is based on the electric power emergency plan text being instructionized using an instruction template to obtain a number of electric power emergency plan text interaction instructions, so as to realize the digitization and instructionization of the electric power emergency plan text. In the early warning and emergency response process, especially in complex and changeable emergency scenarios, an electric power emergency plan interaction request can be formed based on the current scenario, and then based on the electric power emergency plan interaction request, the instructionized related electric power emergency plan text interaction instructions are fed back for reference execution by emergency disposal personnel, so as to assist in emergency disposal work and avoid the drawbacks caused by directly carrying out work based on past experience. At the same time, it can also provide support for emergency disposal personnel to query and interact with electric power emergency plans in real time, improve the degree of digital use of electric power emergency plans, and improve the level of electric power emergency disposal. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 The present invention is a flowchart of the power emergency plan information instruction interaction method according to an embodiment of the present invention.

[0022] Figure 2 Schematic diagram of the calculation principle of the subject word matching degree according to an embodiment of the present invention.

[0023] Figure 3 The following is a paragraph extraction flow chart of an embodiment of the present invention.

[0024] Figure 4 It is a schematic diagram of the syntactic dependency analysis result of an example of an embodiment of the present invention.

[0025] Figure 5 The following is a flow chart of sentence completion according to an embodiment of the present invention.

[0026] Figure 6 Schematic diagram of the information extraction model architecture of an embodiment of the present invention.

[0027] Figure 7 Schematic diagram of the instruction template structure of an embodiment of the present invention.

[0028] Figure 8 This is a structural block diagram of the electric power emergency plan information instruction interaction system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0032] See also Figure 1 In one embodiment of the present invention, a method for interactive instruction of power emergency plan information is provided, which can realize digital management of textual power emergency plan texts, thereby improving the level of emergency response.

[0033] Specifically, the power emergency plan information instruction interaction method includes the following steps:

[0034] S1: Get the power emergency plan interaction request.

[0035] S2: Get the query tag based on the power emergency plan interaction request.

[0036] S3: From the preset electric power emergency plan text interaction instructions, select several electric power emergency plan text interaction instructions that are most relevant to the query tag and provide feedback; wherein the electric power emergency plan text interaction instructions are obtained by directing the electric power emergency plan text using an instruction template.

[0037] The electric power emergency plan information instruction interaction method of the present invention is based on the electric power emergency plan text being instructionized using an instruction template to obtain a number of electric power emergency plan text interaction instructions, so as to realize the digitization and instructionization of the electric power emergency plan text. In the early warning and emergency response process, especially in complex and changeable emergency scenarios, an electric power emergency plan interaction request can be formed based on the current scenario, and then based on the electric power emergency plan interaction request, the instructionized related electric power emergency plan text interaction instructions are fed back for reference execution by emergency disposal personnel, so as to assist in emergency disposal work and avoid the drawbacks caused by directly carrying out work based on past experience. At the same time, it can also provide support for emergency disposal personnel to query and interact with electric power emergency plans in real time, improve the degree of digital use of electric power emergency plans, and improve the level of electric power emergency disposal.

[0038] Specifically, converting the electric power emergency plan text into instructions using instruction templates means that the text of the electric power emergency plan text is subject to subject identification, segmentation and sentence decomposition, and then the text is identified and relationship constructed through natural language processing related technologies to form instructions in the form of instruction templates.

[0039] In a possible implementation, the method of directing the power emergency plan text by using an instruction template includes: subject identification of the power emergency plan text to obtain event labels of the power emergency plan text; tree structure segmentation and paragraph extraction of the power emergency plan text to obtain extracted paragraphs of the power emergency plan text; and semantic identification of each extracted paragraph to obtain stage labels, link labels and scenario labels of each extracted paragraph of the power emergency plan text; sentence extraction of each extracted paragraph to obtain a number of sentences, and obtaining task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text based on the number of sentences; entity filling of the instruction template according to the event label of the power emergency plan text, the stage label, link label and scenario label of each paragraph of the power emergency plan text, and the task measure label and task measure attribute label of each paragraph of the power emergency plan text to obtain the power emergency plan text interactive instruction.

[0040] In a possible implementation, the subject identification of the electric power emergency plan text to obtain the event tag of the electric power emergency plan text includes: based on preset subject keywords, using a keyword matching method based on a specific domain to obtain the subject of the electric power emergency plan text and use it as the event tag of the electric power emergency plan text.

[0041] Specifically, the keyword matching method based on a specific domain is used to determine the subject of the power emergency plan text, and to clarify the paragraph structure and text content that need to be disassembled. The input power emergency plan text is judged to its subject. After the subject is determined, the key text content to be parsed is obtained according to the preset topic model.

[0042] A topic keyword model is designed to match topics, which specifically includes topic keywords and specific domains. For example, if the topic keyword is "strong convection" and the specific domain is "title", when the power emergency plan text is input, the text title domain of the power emergency plan text is obtained and the keywords are matched. The theme of the power emergency plan text is determined by the theme word matching degree of different topic keywords. The theme keyword with the highest theme word matching degree is selected as the theme of the power emergency plan text. After determining the theme of the power emergency plan text, the sentences to be extracted are extracted according to the paragraph structure of the corresponding theme.

[0043] See also Figure 2 The calculation of the subject word matching degree is mainly based on the matching results (which can be the number of occurrences) in different domains such as the file name, the file homepage title, and the file, and is obtained by combining different weights. In this implementation, the file name has the highest weight, which is set to 2, the file homepage title weight is 1.5, and the keyword in the file is 1. According to the weighted calculation, the subject word matching degree of each subject keyword can be finally obtained.

[0044] In a possible implementation, the tree-structured segmentation and paragraph extraction of the electric power emergency plan text to obtain the extracted paragraphs of the electric power emergency plan text; and the semantic recognition of each extracted paragraph to obtain the stage label, link label and scenario label of each extracted paragraph of the electric power emergency plan text include: based on the preset paragraph structure corresponding to the event label of the electric power emergency plan text, the electric power emergency plan text is segmented into a tree structure, and the paragraphs to be extracted are marked; based on the preset extraction start keyword and end keyword, the paragraphs marked as needing to be extracted are extracted, and the subtitle field of the paragraph is combined at the same time to obtain the extracted paragraphs of the electric power emergency plan text; the subtitle field of each extracted paragraph is semantically recognized to obtain the stage label, link label and scenario label of each extracted paragraph of the electric power emergency plan text.

[0045] Specifically, when the power emergency plan text matches a topic, the paragraph structure of the corresponding topic can be obtained. Since the computer program reads the text content as pure text data without paragraph structure information, it is necessary to match the text data in a text matching way to perform text segmentation. In the segmentation structure, set the start text, end text, paragraph number, and whether to extract and other information. For the paragraphs to be extracted, automatically locate the start text and end text, and then use the text content between the start text and the end text as the extracted paragraph.

[0046] See also Figure 3Before segmentation, the paragraph structure of the topic needs to be set in advance. The paragraph structure adopts a tree structure, and the paragraphs to be extracted are marked, and the start and end keywords of the extraction are set. Among them, the subtitle attribute structure of the power emergency plan text represents the paragraph structure of the power emergency plan text. The subtitle field needs to be extracted, and the link or stage to which it belongs needs to be set on the paragraph to be extracted. In this way, the text content obtained by segmentation automatically establishes an association relationship with the link or stage, and the matters extracted from the power emergency plan text are all associated with the corresponding link or stage.

[0047] In addition, with the help of paragraph positioning, not only can the text corresponding to the keywords of each paragraph be extracted, but also the default words of the current paragraph can be extracted, and the default words can be used to assist in the identification of stage labels, link labels and scenario labels to improve the recognition accuracy and efficiency of these labels.

[0048] See also Figure 5 In a possible implementation, extracting sentences from each extracted paragraph to obtain a number of sentences includes: dividing each extracted paragraph into sentences according to punctuation marks to obtain segmentation results, and using a Chinese dependency syntax analysis tool to complete the segmentation results to obtain a number of sentences.

[0049] Specifically, sentence extraction refers to the segmentation of paragraphs and then sentence completion. The Chinese dependency syntax analysis tool can be used. Dependency syntax analysis is one of the core technologies of natural language processing. It aims to determine the syntactic structure of sentences by analyzing the dependency relationship between words in sentences. It analyzes the dependency relationship between words in sentences, such as the subject-predicate relationship, which refers to the relationship between the subject and the predicate. It is automatically segmented according to the dependency relationship and punctuation marks. After segmentation, it is determined whether there is a parallel relationship or a continuous predicate structure in the sentence. The continuous predicate structures included in general sentences include: subject-predicate structure, verb-object structure, parallel relationship, attributive-predicate relationship, preposition-object relationship, and function word components. See Figure 4 , shows the syntactic dependency analysis result of an example. Among them, SBV represents the subject-predicate structure, VOB represents the verb-object structure, COO represents the parallel relationship, ATT represents the attributive relationship, POB represents the preposition-object relationship, and MT represents the function word component.

[0050] The Chinese dependency syntax analysis tool is used to determine whether the sentence structure is complete and whether the sentence content is meaningful, and to extract the subject in the sentence to replace the default word. In addition, for the power emergency plan text, the accuracy can be improved by enriching the vocabulary of the Chinese dependency syntax analysis tool to better achieve the goal of intelligent sentence segmentation. The extracted paragraphs are split through intelligent sentence segmentation and sentence completion to obtain several sentences, and the sentence syntactic dependency relationship is determined to determine whether the subject or object needs to be supplemented.

[0051] For details, see Figure 5 For sentences with SBV and VOB, they are considered complete sentences, and the subject is extracted as the candidate subject of the next sentence without a subject. For sentences without SBV and VOB, they are considered sentences that need to be completed, and the subject is selected from the candidate subjects and the subject is completed. For sentences with SBV and no VOB, they are considered sentences that need to be completed, and the next sentence is connected to merge them into a complete sentence. For sentences without SBV and VOB, they are considered incomplete sentences and annotated.

[0052] In a possible implementation, the task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text are obtained based on a number of sentences: a Chinese dependency syntax analysis tool is used to obtain the syntactic structure of each sentence; and based on a pre-trained information extraction model, entity recognition is performed on each sentence to obtain the entity recognition result of each sentence; based on the syntactic structure and entity recognition result of each sentence, the task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text are obtained.

[0053] See also Figure 6 Optionally, the information extraction model includes a bidirectional long short-term memory network BiLSTM model and a conditional random field CRF model connected in sequence.

[0054] Specifically, the conditional random field model CRF in machine learning and the BiLSTM model in deep learning are used as information extraction models. Based on BiLSTM, the transition probability matrix of the CRF layer can learn the constraints between labels from the final predicted labels, thereby reducing the number of invalid prediction tags.

[0055] After the model is selected, it is necessary to train the model according to the characteristics of the data, which is divided into the following steps:

[0056] First, data preprocessing is performed. This step mainly converts manually annotated data into BIO annotations. BIO annotations are mainly divided into the following labels: B-PER represents the first letter of a person's name, I-PER represents a non-first letter of a person's name, B-LOC represents the first letter of a place name, I-LOC represents a non-first letter of a place name, B-ORG represents the first letter of an organization name, I-ORG represents a non-first letter of an organization name, O represents that the word is not part of the named entity, B-WORK represents the first letter of the execution content, I-WORK represents a non-first letter of the execution content, B-UP represents the first letter of the superior department, I-UP represents the non-first letter of the superior department, B-DOWN represents the first letter of the execution department, and I-DOWN represents the non-first letter of the execution department. Through data preprocessing, each word in the sentence can be BIO annotated.

[0057] In addition, the model may overfit during the training process, and it is necessary to clarify the data convergence interval and calculate by setting the model loss function. In this embodiment, the loss function of the information extraction model adopts a negative log-likelihood loss function.

[0058] Specifically, the score from input X to label y is defined as:

[0059]

[0060] The probability of getting label y from input X is:

[0061]

[0062] Then the loss function of the information extraction model is:

[0063]

[0064] Where A is the transfer matrix, Indicates that from label y i Move to label y i+1 The score of , P is the score matrix generated by BiLSTM, Represents the i-th position in the input sequence and the label y i The score between.

[0065] Through model training, the loss function is minimized, that is, the obtained probability reaches the maximum value. During the model training process, the Dropout parameter is set to prevent overfitting. Through training simulation, it is determined that the random inactivation rate of Dropout = 0.5 is set. Half of the neurons are lost during the training process to prevent overfitting; the phased learning rate decay method is adopted, and the decay parameter of the optimizer is controlled to prevent overfitting, and the model can continue to learn and fine-tune in the later stage; mini-batch is set, and the mini-batch gradient descent method divides the number of samples into multiple small mini-batches, which can simultaneously process a single small batch to improve the learning speed; multiple groups of epochs (training rounds) are trained, set to 150 rounds, and the model reaches convergence, and the training will not continue ineffectively. By constructing the basic process of obtaining additional information from the information extraction model, the probability prediction of the BIO label that each word in the sentence may belong to is made. The higher the score, the greater the possibility, and then the most likely label is finally selected as the output through the CRF transfer probability matrix.

[0066] The pre-trained information extraction model is obtained through the above process. The pre-trained information extraction model is used to predict the probability of the BIO label to which each word in the sentence may belong. The higher the score, the greater the possibility. Then, the most likely label is finally selected as the output through the CRF transfer probability matrix to complete entity recognition.

[0067] By using the Chinese dependency syntax analysis tool to obtain the syntactic structure of each sentence, the subject in the sentence can be extracted as the executor, the object in the sentence can be extracted as the recipient, the trigger condition can be determined through the prepositional-object relationship, the prerequisite can be determined through the function word component, the resource demand can be determined by the attributive-central relationship, etc., and then the task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text can be obtained.

[0068] In a possible implementation, the instruction template uses multi-level labels; the multi-level labels are events, stages, links, scenarios, task measures, and task measure attributes in sequence; wherein the task measure attributes include one or more of the following: trigger conditions, executors, recipients, prerequisites, and resource requirements.

[0069] For details, see Figure 7 , combined with the set instruction template, the disassembled power emergency plan text is combined according to the entities corresponding to the labels such as events, stages, links, scenarios, task measures and task measure attributes. Among them, the task measure attributes include trigger conditions, executors, recipients, prerequisites and resource requirements, and are filled in the instruction template in turn to complete the generation of interactive instructions for the power emergency plan text.

[0070] In a possible implementation manner, taking the text of the electric power emergency plan: "Emergency Plan for Large-Scale Power Outages" as an example, the process of converting the text of the electric power emergency plan into instructions using an instruction template is explained in the present invention.

[0071] The first step is to identify the topic of the power emergency plan text. After obtaining the power emergency plan text, the topic judgment is made on the content of the power emergency plan text, and the keyword matching technology based on the specific domain is used for topic identification. The prescribed subject word matching degree is calculated, and the file name, file homepage title and keywords in the file are matched. Based on the "Emergency Plan for Large-Scale Power Outages", the theme is identified as "Large-Scale Power Outages".

[0072] Secondly, the text of the power emergency plan is segmented to identify the stages, links, and scenarios in the instruction template. The paragraph structure is divided according to the theme, and key information such as the start text, end text, and paragraph number are set. A tree structure is used to extract paragraphs for marking, and the start and end keywords are set for extraction. The subheading attribute structure in the power emergency plan text represents the paragraph structure of the document. For the extraction of the subheading field, the stages, links, and scenarios to which the paragraphs need to be extracted are confirmed to realize the confirmation of the stages, links, and scenarios in the instruction template. In the "Emergency Plan for Large-Scale Power Outages", the "Emergency Response" stage, "Response Action" link, and "Response Measures" scenario are identified based on the specific titles and paragraphs in the text, and specific response measures for different response levels are implemented.

[0073] Then, the specific sentences in the power emergency plan text are identified. By identifying the specific sentences, attribute labels such as executors, recipients, trigger conditions, prerequisites and resource requirements in the instruction template are screened out. Using the Chinese dependency syntax analysis tool, combined with the natural language processing technology of the information extraction model, the syntactic structure of the sentence is determined by analyzing the dependency relationship between words in the sentence, and the sentence is automatically segmented according to the dependency relationship and punctuation marks. The parallel relationship or continuous predicate structure in the sentence is determined. For incomplete sentences or omitted sentences, the relevant information is completed through semantic recognition. Using the Chinese dependency syntax analysis tool, the subject in the sentence is extracted as the executor, the object in the sentence is extracted as the recipient, the trigger condition is determined by the preposition-object relationship, the prerequisite is determined by the function word component, and the resource requirement is determined by the attributive relationship.

[0074] For the original text of the "Emergency Plan for Large-Scale Power Outages", "Mobilize sufficient patrol forces to quickly understand and quickly find out the scope of the disaster-affected area, the damaged locations of power transmission and distribution equipment, and power outages for important power users.", 8 attribute labels can be obtained, including "event type, stage, link, scenario, executor, trigger conditions, task measures and resource requirements", namely "Event: Large-scale power outage", "Stage: Emergency response", "Link: Response action link", "Emergency response measures scenario", "Executor: Equipment Department", "Trigger condition: Large-scale power outage", "Resource requirement: sufficient patrol force" and "Task measures: find out the scope of the disaster-affected area, the damaged locations of power transmission and distribution equipment, and power outages for important power users".

[0075] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0076] See also Figure 8In another embodiment of the present invention, a power emergency plan information instruction interaction system is provided, which can be used to implement the above-mentioned power emergency plan information instruction interaction method. Specifically, the power emergency plan information instruction interaction system includes an interaction request acquisition module, a label determination module and an interaction instruction feedback module.

[0077] Among them, the interaction request acquisition module is used to obtain the power emergency plan interaction request; the label determination module is used to obtain the query label based on the power emergency plan interaction request; the interaction instruction feedback module is used to select and feedback several power emergency plan text interaction instructions that are most relevant to the query label from the preset power emergency plan text interaction instructions; among them, the power emergency plan text interaction instruction is obtained by instructionizing the power emergency plan text using an instruction template.

[0078] In a possible implementation, the method of directing the power emergency plan text by using an instruction template includes: subject identification of the power emergency plan text to obtain event labels of the power emergency plan text; tree structure segmentation and paragraph extraction of the power emergency plan text to obtain extracted paragraphs of the power emergency plan text; and semantic identification of each extracted paragraph to obtain stage labels, link labels and scenario labels of each extracted paragraph of the power emergency plan text; sentence extraction of each extracted paragraph to obtain a number of sentences, and obtaining task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text based on the number of sentences; entity filling of the instruction template according to the event label of the power emergency plan text, the stage label, link label and scenario label of each paragraph of the power emergency plan text, and the task measure label and task measure attribute label of each paragraph of the power emergency plan text to obtain the power emergency plan text interactive instruction.

[0079] All relevant contents of each step involved in the embodiment of the aforementioned electric power emergency plan information instruction interaction method can be referred to the functional description of the functional modules corresponding to the electric power emergency plan information instruction interaction system in the embodiment of the present invention, and will not be repeated here.

[0080] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0081] In another embodiment of the present invention, a computer device is provided, the computer device comprising a processor and a memory, the memory being used to store a computer program, the computer program comprising program instructions, and the processor being used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions in a computer storage medium to implement a corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the power emergency plan information instruction interaction method.

[0082] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for interactive information instruction of power emergency plan in the above embodiment.

[0083] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for interactive information instruction of power emergency plan, characterized in that: include: Obtaining interactive request for power emergency plan; Obtaining a query tag based on an interactive request for a power emergency plan; From the preset electric power emergency plan text interaction instructions, select several electric power emergency plan text interaction instructions that are most relevant to the query tag and provide feedback; Among them, the electric power emergency plan text interactive instruction is obtained by converting the electric power emergency plan text into an instruction template.

2. The method for interactive power emergency plan information instruction according to claim 1, characterized in that: The method of converting the power emergency plan text into an instruction using an instruction template includes: Perform subject recognition on the power emergency plan text to obtain event labels of the power emergency plan text; The power emergency plan text is segmented and paragraphs are extracted in a tree structure to obtain each extracted paragraph of the power emergency plan text; and each extracted paragraph is semantically recognized to obtain a stage label, a link label and a scenario label of each extracted paragraph of the power emergency plan text; Sentence extraction is performed on each extracted paragraph to obtain a number of sentences, and task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text are obtained according to the number of sentences; According to the event labels of the power emergency plan text, the stage labels, link labels and scenario labels of each paragraph of the power emergency plan text, and the task measure labels and task measure attribute labels of each paragraph of the power emergency plan text, the instruction template is filled with entities to obtain the power emergency plan text interaction instructions.

3. The method for interactive power emergency plan information instruction according to claim 2 is characterized in that: The subject identification of the power emergency plan text to obtain the event tags of the power emergency plan text includes: Based on the preset subject keywords, the subject of the power emergency plan text is obtained by using a keyword matching method based on a specific domain, and is used as an event label of the power emergency plan text.

4. The method for interactive power emergency plan information instruction according to claim 2, characterized in that: The power emergency plan text is segmented into tree structures and paragraphs are extracted to obtain the extracted paragraphs of the power emergency plan text; And semantic recognition is performed on each extracted paragraph to obtain the stage label, link label and scenario label of each extracted paragraph of the power emergency plan text, including: Based on the preset paragraph structure corresponding to the event label of the power emergency plan text, the power emergency plan text is segmented into tree structures, and the paragraphs to be extracted are marked; Based on the preset extraction start keyword and end keyword, extract the paragraphs marked as needing to be extracted, and combine the subtitle field of the paragraph at the same time to obtain the extracted paragraphs of the power emergency plan text; Semantic recognition is performed on the subtitle fields of each extracted paragraph to obtain the stage label, link label and scenario label of each extracted paragraph of the power emergency plan text.

5. The electric power emergency plan information instruction interaction method according to claim 2 is characterized in that: The sentence extraction from each extracted paragraph to obtain several sentences includes: Each extracted paragraph is divided into sentences according to punctuation marks to obtain segmentation results, and the segmentation results are completed using a Chinese dependency syntax analysis tool to obtain several sentences.

6. The method for interactive power emergency plan information instruction according to claim 2, characterized in that: The task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text are obtained according to several sentences: Use the Chinese dependency syntax analysis tool to obtain the syntactic structure of each sentence; and perform entity recognition on each sentence based on the pre-trained information extraction model to obtain the entity recognition results of each sentence; According to the syntactic structure and entity recognition results of each sentence, the task measure label and task measure attribute label of each extracted paragraph of the power emergency plan text are obtained.

7. The method for interactive power emergency plan information instruction according to claim 6 is characterized in that: The information extraction model includes a bidirectional long short-term memory network BiLSTM model and a conditional random field CRF model connected in sequence; the loss function of the information extraction model adopts a negative log-likelihood loss function.

8. The electric power emergency plan information instruction interaction method according to claim 1 is characterized in that: The instruction template adopts multi-level labels; the multi-level labels are events, stages, links, scenarios, task measures and task measure attributes in sequence; wherein the task measure attributes include one or more of the following: trigger conditions, executors, recipients, prerequisites and resource requirements.

9. An electric power emergency plan information instruction interactive system, characterized in that: include: An interactive request acquisition module, used to acquire an interactive request for a power emergency plan; A tag determination module, used to obtain a query tag based on an electric power emergency plan interaction request; An interactive instruction feedback module is used to select and feedback a number of electric power emergency plan text interactive instructions that are most relevant to the query tag from the preset electric power emergency plan text interactive instructions; Among them, the electric power emergency plan text interactive instruction is obtained by converting the electric power emergency plan text into an instruction template.

10. The electric power emergency plan information instruction interactive system according to claim 9, characterized in that: The method of converting the power emergency plan text into an instruction using an instruction template includes: Perform subject recognition on the power emergency plan text to obtain event labels of the power emergency plan text; The power emergency plan text is segmented and paragraphs are extracted in a tree structure to obtain each extracted paragraph of the power emergency plan text; and each extracted paragraph is semantically recognized to obtain a stage label, a link label and a scenario label of each extracted paragraph of the power emergency plan text; Sentence extraction is performed on each extracted paragraph to obtain a number of sentences, and task measure labels and task measure attribute labels of each extracted paragraph of the power emergency plan text are obtained according to the number of sentences; According to the event labels of the power emergency plan text, the stage labels, link labels and scenario labels of each paragraph of the power emergency plan text, and the task measure labels and task measure attribute labels of each paragraph of the power emergency plan text, the instruction template is filled with entities to obtain the power emergency plan text interaction instructions.

11. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the electric power emergency plan information instruction interaction method as described in any one of claims 1 to 8 are implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the electric power emergency plan information instruction interaction method as described in any one of claims 1 to 8 are implemented.