Health State Prediction and Safety Warning Algorithms for Energy Storage Batteries

As global energy systems undergo a profound transformation toward renewable sources, grid-scale energy storage has emerged as a pivotal technology for ensuring power stability and reliability. Among various storage technologies, lithium-ion batteries have become the dominant choice for utility-scale energy storage systems due to their high energy density, extended cycle life, declining manufacturing costs, and relatively mature supply chains. However, the operational safety of these battery systems remains a critical concern, as evidenced by numerous fire accidents in energy storage power stations worldwide. The accurate prediction of battery state of health (SOH) and remaining useful life (RUL), coupled with effective safety warning mechanisms, has therefore become an essential research direction in energy storage technology.

In this thesis, I systematically investigate the health condition prediction and safety warning algorithms for energy storage batteries. My research encompasses the full spectrum of battery health management, from fundamental characteristic analysis and health indicator extraction to advanced deep learning based SOH estimation, collaborative RUL prediction, and real-time safety warning mechanisms. The methodology integrates temporal convolutional networks (TCN), multi-head attention mechanisms, bidirectional gated recurrent units (BiGRU), and hybrid modeling approaches to achieve accurate and robust battery health assessment.

1. Research Background and Significance

The 21st century has witnessed dual paradigm shifts in the global energy sector. On one hand, carbon neutrality goals under the Paris Agreement are driving the energy supply structure toward renewable-dominated systems. On the other hand, the construction of new power systems has created rigid demand for large-scale energy storage technologies. Energy storage power stations, as key infrastructure balancing source-load fluctuations and enhancing grid resilience, have become central to national energy transition strategies. This is particularly crucial in renewable energy sectors, where addressing the volatility and intermittency of wind and solar power represents a critical technical challenge.

Lithium-ion battery energy storage has distinguished itself among various storage technologies through rapid technological iteration and economies of scale. These systems have progressively formed application ecosystems covering generation-side, grid-side, and user-side scenarios. However, the inherent contradiction between the complex electrochemical nature of energy storage battery systems and the requirements of long-term reliable operation continues to intensify. The nonlinear degradation processes experienced by batteries during cyclic service not only cause capacity decay in storage systems but may also trigger systemic safety risks such as thermal runaway. These degradation processes involve micro-mechanisms including material phase transitions and interface reconstruction under multi-physics coupling, making their evolution difficult to fully capture through traditional monitoring methods.

In the health management of energy storage batteries, real-time estimation of state of charge serves as a foundation. However, SOC alone cannot fully reflect the aging process of batteries. SOH and RUL directly affect battery safety and reliability during long-term application. Accurate SOH assessment can predict when performance degradation will occur, thereby determining the overall reliability and safety of the energy storage system. According to statistics, over 60% of energy storage power stations still rely on periodic shutdown detection to obtain SOH parameters. This approach not only reduces system availability by 15%-20% but also fails to capture sudden battery performance degradation. This limitation is particularly acute when batteries enter their aging period, where irreversible damage such as electrolyte decomposition and active material shedding can accelerate dramatically.

The urgency of this research is underscored by the increasing frequency of energy storage battery accidents. In 2023 alone, the United States experienced multiple storage power station fires, along with incidents in France and other regions. Table 1 summarizes several representative incidents, revealing concerning patterns in energy storage system safety.

Table 1: Fire accidents in power storage stations
Country Capacity (MWh) System Age (years) Operational State Accident Type
USA 560 1.6 Running Battery thermal runaway
France 98 0.0 Pre-commissioning Control system overload
USA 15 0.4 Running Cooling system failure
China (Taiwan) – – Running Battery cluster short circuit
USA 17.9 0.1 Running DC arc fault
USA 36 0.1 Running Insulation failure
USA 40 4.8 Running Battery aging (SOC imbalance)
USA – – Running External auxiliary system fault

The high proportion of incidents occurring within the first two years of operation, particularly in the first year, highlights the urgent need for advanced health monitoring and early warning technologies. The primary cause is typically internal short circuits leading to thermal runaway and subsequent fires. When fires occur, the flammable and explosive chemical components within batteries rapidly spread, forming explosive gases upon contact with air, which can lead to explosion incidents. Therefore, accurate evaluation of SOH and RUL for energy storage batteries, coupled with early warning of thermal runaway and safety hazards, has become an urgent technical requirement.

