State of Charge Estimation For Electric Vehicle Batteries Under An Adaptive Filtering Framework
State of Charge Estimation For Electric Vehicle Batteries Under An Adaptive Filtering Framework
Abstract- Electric vehicles (EVs), which are powered by lithium drift in Coulomb counting. Another popular method is the
batteries, will penetrate the automobile market within the next voltage-based method that is to infer SOC by an open circuit
few years. This is mainly due to the increasing concerns of global voltage (OCV)-SOC lookup table [6]. However, OCV
warming and fossil fuel depletion. However, there are still some measurement requires a long period of rest before the tenninal
challenges for EVs that remain to be solved. The most notable voltage converges to the actual OCV. With the use of a battery
one is the state of charge (SOC) estimation and prediction for
model, it is possible to infer the battery's OCV from its
relieving EV drivers' range anxiety. To address this problem, an
terminal voltage. But this approach can generate large error if
equivalent circuit model is built to simulate battery behavior
the model employed is not accurate. A ±O.O1 V modeling error
under dynamical loading conditions. The parameters of the
model should be tuned on-line in order to handle the prediction
in the OCV could produce 10% percent error in the SOC
uncertainty arising from unit to unit variations and loading
estimation. In order to address these problems, this paper
condition changes. This paper proposed an Unscented Kalman
proposes a SOC estimation method using unscented Kalman
filtering-based method to self-adjust the model parameters and
filter (UKF) with a simple battery state-space model. This
provide the SOC estimation. The performance of the proposed
method does not require initial SOC infonnation. It can self
method is demonstrated using data collected from LiFeP04 correct the SOC estimation by adding a correcting term which
batteries cycled with two dynamical discharge profiles. is generated based on the difference between the measurement
and model prediction. The proposed method is validated using
Keywords-State of Charge Estimation; Lithium-ion two dynamical discharge profiles.
Battery; Unscented Kalman Filter; styling; Electric Vechicles
978-1-4577-1911-0/12/$26.00 ©20121EEE MU3297 2012 Prognostics & System Health Management Conference
(PHM-2012 Beijing)
(1) Discharge the cell at 0.1 A from its fully charged state federal driving schedules. The current profile was generated by
to its fully discharged state. combining the urban dynamometer driving schedule (UUDS)
[8] and US06 [9], which emulates both city and highway
(2) Rest for 2 hours. driving conditions experienced by an EV battery. The driving
(3) Charge the cell at 0.1 A to its fully charged state. schedule and the corresponding current profile are shown in
Fig. 3.
(4) Averaging the discharge and charge voltage provides
the OCV. The terminal voltage was measured every second. Based on
the collected data, R can be estimated by a least-square
The batteries tested have a rated capacity of 2.3 Ah. The algorithm. Fig. 4 (a) and (b) shows the fitted result and the
resultant OCV-SOC is shown in Fig. 2. error respectively. The root mean square (RMS) error of the fit
is 0.0212, and the mean error is 0.0180. The mean error
suggests there is a bias in the model, which can also be seen
3.8 ,-------.:--c--.:---,:---, from Fig. 4(b). Thus, the model can be improved by adding a
3.6
constant C to Eq. (1):
3.4 ) V=OCV-IxR +C (2)
The fitted result of Eq. (2) is shown in Fig. 5. The RMS
error of this model is decreased to 0.0064, and the mean error is
reduced to -6.6107e-016. Using Eq. (2), we can formulate a
state-space model for UKF estimation. SOC and R are selected
{
as states in the state-space model, and the measurement model
2.6 is the terminal voltage, which is a function of SOC and R.
2.4 . _ J(k) x I'lT
SOc(k +1) SOC(k) + WI
Cn
=
2.2
(3)
2 ' R
(k +l ) R(k) + W2
=
0 20 40 60 80 100
SOC (%) V(k) OCV[SOC(k) ]-J(k)· R(k) +C +6'
=
0 0.05
"
�
-2
>
:::l ';::'
u -4 2 0
�
-6
-0.05
-8
0 500 1000 1500 2000 2500 3000 3500 4000
Time (s) 0 500 1000 1500 2000 2500 3000 3500 4000
Time(s)
Figure 3. (a) Federal driving schedule and (b) the corresponding current
profile. Figure 4. (a) The fitted result of model Eq.(I) and (b) the error of the model
fit
In order to identify the model parameter R and test the
model performance, experiments were conducted based on
978-1-4577-1911-0/12/$26.00 ©2012 IEEE MU3297 2012 Prognostics & System Health Management Conference
(PHM-2012 Beijing)
Ai
Wo(c) /( a2
L+A )+1- + f3
=
(a)
1I1 11�1
(4)
, ) - W(c)
W(III , -- /I/,{ 2 ( L+A)}
3.6
i 1,. · · ,2L
=
?::: 0
i 0,.. ,2L . The estimated mean and covariance of y are
=
�
computed by the weighted sample mean and covariance as
follows:
-0.05
2L
0 500 1000 1500 2000 2500
Time(s)
3000 3500 4000
Y
=
LW,(III)Y,
;=0
2L
Figure 5. (a) The fitted result of model Eq.(2) and (b) the error of the model
Py =
LW,<C) (y, - y)(y, - yt
;=0
fit. (5)
The UKF is a straightforward application of the UT for state
III. UNSCENTED KALMAN FTLTER estimation. The main steps of UKF are summarized as follows:
The SOC estimation is a nonlinear problem in this study.
The non-linearity can be seen from the observation model,
(l) Initialize with x.o=E [ xol and Po=E ( Xo- �)( Xo-x [ SJ
where OCV(SOC[kD is an non-linear function as shown in Fig. (2) For k E {l, ...,oo}, calculate sigma points:
2. For non-linear state estimation problem, extended Kalman
filter (EKF) is a standard approach. However, EKF uses fIrst
order terms of the Taylor series expansion of the nonlinear "'1..'-1 - [j$;.'-I
functions. Large error can be produced if the model is highly (3) State prediction:
nonlinear. In this study, we adopted the unscented Kalman • Propagate the sigma points through the state model:
filter (UKF) which can be accurate to the 3rd order in the sense
of Taylor series expansion for any nonlinearity [10]. UKF is a
direct application of unscented transform (UT). In UT, a
Gaussian distribution is represented by a set of carefully chosen • Calculate the propagated mean
sample points called sigma points. These sigma points can
2L
capture the mean and covariance of the Gaussian random
variables (GRV) when propagated through a nonlinear function. X-k - "W<m) "'I.,. .klk-I
�
;=0
,
Assume a random variable x (dimension L) has mean • Calculate the propagated covariance
x and covariance p. , Consider propagating x through a
2L
nonlinear function y g(x). To calculate the statistics of y,
L w,<C) ["'I..'.klk-I - iifJ ["'I..',klk-I - x� J
=
P,- =
o ) -- /(iL+A
W(III A i 0 =
• Calculate the estimated covariance
)
978-1-4577-1911-0/12/$26.00 ©2012 IEEE MU3297 2012 Prognostics & System Health Management Conference
(PHM-2012 Beijing)
2L
"W(c)
Py,y, - L...
;=0 i [ yi,kl k -I - -
Yk-] [ Yi,klk-I - Yk ]
-- T
3.5
2L
"W(c) [ Xi,klk-I - Xk
P -- L...
x,y,
i=O I
--] [Xi,klk-I - --]
Yk
T 3
2.5
�
• Calculate the Kalman gain K and update the state 2 ::j)
:::
�
Xk X� + K ( Yk -y� )
=
Cf
Pk Pk- - KP K
=
YkYk
____ T
0.5
o
o 20 40 60 80 100
IV. STATE OF CHARGE ESTIMATION RESULT SOC(%)
The proposed method is first tested on the data collected by Figure 7. RMS error of SOC estimation when starting from different SOC
the federal driving schedule as shown in Fig. 3. The true initial levels.
SOC is 80%. To simulate actual field conditions where the
exact SOC at the beginning of usage is unknown, the initial To see whether the proposed method can handle the unit to
SOC guess for UKF estimation is intentionally set to be 35%. unit variability, it was tested on data collected from a second
The estimation result is shown in Fig. 6. Though the estimation battery of the same type. The parameter settings are the same as
deviates from the true value during the first 10% of the those used in the previous case. As shown in Fig. 8, the
discharge cycle, it fmally converges to the true SOC as more maximum RMS error of the SOC estimation is within 4%.
measurements became available. The RMS error of the
estimation is 3.035%. To examine the applicability of the proposed method to
other profIles, we collected battery discharge data using the
100·
dynamical stress testing (DST) [11]. The current load profIle
--- Estimation and the corresponding terminal voltage response are shown in
Fig. 9. The parameter settings of the UKF including the initial
80 --- True SOC guess, process and measurement noise also remains the same in
this case. The RMS error of the SOC estimation is shown in
60
-;g Fig. 10. The maximum RMS error is also within 4%.
&
0
r/) 40
20 4
3.5
0
0 0.5 1.5 2 2.5
:j)
4 3
x 10 ::j) Ci
J
� 2.5
:::
�
Ci Ci
UJ 2
r/) ::j)
� 1.5
o 0.5 1.5 2 2.5 ::j)
Time(sec) 4
x 10
Ci Q
0.5
Figure 6. UKF-based SOC estimation.
o
The proposed method was further tested by varying the o 20 40 60 80 100
beginning SOC of the battery and allowing the UKF to adapt to SOC(%)
the true value. In each case, the initial SOC guesses were set to
be 35%. Fig. 7 shows the result. It can be seen that the RMS Figure 8. RMS error of UKF-based SOC estimation for another EY battery.
errors of all case are within 3.1 %. The maximum RMS error
occurs when starting from 80% SOC. One possible reason for
this can be the relative flat OCV slop at 80% SOC as shown in
Fig.2, which means a tiny error in the OCV can cause large
error in the SOC estimation.
978-1-4577-1911-0/12/$26.00 ©20121EEE MU3297 2012 Prognostics & System Health Management Conference
(PHM-2012 Beijing)
the SOC of an EV changes due to self-discharge or varying
5 - environmental conditions, this method will be able to self
correct the SOC automatically The RMS errors of the SOC
� estimation in the validation tests were smaller than 4%. In
c 0
�::s addition, the proposed method can handle unit to unit
U difference and loading condition variations without changing
the setting of the UKF. The temperature is another influencing
50 100 150 200 250 300 350 factor for SOC estimation. Future work will investigate the
Time(s) SOC estimation under simultaneous dynamical temperature
4
and discharge conditions.
978-1-4577-1911-0/12/$26.00 ©2012 IEEE MU3297 2012 Prognostics & System Health Management Conference
(PHM-2012 Beijing)