State-Of-Charge Estimation of Lithium-Ion Batteries Using Extended Kalman Filter and Unscented Kalman Filter
State-Of-Charge Estimation of Lithium-Ion Batteries Using Extended Kalman Filter and Unscented Kalman Filter
E
R0
LECTRIC vehicles (EVs) have become widely accepted
alternative to commonly used technologies in C1 C2
automotive industry [1]. In that manner, battery system as - + - +
v1 v2 v0
a most expensive part of EVs have been researched
+
thoroughly. Compared with other types of batteries, E0
-
Lithium-ion battery can storage considerably amount of i
energy and has no memory effect [2], [3]. Knowing that
battery system is the most expensive part of EVs, Fig. 1. Equivalent circuit model
reliability of its functioning became an imperative. BMS A. SoC estimation
coordinates with thousands of Li-ion battery cells inside SoC parameter is a state variable in adopted model and is
EV with aim to monitor battery vital characteristics and to defined as a ratio of available and total battery capacity:
contribute safe and reliable operation of vehicles [3], [4]. t
Battery performance can be affected by many factors, such s(t ) s(t0 ) K ³ i (W )dW , (1)
as operating temperature and aging of the battery. State of t0
Charge (SoC) is recognized as a vital parameter of battery. with Ʉ=1/(3600C), where C is battery capacity and its
Its precise estimate can extend its lifecycle, increase dimension is Ah. Accurate calculating directly the SoC is
battery performance and enhance safety and reliability of not possible because of few reasons. Noise presented in
the system [1], [5]. However, it is not possible to estimate measurements of the current would be accumulated in SoC
SoC directly. Nonlinearity of the system, temperature and estimates and therefore provide inaccurate estimate. Also,
time dependent characteristics of the battery make direct another problem is to calculate initial values of SoC [1].
calculation inaccurate. From those reasons, SoC estimation As it is noted, model of battery has been adopted from
is widely investigated [6]. [1] and is shown on figure 1. It consists of voltage source
In this paper two versions of Kalman filter are E0, called battery internal open circuit voltage, while other
parameters form circuit, such as R0, R1, C1, R2 and C2 tend
to model dynamics of the battery. Voltage on battery
Ivan Jokić, Žarko Zečević and Božo Krstajić, Elektrotehnički fakultet
terminals is defined as v0. SoC parameter is in nonlinear
Podgorica, Univerzitet Crne Gore, Džordža Vašingtona bb, 81000
Podgorica, Crna Gora (e-mails: [email protected], [email protected], relation with E0 and this relation can be modeled by
[email protected]) polynomial function, that is adopted from [1]:
Using equations (1)-(5), state space model can be Fig. 2. Discrete Kalman filter cycle
constructed:
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on December 17,2022 at 11:31:49 UTC from IEEE Xplore. Restrictions apply.
2018 23rd International Scientific-Professional Conference on Information Technology (IT) Žabljak, Montenegro
The EKF estimatin process can be presented in five covariance of the measurement, as well as cross covariance
steps with equations (13), repectively: of the state and measurement. It is obtained by next
1. state estimate time update, equations(17):
2. error covariance time update,
3. Kalman gain matrix, yˆ ki h(xˆ ki , uk ), i 0,1, 2,..., 2n
2n
4. state estimate measurement update,
5. error covariance measurement update [1],
yˆ k ¦w
i 0
m
i yˆ ki
xˆ k- f (xˆ k -1 , uk 1 ), 2n (17)
P -
k A k -1 Pk -1 A T
k -1 Q(t ),
P k
h
¦ w ( yˆ
i 0
c
i
i
k yˆ k )( yˆ ki yˆ k )T Rk
where I is unity matrix. point at kth iteration, yˆ k and Pkh represent mean and
covariance of yˆ ki , while Pk fh is cross covariance of the state
C. Unscented Kalman filter
xˆki and measurement yˆ ki .
Unlike EKF, Unscented Kalman filter does not linearize
state space equations. It provides sigma points for states Finally, acquired covariance matrices of measurements
instead, by nonlinear unscented transformation (UT), and states are used to define Kalman gain(18) and also
make an a posteriori estimate of the states(19) and state
which mean and error covariance are calculated and
covariance(20):
updated iteratively. These sigma points are then
Pk fh Pkh
1
propagated through the nonlinear model functions, by Kk (18)
which it is provided a priori estimate of the states and of
output signal. The mean and covariance of those variables xˆ k+ xˆ k- Kk ( yk yˆk ) (19)
are then computed based on their statistics [3]. Feedback P +
k P Kk P K .
-
k
h
k
T
k (20)
with output measurement is used to update (a posterior
estimate) provided estimate and to provide optimal state Initialize
estimation. State update
(11, 12, 13)
In each iteration 2n+1 sigma points, where n is number
Generate sigma Measurement
of states and coefficients wc, wm are calculated by next
points (7,8) estimate (10)
equations(14)-(15):
Propagate sigma
xˆ k0 -1 xˆ k+ -1 points (9)
Fig. 4. UKF estimating cycle
xˆ ki -1 xˆ k+ -1 n O
Pk -1 , i 1, 2,..., n (14)
IV. SIMULATION RESULTS
xˆ ki -1 xˆ k+ -1 nO Pk -1 ,i n 1,..., 2n Time step of 1s is used in simulation tests. Model
parameters are adopted from[1]. They are estimated by
O O Least Square approach and are given in table 1.
w0m , w0c 1 E D 2
(n O ) (n O ) TABLE 1: PAGE LAYOUT DESCRIPTION.
(15) Parameters Value
1
wim wic , i 1, 2,..., 2n R0 0.0013ȳ
(2(n O ))
R1 0.0042ȳ
where ɉ=Ƚ2(n+k)-n is defined as parameter controlling the C1 17111F
spread of sigma points around their mean. In this work R2 0.0024ȳ
parameters Ƚ and Ⱦ are set to 1 and 0, respectively. C2 440.57F
Parameter k can take values 0 or 3-n. Next, ξPk-1 is
decomposed matrix Pk-1. As it is explained, these sigma For EKF, next measurement and process covariance
points are propagated through state-space equations: matrices are used:
xˆ ki f (xˆ ki -1 , uk ), i 1, 2,..., 2n Q diag 0.1 0.1 0.01 , P diag 0.1 0.1 0.01 ,
(21)
2n R 1000,
xˆ -
k ¦w m
i xˆ i
k (16)
i 0 while for UKF they have next values:
2n
P -
k ¦ w (xˆ c
i
i
k xˆ )(xˆ xˆ ) Qk .
-
k
i
k
- T
k Q diag 0.01 0.1 0 , P 0.1 0.1 10 6 ,
i 0 (22)
R 15.
In order to estimate output signal, sigma points of states
are propagated through measurement function. Those A. Constant discharge simulation
acquired values are also used for calculating the mean and First simulation test is battery discharging with constant
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on December 17,2022 at 11:31:49 UTC from IEEE Xplore. Restrictions apply.
2018 23rd International Scientific-Professional Conference on Information Technology (IT) Žabljak, Montenegro
current of 20A, applied at the input of the model. SoC performs considerably better results under described
estimates from both filters are presented on figure 5. On conditions.
figure 6 SoC estimation error in percentage is shown. It
can be seen that EKF estimates more precisely in first part
of simulation, while over considerably bigger range of SoC
values UKF provides better estimate.
V.CONCLUSION
Fig. 5. SoC estimate under constant current discharge Two versions of Kalman filter, Extended Kalman filter
and Unscented Kalman filter have been used in this paper
for SoC estimation of Lithium-ion battery. Durign battery
discharging under constant current it is shown that in most
part of simulation UKF reaches better performance. In
second simulation test with alternating charging and
discharging of battery by constant current and noisy
process, UKF has performed considerably better results.
REFERENCES
[1] Z. Chen, Y. Fu, and C. C. Mi, “State of Charge Estimation of
Lithium-Ion Batteries in Electric Drive Vehicles Using Extended
Kalman Filtering,” IEEE Trans. Veh. Technol., vol. 62, no. 3, pp.
1020–1030, Mar. 2013.
[2] X. Zeng and J. Wang, “A Parallel Hybrid Electric Vehicle Energy
Management Strategy Using Stochastic Model Predictive Control
With Road Grade Preview,” IEEE Trans. Control Syst. Technol.,
Fig. 6. SoC estimation error under constant current vol. 23, no. 6, pp. 2416–2423, Nov. 2015.
discharge [3] Q. Yu, R. Xiong, C. Lin, W. Shen, and J. Deng, “Lithium-Ion
Battery Parameters and State-of-Charge Joint Estimation Based on
B. Noisy charge/discharge simulation H-Infinity and Unscented Kalman Filters,” IEEE Trans. Veh.
Technol., vol. 66, no. 10, pp. 8693–8701, Oct. 2017.
Second simulation test is under constant [4] J. T. B. A. Kessels, M. Koot, B. de Jager, P. P. J. van den Bosch,
charge/discharge of battery, with noise presented in N. P. I. Aneke, and D. B. Kok, “Energy Management for the
process. A white Gaussian noise, with covariance of 0.6 is Electric Powernet in Vehicles With a Conventional Drivetrain,”
added to constant current of ±20A. Current signal is of IEEE Trans. Control Syst. Technol., vol. 15, no. 3, pp. 494–505,
May 2007.
square wave, with period of 150s and pulse width of 50%. [5] V. Agarwal, K. Uthaichana, R. A. DeCarlo, and L. H. Tsoukalas,
“Development and Validation of a Battery Model Useful for
Discharging and Charging Power Control and Lifetime
Estimation,” IEEE Trans. Energy Convers., vol. 25, no. 3, pp.
821–835, Sep. 2010.
[6] Y. Wang, H. Fang, L. Zhou, and T. Wada, “Revisiting the State-of-
Charge Estimation for Lithium-Ion Batteries: A Methodical
Investigation of the Extended Kalman Filter Approach,” IEEE
Control Syst., vol. 37, no. 4, pp. 73–96, Aug. 2017.
[7] G. Welch and G. Bishop, An Introduction to the Kalman Filter.
1995.
[8] P. Khargonekar, “Prof. R. E. Kalman - A Deeply Inspiring Mentor
[Historical Perspectives],” IEEE Control Syst., vol. 30, no. 2, pp.
98–99, Apr. 2010.
[9] A. Antoulas, Ed., Mathematical System Theory: The Influence of
R. E. Kalman. Berlin Heidelberg: Springer-Verlag, 1991.
[10] “Extended Kalman Filter and System Identification,” in Kalman
Fig. 7. SoC estimate in percentage under noisy constant Filtering, Springer, Berlin, Heidelberg, 2009, pp. 108–130.
charge/discharge
SoC estimation error in percentage is presented on figure
7, while SoC stimate, also in percentage, is presented on
figure 8. From both figures, it can be concluded that UKF
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY DURGAPUR. Downloaded on December 17,2022 at 11:31:49 UTC from IEEE Xplore. Restrictions apply.