A multi-stage fault retrieval reasoning method and system based on a finite state machine

By adopting a multi-stage fault retrieval and reasoning method based on finite state machines, the problems of semantic drift across process nodes, conclusion gaps in multi-source heterogeneous analysis, and disconnection in quantitative calculation in industrial fault analysis are solved. This method achieves accurate recall at each stage, unified calibration of conclusions from multiple disciplines, and traceability throughout the entire process.

CN123178141APending Publication Date: 2026-11-27CHINA AEROSPACE STANDARDIZATION INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611277650.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing industrial fault analysis suffers from problems such as semantic drift across process nodes and target shift in retrieval context, semantic discontinuity in multi-source heterogeneous analysis conclusions and difficulty in conflict resolution, logical disconnect between qualitative analysis and quantitative calculation, and lack of traceable closed loop between causal links and remedial measures.

Method used

A multi-stage fault retrieval and reasoning method based on finite state machines is adopted. Through node-level knowledge isolation, node-specific prompt words, evidence supplementation, multi-professional consultation, qualitative and quantitative verification, causal reasoning and FTA mapping, a controllable, verifiable and traceable industrial fault analysis closed loop is formed.

Benefits of technology

It achieves precise recall and generation constraints of results at each stage, unified calibration of conclusions from multiple disciplines, linkage of qualitative and quantitative analysis, and traceability of the entire process, ensuring the accuracy and reliability of fault analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178141A_ABST
    Figure CN123178141A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on finite state machine's fault multi-stage search reasoning method and system, the method constructs finite state machine management and control framework, defines four state nodes of phenomenon confirmation, mechanism analysis, root cause positioning and repair scheme output;Each node inside adopts the running mode of main route default execution, enhanced route condition activation, generates structured state object after being converged uniformly by fusion layer and is passed to next node;Through node level search space, generation context, Agent list and output Schema isolation, inhibit cross-stage semantic drift and generation out of bounds;Through evidence chain, causal link, fault tree structure and repair measure whole-process binding trace, form auditable closed loop;The application solves the problem that general large model is disconnected with engineering verification process in fault analysis, realizes multi-professional conclusion fusion, qualitative and quantitative verification linkage and fault tree automatic mapping, improves the controllability and traceability of analysis conclusion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial fault diagnosis and artificial intelligence technology, specifically relating to a multi-stage fault retrieval and reasoning method and system based on finite state machines. Background Technology

[0002] In high-reliability industrial sectors such as aerospace, energy equipment, and heavy machinery, fault analysis is a core component in ensuring the safe operation of equipment. A complete industrial fault analysis typically involves multiple stages, including phenomenon identification, mechanism analysis, root cause localization, and repair solution output. The required knowledge granularity, terminology system, and reasoning objectives differ significantly at each stage.

[0003] In recent years, large model generation technologies, represented by retrieval-enhanced generation (RAG), have been gradually introduced into the field of industrial fault analysis to assist engineers in tasks such as fault phenomenon description, mechanism explanation, root cause identification, and repair suggestion generation. However, existing general-purpose RAG technologies and single-model analysis methods have the following main technical shortcomings when integrated with industrial fault analysis engineering verification processes: Technical Issue 1: Semantic drift across process nodes and target offset of retrieval context.

[0004] Existing Retrieval Enhanced Generation (RAG) technologies typically employ a unified knowledge base and retrieval strategy. However, in the multi-stage process of industrial fault analysis, the required knowledge granularity, terminology, and inference objectives differ for phenomenon description, mechanism explanation, root cause determination, and remediation solutions. Retrieving materials within the same retrieval space can easily lead to cross-stage misrecalls, contextual target shifts, and out-of-bounds generated conclusions. For example, prematurely introducing mechanism conclusions during the phenomenon confirmation stage, or misusing local symptom descriptions as the basis for root cause determination, can cause the overall model generation results to deviate from the business objectives of the current analysis node.

[0005] Technical problem 2: Semantic discontinuity and conflict resolution difficulties in the conclusions of multi-source heterogeneous analysis.

[0006] Existing single-model analysis or simple multi-agent parallel mechanisms lack unified evidence expression, confidence level labeling, and conflict arbitration mechanisms for conclusions from multiple disciplines such as mechanics, materials, electronics, processes, and environment. When agents from different disciplines reason independently based on different knowledge sources, the scoring meaning, evidence granularity, and causal hierarchy of the output conclusions are inconsistent, making it difficult to directly integrate them into a continuous fault causal chain. This easily leads to problems such as conclusion gaps, difficulty in quantifying conflicts, and insufficient basis for manual review.

[0007] Technical problem three: The logical disconnect between qualitative analysis and quantitative calculation.

[0008] Current AI-generated content largely remains at the level of qualitative text interpretation, making it difficult to automatically correlate quantitative calculation results such as fatigue life, strength margin, thermal analysis, electrical parameter verification, and failure probability based on fault evidence. For high-reliability industrial fault analysis, mechanistic explanations need to be corroborated by experimental data, computational models, and engineering constraints. Without numerical verification and evidence traceability, the analysis conclusions are unlikely to meet the engineering requirements of "clear mechanism, data support, and closed-loop measures."

[0009] Technical Issue 4: Lack of a traceable closed loop between causal links, fault trees, and remedial measures.

[0010] In existing fault analysis reports, root cause identification, fault tree construction, and remediation measures are often completed manually, resulting in a lack of structured binding between the generated content and the original evidence, reasoning chain, calculation process, and manual confirmation records. This issue makes subsequent audit review, version rollback, zero-based verification, and accountability tracing difficult, and also hinders the accumulation and reuse of historical fault cases.

[0011] In summary, existing technologies lack a technical solution that can deeply integrate large model generation capabilities with industrial fault analysis engineering verification processes, achieve cross-stage knowledge isolation, multi-disciplinary conclusion fusion, qualitative and quantitative verification linkage, and full-process traceability. Summary of the Invention

[0012] This invention addresses the technical shortcomings of existing industrial fault analysis methods, specifically the disconnect between general large-scale model generation technology and engineering verification processes. It proposes a multi-stage fault retrieval and reasoning method and system based on finite state machines. This method uses the fault analysis business process as its main thread, dividing phenomenon confirmation, mechanism analysis, root cause localization, and repair solution output into interconnected and clearly defined state nodes. Through mechanisms such as node-level knowledge isolation, node-specific prompts, evidence supplementation, multi-disciplinary consultation, qualitative and quantitative verification, causal reasoning, FTA mapping, and full-process traceability, a controllable, verifiable, and traceable closed loop for industrial fault analysis is formed. First, a multi-stage process control mechanism driven by a finite state machine constrains the analysis scope through state entry, node execution, result verification, condition transition, circuit breaking, and rollback. Second, a node-level retrieval space, inference context, callable modules, and output schema isolation mechanism ensures that different stages only access knowledge and fields matching the current business objective. Third, a dynamic activation mechanism for the main execution route and condition enhancement route calls modules such as graphs, multimodal, specialized intelligent agents, Bayesian, or GNN based on the input data type and evidence conditions. Fourth, a stage result convergence mechanism performs unified calibration, conflict detection, and manual arbitration on multi-source evidence and inference results. Fifth, a structured state object and version chain mechanism enables controlled transmission and full-process traceability of the evidence chain, mechanism conclusions, FTA structure, remedial measures, and confirmation records.

[0013] The technical solution for implementing the present invention is as follows: A multi-stage fault retrieval and reasoning method based on finite state machines includes: A finite state machine management architecture is constructed, defining four state nodes: S1 phenomenon confirmation, S2 mechanism analysis, S3 root cause location, and S4 repair solution output. Each state node is configured with an independent retrieval space, inference target, context template, callable analysis module, node verification rules and output schema. Through the closed-loop mechanism of "state entry - node retrieval - node inference - stage result convergence - node verification - state transition", each stage processes authorized evidence and fields only around the current business objective. The finite state machine is represented as M=(Q, Σ, δ, q0, F), where: Q={S1, S2, S3, S4} is the set of states; Σ is the set of state transition events, including evidence supplementation completion, node verification passed, conflict not resolved, quantitative verification contradiction, and manual confirmation completion; δ is the state transition function that determines the next state based on the current state, the structured state object, and the verification result; q0=S1 is the initial state; and F is the final state output by S4 after manual confirmation, experimental verification, and approval. The multi-stage retrieval reasoning refers to setting retrieval targets, retrieval spaces, reasoning rules, callable tools, verification conditions, and output data structures for different fault analysis state nodes under the control of a finite state machine. The system retrieves evidence related to the current business objective from the corresponding knowledge subset based on the current structured state object, and forms candidate conclusions by combining the node-specific reasoning mechanism. After the stage results converge and the node is verified, a structured state object visible in the next state is generated. The retrieval includes one or more of the following: vector retrieval, keyword retrieval, knowledge graph query, multimodal retrieval, rule retrieval, and historical case retrieval; the reasoning includes one or more of the following: large model constraint reasoning, rule reasoning, multi-professional agent reasoning, Bayesian reasoning, causal graph reasoning, quantitative calculation verification, and fault tree mapping. The overall technical approach is based on a multi-stage retrieval and reasoning driven by a finite state machine. S1 focuses on phenomenon evidence retrieval and phenomenon state construction; S2 focuses on mechanism knowledge retrieval, candidate mechanism reasoning, and qualitative and quantitative verification; S3 focuses on causal evidence retrieval, root cause reasoning, and FTA mapping; and S4 focuses on repair rule and historical case retrieval, measure reasoning, and result solidification. Each state node is configured with a main execution route and one or more condition enhancement routes. The main execution route runs by default, while the condition enhancement routes are dynamically activated based on the input data type, knowledge resource conditions, evidence uncertainty, and engineering audit requirements. Intermediate results from each execution path are not directly used as the final conclusion of the node, but are submitted to the stage result convergence module. This module performs terminology normalization, evidence binding, confidence calibration, conflict detection, and manual arbitration to generate a structured state object that meets the node output schema. Through the above design, node-level retrieval, stage-specific reasoning, quantitative verification, FTA structure construction, and remedial measures generation are incorporated into the same controlled state chain, suppressing cross-stage false recalls and context pollution, and maintaining the continuity of evidence between the results of each stage. Each node operates using a default main route execution, conditional activation of enhanced routes, and unified convergence of the fusion layer. The main route is a node-level vector retrieval enhanced RAG, and the enhanced routes include one or more of knowledge graph, multimodal, Bayesian, graph neural network, or evidence enhancement. Each route submits intermediate results to the fusion layer, which generates a structured state object after calibration and conflict handling, serving as the input for the next node. By isolating the node-level retrieval space, generation context, agent list, and output schema, each stage only calls the knowledge subset and verification rules that match the current business objective; By binding and tracing the entire process, the search fragments, agent opinions, calculation process, causal links, fault tree nodes and remediation suggestions are incorporated into an auditable evidence chain; Controlled transfer of state objects between nodes is performed. When switching nodes, the temporary context is cleaned up, and only the structured state object is allowed to be passed to the next node.

[0014] Furthermore, the operational mode of "default execution of the main route, conditional activation of enhanced routes, and unified convergence of the fusion layer" specifically includes: When the input contains only a text description, the vector retrieval enhanced RAG main route is executed first. When a knowledge graph has been built or standardized relational data exists, activate the knowledge graph enhancement route; When the input includes images, video frames, waveforms, scanned documents, or test report attachments, a multimodal mixed search route is enabled; When the evidence is incomplete, the conclusions are conflicting, or probabilistic comparisons are required, the Bayesian inference route is activated. When there are sufficient historical fault samples, graph structures, and labeled root causes, the GNN auxiliary route is activated. When there are high requirements for auditing, archiving, and accountability, enable Merkle trees, event sourcing, hash chains, or blockchain-based evidence enhancement routes.

[0015] Furthermore, the node-level isolation mechanism includes: Search space isolation: Each state node is configured with an independent knowledge subset, index alias, graph namespace or permission domain; Context isolation is generated: when switching nodes, the temporary context, retrieval cache and intermediate inference records of the current node are cleared, and the model generation range is constrained by node-specific prompt words, context templates and output schema; Agent list isolation: Each state node is configured with an independent Agent wake-up list; Runtime isolation: Each state node is deployed as an independent microservice container; The structured state object includes at least a node identifier, input data summary, standardized business fields, evidence ID, evidence source, confidence level, verification result, conflict resolution record, manual confirmation record, version identifier, and a list of fields visible to the next node. The next state node can only read the fields allowed by its business objectives and reorganize the context according to the node-specific schema.

