Emergency plan auditing method and system, electronic equipment and storage medium

By analyzing, segmenting, cleaning and keyword extraction of emergency plans, and building a tree-like data model, the problem of poor performance of natural language processing models in the existing technology in emergency plan review is solved, and higher audit accuracy and intelligence are achieved.

CN119647456AActive Publication Date: 2025-03-18CHINA CONSTRUCTION BANK

Patent Information

Application Number
CN202411984835.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-18
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

The existing natural language processing models perform poorly in the audit of emergency plans, resulting in low accuracy, adaptability, professionalism and intelligence of the audit.

Method used

By obtaining the emergency plans submitted by users, performing analysis, document segmentation, text cleaning and formatting, extracting keywords and assigning semantic categories, and building a tree-like data model to improve the quality of audits.

Benefits of technology

The accuracy, adaptability, professionalism and intelligence of emergency plan review are improved, and the logical consistency and semantic understanding of emergency plan are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119647456A_ABST
    Figure CN119647456A_ABST
Patent Text Reader

Abstract

The invention provides an emergency plan auditing method and system, electronic equipment and a storage medium. An emergency plan is analyzed to obtain plan content; performing text cleaning and formatting on the chapter content of each chapter, the paragraph content of each paragraph, the entry content of each entry and a plurality of titles which are obtained by performing document segmentation on the emergency plan according to the plan content and dividing according to the logic hierarchy of the emergency plan; obtaining a target chapter content, a target paragraph content, a target entry content and a target title; extracting a plurality of keywords related to the emergency field from each target chapter content, each target paragraph content and each target entry content, and endowing each chapter, each paragraph and each entry with a corresponding semantic category; and adding field information for each chapter, each paragraph and each entry, and constructing a nested structure for each chapter, each paragraph and each entry added with the field information according to the logic level of the emergency plan to obtain a corresponding tree data model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of emergency response, and more specifically, to an emergency plan review method, system, electronic device and storage medium. Background Art

[0002] With the rapid development of natural language processing technology, natural language processing technology has broad application prospects in text analysis of emergency plans.

[0003] At present, in the text analysis process of emergency plans, the selection of natural language processing models suitable for emergency plans, the establishment of exclusive text libraries, and the improvement of model performance through training and parameter adjustment are the key to achieving the review of emergency plans. However, when natural language processing models are faced with emergency plans in specific fields, the performance of deep learning models in scenarios with high professional requirements in the emergency field is not ideal, and the emergency plan field has its own unique professional terms and expressions, which makes the model prone to deviations in understanding due to lack of relevant professional knowledge, resulting in poor accuracy, adaptability, professionalism and intelligence in the review of emergency plans. Summary of the invention

[0004] In view of this, the present application provides an emergency plan review method, system, electronic device and storage medium, with the purpose of improving the accuracy, adaptability, professionalism and intelligence of the review of emergency plans.

[0005] The first aspect of the present application provides an emergency plan review method, the method comprising:

[0006] Obtain the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content;

[0007] Performing document segmentation on the emergency plan according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan;

[0008] Performing text cleaning and formatting on the chapter content, the paragraph content, the item content and the title to obtain target chapter content, target paragraph content, target item content and target title;

[0009] Extracting multiple keywords related to the emergency field from the contents of each target chapter, each target paragraph, and each target entry, and assigning corresponding semantic categories to each of the chapters, each of the paragraphs, and each of the entries;

[0010] Add corresponding field information to each of the chapters, each of the paragraphs, and each of the items, and construct a nested structure for each of the chapters, paragraphs, and items with added field information according to the logical hierarchy of the emergency plan to obtain a corresponding tree-like data model;

[0011] Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

[0012] Optionally, the acquiring of the emergency plan submitted by the user and parsing the emergency plan to obtain corresponding plan contents include:

[0013] Obtaining the emergency plan submitted by the user and determining the file type of the emergency plan;

[0014] The emergency plan is parsed using a file parsing method that matches the file type to obtain the emergency plan content.

[0015] Optionally, extracting a plurality of keywords related to the emergency field from the contents of each target chapter, each target paragraph, and each target entry, and assigning a corresponding semantic category to each chapter, each paragraph, and each entry, includes:

[0016] Performing word segmentation processing on the target content using a preset word segmentation rule; wherein the target content is a target chapter content or a target paragraph content or a target item content;

[0017] Utilize the TF-IDF algorithm to extract multiple keywords related to the emergency field from the target content after word segmentation;

[0018] The target content is processed using a pre-trained semantic classification model to assign a corresponding semantic category to each target content.

[0019] Optionally, the method further includes:

[0020] Performing a logical matching conflict detection on the emergency plan according to a pre-built logical rule library to obtain a logical detection result of the emergency plan;

[0021] Calculating the semantic embedding vector of each paragraph in the emergency plan, and calculating the semantic similarity between every two paragraphs based on the semantic embedding vectors of each paragraph;

[0022] Constructing a semantic relationship graph between the paragraphs according to the semantic similarity between the paragraphs, and performing a semantic graph analysis on the emergency plan using the semantic relationship graph to obtain a corresponding semantic graph analysis result;

[0023] A document logic consistency score is performed based on the logic detection results and semantic graph analysis results of the emergency plan to obtain a logic score for the emergency plan.

[0024] Optionally, the method further includes:

[0025] Score the content and operability of the emergency plan;

[0026] Determine the weight corresponding to the logic score of the emergency plan, the weight of the content score and the weight of the operability score from the preset weights;

[0027] extracting features of the logic score, features of the content score, and features of the operability score;

[0028] The weighted regression model is used to perform weighted integration according to the weights and characteristics of the logic score, the weights and characteristics of the content score, and the weights and characteristics of the operability score to obtain a comprehensive score for the emergency plan.

[0029] Optionally, the method further includes:

[0030] Obtaining chapter completeness detection results and structural standardization detection results of the emergency plan from the content score of the emergency plan;

[0031] According to the chapter integrity detection results and the structural normative detection results of the emergency plan, the missing chapters and the chapters with wrong order in the emergency plan are identified, and the missing chapters and the chapters with wrong order in the emergency plan are marked;

[0032] Detecting paragraphs with logical islands and semantic contradictions in the emergency plan according to the semantic graph analysis results;

[0033] Calculating the sentence embedding similarity of each sentence in the emergency plan, determining repeated paragraphs from the emergency plan according to the sentence embedding similarities of each sentence, and merging or marking each repeated paragraph;

[0034] Time and resource description information is extracted from the emergency plan, and based on the time and resource description information, sections exceeding the response time and uncovered risk points are determined and marked from the emergency plan.

