An intelligent generation method for flood detention basin engineering construction emergency disposal scheme based on a large language model and a knowledge graph
By constructing a knowledge graph and entity alignment, combined with resource verification, the problem of large language models generating erroneous parameters on their own was solved, thereby improving the accuracy and security of emergency response plans.
Patent Information
- Application Number
- CN202611580479.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-13
- Publication Date
- 2026-11-20
AI Technical Summary
In construction safety emergency scenarios, large language models may generate handling parameters that do not match the actual situation on site. Furthermore, when on-site personnel use colloquial descriptions, existing technologies cannot effectively verify the accuracy of the parameters, leading to an increased risk of safety accidents.
Construct a database of construction emergency plans and a database of disaster scenarios, establish a knowledge graph, and ensure that the disposal parameters come from verified deterministic calculation results through entity alignment, multidimensional weighted matching, and resource verification, thereby avoiding the automatic generation of large language models.
It improved the accuracy and safety of emergency response plans, reduced the proportion of fictitious parameters, ensured the traceability of plan content, and improved generation efficiency.
Smart Images

Figure REF-OBJ-1791875653528-000002 
Figure REF-OBJ-1791875653528-000003 
Figure REF-OBJ-1791875653528-000004
Abstract
Description
Technical Field
[0001] This invention relates to the field of emergency response technology for construction safety in water conservancy projects, specifically a method for intelligently generating emergency response plans for flood storage and detention area construction projects based on large language models and knowledge graphs. Background Technology
[0002] Construction of flood storage and detention area projects often involves structures such as deep foundation pits, high slopes, and large sluice gates. When unexpected events such as torrential rains, floods, or foundation pit instability occur during construction, it is crucial to quickly develop actionable emergency response plans. Traditionally, project safety management personnel rely on reviewing construction emergency plans, historical disaster cases, and relevant standards and regulations, combining this with on-site experience to manually formulate response plans. This process is time-consuming, and the quality of the plans is significantly affected by the experience of the personnel involved.
[0003] In recent years, with the development of large language models and retrieval-enhanced generation technologies, technical solutions have emerged that utilize large language models to automatically generate emergency response plans. These solutions typically vectorize emergency response plan texts and disaster case studies and store them in a vector database. When a user inputs a description of the scene, the system retrieves relevant knowledge fragments and concatenates them into prompts, allowing the large language model to directly generate a complete response plan.
[0004] However, the existing methods mentioned above face a prominent technical problem in construction safety emergency scenarios: when generating response plans, large language models autonomously synthesize, deduce, and generate response parameters based on retrieved knowledge fragments, such as the number of evacuees, the number of drainage devices, the radius of the warning range, and the monitoring frequency. In emergency situations, large language models may generate fictitious parameters that do not match the actual situation on site. For example, a retrieval plan for a foundation pit might state that 15 people should be evacuated, but there are actually only 8 workers on site. The large language model might directly use the number from the retrieved fragment without verification. Another example is that the large language model might infer from the context to add 2 submersible pumps, but there is only 1 available device on site. If these erroneous response parameters are implemented by on-site personnel, it could lead to insufficient evacuation, incorrect equipment allocation, or inappropriate warning ranges, directly causing safety accidents. Existing retrieval-enhanced generation technologies address the accuracy of knowledge retrieval but do not solve the problem that large language models should not autonomously determine response parameters.
[0005] Furthermore, construction site personnel often use colloquial and incomplete natural language to describe hazards, rather than standard risk terminology. Existing methods directly feed user input into a large language model for parsing, which may misjudge hazard types and match incorrect contingency plans when terminology is non-standard or key information is missing. Additionally, inconsistent terminology for the same risk entity in contingency plan texts from different sources, without entity alignment or conflict resolution, may cause the large language model to receive contradictory information. Summary of the Invention
[0006] This invention aims to provide an intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs. While improving the efficiency of plan generation by utilizing large language models, it ensures that all response parameters involving personal safety and resource allocation come from deterministic calculation results verified by resources, rather than text organized by the large language model itself.
[0007] To address the above technical problems, the specific solution adopted in this invention is as follows: A method for intelligently generating emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs, comprising the following steps: S1. Construct a construction emergency plan database and a construction disaster scenario database. The construction disaster scenario database stores typical disaster scenario templates. Establish the relationship between the two databases and construct a construction emergency knowledge graph based on the entities and relationships extracted from the two databases. S2 utilizes a large language model to perform semantic parsing and risk entity alignment on user input, thereby identifying dynamic construction disaster scenarios that include current risk elements and predicted risk elements. S3 matches dynamic construction disaster scenarios with typical disaster scenario templates to identify candidate emergency plans, and then selects the baseline emergency plan through multi-dimensional weighted matching, and divides the baseline emergency plan into relatively fixed content and adjustable content; S4. Extract the objects to be adjusted from the baseline emergency plan, calculate the trigger degree based on the current risk factors, predicted risk factors, activated accident chains and scenario stages, and identify the objects that need to be adjusted. S5, perform rule reasoning on the object to be adjusted and verify the resources to obtain the solution adjustment result including the disposal parameters and disposal scope; S6 inputs the baseline emergency plan, dynamic construction disaster scenarios, and plan adjustment results into the large language model, and generates an emergency response plan according to the standard template. The response parameters and response scope are taken from the plan adjustment results and are not generated by the large language model itself. At the same time, knowledge tracing and plan review are performed. If the review fails, the plan is returned for adjustment.
[0008] Preferably, in step S1, constructing the construction emergency plan database and the construction disaster scenario database includes: dividing the emergency plan into functional modules according to the project object and construction procedure; breaking down each functional module into independently callable emergency response knowledge units to form structured plan metadata records; defining typical disaster scenario templates and recording the project object, hazard source, accident type and environmental conditions; and establishing the association edge between the emergency response knowledge units and the typical disaster scenario templates.
[0009] Preferably, in step S2, risk entity alignment is performed by aligning the entities obtained from parsing the large language model. Standard risk entities in the unified risk entity library Calculate the overall match score using the following formula:
[0010] In the formula, For semantic similarity, For the similarity of engineering objects, For the similarity of construction procedures, For context similarity, The similarity of the incident chain is used; an alignment relationship is established when the overall matching degree exceeds a set threshold.
[0011] Preferably, in step S2, the predicted risk factors are derived from the identified current risk factors along the accident chain relationship in the construction emergency knowledge graph; the dynamic construction disaster scenario includes both the currently observed risk factors and the derived predicted risk factors.
[0012] Preferably, in step S3, the multidimensional weighted matching calculates the dynamic construction disaster scenario according to the following formula. With candidate plans Overall similarity:
[0013] In the formula, the seven dimensions are the project object, construction procedure, hazard source, accident type, accident chain, scenario stage, and construction environment. Weights for each dimension were determined using the analytic hierarchy process based on historical matching results; the candidate plan with the highest overall similarity was selected as the baseline emergency plan.
[0014] Preferably, in step S4, the triggering degree is calculated according to the following formula:
[0015] In the formula, As current risk factors, To predict risk factors, The incident chain has been activated. This is the scenario phase. The target of the plan adjustment For correlation strength, , , , For the corresponding weights; when Determine if the threshold is exceeded The object that needs adjustment.
[0016] Preferably, in step S5, the resource verification is as follows: when the currently available emergency resources do not meet the disposal requirements, the following steps are performed in sequence: cross-section resource allocation, reduction of implementation scale, marking of resource gaps and prompting for replenishment, until the disposal requirements are met or the resource gap item is marked.
[0017] Preferably, in step S6, the standard template includes basic event information, dynamic disaster scenario identification results, risk assessment, baseline plan matching results, plan adjustment objects and adjustment results, on-site emergency response measures, personnel evacuation and on-site warning, emergency resource allocation, dynamic monitoring and risk tracking, information reporting and coordination mechanism, emergency termination and resumption of construction conditions, generation basis and knowledge traceability, and plan review module.
[0018] Preferably, in step S6, knowledge tracing involves recording the emergency plan number and clauses, standard entries, knowledge graph triples, and adjustment rules used for each part of the emergency response plan, so that each part of the response content can be traced back to a definite source.
[0019] Preferably, in step S6, the solution review includes: checking whether the disposal measures in the generated solution are consistent with the identified risk factors, and checking whether the resource verification results are passed; if the review fails, the link that caused the contradiction is located and the process is returned for readjustment.
[0020] Beneficial effects This invention breaks down the emergency response plan generation process into four stages: selecting a baseline plan, identifying objects requiring adjustment, rule-based reasoning and resource verification, and controlled text organization. The response parameters and scope are not generated by a large language model, but rather derived from the adjusted plan results verified by resources. The large language model is only responsible for organizing deterministic results into natural language text according to a standard template. This mechanism structurally eliminates the possibility of the large language model fabricating response parameters, fundamentally different from the existing practice where the large language model directly generates the entire plan content from retrieved knowledge.
[0021] To address the problem of scenario recognition errors caused by non-standard and incomplete natural language descriptions at the scene, this invention establishes a passive fault-tolerance mechanism for non-standard inputs. Specifically: S2's risk entity alignment maps colloquial terms obtained from large language model parsing to standard terms in a unified risk entity database, eliminating terminology bias before entering the contingency plan matching process; S2's current and predicted dual-element identification utilizes accident chain relationships in a knowledge graph to deduce and supplement predicted risk elements not mentioned at the scene from observed local risk information, compensating for the deficiencies in incomplete scene descriptions; S3's multi-dimensional weighted matching cross-validates multiple dimensions, including engineering objects, construction procedures, hazard sources, accident types, accident chains, scenario stages, and construction environment. When a single element identification has a bias, the other correct dimensions dominate in the weighted summation, preventing overall matching failure due to local errors; S6's knowledge tracing and scheme review closed loop starts from the self-consistency of downstream schemes, checking whether the disposal measures are consistent with the risk elements and whether resource verification has passed, intercepting and returning adjustments for identification biases that the first three layers failed to correct. The above four features work in a progressive and coordinated manner in the order of pre-alignment, in-process completion, matching error tolerance, and post-correction, so that the system can still output the correct handling solution when there are terminology deviations, missing information, or partial misjudgments in the on-site input, rather than relying on the autonomous understanding of non-standard descriptions by a large language model. Detailed Implementation
[0022] The present invention will be further described in detail below with reference to specific embodiments.
[0023] I. Dual-Repository Construction and Knowledge Graph Generation (S1) This example uses the excavation of the foundation pit for a floodgate in a plain reservoir's flood storage area as an application scenario. The project's designed foundation pit depth is 8.5m, the groundwater level is 2.1m deep, and the construction period coincides with the flood season. The project prepared multiple contingency plans, including a special emergency plan for the foundation pit project and a flood prevention plan for construction during the flood season, totaling approximately 120,000 words.
[0024] The aforementioned contingency plan text is divided into several functional modules according to the project object and construction procedure, such as emergency response to seepage during foundation pit excavation, emergency response to slope instability during foundation pit excavation, and emergency response to overtopping of cofferdam. Each functional module is further broken down into independently searchable knowledge units. Each knowledge unit records its project object, construction procedure, hazard source, disposal measures, required resources, and other fields, forming a structured contingency plan metadata record.
[0025] Simultaneously, typical disaster scenario templates are defined, with each template recording the engineering object, hazard source, accident type, environmental conditions, and associated emergency response knowledge unit number. Emergency Response Knowledge Unit With scenario templates An edge is established between them, and the degree of association is calculated using the following formula:
[0026] In the formula, the five dimensions are similarity of engineering objects, similarity of construction procedures, similarity of hazards, similarity of accident types, and similarity of construction environment. As one implementation method, the weights of the five dimensions are 0.25, 0.20, 0.25, 0.15, and 0.15 respectively, totaling 1.0. A correlation edge is established when the correlation exceeds 0.6.
[0027] Based on this, a construction emergency ontology is defined, which is represented by a 5-tuple:
[0028] In the formula, This is a set of concepts, covering major concept categories such as engineering objects, construction procedures, hazard sources, accident types, disposal objectives, emergency measures, and emergency resources; It is a set of relationships, including relationship types such as belonging, triggering, causing, occurring at, needing, using, and located; For attribute set; For instance set; This is an axiom set. During implementation, other conceptual classes and relation types can be added based on the specific project requirements.
[0029] By utilizing a pre-trained encoding model combined with a bidirectional long short-term memory network and a conditional random field, the aforementioned concept-type entities and relation instances are identified from dual-database texts. For entity pairs ( , ) and its context The probability distribution of relation types is as follows:
[0030] In the formula, For the context representation vector of entity pairs, This is the weight matrix. For bias, This refers to the k-th type of relation in the set of relation types.
[0031] The extracted entities are then fused and written into a graph database to form a construction emergency knowledge graph, which is represented by quadruples:
[0032] In the formula, E is the set of entities. For a set of relations, For a collection of attributes, The time dimension is used. The knowledge graph is stored in the form of triples, such as (seepage in the foundation pit may lead to slope instability) and (slope instability triggers, work stops), which form the basis for accident chain reasoning.
[0033] II. Dynamic Construction Disaster Scenario Identification (S2) On-site personnel input natural language descriptions via mobile devices, such as: "At the northwest corner of the No. 2 working face pit, water is seeping out from the side wall, and the amount is not small. There are already cracks at the top of the slope, and there are still several people working underneath."
[0034] The large language model performs semantic parsing on the above input, identifying elements such as the engineering object (gate foundation pit), location (northwest corner), phenomena (sidewall seepage, slope top cracks), and personnel status (workers at the bottom). The parsed entities are not directly used as the final risk elements, but rather undergo an alignment process with a unified risk entity database. During alignment, the parsed entities... With standard risk entities Calculate the overall match score using the following formula:
[0035] In the formula, For semantic similarity, For the similarity of engineering objects, For the similarity of construction procedures, For context similarity, The similarity is calculated for the accident chain. As one implementation, the weights are set to α=0.25, β=0.20, γ=0.15, δ=0.15, and ε=0.25, totaling 1.0. In this embodiment, water seeping from the sidewall is mapped to the standard risk entity foundation pit sidewall seepage after alignment, resulting in a comprehensive matching degree of 0.82; the slope top crack is mapped to the foundation pit slope top crack, with a matching degree of 0.78, both exceeding the threshold of 0.6.
[0036] After alignment, the system starts from the identified current risk factors (seepage in the pit sidewalls, cracks at the top of the slope) and extrapolates and predicts risk factors along the accident chain relationships in the knowledge graph. Based on the two triplets in the knowledge graph (seepage in the pit may lead to slope deformation) and (slope deformation may lead to slope instability), the system extrapolates the predicted risk factor of slope instability and extrapolates the risk of worker exposure from the presence of workers on the working face inside the pit. The resulting dynamic construction disaster scenario simultaneously includes both currently observed and predicted factors, describing all information completely without relying on on-site personnel.
[0037] When the overall matching score is below 0.6, the system provides the user with supplementary information, such as asking them to confirm whether the seepage location is on the side wall of the foundation pit or at a pipe interface. After the user provides the supplementary information, the system re-analyzes the data. In this embodiment, the matching scores all exceed the threshold, so the system proceeds directly to the next step.
[0038] III. Matching with the baseline emergency response plan (S3) Dynamic construction disaster scenarios Typical disaster scenario template Similarity matching is performed to narrow down the set of candidate solutions whose relevance exceeds a first threshold. The scenario-template relevance is calculated using the same five-dimensional weighted method as in step S1.
[0039] In this embodiment, two candidate plans were selected: a special emergency plan for foundation pit engineering and a flood prevention plan for construction during the flood season.
[0040] Subsequently, multidimensional weighted matching is performed on the candidate set, and the dynamic construction disaster scenario is calculated according to the following formula. With candidate plans Overall similarity:
[0041] The seven dimensions and their weights are shown in the table below.
[0042] Table 1. Multidimensional weighted matching dimensions and weights After weighted summation, the comprehensive matching degree of the special emergency plan for foundation pit engineering is 0.84, while that of the flood prevention plan for flood season construction is 0.61. Therefore, the special emergency plan for foundation pit engineering is selected as the benchmark emergency plan.
[0043] After selecting the baseline contingency plan, its content is divided into relatively fixed content and adjustable content. Relatively fixed content includes parts determined by laws, regulations, and management systems, such as incident reporting procedures, emergency organizational structure, and information reporting paths; adjustable content includes construction status, personnel status, drainage equipment configuration, warning range, monitoring frequency, and emergency response forces, which need to be adjusted according to the current risk status and predicted risks.
[0044] IV. Object recognition needs adjustment (S4) Extract the objects to be adjusted from the adjustable content of the baseline emergency response plan. Calculate the trigger value one by one. The trigger value is calculated using the following formula:
[0045] In the formula, As current risk factors, To predict risk factors, Path represents the activated incident chain, Stage represents the scenario stage, and Rel(·) represents the correlation strength. As one implementation method, the weights are respectively taken as... =0.35、 =0.25、 =0.25、 =0.15, total 1.0. An object is considered to require adjustment when the trigger value exceeds 0.5.
[0046] In this embodiment, the following conditions exceed the thresholds: construction status (current seepage and cracks at the top of the slope, trigger degree 0.82), personnel status (workers at the bottom, trigger degree 0.75), drainage equipment (increased seepage volume and predicted continuous rainfall, trigger degree 0.68), warning range (increased risk of slope instability, trigger degree 0.65), and monitoring frequency (continuously rising risk, trigger degree 0.55); the emergency response force trigger degree is 0.42, which does not exceed the threshold and will not be adjusted for the time being.
[0047] V. Plan Adjustment and Resource Verification (S5) For the aforementioned objects requiring adjustment, rule reasoning is performed based on initiation condition rules, measure sequence rules, constraint rules, and response termination rules. For example, regarding the construction status, the baseline plan states normal construction. When the trigger value exceeds 0.5 and there is a combination of pit seepage and slope top cracks, the rule reasoning result is to stop the relevant work. Regarding the personnel status, the baseline plan allows work inside the pit. When there are workers inside the pit exposed to the risk of seepage, the reasoning result is to evacuate all personnel and take a headcount.
[0048] The adjustment results obtained from the reasoning are checked against the resources item by item. In this embodiment, the reasoning result for the drainage equipment is to increase the drainage capacity and allocate spare pumps. After checking the available resources on site, there are currently 2 4-inch submersible pumps in this section (1 of which is in use) and 1 on standby, which does not meet the requirement of adding 2 pumps. The system executes the degradation strategy in sequence: the first step is cross-section allocation, borrowing 1 4-inch submersible pump from the adjacent No. 3 working face (expected to arrive in 15 minutes); after allocation, a total of 2 spare pumps are available, which meets the requirement. If cross-section allocation is still insufficient, the implementation scale is reduced; if it is still not sufficient, the resource gap is marked and a suggestion to supplement is made.
[0049] The adjustment results for each object requiring adjustment are recorded in a structured format:
[0050] In the formula, To adjust the object, Based on the baseline contingency plan value, As a triggering factor, Based on the rules, The adjusted value, As a reasoning, As the data source, The confidence level is shown in Table 2, which lists the structured results of the six adjustment objects in this embodiment.
[0051]
[0052] VI. Emergency Response Plan Generation (S6) The relatively fixed content of the baseline emergency response plan, the results of dynamic construction disaster scenario identification, the adjustment results of the above plan, and relevant knowledge retrieved from the knowledge graph are input into the domain-fine-tuned large language model. The retrieval layer calculates the entities input from the knowledge graph using the following formula. With characteristic entities Mutual information between them is used for relevance ranking:
[0053] In the formula, p( , ) represents the joint probability, p( ), p( The marginal probability is represented by (). Search results are then combined with the knowledge graph topology for relevance ranking and causal logic analysis before being incorporated into the context.
[0054] The large language model is injected with domain knowledge through low-rank adaptive fine-tuning, and its weights are updated using low-rank increments:
[0055] In the formula, This is a right low-rank matrix (r×d_in, initialized with zero values). It is a left low-rank matrix (d_out×r, Gaussian initialization). Let be the scaling factor, and r be the low-rank rank. The optimization objective is:
[0056] In the formula, Let L be the pre-trained weights, f(·) be the forward propagation function of the large language model, x be the input sample, y be the target output, and L(·) be the loss function. The forward propagation is as follows:
[0057] Fine-tuning pre-trained weights Freeze, update only the low-rank matrix , In this embodiment, the large language model used for semantic parsing and the large language model used for generation are the same model.
[0058] The large language model organizes text according to the standard emergency response plan template. The template covers modules such as basic event information, dynamic disaster scenario identification results, risk assessment, baseline plan matching results, plan adjustment objects and adjustment results, on-site emergency response measures, personnel evacuation and on-site warning, emergency resource allocation, dynamic monitoring and risk tracking, information reporting and coordination mechanism, emergency termination and resumption of construction conditions, generation basis and knowledge traceability, and plan review.
[0059] The key to this embodiment is that the content related to disposal parameters and disposal scope in the above template, such as the number of people evacuated (8), evacuation route (along the west slope trail to the ground assembly point), number of drainage devices (2 in use plus 2 on standby), warning range (15m outside the edge of the pit), and monitoring frequency (1 time / 2 hours), are all directly extracted from the scheme adjustment results in Table 2 and filled into the corresponding modules. The large language model does not modify or extrapolate these values. The role of the large language model is limited to organizing these deterministic data and the fixed descriptions in the baseline plan into fluent natural language paragraphs.
[0060] The knowledge tracing module records the source of each action: for example, stopping work in the foundation pit comes from Article 5.2.3 of the emergency plan for foundation pit engineering; evacuating 8 people comes from the number of personnel identified in the on-site input and deduced through adjustment rules; the 15m warning range comes from the corresponding adjustment rules; and the allocation of 1 pump across sections comes from the allocation records in the resource verification system. The review module checks whether the action measures are consistent with the risk factors and whether the resource verification is passed. In this embodiment, all measures passed, and the plan was released and implemented after confirmation.
[0061] VII. Robustness description of non-standard on-site descriptions In practical applications, field personnel often do not have time to provide a complete description using standard terminology. The following example illustrates how the above steps work together to address this issue.
[0062] First, when on-site personnel stated that the leakage in the northwest corner was significant, the candidate entities obtained from the large language model parsing might include foundation pit seepage and pipeline leakage. The entity alignment process doesn't allow the large language model to automatically decide which entity to select; instead, it calculates the comprehensive matching degree between the parsing results and the unified risk entity database using the aforementioned five-dimensional formula. Because the contextual information such as "foundation pit" and "northwest corner" strongly points to the foundation pit project object, the matching degree for "foundation pit seepage" (0.82) is much higher than that for "pipeline leakage" (0.35), and the system automatically selects the correct risk entity. Issues with non-standard terminology are corrected before proceeding to the contingency plan matching stage.
[0063] Secondly, on-site descriptions often omit crucial information. In this embodiment, the on-site personnel did not mention the width of the crack at the top of the slope or the specific number of people inside the pit. The system completes the risk prediction along the accident chain: from water seepage, it infers the risk of slope instability; from the presence of people in the pit, it infers the risk of personnel exposure. The system does not require on-site personnel to provide all risk information; instead, it starts from locally observable information and uses causal relationships in a knowledge graph to complete the risk picture.
[0064] Furthermore, even if there is a deviation in the identification of elements in a certain dimension, other dimensions in the multidimensional weighted matching can still pull the matching results back to the correct direction. For example, even if seepage is misjudged as piping, causing a decrease in the similarity of the hazard source dimension, the correct information in dimensions such as engineering object (gate foundation pit), construction procedure (excavation), and environmental conditions (high groundwater level during the flood season) will still make the overall matching degree tend to favor the pit-type plan, and a single-dimensional error will not lead to a completely wrong plan.
[0065] Finally, if the first three steps still fail to completely correct the identification bias, resulting in a solution that does not match the actual situation, the review process will identify the problem and return it for adjustment by checking whether the handling measures are consistent with the risk factors and whether the resource verification has passed. This multi-layered mechanism, from entity alignment, incident chain completion, multi-dimensional fault tolerance to review closure, makes the system highly robust to non-standard and incomplete on-site natural language input.
[0066] VIII. Comparative Verification To verify the effectiveness of this invention in terms of the accuracy of handling parameters, a comparative test was conducted at the aforementioned project site. The test selected 15 cases of foundation pit seepage risks recorded during the flood season of 2024 for this project, and two methods were used to generate handling plans: Method 1 was direct retrieval enhanced generation (the plan text was vectorized and the plan was directly generated by a large language model), and Method 2 was the method of this invention.
[0067] Test results show that in the schemes generated by Method 1, the consistency rate of disposal parameters with the actual situation on site and the formal contingency plan was 72.3%, and the proportion of fictitious disposal parameters (such as the number of evacuees not matching the actual number, the number of equipment not being configured on site, and the warning range exceeding the standard requirements) was 23.5%, with a scheme content traceability rate of 45%. In the schemes generated by Method 2, the consistency rate of disposal parameters was 96.8%, the proportion of fictitious disposal parameters decreased to 1.2%, and the content of each module of the scheme could be traced back to the contingency plan clauses or adjustment rules, with a traceability rate of 100%. In addition, since the large language model no longer needs to infer disposal parameters on its own, the average generation time of a single scheme decreased from about 18 seconds in Method 1 to about 9 seconds.
[0068] The comparative data above demonstrates that isolating the generation of handling parameters from the large language model and entrusting them to rule-based reasoning and resource verification can significantly reduce the proportion of fictitious parameters and improve the reliability of emergency response plans in safety-critical scenarios.
Claims
1. A method for intelligently generating emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs, characterized in that: Includes the following steps: S1. Construct a construction emergency plan database and a construction disaster scenario database. The construction disaster scenario database stores typical disaster scenario templates. Establish the relationship between the two databases and construct a construction emergency knowledge graph based on the entities and relationships extracted from the two databases. S2 utilizes a large language model to perform semantic parsing and risk entity alignment on user input, thereby identifying dynamic construction disaster scenarios that include current risk elements and predicted risk elements. S3 matches dynamic construction disaster scenarios with typical disaster scenario templates to identify candidate emergency plans, and then selects the baseline emergency plan through multi-dimensional weighted matching, and divides the baseline emergency plan into relatively fixed content and adjustable content; S4. Extract the objects to be adjusted from the baseline emergency plan, calculate the trigger degree based on the current risk factors, predicted risk factors, activated accident chains and scenario stages, and identify the objects that need to be adjusted. S5, perform rule reasoning on the object to be adjusted and verify the resources to obtain the solution adjustment result including the disposal parameters and disposal scope; S6 inputs the baseline emergency plan, dynamic construction disaster scenarios, and plan adjustment results into the large language model, and generates an emergency response plan according to the standard template. The response parameters and response scope are taken from the plan adjustment results and are not generated by the large language model itself. At the same time, knowledge tracing and plan review are performed. If the review fails, the plan is returned for adjustment.
2. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S1, constructing the construction emergency plan database and the construction disaster scenario database includes: dividing the emergency plan into functional modules according to the project object and construction procedure, breaking down each functional module into independently callable emergency response knowledge units, forming structured plan metadata records; defining typical disaster scenario templates, recording the project object, hazard source, accident type and environmental conditions; and establishing the association edge between emergency response knowledge units and typical disaster scenario templates.
3. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S2, risk entity alignment is achieved by parsing the entities obtained from the large language model. Standard risk entities in the unified risk entity library Calculate the overall match score using the following formula: In the formula, For semantic similarity, For the similarity of engineering objects, For the similarity of construction procedures, For context similarity, The similarity of the incident chain is used; an alignment relationship is established when the overall matching degree exceeds a set threshold.
4. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S2, the predicted risk factors are derived from the identified current risk factors along the accident chain relationship in the construction emergency knowledge graph; the dynamic construction disaster scenario includes both the currently observed risk factors and the derived predicted risk factors.
5. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S3, the multidimensional weighted matching is used to calculate the dynamic construction disaster scenario according to the following formula. With candidate plans Overall similarity: In the formula, the seven dimensions are the project object, construction procedure, hazard source, accident type, accident chain, scenario stage, and construction environment. Weights for each dimension were determined using the analytic hierarchy process based on historical matching results; the candidate plan with the highest overall similarity was selected as the baseline emergency plan.
6. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S4, the trigger degree is calculated according to the following formula: In the formula, As current risk factors, To predict risk factors, The incident chain has been activated. This is the scenario phase. The target of the plan adjustment For correlation strength, , , , For the corresponding weights; when Determine if the threshold is exceeded The object that needs adjustment.
7. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S5, resource verification is performed as follows: when the currently available emergency resources do not meet the disposal requirements, cross-section resource allocation, reduction of implementation scale, marking of resource gaps and prompting for replenishment are executed sequentially until the disposal requirements are met or the resource gap item is marked.
8. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S6, the standard template includes basic event information, dynamic disaster scenario identification results, risk assessment, baseline plan matching results, plan adjustment objects and adjustment results, on-site emergency response measures, personnel evacuation and on-site warning, emergency resource allocation, dynamic monitoring and risk tracking, information reporting and coordination mechanism, emergency termination and resumption of construction conditions, generation basis and knowledge traceability, and plan review module.
9. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S6, knowledge tracing involves recording the emergency plan number and clauses, standard items, knowledge graph triples, and adjustment rules used for each part of the emergency response plan, so that each part of the response content can be traced back to a definite source.
10. The intelligent generation method for emergency response plans for flood storage and detention area engineering construction based on large language models and knowledge graphs as described in claim 1, characterized in that: In step S6, the solution review includes: checking whether the disposal measures in the generated solution are consistent with the identified risk factors, and checking whether the resource verification results are passed; if the review fails, the link that caused the contradiction is located and the solution is returned for readjustment.