[0016] Furthermore, the end-to-end binding traceability mechanism includes: Hash identifiers are generated for phenomenon confirmation text, mechanism conclusion, root cause link, fault tree node, calculation process, manual confirmation record and repair suggestion, and bound to the retrieval fragment ID, Agent opinion ID, inference link ID and calculation process ID respectively; The state transition log records timestamps, operators, triggering conditions, verification results, and version differences in an append-only manner, and completes version solidification and audit tracking through digital signatures; Each state transition, manual verification, conflict arbitration, quantitative calculation, fault tree structure adjustment, and repair suggestion modification creates a new version of the state object, and records the triggering reason, modified fields, responsible party, verification result, and version differences. If subsequent nodes experience missing evidence, unresolved conflicts, or contradictory quantitative verifications, the state object version chain is used to revert to the previous stable state.

[0017] Furthermore, in step S1, the phenomenon confirmation node, the main route is a node-level vector retrieval enhanced RAG, specifically including: calling the index alias or partition retrieval mechanism based on the current state node identifier to retrieve only the phenomenon confirmation knowledge subset; using vector semantic retrieval and BM25 keyword retrieval in parallel, combining RRF, weighted fusion, or Borda Count to generate Top-K related materials; injecting the retrieval results, user input, and node-specific Prompt into the large model context window by splicing them according to the template, wherein the node-specific Prompt limits the model to only describe the fault manifestation, occurrence conditions, observation evidence, and information to be supplemented, prohibiting direct inference of mechanisms or root causes; and performing output verification through a four-layer verification engine composed of a terminology standardization layer, a logic closed-loop layer, a desensitization interception layer, and a description standardization layer.

[0018] Execution Route A: Vector Retrieval Enhanced RAG Main Route; Route A uses the Elasticsearch / Milvus vector database as its core, and achieves accurate material retrieval and generation constraints in the phenomenon confirmation stage through node-level index isolation, dual-path retrieval fusion, and a four-layer verification engine; this route is the default route enabled by S1. A1 Node-level Vector Retrieval Isolation: Based on the current state node identifier, the index alias or partition retrieval mechanism is invoked to retrieve only the subset of phenomenon confirmation knowledge such as failure_phenomenon_idx; Vector semantic retrieval and BM25 keyword retrieval are used in parallel, and Top-K related materials are generated by combining RRF, weighted fusion or Borda Count; A2 Context Window Management: The search results, user input, and node-specific Prompts are concatenated according to the template and injected into the large model context window; the node-specific Prompts limit the model to only describe the fault symptoms, occurrence conditions, observational evidence, and information to be supplemented, and prohibit direct inference of mechanisms or root causes; A3 Four-Layer Verification Engine: The terminology standardization layer aligns terms through entity recognition and a standard terminology library; the logic closed-loop layer verifies whether the fault object, fault mode, occurrence environment, and observation evidence are complete; the desensitization and interception layer replaces or masks sensitive parameters and classified identifiers; and the expression standardization layer reconstructs the output into an active, clearly structured technical description.

[0019] Execution Route B: Knowledge Graph Enhancement RAG Conditional Route; Route B is based on industrial knowledge graphs and is enabled in scenarios with existing equipment, failure modes, phenomena, standard clauses, and historical case graphs. This route replaces or supplements vector retrieval with graph semantic retrieval and uses ontology constraints to improve the consistency and verifiability of phenomenon descriptions. B1 Knowledge Graph Semantic Retrieval: Construct a fault phenomenon knowledge graph based on a unified RDF Schema or attribute graph model, and map fault descriptions to graph nodes through entity links; use SPARQL / Cypher to query related phenomena, equipment components, standard clauses and historical cases, and complete implicit relationships through OWL, SHACL or rule reasoning; B2 Structured Context Template: Based on the graph query results, the Jinja2 / Mustache template is used to fill the structured context, which clarifies the phenomenon description, associated equipment, observation conditions, relevant standards and case evidence, and reduces context drift caused by free text splicing; B3 Ontology + Rule Hybrid Validation: The ontology reasoning layer verifies conceptual consistency; the rule validation layer performs industry standard compliance checks; the data validation layer verifies the integrity of output fields through SHACL constraints; and the AI-assisted layer standardizes textual expressions.

[0020]

[0021] Execution route C: Multimodal hybrid retrieval condition route; Route C is used for scenarios containing unstructured evidence such as fault images, video frames, waveform diagrams, and scanned copies of inspection reports. It supplements the evidence to confirm the phenomenon through image-text joint retrieval and fine-grained text matching. C1 Multimodal Hybrid Retrieval: It uses CLIP, BLIP-2 or LLaVA to extract keyframe features of images / videos, and combines them with fine-grained text matching models such as ColBERT and SPLADE to perform cross-modal similarity calculation on image and text evidence, and generate Top-K materials related to the fault phenomenon; C2 Contextual Fidelity Slicing: Employs Late Chunking, Contextual Retrieval, or dynamic token budgeting mechanisms to preserve the contextual relationships in detection reports, test records, and long documents, avoiding semantic breaks caused by traditional slicing followed by encoding. C3 AI-driven intelligent verification: It uses cross-encoders or NLI models to evaluate the consistency between generated content and retrieved evidence; it identifies sensitive information through security detection models; and it evaluates the standardization of technical document expressions through BERTScore or manual rules.

[0022]

[0023] Output: S1 Phenomenon Status Object, expressed in XML or JSON structure, which includes at least the standardized fault phenomenon, fault object, occurrence conditions, observation evidence, evidence number, key field integrity score, fields to be supplemented, sensitive replacement records, and node verification results; Phase Result Convergence Module: 1) Perform deduplication, terminology alignment, and evidence source binding on the result sets of each enabled route, prioritizing the retention of entries with standardized terminology, clear evidence sources, and complete fields; 2) After normalizing and calibrating the semantic matching score, graph matching score, and multimodal similarity score, calculate the comprehensive score. The weights of routes that are not enabled are reset to zero and re-normalized. 3) When there are significant differences in the outputs of different routes, conflict resolution is carried out based on the level of evidence source, historical calibration weight, and the results of manual review; 4) The output format includes a phenomenon description, observation conditions, evidence number, verification results, and fields to be supplemented, for use by S2; Flow: S1 does not output mechanism judgments or root cause conclusions, but only outputs verified phenomenon state objects; when key fields are complete, evidence sources are traceable, desensitization verification passes, and confirmation is obtained by at least one independent verification mechanism, the state transition function δ triggers S1→S2; if key evidence is missing, S1 is maintained and the interactive supplementary evidence process is entered; S2 only receives data from the phenomenon state objects that are listed in the visible field list of the next node, as well as newly added experimental data, historical case evidence, and supplementary detection data. The temporary search context and draft reasoning records of S1 are not directly passed to S2.

[0024] Furthermore, in the mechanism analysis node of step S2, the main route is evidence-driven multi-agent consultation, specifically including: identifying missing key evidence based on RDF Schema, SHACL constraints, or field integrity rules, and generating high / medium / low priority follow-up questions according to the degree of impact; activating multiple professional agents in the fields of system and reliability engineering, product engineering technology, verification and quality control, manufacturing and supply chain, operation and maintenance and service, data and knowledge engineering, and general support through the event bus; each agent generates mechanism hypotheses, supporting evidence, counter-evidence information, and confidence levels based on its own knowledge base, standard specifications, and historical cases; standardizing the scores of different agents by using historical labeled samples, manual confirmation records, or calibration models before fusion; extracting computable parameters from the evidence chain, and calling preset fatigue life, strength verification, thermal analysis, electrical verification, or failure probability calculation templates for qualitative and quantitative fusion verification; The fields of systems and reliability engineering include: systems engineering, reliability engineering, safety engineering, human factors engineering, and market and user research. The product engineering technology fields include: mechanical design, electrical and electronic engineering, software engineering, material failure, thermodynamics engineering, fluid mechanics engineering, electromagnetic compatibility engineering, and network security engineering. The verification and quality control fields include: experimental engineering, metrology and testing technology, quality engineering, and process quality. The manufacturing and supply chain field includes: manufacturing engineering, supply chain management, industrial engineering, and equipment engineering. The aforementioned operation and maintenance service areas include: maintenance engineering, customer service engineering, technical support engineering, and spare parts management. The field of data and knowledge engineering includes: data science and big data technology, knowledge engineering, and reverse engineering. The general support areas include: environmental engineering, law and compliance, and project management. Execution Route A: Evidence-driven multi-specialty agent consultation main route; Route A uses a unified evidence model to manage fault evidence. It involves independent reasoning by specialized agents in mechanical, material, process, electronic, and environmental fields, followed by confidence calibration and conflict arbitration to form a mechanism analysis conclusion. This route is the default route enabled by S2. A1 Evidence Gap Identification and Interactive Completion: Based on RDF Schema, SHACL constraints, or field integrity rules, compare S1 output and experimental data to identify missing key evidence such as material grade, load conditions, ambient temperature, running time, and testing methods; generate high / medium / low priority follow-up questions according to the degree of impact, and write supplementary evidence into the cached evidence graph; A2 Multi-Agent Parallel Confidence Fusion: The event bus simultaneously awakens specialized agents such as mechanical design, material failure, process quality, and electronic and electrical engineering; each agent generates mechanism hypotheses, supporting evidence, counter-evidence information, and confidence levels based on its own knowledge base, standard specifications, and historical cases; before fusion, historical labeled samples, manual confirmation records, or model calibration are used to standardize the scores of different agents to avoid directly adding semantic similarity, rule hit rate, and model self-score; A3 Qualitative and Quantitative Fusion Verification: Extract computable parameters from the evidence chain and call preset fatigue life, strength verification, thermal analysis, electrical verification, or failure probability calculation templates; for complex finite element and other scenarios that require manual confirmation, generate a list of calculation inputs, boundary condition suggestions, and verification rules, which are then confirmed by professionals before the calculation is executed, and the calculation process is hashed and bound to the mechanism conclusion.

[0025]

[0026] Execution Route B: Optimization of Evidence Collection Strategy Conditions; Route B is used for scenarios with standardized detection processes, automated data acquisition interfaces, and historical training samples; this route does not directly replace manual detection decisions, but is used to generate evidence supplementation priorities and detection recommendations. B1 Strategy-Driven Evidence Collection Recommendations: Construct an evidence priority model based on evidence completeness, historical case similarity, testing costs, and diagnostic benefits; when sufficient interactive samples are available, D3QN, PPO, or SAC can be used to optimize the evidence collection order, but manual confirmation should be retained for testing equipment scheduling and key test execution; B2 Multi-source information representation fusion: Employing Multi-Modal Transformer, Perceiver IO, or Cross-Attention architectures, textual evidence, numerical data, image evidence, and sensor data are encoded into a unified representation, outputting candidate mechanisms and their key evidence contributions; B3 Physical Constraint Verification: Physical rules or PINN soft constraints such as mechanical equilibrium, energy conservation, material strength boundaries, and electrical rating constraints are introduced to check the consistency of the mechanism assumptions; conclusions that do not meet the physical constraints are marked as pending review, rather than being directly used as the final conclusion.

[0027]

[0028] Execution route C: Distributed Bayesian inference conditional route; Route C is used in scenarios where the evidence is incomplete, the conclusion is uncertain, or a probabilistic comparison of competing mechanisms is required. It expresses the conditional dependencies between failure mechanisms through a Bayesian network. C1 Distributed Bayesian Evidence Inference: Construct a modular Bayesian network, with each physical subsystem corresponding to a sub-network; transform the S1 output, experimental data, and historical cases into evidence node probability distributions, and calculate the posterior probability through Loopy BeliefPropagation, variational inference, or importance sampling; C2 Multi-source evidence probabilistic fusion: Jeffrey rule, Dempster-Shafer evidence theory or Yager rule are used to handle evidence updates and conflicting evidence; when the conflict coefficient exceeds the threshold, the source of conflict is marked and a request for supplementary evidence or manual arbitration is triggered. C3 Statistical Consistency Check: Compares competing mechanisms, such as fatigue fracture, corrosion failure, assembly defects, or overload failure, through MCMC sampling, Bayesian factor analysis, and sensitivity analysis; when the Bayesian factor is insufficient to support a clear conclusion, it outputs a low confidence indicator and a suggestion for supplementary evidence.

[0029]

