Lightweight graph twin agent modeling method and system for equipment maintenance counterfactual reasoning
By constructing a causal coupling graph of equipment and training a lightweight causal graph twin agent model, the problem of insufficient interaction efficiency of high-precision digital twin models is solved, realizing rapid interaction and real-time performance of equipment maintenance decisions, and supporting rapid simulation and reliable comparison of multiple maintenance schemes.
Patent Information
- Application Number
- CN202611472764.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-24
AI Technical Summary
Existing high-precision digital twin models lack sufficient interaction efficiency in equipment maintenance, making it difficult to meet the needs of rapid comparison, screening, and verification of multiple maintenance schemes, especially when real-time decision-making is required.
By acquiring multi-source data of the equipment to be maintained, a causal coupling graph of the equipment is constructed. A lightweight causal graph twin agent model is used for training and updating the coupling graph to generate a teacher inference sample set. Counterfactual inference is performed to output the inference results of future time steps. Event-triggered calibration is then performed, and finally, the calibrated inference results are output.
It achieves the ability to reproduce high-precision models with lightweight computing overhead, supports rapid parallel simulation and effect comparison of multiple maintenance schemes, and improves the real-time performance of maintenance decisions for complex equipment and the reliability of simulation results.
Smart Images

Figure CN123160136A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent equipment maintenance technology, and in particular to a lightweight graphical twin agent modeling method and system for counterfactual inference of equipment maintenance. Background Technology
[0002] As core carriers in industrial production, energy transmission, transportation, and national defense, the operational reliability of complex equipment during long-term service directly affects system safety, mission continuity, and economic efficiency. In actual service, complex equipment often simultaneously endures alternating loads, variable operating conditions, environmental corrosion, and the cumulative effects of repeated maintenance interventions. The various components form a tight coupling relationship through mechanical connections, energy transfer, signal interaction, and functional dependencies. This results in the overall equipment degradation process exhibiting nonlinear characteristics of multi-factor superposition, multi-path propagation, and competitive failure of multiple components, rather than the independent linear evolution of individual components. This objective law necessitates that equipment maintenance management shift from an isolated perspective focused on individual components to a coupled perspective centered on the entire system, placing higher demands on state awareness, risk transmission analysis, and maintenance decision support.
[0003] Against this backdrop, counterfactual simulation for equipment maintenance, as a technical means to support the pre-assessment and optimization of maintenance plans, has received increasing attention. Its core idea is to quantitatively compare the effects of various maintenance plans by applying different maintenance interventions and simulating the subsequent state evolution of the system based on a digital model of the equipment, thereby providing a basis for maintenance decisions. Among these, lightweight graphical twin surrogate modeling, by representing equipment components and their coupling relationships with a graph structure and using a surrogate model to replace high-fidelity simulation for rapid simulation, has become an important technical approach that balances simulation accuracy and computational efficiency. It can support online maintenance decisions and dynamic plan optimization for complex equipment under multiple operating conditions.
[0004] Existing high-precision digital twin models can describe equipment performance evolution in detail, but maintenance management decisions often require continuous simulation of multiple candidate solutions. If each candidate solution calls a high-fidelity simulation model or a complex degradation prediction model, the computational load is large, making it difficult to meet the needs of rapid comparison, screening, and verification in on-site maintenance scheduling. Especially when comparing options such as continued operation, partial repair, component replacement, parameter adjustment, and delayed maintenance, the insufficient interaction efficiency of traditional models limits the real-time nature of maintenance decisions. Summary of the Invention
[0005] This invention provides a lightweight graphical twin agent modeling method and system for equipment maintenance counterfactual inference, which solves the technical problems of insufficient interaction efficiency and difficulty in meeting the real-time requirements of maintenance decision-making in existing high-precision digital twin models.
[0006] The first aspect of this invention provides a lightweight graphical twin agent modeling method for counterfactual inference of equipment maintenance, comprising:
[0007] Acquire multi-source data of the equipment to be maintained, and preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, construct a causal coupling diagram of the equipment.
[0008] Based on the set of maintenance actions in the multi-source data of the equipment to be maintained and the causal coupling diagram of the equipment, a counterfactual maintenance intervention budget subset is constructed.
[0009] The equipment performance evolution simulation is performed using the equipment causal coupling graph, the counterfactual maintenance intervention budget subset, and the preprocessed multi-source data of the equipment to be maintained. A teacher inference sample set is generated, and the lightweight causal graph twin surrogate model is trained and the coupling graph is updated based on the teacher inference sample set using the knowledge distillation method, resulting in the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph.
[0010] Based on the set of maintenance actions, a set of candidate maintenance schemes is generated. Under the same initial equipment state, the same external working conditions, and the same prediction time window, the updated equipment causal coupling graph, the set of candidate maintenance schemes, and the set of counterfactual maintenance intervention budget components are input into the trained lightweight causal graph twin agent model to perform counterfactual inference and output the inference results for future time steps.
[0011] Based on the trained lightweight causal graph twin agent model, the inference results of the future time step are calibrated by event triggering, and the calibrated inference results are output.
[0012] Using the calibrated simulation results, the candidate maintenance scheme set is screened, sorted, and its counterfactual effects are interpreted, and the counterfactual simulation results of equipment maintenance are output.
[0013] Optionally, the step of preprocessing the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained, and constructing a causal coupling graph of the equipment based on the preprocessed multi-source data of the equipment to be maintained, includes:
[0014] Time alignment is performed on the multi-source data of the equipment to be maintained to obtain time-aligned multi-source data of the equipment to be maintained.
[0015] The time-aligned multi-source data of the equipment to be maintained is unified in units to obtain unit-unified multi-source data of the equipment to be maintained.
[0016] Anomaly removal is performed on the unified multi-source data of the equipment to be maintained, resulting in anomaly-removed multi-source data of the equipment to be maintained.
[0017] The multi-source data of the equipment to be maintained after the anomaly removal is filled with missing data to obtain the preprocessed multi-source data of the equipment to be maintained.
[0018] The preprocessed multi-source data of the equipment to be maintained includes preprocessed operating status data, preprocessed working environment data, preprocessed maintenance history data, preprocessed fault record data, preprocessed equipment structure data, and preprocessed component connection relationships.
[0019] Extract the core components, subsystems, or functional units of the equipment to be maintained from the preprocessed equipment structure data as nodes, and construct a node set;
[0020] Node health status, degradation characteristics, operating parameters, remaining lifespan, maintenance history, and failure risk are extracted from preprocessed operational status data, preprocessed maintenance history data, and preprocessed fault record data as node attributes, and a node attribute matrix is constructed.
[0021] Mechanical connections, energy transfer, functional dependencies, signal interactions, fault propagation, and maintenance constraints are extracted as edges from the preprocessed equipment structure data, preprocessed component connection relationships, and preprocessed fault record data, and a set of directed edges is constructed.
[0022] The coupling strength, influence direction, propagation delay, constraint type, and fault propagation probability are extracted as edge attributes from the preprocessed equipment structure data and preprocessed fault record data, and an edge attribute matrix is constructed.
[0023] When the preprocessed equipment structure data and preprocessed fault record data show that there are common loads, common cooling, common lubrication, common power supply, common control, common degradation causes, or common fault propagation relationships among multiple components, the group coupling relationship between multiple nodes is represented by hyperedges. The intensity, duration, and direction of influence of common factors are extracted from the preprocessed equipment structure data, preprocessed operating status data, and preprocessed fault record data as hyperedge attributes, and a hyperedge set and corresponding hyperedge attribute matrix are constructed.
[0024] Temporal causal analysis was performed on the preprocessed operational status data and preprocessed fault record data to obtain the temporal causal analysis results.
[0025] Attention weights are learned by performing attention weight learning on the node attribute matrix and edge attribute matrix to obtain the attention weight learning results.
[0026] By combining the preprocessed operational status data, the structural priors in the preprocessed equipment structure data, the preprocessed maintenance history data, the fault propagation records in the preprocessed fault record data, the temporal causal analysis results, and the attention weight learning results, the edge attribute matrix and the hyperedge attribute matrix are iteratively corrected to obtain the updated edge attribute matrix and the updated hyperedge attribute matrix.
[0027] Construct an equipment causal coupling graph based on the node set, directed edge set, superedge set, node attribute matrix, updated edge attribute matrix, and updated superedge attribute matrix.
[0028] Optionally, constructing a counterfactual maintenance intervention budget subset based on the set of maintenance actions in the multi-source data of the equipment to be maintained and the causal coupling graph of the equipment includes:
[0029] For component replacement maintenance actions in the maintenance action set, the component node corresponding to the component replacement maintenance action is taken as the target, the health state of the component node in the equipment causal coupling graph is restored to the preset initial interval, and the edge coupling strength, propagation delay and fault propagation probability associated with the component node are updated synchronously to obtain the node state recovery operator.
[0030] For the local maintenance actions in the set of maintenance actions, the component node corresponding to the local maintenance action is taken as the target, the degradation accumulation of the component node in the causal coupling diagram of the equipment is reduced and the historical damage residue is retained, and the degradation rate correction operator is obtained.
[0031] Using a specified edge in the causal coupling graph of the equipment as the target, the coupling strength weight of the specified edge is adjusted up or down to obtain the edge coupling strength adjustment operator.
[0032] Taking a specified edge or fault propagation path in the causal coupling graph of the equipment as the target, the fault propagation probability on the specified edge or path is set to zero or significantly reduced to obtain a fault propagation path blocking operator.
[0033] For the maintenance actions of the operation parameter adjustment class in the set of maintenance actions, the nodes and edges related to the operation parameter adjustment are taken as the objects of action, and the degradation rate of the relevant nodes, the coupling strength of the relevant edges or the fault propagation delay in the causal coupling graph of the equipment are corrected to obtain the operation parameter perturbation operator.
[0034] For delayed maintenance actions in the set of maintenance actions, the current maintenance resource state is kept unchanged and the equipment continues to evolve along the current degradation path to obtain the maintenance constraint reconstruction operator;
[0035] For maintenance actions in the set of maintenance actions that change component connections, replace compatible components, or switch backup channels, the corresponding nodes, edges, or hyperedges in the causal coupling graph of the equipment are used as the objects of action. The corresponding nodes, edges, or hyperedges are added, deleted, or their weights are reset to obtain the graph structure reconnection operator.
[0036] Based on the node state recovery operator, the degradation rate correction operator, the edge coupling strength adjustment operator, the fault propagation path blocking operator, the operating parameter perturbation operator, the maintenance constraint reconstruction operator, and the graph structure reconnection operator, a set of counterfactual maintenance interference operators is constructed.
[0037] Optionally, the step of using the equipment causal coupling graph, the counterfactual maintenance intervention subset, and the preprocessed multi-source data of the equipment to be maintained to perform equipment performance evolution simulation, generating a teacher inference sample set, and using a knowledge distillation method to train the lightweight causal graph twin surrogate model and update the coupling graph based on the teacher inference sample set, to obtain the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph, includes:
[0038] Using a preset high-precision degradation prediction model or a preset high-fidelity simulation model, and taking the equipment causal coupling diagram as the state carrier, different maintenance interference budgets in the counterfactual maintenance interference budget subset are applied. The equipment performance evolution simulation is carried out under different initial operating states, different working environments, and different maintenance resource states after preprocessing, and a teacher inference sample set is generated.
[0039] Using the teacher inference sample set as supervised data, the lightweight causal graph twin agent model is trained using a multi-loss joint optimization method to obtain the trained lightweight causal graph twin agent model.
[0040] In the training process, cross-condition invariant causal constraints are introduced. Condition groups are divided according to load, temperature, humidity, task intensity, operator differences or maintenance resource status. The action direction and symbol of each causal edge in the equipment causal coupling graph are compared across conditions. Causal edges with conflicting action directions are marked as unstable edges and their propagation weight is reduced. Causal edges with consistent action directions and errors below a preset threshold are marked as stable causal edges and their credibility weight is increased. The edge attribute update results with stability labels are obtained and synchronously updated to the causal coupling propagation layer parameters and the edge attributes of the equipment causal coupling graph, resulting in the updated equipment causal coupling graph.
[0041] During training, a low-dimensional evolution constraint unit based on the Koopman operator or neural operator is added to map the high-dimensional node state to the low-dimensional potential state space and perform multi-step state evolution. Then, the low-dimensional evolution result is back-mapped into the node health state, overall performance index and failure risk to constrain the stability of the long-term inferred trajectory.
[0042] During the construction or update of the causal coupling graph of the equipment, the topological data analysis method is used to extract the topological features of the node risk state, edge fault propagation probability and super-edge group coupling relationship, and generate the fault propagation topological fingerprint, which is used to identify fault propagation loops, redundant propagation channels, critical cut edges, critical cut points and potential cascading fault structures.
[0043] Optionally, under the same initial equipment state, the same external operating conditions, and the same prediction time window, the updated equipment causal coupling graph, the candidate maintenance scheme set, and the counterfactual maintenance intervention budget subset are input into the trained lightweight causal graph twin surrogate model to perform counterfactual inference and output the inference results for future time steps, including:
[0044] Establish a mapping relationship between each candidate maintenance scheme in the candidate maintenance scheme set and the corresponding interference budget in the counterfactual maintenance interference budget set to obtain the mapping relationship between candidate maintenance schemes and maintenance interference budgets.
[0045] The graph state encoding layer in the trained lightweight causal graph twin agent model is used to encode the node attributes, edge attributes, and hyperedge attributes of the updated equipment causal coupling graph to obtain the encoded graph state embedding.
[0046] The causal coupling propagation layer in the trained lightweight causal graph twin proxy model is used to propagate the encoded graph state embedding with adjacency information weighted according to edge direction, coupling strength and propagation delay to obtain the propagated updated node state features.
[0047] The maintenance intervention gating layer in the trained lightweight causal graph twin agent model is used to select the corresponding maintenance intervention parameter according to the mapping relationship between the candidate maintenance scheme and the maintenance intervention parameter. The node, edge or super-edge corresponding to the candidate maintenance scheme is used as the target to perform state update, edge adjustment or graph structure reconnection to obtain the graph state features after intervention.
[0048] The multi-step trajectory prediction layer in the trained lightweight causal graph twin agent model is used to recursively evolve the graph state features after the intervention step by step to obtain the state evolution trajectory of the future time step.
[0049] The risk cost output layer in the trained lightweight causal graph twin agent model is used to calculate the risk cost of the state evolution trajectory in future time steps. The failure probability, maintenance resource consumption, spare parts consumption, downtime impact and task impact of each time step are calculated to obtain the failure risk sequence and maintenance cost sequence.
[0050] The safety margin output layer in the trained lightweight causal graph twin agent model is used to calculate the safety margin between the state evolution trajectory and the failure threshold at future time steps, and to calculate the safety distance between the health state and the failure threshold of each component at each time step, thus obtaining the safety margin sequence.
[0051] The confidence estimation layer in the trained lightweight causal graph twin surrogate model is used to estimate the inference uncertainty of the model’s internal uncertainty, input perturbation uncertainty and historical error information during the inference process, and the inference confidence sequence is obtained.
[0052] The low-dimensional evolution constraint unit in the trained lightweight causal graph twin surrogate model is used to perform low-dimensional mapping on the high-dimensional node states in the state evolution trajectory of future time steps, mapping them to a low-dimensional potential state space and performing multi-step evolution. The inverse mapping result is compared with the output of the multi-step trajectory prediction layer. When the deviation exceeds the preset stability threshold, the long-term unstable inference object is marked and confidence reduction or high-fidelity verification is triggered to obtain the long-term stability verification result and update the inference confidence synchronously.
[0053] The state evolution trajectory, failure risk sequence, maintenance cost sequence, safety margin sequence, updated projection confidence sequence, and long-term stability verification results for future time steps are aligned and integrated according to time steps to obtain the projection results for future time steps.
[0054] Optionally, the event-triggered calibration of the inference results for the future time steps based on the trained lightweight causal graph twin agent model, and the output of the calibrated inference results, include:
[0055] The confidence level of the projection results for the future time step is calibrated using a confidence calibration method to obtain the calibrated projection confidence level.
[0056] The projection results of the future time steps are compared with the maintenance execution feedback to obtain the multidimensional residuals;
[0057] Event-triggered calibration conditions are detected on the calibrated extrapolation confidence, the multidimensional residual, and the extrapolation results of the future time steps to obtain event-triggered calibration identifiers and candidate maintenance schemes for triggering calibration.
[0058] When the event-triggered calibration flag is true, a high-precision degradation prediction model or a high-fidelity simulation model is used as the input to perform high-precision simulation, taking the current equipment status and the candidate maintenance scheme for the triggered calibration as input, to obtain a calibration sample set.
[0059] Based on the calibration sample set, the trained lightweight causal graph twin agent model is updated hierarchically to obtain the updated lightweight causal graph twin agent model.
[0060] Using the updated lightweight causal graph twin agent model, the candidate maintenance schemes that trigger calibration are re-performed using counterfactual reasoning under the same initial equipment state, the same external operating conditions, and the same prediction time window, resulting in calibrated reasoning results.
[0061] Optionally, the step of using the calibrated inference results to screen, rank, and interpret the counterfactual effects of the candidate maintenance scheme set, and outputting the equipment maintenance counterfactual inference results, includes:
[0062] The set of candidate maintenance solutions is subjected to hard constraint verification, and infeasible solutions that violate any hard constraint are eliminated to obtain a set of feasible candidate solutions.
[0063] Based on the calibrated simulation results, the safety barrier values of each key component at each time step of each candidate scheme in the feasible candidate scheme set are calculated.
[0064] Based on the calibrated inference results, calculate the conditional value of risk for each candidate in the feasible candidate solution set at a specified confidence level;
[0065] Each candidate solution in the feasible candidate solution set is subjected to security filtering. When the minimum security barrier value is less than or equal to zero or the conditional risk value exceeds the preset risk threshold, the candidate solution is removed. When the minimum security barrier value is close to zero or close to the preset security barrier threshold, or the conditional risk value is close to the preset risk threshold, it is marked as a security critical solution and the evidence chain enhancement output or high-precision model review is triggered to obtain a set of safe passing solutions, a set of security critical solutions, and a list of solutions that need to be reviewed.
[0066] A comprehensive scoring function is constructed from the set of safety solutions and multi-objective ranking is performed to obtain a ranked set of candidate solutions and a ranking result.
[0067] Using an evidence chain construction method, counterfactual influence tracing is performed on the sorted candidate solution set to obtain the evidence content;
[0068] A cascading risk assessment is performed on the evidence to obtain the maintenance plan evidence chain;
[0069] Based on the set of feasible candidate solutions, the ranking results, the set of safety critical solutions, the list of solutions requiring review, and the evidence chain of the maintenance solutions, a counterfactual simulation result for equipment maintenance is constructed.
[0070] The second aspect of this invention provides a lightweight graphical twin agent modeling system for counterfactual inference of equipment maintenance, comprising:
[0071] The acquisition module is used to acquire multi-source data of the equipment to be maintained, and to preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, a causal coupling diagram of the equipment is constructed.
[0072] The construction module is used to construct a counterfactual maintenance intervention budget subset based on the maintenance action set in the multi-source data of the equipment to be maintained and the causal coupling graph of the equipment;
[0073] The training module is used to simulate the performance evolution of equipment using the equipment causal coupling graph, the counterfactual maintenance intervention budget subset, and the preprocessed multi-source data of the equipment to be maintained, generate a teacher inference sample set, and use the knowledge distillation method to train the lightweight causal graph twin surrogate model and update the coupling graph based on the teacher inference sample set, so as to obtain the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph.
[0074] The inference module is used to generate a set of candidate maintenance schemes based on the set of maintenance actions, and input the updated equipment causal coupling graph, the set of candidate maintenance schemes and the set of counterfactual maintenance intervention budget components into the trained lightweight causal graph twin surrogate model under the same initial equipment state, the same external working conditions and the same prediction time window, to perform counterfactual inference and output the inference results for future time steps.
[0075] The calibration module is used to perform event-triggered calibration on the inference results of the future time step based on the trained lightweight causal graph twin agent model, and output the calibrated inference results.
[0076] The output module is used to use the calibrated inference results to screen, sort, and interpret the counterfactual effects of the candidate maintenance scheme set, and output the counterfactual inference results of equipment maintenance.
[0077] A third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the lightweight graph twin agent modeling method for equipment maintenance counterfactual inference as described above.
[0078] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, it implements the lightweight graph twin agent modeling method for equipment maintenance counterfactual inference as described above.
[0079] As can be seen from the above technical solutions, the present invention has the following advantages:
[0080] The present invention provides a lightweight graph twin proxy modeling method for counterfactual inference of equipment maintenance. This invention acquires multi-source data of the equipment to be maintained and preprocesses it to construct a causal coupling graph of the equipment. This graph structure represents the equipment components and their coupling relationships, providing a state carrier for lightweight inference. Subsequently, a counterfactual maintenance interference subset is constructed based on the maintenance action set and the equipment causal coupling graph. Various maintenance actions are encoded as interference subsets that can directly act on graph nodes, edges, and hyperedges, achieving a precise mapping between maintenance actions and graph state evolution. Then, the equipment performance evolution simulation is performed using the equipment causal coupling graph, the counterfactual maintenance interference subset, and the preprocessed multi-source data of the equipment to be maintained to generate a teacher inference sample set. The lightweight causal graph twin proxy model is trained and the coupling graph is updated using a knowledge distillation method, resulting in a trained lightweight causal graph twin proxy model and an updated equipment causal coupling graph. This allows the lightweight proxy model to reproduce the inference capability of a high-precision model with lower computational overhead. Based on this, a candidate maintenance scheme set is generated according to the maintenance action set, and under the same initial equipment state and the same external... Under the same operating conditions and prediction time window, the updated equipment causal coupling graph, candidate maintenance scheme set, and counterfactual maintenance interference budget subset are input into the trained lightweight causal graph twin surrogate model for counterfactual inference, outputting the inference results for future time steps. This supports rapid parallel inference and effect comparison of multiple maintenance schemes. Subsequently, based on the trained lightweight causal graph twin surrogate model, event-triggered calibration is performed on the inference results for future time steps. Only when conditions such as insufficient inference confidence are met is the high-precision model called to update parameters and re-infer, outputting calibrated inference results. This ensures inference accuracy while avoiding frequent calls to the high-precision model. Finally, the calibrated inference results are used to screen, rank, and interpret the counterfactual impact of the candidate maintenance scheme set, outputting the equipment maintenance counterfactual inference results. This enables rapid interactive capability of equipment maintenance counterfactual inference under the architecture of the lightweight causal graph twin surrogate model, overcoming the limitation of insufficient interaction efficiency of high-precision digital twin models on the real-time performance of maintenance decisions, ensuring the comparability of multiple maintenance schemes and the reliability of inference results, and effectively improving the real-time performance of complex equipment maintenance decisions. Attached Figure Description
[0081] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0082] Figure 1 This is a flowchart illustrating the steps of a lightweight graphical twin agent modeling method for equipment maintenance counterfactual inference provided in Embodiment 1 of the present invention.
[0083] Figure 2 This is a flowchart of the equipment causal coupling graph construction and maintenance intervention coding provided in Embodiment 1 of the present invention;
[0084] Figure 3 This is a flowchart of the training process for the lightweight causal graph twin agent model provided in Embodiment 1 of the present invention;
[0085] Figure 4 This is a flowchart of the deductive confidence calibration and event-triggered calibration provided in Embodiment 1 of the present invention;
[0086] Figure 5 This is a flowchart of the candidate maintenance scheme screening and evidence chain output provided in Embodiment 1 of the present invention;
[0087] Figure 6 This is a schematic diagram comparing the relative deduction times of different deduction models provided in Embodiment 1 of the present invention;
[0088] Figure 7 This is a schematic diagram illustrating the changes in risk and security margin of the counterfactual maintenance scheme provided in Embodiment 1 of the present invention;
[0089] Figure 8 The overall flowchart of a lightweight graphical twin agent modeling method for equipment maintenance counterfactual inference provided in Embodiment 1 of the present invention;
[0090] Figure 9 This is a structural block diagram of a lightweight graphical twin agent modeling system for equipment maintenance counterfactual inference provided in Embodiment 2 of the present invention. Detailed Implementation
[0091] This invention provides a lightweight graphical twin agent modeling method and system for equipment maintenance counterfactual inference, which solves the technical problems of insufficient interaction efficiency and difficulty in meeting the real-time requirements of maintenance decision-making in existing high-precision digital twin models.
[0092] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. It should be noted that in the optional embodiments of the present invention, the object information and other related data involved require the permission or consent of the object when the embodiments of the present invention are applied to specific products or technologies, and the collection, use, and processing of related data must comply with relevant laws, regulations, and standards. That is to say, if the embodiments of the present invention involve data related to the object, it needs to be obtained with the authorization and consent of the object, the authorization and consent of relevant departments, and in compliance with relevant laws, regulations, and standards. If personal information is involved in the embodiments, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject is required, and the embodiments also need to be implemented with the authorization and consent of the object.
[0093] In this invention, the counterfactual maintenance intervention program refers to the set of operations that transform maintenance actions such as continued operation, status checks, partial repairs, component replacements, operating parameter adjustments, delayed maintenance, and combined maintenance into changes in the graph state. This term is a custom technical expression of this invention, emphasizing the causal intervention effect of maintenance actions on nodes, edges, hyperedges, degenerate paths, and constraints.
[0094] In this invention, the lightweight causal graph twin surrogate model refers to a surrogate model that takes an equipment causal coupling graph as input and aims at rapid counterfactual inference. This model learns the key rules of high-precision degradation prediction models or high-fidelity simulation models through knowledge distillation, and controls the risk of low-confidence inference through confidence calibration and event-triggered verification.
[0095] In this invention, the maintenance scheme evidence chain refers to structured information that explains why candidate maintenance schemes are selected, ranked, or reviewed. It must at least link candidate actions, intervened nodes, adjusted edges, major fault propagation paths, sources of risk changes, sources of cost changes, and sources of safety margin changes.
[0096] Please see Figure 1 , Figure 1 The flowchart illustrates the steps of a lightweight graphical twin agent modeling method for equipment maintenance counterfactual inference provided in Embodiment 1 of the present invention.
[0097] This invention provides a lightweight graphical twin agent modeling method for equipment maintenance counterfactual inference, comprising:
[0098] Step 101: Obtain multi-source data of the equipment to be maintained, and preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, construct the causal coupling diagram of the equipment.
[0099] It should be noted that the multi-source data of the equipment to be maintained specifically includes operational status data, operating environment data, maintenance history data, fault record data, equipment structure data, component connection relationships, and maintenance action sets. Among them, operational status data can be obtained through the equipment's built-in sensors, condition monitoring systems, and data acquisition devices; operating environment data can be obtained through environmental monitoring equipment and operating condition recording systems; maintenance history data and fault record data can be retrieved from the equipment maintenance management system and fault ledger; equipment structure data and component connection relationships can be extracted from equipment design documents, 3D models, and assembly relationships; and maintenance action sets can be obtained by sorting out maintenance procedures and historical maintenance operation records. Subsequently, the multi-source data of the equipment to be maintained is preprocessed to eliminate inconsistencies in time, dimensions, and completeness, resulting in preprocessed multi-source data of consistent quality that can be directly used for modeling. Finally, based on the preprocessed multi-source data of the equipment to be maintained, equipment components and their coupling relationships are extracted and represented in a graph structure to construct a causal coupling graph of the equipment, thereby providing a state carrier for subsequent maintenance intervention quantification and counterfactual inference.
[0100] Further, step 101 may include the following sub-steps:
[0101] S11. Perform time alignment on the multi-source data of the equipment to be maintained to obtain the time-aligned multi-source data of the equipment to be maintained.
[0102] S12. Unify the units of the time-aligned multi-source data of the equipment to be maintained to obtain the unit-unified multi-source data of the equipment to be maintained.
[0103] S13. Perform anomaly removal on the unified multi-source data of the equipment to be maintained by the unit to obtain the anomaly-removed multi-source data of the equipment to be maintained.
[0104] S14. Complete the missing data of the multi-source data of the equipment to be maintained after the anomaly removal to obtain the pre-processed multi-source data of the equipment to be maintained.
[0105] S15. Among them, the pre-processed multi-source data of the equipment to be maintained includes pre-processed operating status data, pre-processed working environment data, pre-processed maintenance history data, pre-processed fault record data, pre-processed equipment structure data, and pre-processed component connection relationships.
[0106] S16. Extract the core components, subsystems or functional units of the equipment to be maintained from the preprocessed equipment structure data as nodes, and construct a node set.
[0107] S17. Extract node health status, degradation characteristics, operating parameters, remaining lifespan, maintenance history, and failure risk as node attributes from the preprocessed operating status data, preprocessed maintenance history data, and preprocessed fault record data, and construct a node attribute matrix.
[0108] S18. Extract mechanical connections, energy transfer, functional dependencies, signal interactions, fault propagation, and maintenance constraints from the preprocessed equipment structure data, preprocessed component connection relationships, and preprocessed fault record data as edges, and construct a set of directed edges.
[0109] S19. Extract coupling strength, influence direction, propagation delay, constraint type and fault propagation probability as edge attributes from the preprocessed equipment structure data and preprocessed fault record data, and construct an edge attribute matrix.
[0110] S110. When the preprocessed equipment structure data and preprocessed fault record data show that there are common loads, common cooling, common lubrication, common power supply, common control, common degradation causes, or common fault propagation relationships among multiple components, the group coupling relationship between multiple nodes is represented by hyperedges. The intensity, duration, and influence direction of common factors are extracted from the preprocessed equipment structure data, preprocessed operating status data, and preprocessed fault record data as hyperedge attributes, and a hyperedge set and corresponding hyperedge attribute matrix are constructed.
[0111] S111. Perform time-series causal analysis on the preprocessed operating status data and preprocessed fault record data to obtain the time-series causal analysis results.
[0112] S112. Perform attention weight learning processing on the node attribute matrix and edge attribute matrix to obtain the attention weight learning result;
[0113] S113. Combining the preprocessed operational status data, the structural priors in the preprocessed equipment structure data, the preprocessed maintenance history data, the fault propagation records in the preprocessed fault record data, the temporal causal analysis results, and the attention weight learning results, the edge attribute matrix and the hyper-edge attribute matrix are iteratively corrected to obtain the updated edge attribute matrix and the updated hyper-edge attribute matrix.
[0114] S114. Construct the equipment causal coupling graph based on the node set, directed edge set, superedge set, node attribute matrix, updated edge attribute matrix, and updated superedge attribute matrix.
[0115] It should be noted that the system acquires operational status data, environmental data, maintenance history data, fault record data, equipment structural data, component connection relationships, failure thresholds, physical constraints, safety constraints, maintenance resource constraints, and maintenance action sets of the equipment to be maintained, forming the foundational data for counterfactual analysis of equipment maintenance. In actual deployment, the above data can come from sensor and controller logs, maintenance work orders, fault diagnosis records, structural BOM (Bill of Materials), failure threshold tables, and maintenance resource ledgers. The system performs time alignment, unit standardization, anomaly removal, and missing data completion on the multi-source data, enabling subsequent graphical modeling to simultaneously reflect the current state, historical damage, and feasible maintenance conditions.
[0116] ;
[0117] in, This refers to the basic data for counterfactual simulation of equipment maintenance (i.e., pre-processed multi-source data of the equipment to be maintained). This indicates the running status data. This indicates the operating environment data. This indicates the maintenance of historical data. This indicates fault log data. This indicates the equipment structure data and component connection relationships. Represents the set of failure thresholds. Represents a set of physical constraints. Represents the set of security constraints. Represents the set of maintenance resource constraints. This represents a set of maintenance actions.
[0118] Furthermore, based on equipment structural data, component connection relationships, fault record data, and maintenance history data, a causal coupling diagram of the equipment is constructed. This diagram uses core components, subsystems, or functional units as nodes, and mechanical connections, energy transfer, functional dependencies, signal interactions, fault propagation, and maintenance constraints as edges. Node health status, degradation characteristics, operating parameters, remaining lifespan, maintenance history, and failure risk are considered as node attributes, while coupling strength, influence direction, propagation delay, constraint type, and fault propagation probability are considered as edge attributes. During diagram construction, node granularity can be determined based on core components, subsystems, or functional units, and edge directions can be determined based on structural priors, energy flow direction, signal flow direction, and propagation records. Node and edge attributes can be updated according to time windows. Figure 2 The process of forming nodes, edges, and hyperedges is shown, as well as the correspondence between maintenance action coding and node updates, edge adjustments, and graph structure reconnection.
[0119] ;
[0120] in, This represents the causal coupling diagram of the equipment. Represents a set of nodes. Represents the set of directed edges. Denotes the set of superedges. Represents the node attribute matrix, Represents the edge attribute matrix. This represents the hyperedge attribute matrix.
[0121] It is worth noting that the causal coupling graph of the equipment can be a heterogeneous directed graph or a heterogeneous hypergraph. Heterogeneous directed graphs are suitable for expressing clearly defined influence relationships between two objects, while heterogeneous hypergraphs are suitable for expressing relationships where multiple components are jointly affected by the same load, lubrication, cooling, or control conditions. Both can coexist in the same equipment graph to reduce the semantic loss caused by breaking down group coupling relationships into multiple ordinary edges.
[0122] When multiple components share common loads, cooling, lubrication, power supply, control, degradation causes, or fault propagation relationships, hyperedges characterize the group coupling relationships between these nodes. For example, when gears, bearings, and lubrication units are all affected by lubrication conditions, a single hyperedge can describe this common degradation cause. Hyperedge attributes can record the intensity, duration, and direction of influence of common factors, enabling the model to recognize changes in group coupling relationships caused by maintenance actions.
[0123] Based on operational status data, prior equipment structure, maintenance history, fault propagation records, temporal causal analysis results, and attention weight learning results, edge or hyperedge attributes are updated. During updates, the connectable range can be initially limited based on structural priors, and then the propagation probability or coupling strength can be adjusted using fault propagation records, temporal causal analysis, and attention weight learning results. This update method reduces irrelevant connections caused by pure data learning and maintains the engineering interpretability of the graph structure.
[0124] In this embodiment, when performing time alignment on the multi-source data of the equipment to be maintained, a unified time benchmark is used as a reference. Data from different sources, such as sensors, controller logs, maintenance work orders, fault diagnosis records, structural BOMs, failure threshold tables, and maintenance resource ledgers, are aligned to the same time axis through timestamp matching, interpolation resampling, or time window aggregation to obtain time-aligned multi-source data of the equipment to be maintained. Subsequently, the units of the time-aligned multi-source data of the equipment to be maintained are unified. A unit mapping table is established according to the type of physical quantity, and physical quantities such as temperature, pressure, speed, vibration, and load are uniformly converted into standard units. The dimensions are determined to obtain multi-source data of the equipment to be maintained after unifying the units. Next, anomaly removal is performed on this unified multi-source data. Statistical threshold discrimination, the 3σ criterion, or the isolated forest algorithm are used to identify and remove outliers, jump values, and abnormal records caused by sensor malfunctions, resulting in anomaly-removed multi-source data. Then, missing data is filled in using linear interpolation, spline interpolation, before-and-after value imputation, or historical trend-based model prediction methods, resulting in preprocessed multi-source data of the equipment to be maintained. This data can be represented as... ;
[0125] When constructing the causal coupling diagram of equipment, the core components, subsystems, or functional units of the equipment to be maintained are first extracted as nodes from the preprocessed equipment structure data. The granularity of the nodes can be determined according to the equipment complexity and analysis requirements at the level of core components, subsystems, or functional units, and a node set V is constructed. Then, node health status, degradation characteristics, operating parameters, remaining life, maintenance history, and failure risk are extracted as node attributes from the preprocessed operating status data, preprocessed maintenance history data, and preprocessed fault record data. These node attributes are then organized into row vectors according to the node arrangement order to construct a node attribute matrix. From the preprocessed equipment structure data, preprocessed component connection relationships, and preprocessed fault record data, mechanical connections, energy transfer, functional dependencies, signal interactions, fault propagation, and maintenance constraints are extracted as edges. The edge directions are determined based on structural priors, energy flow direction, signal flow direction, and fault propagation records, and a directed edge set is constructed. The coupling strength, influence direction, propagation delay, constraint type, and fault propagation probability are extracted as edge attributes from the preprocessed equipment structure data and preprocessed fault record data. The edge attributes are then organized into row vectors according to the directed edge order to construct an edge attribute matrix. When the preprocessed equipment structure data and preprocessed fault record data show that multiple components share common loads, common cooling, common lubrication, common power supply, common control, common degradation causes, or common fault propagation relationships—for example, when gears, bearings, and lubrication units are all affected by lubrication conditions—a hyperedge is used to characterize the group coupling relationship between multiple nodes. The intensity, duration, and direction of influence of common factors are extracted from the preprocessed equipment structure data, preprocessed operating status data, and preprocessed fault record data as hyperedge attributes to construct a hyperedge set. and the corresponding hyperedge attribute matrix The hyperedge and ordinary directed edges can coexist in the same graph to reduce semantic loss caused by splitting group coupling relationships into multiple ordinary edges. Temporal causal analysis is performed on the preprocessed operational state data and preprocessed fault record data. Granger causality tests, convergent cross-mapping, or transfer entropy methods are used to analyze the temporal causal direction and strength between the state sequences of each node and the fault event sequences, yielding temporal causal analysis results. Attention weight learning is performed on the node attribute matrix and edge attribute matrix. Graph attention networks or attention mechanisms are used to learn the contribution weights of each node and edge to the state evolution of the target node, yielding attention weight learning results. These results are then combined with the preprocessed operational state data and preprocessed equipment structure data. Based on structural priors, preprocessed maintenance history data, fault propagation records from preprocessed fault records, temporal causal analysis results, and attention weight learning results, the edge attribute matrix and hyperedge attribute matrix are iteratively corrected. During correction, the connectable range between nodes is first limited based on structural priors to exclude physically impossible connections. Then, the propagation probability or coupling strength of edges is adjusted using fault propagation records, temporal causal analysis results, and attention weight learning results. After multiple iterations and convergence, the updated edge attribute matrix and hyperedge attribute matrix are obtained. Finally, based on the node set, directed edge set, hyperedge set, node attribute matrix, updated edge attribute matrix, and updated hyperedge attribute matrix, an equipment causal coupling graph is constructed. This graph is a hybrid graph structure of heterogeneous directed graph and heterogeneous hypergraph. Heterogeneous directed graph is suitable for expressing the influence relationship between two objects with a clear direction, while heterogeneous hypergraph is suitable for expressing the relationship between multiple components that are jointly affected by the same condition.
[0126] Step 102: Based on the set of maintenance actions in the multi-source data of the equipment to be maintained and the causal coupling diagram of the equipment, construct a counterfactual maintenance intervention budget subset.
[0127] It should be noted that, firstly, the maintenance actions in the maintenance action set are classified according to their mechanism of action. For component replacement maintenance actions, the corresponding component node is taken as the action object, and the health state of the component node in the equipment causal coupling graph is restored to the preset initial interval. At the same time, the edge coupling strength, propagation delay, and fault propagation probability associated with the component node are updated to obtain the node state restoration operator. For local repair maintenance actions, the corresponding component node is taken as the action object, and the degradation accumulation of the component node in the equipment causal coupling graph is reduced while retaining the historical damage residue, to obtain the degradation rate correction operator. Taking a specified edge in the equipment causal coupling graph as the action object, the coupling strength weight of the specified edge is adjusted up or down to obtain the edge coupling strength adjustment operator. Taking a specified edge or fault propagation path in the equipment causal coupling graph as the action object, The fault propagation path blocking operator is obtained by setting the fault propagation probability on a specified edge or path to zero or significantly reducing it. For maintenance actions involving adjusting operating parameters, the operation parameter perturbation operator is obtained by taking the nodes and edges related to the adjustment of operating parameters as the target and correcting the degradation rate of the relevant nodes, the coupling strength of the relevant edges, or the fault propagation delay in the causal coupling graph of the equipment. For maintenance actions involving delayed maintenance, the maintenance constraint reconstruction operator is obtained by keeping the current maintenance resource state unchanged and allowing the equipment to continue to evolve along the current degradation path. For maintenance actions involving changing component connections, replacing compatible components, or switching backup channels, the graph structure reconnection operator is obtained by taking the corresponding nodes, edges, or superedges in the causal coupling graph of the equipment as the target and adding, deleting, or resetting the weights of the corresponding nodes, edges, or superedges. Finally, a set of counterfactual maintenance intervention operators is constructed based on the above seven types of operators.
[0128] Furthermore, step 102 may include the following sub-steps:
[0129] S21. For component replacement maintenance actions in the maintenance action set, take the component node corresponding to the component replacement maintenance action as the target, restore the health status of the component node in the equipment causal coupling diagram to the preset initial interval, and synchronously update the edge coupling strength, propagation delay and fault propagation probability associated with the component node to obtain the node state recovery operator.
[0130] S22. For local maintenance actions in the maintenance action set, take the component node corresponding to the local maintenance action as the target, reduce the cumulative degradation of the component node in the equipment causal coupling diagram and retain the historical damage residue, and obtain the degradation rate correction operator.
[0131] S23. Using the specified edge in the causal coupling graph of the equipment as the target, adjust the coupling strength weight of the specified edge upward or downward to obtain the edge coupling strength adjustment operator.
[0132] S24. Taking the specified edge or fault propagation path in the causal coupling graph of the equipment as the target, the fault propagation probability on the specified edge or path is set to zero or significantly reduced to obtain the fault propagation path blocking operator.
[0133] S25. For maintenance actions of the type of operation parameter adjustment in the set of maintenance actions, take the nodes and edges related to operation parameter adjustment as the objects of action, correct the degradation rate of related nodes, the coupling strength of related edges or the fault propagation delay in the causal coupling graph of the equipment, and obtain the operation parameter perturbation operator.
[0134] S26. For delayed maintenance actions in the maintenance action set, keep the current maintenance resource state unchanged and allow the equipment to continue evolving along the current degradation path to obtain the maintenance constraint reconstruction operator;
[0135] S27. For maintenance actions in the maintenance action set that change component connections, replace compatible components, or switch backup channels, take the corresponding nodes, edges, or hyperedges in the equipment causal coupling graph as the target, and perform addition, deletion, or weight reset processing on the corresponding nodes, edges, or hyperedges to obtain the graph structure reconnection operator.
[0136] S28. Based on the node state recovery operator, degradation rate correction operator, edge coupling strength adjustment operator, fault propagation path blocking operator, running parameter disturbance operator, maintenance constraint reconstruction operator, and graph structure reconnection operator, construct a set of counterfactual maintenance interference operators.
[0137] It should be noted that by constructing counterfactual maintenance intervention metrics based on the set of maintenance actions, continued operation, status checks, partial repairs, component replacements, operational parameter adjustments, delayed maintenance, and combined maintenance are transformed into intervention operations on node states, edge coupling relationships, degradation rates, fault propagation paths, operational constraints, or maintenance constraints. Counterfactual maintenance intervention metrics are used to transform maintenance actions from textual instructions into explicit changes to the graph state. This allows continued operation, partial repairs, component replacements, or parameter adjustments under the same current equipment state to be compared within the same graph space, facilitating the identification of differences in the impact of actions on degradation rates, propagation paths, and constraints.
[0138] ;
[0139] in, This represents the counterfactual maintenance intervention parameter corresponding to maintenance action 'a'. This represents the causal coupling diagram of the equipment before intervention. This represents the causal coupling diagram of the equipment after intervention. Represents the set of edges after intervention. Represents the set of hyperedges after intervention. This represents the node attribute matrix after intervention. This represents the edge attribute matrix after intervention. This represents the hyperedge attribute matrix after intervention.
[0140] Furthermore, the counterfactual maintenance intervention operators include at least one of the following: node state recovery operator, degradation rate correction operator, edge coupling strength adjustment operator, fault propagation path blocking operator, operating parameter perturbation operator, maintenance constraint reconstruction operator, and graph structure reconnection operator. These operators can be used in combination; for example, component replacement can simultaneously trigger node state recovery, edge coupling strength adjustment, and graph structure reconnection. The operator library establishes a clear interface between maintenance actions and graph state changes, facilitating subsequent deduction and review support.
[0141] ;
[0142] in, This indicates the health status of node i after maintenance action a is performed. This represents the residual damage retention coefficient corresponding to action a. This indicates that the health status of the previous node i is maintained. This represents the preset initial health state of node i. This indicates a maintenance execution deviation. The residual damage retention coefficient can be selected between 0 and 1; a higher value indicates that the historical damage retained after maintenance has a greater impact.
[0143] When maintenance actions include component replacement, the node state recovery operator restores the corresponding node's health state to a preset initial range and simultaneously updates the edge coupling strength, propagation delay, and fault propagation probability associated with that node. The restored health state does not need to be simply set to full value; assembly errors, residual historical damage, or compatibility deviations can be retained. Synchronously updating associated edges helps reflect the reduction or redistribution of the fault propagation probability of adjacent components by the new component.
[0144] When maintenance actions include local repairs, the degradation rate correction operator reduces the cumulative degradation of the corresponding node while retaining historical damage remnants. Retaining these remnants prevents the model from mistakenly interpreting local repairs as complete restorations. This approach better reflects the realities of maintenance in complex equipment where fatigue, wear, and thermal damage are difficult to completely eliminate.
[0145] When maintenance actions include adjusting operating parameters, the operating parameter perturbation operator corrects the degradation rate of relevant nodes, edge coupling strength, or fault propagation delay. Operating parameter adjustments can manifest as changes in load, speed, temperature control, or control strategies, thereby affecting the degradation rate and propagation delay. By mapping parameter perturbations to node and edge attributes, the system can extrapolate the effects of non-replacement maintenance measures.
[0146] When maintenance actions include deferred maintenance, the maintenance constraint reconstruction operator maintains the current maintenance resource state and allows the equipment to continue evolving along the current degradation path. Deferred maintenance serves as a significant counterfactual benchmark, as it allows the equipment to continue evolving along the current degradation path and can be used to assess the risk difference between immediate and deferred maintenance. This approach can also help identify safety boundaries when maintenance windows are insufficient.
[0147] When maintenance actions change component connections, replace compatible components, or switch to backup channels, the graph structure reconnection operator adds, deletes, or resets the weights of corresponding nodes, edges, or superedges. Graph structure reconnection is suitable for scenarios involving replacing compatible components, switching backup channels, or changing connection relationships. After adding, deleting, or resetting node and edge weights, the system can recalculate propagation paths and safety margins, avoiding misjudgments caused by using the old structure.
[0148] In this embodiment, when constructing the counterfactual maintenance intervention subset, the textual instructions in the maintenance action set, such as continue operation, status check, partial repair, component replacement, operating parameter adjustment, delayed maintenance, and combined maintenance, are first converted into intervention operations on the node status, edge coupling relationship, degradation rate, fault propagation path, operating constraints, or maintenance constraints in the equipment causal coupling diagram. The counterfactual maintenance intervention subset corresponding to each maintenance action 'a' can be represented as follows: This allows different maintenance actions under the same current equipment state to be compared within the same graph space. For component replacement maintenance actions in the maintenance action set, the component node corresponding to the component replacement maintenance action is taken as the target, and the health state of the component node in the equipment causal coupling graph is restored to the preset initial interval. The restored health state can be calculated using the formula... The calculation shows that the restored health state does not need to be simply set to the maximum value. Assembly errors, residual historical damage, or compatibility deviations can be retained. Simultaneously, the edge coupling strength, propagation delay, and fault propagation probability associated with the component node are updated to reflect the weakening or redistribution of the fault propagation probability of adjacent components by the new component, resulting in a node state recovery operator. For local maintenance actions in the maintenance action set, the component node corresponding to the local maintenance action is taken as the target. This reduces the cumulative degradation of the component node in the equipment causal coupling graph and retains residual historical damage terms, preventing local maintenance from being mistakenly considered as complete recovery by the model. This aligns with the difficulty of completely restoring fatigue, wear, and thermal damage in complex equipment. The actual maintenance process of full clearing yields a degradation rate correction operator; taking a specified edge in the equipment causal coupling graph as the target, the coupling strength weight of the specified edge is adjusted upwards or downwards according to the adjustment requirements of the coupling relationship between components by the maintenance action, resulting in an edge coupling strength adjustment operator; taking a specified edge or fault propagation path in the equipment causal coupling graph as the target, the fault propagation probability on the specified edge or path is set to zero or significantly reduced to simulate the effect of isolating the fault source or cutting off the propagation channel, resulting in a fault propagation path blocking operator; for maintenance actions of the operation parameter adjustment class in the maintenance action set, the nodes and edges related to operation parameter adjustment are taken as the target, and the operation parameter adjustment can be expressed as... Changes in load, speed, temperature control, or control strategies are used to correct the degradation rate of relevant nodes, the coupling strength of relevant edges, or the fault propagation delay in the equipment's causal coupling diagram. This is used to deduce the effects of non-replacement maintenance measures and obtain the operating parameter disturbance operator. For delayed maintenance actions in the maintenance action set, the current maintenance resource state is kept unchanged, and the equipment continues to evolve along the current degradation path. This serves as a counterfactual benchmark to assess the risk difference between immediate and deferred maintenance and to identify the safety boundary when the maintenance window is insufficient, resulting in the maintenance constraint reconstruction operator. For maintenance actions in the maintenance action set that change component connections, replace compatible components, or switch backup channels, the equipment... In a causal coupling graph, the corresponding nodes, edges, or hyperedges are the objects of action. Adding, deleting, or resetting the weights of the corresponding nodes, edges, or hyperedges can be performed. After adding, deleting, or resetting, the system can recalculate the propagation path and safety margin to avoid misjudgment caused by using the old structure, thus obtaining the graph structure reconnection operator. The above types of operators can be used in combination. For example, component replacement can simultaneously trigger node state recovery, edge coupling strength adjustment, and graph structure reconnection. Finally, based on the node state recovery operator, degradation rate correction operator, edge coupling strength adjustment operator, fault propagation path blocking operator, operating parameter disturbance operator, maintenance constraint reconstruction operator, and graph structure reconnection operator, a set of counterfactual maintenance intervention operators is constructed.
[0149] Step 103: Use the equipment causal coupling graph, the counterfactual maintenance intervention budget subset, and the preprocessed multi-source data of the equipment to be maintained to perform equipment performance evolution simulation, generate a teacher inference sample set, and use the knowledge distillation method to train the lightweight causal graph twin agent model and update the coupling graph based on the teacher inference sample set, to obtain the trained lightweight causal graph twin agent model and the updated equipment causal coupling graph.
[0150] It should be noted that, using the equipment causal coupling graph as the state carrier, different maintenance interference subsets from the counterfactual maintenance interference subset are applied. Under different initial operating states, different working environments, and different maintenance resource states provided by the preprocessed multi-source data of the equipment to be maintained, a preset high-precision degradation prediction model or high-fidelity simulation model is invoked to simulate the equipment performance evolution, generating a teacher inference sample set covering multiple maintenance scenarios and working conditions. Subsequently, using the teacher inference sample set as supervised data, the inference capability of the high-precision model is transferred to the lightweight causal graph twin surrogate model using the knowledge distillation method, and the model is trained through a multi-loss joint optimization method. During training, cross-condition invariant causal constraints are introduced to update the propagation weights and credibility weights of each causal edge in the equipment causal coupling graph, resulting in an updated equipment causal coupling graph. Low-dimensional evolution constraint units based on the Koopman operator or neural operators are added to constrain the stability of long-term inference trajectories. After training, the topological data analysis method is used to extract the fault propagation topological fingerprint based on the updated equipment causal coupling graph. Finally, a lightweight causal graph twin surrogate model and an updated equipment causal coupling graph are obtained, providing a lightweight inference model and an updated graph state carrier for the counterfactual inference of subsequent candidate maintenance schemes.
[0151] Furthermore, step 103 may include the following sub-steps:
[0152] S31. Using a preset high-precision degradation prediction model or a preset high-fidelity simulation model, with the equipment causal coupling diagram as the state carrier, different maintenance interference budgets in the counterfactual maintenance interference budget subset are applied. The equipment performance evolution simulation is carried out under different initial operating states, different working environments, and different maintenance resource states after preprocessing, and a teacher inference sample set is generated.
[0153] S32. Using the teacher inference sample set as supervised data, the lightweight causal graph twin agent model is trained using the multi-loss joint optimization method to obtain the trained lightweight causal graph twin agent model.
[0154] S33. In the training process, cross-condition invariant causal constraints are introduced. Condition groups are divided according to load, temperature, humidity, task intensity, operator differences or maintenance resource status. The action direction and symbol of each causal edge in the equipment causal coupling graph are compared across conditions. Causal edges with conflicting action directions are marked as unstable edges and their propagation weight is reduced. Causal edges with consistent action directions and errors below a preset threshold are marked as stable causal edges and their credibility weight is increased. The edge attribute update results with stability labels are obtained and synchronously updated to the causal coupling propagation layer parameters and the edge attributes of the equipment causal coupling graph to obtain the updated equipment causal coupling graph.
[0155] S34. During the training process, a low-dimensional evolution constraint unit based on the Koopman operator or neural operator is added to map the high-dimensional node state to the low-dimensional potential state space and perform multi-step state evolution. Then, the low-dimensional evolution result is back-mapped to the node health state, overall performance index and failure risk to constrain the stability of the long-term inferred trajectory.
[0156] S35. During the construction or updating of the equipment causal coupling graph, the topological data analysis method is used to extract topological features of node risk status, edge fault propagation probability and super-edge group coupling relationship, and generate fault propagation topological fingerprints to identify fault propagation loops, redundant propagation channels, critical cut edges, critical cut points and potential cascading fault structures.
[0157] Fault propagation topological fingerprint refers to the topological feature encoding generated during the construction or updating of equipment causal coupling graphs by using topological data analysis methods to extract topological features of node risk states, edge fault propagation probabilities, and super-edge group coupling relationships. By constructing a propagation subgraph that varies with risk thresholds, it records the generation and disappearance processes of fault propagation loops, redundant propagation channels, critical cut edges, critical cut points, and potential cascading fault structures. The fingerprint records the nodes and edges involved, occurrence thresholds, disappearance thresholds, durations, and differences before and after maintenance. It can be used to identify high-risk propagation loops and assess the inhibitory or induced effects of maintenance actions on fault cascading propagation. It is the core basis for cascading risk assessment and evidence chain construction.
[0158] It should be noted that high-precision degradation prediction models or high-fidelity simulation models are used to generate equipment performance evolution trajectories, component health states, failure risks, maintenance costs, downtime impacts, and safety margins under different initial states, operating conditions, maintenance resource states, and maintenance action sequences, forming teacher simulation samples. These teacher simulation samples can be generated through high-precision degradation models, high-fidelity simulation models, or a combination of both, covering normal operating conditions, boundary conditions, resource-constrained operating conditions, and high-risk node states. This process enables the lightweight model to learn not only the average evolution trend during training but also the direction of risk changes and the patterns of safety boundary changes caused by maintenance actions.
[0159] Furthermore, a lightweight causal graph twin agent model is constructed, and through knowledge distillation, this model learns the state propagation patterns, component coupling patterns, maintenance intervention response patterns, failure risk evolution patterns, maintenance cost variation patterns, and safety boundary variation patterns from the teacher's inference samples. The lightweight model does not need to replicate the entire structure of the teacher model; instead, it learns the state propagation, action response, and risk ranking relationships related to maintenance decisions. Figure 3 As shown, the teacher samples constrain trajectory prediction, action response, risk cost, safety margin, and model size, enabling the surrogate model to reduce the overhead of multi-scheme inference while preserving key relationships.
[0160] The lightweight causal graph twin surrogate model comprises a graph state encoding layer, a causal coupling propagation layer, a maintenance intervention gating layer, a multi-step trajectory prediction layer, a risk cost output layer, a safety margin output layer, and a confidence estimation layer. These model layers are organized in the order of encoding, propagation, intervention, prediction, output, and confidence estimation. This structure allows node attributes, edge attributes, maintenance actions, and safety constraints to work synergistically within the same model, rather than being handled by multiple isolated models.
[0161] The graph state encoding layer encodes node, edge, and hyperedge attributes. Separate encoders can be set for nodes, edges, and hyperedges, and data can be aligned using timestamps, component identifiers, and attribute masks. Missing attributes can be marked with a missing identifier and padded with historical estimates to avoid misinterpretation as normal states. The encoding results retain node and relationship types for the propagation layer to access based on connection direction and propagation delay.
[0162] The causal coupling propagation layer is used to learn the state propagation relationships and fault propagation relationships between components. The propagation layer can weight adjacent node information based on edge direction, coupling strength, and propagation delay, avoiding treating the influence of all components as having equal strength. This process is beneficial for identifying critical propagation paths and potential cascading risks.
[0163] The maintenance intervention gating layer is used to control node updates, edge updates, or graph reconnection based on counterfactual maintenance intervention parameters. The gating layer controls which nodes, edges, or superedges are updated and the magnitude of those updates based on the maintenance action encoding. Through the gating mechanism, the same graph state can generate different counterfactual evolution paths under different maintenance actions.
[0164] The multi-step trajectory prediction layer is used to recursively output the state evolution results for multiple future time steps. During the recursive output, both short-term predictions and long-term trends can be retained simultaneously, facilitating the observation of the ongoing impact of maintenance actions on multiple future time windows. If long-term trajectories become unstable, they can be linked with low-dimensional evolution constraints or high-fidelity verification.
[0165] The risk and cost output layer is used to output failure risk and maintenance cost. Risk and cost can correspond to failure probability, maintenance resource consumption, spare parts consumption, downtime impact, and task impact, respectively. Outputting risk and cost together is beneficial for subsequent multi-objective prioritization.
[0166] The safety margin output layer outputs the safe distance between a component's health state and its failure threshold. Based on this distance, the safety margin can be used to identify scenarios with low surface risk but close to the safety boundary. This output provides direct input for safety filtering.
[0167] The confidence estimation layer is used to output the inference uncertainty. The confidence estimation layer reflects the reliability of the surrogate model for the current operating conditions and candidate solutions. Low-confidence results are not directly used as final maintenance recommendations, but rather enter the review or calibration process.
[0168] The training objectives of knowledge distillation include at least three of the following: single-step state prediction loss, multi-step trajectory consistency loss, maintenance action response consistency loss, causal coupling preservation loss, physical constraint loss, risk ranking loss, safety margin loss, and lightweight constraint loss. During training, the weights of each loss term can be adjusted according to equipment type and maintenance task, ensuring at least consistency in trajectory, action response, and safety constraints. Lightweight constraints are used to limit the size of model parameters and inference overhead.
[0169] The training objective can be represented by the following formula. The weights of each loss term are normalized before training begins and can be adjusted based on trajectory error on the validation set, consistency of action ordering, and safety boundary error.
[0170] ;
[0171] in, For trajectory consistency loss, To maintain consistency in action response in the face of counterfactual reasons, For physical constraint loss, Losses are ranked by risk. For safety margin loss, To reduce the constraint loss, to These are non-negative weighting coefficients. Increase... This makes training focus more on safety boundary error and improves... This makes the action response more closely resemble the teacher's sample.
[0172] The maintenance action response consistency loss is used to constrain the lightweight causal graph simile surrogate model to produce performance, risk, cost, and safety margin changes consistent with the teacher's inference samples under the same initial state for different maintenance actions. This loss focuses on the relative changes brought about by maintenance actions, rather than just absolute predicted values. Even if different equipment has different health status scales, consistency in inference interpretation can be maintained through the action response direction.
[0173] Physical constraint losses include at least one of the following: degradation trend constraints, state boundary constraints, failure threshold constraints, load transfer constraints, energy constraints, post-maintenance recovery magnitude constraints, and component coupling consistency constraints. Physical constraints can originate from wear trends, load transfer, energy conservation, state boundaries, and post-maintenance recovery magnitude limitations. Incorporating these constraints into training reduces the likelihood of the model generating trajectories that do not conform to the equipment's underlying mechanisms.
[0174] Safety margin loss is used to constrain the health status of critical components to maintain a preset safety margin between the health state and the failure threshold. Safety margin loss makes the model more conservative in the region close to the failure threshold. This treatment helps reduce the possibility of underestimating the risk of safety-critical components.
[0175] It is worth mentioning that the trajectory consistency loss is calculated by subtracting the future multi-time-step state evolution trajectory predicted by the lightweight model from the corresponding trajectory in the teacher's inferred sample step by step, using mean squared error or mean absolute error. The counterfactual maintenance action response consistency loss is calculated by calculating the change in the model output relative to the baseline state after applying different maintenance actions under the same initial state, and then calculating the cosine similarity or contrast loss with the change in the corresponding action in the teacher's sample, focusing on the consistency of the direction and relative magnitude of change rather than the absolute value. The physical constraint loss is calculated by substituting the model output into physical constraints such as degradation trend constraints, state boundary constraints, failure threshold constraints, load transfer constraints, and energy constraints, calculating the constraint violation amount, and accumulating it using hinge loss or secondary penalty. The greater the degree of violation, the greater the loss. The higher the value, the higher the risk ranking loss. Risk ranking loss is calculated by pairing candidate maintenance schemes and comparing the consistency between the failure risk ranking output by the model and the risk ranking in the teacher sample. It is obtained by using pairwise ranking loss and a penalty is imposed when the model ranks high-risk schemes before low-risk schemes. Safety margin loss is calculated by calculating the safe distance between the health status of key components at each time step and the failure threshold, and calculating the mean square error with the corresponding safety margin in the teacher sample. An additional penalty term is added for cases where the safety margin is lower than the preset safety margin, making the model more conservative in the region close to the failure threshold. Lightweight constraint loss is calculated by statistically analyzing the total number of trainable parameters of the lightweight causal graph twin surrogate model or the floating-point operation volume of a single inference, and using L1 or L2 regularization. The larger the number of parameters or the amount of computation, the higher the loss value.
[0176] In this embodiment, a pre-set high-precision degradation prediction model or a pre-set high-fidelity simulation model is used. The equipment causal coupling graph serves as the state carrier. Different maintenance intervention subsets from the counterfactual maintenance intervention subset are applied. Equipment performance evolution simulation is performed under different initial operating states, different working environments, and different maintenance resource states after preprocessing. This generates a teacher inference sample set containing equipment performance evolution trajectory, component health state sequence, failure risk sequence, maintenance cost sequence, downtime impact sequence, and safety margin sequence. The samples cover normal operating conditions, boundary conditions, resource-constrained operating conditions, and risk node states. This allows the subsequent lightweight model training to learn not only the average evolution trend but also the risk change direction and safety boundary change law caused by maintenance actions. A lightweight causal graph twin surrogate model structure is constructed, including a graph state encoding layer, a causal coupling propagation layer, a maintenance intervention gating layer, a multi-step trajectory prediction layer, a risk cost output layer, a safety margin output layer, and a confidence estimation layer. The graph state encoding layer is equipped with node, edge, and hyperedge encoders. Data is aligned using timestamps, component identifiers, and attribute masks to correct missing attributes. Missing identifiers are appended and historical estimates are used to complete the encoding. The encoding results retain node type and relationship type for use by the propagation layer. The causal coupling propagation layer weights the information of adjacent nodes based on edge direction, coupling strength, and propagation delay to identify critical propagation paths and potential cascading risks. The maintenance intervention gating layer controls which nodes, edges, or superedges are updated and the update magnitude based on the maintenance action encoding, so that the same graph state generates different counterfactual evolution paths under different maintenance actions. The multi-step trajectory prediction layer outputs the state evolution results of multiple future time steps in a recursive manner, while retaining both short-term predictions and long-term trends. The risk cost output layer outputs the failure risk and maintenance cost corresponding to the failure probability, maintenance resource consumption, spare parts consumption, downtime impact, and task impact. The safety margin output layer outputs the safe distance between the component health status and the failure threshold to identify schemes approaching the safety boundary. The confidence estimation layer outputs the inference uncertainty and sends low-confidence results to the review or calibration process. Using the teacher inference sample set as supervised data, a multi-loss joint optimization method is used to train the lightweight causal graph twin agent model. The total training loss can be expressed as: Each loss weight coefficient is normalized before training begins and can be adjusted based on trajectory error, maintenance action order consistency, and safety boundary error on the validation set. Through knowledge distillation, the lightweight model learns the state propagation rules, component coupling rules, maintenance intervention response rules, failure risk evolution rules, maintenance cost change rules, and safety boundary change rules from the teacher's inference samples without replicating the entire structure of the teacher's model, resulting in a trained lightweight causal graph twin surrogate model. During training, cross-condition invariant causal constraints are introduced. Condition groups are divided according to load, temperature, humidity, task intensity, operator differences, or maintenance resource status. The direction and sign of each causal edge in the equipment causal coupling graph are compared for cross-condition consistency. Causal edges with conflicting directions are marked as unstable edges and their propagation weights are reduced. Causal edges with consistent directions and errors below a preset threshold are marked as stable causal edges and their reliability weights are increased, resulting in a model with... The edge attribute update results of the stability label are synchronously updated to the causal coupling propagation layer parameters and the edge attributes of the equipment causal coupling graph, resulting in the updated equipment causal coupling graph. During training, a low-dimensional evolution constraint unit based on the Koopman operator or neural operator is added to map the high-dimensional node state to the low-dimensional potential state space and perform multi-step state evolution. The low-dimensional evolution results are then back-mapped to the node health state, overall performance indicators, and failure risk. When the long-term trajectory of the multi-step trajectory prediction layer becomes unstable, the deviation is compared with the low-dimensional evolution constraint results, and linkage correction is triggered to constrain the stability of the long-term inferred trajectory. During the construction or update of the equipment causal coupling graph, topological data analysis methods are used to extract topological features of node risk states, edge fault propagation probabilities, and super-edge group coupling relationships, generating a fault propagation topological fingerprint to identify fault propagation loops, redundant propagation channels, critical cut edges, critical cut points, and potential cascading fault structures.
[0177] Step 104: Generate a set of candidate maintenance schemes based on the set of maintenance actions. Under the same initial equipment state, the same external working conditions, and the same prediction time window, input the updated equipment causal coupling graph, the set of candidate maintenance schemes, and the set of counterfactual maintenance intervention budget components into the trained lightweight causal graph twin surrogate model to perform counterfactual inference and output the inference results for future time steps.
[0178] It should be noted that, based on the set of maintenance actions, a set of candidate maintenance schemes is generated by combining constraints on maintenance resources, maintenance windows, mutual exclusion of maintenance actions, and pre-maintenance constraints of components. A mapping relationship is then established between each candidate maintenance scheme in this set and the corresponding interference budget in the set of counterfactual maintenance interference budget subsets. Subsequently, under the same initial equipment state, the same external operating conditions, and the same prediction time window, the graph state encoding layer in the trained lightweight causal graph twin surrogate model is used to encode the node attributes, edge attributes, and hyperedge attributes of the updated equipment causal coupling graph, resulting in the encoded graph state embedding. The causal coupling propagation layer then uses edge direction, coupling strength, and propagation delay to perform weighted propagation of adjacency information, obtaining the propagated updated node... The state characteristics are determined by selecting the corresponding maintenance intervention budget based on the mapping relationship between candidate maintenance schemes and maintenance intervention budgets, and inputting it into the maintenance intervention gating layer. The state update, edge adjustment, or graph structure reconnection is performed on the nodes, edges, or super-edges corresponding to the candidate maintenance schemes as the action objects to obtain the graph state characteristics after intervention. A multi-step trajectory prediction layer is used to evolve step by step in a recursive manner to obtain the state evolution trajectory of future time steps. Then, the failure risk sequence, maintenance cost sequence, safety margin sequence, and inferred confidence sequence are calculated by the risk cost output layer, safety margin output layer, and confidence estimation layer, respectively. Long-term stability verification is performed through low-dimensional evolution constraint units to obtain the long-term stability verification results. Finally, the above results are aligned and integrated according to time steps to output the inferred results of future time steps.
[0179] Furthermore, step 104 may include the following sub-steps:
[0180] S41. Establish a mapping relationship between each candidate maintenance scheme in the candidate maintenance scheme set and the corresponding interference budget in the counterfactual maintenance interference budget set to obtain the mapping relationship between the candidate maintenance scheme and the maintenance interference budget.
[0181] S42. The graph state encoding layer in the trained lightweight causal graph twin surrogate model is used to encode the node attributes, edge attributes, and hyperedge attributes of the updated equipment causal coupling graph to obtain the encoded graph state embedding.
[0182] S43. The causal coupling propagation layer in the trained lightweight causal graph twin proxy model is used to propagate the encoded graph state embedding with adjacency information weighted according to edge direction, coupling strength and propagation delay to obtain the node state features after propagation update.
[0183] S44. Using the maintenance intervention gating layer in the trained lightweight causal graph twin agent model, the corresponding maintenance intervention parameter is selected according to the mapping relationship between the candidate maintenance scheme and the maintenance intervention parameter. The node, edge or super-edge corresponding to the candidate maintenance scheme is used as the target to perform state update, edge adjustment or graph structure reconnection to obtain the graph state features after intervention.
[0184] S45. The multi-step trajectory prediction layer in the trained lightweight causal graph twin surrogate model is used to recursively evolve the graph state features after intervention step by step to obtain the state evolution trajectory of future time steps.
[0185] S46. The risk cost output layer in the trained lightweight causal graph twin agent model is used to calculate the risk cost of the state evolution trajectory of future time steps. The failure probability, maintenance resource consumption, spare parts consumption, downtime impact and task impact of each time step are calculated to obtain the failure risk sequence and maintenance cost sequence.
[0186] S47. The safety margin output layer in the trained lightweight causal graph twin surrogate model is used to calculate the safety margin between the state evolution trajectory and failure threshold of future time steps, and the safety distance between the health state and failure threshold of each component at each time step is calculated to obtain the safety margin sequence.
[0187] S48. The confidence estimation layer in the trained lightweight causal graph twin surrogate model is used to estimate the inference uncertainty of the model’s internal uncertainty, input perturbation uncertainty and historical error information in the inference process, and the inference confidence sequence is obtained.
[0188] S49. The low-dimensional evolution constraint unit in the trained lightweight causal graph twin surrogate model is used to perform low-dimensional mapping on the high-dimensional node states in the state evolution trajectory of future time steps, mapping them to the low-dimensional potential state space and performing multi-step evolution. The inverse mapping result is compared with the output of the multi-step trajectory prediction layer. When the deviation exceeds the preset stability threshold, the long-term unstable inference object is marked and the confidence reduction or high-fidelity verification is triggered to obtain the long-term stability verification result and update the inference confidence synchronously.
[0189] S410. Align and integrate the state evolution trajectory, failure risk sequence, maintenance cost sequence, safety margin sequence, updated projection confidence sequence, and long-term stability verification results of the future time step according to the time step to obtain the projection results of the future time step.
[0190] It should be noted that the current equipment status and candidate maintenance plans are input into the trained lightweight causal graph twin surrogate model, which outputs component health status, overall system performance indicators, remaining lifespan, failure risk, maintenance cost, downtime impact, safety margin, and projection confidence for several future time steps. During projection, candidate maintenance plans can be single actions or sequences of actions arranged according to maintenance windows. The system can compare the maximum risk, minimum safety margin, downtime impact duration, and cost sources within the entire prediction time window, thereby avoiding maintenance decisions based solely on the final time step.
[0191] ;
[0192] in, This represents the output of the projection for the next K time steps (i.e., the projection result for the next K time steps). The parameter is A lightweight causal graph twin agent model This represents the current equipment causal coupling diagram. Indicates the current operating condition. Indicates the maintenance of resource status. This represents the counterfactual maintenance intervention budget corresponding to maintenance action 'a'.
[0193] Specifically, when generating candidate maintenance solutions based on a set of maintenance actions, the process first eliminates maintenance actions that exceed the currently available resources in terms of spare parts, personnel, or equipment, based on maintenance resource constraints. Maintenance resource constraints refer to limitations on the quantity of spare parts in stock, personnel allocation, equipment availability, and total maintenance budget required for maintenance execution. Next, maintenance actions exceeding the allowed downtime window or conflicting with the task schedule are eliminated based on maintenance window constraints. Maintenance window constraints refer to limitations on the start time, duration, and compatibility with production scheduling for maintenance execution. Finally, conflicting action combinations are eliminated based on mutual exclusion constraints. Mutual exclusion constraints mean that multiple maintenance actions cannot be performed simultaneously on the same component, and the same maintenance resource cannot be used for multiple maintenance actions simultaneously. Simultaneously assigning multiple maintenance tasks to non-parallel execution constraints; then adjusting the execution order of actions based on component maintenance prerequisite constraints, which refer to the sequential dependencies where certain maintenance actions can only be executed after other prerequisite actions are completed, such as disassembly before component replacement or system shutdown and isolation before system overhaul; finally, combining maintenance actions that satisfy all the above constraints or action sequences arranged according to maintenance windows to obtain a candidate maintenance scheme set, and establishing a mapping relationship between each candidate maintenance scheme in the candidate maintenance scheme set and the corresponding interference budget component in the counterfactual maintenance interference budget component set. Candidate maintenance schemes can be single maintenance actions or action sequences arranged according to maintenance windows; the overall counterfactual inference process can be represented as follows: Under the same initial equipment state, the same external operating conditions, and the same prediction time window, the graph state encoding layer in the trained lightweight causal graph twin surrogate model is used to encode the node attributes, edge attributes, and hyperedge attributes of the updated equipment causal coupling graph. Heterogeneous attributes are mapped to a unified feature space through node encoders, edge encoders, and hyperedge encoders, respectively, and aligned using timestamps and component identifiers to obtain the encoded graph state embedding. A causal coupling propagation layer is then used to propagate the encoded graph state embedding with adjacency information weighted according to edge direction, coupling strength, and propagation delay. Historical state information of neighboring nodes is weighted and aggregated to the target node according to the propagation delay, avoiding treating all adjacency influences as having equal strength. The system propagates and updates the node state features. A maintenance intervention gating layer is used, selecting the corresponding maintenance intervention parameters based on the mapping relationship between candidate maintenance schemes and maintenance intervention parameters. If the candidate maintenance scheme is an action sequence, the corresponding intervention parameters are selected sequentially step-by-step. The nodes, edges, or hyperedges corresponding to the candidate maintenance schemes are used as the target objects, performing state updates, edge adjustments, or graph reconnection operations such as resetting node health status, reducing degradation, adjusting edge coupling strength, setting fault propagation probability to zero, or adding / deleting graph structures. This yields the graph state features after intervention. A multi-step trajectory prediction layer recursively evolves the graph state features after intervention step-by-step, with the output of each time step serving as the input for the next time step, while retaining short-term prediction results and... The long-term trend is used to obtain the state evolution trajectory of future time steps. A risk cost output layer is employed to calculate the risk cost of the state evolution trajectory of future time steps. The failure probability is calculated based on the relationship between the node health status and failure threshold at each time step. Maintenance resource consumption and spare parts consumption are calculated based on the resource consumption quota and expected execution time corresponding to maintenance actions. The downtime impact and task impact are calculated by combining maintenance timing and task status, resulting in a failure risk sequence and maintenance cost sequence. A safety margin output layer is used to calculate the safety margin between the state evolution trajectory and failure threshold of future time steps. The difference between the health status and failure threshold is calculated for each component and each time step as the safety distance, resulting in a safety margin sequence. A confidence estimation layer is then employed. The model's internal uncertainty, input disturbance uncertainty, and historical error information during the extrapolation process are used to estimate the extrapolation uncertainty. The uncertainty is quantified by model integration variance or Monte Carlo disturbance sampling to obtain the extrapolation confidence sequence. Low-dimensional evolution constraint units are used to perform low-dimensional mapping on the state evolution trajectory of high-dimensional nodes in future time steps. Based on the Koopman operator or neural operator, the mapping is performed to the low-dimensional potential state space and multi-step evolution is carried out. The inverse mapping result is compared with the output of the multi-step trajectory prediction layer. When the deviation exceeds the preset stability threshold, the long-term unstable extrapolation object is marked and the confidence reduction or high-fidelity verification is triggered to obtain the long-term stability verification result and the extrapolation confidence is updated synchronously.Finally, the state evolution trajectory, failure risk sequence, maintenance cost sequence, safety margin sequence, updated projection confidence sequence, and long-term stability verification results for future time steps are aligned and integrated according to time steps to obtain the projection results for future time steps. These include component health status sequences, overall system performance index sequences, remaining lifespan, failure risk sequences, maintenance cost sequences, downtime impact sequences, safety margin sequences, and projection confidence sequences. The system can compare the maximum risk, minimum safety margin, downtime impact duration, and cost sources within the entire prediction time window, thereby avoiding maintenance decisions based solely on the final time step.
[0194] Step 105: Based on the trained lightweight causal graph twin agent model, perform event-triggered calibration on the inference results of future time steps, and output the calibrated inference results.
[0195] It should be noted that, based on the trained lightweight causal graph twin agent model, when performing event-triggered calibration on the projection results of future time steps, the confidence level of the projection results in the future time step projections is first calibrated using a confidence calibration method to obtain the calibrated projection confidence level. Simultaneously, the projection results of future time steps are compared with the actual maintenance execution feedback to obtain multidimensional residuals in dimensions such as state, risk, cost, and safety margin. Subsequently, event-triggered calibration condition detection is performed on the calibrated projection confidence level, multidimensional residuals, and projection results of future time steps. Calibration is triggered and an event-triggered calibration standard is obtained when the projection confidence level falls below a preset confidence threshold, the confidence interval crosses the decision threshold, the current operating condition is an out-of-distribution operating condition, the multidimensional residual exceeds the corresponding threshold, multiple consecutive time windows drift in the same direction, critical components enter a high-risk zone, or the actual recovery after maintenance is lower than expected. The system identifies and triggers candidate maintenance schemes for calibration. When the event-triggered calibration flag is true, a preset high-precision degradation prediction model or a preset high-fidelity simulation model is used to perform high-precision simulation with the current equipment state and the candidate maintenance schemes for calibration as inputs to obtain a calibration sample set. Based on the calibration sample set, the trained lightweight causal graph twin surrogate model is updated hierarchically according to the error sources. The state prediction error updates the node parameters, the propagation error updates the edge parameters, the action response error updates the maintenance intervention parameters, the graph structure change updates the graph structure reconnection parameters, and the confidence estimation error updates the confidence calibration parameters to obtain the updated lightweight causal graph twin surrogate model. Finally, using the updated lightweight causal graph twin surrogate model, under the same initial equipment state, the same external operating conditions, and the same prediction time window, the candidate maintenance schemes for calibration are re-performed using counterfactual reasoning to obtain the calibrated reasoning results.
[0196] Furthermore, step 105 may include the following sub-steps:
[0197] S51. Use the confidence calibration method to calibrate the projection confidence in the projection results of future time steps to obtain the calibrated projection confidence.
[0198] S52. Compare the projection results of future time steps with the maintenance execution feedback to obtain multidimensional residuals;
[0199] S53. Perform event-triggered calibration condition detection on the calibrated extrapolation confidence, multidimensional residuals, and future time step extrapolation results to obtain event-triggered calibration identifiers and candidate maintenance schemes for triggering calibration.
[0200] S54. When the event-triggered calibration flag is true, a high-precision degradation prediction model or a high-fidelity simulation model is used as the input to perform high-precision simulation and obtain a calibration sample set.
[0201] S55. Based on the calibration sample set, perform hierarchical parameter updates on the trained lightweight causal graph twin agent model to obtain the updated lightweight causal graph twin agent model.
[0202] S56. Using the updated lightweight causal graph twin agent model, under the same initial equipment state, the same external operating conditions, and the same prediction time window, the candidate maintenance schemes that trigger calibration are re-performed by counterfactual inference to obtain the calibrated inference results.
[0203] It should be noted that, based on the projection confidence level, projection residuals, failure risk, safety margin, or maintenance execution feedback, the lightweight causal graph twin surrogate model undergoes event-triggered calibration. When preset trigger conditions are met, a high-precision degradation prediction model or a high-fidelity simulation model is invoked to regenerate calibration samples and update the lightweight causal graph twin surrogate model. For example... Figure 4 As shown, the system detects confidence level, residuals, safety barriers, and distributed external operating condition indicators. When not triggered, it uses the proxy results. When triggered, it calls the high-precision model to generate calibration samples and updates the parameters according to the source of error, thereby concentrating high-cost verification on high-risk or high-uncertainty solutions.
[0204] The extrapolation confidence level is obtained through confidence calibration. Confidence calibration can be used alone or in combination to cover internal model uncertainties, input perturbation uncertainties, and historical error uncertainties. Different equipment can select the calibration method based on the amount of data and the complexity of the model.
[0205] Confidence calibration methods include at least one of the following: model ensemble variance estimation, Monte Carlo perturbation estimation, historical residual distribution estimation, order-preserving calibration, temperature scaling calibration, conformal prediction, and out-of-distribution detection. Model ensemble and Monte Carlo perturbation bias characterize model output fluctuations, historical residual distribution bias reflects actual operating errors, and conformal prediction and out-of-distribution detection provide a safe verification entry point. Combining multiple methods can improve the stability of low-confidence identification.
[0206] When the confidence level of a candidate maintenance solution is lower than a preset confidence threshold, or the confidence interval of the simulation result crosses a failure threshold, a safety threshold, or a maintenance resource threshold, or the current operating condition is identified as an off-distribution operating condition, the candidate maintenance solution is marked as a high-uncertainty solution, and a high-precision degradation prediction model or a high-fidelity simulation model is triggered for verification. High-uncertainty solutions are not directly deleted, but instead enter the high-precision model verification or evidence chain enhancement output. This preserves potentially feasible solutions while preventing low-confidence simulation results from directly affecting maintenance decisions.
[0207] Event-triggered calibration includes collecting data on the actual equipment status and maintenance results after maintenance is performed. Maintenance execution feedback may include post-maintenance sensor status, repair quality records, recovery rate, and new fault alarms. After aligning the feedback data with the simulated data, a calibration sample can be formed.
[0208] By comparing the actual equipment state with the projected state from the lightweight causal graph twin surrogate model, residuals for state projection, risk projection, cost projection, and safety margin are obtained. These residuals can be calculated separately for state, risk, cost, and safety margin, thus distinguishing between state prediction bias, risk ranking bias, and maintenance cost estimation bias. Different residual types can trigger different parameter update strategies.
[0209] When the residuals of state projection, risk projection, cost projection, or safety margin exceed the corresponding thresholds, or when unidirectional drift occurs within multiple consecutive time windows, or when critical components enter a high-risk zone, or when the actual recovery after maintenance is lower than the expected recovery, a new calibration sample is generated by calling a high-precision degradation prediction model or a high-fidelity simulation model. Continuous unidirectional drift usually indicates a systematic change in operating conditions or equipment status, while critical components entering a high-risk zone indicates a contraction of the safety boundary. These triggering conditions collectively ensure that the calibration mechanism considers both model error and maintenance safety.
[0210] ;
[0211] in, Indicates an event-triggered calibration flag. Indicates an indicator function, This indicates a preset threshold. Indicates the derivation residual. This indicates the preset residual threshold. This represents the minimum safety barrier value within the prediction time window. This indicates the preset safety barrier threshold. This indicates the external operating condition identifier.
[0212] The node parameters, edge parameters, maintenance intervention parameters, graph structure reconnection parameters, or confidence calibration parameters of a lightweight causal graph twin surrogate model are updated using new calibration samples. The update targets can be selected based on the error source; for example, state errors primarily update node parameters, propagation errors primarily update edge parameters, and action response errors primarily update maintenance intervention parameters. This hierarchical update reduces frequent perturbations to irrelevant parameters.
[0213] In this embodiment, a confidence calibration method is used to calibrate the projection confidence in the projection results of future time steps. The confidence calibration method can be used alone or in combination, including at least one of model ensemble variance estimation, Monte Carlo perturbation estimation, historical residual distribution estimation, order-preserving calibration, temperature scaling calibration, conformal prediction, and out-of-distribution detection. Model ensemble and Monte Carlo perturbation bias characterize model output fluctuations, historical residual distribution bias reflects actual operating errors, and conformal prediction and out-of-distribution detection provide a safe verification entry point. Combining multiple methods can improve the stability of low-confidence identification, resulting in the calibrated projection confidence. The actual installation data after maintenance execution is collected. The preparedness status and actual maintenance results serve as maintenance execution feedback, including post-maintenance sensor status, repair quality records, recovery magnitude, and new fault alarms. After aligning the maintenance execution feedback with the projected data by time, it is compared with the projected results for future time steps. Deviations are calculated separately for status, risk, cost, and safety margin, resulting in multidimensional residuals that include status projection residuals, risk projection residuals, cost projection residuals, and safety margin residuals. This distinguishes between status prediction deviations, risk ranking deviations, and maintenance cost estimation deviations. Event-triggered calibration conditions are then applied to the calibrated projection confidence, multidimensional residuals, and projected results for future time steps. The triggering conditions can be expressed as... ,in The calibrated projection confidence level for candidate maintenance scheme a is used as the basis for determining the following conditions: The projection confidence level is lower than a preset confidence threshold; the confidence interval of the projection result crosses a failure threshold, a safety threshold, or a maintenance resource threshold; the current operating condition is identified as an out-of-distribution operating condition; the multidimensional residual exceeds the corresponding threshold; unidirectional drift occurs within multiple consecutive time windows; key components enter a high-risk zone; or the actual recovery after maintenance is lower than the expected recovery. In these cases, the candidate maintenance scheme is marked as a high-uncertainty scheme and calibration is triggered. High-uncertainty schemes are not directly deleted but instead enter the high-precision model verification or evidence chain enhancement output, resulting in an event-triggered calibration flag and the candidate maintenance scheme that triggers calibration. When the event-triggered calibration flag is true, a preset high-precision degradation prediction model or a preset high-fidelity simulation model is used, with the current equipment state and the candidate maintenance scheme triggering calibration as input, to perform high-precision simulation, generating a high-precision simulation containing the current equipment state and the candidate maintenance scheme that triggers calibration. A calibration sample set is generated to measure the state evolution trajectory, failure risk, maintenance cost, and safety margin. Based on the calibration sample set, the trained lightweight causal graph twin surrogate model is updated hierarchically. The update objects are selected according to the source of error: state prediction error mainly updates node parameters, propagation error mainly updates edge parameters, action response error mainly updates maintenance intervention parameters, graph structure change updates graph structure reconnection parameters, and confidence estimation error updates confidence calibration parameters. This hierarchical update method can reduce the frequent disturbance of irrelevant parameters, resulting in an updated lightweight causal graph twin surrogate model. Using the updated lightweight causal graph twin surrogate model, under the same initial equipment state, the same external operating conditions, and the same prediction time window, the candidate maintenance schemes that trigger calibration are re-performed using counterfactual inference to obtain calibrated inference results. This concentrates high-cost verification on high-risk or high-uncertainty schemes, while the original surrogate results are used when calibration is not triggered.
[0214] Step 106: Using the calibrated simulation results, the candidate maintenance scheme set is screened, sorted, and the counterfactual impact is explained, and the equipment maintenance counterfactual simulation results are output.
[0215] It should be noted that when using the calibrated simulation results to screen, rank, and interpret the counterfactual effects of the candidate maintenance scheme set, the following steps are taken: First, the candidate maintenance scheme set is subjected to hard constraint verification based on spare parts resource constraints, maintenance window constraints, safety threshold constraints, task continuity constraints, component maintenance prerequisite constraints, and maintenance action mutual exclusion constraints. Infeasible schemes that violate any hard constraint are eliminated, resulting in a set of feasible candidate schemes. Then, based on the difference between the component health state sequence and the failure threshold in the calibrated simulation results, the safety barrier values of each key component at each time step of each candidate scheme in the set of feasible candidate schemes are calculated, and the minimum value within the predicted time window is taken as the scheme safety barrier value. The system calculates the conditional risk value (CVR) of each candidate solution at a specified confidence level based on the failure risk sequence in the calibrated simulation results, thus characterizing the tail failure risk under low-probability, high-loss scenarios. Then, it performs safety filtering on each candidate solution in the feasible candidate solution set. A candidate solution is removed if the minimum safety barrier value is less than or equal to zero or the CVR exceeds a preset risk threshold. A candidate solution is marked as safety-critical when the minimum safety barrier value is close to zero or close to the preset safety barrier threshold, or when the CVR is close to the preset risk threshold, triggering evidence chain enhancement output or high-precision model verification. This yields a set of safe-passing solutions, a set of safety-critical solutions, and... The list of proposed solutions needs to be reviewed. Then, based on the calibrated simulation results regarding equipment availability, failure risk, maintenance cost, downtime, mission impact, simulation confidence, safety margin, and the disturbance magnitude of maintenance actions corresponding to the candidate maintenance solutions, a comprehensive scoring function is constructed for the safety-compliant solution set, and multi-objective ranking is performed to obtain the ranked candidate solution set and ranking results. An evidence chain construction method is used to trace the counterfactual impact of the ranked candidate solution set, identifying candidate maintenance actions, intervened nodes, adjusted edges, reconnected graph structures, key risk nodes, main fault propagation paths, risk reduction magnitude, sources of cost changes, and sources of downtime impact. The sources of safety margin changes and the reasons for scheme differences are included in the evidence content. Then, based on the fault propagation topology fingerprint, the evidence content is used to conduct a cascading risk assessment. When the maintenance action makes the high-risk propagation loop disappear, shortens its duration, or reduces its persistence, it is determined to have a fault cascading suppression effect and is written into the evidence chain. When the maintenance action creates a new high-risk propagation loop or increases its persistence, it is marked as a scheme that may induce cascading risks and is written into the evidence chain, thus obtaining the maintenance scheme evidence chain. Finally, based on the set of feasible candidate schemes, the ranking results, the set of safety critical schemes, the list of schemes that need to be reviewed, and the maintenance scheme evidence chain, the equipment maintenance counterfactual inference results containing an interpretable inference report are constructed.
[0216] Furthermore, step 106 may include the following sub-steps:
[0217] S61. Perform hard constraint verification on the candidate maintenance scheme set, eliminate infeasible schemes that violate any hard constraint, and obtain a set of feasible candidate schemes.
[0218] S62. Based on the calibrated simulation results, calculate the safety barrier values of each key component at each time step for each candidate scheme in the feasible candidate scheme set.
[0219] S63. Based on the calibrated extrapolation results, calculate the conditional value of risk for each candidate in the feasible candidate solution set at a specified confidence level;
[0220] S64. Perform safety filtering on each candidate solution in the feasible candidate solution set. When the minimum safety barrier value is less than or equal to zero or the conditional risk value exceeds the preset risk threshold, the candidate solution is removed. When the minimum safety barrier value is close to zero or close to the preset safety barrier threshold, or the conditional risk value is close to the preset risk threshold, it is marked as a safety critical solution and the evidence chain enhancement output or high-precision model review is triggered to obtain a set of safe passing solutions, a set of safety critical solutions, and a list of solutions that need to be reviewed.
[0221] S65. Construct a comprehensive scoring function for the set of safe passing solutions and perform multi-objective ranking to obtain the ranked candidate solution set and ranking result;
[0222] S66. Using the chain of evidence construction method, counterfactual impact tracing is performed on the sorted candidate solution set to obtain the evidence content;
[0223] S67. Conduct a cascading risk assessment of the evidence content to obtain the evidence chain for the maintenance plan;
[0224] S68. Based on the set of feasible candidate solutions, the ranking results, the set of safety critical solutions, the list of solutions to be reviewed, and the evidence chain of maintenance solutions, construct the counterfactual simulation results of equipment maintenance.
[0225] The ranking result refers to the ranking information output after constructing a comprehensive scoring function from the set of safe solutions and ranking them according to multiple objectives. It includes three forms: Pareto candidate solution set, comprehensive score ranking result, or risk priority ranking result. The Pareto candidate solution set records all non-inferior solutions that cannot improve one objective without reducing at least one objective, and their multi-objective trade-offs. The comprehensive score ranking result records the comprehensive score value, ranking order, and scores of each sub-indicator of each candidate solution. The risk priority ranking result arranges the solutions from low to high failure risk. The ranking result also records the scoring weight settings, the homogenization and normalization methods, and the calibrated inference results batch on which the ranking is based, so that the ranking basis can be verified and reproduced.
[0226] The list of schemes requiring review refers to a list of candidate maintenance schemes that have been determined to require further review using high-precision degradation prediction models or high-fidelity simulation models during the screening, sorting, and counterfactual impact interpretation process. It includes three categories: safety-critical schemes, high-uncertainty schemes, and schemes that may induce cascading risks. Safety-critical schemes refer to those where the minimum safety barrier value is close to zero or close to the preset safety barrier threshold, or where the conditional risk value is close to the preset risk threshold. High-uncertainty schemes refer to those where the projection confidence level is lower than the preset confidence threshold or the confidence interval crosses the decision threshold. Schemes that may induce cascading risks refer to those where maintenance actions create new high-risk propagation loops or increase persistence. The list records the review triggering reasons, associated components and propagation paths, current projection confidence level, and review conclusions for each scheme, used to ensure the reliability of projections for high-risk or boundary schemes.
[0227] The maintenance plan evidence chain refers to a complete and traceable chain of evidence formed after counterfactual impact tracing and cascading risk assessment. Indexed by candidate plan identifiers and simulation batches, it is organized into four levels: action layer, structure layer, risk layer, and constraint layer. The action layer records the type, execution timing, target, and intervention parameters of candidate maintenance actions. The structure layer records the updated values and edge weight changes of the intervened nodes, adjusted edges, and reconnected graph structures. The risk layer records key risk nodes, major fault propagation paths, risk reduction magnitude, fault cascading suppression or induction effects, and the duration changes of high-risk propagation loops. The constraint layer records hard constraint verification results, safety filtering results, and resource constraint satisfaction. The evidence chain also includes sources of cost changes, sources of downtime impact, sources of safety margin changes, and reasons for plan differences, and is associated with graph versions and model versions, providing complete and interpretable evidence for maintenance decisions.
[0228] It should be noted that, based on the calibrated simulation results, feasibility screening, safety constraint filtering, multi-objective ranking, and counterfactual impact interpretation are performed on the candidate maintenance schemes, and the counterfactual simulation results for equipment maintenance are output. Figure 5 This demonstrates the processing order: first, hard constraints such as resources, maintenance windows, and mutual exclusion of actions are applied for screening; then, safety barriers and tail risk filtering are applied; finally, a candidate set, ranking results, and evidence chain are formed. The output simultaneously correlates nodes, edges, propagation paths, risk changes, and cost sources to illustrate whether the solution's advantages stem from node recovery, path blocking, or improved safety margins.
[0229] Specifically, when screening and ranking candidate maintenance solutions based on feasibility, infeasible maintenance solutions are first eliminated based on constraints such as spare parts resources, maintenance window, safety threshold, task continuity, pre-repair requirements for components, and mutual exclusion of maintenance actions. Feasibility screening first excludes solutions that violate hard constraints, and multi-objective ranking then compares the overall performance of the remaining solutions. This order can prevent resource-infeasible solutions from being mistakenly selected simply because they have good risk or cost indicators.
[0230] A comprehensive score is then constructed based on equipment availability, failure risk, maintenance cost, downtime, mission impact, projection confidence, safety margin, and maintenance disturbance magnitude. This results in a Pareto candidate solution set, a comprehensive score ranking, or a risk priority ranking. The weight of the comprehensive score can be set according to the mission phase, equipment importance, and the scarcity of maintenance resources. The Pareto candidate solution set is used to retain feasible solutions where there are different trade-offs between risk, cost, and availability.
[0231] ;
[0232] in, This represents the overall score of candidate maintenance scheme a. Indicates the benefits of equipment availability. Indicates the risk of failure. Indicates maintenance costs, This indicates downtime or task impact. Indicates the confidence level of the inference. This represents the minimum safety barrier value within the prediction time window. This indicates the magnitude of the disturbance caused by the maintenance action. to This indicates the scoring weight. Before scoring, each indicator can be normalized and aligned to avoid differences in dimensions directly affecting the ranking.
[0233] The counterfactual impact explanation includes generating a chain of evidence for maintenance plans. The chain of evidence is indexed by candidate plan identifiers and simulation batches, connecting maintenance actions, intervention objects, state changes, constraint verifications, and output conclusions, and retaining node values before and after updates, edge weight changes, graph versions, and model versions.
[0234] The maintenance plan's evidence chain should include at least one of the following: candidate maintenance actions, intervened nodes, adjusted edges, reconnected graph structures, key risk nodes, major fault propagation paths, risk reduction magnitude, sources of cost changes, sources of downtime impact, sources of safety margin changes, and reasons for plan differences. These fields can be organized at the action layer, structure layer, risk layer, and constraint layer. Group coupling effects are associated with corresponding hyperedges and their common loads or common degradation causes.
[0235] Based on the evidence chain of the maintenance plan, an interpretable deductive report is generated for maintenance decision-making. The report is organized by plan, action, affected objects, risk propagation, constraint verification, and recommended status, and lists the reasons for failing security filtering or requiring high-fidelity review, so that the ranking criteria can be verified and reproduced.
[0236] Furthermore, when training the lightweight causal graph twin surrogate model, cross-condition invariant causal constraints are introduced. Training samples can be divided into condition groups according to load, environment, task intensity, and resource status. The direction and error of the causal edges are estimated for each group, and then their cross-condition consistency is compared.
[0237] Cross-condition invariant causality constraints are used to ensure that causal relationships of the same structure maintain consistency in direction and sign under different loads, temperatures, humidity, task intensity, operator differences, or maintenance resource conditions. This constraint does not require the magnitude of the influence to be exactly the same, but rather maintains consistency in promoting or inhibiting relationships to distinguish between stable structural relationships and local temporary correlations.
[0238] When the same causal edge exhibits conflicting directions of action under multiple operating conditions, it is marked as an unstable edge, and its propagation weight in counterfactual reasoning is reduced. Unstable edges can remain in the graph, but their propagation weight is reduced or they are added to the verification list. This approach avoids completely discarding potentially useful information while preventing it from accumulating excessive weight in critical decisions.
[0239] When the same causal edge maintains a consistent direction of action across multiple operating conditions and the error is below a preset threshold, this causal edge is marked as a stable causal edge, and its credibility weight in cross-operating condition maintenance simulation is increased. Stable causal edges can serve as reliable support for cross-operating condition maintenance simulation, providing structural priors for the surrogate model in new operating conditions with fewer samples. This processing improves the interpretive continuity of the model during operating condition switching.
[0240] When constructing or updating the causal coupling graph of equipment, topological data analysis is introduced to obtain the topological fingerprint of fault propagation. A propagation subgraph that varies with a threshold can be constructed based on the risk state of nodes and the propagation probability of edges, recording the generation and disappearance of loops, connected branches, and critical channels, and encoding persistent features as fingerprints.
[0241] The fault propagation topological fingerprint is generated based on the node risk state, edge fault propagation probability, and superedge group coupling relationship. It is used to identify fault propagation loops, redundant propagation channels, critical cut edges, critical cut points, and potential cascading fault structures. The fingerprint can record the nodes and edges involved, occurrence thresholds, disappearance thresholds, duration, and differences before and after maintenance, which can be used for evidence chain invocation.
[0242] When a maintenance action causes a high-risk propagation loop in the fault propagation topology fingerprint to disappear, its duration to shorten, or its persistence to decrease, the maintenance action is deemed to have a fault cascading suppression effect. The determination is made by comparing the fingerprints before and after the intervention under the same prediction time window and risk threshold sequence, and adding the weakened loops, key nodes, and blocked channels to the evidence chain.
[0243] When a maintenance action creates a new high-risk propagation loop or increases its persistence, the maintenance action should be marked as a maintenance plan that potentially induces cascading risks. If a maintenance action introduces a new high-risk loop, the system should not determine the effectiveness of the plan solely based on improvements in local health status; instead, it should be marked as a plan requiring review. This approach avoids localized maintenance from triggering new coupling risks.
[0244] Furthermore, the lightweight causal graph twin surrogate model also includes a low-dimensional evolutionary constraint unit based on the Koopman operator or neural operator. This unit shares the graph state encoding with the main branch of graph propagation, uses the low-frequency trend of multi-step trajectories as a stability reference, and does not replace the calculation of local fault paths.
[0245] The low-dimensional evolution constraint unit maps the high-dimensional node states to a low-dimensional latent state space and performs multi-step state evolution in the low-dimensional latent state space to constrain the stability of the long-term predicted trajectory. The mapping can be implemented by linear projection, autoencoder, or neural operator encoder. After the latent state is inversely mapped, it is aligned with the trajectory prediction result to detect recursive biases.
[0246] The low-dimensional latent state satisfies the following equation:
[0247] ;
[0248] in, Let be the low-dimensional potential state at time t. To maintain the state evolution operator corresponding to action a, To maintain the intervention bias term corresponding to action 'a', operators can be trained separately for each action type or generated by the action encoder, and the latent dimension can be selected based on reconstruction error and stability.
[0249] The low-dimensional evolution results are then inversely mapped to node health status, overall system performance indicators, and failure risks. The inverse mapping results, along with the output of the multi-step trajectory prediction layer, are used to verify whether the long-term projection deviates from a reasonable range. If the difference is too large, the system can reduce the confidence level or trigger a review.
[0250] When the deviation between the multi-step evolution result of the low-dimensional potential state and the output result of the multi-step trajectory prediction layer exceeds a preset stability threshold, the corresponding time step, corresponding maintenance action, or corresponding causal edge is marked as a long-term unstable inference object, triggering a confidence reduction or high-fidelity verification. The stability marking can record the first time the deviation exceeds the limit, the duration, and the associated maintenance action and causal edge, which can be used by the confidence estimation layer to determine the verification range.
[0251] ;
[0252] in, This indicates the stability deviation between low-dimensional evolution results and multi-step trajectory prediction results. The inverse mapping function representing the potential state. Indicates the potential state at the next moment. This indicates the next time step state of the trajectory prediction layer output. When the deviation exceeds the limit, the inference confidence is reduced and the corresponding time step is recorded.
[0253] Furthermore, in the candidate maintenance scheme selection process, a safety barrier function and conditional value of risk (VoV) constraints are introduced. The safety barrier function focuses on whether critical components cross the failure boundary, while VoV focuses on tail risks under low-probability, high-loss scenarios. The combination of the two can simultaneously constrain both conventional safety boundaries and extreme risks.
[0254] The safety barrier function measures the safe distance between the health status of a critical component and its failure threshold, and can be calculated using the following formula. This function can be constructed based on component health status, performance indicators, or safety margins, and is calculated at each prediction time step. The minimum barrier value within the prediction time window serves as a scheme filtering metric, directly locating the component and time closest to the failure threshold.
[0255] ;
[0256] in, Let i be the safety barrier value of component i at time t. The health status of component i. Let be the failure threshold for component i. In a non-limiting implementation, the health state can be normalized to 0 to 1, and a larger barrier value indicates that the component is further from the failure boundary.
[0257] When any critical component meets the requirements within the prediction time window If the risk value of a candidate maintenance solution is ≤0, or if the conditional risk value corresponding to the candidate maintenance solution exceeds the preset risk threshold, the candidate maintenance solution will be eliminated. This rule prioritizes safety constraints over cost or availability benefits. Even if a solution has a high overall score, it should be eliminated or transferred to a review panel if there is an out-of-bounds risk within the prediction window.
[0258] Conditional Value at Risk (VaR) characterizes the tail failure risk of candidate maintenance solutions under low-probability, high-loss scenarios. VaR can be used to describe extreme but severe failure losses, making it suitable for screening maintenance solutions for safety-critical equipment. This metric avoids evaluating candidate solutions solely based on average risk.
[0259] ;
[0260] in, Indicates that candidate maintenance scheme a is at a confidence level Conditional Value at Risk (VaR) Represents the random variable of failure loss. express At confidence level Value at risk (VaR) is given by E, which represents the conditional expectation. Higher confidence levels indicate greater concern about high-loss scenarios at the tails of the distribution.
[0261] When a candidate maintenance plan does not trigger the elimination condition but its safety barrier value is close to the failure threshold or its conditional risk value is close to the preset risk threshold, the candidate maintenance plan is marked as a safety-critical plan, and the enhanced output of the maintenance plan evidence chain or the review of the high-precision degradation prediction model is triggered. The enhanced output can include the component and time corresponding to the minimum safety barrier value, the main loss source of the tail risk, the confidence state, and the review results, so that safety-critical plans and directly executable plans are clearly distinguished in the report.
[0262] In this embodiment, when performing hard constraint verification on the candidate maintenance scheme set, each candidate maintenance scheme is first checked one by one according to spare parts resource constraints, maintenance window constraints, safety threshold constraints, task continuity constraints, component maintenance prerequisite constraints, and maintenance action mutual exclusion constraints. Infeasible schemes that violate any hard constraints are eliminated. This order can avoid resource-ineffective schemes being mistakenly selected due to their better risk or cost indicators, thus obtaining a set of feasible candidate schemes. Based on the component health status sequence and failure threshold in the calibrated inference results, the safety barrier function is used to calculate the safety barrier value of each key component at each time step of each candidate scheme in the feasible candidate scheme set. The safety barrier value can be expressed as: The health status can be normalized to 0 to 1. A larger barrier value indicates a greater distance from the failure boundary, and the minimum barrier value within the prediction time window is taken as the safety index of the scheme. Based on the failure risk sequence in the calibrated simulation results, the conditional risk value of each candidate scheme in the feasible candidate scheme set at a specified confidence level is calculated. The conditional risk value can be expressed as... The higher the confidence level, the more attention is paid to the high loss situation at the tail of the distribution; a safety filter is performed on each candidate solution in the feasible candidate solution set, and the critical component meets the requirements within the prediction time window. Candidate solutions are eliminated when the minimum safety barrier value is ≤0 or the conditional risk value exceeds a preset risk threshold, prioritizing safety constraints over cost or availability benefits. When the minimum safety barrier value is close to zero or the preset safety barrier threshold, or the conditional risk value is close to the preset risk threshold, it is marked as a safety-critical solution, triggering evidence chain enhancement output or high-precision model verification. The enhancement output can include the component and time corresponding to the minimum safety barrier value, the main loss source of tail risk, confidence level, and verification conclusion, resulting in a set of safe-passing solutions, a set of safety-critical solutions, and a list of solutions requiring verification. A comprehensive scoring function is constructed for the set of safe-passing solutions and multi-objective ranking is performed. The comprehensive score can be expressed as... ,in To comprehensively score candidate maintenance plan a, before scoring, each indicator can be normalized and homogenized to avoid the direct impact of dimensional differences on the ranking. Weights can be set according to the task phase, equipment importance, and the scarcity of maintenance resources. The output includes a Pareto candidate plan set, a comprehensive score ranking result, or a risk-priority ranking result. The Pareto candidate plan set is used to retain feasible plans with different trade-offs between risk, cost, and availability, resulting in a ranked candidate plan set and ranking result. An evidence chain construction method is used to trace the counterfactual impact of the ranked candidate plan set, using candidate plan identification and deductive batching. The next step is to use an index to connect maintenance actions, intervention targets, state changes, constraint checks, and output conclusions. It retains node values before and after updates, edge weight changes, graph versions, and model versions. Candidate maintenance actions, intervened nodes, adjusted edges, reconnected graph structures, key risk nodes, major fault propagation paths, risk reduction magnitude, sources of cost changes, sources of downtime impact, sources of safety margin changes, and reasons for scheme differences are included in the evidence content. These fields can be organized by action layer, structure layer, risk layer, and constraint layer. Group coupling effects are associated with corresponding hyperedges and their common loads or common degradation causes, resulting in the evidence content. Content; Based on the fault propagation topological fingerprint, a cascaded risk assessment is performed on the evidence content. The fault propagation topological fingerprint is generated based on the node risk status, edge fault propagation probability, and super-edge group coupling relationship. It records the nodes and edges involved, the occurrence threshold, the disappearance threshold, the duration, and the differences before and after maintenance. Under the same prediction time window and risk threshold sequence, the fingerprints before and after intervention are compared. When the maintenance action causes the high-risk propagation loop to disappear, the duration to shorten, or the persistence to decrease, it is determined to have a fault cascade suppression effect, and the weakened loop, key nodes, and blocked channels are written into the evidence chain. When the maintenance action causes a new high-risk propagation loop to disappear, the maintenance action is determined to have a fault cascade suppression effect. When a path is generated or its durability increases, the solution is marked as a potential cascading risk and transferred to the solution requiring review. This avoids new coupled risks caused by local maintenance and obtains the maintenance solution evidence chain. Finally, based on the set of feasible candidate solutions, the ranking results, the set of safety critical solutions, the list of solutions requiring review, and the maintenance solution evidence chain, a counterfactual simulation result of equipment maintenance is constructed, which includes an interpretable simulation report. The interpretable simulation report is organized by solution, action, affected object, risk propagation, constraint verification, and recommended state, and lists the reasons for failing the safety filter or requiring high-fidelity review, so that the ranking basis can be verified and reproduced.
[0263] The comprehensive scoring function extracts its indicators from calibrated simulation results and candidate maintenance scheme information. Equipment availability benefits are calculated based on the overall performance index sequence and downtime impact sequence from the calibrated simulation results, reflecting the percentage of time the equipment can perform tasks normally within the predicted time window after the maintenance scheme is implemented, or the degree of performance recovery. Failure risk is directly taken from the failure risk sequence in the calibrated simulation results, and can be the maximum or average failure risk within the predicted time window. Maintenance cost is taken from the maintenance cost sequence in the calibrated simulation results, including the cumulative value of maintenance resource consumption, spare parts consumption, and downtime losses. Downtime or task impact is taken from the calibrated simulation results. The downtime impact sequence and task impact in the results reflect the equipment downtime caused by maintenance actions and the degree of interference with the established tasks; the projection confidence is taken from the projection confidence sequence in the calibrated projection results, which can be the lowest confidence or average confidence within the prediction time window; the minimum safety barrier value within the prediction time window is taken from the minimum value of the safety barrier value sequence of each key component at each time step, which is used to characterize the degree to which the scheme is closest to the failure boundary within the projection period; the maintenance action disturbance amplitude is calculated based on the number, type and scope of maintenance actions in the candidate maintenance scheme, reflecting the intensity of the intervention of maintenance actions on the current operating state of the equipment. The more actions and the wider the scope, the greater the disturbance amplitude.
[0264] The counterfactual simulation results for equipment maintenance are used for decision support in equipment maintenance. Maintenance personnel can prioritize schemes with high comprehensive scores and sufficient safety margins based on the ranking results and recommended status. For safety-critical schemes and schemes requiring verification, the results are combined with evidence chain enhancement output and high-precision verification results for prudent decision-making. It can be used to formulate medium- and long-term maintenance plans. By comparing the simulation results of different maintenance timings and different action combinations, the optimal maintenance window and maintenance resource allocation scheme can be determined to reduce maintenance costs and downtime impacts while ensuring equipment safety. It can be used for equipment operation risk early warning. When the simulation results show that the safety margin of critical components is continuously decreasing or the persistence of fault propagation loops is increasing, risk warnings are issued in advance and preventive maintenance measures are recommended. It can be used for maintenance resource scheduling. Based on the maintenance resource consumption and spare parts requirements of each candidate scheme, and combined with the current resource status, maintenance personnel, spare parts, and equipment can be rationally arranged to avoid resource conflicts. It can be used for maintenance scheme traceability and auditing. The maintenance scheme evidence chain and interpretable simulation report fully record the basis for scheme selection, ranking, and decision-making, which facilitates post-event verification and experience accumulation.
[0265] In one example, this invention addresses a counterfactual scenario for the maintenance of rotating machinery or gearboxes. The system acquires vibration, temperature, rotational speed, load, lubrication status, maintenance records, and gearbox structural connections. Gears, bearings, drive shafts, lubrication units, and cooling units are constructed as nodes, and mechanical connections, load transfer, and lubrication dependencies are constructed as edges or hyperedges. Candidate maintenance options include continued operation, partial bearing repair, gear replacement, lubrication parameter adjustment, and delayed maintenance. The system calculates the failure risk, maintenance cost, and safety margin for each option. Figure 6 The division of labor is illustrated by using a normalized relative extrapolation time model for rapid initial screening and a high-precision model for triggering verification.
[0266] In this example, if the health status of the bearing node declines and increases the probability of fault propagation from the gear node through load transfer edges, the system can increase the weight of the corresponding edge and mark the main propagation path. If the candidate solution is bearing replacement, the node state recovery operator restores the bearing health status to a preset initial range, and the edge coupling strength adjustment operator simultaneously reduces the propagation weight from the bearing to the gear. If the candidate solution is delayed maintenance, the maintenance constraint reconstruction operator keeps the current resource state unchanged and allows the equipment to continue evolving along the current degradation path.
[0267] When outputting the solution, the system can incorporate the counterfactual differences between bearing replacement, lubrication parameter adjustment, and delayed maintenance into the maintenance solution's evidence chain, explaining the intervened node, the adjusted edge, the source of risk reduction, the source of downtime impact, and the source of safety margin changes. This example demonstrates the invention's ability to explain the impact path of maintenance actions in strongly coupled transmission components.
[0268] In another example, the present invention addresses a counterfactual scenario for the maintenance of hydraulic actuators or motor systems. The system constructs pumps, valves, pipelines, seals, controllers, motor windings, and sensors as nodes, and relationships such as pressure transmission, energy coupling, signal interaction, and fault propagation as edges. If the system detects that seal degradation and temperature rise are jointly contributing to a decrease in execution efficiency, the common degradation cause can be characterized through hyperedges.
[0269] In this example, candidate solutions may include replacing seals, adjusting pressure parameters, partially overhauling the controller, delayed maintenance, and combined maintenance. The safety risk filtering module first uses a safety barrier function to eliminate solutions that may exceed the failure threshold, then uses conditional value at risk to identify tail risks, and finally outputs a ranking and chain of evidence. Figure 7 This diagram illustrates the changes in risk and safety margin for each option, used to identify options with lower risk but still close to the safety boundary.
[0270] If replacing the seals can improve the safety margin but requires a longer downtime, the system will include this option in a multi-objective ranking along with operating parameter adjustment options, partial repair options, and delayed maintenance options. Maintenance personnel can select an option based on availability benefits, changes in failure risk, sources of maintenance costs, and review status, rather than making a judgment based solely on a single score.
[0271] For comparison of technical effects, existing technologies can be used as a reference. Complex equipment, during long-term service, is typically affected by loads, operating conditions, environment, maintenance history, and component coupling relationships. Its degradation process is not a linear change of a single component. Existing maintenance management methods mostly rely on periodic inspections, threshold alarms, or expert experience, making it difficult to depict the fault propagation and failure competition relationships between components in a timely manner. When equipment enters a multi-condition operating state, traditional models are prone to problems such as insufficient state interpretation, unclear risk transmission relationships, and difficulty in quantifying the impact of maintenance actions.
[0272] High-precision digital twin models can describe equipment performance evolution in detail, but maintenance management decisions often require continuous simulation of multiple candidate solutions. If each candidate solution calls a high-fidelity simulation model or a complex degradation prediction model, the computational load is large, making it difficult to meet the needs of rapid comparison, screening, and verification in on-site maintenance scheduling. Especially when comparing options such as continued operation, partial repair, component replacement, parameter adjustment, and delayed maintenance, the insufficient interaction efficiency of traditional models limits the real-time nature of maintenance decisions.
[0273] Existing lightweight surrogate models typically focus on input-output fitting, lacking explicit representations of equipment structural relationships, fault propagation paths, and the counterfactual impact of maintenance actions. While some surrogate models can provide state predictions, they cannot explain which component nodes, coupling edges, or propagation channels a particular maintenance action alters, nor can they pinpoint the sources of risk reduction and cost changes in the maintenance plan. This necessitates significant manual interpretation and secondary judgment by maintenance personnel when using model results.
[0274] In safety-critical equipment maintenance scenarios, simply providing future state predictions is insufficient to support solution execution. Candidate maintenance solutions may suffer from issues such as insufficient spare parts resources, conflicting maintenance windows, mutually exclusive maintenance actions, insufficient safety margins, or the neglect of low-probability, high-loss risks. Existing methods do not systematically handle extrapolation confidence levels, out-of-distribution operating conditions, tail failure risks, and safety-critical solutions, which can easily lead to a lack of verification mechanisms for maintenance recommendations under uncertain conditions.
[0275] Furthermore, the actual effectiveness of equipment maintenance is affected by operational quality, environmental disturbances, and sensor errors. If the model cannot be continuously calibrated based on the inference residuals and maintenance feedback, the surrogate model error will accumulate over long-term operation, causing subsequent maintenance recommendations to deviate from the actual state. Therefore, a counterfactual inference method for equipment maintenance is needed that can form a closed loop between causal graph structure, counterfactual maintenance intervention, lightweight inference, confidence calibration, and safety filtering.
[0276] To address the above problems, this invention provides a lightweight graphical twin agent modeling method for counterfactual inference of equipment maintenance, such as... Figure 8 As shown, this method takes the impact of equipment structural relationships and maintenance actions on the degradation path as the main thread, and forms a closed loop through teacher model transfer, lightweight deduction, and event-triggered verification. Figure 1 As shown, steps S1 to S4 complete data organization, causal graph construction, intervention coding, and teacher sample generation; steps S5 to S8 complete model training, scheme deduction, trigger calibration, and screening interpretation. Each step is connected sequentially through graph states, intervention estimates, and deduction trajectories.
[0277] This invention generates counterfactual inference base data in step S1, transforms equipment structure, component connections, and fault propagation relationships into a causal coupling graph in step S2, transforms maintenance actions into calculable intervention operations in step S3, generates teacher inference samples in step S4, trains a lightweight causal graph twin surrogate model in step S5, quickly outputs the future state, risk, cost, and safety margin of candidate maintenance schemes in step S6, triggers calibration under low confidence or high risk conditions in step S7, and completes safety filtering, sorting, and interpretation output in step S8. Thus, while maintaining equipment coupling relationships and maintenance intervention semantics, it improves the real-time performance, interpretability, and safety verification capability of counterfactual comparison of maintenance schemes.
[0278] Furthermore, this invention expresses group coupling relationships through heterogeneous directed graphs or heterogeneous hypergraphs, and covers actions such as component replacement, local repair, operating parameter adjustment, delayed maintenance, and graph structure reconnection through multiple types of maintenance interventions. Through knowledge distillation, cross-condition invariant causal constraints, fault propagation topological fingerprints, low-dimensional evolution constraints, safety barrier functions, and conditional risk value constraints, the output results simultaneously possess the capabilities of state prediction, risk ranking, resource constraint consistency, confidence verification, and evidence chain explanation. This is beneficial for maintenance decisions of complex equipment under multi-condition, uncertain, and safety-critical conditions.
[0279] In this embodiment of the invention, a lightweight graphical twin surrogate modeling method for counterfactual inference of equipment maintenance is provided. This invention acquires equipment operating status, working environment, maintenance history, fault records, structural connections, failure thresholds, constraints, and a set of maintenance actions to construct a causal coupling graph of the equipment and a counterfactual maintenance interference quantifier. Teacher inference samples are generated based on a high-precision degradation model or high-fidelity simulation, and a lightweight causal graphical twin surrogate model is trained. This model outputs the future state, risk, cost, downtime impact, safety margin, and confidence level of candidate maintenance schemes. Combined with event-triggered calibration, safety filtering, multi-objective ranking, and evidence chain interpretation, it triggers verification of low-confidence or safety-critical schemes, improving the ability to quickly compare maintenance schemes, trace risk sources, and support safety decisions. It is applicable to complex equipment maintenance scenarios with multiple operating conditions.
[0280] Please see Figure 9 , Figure 9 This is a structural block diagram of a lightweight graphical twin agent modeling system for equipment maintenance counterfactual inference provided in Embodiment 2 of the present invention.
[0281] This invention provides a lightweight graphical twin agent modeling system for equipment maintenance counterfactual inference, comprising:
[0282] The acquisition module 901 is used to acquire multi-source data of the equipment to be maintained, and to preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, a causal coupling diagram of the equipment is constructed.
[0283] Module 902 is used to construct a counterfactual maintenance intervention budget subset based on the maintenance action set and the causal coupling diagram of the equipment in the multi-source data of the equipment to be maintained;
[0284] Training module 903 is used to simulate equipment performance evolution using equipment causal coupling graph, counterfactual maintenance intervention budget subset and preprocessed multi-source data of the equipment to be maintained, generate teacher inference sample set, and use knowledge distillation method to train and update the lightweight causal graph twin surrogate model based on the teacher inference sample set, so as to obtain the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph.
[0285] The inference module 904 is used to generate a set of candidate maintenance schemes based on the set of maintenance actions. Under the same initial equipment state, the same external working conditions, and the same prediction time window, the updated equipment causal coupling graph, the set of candidate maintenance schemes, and the counterfactual maintenance intervention budget subset are input into the trained lightweight causal graph twin surrogate model to perform counterfactual inference and output the inference results for future time steps.
[0286] The calibration module 905 is used to perform event-triggered calibration on the inference results of future time steps based on the trained lightweight causal graph twin agent model, and output the calibrated inference results.
[0287] Output module 906 is used to use calibrated simulation results to screen, sort, and interpret the counterfactual effects of the candidate maintenance scheme set, and output the counterfactual simulation results of equipment maintenance.
[0288] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the system and modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0289] This invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program; when the computer program is executed by the processor, the processor performs the steps of the lightweight graph twin agent modeling method for equipment maintenance counterfactual inference as described in the above embodiments.
[0290] This invention also provides a computer-readable storage medium storing a computer program / instruction thereon, which, when executed by a processor, implements the steps of the lightweight graph twin agent modeling method for equipment maintenance counterfactual inference as described in the above embodiments.
[0291] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0292] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0293] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0294] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0295] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A lightweight graphical twin agent modeling method for counterfactual inference of equipment maintenance, characterized in that, include: Acquire multi-source data of the equipment to be maintained, and preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, construct a causal coupling diagram of the equipment. Based on the set of maintenance actions in the multi-source data of the equipment to be maintained and the causal coupling diagram of the equipment, a counterfactual maintenance intervention budget subset is constructed. The equipment performance evolution simulation is performed using the equipment causal coupling graph, the counterfactual maintenance intervention budget subset, and the preprocessed multi-source data of the equipment to be maintained. A teacher inference sample set is generated, and the lightweight causal graph twin surrogate model is trained and the coupling graph is updated based on the teacher inference sample set using the knowledge distillation method, resulting in the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph. Based on the set of maintenance actions, a set of candidate maintenance schemes is generated. Under the same initial equipment state, the same external working conditions, and the same prediction time window, the updated equipment causal coupling graph, the set of candidate maintenance schemes, and the set of counterfactual maintenance intervention budget components are input into the trained lightweight causal graph twin agent model to perform counterfactual inference and output the inference results for future time steps. Based on the trained lightweight causal graph twin agent model, the inference results of the future time step are calibrated by event triggering, and the calibrated inference results are output. Using the calibrated simulation results, the candidate maintenance scheme set is screened, sorted, and its counterfactual effects are interpreted, and the counterfactual simulation results of equipment maintenance are output.
2. The lightweight graphical twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, The process of preprocessing the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained, and constructing a causal coupling graph of the equipment based on the preprocessed multi-source data of the equipment to be maintained, includes: Time alignment is performed on the multi-source data of the equipment to be maintained to obtain time-aligned multi-source data of the equipment to be maintained. The time-aligned multi-source data of the equipment to be maintained is unified in units to obtain unit-unified multi-source data of the equipment to be maintained. Anomaly removal is performed on the unified multi-source data of the equipment to be maintained, resulting in anomaly-removed multi-source data of the equipment to be maintained. The multi-source data of the equipment to be maintained after the anomaly removal is filled with missing data to obtain the preprocessed multi-source data of the equipment to be maintained. The preprocessed multi-source data of the equipment to be maintained includes preprocessed operating status data, preprocessed working environment data, preprocessed maintenance history data, preprocessed fault record data, preprocessed equipment structure data, and preprocessed component connection relationships. Extract the core components, subsystems, or functional units of the equipment to be maintained from the preprocessed equipment structure data as nodes, and construct a node set; Node health status, degradation characteristics, operating parameters, remaining lifespan, maintenance history, and failure risk are extracted from preprocessed operational status data, preprocessed maintenance history data, and preprocessed fault record data as node attributes, and a node attribute matrix is constructed. Mechanical connections, energy transfer, functional dependencies, signal interactions, fault propagation, and maintenance constraints are extracted as edges from the preprocessed equipment structure data, preprocessed component connection relationships, and preprocessed fault record data, and a set of directed edges is constructed. The coupling strength, influence direction, propagation delay, constraint type, and fault propagation probability are extracted as edge attributes from the preprocessed equipment structure data and preprocessed fault record data, and an edge attribute matrix is constructed. When the preprocessed equipment structure data and preprocessed fault record data show that there are common loads, common cooling, common lubrication, common power supply, common control, common degradation causes, or common fault propagation relationships among multiple components, the group coupling relationship between multiple nodes is represented by hyperedges. The intensity, duration, and direction of influence of common factors are extracted from the preprocessed equipment structure data, preprocessed operating status data, and preprocessed fault record data as hyperedge attributes, and a hyperedge set and corresponding hyperedge attribute matrix are constructed. Temporal causal analysis was performed on the preprocessed operational status data and preprocessed fault record data to obtain the temporal causal analysis results. Attention weights are learned by performing attention weight learning on the node attribute matrix and edge attribute matrix to obtain the attention weight learning results. By combining the preprocessed operational status data, the structural priors in the preprocessed equipment structure data, the preprocessed maintenance history data, the fault propagation records in the preprocessed fault record data, the temporal causal analysis results, and the attention weight learning results, the edge attribute matrix and the hyperedge attribute matrix are iteratively corrected to obtain the updated edge attribute matrix and the updated hyperedge attribute matrix. Construct an equipment causal coupling graph based on the node set, directed edge set, superedge set, node attribute matrix, updated edge attribute matrix, and updated superedge attribute matrix.
3. The lightweight graph twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, The step of constructing a counterfactual maintenance intervention budget subset based on the set of maintenance actions in the multi-source data of the equipment to be maintained and the causal coupling graph of the equipment includes: For component replacement maintenance actions in the maintenance action set, the component node corresponding to the component replacement maintenance action is taken as the target, the health state of the component node in the equipment causal coupling graph is restored to the preset initial interval, and the edge coupling strength, propagation delay and fault propagation probability associated with the component node are updated synchronously to obtain the node state recovery operator. For the local maintenance actions in the set of maintenance actions, the component node corresponding to the local maintenance action is taken as the target, the degradation accumulation of the component node in the causal coupling diagram of the equipment is reduced and the historical damage residue is retained, and the degradation rate correction operator is obtained. Using a specified edge in the causal coupling graph of the equipment as the target, the coupling strength weight of the specified edge is adjusted up or down to obtain the edge coupling strength adjustment operator. Taking a specified edge or fault propagation path in the causal coupling graph of the equipment as the target, the fault propagation probability on the specified edge or path is set to zero or significantly reduced to obtain a fault propagation path blocking operator. For the maintenance actions of the operation parameter adjustment class in the set of maintenance actions, the nodes and edges related to the operation parameter adjustment are taken as the objects of action, and the degradation rate of the relevant nodes, the coupling strength of the relevant edges or the fault propagation delay in the causal coupling graph of the equipment are corrected to obtain the operation parameter perturbation operator. For delayed maintenance actions in the set of maintenance actions, the current maintenance resource state is kept unchanged and the equipment continues to evolve along the current degradation path to obtain the maintenance constraint reconstruction operator; For maintenance actions in the set of maintenance actions that change component connections, replace compatible components, or switch backup channels, the corresponding nodes, edges, or hyperedges in the causal coupling graph of the equipment are used as the objects of action. The corresponding nodes, edges, or hyperedges are added, deleted, or their weights are reset to obtain the graph structure reconnection operator. Based on the node state recovery operator, the degradation rate correction operator, the edge coupling strength adjustment operator, the fault propagation path blocking operator, the operating parameter perturbation operator, the maintenance constraint reconstruction operator, and the graph structure reconnection operator, a set of counterfactual maintenance interference operators is constructed.
4. The lightweight graph twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, The process involves using the equipment causal coupling graph, the counterfactual maintenance intervention subset, and the preprocessed multi-source data of the equipment to be maintained to perform equipment performance evolution simulation, generating a teacher inference sample set, and using a knowledge distillation method to train and update the lightweight causal graph twin surrogate model based on the teacher inference sample set, resulting in a trained lightweight causal graph twin surrogate model and an updated equipment causal coupling graph, including: Using a preset high-precision degradation prediction model or a preset high-fidelity simulation model, and taking the equipment causal coupling diagram as the state carrier, different maintenance interference budgets in the counterfactual maintenance interference budget subset are applied. The equipment performance evolution simulation is carried out under different initial operating states, different working environments, and different maintenance resource states after preprocessing, and a teacher inference sample set is generated. Using the teacher inference sample set as supervised data, the lightweight causal graph twin agent model is trained using a multi-loss joint optimization method to obtain the trained lightweight causal graph twin agent model. In the training process, cross-condition invariant causal constraints are introduced. Condition groups are divided according to load, temperature, humidity, task intensity, operator differences or maintenance resource status. The action direction and symbol of each causal edge in the equipment causal coupling graph are compared across conditions. Causal edges with conflicting action directions are marked as unstable edges and their propagation weight is reduced. Causal edges with consistent action directions and errors below a preset threshold are marked as stable causal edges and their credibility weight is increased. The edge attribute update results with stability labels are obtained and synchronously updated to the causal coupling propagation layer parameters and the edge attributes of the equipment causal coupling graph, resulting in the updated equipment causal coupling graph. During the training process, a low-dimensional evolution constraint unit based on the Koopman operator or neural operator is added to map the high-dimensional node state to the low-dimensional potential state space and perform multi-step state evolution. Then, the low-dimensional evolution result is back-mapped into the node health state, overall performance index and failure risk to constrain the stability of the long-term inferred trajectory. During the construction or update of the causal coupling graph of the equipment, the topological data analysis method is used to extract the topological features of the node risk state, edge fault propagation probability and super-edge group coupling relationship, and generate the fault propagation topological fingerprint, which is used to identify fault propagation loops, redundant propagation channels, critical cut edges, critical cut points and potential cascading fault structures.
5. The lightweight graphical twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, Under the same initial equipment state, the same external operating conditions, and the same prediction time window, the updated equipment causal coupling graph, the candidate maintenance scheme set, and the counterfactual maintenance intervention budget subset are input into the trained lightweight causal graph twin surrogate model to perform counterfactual inference and output the inference results for future time steps, including: Establish a mapping relationship between each candidate maintenance scheme in the candidate maintenance scheme set and the corresponding interference budget in the counterfactual maintenance interference budget set to obtain the mapping relationship between candidate maintenance schemes and maintenance interference budgets. The graph state encoding layer in the trained lightweight causal graph twin agent model is used to encode the node attributes, edge attributes, and hyperedge attributes of the updated equipment causal coupling graph to obtain the encoded graph state embedding. The causal coupling propagation layer in the trained lightweight causal graph twin proxy model is used to propagate the encoded graph state embedding with adjacency information weighted according to edge direction, coupling strength and propagation delay to obtain the propagated updated node state features. The maintenance intervention gating layer in the trained lightweight causal graph twin agent model is used to select the corresponding maintenance intervention parameter according to the mapping relationship between the candidate maintenance scheme and the maintenance intervention parameter. The node, edge or super-edge corresponding to the candidate maintenance scheme is used as the target to perform state update, edge adjustment or graph structure reconnection to obtain the graph state features after intervention. The multi-step trajectory prediction layer in the trained lightweight causal graph twin agent model is used to recursively evolve the graph state features after the intervention step by step to obtain the state evolution trajectory of the future time step. The risk cost output layer in the trained lightweight causal graph twin agent model is used to calculate the risk cost of the state evolution trajectory in future time steps. The failure probability, maintenance resource consumption, spare parts consumption, downtime impact and task impact of each time step are calculated to obtain the failure risk sequence and maintenance cost sequence. The safety margin output layer in the trained lightweight causal graph twin agent model is used to calculate the safety margin between the state evolution trajectory and the failure threshold at future time steps, and to calculate the safety distance between the health state and the failure threshold of each component at each time step, thus obtaining the safety margin sequence. The confidence estimation layer in the trained lightweight causal graph twin surrogate model is used to estimate the inference uncertainty of the model’s internal uncertainty, input perturbation uncertainty and historical error information during the inference process, and the inference confidence sequence is obtained. The low-dimensional evolution constraint unit in the trained lightweight causal graph twin surrogate model is used to perform low-dimensional mapping on the high-dimensional node states in the state evolution trajectory of future time steps, mapping them to a low-dimensional potential state space and performing multi-step evolution. The inverse mapping result is compared with the output of the multi-step trajectory prediction layer. When the deviation exceeds the preset stability threshold, the long-term unstable inference object is marked and confidence reduction or high-fidelity verification is triggered to obtain the long-term stability verification result and update the inference confidence synchronously. The state evolution trajectory, failure risk sequence, maintenance cost sequence, safety margin sequence, updated projection confidence sequence, and long-term stability verification results for future time steps are aligned and integrated according to time steps to obtain the projection results for future time steps.
6. The lightweight graphical twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, The lightweight causal graph twin agent model, based on the trained model, performs event-triggered calibration on the projection results of the future time steps, and outputs the calibrated projection results, including: The confidence level of the projection results for the future time step is calibrated using a confidence calibration method to obtain the calibrated projection confidence level. The projection results of the future time steps are compared with the maintenance execution feedback to obtain the multidimensional residuals; Event-triggered calibration conditions are detected on the calibrated extrapolation confidence, the multidimensional residual, and the extrapolation results of the future time steps to obtain event-triggered calibration identifiers and candidate maintenance schemes for triggering calibration. When the event-triggered calibration flag is true, a high-precision degradation prediction model or a high-fidelity simulation model is used as the input to perform high-precision simulation, taking the current equipment status and the candidate maintenance scheme for the triggered calibration as input, to obtain a calibration sample set. Based on the calibration sample set, the trained lightweight causal graph twin agent model is updated hierarchically to obtain the updated lightweight causal graph twin agent model. Using the updated lightweight causal graph twin agent model, the candidate maintenance schemes that trigger calibration are re-performed using counterfactual reasoning under the same initial equipment state, the same external operating conditions, and the same prediction time window, resulting in calibrated reasoning results.
7. The lightweight graphical twin proxy modeling method for equipment maintenance counterfactual inference according to claim 1, characterized in that, The process involves using the calibrated simulation results to screen, rank, and interpret the counterfactual effects of the candidate maintenance scheme set, outputting counterfactual simulation results for equipment maintenance, including: The set of candidate maintenance solutions is subjected to hard constraint verification, and infeasible solutions that violate any hard constraint are eliminated to obtain a set of feasible candidate solutions. Based on the calibrated simulation results, the safety barrier values of each key component at each time step of each candidate scheme in the feasible candidate scheme set are calculated. Based on the calibrated inference results, calculate the conditional value of risk for each candidate in the feasible candidate solution set at a specified confidence level; Each candidate solution in the feasible candidate solution set is subjected to security filtering. When the minimum security barrier value is less than or equal to zero or the conditional risk value exceeds the preset risk threshold, the candidate solution is removed. When the minimum security barrier value is close to zero or close to the preset security barrier threshold, or the conditional risk value is close to the preset risk threshold, it is marked as a security critical solution and the evidence chain enhancement output or high-precision model review is triggered to obtain a set of safe passing solutions, a set of security critical solutions, and a list of solutions that need to be reviewed. A comprehensive scoring function is constructed from the set of safety solutions and multi-objective ranking is performed to obtain a ranked set of candidate solutions and a ranking result. Using an evidence chain construction method, counterfactual influence tracing is performed on the sorted candidate solution set to obtain the evidence content; A cascading risk assessment is performed on the evidence to obtain the maintenance plan evidence chain; Based on the set of feasible candidate solutions, the ranking results, the set of safety critical solutions, the list of solutions requiring review, and the evidence chain of the maintenance solutions, a counterfactual simulation result for equipment maintenance is constructed.
8. A lightweight graphical twin agent modeling system for counterfactual inference of equipment maintenance, characterized in that, include: The acquisition module is used to acquire multi-source data of the equipment to be maintained, and to preprocess the multi-source data of the equipment to be maintained to obtain preprocessed multi-source data of the equipment to be maintained. Based on the preprocessed multi-source data of the equipment to be maintained, a causal coupling diagram of the equipment is constructed. The construction module is used to construct a counterfactual maintenance intervention budget subset based on the maintenance action set in the multi-source data of the equipment to be maintained and the causal coupling graph of the equipment; The training module is used to simulate the performance evolution of equipment using the equipment causal coupling graph, the counterfactual maintenance intervention budget subset, and the preprocessed multi-source data of the equipment to be maintained, generate a teacher inference sample set, and use the knowledge distillation method to train the lightweight causal graph twin surrogate model and update the coupling graph based on the teacher inference sample set, so as to obtain the trained lightweight causal graph twin surrogate model and the updated equipment causal coupling graph. The inference module is used to generate a set of candidate maintenance schemes based on the set of maintenance actions, and input the updated equipment causal coupling graph, the set of candidate maintenance schemes and the set of counterfactual maintenance intervention budget components into the trained lightweight causal graph twin surrogate model under the same initial equipment state, the same external working conditions and the same prediction time window, to perform counterfactual inference and output the inference results for future time steps. The calibration module is used to perform event-triggered calibration on the inference results of the future time step based on the trained lightweight causal graph twin agent model, and output the calibrated inference results. The output module is used to use the calibrated inference results to screen, sort, and interpret the counterfactual effects of the candidate maintenance scheme set, and output the counterfactual inference results of equipment maintenance.
9. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the steps of the lightweight graph twin proxy modeling method for equipment maintenance counterfactual inference as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it implements the lightweight graph twin agent modeling method for equipment maintenance counterfactual inference as described in any one of claims 1-7.
