Next Article in Journal
Error Analysis of the Convex Hull Method for the Solution of the Distribution System Security Region
Previous Article in Journal
Simulation of Heat Pump with Heat Storage and PV System—Increase in Self-Consumption in a Polish Household
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Lithium-Ion Battery Health State Prediction Based on Improved War Optimization Assisted-Long and Short-Term Memory Network

1
School of New Energy Vehicles, Chongqing Technology and Business Institute, Chongqing 401520, China
2
State Key Laboratory of Automotive Simulation and Control, Jilin University, Changchun 130022, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(9), 2326; https://doi.org/10.3390/en18092326
Submission received: 19 March 2025 / Revised: 21 April 2025 / Accepted: 28 April 2025 / Published: 2 May 2025

Abstract

:
It is essential that the state of health (SOH) for lithium-ion batteries is measured to ensure the safety and reliability of electric vehicles. However, an accurate prediction of SOH is still an art due to the complex degradation mechanisms. To address this challenge, a SOH prediction model based on Warfare Strategy Optimization-assisted hybrid mutual information in-former-Long Short-Term Memory neural network (IWSO-MILSTM) is proposed. First, both direct and virtual health indicators are derived from battery degradation curves. Building on this foundation, mutual information is applied to the correlation analysis of these health indicators, and the redundant health indicators can be filtered. Then, the selected health indicators are fed into the informer-LSTM to construct an interpretable predicted model for the health status of lithium-ion batteries. Notably, both redundancy of health indicators and the imprecision of model hyperparameters for LSTM affect the SOH prediction precision. IWSO is proposed to achieve co-optimization of filtering for health indicators and hyperparameters for the informer-LSTM based on developed initializing distribution methods and adaptive function so that the SOH prediction precision is ensured. Finally, the NASA dataset is used to validate the prediction precision of the IWSO-MILSTM, and the experimental results show that the IWSO-MILSTM can provide more competitive results, i.e., the R2 value is improved by 25.68% and 3.63%, respectively, while the RMSE is reduced by 48.76% and 75.91% compared with XGBoost, LSTM, etc. Such results indicate the proposed method can predict SOH efficiently.

1. Introduction

Lithium-ion batteries, characterized by high energy density, extended lifespan, and cost-effectiveness, have demonstrated significant potential in electric vehicle (EV) applications [1]. However, during continuous usage, the depletion of lithium ions and the degradation of active electrode materials result in a reduction in battery capacity. This not only decreases the driving range of EVs, contributing to range anxiety, but also introduces safety concerns, exacerbating safety anxiety [2,3]. Therefore, achieving reliable prediction of the state of health (SOH) of lithium-ion batteries is essential for extending operational lifespan, mitigating risks, and ensuring effective management of EV power battery systems [4,5].
Currently, the primary approaches for assessing the SOH of lithium-ion batteries can be classified into direct measurement methods, numerical model-based methods, and data-driven methods [6,7]. The direct measurement method uses experimental methods to obtain information to characterize battery SOH [8,9]. However, this method requires specialized testing equipment and is difficult to apply in practice. The numerical model-based methods mainly involve constructing an accurate mathematical model to simulate the electrochemical reactions and physical changes that take place during the charging and discharging cycles of lithium-ion batteries. This type of method usually combines the Kalman filtering algorithm to estimate the internal resistance and capacity of the battery to represent battery SOH [10,11,12]. Hu et al. [13] proposed a fractional–order equivalent circuit model combined with a dual fractional–order extended Kalman filter to achieve concurrent estimation of SOC and SOH. Vennam et al. [14] designed a novel battery aging model that combines filtering techniques to? simultaneously predict the battery’sSOC, SOH, and temperature. Although the above method obtained accurate battery SOH under experimental conditions, it is heavily dependent on the precision of the battery model. Especially under complex working conditions, the precision of the battery model parameters cannot be guaranteed. These models allow for predicting the performance degradation trends of batteries under specific usage conditions, thereby estimating their SOH. Examples of such approaches include Kalman filtering [15] and equivalent circuit models [16]. Although model-based methods offer relatively accurate predictions under various operating conditions, their performance is often limited by the difficulty of accurately revealing the degradation mechanisms of lithium-ion batteries, making it challenging to construct precise mathematical and physical models. Data-driven methods have gained increasing attention owing to their simplicity, broad applicability, and rapid responsiveness. Li et al. [17] proposed an improved multilayer kernel extreme learning machine (KELM) model to evaluate the battery SOH. In their experiments, a multi-feature fusion approach was introduced to construct both a high-dimensional health feature (HF) dataset and a low-dimensional fusion feature (FF) dataset, enhancing the representational capacity of the original degradation features. Ma et al. [18] utilized a symbolic regression-based feature derivation method to discover potential new health degradation factors and employed a convolutional neural network (CNN) model to obtain deep degradation characteristics, enabling accurate SOH prediction. Xu et al. [19] introduced particle swarm optimization (PSO) into Gaussian process regression (GPR) for adaptive hyperparameter tuning, achieving adaptive SOH prediction for lithium-ion batteries.
The aforementioned studies demonstrate that data-driven methods exhibit tremendous potential in predicting battery SOH. To further enhance the accuracy of SOH predictions, a novel approach for health state prediction is proposed based on an Improved Warfare Strategy Optimization-assisted hybrid mutual information informer-Long Short-Term Memory neural network (IWSO-MILSTM). First, this method extracts key metrics from the charging and discharging curves obtained from the current-voltage IC curve of lithium-ion batteries. These serve as both direct and indirect measurement indicators. On this basis, the mutual information method is employed to capture implicit relationships between various health indicators. Since not all health indicators contribute positively to the SOH prediction of batteries, the IWSO algorithm is proposed to ensure the selection of degradation indicators as inputs to the informer-LSTM. In the developed IWSO, an improved initialization distribution method and adaptive function are proposed to overcome the limitations of traditional warfare strategy optimization algorithms, which often suffer from slow convergence and a tendency to get stuck in local optima during the iterative process. Finally, the proposed method is compared with LSTM, CNN-LSTM, and SVR models to validate its effectiveness and superiority.