[0030] Output: S2 mechanism state object, including candidate mechanisms and final mechanism conclusions, complete evidence chain, supporting and counter-evidence information, multi-disciplinary fusion results, quantitative calculation results, conflict resolution records, low confidence items, items to be reviewed, and calculation process hash; Phase Result Convergence Module: 1) Summarize the evidence chains, mechanistic assumptions, quantitative calculation results, and counter-evidence information for each activated route; 2) Map the Agent confidence, model prediction confidence, and Bayesian posterior probability to a unified confidence space, and record the scoring source, calibration method, and applicable boundaries; 3) When the conflict of conclusions exceeds the threshold, a request for supplementary evidence will be triggered first; if the conflict still cannot be resolved, it will proceed to manual arbitration and the arbitration result will be fed back to the weight update module. 4) The fusion output includes the mechanism conclusion, supporting evidence, counter-evidence, calculation and verification results, and items to be reviewed; Flow: The mechanistic assumptions, supporting evidence, counter-evidence information, confidence levels, quantitative calculation results, and conflict resolution records output by S2 are converted into mechanistic state objects. Through entity linking, terminology normalization, and evidence number mapping, structured query conditions are provided for causal evidence retrieval and FTA rule retrieval in S3. When the evidence completeness reaches the set threshold, key conflict items are handled, and there is no obvious contradiction between qualitative interpretation and quantitative verification, the state transition function δ triggers S2→S3. Otherwise, S2 continues to perform supplementary evidence, or the process reverts to S1 and enters manual review based on the type of missing evidence.

[0031] Further, in step S3, the root cause localization node, the main route is knowledge graph causal reasoning and fault tree automatic mapping, specifically including: constructing a unified RDF schema or attribute graph model, mapping mechanism conclusions, evidence entities, component structures, process technologies, environmental conditions, and historical cases as graph nodes; expanding forward paths from fault phenomena and mechanism nodes to generate candidate causal links, tracing back from candidate root cause nodes to phenomenon nodes for cross-validation, with path confidence calculated by evidence strength, rule hit, historical case support, and rebuttal penalty; mapping the validated causal links to fault tree intermediate events and bottom events, where AND gates are used for scenarios where multiple bottom events must occur simultaneously to lead to higher-level events, OR gates are used for scenarios where any bottom event can independently lead to higher-level events, common cause events are set as common cause nodes, and events with insufficient evidence are marked as nodes to be confirmed; Execution Route A: Knowledge Graph Causal Reasoning Main Route; Route A, centered on industrial knowledge graphs and fault mechanism rules, achieves root cause localization through semantic alignment, bidirectional causal tracing, and FTA rule mapping. This route is the default route enabled in S3.

[0032] A1 Knowledge Graph Semantic Alignment: Construct a unified RDF Schema or attribute graph model to map mechanism conclusions, evidence entities, component structures, technological processes, environmental conditions, and historical cases into graph nodes; use entity linking, relation extraction, and vector alignment to resolve terminology and evidence granularity differences between S1 and S2.

[0033] A2 Bidirectional Causal Reasoning: Starting from the fault phenomenon and mechanism nodes, a forward path is extended to generate candidate causal links; the candidate root cause nodes are traced back to the phenomenon nodes for cross-validation; the path confidence is calculated by the strength of evidence, rule hit, historical case support and rebuttal penalty.

[0034] A3 FTA Automatic Fault Tree Mapping: Maps verified causal links to intermediate and bottom events in the fault tree. AND gates are used in scenarios where multiple bottom events must occur simultaneously to cause a higher-level event; OR gates are used in scenarios where any bottom event can independently cause a higher-level event; common cause events are marked with a common cause node to avoid duplicate counting; events with insufficient evidence are marked as pending confirmation nodes, and the automatic calculation of the top event probability is blocked.

[0035]

[0036] Execution Route B: Conditional Route of Causal Bayesian Network; Route B is used in scenarios where there are probabilistic dependencies between root causes, the evidence is uncertain, or confidence intervals need to be output. This route generates root cause ranking through probability propagation and assists in the construction of probabilistic FTAs.

[0037] B1 CBN Causal Bayesian Modeling: This approach combines expert knowledge with data-driven methods to construct causal Bayesian networks, avoiding spurious causality caused by relying solely on data learning. Structure learning algorithms such as PC and GES are only used to propose candidate dependencies; the final DAG structure must be validated using domain rules and expert constraints.

[0038] B2 Probabilistic Propagation Inference: Calculates the posterior probability of root causes using variable elimination, connection trees, or approximate inference, supports Bayesian updates after adding new evidence, and outputs Top-K root causes, confidence intervals, and sensitivity ranking.

[0039] B3 Probabilistic FTA Mapping: Maps the root cause nodes of CBN to probabilistic FTA base events; uses the AND / OR gate probability formula when the independence assumption is satisfied; for non-independent events or events with common causes, uses BDD, Monte Carlo, or conditional probability correction methods to calculate the minimum cut set probability distribution.

[0040]

[0041] Execution route C: Auxiliary conditional route for deep learning graph networks; Route C is used in scenarios where historical fault samples, graph structures, and labeled root causes are relatively abundant. GNN is used for candidate root cause ranking, implicit association hints, and potential path recommendation, but does not directly replace engineering causality determination and FTA logic gate configuration.

[0042] C1 GNN graph embedding learning: Construct heterogeneous graphs where nodes include fault phenomena, failure modes, root causes, components, environmental factors, and process factors; edges include causal relationships, statistical associations, temporal dependencies, and structural dependencies; and learn node and path representations using R-GCN, HGT, GAT, or GraphSAGE.

[0043] C2 Attention-Assisted Causal Mining: This approach identifies high-contribution paths through attention mechanisms and filters out spurious correlations by combining causal regularization, temporal constraints, and domain rules. Attention weights serve only as indicators of candidate evidence strength and are not directly equivalent to causal relationships.

[0044] C3 FTA candidate structure generation: Based on the node importance and path ranking of the GNN output, FTA candidate structures are generated, and then the final hierarchical relationship and logic gate type are determined by fault mechanism rules, expert constraints and evidence integrity verification.

[0045]

[0046] Output: S3 Root Cause and FTA Status Object, including root cause location conclusion, root cause confidence, standardized FTA fault tree, logic gates, minimal cut sets, importance analysis, causal reasoning chain diagram, list of events to be confirmed, and evidence binding relationships; Phase Result Convergence Module: 1) Perform terminology normalization and evidence binding on the root cause rankings, causal links, and FTA candidate structures generated for each enabled route; 2) Integrate root cause confidence based on historical performance, evidence strength, rule hit rate, and confidence level calibration results, and label the confidence intervals; 3) Perform checks on the FTA structure, including no isolated events, logic gate closure, common cause identification, minimum cut set rationality, and evidence coverage. 4) Record the contribution of each model and piece of evidence to the final root cause conclusion to support subsequent audits and manual review.

[0047] Flow: The root cause node, causal link, FTA intermediate events, FTA bottom events, logic gates, minimal cut sets, importance analysis results, events to be confirmed, and evidence binding relationships output by S3 collectively form the root cause and FTA state object. S4 retrieves remediation rules and historical handling cases based on the root cause type, failure mode, FTA bottom events, standard clauses, and verification requirements in this state object, rather than directly generating remediation suggestions based on the free text root cause. When the root cause link is traceable, the FTA logic completeness verification passes, and the key events to be confirmed are handled, the state transition function δ triggers S3→S4; otherwise, it reverts to S2 to supplement evidence or enters expert review.

[0048] Furthermore, in the output node of the repair plan in step S4, the main route is rule-based reasoning and tracing, which specifically includes: calling the rule engine based on root cause type, failure mode, fault tree bottom event, and standard specifications to generate repair suggestions for structural improvement, process adjustment, material verification, inspection enhancement, and operational restrictions; retrieving similar historical zeroing cases through case reasoning to supplement handling experience; binding each repair suggestion with the corresponding root cause node, fault tree bottom event, evidence number, calculation result, and version difference information; generating a draft fault zeroing report with traceability code, outputting it in both PDF and XML formats, and simultaneously generating a full-process operation log, version difference file, manual confirmation record, and audit trail file.

[0049] Execution Route A: Main route of rule reasoning and case retrieval.

[0050] Route A uses a rule engine and case-based reasoning to generate repair suggestions, and achieves full-process traceability through hash chains and WAL logs. This route is the default route enabled in S4.

[0051] The A1 rule reasoning engine generates repair suggestions: Based on root cause type, failure mode, FTA bottom event, and standard specifications, it calls the Drools, Easy Rules, or Camunda rule engine to generate repair suggestions such as structural improvement, process adjustment, material review, inspection enhancement, and operational restrictions; it also uses CBR case reasoning to retrieve similar historical zero-case cases to supplement handling experience.

[0052] A2 SHA-256 full-process traceability: Generate hash identifiers for phenomenon confirmation text, mechanism conclusion, root cause link, FTA node, calculation process, manual confirmation record and repair suggestion, and bind them to the retrieval fragment ID, Agent opinion ID, reasoning link ID and calculation process ID to form a traceable evidence chain.

[0053] A3 WAL state machine archiving: The state transition log records timestamps, operators, triggering conditions, verification results, and version differences in an append-only manner; version solidification and audit tracing are accomplished through Git differential storage, SM2 digital signatures, or equivalent signature mechanisms.

[0054]

[0055] Execution Route B: Generative AI-Assisted Conditional Route; Route B is used for scenarios involving complex faults that require the generation of multiple repair alternatives. The large model is only used to assist in the formation of draft solutions, verification lists, and risk warnings, and does not directly replace engineering approval.

[0056] B1 LLM Generative Remediation Recommendations: Inputting root cause conclusions, FTA data, historical case libraries, and company standards, it generates structured remediation recommendations, including action details, applicable conditions, risk points, verification methods, and parameters requiring manual verification. The RAG (Regulatory Intelligence Group) injects company knowledge base and standard clauses to constrain the boundaries of the large model generation.

[0057] B2 Evidence Enhancement Mechanism: For scenarios with high audit requirements, the summary of repair suggestions, traceability hash, approval records and version identifiers can be written into the private chain or consortium chain; for general scenarios, the traceability requirements can be met by using a local hash chain, WAL log and digital signature.

[0058] B3 Differentiated Version Management: Uses Git LFS, MinIO, or object storage to manage large files, generates a diff for each modification, supports historical version rollback, manual confirmation of record association, and multi-location backup.

[0059]

[0060] Execution Route C: Hybrid Intelligent Reasoning and Event Archiving Conditional Route; Route C integrates case reasoning and large model generation capabilities, and improves tracing efficiency and auditing capabilities through Merkle trees or Event Sourcing. It is suitable for scenarios involving multiple rounds of modifications, multi-person collaboration, and high-frequency review.

[0061] C1 CBR+LLM Hybrid Reasoning: First, CBR retrieves Top-K similar historical cases, and the case measures, verification results, and risk lessons are used as context input to LLM; LLM generates candidate remediation suggestions based on case analogies, and selects available solutions through self-consistent voting, rule verification, and manual review.

[0062] C2 Merkle Tree Full-Link Tracing: Merkle trees are constructed using the content hashes of each stage as leaf nodes, supporting existence verification of any evidence, conclusion, or repair suggestion; privacy enhancement mechanisms such as zero-knowledge proofs are only optional implementations for special security needs.

[0063] C3 Event Sourcing: All state changes are persisted as an immutable event stream, supporting state reconstruction at any point in time; CQRS is used to separate read and write operations, and audit tracing and fault recovery are achieved through event replay.

[0064]

[0065] Output: S4 remediation solution status object and a draft fault zeroing report with traceability code, output in PDF, XML or JSON format; at least include remediation recommendations, applicable conditions, verification plan, risk control items, manual confirmation requirements, root cause and FTA binding relationship, full process operation log, version difference file and audit trail record.

[0066] Phase Result Convergence Module: 1) The remediation suggestions formed by combining rule-based reasoning, case-based reasoning, and generative AI are ranked according to standard compliance, historical case support, risk level, and verification feasibility; 2) For inconsistent measures, it is recommended to indicate the reasons for the conflict and introduce manual review, experimental verification or expert review; 3) Each remediation suggestion is bound to the root cause node, the underlying event of the FTA, the evidence number, the calculation result, and the version difference information to ensure traceability of the source of the measures; 4) The integrated outputs include remediation recommendations, validation plans, risk control items, draft zeroing reports, and audit trail documents.

[0067] Flow: S4 output is the final draft delivery. After manual confirmation, verification testing, and approval solidification, the finite state machine enters the final state F and generates a formal fault zeroing report; if verification fails, the measures do not match the root cause, or the approval raises new evidence requirements, it regresses to S3 or S2 according to the state transition function δ. Verification and approval results can be written back into the historical case library, rule library, weight calibration data, and model evaluation data for case reuse, rule optimization, and confidence calibration in subsequent similar fault analyses.