[0035] A second aspect of the present application provides an emergency plan review system, the system comprising:

[0036] The parsing unit is used to obtain the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content;

[0037] A document segmentation unit, used to segment the emergency plan according to the plan content, to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan;

[0038] A text cleaning and formatting unit, used for performing text cleaning and formatting on the chapter content, the paragraph content, the item content and the title to obtain target chapter content, target paragraph content, target item content and target title;

[0039] An extraction unit, used to extract a plurality of keywords related to the emergency field from the contents of each target chapter, each target paragraph and each target item, and assign a corresponding semantic category to each chapter, each paragraph and each item;

[0040] A construction unit, used to add corresponding field information to each of the chapters, each of the paragraphs and each of the items, and construct a nested structure for each of the chapters, each of the paragraphs and each of the items with added field information according to the logical hierarchy of the emergency plan to obtain a corresponding tree data model;

[0041] Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

[0042] Optionally, the parsing unit includes:

[0043] A determination unit, used to obtain the emergency plan submitted by the user and determine the file type of the emergency plan;

[0044] The parsing subunit is used to parse the emergency plan by using the file parsing method matching the file type to obtain the content of the emergency plan.

[0045] The third aspect of the present application provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement the emergency plan review method provided in the first aspect of the present application.

[0046] The fourth aspect of the present application provides a storage medium, in which computer executable instructions are stored, and the computer executable instructions are used to execute the emergency plan review method provided in the first aspect of the present application.

[0047] The present application provides an emergency plan review method, system, electronic device and storage medium. After obtaining the emergency plan submitted by the user, first, the emergency plan is parsed to obtain the corresponding plan content; secondly, the emergency plan is segmented according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and multiple titles divided according to the logical hierarchy of the emergency plan, and the chapter content, the paragraph content, the item content and the title are cleaned and formatted to obtain the target chapter content, the target paragraph content, the target item content and the target title; from the content of each target chapter, the target content of each paragraph, the target item content and the target title are obtained; The method further comprises the following steps: extracting multiple keywords related to the emergency field from the content of each target paragraph and the content of each target item, and assigning corresponding semantic categories to each chapter, each paragraph and each item; finally, adding corresponding field information to each chapter, each paragraph and each item, and constructing a nested structure for each chapter, each paragraph and each item with added field information according to the logical level of the emergency plan to obtain a corresponding tree-like data model, and completing the review of the emergency plan. This can not only improve the accuracy of the review of the emergency plan, but also improve the adaptability, professionalism and intelligence of the review of the emergency plan. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0049] Figure 1 A flowchart of an emergency plan review method provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of the structure of an emergency plan review system provided in an embodiment of the present application;

[0051] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0054] See also Figure 1 , shows a flow chart of an emergency plan review method provided in an embodiment of the present application, the emergency plan review method specifically comprises the following steps:

[0055] S101: Acquire the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content.

[0056] In the specific process of executing step S101, when the emergency plan submitted by the user is detected, the emergency plan can be obtained, and the emergency plan can be parsed according to the file type of the emergency plan to extract the corresponding plan content from the emergency plan. The plan content includes each chapter, each paragraph, each item and multiple titles in the emergency plan.

[0057] In an embodiment of the present application, a file parsing method corresponding to each file type can be pre-set so that after obtaining the emergency plan submitted by the user, the file type of the emergency plan can be determined, and the emergency plan can be parsed using the file parsing method that matches the file type to obtain the content of the emergency plan.

[0058] It should be noted that the file type can be a PDF file type or a Word file type, which is not limited in the embodiment of the present application.

[0059] In some embodiments, if the file type of the emergency plan is a PDF file type, then the process of parsing the emergency plan using a file parsing method that matches the file type can be: analyzing the emergency plan to determine the complexity of the emergency plan; judging whether the complexity of the emergency plan is greater than a preset complexity threshold; if the complexity of the emergency plan is greater than the preset complexity threshold, it can be considered that the complexity of the emergency plan is relatively high, that is, the emergency plan can be determined to be a PDF document with complex typesetting. At this time, the position of the text block in the emergency plan (determined based on the corresponding coordinates) can be used to maintain the paragraph order of the emergency plan, and a pdfplumber-based parsing method can be used to directly read the text layer content in the emergency plan, thereby extracting the plan content containing each chapter, each paragraph, each entry, multiple titles and page numbers of the emergency plan; if the complexity of the emergency plan is not greater than the preset complexity threshold, it can be considered that the complexity of the emergency plan is relatively low. At this time, a pdfplumber-based parsing method can be used to directly read the text layer content in the emergency plan, thereby extracting the corresponding plan content.

[0060] It should be noted that, when the file type of the emergency plan is a PDF file type, if there is a table in the emergency plan, the row and column relationship of the table can be extracted, and the table structure of the table can be rebuilt based on the extracted row and column relationship; that is, in addition to the chapters, paragraphs, entries, titles and page numbers of the emergency plan, the plan content can also include a corresponding table structure.

[0061] In other embodiments, if the file type of the emergency plan is a Word file type, the process of parsing the emergency plan using a file parsing method that matches the file type can be: parsing the emergency plan based on python-docx, extracting each paragraph, multiple entries, multiple titles, page numbers, and tables in the emergency plan, and identifying the style hierarchy in the emergency plan (such as Heading1, Heading2), parsing the chapter titles in the emergency plan and marking the corresponding chapter levels to extract each chapter in the emergency plan; finally, reading the table content of the extracted table row by row and column by column to obtain the plan content including each chapter, each paragraph, multiple entries, multiple titles, page numbers, and tables in the emergency plan.

[0062] S102: segmenting the emergency plan document according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan.

[0063] In the process of specifically executing step S102, after obtaining the emergency plan content, the emergency plan can be segmented according to the chapters, paragraphs, items and titles in the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and multiple titles divided according to the logical hierarchy of the emergency plan.

[0064] In an embodiment of the present application, the logical hierarchy of the emergency plan can be extracted first, and the extracted logical hierarchy can be stored; wherein the logical product is a tree structure, and the logical hierarchy includes the chapter hierarchy and the hierarchical relationship between the title and the text.

[0065] It should be noted that by extracting the logical hierarchy of the emergency plan's chapters, paragraphs, items and titles and the main text within the emergency plan, the original logical framework of the emergency plan can be retained.

[0066] In an embodiment of the present application, when the file type of the emergency plan content is a PDF file type, the chapter content of each chapter in the emergency plan (for example, "Chapter 1" or "1.1", etc.), the paragraph content of each paragraph, the entry content of each entry, and multiple titles can be identified according to information such as the font size, bold features, and position of the chapters in the plan content.