2. Feature Extraction

2.1. Experimental Data

This research employs the NASA lithium-ion battery dataset, which includes four 18650 lithium-ion batteries (B5, B6, B7, and B18) with a nominal capacity of 2 Ah [20,21]. The dataset was obtained through constant current-constant voltage (CC-CV) charge-discharge experiments conducted at 24 °C. Specifically, during the charging process, the batteries were subjected to a constant current (CC) of 1.5 A until reaching 4.2 V. Subsequently, charging proceeded in constant voltage (CV) mode until the charging current decreased to 20 mA. For discharging, batteries were discharged at a constant current (CC) of 2 A until the voltages of batteries B5, B6, B7, and B18 dropped to 2.7 V, 2.5 V, 2.2 V, and 2.5 V, respectively. Throughout the cyclic charge-discharge experiments, the failure threshold of the lithium-ion batteries was defined as 70% of the nominal capacity, and the experiments continued until this failure threshold was reached.

2.2. Health Indicator Extraction

The degradation of lithium-ion batteries is a multifaceted nonlinear process shaped by a variety of intrinsic and extrinsic influences. To accurately monitor and assess the health status of the battery, a series of key parameters were extracted through analysis of the battery’s charge-discharge cycles, ensuring that these parameters are both easily obtainable and effective in reflecting the degradation of lithium-ion batteries. These parameters are readily measurable and effectively reflect the performance degradation of the battery. Typically, as usage cycles increase, changes in current and voltage are used to evaluate the battery’s degradation state. In this work, statistical degradation features related to CC charging time, CV charging time, and CC discharging time were extracted as directly measurable health factors (HIs). Although these direct HIs provide useful insights into the battery’s characteristics, they have certain limitations in fully reflecting the battery’s degradation state. The IC (Incremental Capacity) curve, which records capacity changes at different discharge rates, can reveal subtle characteristics of the battery during the charge-discharge process. This curve analysis not only helps in identifying the overall health of the battery but also delves into changes in the battery’s internal structure and chemical properties. Hence, the IC curve is viewed as an indirect metric for assessing battery SOH, offering a deeper understanding of their degradation process. Original data information used in this work is shown in Figure 1. The capacity degradation curves for each battery are shown in Figure 1a. Figure 1b–d presents charge-discharge cycles rises, battery’s charging and discharging voltage, current, and time decrease correspondingly. The peak of the IC curve also diminishes with increasing usage cycles. As a result, a total of 28 HIs were cumulatively extracted, and the specifics are presented in Appendix A.
To verify the effectiveness of the selected health indicators and capture the nonlinear relationships among these health factors, the mutual information method was applied to measure the correlation between these health indicators and the SOH [22,23]. The calculation formula is as follows:
M I ( [ X , Y ] , x , y ) = p ( x , y ) log 2 p ( x , y ) p ( x ) p ( y ) d x d y
Based on the calculation of mutual information, M I C ( [ X , Y ] ) can be written as:
M I C ( [ X , Y ] ) = max a b < B max M I { x , y } log 2 min { a , b }
In this context, a and b represent the number of grid divisions along the x-axis and y-axis, respectively. Mutual information is assessed across different grid configurations, and the maximum mutual information result is used to indicate M I C . As shown in Figure 2, the majority of the extracted parameters demonstrate a correlation coefficient greater than 0.4 with the battery’s SOH. When the mutual information value is greater than 0, the health indicators can be considered to have some form of correlation with the SOH. However, since the prediction of battery SOH is closely related to the input health indicators, not all inputs provide useful information. Health indicators with weak correlations may interfere with the learning process of the model, necessitating a filtering of the original data. This filtering helps the SOH prediction model focus more on learning the latent relationships between lithium-ion health indicators and SOH, thereby improving robustness and generalization. Namely, the threshold for selecting the relevant features can be a hyperparameter selection. Given that battery degradation data can be considered time-series data, and to maintain a streaming data format, 70% of the historical data are defined as training data according to the bootstrapping principle, while 30% of the dataset is used as test data to assess the effectiveness of the proposed strategy.

3. SOH Prediction Method Based on Informer-LSTM Model

3.1. Informer-LSTM Network