[0068] Furthermore, it includes a multi-stage state isolation, transmission, and connection mechanism: a structured state object transmission mechanism. State nodes are not directly linked by free text context, but rather transmitted in a controlled manner using structured state objects. Each state object includes at least a node identifier, input data summary, standardized business fields, evidence ID, evidence source, confidence level, verification result, conflict resolution record, quantitative calculation record, manual confirmation record, version identifier, and a list of fields visible to the next node. During node switching, the current node's temporary retrieval context, draft reasoning records, and cached materials are cleared; necessary phenomena descriptions, evidence chains, calculation results, FTA structures, and confirmation records are transmitted only through state objects.

[0069] State object version management mechanism: Each state transition, manual verification, conflict arbitration, quantitative calculation, FTA structure adjustment, and repair suggestion modification creates a new version of the state object, recording the triggering reason, modified fields, responsible party, verification results, and version differences. If subsequent nodes experience missing evidence, unresolved conflicts, or contradictory quantitative verifications, the state object version chain can be reverted to the previous stable state, retaining the failure reason, correction suggestions, and difference records, supporting the review, auditing, and zeroing-out verification of the fault analysis process.

[0070] Retrieval space isolation: Each state node is configured with an independent knowledge subset, index alias, graph namespace, or permission domain. S1 accesses only phenomenon confirmation knowledge, S2 accesses mechanism analysis and experimental data knowledge, S3 accesses causal graphs and FTA rule base, and S4 accesses repair rules, historical zeroing cases, and audit templates to prevent cross-stage material erroneous retrieval from causing out-of-bounds generation.

[0071] Retrieval and inference context isolation: When switching nodes, the temporary retrieval context, retrieval cache, candidate conclusions, and intermediate inference records of the current node are cleared; the processing scope of the model is constrained through node-specific prompts, context templates, a list of callable tools, and output schemas. The next state node can only read data from the state object that is listed in the list of fields visible to the next node, and reconstructs the retrieval query and inference context of that node.

[0072] Runtime isolation: In lightweight deployments, process address space or Python namespace isolation can be used; in high-security or multi-department collaboration scenarios, each state node can be deployed as an independent microservice container, and runtime environment isolation can be achieved through service mesh, interface authentication and traffic policies.

[0073] State transition mechanism: Node switching signals are captured via a state machine scheduler or event listener, automatically loading the current node's specific configuration, including the search space, search parameters, Prompt template path, callable analysis modules, Agent wake-up list, verification rule set, and output schema. State transitions are uniformly executed by the state transition function δ, whose judgment criteria include field integrity, evidence traceability, conflict resolution results, quantitative verification, de-identification verification, and manual confirmation results.

[0074]

[0075] Circuit break and rollback mechanism: When a single node fails to verify continuously for more than a set threshold, or when there are situations such as missing key evidence, unresolved conflicting conclusions, or contradictory quantitative verification, the process is triggered to break the circuit and roll back to the previous stable node; the rollback process retains the reasons for failure, correction suggestions, and version differences to avoid duplicate analysis.

[0076] A multi-stage fault retrieval and reasoning system based on a finite state machine, used to execute the above method, includes: The finite state machine management module is used to define and control the state transitions between the S1 phenomenon confirmation node, S2 mechanism analysis node, S3 root cause location node, and S4 repair solution output node, and to realize the controlled transfer of structured state objects. The node-level isolation module is used to configure independent search spaces, context templates, node-specific prompts, agent lists, verification rules and output schemas for each status node, and to clean up temporary contexts when switching nodes; The route dynamic scheduling module is used to implement the "default execution of the main route and conditional activation of the enhanced route" operation mode, and dynamically activates the enhanced route according to the input data type, knowledge resource conditions and audit requirements; The fusion layer module is used to perform deduplication, term alignment, confidence calibration, conflict detection, and manual arbitration on the intermediate results of each enabled route, generating a unified structured state object; The end-to-end traceability module is used to achieve evidence binding and version solidification through hash chains, write-ahead logs, event sourcing, or Merkle trees. Execution route dynamic activation and convergence rules: Each state node adopts the operation mode of "main execution route running by default, condition enhancement route being activated as needed, and state object being uniformly generated by the stage result convergence module"; when the input contains only text, the vector retrieval or rule retrieval main route is executed first; when a knowledge graph exists, the graph enhancement route is activated; when the input contains images, video frames, waveforms, or scanned documents, the multimodal route is activated; when the evidence is incomplete, the conclusions are conflicting, or probability comparison is required, the Bayesian route is activated; when historical fault samples and graph annotations are sufficient, the GNN auxiliary route is activated; when the audit requirements are high, the hash chain, Merkle tree, event tracing, or blockchain evidence storage route is activated; the weights of the routes that are not activated are reset to zero, and the outputs of the activated routes converge within a unified credibility space.

[0077]

[0078] A computer-readable storage medium storing computer instructions, which, when invoked, are used to execute the aforementioned multi-stage fault retrieval and reasoning method based on a finite state machine.

[0079] Beneficial effects: 1. This invention constructs four state nodes using a finite state machine. Each node is configured with an independent retrieval space, node-specific prompts, and output schema. This enables each stage of phenomenon confirmation, mechanism analysis, root cause localization, and repair solution output to only call a subset of knowledge that matches the current business objective. This effectively suppresses cross-stage semantic drift and generation out-of-bounds issues, and avoids the problems of false recall and context target offset in the same retrieval space of general RAG technology.

[0080] 2. This invention utilizes a dynamic scheduling mechanism that allows for the default execution of the main route within each node and the activation of enhanced routes based on conditions. This enables the activation of corresponding enhanced routes as needed in different scenarios such as text description, knowledge graphs, multimodal evidence, probabilistic reasoning, and high audit requirements. The enhanced routes are then uniformly converged through the fusion layer. This not only ensures execution efficiency in basic scenarios but also enables on-demand expansion of analytical capabilities in complex scenarios, significantly improving engineering applicability and deployment flexibility.

[0081] 3. This invention uses an evidence-driven multi-agent consultation mechanism to simultaneously awaken independent reasoning by multiple professional agents such as mechanical, material, process, and electronic agents. It standardizes the scoring of different agents by using historical labeled samples and calibration models, and incorporates multi-professional conclusions into the same credibility space with a conflict arbitration mechanism. This effectively solves the semantic discontinuity and conflict resolution difficulties of multi-source heterogeneous analysis conclusions, and improves the consistency and verifiability of multi-professional conclusions.

[0082] 4. This invention uses a qualitative and quantitative fusion verification mechanism to extract computable parameters from the evidence chain and automatically call fatigue life, strength verification, thermal analysis, electrical verification, or failure probability calculation templates for consistency verification. It also hashes the calculation process to the mechanism conclusion, so that the mechanism explanation and quantitative calculation results corroborate each other. This overcomes the shortcomings of existing AI-generated content that only stays at the level of qualitative text interpretation and improves the data support and engineering credibility of the analysis conclusion.

[0083] 5. This invention uses a knowledge graph causal reasoning and fault tree automatic mapping mechanism to map mechanistic conclusions and evidence entities into graph nodes, and then performs forward expansion and reverse cross-validation to generate causal links with confidence. It automatically maps these links into a fault tree structure containing AND gates, OR gates and common cause nodes, supports minimum cut sets and importance analysis, and solves the problem of lack of structured association between causal links, fault trees and remedial measures.

[0084] 6. This invention generates hash identifiers and binds source IDs for each stage of content through a full-process binding traceability mechanism. The state transition log records timestamps, operators, triggering conditions, and version differences. Each state change forms a new version and supports rollback. The retrieval fragments, Agent opinions, calculation processes, causal links, fault tree nodes, and repair suggestions are uniformly incorporated into an auditable evidence chain, effectively supporting the review of fault zeroing reports, version rollback, and responsibility tracing. It also provides a structured data foundation for the accumulation and reuse of historical fault cases. Attached Figure Description

[0085] Figure 1 This is the overall flowchart of the method of the present invention.

[0086] Figure 2 This is a flowchart of step one of the present invention.

[0087] Figure 3 This is a flowchart of step two of the present invention.

[0088] Figure 4 This is a flowchart of step three of the present invention.

[0089] Figure 5 This is a flowchart of step four of the present invention. Detailed Implementation

[0090] This invention provides a step-by-step multi-agent retrieval enhancement generation method and system for industrial fault analysis. The overall technical concept of this invention is as follows: A multi-stage retrieval and reasoning architecture for industrial faults based on finite state machines is constructed. Four state nodes are defined within the system: S1 Phenomenon Confirmation, S2 Mechanism Analysis, S3 Root Cause Location, and S4 Repair Solution Output. Each state node is configured with an independent retrieval space, reasoning objective, context template, callable analysis modules, node verification rules, and output schema. Through a closed-loop mechanism of "state entry—node retrieval—node reasoning—stage result convergence—node verification—state transition," each stage processes only authorized evidence and fields related to the current business objective.

[0091] The finite state machine can be represented as M=(Q, Σ, δ, q0, F), where: Q={S1, S2, S3, S4} is the set of states; Σ is the set of state transition events, including evidence supplementation completion, node verification passed, conflict not resolved, quantitative verification contradiction, and manual confirmation completion; δ is the state transition function that determines the next state based on the current state, the structured state object, and the verification result; q0=S1 is the initial state; and F is the final state after S4 outputs manual confirmation, experimental verification, and approval solidification.

[0092] The multi-stage retrieval reasoning described in this invention refers to setting retrieval targets, retrieval spaces, reasoning rules, callable tools, verification conditions, and output data structures for different fault analysis state nodes under finite state machine control. The system retrieves evidence related to the current business objective from the corresponding knowledge subset based on the current structured state object, and forms candidate conclusions by combining node-specific reasoning mechanisms. After stage result convergence and node verification, a structured state object visible in the next state is generated.

[0093] The retrieval includes one or more of the following: vector retrieval, keyword retrieval, knowledge graph query, multimodal retrieval, rule retrieval, and historical case retrieval; the reasoning includes one or more of the following: large model constraint reasoning, rule reasoning, multi-professional agent reasoning, Bayesian reasoning, causal graph reasoning, quantitative calculation verification, and fault tree mapping.

[0094] The overall technical approach is based on a multi-stage retrieval and reasoning system driven by finite state machines. S1 focuses on phenomenon evidence retrieval and phenomenon state construction; S2 focuses on mechanism knowledge retrieval, candidate mechanism reasoning, and qualitative and quantitative verification; S3 focuses on causal evidence retrieval, root cause reasoning, and FTA mapping; and S4 focuses on remediation rule and historical case retrieval, measure reasoning, and result solidification. Each state node has a main execution route and one or more conditional enhancement routes. The main execution route runs by default, while the conditional enhancement routes are dynamically activated based on the input data type, knowledge resource conditions, evidence uncertainty, and engineering audit requirements.

[0095] Intermediate results from each execution path are not directly used as the final conclusion of the node. Instead, they are submitted to the stage result convergence module, which performs terminology normalization, evidence binding, confidence calibration, conflict detection, and manual arbitration to generate a structured state object that satisfies the node output schema. Through this design, the present invention incorporates node-level retrieval, stage-specific reasoning, quantitative verification, FTA structure construction, and remedial measure generation into the same controlled state chain, suppressing cross-stage false recalls and context contamination, and maintaining the continuity of evidence between the results of each stage.

[0096] The core technological innovation mechanisms include: First, a multi-stage process control mechanism driven by finite state machines, which constrains the analysis scope through state entry, node execution, result verification, condition transition, circuit breaking, and rollback; Second, a node-level retrieval space, inference context, callable modules, and output schema isolation mechanism, ensuring that different stages only access knowledge and fields matching the current business objective; Third, a dynamic activation mechanism for the main execution route and condition enhancement route, which calls modules such as graphs, multimodal, professional intelligent agents, Bayesian, or GNN based on the input data type and evidence conditions; Fourth, a stage result convergence mechanism, which performs unified calibration, conflict detection, and manual arbitration on multi-source evidence and inference results; Fifth, a structured state object and version chain mechanism, which enables controlled transmission and full-process traceability of evidence chains, mechanism conclusions, FTA structures, remedial measures, and confirmation records.

[0097] Execution route dynamic activation and convergence rules: Each state node adopts an operation mode of "default operation of the main execution route, on-demand activation of conditional enhancement routes, and unified generation of state objects by the stage result convergence module." When the input contains only text, the vector retrieval or rule retrieval main route is executed first; when an industrial knowledge graph exists, the graph enhancement route is activated; when the input contains images, video frames, waveforms, or scanned documents, the multimodal route is activated; when the evidence is incomplete, the conclusions conflict, or probability comparison is required, the Bayesian route is activated; when historical fault samples and graph annotations are sufficient, the GNN auxiliary route is activated; when audit requirements are high, the hash chain, Merkle tree, event tracing, or blockchain evidence storage route is activated. The weights of inactive routes are reset to zero, and the outputs of activated routes converge within a unified credibility space.