[0067] When the file type of the emergency plan content is a Word file type, the title level in the emergency plan can be identified through the corresponding paragraph style (such as the Heading level), and the segmentation points of multiple titles in the emergency plan are determined according to the obtained title level by optimizing the segmentation rules, and the title segmentation points are extracted from the emergency plan to extract the title corresponding to each title;

[0068] It should be noted that the segmentation rules can be dynamically adjusted according to the document style to adapt to the enterprise's customized document format (file type). Among them, the segmentation rules can be designed to match specific rules (such as "risk assessment" and "resource allocation") in combination with the common template format of emergency plans.

[0069] It should also be noted that if the emergency plan also includes table content or table structure, the table information corresponding to the table in the emergency plan can be segmented from the emergency plan according to the table content or table structure. Specifically, regular expressions can be used to match the item number and list format corresponding to the table according to the table content or table structure (such as "one, two, three" or "1.1, 1.2").

[0070] S103: Clean and format the chapter content, paragraph content, item content and title to obtain target chapter content, target paragraph content, target item content and target title.

[0071] In the specific process of executing step S103, after the emergency plan is segmented to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and multiple titles in the emergency plan, the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and multiple titles are noise cleaned, terminology retained and formatted to obtain the target chapter content of each chapter, the target paragraph content of each paragraph, the target item content of each item and multiple target titles.

[0072] It should be noted that retaining terminology while performing noise cleaning and formatting can not only remove irrelevant information and improve data quality, but also avoid mistaken cleaning of content containing important information.

[0073] In actual application, you can delete irrelevant symbols in chapter content, paragraph content, entry content, title and table (such as "...", "[ ]"), blank lines and headers and footers, etc.) and standardize punctuation (such as full-width and half-width) to complete the corresponding noise cleaning operation; correct the common formatting abnormalities in the paragraph content of each paragraph (such as mis-segmentation problems), restore the structure of the table and the logical order between each paragraph to complete the corresponding formatting processing; in the process of noise cleaning and formatting, you can use the pre-set emergency field vocabulary to retain the chapter content, paragraph content, entry content, title and table in the tree structure. Keywords related to the emergency field (such as "risk assessment", "response time", etc.) can avoid mistaken cleaning of content containing important information. Among them, the emergency field vocabulary includes multiple keywords related to the emergency field.

[0074] S104: extracting multiple keywords related to the emergency field from the contents of each target chapter, each target paragraph, and each target entry, and assigning corresponding semantic categories to each chapter, each paragraph, and each entry.

[0075] In the specific process of executing step S104, first, the target content can be segmented; second, multiple keywords related to the emergency field are extracted from each segmented word; finally, the target content is assigned a corresponding semantic category. The target content is the target chapter content, the target paragraph content, or the target item content.

[0076] Optionally, the target content is segmented using pre-set segmentation rules; multiple keywords related to the emergency field are extracted from the target content after the segmentation using the TF-IDF algorithm; the target content is processed using a pre-trained semantic classification model to assign corresponding semantic categories to each target content.

[0077] It should be noted that corresponding word segmentation rules can be pre-set, wherein the word segmentation rules can be rule-based word segmentation methods, for example, Jieba combined with a custom vocabulary, which is not limited in the embodiments of the present application.

[0078] It should also be noted that the application can dynamically adjust the pre-set word segmentation rules according to the frequency of keyword occurrence and context. It can also set keyword extraction algorithms for different types of emergency plans (such as highlighting "emergency response" for disaster plans and "risk assessment" for safety plans).

[0079] In actual application, Jieba can be used in combination with a custom vocabulary to perform word segmentation on the target content; the TF-IDF value of each word in the content obtained after word segmentation using the TF-IDF algorithm is used to measure the importance of each word in the corresponding emergency plan, and words with TF-IDF values ​​greater than the preset TF-IDF value are used as keywords, that is, high-weight words are output as preliminary keywords; for each keyword, the semantic embedding vector of the keyword is calculated through the BERT model, and the cosine similarity between the keyword and each word is calculated based on the semantic embedding vector of the keyword and the semantic embedding vector of each word in the emergency field vocabulary, and the preliminary keywords with cosine similarity greater than the preset cosine similarity threshold are used as the final keywords.

[0080] It should also be noted that the constructed emergency domain vocabulary can also be dynamically updated in real time, and a weight priority strategy for specific words can be added (such as "resource allocation" takes precedence over "resources"), so that similar keywords (keywords with similar semantic categories) can be clustered by semantic similarity (cosine similarity) and classified into the same group.

[0081] In summary, the combination of TF-IDF algorithm and BERT model can effectively balance the extraction of long-tail words and keywords, thereby effectively extracting multiple keywords related to the emergency field from the target tree structure.

[0082] In an embodiment of the present application, a Transformer model (such as BERT) can be trained using pre-constructed emergency domain corpus to obtain a semantic classification model that supports semantic classification in complex contexts; the target content is processed using the pre-trained semantic classification model to provide context annotations for subsequent analysis by providing semantic categories corresponding to the target content.

[0083] It should be noted that the semantic categories may be “risk description”, “response measures”, “resource classification”, “emergency response”, “risk assessment”, etc., which are not limited in the embodiments of the present application.

[0084] Specifically, the BERT model is used to load pre-trained weights, a classification head is added to perform semantic classification tasks, and the emergency domain corpus is input into the BERT model so that the BERT model prediction is trained based on the input emergency domain corpus to obtain a semantic classification model.

[0085] It should be noted that for target content that may involve multiple semantic categories (such as "risk assessment and resource allocation"), a multi-label classification model can also be trained to obtain a semantic classification model, thereby improving the shortcomings of the traditional single-label model, supporting multi-label semantic annotation of the target content, and solving the problem of semantic diversity of complex content; among them, the training method of the multi-label classification model is the same as the training method of the BERT model, and is not limited to this in the embodiments of the present application.

[0086] In the actual application process, first, analyze whether the target content involves multiple semantic categories; if so, use the semantic category model trained by the multi-label classification model to predict the target content and obtain multiple semantic categories of the target content; if not, input the target content into the semantic classification model trained by the BERT model to predict the input target content and obtain the semantic category of the target content; finally, perform context consistency check on the content of each target chapter, each target paragraph and each target entry, and if the check passes, assign corresponding semantic categories to the content of each target chapter, each target paragraph and each target entry.

[0087] In summary, by using emergency domain corpus to fine-tune the BERT model to improve the context adaptation ability of the BERT model, a semantic classification model that can accurately identify semantic categories is obtained. At the same time, a multi-scenario classification model can be constructed (for example, the classification rules of disaster plans and medical plans are different). When it comes to target content with multiple semantic categories, a semantic classification model is obtained by training a multi-label classification model to predict semantic categories. Finally, contextual information is introduced to improve the accuracy of semantic classification through cross-chapter, cross-paragraph, and cross-entry feature fusion.

