Tunnel collapse rescue method and system based on knowledge constraint retrieval enhanced generation

By acquiring and serializing structured evidence packages, a draft tunnel collapse rescue plan is generated and verified, solving the problem of distinguishing between the target accident facts and historical cases in tunnel collapse accidents. This enables machine parsing and targeted revision, reducing the risk of field confusion and regeneration.

CN123157883APending Publication Date: 2026-11-24CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611664762.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to distinguish between actual tunnel accidents and historical cases in tunnel collapse incidents. They lack structured constraints and targeted revision capabilities for generated results, leading to machine-unparsable and non-executable verification, and the overall regeneration causing non-target fields to drift.

Method used

By acquiring structured evidence packages, standardizing and partitioning them for serialization, an initial draft rescue plan is generated. Syntax parsing and output field pattern validation are performed. Machine-executable validation rules are generated using trigger rule records and evidence usage constraints. Failure records are revised in a targeted manner, and revision patches conforming to field patterns are output to ensure the constraints on evidence object identification and scope of application.

Benefits of technology

It achieves machine-parseable rescue plan records, reduces confusion between different evidence types and fields with the same name, identifies invalid references and range mismatch issues, prevents the generation model from eliminating verification issues by speculating on-site data, and reduces the drift of non-target fields caused by overall regeneration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157883A_ABST
    Figure CN123157883A_ABST
Patent Text Reader

Abstract

This application provides a method and system for tunnel collapse rescue based on knowledge-constrained retrieval enhancement generation, relating to the field of tunnel rescue. The method includes: acquiring and serializing a structured evidence package containing evidence records, output field patterns, and evidence usage constraints; inputting a retrieval enhancement generation request into a generation model to obtain a structured initial rescue plan draft; performing syntax parsing and output field pattern validation, generating machine-executable validation rule instances for validation after passing, and outputting failed or pending verification records; when failed records exist, extracting the minimum modifiable field path to establish a whitelist, locking the validated fields and outputting only revision patches, atomically submitting after trial merging and digest validation; outputting a validation draft when there are no failed records, and outputting a conditional draft when pending verification. This invention realizes scheme generation and targeted revision under evidence constraints.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of tunnel rescue, and in particular to a tunnel collapse rescue method and system based on knowledge constraint retrieval enhancement generation. Background Technology

[0002] Tunnel collapses during construction, especially obstructive tunnel collapses where the collapsed material completely blocks the construction passage, can isolate personnel, equipment, and work areas from external safe passages. Rescue plans typically need to simultaneously consider the life-saving of trapped personnel, the construction of rescue passages, the stability control of the collapsed material, and secondary disaster factors such as groundwater and fault fracture zones. Information available in the early stages of an accident is limited, and on-site geological and equipment conditions may continue to change. Therefore, rescue plans must not only refer to historical cases but also meet the engineering safety constraints corresponding to the current accident state.

[0003] Existing emergency decision support methods mainly include manual experience compilation, historical case retrieval, and knowledge graph or rule base-based decision support. Publicly available intelligent decision-making methods for tunnel collapse accident rescue plans can use quantitative clustering analysis of environmental parameters and rescue duration from historical rescue events to match rescue methods with similar historical cases for the current accident, effectively saving rescue preparation time. Accident rescue risk warning methods based on real-time calculations use finite element models and seepage models to simulate excavation calculations for expected rescue plans and dynamically adjust model parameters based on on-site detection data to warn of rescue operation risks. Retrieval enhancement generation technology has also been applied in the field of tunnel engineering. It achieves the fusion representation of heterogeneous information by constructing multimodal semantic enhancement and a unified indexing mechanism, and uses hierarchical retrieval aggregation technology to solve the semantic fragmentation problem in knowledge retrieval, or controls the participation of retrieval content in the generation process through index structure optimization and confidence gating mechanisms.

[0004] However, the above methods still have the following shortcomings.

[0005] First, accident records, rule records, case records, and knowledge graph evidence often have different data patterns, field names, evidence objects, and state representations. When the information retrieved or matched is directly spliced ​​into the generation model, there is a lack of clear regional boundaries, field namespaces, evidence object identifiers, and applicable scopes between different pieces of evidence. Confirmed, unrecorded, pending verification, and conflicting information may be mixed together. As a result, the generation model may mistakenly regard the engineering conditions, rescue results, or construction parameters in historical cases as the current facts of the target tunnel collapse accident, or describe rescue methods that are only applicable under specific burial depth, terrain, working space, and equipment conditions as deterministic solutions.

[0006] Second, the generated results in continuous natural language form lack stable field structures and controlled action representations. It is difficult for computers to determine the accident facts, rescue rules, historical cases or knowledge graph relationships corresponding to a certain rescue suggestion. It is also difficult to determine whether the numerical parameters in the suggestion belong to the confirmed parameters of the current accident, the parameters of historical cases or the parameters to be verified on site. This results in insufficient machine parsing and evidence traceability of the generated results.

[0007] Third, rescue plans for blocked tunnel collapses require verification of life support, low-disturbance construction, control of fractured surrounding rock, water hazard control, applicability of conditions, completeness of the plan, and traceability of evidence. Relying solely on natural language keywords cannot reliably determine whether controlled rescue actions exist, nor can it distinguish between two different situations: "sufficient evidence but plan content violates constraints" and "insufficient or conflicting evidence for the current accident, making it impossible to determine."

[0008] Fourth, when errors exist in the generated results, existing methods typically re-input the verification opinions into the generation model and regenerate the complete solution. This may change measures, parameter states, and evidence references that have already passed verification while correcting the errors, causing non-target fields to drift. Furthermore, there is a lack of restrictions on allowing modification of fields and operation types, version number checks of the current rescue plan draft, consistency checks of passed fields, patch merging, and manual review mechanisms after revision failures. Summary of the Invention

[0009] The purpose of this invention is to address the problems in existing technologies that make it difficult to distinguish between facts of target tunnel collapse accidents, historical case results, and conditional engineering knowledge, lack structured constraints and targeted revision capabilities for generated results, leading to machine unparsing, unexecutable verification, and drift of non-target fields due to overall regeneration. This invention provides a tunnel collapse rescue method and system based on knowledge constraint retrieval enhancement generation.

[0010] The above-mentioned objective of this application is achieved through the following technical solution: Step S1: Obtain a structured evidence package for the target tunnel collapse accident; the structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; Step S2: The structured evidence package is normalized and partitioned for serialization to obtain a serialization result; based on the serialization result, duplicate evidence records are deduplicated. Step S3: Input the retrieval enhancement generation request into the generation model to obtain an initial rescue plan draft represented by a predetermined field structure; Step S4: Perform syntax parsing and output field pattern validation on the initial rescue plan draft. If the parsing fails, generate a structure failure record. If the parsing passes, generate a machine-executable validation rule instance and perform rule validation based on the trigger rule record and evidence usage constraints. If the validation fails, generate a failure record or a record to be verified. Step S5: When there is a structural failure record, take the root path of the current rescue plan or the smallest abnormal field path that can be located as the revision target, and require the generation model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current rescue plan draft and a manual review report are output.

[0011] Optionally, the structured accident record includes at least the following: collapse spatial information, collapse scale information, physical properties of the collapsed body, hydrological conditions, adverse geological conditions, and conditions of trapped personnel; the collapse scale information includes the collapse length and collapse volume, wherein the collapse length is the distance the collapsed body extends along the tunnel axis, and the collapse volume is the total volume of the collapsed body; the hydrological conditions include groundwater seepage flow and inflow rate; the adverse geological conditions include the degree of development of fault fracture zones, surrounding rock grade, and degree of development of joints and fissures; Each evidence record includes an evidence identifier, evidence type, evidence object identifier, scope of application of the evidence, field path, evidence value, unit of measurement, record status, source identifier, source location, evidence version, acquisition time, applicable conditions, and conflict group identifier; The scope of the evidence is used to distinguish between current incidents, historical cases, and general rules; The record status includes at least one of the following: confirmed, not recorded, pending verification, and conflict exists; The similar case records are only used as read-only input evidence and do not change their upstream ranking or retrieval results.