[0098]

[0099] like Figure 1 As shown, the overall technical roadmap is based on a step-by-step RAG framework, with multi-agent diagnostics, knowledge graph causal reasoning, quantitative calculation verification, automatic FTA mapping, and full-process traceability as core enhancement mechanisms. Vector retrieval, graph retrieval, and multimodal retrieval are combined retrieval routes based on data conditions; multi-agent analysis, Bayesian inference, and physical constraint verification are combined analysis routes based on fault type; knowledge graph causal reasoning, probabilistic causal models, and GNN-assisted ranking are combined root cause localization routes based on the completeness of historical data. These routes are not forced to execute simultaneously in all scenarios, but are dynamically activated based on the main route according to the input data type, knowledge base conditions, and engineering verification requirements. Confidence calibration, conflict detection, and manual arbitration are performed at the fusion layer.

[0100] Through the above design, this invention overcomes the problems of cross-stage false recall and generation out of bounds in industrial fault analysis using general RAG, solves the problem of difficulty in unified expression and quantitative integration of conclusions from multiple disciplines, and incorporates qualitative mechanism explanation, quantitative calculation verification, FTA fault tree and repair scheme output into the same traceable analysis closed loop.

[0101] This invention comprises four core technical mechanisms, as detailed below: 1. Finite state machine-driven step-by-step RAG process control mechanism. Industrial fault analysis is divided into four state nodes: phenomenon confirmation, mechanism analysis, root cause location, and repair plan output. The analysis scope of the large model is controlled by state entry, node execution, result verification, and condition transition.

[0102] 2. Node-level retrieval space, generation context, agent list, and output schema isolation mechanism. This ensures that different stages only call the knowledge subset, prompt word template, validation rules, and output fields that match the current business objective, suppressing cross-stage false recalls, generation out-of-bounds errors, and context target offsets.

[0103] 3. Dynamic activation and fusion mechanism of main route and optional enhanced routes. A default main route is set in each state node, and graph, multimodal, Bayesian, GNN or evidence enhancement routes are enabled according to the input data type, knowledge resource conditions, evidence uncertainty and audit requirements. Then, the node fusion layer uniformly performs terminology normalization, evidence binding, confidence calibration, conflict detection and manual arbitration.

[0104] 4. A full-process binding and traceability mechanism for the evidence chain, mechanism conclusions, FTA structure, remediation measures, and version records. Retrieval fragments, agent opinions, calculation processes, causal links, FTA nodes, and remediation suggestions are uniformly incorporated into an auditable evidence chain.

[0105] Dynamic activation and convergence rules for parallel technology routes: The parallel technical routes within each state node S1-S4 all adopt the operation mode of "main route executed by default, enhanced route enabled under certain conditions, and unified convergence of the fusion layer".

[0106] When the input contains only text descriptions, the vector retrieval enhanced RAG main route is executed first; when a knowledge graph has been built or standardized relational data exists, the knowledge graph enhanced route is activated; when the input includes images, video frames, waveforms, scanned documents, or test report attachments, the multimodal hybrid retrieval route is activated; when the evidence is incomplete, the conclusions conflict, or probabilistic comparisons are required, the Bayesian inference route is activated; when historical fault samples, graph structures, and labeled root causes are sufficient, the GNN auxiliary route is activated; when there are high requirements for auditing, archiving, and accountability, the Merkle tree, event tracing, hash chain, or blockchain evidence storage enhanced route is activated. Each route does not directly form the final node conclusion, but instead submits intermediate results to the node fusion layer. After unified calibration and conflict handling, a structured state object is generated and used as the input for the next state node.

[0107] The detailed implementation of the phenomenon confirmation node in step S1 is as follows: (I) Node Input and Overall Processing Logic like Figure 2 As shown, the input of S1 is a text describing the fault phenomenon in JSON format. The fields include fault_phenomenon, occurrence_time, equipment_id, operating_condition, attachment_list, etc. The attachment_list is used to receive additional evidence such as fault pictures, test records, sensor waveforms or test reports.

[0108] The technical processing primarily utilizes node-level vector retrieval enhanced RAG as the main route; knowledge graph enhanced RAG is enabled in scenarios with an existing knowledge graph; and multimodal hybrid retrieval is enabled in scenarios where the input includes images, videos, waveforms, or detection report attachments. All routes input the same fault phenomenon, but the output must be standardized, consisting of phenomenon confirmation text, evidence lists, and verification records. Each route contains three sequential sub-modules.

[0109] (II) Parallel Technology Route A: Vector Retrieval Enhanced RAG Main Route Route A uses the Elasticsearch / Milvus vector database as its core, employing node-level index isolation, dual-path retrieval fusion, and a four-layer verification engine to achieve accurate material retrieval and generation constraints during the phenomenon confirmation stage. This route is the default route enabled in S1.

[0110] A1 Node-level Vector Retrieval Isolation: Based on the current state node identifier, the index alias or partition retrieval mechanism is invoked to retrieve only the subset of phenomenon confirmation knowledge such as failure_phenomenon_idx; Vector semantic retrieval and BM25 keyword retrieval are used in parallel, and Top-K related materials are generated by combining RRF, weighted fusion or Borda Count.

[0111] A2 Context Window Management: Search results, user input, and node-specific prompts are concatenated using a template and injected into the large model context window. Node-specific prompts limit the model to only describe the fault symptoms, occurrence conditions, observational evidence, and information to be supplemented; direct inferences about mechanisms or root causes are prohibited.

[0112] A3 Four-Layer Verification Engine: The terminology standardization layer aligns terms through entity recognition and a standard terminology library; the logic closed-loop layer verifies whether the fault object, fault mode, occurrence environment, and observation evidence are complete; the desensitization and interception layer replaces or masks sensitive parameters and classified identifiers; and the expression standardization layer reconstructs the output into an active, clearly structured technical description.

[0113] The configurable range of this route includes: vector database options include Elasticsearch, Milvus, Pinecone, Weaviate, and Qdrant; index types options include HNSW (M=8-32), IVF_FLAT, and Flat; embedding models options include text-embedding-3-large, bge-large-zh, m3e-base, and E5-large-v2; fusion algorithms options include weighted fusion, RRF (k=40-80), and Borda Count; entity recognition options include BiLSTM-CRF, BERT-BiLSTM-CRF, and RoBERTa-CRF; and de-identification algorithms options include SHA-256, AES-256-GCM, SM4, and BLAKE3.

[0114] (III) Parallel Technology Route B: Knowledge Graph Augmentation RAG Optional Route Route B, centered on knowledge graphs, is implemented within scenarios that utilize existing knowledge graphs of equipment, failure modes, phenomena, standard clauses, and historical cases. This route replaces or supplements vector retrieval with graph semantic retrieval, leveraging ontology constraints to improve the consistency and verifiability of phenomenon descriptions.

[0115] B1 Knowledge Graph Semantic Retrieval: Construct a fault phenomenon knowledge graph based on a unified RDF Schema or attribute graph model, and map fault descriptions to graph nodes through entity links; use SPARQL / Cypher to query related phenomena, equipment components, standard clauses and historical cases, and complete implicit relationships through OWL, SHACL or rule reasoning.

[0116] B2 Structured Context Templates: Based on the graph query results, Jinja2 / Mustache templates are used to populate the structured context, clearly defining the phenomenon description, associated equipment, observation conditions, relevant standards, and case evidence, reducing context drift caused by free text splicing.

[0117] B3 Ontology + Rule Hybrid Validation: The ontology reasoning layer verifies conceptual consistency; the rule validation layer performs industry standard compliance checks; the data validation layer verifies the integrity of output fields through SHACL constraints; and the AI-assisted layer standardizes textual expressions.

[0118] The configurable range of this route includes: graph database options such as Neo4j, JanusGraph, Amazon Neptune, and TigerGraph; ontology language options such as OWL2 DL, RDF Schema, SHACL, and SKOS; inference engine options such as HermiT, Pellet, FaCT++, and RDFox; template engine options such as Jinja2, Mustache, and Handlebars; rule language options such as SWRL, SHACL, SPIN, and Datalog; and style model options such as T5, BART, and fine-tuning of large models.

[0119] (iv) Parallel technology route C: Multimodal hybrid retrieval option Route C is used for scenarios containing unstructured evidence such as fault images, video frames, waveforms, and scanned copies of inspection reports. It supplements the evidence by combining image and text retrieval and fine-grained text matching.

[0120] C1 Multimodal Hybrid Retrieval: It uses CLIP, BLIP-2 or LLaVA to extract keyframe features from images / videos, and combines them with fine-grained text matching models such as ColBERT and SPLADE to perform cross-modal similarity calculations on image and text evidence, generating Top-K materials related to the fault phenomenon.

[0121] C2 Contextual Fidelity Slicing: Employs Late Chunking, Contextual Retrieval, or dynamic token budgeting mechanisms to preserve contextual relationships in detection reports, test records, and long documents, avoiding semantic breaks caused by traditional slicing followed by encoding.

[0122] C3 AI-driven intelligent verification: It uses cross-encoders or NLI models to evaluate the consistency between generated content and retrieved evidence; it identifies sensitive information through security detection models; and it evaluates the standardization of technical document expressions through BERTScore or manual rules.

[0123] The configurable range of this route includes: visual encoder options: CLIP, BLIP-2, LLaVA, SAM; text matching options: ColBERT, SPLADE, DRAGON; chunking options: Late Chunking, Meta-Chunking, ContextualRetrieval; quality assessment options: DeBERTa, BERTScore, large model scoring; fact verification options: FEVER, ClaimVerify, custom NLI model; security detection options: PiiGuard, Presidio, regularization + ML hybrid.

[0124] (V) S1 Result Fusion Layer The result sets of each enabled route are deduplicated, terminology aligned, and evidence source bound, prioritizing entries with standardized terminology, clear evidence sources, and complete fields. Semantic matching scores, graph matching scores, and multimodal similarity scores are normalized and confidence levels calibrated before calculating a comprehensive score. Weights for unenabled routes are reset to zero and re-normalized. When significant differences exist in the outputs of different routes, conflict resolution is performed based on evidence source level, historical calibration weights, and manual review results. The output format includes a phenomenon description, observation conditions, evidence number, verification results, and fields to be supplemented, for use by S2.

[0125] (vi) S1 flow direction control S1 does not output mechanistic judgments or root cause conclusions, but only outputs verified phenomenon state objects. These state objects include standardized fault phenomena, fault objects, fault modes, occurrence environments, observational evidence, evidence numbers, field completeness scores, fields to be supplemented, anonymized records, and verification results. When key fields are complete, evidence sources are traceable, anonymization verification passes, and confirmation is obtained through at least one independent verification mechanism, a state transition from S1 to S2 is triggered. If key evidence is missing, an interactive supplementary evidence process is initiated. S2 generates mechanistic hypotheses solely based on this phenomenon state object, newly added experimental data, historical case evidence, and supplementary detection data, avoiding direct contamination of the mechanistic analysis node by the temporary search context formed in the S1 stage.

[0126] The detailed implementation of the mechanism analysis node in step S2 is as follows: (I) Node Input and Overall Processing Logic like Figure 3 As shown, the inputs to S2 are the output of step S1, the user's initial test data, historical case evidence, and supplementary test data.

[0127] The technical processing primarily employs an evidence-driven multi-agent consultation approach. In scenarios with sufficient historical samples, sensor interfaces, and standardized detection tasks, an evidence collection strategy can be used to optimize the approach. In scenarios with incomplete evidence, noise, or the need for probabilistic representation, a distributed Bayesian inference approach can be employed. The outputs of each approach are uniformly presented as mechanistic hypotheses, evidence chains, confidence levels, conflict terms, and quantitative verification results.

[0128] (II) Parallel Technical Route A: Evidence-Driven Multi-Agent Consultation Main Route Route A employs a unified evidence model to manage fault evidence. It utilizes independent reasoning by specialized agents in mechanical, material, process, electronic, and environmental fields, followed by confidence level calibration and conflict arbitration to arrive at mechanistic analysis conclusions. This route is the default route enabled in S2.

[0129] A1 Evidence Gap Identification and Interactive Completion: Based on RDF Schema, SHACL constraints, or field integrity rules, compare S1 output and experimental data to identify missing key evidence such as material grade, load conditions, ambient temperature, runtime, and testing methods; generate high / medium / low priority follow-up questions according to the degree of impact, and write supplementary evidence into the cached evidence graph.

