A method and system for extracting triples from a bridge inspection report

By establishing evidence indexes and logical verification in bridge inspection reports, splitting defect instances and merging defect instances with consistent attributes, the problems of duplicate entities and attribute mismatches in bridge inspection reports are solved, achieving the accuracy and traceability of triples.

CN122862463BActive Publication Date: 2026-11-27HUAZHONG UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611377486.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-27
Estimated Expiration
2046-09-07

AI Technical Summary

Technical Problem

Existing technologies contain erroneous triples in bridge inspection reports, such as duplicate entities, attribute mismatches, and non-compliance with engineering constraints. It is difficult to accurately locate the source of errors and cannot effectively merge duplicate defect descriptions across chapters.

Method used

By establishing an evidence index through structured parsing, splitting disease instances, merging disease instances with consistent and conflict-free attributes, and combining logical verification and manual review, the accuracy and traceability of the triples are ensured.

Benefits of technology

It reduces duplicate entities and attribute mismatches, improves the accuracy and traceability of triples, solves the problem of repeated descriptions across chapters, and enhances the interpretability of engineering logic verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122862463B_ABST
    Figure CN122862463B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of bridge engineering information processing, and specifically relates to a method and system for extracting triples of bridge detection reports. The bridge detection report is structurally analyzed and an evidence index is established, and then triple extraction, entity splitting and alignment are sequentially performed to generate a candidate triple table and a corresponding intermediate result table. Then, the extraction, splitting and alignment results and the processing basis are reviewed in combination with the original evidence, and the triple with problems is returned to the corresponding step for multi-round dialogue review. Engineering logic verification is performed according to the disease attribute value domain, bridge component level and component material and disease type adaptation rules. The problems that cannot be eliminated after multi-round review and logic conflict records are marked for manual review. According to the manual review error type, the feedback is routed to the corresponding processing step for updating. The present application improves the accuracy, consistency, traceability and continuous adaptability of the triple extraction result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of bridge engineering information processing technology, specifically relating to a method and system for extracting triples from bridge inspection reports. Background Technology

[0002] Bridge inspection reports are a crucial data source for bridge structural condition assessment, maintenance decisions, and operation management. During regular bridge inspections, specialized inspections, and structural health monitoring, engineering documents are generated that include basic bridge information, component conditions, defect descriptions, inspection conclusions, and maintenance recommendations. Converting this content into structured triples provides a data foundation for bridge knowledge graph construction, defect statistical analysis, and maintenance information retrieval.

[0003] Bridge inspection reports typically include main text, tables, figure captions, and concluding descriptions. The same defect may appear repeatedly at different granularities in detailed defect investigation records, defect summary tables, and inspection conclusions; the same statement may also describe multiple locations, multiple defects, and multiple sets of dimensional attributes in parallel. Due to the inconsistent ways of expressing spatial information such as component numbers, bridge spans, span numbers, orientations, and distances, direct extraction can easily lead to problems such as duplicate defect instances, attribute mismatches, and loss of positional relationships.

[0004] Existing information extraction methods typically focus on entity and relation recognition, directly using the model output as the final triples. These methods lack a process for splitting multiple disease instances within the same evidence segment, and also lack a conditional merging process for duplicate diseases across chapters. When using text similarity for direct deduplication, it is easy to incorrectly merge similar diseases in different locations, or retain duplicate entities due to different descriptive granularities.

[0005] Furthermore, bridge inspection reports may contain errors such as incorrect unit entry, misidentification of negative expressions, mismatches between component types and defect types, and incorrect component hierarchical relationships. If candidate triples do not correspond to the original page numbers, paragraphs, or table cells, it becomes difficult to pinpoint the source of the error and to conduct targeted reviews of conflicting results. Summary of the Invention

[0006] The purpose of this invention is to provide a method and system for extracting triples from bridge inspection reports, so as to reduce duplicate entities, attribute mismatches and erroneous triples that do not conform to engineering constraints, and improve the traceability of results.

[0007] To achieve the above objectives, the present invention provides a method for extracting triples from bridge inspection reports, comprising the following steps: S1. Perform structured analysis on the bridge inspection report and establish an evidence index corresponding to the structured analysis results; S2. Extract bridge entities, component entities, defect entities, location entities, and attribute entities from the structured parsing results, establish candidate triples for relationships between entities, and bind each candidate triple with the corresponding evidence index and write it into the candidate triple table L1. S3. Split the candidate triples in the candidate triple table L1 into disease instances with unique instance codes, and generate an instance splitting table, which records the entities before and after the splitting, the evidence index, and the basis for the splitting; at the same time, generate the candidate triple table L2 based on the instance splitting table. S4. Merge disease instances that meet the attribute consistency and have no conflict in different chapters, tables and / or description granularities of the structured parsing results, and retain all evidence indexes before merging; write the merging result into an entity alignment table, which records the entities, evidence indexes and merging basis before and after merging; perform entity alignment on the triples in the candidate triple table L2 according to the entity alignment table to generate the candidate triple table L3. S5. The generated results of steps S2 to S4 are reviewed for evidence. Based on whether the generated results correspond accurately to the corresponding structured parsing results, the extraction, splitting, and alignment results are judged to be correct. The generated results with problems are returned to the corresponding steps for iterative review. If the problem cannot be eliminated after a preset number of reviews, it is marked as manual review. The review results are written into the evidence review result table. The table records the triples before and after processing, error type, processing result, and evidence index. Finally, the corresponding triples in the candidate triple table L3 are modified or deleted to generate the candidate triple table L4. S6. Based on the fault attribute value range rules, bridge component hierarchy rules, and component material and fault type matching rules, perform logical verification on the candidate triplet table L4 and generate a logical verification record table. The table records conflicting triplets and marks them for manual review, while retaining the evidence index, triggering rules, and conflict judgment basis. At the same time, based on the logical verification results, delete the logically conflicting triplets in the candidate triplet table L4 and generate a logically verified candidate triplet table L5. S7. Manually review the triples marked as manually reviewed, write the manual review results into the manual review feedback table, delete the triples from the manual review results that originated from their own error reports, and add the triples from the processing or judgment errors to the candidate triple table L5 after correction to obtain the final extracted triples. At the same time, update the corresponding processing steps according to the reasons for the processing or judgment errors.

[0008] Furthermore, in step S3, the splitting specifically includes: S301. First, identify keywords such as "and", "and", "and", "all", "all exist", "separately", "each", "among", "corresponding", and "together", as well as separator structures such as commas, semicolons, and pauses, to count the number of attribute items for disease location, quantity, length, width, and area; S302. First, match the attribute items according to the explicit correspondence in the original text of the test report. If there is no explicit correspondence, match them according to the order of the location of the disease and the attribute value in the original text. S303. Finally, pairing is performed based on the consistency between the number of diseases and the number of attribute items. S304. When a unique correspondence cannot be established, stop the forced splitting and mark the relevant candidate triples as pending manual review.

