Estimation of Battery State of Charge Using the Kalman Filter – An Application Aspect

DOI : 10.17577/IJERTV14IS060083

Download Full-Text PDF Cite this Publication

Text Only Version

Estimation of Battery State of Charge Using the Kalman Filter An Application Aspect

Sachin Vrajlal Rajani

Electrical Engineering Department, V.V.P. Engineering College, Rajkot, Gujarat, India

Hemangi Rajani

Faculty of Management Studies, Marwadi University, Rajkot, Gujarat, India

ABSTRACT: Batteries have become an integral part of electronic gadgets and, to some extent, human life. Battery modelling and estimating the state of charge are essential considerations for performance parameters. This paper explores battery modelling in the MATLAB Simulink® environment. A Kalman filter is employed to demonstrate its application in estimating the battery's state of charge. The actual value of the battery's state of charge and the calculated values are compared to verify the model's effectiveness and the Kalman filter.

KEYWORDS: Battery modelling, State of Charge, Kalman Filter, MATLAB Simulink®

INTRODUCTION:

Batteries play a vital role in energy storage. They convert chemical energy into electrical energy, powering electronics and various systems. Modern smartphones, backup systems, electric vehicles, portable gadgets, laptops, and many other applications would not be possible without these storage devices. Batteries consist of cells connected in series. Each cell contains an anode and a cathode with an electrolyte that enables the free movement of ions [1-3].

Batteries are classified based on their usability as rechargeable or non-rechargeable. Rechargeable batteries are secondary, while non-rechargeable batteries are primary or single-use. Alkaline batteries are primary batteries. Lithium-ion, lithium iron phosphate, nickel-metal hydride, sodium-ion, and lead-acid batteries can be charged and discharged multiple times and are referred to as rechargeable or secondary batteries. Among these options, lithium- ion (Li-ion) batteries have gained immense popularity due to their long cycle life, lightweight, and high energy density. Large battery packs, on the order of kilowatt hours (kWh) or even megawatt hours (MWh), are currently used in various large-scale operations in energy storage. The shift from fossil fuels to renewable energy generation has also boosted the application of batteries in large-scale energy storage. Along with their advantages, batteries pose challenges such as performance degradation over time, environmental and hazardous concerns, toxicity issues, disposal problems, and a limited lifespan. Efforts are being made to develop sustainable and safer batteries, such as solid-state batteries, but it may take time to commercialise them [4-7].

Batteries must be studied mathematically to assess their performance parameters. One such parameter is the batterys charge state, or SoC. This paper proposes a method to estimate the battery's state of charge using a Kalman filter. A Kalman filter is a mathematical algorithm for calculating the system's state over time. With the Kalman filter, the system's future state can be predicted based on available measurements. It constantly refines estimations and makes them as accurate as possible. Thus, the measured and estimated variables will have a minimal error gap. The Kalman filter assumes that the system and measurement noise are normally distributed and random [8-11].

MODELLING OF BATTERIES AND METHODOLOGY:

Based on the charge dynamics, batteries are modelled as single-time or two-time dynamics, as illustrated in Figures 1(a) and 1(b). They combine resistor and capacitor elements, which can accurately predict the batterys internal and external behaviour under load. Resistance signifies the internal resistance of a battery, while capacitance reflects the electrochemical reactions and polarisation that occur during charging and discharging. These models enable engineers to anticipate the behaviour under various loading conditions. Moreover, they can also forecast the impact of temperature on batteries, including internal voltage drops and charge/discharge rates.

Figure 1(a) One-time charge dynamics of a battery

Figure 1(b) Two-time charge dynamics of a battery

In these figures,

V0 = Open circuit voltage Vt = Terminal voltage

R1 & R2 = First and second polarisation resistors C1 & C2 = First and second polarisation capacitors RSH = Shunt resistance

R0 = Open circuit resistance or no-load resistance

Considering these models, mathematical equations for two-time dynamics can be written as

=

(1)

3600

1 =

– 1

(2)

1 (,)

1 (,)1 (,)

2 =

– 1

(3)

2 (,)

2 (,)2 (,)

Vt = V0 (SoC, T) iR0 -V1 – V2 (4)

Apart from the conventions discussed before, there are other conventions.

AH = Battery capacity in Ampere Hours T = Temperature in degrees centigrade V1 = Voltage across the first RC network

V2 = Voltage across the second RC network

RESULTS AND DISCUSSION:

Figure 2. Estimation of Battery SoC Using Kalman Filter A Model in MATLAB Simulink®

Figure 3. Real SoC and Estimated SoC of a Battery with the MATLAB Simulink® Model

As demonstrated in Figure 2, a MATLAB Simulink® model [12-14] was developed with these considerations in mind. As discussed, a Kalman filter was employed to estimate the battery's initial state of charge, which was 0.5. The estimator was set at 0.8 initially. The battery charging and discharging were observed for 6 hours (21600 seconds). The Kalman filter took 10 minutes (600 seconds) to converge to the estimated values nearly equal to a battery's real value of the SoC.