[0088] S105: Add corresponding field information to each chapter, each paragraph and each entry, and construct a nested structure for each chapter, each paragraph and each entry with added field information according to the logical hierarchy of the emergency plan to obtain a corresponding tree data model.

[0089] Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

[0090] In the process of specifically executing step S105, for each chapter in the emergency plan, the target title corresponding to each chapter can be determined from the various target titles, and corresponding target chapter content, target title, keywords and semantic categories can be added to each chapter in the emergency plan; wherein the keywords added here are keywords extracted from the target chapter content, and the added semantic categories are the semantic categories assigned to the target chapter content.

[0091] For each paragraph in the emergency plan, the target title corresponding to each paragraph can be determined from the target titles, and the corresponding target paragraph content, target title, keywords and semantic categories can be added to each paragraph in the emergency plan; among which, the keywords added here are the keywords extracted from the target paragraph content, and the added semantic categories are the semantic categories assigned to the target paragraph content.

[0092] For each entry in the emergency plan, the target title corresponding to each entry can be determined from the various target titles, and corresponding target entry content, target title, keywords and semantic categories can be added to each entry in the emergency plan; among which, the keywords added here are keywords extracted from the target entry content, and the added semantic categories are the semantic categories assigned to the target entry content.

[0093] Finally, the logical hierarchy of the pre-stored emergency plan is obtained, and the corresponding nested structure is constructed for each chapter, paragraph and item to which the corresponding field information is added according to the chapter hierarchy in the logical hierarchy to obtain the corresponding tree data model.

[0094] In the embodiment of the present application, after obtaining the corresponding tree data model, the tree data model can be stored in a NoSQL database (such as MongoDB) in JSON format. At the same time, a corresponding RESTful interface can be provided to support dynamic query and call of the segmented data of the stored tree data model.

[0095] In summary, adding corresponding semantic categories and keywords to chapters, paragraphs and entries makes the resulting tree-like data model more adaptable to semantic analysis. In addition, by supporting dynamic query and call through the interface, it can meet the needs of multi-module collaboration.

[0096] The present application provides an emergency plan review method. After obtaining the emergency plan submitted by the user, first, the emergency plan is parsed to obtain the corresponding plan content; secondly, the emergency plan is segmented according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the entry content of each item and multiple titles divided according to the logical hierarchy of the emergency plan, and the chapter content, paragraph content, item content and title are cleaned and formatted to obtain the target chapter content, target paragraph content, target item content and target title; multiple keywords related to the emergency field are extracted from each target chapter content, each target paragraph content and each target item content, and corresponding semantic categories are assigned to each chapter, each paragraph and each item; finally, corresponding field information is added to each chapter, each paragraph and each item, and each chapter, each paragraph and each item with added field information is constructed into a nested structure according to the logical hierarchy of the emergency plan to obtain a corresponding tree data model, and the review of the emergency plan is completed. This can not only improve the accuracy of the review of the emergency plan, but also improve the adaptability, professionalism and intelligence of the review of the emergency plan.

[0097] On the basis of the emergency plan review method provided in the above embodiment of the present application, the emergency plan review method provided in the embodiment of the present application may also include the following contents:

[0098] Furthermore, in an embodiment of the present application, a logical matching conflict detection can be performed on the emergency plan according to a pre-constructed logical rule library to obtain a logical detection result of the emergency plan; the semantic embedding vector of each paragraph in the emergency plan is calculated, and the semantic similarity between every two paragraphs is calculated based on the semantic embedding vector of each paragraph; a semantic relationship graph between each paragraph is constructed based on the semantic similarity between each paragraph, and a semantic graph analysis is performed on the emergency plan using the semantic relationship graph to obtain a corresponding semantic graph analysis result; a document logical consistency score is performed based on the logical detection result and the semantic graph analysis result of the emergency plan to obtain a logical score for the emergency plan.

[0099] It should be noted that by performing document logic consistency testing on emergency plans, semantic contradictions or content missing problems in emergency plans can be identified, for example, the lack of corresponding response measures for risk points.

[0100] In the actual application process, the document logic consistency detection of the emergency plan can be completed based on the display logic of the rules and the implicit logic based on semantics, that is, based on the rule engine + BERT semantic graph analysis. Specifically, the corresponding logic rule library can be pre-built, wherein the logic rule library can include multiple logic rules, and the logic rule can be that each "risk assessment" paragraph must correspond to at least one "response measures" paragraph; use the rule engine (such as Drools) to perform logical matching and conflict detection on the emergency plan according to the pre-built logic rule library to obtain the logic detection result of the emergency plan.

[0101] The BERT model is used to calculate the semantic embedding vector of each paragraph in the emergency plan, and the semantic similarity of each two paragraphs is calculated based on the semantic embedding vectors of each two paragraphs; the corresponding semantic relationship graph is constructed based on the semantic similarity between each paragraph (such as the connection between "response measures" and "risk description"); the existence of logical islands in the semantic relationship graph (such as "risk description" has no corresponding response) and semantic contradictions (such as the coexistence of "solved" and "unresponsive" paragraphs) are detected to obtain the semantic graph analysis results of the emergency plan. Finally, the proportion of successful logical matches in the logic detection results is counted by displaying rules; the average value of each semantic similarity is calculated by implicit rules, and the distribution anomalies (such as too high or too low) of the emergency plan are detected based on the calculated semantic average value and the semantic graph analysis results; the logical score of the emergency plan includes the proportion of successful logical matches of the emergency plan and the detection results of distribution anomalies.

[0102] It should be noted that this application combines display rules with semantic matching to solve the problem that implicit logic in emergency plans is difficult to detect. It also supports logic detection at the sentence, paragraph and chapter levels, taking into account both details and the overall picture. In other words, the interpretability of display rules is combined with semantic matching to fully cover the logic detection needs of emergency plans. Moreover, semantic fusion analysis of cross-paragraph logic can also improve the logic detection capabilities of long documents (emergency plans), and further mining semantic relationships with graph neural networks can improve the accuracy of logic detection.

[0103] Furthermore, in the embodiments of the present application, in addition to scoring the emergency plan for document logic consistency, the emergency plan can also be further scored for content and operability; wherein, document logic consistency scoring refers to detecting the document logic consistency and rationality of the emergency plan and identifying possible contradictions; content scoring refers to quantitative analysis of the completeness and standardization of the emergency plan; operability scoring refers to evaluating the feasibility and practical value of the emergency plan.