Lithium-ion degradation is a long-term degradation process. Therefore, accurately obtaining and understanding the long-term degradation pattern of lithium-ion batteries can help improve the predictive precision of SOH prediction models.
As a variant of recurrent neural networks (RNNs), LSTM networks are designed to address the issues of vanishing or exploding gradients encountered by traditional RNNs when handling long-term dependencies [24,25]. It consists of the input gate, forget gate, and output gate. During the forward propagation process, the input gate selectively introduces new information, while the forget gate filters out historical information as needed (the mathematical representation of the information flow for LSTM see in Appendix B). This selective information flow enables LSTM to effectively process the degradation data of lithium-ion batteries. Notably, it is impossible for LSTM to thoroughly overcome the challenge of long-term dependence.
To overcome the limitations of LSTM in obtaining long-term dependence so that the degradation implicit characteristics of lithium-ion batteries can be obtained. Informer is used to process the degenerate information of the input LSTM [26]. Unlike previous work, the input to the LSTM in this work is not a direct degradation HIs, but the long-term dependencies obtained by Informer from the original degraded health indicators of lithium-ion batteries.
First, the variation patterns of input health indicators for lithium batteries are focused on after positional encoding using multi-head probabilistic sparse self-attention, in which health indicator of lithium-ion batteries is translated into the query, key, and value. The expression can be defined as follows:
Q = X W Q K = X W K V = X W V
where Q, K, V demonstrate the query matrix, key matrix, X denotes the matrix consists of the HIs of lithium-ion batteries, and W Q , W K , W V denote the weights matrix. Then, sample the key-value matrix and obtain the sampled matrix K ¯ . Building on this foundation, the m value of K ¯ from the i-th row in query matrix Q:
M ( q i , K ¯ ) = max j { q i k ¯ j T d } 1 L k j = 1 L k q i k ¯ j T d
where M ( q i , K ¯ ) is the evaluation metric for q i ; the larger it is, the more critical the q i is. k ¯ j denotes the j-th row of K ¯ . d , d , and L k are the scaling factor, the columns of K, and the rows of K, respectively. The query matrix Q is reconstructed according to the M ( q i , K ¯ ) and the attention score of K is obtained as well. Thus, the probabilistic sparse self-attention gain can be defined as:
A ( Q , K , V ) = S o f t max ( Q ¯ K T d ) V
Then, the redundant combinations of the final output feature maps are eliminated by max-pooling and 1D convolution networks. To eliminate the final redundant long term implicit degenerate relations while ensuring computational efficiency, distillation is introduced, which is given by:
y r = M a x P o o l ( E L U ( C o n v 1 d ( F X ) ) )
where E L U ( · ) denotes the activation function. M a x P o o l ( · ) and C o n v 1 d ( · ) are the max pooling and one-dimensional convolution operation, respectively, in which the stride of max pooling is set to 2 and the convolution kernel is defined as 3. y r denotes the implicit degeneracy relations obtained by distillation. y r is used as input to the long probability sparse self-attention to focus on long term degenerate relations y r 1 , which is fed into the LSTM and obtains the final predicted SOH results.
Figure 3 illustrates the detailed neural network architecture of SOH estimation. From this figure, it can be seen that the input degradation data, like IC curve, voltage, etc., consist of the selected HIs. The long-term degenerate implicit relation of lithium-ion batteries is obtained by probabilistic sparse self-attention in Encoder. On this basis, distillation is introduced to eliminate the final redundant and process long sequences information. Decoder is used to obtain potential relationships from Encoder, which is fed into the LSTM to obtain the final SOH prediction results.
The weights and biases of the neural network are updated using the Adam optimizer, a first-order optimization algorithm known for its high computational efficiency and low memory requirements [27]. Adam is widely used to solve large-scale parameter optimization problems, making it a popular choice in deep learning tasks due to its ability to adapt learning rates and improve convergence stability.

3.2. Improved Warfare Strategy Optimization Algorithm

While the proposed informer-LSTM demonstrates efficacy in predicting battery SOH, the selection of neural network hyperparameters is an optimization dilemma. Identifying the optimal solution generally necessitates conducting numerous experiments, making the process heavily reliant on experience. In recent years, swarm intelligence optimization algorithms have been introduced to optimize LSTM hyperparameters. As a meta-heuristic optimization algorithm, the warfare strategy optimization (WSO) algorithm draws inspiration from military tactics and defense strategies employed in ancient warfare, including the attack strategy and the defensive strategy [28,29] (for details, see in Appendix A).
In the WSO, the position of the optimal solution is determined by the commander, soldiers, and king. Additionally, dynamic weights are introduced in the calculations to adjust the influence of soldiers of different ranks on the optimal solution. Compared to other meta-heuristic optimization algorithms, this enhances WSO’s global search capability. However, like other algorithms, WSO has some shortcomings, such as a tendency to get trapped in local optima early in the iterative process and slow development during iterations, which can lead to premature convergence. Therefore, this study proposes an improved mathematical expression to enhance the iterative process of the Warfare Strategy Optimization algorithm, thereby increasing its global search capability.
First, the traditional WSO initialization is a random process, which can result in uneven distribution of randomly initialized soldiers in the search space, limiting the algorithm’s ability to identify the optimal solution. To ensure uniform coverage of the solution space and enhance the algorithm’s capacity to locate the optimal solution, Logistic mapping [13] is employed for the initialization of soldiers. This mapping has advantages such as ergodicity and non-repetition, which help generate an orderly and dispersed initial population. The mathematical expression can be defined as follows:
X i , j = ( X max , j X min , j ) · x ( r + 1 ) . x ( r + 1 ) = μ · x ( r ) · ( 1 x ( r ) )
In the equation, the initial value x ( 0 ) and the arbitrary value x ( r ) both fall within the range [0, 1], while μ represents a parameter in the chaotic mapping. When μ ( 3.57 , 4 ] takes a specific value, the system enters a chaotic state.
In addition, an improved nonlinear decay function is proposed to enhance the convergence performance during the search phase of WSO. It is defined as follows:
s 1 = d r × r 2 × e ( t max i t e r )
In the equation, r 2 and d r represent a random number between 0 and 1 and a decay factor, respectively, being defined as 0.5. Therefore, the position of soldiers under attack strategy and the defensive strategy are reconstructed as follows:
X i ( t + 1 ) = X i ( t ) + 2 × ρ × s 1 × ( K X r ( t ) ) + r 1 × W i × ( c X i ( t ) )
X w ( t + 1 ) = ( 1 r a n d n ) × s 1 × ( X w ( t ) m e d i a n ( X ) ) + K

3.3. Construction of the IWSO-MILSTM Lithium-Ion Battery SOH Prediction Model

The retained degradation information and the parameter configurations of the proposed informer-LSTM substantially influence the predictive accuracy of the constructed model, particularly the volume of retained degradation information, the learning rate, and the number of hidden units in the LSTM. Therefore, the Improved Warfare Strategy Optimization (IWSO) algorithm is used to improve the model performance. This approach forms the IWSO-assisted informer-LSTM modeling method for lithium-ion battery health state estimation. Compared to the standard WSO, IWSO not only avoids the problem of getting trapped in local optima but also enhances the rate of search and convergence of the algorithm. To better understand the flow of the algorithm, pseudo-code is provided, as shown in Algorithm 1.
Algorithm 1. The execution process of SOH prediction for LIBs by using the proposed IWSO-MILSTM
 Data: The obtained HIs and the MIC values for these HIs. The population size S.
     The upper and lower limits for Thr, lr, and n u m _ h i d d e n . The maximum
     iteration T.
 Output: The normalized results of obtained HIs, initialized hyperparameters
       results and initialized fitness values.
 while stopping criteria is not satisfied do
     for each soldier in population do
       The hyperparameters are updated using Equations (7)–(10).
       Calculate fitness values by using Equation (13).
     end for
     Sorting hyperparameters according to calculate fitness values and the worst
     hyperparameters are replace randomly.
 end while
 The optimal hyperparameter space for MILSTM are obtained and training the SOH
 prediction model based on them
 Output: The SOH prediction results.