[0012] Optionally, step S2 includes: The serialization results include: accident evidence area, rule constraint area, case evidence area, knowledge graph evidence area, output field definition area, and evidence usage constraint area. Each area of ​​the serialization results is configured with an area identifier, field namespace, data mode version, number of records, and end identifier. Based on the serialization results, duplicate evidence records are deduplicated, evidence records with compatible content but different sources are merged and all sources are retained. For different evidence values ​​or record states that cannot be resolved under the same evidence object and field path, each piece of evidence is retained, the same conflict group identifier is set, and the corresponding field is marked as conflicting. When the serialization result exceeds the upper limit of the input length of the generation model, priority is given to retaining the triggering rules and their accident evidence related to personnel life safety, the triggered rules and their accident evidence, the output field pattern and evidence usage constraints, the knowledge graph evidence directly associated with the triggering rules, and the core facts of a preset number of similar cases. Among these, the output field pattern, evidence usage constraints, the triggered rules, the accident fields referenced by the rule predicates, and the evidence identifiers referenced by the retained records shall not be truncated, and the retained similar cases shall still be arranged in the upstream order.

[0013] Optionally, step S3 includes: The initial rescue plan draft includes: landslide type, main hazard source, main rescue method, auxiliary rescue method, backup rescue method, life protection measures, construction sequence, monitoring and early warning measures, equipment configuration, and evidence citation. For each key rescue suggestion in the initial rescue plan draft, its suggestion identifier, field identifier, controlled action code, suggestion content, applicable conditions, verification items, switching conditions, execution status, evidence identifier list, and parameter status are recorded. Only evidence that is applicable to the current accident and whose record status is confirmed supports the current accident facts or confirmed engineering parameters. Parameters that are not confirmed as known by the current accident evidence are marked as pending verification and corresponding verification items are formed.

[0014] Optionally, step S4 includes: The rule verification includes eight rule verification items: life support check, low-disturbance construction check, fractured surrounding rock control check, water hazard risk control check, loose and collapsed body construction safety check, condition applicability check, plan completeness check, and evidence traceability check. The life support check includes: when the number of trapped personnel is greater than zero or the triggering rule includes a life support requirement, reading the action code of the life support measures field and checking whether life detection, oxygen supply, communication and material delivery measures exist simultaneously. The low-disturbance construction inspection includes: when the triggering rules indicate that the collapsed body is sensitive to disturbance, checking whether the main rescue method excludes direct clearing of large sections as the preferred option, and checking whether the option has at least one low-disturbance operation measure among short advance, strong support, casing follow-up and rapid closure. The control inspection of the fractured surrounding rock includes: when the accident record indicates that fault fracture zone, weak surrounding rock or joint fissures are developed, checking whether the construction sequence includes advanced support, step-by-step construction and deformation monitoring. The water hazard risk control inspection includes: when hydrological conditions reach the triggering conditions, checking whether the plan includes at least one applicable measure among drainage, grouting, hydrological monitoring and work stoppage conditions; The evidence traceability check includes: reading the evidence identifier list of key rescue recommendations item by item, querying the corresponding evidence records in the structured evidence package, checking whether the evidence identifier exists, and whether the evidence object, scope of application, record status, and applicable conditions support the corresponding recommendations; generating a failure record for cases where there is qualified supporting evidence for the current accident but the plan omits or incorrectly references the evidence identifier; and generating a verification record for cases where there is no qualified supporting evidence, the evidence is pending verification, or there is an evidence conflict. Each rule validation item has three states: passed, failed, and pending verification. When the current incident evidence record required for the verification is sufficient, but the corresponding field in the initial rescue plan draft violates the required action, prohibited action, output field pattern, or evidence use constraint, it is marked as a verification failure and written to the auto-revision queue. When the current incident field required for the verification is not recorded, pending verification, or in conflict state in the structured incident record, the rule verification item is marked as pending verification and written into the manual review queue, and a manual review report is output. Sufficient current incident evidence records required for execution verification means that when executing a specific verification item, the structured evidence records from the current incident on which the triggering predicate of that verification item depends have all the conditions necessary for a deterministic determination.

[0015] Optionally, step S5 includes: The output revision patch undergoes the following revision process: The revision patch includes at least: the version number of the current draft rescue plan, the target field path, the operation type, and the replacement value; The system rejects revision patches that have inconsistent version numbers with the current draft rescue plan, contain field paths not on the whitelist, or contain operation types not on the whitelist. For eligible revision patches, perform a trial merge on a copy of the current draft relief plan, obtain the trial merge results, and perform output field schema validation. Perform lock field digest validation on the lock field digests before and after the revision; The revision results and the version number of the current relief plan draft will be submitted atomically only if the trial merge results conform to the output field pattern and the locked field summaries before and after the revision are consistent. After submitting the revised results, at least the verification rules associated with the modified path, the scheme completeness check, and the evidence traceability check should be re-executed.

[0016] Optionally, the locked field digest is obtained by normalizing the locked field set by fixing the key order and unifying the whitespace characters, and then using a digest algorithm.

[0017] A tunnel collapse rescue system based on knowledge-constrained retrieval and enhanced generation, the system comprising: The evidence package acquisition module is used to acquire a structured evidence package constructed for the target tunnel collapse accident; the structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; The request building module generates a request, which normalizes and partitions the structured evidence package to obtain a serialization result; based on the serialization result, it performs deduplication on completely duplicated evidence records. The solution generation module is used to input the search enhancement generation request into the generation model to obtain an initial rescue solution draft represented by a predetermined field structure; The rule verification module is used to perform syntax parsing and output field pattern verification on the initial rescue plan draft. If the parsing fails, a structure failure record is generated. If the parsing passes, a machine-executable verification rule instance is generated and the rule verification is performed based on the trigger rule record and evidence usage constraints. If the verification fails, a failure record or a record to be verified is generated. The targeted revision and solution output module is used to target the root path of the current rescue solution or the path of the smallest identifiable outlier field when there is a structural failure record. It requires the generating model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current draft rescue plan and a manual review report will be output. The beneficial effects of the technical solution provided in this application are: First, by constraining multi-source evidence through evidence object identification, evidence scope, record status, and partition namespace, we can reduce confusion between different evidence types and fields with the same name, and reduce the probability that historical case facts or parameters are mistakenly represented as the facts of the target accident.

[0018] Second, by using output field patterns, controlled action codes, and parameter states, rescue suggestions are converted into machine-parseable solution records, enabling deterministic rule programs to directly read solution fields and perform engineering constraint checks.

[0019] Third, by using field-level evidence identification and joint verification of evidence object, scope of application, record status and applicable conditions, it is possible to identify problems such as invalid citations, scope mismatch, evidence status not being met, and historical results being mistakenly used as current facts.

[0020] Fourth, mark non-compliance items with sufficient and modifiable evidence as failures, and mark items with insufficient evidence, pending verification, or conflicts as pending verification. This separates automatic revision from manual supplementation and prevents the generated model from eliminating verification problems by speculating on-site data.

[0021] Fifth, by using the minimum modifiable field path, field path whitelist, operation type whitelist, basic scheme version, trial merging, and locked field summary, targeted revision of failed fields is achieved, and the drift of non-target fields caused by overall regeneration is reduced.

[0022] Sixth, by saving evidence package versions, solution versions, verification records, revision patches, and locked field summaries, it provides a reconstructable operational record of the evidence, verification conclusions, and modifications used in key rescue recommendations. Attached Figure Description

