Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/271496456

Extended Kalman Filter based battery state of charge(SOC) estimation for


electric vehicles

Conference Paper · June 2013


DOI: 10.1109/ITEC.2013.6573477

CITATIONS READS
32 8,527

4 authors, including:

Allan Ray Taylor Chen Duan


Kettering University Kettering University
21 PUBLICATIONS   494 CITATIONS    26 PUBLICATIONS   343 CITATIONS   

SEE PROFILE SEE PROFILE

Hua Bai
University of Tennessee
158 PUBLICATIONS   3,258 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Solar Assisted Battery Modular Balancing for EV/HEV View project

Impact of Charging Algorithms on Battery lifetime View project

All content following this page was uploaded by Chen Duan on 18 October 2017.

The user has requested enhancement of the downloaded file.


Extended Kalman Filter Based Battery State of
Charge(SOC) Estimation for Electric Vehicles
Chenguang Jiang, Allan Taylor, Chen Duan, Kevin (Hua) Bai
Department of Electrical and Computer Engineering, Kettering University
1700 University Ave, Flint, MI, 48504, USA
(0): 810-288-8273 hbai@kettering.edu

Abstract- This paper proposed a battery state of charge


ib

Rs
(SOC) estimation methodology utilizing the Extended .----

Vcs L es
VVv

Vt
Kalman Filter. First, Extended Kalman Filter for Li-ion + +
battery SOC was mathematically designed. Next,
simulation models were developed in MATLAB/Simulink,

T
which indicated that the battery SOC estimation with
Extended Kalman filter is much more accurate than that
from Coulomb Counting method. This is coincident with
the mathematical analysis. At the end, a test bench with
Lithium-Ion batteries was set up to experimentally verify
the theoretical analysis and simulation. Experimental Fig.l. Battery Model

results showed that the average SOC estimation error


using Extended Kalman Filter is <1 %. Here we assume that Vcs is the battery OCV, ib is
Index Terms- Li-ion Battery, Kalman Filter, State of the battery charging current, Rs is the battery internal
Charge(SOC), Electric Vehicles resistance and Vt is the terminal voltage. We also
define the system state variables, outputs, and inputs in
I. INTRODUCTION

A great factor in determining the stability of Li-ion


(1 ) .
[Xl] [VCS]
X= ;� = �� ;
battery packs lies within the state-of-charge (SOC)
estimation. Failing to predict battery SOC will cause
overcharge or over discharge during cycles, which
potentially will bring irreversible permanent damage to
y = [��] = [�:] ;
= [��] = [�:]
the battery cell. The most accurate method to measure
the SOC is the direct relation of OCV, however this can u (1 )
only be accurately measured offline when the battery
has no current transfer. Presently the most commonly Assume the state equations have some process noises
applied online SOC estimation is the coulomb counting wand input sensor noises v. Thus the standard state
(CC) method [2][6], which measures the battery current, space form is represented by (2).
integrates it with represent to time, and determines an
estimated battery SOC. When the measured battery {X= Ax + Bu �
current has some error, the long-run integration will y = Cx + Du

[cVCSs] ef 0 LJVt
bring unpredictable deviation of SOC, which will lead to
the overcharge or undercharge of the battery.

10 [VCS]Rs 0[ 0 RS]001Vt
o o
Compared to CC method, the Extended Kalman Filter -
R
X= o o
+ S +w
is a better solution, which only adopts the battery
o o (2)

= [-\ � ] s [ 0 [ ] v
1
terminal voltage and current. The desired SOC is related
to the OCV, which is a state variable Vcs shown in the
simplified battery model in Fig.l.
y
Rs Rs o
C + �
Rs
ib +

The non-linear discrete-time process with input and


measurement noises can be described by Fig.2.

978-1-4799-0148-7/13/$31.00 ©2013 IEEE


Due to the non-linear nature of the process being the
Xk covariance prediction, update equations cannot use
f Xk,uk,k)
( f(.) and h(.) directly. Rather they use the 1acobian of
f(.) and h(.). The 1acobians are defIned by (6) and (7).
h(XbUbk)
(6)

Extended (7)
Kalman
Filter

The predictor step is given as (8) and (9).


Fig.2. Non-linear Discrete-time Process

(8)
In a standard state space form[I], the process can
be describe by (3)�(5). (9)

(3) The corrector step is given as (10)�(12).

(4) (10)

(5) (11)

Here k denotes a discrete point in time(with k-lbeing


(12)
the immediate past time point). Uk is a vector of
inputs( VI and ib). Xk is a vector of the actual states,
In (10) �(12) Pk is an estimate of the covariance of
which may be observable but not measured(Vcs> Cs and
the measurement error and Kk is the Kalman gain. After
Rs). Yk is a vector of actual process outputs(VI and h).
both the prediction and correction steps have been
:h is a vector of the measured process outputs. f(.) and
performed then Xk is the current estimate of the states
h(.) are generic non-linear functions relating the past
and Yk can be calculated directly from it. Both Xk and
state, current input, and current time to the next state
Pk are stored and used in the predictor step of the next
and current output respectively. Wk and Vk are process
time period. As the sampling time is assigned to be T"
and output noise respectively. They are assumed to be
the 1acobians matrices for this system can be calculated

[ ]� Ts [1 1
zero mean Gaussian with covariance Qk and Rk
by (13 ) and (14).
respectively. [2]
Given the inputs, measured outputs and assumptions aCVcs) acvcs) aCVcs)
on the process and output noise, the purpose of o
aVes acs a s
Extended Kalman Filter is to estimate immeasurable F= + 0

[ 1 Ts 1 TS]
1
o 0
states(Vcs> Cs and Rs. they are observable) and the actual 0 o
o 0 o
process outputs. In the SOC estimation, inputs and
outputs are identical (VI and h). The purpose then
becomes to estimate the uruneasured states Vcs> Cs and F=

RsCs
Ts +
Ves-Vt
RsCsZ
Ves-Vt
CsRsZ
(13 )

[ ]
o o
Rs which provide information of OCV, cell total
o 0
capacitance, and internal resistance respectively. The
estimated states are Xk while the estimated measured aCYl) acYl) acYl)
outputs are yd5] aVes acs aRs �
H=
acyz) acyz) acyz)
Extended Kalman Filter uses a two-step predictor­ -- -- --

aVes acs aRs


corrector algorithm. The fIrst step involves projecting
both the most recent state estimate and an estimate of
the error covariance (from previous time period)
forward in time to compute a predicted estimate of the
H= [-\ Rs
� (14)

states at the current time. The second step involves


correcting the predicted state estimate calculated in the Qij stands for the covariance of process(Vcs, Cs, and
fIrst step by incorporating the most recent process R,). Rij stands for the covariance of output(Vt and ib)
measurement to generate an updated state estimate. [5] noise.
The noises are assumed to be independent from each
other[6]. It is clear that
.-
powergUi
��
� ��'-·---
------ - ---�

=
QIV Qzz, Q33
L + v
1------,--,

var(w(Vcs)), var(w(Cs)), var(w(Rs)) (16)

(17)

(18) Battery Cycler

(a) Battery Circle Model

Then, Q , R can be written as


= [ QZl ][010
�l
Qu QIZ Q" '
Q Qzz QZ3

[varcwrSl) var(w(Cs))
Q31 Q3Z Q33 00
0
: J

(19)
0 varC (Rs
R= [RRZIll RRzz1]2 [10�] (b) SOC Calculation Model
Fig.3. Simulation Model for Coulomb Counting Method

= [var(vo(Vt)) var(VCib))
0] (20)
1.4

1.2


EKF is performed by (6)�(12). 1 /

0.8 �

\ /
II \
II. SIMULAnON VERIFICAnON u II
o
<f)
0.6 1\ /
Based on the analysis and mathematical description
in section I, the EKF method should provide a much \ Ij \ //
\
0.4

higher accurate SOC estimation than CC method. In


0.2 \ II I
f:::P
order to verify the mathematical model with the
iteration, simulation models for CC and EKF method o
o 500
::
1000 1500 2000 2500 3000 3500
� GI
4000 4500 5000
were developed in MA TLAB/Simulink. In the model Time(s)

shown in Fig.3 using CC method, the battery model Fig.4. Coulomb Counting Simulation Results. Red-7 Estimated SOC,
Blue-7 Real SOC
simulates charge and discharge cycle repeatedly. The
corresponding SOC will vary from 5% to 95%. It is
worthwhile to point out that the models in simulation For EKF, the integration estimation is eliminated.
software are ideal without noises. Two white noise EKF could perform estimation and regulate the error to
sources are added to approach the reality. Simulation minimum. Fig.5 shows the Extended Kalman Filter
result of CC is shown in Fig.4. It can be observed that based MATLAB/Simulink model. The same battery
as the battery gets charged and discharged charge and discharge profile as Fig.3 is adopted.
periodically[2], the estimated SOC gains an increasing Simulation results are obtained as Fig.6, which shows
error from the true SOC, i.e. the estimation by CC is the EKF based SOC estimation has a much higher
incapable of correcting its error[3][4]. This can be accuracy compared with cc. The estimated SOC curve
easily explained from the fact that CC method uses follows the true SOC curve closely.
integration to estimate the charge and discharge
capacitance with time. The measured noises will be
accumulated with time in the integration process.
EKF estimated OCV error is shown in Table I. Data in
I TSD�s ����, s. I
p Ol'l
e rg u l Table I is the average value collected during 10
charging cycles with 0.5C charging current.

-d-- •�.o--W
R. = vt u.-... �,
P I C,,,

_
B a ttetyCyd er

(a) Battery Circle Model

DISCHARGING PERFORMA.:"CE(AE18650C.26)
--2600mAh(t)1>ical)

A = II- 1 /{IU"Cs)
-lI{IU*Cs)J: [0 -lI( R p"Cp)JJ:
B = lllI(IU*Cs) OJ: [0 11C pll:
C "1I1 11: 1-1I1U - l / RsJ}:
4.5 -0.5C -IC -2C
0 "110 RsI: 11 / Rs O i l:

(b) SOC Calculation Model


4.0
Fig.5. Simulation Model for Extended Kalman Filter Method
>-

� 3.5


3.0
Ch;org�: 0.5C 10 ".2'-;4.2'- 10 3.5hr or 0.02C ('lIl·off ;01 RT
Dh('b;or,�: 0.2C/0.5Cllcn c 10 2.75\" :u RT

500 1000 1500 2000 2500 3000


Capacify I In.-\.h

Fig.8. Cell OCV vs. Capacity Chart

Table. I EKF OCV/SOC Estimation Error


. � -� �
Fig.6. EKF Simulation Results; Red: Real SOC,Blue: Estimated SOC
EKF Corres- TRUE Corres- SOC Error
Estimat ponding OCV ponding Percentage
ed SOC(%) (V) SOC(%) (%)
III. Test Bench and Experimental Validation OCV
(V)
In order to test the accuracy and feasibility of the EKF 9.2 7.7 9.19 7.69 0.1

in the real application, a test bench is set up shown in 9.4 13.5 9.42 13.53 0.2
9.6 23.1 9.65 23.2 0.5
Fig.7, which includes a 3-cell battery pack, a charging
9.8 43.3 9.87 43.6 0.7
power supply, a current sensor to measure the battery 10 52.0 9.98 52.1 0.2
current, and a TI DSP based control system. In order to
evaluate the EKF, the battery pack is charged from 10%
SOC to 90% SOc. During the charging period we IV. CONCLUSION
extract OCV and SOC at different terminal voltage of
9.0V, 9.2V, 9.4V, 9.6V, 9.8V and 1O.0V. At each point, The battery SOC estimation based on EKF proves to
when the estimation reaches the target voltage, the be accurate and robust. Additionally, EKF can track the
battery would be disconnected from the power supply. battery states such as internal resistance when battery
After 3 minutes, we read the battery OCV and compare degrades. EKF method provides a number of merits
it to the estimated value. Applying the estimated OCV compared with conventional CC method. EKF is
values to OCV vs. Capacity curve provided by battery exceptionally accurate in estimating non-linear system
manufacturer in Fig.8, SOC can then be obtained. The with multiple noise sources. It offers us the capability to
monitor the SOC/SOH as well as any battery [4] W. Steffens and P. LUrkens, Ladezustandsschiitzung von
bleibatterien mit hilfe des Kalman-filters,etzArchiv,vol. 8,no.
parameters as long as such parameters can be
7,1986,pp. 231-6. (In Gennan. English title: State of charge
characterized in the battery model. EKF provides a estimation of leadacid batteries using a Kalman filtering
series of methods for PHEV/EV battery monitoring. technique).
[5] Goddard Consulting Inc,Using an Extended Kalman Filter for

REFERENCE Object Tracking in Simulink,Web site as


http://www.goddardconsulting.calextended-kalman-filter.html.
accessed September 2012.
[I] G.Welch and Gray Bishop,An introduction to the Kalman Filter,
[6] Simon 1. Julier and Jeffrey K. Uhlmann,New extension of the
University of North Carolina at Chapel Hill,1997,pp. 3-15.
Kalman filter to nonlinear systems,Proc. SPIE 3068, Signal
[2] R. Giglioli,P. Pelachi,M. Raugi and G. Zini, A state of charge
Processing, Sensor Fusion,and Target Recognition VI,
observer for lead-acid batteries,Energia Elettrica,vol. 65,no. I.
182 ,July 28,1997,
1988,pp. 27-33.
[3] C. Barbier,H. Meyer,B. Nogarede and S. Bensaoud,A battery
state of charge indicator for electric vehicle,Proceedings of the
Institution of Mechanical Engineers. Automotive Electronics.
International Conference,17-19 May 1994,pp. 29-34,London,
UK.

View publication stats

You might also like