Lithium-ion Battery SOC Estimation based on CNN-Transformer Model

Authors

  • Yuwen Tao School of Navigation, Shandong Jiaotong University, Weihai, Shandong, 264209, China
  • Wenyuan Li School of Navigation, Shandong Jiaotong University, Weihai, Shandong, 264209, China
  • Zhendong Wang School of Navigation, Shandong Jiaotong University, Weihai, Shandong, 264209, China
  • Weijie Yang School of Navigation, Shandong Jiaotong University, Weihai, Shandong, 264209, China

DOI:

https://doi.org/10.54691/sdvqwk45

Keywords:

Lithium-ion Battery; State of Charge; SOC Estimation; Convolutional Neural Network; Transformer.

Abstract

The state of charge (SOC) of lithium-ion batteries is a critical state parameter in battery management systems (BMS), being closely associated with energy management, charge–discharge control and operational safety, yet it cannot be directly measured by conventional sensors. In recent years, deep learning methods have demonstrated considerable potential for SOC estimation owing to their strong capacity for nonlinear feature extraction. However, local dynamic characteristics and long-range temporal dependencies embedded in battery operating data are difficult to be modelled simultaneously by a single network architecture, thereby limiting SOC estimation accuracy under complex dynamic operating conditions. To address this limitation, a SOC estimation model integrating a multi-scale convolutional neural network (CNN) with a Transformer encoder is proposed. Local dynamic features from voltage and current sequences are extracted using multi-scale CNNs, while long-range temporal dependencies are further established by the Transformer encoder, thereby enhancing the representation of dynamic battery operating characteristics. During data preprocessing, SOC reference values are calculated using the ampere-hour integration method, and temporal input samples are constructed through normalization and a sliding-window strategy, providing a reliable basis for model training and prediction. Experiments are conducted using the publicly available CALCE INR 18650-20R lithium-ion battery dataset under four dynamic current profiles and three ambient temperatures. Model performance is evaluated using the root mean square error (RMSE), mean absolute error (MAE) and coefficient of determination (R²). The proposed CNN-Transformer model achieves high SOC estimation accuracy, with an RMSE of 0.9371%, an MAE of 0.7913% and an R² of 0.9957 under the DST profile at 25 °C. Compared with CNN, bidirectional long short-term memory (BiLSTM) and Transformer models, the RMSE is reduced by up to 52.57%. Further evaluation across different temperatures and dynamic operating conditions demonstrates the favourable environmental adaptability and dynamic-condition robustness of the proposed model. These results establish an effective data-driven framework for high-precision SOC estimation and state monitoring in lithium-ion battery management systems.

Downloads

Download data is not yet available.

References

[1] Vidal, C., Malysz, P., & Naguib, M., et al. (2022). Estimating battery state of charge using recurrent and non recurrent neural networks. Journal of Energy Storage, 47, 103660. https://doi.org/ 10. 1016/ j.est.2021.103660.

[2] Wang, Y., Zhang, X., Li, K., et al. (2023). Perspectives and challenges for future lithium ion battery control and management. Elsevier. https://doi.org/10.1016/j.etran.2023.100260.

[3] He, H., Zhang, X., Xiong, R., et al. (2012). Online model based estimation of state of charge and open circuit voltage of lithium ion batteries in electric vehicles. Energy, 39(1), 310 318. https:// doi. org/10.1016/j.energy.2012.01.009.

[4] Hossain, M., Haque, M. E., & Arif, M. T. (2022). Kalman filtering techniques for the online model parameters and state of charge estimation of the Li ion batteries: A comparative analysis. Journal of Energy Storage, 51, 104174. https://doi.org/10.1016/j.est.2022.104174.

[5] Lan, Y., & Zhou, W. (2020). An improved method for estimating the charged state of power lithium batteries. International Core Journal of Engineering, 6(11), 311 320. https://doi.org/ 10.6919/ ICJE. 202011_6(11).0040.

[6] Streck, L., Roth, T., Bosch, H., et al. (2024). Self discharge and calendar aging behavior of Li ion and Na ion cells. Journal of The Electrochemical Society, 171(8), 080531. https://doi. org/ 10. 1149/ 1945 7111/ad6cfd.

[7] Bao, H., & Yu, Y. (2013). Battery SOC estimation error correction based on ampere hour integration method. Computer Simulation, 30(11), 148 151+159.

[8] Sundaresan, S., Devabattini, B. C., & Kumar, P., et al. (2022). Tabular open circuit voltage modelling of li ion batteries for robust soc estimation. Energies, 15(23), 9142. https://doi.org/ 10. 3390/ en 15239142.