[0023] The present application will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a step diagram of an embodiment of this application; Figure 2 This is the case knowledge graph in the embodiments of this application; Figure 3 This is an ablation experiment diagram of the evidence organization strategy in the embodiments of this application. Detailed Implementation

[0024] To provide a clearer understanding of the technical features, objectives, and effects of this application, the specific embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0025] The embodiments of this application provide a tunnel collapse rescue method based on knowledge constraint retrieval enhancement.

[0026] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating the steps of a tunnel collapse rescue method based on knowledge-constrained retrieval enhancement in an embodiment of this application, including: Step S1: Obtain a structured evidence package for the target tunnel collapse accident; the structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; Step S2: The structured evidence package is normalized and partitioned for serialization to obtain a serialization result; based on the serialization result, duplicate evidence records are deduplicated. Step S3: Input the retrieval enhancement generation request into the generation model to obtain an initial rescue plan draft represented by a predetermined field structure; Step S4: Perform syntax parsing and output field pattern validation on the initial rescue plan draft. If the parsing fails, generate a structure failure record. If the parsing passes, generate a machine-executable validation rule instance and perform rule validation based on the trigger rule record and evidence usage constraints. If the validation fails, generate a failure record or a record to be verified. Step S5: When there is a structural failure record, take the root path of the current rescue plan or the smallest abnormal field path that can be located as the revision target, and require the generation model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current rescue plan draft and a manual review report are output.

[0027] Table 1 shows the top 5 similar cases of Tunnel A collapse output by the upstream case retrieval module. Table 2 shows the performance comparison results of the retrieval enhancement generation framework integrating knowledge graph and case reasoning with different large language models. Table 3 shows the cross-case performance comparison results of Tunnel A and the supplementary reserved cases. Figure 2 It is a case knowledge graph; Figure 3 This is an ablation experiment diagram of the evidence organization strategy.

[0028] Table 1

[0029] Table 2

[0030] Table 3

[0031] The structured accident record includes at least the following: collapse spatial information, collapse scale information, physical properties of the collapsed body, hydrological conditions, adverse geological conditions, and conditions of trapped personnel; the collapse scale information includes the collapse length and collapse volume, where the collapse length is the distance the collapsed body extends along the tunnel axis, and the collapse volume is the total volume of the collapsed body; the hydrological conditions include groundwater seepage flow and inflow rate; the adverse geological conditions include the degree of development of fault fracture zones, surrounding rock grade, and degree of joint and fissure development; Each evidence record includes an evidence identifier, evidence type, evidence object identifier, scope of application of the evidence, field path, evidence value, unit of measurement, record status, source identifier, source location, evidence version, acquisition time, applicable conditions, and conflict group identifier; The scope of the evidence is used to distinguish between current incidents, historical cases, and general rules; The record status includes at least one of the following: confirmed, not recorded, pending verification, and conflict exists; The similar case records are only used as read-only input evidence and do not change their upstream ranking or retrieval results.

[0032] As one embodiment, similar case records are provided by the upstream case retrieval module. This invention only uses these similar case records as read-only input evidence for parsing, serialization, citation, and verification; it does not recalculate similarity, change the order of similar cases, or modify the upstream case retrieval results. The engineering conditions, rescue results, and parameters in historical cases retain the historical case evidence object identifiers and the scope of evidence application, but are not considered as current facts of the target tunnel collapse accident.

[0033] Step S2 includes: The serialization results include: accident evidence area, rule constraint area, case evidence area, knowledge graph evidence area, output field definition area, and evidence usage constraint area. Each area of ​​the serialization results is configured with an area identifier, field namespace, data mode version, number of records, and end identifier. Based on the serialization results, duplicate evidence records are deduplicated, evidence records with compatible content but different sources are merged and all sources are retained. For different evidence values ​​or record states that cannot be resolved under the same evidence object and field path, each piece of evidence is retained, the same conflict group identifier is set, and the corresponding field is marked as conflicting. When the serialization result exceeds the upper limit of the input length of the generation model, priority is given to retaining the triggering rules and their accident evidence related to personnel life safety, the triggered rules and their accident evidence, the output field pattern and evidence usage constraints, the knowledge graph evidence directly associated with the triggering rules, and the core facts of a preset number of similar cases. Among these, the output field pattern, evidence usage constraints, the triggered rules, the accident fields referenced by the rule predicates, and the evidence identifiers referenced by the retained records shall not be truncated, and the retained similar cases shall still be arranged in the upstream order.

[0034] Step S3 includes: The initial rescue plan draft includes: landslide type, main hazard source, main rescue method, auxiliary rescue method, backup rescue method, life protection measures, construction sequence, monitoring and early warning measures, equipment configuration, and evidence citation. For each key rescue suggestion in the initial rescue plan draft, its suggestion identifier, field identifier, controlled action code, suggestion content, applicable conditions, verification items, switching conditions, execution status, evidence identifier list, and parameter status are recorded. Only evidence that is applicable to the current accident and whose record status is confirmed supports the current accident facts or confirmed engineering parameters. Parameters that are not confirmed as known by the current accident evidence are marked as pending verification and corresponding verification items are formed.

[0035] As one example, critical rescue recommendations are an open-ended general term that encompasses all specific rescue measures or actions in a draft rescue plan that require independent recording, traceability, and verification.

[0036] Step S4 includes: The rule verification includes eight rule verification items: life support check, low-disturbance construction check, fractured surrounding rock control check, water hazard risk control check, loose and collapsed body construction safety check, condition applicability check, plan completeness check, and evidence traceability check. As one embodiment, the verification program reads the controlled action code, applicable conditions, execution status, evidence identifier, scope of evidence application, and parameter status, and does not use natural language keywords as the sole basis for judgment.

[0037] The life support check includes: when the number of trapped personnel is greater than zero or the triggering rule includes a life support requirement, reading the action code of the life support measures field and checking whether life detection, oxygen supply, communication and material delivery measures exist simultaneously. The low-disturbance construction inspection includes: when the triggering rules indicate that the collapsed body is sensitive to disturbance, checking whether the main rescue method excludes direct clearing of large sections as the preferred option, and checking whether the option has at least one low-disturbance operation measure among short advance, strong support, casing follow-up and rapid closure. The control inspection of the fractured surrounding rock includes: when the accident record indicates that fault fracture zone, weak surrounding rock or joint fissures are developed, checking whether the construction sequence includes advanced support, step-by-step construction and deformation monitoring. The water hazard risk control inspection includes: when hydrological conditions reach the triggering conditions, checking whether the plan includes at least one applicable measure among drainage, grouting, hydrological monitoring and work stoppage conditions; The evidence traceability check includes: reading the evidence identifier list of key rescue recommendations item by item, querying the corresponding evidence records in the structured evidence package, checking whether the evidence identifier exists, and whether the evidence object, scope of application, record status, and applicable conditions support the corresponding recommendations; generating a failure record for cases where there is qualified supporting evidence for the current accident but the plan omits or incorrectly references the evidence identifier; and generating a verification record for cases where there is no qualified supporting evidence, the evidence is pending verification, or there is an evidence conflict. Each rule validation item has three states: passed, failed, and pending verification. When the current incident evidence record required for the verification is sufficient, but the corresponding field in the initial rescue plan draft violates the required action, prohibited action, output field pattern, or evidence use constraint, it is marked as a verification failure and written to the auto-revision queue. When the current incident field required for the verification is not recorded, pending verification, or in conflict state in the structured incident record, the rule verification item is marked as pending verification and written into the manual review queue, and a manual review report is output. Sufficient current incident evidence records required for execution verification means that when executing a specific verification item, the structured evidence records from the current incident on which the triggering predicate of that verification item depends have all the conditions necessary for a deterministic determination.