[0104] In some embodiments, a corresponding standard chapter template can be pre-constructed, wherein the standard chapter template includes all core chapters, for example, "risk assessment", "response steps", "resource allocation" and other chapters. The process of scoring the content of the emergency plan can be specifically as follows: first, using regular expressions or style features (such as title formats) to match the chapters in the emergency plan according to the standard chapter template, that is, to detect whether the emergency plan contains all core chapters, and obtain the chapter integrity detection results of the emergency plan; secondly, based on keyword extraction technology (such as TF-IDF+ domain vocabulary (emergency plan specific vocabulary)), the coverage of keywords in each chapter of the emergency plan is counted, and the important content in the emergency plan (such as key risk points, emergency resource allocation) is detected to be comprehensive, and the content coverage of the emergency plan is obtained; finally, verify whether the order of chapters in the emergency plan is reasonable, and detect whether there are logical jumps between the chapters in the emergency plan (such as "response measures" appearing before "risk assessment"), and obtain the structural normative inspection results of the emergency plan. Among them, the content scoring of the emergency plan can include the chapter integrity inspection results, content coverage and structural normative inspection results of the emergency plan.

[0105] It should be noted that the pre-built standard chapter templates can be dynamically adjusted according to different types of emergency plans (such as earthquakes, fires, and public health events); and the ability to recognize professional terms in emergency plans can be enhanced by using emergency plan-specific vocabulary and context analysis.

[0106] In some embodiments, the emergency plan can be scored for operability based on a machine learning regression model; specifically, extract time-related descriptions (such as descriptions related to response time and resource arrival time) from the emergency plan; use a pre-built time rule library to verify whether the extracted descriptions meet industry standards to obtain the response timeliness of the emergency plan; extract corresponding resource information (such as personnel, materials, equipment, etc.) from the emergency plan, and compare the degree of matching between risk points and resource allocation based on the extracted resource information combined with the knowledge graph to generate resource coverage; determine the actual operability of the emergency plan based on the extracted description (such as "clear instructions" vs. "general description") based on the text classification model (such as Transformer). Among them, the operability score of the emergency plan includes the response timeliness, resource coverage and actual operability of the emergency plan.

[0107] It should be noted that the use of time series analysis technology can realize automatic verification of the time logic in emergency plans; combining knowledge graphs to generate resource coverage can provide interpretability of operability scores.

[0108] Furthermore, in an embodiment of the present application, after obtaining the logical score, content score and operability score of the emergency plan, the weight corresponding to the logical score of the emergency plan, the weight of the content score and the weight of the operability score can be determined from the pre-set weights; the characteristics of the logical score, the characteristics of the content score and the characteristics of the operability score can be extracted; and the weighted integration is performed according to the weights and characteristics of the logical score, the weights and characteristics of the content score, and the weights and characteristics of the operability score through a weighted regression model to obtain a comprehensive score for the emergency plan.

[0109] In some embodiments, the weights corresponding to the logic score, content score, and operability score in each application scenario can be dynamically set according to the actual application scenario. For example, resource allocation plans focus on operability scores and content scores. That is, the weights of the operability scores and content scores of emergency plans for resource allocation application scenarios are greater than the weight of the logic score.

[0110] In the actual application process, after obtaining the logic score, content score and operability score of the emergency plan, we can first determine the application scenario corresponding to the emergency plan, and according to the determined application scenario, determine the weight corresponding to the logic score of the emergency plan, the weight of the content score and the weight of the operability score from the pre-set weights; extract the features of the logic score, the features of the content score and the features of the operability score; input the weights and features of the logic score, the weights and features of the content score into a weighted regression model (such as LightGBM), so that the weighted regression model performs weighted integration according to the input weights and features, and outputs a comprehensive score of the emergency plan.

[0111] It should be noted that after obtaining the comprehensive score of the emergency plan, a dimensional score bar chart, a total score pie chart, etc. can be generated based on the comprehensive score of the emergency plan, and the generated dimensional score bar chart and total score pie chart can be displayed.

[0112] In summary, the weight of each score can be dynamically adjusted according to the actual application scenario, and the contribution of each feature to the score can be analyzed in combination with the SHAP value (Shapley Additive Explanations), which can enhance the transparency of the score and make the obtained score more convincing.

[0113] Furthermore, in an embodiment of the present application, the chapter completeness detection results and the structural normative detection results of the emergency plan can be obtained from the content score of the emergency plan; based on the chapter completeness detection results and the structural normative detection results of the emergency plan, the missing chapters and the chapters with incorrect order in the emergency plan are identified, and the missing chapters and the chapters with incorrect order in the emergency plan are marked; based on the semantic graph analysis results, the paragraphs with logical islands and semantic contradictions in the emergency plan are detected; the sentence embedding similarity of each sentence in the emergency plan is calculated, and based on the sentence embedding similarity of each sentence, repeated paragraphs are determined from the emergency plan, and each repeated paragraph is merged or marked; time and resource description information is extracted from the emergency plan, and based on the time and resource description information, paragraphs that exceed the response time and uncovered risk points are determined and marked from the emergency plan.

[0114] It should be noted that the sentence embedding similarity of each sentence in the emergency plan is calculated through the BERT model, so that repeated paragraphs with similar content can be determined from the emergency plan based on the sentence embedding similarity of each sentence; and the repeated paragraphs with similar content are merged or marked using a clustering algorithm (such as K-Means).

[0115] It should also be noted that NER (Named Entity Recognition) technology can be used to extract time and resource description information in emergency plans; compare the actual response time in the time and resource description information with industry standards, and mark the paragraphs that exceed the response time; check whether the "resource description" and "risk assessment" in the time and resource description information match, and mark the uncovered risk points from the emergency plan based on the matching results.

[0116] In summary, by combining semantic analysis with explicit rules, new logic rules are automatically generated to expand applicability. Based on semantic similarity and contextual relationships, implicit logic problems are located to achieve fine-grained problem marking; finally, the scoring results can be combined with user interaction data to continuously optimize the accuracy of problem detection.

[0117] Furthermore, in an embodiment of the present application, for fixed-pattern problems (missing chapters), corresponding feedback templates are pre-set, and the priority of the feedback templates can be marked according to the importance of the problem (such as missing chapters > redundant content). For example, for the missing "Risk Assessment" chapter, the generated feedback template can be: "The document lacks the 'Risk Assessment' chapter. It is recommended to supplement the identification and analysis of potential risks, focusing on risk types, probability of occurrence and possible impacts." For non-fixed-pattern problems (such as paragraphs with logical islands and semantic contradictions), feedback suggestions for the problem can be generated through deep learning generation (NLG).

