A Novel Real-Time Battery State Estimation Using Data-Driven Prognostics and Health Management
Abstract
1. Introduction
2. Research Objectives and Contributions
- Propose a novel data-driven PHM-based method for battery State-of-Charge (SOC) estimation, demonstrating enhanced model significance relative to existing state-of-the-art approaches.
- Test the selected models on a real-world dataset to verify the model’s accuracy and significance, validate the proposed framework and measure the overall system classification.
- Provide, with the selected PHM model, a real-time inference for the system’s health condition monitoring as well as multi-step ahead forecasting for long-term predictions.
- A novel real-time PHM methodology based on bidirectional LSTM for battery system state monitoring and control is proposed.
- A comprehensive dataflow is established including offline and online processing that can be extended for other nonlinear systems.
- A noise reduction strategy is implemented, which can also be deployed in real-time to cope with noisy measurements’ systems.
- The data-driven PHM SOC estimation consistently outperforms the state-of-the-art Kalman filters throughout different conditions, demonstrating its accuracy and usability.
3. Battery SOC Model-Driven State-of-the-Art Method
3.1. The Extended Kalman Filter
3.2. The Unscented Kalman Filter
4. A Novel Battery SoC Estimation Using a Data-Driven PHM Approach
- (a)
- Measurement noise handling
- (b)
- Additive features attribution
- (c)
- Automated model’s hyperparameter optimization
- (d)
- Model cross-validation