[0130] A2 Multi-Agent Parallel Confidence Fusion: The event bus simultaneously awakens specialized agents such as mechanical design, material failure, process quality, and electrical and electronic agents. Each agent generates its own mechanism assumptions, supporting evidence, counter-evidence, and confidence level based on its proprietary knowledge base, standard specifications, and historical cases. Before fusion, the scores of different agents are standardized using historical labeled samples, manually verified records, or model calibration to avoid directly adding semantic similarity, rule hit rate, and model self-score.

[0131] A3 Qualitative and Quantitative Fusion Verification: Extract computable parameters from the evidence chain and call preset fatigue life, strength verification, thermal analysis, electrical verification, or failure probability calculation templates; for complex finite element and other scenarios that require manual confirmation, generate a list of calculation inputs, boundary condition suggestions, and verification rules, which are then confirmed by professionals before the calculation is executed, and the calculation process is hashed and bound to the mechanism conclusion.

[0132] The configurable range of this route includes: ontology language options include RDF Schema, OWL2 DL, and SHACL; inference engine options include SPARQL / Cypher, HermiT, Pellet, and FaCT++; fusion algorithm options include weighted voting, Dempster-Shafer, Bayesian inference, and confidence calibration; event bus options include Kafka, RabbitMQ, and Redis Pub / Sub; quantitative tools options include fatigue life API, FEniCS, ANSYS, Abaqus, and dedicated calculation templates; and consistency verification options include rule engine, SMT solver, Monte Carlo, and manual verification.

[0133] (III) Parallel Technical Route B: Optional Route for Evidence Collection Strategy Optimization Route B is used in scenarios with standardized detection processes, automated data acquisition interfaces, and historical training samples. This route does not directly replace manual detection decisions, but is used to generate supplementary evidence priorities and detection recommendations.

[0134] B1 Strategy-Driven Evidence Collection Recommendations: Construct an evidence priority model based on evidence completeness, historical case similarity, testing costs, and diagnostic benefits; when sufficient interactive samples are available, D3QN, PPO, or SAC can be used to optimize the evidence collection order, but manual confirmation should be retained for testing equipment scheduling and key test execution.

[0135] B2 Multi-source information representation fusion: Employing Multi-Modal Transformer, Perceiver IO, or Cross-Attention architectures, textual evidence, numerical data, image evidence, and sensor data are encoded into a unified representation, outputting candidate mechanisms and their key evidence contributions.

[0136] B3 Physical Constraint Verification: Physical rules or PINN soft constraints such as mechanical equilibrium, energy conservation, material strength boundaries, and electrical rating constraints are introduced to check the consistency of the mechanism assumptions; conclusions that do not meet the physical constraints are marked as pending review, rather than being directly used as the final conclusion.

[0137] The configurable range of this route includes: policy algorithms such as rule sorting, D3QN, PPO, SAC, and TD3; acquisition interfaces such as WSN, LoRa, 5G MEC, ZigBee, and manual input; fusion architectures such as Multi-Modal Transformer, Cross-Attention, and Perceiver IO; physical constraints such as PINN, rule constraints, and hard constraint projection; numerical encoding options such as normalization, logarithmic transformation, and bucketing; and verification criteria such as error threshold, σ < σ_yield, N_f reasonable range, and expert confirmation.

[0138] (iv) Parallel Technology Route C: Distributed Bayesian Inference Option Route Route C is used in scenarios where the evidence is incomplete, the conclusion is uncertain, or a probabilistic comparison of competing mechanisms is required. It expresses the conditional dependencies between failure mechanisms through a Bayesian network.

[0139] C1 Distributed Bayesian Evidence Inference: Construct a modular Bayesian network, with each physical subsystem corresponding to a sub-network; transform the S1 output, experimental data, and historical cases into evidence node probability distributions, and calculate the posterior probability through Loopy BeliefPropagation, variational inference, or importance sampling.

[0140] C2 Multi-source evidence probability fusion: Jeffrey rule, Dempster-Shafer evidence theory or Yager rule are used to handle evidence updates and conflicting evidence; when the conflict coefficient exceeds the threshold, the source of the conflict is marked and a request for supplementary evidence or manual arbitration is triggered.

[0141] C3 Statistical Consistency Check: Compares competing mechanisms, such as fatigue fracture, corrosion failure, assembly defects, or overload failure, through MCMC sampling, Bayesian factor analysis, and sensitivity analysis; when the Bayesian factor is insufficient to support a clear conclusion, it outputs a low confidence indicator and a suggestion for supplementary evidence.

[0142] The configurable range of this route includes: Bayesian framework options include PyMC, Stan, and TensorFlow Probability; inference algorithms options include Loopy BP, variational inference, and importance sampling; evidence fusion options include Jeffrey rules, Dempster-Shafer, and Yager rules; MCMC sampling options include NUTS, HMC, and Gibbs sampling; conflict resolution options include Yager rules, Murphy averaging, and manual arbitration; and significance criteria options include BF>3 (general), BF>10 (strong), and BF>100 (extremely strong).

[0143] (v) S2 Result Fusion Layer The system summarizes the evidence chains, mechanistic assumptions, quantitative calculation results, and counter-evidence information for each enabled route; it maps the Agent confidence, model prediction confidence, and Bayesian posterior probability to a unified confidence space and records the scoring source, calibration method, and applicable boundaries; when the conflict of conclusions exceeds the threshold, it prioritizes triggering a request for supplementary evidence; if the conflict still cannot be resolved, it proceeds to manual arbitration and the arbitration result is fed back to the weight update module; the fusion output includes the mechanistic conclusion, supporting evidence, counter-evidence, calculation verification results, and matters to be reviewed.

[0144] (vi) S2 flow direction control The mechanistic hypotheses, supporting evidence, counter-evidence, confidence levels, quantitative calculation results, and conflict resolution records output by S2 are converted into causal reasoning state objects before entering S3. These objects are mapped into phenomenon nodes, mechanism nodes, component nodes, environmental nodes, process nodes, and experimental data nodes in the knowledge graph through entity links, terminology normalization, and evidence number mapping, providing structured input for bidirectional causal tracing and FTA rule mapping. S3 is entered when the evidence completeness reaches a set threshold, key conflicts are resolved, and there are no obvious contradictions between qualitative interpretation and quantitative verification; otherwise, it returns for supplementary evidence or manual review.

[0145] The detailed implementation of the root cause localization node in step S3 is as follows: (I) Node Input and Overall Processing Logic like Figure 4 As shown, the inputs to S3 are the full evidence data from step S2, the fusion mechanism conclusions, the quantitative verification results, and the conflict resolution records.

[0146] The technical processing primarily utilizes knowledge graph causal reasoning and FTA rule mapping; causal Bayesian networks are employed in scenarios requiring probabilistic root cause ranking; and GNNs are used to assist in root cause ranking and potential path recommendation in scenarios with sufficient historical fault data. The outputs of each approach are uniformly presented as root cause candidates, causal links, evidence strength, and FTA candidate structures.

[0147] (II) Parallel Technical Route A: Knowledge Graph Causal Reasoning Main Route Route A, centered on knowledge graphs and fault mechanism rules, achieves root cause localization through semantic alignment, bidirectional causal tracing, and FTA rule mapping. This route is the default route enabled in S3.

[0148] A1 Knowledge Graph Semantic Alignment: Construct a unified RDF Schema or attribute graph model to map mechanism conclusions, evidence entities, component structures, technological processes, environmental conditions, and historical cases into graph nodes; use entity linking, relation extraction, and vector alignment to resolve terminology and evidence granularity differences between S1 and S2.

[0149] A2 Bidirectional Causal Reasoning: Starting from the fault phenomenon and mechanism nodes, a forward path is extended to generate candidate causal links; the candidate root cause nodes are traced back to the phenomenon nodes for cross-validation; the path confidence is calculated by the strength of evidence, rule hit, historical case support and rebuttal penalty.

[0150] A3 FTA Automatic Fault Tree Mapping: Maps verified causal links to intermediate and bottom events in the fault tree. AND gates are used in scenarios where multiple bottom events must occur simultaneously to cause a higher-level event; OR gates are used in scenarios where any bottom event can independently cause a higher-level event; common cause events are marked with a common cause node to avoid duplicate counting; events with insufficient evidence are marked as pending confirmation nodes, and the automatic calculation of the top event probability is blocked.

[0151] The configurable range of this route includes: entity links (R-GCN, TransE, BERT similarity, rule mapping); graph databases (Neo4j, JanusGraph, Neptune); causal models (rule-based causality, DoWhy, CausalNex, Neural Causal); traversal algorithms (DFS, BFS, GAT attention traversal); FTA methods (classical FTA, Bayesian FTA, fuzzy FTA); and FTA standards (GJB / Z 768A, IEC 61025, MIL-STD-1629A).

[0152] (III) Parallel Technology Route B: Causal Bayesian Network Option Route Route B is used in scenarios where there are probabilistic dependencies between root causes, the evidence is uncertain, or confidence intervals need to be output. This route generates root cause ranking through probability propagation and assists in the construction of probabilistic FTAs.

[0153] B1 CBN Causal Bayesian Modeling: This approach combines expert knowledge with data-driven methods to construct causal Bayesian networks, avoiding spurious causality caused by relying solely on data learning. Structure learning algorithms such as PC and GES are only used to propose candidate dependencies; the final DAG structure must be validated using domain rules and expert constraints.

[0154] B2 Probabilistic Propagation Inference: Calculates the posterior probability of root causes using variable elimination, connection trees, or approximate inference, supports Bayesian updates after adding new evidence, and outputs Top-K root causes, confidence intervals, and sensitivity ranking.

[0155] B3 Probabilistic FTA Mapping: Maps the root cause nodes of CBN to probabilistic FTA base events; uses the AND / OR gate probability formula when the independence assumption is satisfied; for non-independent events or events with common causes, uses BDD, Monte Carlo, or conditional probability correction methods to calculate the minimum cut set probability distribution.

[0156] The configurable range of this route includes: structural learning options include PC algorithm, GES, and expert constraint hybrid strategy; inference algorithms options include variable elimination, connection tree, and approximate inference; probability updates options include Bayesian update, online learning, and incremental inference; PFTA methods options include BDD traversal, Monte Carlo simulation, and analytical computation; uncertainty options include confidence interval, probability distribution, and sensitivity analysis; and output standards options include GJB / Z 768A extension and custom PFTA standards.

[0157] (iv) Parallel technology route C: Deep learning graph network assisted route Route C is used in scenarios where historical fault samples, graph structures, and labeled root causes are relatively abundant. GNN is used for candidate root cause ranking, implicit association hints, and potential path recommendation, but does not directly replace engineering causality determination and FTA logic gate configuration.

[0158] C1 GNN graph embedding learning: Construct heterogeneous graphs where nodes include fault phenomena, failure modes, root causes, components, environmental factors, and process factors; edges include causal relationships, statistical associations, temporal dependencies, and structural dependencies; and learn node and path representations using R-GCN, HGT, GAT, or GraphSAGE.

[0159] C2 Attention-Assisted Causal Mining: This approach identifies high-contribution paths through attention mechanisms and filters out spurious correlations by combining causal regularization, temporal constraints, and domain rules. Attention weights serve only as indicators of candidate evidence strength and are not directly equivalent to causal relationships.

[0160] C3 FTA candidate structure generation: Based on the node importance and path ranking of the GNN output, FTA candidate structures are generated, and then the final hierarchical relationship and logic gate type are determined by fault mechanism rules, expert constraints and evidence integrity verification.

[0161] The configurable range of this route includes: GNN architecture options include R-GCN, HGT, GAT, and GraphSAGE; attention mechanisms options include multi-head attention, edge attention, and hierarchical attention; causal regularization options include CD-reg, IRM, and causal constraint loss; candidate generation options include rule templates, Transformer, T5, and BART; structural optimization options include REINFORCE, PPO, and expert rule optimization; and optimization objectives options include cut set coverage, tree depth, interpretability, and auditability.

[0162] (v) S3 Result Fusion Layer The terminology is normalized and evidence is bound to the root cause rankings, causal links and FTA candidate structures generated by each enabled route; the root cause confidence is integrated based on historical performance, evidence strength, rule hit rate and confidence calibration results, and confidence intervals are marked; the FTA structures are checked for no isolated events, logic gate closure, common cause identification, minimum cut set rationality and evidence coverage; the contribution of each model and each piece of evidence to the final root cause conclusion is recorded to support subsequent auditing and manual review.