[0009] Furthermore, the instance splitting agent uses candidate triples in the same disease description unit as input to perform the splitting, and the splitting is achieved by calling the locally deployed large model or the general large model API interface through the instance splitting dedicated Prompt template; The instance splitting dedicated Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; Among them, the role instruction and core task instruction are used to define the role of the intelligent agent as the bridge inspection report instance splitting intelligent agent, and require the intelligent agent to complete the instance splitting task of the bridge inspection report candidate triples; the domain auxiliary information includes at least the identification rules for keywords such as "and", "and", "and", "all", "all exist", "separately", "each", "among", "corresponding", and "together", as well as the splitting rules for matching the location, quantity, length, width and area attributes of the defects one by one; the intelligent agent sample example provides at least the corresponding input and output examples; the input content is the candidate triple table L1, and the output content is the instance splitting table and the candidate triple table L2 after instance splitting.

[0010] Furthermore, in step S4, the attribute consistency and no conflict are determined when, after standardization of component name, disease type, spatial location and unit of measurement, the component to which the disease belongs is consistent, the disease type is consistent or the disease type has a hierarchical compatibility relationship, the spatial location is consistent or the spatial location has a hierarchical inclusion relationship, the numerical attributes with the same name are equal or within the preset allowable error after unit unification, and the attributes with the same name do not contradict each other.

[0011] Furthermore, the entity alignment is achieved by calling the locally deployed large model or the general large model API interface through a dedicated entity alignment Prompt template; the dedicated entity alignment Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; Among them, the role instruction and core task instruction are used to define the agent role as the entity alignment agent for the bridge inspection report, and require the agent to complete the entity alignment task of the candidate triples of the bridge inspection report; the domain auxiliary information includes at least the normalization of synonyms of component names, the judgment of the hierarchical relationship of defect types, the position hierarchy comparison of bridge span, span number or pier number, component number, component location, orientation and distance fields, the conversion of measurement units, and the prohibition of merging conditions; the agent sample example at least provides the corresponding input and output examples, the input content is the candidate triple table L2; the output content is divided into the entity alignment table and the entity-aligned candidate triple table L3.

[0012] Furthermore, in step S6, the disease attribute value range rule is used to verify whether the numerical disease attributes of the candidate triples in the candidate triplet table L4 are within a reasonable range. The bridge component hierarchy rules are used to verify the relationship direction between bridges, structural hierarchy, components, and defect instances; The matching rules between component materials and disease types are used to verify the reasonable combination between material types, component types, and disease types.

[0013] Furthermore, step S1 specifically includes: performing structured parsing on the main text, tables, figure captions, and chapter titles in the bridge inspection report; the evidence index includes document number, page number, chapter number, paragraph number, table number, row and column number, character start and end positions, and original text fragments; In step S2, the candidate triplet is obtained by the triplet extraction agent using a combination of rule extraction and semantic extraction. The rule extraction is used to extract the bridge name, structure type, span combination, construction year and road grade from the bridge basic information table. The semantic extraction is used to extract components, defects, locations and quantitative attributes from defect descriptions, defect statistics tables and detection conclusions.

[0014] Furthermore, it also includes: dynamically configuring the confidence level of each processing step based on the proportion of the total number of times the triples output by a certain processing step are determined to be conflicted by evidence review and manual verification; When the proportion of the total number of times the triples output by a certain step are determined to be conflicted by evidence review and manual verification exceeds a preset threshold, the confidence level of the corresponding processing step is reduced, and a preset proportion of triples are actively extracted from the subsequent outputs of that processing step for manual verification. The corresponding processing step is updated according to the reason for the processing or judgment error found by the manual verification. When the proportion of total conflicts decreases, the confidence level of the corresponding processing steps is increased simultaneously, and the sampling rate of manual review is decreased simultaneously.

[0015] Furthermore, a human feedback learning agent is used to generate a dynamic confidence table based on the confidence level; the dynamic confidence table includes at least the agent name corresponding to each processing step, the number of evidence review errors, the number of agent processing or judgment errors in the human review results, the confidence level, and the current proportion of human review. When active sampling begins, based on the total proportion of conflict determined by evidence review and manual verification, and the proportion of processing or judgment errors found by manual verification in the triplet of the active sampling preset proportion, corresponding weights are assigned, the current confidence level is recalculated, and updated to the dynamic confidence table.

[0016] The present invention also provides a triplet extraction system for bridge inspection reports, including an evidence index module, a triplet extraction module, an instance splitting module, an entity alignment module, an evidence review module, a logic verification module, and a manual review module, for executing the triplet extraction method for bridge inspection reports described in any one of the above embodiments.

[0017] In summary, compared with the prior art, the above-described technical solutions conceived by this invention mainly possess the following technical advantages: 1. This invention combines original evidence binding, defect instance splitting, cross-chapter entity alignment, secondary evidence review, engineering logic verification, result output, and human feedback learning to extract triples from bridge inspection reports. This can reduce erroneous triples such as duplicate entities, attribute mismatches, and non-compliance with engineering constraints, and enable the evidence review results and human review results to target and strengthen the corresponding processing steps according to the error type.

[0018] 2. This invention can distinguish multiple diseases of the same type but located in different positions by splitting instances and pairing attributes within the same description unit, thereby reducing attribute cross-associations. Through an entity alignment strategy with multiple constraints such as positional hierarchical encoding, hierarchical compatibility of disease types, and no conflict of attributes with the same name, it can complete cross-chapter entity fusion. This can merge duplicate descriptions and avoid erroneously merging different physical diseases, thus solving the problem that the existing technology of directly deduplicating based on text similarity can easily lead to the erroneous fusion of diseases in different positions.

[0019] 3. This application solves the problems of existing technologies, such as the inability to trace the original text location of triples and the difficulty in locating errors, by establishing a fine-grained evidence index. Specifically, it performs structured parsing of the main text, tables, figure captions, and chapter titles in the detection report, and establishes an evidence index according to document number, page number, chapter position, paragraph position, table cell position, and character start and end position, binding each candidate triple to the corresponding evidence index. Therefore, each candidate triple can be directly located to its specific position in the original report, providing precise location data for subsequent verification, manual review, and error correction, significantly reducing verification costs.

[0020] 4. By combining the original evidence with the evidence review agent, the results of triple extraction, instance splitting and entity alignment and the processing basis are independently reviewed twice. The results are returned to the corresponding agent according to the error type for multi-round dialogue review, which can reduce the upstream error transmission before the engineering logic verification.

[0021] 5. By performing defect attribute value range, bridge component level, and component material and defect type matching verification on candidate triples after evidence review, and marking conflicting triples along with evidence index, triggering rules and conflict judgment criteria for manual review, the interpretability of engineering anomaly identification is improved.

[0022] 6. Through human feedback learning agents, the manual review results are routed to triple extraction, instance splitting, entity alignment, or logic verification agents according to the error type. Dynamic confidence and manual review ratio are maintained based on evidence review errors and agent judgment errors in manual review, so that the processing accuracy of each process can be continuously improved with the addition of new review cases. Attached Figure Description

[0023] Figure 1 This is a flowchart of a method for extracting and verifying triples in a multi-agent bridge inspection report, as described in an embodiment of the present invention.