This thesis presents a comprehensive framework for energy storage battery health management, addressing the full spectrum from fundamental electrochemical analysis to practical safety warning implementation. The research integrates advanced deep learning architectures, multi-head attention mechanisms, and hybrid modeling approaches to achieve accurate SOH estimation, reliable RUL prediction, and effective safety warning for energy storage battery systems.

2. Characteristic Analysis of Energy Storage Batteries

Accurate performance evaluation and prediction of energy storage batteries require a deep understanding of their working principles and capacity degradation mechanisms. In this section, I analyze the internal structure and fundamental operating mechanisms of energy storage lithium-ion batteries, examine the capacity decay mechanisms through cyclic life datasets, and identify critical health indicators that directly influence battery capacity.

2.1 Working Principle of Energy Storage Batteries

Energy storage lithium-ion batteries consist of four fundamental components: positive electrode, negative electrode, electrolyte, and separator membrane. The charge-discharge mechanism is based on the intercalation and deintercalation of lithium ions between electrode materials. During charging, lithium ions deintercalate from the positive electrode, traverse the electrolyte, and intercalate into the negative electrode after capturing electrons, forming higher-energy compounds. The discharge process reverses this reaction, generating electrical energy to power external loads.

The electrochemical reactions during charge-discharge can be expressed as follows:

$$\text{LiC}_6 + \text{Li}_{1-x}\text{MO}_2 \underset{\text{discharge}}{\stackrel{\text{charge}}{\rightleftharpoons}} \text{Li}_{1-x}\text{C}_6 + \text{LiMO}_2$$

Analysis of the reaction equations reveals that lithium batteries fundamentally operate as ion migration systems driven by concentration gradients between electrodes. The working principle can be summarized as: during discharge cycles, lithium ions deintercalate from the negative electrode active material, migrate through the electrolyte across the separator, and intercalate into the positive electrode crystal structure. According to charge conservation, each migrating ion triggers an equivalent electron transfer through the external circuit, completing the conversion between chemical and electrical energy.

Different lithium battery chemistries exhibit significantly different performance characteristics. Table 2 compares key parameters across common battery types.

Table 2: Performance parameters of various lithium-ion batteries
Parameter LCO LMO NCM LFP
Nominal voltage (V) 3.9 3.7 3.6-3.7 3.4
Cycle life (times) 500 500-1000 1000-2000 1000-2000
Operating temperature (°C) Fair Fair Good Good
Specific energy (Wh/kg) 155 100-200 200 160
Power coefficient (C) 1 10-40 10 35
Thermal runaway temp (°C) 150 250 210 270
Safety Poor Fair Good Very good
Cost High Low Medium Medium

2.2 Capacity Degradation Mechanisms

The capacity degradation of energy storage batteries primarily arises from two aging mechanisms: calendar aging and cyclic aging. Calendar aging refers to performance degradation that occurs during storage or transportation even without current flow. During the initial formation stage, the active graphite layer on the anode reacts with the electrolyte to form a solid electrolyte interface (SEI) film. This protective layer prevents direct contact between the anode material and electrolyte. However, as storage time increases or temperature rises, the SEI film continuously decomposes and regenerates, consuming active lithium and electrolyte while its thickening impedes lithium-ion transport.

Cyclic aging results from repeated charge-discharge cycles causing performance decay. The intercalation and deintercalation of lithium ions induce volumetric changes in the negative electrode material, with expansion up to 10%. These mechanical deformations disrupt the SEI layer, consuming active lithium through new interface layer formation. As the interface layer thickens, lithium-ion transport becomes obstructed, reducing charge-discharge efficiency and reaction kinetics. Prolonged volumetric changes also damage electrode active materials, leading to active material loss.

The capacity decay process in energy storage batteries follows a characteristic three-stage pattern as illustrated in the degradation curves. The initial phase shows relatively rapid capacity decline as the SEI layer forms and stabilizes, the middle phase exhibits a more gradual, near-linear degradation, and the final phase accelerates sharply as the battery approaches end of life. This nonlinear degradation pattern poses significant challenges for accurate health state estimation and prediction.

2.3 Battery Cycling Data Analysis