[0038] Step S5 includes: The output revision patch undergoes the following revision process: The revision patch includes at least: the version number of the current draft rescue plan, the target field path, the operation type, and the replacement value; The system rejects revision patches that have inconsistent version numbers with the current draft rescue plan, contain field paths not on the whitelist, or contain operation types not on the whitelist. For eligible revision patches, perform a trial merge on a copy of the current draft relief plan, obtain the trial merge results, and perform output field schema validation. Perform lock field digest validation on the lock field digests before and after the revision; The revision results and the version number of the current relief plan draft will be submitted atomically only if the trial merge results conform to the output field pattern and the locked field summaries before and after the revision are consistent. After submitting the revised results, at least the verification rules associated with the modified path, the scheme completeness check, and the evidence traceability check should be re-executed.

[0039] The locked field digest is calculated using a digest algorithm after normalizing the locked field set by fixing the key order and unifying the whitespace characters.

[0040] As one implementation example, the item to be verified is a field in the critical rescue recommendation record, used to mark the preconditions or parameters that need to be confirmed on-site before a rescue recommendation can be adopted. Items to be verified are not eliminated by generating models to supplement on-site facts or numerical parameters; the system only recalculates the corresponding verification items after new evidence records are manually added and a new evidence package version is formed. The current accident field value corresponding to the item to be verified is not added to the automatic revision whitelist and remains in the manual review queue until new evidence records are obtained.

[0041] A tunnel collapse rescue system based on knowledge-constrained retrieval and enhanced generation, the system comprising: The evidence package acquisition module is used to acquire a structured evidence package constructed for the target tunnel collapse accident; the structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; The request building module generates a request, which normalizes and partitions the structured evidence package to obtain a serialization result; based on the serialization result, it performs deduplication on completely duplicated evidence records. The solution generation module is used to input the search enhancement generation request into the generation model to obtain an initial rescue solution draft represented by a predetermined field structure; The rule verification module is used to perform syntax parsing and output field pattern verification on the initial rescue plan draft. If the parsing fails, a structure failure record is generated. If the parsing passes, a machine-executable verification rule instance is generated and the rule verification is performed based on the trigger rule record and evidence usage constraints. If the verification fails, a failure record or a record to be verified is generated. The targeted revision and solution output module is used to target the root path of the current rescue solution or the path of the smallest identifiable outlier field when there is a structural failure record. It requires the generating model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current rescue plan draft and a manual review report are output.

[0042] In one embodiment, Example 1: Rescue plan generation, verification, and targeted revision method: This embodiment describes a method for generating, verifying, and revising tunnel collapse rescue plans. The computer equipment includes a processor, memory, and a data interface. The memory stores the evidence package data structure, plan field patterns, verification rule base, generation model calling program, and revision control program. Similar case records are generated by the upstream case retrieval module. This embodiment only receives and uses these similar case records, without recalculating similarity, changing case order, or modifying the upstream retrieval results.

[0043] 1. Obtaining structured evidence packages: Receive structured evidence package related to the target tunnel collapse accident , Structured accident records Trigger rule record upstream similar case records Knowledge graph evidence records Rescue plan output field pattern Constraints on the Use of Evidence composition.

[0044] Structured accident log The engineering status used to describe the current accident includes information on the collapsed space, the scale of the collapsed area, the physical properties of the collapsed body, hydrological conditions, adverse geological conditions, and the conditions of trapped personnel. Each field in the accident record is recorded and stored as independent evidence, and empty strings are not used to represent field status. For fields that can be confirmed by on-site reports, monitoring data, or audited accident descriptions, the record status is set to "confirmed"; for fields not recorded in the original data, the record status is set to "not recorded"; for fields that have descriptions but still require on-site measurement or professional confirmation, the record status is set to "pending verification"; for fields with inconsistent values ​​from different sources that cannot be resolved, the record status is set to "conflict exists".

[0045] In this embodiment, each evidence record includes at least the following data items: evidence_id (evidence identifier); evidence_type (evidence type); subject_id (evidence object identifier, used to distinguish target incidents, historical cases, or rule objects); evidence_scope (evidence scope, used to distinguish current incidents, historical cases, and general rules); field_path (field path); value and unit (field value and unit); status (confirmed, unrecorded, pending verification, or conflicting record status); source_id and source_location (evidence source and source location); schema_version and evidence_version (data schema version and evidence version); observed_at (acquisition or observation time); applicable conditions (applicable conditions); and conflicting_group_id (used to associate conflicting records).

[0046] The following example uses the format "field name: field value" to illustrate the field semantics and correspondences of a machine-parseable evidence record. This format is merely a readable representation of a structured record and does not limit the underlying text syntax; in practice, database records, XML objects, key-value objects, or other data structures with the same field semantics can be used.

[0047] Example of an evidence record: Data model version is EP-1.1; evidence identifier is X-HG-001; evidence type is accident field; evidence object identifier is target accident Q-001; evidence scope is the current accident; field path is accident.geology.fault_zone; field value is "strongly developed"; record status is confirmed; source identifier is SITE_REPORT_001; source location is "accident geological condition section"; evidence version is 1; no applicable conditions or conflict group identifiers exist. This record indicates that "strongly developed fault fracture zone" is a confirmed geological fact of the target accident.

[0048] Trigger rule record It is formed from the result of rule matching on the accident side. Each trigger rule record must save at least the rule identifier, trigger predicate, trigger evidence identifier, engineering meaning, necessary rescue measures, prohibition measures, and priority. The rule triggering process is completed before the evidence package is input into this embodiment, and the generated model cannot add or delete triggered rules.

[0049] Similar Case Records This section lists the top k historical cases output by the upstream case retrieval module. Each similar case record stores the case identifier, upstream sorting identifier, engineering conditions similar to or the same as the current accident, historical rescue measures, applicability description, and corresponding evidence source. The `subject_id` is set to the corresponding historical case identifier, and `evidence_scope` is set to the historical case. Rescue duration, number of rescued individuals, life-channel parameters, and escape route parameters in historical cases are only used as historical evidence and not as facts of the current accident or confirmed engineering parameters.

[0050] Knowledge Graph Evidence Records This includes entities, relations, or triples associated with the current incident field, triggering rules, or similar cases. Each piece of knowledge graph evidence uses an independent evidence identifier and saves the evidence object identifiers and the scope of application of the evidence at both ends of the relation, so that the generated results can reference specific relation records, rather than just the knowledge graph name.

[0051] Rescue plan output field pattern Specify the field names, data types, hierarchical relationships, required statuses, and controlled terms in the generated results. Evidence usage constraints. At a minimum, the following must be included: unrecorded, pending verification, or conflicting information must not be represented as confirmed facts of the current incident; conflicting information must not be selected as the sole input to a deterministic predicate when the conflict remains unresolved; condition-dependent rescue methods must have applicable conditions, pending verification items, and switching conditions; critical rescue recommendations must be associated with at least one [missing information - likely a specific type of information]. Evidence identifiers that are analyzed in the Chinese context and whose scope of application is consistent with the recommended use; historical case results and parameters must not be represented as on-site facts or confirmed parameters of the current accident.

[0052] 2. Constructing the retrieval enhancement request: The request generation module processes requests according to a predefined field order. The data is serialized into four sections: accident evidence area, rule constraint area, case evidence area, knowledge graph evidence area, output field definition area, and evidence usage constraint area. Each area is assigned a region identifier, field namespace, version number, record count, and end identifier to prevent confusion between fields with the same name in different areas or different evidence objects.

