Intelligent State of Charge Estimation of Lithium-ion Batteries Using Machine Learning and Deep LSTM Networks: A Comparative Study

Authors

  • Girijesh Soni
  • Shalini Goad

Keywords:

Artificial neural network, Battery management system, Electric vehicle, Ensemble learning, Lithium-ion battery, LSTM, Machine learning, State of charge estimation

Abstract

Accurate State‑of‑Charge (SoC) estimation is a key function of the battery management system in electric vehicles, directly influencing safety, usable range, and power‑limit decisions. This study presents a comparative data-driven framework for SoC estimation of an LG 18650HG2 lithium-ion cell using three representative machine-learning architectures: ensemble regression trees, a feedforward Artificial Neural Network (ANN), and a long short-term memory (LSTM) recurrent neural network. A publicly available high-fidelity dataset comprising dynamic automotive drive-cycle profiles and multiple temperature conditions is employed, with systematic preprocessing and feature construction. All models are implemented in a MATLAB environment and evaluated using a unified protocol based on RMSE, MAE, and R2 metrics, together with error histograms, residual analysis, cumulative error distributions, SoC‑band and temperature‑band robustness, and inference‑time measurements. The results establish a clear performance hierarchy: the LSTM achieves the highest accuracy with an RMSE of 1.44%, followed by the shallow ANN with 1.72%, while ensemble trees exhibit significantly larger error at 3.66% RMSE. The LSTM further delivers automotive‑grade reliability, with 96% of test predictions within ±2% SoC error and consistent performance across SoC and temperature ranges.

References

M. A. Hannan, M. S. H. Lipu, A. Hussain, and A. Mohamed, “A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations,” Renewable and Sustainable Energy Reviews, vol. 78, pp. 834–854, Oct. 2017.

Y. Wu, D. Bai, K. Zhang, Y. Li, and F. Yang, “Advancements in the estimation of the state of charge of lithium-ion battery: A comprehensive review of traditional and deep learning approaches,” Journal of Materials Informatics, vol. 5, no. 2, Feb. 2025.

Z. Wei, J. Zhao, H. He, G. Ding, H. Cui, and L. Liu, “Future smart battery and management: Advanced sensing from external to embedded multi-dimensional measurement,” Journal of Power Sources, vol. 489, p. 229462, Mar. 2021.

K. S. Ng, C.-S. Moo, Y.-P. Chen, and Y.-C. Hsieh, “Enhanced coulomb counting method for estimating state-of-charge and state-of-health of lithium-ion batteries,” Applied Energy, vol. 86, no. 9, pp. 1506–1511, Sept. 2009.

F. Zhao, Y. Guo, and B. Chen, “A review of lithium-ion battery state of charge estimation methods based on machine learning,” World Electric Vehicle Journal, vol. 15, no. 4, p. 131, Mar. 2024.

R. Xiong, J. Cao, Q. Yu, H. He, and F. Sun, “Critical review on the battery state of charge estimation methods for electric vehicles,” IEEE Access, vol. 6, pp. 1832–1843, 2018.

E. Chemali, P. J. Kollmeyer, M. Preindl, R. Ahmed, and A. Emadi, “Long short-term memory networks for accurate state-of-charge estimation of Li-ion batteries,” IEEE Transactions on Industrial Electronics, vol. 65, no. 8, pp. 6730–6739, Aug. 2018.

M. Dang, C. Zhang, Z. Yang, J. Wang, Y. Li, and J. Huang, “An estimation method for the state-of-charge of lithium-ion battery based on PSO-LSTM,” AIP Advances, vol. 13, no. 11, p. 115204, Nov. 2023.

M. U. Ali, A. Zafar, S. H. Nengroo, S. Hussain, M. J. Alvi, and H.-J. Kim, “Towards a smarter battery management system for electric vehicle applications: A critical review of lithium-ion battery state of charge estimation,” Energies, vol. 12, no. 3, p. 446, 2019.

R. Xiong, H. He, F. Sun, and K. Zhao, “Evaluation on state of charge estimation of batteries with adaptive extended Kalman filter by experimental approach,” IEEE Transactions on Vehicular Technology, vol. 62, no. 1, pp. 108–117, Jan. 2013.

R. Xiong, F. Sun, Z. Chen, and H. He, “A data-driven multi-scale extended Kalman filtering-based parameter and state estimation approach of lithium-ion polymer battery in electric vehicles,” Applied Energy, vol. 113, pp. 463–476, Jan. 2014.