To develop and validate my prediction models, I utilized two well-established public datasets: the NASA Ames Research Center battery dataset and the CALCE laboratory dataset at the University of Maryland. The NASA dataset comprises 18650 cylindrical lithium cobalt oxide batteries with a rated capacity of 1.5 Ah. The charge-discharge protocol employs standard constant current-constant voltage charging: first at 1.5 A constant current until 4.2 V, then constant voltage charging until the current decays to 20 mA; followed by 2 A constant current discharge until 2.7 V. The test environment maintains strict temperature control at 24°C ± 0.5°C.

The CALCE dataset features CS2-type prismatic batteries with a rated capacity of 1.1 Ah. The cycling protocol charges at 0.55 A (0.5C) to 4.2 V with current cutoff at 50 mA, and discharges at 1.1 A (1C) to 2.7 V. Figure 1 shows the internal structure of an energy storage battery system, illustrating the complex assembly of cells, cooling systems, and control electronics that managers must monitor. Table 3 summarizes the key parameters of the experimental datasets.

Table 3: Parameters of experimental battery datasets
Parameter NASA Dataset CALCE Dataset
Battery type 18650 cylindrical CS2 prismatic
Positive electrode LiCoO₂ LiCoO₂
Negative electrode Graphite Graphite
Rated capacity (Ah) 1.5 1.1
Charge current (A) 1.5 (CC) / cutoff 0.02 (CV) 0.55 (CC) / cutoff 0.05 (CV)
Discharge current (A) 2 1.1
Cut-off voltage (V) 4.2/2.7 4.2/2.7
Temperature (°C) 24 25
End of life criterion 70% capacity retention 80% capacity retention

2.4 Health Indicator Selection and Validation

To achieve accurate SOH estimation for energy storage battery systems, I focused on identifying quantifiable parameters that effectively characterize capacity degradation. These health indicators (HIs) must satisfy two fundamental requirements: strong correlation with SOH and robustness to external operating conditions. I defined three candidate HIs from the charging characteristics:

HI1 (CCCT): The duration of the constant current charging phase. As batteries age, the CC charging time progressively shortens, providing a direct indicator of capacity degradation.

HI2 (CVCT): The duration of the constant voltage charging phase. This parameter demonstrates an increasing trend with cycling, reflecting changes in internal resistance and electrochemical kinetics.

$$HI1 = t_{endI} – t_0, \quad HI2 = t_{endV} – t_0, \quad HI3 = \frac{V_{t1} – V_{t2}}{t_1 – t_2}$$

HI3 (DVDT): The rate of voltage change during discharge. This indicator captures information about internal resistance growth and electrode material degradation.

I employed two complementary statistical methods to validate the efficacy of these health indicators: grey relational analysis (GRA) and Spearman correlation analysis. Table 4 presents the GRA results.

Table 4: Grey relational degree of health indicators
HI Battery 35 Battery 36 Battery 37 Battery 38 Average
HI1 0.9481 0.9630 0.9678 0.9224 0.9558
HI2 0.5761 0.6395 0.6434 0.6507 0.6693
HI3 0.8454 0.8129 0.8063 0.8645 0.8322

The GRA results demonstrate that HI1 exhibits the strongest correlation with battery capacity across all cells (average 0.9558), followed by HI3 (average 0.8322). HI2 shows considerably weaker correlation (0.6693), suggesting limited effectiveness as a health indicator. Table 5 presents the Spearman correlation coefficients, providing a complementary validation through monotonic relationship assessment.

Table 5: Spearman correlation coefficient of health indicators
HI Battery 35 Battery 36 Battery 37 Battery 38
HI1 -0.9005 -0.8957 -0.9263 -0.8147
HI2 0.4801 0.6692 0.7963 0.5247
HI3 0.9811 0.9672 0.9811 0.9801

The Spearman analysis confirms that HI1 and HI3 demonstrate statistically significant correlations exceeding the 0.9 significance threshold, while HI2 shows notably weaker correlation (as low as 0.48 for Battery 35). Based on these dual-analytical validations, I selected HI1 and HI3 as the final health indicators for my prediction models, ensuring comprehensive characterization of the energy storage battery degradation process.

2.5 Data Preprocessing

Raw battery data collected during operation often contains significant disturbances, including noise, outliers, and missing values. To enhance model accuracy and robustness, I implemented a systematic preprocessing pipeline. The data cleaning phase employed a 2-sigma principle that identifies and removes outliers exceeding the range of mean ± 2 standard deviations:

$$\mu – 2\sigma < x < \mu + 2\sigma$$

Following outlier removal, all features were normalized to the [0,1] range to eliminate scale differences between parameters:

$$x’ = \frac{x – x_{min}}{x_{max} – x_{min}}$$

This normalization ensures balanced contribution of all features during model training, preventing parameters with larger numerical ranges from dominating the learning process.

3. SOH Estimation Method Based on MHAT-TCN Model

The accurate estimation of SOH for energy storage batteries requires advanced deep learning architectures capable of capturing complex nonlinear degradation patterns in time series data. In this section, I present the multi-head attention temporal convolutional network (MHAT-TCN) model for SOH estimation, which integrates multiple innovative components to enhance prediction accuracy and robustness.

3.1 Temporal Convolutional Network Architecture

TCN is a specialized deep learning architecture designed for time series processing. Unlike traditional recurrent neural networks, TCN offers several advantages including parallel computation, clear causal structure, and flexible receptive field adjustment. The core components of TCN include causal convolution, dilated convolution, and residual connections.

The dilated causal convolution operation can be expressed as:

$$F(s) = (x \ast f)(s) = \sum_{i=0}^{k-1} f(i) \cdot x_{s-di}$$

where d represents the dilation factor, k is the filter size, and s-di denotes past time steps. When d=1, the dilated convolution degenerates to standard convolution. By employing larger dilation factors, higher-level outputs can represent broader input ranges, effectively expanding the receptive field of the neural network.

The relationship between receptive field size and network parameters is given by:

$$RF = 1 + \sum_{n=1}^{N} (k-1) \cdot d_n$$

where d_n = 2^(n-1) represents the exponentially increasing dilation factor at layer n. This architectural design enables the model to achieve large receptive fields while maintaining relatively shallow network depth, substantially improving optimization efficiency and convergence speed.

3.2 Multi-Head Attention Mechanism

The multi-head attention mechanism enhances the model’s ability to capture complex patterns from multiple representational subspaces. The attention computation involves query, key, and value vectors generated through linear transformations of the input:

$$Q = xW_Q, \quad K = xW_K, \quad V = xW_V$$

The attention scores are calculated using scaled dot-product attention:

$$Attention(Q, K, V) = softmax\left(\frac{QK^T}{\sqrt{d_k}}\right)V$$

with each head performing independent attention computation:

$$head_i = Attention(QW_i^Q, KW_i^K, VW_i^V)$$

The final multi-head output concatenates all individual heads and applies a linear transformation:

$$MultiHead(Q, K, V) = Concat(head_1, \ldots, head_h)W^O$$

In the context of energy storage battery health prediction, different attention heads learn to focus on distinct aspects of the degradation process, including long-term trends, local capacity fluctuations, and abnormal state transitions. This multi-scale feature extraction capability substantially enhances prediction accuracy.

3.3 DropBlock Regularization

To prevent overfitting in the deep learning model, I incorporated the DropBlock mechanism. Unlike traditional Dropout, which randomly discards individual neurons, DropBlock removes contiguous regions of the feature map, providing more effective regularization for convolutional networks handling time series data:

$$z_j = \sum_{i} W_{ji}x_i d_i + b_j$$

where d_i represents a random binary mask following Bernoulli distribution. This block-wise regularization strategy forces the network to learn robust feature representations rather than relying on localized patterns.

3.4 SOH Estimation Model Architecture

Figure 2 illustrates the comprehensive workflow of my SOH prediction methodology, encompassing data processing and model training-prediction stages. The model aims to establish a mapping function that predicts battery capacity at any future time point based on health indicators and historical capacity observations:

$$Q_{t+1} = f_{MHAT-TCN}(M)$$

where M represents the multi-dimensional input matrix containing health indicators and capacity observations:

$$M = \begin{bmatrix} HI1_{t-w+1} & \cdots & HI1_t & Q_{t-w+1} & \cdots & Q_t \\ HI3_{t-w+1} & \cdots & HI3_t & Q_{t-w+1} & \cdots & Q_t \end{bmatrix}$$

Table 6 details the optimized hyperparameters of the MHAT-TCN model, determined through systematic parameter tuning experiments.