[0053] Before serialization, records with identical evidence_type, subject_id, evidence_scope, field_path, value, unit, status, and source_id are identified as completely duplicate records and deleted. For records with compatible content but different sources, the evidence content is merged and all source identifiers are retained. For records with inconsistent values ​​or statuses under the same subject_id and field_path that cannot be resolved by manual review, each conflicting value is retained, the same conflict_group_id is set, and the status is set to conflict. No value is selected as the single input for the current incident fact or deterministic verification predicate.

[0054] In one optional implementation, the request generation module uses the tokenizer corresponding to the generation model to calculate the input length of the serialization result. When the input length exceeds the context length allowed by the model, the following are retained in sequence: triggering rules related to personnel life safety and their accident evidence, other triggered rules and their accident evidence, output field patterns and evidence usage constraints, knowledge graph evidence directly associated with the triggering rules, core facts of the top k similar cases, and supplementary descriptions of similar cases. The output field patterns, evidence usage constraints, triggered rules, accident fields referenced by rule predicates, and evidence identifiers referenced by retained records must not be truncated, and the retained similar cases are still arranged in the upstream order.

[0055] The generation request can be passed to the generative model in the form of structured text, serialized database objects, or other machine-parseable data. The task role description is used to limit the generation task; the scope of evidence, output structure, and prohibited operations are constrained by the structured evidence fields, output field patterns, and subsequent deterministic rule verification, respectively, without relying on a single natural language prompt for security verification.

[0056] After generating the model output, the system first performs syntax parsing and output field pattern validation. Output that cannot be parsed does not directly enter the engineering rule validation process. Instead, it generates a STRUCTURE_FAIL failure record and uses the root path of the solution or the smallest locatable outlier field path as the revision target. The generated model is required to output a revised patch that conforms to the field pattern without changing the input evidence. The validation program primarily reads controlled encodings such as method encoding or action encoding, and does not use natural language keywords as the sole criterion for judgment.

[0057] 3. Generation of the initial rescue plan: The solution generation module will retrieve the enhanced generation request and input it into the generation model, requiring the generation model to follow the specified steps. Output a machine-resolvable initial rescue plan draft . It should include at least ten categories of fields: landslide type, main hazard source, primary rescue method, auxiliary rescue method, backup rescue method, life protection measures, construction sequence, monitoring and early warning measures, equipment configuration, and evidence citation.

[0058] Each critical rescue recommendation saves a recommendation identifier, field identifier, recommendation content, method code or action code, applicable conditions, verification items, switching conditions, execution status, evidence identifier list, and parameter status. Each identifier in the evidence identifier list must be resolvable to... The evidence must include accident records, rule records, case records, or knowledge graph evidence records, and the object, scope, record status, and applicable conditions of the cited evidence must support the corresponding recommendations. Only evidence within the scope of the current accident and in the "confirmed" status can support the current accident facts and confirmed parameters; otherwise, the parameter status will be set to "pending verification" and corresponding verification items will be generated.

[0059] Example of a key rescue recommendation record: Recommendation identifier is REC-PRIMARY-001; field identifier is PLAN.PRIMARY.001; method code is HORIZONTAL_LARGE_DIAMETER_DRILLING; recommendation content is "Construct a candidate main rescue channel using large-diameter horizontal drilling"; applicable conditions include drilling distance meeting equipment capabilities and availability of equipment operating space; verification items include maximum equipment drilling distance and operating platform conditions; switching condition is switching to other low-disturbance channel methods when equipment capabilities are not met; execution status is CONDITIONAL; evidence identifiers include R6 and CASE_016; parameter status is pending verification. This record represents the candidate method and its evidence chain, but does not indicate that the on-site implementation parameters have been determined.

[0060] The construction sequence field uses action records with sequence numbers. For obstructive tunnel collapses involving trapped personnel, at least the following action records must be set: on-site isolation and monitoring, life detection, establishment of life support passages, stabilization of the collapsed body, construction of the main rescue passage, parallel preparation of auxiliary or backup passages, personnel evacuation, and follow-up treatment. The generated model can adjust the action content based on the evidence package, but large-section clearing and other high-disturbance operations cannot be placed before life detection and stabilization.

[0061] 4. Validation rule instantiation and eight types of rule validation: Rule validation module reads , and The process converts triggering rules into executable verification rule instances. Each verification rule instance includes at least a rule identifier, a triggering predicate, a target field path, a set of required actions, a set of prohibited actions, evidence requirements, applicable conditions, priority, and an error code. The triggering predicate determines whether the verification item applies to the current incident; the target field path determines the scheme fields that need to be read; the set of required actions and the set of prohibited actions use controlled action coding; and the evidence requirements limit the objects, scope, recording status, and applicable conditions that support the evidence.

[0062] Example of a life support verification rule: The rule identifier is R8_CHECK; the triggering predicate is that the number of trapped personnel in the target accident is greater than zero; the target field path is plan.life_support; the required action set includes life detection, oxygen supply, communication, and material delivery; the evidence requirement is that the trapped personnel record used for the triggering predicate belongs to the current accident and the status is confirmed; the priority is 1; the failure code is LIFE_SUPPORT_MISSING. The above fields constitute a rule record that can be read by the rule engine and do not belong to the program source code that requires manual execution.

[0063] The rule validation module performs the following eight types of checks: First, life support check. When the number of trapped personnel is greater than zero or the triggering rule includes life support requirements, read the action code of the life support measures field and check whether life detection, oxygen supply, communication and material delivery measures exist simultaneously.

[0064] Second, low-disturbance construction inspection. When the triggering rules indicate that the collapsed body is sensitive to disturbance, there is a risk of secondary collapse, or blind clearing is prohibited, check whether the main rescue method excludes direct clearing of large sections as the preferred option, and check whether the plan includes applicable measures from short advance, strong support, casing follow-up, rapid closure, or other low-disturbance operation measures.

[0065] Third, check the control of fractured surrounding rock. When the accident record indicates the development of fault fracture zones, weak surrounding rock, or joints and fissures, check whether the construction sequence and risk control fields include advanced support, phased construction, and deformation monitoring.

[0066] Fourth, water hazard risk control inspection. When hydrological conditions reach the triggering conditions of the corresponding rules, check whether the plan includes applicable measures in drainage, grouting, hydrological monitoring, and work stoppage conditions; when hydrological fields are unrecorded or conflicting, mark the inspection as pending verification, and do not replace field data with model predictions.

[0067] Fifth, safety inspection of construction on loose collapsed bodies. When the collapsed body has loose or disturb-sensitive characteristics, check whether casing follow-up, temporary support or short advance measures are set up, and check whether there are any prohibited actions of entering the collapsed body without support.

[0068] Sixth, condition applicability check. For condition-dependent methods such as large-diameter horizontal drilling, artificial pilot tunnels, vertical shafts, pipe jacking, surface drilling, and utilization of existing channels, read the applicable conditions, verification items, switching conditions, and execution status fields; when any method is set to be executed but lacks applicable conditions or verification items, output a condition applicability failure record.

[0069] Seventh, completeness check of the plan. Check whether the fields for primary rescue method, auxiliary rescue method, and backup rescue method contain records of methods with complementary functions; if no feasible method exists, check whether the corresponding fields contain the inapplicability status, reasons, and corresponding evidence; and check whether the fields for life support measures, construction sequence, monitoring and early warning, and equipment configuration exist. This check is a global check after generation and does not participate in accident rule triggering or similar case ranking.

[0070] Eighth, evidence traceability check. Read the evidence identification list of key rescue recommendations item by item, and... The system queries the corresponding evidence records; it checks whether the evidence identifier exists, whether the evidence object, scope of application, record status, and applicable conditions support the corresponding recommendations, and whether historical case accident facts, rescue results, or engineering parameters are incorrectly represented as current accident facts or confirmed parameters. For cases where there is qualified supporting evidence for the current accident but the solution omits or incorrectly references the evidence identifier, a failure record is generated; for cases where there is no qualified supporting evidence, the evidence is pending verification, or there is an evidence conflict, a pending verification record is generated. This check is a global check after generation.