4.1. Handling Noisy Measurements
4.2. Additive Features Attribution
4.3. Automated Hyperparameters Optimization
4.4. Cross-Validation for Model Selection
4.5. Multivariate Multi-Step Bidirectional LSTM
5. Experimental Setup and Methodology
5.1. Battery Model Estimation
5.2. Battery SOC Estimation
- Coulomb-counting method according to (1),
- Extended Kalman Filter (EKF) method as elucidated in Section 3.1,
- Unscented Kalman Filter (UKF) method as elucidated in Section 3.2,
- Data-driven PHM, as described in Section 4.
5.3. Hardware and Software
6. Results and Analysis
6.1. Battery Parameter Estimation
6.2. Noise Handling
6.3. Battery SOC Estimation
7. Real-Time Inference
- Raspberry Pi 4 (RP4): using a Broadcom BCM2711 SoC with a 1.5 GHz 64-bit quad-core ARM Cortex-A72 processor, with 1 MB shared L2 cache.
- Ultra96-V2 (U96): running a quad-core 1.5 GHz ARM Cortex-A53, with 1 MB L2 cache.
8. Conclusions and Future Work
8.1. Some Limitations of the Proposed Method
- Data-driven methods rely heavily on the availability of training data. These approaches depend on historical system data (e.g., training datasets) to identify correlations, establish patterns, and analyze trends that can lead to failure predictions [50].
- A recursive neural network requires a laborious and computational intensive training process, with large amounts of data required from the system-of-interest.
- The trained model is typically tailored to a specific system. Therefore, if the system dynamics, internal states, or input–output data profiles change, the model will likely need to be retrained to adapt to the new conditions [51].
8.2. Proposed Work Continuation
- Implement the PHM framework on other Lithium-ion battery chemistries, such as LFP (Lithium Iron Phosphate) and NMC (Manganese Cobalt Oxide), as well as different form-factors, such as VL6P, for instance.
- Expand the use of the PHM framework for real-time forecasting models, using multi-steps ahead implementation, to allow future predictions beyond , which are important aspects for critical safety applications.
- Advance the whole system design to evolve towards the full PHM capability and remaining useful life (RUL) determination for embedded systems.
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| A | Ampère |
| AI | Artificial Intelligence |
| BMS | Battery Management System |
| BPTT | Back-propagation Through Time |
| CC | Coulomb-Counting |
| CV | Cross-Validation |
| ECM | Equivalent Circuit Model |
| EIM | Electrochemical Impedance Model |
| EIS | Electrochemical Impedance Spectroscopy |
| EKF | Extended Kalman Filter |
| EM | Electrochemical Model |
| EV | Electric Vehicle |
| EWMA | Exponentially Weighted Moving Average |
| EWMS | Exponentially Weighted Moving Standard Deviation |
| FPGA | Field Programmable Gate Arrays |
| GPU | Graphical Processing Unit |
| HWFET | EPA Highway Fuel Economy Test Cycle |
| HPO | Hyperparameter Optimization |
| HPPC | Hybrid Power Pulse Characterisation |
| KF | Kalman Filter |
| LA92 | California Unified Driving Schedule |
| LSTM | Long Short-Term Memory |
| MAE | Mean Absolute Error |
| MAPE | Mean Absolute Percentage Error |
| MASE | Mean Absolute Scaled Error |
| MaxAE | Max Absolute Error |
| ML | Machine Learning |
| MSA | Multi-Step Ahead |
| MPSoC | Multi-Processor System-on-Chip |
| MSE | Mean Squared Error |
| NCA | Nickel Cobalt Aluminum (oxide) |
| OCV | Open Circuit Voltage (V) |
| PHM | Prognostics and Health Management |
| RMSE | Root Mean Squared Error |
| RNN | Recursive Neural Network |
| RUL | Remaining Useful Life |
| SHAP | SHapley Additive exPlanation |
| SOC | State of Charge |
| SoC | System-on-Chip |
| SPKF | Sigma Point Kalman Filter |
| SSE | Sum-squared error |
| UDDS | Urban Dynamometer Driving Schedule |
| UKF | Unscented Kalman Filter |
| US06 | Supplemental Federal Test Procedure driving schedule |
| V | Voltage |
| xAI | Explainable Artificial Intelligence |
References
- Zhao, J.; Feng, X.; Pang, Q.; Wang, J.; Lian, Y.; Ouyang, M.; Burke, A.F. Battery prognostics and health management from a machine learning perspective. J. Power Sources 2023, 581, 233474. [Google Scholar] [CrossRef]
- Hannan, M.A.; How, D.N.T.; Lipu, M.S.H.; Mansor, M.; Ker, P.J.; Dong, Z.Y.; Sahari, K.S.M.; Tiong, S.K.; Muttaqi, K.M.; Mahlia, T.M.I.; et al. Deep learning approach towards accurate state of charge estimation for lithium-ion batteries using self-supervised transformer model. Sci. Rep. 2021, 11, 19541. [Google Scholar] [CrossRef]
- How, D.N.T.; Hannan, M.A.; Hossain Lipu, M.S.; Ker, P.J. State of Charge Estimation for Lithium-Ion Batteries Using Model-Based and Data-Driven Methods: A Review. IEEE Access 2019, 7, 136116–136136. [Google Scholar] [CrossRef]
- Liu, X.; Fan, X.; Wang, L.; Wu, J. State of Charge Estimation for Power Battery Base on Improved Particle Filter. World Electr. Veh. J. 2023, 14, 8. [Google Scholar] [CrossRef]
- Zhang, S.; Wan, Y.; Ding, J.; Da, Y. State of Charge (SOC) Estimation Based on Extended Exponential Weighted Moving Average H-infinite Filtering. Energies 2021, 14, 1655. [Google Scholar] [CrossRef]
- Chen, Q.; Jiang, J.; Ruan, H.; Zhang, C. Simply designed and universal sliding mode observer for the SOC estimation of lithium-ion batteries. IET Power Electron. 2017, 10, 697–705. [Google Scholar] [CrossRef]
- Dini, P.; Colicelli, A.; Saponara, S. Review on Modeling and SOC/SOH Estimation of Batteries for Automotive Applications. Batteries 2024, 10, 34. [Google Scholar] [CrossRef]
- Campestrini, C. Practical Feasibility of Kalman Filters for the State Estimation of Lithium-Ion Batteries. Ph.D. Thesis, Technische Universität München, München, Germany, 2018. [Google Scholar]
- Wu, X.; Li, X.; Du, J. State of Charge Estimation of Lithium-Ion Batteries Over Wide Temperature Range Using Unscented Kalman Filter. IEEE Access 2018, 6, 41993–42003. [Google Scholar] [CrossRef]
- Yang, F.; Song, X.; Xu, F.; Tsui, K.L. State-of-Charge Estimation of Lithium-Ion Batteries via Long Short-Term Memory Network. IEEE Access 2019, 7, 53792–53799. [Google Scholar] [CrossRef]
- Chemali, E.; Kollmeyer, P.J.; Preindl, M.; Ahmed, R.; Emadi, A. Long Short-Term Memory Networks for Accurate State-of-Charge Estimation of Li-ion Batteries. IEEE Trans. Ind. Electron. 2018, 65, 6730–6739. [Google Scholar] [CrossRef]
- Kirchgässner, W.; Wallscheid, O.; Böcker, J. Empirical Evaluation of Exponentially Weighted Moving Averages for Simple Linear Thermal Modeling of Permanent Magnet Synchronous Machines. In Proceedings of the 2019 IEEE 28th International Symposium on Industrial Electronics (ISIE), Vancouver, BC, Canada, 12–14 June 2019; pp. 318–323. [Google Scholar] [CrossRef]
- Rozemberczki, B.; Watson, L.; Bayer, P.; Yang, H.T.; Kiss, O.; Nilsson, S.; Sarkar, R. The Shapley Value in Machine Learning. In Proceedings of the 31st International Joint Conference on Artificial Intelligence and the 25th European Conference on Artificial Intelligence, Vienna, Austria, 23–29 July 2022. [Google Scholar]
- Pimentel, J.; McEwan, A.A.; Yu, H.Q. A Novel Real-Time Framework for Embedded Systems Health Monitoring. In Proceedings of the 2023 26th Euromicro Conference on Digital System Design (DSD), Durres, Albania, 6–8 September 2023; pp. 309–316. [Google Scholar] [CrossRef]
- Arlot, S.; Celisse, A. A survey of cross-validation procedures for model selection. Stat. Surv. 2010, 4, 40–79. [Google Scholar] [CrossRef]
- Chen, Y.; Huang, D.; Zhu, Q.; Liu, W.; Liu, C.; Xiong, N. A New State of Charge Estimation Algorithm for Lithium-Ion Batteries Based on the Fractional Unscented Kalman Filter. Energies 2017, 10, 1313. [Google Scholar] [CrossRef]
- Rajanna, B.V.; Kumar, M. Comparison of one and two time constant models for lithium ion battery. Int. J. Electr. Comput. Eng. 2020, 10, 670–680. [Google Scholar] [CrossRef]
- Plett, G.L. Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 1. Background. J. Power Sources 2004, 134, 252–261. [Google Scholar] [CrossRef]
- Galushkin, N.; Yazvinskaya, N.; Galushkin, D. Nonlinear Structural Model of the Battery. Int. J. Electrochem. Sci. 2014, 9, 6305–6327. [Google Scholar] [CrossRef]
- Plett, G.L. Sigma-point Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 1: Introduction and state estimation. J. Power Sources 2006, 161, 1356–1368. [Google Scholar] [CrossRef]
- Wan, E.; Van Der Merwe, R. The unscented Kalman filter for nonlinear estimation. In Proceedings of the IEEE 2000 Adaptive Systems for Signal Processing, Communications, and Control Symposium (Cat. No.00EX373), Lake Louise, AB, Canada, 4 October 2000; pp. 153–158. [Google Scholar] [CrossRef]
- Santos, R.M.S.; Alves, C.L.G.d.S.; Macedo, E.C.T.; Villanueva, J.M.M.; Hartmann, L.V. Estimation of lithium-ion battery model parameters using experimental data. In Proceedings of the 2017 2nd International Symposium on Instrumentation Systems, Circuits and Transducers (INSCIT), Fortaleza, Brazil, 28 August–1 September 2017; pp. 1–6. [Google Scholar] [CrossRef]
- Li, J.; Cheng, J.h.; Shi, J.y.; Huang, F. Brief Introduction of Back Propagation (BP) Neural Network Algorithm and Its Improvement. In Advances in Computer Science and Information Engineering; Jin, D., Lin, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 553–558. [Google Scholar]
- Pimentel, J.; McEwan, A.A.; Yu, H.Q. Towards a Real-Time Smart Prognostics and Health Management (PHM) of Safety Critical Embedded Systems. In Proceedings of the 2022 25th Euromicro Conference on Digital System Design (DSD), Maspalomas, Spain, 31 August–2 September 2022; pp. 696–703. [Google Scholar] [CrossRef]
- Kirchgässner, W.; Wallscheid, O.; Böcker, J. Estimating Electric Motor Temperatures With Deep Residual Machine Learning. IEEE Trans. Power Electron. 2021, 36, 7480–7488. [Google Scholar] [CrossRef]
- Daniel, K.; Jessica, H.; Enrico, B. A Survey of Domain Knowledge Elicitation in Applied Machine Learning. Multimodal Technol. Interact. 2021, 5, 73. [Google Scholar] [CrossRef]
- Forke, C.M.; Tropmann-Frick, M. Feature Engineering Techniques and Spatio-Temporal Data Processing. Datenbank-Spektrum 2021, 21, 237. [Google Scholar] [CrossRef]
- Nor, A.K.B.M.; Pedapait, S.R.; Muhammad, M. Explainable AI (XAI) for PHM of Industrial Asset: A State-of-the-Art, PRISMA-Compliant Systematic Review. arXiv 2021, arXiv:2107.03869. [Google Scholar]
- Wu, J.; Chen, X.Y.; Zhang, H.; Xiong, L.D.; Lei, H.; Deng, S.H. Hyperparameter optimization for machine learning models based on Bayesian optimization. J. Electron. Sci. Technol. 2019, 17, 26–40. [Google Scholar]
- Yu, T.; Zhu, H. Hyper-parameter optimization: A review of algorithms and applications. arXiv 2020, arXiv:2003.05689. [Google Scholar]
- Bergstra, J.; Bengio, Y. Random search for hyper-parameter optimization. J. Mach. Learn. Res. 2012, 13, 281–305. [Google Scholar]
- Tougui, I.; Jilbab, A.; Mhamdi, J.E. Impact of the Choice of Cross-Validation Techniques on the Results of Machine Learning-Based Diagnostic Applications. Healthc. Inform. Res. 2021, 27, 189–199. [Google Scholar] [CrossRef] [PubMed]
- Staudemeyer, R.C.; Morris, E.R. Understanding LSTM—A tutorial into Long Short-Term Memory Recurrent Neural Networks. arXiv 2019, arXiv:1909.09586. [Google Scholar]
- Gonzalez, J.; Yu, W. Non-linear system modeling using LSTM neural networks. IFAC-PapersOnLine 2018, 51, 485–489. [Google Scholar] [CrossRef]
- López, E.; Valle, C.; Allende, H.; Gil, E.; Madsen, H. Wind Power Forecasting Based on Echo State Networks and Long Short-Term Memory. Energies 2018, 11, 526. [Google Scholar] [CrossRef]
- Pimentel, J.; McEwan, A.A.; Yu, H.Q. Multi-Step Ahead Battery SOC Estimation Using Data-Driven Prognostics and Health Management. In Proceedings of the 2024 13th International Conference on Software and Information Engineering, Derby, UK, 2–4 December 2024; ICSIE ’24. pp. 104–109. [Google Scholar] [CrossRef]
- Cui, Z.; Ke, R.; Pu, Z.; Wang, Y. Deep Bidirectional and Unidirectional LSTM Recurrent Neural Network for Network-wide Traffic Speed Prediction. arXiv 2019, arXiv:1801.02143. [Google Scholar]
- Hong, C.W.; Lee, C.; Lee, K.; Ko, M.S.; Kim, D.E.; Hur, K. Remaining Useful Life Prognosis for Turbofan Engine Using Explainable Deep Neural Networks with Dimensionality Reduction. Sensors 2020, 20, 6626. [Google Scholar] [CrossRef]
- Graves, A.; Jaitly, N.; Mohamed, A.r. Hybrid speech recognition with Deep Bidirectional LSTM. In Proceedings of the 2013 IEEE Workshop on Automatic Speech Recognition and Understanding, Olomouc, Czech Republic, 8–12 December 2013; pp. 273–278. [Google Scholar] [CrossRef]
- dos Reis, G.; Strange, C.; Yadav, M.; Li, S. Lithium-ion battery data and where to find it. Energy AI 2021, 5, 100081. [Google Scholar] [CrossRef]
- Kollmeyer, P. Panasonic 18650PF Li-Ion Battery Data; McMaster University: Hamilton, ON, Canada, 2018. [Google Scholar] [CrossRef]
- Li, C.; Xiao, F.; Fan, Y. An Approach to State of Charge Estimation of Lithium-Ion Batteries Based on Recurrent Neural Networks with Gated Recurrent Unit. Energies 2019, 12, 1592. [Google Scholar] [CrossRef]
- Wong, K.L.; Bosello, M.; Tse, R.; Falcomer, C.; Rossi, C.; Pau, G. Li-Ion Batteries State-of-Charge Estimation Using Deep LSTM at Various Battery Specifications and Discharge Cycles. In Proceedings of the Conference on Information Technology for Social Good, New York, NY, USA, 26–28 May 2021; GoodIT ’21. pp. 85–90. [Google Scholar] [CrossRef]
- Singh, S.; Kulshrestha, M.J.; Rani, N.; Kumar, K.; Sharma, C.; Aswal, D. An overview of vehicular emission standards. Mapan 2023, 38, 241–263. [Google Scholar] [CrossRef]
- Monsalve, G.; Cardenas, A.; Martinez, W. Analysis of two Equivalent Circuit Models for State of Charge Estimation using Kalman Filters. In Proceedings of the 2022 IEEE 31st International Symposium on Industrial Electronics (ISIE), Anchorage, AK, USA, 1–3 June 2022; pp. 347–353. [Google Scholar] [CrossRef]
- The MathWorks Inc. Optimization Toolbox Version: R2023b; The MathWorks Inc.: Natick, MA, USA, 2023. [Google Scholar]
- Chollet, F. Keras. 2015. Available online: https://github.com/fchollet/keras (accessed on 15 May 2024).
- Pimentel, J.; Vladimirova, T. Towards MPSoC Enabled Subsea Embedded Systems for Fault Tolerant Applications. In Proceedings of the 2019 NASA/ESA Conference on Adaptive Hardware and Systems (AHS), Colchester, UK, 22–24 July 2019; pp. 1–8. [Google Scholar] [CrossRef]
- Cui, Z.; Ke, R.; Pu, Z.; Wang, Y. Stacked bidirectional and unidirectional LSTM recurrent neural network for forecasting network-wide traffic state with missing values. Transp. Res. Part C Emerg. Technol. 2020, 118, 102674. [Google Scholar] [CrossRef]
- Li, X.; Ding, Q.; Sun, J.Q. Remaining useful life estimation in prognostics using deep convolution neural networks. Reliab. Eng. Syst. Saf. 2018, 172, 1–11. [Google Scholar] [CrossRef]
- Niu, K.; Zhou, M.; Abdallah, C.T.; Hayajneh, M. Deep transfer learning for system identification using long short-term memory neural networks. arXiv 2022, arXiv:eess.SY/2204.03125. [Google Scholar]