[0163] (vi) S3 flow direction control The root cause node, causal chain, FTA intermediate events, FTA bottom events, logic gates, minimum cut sets, importance analysis results, events to be confirmed, and evidence binding relationships output by S3 serve as the main constraints for generating remediation solutions in S4. S4 does not directly generate remediation suggestions based on the root cause text, but rather matches remediation rules and handling experience based on the root cause type, failure mode, standard clauses, historical zeroing cases, and verification requirements corresponding to the FTA bottom events. S4 proceeds only when the root cause chain is traceable, the FTA logical completeness verification passes, and key events to be confirmed are addressed; otherwise, it returns to S2 for supplementary evidence or expert review.

[0164] The detailed implementation of the output node for step S4 repair scheme is as follows: (I) Node Input and Overall Processing Logic like Figure 5 As shown, the inputs to S4 are the root cause conclusion from step S3, FTA data, chain of evidence, calculation results, and manual verification records.

[0165] The technical processing primarily uses rule-based and case-based reasoning to generate remediation suggestions. Generative AI assistance is employed in scenarios requiring complex solutions. Enhancement mechanisms such as Merkle trees, event tracing, or blockchain evidence storage are used in scenarios with high audit requirements. The system outputs remediation suggestions, verification suggestions, and a draft zeroing report. Formal engineering procedures require manual confirmation, experimental verification, and a closed-loop approval process.

[0166] (II) Parallel Technical Route A: Rule-based Reasoning and Source Tracing Main Route Route A uses a rule engine and case-based reasoning to generate repair suggestions, and achieves full-process traceability through hash chains and WAL logs. This route is the default route enabled in S4.

[0167] The A1 rule reasoning engine generates repair suggestions: Based on root cause type, failure mode, FTA bottom event, and standard specifications, it calls the Drools, Easy Rules, or Camunda rule engine to generate repair suggestions such as structural improvement, process adjustment, material review, inspection enhancement, and operational restrictions; it also uses CBR case reasoning to retrieve similar historical zero-case cases to supplement handling experience.

[0168] A2 SHA-256 full-process traceability: Generate hash identifiers for phenomenon confirmation text, mechanism conclusion, root cause link, FTA node, calculation process, manual confirmation record and repair suggestion, and bind them to the retrieval fragment ID, Agent opinion ID, reasoning link ID and calculation process ID to form a traceable evidence chain.

[0169] A3 WAL state machine archiving: The state transition log records timestamps, operators, triggering conditions, verification results, and version differences in an append-only manner; version solidification and audit tracing are accomplished through Git differential storage, SM2 digital signatures, or equivalent signature mechanisms.

[0170] The configurable range of this route includes: rule engine options: Drools, Easy Rules, Camunda; case library size: 100-10000 records; hash algorithm options: SHA-256, BLAKE3, SM3; version management options: WAL logs, Git differential, SVN; digital signature options: RSA-2048, SM2 national cryptography, ECDSA; archiving strategy options: full, incremental, differential, snapshot.

[0171] (III) Parallel Technology Route B: Optional Route for Generative AI-Assisted Solutions Route B is used for scenarios involving complex faults that require the generation of multiple repair alternatives. The large model is only used to assist in the formation of draft solutions, verification lists, and risk warnings, and does not directly replace engineering approval.

[0172] B1 LLM Generative Remediation Recommendations: Inputting root cause conclusions, FTA data, historical case libraries, and company standards, it generates structured remediation recommendations, including action details, applicable conditions, risk points, verification methods, and parameters requiring manual verification. The RAG (Regulatory Intelligence Group) injects company knowledge base and standard clauses to constrain the boundaries of the large model generation.

[0173] B2 Evidence Enhancement Mechanism: For scenarios with high audit requirements, the summary of repair suggestions, traceability hash, approval records and version identifiers can be written into the private chain or consortium chain; for general scenarios, the traceability requirements can be met by using a local hash chain, WAL log and digital signature.

[0174] B3 Differentiated Version Management: Uses Git LFS, MinIO, or object storage to manage large files, generates a diff for each modification, supports historical version rollback, manual confirmation of record association, and multi-location backup.

[0175] The configurable range of this route includes: large model options such as GPT-4, Claude, Llama, Wenxin Yiyan, and private large model; RAG framework options such as LangChain, LlamaIndex, and Haystack; evidence storage options such as HashChain, HyperledgerFabric, Quorum, and Chang'an Chain; storage options such as Git LFS, MinIO, OSS, and IPFS; consensus mechanism options such as PBFT, Raft, and custom BFT; and deployment options such as local deployment, private chain, consortium chain, and BaaS.

[0176] (iv) Parallel Technology Route C: Hybrid Intelligent Reasoning and Event Archiving Optional Route Route C integrates case reasoning and large model generation capabilities, and improves tracing efficiency and auditing capabilities through Merkle trees or Event Sourcing. It is suitable for scenarios involving multiple rounds of modifications, multi-person collaboration, and high-frequency review.

[0177] C1 CBR+LLM Hybrid Reasoning: First, CBR retrieves Top-K similar historical cases, and the case measures, verification results, and risk lessons are used as context input to LLM; LLM generates candidate remediation suggestions based on case analogies, and selects available solutions through self-consistent voting, rule verification, and manual review.

[0178] C2 Merkle Tree Full-Link Tracing: Merkle trees are constructed using the content hashes of each stage as leaf nodes, supporting existence verification of any evidence, conclusion, or repair suggestion; privacy enhancement mechanisms such as zero-knowledge proofs are only optional implementations for special security needs.

[0179] C3 Event Sourcing: All state changes are persisted as an immutable event stream, supporting state reconstruction at any point in time; CQRS is used to separate read and write operations, and audit tracing and fault recovery are achieved through event replay.

[0180] The configurable range of this route includes: CBR engine options: SimCase, jColibri, or a custom implementation; similarity metrics options: cosine, Jaccard, Euclidean distance, or edit distance; LLM framework options: LangChain, Semantic Kernel, or AutoGen; Merkle proof options: SPV, batch proof, or zero-knowledge proof; event storage options: EventStoreDB, Kafka, or Pulsar; and CQRS framework options: Axon, EventFlow, or a custom implementation.

[0181] (v) S4 Result Fusion Layer The remediation recommendations generated by combining rule-based reasoning, case-based reasoning, and generative AI are ranked according to standard compliance, historical case support, risk level, and verification feasibility. Inconsistent remediation recommendations are marked with conflict reasons and subject to manual review, experimental verification, or expert evaluation. Each remediation recommendation is bound to a root cause node, FTA-based event, evidence number, calculation result, and version difference information to ensure traceability of the measure's origin. The fusion output includes remediation recommendations, verification plans, risk control items, a draft zeroing report, and audit trail documents.

[0182] (vi) S4 flow direction control The S4 output is the final draft, which, after manual verification, validation testing, and approval, forms a formal fault-zeroing report. Each remediation suggestion is bound to the corresponding root cause node, FTA-based event, evidence number, calculation result, manual verification record, and version difference information. Validation testing and approval results can be written back into the historical case library, rule library, weight calibration data, or model evaluation data for case reuse, rule optimization, and confidence calibration in subsequent similar fault analyses.

[0183] Inter-step isolation and connection mechanism (a) Structured State Object Transfer Mechanism State nodes are not directly linked through free text context, but rather through controlled transmission using structured state objects. Each state object includes at least a node identifier, input data summary, standardized business fields, evidence ID, evidence source, confidence level, verification result, conflict resolution record, manual confirmation record, version identifier, and a list of fields visible to the next node. During node switching, the current node's temporary retrieval context, draft reasoning process, and cached materials are cleared; necessary phenomena descriptions, evidence chains, calculation results, FTA structures, and confirmation records are passed to the next node via state objects. The next state node can only read fields permitted by its business objectives and reorganizes the context according to its node-specific schema, thereby avoiding cross-node context pollution and out-of-bounds conclusions.

[0184] (ii) State object version management mechanism Each state transition, manual verification, conflict arbitration, quantitative calculation, FTA structure adjustment, and modification of repair suggestions creates a new version of the state object, recording the triggering reason, modified fields, responsible party, verification results, and version differences. If subsequent nodes experience missing evidence, unresolved conflicts, or contradictory quantitative verifications, the state object version chain can be reverted to the previous stable state, retaining the failure reason, correction suggestions, and difference records. This supports the review, auditing, and zeroing-down verification of the fault analysis process.

[0185] (iii) Search space isolation Each state node is configured with an independent knowledge subset, index alias, graph namespace, or permission domain. S1 accesses only phenomenon confirmation knowledge, S2 accesses mechanism analysis and experimental data knowledge, S3 accesses the causal graph and FTA rule base, and S4 accesses repair rules, historical zeroing cases, and audit templates to prevent cross-stage material erroneous recall that could lead to out-of-bounds generation.

[0186] (iv) Generate context isolation When switching nodes, the current node's temporary context, retrieval cache, and intermediate inference records are cleared; the model generation scope is constrained by the node's specific Prompt, context template, and output schema. For evidence chains, verification results, and manual confirmation records that need to be retained, they are only passed to the next node as structured state objects.

[0187] (v) Runtime isolation In lightweight deployments, process address spaces or Python namespaces can be used for isolation; in high-security or multi-department collaboration scenarios, each status node can be deployed as an independent microservice container, and runtime environment isolation can be achieved through service mesh, interface authentication, and traffic policies.

[0188] (vi) State transition mechanism Node switching signals are captured via event listeners or state machine schedulers, and the node's dedicated configuration file is automatically loaded, including retrieval parameters, Prompt template path, Agent wake-up list, verification rule set, and output schema. State transition conditions are jointly determined by field integrity, evidence traceability, conflict resolution results, de-identification verification, and manual confirmation results.

[0189] (vii) Circuit breaker and rollback mechanism When a single node fails to verify consecutively for more than a set threshold, or when there are situations such as missing key evidence, unresolved conflicting conclusions, or contradictory quantitative verification, the process is triggered to shut down and roll back to the previous stable node. The rollback process retains the reasons for failure, correction suggestions, and version differences to avoid duplicate analysis.

[0190] The configurable scope of this invention includes: isolation architecture options such as index isolation, Python namespace, microservice containers, virtual machines, and serverless; container orchestration options such as Kubernetes, Docker Swarm, and OpenShift; service mesh options such as Istio, Linkerd, and Consul Connect; configuration center options such as local JSON, Apollo, Nacos, and Consul; circuit breaker framework options such as Sentinel, Hystrix, and Resilience4j; and state persistence options such as WAL logs, Event Sourcing, snapshots, and databases.

[0191] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., 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 multi-stage fault retrieval and reasoning method based on finite state machines, characterized in that, include: A multi-stage fault retrieval and reasoning architecture based on finite state machines is constructed. Four state nodes are defined in the system: S1 Phenomenon Confirmation, S2 Mechanism Analysis, S3 Root Cause Location, and S4 Repair Solution Output. Each state node is configured with an independent retrieval space, reasoning target, context template, callable analysis module, node verification rules, and output schema. Through a closed-loop mechanism of "state entry - node retrieval - node reasoning - stage result convergence - node verification - state transition", each stage processes authorized evidence and fields only around the current business objective. The finite state machine is represented as M=(Q, Σ, δ, q0, F), where: Q={S1, S2, S3, S4} is the set of states; Σ is the set of state transition events, including evidence supplementation completion, node verification passed, conflict not resolved, quantitative verification contradiction, and manual confirmation completion; δ is the state transition function that determines the next state based on the current state, the structured state object, and the verification result; q0=S1 is the initial state; and F is the final state output by S4 after manual confirmation, experimental verification, and approval. The multi-stage retrieval reasoning refers to setting retrieval targets, retrieval spaces, reasoning rules, callable tools, verification conditions, and output data structures for different fault analysis state nodes under the control of a finite state machine. The system retrieves evidence related to the current business objective from the corresponding knowledge subset based on the current structured state object, and forms candidate conclusions by combining the node-specific reasoning mechanism. After the stage results converge and the node is verified, a structured state object visible in the next state is generated. The retrieval includes one or more of the following: vector retrieval, keyword retrieval, knowledge graph query, multimodal retrieval, rule retrieval, and historical case retrieval; the reasoning includes one or more of the following: large model constraint reasoning, rule reasoning, multi-professional agent reasoning, Bayesian reasoning, causal graph reasoning, quantitative calculation verification, and fault tree mapping. The overall technical approach is based on a multi-stage retrieval and reasoning driven by a finite state machine. S1 focuses on phenomenon evidence retrieval and phenomenon state construction; S2 focuses on mechanism knowledge retrieval, candidate mechanism reasoning, and qualitative and quantitative verification; S3 focuses on causal evidence retrieval, root cause reasoning, and FTA mapping; and S4 focuses on repair rule and historical case retrieval, measure reasoning, and result solidification. Each state node is configured with a main execution route and one or more condition enhancement routes. The main execution route runs by default, while the condition enhancement routes are dynamically activated based on the input data type, knowledge resource conditions, evidence uncertainty, and engineering audit requirements. Intermediate results from each execution path are not directly used as the final conclusion of the node, but are submitted to the stage result convergence module. This module performs terminology normalization, evidence binding, confidence calibration, conflict detection, and manual arbitration to generate a structured state object that meets the node output schema. Through the above design, node-level retrieval, stage-specific reasoning, quantitative verification, FTA structure construction, and remedial measures generation are incorporated into the same controlled state chain, suppressing cross-stage false recalls and context pollution, and maintaining the continuity of evidence between the results of each stage. Each node operates using a default main route execution, conditional activation of enhanced routes, and unified convergence of the fusion layer. The main route consists of S1 (node-level vector retrieval enhanced RAG), S2 (evidence-driven multi-agent consultation), S3 (knowledge graph causal reasoning + FTA mapping), and S4 (rule reasoning + case reasoning). Enhanced routes include one or more of the following: knowledge graph, multimodal, Bayesian, graph neural network, or evidence enhancement. Each route submits intermediate results to the fusion layer, which, after calibration and conflict handling, generates a structured state object as input for the next node. By isolating the node-level retrieval space, generation context, agent list, and output schema, each stage only calls the knowledge subset and verification rules that match the current business objective; By binding and tracing the entire process, the search fragments, agent opinions, calculation process, causal links, fault tree nodes and remediation suggestions are incorporated into an auditable evidence chain; Controlled transfer of state objects between nodes is performed. When switching nodes, the temporary context is cleaned up, and only the structured state object is allowed to be passed to the next node.