The specific steps for constructing the IWSO-MILSTM-based lithium-ion battery SOH prediction model are as follows:
Step 1: Split the Training Set and Test Set and Perform Normalization. The training and test sets are first divided, followed by normalization of the data:
x n o r m = x i x min x max x min
Step 2: Initialization of IWSO Parameters. This step involves initializing the parameters of the IWSO algorithm, including the size S of the soldier population U and the maximum iteration count T. The soldier population is initialized using Equation (7). It is important to note that the hyperparameters in U are defined as follows:
U = [ T h r , l r , n u m _ h i d d e n ]
In the equation, T h r , l r , n u m _ h i d d e n represents the predefined values for filtering redundant information, the learning rate, and the number of hidden units.
Step 3: Calculation of the Fitness Function. In this work, −R2 (the negative coefficient of determination) is used as the optimization objective.
R 2 = k = 1 K ( y k y k ) 2 k = 1 K ( y k y ¯ ) 2 1
This metric ensures that the optimization process minimizes the error in the model’s predictions.
Step 4: Update Soldiers’ Positions. The positions of the soldiers (i.e., the hyperparameters) are updated using Equations (7)–(10). These equations represent the core update mechanisms in the IWSO algorithm, adjusting the positions of the soldiers based on the current solution space to explore more optimal hyperparameter configurations.
Step 5: Calculate Fitness Values. After updating the soldiers’ positions, the fitness values are recalculated. If the current fitness value is lower (better) than the previous one, it is retained. Otherwise, the prior fitness value is maintained.
Step 6: Termination Check. The optimization loop terminates either upon reaching the maximum iteration count or upon the fulfillment of a predefined early stopping criterion. At this point, the process exits the loop and outputs the optimal hyperparameter space.
Step 7: Model Construction Using Optimized Parameters. The optimized parameters are used as inputs to the proposed method. The training set is used to develop the prediction model, while the test set is employed to provide the final prediction results.
Figure 4 depicts the flowchart of the proposed IWSO-MILSTM strategy. In this study, the soldier population is configured to comprise 20, and the total of iterations is established at 100.

4. Experimental Validation

4.1. Evaluation Metrics

To assess the efficacy and progress of proposed methodology for predicting battery SOH, models including LSTM, BiLSTM, Random Forest [30], and Extreme Gradient Boosting (XGBoost) [31] are also used for SOH prediction. Additionally, R2 and Root Mean Square Error (RMSE) are introduced as evaluation metrics to assess the prediction outcome.
R 2 = 1 k = 1 K ( y k y k ) 2 k = 1 K ( y k y ¯ ) 2
R M S E = 1 n i = 1 n ( y i y i ) 2
In the equations, y k and y k represent the k-th predicted result and the actual result, respectively, and n denotes the count of cycles from the start of prediction to the end of the loop. R2 ranges from 0 to 1, with values approaching 1 signifying a stronger fitting accuracy. When the predicted values perfectly match the actual values, the metric values will be 0. R2 represents the goodness of fit and reflects the influence of the independent variables in the constructed battery SOH model on the SOH prediction results. RMSE quantifies the discrepancy between the predicted and observed values of the constructed SOH prediction model, indicating the model’s robustness. In this study, all experiments were conducted in the PyCharm environment using Python 3.7. The execution environment is shown in Table 1 and the hyperparameter space and optimization results are shown in Table 2.

4.2. Comparative SOH Prediction Results of Different Optimization Algorithms for Lithium-Ion Battery Under Different Training Data

To verify the advancement of IWSO, devise optimization algorithms were utilized to optimize the hyperparameters in this study, including WSO, Sparrow Search Algorithm (SSA) [32], and Whale Optimization Algorithm (WOA) [33]. The initial population is set to 20 and maximum number of 100 iterations for these algorithms. Figure 5 and Figure 6 illustrate that the SOH prediction results using the proposed method under these optimization algorithms are illustrated. From these figures, the prediction results of SOH using the IWSO-MSLTM method are highly consistent with the actual results compared to other optimization algorithms. This demonstrates the efficacy and progress of the IWSO-MSLTM strategy in SOH prediction task. The detailed evaluation metrics are shown in Table 3 and Table 4. Take Table 3 as an example. Under equivalent iteration thresholds, IWSO exhibits stronger search capabilities and more efficient convergence speeds during the optimization process. Specifically, the R2 and RMSE of WSO are both optimized in the traditional methods used in this work, i.e., R2 is 0.9667 and RMSE is 0.0376. In contrast, the R2 and RMSE of IWSO-MILSTM are still improved by 1.17% and 26.06%. The experimental results depict that the IWSO can enhance the global searching ability so that more accurate SOH prediction results can be provided by MILSTM due to the proposed improvements. At the same time, while other optimization algorithms also achieve good prediction results in certain cases, IWSO clearly performs better in terms of avoiding premature convergence and escaping local optima. In addition, IWSO is used for the optimization of MILSTM and LSMT under the same hyperparameters. It can be observed that the R2 of MILSTM is increased by 2.78% and RMSE of MILSTM is reduced by 38.77% compared to LSTM. This indicates that the long-term degradation information of lithium-ion batteries can be more fully utilized in MSLTM.
In addition, ablation experiments with different HIs are explored as well, and the details are shown in Figure 7. From this figure, both R2 and RMSE are optimal when the HIs are selected as 19 and 9 for 2 different testing sets. Notably, when the number of HIs is more than 19 and 9, the metrics all tend to decrease and level off. Indeed, the selected numbers of HIs by using the proposed IWSO-MILSTM for two testing sets are also 19 and 9, respectively. Thus, it can be determined that the best subset selected contains 19 HIs and 9 HIs for 2 different testing sets. It also indicates which HIs contribute to the construction process of the SOH prediction model.