[0071] Each verification item has three states: passed, failed, and pending verification. A "pass" is indicated when the evidence is sufficient, the triggering predicate is true, and the scheme fields meet the required actions, prohibited actions, and evidence requirements. A "fail" is indicated when the evidence is sufficient but the scheme fields violate required actions, prohibited actions, output field patterns, or evidence usage constraints, or when there are citation errors that can be eliminated by supplementing or correcting the evidence identifier, and a failure record is generated. It is then written to the auto-revision queue; if the current incident field required to execute the predicate is not recorded, pending verification, or has a conflict, or if there is no supporting evidence that meets the applicable conditions, it is marked as pending verification, and a pending verification record is generated. And write it into the manual review queue. Failure records that cannot be eliminated by rewriting accident facts or engineering parameters in the generative model.

[0072] 5. Targeted revision of failed fields: When a failure record exists, firstly, the minimum modifiable sub-path is extracted based on the target field path in the failure record, and a whitelist of field paths and a whitelist of add / replace operation types are established; the scheme field corresponding to the passed status verification item and not belonging to the failure target is added to the locked field set. The corresponding accident fact values ​​and engineering parameters are not added to the automatic revision whitelist. They are only re-verified after new evidence is manually added and the evidence package version is updated.

[0073] The targeted revision module writes the current draft version of the rescue plan as the base version into the revision request, and converts the locked fields into normalized data with fixed key order and uniform whitespace characters before calculating the field digest. The field digest can be implemented using the SHA-256 digest algorithm, or other digest algorithms that can detect changes in field content. Subsequently, the current draft rescue plan, the base plan version, failure records, relevant evidence, field path whitelist, operation type whitelist, and locked field digest are combined into the targeted revision request.

[0074] The generation model outputs a revision patch containing the base scheme version, field paths, operation types, and replacement values ​​based on the targeted revision request, instead of re-outputting the complete scheme draft. The targeted revision module rejects patches with inconsistent base scheme versions, field paths outside the whitelist, or operation types outside the whitelist. For compliant patches, a trial merge is performed on the current copy of the scheme draft, and the output field pattern and locked field digest validations are performed on the trial merge result. The revision result is atomically committed and the scheme version is updated only if the trial merge result conforms to the output field pattern and the locked field digest remains consistent; otherwise, the trial merge result is discarded. After submission, the rule validation module at least re-executes the validation rules associated with the modified path, scheme completeness validation, and evidence traceability validation.

[0075] In this embodiment, the maximum number of automatic revisions is set to 3. This value can be configured to other integers greater than or equal to 1 based on computing resources and emergency procedures. When there are no failure records or records to be verified, the solution output module outputs a verified draft rescue plan. When there are no failure records but records to be verified, automatic revision is stopped and a conditional draft rescue plan with a list of records to be verified is output. When the maximum number of revisions is reached and there are still failure records or revision patches are continuously rejected, the current solution version and a manual review report are output.

[0076] Example 2: Verification of a tunnel collapse accident: This embodiment uses the "4.11" tunnel collapse accident in Tunnel A to illustrate the above method. After the relevant parameters for case retrieval were determined, this accident was used as an independent verification case, and its actual rescue results were not involved in the triggering of accident-side rules, the ranking of similar cases, or the input of the generation model.

[0077] 1. Accident records and rule records: Based on the original accident data, it can be confirmed that the collapse occurred inside the tunnel, with a length of approximately 22 meters and a volume of approximately 3000 cubic meters. The collapsed body mainly consisted of medium-sized rock blocks and reinforced concrete debris. The accident site was affected by a well-developed fault fracture zone and Class V surrounding rock. A total of 7 people were trapped. The above data were recorded in the structured accident log and marked as confirmed.

[0078] For fields in the original data that cannot be reliably confirmed, such as distance from the tunnel entrance, distance from the working face, groundwater level, rainfall impact, joint and fissure level, karst impact, shallow buried bias pressure impact, terrain conditions, and equipment capabilities, they are marked as unrecorded or pending verification and are not assigned presumed values ​​to prevent subsequent models from using unconfirmed field values ​​as the basis for selecting rescue methods.

[0079] Based on the confirmed accident fields, the rule matching module obtained six triggering rules: R4, R6, R8, R12, R13, and R15. R4 and R15 represent the requirements for advanced support, phased construction, and deformation monitoring under fault fracture zones and fractured surrounding rock conditions; R6 indicates that when the tunnel is blocked and there are trapped personnel, a low-disturbance rescue passage should be prioritized, and verification of drilling distance, working space, and equipment capabilities is required; R8 and R13 represent the requirements for life detection, oxygen supply, communication, and material transportation; and R12 indicates that direct clearing of large sections should not be the preferred solution.

[0080] 2. Evidence from similar cases and knowledge graphs: The upstream case retrieval module outputs the top 5 similar case records from 58 historical cases. The structured evidence package only accepts the case identifier, upstream ranking identifier, engineering conditions similar to the current accident, historical rescue measures, and applicability description, and sets the evidence object identifier of each record to the corresponding historical case and the scope of application of the evidence to the historical case; this embodiment does not recalculate the similarity, does not adjust the ranking, and does not modify the upstream retrieval results.

[0081] The evidence from the first five cases shows that large-diameter horizontal drilling, borehole life support, and artificial pilot tunnels can provide historical references for tunnel blockage-type collapses; shafts, pipe jacking, surface drilling, and the use of existing passages are limited by burial depth, topography, surface working space, equipment capacity, and the stability of the collapsed body, and can only serve as conditional evidence. The aforementioned historical engineering conditions, rescue results, and parameters all remain within the scope of application of historical cases. The knowledge graph evidence further records relationships such as "large-diameter horizontal drilling—requires verification—drilling distance and equipment capacity," "artificial pilot tunnel—requires coordination—short advance and strong support," and "existence of trapped personnel—must be set up—life support measures."

[0082] 3. Generation of Evidence Constraints: The incident records, six triggering rules, the top five upstream similar cases, knowledge graph evidence, output field patterns, and evidence usage constraints are combined into a single set. The data is serialized in the following order: accident evidence area, rule constraint area, case evidence area, knowledge graph evidence area, output field definition area, and evidence use constraint area. The serialization process preserves the evidence object identifier, the scope of application of the evidence, the record status, and the order of upstream cases.

[0083] In one specific operational configuration, the solution generation module uses the locally deployed Qwen3-VL-8B-Instruct model and runs it in text mode, with a model context length configured to 30,000 tags. The model name, parameter scale, quantization method, and context length are only used to illustrate one offline operational configuration and do not constitute a limitation of the present invention. The number of similar cases and the retrieval model belong to the operational configuration of the upstream case retrieval module. This embodiment only receives the similar case records output by it, does not call the upstream retrieval model, and does not recalculate case similarity.

[0084] The initial rescue plan output by the plan generation module identifies the accident as a tunnel blockage-type collapse under the influence of fault fracture zone and Class V surrounding rock. It sets large-diameter horizontal drilling as a candidate primary rescue method and sets its execution status as conditional. It lists the maximum drilling distance of the equipment, the working space inside the tunnel, and the equipment capacity as items to be verified. It sets artificial pilot tunnel as a candidate auxiliary rescue method and lists the local stability of the collapsed body and the support conditions as items to be verified. It uses vertical shafts, pipe jacking, surface drilling, and existing passages as conditional backup methods and does not describe them as the confirmed execution plan unless the applicable conditions have been verified.

