A topological causal diagram-based energy storage fault diagnosis method and a storage medium
By using a topological causal graph-based energy storage fault diagnosis method, which utilizes graph mask matrix and reverse PageRank random walk, the problem of fault location in energy storage systems under alarm storms and multi-bus disorder is solved, and low-complexity and efficient automatic fault root cause inference is achieved.
Patent Information
- Application Number
- CN202611666174.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to quickly and accurately pinpoint the root cause of faults in energy storage systems, especially in alarm storms and multi-bus asynchronous out-of-order scenarios, leading to false alarms, missed alarms, and high maintenance costs.
A topological causal graph-based energy storage fault diagnosis method is adopted. The metagraph is defined by a declarative configuration file, and the causal search space is constrained by the graph mask matrix and the forced matrix. Combined with the transient locking window and the reverse PageRank random walk, the root cause inference can be automatically inferred in a white-box interpretable manner.
In alarm storms and multi-bus asynchronous out-of-order scenarios, it achieves accurate automatic inference of fault root causes with low computing power overhead and low maintenance cost, reducing computational complexity and improving the interpretability of diagnostic results.
Smart Images

Figure CN123179244A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of energy storage system operation and maintenance and industrial intelligent diagnostic technology, specifically involving an energy storage fault diagnosis method and storage medium based on topological causal graphs, for automatic white-box root cause inference of energy storage systems. Background Technology
[0002] With the large-scale deployment of new energy power generation and energy storage systems, the operation, maintenance, and fault diagnosis of energy storage systems have become crucial for ensuring the safe and stable operation of the power grid. Energy storage systems contain numerous measurement points, control actuators, and protection devices, resulting in complex fault propagation paths and a frequent alarm storm phenomenon of "one fault, multiple alarms." How to quickly and accurately locate the root cause from massive concurrent alarms is a pressing technical challenge in the field of energy storage operation and maintenance.
[0003] Existing technical solutions mainly fall into two categories. The first category is based on expert rule engines, relying on manually written rules for feature matching, including threshold-based alarm judgment, predefined fault tree topology localization, and historical case reasoning systems. Its drawbacks include a strong reliance on explicit hard matching of underlying points, outputting raw technical data that is difficult for on-site personnel to understand, high rule maintenance costs, and difficulty adapting to dynamic changes in topology and equipment. The second category is data-related black-box machine learning models, which automatically learn abnormal features through deep neural networks. Its drawbacks include the ability to learn only statistical correlations, failing to separate root causes from propagation symptoms under alarm storms, easily misinterpreting apparent linkages as physical causality, resulting in numerous false alarms and missed alarms; and the model's decisions are uninterpretable. Furthermore, both of these methods heavily rely on the order of timestamps, while asynchronous communication across multiple buses in energy storage systems leads to alarm out-of-order delivery, rendering traditional algorithms completely ineffective in this scenario.
[0004] Therefore, there is an urgent need for a fault diagnosis method for energy storage that integrates prior physical knowledge with data-driven causal discovery, possesses white-box interpretability, and can cope with asynchronous out-of-order issues across multiple buses. Summary of the Invention
[0005] The purpose of this invention is to provide a fault diagnosis method and storage medium for energy storage based on topological causal graphs, so as to solve the technical problems in the prior art such as fault alarms being too low-level, difficulty in separating derived symptoms, and inability to cope with asynchronous out-of-order issues of multiple buses.
[0006] To achieve the above-mentioned objectives, this invention provides a method for energy storage fault diagnosis based on topological causal graphs, the method comprising the following steps: S100. Read the declarative configuration file and define a metagraph based on the configuration file. The metagraph includes a node attribute pool and an edge attribute pool. The node attribute pool declares at least the topological space hierarchy of the test points, and the edge attribute pool declares at least the semantic polarity of the causal edges between the test points. S200: When the diagnostic engine is suspended, the operating data of the energy storage system is rolled into the cache queue, and the cached operating data is intercepted when an abnormal event is detected. S300: In response to the triggering of an abnormal event, read the declarative configuration file, perform spatial boundary convergence according to the topological space level that triggered the abnormality, and determine the diagnostic dimension; compile the causal dependencies defined in the metagraph into at least one binary control matrix, the binary control matrix including a mask matrix for constraining the causal search space and a coercion matrix for forcibly specifying causal paths; S400. Open the transient locking window and keep the compiled binary control matrix unchanged within the transient locking window; inject the mask matrix and the forced matrix as graph mask constraints into the causal discovery algorithm so that the causal discovery algorithm can perform causal search within the legal causal boundary defined by the graph mask constraints, skipping causal paths prohibited by the mask matrix and retaining causal paths specified by the forced matrix. S500: Using normal health characteristics as a reference, based on the intercepted operational data, determine the causal relationship between each abnormal node within the legal causal boundary to obtain a refined causal matrix. Perform topological reversal on the refined causal matrix and construct a reverse adjacency topology network. Perform random walk sorting on the reverse adjacency topology network to make the probability distribution converge to the root cause node.
[0007] This invention reduces the complexity of graph search from exponential to constant order, provides white-box diagnostic results that are traceable, and does not depend on the order in which alarms arrive.
[0008] In step S500, for scenarios where timestamps are out of order due to asynchronous communication across multiple buses, when determining the causal relationship between abnormal nodes within the legal causal boundary, the order of alarm arrival is not relied upon. Instead, the microscopic absolute timestamp order of sliding window feature transitions is adaptively compared to achieve timestamp out-of-order immunity.
[0009] As a further preferred embodiment, in step S100, the node attribute pool also declares the data type of the measurement points, which includes at least one of continuous measurement points, discrete alarms, and control actuators; the topology space hierarchy includes at least two of system-level, module-level, and device-level; and the semantic polarity includes positive promotion and negative inhibition. The properties of the measurement points are distinguished by declaring data types, the diagnostic granularity is determined by the topology space hierarchy, and the promotion or inhibition relationship of causal edges is distinguished by semantic polarity. Specifically, after the root cause node is determined, the consistency between the preset physical causal polarity (promotion / inhibition) of the candidate edge and the direction of change of the real-time waveform is checked. When the signs are opposite, it is determined to be a polarity conflict. The metagraph configuration can completely describe the static multidimensional attributes of the energy storage system measurement points, providing structured input for subsequent spatial boundary convergence and matrix compilation.
[0010] As a further preferred embodiment, in step S200, the cache queue is a first-in-first-out circular queue that rolls over continuous raw sensor time-series data for a preset duration, where the preset duration is 8-15 minutes. The circular queue has a constant memory footprint, and the preset duration window covers the complete timescale from the occurrence of a typical fault in the energy storage system to the protective action. This achieves the retention of the complete time-series context before and after the fault with constant low memory overhead, avoiding data loss.
[0011] As a further preferred embodiment, in step S300, spatial boundary convergence specifically involves: if the topological spatial level triggering the anomaly is module-level, then the diagnostic dimension is restricted to the module and its downstream device-level measurement point space; the binary control matrix is an M×M dimension native constant binary numerical matrix, including a physical constraint mask matrix and a forced causality matrix. The physical constraint mask matrix and the forced causality matrix are fused with the data-driven causality matrix through a control operator formula to obtain a refined causality matrix. The control operator formula is specifically as follows: A_{final} = (A_{data} ⊙ M_{mask}) + M_{force} In the formula, A_{final} represents the refined causal matrix, A_{data} represents the data-driven causal matrix (i.e., the original causal adjacency matrix learned by the causal discovery algorithm (such as the PC algorithm) based solely on the running data without prior constraints), M_{mask} represents the physical constraint mask matrix, M_{force} represents the forced causal matrix, and ⊙ represents the Hadamard product operator (a matrix element-wise multiplication operation used to apply the prohibitive constraints of M_mask to A_data). When the coordinate position corresponding to M_{force} is 0, the probability calculation for skipping the edge is performed by continuing; when the coordinate position corresponding to M_{force} is 1, the edge is allowed without inspection.
[0012] As a further preferred embodiment, in step S300, compilation is achieved through Boolean mapping of the following topological constraint operators: Forced root node operator: The in-degree is set to 0 in the causal graph, and it is only used as the starting point of the causal process; Forced leaf node operator: The out-degree is set to 0 in the causal graph and is not used as a bottom-level cause; Absolutely forbidden edge operator: The transition probability is fixed at 0 at the corresponding coordinate position in the mask matrix; Absolutely necessary edge operator: The linkage probability is fixed at 1 at the corresponding coordinate position in the forced matrix; The other normal paths are initialized to 1 by default in the mask matrix and to 0 by default in the forced matrix.
[0013] The mandatory root node operator ensures that independent external input sources serve only as causal starting points; the mandatory leaf node operator ensures that system-level protection phenomena are not misjudged as underlying causes; the absolutely prohibited edge operator fixes the transition probability of physically or logically isolated paths to 0; and the absolutely necessary edge operator fixes the linkage probability of hard-wired or serial logic to 1. This transforms expert physical cognition into executable matrix Boolean operations, eliminating illegal causal paths and omitting necessary causal paths.
[0014] As a further preferred embodiment, in step S400, the causal discovery algorithm is the PC causal discovery algorithm. The graph mask constraint enables the PC causal discovery algorithm to skip the probability calculation of absolutely forbidden edges and retain absolutely necessary edges, reducing the computational complexity of graph search to a constant order of O(1). Specifically, assuming that the converged test point space contains M nodes, the standard PC algorithm needs to perform conditional independence checks on all possible edge combinations of all M nodes, and its search space is on the order of O(2^M). However, after being masked by the physical constraint mask matrix, the coordinate positions corresponding to the forbidden edges in the matrix are fixed at 0, and the PC algorithm directly skips the conditional independence checks corresponding to these edges, and only performs checks on the legal edge combinations with a value of 1 in the physical constraint mask matrix. After being forced by the forced causal matrix, the forced edges in the matrix are directly determined to have causal relationships, and no checks need to be performed. In the scenario of module-level fault diagnosis in energy storage systems, the converged measurement point space is typically a single module and its downstream devices, with a constant number of valid causal edges (typically 10-30), independent of the total number of nodes M in the entire system. Therefore, the effective search space of the PC algorithm is reduced from O(2^M) to a constant order of O(1). This step significantly reduces the latency of a single diagnostic calculation, meeting the real-time diagnostic requirements of energy storage systems.
[0015] As a further preferred embodiment, in step S500, using normal health characteristics as a reference, the causal relationship between each abnormal node is determined within the legal causal boundary using the intercepted operational data, specifically including: Statistical correlation demodulation: Calculate the global similarity of anomalous sequences; Conditional independence test: Perform local elimination. If, after controlling for intermediate variable B, the fluctuations of A and C become independent and uncorrelated, then the derived spurious causality of A→C is removed, and a chain propagation network of A→B→C is established. For edges with unknown orientations within the physical skeleton, the weights of the graph edges are dynamically refined by adaptively comparing the microscopic absolute timestamps of sliding window feature transitions.
[0016] This allows for the effective removal of the symptoms of the outbreak from the warning storm, while preserving the true causal chain.
[0017] As a further preferred embodiment, in step S500, the topology reversal specifically involves: calculating the transpose of the refined causal matrix, rotating the forward causal arrows by 180 degrees, constructing a reverse adjacency topology network, so that the fault source node becomes a high-in-degree probability weight convergence center in the reverse network; the random walk sorting is a reverse PageRank random walk, using temporal mutual information as the probability transfer flux of the reverse edges, expressed by the formula: In the formula, Indicates from node to adjacent nodes The transition probability, node to adjacent nodes Temporal mutual information between them Represents a node The sum of temporal mutual information with all adjacent nodes.
[0018] Specifically, the PageRank iteration is performed as follows: initialize the PageRank value of each node to 1 / M; iteratively update the PageRank value of each node according to the transfer flux formula; when the sum of the changes in PageRank values of two adjacent iterations is less than the convergence threshold ε (preferably ε=1e-6), convergence is determined; the damping factor d is preferably 0.85, and the upper limit of the number of iterations is preferably 100.
[0019] As a further preferred embodiment, the declarative configuration file is a YAML text configuration file. YAML format is human-readable, structurally clear, and easy to version manage. The transient locking window is a transient hysteresis debouncing self-locking window, which is opened for a configurable duration after the event is activated. During the window period, the structure of the currently hot-compiled mask matrix and forced matrix remains unchanged to eliminate diagnostic flicker during critical switching periods and improve diagnostic stability. Specifically, the transient hysteresis debouncing self-locking window achieves dual-threshold hysteresis judgment by setting an upper threshold and a lower threshold: when the abnormal signal strength continuously exceeds the duration corresponding to the upper threshold, it is judged as a real abnormality and the locking window is opened; when the abnormal signal strength is lower than the duration corresponding to the lower threshold, it is judged that the abnormality has been eliminated and the locking window is closed. A hysteresis band is formed between the upper and lower thresholds to avoid frequent opening and closing of the locking window when the signal jitters near the threshold.
[0020] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the methods described above.
[0021] Compared with existing technologies, this invention encodes expert prior physical knowledge in a structured manner through declarative metagraph configuration, upgrades prior knowledge from soft constraints to constant binary hard constraints through spatial boundary convergence and hot compilation of graph mask matrix, suppresses flicker diagnosis during critical switching period through transient hysteresis debouncing self-locking window, reduces graph search complexity from exponential order O(2^M) to constant order O(1) through graph mask constraint injection causal discovery algorithm, removes derived false causality through conditional independence test, and makes probability distribution converge to root cause node through topology reversal and reverse PageRank random walk. Thus, it can automatically infer the root cause of energy storage faults in complex scenarios such as alarm storms and multi-bus asynchronous out-of-order events, with white-box interpretability, low computing power overhead, low maintenance cost and strong anti-interference ability. Attached Figure Description
[0022] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the embodiments described below. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart of an energy storage fault diagnosis method based on topological causal graphs in this invention. Detailed Implementation
[0023] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are only used to illustrate the present invention and should not be regarded as limiting the scope of the present invention.
[0024] Example 1 like Figure 1 As shown in the figure, this embodiment specifically provides a method for energy storage fault diagnosis based on topological causal graphs. The method includes the following steps: This embodiment takes the battery module-level fault diagnosis of a certain energy storage power station as a scenario, and adopts a preset duration of 10 minutes, a transient locking window of 30 seconds, and a measurement point space of M=50.
[0025] S100: The YAML format metagraph configuration file is written by operation and maintenance experts based on the hardware specifications of the energy storage power station; an example of the node attribute pool is as follows: nodes: - id: "BMS_Module01_Cell01_Voltage" data_type: "continuous" topology_level: "device" - id: "BMS_Module01_Temp_High" data_type: "discrete_alarm" topology_level: "module" - id: "PCS_System_Shutdown" data_type: "control_actuator" topology_level: "system".
[0026] The edge attribute pool is as follows: edges: - source: "BMS_Module01_Cell01_Voltage" target: "BMS_Module01_Temp_High" polarity: "positive" - source: "Cooling_System_Status" target: "BMS_Module01_Temp_High" polarity: "negative".
[0027] S200: Under normal conditions, the diagnostic engine is suspended, and the raw sensor time-series data of the past 10 minutes is rolled over using a FIFO circular queue. The queue capacity is 600 data points when the sampling frequency is 1Hz. When three alarms "BMS_Module01_Temp_High", "BMS_Module01_Cell03_Voltage_Low" and "PCS_Module01_Overcurrent" appear at the same time, the queue data is automatically intercepted.
[0028] S300: Reads the YAML configuration. Alarms are "module-level". Dimensions are limited to "BMS_Module01" and its downstream "device-level" measurement point space. After convergence, M=50. The compiled physical constraint mask matrix and forced causality matrix are both 50×50 binary matrices. Forced root nodes, such as "Cooling_System_Status", have an in-degree of 0; forced leaf nodes, such as "PCS_System_Shutdown", have an out-degree of 0; absolutely forbidden edges, such as "BMS_Module01_Temp_High→Cooling_System_Status", are fixed at 0 in the corresponding position of the physical constraint mask matrix; absolutely required edges, such as "BMS_Module01_Cell01_Voltage→BMS_Module01_Temp_High", are fixed at 1 in the corresponding position of the forced causality matrix; the physical constraint mask matrix for other paths defaults to 1, and the forced causality matrix defaults to 0.
[0029] S400: A 30-second transient locking window is opened, during which the physical constraint mask matrix and the forced causality matrix remain unchanged. The two matrices are injected into the PC causality discovery algorithm, skipping the probability calculation of absolutely forbidden edges and retaining absolutely necessary edges, reducing the complexity from O(2^50) to O(1); S500: Using normal health characteristics as a reference, conditional probabilities are calculated using 10-minute historical snapshot data. After controlling for "BMS_Module01_Temp_High", if the fluctuations of "Cooling_System_Status" and "PCS_System_Shutdown" become independent and uncorrelated, then the pseudo-causal relationship derived from "Cooling_System_Status→PCS_System_Shutdown" is removed, and a chain network of "Cooling_System_Status→BMS_Module01_Temp_High→PCS_System_Shutdown" is established. The refined causal matrix transpose matrix A_final^T is calculated, and a reverse adjacency topology is constructed, with MI as the transfer flux. Perform a reverse PageRank random walk and output the root cause "Cooling_System_Status" with the highest PageRank score.
[0030] Example 2 The difference between this embodiment and Embodiment 1 lies in the use of minimum parameter values: a preset duration of 8 minutes, a transient locking window of 10 seconds, and a measurement point space of M=20. This is suitable for small energy storage cabinets with few alarms and simple topologies. The 8-minute window can cover the rapid evolution of typical faults in small energy storage cabinets; the 10-second locking window is sufficient to suppress critical switching jitter in small systems; and M=20 results in a small matrix size and fast compilation. Verification shows that under this parameter combination, the diagnostic latency is less than 50ms, and the root cause localization accuracy meets the operation and maintenance requirements of small energy storage cabinets.
[0031] Example 3 The difference between this embodiment and Embodiment 1 lies in the use of maximum parameter values: a preset duration of 15 minutes, a transient locking window of 60 seconds, and a measurement point space of M=200. This is suitable for scenarios involving multiple modules in parallel in large-scale energy storage power stations with high alarm concurrency. The 15-minute window covers the complete timescale of fault propagation across modules in large power stations; the 60-second locking window adapts to the significant latency jitter of multi-bus communication in large systems; M=200 increases the matrix size, but the graph mask constraint still keeps the complexity at O(1). Verification shows that the diagnostic latency under this parameter combination is less than 200ms, and it can still accurately pinpoint the root cause in alarm storm scenarios.
[0032] Example 4 The difference between this embodiment and Embodiment 1 lies in the energy storage system's use of a multi-bus asynchronous communication architecture, resulting in millisecond-level deviations in the timestamps of each bus, leading to out-of-order alarms. This invention achieves immunity to out-of-order timestamps through a triple mechanism: S200 uses a circular queue to roll over the original time-series data, independent of the alarm arrival order; S400 uses a transient hysteresis debouncing self-locking window to maintain the matrix structure unchanged within a configurable duration, preventing frequent recompilation due to out-of-order alarms; and S500 adaptively compares the microscopic absolute timestamp order of sliding window feature transitions for edges with unknown directions, rather than relying on the alarm arrival order. Verification shows that this embodiment can still accurately pinpoint the root cause even with a ±500ms timestamp deviation.
[0033] Example 5 The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described above. The storage medium may be a non-volatile storage medium, such as ROM, RAM, magnetic disk, optical disk, etc.
[0034] Comparative Example 1 The traditional threshold-based alarm judgment and predefined fault tree topology localization scheme is used, without setting metagraph configuration, graph mask matrix, transient locking window, and reverse PageRank. In the energy storage power station scenario of Example 1, when three concurrent alarms "BMS_Module01_Temp_High", "BMS_Module01_Cell03_Voltage_Low", and "PCS_Module01_Overcurrent" occur, this scheme outputs all three underlying alarms, failing to distinguish between the root cause and propagation symptoms. Maintenance personnel need to manually investigate, with an average root cause localization time exceeding 30 minutes, and a false alarm rate exceeding 40% under alarm storms. Compared with Example 1, Comparative Example 1 cannot achieve automatic root cause identification, has poor interpretability of diagnostic results, and does not support multi-bus asynchronous out-of-order scenarios.
[0035] Comparative Example 2 The proposed solution employs LSTM temporal anomaly detection and random forest fault classification, without injecting prior physical knowledge, setting graph mask constraints, or performing topology reversal. In the energy storage power station scenario of Example 1, while this solution can detect anomalies, it only learns statistical correlations and cannot isolate derivative symptoms in the chain propagation of "Cooling_System_Status→BMS_Module01_Temp_High→PCS_System_Shutdown" under alarm storms, easily misjudging "PCS_System_Shutdown" as the root cause. Furthermore, the model's decision-making process is uninterpretable, making it difficult for maintenance personnel to trust. In multi-bus asynchronous out-of-order scenarios, this solution fails due to its reliance on timestamp order. Compared to Example 1, Comparative Example 2 shows lower root cause localization accuracy and cannot adapt to topology changes, requiring model retraining after replacing energy storage devices.
[0036] Comparative Example 3 The standard PC causal discovery algorithm is adopted, but without injecting graph mask constraints or setting transient locking windows. In the energy storage power station scenario of Example 1, when M=50, the standard PC algorithm needs to perform an exponential O(2^50) search in the high-dimensional state space, with a single diagnostic calculation delay exceeding 10 seconds, which cannot meet the real-time diagnostic requirements; moreover, it is susceptible to statistical noise interference under alarm storms, generating a large number of false causal edges. Compared with Example 1, Comparative Example 3 has high computational complexity, poor real-time performance, and low accuracy of the causal graph due to the lack of prior physical constraints.
[0037] The present invention provides a detailed description of an energy storage fault diagnosis method and storage medium based on a topological causal graph. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely illustrative of the core ideas of the invention. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the claims.
Claims
1. A method for energy storage fault diagnosis based on topological causal graphs, characterized in that, The method includes the following steps: S100. Read the declarative configuration file and define a metagraph based on the configuration file. The metagraph includes a node attribute pool and an edge attribute pool. The node attribute pool declares at least the topological space hierarchy of the test points, and the edge attribute pool declares at least the semantic polarity of the causal edges between the test points. S200: When the diagnostic engine is suspended, the operating data of the energy storage system is rolled into the cache queue, and the cached operating data is intercepted when an abnormal event is detected. S300: In response to the triggering of an abnormal event, read the declarative configuration file, perform spatial boundary convergence according to the topological space level that triggered the abnormality, and determine the diagnostic dimension; compile the causal dependencies defined in the metagraph into two binary control matrices, which include a mask matrix for constraining the causal search space and a coercion matrix for forcibly specifying causal paths. S400: Open a transient locking window with a preset duration, and keep the compiled binary control matrix unchanged within the transient locking window; inject the mask matrix and the forced matrix as graph mask constraints into the causal discovery algorithm, so that the causal discovery algorithm performs causal search within the legal causal boundary defined by the graph mask constraints, skips the causal path prohibited by the mask matrix, and retains the causal path specified by the forced matrix. S500: Using normal health characteristics as a reference, based on the intercepted operational data, determine the causal relationship between each abnormal node within the legal causal boundary to obtain a refined causal matrix. Perform topological reversal on the refined causal matrix and construct a reverse adjacency topology network. Perform random walk sorting on the reverse adjacency topology network to make the probability distribution converge to the root cause node.
2. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S100, the node attribute pool also declares the data type of the measurement point, which includes at least one of continuous measurement point, discrete alarm and control actuator; the topology space hierarchy includes at least two of system level, module level and device level. Semantic polarity includes positive promotion and negative inhibition.
3. The energy storage fault diagnosis method based on topological causal graphs as described in claim 1, characterized in that, In step S200, the buffer queue is a first-in-first-out circular queue that rolls over continuous raw sensor timing data for a preset duration, where the preset duration is 8-15 minutes.
4. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S300, spatial boundary convergence specifically involves: if the topological spatial level triggering the anomaly is module-level, then the diagnostic dimension is restricted to the module and its downstream device-level measurement point space; the binary control matrix is an M×M dimension native constant binary numerical matrix, including a physical constraint mask matrix and a forced causal matrix, wherein the physical constraint mask matrix and the forced causal matrix are fused with the data-driven causal matrix through a control operator formula to obtain a refined causal matrix, and the control operator formula is specifically as follows: A_{final} = (A_{data} ⊙ M_{mask}) + M_{force} In the formula, A_{final} represents the refined causal matrix, A_{data} represents the data-driven causal matrix, M_{mask} represents the physical constraint mask matrix, M_{force} represents the forced causal matrix, and ⊙ represents the Hadamard product operator.
5. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S300, compilation is achieved through Boolean mapping of the following topological constraint operators: Forced root node operator: The in-degree is set to 0 in the causal graph, and it is only used as the starting point of the causal process; Forced leaf node operator: The out-degree is set to 0 in the causal graph and is not used as a bottom-level cause; Absolutely forbidden edge operator: The transition probability is fixed at 0 at the corresponding coordinate position in the mask matrix; Absolutely necessary edge operator: The linkage probability is fixed at 1 at the corresponding coordinate position in the forced matrix.
6. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S400, the causal discovery algorithm is the PC causal discovery algorithm. The graph mask constraint enables the PC causal discovery algorithm to skip the probability calculation of absolutely forbidden edges and retain absolutely necessary edges, reducing the computational complexity of graph search to a constant order of O(1).
7. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S500, using normal health characteristics as a reference, and utilizing the intercepted operational data, the causal relationships between each abnormal node are determined within the legal causal boundaries. Specifically, this includes: Statistical correlation demodulation: Calculate the global similarity of anomalous sequences; Conditional independence test: Perform local elimination. If, after controlling for intermediate variable B, the fluctuations of A and C become independent and uncorrelated, then the derived spurious causality of A→C is removed, and a chain propagation network of A→B→C is established. For edges with unknown orientations within the physical skeleton, the weights of the graph edges are dynamically refined by adaptively comparing the microscopic absolute timestamps of sliding window feature transitions.
8. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, In step S500, the topology reversal specifically involves: calculating the transpose of the refined causal matrix, rotating the forward causal arrows by 180 degrees, constructing a reverse adjacency topology network, so that the fault source node becomes a high-in-degree probability weight convergence center in the reverse network; the random walk sorting is a reverse PageRank random walk, using temporal mutual information as the probability transfer flux of the reverse edges, expressed by the formula: In the formula, Indicates from node to adjacent nodes The transition probability, node to adjacent nodes Temporal mutual information between them Represents a node The sum of temporal mutual information with all adjacent nodes.
9. The energy storage fault diagnosis method based on topological causal graph as described in claim 1, characterized in that, The declarative configuration file is a YAML text configuration file, and the transient locking window is a transient hysteresis debouncing self-locking window. It is enabled for a configurable duration after the event is activated. During the window period, the structure of the mask matrix and the forced matrix that have been hot-compiled remains unchanged, so as to eliminate the diagnostic flicker during the critical switching period.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 8.