(V) | () | () | (s) | () | (s) | |
|---|---|---|---|---|---|---|
|
Drive Cycles | Method | SOC Max Absolute Error | SOC Mean Absolute Error |
|---|---|---|---|
| EKF | |||
| HWFTa | UKF | ||
| PHM | |||
| EKF | |||
| Cycle 3 | UKF | ||
| PHM |
|
Drive Cycles | Method | Correlation (corr) | Variance (var) | Bias | MSE | CI Width | |
|---|---|---|---|---|---|---|---|
| EKF | |||||||
| UDDS | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| HWFTa | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| HWFTb | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| LA92 | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| US06 | UKF | ||||||
| PHM | |||||||
| Neural Network | EKF | ||||||
| UKF | |||||||
| PHM | |||||||
| EKF | |||||||
| Cycle 1 | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| Cycle 2 | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| Cycle 3 | UKF | ||||||
| PHM | |||||||
| EKF | |||||||
| Cycle 4 | UKF | ||||||
| PHM |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Pimentel, J.; McEwan, A.A.; Yu, H.Q. A Novel Real-Time Battery State Estimation Using Data-Driven Prognostics and Health Management. Appl. Sci. 2025, 15, 8538. https://doi.org/10.3390/app15158538
Pimentel J, McEwan AA, Yu HQ. A Novel Real-Time Battery State Estimation Using Data-Driven Prognostics and Health Management. Applied Sciences. 2025; 15(15):8538. https://doi.org/10.3390/app15158538
Chicago/Turabian StylePimentel, Juliano, Alistair A. McEwan, and Hong Qing Yu. 2025. "A Novel Real-Time Battery State Estimation Using Data-Driven Prognostics and Health Management" Applied Sciences 15, no. 15: 8538. https://doi.org/10.3390/app15158538
APA StylePimentel, J., McEwan, A. A., & Yu, H. Q. (2025). A Novel Real-Time Battery State Estimation Using Data-Driven Prognostics and Health Management. Applied Sciences, 15(15), 8538. https://doi.org/10.3390/app15158538