Based on the MATLAB Simulink®, results for the genuine battery state of charge (SoC) and the estimated SoC were obtained and plotted, as presented in Figure 3. These results show that the Kalman Filter estimation approximates the battery's actual SoC. Initially, it took approximately 600 seconds (10 minutes) to converge; however, after this initial period, the model predicts the battery's Soc with minimal error. Thus, real and estimated values after 10 minutes of simulation show effective implementation of the battery model in the MATLAB Simulink® environment.

CONCLUSION:

The battery's state of charge is estimated using a Kalman Filter, and the battery is modelled in the MATLAB Simulink® environment. The total simulation time for comparing the real and estimated SoC was six hours (21600 seconds). A Kalman Filter converges to an estimated value of battery SoC with the real value within a minimum error in 600 seconds (10 minutes). Thus, the battery state of charge can be accurately estimated using a Kalman Filter, and matching the real and estimated SoC for a battery demonstrates the effective implementation of the MATLAB Simulink® battery model.

ACKNOWLEDGMENTS:

The Gujarat Council on Science and Technology (GUJCOST), a state body in Gujarat that funds research in science and technology, sponsored this work in Gandhinagar, India. The grant reference number is GUJCOST/STI/2023-24/342. V.V.P. Engineering College in Rajkot, Gujarat, India, also supported this research.

AUTHOR CONTRIBUTION STATEMENT:

Both authors have contributed equally to the preparation of the manuscript.

REFERENCES:

  1. Wang, Z., Liu, R., Wang, J., Wang, B., Zhu, M. and Hu, S., 2025. High energy conversion efficiency and cycle durability of solar-powered self-sustaining light-assisted rechargeable zincair batteries system. Enery Storage Materials, 74, p.103897.

  2. Raut, K., Shendge, A., Chaudhari, J., Lamba, R. and Alshammari, N.F., 2024. Modeling and simulation of photovoltaic powered battery- supercapacitor hybrid energy storage system for electric vehicles. Journal of Energy Storage, 82, p.110324.

  3. Dai, S., Shen, P., Deng, W. and Yu, Q., 2024. Hydrogen energy in electrical power systems: A review and future outlook. Electronics, 13(17), p.3370.

  4. Rajani, S.V. and Pandya, V.J., 2016. Experimental verification of the rate of charge improvement using photovoltaic MPPT hardware for the battery and ultracapacitor storage devices. Solar Energy, 139, pp.142-148.

  5. Thakur, J., Phogat, P., Jha, R. and Singh, S., 2025. Non-rechargeable batteries: a review of primary battery technology and future trends. Physical Chemistry Chemical Physics.

  6. Rajani, S.V. and Pandya, V.J., 2016, March. Ultracapacitor-battery hybrid energy storage for pulsed, cyclic and intermittent loads. In 2016 IEEE 6th international conference on power systems (ICPS) (pp. 1-6). IEEE.

  7. Patel, A.M. and Pandya, K.S., 2025, February. A Global Challenge, A Global Solution: Battery Reuse and Recycling. In 2025 International Conference on Sustainable Energy Technologies and Computational Intelligence (SETCOM) (pp. 1-6). IEEE.

  8. Zhang, X., Duan, L., Gong, Q., Wang, Y. and Song, H., 2024. State of charge estimation for lithium-ion battery based on adaptive extended Kalman filter with improved residual covariance matrix estimator. Journal of Power Sources, 589, p.233758.

  9. Li, Y., Ye, M., Wang, Q., Lian, G. and Xia, B., 2024. An improved model combining machine learning and Kalman filtering architecture for state of charge estimation of lithium-ion batteries. Green Energy and Intelligent Transportation, 3(4), p.100163.

  10. Zhao, J., Qian, X. and Jiang, B., 2024. Lithium battery state of charge estimation based on improved variable forgetting factor recursive least squares method and adaptive Kalman filter joint algorithm. Journal of Energy Storage, 100, p.113392.

  11. Qi, W., Qin, W. and Yun, Z., 2024. Closed-loop state of charge estimation of Li-ion batteries based on deep learning and robust adaptive Kalman filter. Energy, 307, p.132805.

  12. https://www.mathworks.com/help/simscape-battery/ug/battery-state-of-charge-estimation

  13. Vidyasagar, B., Varma, N.R., Dhasharatha, G. and Reddy, K.C., 2024. Design of Electrical Vehicle Lithium Battery Charger Using MATLAB Simulink. In Disruptive technologies in Computing and Communication Systems (pp. 379-385). CRC Press.

  14. Hutchinson, A.J. and Gladwin, D.T., 2022. Verification and analysis of a Battery Energy Storage System model. Energy Reports, 8, pp.41- 47.