A data-driven-based modeling method and system for a digital twin model of a fireproof cabinet
By constructing a graph neural network virtual mapping model in the energy storage fireproof cabinet, collecting multi-physics field data and performing counterfactual inference, and dynamically adjusting the edge weights, the problem of model parameter drift in the existing technology is solved, and the accurate identification of thermal defense weak points and intelligent operation and maintenance of the energy storage fireproof cabinet are realized.
Patent Information
- Application Number
- CN202611423364.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing energy storage fireproof cabinet models are difficult to update dynamically when dealing with multi-physics coupling effects and parameter drift caused by wall material aging. This leads to deviations between simulation results and actual working conditions, making it impossible to accurately identify weak points in thermal defense and affecting the reliability of active defense and fire-fighting linkage of energy storage fireproof cabinets.
By deploying a multi-source sensor network in the energy storage fireproof cabinet, collecting multi-physics field data, constructing a graph neural network virtual mapping model, injecting virtual fault disturbances to perform counterfactual inference, dynamically adjusting edge weights, realizing adaptive iterative updates of the model, and accurately locating weak points in thermal defense.
It significantly improves the physical fit and reliability of simulation results, realizes the advance warning and accuracy of thermal runaway warning, reduces operation and maintenance costs, provides standardized data support, and supports fire linkage control and intelligent operation and maintenance decision-making for equipment.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] This application relates to the field of energy storage safety protection technology, and in particular to a data-driven digital twin modeling method and system for fireproof cabinets. Background Technology
[0002] With the large-scale application of electrochemical energy storage technology, fireproof energy storage cabinets, as key safety protection carriers for battery energy storage systems, undertake important functions such as thermal runaway isolation, fire suppression, and smoke release. However, fireproof energy storage cabinets are in a complex thermal environment caused by multiple factors such as heat generation during charging and discharging cycles, ambient temperature fluctuations, and aging of wall materials. The thermal protection status of each compartment changes dynamically over time, significantly increasing safety risks.
[0003] Existing models often use fixed threshold alarms or offline calibrated digital twins. While they can monitor or simulate the thermal state of the cabinet under specific working conditions, when dealing with multi-physics coupling effects and parameter drift caused by wall material aging, the model parameters rely on manual calibration and are difficult to update dynamically. This leads to discrepancies between the simulation results and actual working conditions, making it impossible to accurately identify the weak points in the thermal defense of each compartment. Consequently, the reliability of the active defense and fire-fighting linkage of the energy storage fire cabinet is affected. Summary of the Invention
[0004] In view of this, embodiments of this application provide a data-driven digital twin modeling method and system for fireproof cabinets to solve the technical problem of insufficient accuracy in identifying weak points in thermal defense in related technologies.
[0005] In a first aspect, embodiments of this application provide a data-driven method for modeling a digital twin of a fireproof cabinet, comprising the following steps: A multi-source sensor network is deployed in the energy storage fireproof cabinet to collect multi-physics operation data during the cabinet's operation and extract the physical prior constraints of the cabinet. The multi-physics operation data is converted into graph structure data, and the adjacency matrix mask is determined based on the physical prior constraints. A graph neural network virtual mapping model is constructed based on the graph structure data and the adjacency matrix mask. The multi-physics operation data is input into the graph neural network virtual mapping model to obtain the simulation results of the operating state. Virtual fault disturbances are injected into the latent space of the graph neural network virtual mapping model to perform counterfactual inference and obtain the simulation results of the virtual working condition. Based on the simulation results of the virtual working condition and the simulation results of the operating state, the thermal defense margin of each layer in the graph neural network virtual mapping model is calculated. Based on the deviation of the thermal defense margin from the preset threshold, the edge weights corresponding to each layer are dynamically adjusted, and the adjusted graph neural network virtual mapping model is used as the benchmark model for the next cycle for iterative updates until the preset convergence condition is met. The graph neural network virtual mapping model that meets the preset convergence condition is then solidified as the active defense digital base.
[0006] In conjunction with the first aspect, one possible implementation involves converting multiphysics operation data into graph structure data, determining an adjacency matrix mask based on physical prior constraints, and constructing a graph neural network virtual mapping model based on the graph structure data and the adjacency matrix mask. This includes: determining the electrical connections and heat conduction paths between functional components inside the energy storage fireproof cabinet based on the multiphysics operation data; constructing graph structure data using functional components as nodes and the electrical connections and heat conduction paths between functional components as edges; initializing the dynamic adjacency matrix of the graph neural network based on the topology of the graph structure data, and using the node features in the graph structure data as input to the graph neural network; constructing a binary physically connected adjacency matrix as an adjacency matrix mask based on physical prior constraints; performing operations on the adjacency matrix mask and the initialized dynamic adjacency matrix to obtain a physically constrained target adjacency matrix; and inputting the target adjacency matrix into the spatial convolutional layer of the graph neural network to limit the message passing paths of the graph neural network, thereby constructing the graph neural network virtual mapping model.
[0007] In conjunction with the first aspect, in one possible implementation, the edges of the graph structure data include heat conduction edges corresponding to heat conduction path relationships and electrical edges corresponding to electrical connection relationships; the initial edge weight of the heat conduction edge is set to the reciprocal of the equivalent thermal resistance of the corresponding partition wall layer of the energy storage fireproof cabinet, so that the initial state of the graph neural network virtual mapping model conforms to the physical heat transfer law; the initial edge weight of the electrical edge is determined based on the electrical connection parameters between functional components.
[0008] In conjunction with the first aspect, in one possible implementation, virtual fault disturbances are injected into the latent space of the graph neural network virtual mapping model to perform counterfactual inference and obtain virtual operating condition simulation results. This includes: retrieving the dimension corresponding to the integrity of the partition layer from the hidden states of the nodes in the graph neural network virtual mapping model as the latent variable of the partition layer integrity; setting the latent variable of the partition layer integrity to zero to simulate the complete failure condition of the partition layer, or scaling the latent variable of the partition layer integrity according to a preset aging coefficient to simulate the partial aging condition of the partition layer, thereby injecting virtual fault disturbances into the latent space; and driving the graph neural network virtual mapping model to perform counterfactual inference simulation based on the latent space after injecting virtual fault disturbances to obtain virtual operating condition simulation results.
[0009] In conjunction with the first aspect, in one possible implementation, the thermal defense margin of each partition in the graph neural network virtual mapping model is calculated based on the results of the virtual operating condition simulation and the simulation results of the running state. This includes: obtaining the pre-calibrated inherent heat resistance parameters of the wall material as the limit heat resistance temperature of the partition; and determining the thermal defense margin based on the limit heat resistance temperature of the partition, the partition temperature in the simulation results of the running state, and the partition temperature in the simulation results of the virtual operating condition.
[0010] In conjunction with the first aspect, in one possible implementation, the edge weights corresponding to each partition are dynamically adjusted based on the degree of deviation between the thermal defense margin and a preset threshold. This includes: for partitions with a thermal defense margin lower than the preset threshold, which are identified as weak points in thermal defense, a positive gain adjustment is applied to the edge weights of the partitions according to the corresponding edge weight adjustment coefficient; for partitions with a thermal defense margin not lower than the preset threshold, which are not identified as weak points in thermal defense, a decay adjustment is applied to the edge weights of the partitions according to the corresponding edge weight adjustment coefficient; wherein, the dynamic adjustment of the edge weights is only performed on the edges corresponding to the heat conduction path relationship, while the weights of the edges corresponding to the electrical connection relationship remain unchanged.
[0011] In conjunction with the first aspect, in one possible implementation, the preset convergence condition is: within a preset number of consecutive iteration cycles, the fluctuation of the thermal defense margin of each layer is within a preset error range, and the location and number of thermal defense weak points remain consistent.
[0012] In conjunction with the first aspect, in one possible implementation, the multiphysics operating data includes electrical parameter data, temperature field data, gas concentration data, and structural state data during the operation of the energy storage fireproof cabinet; the physical prior constraints include the cabinet partition topology parameters, wall thermal insulation characteristic parameters, and pressure relief channel layout parameters of the energy storage fireproof cabinet.
[0013] In conjunction with the first aspect, in one possible implementation, the active defense digital base integrates the adjacency matrix mask of the graph neural network virtual mapping model, dynamically adjusted edge weights, preset thresholds, and inherent heat resistance parameters of the wall material; the active defense digital base is used to provide data and model support for fire linkage control and intelligent operation and maintenance decision-making of equipment.
[0014] Secondly, embodiments of this application provide a data-driven digital twin modeling system for fireproof cabinets, comprising: a multi-physics sensing data acquisition module for acquiring multi-physics operation data during the operation of the energy storage fireproof cabinet and extracting the physical prior constraints of the energy storage fireproof cabinet; a graph neural network modeling module for converting the multi-physics operation data into graph structure data, determining the adjacency matrix mask based on the physical prior constraints, and constructing a graph neural network virtual mapping model based on the graph structure data and the adjacency matrix mask; and a counterfactual inference module for inputting the multi-physics operation data into the graph neural network virtual mapping model to obtain the simulated operating state. The true result is obtained by injecting virtual fault disturbances into the latent space of the graph neural network virtual mapping model to perform counterfactual inference, resulting in virtual operating condition simulation results. Based on the virtual operating condition simulation results and the operating state simulation results, the thermal defense margin of each layer in the graph neural network virtual mapping model is calculated. The adaptive boundary reconstruction module is used to dynamically adjust the edge weights corresponding to each layer according to the deviation of the thermal defense margin from the preset threshold, and use the adjusted graph neural network virtual mapping model as the benchmark model for the next cycle for iterative updates until the preset convergence condition is met. The graph neural network virtual mapping model that meets the preset convergence condition is then solidified as the active defense digital base.
[0015] Compared with the prior art, the beneficial effects of the embodiments of the present invention are at least one of the following: Firstly, by encoding the physical prior constraints of the energy storage fireproof cabinet into an adjacency matrix mask and embedding it into the spatial convolutional layer of the graph neural network, the message passing path of the model is limited, enabling the data-driven model to be deeply coupled with the real physical topology of the cabinet, avoiding false correlation fitting, and significantly improving the physical fit and credibility of the simulation results. Secondly, by injecting virtual fault disturbances into the potential space of the model to carry out counterfactual inference, abnormal working conditions such as complete failure of the partition and partial aging of the partition can be simulated without modifying the physical equipment. The thermal defense margin of each partition can be quantified and the weak points of thermal defense can be accurately located. The safety monitoring is shifted from post-event alarm to pre-event inference, improving the lead time and accuracy of thermal runaway early warning. Third, the edge weights of each partition are dynamically adjusted according to the deviation between the thermal defense margin and the preset threshold, so as to realize the adaptive iterative update of the model. In scenarios such as wall aging and external extreme working conditions, there is no need for manual recalibration of parameters, which ensures the simulation accuracy of the model in the long term and reduces the operation and maintenance costs. Fourth, the virtual mapping model of the graph neural network that meets the convergence condition is solidified into an active defense digital base with the energy storage fireproof cabinet as the smallest safety unit, providing standardized data and model support for upper-level fire linkage control and intelligent operation and maintenance decision-making of equipment, and realizing active safety defense and intelligent operation and maintenance of the energy storage fireproof cabinet. Attached Figure Description
[0016] Figure 1 A flowchart illustrating a data-driven digital twin modeling method for fireproof cabinets, provided in one embodiment of this application; Figure 2 A schematic diagram illustrating the construction process of a graph neural network virtual mapping model provided in one embodiment of this application; Figure 3 A schematic diagram illustrating the counterfactual deduction and thermal defense margin calculation process provided in one embodiment of this application; Figure 4 This is a schematic diagram of the structure of a data-driven digital twin modeling system for fireproof cabinets, provided in one embodiment of this application. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0018] Figure 1 This is a flowchart illustrating a data-driven digital twin modeling method for fireproof cabinets, provided as an embodiment of this application. Figure 1 As shown in the embodiment of this application, the data-driven digital twin modeling method for fireproof cabinets includes steps S1 to S4.
[0019] Step S1: Multiphysics sensing data acquisition and physical prior constraint extraction.
[0020] Specifically, a multi-source sensor network is deployed inside the energy storage fireproof cabinet and in its wall structure to collect multi-physics field operation data in real time during the cabinet's operation. Simultaneously, the inherent physical prior constraints of the energy storage fireproof cabinet are extracted.
[0021] For example, the multi-source sensor network includes voltage sensors, current sensors, internal resistance detection units, temperature sensors, gas concentration sensors, and structural status sensors. Sensor placement locations may include key areas such as the surfaces of each partition wall panel, battery module terminals, the inside of cabinet doors, and near pressure relief channels.
[0022] For example, the multiphysics operating data includes electrical parameter data, temperature field data, gas concentration data, and structural state data. Specifically, the electrical parameter data includes electrical parameters such as voltage, current, and internal resistance of the battery modules inside the cabinet, used to reflect the electrical operating status of the battery modules; the temperature field data includes the temperature field distribution of the wall layers in various areas of the cabinet; the gas concentration data includes gas parameters such as flue gas concentration and combustible gas concentration inside the cabinet, used to reflect whether there are abnormal signs such as pyrolysis or combustion inside the cabinet; the structural state data includes structural state signals such as the opening and closing status of the cabinet doors and the deformation status of the partitions, used to reflect whether abnormal changes have occurred in the cabinet structure.
[0023] For example, the physical prior constraints include cabinet partition topology parameters, wall thermal insulation characteristics parameters, and pressure relief channel layout parameters. Specifically, the cabinet partition topology parameters include the spatial positional relationship of each partition in the cabinet; the wall thermal insulation characteristics parameters include the fixed equivalent thermal resistance parameters of the wall material; and the pressure relief channel layout parameters include the fixed flow cross-sectional area of the pressure relief channel and the preset opening pressure threshold.
[0024] Optionally, physical prior constraints can be extracted from static data sources such as the factory design drawings and material specifications of the energy storage fireproof cabinet, and pre-stored in the system parameter database as physical prior constraints for model building.
[0025] Step S2: Construct a graph neural network virtual mapping model with embedded physical topology priors.
[0026] The multiphysics operation data collected in step S1 is converted into graph structure data. Specifically, the structural design parameters of the energy storage fireproof cabinet are obtained to determine the functional components inside the cabinet; the operating status parameters of each functional component are extracted from the multiphysics operation data, including electrical and thermal parameters; the electrical connection relationships between functional components are determined based on the correlation between electrical parameters, and the heat conduction path relationships between functional components are determined based on the correlation between thermal parameters; a graph structure data is constructed using functional components as nodes and electrical connection relationships and heat conduction path relationships as edges.
[0027] For example, the functional components include battery modules, partition walls, pressure relief channels, and cabinet doors, etc., and the edges are used to characterize the physical relationships between the functional components, including both electrical connection relationships and heat conduction path relationships.
[0028] Furthermore, an adjacency matrix mask is determined based on physical prior constraints, and a graph neural network virtual mapping model is constructed based on the graph structure data and the adjacency matrix mask. In one embodiment, the adjacency matrix mask is a binary physical connectivity adjacency matrix, which uses a 0-1 binary encoding form to represent the physical connectivity relationship between components.
[0029] It should be understood that an adjacency matrix mask is a fixed matrix consisting only of 0s and 1s, used to represent the physical connectivity between functional components. A matrix element of 1 indicates that there is a physical thermal or structural connectivity between the two corresponding functional components; a matrix element of 0 indicates that there is no physical connectivity between the two corresponding functional components. Its function is equivalent to a "physical filter," preventing the model from passing messages between physically disconnected components.
[0030] Step S3: Calculate the thermal defense margin based on counterfactual reasoning.
[0031] Specifically, real-time collected multi-physics operating data is input into a graph neural network virtual mapping model to obtain operating state simulation results, enabling real-time monitoring of the energy storage fireproof cabinet's operating status and dynamic simulation of future operating trends. Virtual fault disturbances are injected into the latent space of the graph neural network virtual mapping model, and counterfactual inference is performed to obtain virtual operating condition simulation results. Based on the virtual operating condition simulation results and the operating state simulation results, the thermal protection margin of each compartment in the graph neural network virtual mapping model is calculated.
[0032] For example, thermal protection margin is a quantitative indicator used to measure the redundancy of a partition's ability to resist thermal runaway. The larger the margin value, the safer the partition; the smaller the margin value, the closer the partition is to its heat resistance limit, and the higher the risk of thermal runaway. The partition's ultimate heat resistance temperature is an inherent upper limit parameter of the wall material's heat resistance, specified by the material specifications. Exceeding this temperature will cause the material's performance to deteriorate or even fail.
[0033] For example, the simulation results of the operating state include simulation data such as the temperature of each compartment of the cabinet, the temperature distribution of the entire wall layer, and the trend of thermal runaway propagation.
[0034] Step S4: Model adaptive boundary reconstruction and active defense digital base generation.
[0035] Specifically, based on the deviation of the thermal defense margin from a preset threshold, the edge weights corresponding to each partition are dynamically adjusted. This dynamic adjustment is performed on edges corresponding to heat conduction paths in the graph structure data (i.e., heat conduction edges), while the weights of electrical connection edges are not involved in the thermal defense margin-driven adjustment process. This allows the model to memorize weak partitions and improve its sensitivity to their thermal risks, while mitigating irrelevant fluctuations in normal partitions, achieving adaptive evolution of the model. Subsequently, by iteratively executing steps S3 and S4, the graph neural network virtual mapping model that meets the preset convergence conditions is solidified into an active defense digital foundation.
[0036] In one embodiment, partitions with a thermal defense margin below a preset threshold are identified as weak points in thermal defense, and the edge weights of these partitions are adjusted with a positive gain according to the corresponding edge weight adjustment coefficient. Partitions with a thermal defense margin not lower than the preset threshold are not identified as weak points, and the edge weights of these partitions are adjusted with a decay effect according to the corresponding edge weight adjustment coefficient. The preset threshold is a dimensionless value and can be set to 0.3. Any partition with a thermal defense margin below this preset threshold is identified as a weak point in thermal defense. The preset threshold can be set to a value between 0.1 and 0.5, preferably 0.3. If the preset threshold is set too high, normal partitions may be misidentified as weak points, leading to excessively frequent edge weight gain adjustments; if the preset threshold is set too low, truly weak partitions may be missed, weakening the sensitivity of the thermal defense assessment. The edge weight adjustment coefficient is dynamically determined based on the difference between the thermal defense margin and the preset threshold.
[0037] It should be understood that a thermal defense margin of 0.3 means that the remaining window between the virtual fault temperature and the limit temperature accounts for 30% of the total window from the normal baseline to the limit temperature.
[0038] Furthermore, the adjusted graph neural network virtual mapping model is used as the baseline model for the next cycle, and steps S3 and S4 are iteratively executed until a preset convergence condition is met. The preset convergence condition is that, within a preset number of consecutive iteration cycles, the fluctuation of the thermal defense margin of each layer is within a preset error range, and the location and number of thermal defense weak points remain consistent. In one embodiment, the preset convergence condition is that, within three consecutive iteration cycles, the fluctuation of the thermal defense margin of each layer is within a preset error range of ±0.05, and the location and number of thermal defense weak points remain consistent; wherein the preset error range is ±0.01 to ±0.1. When the thermal defense margin is expressed as a dimensionless ratio, the fluctuation is the absolute value of the difference between the dimensionless margin values between adjacent iteration cycles.
[0039] Furthermore, the graph neural network virtual mapping model that meets the preset convergence conditions is solidified into an active defense digital base. The active defense digital base uses the energy storage fireproof cabinet as the smallest safety unit, integrating the adjacency matrix mask, dynamically adjusted edge weights, preset thresholds, and inherent heat resistance parameters of the wall material from the graph neural network virtual mapping model, forming a lightweight model deployment package. This active defense digital base can independently complete real-time multi-physics simulation of the cabinet, dynamic identification of weak points, and thermal risk prediction, providing standardized decision data and model inference capabilities to the upper-level fire-fighting linkage system and intelligent equipment operation and maintenance platform, realizing active safety defense and intelligent operation and maintenance of the energy storage fireproof cabinet.
[0040] In one embodiment, the graph neural network virtual mapping model adopts a model architecture of two-layer graph convolutional network plus single-layer linear decoder to realize multi-physics state fitting and temperature field full-domain simulation output of energy storage fireproof cabinet, adapt to the topological sparse correlation characteristics of cabinet components, and balance simulation accuracy and inference speed.
[0041] Specifically, the first layer of graph convolutional network is a topological constraint feature extraction layer, which takes into account the multi-physics node features and the binary physical connectivity adjacency matrix mask to complete the spatial feature aggregation with physical prior constraints; the second layer of graph convolutional network is a deep feature fusion layer, which deepens the learning of the thermal conduction and electrical correlation features between components; finally, it is connected to a linear decoder to output the simulation results of the temperature field of the cabinet's entire wall layer.
[0042] In one embodiment, the model training loss function employs a composite loss function of temperature mean squared error and topology mask regularization. The temperature mean squared error measures the difference between the actual wall temperature collected by the sensor and the temperature predicted by the model simulation; the topology mask regularization term penalizes non-physical correlations learned by the model, ensuring that model message passing strictly conforms to the actual physical topology of the cabinet, avoiding spurious correlation fitting, and improving the model's generalization ability and simulation fidelity. For example, the regularization coefficient of the topology mask regularization term is set to 0.01.
[0043] In one embodiment, to achieve adaptive iterative optimization of the model without manual calibration, a dynamic coefficient calculation rule strongly correlated with the thermal defense margin is adopted to replace the fixed coefficients, thus ensuring the model's adaptive evolution capability.
[0044] Specifically, for weak thermal defense layers—those with thermal defense margins below a preset threshold—a positive gain coefficient is automatically calculated. This positive gain coefficient dynamically changes with the deviation of the thermal defense margin from the preset threshold: the lower the thermal defense margin is from the preset threshold, the larger the positive gain coefficient, thereby amplifying the corresponding edge weights and improving the model's sensitivity to aging and thermal risks. The expression for calculating the positive gain coefficient is: ; Where G is the positive gain coefficient, A preset threshold is set for the thermal defense margin, where H is the current thermal defense margin of the interlayer. The first preset hyperparameter is 0.15, with a value ranging from 0.05 to 0.3. For example, when the preset threshold is 0.3 and the current thermal protection margin of the interlayer is 0.15, the ratio is (0.3-0.15) / 0.3=0.5, and the positive gain coefficient is 1+0.15×0.5=1.075; when the current thermal protection margin of the interlayer approaches 0, the positive gain coefficient approaches 1+α.
[0045] For normal insulation layers, i.e., insulation layers with a thermal protection margin not lower than a preset threshold, an attenuation coefficient is automatically calculated. The attenuation coefficient dynamically changes with the deviation of the thermal protection margin from the preset threshold: the higher the thermal protection margin is from the preset threshold, the smaller the attenuation coefficient, thereby weakening normal fluctuation interference and suppressing model overfitting. The expression for calculating the attenuation coefficient is: ; Where D is the attenuation coefficient. A preset threshold is set for the thermal defense margin, where H is the current thermal defense margin of the interlayer. This represents the maximum margin limit for the partition. It can be set to a fixed constant of 1. This is the second preset hyperparameter. The second preset hyperparameter has a value of 0.1, ranging from 0.03 to 0.2. For example, when the preset threshold is 0.3 and the current thermal defense margin of the interlayer is 0.8, the ratio is (0.8-0.3) / (1-0.3)≈0.714, and the attenuation coefficient is 1-0.1×0.714≈0.929; when the current thermal defense margin of the interlayer approaches 1.0, the attenuation coefficient approaches 1-β×1 / (1-T_th).
[0046] Through the above dynamic coefficient calculation rules, the adaptive reconstruction of the thermal insulation boundary weight of the energy storage fireproof cabinet can be achieved without the need for manual parameter recalibration.
[0047] Figure 2 This is a schematic diagram illustrating the construction process of a graph neural network virtual mapping model provided in one embodiment of this application. Figure 2 As shown, the construction process of the graph neural network virtual mapping model includes the following steps: Step S21: Initialize the dynamic adjacency matrix of the graph neural network according to the topological structure of the graph structure data, and use the node features in the graph structure data as the input of the graph neural network.
[0048] Among them, graph structure data refers to a graphical data structure composed of nodes and edges, used to describe the internal components of the energy storage fireproof cabinet and their connection relationships; the dynamic adjacency matrix is a learnable matrix in the graph neural network, whose element values represent the strength of the connection between nodes, and is autonomously updated and optimized by the network during training; node features are the attribute information vectors carried by each node, such as sensor data such as voltage and temperature, which serve as the input of the graph neural network.
[0049] For example, the dynamic adjacency matrix is a learnable parameter matrix in a graph neural network, whose initial value is set based on the existence of edges in the graph structure data: nodes with edges are initialized to 1 for their corresponding positions, and nodes without edges are initialized to 0 for their corresponding positions. During training, the element values of the dynamic adjacency matrix are updated autonomously by the network to adaptively adjust the contribution of each edge in message passing.
[0050] It should be understood that the dynamic adjacency matrix and physical edge weights jointly determine the final message passing strength of the graph neural network. Specifically, for heat conduction edges, their physical edge weights are initialized as the reciprocal of the equivalent thermal resistance of the corresponding partition wall layer. This physical edge weight is multiplied by the element value at the corresponding position in the dynamic adjacency matrix to obtain the final edge weight of the heat conduction edge. For electrical edges, their physical edge weights are determined based on electrical connection parameters and are also multiplied by the element value at the corresponding position in the dynamic adjacency matrix to obtain the final edge weight of the electrical edge. In subsequent adaptive iterations, the dynamic adjustment of the edge weights corresponding to each partition layer refers to applying positive gain or attenuation adjustment to the physical edge weights of the heat conduction edges, with the learnable parameters of the dynamic adjacency matrix updated synchronously; the physical edge weights of the electrical edges remain unchanged.
[0051] Step S22: Based on the physical prior constraints, construct a binary physical connectivity adjacency matrix as an adjacency matrix mask.
[0052] Step S23: Perform element-wise multiplication between the adjacency matrix mask and the initialized dynamic adjacency matrix to obtain the target adjacency matrix after physical constraints.
[0053] Since the elements at physically disconnected locations in the mask are 0, after element-wise dot product, the elements at the corresponding locations in the target adjacency matrix are forced to be zero, thus ensuring that no message passing occurs between physically disconnected components.
[0054] Element-wise multiplication refers to the multiplication of corresponding elements of two matrices, which is used to apply the mask constraint to the dynamic adjacency matrix; the target adjacency matrix is the final adjacency matrix obtained after mask constraint, which is used to control the message passing path of the graph neural network.
[0055] Step S24: Input the target adjacency matrix into the spatial convolutional layer of the graph neural network to limit the message passing path of the graph neural network, thereby constructing the graph neural network virtual mapping model.
[0056] Among them, the spatial convolutional layer is the core computational layer of the graph neural network, which is responsible for aggregating the feature information of neighboring nodes and updating the features of the current node; the message passing path refers to the direction and channel through which information flows from one node to another in the graph neural network.
[0057] In a preferred implementation, for edges corresponding to heat conduction paths in the graph structure data, their initial edge weights are set to the reciprocal of the equivalent thermal resistance of the corresponding partition wall layer. That is, the larger the equivalent thermal resistance of the wall layer, the smaller the initial edge weight of the corresponding edge, so that the initial state of the graph neural network virtual mapping model conforms to the physical heat transfer law. For edges corresponding to electrical connections, their initial edge weights are determined based on the electrical connection parameters (such as electrical continuity, line impedance, etc.) between the corresponding functional components. For example, if the equivalent thermal resistance of a partition wall layer is 0.5℃ / W, then the initial weight of the corresponding heat conduction edge is 2; if there is an electrical connection between battery module A and module B, then the initial weight of the corresponding electrical edge is set based on its electrical continuity.
[0058] For example, the number of spatial convolutional layers in the graph neural network can be set to 1 to 4 layers, preferably 2 layers; the node feature dimension corresponds to the multi-physics data dimension, and can be set to 4 to 16 dimensions, for example 4 dimensions (corresponding to four types of data: voltage, temperature, gas concentration, and structural state) or 16 dimensions.
[0059] This embodiment explicitly encodes the component topology of the energy storage fireproof cabinet into the model using a graph structure data organization method with functional components as nodes and electrical connection relationships and heat conduction path relationships as edges. By using a binary physical connectivity adjacency matrix mask and element-wise multiplication of the dynamic adjacency matrix, the message passing path is forced to be consistent with the actual physical topology of the cabinet, eliminating false correlation fitting that does not exist physically, and significantly improving the physical fit, simulation fidelity and generalization ability of the model.
[0060] Figure 3 This is a schematic diagram illustrating the counterfactual deduction and thermal defense margin calculation process provided in one embodiment of this application. Figure 3 As shown, the counterfactual deduction process includes the following sub-steps: Step S31: Retrieve the dimension corresponding to the layer integrity from the hidden state of the node in the graph neural network virtual mapping model as the layer integrity hidden variable.
[0061] The hidden state of a node is the node feature vector output by the intermediate layer of the graph neural network, which contains aggregated information about the node and its neighbors.
[0062] Step S32: Set the implicit variable of the partition integrity to zero to simulate the complete failure condition of the partition; or, scale the implicit variable of the partition integrity according to the preset aging coefficient to simulate the partial aging condition of the partition, thereby injecting virtual fault disturbances into the potential space.
[0063] In one embodiment, the hidden state dimension of each node in the graph neural network is set to 16 dimensions, where the third dimension is fixed to correspond to the thermal penetration rate feature of the partition, serving as a dedicated hidden variable characterizing the partition integrity. The remaining dimensions correspond to auxiliary features such as temperature, gas concentration, and electrical parameters. That is, the dimension corresponding to partition integrity refers to the pre-specified position of the component (i.e., the third dimension) in the 16-dimensional vector used to characterize partition integrity (thermal penetration rate). Partition integrity refers to the degree to which the partition wall panel of the fireproof cabinet maintains its original heat resistance, insulation, and structural integrity. Higher integrity indicates that the partition is undamaged, unaged, and has not melted through; lower integrity indicates that the partition has cracked, carbonized, or has experienced thermal penetration failures. It should be understood that the dimension corresponding to partition integrity in the hidden state of the nodes in the neural network virtual mapping model can also be other predetermined dimensions, which can be selected according to the actual situation.
[0064] Based on this specific latent variable, precise perturbation of two virtual fault conditions is achieved: (1) Complete failure of the interlayer: The value of the third dimension of the hidden state of the node is directly set to zero, which indicates that the thermal barrier capability of the interlayer is completely lost and the thermal penetration rate reaches the maximum value. (2) Aging conditions of the interlayer: The values of the latent variables are scaled using a fixed aging coefficient. For example, the aging coefficient is set to 0.7, that is, the original value of the latent variable is multiplied by 0.7, which represents the aging of the interlayer wall material, the decay of thermal resistance performance, and the improvement of thermal penetration capability, simulating the real aging and degradation scenario.
[0065] By using the aforementioned controllable latent variable perturbation, without modifying the physical equipment, a refined counterfactual deduction can be completed in the model's latent space, outputting the thermal runaway propagation path and global temperature field distribution under different fault conditions.
[0066] Step S33: Based on the potential space after injecting virtual fault disturbance, drive the graph neural network virtual mapping model to perform counterfactual inference simulation to obtain the virtual working condition simulation results.
[0067] For example, the virtual operating condition simulation results include simulation data such as the thermal runaway propagation path and the global temperature distribution of the cabinet wall under the virtual operating condition.
[0068] Specifically, after the virtual fault disturbance injection is completed, the latent space of the graph neural network virtual mapping model already contains abnormal state information representing the failure or aging of the interlayer. At this time, the perturbed latent space is used as the input condition for the next round of model inference, driving the graph neural network virtual mapping model to perform forward propagation calculations along its learned physical topological constraints and multiphysics mapping relationships, thereby outputting simulation data such as the global temperature field distribution, thermal runaway propagation path, and interlayer state response under virtual fault conditions, as the simulation results of the virtual operating condition.
[0069] Counterfactual simulation refers to a hypothetical simulation process that, without changing the actual operating state of the physical equipment, only introduces artificially set fault assumptions into the model's potential space to deduce "how the thermal state of the cabinet will evolve if the partition fails completely or partially ages." Since this deduction is based on the same graph neural network virtual mapping model, its input... The output mapping relationship is consistent with the physical constraints of the simulation under normal operating conditions.
[0070] Through the above counterfactual simulation, the temperature response and thermal defense performance of each compartment under virtual fault disturbance can be quantitatively obtained without triggering a real fault in the physical fireproof cabinet, providing a data foundation for subsequent calculation of thermal defense margin and identification of thermal defense weaknesses.
[0071] Furthermore, based on the results of the virtual operating condition simulation and the simulation results of the operational state, the thermal protection margin of each partition in the graph neural network virtual mapping model is calculated. In one embodiment, the inherent heat resistance parameters of the pre-calibrated wall material are obtained as the ultimate heat resistance temperature of the partition; based on the ultimate heat resistance temperature of the partition, the partition temperature in the operational state simulation results, and the partition temperature in the virtual operating condition simulation results, the thermal protection margin is determined.
[0072] Specifically, the ultimate heat resistance temperature of the partition is an inherent static parameter fixed at the factory, characterizing the highest temperature that the partition wall material can withstand before pyrolysis, carbonization, or melt-through, and is pre-stored in the system parameter database. The partition temperature in the operational simulation results is the output value of the graph neural network virtual mapping model under normal operating conditions, reflecting the steady-state temperature (i.e., the partition reference temperature) of each partition under the current actual operating load and environmental heat dissipation conditions. The partition temperature in the virtual operating condition simulation results is the temperature of each partition output by the graph neural network virtual mapping model after injecting virtual fault disturbances into the potential space, including at least the highest simulated temperature of each partition under the virtual fault disturbance.
[0073] Based on the above three parameters, the process of determining the thermal protection margin includes: First, extracting the reference temperature of each layer under normal operating conditions from the simulation results of the operating state. Secondly, the highest simulated temperature of each partition under virtual fault disturbance is extracted from the virtual operating condition simulation results. Finally, the pre-calibrated ultimate heat resistance temperature of the interlayer was considered. The thermal defense margin of each layer is calculated using the following formula. : ; Among them, molecules The denominator represents the absolute remaining temperature margin of the interlayer from the material's thermal limit after a virtual fault disturbance. The total available temperature space characterizing the thermal resistance limit of the interlayer material under normal operating conditions. Thermal protection margin. H is a dimensionless ratio, where 0≤H≤1 indicates that there is still a margin or the margin has not been exhausted, and H<0 indicates that the ultimate heat resistance temperature has been exceeded under the virtual fault temperature.
[0074] Among them, when When the value is ≤0, the ratio calculation is no longer performed. The layer is directly identified as a weak point in the thermal defense and H=0 is set.
[0075] The above formula comprehensively considers the inherent heat resistance upper limit of the interlayer material, the temperature space occupied during normal operation, and the temperature endpoint after a fault impact; all three parameters are indispensable. The upper limit of the safety boundary is defined. Defines the temperature range consumed during normal operation. The temperature endpoint following a fault impact is defined. Thermal defense margin is calculated using this normalized method. It can intuitively reflect the thermal protection redundancy ratio of the partition layer under the current operating condition relative to the normal operating condition, and eliminates the dimensional influence caused by the difference in the extreme temperature of different partition layer materials, which facilitates the horizontal comparison between different partition layers.
[0076] Furthermore, layers with thermal defense margins below a preset threshold are identified as weak points in thermal defense.
[0077] Figure 4 This is a schematic diagram of the structure of a data-driven digital twin modeling system for fireproof cabinets, provided as an embodiment of this application. Figure 4 As shown, the system includes: a multi-physics sensing data acquisition module 100, a graph neural network modeling module 200, a counterfactual inference module 300, and an adaptive boundary reconstruction module 400.
[0078] The multi-physics sensing data acquisition module 100 is used to collect multi-physics operating data during the operation of the energy storage fireproof cabinet and extract the physical prior constraints of the energy storage fireproof cabinet. Specifically, the multi-physics sensing data acquisition module 100 uses a multi-source sensor network deployed inside the cabinet and in the wall structure to collect electrical parameter data, temperature field data, gas concentration data, and structural state data in real time. It also extracts cabinet partition topology parameters, wall thermal insulation characteristic parameters, and pressure relief channel layout parameters from static data sources such as the design drawings and material specifications of the energy storage fireproof cabinet.
[0079] The graph neural network modeling module 200, connected to the multiphysics sensing data acquisition module 100, is used to convert multiphysics operation data into graph structure data, determine the adjacency matrix mask based on physical prior constraints, and construct a graph neural network virtual mapping model based on the graph structure data and the adjacency matrix mask. Specifically, the graph neural network modeling module 200 is used to execute the content of step S2 in the above method embodiment. Its specific implementation process can be found in the description in the above method embodiment, and will not be repeated here.
[0080] The counterfactual deduction module 300, connected to the graph neural network modeling module 200, is used to input multiphysics operation data into the graph neural network virtual mapping model to obtain operation state simulation results. It then injects virtual fault disturbances into the latent space of the graph neural network virtual mapping model to perform counterfactual deduction, obtaining virtual operating condition simulation results. Based on the virtual operating condition simulation results and the operation state simulation results, it calculates the thermal defense margin of each layer in the graph neural network virtual mapping model. Specifically, the counterfactual deduction module 300 is used to execute step S3 in the above method embodiment. Its specific implementation process can be found in the description in the above method embodiment, and will not be repeated here.
[0081] The adaptive boundary reconstruction module 400, connected to the counterfactual inference module 300, dynamically adjusts the edge weights corresponding to each layer based on the deviation of the thermal defense margin from a preset threshold. It then iteratively updates the adjusted graph neural network virtual mapping model as the baseline model for the next cycle until a preset convergence condition is met. Finally, the graph neural network virtual mapping model that meets the preset convergence condition is solidified as the active defense digital foundation. Specifically, the adaptive boundary reconstruction module 400 executes step S4 in the above method embodiment; its specific implementation process can be found in the description in the above method embodiment, and will not be repeated here.
[0082] The data-driven digital twin modeling system for fireproof cabinets provided in this application achieves a deep integration of physical prior constraints and data-driven modeling in the digital twin modeling process of energy storage fireproof cabinets through the coordinated operation of a multi-physics sensing data acquisition module, a graph neural network modeling module, a counterfactual inference module, and an adaptive boundary reconstruction module. The system utilizes the graph neural network modeling module to determine the adjacency matrix mask based on physical prior constraints, effectively eliminating spurious correlation fitting that does not exist physically, and significantly improving the physical fit and simulation fidelity of the model. The counterfactual inference module injects virtual fault disturbances into the potential space for counterfactual inference, accurately quantifying the thermal defense margin of each compartment and locating weak points in thermal defense without modifying physical equipment. The adaptive boundary reconstruction module dynamically adjusts edge weights and iteratively updates the model based on the thermal defense margin, enabling the model to adaptively update according to the operating status without manual parameter recalibration, significantly reducing operation and maintenance costs. The finalized active defense digital base integrates the optimal topology mask, adaptive edge weights, and material heat resistance parameter library, which can provide reliable data and model support for fire linkage control and intelligent operation and maintenance decision-making of equipment, significantly improving the safety early warning lead time, coverage, and accuracy of thermal risk prediction of energy storage fire cabinets.
[0083] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0084] Obviously, those skilled in the art should understand that the various units or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0085] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A data-driven digital twin modeling method for fireproof cabinets, characterized in that, include: A multi-source sensor network is deployed in the energy storage fireproof cabinet to collect multi-physics field operation data during the operation of the energy storage fireproof cabinet, and the physical prior constraints of the energy storage fireproof cabinet are extracted. The multiphysics operation data is converted into graph structure data, the adjacency matrix mask is determined based on the physical prior constraints, and a graph neural network virtual mapping model is constructed based on the graph structure data and the adjacency matrix mask. The multiphysics operation data is input into the graph neural network virtual mapping model to obtain the operation state simulation results; virtual fault disturbances are injected into the potential space of the graph neural network virtual mapping model to perform counterfactual inference to obtain the virtual operating condition simulation results; the thermal defense margin of each layer in the graph neural network virtual mapping model is calculated based on the virtual operating condition simulation results and the operation state simulation results. Based on the degree of deviation between the thermal defense margin and the preset threshold, the edge weights corresponding to each layer are dynamically adjusted, and the adjusted graph neural network virtual mapping model is used as the benchmark model for the next cycle for iterative updates until the preset convergence condition is met. The graph neural network virtual mapping model that meets the preset convergence condition is then solidified as an active defense digital base.
2. The method according to claim 1, characterized in that, The process of converting the multiphysics operational data into graph structure data, determining the adjacency matrix mask based on the physical prior constraints, and constructing a graph neural network virtual mapping model based on the graph structure data and the adjacency matrix mask includes: Based on the multiphysics operation data, the electrical connection relationship and heat conduction path relationship between the functional components inside the energy storage fireproof cabinet are determined; The graph structure data is constructed using the functional components as nodes and the electrical connections and heat conduction paths between the functional components as edges. The dynamic adjacency matrix of the graph neural network is initialized according to the topological structure of the graph structure data, and the node features in the graph structure data are used as the input of the graph neural network. Based on the aforementioned physical prior constraints, a binary physical connectivity adjacency matrix is constructed as the adjacency matrix mask. The adjacency matrix mask is operated on with the initialized dynamic adjacency matrix to obtain the target adjacency matrix after physical constraints. The target adjacency matrix is input into the spatial convolutional layer of the graph neural network to limit the message passing path of the graph neural network, thereby constructing the virtual mapping model of the graph neural network.
3. The method according to claim 2, characterized in that, The edges of the graph structure data include heat conduction edges corresponding to heat conduction path relationships and electrical edges corresponding to electrical connection relationships; The initial edge weight of the heat conduction edge is set to the reciprocal of the equivalent thermal resistance of the corresponding partition wall layer of the energy storage fireproof cabinet, so that the initial state of the graph neural network virtual mapping model conforms to the physical heat transfer law. The initial edge weights of the electrical edges are determined based on the electrical connection parameters between the functional components.
4. The method according to claim 1, characterized in that, The virtual fault disturbance is injected into the latent space of the graph neural network virtual mapping model to perform counterfactual inference, and the virtual operating condition simulation results are obtained, including: The dimension corresponding to the layer integrity in the hidden state of the node in the graph neural network virtual mapping model is retrieved as the layer integrity hidden variable; The implicit variable of the partition integrity is set to zero to simulate the complete failure of the partition, or the implicit variable of the partition integrity is scaled by a preset aging coefficient to simulate the partial aging of the partition, thereby injecting virtual fault disturbances into the potential space. Based on the potential space after injecting the virtual fault disturbance, the graph neural network virtual mapping model is driven to perform counterfactual inference simulation to obtain the simulation results of the virtual working condition.
5. The method according to claim 1, characterized in that, The step of calculating the thermal defense margin of each layer in the graph neural network virtual mapping model based on the virtual operating condition simulation results and the operating state simulation results includes: Obtain the pre-calibrated inherent heat resistance parameters of the wall material as the ultimate heat resistance temperature of the interlayer; The thermal protection margin is determined based on the ultimate heat resistance temperature of the partition, the partition temperature in the simulation results of the operating state, and the partition temperature in the simulation results of the virtual operating condition.
6. The method according to claim 1, characterized in that, The step of dynamically adjusting the edge weights corresponding to each partition layer based on the deviation of the thermal defense margin from a preset threshold includes: For the partition layer whose thermal defense margin is lower than the preset threshold, it is determined to be a weak point in thermal defense, and a positive gain adjustment is applied to the edge weight of the partition layer according to the corresponding edge weight adjustment coefficient; For the partition layer whose thermal defense margin is not lower than the preset threshold, it is not identified as a weak point in the thermal defense. The edge weight of the partition layer is attenuated according to the corresponding edge weight adjustment coefficient. The dynamic adjustment of edge weights is performed only on edges corresponding to heat conduction path relationships, while the weights of edges corresponding to electrical connection relationships remain unchanged.
7. The method according to claim 6, characterized in that, The preset convergence condition is that within a preset number of consecutive iteration cycles, the fluctuation of the thermal defense margin of each layer is within a preset error range, and the location and number of the thermal defense weak points remain consistent.
8. The method according to claim 1, characterized in that, The multiphysics operation data includes electrical parameter data, temperature field data, gas concentration data, and structural state data during the operation of the energy storage fireproof cabinet. The physical prior constraints include the cabinet partition topology parameters, wall thermal insulation characteristics parameters, and pressure relief channel layout parameters of the energy storage fireproof cabinet.
9. The method according to claim 1, characterized in that, The active defense digital base integrates the adjacency matrix mask of the graph neural network virtual mapping model, the dynamically adjusted edge weights, the preset threshold, and the inherent heat resistance parameters of the wall material. The active defense digital base is used to provide data and model support for fire-fighting linkage control and intelligent operation and maintenance decision-making of equipment.
10. A data-driven digital twin modeling system for fireproof cabinets, characterized in that, include: The multi-physics sensing data acquisition module is used to collect multi-physics operation data during the operation of the energy storage fireproof cabinet and extract the physical prior constraints of the energy storage fireproof cabinet. The graph neural network modeling module is used to convert the multiphysics operation data into graph structure data, determine the adjacency matrix mask based on the physical prior constraints, and construct a graph neural network virtual mapping model based on the graph structure data and the adjacency matrix mask. The counterfactual deduction module is used to input the multiphysics field operation data into the graph neural network virtual mapping model to obtain the operation state simulation results, inject virtual fault disturbances into the potential space of the graph neural network virtual mapping model to perform counterfactual deduction, obtain virtual operating condition simulation results, and calculate the thermal defense margin of each layer in the graph neural network virtual mapping model based on the virtual operating condition simulation results and the operation state simulation results. The adaptive boundary reconstruction module is used to dynamically adjust the edge weights corresponding to each layer according to the degree of deviation between the thermal defense margin and the preset threshold, and use the adjusted graph neural network virtual mapping model as the benchmark model for the next cycle for iterative updates until the preset convergence condition is met, and then solidify the graph neural network virtual mapping model that meets the preset convergence condition into an active defense digital base.