[9] Sundaresan, S., Devabattini, B. C., & Kumar, P., et al. (2022). Tabular open circuit voltage modelling of li ion batteries for robust soc estimation. Energies, 15(23), 9142. https://doi.org/ 10. 3390/ en 15239142.

[10] Monirul, I. M., Qiu, L., & Ruby, R. (2024). Accurate SOC estimation of ternary lithium ion batteries by HPPC test based extended Kalman filter. Journal of Energy Storage, 92, 112304. https://doi. org/ 10. 1016/j.est.2024.112304.

[11] Naseri, F., Schaltz, E., Stroe, D. I., et al. (2022). An enhanced equivalent circuit model with real time parameter identification for battery state of charge estimation. IEEE Transactions on Industrial Electronics, 69(4), 3743 3751. https://doi.org/10.1109/TIE.2021.3071679.

[12] Wang, Y., Cheng, Y., Xiong, Y., et al. (2022). Estimation of battery open circuit voltage and state of charge based on dynamic matrix control extended Kalman filter algorithm. Journal of Energy Storage, 52, 104860. https://doi.org/10.1016/j.est.2022.104860.

[13] Zhang, J., Xiao, B., Niu, G., et al. (2024). Joint estimation of state of charge and state of power for hybrid supercapacitors using fractional order adaptive unscented Kalman filter. Energy, 294, 130942. https://doi.org/10.1016/j.energy.2024.130942.

[14] Shen, Y. Q. (2010). Adaptive online state of charge determination based on neuro controller and neural network. Energy Conversion and Management, 51(5), 1093 1098. https://doi.org/ 10. 1016 / j.enconman.2009.12.015.

[15] Shi, Q. S., Zhang, C. H., & Cui, N. X. (2008). Estimation of battery state of charge using ν support vector regression algorithm. International Journal of Automotive Technology, 9(6), 759 764. https: // doi.org/10.1007/s12239 008 0090 x.

[16] Sesidhar, D. V. S. R., Badachi, C., & Green, R. C. Ⅱ. (2023). A review on data driven SOC estimation with Li Ion batteries: Implementation methods & future aspirations. Journal of Energy Storage, 72, 108420. https://doi.org/10.1016/j.est.2023.108420.

[17] Zhang, Y. J., Wu, H. W., & Ye, C. J. (2021). Lithium ion battery SOC estimation based on AUKF BP neural network. Energy Storage Science and Technology, 10(1), 237 241. https://doi.org/ 10. 19799/ j.cnki.2095 4239.2020.0285.

[18] Mao, X., Song, S., & Ding, F. (2022). Optimal BP neural network algorithm for state of charge estimation of lithium ion battery using PSO with Levy flight. Journal of Energy Storage, 49, 104139. https: // doi.org/10.1016/j.est.2022.104139.

[19] Fan, X., Zhang, W., Zhang, C., et al. (2022). SOC estimation of Li ion battery using convolutional neural network with U Net architecture. Energy, 256, 124612. https://doi.org/ 10.1016/ j. energy. 2022. 124612.

[20] Bian, C., Yang, S., Liu, J., et al. (2022). Robust state of charge estimation of Li ion batteries based on multichannel convolutional and bidirectional recurrent neural networks. Applied Soft Computing, 116, 108401. https://doi.org/10.1016/j.asoc.2021.108401.

[21] Chen, J., Zhang, Y., Wu, J., et al. (2023). SOC estimation for lithium ion battery using the LSTM RNN with extended input and constrained output. Energy, 262, 125375. https://doi.org/ 10.1016/ j. energy. 2022.125375.

[22] Shen, H., Zhou, X., Wang, Z., et al. (2022). State of charge estimation for lithium ion battery using Transformer with immersion and invariance adaptive observer. Journal of Energy Storage, 45, 103768. https://doi.org/10.1016/j.est.2021.103768.

[23] University of Maryland Center for Advanced Life Cycle Engineering. (n.d.). Battery data. https:// calce. umd.edu/battery data.

[24] Zhu, B., Liu, X. Q., Wang, Y. H., et al. (Advance online publication). SOC prediction for lithium battery based on the model of EMD LSTM Attention. Journal of Power Supply. https://link.cnki. net/ urlid/ 12. 1420.TM.20240419.1720.008.

Downloads

Published

2026-09-21

Issue

Section

Articles

How to Cite

Tao, Y., Li, W., Wang, Z., & Yang, W. (2026). Lithium-ion Battery SOC Estimation based on CNN-Transformer Model. Scientific Journal of Technology, 8(9), 46-58. https://doi.org/10.54691/sdvqwk45