Observability Analysis and State Estimation of Lithium-Ion Batteries in The Presence of Sensor Biases
Observability Analysis and State Estimation of Lithium-Ion Batteries in The Presence of Sensor Biases
Abstract— This brief investigates the observability of one of constraints (PDAEs) that describe the thermodynamics, reac-
the most commonly used equivalent circuit models (ECMs) for tion kinetics, and transport within a battery cell.
lithium-ion batteries and presents a method to estimate the Due to the high computational complexity of applying
state of charge in the presence of sensor biases, highlighting
the importance of observability analysis for choosing appropri- state and parameter estimation algorithms to PDAEs, electro-
ate state estimation algorithms. Using a differential geometric chemical models are more difficult to implement in a BMS,
approach, necessary and sufficient conditions for the nonlinear despite the fact that they are able to accurately describe the
ECM to be observable are derived and are shown to be different battery dynamics in a wider operating range. There have been
from the conditions for the observability of the linearized model. some attempts to estimate the battery states using simpli-
It is then demonstrated that biases in the measurements, due to
sensor aging or calibration errors, can be estimated by applying a fied electrochemical models. For example, the single particle
nonlinear Kalman filter to an augmented model where the biases model (SPM), a simplification of the P2D model, is used
are incorporated into the state vector. Experiments are carried in many studies for state estimation [4]–[6]. The problem
out on a lithium-ion pouch cell and three types of nonlinear with the SPM is that it is valid only under low C-rates and
filters, the first-order extended Kalman filter (EKF), the second- the accuracy deteriorates when the applied current becomes
order EKF, and the unscented Kalman filter, are applied using
experimental data. The different performances of the filters are highly dynamic. State estimation of the full P2D model using
explained from the point of view of observability. a modified extended Kalman filter (EKF) has recently been
reported in [7], where the electrochemical model is solved
Index Terms— Battery, equivalent circuit model (ECM),
Kalman filtering, observability, sensor bias, state estimation. by the Chebyshev orthogonal collocation method to reduce
the computational cost. However, parameter estimation of the
model remains a significant challenge.
I. I NTRODUCTION For these reasons, currently a typical BMS uses an ECM,
although the parameters of the model are less easy to interpret
the local observability of the model at a particular state is some input functions u. By contrast, for a linear system,
different from the observability of the linearized model around y(x 1, u, t) = y(x 2 , u, t) should hold for any u if the two
this state. We then show that the battery states can still be states are distinguishable. This means that in general it is
estimated accurately even when there exist unknown biases in more difficult to distinguish two states of a nonlinear system
the sensors. This is because the augmented model that incorpo- because it may not be trivial to find an input u that gives
rates the unknown biases into the states is locally observable. different output functions. Moreover, for a linear system, local
Experiments are carried out on a lithium nickel manganese observability implies global observability. However, this is no
cobalt oxide (NMC) pouch cell (Kokam 740 mAh) and three longer the case for a nonlinear system.
types of nonlinear Kalman filters: the first-order EKF, the
second-order EKF, and the unscented Kalman filter (UKF) are B. Observability Rank Test
applied to estimate the SOC of the cell using experimental
The observability of a nonlinear system can be determined
data. The result shows that while the first-order EKF may
by a rank test that involves Lie derivatives. Suppose that
not be able to estimate the SOC when there is a sensor bias,
h(x) = [h 1 (x) . . . h p (x)]T is a p-dimensional vector function
the estimation given by the UKF has a much better accuracy.
on X and its j th component h j (x) is a real-valued smooth
The difference is explained by an observability analysis of the
function. Denote the gradient of h j as dh j , that is
augmented model.
The brief is organized as follows. Section II introduces the ∂h j ∂h j ∂h j
dh j = ...
definition and criteria for nonlinear observability. The ECM ∂ x1 ∂ x2 ∂ xn
under consideration is briefly discussed and its observability then the Lie derivative of h j with respect to f is a real-valued
is analyzed in Section III. Section IV presents the observability function defined by
analysis of augmented battery models with sensor biases
incorporated into the states. Experimental validation is carried
n
∂h j
L f h j = dh j · f = fi
out in Section V, and Section VI concludes this brief. ∂ xi
i=1
The observability of this linearized model can be determined Such a model is called an augmented model, while (2) is called
by checking the rank of the observability matrix the original model.
⎡ ⎤ The augmented model can be rewritten into the form in (3)
d VOC
−1 −1 (x ) where x = [V1 , V2 , Z , Ve ]T , u = I, y = Vm , f (x) =
⎡ ⎤ ⎢ dZ
0 ⎥
C ⎢ ⎥ [−(1/τ1)V1 − (1/τ2 )V2 0 0]T , g = [(1/C1 ) (1/C2 ) −
⎢ 1 1 ⎥
⎣CA ⎦ = ⎢ 0 ⎥. (1/Q) 0]T , and h(x) = VOC (Z ) − V1 − V2 + Ve . Note that the
⎢ τ τ ⎥
CA 2 ⎢ 1 2 ⎥ augmented model is not controllable.
⎣ 1 1 ⎦
− 2 − 2 0 For the case that there is an unknown bias in the current
τ1 τ2
sensor but no bias in the voltage sensor, the model can be
This matrix has full rank if and only if (d VOC /d Z )(x 0 ) = 0. reformulated in the same manner. Denote the bias by Ie and
However, this is not a necessary condition for nonlinear the inaccurate current measurement by Im , then I = Im − Ie is
system (2) to be locally observable at x 0 , so that system (2) the actual applied current. As a result, battery model (2) now
may be observable even if its linearization is not. becomes
IV. E STIMATION W ITH S ENSOR B IASES ⎡ ⎤ ⎡ 1 ⎤
1 1
− 0 0 −
The accuracy of state estimation is known to be dependent ⎡ ⎤ ⎢ τ1 C1 ⎥ ⎡ ⎤ ⎢ C1 ⎥
V̇1 ⎢ ⎥ ⎢ 1 ⎥
⎢ 1 1 ⎥ V1
on the quality (precision and accuracy) of the sensors that give ⎢V̇2 ⎥ ⎢ 0 − 0 − ⎥⎢V2 ⎥ ⎢ ⎢
⎥
⎥
the input and output measurements. It is commonly assumed ⎢ ⎥ =⎢ τ C ⎥⎢ ⎥ + ⎢ 2 ⎥ Im (7a)
⎣ Ż ⎦ ⎢ 2 2 ⎥⎣ ⎦
Z ⎢
C
⎥
that the current and voltage sensors in model (2) are subject ⎢ 1 ⎥ ⎢ 1⎥
I˙e ⎢ 0 0 0 ⎥ Ie ⎣ − ⎦
to zero-mean Gaussian noise, where the sensor precisions ⎣ Q ⎦ Q
are described by the variances of the Gaussian distributions. 0 0 0 0 0
However, the sensors may also have some unknown biases V = VOC (Z ) − V1 − V2 − Im Rs + Ie Rs . (7b)
due to aging or calibration errors, which are referred to as a
sensor bias fault, and there are mainly two ways to detect the When there are biases in both the current and voltage
fault: hardware redundancy and analytical redundancy [14]. sensors, an augmented model including both Ie and Ve in
In the hardware redundancy approach, redundant sensors are the state vector can be easily derived. For brevity, the model
used to measure one variable and a fault is detected if there is is not given here. In the following analysis, the focus is
a notable difference between the measurements from different mainly on the first case, which is described by model (6).
sensors. In the analytical redundancy approach, the system is The analysis can be readily extended to other cases and is not
analyzed using multiple-model-based techniques. repeated.
When there is a sensor bias fault, it is expected that the
accuracy of the state estimation deteriorates when the effect
of a sensor bias builds up over time. One approach that is B. Observability Analysis
able to estimate the sensor biases and the battery SOC at the
same time, without incorporating any additional sensors into It can be shown that for model (6)
the system, is to augment model [15]. As in [14] and [15], the
sensor biases are modeled as constants here. d VOC
dh = −1 − 1 1
dZ
A. ECM With Sensor Biases 1 1
dL kf h = − − 0 0
We first consider the case that there is an unknown bias (−τ1 )k (−τ2 )k
in the voltage sensor, while there is no bias in the current 1 d k+1 VOC
sensor. Denote the voltage sensor bias by Ve and the inaccurate dL kg h = 0 0 0
(−Q)k d Z k+1
voltage measurement by Vm , then Vm −Ve represents the actual
battery terminal voltage denoted by V . The difficulty is the for all k ∈ Z+ . Once again, Lie derivatives involving both
bias Ve is unknown and if we simply ignore it, the estimation f and g can be ignored in the rank test since they are all
based on model (2) and Vm will be inaccurate. The problem constants.
can be solved by including the bias Ve into the state vector Model (6) is locally observable at a point x 0 if the set O
and reformulating the model. Specifically, since V = Vm − Ve , [see (4) in Section III-B] evaluated at x 0 has n = 4 linearly
model (2) can now be reformulated as independent row vectors. This rank condition is satisfied if and
⎡ 1 ⎤
only if there exists an integer k ≥ 2 such that
⎡ 1 ⎤
⎡ ⎤ ⎢C ⎥
− 0 0 0 ⎡ ⎤ ⎢ 1 ⎥
d k VOC
V̇1 ⎢ τ1 ⎥ V1 ⎢ ⎥
⎢V̇2 ⎥ ⎢ ⎥⎢ ⎥ ⎢ 1 ⎥ (x 0 ) = 0. (8)
⎢ ⎥=⎢ ⎥ V2 ⎥ ⎢ C ⎥
1 d Zk
− ⎢
0 0⎥ ⎣ ⎦ + ⎢ 2 ⎥ I
⎣ Ż ⎦ ⎢ ⎢
0
τ2 ⎥ Z ⎢ ⎥
(6a)
⎣ 0 ⎦ ⎢ 1 ⎥
V̇e 0 0 0 Ve ⎢− ⎥ If condition (8) does not hold, then dL ig h is a
⎣ Q⎦
0 0 0 0 zero row vector for any i ∈ Z+ , which means that
0 O(x 0 ) can at most have rank 3. Therefore, the neces-
Vm = VOC (Z ) − V1 − V2 − I Rs + Ve . (6b) sity is proved. Now suppose the condition is satisfied,
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
necessary and sufficient condition for O(x 0 ) to have full rank, VALUES OF THE OCV P OLYNOMIAL C OEFFICIENTS
which is only a sufficient condition for system (6) to be locally
observable at x 0 .
It is interesting to note that the observability of system (6)
crucially depends on the nonlinearity of VOC . If the OCV
is a linear function of SOC such as in a capacitor, the
rank condition is not satisfied at any x 0 and system (6) is
unobservable.
A similar analysis can be applied to system (7). Although
the calculation is more laborious, it turns out that the condition
for system (7) to be locally observable at a point x 0 is the same
as that for system (6).
V. E XPERIMENTAL VALIDATION
TABLE II
In this section, using experimental data, several nonlinear VALUES OF M ODEL PARAMETERS
Kalman filters based on model (6) are implemented to estimate
the states of a lithium-ion battery when there is an unknown
bias in the voltage sensor.
A. Battery Test
The experiments were carried out on a 740-mAh Kokam
NMC lithium-ion pouch cell (SLPB533459). The data were
The parameters are identified using MATLAB’s system iden-
collected using a BioLogic SP-150 potentiostat and the tem-
tification toolbox and are given in Table II. The volt-
perature is fixed at 20 ◦C using a thermal chamber. A GITT
age measurements and the predicted output by the model
procedure with current 0.1C was used to determine the rela-
under the FUDS load are plotted in Fig. 3(c). To further
tionship between the OCV and SOC, and 50 data points were
validate the model, an ARTEMIS European urban driving
recorded in both the charge and discharge processes [16].
cycle (UDC) [18] shown in Fig. 3(b) is applied to the same
As shown in Fig. 2, there is a discrepancy between the charge
fully charged cell and simulation results under the UDC
and discharge curves due to hysteresis. The average of these
load using the identified parameters are compared with the
two curves is taken as the OCV–SOC
function and is approx-
experimental voltage measurements, as shown in Fig. 3(d). The
imated by a polynomial VOC = 12 k
k=0 ak Z , where the coeffi- maximal error is 21.1 mV and the RMSE is 4.78 mV, which
cients are given in Table I and the fitted polynomial is plotted
corresponds to 0.13% of the mean battery terminal voltage.
in Fig. 2. The maximal approximation error of this polynomial
in the SOC range [10%, 100%] compared with the aver-
aged OCV–SOC curve is 17.97 mV and the root-mean-square B. State Estimation Using Various Kalman Filters
error (RMSE) is 3.85 mV. To verify that the SOC can be estimated in the presence of
Before applying state estimation algorithms to either unknown sensor biases, we implement several nonlinear filters
model (2) or (6), the model parameters need to be identified. to model (6) using the experimental measurements of the cell
We apply a federal urban driving schedule (FUDS) current under the UDC load. The biased voltage measurements are
profile [17] shown in Fig. 3(a) to the cell with 100% initial obtained by adding a constant to the recorded voltage mea-
SOC and record the applied current and terminal voltage. surements. The constant is the voltage sensor bias, which is
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
Fig. 3. Current profiles and model validation results. (a) FUDS current Fig. 4. State estimation based on model (2) using the first-order EKF when
profile, training dataset. (b) UDC current profile, validation dataset. there is a bias in the voltage sensor. (a) Evolution of the true battery terminal
(c) Experimental and model outputs under the FUDS load. (d) Experimental voltage (blue curve), the measured voltage (green curve), and the prediction
and model outputs under the UDC load. by the EKF (red curve). (b) Evolution of the true SOC (blue curve) and the
estimated SOC (red curve).
VI. C ONCLUSION
The importance of observability analysis of nonlinear ECMs
for battery state estimation has not received much attention.
This brief analyzes the nonlinear observability of a widely
used second-order RC model for lithium-ion batteries. Using
the ECM as an example, it is pointed out that the local
observability of a nonlinear dynamic system at a certain
point is not the same as the observability of the system
linearized around the point. We then present a method to
estimate the battery SOC when there are unknown biases
in the sensors. The estimation is based on an augmented
model that incorporates the sensor biases into the state vector.
Fig. 5. State estimation based on model (6). (a) Voltage sensor bias The observability of the augmented model is shown to be
(blue curve) and the estimated bias by the first-order EKF (green curve), the dependent on the model nonlinearity. Experimental validation
second-order EKF (black curve), and the UKF (red curve). (b) Evolution of shows that it is vital to take the nonlinearity of the model into
the true SOC (blue curve) and the estimated SOC by the first-order EKF
(green curve), the second-order EKF (black curve), and the UKF (red curve). account in the estimation algorithm, highlighting the impor-
tance of observability analysis for state estimation. We also
show that accurate voltage measurement is critical for SOC
error quickly decreases to less than 1% and the RMSE between
estimation in a BMS using the original model, whereas current
t = 1000 s and t = 2000 s is 0.33%. We note that the results
measurement accuracy has a smaller impact as the Kalman
are very similar when the voltage sensor bias Ve is negative
filters are relatively robust against current sensor bias (due
or zero or when the initial guess of the SOC is smaller than
to their knowledge of the OCV–SOC ground truth and ECM
the true value.
parameters). If the model parameters and OCV curve are prone
A bias in the current sensor has smaller impact on the
to change over time, this makes the problem significantly more
performances of the nonlinear filters. When there is only a
challenging, but is a topic for future investigation.
bias Ie = −100 mA in the current measurement, the SOC
estimation given by the first-order EKF based on model (2)
has an RMSE of 2.80% between t = 1000 s and t = 2000 s. ACKNOWLEDGMENT
This means that the state estimation algorithm is relatively The authors would like to thank C. Birkl for providing his
robust against current sensor biases [21]. Nevertheless, the help in the experiments.
estimation accuracy can be further improved if the UKF is
applied to model (7), with the RMSE of the estimated SOC in R EFERENCES
the same time range being reduced to 0.43%. Furthermore, the
current sensor bias Ie can be tracked accurately by the UKF. [1] D. A. Howey and S. M. M. Alavi, “Rechargeable battery energy
storage system design,” in Handbook of Clean Energy Systems, vol. 5.
As a comparison, the second-order EKF based on (7) has a New York, NY, USA: Wiley, 2015.
similar accuracy and the first-order EKF is the least accurate [2] X. Hu, S. Li, and H. Peng, “A comparative study of equivalent circuit
in estimating the SOC and the bias. models for Li-ion batteries,” J. Power Sour., vol. 198, pp. 359–367,
Jan. 2012.
The purpose of this section is not to claim that the UKF is [3] M. Doyle, T. F. Fuller, and J. Newman, “Modeling of galvano-
always superior to the first-order EKF, for if there are no sensor static charge and discharge of the lithium/polymer/insertion cell,”
biases, then the first-order EKF based on model (2) gives as J. Electrochem. Soc., vol. 140, no. 6, pp. 1526–1533, 1993.
[4] S. J. Moura, N. A. Chaturvedi, and M. Krstić, “Adaptive partial
accurate an estimation as the UKF does. The objective is rather differential equation observer for battery state-of-charge/state-of-health
to show that it is important to analyze the observability of a estimation via an electrochemical model,” J. Dyn. Syst., Meas., Control,
model before choosing an estimation algorithm, with particular vol. 136, no. 1, p. 011015, Oct. 2013.
[5] D. Di Domenico, A. Stefanopoulou, and G. Fiengo, “Lithium-ion
relevance to battery SOC estimation. In addition, it presents a battery state of charge and critical surface charge estimation using an
method to estimate the sensor bias without incorporating any electrochemical model-based extended Kalman filter,” J. Dyn. Syst.,
additional sensors into the system. Meas., Control, vol. 132, no. 6, p. 061302, 2010.
[6] A. Bartlett, J. Marcicki, S. Onori, G. Rizzoni, X. G. Yang, and T. Miller,
Note that in the case that there are biases in both the voltage “Electrochemical model-based state of charge and capacity estimation
and current sensors, it is probably not possible to accurately for a composite electrode lithium-ion battery,” IEEE Trans. Control Syst.
estimate the SOC and the biases at the same time using Technol., vol. 24, no. 2, pp. 384–399, Mar. 2016.
[7] A. M. Bizeray, S. Zhao, S. R. Duncan, and D. A. Howey, “Lithium-
an augmented model, even when the model appears locally ion battery thermal-electrochemical model-based state estimation using
observable. This might be because usually the observability orthogonal collocation and a modified extended Kalman filter,” J. Power
matrix is ill conditioned despite its full rank. Intuitively, this Sour., vol. 296, pp. 400–412, Nov. 2015.
[8] G. L. Plett, “Extended Kalman filtering for battery management systems
makes sense: if we have both a current sensor bias and of LiPB-based HEV battery packs: Part 1. Background,” J. Power Sour.,
a voltage sensor bias, there is ambiguity regarding whether vol. 134, no. 12, pp. 252–261, 2004.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
[9] G. L. Plett, “Sigma-point Kalman filtering for battery management [16] C. R. Birkl, E. McTurk, M. R. Roberts, P. G. Bruce, and D. A. Howey,
systems of LiPB-based HEV battery packs: Part 1: Introduction and “A parametric open circuit voltage model for lithium ion batteries,”
state estimation,” J. Power Sour., vol. 161, no. 2, pp. 1356–1368, 2006. J. Electrochem. Soc., vol. 162, no. 12, pp. A2271–A2280,
[10] X. Lin, A. G. Stefanopoulou, Y. Li, and R. D. Anderson, “State of 2015.
charge imbalance estimation for battery strings under reduced volt- [17] Electric Vehicle Battery Test Procedures Manual, Idaho Nat. Eng.
age sensing,” IEEE Trans. Control Syst. Technol., vol. 23, no. 3, Environ. Lab., Idaho Falls, ID, USA, 1996.
pp. 1052–1062, May 2015. [18] M. André, “The ARTEMIS European driving cycles for measuring car
[11] M. Vidyasagar, Nonlinear Systems Analysis, vol. 42. Philadelphia, PA, pollutant emissions,” Sci. Total Environ., vols. 334–335, pp. 73–84,
USA: SIAM, 2002. Dec. 2004.
[12] C. Weng, J. Sun, and H. Peng, “A unified open-circuit-voltage model [19] D. Simon, Optimal State Estimation: Kalman, H∞ , and Nonlinear
of lithium-ion batteries for state-of-charge estimation and state-of-health Approaches. New York, NY, USA: Wiley, 2006.
monitoring,” J. Power Sour., vol. 258, pp. 228–237, Jul. 2014. [20] S. Julier, J. Uhlmann, and H. F. Durrant-Whyte, “A new method for
[13] H. Nijmeijer and A. van der Schaft, Nonlinear Dynamical Control the nonlinear transformation of means and covariances in filters and
Systems. New York, NY, USA: Springer-Verlag, 1990. estimators,” IEEE Trans. Autom. Control, vol. 45, no. 3, pp. 477–482,
[14] A. T. Vemuri, “Sensor bias fault diagnosis in a class of nonlinear Mar. 2000.
systems,” IEEE Trans. Autom. Control, vol. 46, no. 6, pp. 949–954, [21] J. K. Barillas, J. Li, C. Günther, and M. A. Danzer, “A comparative
Jun. 2001. study and validation of state estimation algorithms for Li-ion batteries
[15] F. Gustafsson, Adaptive Filtering and Change Detection. New York, NY, in battery management systems,” Appl. Energy, vol. 155, pp. 455–462,
USA: Wiley, 2000. Oct. 2015.