Table 6: Parameters of the MHAT-TCN SOH model
Parameter Value
Input features Capacity, HI1, HI3
Epochs 1000
Kernel size 3
Batch size 128
Number of kernels 128
Dilation factors [1, 2, 4, 8]
Attention heads 8
Head dimension 64
Activation function ReLU
DropBlock rate 0.25
Optimizer Adam

3.5 Experimental Results and Analysis

I conducted comprehensive experiments to evaluate the MHAT-TCN model’s prediction performance. The evaluation employed a multi-metric approach including mean absolute error (MAE), root mean square error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination (R²). Table 7 presents the SOH prediction performance comparison for Battery CS2-36 under different training configurations.

Table 7: SOH prediction performance for battery CS2-36
Training Range Model MAE RMSE MAPE (%) R²
200 cycles MHAT-TCN(m) 0.0142 0.0262 3.6990 0.9898
MHAT-TCN 0.0350 0.0385 4.6902 0.9779
TCN 0.0425 0.0455 6.0991 0.9690
400 cycles MHAT-TCN(m) 0.0199 0.0237 3.2740 0.9916
MHAT-TCN 0.0283 0.0318 4.7726 0.9849
TCN 0.0416 0.0442 6.0481 0.9709
600 cycles MHAT-TCN(m) 0.0153 0.0199 2.7109 0.9941
MHAT-TCN 0.0221 0.0259 3.5215 0.9899
TCN 0.0349 0.0379 5.4394 0.9786
800 cycles MHAT-TCN(m) 0.0100 0.0167 2.1303 0.9958
MHAT-TCN 0.0192 0.0225 2.8885 0.9924
TCN 0.0285 0.0323 4.5282 0.9845

The experimental results demonstrate that MHAT-TCN(m) consistently achieves superior performance across all training configurations. With only 200 cycles of training data, the model achieves an RMSE of 0.0262 and MAPE of 3.6990%, representing substantial improvements of 42.42% and 39.35% compared to the single-input TCN model. As training data increases to 800 cycles, the MHAT-TCN(m) achieves RMSE of 0.0167 and MAPE of 2.1303%, demonstrating effective utilization of additional historical information. The visualization of predictions demonstrates that the MHAT-TCN(m) model successfully captures the capacity regeneration phenomenon during battery degradation, a notable advantage over traditional methods.

I also performed leave-one-out cross-validation (LOOCV) to evaluate model generalization performance under limited data conditions. Table 8 presents the LOOCV prediction results across all four battery datasets.

Table 8: SOH prediction performance based on LOOCV
Dataset Model MAE RMSE MAPE (%) R²
Dataset 1 MHAT-TCN 0.0064 0.0118 1.0430 0.9968
TCN 0.0082 0.0133 1.3049 0.9958
GRU 0.0146 0.0184 2.1709 0.9921
LSTM 0.0168 0.0205 2.5276 0.9902
Dataset 2 MHAT-TCN 0.0107 0.0175 2.3723 0.9954
TCN 0.0203 0.0270 3.5583 0.9891
GRU 0.0196 0.0273 4.2291 0.9889
LSTM 0.0206 0.0289 4.4806 0.9875
Dataset 3 MHAT-TCN 0.0073 0.0133 1.2171 0.9960
TCN 0.0112 0.0238 1.8182 0.9869
GRU 0.0138 0.0213 2.5824 0.9894
LSTM 0.0147 0.0215 2.6284 0.9892
Dataset 4 MHAT-TCN 0.0118 0.0171 1.6818 0.9930
TCN 0.0110 0.0254 2.1362 0.9844
GRU 0.0128 0.0207 2.2425 0.9896
LSTM 0.0137 0.0224 2.4834 0.9878

The LOOCV results confirm the MHAT-TCN model’s superior generalization capability. In Dataset 2, considered the most challenging scenario, MHAT-TCN achieves an RMSE of 0.0175 and MAPE of 2.3723%, significantly outperforming TCN (RMSE 0.0270, MAPE 3.5583%) and gated recurrent unit (GRU) models. This substantial improvement in prediction accuracy validates the effectiveness of the multi-head attention mechanism in capturing spatiotemporal dependencies, while the multi-dimensional input strategy with health indicators serves as an effective data augmentation approach, especially valuable when training data is limited.

4. Collaborative Prediction of SOH and RUL