4.3. Comparative Analysis of SOH Prediction Results Across Various Algorithms for Lithium-Ion Batteries

To further evaluate efficacy of the proposed methodology, alternative methods were introduced for comparison, including Gate Recurrent Unit (GRU) [34], CNN-LSTM [35], AM-seq2seq [36], and CMGRU [37]. The prediction results for various batteries are shown in Figure 8 and Figure 9. While standard LSTM and GRU perform well in predicting battery SOH, they exhibit larger prediction errors in the slope of capacity degradation and greater fluctuations in SOH prediction. The detailed evaluation metrics are presented in Table 5 and Table 6. For Table 5, 60% of the overall dataset was allocated as training settings for comparison under different training data scenarios. Compared to Table 6, it is evident that the model fails to fully grasp the degradation patterns of lithium-ion batteries; this is likely Comparison has been revised attributable to the reduced amount of training data, resulting in a decline in prediction accuracy. Nevertheless, it is noteworthy that the proposed strategy still achieves competitive results. Specifically, the R2 decreases by 0.951% and the RMSE increases slightly by 34.9514%, with the absolute error of SOH not exceeding 3%. This meets the prediction requirements for battery health state estimation. As the training dataset increases, the prediction performance can be improved as listed in Table 6. The IWSO-MILSTM secures an R2 of 0.9875 and RMSE of 0.0206. Compared to single LSTM, the R2 values are improved by 3.663%. The RMSE values are reduced by and 48.7521%.Notably, AM-seq2seq achieved competitive results among the contrasting approaches. The R2 of the IWSO-MILSTM is improved by 0.9078% while RMSE is reduced by 27.0341%, demonstrating the superior prediction performance of the IWSO-MILSTM algorithm.

5. Conclusions

To achieve accurate SOH prediction for batteries, this study proposed the IWSO-MILSTM approach. First, statistical degradation features such as constant current charging time, constant voltage charging time, and constant current discharging time were identified as directly measured health indicators, while the peak value of the IC curve was used as an indirect health indicator. Based on this, an improved WSO method was introduced to achieve the co-optimization of redundant parameters and informer-LSTM model parameters. IWSO was employed to mitigate issues like premature convergence and getting trapped in local optima based on developed initializing distribution methods and adaptive function, which further improved the model’s predictive accuracy and interpretability. Finally, the efficacy of proposed strategy was validated using a battery dataset from NASA. Experimental results demonstrated that the proposed model’s root mean square error and absolute error were both below 3%, verifying the feasibility and high accuracy.

Author Contributions

Conceptualization, X.W. and M.M.; methodology, M.M.; software, in python 3.7 X.W. and S.P.; validation, X.W. and M.M.; formal analysis, X.W. and S.P.; investigation, X.W.; resources, X.W.; data curation, X.W.; writing—original draft preparation, X.W.; writing—review and editing, X.W.; visualization, X.W. and S.P.; supervision, X.W.; project administration, X.W.; funding acquisition, M.M. and S.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by Supported by the Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJQN202004009; KJZD-K202304001), the National Key Research and Development of China (Grant No. 2021YFB2500704).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

We thank the editors and reviewers for their constructive comments on our manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. The extracted HIs from the charge-discharge curves.
Table A1. The extracted HIs from the charge-discharge curves.
HIsThe DescriptionHIsThe Description
x_1The time for first rising of voltagex_15The slope for the fifth rising of voltage
x_2The capacity for first rising of voltagex_16The time for the sixth rising of voltage
x_3The slope for first rising of voltagex_17The capacity for the sixth rising of voltage
x_4The time for second rising of voltagex_18The slope for the sixth rising of voltage
x_5The capacity for second rising of voltagex_19The downslope time
x_6The slope for second rising of voltagex_20The capacity when the current decreases
x_7The time for third rising of voltagex_21The slope when the current decreases
x_8The capacity for third rising of voltagex_22Maximum temperature during charging process
x_9The slope for third rising of voltagex_23The time for the highest temperature during charging process
x_10The time for the fourth rising of voltagex_24The average temperature when the voltage goes from 3.8 V to 4.2 V at CC-CV phase.
x_11The capacity for the fourth rising of voltagex_25The temperature integral value when the voltage goes from 3.8 V to 4.2 V at CC-CV phase.
x_12The slope for the fourth rising of voltagex_26The voltage value corresponding to the position of the lowest point of dQand dV
x_13The time for the fifth rising of voltagex_27The value of the lowest point of dQ and dV
x_14The capacity for the fifth rising of voltagex_28Integral value of dQ and dV from 3.4 V to 3.8 V

Appendix B

The LSTM consists of the input gate, forget gate, and output gate. During forward propagation process, the input gate selectively introduces new information, while the forget gate filters out historical information as needed. This selective information flow enables LSTM to effectively process the degradation data of lithium-ion batteries.
f t = σ ( W f [ h t 1 , x t ] + b f )
i t = σ ( W t [ h t 1 , x t ] + b i )
C t ˜ = tanh ( W c [ h t 1 , x t ] + b c )
C t = C t ˜ i t + C t 1 f t
o t = σ ( W o · [ h t 1 , x t ] + b o )
h t = tanh ( C t ) o t
where h t 1 and h t represent the hidden states at time t − 1 and t, respectively. W f , W t , W c , and W o denote the weights connecting the forget gate, input gate, input node, and output gate to the previous input data, respectively. b f , b i , b c , and b o represent the bias terms for the forget gate, input gate, input node, and output gate, respectively. σ is the Sigmoid activation function in the hidden layer.

Appendix C

The WSO algorithm is based on the following assumptions:
  • Soldiers in the army are dispersed randomly across the battlefield, and the strongest soldier, in terms of attack power, is considered the commander. In addition, the king is regarded as the ultimate leader of the army.
  • The positions of the soldiers are dynamically adjusted in relation to the positions of the king and commander.
  • The king can dynamically adjust the search strategy through war drums according to the battlefield situation.
  • Soldiers can also change their positions in response to the locations of adjacent soldiers and the king.
  • The weakest or injured soldiers can be replaced by new recruits.
  • All soldiers have an equal chance to be the commander and king.