[0024] Figure 2 This is a schematic diagram of the structure of a multi-agent bridge inspection report triple extraction and verification device according to an embodiment of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0026] In this invention, an intelligent agent refers to a software functional module that performs specific tasks according to preset input, processing rules, and output formats. Different intelligent agents can call the same or different semantic models and exchange processing results through a structured intermediate table. The triple extraction intelligent agent, the instance splitting intelligent agent, and the entity alignment intelligent agent respectively complete candidate extraction, disease instance splitting, and cross-chapter entity alignment; the evidence review intelligent agent centrally reads the output tables and processing basis of the above intelligent agents, and performs secondary review and targeted multi-round verification in combination with the original evidence; the logic verification intelligent agent performs engineering rule verification on the candidate triples after evidence review; the human feedback learning intelligent agent receives the human review feedback table, generates feedback route identifiers, and maintains the dynamic confidence of each intelligent agent. In this embodiment, each intelligent agent can be implemented through an input preprocessing module, a Prompt assembly module, a model calling module, and a result parsing module. The response of the locally deployed large model or the general large model API interface is converted into JSON or tabular fields.

[0027] The dedicated prompts for the agents responsible for triple extraction, instance splitting, entity alignment, and logic verification consist of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]. [Domain auxiliary information] can be written into the bridge component dictionary, defect type dictionary, location hierarchy field, unit conversion rules, and material adaptation rules. The dedicated prompt for the evidence review agent consists of [role instructions] + [core task instructions] + [agent sample example] + [input content] + [output content format constraints]. The input content includes at least the candidate triple table L1, instance splitting table, candidate triple table L2 after instance splitting, entity alignment table, and candidate triple table L3 after entity alignment. The output content is the evidence review result table and the candidate triple table L4 after evidence review. The human feedback learning agent takes the human review feedback table and the evidence review result table as input and outputs feedback routing identifiers, dynamic confidence adjustment records, and content to be updated.

[0028] The core task instructions for the triplet extraction agent focus on defining entity and relation ontology; the core task instructions for the instance splitting agent focus on defining keywords such as "and," "and," "and," "both," "all exist," "separately," "each," "among," "corresponding," and "together," and their attribute pairing meanings; the core task instructions for the entity alignment agent focus on defining synonym unification, position hierarchy comparison, and conditions prohibiting merging; the core task instructions for the evidence review agent focus on defining evidence sufficiency determination, extraction, splitting, and alignment error classification, and corresponding return paths; the core task instructions for the logic verification agent focus on defining attribute value range, component hierarchy, and material adaptation rules; and the human feedback learning agent completes feedback routing, confidence adjustment, and record update generation based on the human review error types.

[0029] In this invention, terms such as "left span," "right span," "upstream side," "downstream side," "mid-span," and "pier top" are used to indicate the spatial location of bridge components and defects, and do not constitute a limitation on the scope of protection.

[0030] Specifically, please refer to Figure 1 and 2 A method for extracting triples from bridge inspection reports, comprising the following steps: S1. Perform structured analysis on the bridge inspection report and establish an evidence index corresponding to the structured analysis results; S2. Call the triplet extraction agent to extract bridge entities, component entities, defect entities, location entities and attribute entities from the structured parsing results, establish candidate triplets for relationships between entities, and bind each candidate triplet with the corresponding evidence index and write it into the candidate triplet table L1. S3. Call the instance splitting agent to split the candidate triples in the candidate triple table L1 into disease instances with unique instance codes, and generate an instance splitting table, which records the entities before and after the splitting, the evidence index, and the splitting basis; at the same time, generate the candidate triple table L2 based on the instance splitting table. S4. Invoke the entity alignment agent to merge disease instances that meet the attribute consistency and have no conflict in different chapters, tables and / or description granularities of the structured parsing results, and retain all evidence indexes before merging; write the merging result into the entity alignment table, which records the entities before and after merging, evidence indexes and merging basis; perform entity alignment on the triples in the candidate triple table L2 according to the entity alignment table to generate the candidate triple table L3; S5. Call the evidence review agent to summarize the candidate triplet table, instance splitting table and entity alignment table, and review the generated results of steps S2 to S4. Based on whether the generated results correspond accurately with the corresponding structured parsing results, determine whether the extraction, splitting and alignment results are correct, and return the generated results with problems to the corresponding steps for multiple rounds of dialogue review. If the problem cannot be eliminated after a preset number of reviews, it is marked as manual review. The review results are written into the evidence review result table, which records the triplet before and after processing, error type, processing result and evidence index. Finally, the corresponding triplet in the candidate triplet table L3 is modified or deleted to generate the candidate triplet table L4. S6. The logic verification agent performs logical verification on the candidate triplet table L4 according to the fault attribute value range rules, bridge component hierarchy rules, and component material and fault type adaptation rules, and generates a logic verification record table. The table records conflicting triplets and marks them for manual review, while retaining the evidence index, triggering rules, and conflict judgment basis. At the same time, based on the logic verification results, the triplets with logical conflicts in the candidate triplet table L4 are deleted, and a logically verified candidate triplet table L5 is generated. S7. Manually review the triples marked as manually reviewed, write the manual review results into the manual review feedback table, delete the triples from the manual review results that originated from their own error reports, and add the triples from the processing or judgment errors to the candidate triple table L5 after correction to obtain the final extracted triples. At the same time, update the corresponding processing steps according to the reasons for the processing or judgment errors.

[0031] This invention, through the aforementioned scheme, organizes the bridge inspection report triple extraction and verification process into eight interconnected steps: structured parsing and evidence index establishment, candidate triple extraction, instance splitting, entity alignment, evidence review, logic verification, result output, and manual review and feedback learning. Each step transmits structured intermediate data through candidate triple table L1, instance splitting table, candidate triple table L2 after instance splitting, entity alignment table, candidate triple table L3 after entity alignment, evidence review result table, candidate triple table L4 after evidence review, logic verification record table, candidate triple table L5 after logic verification, and manual review feedback table. Evidence review primarily detects triple errors caused by the agent's own identification; logic verification primarily identifies triple errors caused by the information recorded in the inspection report itself; finally, the manual feedback learning agent generates feedback route identifiers based on the differences before and after manual review and the error type, maintains the dynamic confidence level of each agent and the proportion of manual reviews, and drives the corresponding templates, rules, or knowledge base updates. By operating in this way, the present invention can solve the problems of multiple defect instances mixed, repeated descriptions across chapters, attribute mismatch, incorrect fusion, engineering logic conflict, inability of each processing agent to continuously update the results using manual review, and lack of original text evidence for locating the results during the extraction of triples in bridge inspection reports.

[0032] Specifically, step S1 includes: using a document parser to read the main text, titles, tables, and figure captions from a Word document, PDF document, or scanned document; after performing text recognition on the scanned document, segmenting the text into units according to document number, page number, chapter number, paragraph number, table number, row and column number, and character start and end positions, and combining the original text fragments with the position information to form an evidence index. For cross-page tables or cross-paragraph disease descriptions, establishing associations between text units based on continuous table headers, numbers, and contextual relationships.

[0033] In step S2, the candidate triples are obtained by using a combination of rule extraction and semantic extraction in the triple extraction agent. Rule extraction is used to extract bridge name, structural type, span combination, construction year, and road grade from the bridge basic information table. Semantic extraction is used to extract components, defects, locations, and quantitative attributes from defect descriptions, defect statistics tables, and inspection conclusions. The extraction results are only allowed to use preset entity types and relation types, and results that are not bound to original evidence or fail structured format validation are not included in the candidate triple set.