[0118] Therefore, for chapters or paragraphs with problems in the emergency plan, if the problem in the chapter or paragraph is a fixed-pattern problem, the corresponding feedback template can be determined from the pre-set feedback templates; if it is a non-fixed-pattern problem, the problem and context content of the chapter or paragraph can be obtained, and the problem and context content of the chapter or paragraph can be input into the Transformer (such as GPT-3 or T5) model, so that the Transformer (such as GPT-3 or T5) model generates and outputs feedback suggestions for the chapter or paragraph based on the input problem and context content. For example, for non-fixed-pattern problems (logical conflict problems), the output feedback suggestions can be "'Risk disposal has been completed' and 'Risk disposal is in progress', it is recommended to modify them to consistent descriptions, and provide specific progress."

[0119] It should be noted that if there are tables or flow charts in the emergency plan, image generation technology can be used to generate a visual chart of process optimization suggestions based on the tables or flow charts.

[0120] It should also be noted that a flow chart of Huayou can also be generated based on the problem points. For example, after the "response time exceeds the standard" problem, an "optimized schedule" is generated.

[0121] In summary, by dynamically generating responsive feedback suggestions based on the context of problematic chapters or paragraphs, the feedback can be more targeted and practical. This application can support multiple feedback forms such as text, charts, and flowcharts to enhance user experience. This application can also optimize the model based on the user's use of feedback suggestions (such as adoption rate).

[0122] Furthermore, in an embodiment of the present application, after obtaining the problems and feedback suggestions / feedback templates of the chapter or paragraph with problems in the emergency plan, the problems and feedback suggestions / feedback templates of the chapter or paragraph can be displayed in a graphical manner to help users quickly understand and locate the problems.

[0123] In some embodiments, problematic chapters / paragraphs / sentences can be directly marked in the emergency plan, and colors can be used to distinguish the problem types. The context of the problematic chapters / paragraphs / sentences can also be highlighted; for example, chapters or paragraphs with logical contradictions can be marked in red; chapters / paragraphs / sentences with incomplete content can be marked in yellow; chapters / paragraphs / sentences with timeliness issues can be marked in blue, and this is not limited to the embodiments of the present application.

[0124] In other embodiments, the number of chapters with problems and the types of problems in the emergency plan are counted, and a corresponding problem distribution statistical graph (such as a bar graph) is generated based on the counted number of chapters and types of problems.

[0125] In other embodiments, a user-friendly interface is built based on Plotly or Streamlit, and when it is detected that the user clicks on a chapter / paragraph / sentence with problems in the emergency plan, the problems and feedback suggestions / feedback templates of the chapter / paragraph / sentence can be displayed to the user; at the same time, a comparison view of the problems and suggestions can also be displayed to help users quickly understand the direction of improvement.

[0126] In summary, this application can highlight chapters, paragraphs, and sentences at three levels to support fine-grained problem viewing; display the contextual associations of problems through semantic graphs to improve the interpretability of problems; users can directly mark, confirm, or provide feedback on problems in the interface to form a closed-loop optimization mechanism.

[0127] It can be seen that this application breaks through the limitations of traditional static rules by combining semantic analysis and logical rules to dynamically generate new problem detection rules; uses deep learning models to dynamically generate improvement suggestions that are highly relevant to the context, thereby enhancing the practicality of feedback; integrates text highlighting, statistical charts, and semantic relationship diagrams to form a multi-dimensional feedback presentation format; and uses user interaction data to feed back the problem detection and feedback generation module to achieve continuous optimization of the system.

[0128] Furthermore, in an embodiment of the present application, a variety of emergency plans can be collected through user interaction and the addition of new documents, and the collected diverse emergency plans can expand the emergency field corpus and ensure data quality.

[0129] Specifically, a variety of emergency plans and user interaction data can be collected based on automatic data collection of log analysis and active user feedback, and the collected emergency plans and user interaction data can be processed in combination with rule cleaning and semantic annotation. The processing results can not only expand the corpus in the emergency field, but also effectively ensure data quality.

[0130] In actual application, the emergency plans uploaded by users and the feedback information generated by the review system are automatically recorded, and the user's operational data on the feedback (user interaction data) (such as "the problem has been solved" or "the suggestion is not applicable") are collected; regular expressions are used to filter invalid characters, blank paragraphs and noise data in the collected emergency plans, feedback information and operational data; semi-automatic annotation tools are introduced, and preliminary annotation results of emergency plans, feedback information and operational data are generated using pre-trained models; public emergency plans can also be collected through domain crawlers, and enhanced technologies (such as text rewriting and synonym replacement) can be used to expand the emergency domain corpus using the collected emergency plans and preliminary annotation results of emergency plans, feedback information and operational data.

[0131] It should be noted that by recording user interaction data to form a closed-loop optimization mechanism, it is ensured that the emergency field corpus is continuously updated to meet user needs; combined with external crawling and automatic expansion technology, a corpus of emergency plans covering multiple fields is constructed.

[0132] Furthermore, in the embodiments of the present application, the semantic classification model can be fine-tuned in real time to adapt to the ever-changing structure of emergency plans and language expressions; specifically, the transfer learning method is used to perform small-scale and efficient optimization of the semantic classification model.

[0133] Specifically, emergency domain samples with high diversity and strong representativeness (such as semantic classification samples and logical detection samples) are screened out from the emergency domain corpus, and the corresponding training data set is constructed using the screened emergency domain samples. The semantic classification model is loaded, and the first few layers of the semantic classification model are frozen. The high-level parameters are optimized to adapt to the new task, and the semantic classification model is fine-tuned using small batch efficient fine-tuning technology (such as LoRA and Adapter architecture) using the constructed training data set. Finally, the incremental learning technology is combined to avoid the model forgetting historical data through small batch updates of the newly added data (the constructed training data set).

[0134] It can be seen that this application improves the ability of the semantic classification model to understand the specific semantics of the emergency field through layer-by-layer optimization strategies. The use of LoRA or Adapter technology reduces the computational cost of model updates, which is suitable for online optimization. At the same time, it can also ensure that the model can maintain its memory of old data while absorbing new data.

[0135] Furthermore, in the embodiment of the present application, the logic rule library can be dynamically updated through new data and user feedback to improve the adaptability and coverage of logic detection.