The WSO algorithm can be expressed comprehensively as follows:
Attack Strategy: The position of a soldier can be adjusted with the king and commander. The mathematical description of this update process is as follows:
X i ( t + 1 ) = X i ( t ) + 2 × r a n d × ( C K i n g ) + r a n d × ( W i × K i n g X i ( t ) )
In the equation, X i ( t + 1 ) and X i ( t ) represent a soldier’s position at iterations t + 1 and t, respectively. C and King represent the commander and king’s position, respectively, while W i and rand represent the weight of the king and a random number from 0 to 1
The rank of a soldier is a crucial factor influencing their position, and each soldier’s rank is determined by their fitness value in the battle. Should the fitness value of the soldier at the new position be inferior to the previous one, the soldier will retain prior position.
X i ( t + 1 ) = X i ( t + 1 ) × ( F n F P ) + X i ( t ) × ( F n F P )
In this equation, F n and F P represent the fitness function values of the previous and current position, respectively. The soldier’s rank R i is updated with the position.
R i = ( R i + 1 ) × ( F n F p ) + R i × ( F n F p )
King’s weight can be adjusted in accordance with the soldier’s rank:
W i = W i × ( 1 R i max i t e r ) α
In the equation, R i and α represent the rank of the i-th soldier and the exponential change factor, respectively.
Soldiers will modify their positions in response to the spatial arrangements of proximate soldiers and the king. Additionally, their primary duty is to maximize the protection of the king.
X i ( t + 1 ) = X i ( t ) + 2 × ρ × ( K X r ( t ) ) + r 1 × W i × ( c X i ( t ) )
In the equation, X r ( t ) and ρ represent the arbitrary positioning of the soldier at the ttt-th iteration and a random number, respectively.
Replacement or Relocation of Weak Soldiers: Since the injured soldiers exhibit the lowest fitness values, two distinct replacement strategies are employed to handle their substitution. The random replacement strategy can be defined as follows:
X w ( t + 1 ) = L b + r × ( U b L b )
X w ( t + 1 ) = ( 1 r a n d n ) × ( X w ( t ) m e d i a n ( X ) ) + K
In the equation, X w ( t ) and m e d i a n ( · ) represent the underperforming soldier at the t-th iteration and the median function, respectively.