[0034] The semantic extraction process of the triplet extraction agent utilizes a dedicated triplet extraction Prompt template to call the API interface of a locally deployed large model or a general large model to extract triplet data. The Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]. The role instructions and core task instructions define the agent role as a bridge inspection report triplet extraction agent, requiring the agent to complete the task of extracting defect triplets from the bridge inspection report text and binding the output results to the original text's evidence index. The domain auxiliary information includes at least entity ontology definitions such as bridge, structural level, component, defect, location, and quantitative attributes, as well as relation ontology definitions such as "contains," "exists," "defect location," "defect quantity," "defect length," "defect width," and "defect area." The agent sample example provides at least corresponding input and output examples. The input content is a fragment of the evidence index text after the bridge inspection report has been split. The output format constraints require the agent to output in the standard (head entity, relation, tail entity) triple form and bind the evidence index encoding. The final output is written to the candidate triple table L1, with the data format: {[(head entity 1, relation 1, tail entity 1), evidence index 1], [(head entity 2, relation 2, tail entity 2), evidence index 2]...}.

[0035] In step S3, the splitting specifically includes: S301. First, identify keywords such as "and", "and", "and", "all", "all exist", "separately", "each", "among", "corresponding", and "together", as well as separator structures such as commas, semicolons, and pauses, to count the number of attribute items for disease location, quantity, length, width, and area; S302. First, match the attribute items according to the explicit correspondence in the original text of the test report. If there is no explicit correspondence, match them according to the order of the location of the disease and the attribute value in the original text. S303. Finally, pairing is performed based on the consistency between the number of diseases and the number of attribute items. S304. When a unique correspondence cannot be established, stop the forced splitting and mark the relevant candidate triples as pending manual review.

[0036] Furthermore, the instance splitting agent uses candidate triples in the same disease description unit as input to perform the splitting, and the splitting is achieved by calling the locally deployed large model or the general large model API interface through the instance splitting dedicated Prompt template; The instance splitting dedicated Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; The role instructions and core task instructions define the agent's role as a bridge inspection report instance splitting agent, requiring the agent to complete the instance splitting task of candidate triples in the bridge inspection report. The domain auxiliary information includes at least identification rules for keywords such as "and," "and," "and," "all," "all exist," "separately," "each," "among," "corresponding," and "together," as well as splitting rules for one-to-one pairing of attribute items such as location, quantity, length, width, and area of ​​defects. The agent sample examples provide at least corresponding input and output examples. The input content is the candidate triple table L1, and the output content is the instance splitting table and the candidate triple table L2 after instance splitting. The instance splitting table is in the form {[Triple 1 before splitting, Triple 1 after splitting, Evidence Index 1, Splitting Basis 1], [Triple 2 before splitting, Triple 2 after splitting, Evidence Index 2, Splitting Basis 2]...}. The candidate triple table L2 after instance splitting is identical in form to the candidate triple table L1, only splitting the triples that need to be split.

[0037] In step S4, the component names, defect types, defect locations, and numerical attribute units of defect instances in different chapters, tables, or descriptive granularities are standardized. Defect locations are converted into location-level codes consisting of bridge span, span number or pier number, component number, component location, orientation, and distance fields; defect types are normalized based on a preset synonym and hierarchical relationship dictionary; length, width, and area are converted into unified units of measurement.

[0038] Entity alignment agents merge disease instances when the following conditions are met simultaneously (i.e., attributes are consistent and there are no conflicts): the components to which the diseases belong are consistent; the disease types are consistent or have hierarchical compatibility; the spatial locations are consistent or have hierarchical inclusion relationships; and the numerical attributes with the same name are equal after unit unification, and there are no contradictions between the attributes with the same name. All evidence indexes before merging are retained during merging.

[0039] Furthermore, the entity alignment is achieved by calling the locally deployed large model or the general large model API interface through a dedicated entity alignment Prompt template; the dedicated entity alignment Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; The role instructions and core task instructions define the agent role as the entity alignment agent for the bridge inspection report, and require the agent to complete the entity alignment task of candidate triples in the bridge inspection report. The domain auxiliary information includes at least the following: component name synonym expression unification, judgment of hierarchical relationship of defect types, comparison of positional hierarchy of bridge span, span number or pier number, component number, component location, orientation and distance fields, unit conversion, and prohibition of merging conditions. The agent sample example provides at least corresponding input and output examples. The input content is the candidate triple table L2; the output content is divided into an entity alignment table and an entity-aligned candidate triple table L3. The entity alignment table is in the form {[pre-alignment triple 1, post-alignment triple 1, evidence index 1, alignment basis 1], [pre-alignment triple 2, post-alignment triple 2, evidence index 2, alignment basis 2]…}. The entity-aligned candidate triple table L3 is in the same form as candidate triple table L1, only merging and merging the triples that need to be aligned.

[0040] In step S5, the evidence review agent makes a judgment according to the principle of sufficiency of evidence. The specific review process involves summarizing the candidate triplet table L1, the instance splitting table, the candidate triplet table L2 after instance splitting, the entity alignment table, and the candidate triplet table L3 after entity alignment. A second review is then conducted in conjunction with the original article evidence to determine whether the triplet extraction, splitting, and alignment results are correct. Any issues are returned to the triplet extraction agent, the instance splitting agent, and the entity alignment agent respectively. Specifically, the dedicated Prompt for the evidence review agent consists of [role instructions] + [core task instructions] + [agent sample example] + [input content] + [output content format constraints]. The input content includes at least the candidate triplet table L3 after entity alignment, the instance splitting table, and the entity alignment table.

[0041] The role instruction defines the agent role as the bridge inspection report evidence review agent. The core task instruction requires the agent to perform a secondary review of the outputs of the triplet extraction agent, instance splitting agent, and entity alignment agent based on the original article evidence, and to return to the corresponding agent for multi-round dialogue verification according to the error type. The agent sample example should at least provide corresponding input and output examples. The input consists of candidate triplet table L1, instance splitting table, candidate triplet table L2 after instance splitting, entity alignment table, and candidate triplet table L3 after entity alignment. The output consists of candidate triplet table L4 after evidence review and evidence review result table. The evidence review result table records the triplets before and after processing, error type, processing result, and evidence index, in the form {[Triplet 1 before processing, Triplet 1 after processing, Error type 1, Processing result 1, Evidence index 1, Manual review required], [Triplet 2 before processing, Triplet 2 after processing, Error type 2, Processing result 2, Evidence index 2, Manual review required]...}. The candidate triplet table L4 after evidence review is in the same format as the candidate triplet table L1. Only the triplets that have been corrected after evidence review need to be modified, and the problematic triplets that cannot be agreed upon should be deleted.

[0042] Specifically, the candidate triplet table L3 records all extracted, split, and aligned triples, and indexes or groups the triples that have undergone splitting and alignment for easier subsequent review and backtracking. During evidence review, all triples in the candidate triplet table L3, as well as the instance splitting table and entity alignment table, are reviewed simultaneously. If a conflicting triple is found to have not undergone the splitting and alignment, the process returns directly to step S2 to re-extract triples based on the content corresponding to the evidence index. If a conflicting triple is found to have undergone the splitting and / or alignment, its corresponding instance splitting table and entity alignment table are consulted. If the instance splitting table and entity alignment table determine that there is no conflict, the process returns to step S2; if the instance splitting table and / or entity alignment table determine that there is a conflict, the process returns to step S3 or step S4.

[0043] In step S6, the disease attribute value range rule is used to verify whether the numerical disease attributes of the candidate triples in the candidate triplet table L4 are within a reasonable range; the numerical disease attributes include the units and numerical ranges of disease length, width, area, quantity and severity level. The bridge component hierarchy rules are used to verify the relationship direction between bridges, structural hierarchy, components, and defect instances; The matching rules between component materials and disease types are used to verify the reasonable combination between material types, component types, and disease types.

[0044] The logic verification agent uses a dedicated logic verification Prompt template to call the locally deployed large model or the API interface of a general large model to achieve instance splitting. The Prompt template consists of [Role Instructions] + [Core Task Instructions] + [Domain Auxiliary Information] + [Agent Sample Example] + [Input Content] + [Output Content Format Constraints]. The Role Instructions and Core Task Instructions define the agent role as the logic verification agent for the bridge inspection report and require the agent to complete the logic verification task of the candidate triples in the bridge inspection report. The domain auxiliary information includes at least the units and reasonable ranges of common defects' quantitative attributes, the direction of component hierarchical relationships, and common component materials and their corresponding defect types. The agent sample example provides at least corresponding input and output examples. The input content is the candidate triple table L4 after evidence review. The output consists of a logical verification table and a candidate triplet table L5 after logical verification. The logical verification table is in the form of {[Triplet with logical conflict 1, Evidence Index 1, Triggered Conflict Rule 1, Conflict Reason 1, subject to manual review], [Triplet with logical conflict 2, Evidence Index 2, Triggered Conflict Rule 2, Conflict Reason 2, subject to manual review]...}. The candidate triplet table L5 is in the same form as candidate triplet table L1, except that triples with logical conflicts are deleted.

[0045] Specifically, the triples in the candidate triple table L5 after logical verification are directly output in the labeled (head entity, relation, tail entity) format. Subsequently, for triples marked as manually reviewed in the evidence review result table and the logical verification record table, the original evidence index and reasons for doubt are output simultaneously for further manual review. In addition, the intermediate result tables generated by each agent are also output, including the candidate triple table L1, instance splitting table, candidate triple table L2 after instance splitting, entity alignment table, candidate triple table L3 after entity alignment, evidence review result table, candidate triple table L4 after evidence review, logical verification record table, and candidate triple table L5 after logical verification, to trace the basis of each processing step.

[0046] The output records include: Correct triples = {head entity, relation, tail entity}; Manually reviewed triples = {head entity, relation, tail entity, evidence index, reason for doubt or reason for conflict}.

[0047] In step S7, the triples requiring manual review are combined with the original evidence index and the information on the reasons for doubt for manual review. The results of the manual review are written into the manual review feedback table and fed back to the manual feedback learning agent. The manual feedback learning agent determines the corresponding processing agent based on the differences before and after review and the error type: errors in evidence binding, entity recognition, relationship recognition or formatting are fed back to the triple extraction agent; errors in disease instance splitting or attribute matching are fed back to the instance splitting agent; errors in entity unification, position encoding, entity merging or attribute fusion are fed back to the entity alignment agent; and errors in attribute value range, component level, and material adaptation are fed back to the logic verification agent. The human feedback learning agent synchronously maintains the agent's dynamic confidence table based on the evidence review results. When the number of errors in the agent's output during evidence review or the proportion of incorrect judgments made by the agent in the human review results exceeds a threshold, the agent's confidence is lowered, and the proportion of its subsequent output triples that enter human review is increased. Each agent generates or expands the corresponding extraction template, splitting rules, alignment knowledge base, or verification rules based on the review results, and completes the update after verification through playback of historical reviewed samples and conflict detection.

[0048] When the proportion of total conflicts decreases, the confidence level of the corresponding processing steps is increased simultaneously, and the sampling rate of manual review is decreased simultaneously.

[0049] The manual review results are based on the triples marked as manually reviewed in the evidence review result table and the logic verification record table, along with the original evidence index, information such as doubts / conflicts / review reasons, etc. Professional testing personnel review these triples in conjunction with the original evidence and provide the manual review results, which include at least the corrected triples, the basis for the correction, and the error type. Furthermore, triples originating from errors in the reported errors are ignored in the manual review results. Manual review results originating from errors in the agent's processing or judgment are input into the manual feedback learning agent, which updates the corresponding agent based on the error type. The updated content of the triple extraction agent includes at least entity and relation examples; the updated content of the instance splitting agent includes at least the splitting corresponding tag and exception mode; the updated content of the entity alignment agent includes at least the location defect level description example and merging or conflict condition example; and the updated content of the logic verification agent includes at least the attribute value range, component level, and material adaptation example. The updated content must be reviewed manually a second time to avoid updating incorrect rules and affecting subsequent extraction accuracy.

[0050] Furthermore, a human feedback learning agent is used to generate feedback route identifiers based on error types, and a dynamic confidence table for the agent is established. The dynamic confidence table includes at least the agent name corresponding to each processing step, the number of evidence review errors, the number of agent processing or judgment errors in the human review results, the confidence level, and the proportion of human review currently extracted. When active sampling begins, based on the total proportion of conflicts identified by evidence review and manual verification, and the proportion of conflicts identified by manual verification within the pre-defined proportion of triplets in the active sampling, appropriate weights are assigned to both. The current confidence level is then recalculated and updated in the dynamic confidence table. This prevents misjudgments or omissions in evidence review itself.

[0051] The records corresponding to steps S5 to S7 can be represented as follows: Evidence review result record = {pre-processing triplet, post-processing triplet, error type, processing result, evidence index, whether manual review was performed}; Logical verification record = {conflict triplet, evidence index, triggering rule, conflict judgment basis, manual review identifier}; Manual review feedback and update record = {Triplet before review, Triplet after correction, basis for correction, error type, feedback route identifier, agent name, update content, evidence index}.

[0052] The entity types include at least bridge name entities, bridge component entities, structural type entities, year of construction entities, road grade entities, bridge defects entities, defect location entities, and defect attribute entities. Bridge component entities represent component categories such as main beams, bridge deck pavement, piers, bearings, and expansion joints; defect location entities represent specific locations with information such as bridge span, span number, pier number, component number, component location, orientation, or distance. The relationships include at least "contains," "structural type," "year of construction," "road grade," "existing defects," "defect location," "number of defects," "defect type," "defect area," "defect length," and "defect width." The triplet extraction agent only outputs relationships from the preset relationship set; results that cannot be mapped to preset relationships are not included in the candidate set.

[0053] Example 1 like Figure 1 This embodiment provides a method for extracting and validating triples from bridge inspection reports based on multi-agent collaboration. Taking the following two descriptions in a bridge inspection report as examples: "Longitudinal cracks exist on beam #2 on the left side at 1.2m and 5m from expansion joint #1, with local concrete spalling at the 5m location." "There are two cracks in beam No. 2 on the left side, each 0.20mm wide; and one area of ​​concrete spalling, covering 0.2m²." 2 . Step S1: Establish an index of original evidence.