2. The method according to claim 1, characterized in that, The aforementioned operating mode of "default execution of the main route, conditional activation of enhanced routes, and unified convergence of the fusion layer" specifically includes: For S1, when the input contains only text description, the vector retrieval enhanced RAG main route is executed first. When a knowledge graph has been built or standardized relational data exists, activate the knowledge graph enhancement route; When the input includes images, video frames, waveforms, scanned documents, or test report attachments, a multimodal mixed search route is enabled; For S2, when the evidence is incomplete, the conclusions are conflicting, or probabilistic comparisons are required, the Bayesian inference route is activated. For S3, when there are sufficient historical fault samples, graph structure, and labeled root causes, the GNN-assisted route is enabled. For S4, when there are high requirements for auditing, archiving, and accountability, enable Merkle tree, event sourcing, hash chain, or blockchain evidence enhancement routes.

3. The method according to claim 1, characterized in that, The node-level isolation mechanism includes: Search space isolation: Each state node is configured with an independent knowledge subset, index alias, graph namespace or permission domain; Context isolation is generated: when switching nodes, the temporary context, retrieval cache and intermediate inference records of the current node are cleared, and the model generation range is constrained by node-specific prompt words, context templates and output schema; Agent list isolation: Each state node is configured with an independent Agent wake-up list; Runtime isolation: Each state node is deployed as an independent microservice container; The structured state object includes at least a node identifier, input data summary, standardized business fields, evidence ID, evidence source, confidence level, verification result, conflict resolution record, manual confirmation record, version identifier, and a list of fields visible to the next node. The next state node can only read the fields allowed by its business objectives and reorganize the context according to the node-specific schema.

4. The method according to claim 1, characterized in that, The full-process binding and traceability mechanism includes: Hash identifiers are generated for phenomenon confirmation text, mechanism conclusion, root cause link, fault tree node, calculation process, manual confirmation record and repair suggestion, and bound to the retrieval fragment ID, Agent opinion ID, inference link ID and calculation process ID respectively; The state transition log records timestamps, operators, triggering conditions, verification results, and version differences in an append-only manner, and completes version solidification and audit tracking through digital signatures; Each state transition, manual verification, conflict arbitration, quantitative calculation, fault tree structure adjustment, and repair suggestion modification creates a new version of the state object, and records the triggering reason, modified fields, responsible party, verification result, and version differences. If subsequent nodes experience missing evidence, unresolved conflicts, or contradictory quantitative verifications, the state object version chain is used to revert to the previous stable state.

5. The method according to claim 1, characterized in that, In step S1, the phenomenon confirmation node, the main route is node-level vector retrieval enhanced RAG, which specifically includes: calling the index alias or partition retrieval mechanism based on the current state node identifier to retrieve only the subset of phenomenon confirmation knowledge; using vector semantic retrieval and BM25 keyword retrieval in parallel, and combining RRF, weighted fusion or Borda Count to generate Top-K related materials; injecting the retrieval results, user input and node-specific prompts into the large model context window by splicing them according to the template, wherein the node-specific prompts limit the model to only describe the fault symptoms, occurrence conditions, observation evidence and information to be supplemented, and prohibit direct inference of mechanisms or root causes; and performing output verification through a four-layer verification engine composed of a terminology standardization layer, a logic closed-loop layer, a desensitization interception layer and a description standardization layer. Step S1: Phenomenon Evidence Retrieval and Phenomenon State Construction. Input: Fault phenomenon description text in JSON format, with fields including fault_phenomenon, occurrence_time, equipment_id, operating_condition, attachment_list, etc., where attachment_list is used to receive supplementary evidence such as fault images, test records, sensor waveforms, or detection reports. Technical Processing: Based on the retrieval target and field permissions of node S1, retrieve materials related to the fault manifestation and occurrence conditions from the phenomenon knowledge subset, equipment ledger, operation records, and supplementary evidence; use node-level vector retrieval enhanced RAG as the main execution route; enable the knowledge graph enhanced condition route in scenarios where a knowledge graph has been built; enable the multimodal hybrid retrieval condition route in scenarios where the input includes images, videos, waveforms, or detection report attachments; intermediate results from each route are uniformly entered into the stage result convergence module, and a standardized phenomenon state object is generated.

6. The method according to claim 1 or 5, characterized in that, In step S2, the mechanism analysis node, the main route is evidence-driven multi-agent consultation, specifically including: identifying missing key evidence based on RDF Schema, SHACL constraints, or field integrity rules, and generating high / medium / low priority follow-up questions according to the degree of impact; activating multiple professional agents in parallel from the fields of system and reliability engineering, product engineering technology, verification and quality control, manufacturing and supply chain, operation and maintenance and service, data and knowledge engineering, and general support through an event bus; each agent generates mechanism hypotheses, supporting evidence, counter-evidence information, and confidence levels based on its own knowledge base, standard specifications, and historical cases; standardizing the scores of different agents by using historical labeled samples, manual confirmation records, or calibration models before fusion; extracting computable parameters from the evidence chain, and calling preset fatigue life, strength verification, thermal analysis, electrical verification, or failure probability calculation templates for qualitative and quantitative fusion verification; Step S2: Mechanism knowledge retrieval, hypothesis reasoning, and qualitative and quantitative verification. Input: Output results from Step S1, initial user test data, historical case evidence, and supplementary test data. Node retrieval: Based on the fault object, fault mode, operating environment, observational evidence, and fields to be supplemented in the phenomenon state object of S1, retrieve candidate mechanisms, applicable engineering constraints, verifiable parameters, and counter-evidence clues from the mechanism knowledge base, professional standard library, historical failure case library, and test database to form a mechanism evidence package for use by each reasoning route. Technical processing: The main execution route is evidence-driven multi-professional agent consultation. In scenarios with sufficient historical samples, standardized test tasks, and acquisition interfaces, the evidence acquisition strategy is used to optimize the conditional route. In scenarios with incomplete evidence, noise, or the need for probability expression, the distributed Bayesian reasoning conditional route is used. Each route forms candidate mechanisms, supporting evidence, counter-evidence information, confidence levels, and quantitative verification results based on the same mechanism evidence package, and uniformly enters the stage result convergence module.

7. The method according to claim 6, characterized in that, In step S3, root cause localization, the main route is knowledge graph causal reasoning and fault tree automatic mapping, specifically including: constructing a unified RDF schema or attribute graph model, mapping mechanism conclusions, evidence entities, component structures, process flows, environmental conditions, and historical cases to graph nodes; expanding forward paths from fault phenomena and mechanism nodes to generate candidate causal links, tracing back from candidate root cause nodes to phenomenon nodes for cross-validation, with path confidence calculated by evidence strength, rule hit, historical case support, and rebuttal penalty; mapping the validated causal links to fault tree intermediate events and bottom events, where AND gates are used for scenarios where multiple bottom events must occur simultaneously to lead to a higher-level event, OR gates are used for scenarios where any bottom event can independently lead to a higher-level event, common cause events are set as common cause nodes, and events with insufficient evidence are marked as nodes to be confirmed; Step S3: Causal evidence retrieval, root cause reasoning, and FTA mapping; Input: Full evidence data from Step S2, fusion mechanism conclusions, quantitative verification results, and conflict resolution records; Node retrieval: Based on the mechanism conclusions, evidence numbers, component objects, environmental conditions, and quantitative verification results in the mechanism state object of S2, retrieve candidate root causes, causal relationships, logic gate rules, common cause events, and similar fault tree structures from the causal knowledge graph, fault mode library, FTA rule library, and historical causal link library; Technical processing: The main execution route is knowledge graph causal reasoning and FTA rule mapping; a causal Bayesian network conditional route is enabled in scenarios requiring probabilistic root cause ranking and uncertainty expression; a GNN auxiliary conditional route is enabled in scenarios with sufficient historical fault samples, graph structures, and labeled root causes; Each route forms root cause candidates, causal links, evidence strengths, and FTA candidate structures, and uniformly enters the stage result convergence module.

8. The method according to claim 7, characterized in that, In the output node of the repair plan in step S4, the main route is rule-based reasoning and tracing, which specifically includes: calling the rule engine based on root cause type, failure mode, fault tree bottom event, and standard specifications to generate repair suggestions for structural improvement, process adjustment, material verification, inspection enhancement, and operational restrictions; retrieving similar historical zeroing cases through case reasoning to supplement handling experience; binding each repair suggestion with the corresponding root cause node, fault tree bottom event, evidence number, calculation result, and version difference information; generating a draft fault zeroing report with traceability code, outputting it in both PDF and XML formats, and simultaneously generating a full-process operation log, version difference file, manual confirmation record, and audit trail file; Step S4: Remediation rule and case retrieval, measure reasoning, and result solidification; Input: Root cause conclusion from Step S3, FTA data, evidence chain, calculation results, and manual confirmation records; Node retrieval: Based on the root cause node, failure mode, FTA bottom event, logic gate relationship, and risk level in the root cause and FTA status object in S3, retrieve candidate disposal rules, similar measures, applicable conditions, risk constraints, and verification requirements from the remediation rule base, standard specification base, historical zeroing case base, and verification method base; Technical processing: The main execution route is rule reasoning and case reasoning, performing applicability matching and constraint reasoning on the retrieved candidate remediation rules and historical measures; Generative AI-assisted condition route is enabled in scenarios requiring the formation of multiple complex alternative solutions; Merkle tree, event tracing, or blockchain evidence storage condition route is enabled in scenarios with high audit requirements, multiple rounds of modifications, or multi-person collaboration; The system outputs the remediation solution status object and draft zeroing report. Formal engineering disposal still requires manual confirmation, experimental verification, and approval closure.

9. The method according to claim 1, characterized in that, It also includes a multi-stage state isolation, transmission and connection mechanism: when a single node fails to verify continuously for more than a set threshold, or when there is a lack of key evidence, unresolved conflict of conclusions, or contradiction in quantitative verification, the process is triggered to break down and roll back to the previous stable node. The rollback process retains the reasons for failure, suggested fixes, and version differences.

10. A multi-stage fault retrieval and reasoning system based on a finite state machine, characterized in that, For performing the method according to any one of claims 1 to 9, comprising: The finite state machine management module is used to define and control the state transitions between the S1 phenomenon confirmation node, S2 mechanism analysis node, S3 root cause location node, and S4 repair solution output node, and to realize the controlled transfer of structured state objects. The node-level isolation module is used to configure independent search spaces, context templates, node-specific prompts, agent lists, verification rules and output schemas for each status node, and to clean up temporary contexts when switching nodes; The route dynamic scheduling module is used to implement the "default execution of the main route and conditional activation of the enhanced route" operation mode, and dynamically activates the enhanced route according to the input data type, knowledge resource conditions and audit requirements; The fusion layer module is used to deduplicate, align terms, calibrate confidence, detect conflicts, and manually arbitrate intermediate results from each enabled route, generating a unified structured state object. The end-to-end traceability module is used to achieve evidence binding and version solidification through hash chains, write-ahead logs, event tracing, or Merkle trees.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which, when invoked, are used to execute a multi-stage fault retrieval and reasoning method based on a finite state machine as described in any one of claims 1-9.