References

  1. Lu, J.; Xiong, R.; Tian, J.; Wang, C.; Sun, F. Deep learning to estimate lithium-ion battery state of health without additional degradation experiments. Nat. Commun. 2023, 14, 2760. [Google Scholar] [CrossRef] [PubMed]
  2. Che, Y.; Hu, X.; Lin, X.; Guo, J.; Teodorescu, R. Health prognostics for lithium-ion batteries: Mechanisms, methods, and prospects. Energy Environ. Sci. 2023, 16, 338–371. [Google Scholar] [CrossRef]
  3. Dang, L.; Huang, Y.; Zhang, Y.; Chen, B. Multi-kernel correntropy based extended Kalman filtering for state-of-charge estimation. ISA Trans. 2022, 129, 271–283. [Google Scholar] [CrossRef] [PubMed]
  4. Dang, L.; Yang, J.; Liu, M.; Chen, B. Differential Equation-Informed Neural Networks for State-of-Charge Estimation. IEEE Trans. Instrum. Meas. 2023, 73, 1–15. [Google Scholar] [CrossRef]
  5. Liu, R.; Gai, Y.; Yang, P.; Zhang, W.; Liu, Q.; Ding, Z.; Mo, X. Health-status detection of lead-acid battery based on AC impedance spec-troscopy. Energy Storage Sci. Technol. 2023, 12, 3499–3507. [Google Scholar]
  6. Zhou, J.; Qin, Y.; Luo, J.; Zhu, T. Remaining Useful Life Prediction by Distribution Contact Ratio Health Indicator and Consolidated Memory GRU. IEEE Trans. Ind. Inform. 2022, 19, 8472–8483. [Google Scholar] [CrossRef]
  7. Dang, L.; Wang, W.; Chen, B. Square Root Unscented Kalman Filter with Modified Measurement for Dynamic State Estimation of Power Systems. IEEE Trans. Instrum. Meas. 2022, 71, 1–13. [Google Scholar] [CrossRef]
  8. Chen, Y.; Duan, W.; Huang, X.; Wang, S. Multi-output fusion SOC and SOE estimation algorithm based on deep network migration. Energy 2024, 308, 133032. [Google Scholar] [CrossRef]
  9. Liang, Y.; Yao, Y. Designing modern aqueous batteries. Nat. Rev. Mater. 2023, 8, 109–122. [Google Scholar] [CrossRef]
  10. Hu, W.; Zhang, C.; Liu, S.; Jin, L.; Xu, Z. Multi-objective optimization estimation of state of health for lithium-ion battery based on constant current charging profile. J. Energy Storage 2024, 83, 110785. [Google Scholar] [CrossRef]
  11. Chen, Y.; Liu, Y.; He, Y.; Lyu, Z.; Cai, Y.; Zhang, S. SOC Estimation of Lithium-Ion Battery Pack Based on Discharge Stage Division and Fusion Modeling. IEEE Trans. Instrum. Meas. 2025, 74, 2515914. [Google Scholar] [CrossRef]
  12. Wang, Z.; Ma, Y.; Gao, J.; Chen, H. Remaining useful life prediction for solid-state lithium batteries based on spatial–temporal relations and neuronal ODE-assisted KAN. Reliab. Eng. Syst. Saf. 2025, 260, 111003. [Google Scholar] [CrossRef]
  13. Hu, X.; Yuan, H.; Zou, C.; Li, Z.; Zhang, L. Co-Estimation of State of Charge and State of Health for Lithium-Ion Batteries Based on Fractional-Order Calculus. IEEE Trans. Veh. Technol. 2018, 67, 10319–10329. [Google Scholar] [CrossRef]
  14. Vennam, G. and A. Sahoo, A Dynamic SOH-coupled Lithium-ion Cell Model for State and Parameter Estimation. IEEE Trans. Energy Convers. 2023, 38, 1–10. [Google Scholar] [CrossRef]
  15. Yang, B.; Qian, Y.; Li, Q.; Chen, Q.; Wu, J.; Luo, E.; Xie, R.; Zheng, R.; Yan, Y.; Su, S.; et al. Critical summary and perspectives on state-of-health of lithium-ion battery. Renew. Sustain. Energy Rev. 2024, 190, 114077. [Google Scholar] [CrossRef]
  16. Zhai, Q.; Jiang, H.; Long, N.; Kang, Q.; Meng, X.; Zhou, M.; Yan, L.; Ma, T. Machine learning for full lifecycle management of lithium-ion batteries. Renew. Sustain. Energy Rev. 2024, 202, 114647. [Google Scholar] [CrossRef]
  17. Li, Y.; Wang, S.; Chen, L.; Qi, C.; Fernandez, C. Multiple layer kernel extreme learning machine modeling and eugenics genetic sparrow search algorithm for the state of health estimation of lithium-ion batteries. Energy 2023, 282, 128776. [Google Scholar] [CrossRef]
  18. Ma, Y.; Wang, Z.; Gao, J.; Chen, H. A novel method for remaining useful life of solid-state lithium-ion battery based on improved CNN and health indicators derivation. Mech. Syst. Signal Process. 2024, 220, 111646. [Google Scholar] [CrossRef]
  19. Xu, B.T.; Meng, X.L.; Tian, A.Q.; Sun, Y.J.; Cao, L.B.; Jiang, Y.J. Prediction for state of charge of lead-acid battery by particle swarm optimization with Gaussian process regression. J. Nanjing Univ. Sci. Technol. 2018, 42, 162–168. [Google Scholar]
  20. Duan, W.; Song, S.; Xiao, F.; Chen, Y.; Peng, S.; Song, C. Battery SOH estimation and RUL prediction framework based on variable forgetting factor online sequential extreme learning machine and particle filter. J. Energy Storage 2023, 65, 107322. [Google Scholar] [CrossRef]
  21. Wang, Z.; Yang, F.; Xu, Q.; Wang, Y.; Yan, H.; Xie, M. Capacity estimation of lithium-ion batteries based on data aggregation and feature fusion via graph neural network. Appl. Energy 2023, 336, 120808. [Google Scholar] [CrossRef]
  22. Tang, S.; Xiao, X.; Sun, Z.; Hu, Y.; Chen, H. An Anti-Noise Disturbance Fuzzy Neural Dynamics for Manipulability Optimization of Omnidirectional Mobile Redundant Manipulator. IEEE Trans. Fuzzy Syst. 2025. early access. [Google Scholar] [CrossRef]
  23. Wan, Z.; Zhu, J.; Zhang, Z.; Dai, L.; Chae, C.-B. Mutual Information for Electromagnetic Information Theory Based on Random Fields. IEEE Trans. Commun. 2023, 71, 1982–1996. [Google Scholar] [CrossRef]
  24. Wang, F.; Zhai, Z.; Liu, B.; Zheng, S.; Zhao, Z.; Chen, X. Open access dataset, code library and benchmarking deep learning approaches for state-of-health estimation of lithium-ion batteries. J. Energy Storage 2024, 77, 109884. [Google Scholar] [CrossRef]
  25. Sherstinsky, A. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Phys. D Nonlinear Phenom. 2020, 404, 132306. [Google Scholar] [CrossRef]
  26. Chen, Y.; Cao, L.; Yue, Y. Hybrid Multi-Objective Chameleon Optimization Algorithm Based on Multi-Strategy Fusion and Its Applications. Biomimetics 2024, 9, 583. [Google Scholar] [CrossRef]
  27. Kingma, D.P. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  28. Xu, J.; Cui, D. Time Series Prediction of Sediment Discharge by Üptimizing Extreme Learning Machine with War Strategy and Chameleon Swarm Algorithm. Water Pover 2022, 48, 36–42. [Google Scholar]
  29. Ayyarao, T.S.; Ramakrishna NS, S.; Elavarasan, R.M.; Polumahanthi, N.; Rambabu, M.; Saini, G.; Alatas, B. War strategy optimization algorithm: A new effective metaheuristic algorithm for global optimization. IEEE Access 2022, 10, 25073–25105. [Google Scholar] [CrossRef]
  30. Hu, J.; Szymczak, S. A review on longitudinal data analysis with random forest. Brief. Bioinform. 2023, 24, bbad002. [Google Scholar] [CrossRef]
  31. Zhang, J.; Ma, X.; Zhang, J.; Sun, D.; Zhou, X.; Mi, C.; Wen, H. Insights into geospatial heterogeneity of landslide susceptibility based on the SHAP-XGBoost model. J. Environ. Manag. 2023, 332, 117357. [Google Scholar] [CrossRef] [PubMed]
  32. Liu, X.; Zhang, Z.; Meng, F.; Zhang, Y. Fault diagnosis of wind turbine bearings based on CNN and SSA–ELM. J. Vib. Eng. Technol. 2023, 11, 3929–3945. [Google Scholar] [CrossRef]
  33. Ma, G.; Yue, X.; Zhu, J.; Liu, Z.; Lu, S. Deep learning network based on improved sparrow search algorithm optimization for rolling bearing fault diagnosis. Mathematics 2023, 11, 4634. [Google Scholar] [CrossRef]
  34. Guo, Z.; Yang, C.; Wang, D.; Liu, H. A novel deep learning model integrating CNN and GRU to predict particulate matter concentrations. Process. Saf. Environ. Prot. 2023, 173, 604–613. [Google Scholar] [CrossRef]
  35. Zha, W.; Liu, Y.; Wan, Y.; Luo, R.; Li, D.; Yang, S.; Xu, Y. Forecasting monthly gas field production based on the CNN-LSTM model. Energy 2022, 260, 124889. [Google Scholar] [CrossRef]
  36. Qian, C.; Xu, B.; Xia, Q.; Ren, Y.; Sun, B.; Wang, Z. SOH prediction for Lithium-Ion batteries by using historical state and future load information with an AM-seq2seq model. Appl. Energy 2023, 336, 120793. [Google Scholar] [CrossRef]
  37. Wang, Z.; Ma, Y.; Gao, J.; Chen, H. Cured Memory RUL Prediction of Solid-State Batteries Combined Progressive-Topologia Fusion Health Indicators. IEEE Trans. Ind. Inform. 2025. early access. [Google Scholar] [CrossRef]