[0136] Specifically, frequent pattern mining algorithms (such as Apriori) are used to analyze common logical relationships in emergency plans uploaded by users, and to extract high-frequency logical relationships in the uploaded emergency plans (such as the mapping relationship between "risk points" and "response measures"). Semantic similarity calculations (calculating the semantic embedding vectors of logical relationships based on the BERT model) are used to verify whether the logical relationships are applicable to emergency plans in various document formats. At the same time, high-quality logical relationships are screened through automated testing and user confirmation. Corresponding logical rules are generated based on the screened logical relationships, and the generated logical rules are dynamically added to the logical rule library. At the same time, invalid or faulty logical rules in the logical rule library are eliminated, thereby completing the update of the logical rule library.

[0137] It can be seen that this application automatically generates new logical rules through frequent pattern mining, reducing human intervention; combined with semantic analysis technology, it improves the generalization ability of logical rules, realizes real-time updating of the logical rule library, and adapts to the ever-changing user needs.

[0138] Furthermore, options such as "suggestion not applicable" or "problem solved" are provided in a user-friendly interface, user evaluations are collected, and the user's modifications to the generated feedback suggestions / feedback templates are recorded as samples for model optimization (Transformer (such as GPT-4) model); interaction logs are used to analyze whether users adopt feedback suggestions / feedback templates (such as modifying the marked problem paragraph); the adoption rates of different question types and suggestion types are counted, and the statistical adoption rates are used to optimize the model; the data adopted by users are marked as high-confidence samples for optimization of the model and logical rule base; user feedback is regularly introduced into the incremental learning process to achieve dynamic updating of the model and logical rules.

[0139] It can be seen that this application realizes adaptive learning based on the real-time optimization model and logic rule library of user behavior; combines user behavior data, quantifies the quality of feedback samples and gives priority to data with high credibility; combines active feedback and passive behavior data to form a comprehensive optimization basis.

[0140] Based on the emergency plan review method provided in the above embodiment of the present application, the embodiment of the present application also provides an emergency plan review system, such as Figure 2 As shown, the emergency plan review system includes:

[0141] The parsing unit 21 is used to obtain the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content;

[0142] The document segmentation unit 22 is used to segment the emergency plan according to the plan content, and obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan;

[0143] A text cleaning and formatting unit 23, used for performing text cleaning and formatting on chapter content, paragraph content, item content and title to obtain target chapter content, target paragraph content, target item content and target title;

[0144] An extraction unit 24 is used to extract multiple keywords related to the emergency field from the content of each target chapter, each target paragraph and each target item, and assign a corresponding semantic category to each chapter, each paragraph and each item;

[0145] The construction unit 25 is used to add corresponding field information to each chapter, each paragraph and each item, and construct a nested structure for each chapter, each paragraph and each item with added field information according to the logical level of the emergency plan to obtain a corresponding tree data model;

[0146] Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

[0147] The specific principles and execution processes of each unit in the emergency plan review system disclosed in the above-mentioned embodiment of the present application are the same as the emergency plan review method disclosed in the above-mentioned embodiment of the present application. Please refer to the corresponding parts of the emergency plan review method disclosed in the above-mentioned embodiment of the present application, and will not be repeated here.

[0148] The present application provides an emergency plan review system. After obtaining the emergency plan submitted by the user, first, the emergency plan is parsed to obtain the corresponding plan content; secondly, the emergency plan is segmented according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the entry content of each item and multiple titles divided according to the logical hierarchy of the emergency plan, and the chapter content, paragraph content, item content and title are cleaned and formatted to obtain the target chapter content, target paragraph content, target item content and target title; multiple keywords related to the emergency field are extracted from each target chapter content, each target paragraph content and each target item content, and corresponding semantic categories are assigned to each chapter, each paragraph and each item; finally, corresponding field information is added to each chapter, each paragraph and each item, and each chapter, each paragraph and each item with added field information is constructed into a nested structure according to the logical hierarchy of the emergency plan to obtain a corresponding tree data model, and the review of the emergency plan is completed. This can not only improve the accuracy of the review of the emergency plan, but also improve the adaptability, professionalism and intelligence of the review of the emergency plan.

[0149] Optional, parsing unit, including:

[0150] A determination unit, used to obtain the emergency plan submitted by the user and determine the file type of the emergency plan;

[0151] The parsing subunit is used to parse the emergency plan by using a file parsing method that matches the file type to obtain the content of the emergency plan.

[0152] Optionally, an extraction unit comprising:

[0153] A word segmentation processing unit, used to perform word segmentation processing on the target content using a preset word segmentation rule; wherein the target content is a target chapter content or a target paragraph content or a target item content;

[0154] An extraction subunit, used to extract multiple keywords related to the emergency field from the target content after word segmentation processing by using a TF-IDF algorithm;

[0155] The semantic category assigning unit is used to process the target content using the pre-trained semantic classification model to assign a corresponding semantic category to each target content.

[0156] Optionally, the emergency plan review system provided in the embodiment of the present application further includes:

[0157] A logic detection unit is used to perform a conflict detection of logic matching on the emergency plan according to a pre-built logic rule library to obtain a logic detection result of the emergency plan;

[0158] A semantic similarity calculation unit is used to calculate the semantic embedding vector of each paragraph in the emergency plan, and calculate the semantic similarity between every two paragraphs based on the semantic embedding vectors of each paragraph;

[0159] A semantic graph analysis unit is used to construct a semantic relationship graph between each paragraph according to the semantic similarity between each paragraph, and use the semantic relationship graph to perform semantic graph analysis on the emergency plan to obtain a corresponding semantic graph analysis result;

[0160] The logic scoring unit is used to score the logical consistency of the document according to the logic detection results and semantic graph analysis results of the emergency plan to obtain the logic score of the emergency plan.

[0161] Optionally, the emergency plan review system provided in the embodiment of the present application further includes:

[0162] Content and operability scoring unit, used to score the content and operability of emergency plans;

[0163] A weight determination unit, used to determine the weight corresponding to the logic score of the emergency plan, the weight of the content score and the weight of the operability score from various pre-set weights;

[0164] A feature extraction unit, used for extracting features of logic scoring, features of content scoring and features of operability scoring;

[0165] The comprehensive scoring unit is used to obtain a comprehensive score of the emergency plan by weighted integration based on the weights and characteristics of the logic score, the weights and characteristics of the content score, and the weights and characteristics of the operability score through a weighted regression model.

[0166] Optionally, the emergency plan review system provided in the embodiment of the present application further includes:

[0167] A detection result acquisition unit, used for acquiring a chapter completeness detection result and a structural normativeness detection result of the emergency plan from the content score of the emergency plan;

[0168] A chapter marking unit, used for identifying missing chapters and chapters with wrong order in the emergency plan according to the chapter completeness detection results and the structural normativeness detection results of the emergency plan, and marking the missing chapters and chapters with wrong order in the emergency plan;

