1. Introduction
Li-ion batteries, valued for their high energy and power density, are widely used in electromobility and stationary applications. Ensuring their safety and longevity requires a Battery Management System (BMS). Besides basic functions like cell balancing and protection, an advanced BMS must accurately estimate the battery’s State of Charge (SOC) to predict remaining operating time and maintain a safe range.
Traditional SOC estimation methods like Coulomb-counting are simple and fast but have limitations in handling noise and incremental bias. More effective are model-based estimators using an equivalent circuit model, such as the Randles circuit [
1], like Kalman filters. Given the non-linear characteristics of Li-ion batteries, non-linear Kalman filters must be used, like the extended and unscented Kalman filters [
2], providing accurate SOC predictions.
Battery parameters change over time due to temperature and aging, affecting estimation accuracy. The joint and dual Sigma Point Kalman Filters (SPKFs) address this by estimating states and parameters, with joint SPKF augmenting the state matrix with parameters and dual SPKF using separate filters for state and parameter estimation [
3,
4]. This study compares the performance of the general, joint, and dual SPKF in estimating the states and parameters of a Li-ion battery cell.
2. Dynamic Model of the Battery
To model the battery characteristics, the Randles equivalent circuit has been applied as described in [
5], which is depicted in
Figure 1, and the discretized state-space model of the equivalent circuit is:
where
denotes the charge-transfer resistance,
is the serial resistance of the cell,
represents the double-layer capacity,
is the cell’s state of charge,
is the time constant of the
-
subsystem, and
is the sampling time.
is the Coulombic efficiency and
is the capacity of the cell. The
is the Open Circuit Voltage (OCV), which is the function of the SOC.
is the cell current, which is the sum of
and
, and
is the cell’s terminal voltage.
3. The Sigma Point Kalman Filter
The Kalman filter is the optimum state estimator for linear systems with uncorrelated zero-mean Gaussian process and measurement noise. In the case of battery cells, because of the
function the system is nonlinear, so the use of a nonlinear Kalman filter is needed. Nonlinear Kalman filters are based on the nonlinear state-space model of the system:
where
is the state vector,
is the input vector,
is the output vector, and
is the unit delay.
is the Gaussian process noise with 0 mean and
covariance and
is the Gaussian measurement noise with 0 mean and
covariance.
The fundamental concept of sigma point Kalman filter methods is that the system’s state and output equations are evaluated at a specific number and value of so-called sigma points. The mean and covariance of the resulting state and output sigma point vectors provide the predicted states, outputs, and the covariance of their errors.
The evaluation of a function
with a random vector input using sigma points is performed as follows [
6]:
Select sigma points such that their weighted mean and covariance match those of the input random variable;
Evaluate the function at each sigma point, obtaining the output sigma points ;
Finally, compute the mean and covariance of the function’s output from the output sigma points .
To determine the sigma points, we need the mean
and covariance
of the random vector
to be modeled. If the random vector has
elements, the
sigma points used for modeling can be determined as follows:
where
is a lower triangular matrix computed using Cholesky decomposition. The mean of the input random vector from the sigma points is calculated as:
and the covariance is:
where
is the
-th sigma point in
, and
,
, and
are weighting factors influencing the calculation of the sigma points, the mean of the modelled variable, and the covariance. After evaluating the function at the input sigma points, the mean and covariance of the output random vector can be calculated similarly to the input random vector.
The various SPKF methods differ only in the determination of the weighting factors. In the case of the Unscented KF (UKF) we have three tuning parameters, and in the case of the Central Difference KF (CDKF) we only have
. The exact method for calculating the weighting factors from the tuning parameters can be found in [
6].
Using the sigma point method, the general steps of the SPKF can be derived:
For predicting the next state:
First, create an augmented state matrix using the previous estimated state, process noise, and measurement noise, and an augmented block diagonal covariance matrix using the previous estimation error covariance, process noise covariance, and measurement noise covariance;
Using these and Equation (5) the sigma points are generated;
Where for state variables, the first rows contain the sigma points for state variables, the next rows contain sigma points for process noise, and the subsequent rows contain sigma points for measurement noise;
To determine the next state prediction, evaluate the state Equation (3) using the sigma points for state variables and process noise. From the resulting sigma points, the next predicted state can be determined using Equation (6).
The covariance of the state prediction error can be determined using the sigma points for state variables and Equation (7);
To determine the system output, evaluate the output Equation (4) using the sigma points for state variables and measurement noise, and the output estimate is computed using Equation (6);
To determine the Kalman gain, first calculate the covariance matrix
for the output estimate using Equation (7).as well as the cross-covariance between the state prediction and the output estimate:
Using these covariance matrices, the Kalman gain is:
The correction step is performed in the same manner as in all Kalman filters:
Finally, the estimation error covariance is updated as:
To implement the sigma point Kalman filter for state observation of the cell model, the previously described SPKF method should be applied using the system Equation (1) and the output Equation (2) of the cell model. In this article, a CDKF sigma point Kalman filter is implemented.
4. The Joint Sigma Point Kalman Filter
The joint form of the sigma point Kalman filter is based on the classical mathematical formulae that are used for state estimation. In order to estimate the parameters as well as the states at the same time, the state vector is expanded by the
parameter vector to form an augmented state vector. The estimated parameters of the model are
,
, and
. By estimating the
parameter the time constant of the
-
subsystem changes, so the estimation of
is not needed. Instead, the cell capacity and by it the State of Health (SOH) of the cell is estimated:
The fundamental form of joint estimation is:
where
is a zero-mean, Gaussian noise to drive the change in parameters, and the estimated parameters are also included in the measurement equation so the
matrix can contain covariance values for them too.
The joint SPKF can be implemented by applying the general SPKF method for the augmented state vector, state equation, and noise matrix. In Equation (10) when calculating the error between the measured and the predicted output for the included parameters the estimated value is subtracted from the previous estimation.
5. The Dual Sigma Point Kalman Filter
In the case of dual estimation, two Kalman filters are implemented with mixed signals, one for estimation of states and another for parameters. The goal is the same as in the case of the joint estimation, but because of the smaller matrix sizes the computational complexity is lower. However, by having separate matrices for state and parameter estimation the cross-covariance between the two is lost, leading to possibly poorer performance.
The state equation for the state estimator uses the parameter vector as an input and can be written as:
The model for the parameter estimator is:
where
is 0 mean, Gaussian, and has
covariance matrix.
To implement the dual SPKF, the general SPKF steps are implemented for the state estimator and for the parameter estimator as well and the two estimators use the estimated values of each other. The measurement equation of the parameter estimator and the state estimator is the same, but because of the different number of sigma points it needs to be evaluated separately.
6. Model Identification
The performance of three Kalman filter methods was evaluated for state and parameter estimation of a Samsung INR18650-13L battery cell under various operating conditions. The data used in this analysis were provided by our colleagues at the University, and the complete dataset along with detailed measurement information is available in [
7].
To model the battery cell, the capacity, Coulombic efficiency, and
curve were determined from constant charge and discharge measurements conducted at
C between the maximum voltage and
V at 25 °C. The cell’s capacity, calculated as the total charge removed during constant discharge, was found to be
mAh. The Coulombic efficiency, derived from the ratio of total charge absorbed during charging to total charge removed during discharging, was
. The
curve is the weighted average of the terminal voltage during constant charge and discharge operations, where the weighting factor is the current. For the model, the
function was interpolated using piecewise linear interpolation. The resulting
curve is shown in
Figure 2.
The series resistance, charge transfer resistance, and double-layer capacitance parameters of the model were identified from the transient discharge measurement of the cell at 25 °C. During the measurement, 1C discharge current was applied on the cell for 360 s periodically with 60 s of relaxation. The parameters were estimated based on exponential regression where the “lsqcurvefit” function in Matlab was used for fitting. The calculated parameters were used for the general SPKF and as an initial value for the joint and dual SPKFs. The identified parameter values are , , and .
7. Comparison of the SPKF Methods
The performance of the three SPKF implementations was evaluated by estimating the state and parameters of the battery cell during a Worldwide Harmonized Light-Duty Vehicles Test Procedure (WLTP), followed by a 1C discharge of the cell at different temperatures. In the paper, we only present the results at 25 °C, but temperature differences do not significantly affect performance due to the parameter estimation.
The SOC and cell voltage estimation error by the three SPKFs is shown in
Figure 3. Initially, the accuracy of all three SPKF methods is comparable, as the initial parameters are close to the actual values. However, as the model parameters begin to deviate from their true values, the performance of the general SPKF declines. Conversely, the dual and joint SPKF methods manage to correct the errors by estimating the parameter values.
Figure 4 shows the estimated
and
parameters of the cell. Since the cell capacity remains approximately constant during the test, it is not included in the figure. It can be observed that the error in the identified
function is primarily compensated by the series resistance parameter. By adjusting the
,
, and
covariance matrices of the Kalman filters, the extent of this parameter adjustment can be controlled, allowing to determine how much the filters should compensate for errors in the
curve.
The three filters were implemented in a Matlab/Simulink environment. Simulating the s long measurement took s in the case of the general SPKF of which calling the block for the SPKF took 0.303 s. In the case of the joint SPKF, the simulation lasted for s of which the joint SPKF block took 0.953 s. Simulating the measurement with the dual SPKF took s of which the filter ran for s. Both the joint and dual SPKFs had a significantly higher computational cost than the general SPKF, but running the dual SPKF took s less than running the joint SPKF which is an about % better performance in computational cost.
This difference is caused by the smaller matrix operations, but because the sigma point method in itself requires large matrix operations, separating the state and parameter variables does not cause that significant change.
8. Conclusions
In this paper the general, the joint, and the dual sigma point Kalman filters were implemented for estimating the state and parameters of a Samsung 18650INR13L Li-ion battery cell. Their performance was compared on state estimation and computational cost on a WLTP test cycle followed by a 1C discharge of the cell. It was shown that the dual and joint SPKFs outperformed the general SPKF with the help of estimating the cell parameters along with the states, leading them to be able to compensate for the parameter drift occurring during the operation of the cell. These two methods could estimate the battery states similarly, but the dual SPKF had an approximately 6% better computational performance which is not that significant but can be beneficial in the case of implementation in a BMS. To improve the robustness of these Kalman filters, the estimation of the cell capacity was also implemented, making them able to maintain their performance despite the cell aging.
Author Contributions
Conceptualization, T.H. and D.F.; methodology, T.H. and D.F.; software, T.H.; validation, T.H. and D.F.; formal analysis, T.H.; investigation, T.H.; resources, T.H.; data curation, T.H.; writing—original draft preparation, T.H.; writing—review and editing, T.H.; visualization, T.H.; supervision, D.F. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Dataset available on request from the authors.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Illig, J. Physically based Impedance Modelling of Lithium-Ion Cells. Ph.D. Thesis, Karlsruhe Institute of Technology, Karlsruhe, Germany, 2014. [Google Scholar]
- He, H.; Qin, H.; Sun, X.; Shui, Y. Comparison Study on the Battery SoC Estimation with EKF and UKF Algorithms. Energies 2013, 6, 5088–5100. [Google Scholar] [CrossRef]
- Plett, G.L. Sigma-point Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 1: Introduction and state estimation. J. Power Sources 2006, 161, 1356–1368. [Google Scholar] [CrossRef]
- Plett, G.L. Sigma-point Kalman filtering for battery management systems of LiPB-based HEV battery packs: Part 2: Simultaneous state and parameter estimation. J. Power Sources 2006, 161, 1369–1384. [Google Scholar] [CrossRef]
- Csomós, B.; Fodor, D.; Kohlrusz, G. Initial Electrical Parameter Validation in Lead-Acid Battery Model Used for State Estimation. Hung. J. Ind. Chem. 2017, 45, 67–71. [Google Scholar] [CrossRef]
- Plett, G.L. Battery Management Systems, Volume II: Equivalent-Circuit Methods; Artech House: Norwood, MA, USA, 2015. [Google Scholar]
- Kocsis Szürke, S.; Dineva, A.; Csomós, B. Complex Testing Procedure for 18,650 Batteries. IEEEDataPort. 2021. Available online: https://doi.org/10.21227/gg24-sj16 (accessed on 28 October 2024).
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).