[0085] The initial rescue plan simultaneously includes life detection, oxygen supply, communication, and material transport measures, prioritizing life support actions before the main rescue channel is established. The construction sequence includes on-site isolation and monitoring, life detection, establishing life support communication, stabilization of the collapsed area, construction of the main rescue channel, parallel preparation of auxiliary channels, personnel evacuation, and subsequent reinforcement and monitoring. The plan does not output fixed parameters such as borehole diameter, steel arch frame type, cycle depth, number of equipment, platform load-bearing capacity, or monitoring time intervals that have not been confirmed by evidence.

[0086] 4. Example of verification and targeted revision: To illustrate the targeted revision process, it is assumed that the initial draft rescue plan's artificial pilot tunnel suggestion did not record evidence identification, and the backup shaft suggestion only listed the method name without recording applicable conditions. The rule verification module performs eight types of checks. Life support checks, low-disturbance construction checks, fractured surrounding rock control checks, loose collapse body construction safety checks, and plan completeness checks meet their corresponding requirements; because hydrological conditions are unrecorded or pending verification, the water hazard risk control check is marked as pending verification and added to the manual review queue. The draft plan can simultaneously output preventative hydrological monitoring measures, but these measures do not automatically pass the water hazard check; the condition applicability check generates a condition applicability failure record for the backup shaft suggestion; the evidence traceability check... If there is qualified evidence to support the manual pilot tunneling suggestion but the scheme omits its identification, an evidence traceability failure record is generated.

[0087] The target field path for a failure of condition applicability is plan.backup_scheme.applicable conditions, plan.backup_scheme.verification items, and plan.backup_scheme.execution status. Adding operations to the applicable conditions and verification items is allowed, and the execution status can be replaced with CONDITIONAL. The target field path for a failure of evidence traceability is plan.auxiliary_scheme.evidence identifier list. Only adding operations that can... Evidence identifiers that are consistent with the analysis, scope of application, and intended use, and can support the manual diversion suggestion. Hydrological records awaiting verification do not generate automatic revision paths.

[0088] The targeted revision module generates a whitelist of field paths and an operation type based on this information, and locks down fields that have passed verification, such as collapse type, hazard source, candidate primary rescue method, life support measures, construction sequence, monitoring measures, and equipment requirements. The generated model outputs a revision patch with a basic solution version. The spare shaft field is updated with verification requirements for burial depth, terrain, surface working space, and equipment capabilities, as well as switching conditions. The execution status is set to conditional. The artificial pilot tunnel field is updated with historical case evidence and rule identifiers that support the recommendation. The patch does not include factual values ​​or engineering parameters that have not been confirmed by current accident evidence.

[0089] The targeted revision module first checks the base scheme version, field paths, and operation type. Then, it performs a trial merge on the current draft copy of the scheme and compares the field summaries of locked fields before and after the merge. If the trial merge result matches the output field pattern and the locked field summaries remain consistent, the revision is accepted and the scheme version is updated. The rule verification module re-executes the condition applicability and evidence traceability checks associated with the modification path and performs a global scheme completeness check. Records of condition applicability failures and evidence traceability failures are eliminated; for hydrological or equipment information that still requires on-site measurement, the system retains... It also writes in the manual review information and does not generate presumed parameters.

[0090] 5. Final Solution and Retrospective Verification: Since equipment capacity, drilling distance, working space, and hydrological conditions are still pending verification, this embodiment outputs a draft conditional rescue plan with a checklist of aspects to be verified, rather than a fully verified draft plan. The draft prioritizes life-saving measures, listing large-diameter horizontal drilling that meets equipment capacity, drilling distance, and working space requirements as the primary candidate rescue method, artificial pilot tunnels that meet the stability and support requirements of the collapsed body as secondary candidate rescue methods, and retaining shafts, pipe jacking, surface drilling, and the use of existing channels as conditional backup methods. Each key recommendation is associated with case evidence, rule evidence, or knowledge graph evidence that aligns with its applicable scope and intended use.

[0091] After the plan was generated and verified, the draft conditional rescue plan was retrospectively compared with the actual rescue records. The actual records show that on-site, life support communication was first established using boreholes, followed by the use of large-diameter horizontal drilling and artificial pilot tunnels to form the main and auxiliary rescue paths, with the core route consistent with the generated plan. The parameters used on-site, such as borehole diameter, drilling rig model, artificial pilot tunnel cross-section, support model, and cycle footage, are implementation parameters determined by on-site survey, equipment conditions, and real-time monitoring, and are only used for post-event verification, not as input evidence in the generation stage of this embodiment.

[0092] Example 3: System Deployment and Operation Records This embodiment provides a system for generating, verifying, and revising tunnel collapse rescue plans, including an evidence package acquisition module, a request generation module, a plan generation module, a rule verification module, a targeted revision module, and a plan output and operation record module. Each module can run as a software component on the same server or be deployed on different computing nodes communicating via a local area network.

[0093] In offline emergency scenarios, the case library, rule library, knowledge graph, generation model, and verification program can all be deployed on field workstations or local servers. The evidence package acquisition module receives upstream accident structured results and case retrieval results through a data interface; the request generation module performs evidence deduplication, conflict marking, partition serialization, and input length control locally, while maintaining the order of upstream similar cases; the solution generation module calls the local generation model; the rule verification module uses a deterministic procedure to read the structured solution fields and execute the rule predicates; the targeted revision module is responsible for field path whitelists, operation type whitelists, base versions, field summaries, trial merging, and atomic submissions; the solution output and operation record module outputs a verified rescue plan draft, a conditional rescue plan draft, or a manually reviewed report based on the verification status.

[0094] The system establishes a unique task identifier for each processing step and saves the following information: evidence package data mode version, evidence version, rule base version, output field mode version, generated model identifier, generated request summary, solution version, base solution version corresponding to each patch, verification results, failure records, records pending verification, field paths and operation types of revised patches, trial merge results, summaries of locked fields before and after revision, and manual review status. Through these operational records, the evidence objects used in a key rescue recommendation, the scope of applicable evidence, verification conclusions, and all revision processes can be reconstructed.

[0095] The verified draft rescue plan, conditional rescue plan, and manual review report output by the system are all emergency decision support information and do not directly constitute equipment control commands or on-site automatic construction commands. For accident conditions with a recorded status of unrecorded, pending verification, or conflicting, as well as engineering parameters marked as pending verification, the system continuously retains the corresponding status in the output interface and manual review report. The on-site commanders and professional engineers will decide whether to adopt these parameters after confirming them based on survey, monitoring, and equipment data.

[0096] The above are merely exemplary embodiments of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure.

[0097] This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A tunnel collapse rescue method based on knowledge-constrained retrieval enhancement, characterized in that, The method includes the following steps: Step S1: Obtain the structured evidence package for the target tunnel collapse accident; The structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; Step S2: The structured evidence package is normalized and partitioned for serialization to obtain a serialization result; based on the serialization result, duplicate evidence records are deduplicated. Step S3: Input the retrieval enhancement generation request into the generation model to obtain an initial rescue plan draft represented by a predetermined field structure; Step S4: Perform syntax parsing and output field pattern validation on the initial rescue plan draft. If the parsing fails, generate a structure failure record. If the parsing passes, generate a machine-executable validation rule instance and perform rule validation based on the trigger rule record and evidence usage constraints. If the validation fails, generate a failure record or a record to be verified. Step S5: When there is a structural failure record, take the root path of the current rescue plan or the smallest abnormal field path that can be located as the revision target, and require the generation model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current rescue plan draft and a manual review report are output.