[0169] A paragraph detection unit is used to detect paragraphs with logical islands and semantic contradictions in the emergency plan based on the results of semantic graph analysis;

[0170] A calculation unit, used to calculate the sentence embedding similarity of each sentence in the emergency plan, determine repeated paragraphs from the emergency plan according to the sentence embedding similarity of each sentence, and merge or mark each repeated paragraph;

[0171] The marking unit is used to extract time and resource description information from the emergency plan, and determine and mark the sections exceeding the response time and the uncovered risk points from the emergency plan based on the time and resource description information.

[0172] The present application embodiment provides an electronic device, such as Figure 3 As shown, the electronic device includes a processor 301 and a memory 302, the memory 302 is used to store the program code and data of the emergency plan review method, and the processor 301 is used to call the program instructions in the memory to execute the steps shown in the emergency plan review method in the above embodiment.

[0173] An embodiment of the present application provides a storage medium, which includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the emergency plan review method shown in the above embodiment.

[0174] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0175] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0176] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0177] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for reviewing an emergency plan, characterized in that: The method comprises: Obtain the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content; Performing document segmentation on the emergency plan according to the plan content to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan; Performing text cleaning and formatting on the chapter content, the paragraph content, the item content and the title to obtain target chapter content, target paragraph content, target item content and target title; Extracting multiple keywords related to the emergency field from the contents of each target chapter, each target paragraph, and each target entry, and assigning corresponding semantic categories to each of the chapters, each of the paragraphs, and each of the entries; Add corresponding field information to each of the chapters, each of the paragraphs, and each of the items, and construct a nested structure for each of the chapters, paragraphs, and items with added field information according to the logical hierarchy of the emergency plan to obtain a corresponding tree-like data model; Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

2. The method according to claim 1, characterized in that The obtaining of the emergency plan submitted by the user and parsing the emergency plan to obtain the corresponding plan content includes: Obtaining the emergency plan submitted by the user and determining the file type of the emergency plan; The emergency plan is parsed using a file parsing method that matches the file type to obtain the emergency plan content.

3. The method according to claim 1, characterized in that The step of extracting multiple keywords related to the emergency field from the contents of each target chapter, each target paragraph, and each target entry, and assigning corresponding semantic categories to each chapter, each paragraph, and each entry, includes: Performing word segmentation processing on the target content using a preset word segmentation rule; wherein the target content is a target chapter content or a target paragraph content or a target item content; Utilize the TF-IDF algorithm to extract multiple keywords related to the emergency field from the target content after word segmentation; The target content is processed using a pre-trained semantic classification model to assign a corresponding semantic category to each target content.

4. The method according to claim 1, characterized in that The method further comprises: Performing a logical matching conflict detection on the emergency plan according to a pre-built logical rule library to obtain a logical detection result of the emergency plan; Calculating the semantic embedding vector of each paragraph in the emergency plan, and calculating the semantic similarity between every two paragraphs based on the semantic embedding vectors of each paragraph; Constructing a semantic relationship graph between the paragraphs according to the semantic similarity between the paragraphs, and performing a semantic graph analysis on the emergency plan using the semantic relationship graph to obtain a corresponding semantic graph analysis result; A document logic consistency score is performed based on the logic detection results and semantic graph analysis results of the emergency plan to obtain a logic score for the emergency plan.

5. The method according to claim 4, characterized in that The method further comprises: Score the content and operability of the emergency plan; Determine the weight corresponding to the logic score of the emergency plan, the weight of the content score and the weight of the operability score from the preset weights; extracting features of the logic score, features of the content score, and features of the operability score; The weighted regression model is used to perform weighted integration according to the weights and characteristics of the logic score, the weights and characteristics of the content score, and the weights and characteristics of the operability score to obtain a comprehensive score for the emergency plan.

6. The method according to claim 5, characterized in that The method further comprises: Obtaining chapter completeness detection results and structural standardization detection results of the emergency plan from the content score of the emergency plan; According to the chapter integrity detection results and the structural normative detection results of the emergency plan, the missing chapters and the chapters with wrong order in the emergency plan are identified, and the missing chapters and the chapters with wrong order in the emergency plan are marked; Detecting paragraphs with logical islands and semantic contradictions in the emergency plan according to the semantic graph analysis results; Calculating the sentence embedding similarity of each sentence in the emergency plan, determining repeated paragraphs from the emergency plan according to the sentence embedding similarities of each sentence, and merging or marking each repeated paragraph; Time and resource description information is extracted from the emergency plan, and based on the time and resource description information, sections exceeding the response time and uncovered risk points are determined and marked from the emergency plan.

7. An emergency plan review system, characterized in that: The system comprises: The parsing unit is used to obtain the emergency plan submitted by the user, and parse the emergency plan to obtain the corresponding plan content; A document segmentation unit, used to segment the emergency plan according to the plan content, to obtain the chapter content of each chapter, the paragraph content of each paragraph, the item content of each item and a plurality of titles divided according to the logical hierarchy of the emergency plan; A text cleaning and formatting unit, used for performing text cleaning and formatting on the chapter content, the paragraph content, the item content and the title to obtain target chapter content, target paragraph content, target item content and target title; An extraction unit, used to extract a plurality of keywords related to the emergency field from the contents of each target chapter, each target paragraph and each target item, and assign a corresponding semantic category to each chapter, each paragraph and each item; A construction unit, used to add corresponding field information to each of the chapters, each of the paragraphs and each of the items, and construct a nested structure for each of the chapters, each of the paragraphs and each of the items with added field information according to the logical hierarchy of the emergency plan to obtain a corresponding tree data model; Among them, the field information of the chapter includes the target title, target chapter content, semantic category and keywords of the chapter; the field information of the paragraph includes the target title, target paragraph content and keywords of the paragraph; the field information of the entry includes the target title, target entry content and keywords of the entry.

8. The system according to claim 7, characterized in that The parsing unit comprises: A determination unit, used to obtain the emergency plan submitted by the user and determine the file type of the emergency plan; The parsing subunit is used to parse the emergency plan by using the file parsing method matching the file type to obtain the content of the emergency plan.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement the emergency plan review method as described in any one of claims 1-6.

10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the emergency plan review method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Automatic knowledge graph construction method and system for geological disaster field

    CN114692874A

  • Emergency plan knowledge graph construction method

    CN114840685A

  • Emergency plan text extraction method and system based on natural language processing

    CN116108170A

  • Prearranged plan text extraction method and device and storage medium

    CN116340532A

  • Reservoir flood control emergency plan knowledge graph construction method and system

    CN118070886A

Cited By

  • Enterprise risk identification and decision support method and system fused with natural language processing

    CN121810042A