I.-S. Kim, “The novel state of charge estimation method for lithium battery using sliding mode observer,” Journal of Power Sources, vol. 163, no. 1, pp. 584–590, Dec. 2006.

J. Yun, Y. Choi, J. Lee, S. Choi, and C. Shin, “State-of-charge estimation method for lithium-ion batteries using extended Kalman filter with adaptive battery parameters,” IEEE Access, vol. 11, pp. 90901–90915, 2023.

M.-F. Ng, J. Zhao, Q. Yan, G. J. Conduit, and Z. W. Seh, “Predicting the state of charge and health of batteries using data-driven machine learning,” Nature Machine Intelligence, vol. 2, no. 3, pp. 161–170, Mar. 2020.

W. He, N. Williard, C. Chen, and M. Pecht, “State of charge estimation for Li-ion batteries using neural network modeling and unscented Kalman filter-based error cancellation,” International Journal of Electrical Power & Energy Systems, vol. 62, pp. 783–791, Nov. 2014.

M. S. H. Lipu, A. Ayob, M. H. M. Saad, A. Hussain, M. A. Hannan, and M. Faisal, “State of charge estimation for lithium-ion battery based on random forests technique with gravitational search algorithm,” in Proc. IEEE PES Asia-Pacific Power and Energy Engineering Conf. (APPEEC), Kota Kinabalu, Malaysia, 2018, pp. 45–50.

J. Hong, Z. Wang, and Y. Yao, “Fault prognosis of battery system based on accurate voltage abnormality prognosis using long short-term memory neural networks,” Applied Energy, vol. 251, p. 113381, Oct. 2019.

J. Yao and J. Kowal, “Towards a smarter battery management system: A critical review on deep learning-based state of charge estimation of lithium-ion batteries,” Energy and AI, vol. 21, p. 100585, Sept. 2025.

J. Tian, R. Xiong, and W. Shen, “A review on state of health estimation for lithium-ion batteries in photovoltaic systems,” eTransportation, vol. 2, p. 100028, Nov. 2019.

D. N. T. How, M. A. Hannan, M. S. H. Lipu, and P. J. Ker, “State of charge estimation for lithium-ion batteries using model-based and data-driven methods: A review,” IEEE Access, vol. 7, pp. 136116–136136, 2019.

M. Naguib, “LG 18650HG2 Li-ion battery data and example deep neural network xEV SOC estimator script,” Mendeley Data, Mar. 2020.

C. Vidal, P. Kollmeyer, M. Naguib, P. Malysz, O. Gross, and A. Emadi, “Robust xEV battery state-of-charge estimator design using a feedforward deep neural network,” SAE International Journal of Advances and Current Practices in Mobility, vol. 2, no. 5, pp. 2872–2880, Apr. 2020.

J. H. Friedman, “Greedy function approximation: A gradient boosting machine,” Annals of Statistics, vol. 29, no. 5, Oct. 2001.

T. Hastie, R. Tibshirani, and J. Friedman, The Elements of Statistical Learning. New York, NY: Springer, 2009.

L. Breiman, J. H. Friedman, R. A. Olshen, and C. J. Stone, Classification and Regression Trees. New York, NY: Routledge, 2017.

C. M. Bishop, Pattern Recognition and Machine Learning. New York, NY: Springer, 2006.

M. T. Hagan and M. B. Menhaj, “Training feedforward networks with the Marquardt algorithm,” IEEE Transactions on Neural Networks, vol. 5, no. 6, pp. 989–993, Nov. 1994.

S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, Nov. 1997.

F. A. Gers, J. Schmidhuber, and F. Cummins, “Learning to forget: Continual prediction with LSTM,” Neural Computation, vol. 12, no. 10, pp. 2451–2471, Oct. 2000.

K. Greff, R. K. Srivastava, J. Koutnik, B. R. Steunebrink, and J. Schmidhuber, “LSTM: A search space odyssey,” IEEE Transactions on Neural Networks and Learning Systems, vol. 28, no. 10, pp. 2222–2232, Oct. 2017.

Published

2026-03-18

How to Cite

Girijesh Soni, & Shalini Goad. (2026). Intelligent State of Charge Estimation of Lithium-ion Batteries Using Machine Learning and Deep LSTM Networks: A Comparative Study. Advance Research in Power Electronics and Devices, 26–37. Retrieved from https://matjournals.net/engineering/index.php/ARPED/article/view/3233