A Predictive Approach for Lithium-Ion Battery SOH using LSTM Neural Networks Enhanced by Health Matrix Optimization
Youyuan Peng1, Feng Huang1,*, Xin Xie1, Guocai Gui2, Fei Zhao2, Yuliu Ou2 and Hai Xu2
1College of Electrical & Information Engineering, Hunan Institute of Engineering, Xiangtan 411104, China
2Shenzhen CarElectro Network Limited Company, ShenZhen 518101, China
E-mail: Huangfeng@hnie.edu.cn
*Corresponding Author
Received 11 June 2024; Accepted 13 July 2024
The State of Health (SOH) is a critical performance metric that characterizes the condition of lithium-ion batteries, directly influencing their lifespan and operational efficiency. In order to enhance the accuracy of SOH predictions for batteries and reduce operational risks, a novel approach has been introduced. This method, based on Health Matrix Optimization for Long Short Term Memory (LSTM) neural networks, aims to optimize the prediction process. Initially, the Spearman correlation coefficient method is employed to analyze the correlation of battery state data. Through the use of a heatmap, data points with strong correlations to SOH are identified, leading to the creation of a health feature matrix. This matrix is then utilized to fine-tune the hyperparameters of the LSTM neural network, resulting in refined approximations. Subsequently, by employing this optimized LSTM neural network, accurate predictions of the SOH for lithium-ion batteries are made. The results demonstrate a notable improvement in prediction accuracy by 35.71% and a significant increase in prediction speed by 35.5% when compared to traditional methods. This innovative approach proves to be effective in enhancing battery performance and longevity.
Keywords: SOH prediction, health matrix, neural network, prediction optimization.
With the increasing utilization of renewable energy sources and the proliferation of electric vehicles, an efficient and reliable battery management system has become a pivotal technology in ensuring battery safety, enhancing efficiency, and extending battery lifespan. Lithium-ion batteries are widely employed in electric vehicles and energy storage systems due to their exceptional energy density and longevity [1]. However, the performance of lithium batteries gradually deteriorates over time, directly impacting the safety, reliability, and cost-effectiveness of the batteries. Therefore, enhancing the level of intelligence in Battery Management Systems (BMS) and accurately predicting the SOH of batteries are crucial for improving performance and prolonging lifespan.
Presently, the estimation methods for the SOH of lithium batteries can be broadly categorized into three groups: experimental methods, numerical model-based methods, and data-driven methods [2]. Experimental methods involve direct measurements [3] or the extraction of specific indicators under standardized charging and discharging conditions to estimate the battery’s capacity [4]. However, these methods tend to be time-consuming, costly, and have limited practical applications. Numerical model-based methods encompass various approaches such as empirical models [5], electrochemical models [6], and equivalent circuit models [7]. In reference [5], an empirical model-based method was proposed for estimating the SOH. Yet, this model exhibits a limited ability to generalize as it fails to account for the intricacies of the battery’s internal physical and chemical processes, thereby making it challenging to adapt to real-world variations. Reference [6] introduced an SOH prediction method based on an electrochemical model, but its implementation requires intricate data characterizations of complex chemical reactions and transport processes. Additionally, the accuracy of its predictions heavily relies on the precise determination of model parameters, which may demand sophisticated experimental procedures and fitting algorithms, thus resulting in higher costs. On the other hand, reference [7] employed an equivalent circuit model to estimate SOH. However, this model necessitates periodic adjustments of circuit parameters according to the battery’s actual operating conditions, as well as recalibration, inevitably neglecting the impact of environmental temperature.
In recent years, data-driven methods have emerged as a research focus for SOH estimation due to their flexibility and universality [8]. Data-driven approaches exhibit excellent adaptability, flexibility, and remarkable nonlinear fitting capabilities, enabling real-time evaluation and prediction of SOH. For instance, Shaheer A [9] employed a data-driven method using sliding windows and system sampling for SOH prediction. Sudarshan M [10] employed a data-driven autoencoder neural network for degradation prediction in lithium batteries. Steffen B [11] utilized a time convolutional neural network with partial load profiles for SOH estimation. Ye Chen [12] used the particle filtration method to estimate the degradation state and then predict the remaining service life. Zheng Pan [13] used the state transition energy management algorithm to help the battery energy management system make decisions. Qing Chongyuan, Yin Chunjie, and others [14, 15] used neural networks to jointly estimate State of Charge (SOC) and SOH. Mao Baihai, Chang Wei, and others [16, 17] employed a multi-model fusion approach for predicting the SOH of lithium batteries. Li Suyang, Chu Ying, and others [18, 19] combined attention mechanisms with LSTM to estimate the SOH of lithium batteries. In the aforementioned studies, a significant amount of research has focused on optimizing neural network models, while fewer studies have explored enhancing feature extraction to improve their correlation with SOH. This limitation has resulted in unimproved SOH weighting and a lack of sufficient optimization of hyperparameters, which can affect both the predictive accuracy and speed of the models.
This study proposes a method that incorporates a feature selection process to identify highly correlated features with battery SOH. By constructing a health feature matrix and optimizing an LSTM neural network, the method achieves improved accuracy and prediction speed for battery SOH estimation. Importantly, this approach also provides more accurate data support for BMS, enabling optimized battery usage strategies.
For battery management systems, a lithium battery’s SOH is an essential parameter, as it measures the battery’s aging level and remaining lifespan. SOH is typically expressed in terms of capacity or internal resistance. In this paper, we represent SOH using capacity and define it as follows [20]:
(1) |
where represents the current capacity of the battery (), and represents the nominal capacity of the battery ().
This paper refers to the research on international standards related to testing and evaluation of lithium battery energy storage described by Zhou Yuan [21]. To validate the proposed method, the battery dataset from the Center for Advanced Life Cycle Engineering (CALCE) in the United States is employed [22]. Test data from batteries with serial numbers CS2 35 to CS2 38 are selected. All batteries are charged using a constant current (CC) mode with a rate of 0.5C until the battery voltage reaches the cut-off voltage of 4.2V. Then, the voltage is held constant at 4.2V in a constant voltage (CV) mode until the charging current decreases to 20mA. Finally, the batteries are discharged at a CC of 1C until the battery voltage drops to the cut-off discharge voltage of 2.7V. The test is terminated when the battery reaches the End of Life (EOL) criterion, which is defined as a decrease in the rated capacity to 30%.
In the testing process, strict charging and discharging requirements are followed to simulate the battery behavior in practical usage. Table 1 summarizes the battery parameters.
Table 1 Battery parameter characteristics
Parameters | Specification |
Rated capacity | 1100 mAh |
Chemical composition | LiCoO (with trace amounts of manganese) |
Weight | 28g |
Dimensions | 5.4 33.6 50.6 mm |
Charging cut-off voltage | 4.2V |
Discharging cut-off voltage | 2.7V |
The health assessment, proposed by Lars Landberg in 2011 [23], includes turning the complex two-dimensional multivariate probability density function into a health matrix by extracting strong association features from the statistical probability distribution characteristics of the model outputs.
(1) Data preprocessing: To improve data reliability, data cleaning is performed to address missing values, outliers, and noise [24]. To reduce the error caused by different data scales, the maximum-minimum normalization algorithm can be used:
(2) |
where the values , , and stand for the current, minimum, and maximum values of the data, respectively.
(2) Correlation analysis: In this study, the Spearman correlation coefficient is used to analyze the correlation of battery data. The correlation between two statistical variables, and , is assessed through the application of a monotonic function. When the two variables are perfectly monotonically related and have no repeated values, the SCC is 1 or 1, negative values indicate negative correlation, and 0 indicates no correlation [25]. The correlation coefficient rs is calculated using Equation (3) to obtain the feature correlation heatmap shown in Figure 1.
(3) |
where denotes the sample size and is the rank difference between and .
(3) Feature selection:Based on the correlation analysis, strongly correlated feature data are selected to obtain the matrix elements and dimensions of the health matrix [26], as well as the neural network’s approximate hyperparameters.
Changes in internal resistance can serve as an early warning signal for battery aging and degradation. Studying the dynamic changes in internal resistance helps develop more accurate battery health prediction models. The variation of internal resistance for the CS2-35 battery during charge-discharge cycles is shown in Figure 2.
The capacity loss rate of a battery throughout its lifecycle is an important indicator for assessing SOH. It indirectly reflects the battery’s degradation performance and the consistency and variability of its performance under the same cycle count. The relationship is illustrated in Figure 3.
Constant Current Charging Time (CCCT) and Constant Voltage Charging Time (CVCT) are widely used in battery management systems as important indicators for monitoring and evaluating battery health status. Long-term tracking of CCCT and CVCT provides insights into battery life degradation rate and performance changes during the charging process. The relationship is depicted in Figure 4.
(4) Matrix Generation: The selected features are arranged in a matrix according to their numerical values, with each matrix element representing a health factor of the battery’s SOH. The calculated SOH values are arranged in the state matrix in the order of the features.
Factor analysis is applied to the battery data, resulting in the feature correlation matrix of SOH. Rearranging using transposition and multiplying it with yields the health matrix , as shown in Equation (4):
(4) |
where , which typically ranges from 6 to 12, is the health matrix’s dimension. When exceeds 12, factor analysis method is usually used for dimensionality reduction, which can effectively capture the potential relationship between battery performance data and reduce the data dimension while retaining important information.
To improve the accuracy of SOH prediction and reduce prediction errors, an optimization approach is proposed, involving the selection of health factors, health assessment, calculation of improved SOH weights, and utilizing a neural network for predicting SOH.
(1) Health Assessment: Based on the health factors, a health assessment is conducted to obtain the health matrix and approximate hyperparameters for the neural network.
(2) SOH Prediction: Accelerating the optimization process using the approximate hyperparameters, a neural network is employed for power prediction, resulting in the initial SOH prediction.
Equation (4) indicates that health factors correspond to the dimension of the health matrix . The current feature data of the lithium battery is arranged in the order of the state matrix , forming the feature matrix .
First, multiplying the matrices and gives the weight matrix as follows:
(5) |
Next, expanding the original predicted battery health state () into the SOH prediction matrix , where all elements in are the same as the original predicted .
Then, multiplying the matrix with , followed by multiplying the result with a correction factor and adding it to the original , yields the reconstructed prediction , as shown in the equation:
(6) |
where is determined based on the constructed Lasso regression model and can effectively reflect the impact of battery health factor and working state. This coefficient is set between 0.01 and 0.1 to optimize model performance and ensure accuracy.
Finally, the accuracy and reliability of the reconstructed predictions are assessed through analysis and comparison. Continuously optimizing and adjusting the hyperparameters is performed to improve prediction accuracy and efficiency. In practical applications, flexible adjustments and improvements should be made based on specific circumstances to adapt to different battery states and application scenarios.
Figure 5 is an illustration of the neural network optimization method based on the health matrix.
The optimization process for the LSTM model is as follows:
During the training process of the LSTM network for SOH prediction, the Mean Squared Error (MSE) loss function is utilized:
(7) |
where represents the true value and represents the predicted value.
To further enhance prediction accuracy, the health matrix is integrated into the loss function, defining a new loss function :
(8) |
where the health matrix is a function based on the prediction errors.
(9) |
During the training process, the update formula for the hidden layer weights is adjusted according to the new loss function using gradient descent. The update rule for the weights is as follows:
(10) |
where represents the weights at time step and is the learning rate.
The partial derivative of with respect to the weight is given by Equation (11):
(11) |
Specifically, the calculation of gradients depends on the influence of the health matrix on the error of each sample.
(12) |
Finally, the weight update equation is derived as follows:
After the optimization with the health matrix, each weight update takes into account the prediction errors, enabling the model to learn effectively while reducing errors and improving prediction accuracy and speed.
In this study, three error metrics, namely R (Coefficient of Determination), MSE (Mean Squared Error), and MAE (Mean Absolute Error), are used to evaluate the performance of the model. The formulas for these evaluation metrics are as follows:
(14) |
where represents the true value, represents the predicted value, represents the mean value of the true values, and represents the number of samples.
Under the same dataset, a comparison is made between the prediction error metrics and prediction time of the LSTM model before and after optimizing with the health matrix. The results are presented in Table 2.
Table 2 Comparison of neural network prediction errors
MSE | MAE | Time | ||
LSTM | 0.993 | 0.00028 | 0.01135 | 27.6s |
Optimized LSTM | 0.995 | 0.00018 | 0.00574 | 17.8s |
From Table 2, it can be observed that after incorporating the health matrix, the prediction accuracy improves by 35.71%, and the prediction time reduces by 35.5%. The optimized LSTM neural network model exhibits improved prediction accuracy and generalization capability. Furthermore, the health matrix enhances the quality of features, enabling real-time monitoring of battery characteristics by the BMS. With continuous assessment of the battery’s SOH and adjustment of operational parameters based on actual conditions, the performance and lifespan of the battery can be maximized.
Taking the CS2-35 battery as an example, the comparison of prediction results before and after using the health matrix in the LSTM network is illustrated in Figure 6.
The distribution of prediction errors before and after using the health matrix in the LSTM network is shown in Figures 7 and 8, respectively.
From Figures 7 and 8, it can be observed that the use of the health matrix results in a more concentrated error distribution, with a decrease in the frequency of prediction errors.
Figure 6 clearly demonstrates that the health matrix significantly improves the lag effect in predictions and enhances the quality of LSTM network SOH weights. After optimization, the LSTM network shows a significant improvement in prediction accuracy.
The training and validation loss of the model is shown in Figure 9. The model exhibits good learning efficiency and rapid convergence. It performs consistently on the training and validation sets, indicating good generalization ability. The model reliably predicts the SOH of the battery by effectively learning from the training data, making it suitable for battery performance monitoring and management systems.
The LSTM neural network SOH prediction method optimized with the health matrix offers improvements in both prediction accuracy and speed. This method can be applied to various modules in BMS, such as real-time health monitoring, warning systems, charging control, performance optimization, and fault diagnosis. By dynamically adjusting operating parameters based on real-time data, the BMS can proactively identify potential failures and devise effective charging plans. Additionally, it supports data analysis and long-term trend evaluation, providing a scientific basis for charge and discharge strategies. Ultimately, this method contributes to extending battery life and reducing maintenance costs effectively.
This work was supported by National Natural Science Foundation of China (grant number 62006075), Hunan Provincial Natural Science Foundation of China (grant number 2022JJ50014, 2022JJ50116, 2024JJ7101), Special Project for Construction of Changzhutan National Independent Innovation Demonstration Zone, the 2022 Special Projects for Creating a National Innovative City in Xiangtan City (grant number CG-ZDGS20221004), Postgraduate Scientific Research Innovation Project of Hunan Province (grant number CX20231290), Hunan Province Graduate Course Ideological and Political Education Demonstration Course ‘Wind Farm SCADA Monitoring System’ (grant number: Hunan Education Communication [2022] 357).
State of Health (SOH)
Long Short Term Memory (LSTM)
Battery Management Systems (BMS)
State of Charge (SOC)
The Center for Advanced Life Cycle Engineering (CALCE)
Constant Current (CC)
Constant Voltage (CV)
End of Life (EOL)
Constant Current Charging Time (CCCT)
Constant Voltage Charging Time (CVCT)
Mean Squared Error (MSE)
Coefficient of Determination ()
Mean Absolute Error (MAE)
[1] Wu Zemin, Pan Xiangying, Feng Chao. Design of Thermal Management System for Battery Pack of Pure Electric Vehicles [J]. Auto Electric Parts, 2013, 01(01), 10–12. DOI: 10.13273/j.cnki.qcdq.2013.01.005.
[2] Kang Yongzhe. Research on Capacity Estimation and Fault Diagnosis Methods of Lithium-ion Battery Packs [D]. Shandong University, 2021. DOI: 10.27272/d.cnki.gshdu.2021.000333.
[3] Tian J P, Xiong R, Shen W X, et al. State-of-charge estimation of LiFePO4 batteries in electric vehicles: a deeplearning enabled approach [J]. Applied energy, 2021, 291(3): 116812. DOI: 10.1016/j.apenergy.2021.116812.
[4] Zhang Q C, Li X, Zhou C, et al. State-of-health estimation of batteries in an energy storage system based on the actual operating parameters [J]. Journal of power sources, 2021, 506: 230162. DOI: 10.1016/j.jpowsour.2021.230162.
[5] Su L S, Zhang J B, Wang C J, et al. Identifying main factors of capacity fading in lithium ion cells using orthogonal design of experiments [J]. Applied energy, 2016, 163: 201–210. DOI: 10.1016/j.apenergy.2015.11.014.
[6] Xiong R, Li L L, Yu Z R, et al. An electrochemical model based degradation state identification method of lithium-ion battery for all-climate electric vehicles application [J]. Applied energy, 2018, 219:264–275. DOI: 10.1016/j.apenergy.2018.03.053.
[7] Xu W H, Wang S L, Jiang C, et al. A novel adaptive dual extended Kalman filtering algorithm for the Li-ion battery state of charge and state of health co- estimation [J]. International journal of energy research, 2021, 45(12): 14592–14602. DOI: 10.1002/er.6719.
[8] Lin C P, Xu J, Shi M J, et al. Constant current charging time based fast state-of-health estimation for lithium-ion batteries [J]. Energy, 2022, 247: 123556. DOI: 10.1016/j.energy.2022.123556.
[9] Shaheer A, Afida A, Hossain M L, et al. Optimized data-driven approach for remaining useful life prediction of Lithium-ion batteries based on sliding window and systematic sampling [J]. Journal of Energy Storage, 2023, 73(PD).
[10] Sudarshan M, Serov A, Jones C, et al. Data-driven autoencoder neural network for onboard BMS Lithium-ion battery degradation prediction [J]. Journal of Energy Storage, 2024, 82110575.
[11] Steffen B, Vincent L, Marco P. State of health estimation of lithium-ion batteries with a temporal convolutional neural network using partial load profiles [J]. Applied Energy, 2023, 329.
[12] Ye Chen et al. Smart Electricity Meter Prognostics Based on Lithium Battery RUL Prediction[J]. Distributed Generation & Alternative Energy Journal, 2022, 37(3): 449–464.
[13] Zheng Pan and Qihong Xiao and Yangliang Chen. Application of State Transition Energy Management Control Algorithm in Fuel Cell[J]. Distributed Generation & Alternative Energy Journal, 2021, 36(1): 57–74.
[14] Qing Chongyuan, Chen Shaohua, Li Ruipeng, et al. Study on Joint Estimation of State of Charge (SOC) and State of Health (SOH) for Lithium Batteries Based on FFRLS-DEKF. [J]. Information Technology and Informatization, 2024, 3(03), 8–12.
[15] Yin Chunjie, Wang Yanan, Li Pengfei, et al. Joint Online Estimation of State of Charge (SOC) and State of Health (SOH) for Energy Storage Battery Based on Long Short-Term Memory (LSTM) [J]. Chinese Journal of Power Sources, 2022, 46(05): 541–544.
[16] Mao Baihai, Qin Wu, Xiao Xianbin, et al. State-of-health Estimation of Lithium-ion Battery Based on LSTM-GRU-Attention Multi-joint Model [J]. Energy Storage Science and Technology, 2023, 12(11), 3519–3527. DOI: 10.19799/j.cnki.2095-4239.2023.0514.
[17] Chang Wei, Hu Zhichao, Pan Duozhao. State of Health (SOH) and Remaining Useful Life (RUL) Prediction of Lithium Batteries Based on Multi-model Combination and Electrochemical Impedance Spectroscopy (EIS) [J]. Science Technology and Industry, 2024, 24(02), 192–199.
[18] Li Suyang, Chen Fu’an. Bidirectional LSTM Lithium Battery State of Health (SOH) Estimation Model Based on Attention Mechanism [J]. Chinese Journal of Power Sources, 2022, 46(07): 739–742.
[19] Chu Ying, Chen Yifan, Mi Yang. A CNN-LSTM Lithium Battery Health State Estimation Based on Attention Mechanism [J]. Chinese Journal of Power Sources, 2022, 46(06), 634–637+651.
[20] Yang S J, Zhang C P, Jiang J C, et al. Review on state-ofhealth of lithium-ion batteries: characterizations, estimations andapplications [J]. Journal of cleaner production, 2021, 314: 128015. DOI: 10.1016/j.jclepro.2021.128015.
[21] Yuan Zhou et al. Discussion on International Standards Related to Testing and Evaluation of Lithium Battery Energy Storage[J]. Distributed Generation & Alternative Energy Journal, 2022, 37(3) : 435–448.
[22] Song Xinghai, Zhang Xiaoqian, Liang Huishi, et al. Remaining Service Life Prediction of Lithium Batteries Based on SDAE-Transformer-ECA Network [J]. Energy Storage Science and Technology, 2023, 12(10), 3181–3190. DOI: 10.19799/j.cnki.2095-4239.2023.0369.
[23] Lars L, Collins J, Parkes J, et al. Increasing Certainty-Combination Methods for Reliable Probabilistic Wind Production Forecasts [J]. Europe’s Premier Wind Energy Event-EWEA, 2011.
[24] Moonchai S, Chutsagulprom N. Short-Term Forecasting of Renewable Energy Consumption: Augmentation of a Modified Grey Model with a Kalman Filter [J]. Applied Soft Computing, 2020, 87: 105994.
[25] Li Yixin, Hu Qiao, Liu Yu, et al. Optimized Arrangement Model and Evaluation Method of Bionic Lateral Line Detection Array for Underwater Vehicles. Journal of Xi’an Jiaotong University, 2021, 55(11), 34–45.
[26] Zhang Wufei, Li Shuaishuai, Li Jiacheng. Research on Wind Turbine Blade Icing Faults Prediction Model [J]. Agricultural Equipment and Vehicle Engineering, 2022, 60(09), 130–135.
Youyuan Peng received a Bachelor’s degree in Electrical Engineering and Automation from Hunan Institute of Engineering in 2019. He is currently pursuing a Master’s degree in Energy and Power at Hunan Institute of Engineering, with a main research focus on the intersection of new energy and deep learning.
Feng Huang received the PHD degree in Power Electronics and Power Drives from Harbin Institute of Technology, P. R. C., in 2007. He is a professor of College of electrical & information engineering, Hunan Institute of Engineering, Xiangtan, China now. His research interests include image encryption and Automated Test System. He had over ten years’ experience in teaching, research and development in projects and published over 30 scientific papers.
Xin Xie received the B.S. degree in electrical engineering from Zhengzhou University, China. He is currently pursuing a Master’s degree at Hunan Institute of Engineering. His research is wind power prediction.
Guocai Gui received the Master’s degree in Automated Testing and Control from Harbin Institute of Technology, P. R. C., in 2002. He is the Chairman of Shenzhen CarElectro Network Limited Company.
Fei Zhao received the Master’s degree in Communication Engineering from Harbin Engineering University, P. R. C., in 2005. He is an engineer of Shenzhen CarElectro Network Limited Company.
Yuliu Ou received a Bachelor’s degree in Hunan University of Science and Technology, in 2015. He is a mid-level engineer, and has successively worked in AVIC, China National Machinery International Engineering Co., Ltd., Beijing Enterprises Water Group Limited, Sany Group, Zhuzhou CRRC Research Institute, and Shenzhen CarElectro Network Limited Company. He have a deep understanding of fields such as electrical automation, industrial control, primary power design, energy storage, etc.
Hai Xu received a Bachelor’s degree in Hunan University of Science and Technology, in 2015. He is a mid-level engineer in the power system and has successively worked in Chint Electric Co., Ltd., China Southwest Geotechnical Investigation & Design Institute Co., Ltd. of China Construction, and Shenzhen CarElectro Network Limited Company. He has a certain understanding of complete sets of electrical equipment, building electrical equipment, and energy storage electrical equipment.
Distributed Generation & Alternative Energy Journal, Vol. 39_4, 831–850.
doi: 10.13052/dgaej2156-3306.3947
© 2024 River Publishers