[0054] The document parser records the two descriptions mentioned above as evidence E1 and evidence E2, respectively, and saves the document number, page number, chapter number, paragraph number, table number, row and column number, character start and end positions, and original text fragments.

[0055] Step S2: Extract and bind candidate triples.

[0056] [Left span #2 beam has defects, longitudinal cracks in the main beam] [Longitudinal cracks in the main beam, location of the defect: 1.2m and 5m from expansion joint #1] [Left span #2 beam has defects; concrete spalling has occurred in the main beam.] [Concrete spalling in the main beam, location of the defect: 5m from expansion joint #1] [Left span No. 2 beam has defects, with cracks in the main beam] [Main beam cracks, number of defects: 2] [Main beam crack, damage width, 0.20mm] [Left span No. 2 beam has defects; the main beam concrete has spalled off.] [Concrete spalling in the main beam; number of defects: 1] [Concrete spalling in the main beam, affected area: 0.2m] 2 ] The aforementioned candidate triples are respectively bound to evidence E1 or evidence E2 and written into the candidate triple table L1; results without bound evidence are not processed in subsequent steps.

[0057] Step S3: Perform disease instance splitting and attribute pairing, and generate an instance splitting table and a candidate triplet table L2 after instance splitting.

[0058] Step S3: Perform disease instance splitting and attribute matching.

[0059] The word "separately" in Evidence E1 indicates that each of the two locations corresponds to a longitudinal crack. The instance splitting agent splits the longitudinal crack in the main beam into two instances and generates the following results: [Left span #2 beam, defect present, longitudinal crack in main beam_01] [Longitudinal crack in main beam_01, location of the defect: 1.2m from expansion joint #1] [Left span #2 beam, defect present, longitudinal crack in main beam_02] [Longitudinal crack in main beam_02, location of the defect: 5m from expansion joint #1] Evidence E2 contains 2 instances of cracks, and both cracks have the same width. Therefore, after splitting, both crack instances are bound to a width of 0.20mm. If the two width values ​​are different and their corresponding order is not specified in the original text, no forced assignment is made; instead, a record awaiting review is generated.

[0060] Step S4: Perform cross-chapter entity alignment and attribute fusion, and generate an entity alignment table and a candidate triplet table L3 after entity alignment.

[0061] The entity alignment agent normalized "Left Axle 2# Beam" and "Left Axle 2 No. 2 Beam" to the same component location, identified "crack" as the superior type of "longitudinal crack," and confirmed that the number of cracks in the two descriptions was consistent and that there were no conflicts in common attributes. Therefore, the width attribute from evidence E2 was added to the two longitudinal crack instances corresponding to evidence E1, and two evidence indices were retained. The merged result is: [Left span #2 beam, defect present, longitudinal crack in main beam_01] [Longitudinal crack in main beam_01, location of the defect: 1.2m from expansion joint #1] [Longitudinal crack in main beam_01, damage width, 0.20mm] [Left span #2 beam, defect present, longitudinal crack in main beam_02] [Longitudinal crack in main beam_02, location of the defect: 5m from expansion joint #1] [Longitudinal crack in main beam_02, damage width, 0.20mm] Regarding concrete spalling, Evidence E1 provides the specific location, while Evidence E2 provides the quantity and area. There is no conflict in the description of the component, quantity, and location in the two documents; therefore, they are combined into a single instance of the defect. [Left span #2 beam, defects present, concrete spalling in the main beam_01] [Main beam concrete spalling_01, location of the defect: 5m from expansion joint #1] [Main beam concrete spalling_01, affected area, 0.2m²] Step S5: Conduct evidence review and generate an evidence review result table and a candidate triple table L4 after evidence review.

[0062] The evidence review agent, in conjunction with evidence E1 and evidence E2, conducts a secondary review of the processing procedures and results in the candidate triple table L3, instance splitting table, and entity alignment table after entity alignment. It determines whether the candidate triple is supported by the original text, whether the instance splitting and attribute pairing are correct, and whether the entity merging and attribute fusion meet the conditions of no conflict in the component, disease type, spatial location, and same-name attribute.

[0063] Regarding the two longitudinal crack instances obtained by splitting them "separately" in Evidence E1, and the processing of adding the same width attribute to the two instances based on "the width is 0.20mm" in Evidence E2, the evidence review agent confirmed that the basis for splitting and the basis for attribute fusion can be directly supported by the original text. Therefore, the corresponding triples are retained and the review conclusion is recorded in the evidence review result table.

[0064] Furthermore, assuming that the candidate triplet table L3 after entity alignment contains the candidate triplet [Main beam, defective, concrete spalling], after the evidence review agent verifies the original text "Main beam surface coating spalling, pier partial concrete spalling," it determines that the triplet has entity recognition and relationship binding errors, and returns it to the triplet extraction agent for multi-round dialogue review. The triplet extraction agent regenerates [Main beam, defective, coating spalling] and [Pier, defective, concrete spalling]; after the evidence review agent confirms that the correction result is consistent with the original text, it writes the correction result into the candidate triplet table L4 after evidence review. If the problem cannot be eliminated after reaching the preset number of dialogues, the original candidate triplet is marked for manual review and is not written into the candidate triplet table L4.

[0065] The evidence review result table records the triplet before processing, the triplet after processing, the error type, the processing result, the evidence index, and whether manual review was performed; the candidate triplet table L3 after entity alignment is modified or deleted according to the review results to form the candidate triplet table L4.

[0066] Step S6: Perform logical verification and generate a logical verification record table and a candidate triplet table L5 after logical verification.

[0067] The logic verification agent performs checks on the candidate triplet table L4 for the range of defect attributes, bridge component levels, and the compatibility between component materials and defect types. For example, the candidate triplet [main beam longitudinal crack_03, defect width, 25mm] will trigger the crack width range rule; the candidate triplet [pier, defect present, bridge deck pavement crack] will trigger the component level rule; and the candidate triplet [steel box girder, defect present, concrete spalling] will trigger the component material and defect type compatibility rule (its original evidence is concrete spalling on the surface of the steel box girder). Errors detected by the logic verification are all caused by errors recorded in the original report. Therefore, triplets that trigger the rules need to be removed from the candidate triplet table L4, and conflicting triplets, evidence indexes, triggering rules, and conflict judgment criteria should be retained in the logic verification record table, while also being marked for manual review. Triplets that do not trigger conflicts form the logically verified candidate triplet table L5.

[0068] Step S7: Output the processing results. The triples in the candidate triple table L5 are directly output as labeled (head entity, relation, tail entity); the triples marked as manually reviewed in the evidence review result table and logic verification record table are output simultaneously with the original evidence index, reason for doubt or reason for conflict, and the candidate triple tables L1 to L5, instance split table, entity alignment table, evidence review result table and logic verification record table are also output.

[0069] Step S8 involves manual review and feedback learning. Taking the candidate triple [steel-concrete composite beam, with defects, concrete spalling] as an example, the logic verification agent marks it as a conflict between component material and defect type based on the existing rule of "incompatibility between steel structure components and concrete defects". After manual review of the original evidence and component hierarchy information, it is confirmed that the concrete spalling actually occurred in the concrete bridge deck of the steel-concrete composite beam, and the defect described by the candidate triple is valid. The original rule was mistakenly triggered because it did not distinguish between the composite component and its sub-component materials. The manual review result is written into the manual review feedback table, and the manual feedback learning agent identifies it as an incomplete rule for component hierarchy and material matching, and provides targeted feedback to the logic verification agent. Based on this, the logic verification agent generates candidate correction rules: when the defect belongs to a composite component, the sub-component type and sub-component material corresponding to the defect should be further read; if the defect type and sub-component material are compatible, it should not be judged as a logical conflict solely based on the main material of the superior composite component. Candidate correction rules are used after being manually reviewed twice, verified by replaying historical samples, and undergoing conflict detection.

[0070] During the above process, the human feedback learning agent simultaneously counts the number of evidence review errors in triple extraction, instance splitting, entity alignment, and logic verification, as well as the number of processing or judgment errors in the human review results. When the proportion of the relevant error count to the current agent's output reaches a preset threshold, the agent's confidence level is reduced, and its subsequent output triples that do not require human review are randomly selected for human review according to the current human review ratio.

[0071] This embodiment maintains a clear correspondence between disease entities, locations, and quantitative attributes through evidence indexing, disease instance splitting, cross-chapter conditional fusion, secondary evidence review, engineering logic verification, result output, and manual review feedback learning. It also enables evidence review results and manual review results to strengthen the corresponding intelligent agents according to error types.

[0072] Example 2 This embodiment illustrates the anomaly handling process of evidence review, manual review feedback returned to the corresponding agent according to error type, and dynamic adjustment of agent confidence. The evidence review agent first identifies problems in the extraction, instance splitting, and entity alignment stages and performs targeted multi-round reviews. For problems that cannot be eliminated after a preset number of dialogues, and for conflict records in the logic verification record table, professional testing personnel conduct manual reviews in conjunction with the original evidence. The manual feedback learning agent in the manual feedback incremental learning module generates feedback route identifiers based on the differences before and after manual review and the error type. It also adjusts the confidence of the corresponding agent and the manual review ratio based on the number of evidence review errors and the number of agent processing or judgment errors in the manual review results.

[0073] Scenario 1: Triple extraction or evidence binding error. The original text is "No support found to be detached," and the candidate triples are [support, defect exists, support is detached]. The evidence review agent confirms that this result cannot be supported by the original text evidence and returns it to the triple extraction agent for review as an evidence binding and relationship recognition error. If the problem cannot be eliminated after a preset number of dialogues, it is marked for manual review. After manual review confirmation, the human feedback learning agent routes the feedback to the triple extraction agent, supplementing the input-output example of the negative expression.

[0074] Scenario 2: Errors in instance splitting and attribute pairing. The original text reads, "Supports #1 and #2 have cracks and voids respectively, with support #1 having a crack approximately 3mm long." The system mistakenly assigned 3mm to both instances simultaneously. After evidence review or manual verification confirms that this attribute belongs only to the crack in support #1, the human feedback learning agent routes the error to the instance splitting agent to refine the single-attribute pairing rule specified in "within"; if a unique match cannot be found, forced pairing is not performed.

[0075] Scenario 3: Entity alignment error. The detailed defect investigation record shows "Crack at mid-span of beam 3, span 2, left lane," while the summary table shows "Crack of beam 3, span 2, right lane." The system incorrectly merges them due to identical component numbers and defect types. After evidence review or manual verification confirms the conflict between the bridge span fields, the human feedback learning agent routes the error to the entity alignment agent, sets the bridge span inconsistency as a condition prohibiting merging, and adds examples of location-level conflicts.

[0076] Scenario 4: Logic verification rule mistriggered. The candidate triple [steel box girder, defective, coating peeling] was incorrectly blocked by the old rule as "concrete peeling is not applicable to steel components". After manual review confirms that "coating peeling" is an acceptable defect for steel components, the human feedback learning agent routes the error to the logic verification agent, refining the material matching rules for "concrete peeling", "anti-corrosion layer peeling", and "coating peeling".

[0077] Scenario 5: When the proportion of evidence review errors and human review errors of a certain agent to the current agent's output reaches a preset threshold, the confidence level of that agent is reduced, and subsequent triples output by that agent that do not require human review are randomly selected for human review according to the current human review ratio. In the same batch of bridge inspection reports, if the instance splitting agent repeatedly assigns the dimensional attributes limited by "separately" and "among others" incorrectly to multiple defect instances, and the relevant records are returned by the evidence review agent or confirmed as incorrect by human review, the human feedback learning agent writes this situation into the agent's dynamic confidence table, reducing the confidence level of the instance splitting agent and increasing its subsequent human review ratio.

[0078] The above feedback forms extraction templates, splitting rules, alignment knowledge bases, logical verification rules, and agent confidence adjustment records, respectively. Manual review results originating from errors in the report's own records are not used as agent update samples; updates originating from agent processing or judgment errors must undergo secondary manual review and be verified through playback of previously reviewed samples and conflict detection to prevent erroneous updates or low-confidence outputs from continuously affecting subsequent extraction accuracy.

[0079] Example 3 This embodiment provides a device for extracting and verifying triples in multi-agent bridge inspection reports. For example... Figure 2 As shown, the device includes a processor, a memory, and a document parsing and evidence indexing module, a triple extraction module, an instance splitting module, an entity alignment module, an evidence review module, a logic verification module, a result output module, and a human feedback incremental learning module implemented by program instructions.

[0080] The document parsing and evidence indexing module parses the main text, tables, figure captions, and chapter titles in the bridge inspection report and establishes an original evidence index; the triple extraction module generates a candidate triple table L1 bound to the evidence; the instance splitting module generates an instance splitting table and a candidate triple table L2 after instance splitting; the entity alignment module generates an entity alignment table and a candidate triple table L3 after entity alignment; the evidence review module performs a secondary review of the extraction, splitting, and alignment results and processing basis, generating an evidence review result table and a candidate triple table L4 after evidence review; the logic verification module generates a logic verification record table and a candidate triple table L5 after logic verification; the result output module outputs the triples in L5, the manual review record, and all intermediate result tables; the manual feedback incremental learning module receives the manual review feedback table, routes the feedback to the triple extraction module, instance splitting module, entity alignment module, or logic verification module according to the error type, maintains the dynamic confidence level and manual review ratio of each agent, and generates or expands the corresponding extraction template, splitting rules, alignment knowledge base, or verification rules.

[0081] The device can be deployed on a local server, edge computing device, or bridge maintenance management platform, and can write the verified triples into a bridge knowledge graph or inspection information management system.

[0082] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for extracting triples from bridge inspection reports, characterized in that, Includes the following steps: S1. Perform structured analysis on the bridge inspection report and establish an evidence index corresponding to the structured analysis results; S2. Extract bridge entities, component entities, defect entities, location entities, and attribute entities from the structured parsing results, establish candidate triples for relationships between entities, and bind each candidate triple with the corresponding evidence index and write it into the candidate triple table L1. S3. Split the candidate triples in the candidate triplet table L1 into disease instances with unique instance codes, and generate an instance splitting table, which records the entities before and after the splitting, the evidence index, and the splitting basis; at the same time, generate the candidate triplet table L2 based on the instance splitting table; the splitting specifically includes: S301. First, identify keywords such as "and", "and", "both", "all", "all exist", "separately", "each", "of which", "corresponding to", and "total", as well as separator structures such as commas, semicolons, etc., to count the number of disease location, quantity, length, width, and area attribute items. S302. First, match the attribute items according to the explicit correspondence in the original text of the test report. If there is no explicit correspondence, match them according to the order of the location of the disease and the attribute value in the original text. S303. Finally, pairing is performed based on the consistency between the number of diseases and the number of attribute items. S304. When a unique correspondence cannot be established, stop the forced splitting and mark the relevant candidate triples as pending manual review. S4. Merge disease instances that meet the attribute consistency and have no conflict in different chapters, tables and / or description granularities of the structured parsing results, and retain all evidence indexes before merging; write the merging result into an entity alignment table, which records the entities, evidence indexes and merging basis before and after merging; perform entity alignment on the triples in the candidate triple table L2 according to the entity alignment table to generate the candidate triple table L3. S5. The generated results of steps S2 to S4 are reviewed for evidence. Based on whether the generated results correspond accurately to the corresponding structured parsing results, the extraction, splitting, and alignment results are judged to be correct. The generated results with problems are returned to the corresponding steps for iterative review. If the problem cannot be eliminated after a preset number of reviews, it is marked as manual review. The review results are written into the evidence review result table. The table records the triples before and after processing, error type, processing result, and evidence index. Finally, the corresponding triples in the candidate triple table L3 are modified or deleted to generate the candidate triple table L4. S6. Based on the fault attribute value range rules, bridge component hierarchy rules, and component material and fault type matching rules, perform logical verification on the candidate triplet table L4 and generate a logical verification record table. The table records conflicting triplets and marks them for manual review, while retaining the evidence index, triggering rules, and conflict judgment basis. At the same time, based on the logical verification results, delete the logically conflicting triplets in the candidate triplet table L4 and generate a logically verified candidate triplet table L5. S7. Manually review the triples marked as manually reviewed, write the manual review results into the manual review feedback table, delete the triples from the manual review results that originated from their own error reports, and add the triples from the processing or judgment errors to the candidate triple table L5 after correction to obtain the final extracted triples. At the same time, update the corresponding processing steps according to the reasons for the processing or judgment errors.

2. The method for extracting triplets from bridge inspection reports according to claim 1, characterized in that, The instance splitting agent uses candidate triples in the same disease description unit as input to perform the splitting, and calls the local deployment large model or the general large model API interface through the instance splitting dedicated Prompt template; The instance splitting dedicated Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; Among them, the role instruction and core task instruction are used to define the role of the intelligent agent as the bridge inspection report instance splitting intelligent agent, and require the intelligent agent to complete the instance splitting task of the bridge inspection report candidate triples; the domain auxiliary information includes at least the identification rules for keywords of the categories "and", "and", "and", "all", "all exist", "separately", "each", "of which", "corresponding", and "common", as well as the splitting rules for matching the location, quantity, length, width and area attributes of the defects one by one; the intelligent agent sample example provides at least the corresponding input and output examples; the input content is the candidate triple table L1, and the output content is the instance splitting table and the candidate triple table L2 after instance splitting.

3. The method for extracting triplets from bridge inspection reports according to claim 1, characterized in that, In step S4, the attribute consistency and no conflict are determined when, after the component name, disease type, spatial location and unit of measurement are standardized, the component to which the disease belongs is consistent, the disease type is consistent or the disease type has a hierarchical compatibility relationship, the spatial location is consistent or the spatial location has a hierarchical inclusion relationship, the numerical attributes with the same name are equal or within the preset allowable error after the unit is unified, and the attributes with the same name do not contradict each other.

4. The method for extracting triplets from bridge inspection reports according to claim 3, characterized in that, The entity alignment is achieved by calling the API interface of the locally deployed large model or the general large model through the entity alignment dedicated Prompt template; the entity alignment dedicated Prompt template consists of [role instructions] + [core task instructions] + [domain auxiliary information] + [agent sample example] + [input content] + [output content format constraints]; Among them, the role instruction and core task instruction are used to define the agent role as the entity alignment agent for the bridge inspection report, and require the agent to complete the entity alignment task of the candidate triples of the bridge inspection report; the domain auxiliary information includes at least the normalization of synonyms of component names, the judgment of the hierarchical relationship of defect types, the position hierarchy comparison of bridge span, span number or pier number, component number, component location, orientation and distance fields, the conversion of measurement units, and the prohibition of merging conditions; the agent sample example at least provides the corresponding input and output examples, the input content is the candidate triple table L2; the output content is divided into the entity alignment table and the entity-aligned candidate triple table L3.

5. The method for extracting triplets from bridge inspection reports according to claim 1, characterized in that, In step S6, the disease attribute value range rule is used to verify whether the numerical disease attributes of the candidate triples in the candidate triplet table L4 are within a reasonable range. The bridge component hierarchy rules are used to verify the relationship direction between bridges, structural hierarchy, components, and defect instances; The matching rules between component materials and disease types are used to verify the reasonable combination between material types, component types, and disease types.

6. The method for extracting triplets from bridge inspection reports according to claim 1, characterized in that, Step S1 specifically includes: performing structured parsing of the main text, tables, figure captions, and chapter titles in the bridge inspection report; the evidence index includes document number, page number, chapter number, paragraph number, table number, row and column number, character start and end positions, and original text fragments; In step S2, the candidate triplet is obtained by the triplet extraction agent using a combination of rule extraction and semantic extraction. The rule extraction is used to extract the bridge name, structure type, span combination, construction year and road grade from the bridge basic information table. The semantic extraction is used to extract components, defects, locations and quantitative attributes from defect descriptions, defect statistics tables and detection conclusions.

7. The method for extracting triplets from bridge inspection reports according to any one of claims 1-6, characterized in that, Also includes: The confidence level of each processing step is dynamically configured based on the proportion of times the triples output by a certain processing step are determined to be conflicting by evidence review and manual verification. When the proportion of the total number of times the triples output by a certain step are determined to be conflicted by evidence review and manual verification exceeds a preset threshold, the confidence level of the corresponding processing step is reduced, and a preset proportion of triples are actively extracted from the subsequent outputs of that processing step for manual verification. The corresponding processing step is updated according to the reason for the processing or judgment error found by the manual verification. When the proportion of total conflicts decreases, the confidence level of the corresponding processing steps is increased simultaneously, and the sampling ratio of manual review is decreased simultaneously.

8. The method for extracting triplets from bridge inspection reports according to claim 7, characterized in that, The learning agent, using human feedback, generates a dynamic confidence table based on the confidence level. The dynamic confidence table includes at least the agent name corresponding to each processing step, the number of evidence review errors, the number of processing or judgment errors by the agent in the human review results, the confidence level, and the proportion of human review currently selected.

9. A ternary extraction system for bridge inspection reports, characterized in that, It includes an evidence indexing module, a triplet extraction module, an instance splitting module, an entity alignment module, an evidence review module, a logic verification module, and a manual review module, and is used to execute the triplet extraction method for bridge inspection reports as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Engineering construction method of engineering detection specification knowledge base and trusted question answering system

    CN122570635A

  • Method and system for automatically generating ontologies from domain-specific documents

    US20260154320A1