Figure 1. The data information of the Battery in NASA. (a) Capacity Degradation Curves of Different Batteries. (b) Charge and Discharge Voltage Curve. (c) Charge and Discharge Current Curve. (d) IC Curve (Incremental Capacity Curve).
Figure 1. The data information of the Battery in NASA. (a) Capacity Degradation Curves of Different Batteries. (b) Charge and Discharge Voltage Curve. (c) Charge and Discharge Current Curve. (d) IC Curve (Incremental Capacity Curve).
Energies 18 02326 g001
Figure 2. Mutual Information Results Between Health Indicators and SOH.
Figure 2. Mutual Information Results Between Health Indicators and SOH.
Energies 18 02326 g002
Figure 3. The structure of the informer-LSTM networks.
Figure 3. The structure of the informer-LSTM networks.
Energies 18 02326 g003
Figure 4. IWSO Algorithm Flowchart.
Figure 4. IWSO Algorithm Flowchart.
Energies 18 02326 g004
Figure 5. Prediction Outcomes Utilizing a 40% Testing Set Across Various Optimization Algorithms.
Figure 5. Prediction Outcomes Utilizing a 40% Testing Set Across Various Optimization Algorithms.
Energies 18 02326 g005
Figure 6. Prediction Outcomes Derived from a 30% Testing Set Employing Diverse Optimization Algorithms.
Figure 6. Prediction Outcomes Derived from a 30% Testing Set Employing Diverse Optimization Algorithms.
Energies 18 02326 g006
Figure 7. The ablation experiments with different HIs for different testing sets.
Figure 7. The ablation experiments with different HIs for different testing sets.
Energies 18 02326 g007
Figure 8. Prediction Outcomes Utilizing a 40% Training Set Across Various Optimization Algorithms.
Figure 8. Prediction Outcomes Utilizing a 40% Training Set Across Various Optimization Algorithms.
Energies 18 02326 g008
Figure 9. Prediction Results Utilizing a 30% Training Set Across Diverse Algorithms.
Figure 9. Prediction Results Utilizing a 30% Training Set Across Diverse Algorithms.
Energies 18 02326 g009
Table 1. Hardware Environment for Program Execution.
Table 1. Hardware Environment for Program Execution.
Hardware ComponentModel/Specification
CPUI7-10700
GPUNVIDIA GeForce GTX 1650 (Hsinchu City, Taiwan)
RAM16 GB
Table 2. The searching space of hyperparameters and optimization results.
Table 2. The searching space of hyperparameters and optimization results.
HyperparameterThe Searching SpaceOptimization Results
40% testing set30% testing set
T h r (0.4, 2.0)1.51 (19 HIs)1.84 (9 HIs)
l r (0.001, 0.01)0.00240.0018
n u m _ h i d d e n (32, 128)6496
Table 3. Comparison of Results for Different Optimization Algorithms with 40% Testing Set.
Table 3. Comparison of Results for Different Optimization Algorithms with 40% Testing Set.
Evaluation MetricsIWSO-MILSTMWSO-MILSTMWOA-MILSTMIWSO-LSTMSSA-
LSTM
R20.97810.96670.96030.95160.9435
RMSE0.02780.03760.04110.04540.0491
Table 4. Comparison of Results for Different Optimization Algorithms with 30% Testing Set.
Table 4. Comparison of Results for Different Optimization Algorithms with 30% Testing Set.
Evaluation MetricsIWSO-MILSTMWSO-MILSTMWOA-MILSTMIWSO-LSTMSSA-
LSTM
R20.98750.97320.96950.96080.9595
RMSE0.02060.03020.03220.03660.0372
Table 5. Comparison of Results for Different Algorithms with 40% Testing Set.
Table 5. Comparison of Results for Different Algorithms with 40% Testing Set.
Evaluation
Metrics
IWSO-MILSTMGRULSTMCNN-LSTMAM-seq2seqCMGRUXGBoostSVR
R20.97810.94010.93490.96180.96930.9574--
RMSE0.02780.05050.05270.04030.03610.03810.24160.3435
Table 6. Comparison of Results for Different Algorithms with 30% Testing Set.
Table 6. Comparison of Results for Different Algorithms with 30% Testing Set.
Evaluation
Metrics
IWSO-MILSTMGRULSTMCNN-LSTMAM-seq2seqCMGRUXGBoostSVR
R20.98750.95340.95260.96810.98030.97420.7857-
RMSE0.02060.03990.04020.03290.025920.029660.08550.1630
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wei, X.; Mo, M.; Peng, S. Lithium-Ion Battery Health State Prediction Based on Improved War Optimization Assisted-Long and Short-Term Memory Network. Energies 2025, 18, 2326. https://doi.org/10.3390/en18092326

AMA Style

Wei X, Mo M, Peng S. Lithium-Ion Battery Health State Prediction Based on Improved War Optimization Assisted-Long and Short-Term Memory Network. Energies. 2025; 18(9):2326. https://doi.org/10.3390/en18092326

Chicago/Turabian Style

Wei, Xiankun, Mingli Mo, and Silun Peng. 2025. "Lithium-Ion Battery Health State Prediction Based on Improved War Optimization Assisted-Long and Short-Term Memory Network" Energies 18, no. 9: 2326. https://doi.org/10.3390/en18092326

APA Style

Wei, X., Mo, M., & Peng, S. (2025). Lithium-Ion Battery Health State Prediction Based on Improved War Optimization Assisted-Long and Short-Term Memory Network. Energies, 18(9), 2326. https://doi.org/10.3390/en18092326

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop