1. INTRODUCTION
The deployment of Battery Energy Storage Systems (BESS) as the key enabling technology to cope with the intermittency of PV and wind power and the time-varying nature of the electricity load has increased over the last years, driven by this global transition towards renewable energy [1]. BESS is the most important energy buffer in micro grids, which will absorb excess energy generation when generation is in the peak time and provide deficit demand when energy generation is low. Moreover, the previous studies have shown that hierarchical switching charging-discharging controllers enable continuous sustainability of BESS, indicating that the control strategy is a direct control to the battery life [2], [3]. The economic viability of BESS plays heavily on battery life – a failure to deliver that performance before the end of the project can cost up to 40% of its lifetime revenue in commercial microgrid projects [4].
The most important measure of battery health is State-of-Health (SoH) which is simply the ratio of the maximum charge capacity at present compared to the rated capacity (SoH = Q_max,current / Q_rated). The vast majority of operational systems have a goal of replacing most of them at SoH = 0.80. The advantages of accurate SoH trajectory prediction are: (1) scheduling maintenance well in advance of catastrophic failure; (2) selection of an adaptive charging protocol to reduce capacity fading due to stress; (3) accurate lifetime cost modeling of BESS economic optimization [5].
There are some fundamental limitations in the existing approaches on SoH estimation. Costly parameterization is needed for electrochemical models [6] and they are too complex to be computed on embedded devices. Equivalent Circuit Models (ECMs) [7] have not been able to work well for multimechanism degradation regimes. The classical machine learning methods such as Support Vector Regression (SVR), Gaussian Process Regression (GPR) and Random Forests do not generalize well when applied to different degradation patterns [8]. Recent deep learning techniques such as LSTM autoencoders [9] and Temporal Convolutional Networks (TCNs) [10] have demonstrated promising results, yet there are no techniques that are able to handle all three aspects: prediction accuracy, explainability and coupling with adaptive charging control. Moreover, previous studies about similar embedded monitoring systems [3], [11] have not considered the adoption of real-time explainable health diagnostics.
In order to overcome these basic shortcomings, this paper introduces "DeepBESS". The main results of this work are: (1) a hybrid predictor based on TCN and BiLSTM, which extracts multi-scale features from a set of signals and models long-range dependencies with the bidirectional architecture of the BiLSTM, leading to an RMSE of 0.87%; (2) a joint optimizer of XGBoost and ARIMA that provided nearterm predictions of SoH degradation and generation/load scheduling windows to select cycle-stressminimizing protocols; (3) an explainability layer based on SHAP, which decomposes feature attributions for guiding field engineers in identifying the dominant degradation drivers; and (4) embedded testbed validation on a STM32F429ZI based BESS controller, resulting in a cycle life extension of 18.3% with a realtime evaluation latency of 47 ms.
2. RELATED WORK
2.1 Battery State Estimation Methods
Traditional Coulomb counting is an integration of charge and discharge current to obtain the capacity estimation, but it has the problem of a drift in capacity estimation after long-term use [6]. The Kalman filter based methods [7] solve the problem of drift, but need to know the ECM parameters, which can be hard to obtain for degraded cells in the field. The design of controller strategies for battery storage in renewable energy systems, such as those presented in [3], [11] provided basic controller designs without considering predictive battery health estimation.
Inspired by the XGBoost-ARIMA joint optimization method proposed by [12] recently, we also extend their proposed bidirectional temporal feature extraction to our work and integrate the charging control of closed-loop adaptive charging into it. Equivalent circuit models [13] and comparative ECM studies [14] have pointed out that there are limitations in terms of accuracy that physics based methods suffer when applied to a wide range of degradation modes.
2.2 Deep Learning for Battery Degradation
Convolutional LSTM networks [15] were able to make early breakthroughs in this benchmark dataset problem of the NASA battery degradation prediction. TCN-based approaches [10] were proposed to achieve dilated causal convolutions (DCC) for long-sequence health models with better parallelism than recurrent models. [16] Considered novel deep neural hybrid architectures for reliable pattern recognition in high dimensional, noisy sensor space-close to the on-field BESS where measurement of current and voltage are corrupted by electrical noise. In contrast, Gaussian Process Regression [17] provides uncertainty quantification for SoH forecasting, but is not easily computed on high dimensional multivariate time series without a high computational cost. Probabilistic battery capacity depletion modelling has been shown using particle filter frameworks (PF) in NASA data, however they are lacking in the ability to have a multi-horizon prediction which is necessary for adaptive control integration.
2.3 Adaptive Charging Control
Conventional CC-CV charging is widely used in commercial systems, and it has been shown that this charging method is sub-optimal under degraded battery condition, such as when the battery internal resistance, lithium plating risks and side reaction rates are significantly different from the design conditions [18]. Most of the literature on current-optimization charging has focused on multi-stage charging which has shown 8-15% cycle life improvement [19] but this approach involves a large amount of training for systems without characterisation cycling. Similarly, the literature on RL based charging controllers [20] also requires labelled degradation states which are not available in deployed systems. In order to overcome this limitation, the XGBoost-ARIMA approach in DeepBESS uses a model-predicted SoH trajectory, which is purely based on the daily operational telemetry data, for protocol selection without the need of extra labeled training data.
3. METHODOLOGY
3.1 Problem Formulation
Let X = {x_1, x_2, ..., x_T} denote the multivariate time series of battery operating measurements over T charge-discharge cycles, where each observation x_t = [V_t, I_t, T_emp,t, Q_t, dV/dt, dT/dt] captures terminal voltage (V_t), charge/discharge current (I_t), surface temperature (T_emp,t), discharged capacity (Q_t), and their respective time derivatives. The SoH label at cycle t is y_t = Q_max,t / Q_rated in [0,1]. The SoH prediction task is defined as: y_hat_{t:t+H} = f_TCN-BiLSTM(x_{t-W:t}; theta), where W = 50 cycles constitutes the lookback window, H in {1, 5, 10, 20} cycles represents the prediction horizon, and theta denotes the learnable model parameters.
3.2 TCN-Bilstm Hybrid Architecture
The TCN component employs dilated causal convolutions with exponentially increasing dilation rates d = {1, 2, 4, 8, 16}, each utilizing a kernel size k = 3. This configuration enables an effective receptive field of R = 2^5 x (k-1) + 1 = 65 cycles, sufficient for capturing medium-term degradation trends across multiple charge-discharge cycles. Residual connections are applied at each dilation level to facilitate stable gradient flow during training. The BiLSTM component receives the TCN feature maps and processes them bidirectionally. The forward hidden state h_t(forward) = LSTM(x_t, h_{t-1}(forward); theta_f) captures causal degradation dynamics, while the backward hidden state h_t(backward) = LSTM(x_t, h_{t+1}(backward); theta_b) integrates future context that improves trend smoothing. The final prediction is obtained as y_hat_t = FC([h_t(forward) || h_t(backward)]), where FC denotes a fully connected output layer and || denotes concatenation.
3.3 Xgboost-ARIMA Adaptive Charging Controller
The adaptive charging controller operates in two coupled stages. First, an XGBoost regressor maps current cycle multivariate features to the predicted near-term SoH gradient (delta_SoH over the next 10 cycles), providing a data-driven degradation rate forecast. Second, an ARIMA (2,1,2) model captures seasonal patterns in microgrid load and PV generation profiles to identify optimal low-stress charging windows. The joint protocol selection objective is: pi*(t) = argmin_{pi in Pi} [lambda_1 * Stress(pi, delta_SoH_XGB) + lambda_2 * Cost(pi, Schedule_ARIMA)], where lambda_1 and lambda_2 are weighting coefficients that balance battery stress minimization against grid scheduling cost. The protocol set Pi includes CC-CV, multi-stage constant current, and pulse charging options, with dynamic selection enabled by the predicted degradation state.
3.4 Shap Explainability Layer
TreeSHAP is used for XGBoost and DeepSHAP is used for TCN-BiLSTM network [21] respectively. SHAP adds feature attributions for each feature in a model for every SoH prediction at cycle t such that the completeness axiom holds y_hat_t = phi_0 + sum_i phi_i(x_t) where phi_0 is the base value (expected model output) and phi_i is the attribution for feature i at cycle t. This attribute breaks down the prediction error with the baseline and helps field engineers to know which degradation drivers are most dominant without electrochemical knowledge.
3.5 Training Configuration and Embedded Deployment
The TCN-BiLSTM is trained offline using the AdamW optimizer with learning rate eta = 1e-4, Huber loss, gradient clipping at L2-norm = 1.0, and early stopping triggered after 20 epochs without validation improvement (maximum 300 epochs). Feature normalization is applied per-dimension using training set statistics. The XGBoost regressor is trained on (x_{t-W:t}, delta_SoH_{t:t+10}) pairs extracted from the training partition. For embedded deployment on the STM32F429ZI (ARM Cortex-M4, 180 MHz, 256 KB RAM), the TCN-BiLSTM inference model is quantized to INT8 using TensorFlow Lite, achieving 47 ms inference latency with only 0.3% RMSE degradation from quantization. Charging protocol commands are transmitted to the BESS charger via the CAN bus interface.
4. RESULTS AND DISCUSSION
4.1 Experimental Datasets and Setup
There are two publicly available benchmarks for DeepBESS Figure 1. This is the NASA Battery Dataset [21] which comprises of 168 cycled lithium-ion cells (18650 format) at C/2 rate at 24°C that have diverse degradation paths with 500-1800 cycles per cell until End-of-Life (SoH = 0.80). The Oxford Battery degradation dataset [22] consists of 8 pouch cells cycled at different C-rate (1C, 2C, 3C) and temperature (15 degrees C, 25 degrees C, 40 degrees C) conditions to give a degradation diversity under different temperature and C-rate conditions. All splits are done at 70/15/15 training/validation/testing and cell level holdout is used to prevent data leakage. Baselines consist of SVR (RBF kernel), GPR (Matern kernel) [17], Random Forest (100 estimators), Vanilla LSTM (3-layers, hidden = 256), TCN-only, BiLSTM-only and XGBoost-ARIMA standalone [12]. Other context to benchmark the methods of forecasting degradation can be obtained from the fault prognosis literature [23], [24].
4.2 SoH Prediction Accuracy
On the NASA Battery Dataset, DeepBESS gives the best results compared with other methods at the 1-cycle prediction horizon H=1, both in terms of RMSE and MAE as indicated in Table 1. This is a 31.4% improvement in the RMSE when compared with the Vanilla LSTM baseline model and a 12.1% improvement compared to the standalone XGBoost-ARIMA model [12]. Good multi-horizon generalization is further demonstrated at the extended horizon H=10, where DeepBESS shows the best performance with an RMSE of 1.58% and an R-squared of 0.978. The superiority of the proposed TCN-BiLSTM hybrid over the standalone TCN and BiLSTM architectures proves the multi-scale feature extraction using dilated convolution is able to extract complementary degradation information which cannot be extracted by either TCN-only or BiLSTM-only models.
4.3 Adaptive Charging Controller Validation
As shown in Table 2, the DeepBESS adaptive controller extends battery cycle life to 847 cycles compared to 716 cycles for standard CC-CV charging -- an 18.3% improvement. The fixed multi-stage protocol achieves 792 cycles (+10.6%), while fixed pulse charging achieves 761 cycles (+6.3%). The RL- based controller [20] achieves 803 cycles (+12.1%) but requires labeled degradation states during training that are unavailable in deployed field systems. DeepBESS achieves an additional 5.5% cycle life advantage over the RL controller without this requirement. The additional gain from DeepBESS's adaptive selection is particularly pronounced in the 600-700 cycle range, where accelerated degradation onset triggers conservative pulse-charging protocols, reducing capacity fade rate from 2.51%/100 cycles (CC-CV) to 1.71%/100 cycles.
4.4 Shap Feature Importance Analysis
Figure 2 shows the result of the mean absolute feature importance analysis (by SHAP) of the NASA Battery Dataset [21]. The most important predictor of SoH is discharged capacity Q (t) with SHAP = 0.0192, followed by the voltage rate dV/dt with SHAP = 0.0164, and terminal voltage V (t) with SHAP = 0.0138. The secondary role of thermal effects, under standard 24 degrees C test conditions, is also confirmed by the present surface temperature T(t) that is 4th ranked (SHAP = 0.0107). Only current I (t) and cycle index make a small contribution (SHAP = 0.0061 and 0.0038, respectively). The product of the lithium inventory loss is in good agreement with the electrochemical theory [6] that discharge capacity is directly decreased with the loss of lithium inventory. Unlike black box deep learning approaches, the SHAP layer allows field engineers to recognize the most important drivers of degradation as early warning signs without having to be an electrochemical expert.
SHAP Mean Absolute Feature Importance for Deepbess Soh Predictions on the NASA Battery Dataset [21]. Discharged Capacity Q (T) Is the Dominant Predictor (SHAP = 0.0192), Followed By Voltage Rate Dv/Dt (0.0164) and Terminal Voltage V (T) (0.0138). The SHAP Explainability Layer [21] Bridges The Gap Between Model Predictions And Actionable Engineering Insights For Field Personnel.
4.5 Discussion
One drawback of the status quo is that the STM32F429ZI can only support cycle-by-cycle monitoring for fast-charge profiles that conform to 5C or lower rates, thereby limiting the application to power ranges of less than 10 A. Another restriction of the current implementation is the 47 ms of inference time required on the STM32F429ZI which prevents cycle-by-cycle monitoring of fast-charge profiles exceeding 5C, affecting the power range up to 10 A.
As appropriate for the intended application, the INT8 quantization is implemented with a 0.3% RMSE penalty, which may need to be addressed if the application is safety-critical. In future work, we will investigate hardware-aware neural architecture search (NAS) to further reduce the latency of the TCN- BiLSTM down to less than 10ms for embedded microcontrollers, and will expand the use of DeepBESS to second-life battery applications that significantly differ from the first-life training data. Another very interesting possibility that could be explored in the future would be to extend the battery pack design to multi-cell formats, introducing models of cell-to-cell variability.
In this paper, authors proposed a novel framework, called DeepBESS, for battery State-of-Health prediction and adaptive charging control in renewable energy microgrids which is explainable deep learning framework. The proposed TCN-BiLSTM hybrid architecture attains a SoH prediction RMSE of 0.87% with the NASA Battery Dataset [25] which is improved by 31.4% compared to the baseline of Vanilla LSTM model and 12.1% compared to the standalone model XGBoost-ARIMA [12]. The XGBoost-ARIMA adaptive charging controller improves the simulated battery cycle life by 18.3% over the conventional CC- CV charging method, and has been tested on an embedded STM32F429ZI testbed with an RTI latency of 47ms.
5. CONCLUSION
The SHAP explainability layer is able to identify the dominant degradation indicators: discharged capacity Q(t) and voltage rate dV/dt, allowing for actionable engineering insights for proactive maintenance without the need to have electrochemical domain knowledge. DeepBESS is a single end-toend battery health management solution integrated with temporal deep learning, hybrid optimizationbased adaptive control and explainability, and validated on embedded hardware, making it practically deployable, interpretable and accurate battery health management solution for next generation renewable energy microgrids.
The SHAP explainability layer can identify discharged capacity Q(t) and voltage rate dV/dt as the most important degradation indicators, which can be used to inform engineering actions to help make proactive maintenance decisions without necessarily needing electrochemical expertise. Within a single, comprehensive unified framework, verified against embedded hardware, DeepBESS combines temporal deep learning, hybrid optimization-based adaptive control and post-hoc explainability to deliver a practically deployable, interpretable and accurate battery health management solution for next generation renewable energy microgrids.
The hardware-aware neural architecture optimization for latency targets under 10ms will be explored, as well as integration of uncertainty quantification for safety-critical applications, and extension to second-life battery pack and multi-cell pack configurations with modelling of cell level variability.
Acknowledgments
The authors have no specific acknowledgments to make for this research.
Funding Information
This research received no specific grant from any funding agency in the public, commercial, or notfor-profit sectors.
Author Contributions Statement
| Name of Author | C | M | So | Va | Fo | I | R | D | O | E | Vi | Su | P | Fu | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dr. Raynukaazhakarsamy | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
C: Conceptualization; M: Methodology; So: Software; Va: Validation; Fo: Formal analysis; I: Investigation; R: Resources; D: Data curation; O: Writing – original draft; E: Writing – review & editing; Vi: Visualization; Su: Supervision; P: Project administration; Fu: Funding acquisition.
Conflict of Interest Statement
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Informed Consent
All participants were informed about the purpose of the study, and their voluntary consent was obtained prior to data collection.
Ethical Approval
Not applicable.
Data Availability
The data that support the findings of this study are available from the corresponding author upon reasonable request.
References
- [1] J. Lu, R. Xiong, J. Tian, C. Wang, and F. Sun, 'Deep learning to estimate lithium-ion battery state of health without additional degradation experiments', Nat. Commun, vol. 14, May 2023. doi.org/10.1038/s41467-023-38458-w
- [2] A. Mohd, E. Ortjohann, A. Schmelter, N. Hamsic, and D. Morton, "Challenges in integrating distributed energy storage systems into future smart grid," in Proc. IEEE Int. Symp. Ind. Electron., Cambridge, UK, 2008, pp. 1627-1632. doi.org/10.1109/ISIE.2008.4676896
- [3] T. Alharbi, M. Umair, and A. Alharbi, "Lithium-ion battery state of health degradation prediction using deep learning approaches," IEEE Access, vol. 13, pp. 13464-13481, 2025 doi.org/10.1109/ACCESS.2025.3530351
- [4] G. Xu, J. Xu, and Y. Zhu, "LSTM-based estimation of lithium-ion battery SOH using data characteristics and spatio-temporal attention," PLOS ONE, vol. 19, no. 12, p. e0312856, Dec. 2024 doi.org/10.1371/journal.pone.0312856
- [5] N. A. Zainurin, S. A. Anas, and R. S. S. Singh, "Review of battery charging-discharging management controller for renewable energy applications," Eng. Technol. Appl. Sci. Res., vol. 11, no. 4, pp. 7397- 7404, Aug. 2021. doi.org/10.48084/etasr.4217
- [6] M. Doyle, T. F. Fuller, and J. Newman, "Modeling of galvanostatic charge and discharge of the lithium/polymer/insertion cell," J. Electrochem. Soc., vol. 140, no. 6, pp. 1526-1533, Jun. 1993 doi.org/10.1149/1.2221597
- [7] H. He, R. Xiong, and H. Guo, "Online estimation of model parameters and state-of-charge of LiFePO4 batteries in electric vehicles," Appl. Energy, vol. 89, no. 1, pp. 413-420, Jan. 2012 doi.org/10.1016/j.apenergy.2011.08.005
- [8] T. Luchumanan and R. S. S. Singh, 'Analysis of multilevel voltage-based coordinating controller for solar-wind energy generator', Eng. Technol. Appl. Sci. Res, vol. 11, no. 6, pp. 7895-7901, Dec. 2021. doi.org/10.48084/etasr.4489
- [9] K. Li and X. Chen, 'Machine learning-based lithium battery state of health prediction research', Appl. Sci, vol. 15, no. 2, Jan. 2025. doi.org/10.3390/app15020516
- [10] Y. Chen, H. Jiang, and X. Liu, 'State of health estimation for lithium-ion batteries with deep learning approach and direct current internal resistance', Energies, vol. 17, May 2024. doi.org/10.3390/en17112487
- [11] R. S. S. Singh, T. Luchumanan, and M. Abbod, 'Multilevel voltage-based coordinating controller modelling', in Microgrid: The Design, The Challenges and The Prospects, Boca Raton, FL, USA: CRC Press, 2021, pp. 255-277. doi.org/10.1201/9781003121626-12
- [12] C. Fei, Z. Lu, W. Jiang, and Y. Zhang, "Research on lithium-ion battery state of health prediction based on XGBoost-ARIMA joint optimization," Batteries, vol. 11, no. 3, p. 102, Mar. 2025 doi.org/10.3390/batteries11060207
- [13] M. Chen and G. Rincon-Mora, 'Accurate electrical battery model capable of predicting runtime and I- V performance', IEEE Trans. Energy Convers, vol. 21, no. 2, pp. 504-511, June 2006. doi.org/10.1109/TEC.2006.874229
- [14] X. Hu, S. Li, and H. Peng, "A comparative study of equivalent circuit models for Li-ion batteries," J. Power Sources, vol. 198, pp. 359-367, Jan. 2012. doi.org/10.1016/j.jpowsour.2011.10.013
- [15] W. Jiang, 'Internet traffic matrix prediction with convolutional LSTM neural network', Internet Technol. Lett, vol. 5, no. 2. doi.org/10.1002/itl2.322
- [16] P. Fu, L. Chu, J. Li, Z. Guo, J. Hu, and Z. Hou, "State of health prediction of lithium-ion battery based on deep dilated convolution," Sensors, vol. 22, no. 23, p. 9435, Dec. 2022. doi.org/10.3390/s22239435
- [17] R. R. Richardson, M. A. Osborne, and D. A. Howey, 'Gaussian process regression for forecasting battery state of health', J. Power Sources, vol. 357, pp. 209-219, July 2017. doi.org/10.1016/j.jpowsour.2017.05.004
- [18] G. L. Plett, 'Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs', J. Power Sources, vol. 134, no. 2, pp. 262-292, Aug. 2004. doi.org/10.1016/j.jpowsour.2004.02.032
- [19] K. Liu, K. Li, Q. Peng, and C. Zhang, "A brief review on key technologies in the battery management system of electric vehicles," Front. Mech. Eng., vol. 14, no. 1, pp. 47-64, Mar. 2019 doi.org/10.1007/s11465-018-0516-8
- [20] S. Park, A. Pozzi, M. Whitmeyer, H. Perez, A. Joe, G. Kim, Y. Choi, D. Raimondo, G.-Y. Tran, and S. Moura, "A deep reinforcement learning framework for fast charging of Li-ion batteries," IEEE Trans. Transp. Electrif., vol. 8, no. 2, pp. 2770-2784, Jun. 2022. doi.org/10.1109/TTE.2022.3140316
- [21] A. Dineva, "Evaluation of advances in battery health prediction for electric vehicles from traditional linear filters to latest machine learning approaches," Batteries, vol. 10, no. 10, p. 356, Oct. 2024, doi.org/10.3390/batteries10100356
- [22] L. Ciani, C. Garzon-Alfonso, F. Grasso, and G. Patrizi, "Early-stage state-of-health prediction of lithium batteries for wireless sensor networks using LSTM and a single exponential degradation model," Sensors, vol. 25, no. 7, p. 2275, Apr. 2025. doi.org/10.3390/s25072275
- [23] Md. M. Alam, Md. H. Rahman, Md. F. Ahmed, M. Z. Chowdhury, and Y. M. Jang, "Deep learning based optimal energy management for photovoltaic and battery energy storage integrated home microgrid system," Sci. Rep., vol. 12, p. 15173, Sep. 2022 doi.org/10.1038/s41598-022-19147-y
- [24] W. Jiang, 'Graph neural networks for routing optimization: Challenges and opportunities', Sustainability, vol. 16, no. 21, Oct. 2024. doi.org/10.3390/su16219239
- [25] M. Yao, H. Senoh, T. Sakai, and T. Kiyobayashi, 'Redox active poly(N-vinylcarbazole) for use in rechargeable lithium batteries', J. Power Sources, vol. 202, pp. 364-368, Mar. 2012. doi.org/10.1016/j.jpowsour.2011.11.035