2. The tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 1, characterized in that, The structured accident record includes at least the following: collapse spatial information, collapse scale information, physical properties of the collapsed body, hydrological conditions, adverse geological conditions, and conditions of trapped personnel; the collapse scale information includes the collapse length and collapse volume, where the collapse length is the distance the collapsed body extends along the tunnel axis, and the collapse volume is the total volume of the collapsed body; the hydrological conditions include groundwater seepage flow and inflow rate; the adverse geological conditions include the degree of development of fault fracture zones, surrounding rock grade, and degree of joint and fissure development; Each evidence record includes an evidence identifier, evidence type, evidence object identifier, scope of application of the evidence, field path, evidence value, unit of measurement, record status, source identifier, source location, evidence version, acquisition time, applicable conditions, and conflict group identifier; The scope of the evidence is used to distinguish between current incidents, historical cases, and general rules; The record status includes at least one of the following: confirmed, not recorded, pending verification, and conflict exists; The similar case records are only used as read-only input evidence and do not change their upstream ranking or retrieval results.

3. The tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 2, characterized in that, Step S2 includes: The serialization results include: accident evidence area, rule constraint area, case evidence area, knowledge graph evidence area, output field definition area, and evidence usage constraint area. Each area of ​​the serialization results is configured with an area identifier, field namespace, data mode version, number of records, and end identifier. Based on the serialization results, duplicate evidence records are deduplicated, evidence records with compatible content but different sources are merged and all sources are retained. For different evidence values ​​or record states that cannot be resolved under the same evidence object and field path, each piece of evidence is retained, the same conflict group identifier is set, and the corresponding field is marked as conflicting. When the serialization result exceeds the upper limit of the input length of the generation model, priority is given to retaining the triggering rules and their accident evidence related to personnel life safety, the triggered rules and their accident evidence, the output field pattern and evidence usage constraints, the knowledge graph evidence directly associated with the triggering rules, and the core facts of a preset number of similar cases. Among these, the output field pattern, evidence usage constraints, the triggered rules, the accident fields referenced by the rule predicates, and the evidence identifiers referenced by the retained records shall not be truncated, and the retained similar cases shall still be arranged in the upstream order.

4. The tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 1, characterized in that, Step S3 includes: The initial rescue plan draft includes: landslide type, main hazard source, main rescue method, auxiliary rescue method, backup rescue method, life protection measures, construction sequence, monitoring and early warning measures, equipment configuration, and evidence citation. For each key rescue suggestion in the initial rescue plan draft, its suggestion identifier, field identifier, controlled action code, suggestion content, applicable conditions, verification items, switching conditions, execution status, evidence identifier list, and parameter status are recorded. Only evidence that is applicable to the current accident and whose record status is confirmed supports the current accident facts or confirmed engineering parameters. Parameters that are not confirmed as known by the current accident evidence are marked as pending verification and corresponding verification items are formed.

5. A tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 4, characterized in that, Step S4 includes: The rule verification includes eight rule verification items: life support check, low-disturbance construction check, fractured surrounding rock control check, water hazard risk control check, loose and collapsed body construction safety check, condition applicability check, plan completeness check, and evidence traceability check. The life support check includes: when the number of trapped personnel is greater than zero or the triggering rule includes a life support requirement, reading the action code of the life support measures field and checking whether life detection, oxygen supply, communication and material delivery measures exist simultaneously. The low-disturbance construction inspection includes: when the triggering rules indicate that the collapsed body is sensitive to disturbance, checking whether the main rescue method excludes direct clearing of large sections as the preferred option, and checking whether the option has at least one low-disturbance operation measure among short advance, strong support, casing follow-up and rapid closure. The control inspection of the fractured surrounding rock includes: when the accident record indicates that fault fracture zone, weak surrounding rock or joint fissures are developed, checking whether the construction sequence includes advanced support, step-by-step construction and deformation monitoring. The water hazard risk control inspection includes: when hydrological conditions reach the triggering conditions, checking whether the plan includes at least one applicable measure among drainage, grouting, hydrological monitoring and work stoppage conditions; The evidence traceability check includes: reading the evidence identifier list of key rescue recommendations item by item, querying the corresponding evidence records in the structured evidence package, checking whether the evidence identifier exists, and whether the evidence object, scope of application, record status, and applicable conditions support the corresponding recommendations; generating a failure record for cases where there is qualified supporting evidence for the current accident but the plan omits or incorrectly references the evidence identifier; and generating a verification record for cases where there is no qualified supporting evidence, the evidence is pending verification, or there is an evidence conflict. Each rule validation item has three states: passed, failed, and pending verification. When the current incident evidence record required for the verification is sufficient, but the corresponding field in the initial rescue plan draft violates the required action, prohibited action, output field pattern, or evidence use constraint, it is marked as a verification failure and written to the auto-revision queue. When the current incident field required for the verification is not recorded, pending verification, or in conflict state in the structured incident record, the rule verification item is marked as pending verification and written into the manual review queue, and a manual review report is output. Sufficient current incident evidence records required for execution verification means that when executing a specific verification item, the structured evidence records from the current incident on which the triggering predicate of that verification item depends have all the conditions necessary for a deterministic determination.

6. A tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 5, characterized in that, Step S5 includes: The output revision patch undergoes the following revision process: The revision patch includes at least: the version number of the current draft rescue plan, the target field path, the operation type, and the replacement value; The system rejects revision patches that have inconsistent version numbers with the current draft rescue plan, contain field paths not on the whitelist, or contain operation types not on the whitelist. For eligible revision patches, perform a trial merge on a copy of the current draft relief plan, obtain the trial merge results, and perform output field schema validation. Perform lock field digest validation on the lock field digests before and after the revision; The revision results and the version number of the current relief plan draft will be submitted atomically only if the trial merge results conform to the output field pattern and the locked field summaries before and after the revision are consistent. After submitting the revised results, at least the verification rules associated with the modified path, the scheme completeness check, and the evidence traceability check should be re-executed.

7. The tunnel collapse rescue method based on knowledge-constrained retrieval enhancement according to claim 6, characterized in that, The locked field digest is calculated using a digest algorithm after normalizing the locked field set by fixing the key order and unifying the whitespace characters.

8. A tunnel collapse rescue system based on knowledge-constrained retrieval enhancement generation, used to implement the tunnel collapse rescue method based on knowledge-constrained retrieval enhancement generation as described in any one of claims 1-7, characterized in that, The system includes: The evidence package acquisition module is used to acquire a structured evidence package constructed for the target tunnel collapse accident; the structured evidence package includes: evidence records, output field patterns of the rescue plan, and evidence usage constraints; the evidence records include: structured accident records, trigger rule records, similar case records output by the upstream case retrieval module, and knowledge graph evidence records; The request building module generates a request, which normalizes and partitions the structured evidence package to obtain a serialization result; based on the serialization result, it performs deduplication on completely duplicated evidence records. The solution generation module is used to input the search enhancement generation request into the generation model to obtain an initial rescue solution draft represented by a predetermined field structure; The rule verification module is used to perform syntax parsing and output field pattern verification on the initial rescue plan draft. If the parsing fails, a structure failure record is generated. If the parsing passes, a machine-executable verification rule instance is generated and the rule verification is performed based on the trigger rule record and evidence usage constraints. If the verification fails, a failure record or a record to be verified is generated. The targeted revision and solution output module is used to target the root path of the current rescue solution or the path of the smallest identifiable outlier field when there is a structural failure record. It requires the generating model to output a revision patch that conforms to the field pattern without changing the input evidence. When a failure record exists, extract the minimum modifiable field path based on the failure record, establish a field path whitelist and an operation type whitelist, set the fields that have passed the rule verification but do not belong to the target field path in the failure record as locked fields, and make the generated model only output revision patches. When there are no failure records or pending verification records, output a verified draft of the rescue plan with a version number and evidence references; When there are no failure records but there are records to be verified, output a draft conditional rescue plan with a list of records to be verified; When the preset maximum number of automatic revisions is reached and there are still failure records or revision patches are continuously rejected, the version number of the current rescue plan draft and a manual review report are output.