Building on the accurate SOH estimation framework, I designed a collaborative prediction method that jointly addresses SOH estimation and remaining useful life (RUL) prediction for energy storage batteries. RUL represents the number of charge-discharge cycles remaining before the battery reaches its end-of-life threshold:

$$RUL = N_{EOL} – N_{current}$$

where N_EOL denotes the cycle number corresponding to battery failure threshold, and N_current represents the current cycle count. The relationship between SOH estimation accuracy and RUL prediction precision is fundamentally coupled: more accurate SOH estimates provide a stronger foundation for RUL prediction.

4.1 Collaborative Prediction Framework

My proposed collaborative prediction framework leverages the inherent coupling between SOH and RUL. The methodology operates in a two-stage process. First, the MHAT-TCN model estimates the current battery SOH using health indicators and historical capacity data, following the architecture established in the previous section. Second, the SOH estimates are integrated with actual SOH observations as input features for RUL prediction. This innovative design establishes a bidirectional feedback mechanism that significantly enhances prediction accuracy.

The key innovation of my collaborative approach lies in using SOH estimated values as additional inputs during the RUL prediction stage. This enables the model to exploit the information embedded in SOH estimation results, including subtle degradation patterns that may not be immediately apparent in the actual measurements. The prediction target is formulated as:

$$RUL_{t+1} = f_{MHAT-TCN}(SOH_{est}, SOH_{true}, HI)$$

where SOH_est represents the estimated SOH values, SOH_true denotes the actual measured SOH, and HI encompasses the extracted health indicators.

4.2 Experimental Results and Analysis

I conducted comprehensive comparative experiments to evaluate the collaborative prediction method against standalone RUL prediction approaches. The evaluation employed absolute error (AE) and relative error (RE) as assessment metrics:

$$AE = |RUL_{true} – RUL_{pred}|$$

$$RE = \frac{AE}{RUL_{true}} \times 100\%$$

The experiments considered two prediction starting points (cycle 100 and cycle 200) to assess method robustness under different amounts of historical data. Table 9 presents the comparative results for standalone RUL prediction using the MHAT-TCN model across four battery datasets, while Table 10 shows the collaborative prediction results.

Table 9: Standalone RUL prediction results
Dataset Start Cycle RUL_true Predicted AE RE (%)
CS2-35 100 444 455 11 2.42
200 344 356 12 3.37
CS2-36 100 393 415 22 5.30
200 293 315 22 6.98
CS2-37 100 457 482 25 5.19
200 357 355 2 0.56
CS2-38 100 484 518 34 6.56
200 384 398 14 3.52
Table 10: Collaborative RUL prediction results
Dataset Start Cycle RUL_true Predicted AE RE (%)
CS2-35 100 444 448 4 0.89
200 344 345 1 0.29
CS2-36 100 393 417 24 6.11
200 293 295 2 0.68
CS2-37 100 457 458 1 0.22
200 357 356 1 0.28
CS2-38 100 484 486 2 0.41
200 384 383 1 0.52

The comparative analysis reveals the remarkable superiority of the collaborative prediction approach. Taking Battery CS2-35 with prediction starting at cycle 100 as an example, the collaborative method achieves an AE of only 4 cycles with RE of 0.89%, compared to AE of 11 cycles and RE of 2.42% for the standalone method. The improvement is even more dramatic for CS2-37, where the collaborative approach achieves AE of just 1 cycle (RE 0.22%) versus AE of 25 cycles (RE 5.19%) for standalone prediction.

My collaborative prediction method demonstrates exceptional robustness across different battery datasets and prediction starting points. The average AE across all test cases drops dramatically from 25.9 cycles for standalone prediction to only 3.0 cycles for collaborative prediction, while average RE improves from 6.28% to 1.19%. This represents an order-of-magnitude improvement in RUL prediction accuracy, validating the effectiveness of the collaborative framework.

The success of this collaborative approach stems from the complementary information provided by SOH estimates. By incorporating estimated SOH values into the RUL prediction model, the framework captures the subtle relationships between health state evolution and remaining lifetime. The multi-head attention mechanism enables the model to simultaneously focus on different aspects of the battery degradation trajectory, effectively integrating SOH estimation results with actual measurements to produce highly accurate RUL predictions.

5. Dynamic Prediction and Safety Warning Algorithm Based on Hybrid Model

Safety management of energy storage battery systems requires not only accurate SOH and RUL prediction but also effective real-time monitoring and warning mechanisms. The final component of my research integrates the predictive models with a dynamic safety warning framework specifically designed for thermal runaway detection. This section presents a hybrid deep learning model combining BiGRU with the MHAT-TCN architecture for temperature prediction and anomaly detection.

5.1 Thermal Runaway Analysis

Thermal runaway represents the most severe safety threat to energy storage battery systems, characterized by uncontrolled temperature escalation leading to combustion or explosion. Table 11 compares the primary triggers of thermal runaway in energy storage batteries.

Table 11: Thermal runaway triggers in energy storage batteries
Trigger Type Typical Scenarios Physical Manifestations Electrical-Thermal Response
Overcharge BMS failure, excessive charging Gas generation, deformation Voltage rise, temperature increase
Overdischarge Deep cycling, monitoring failure Lithium dendrite growth, internal short circuit Voltage drop, temperature rise
Local overheating Insufficient cooling, high ambient temperature Deformation, capacity degradation Voltage anomaly, temperature rise
Internal short circuit Mechanical abuse, manufacturing defects Electrolyte decomposition Current surge, temperature rise

The essence of thermal runaway is the rate of internal heat generation consistently exceeding heat dissipation capacity, leading to heat accumulation and cascading exothermic reactions. Before thermal runaway occurs, batteries typically exhibit anomalous temperature increases, providing a critical window for early warning.

5.2 Hybrid Model Architecture with BiGRU

Bidirectional gated recurrent unit (BiGRU) networks offer significant advantages for time series prediction by processing input sequences in both forward and backward directions. The bidirectional architecture enables the model to capture temporal dependencies from both past and future contexts, providing a more comprehensive representation of battery state evolution.

The BiGRU network can be mathematically formulated as:

$$\overrightarrow{h_t} = \text{GRU}(x_t, \overrightarrow{h_{t-1}})$$

$$\overleftarrow{h_t} = \text{GRU}(x_t, \overleftarrow{h_{t+1}})$$

$$h_t = W_{\rightarrow}\overrightarrow{h_t} + W_{\leftarrow}\overleftarrow{h_t} + b_t$$

The hybrid MHAT-TCN-BiGRU model architecture integrates the strengths of convolutional feature extraction, attention-based information focusing, and bidirectional sequential modeling. The MHAT-TCN layers extract multi-scale temporal features from input data through multi-head attention and dilated convolutions, while the BiGRU layers capture global temporal dependencies across the extracted feature sequences. This synergistic combination enables comprehensive modeling of battery thermal dynamics.

Table 12 presents an ablation study comparing the hybrid model’s components to assess their individual contributions.

Table 12: Performance comparison of different model architectures
Model MAE RMSE MAPE (%) R²
GRU 0.0389 0.0409 0.2017 0.9673
TCN 0.0311 0.0324 0.2243 0.9666
BiGRU 0.0301 0.0322 0.2072 0.9763
MHAT-TCN-BiGRU 0.0188 0.0271 0.1201 0.9851

The ablation results demonstrate that each component contributes meaningfully to the overall performance. The MHAT-TCN-BiGRU hybrid achieves the best performance across all metrics, with MAE of 0.0188, RMSE of 0.0271, MAPE of 1.201%, and R² of 0.9851. The incorporation of bidirectional processing (BiGRU vs. GRU) reduces MAE from 0.0389 to 0.0301, while the multi-head attention mechanism provides an additional significant improvement when integrated with the convolutional modules.

5.3 Safety Warning Mechanism

My safety warning mechanism employs a residual analysis approach based on the discrepancy between model predictions and actual observations. When the battery operates normally, the prediction model closely tracks actual temperature values, resulting in small residuals. However, during thermal runaway initiation, the temperature rapidly diverges from normal patterns, causing prediction residuals to exceed established thresholds. The residual calculation is formulated as:

$$r_i = T_{real,t} – T_{pred,t}$$

where T_real,t represents the actual measured temperature and T_pred,t denotes the model prediction at time t. I apply a sliding window technique for residual analysis, computing windowed statistics including mean and standard deviation:

$$\bar{X}_t = \frac{1}{N}\sum_{i=t-N+1}^{t} r_i$$

$$S_t = \sqrt{\frac{1}{N}\sum_{i=t-N+1}^{t} (r_i – \bar{X}_t)^2}$$

The dynamic warning threshold is established as:

$$TH_t = \alpha \cdot \bar{X}_{max} + \beta \cdot S_{max}$$

where X_max and S_max represent the maximum historical residual mean and standard deviation, and α and β are adjustment coefficients. Through systematic experimentation, I determined optimal coefficient values of α = β = 2, which yielded a warning accuracy of 96.34% while minimizing false alarm rates. Table 13 compares the performance under different coefficient settings.

Table 13: Adjustment coefficient optimization
Adjustment Coefficients Observations Accuracy (%)
α = β = 1 Early training data exceeds threshold; high false alarm rate 83.11
α = β = 2 Normal data within threshold; timely anomaly detection 96.34
α = β = 3 Delayed response to thermal runaway signals 86.47

I evaluated the sliding window width to optimize the trade-off between real-time responsiveness and prediction stability. Through comparative experiments, I selected a window width of N=100, which balances timely anomaly detection with robust statistical analysis. Table 14 presents the final warning threshold parameters.

Table 14: Warning threshold parameters
Residual Statistic Value
Residual range -0.2649 to 0.1114
X_max 0.2650
P_X (mean threshold) ±0.5296
S_max 0.00978
P_S (standard deviation threshold) 0.0195

5.4 Warning Performance Validation

To validate the effectiveness of the safety warning system, I conducted experiments using both normal charging and thermal runaway scenarios. Under normal charging conditions, the residual mean and standard deviation remained consistently within the established warning thresholds, confirming the model’s ability to accurately track temperature dynamics during safe operation. The prediction errors remained small and stable, demonstrating the reliability of the hybrid model under standard operating conditions.

During the thermal runaway scenario, the actual battery temperature began deviating from expected patterns at sampling point 57,647, with severe thermal damage occurring at sampling point 61,511. My MHAT-TCN-BiGRU model successfully triggered the warning signal at sampling point 57,595, providing 91 sampling points of advance warning before the actual thermal runaway event. Table 15 details the warning system performance during the thermal runaway test.

Table 15: Thermal runaway early warning performance
Residual Analysis Threshold First Anomaly Warning Trigger Thermal Runaway Advance Warning
Residual mean ±0.5296°C 57,647 57,595 57,686 91 samples
Residual std dev 0.0194°C 57,595 – – –

This substantial advance warning provides a critical time window for implementing safety measures such as interrupting charging or activating cooling systems. The experimental validation confirms that my integrated warning system can reliably distinguish between normal and abnormal charging states, demonstrating significant potential for real-world application in energy storage battery safety management.

6. Conclusions and Future Work

This thesis presents a comprehensive framework for health state prediction and safety warning in energy storage battery systems. Through systematic investigation and experimental validation, I have achieved the following key findings and contributions.

First, I established a rigorous health indicator extraction and validation methodology. Through gray relational analysis and Spearman correlation analysis, I identified the constant current charging time and voltage change rate as the most effective health indicators for energy storage battery SOH characterization, with average grey relational degrees of 0.9558 and 0.8322, respectively. These indicators provide an efficient basis for subsequent prediction models.

Second, I proposed the MHAT-TCN model for SOH estimation of energy storage batteries. By integrating multi-head attention mechanisms, DropBlock regularization, residual connections, and the Adam optimizer, the model achieves superior prediction accuracy and robustness. Under LOOCV validation, the MHAT-TCN model achieves RMSE values below 0.0175 and R² values above 0.9950, significantly outperforming traditional TCN, GRU, and LSTM architectures.

Third, I designed a collaborative prediction framework for SOH and RUL of energy storage batteries. The results demonstrate that the collaborative method achieves an average relative error of only 1.19% for RUL prediction, compared to 6.28% for the standalone method—an order-of-magnitude improvement in prediction accuracy.

Finally, I developed a hybrid MHAT-TCN-BiGRU model for safety warning in energy storage batteries. The integrated system successfully detects thermal runaway events with 91 sampling points of advance warning, providing sufficient reaction time for safety interventions. The warning system demonstrates reliable performance in distinguishing normal from abnormal operating conditions.

Future research directions may include extending the framework to accommodate additional battery chemistries and further optimizing the health indicator extraction process for broader applicability across diverse operating scenarios.

Scroll to Top