Assessment of AEKF SoC Estimation in a LiFePO₄ Battery System with Relay Switching Control
Abstract
This study implements an Adaptive Extended Kalman Filter (AEKF) for real-time state of charge (SoC) estimation to support charge–discharge regulation in a LiFePO₄ battery system integrated with photovoltaic (PV) generation. Due to the variability of PV output, accurate and stable SoC estimation is essential for ensuring reliable battery operation. A first-order equivalent circuit model (1RC ECM) is employed to represent battery dynamics based on measured current and terminal voltage. The proposed AEKF algorithm is implemented on a Raspberry Pi 5 to enable real-time computation, and the estimated SoC is directly used as the control variable in a dual-relay switching mechanism to regulate charging and discharging processes. Experimental results show that the proposed method achieves a Mean Absolute Error (MAE) of 1.24% and a Root Mean Square Error (RMSE) of 1.58%, which are both below the 5% target specified in the system design. The system successfully maintains the battery within a safe SoC range of 57.5% to 85.2%, while ensuring stable relay operation without chattering under dynamic load and charging conditions. These results demonstrate that the proposed AEKF-based approach provides accurate, stable, and practical SoC estimation, making it suitable for real-time battery management in small-scale energy storage applications.
Keywords
Full Text:
PDFReferences
L. Lu, X. Han, J. Li, J. Hua, and M. Ouyang, “A review on the key issues for lithium-ion battery management in electric vehicles,” J. Power Sources, vol. 226, pp. 272–288, Mar. 2013, doi: 10.1016/j.jpowsour.2012.10.060.
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: 10.1016/j.jpowsour.2011.10.013.
G. L. Plett, “Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs,” J. Power Sources, vol. 134, no. 2, pp. 277–292, Aug. 2004, doi: 10.1016/j.jpowsour.2004.02.033.
M. Chen and G. A. Rincon-Mora, “Accurate electrical battery model capable of predicting runtime and I-V performance,” IEEE Transactions on Energy Conversion, vol. 21, no. 2, pp. 504–511, Jun. 2006, doi: 10.1109/TEC.2006.874229.
Hongwen He, Rui Xiong, Xiaowei Zhang, Fengchun Sun, and JinXin Fan, “State-of-Charge Estimation of the Lithium-Ion Battery Using an Adaptive Extended Kalman Filter Based on an Improved Thevenin Model,” IEEE Trans. Veh. Technol., vol. 60, no. 4, pp. 1461–1469, May 2011, doi: 10.1109/TVT.2011.2132812.
S. Yang et al., “A parameter adaptive method for state of charge estimation of lithium-ion batteries with an improved extended Kalman filter,” Sci. Rep., vol. 11, no. 1, p. 5805, Mar. 2021, doi: 10.1038/s41598-021-84729-1.
D. Ma, K. Gao, Y. Mu, Z. Wei, and R. Du, “An Adaptive Tracking-Extended Kalman Filter for SOC Estimation of Batteries with Model Uncertainty and Sensor Error,” Energies (Basel)., vol. 15, no. 10, p. 3499, May 2022, doi: 10.3390/en15103499.
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, doi: 10.1109/TIE.2017.2787586.
C. Vidal, P. Malysz, P. Kollmeyer, and A. Emadi, “Machine Learning Applied to Electrified Vehicle Battery State of Charge and State of Health Estimation: State-of-the-Art,” IEEE Access, vol. 8, pp. 52796–52814, 2020, doi: 10.1109/ACCESS.2020.2980961.
M. S. H. Lipu et al., “A review of state of health and remaining useful life estimation methods for lithium-ion battery in electric vehicles: Challenges and recommendations,” J. Clean. Prod., vol. 205, pp. 115–133, Dec. 2018, doi: 10.1016/j.jclepro.2018.09.065.
J. Xie, J. Ma, and J. Chen, “Peukert-Equation-Based State-of-Charge Estimation for LiFePO4 Batteries Considering the Battery Thermal Evolution Effect,” Energies (Basel)., vol. 11, no. 5, p. 1112, May 2018, doi: 10.3390/en11051112.
X. Lai, Y. Zheng, and T. Sun, “A comparative study of different equivalent circuit models for estimating state-of-charge of lithium-ion batteries,” Electrochim. Acta, vol. 259, pp. 566–577, Jan. 2018, doi: 10.1016/j.electacta.2017.10.153.
Z. He et al., “State-of-charge estimation of lithium ion batteries based on adaptive iterative extended Kalman filter,” J. Energy Storage, vol. 39, p. 102593, Jul. 2021, doi: 10.1016/j.est.2021.102593.
K. Zhou, X. Wang, and Y. Li, “Battery state of charge estimation solution based on optimized Ah counting and online calibration strategy for electric vehicle,” International Journal of Low-Carbon Technologies, vol. 19, pp. 1780–1786, Jan. 2024, doi: 10.1093/ijlct/ctae127.
E. Banguero, A. Correcher, Á. Pérez-Navarro, F. Morant, and A. Aristizabal, “A Review on Battery Charging and Discharging Control Strategies: Application to Renewable Energy Systems,” Energies (Basel)., vol. 11, no. 4, p. 1021, Apr. 2018, doi: 10.3390/en11041021.
DOI: https://doi.org/10.33387/protk.v13i2.11204
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Editorial Office :
Address: Jusuf Abdulrahman 53 Gambesi, Ternate City, Indonesia.
Email: protek@unkhair.ac.id, WhatsApp: +6282292852552
