1. Introduction
The energy crisis and environmental issues regarding peaking petroleum production and greenhouse gas emissions have promoted the development of various kinds of electric vehicles (EVs). Lithium-ion batteries are attracting more and more attention as the energy storage system in today’s EV market, due to their inherent benefits of high power and energy density, long lifespan and low maintenance cost [
1]. These growing demands make the battery performance and life of critical importance. To guarantee the battery performance, reliability and life, a battery management system is required to perform the critical functions like State-of-Charge (SoC) and State-of-Health (SoH) estimations, and over-current, and under-/over-voltage protection [
2,
3,
4]. These critical functions rely deeply on embedded current and voltage sensor measurements. The sensors in the battery system may present different kinds of failures because of manufacturing defects, extended exposure to high temperature, and external shock or vibrations [
5]. If the current or voltage sensor is faulty, the battery SoC and SoH estimations may be affected. An inaccurately estimated SoC acting in a role similar to that of a fuel meter for an internal combustion engine, may result in the battery suffering from over-charge or/and over-discharge [
6]. This will accelerate the batter aging and decrease the battery life. Moreover, the current and voltage protection circuitries may be not working properly in the case of a faulty sensor. Therefore, it is imperative to develop a reliable and robust sensor fault diagnosis scheme for the lithium-ion battery that has been rarely addressed in the literature.
Data-driven and model-based fault diagnosis approaches are broadly applied in industrial applications [
7]. The data-driven approach greatly depends on the analysis of extensive historical data to make a fault decision, but along with the major problems of time consumption, complexity of training, and computational cost [
8]. However, model-based methods require an accurate mathematical model to capture the system process behaviors, and to help understand the underlying characteristics. With the benefits of low cost and high flexibility, model-based fault diagnosis has been extensively used to solve the challenge of accurate fault diagnosis in recent works. Observer-based fault diagnosis approaches further improve the robustness of model-based technique by avoiding the fault information loss due to the inaccurate initial value and unknown disturbance [
9].
A bank of reduced order Luenberger observers (LOs) were applied to detect the variation of battery internal resistance in [
10]. LO offers good performance under noise-free conditions, but in the presence of noise, it may face the challenge of achieving a satisfactory result. The nonlinear parity equation approach was used for a lithium-ion battery in a noise-free environment [
11], but assuming the temperature data is always known. A multiple-model based fault diagnosis scheme was proposed for the lithium-ion battery to detect the over-charge and over-discharge with the use of a bank of extended Kalman filters (EKFs) in [
12]. This method requires the identification of a healthy model, over-charge model and over-discharge model, and each model works in parallel with an EKF. The major problems of this approach may be attributed to the large computational demands of identifying each model and running a bank of EKFs. To the best of our knowledge, the topic of battery sensor fault diagnosis is still very rare.
In this paper, a systematic model-based fault diagnosis scheme is proposed for a lithium-ion battery cell to detect current or voltage sensor faults. This is just an example, and this methodology can be generally applied to any other faults of interest. For the diagnostic implementation, EKF is used to generate the residual carrying fault information. The use of EKF-based fault diagnosis shows good capabilities of noise robustness and guaranteeing accurate fault decisions [
13,
14,
15,
16,
17]. It provides the benefits of detecting a fault at an early stage, decoupling the faults of interest from others, and minimizing the influences due to the model uncertainties and unknown disturbances. Besides, EKF can achieve a good diagnostic performance with the inherent benefits of being easily implementable and offering less computational complexity. Despite these potential benefits, EKF has not been used for the critical topic of battery sensor fault diagnosis. Further, the generated residual is evaluated by a statistical inference method that determines the presence of a fault. Moreover, to emphasize the importance of battery sensor fault diagnosis, the effects of sensors faults on SoC estimation are analyzed. Finally, the effectiveness of the proposed diagnostic scheme is experimentally validated under two different driving cycles, and the results show the current or voltage sensor fault could be accurately detected.
The rest of this paper is organized as follows:
Section 2 describes the battery modeling, while
Section 3 presents the model-based fault diagnosis scheme.
Section 4 gives the battery experimental design and model identification results, and
Section 5 analyzes the effects of sensors faults on battery SoC estimation. The diagnostic experimental evaluation and resulting conclusions are given in
Section 6 and
Section 7, respectively.
2. Battery Modeling
For modeling a lithium-ion battery, different kinds of techniques have been proposed in the literature like electrochemical, experimental, neutral networks, and equivalent circuit modeling [
2]. In particular, the equivalent circuit models (ECMs) are the most commonly used approaches for control-oriented applications due to their good representation of cell dynamics and less computational demands. A comprehensive study of different order ECMs was presented, showing that higher order models have a better representation of the electrochemical phenomenon but at the expense of a higher computational demand [
18]. To balance the model accuracy and computational demands, the second order ECM is used in this work. The model, as shown in
Figure 1, is composed of an open circuit voltage (OCV)
Uoc, an ohmic resistance
R, and two parallel RC networks (
Rpc-
Cpc, and
Rpd-
Cpd). The
Rpc-
Cpc network represents the interfacial impedance of the cell, while the
Rpd-
Cpd network depicts the local properties of the electrode. The equivalent circuit parameters are dependent on the battery SoC, temperature and aging. In this study, the battery operation temperature is assumed to be constant and the battery aging is not considered. The model representations with the Kirchhoff’s voltage law are given by:
where
I is the current that is positive at discharge and negative at charge;
U is the cell terminal voltage;
Upc is the voltage drop across the capacitor
Cpc; and
Upd is the voltage drop across the capacitor
Cpd.
Figure 1.
Second order equivalent circuit model.
Figure 1.
Second order equivalent circuit model.
The battery OCV is usually a nonlinear function of SoC, and it can be expressed as:
The nonlinear relationship can be calibrated through experimental tests. The battery SoC is defined as the ratio of the remaining useful capacity to the total available capacity [
2]. The SoC calculated by Coulomb counting can be expressed in the discrete form as:
where
Cn is the battery nominal capacity in Ampere-hours; η is the coulomb efficiency assumed to be 1 at charging and 0.98 at discharging as the battery works in a limited current range;
k is the time index; and Δ
t is the time interval.
Using the zero-order hold (ZOH) discretization method [
19], the discrete time form of model dynamics are given by:
For a nonlinear time invariant system [
20], the dynamics in discrete time are expressed as:
where
wk and
vk are an independent, zero mean, Gaussian process and measurement noise of covariance
Qk and
Vk, respectively;
g(
xk,
uk) is the nonlinear system process function; and
h(
xk,
uk) is the nonlinear measurement function.
The state variables for the battery cell are defined as
xk = [
Upc(
k)
Upd(
k)
SoC(
k)]
T, and the functions
g(
xk,
uk) and
h(
xk,
uk) can be expressed as:
3. Model-based Fault Diagnosis Scheme
Model-based fault diagnosis requires an accurate mathematical model to represent the system processes. This process model should show a good agreement with the system dynamics, and meanwhile it should be used to generate residual by comparing the model response and measured process output. Thus, there may be some errors in the residual because of inaccurate initial values, and unknown disturbances. To surmount this issue, the process model and subsequent residual generation process are replaced by the state observables, which is called observer-based fault diagnosis [
7].
The general configuration of EKF-based fault diagnosis is shown in
Figure 2. EKF works in parallel with the lithium-ion battery cell, and based on the measured input current and output voltage, the battery states are estimated. The estimated states are used to further predict the battery output voltage
Û(
k). The residual with the fault information is then generated by comparing the EKF-estimated and measured output voltage. To make a reliable fault decision, the generated residual will be evaluated by a statistical inference method. In this work, it is assumed that only one sensor fault is present at a time.
Figure 2.
Schematic of the proposed fault diagnosis.
Figure 2.
Schematic of the proposed fault diagnosis.
3.1. Considered Sensor Fault
Most of the current and voltage sensors used in the battery systems of EVs are Hall effect sensors, which are subject to bias (offset) and gain fault (scaling) [
3]:
Bias is a constant offset from the nominal statistics of the sensor signal. The current sensor is usually subject to bias faults, that may be caused by flaws in the sensor core such as degradation or breakage, and abrupt current changes [
5].
Gain fault (scaling): magnitudes are scaled by a factor where the form of the waveform itself does not change. Gain faults are assumed to occur in the voltage sensor. This fault mode may present due to long exposures to high temperatures, and external shock or vibrations [
5].
In industrial application, it has been demonstrated that the bias and gain faults could be considered additive faults that are commonly modelled as [
5,
14,
16]:
where
yx is the current or voltage sensor measurement;
x is the battery input current
I or terminal voltage
U; and
fx is the current fault or voltage fault value.
3.2. Extended Kalman Filter Design
For a nonlinear system, the basic idea of EKF for state estimation is to linearize the nonlinear dynamics around the current mean and covariance [
20]. The time update equations to calculate the
a priori estimations for the states and error covariance are given by:
while the measurement update equations to correct the
a priori estimation for the state and error covariance to get an improved
a posteriori estimation, are defined as:
where
is the
a priori state estimate at step
k;
is the
a priori covariance estimate at step
k;
represents the updated
a posteriori state estimate;
is the updated
a posteriori covariance estimate; and
Gk is the Kalman gain. For the battery dynamics, the Jacobian matrix
Ak and observation matrix
Ck are given by:
The estimated output voltage is expressed as:
Then the residual carrying the fault/or fault-free information, can be generated by comparing the estimated and measured output voltage defined as:
where
r is the generated residual; and
yU(
k) is the measured terminal voltage. Assuming there is no measurement noise and modelling error, the residual
r would be zero in the sensor fault-free case; the residual
r = 0 will be violated if a fault occurs.
3.3. Residual Evaluation
Due to the existing modelling error and measurement noise, the residual would be non-zero even under healthy sensor conditions, therefore, the conventional residual evaluation methods like constant thresholding would be not sufficient to evaluate the residual. To reduce the false alarms or missed detection instances, a statistical cumulative sum (CUSUM) test is applied [
21]. The CUSUM test is to test two hypotheses
H0 and
H1 against each other to determine which of them describes the observed data, where
H0 and
H1 represent the no-fault and faulty case, respectively. The cumulative sum of the log-likelihood ratio of an observation
z is defined as:
where
z(
i) is the Gaussian distributed observed signal,
i.e., the residual
r;
s(·) is the log-likelihood ratio;
S(
k) is the cumulative sum of the log-likelihood ratio, and it will be increasing during the fault occurring.
pH1 and
pH0 are the probability density function in the faulty and fault-free case, respectively;
H1~
N(μ
1, σ
12) and
H0~
N(μ
0, σ
02).
If both the mean and variance of the residual change, the log-likelihood ratio
s(
z) is derived as:
The fault decision logic is defined as:
where
J is the pre-defined threshold that is calibrated through experiments. For the fault flag, “1” means there is a fault, while “0” means there is no fault.
4. Experiment Design and Model Identification
The aim of this section is to identify the battery model through experimental tests before implementing the diagnostic scheme. Experiments have been conducted on a manganese-based lithium-ion battery cell with the rated capacity of 32 Ah and nominal voltage of 4.2 V. The battery experimental setup, as shown in
Figure 3, is composed of a battery test system (Arbin BT 2000), a humidifier chamber (CSZ’s Z-plus 32) to provide a controlled environment with temperature ranging from −55 °C to 85 °C, an auxiliary data acquisition unit to collect the measured signals, and a computer with Arbin’s MITS Pro software used for controlling the battery test system and storing the data. The BT 2000 is used to charge and discharge the battery according to the designed program with a maximum current of 300 A and maximum voltage of 60 V, and it can also record the current, voltage data, as well as Amp-hours (Ah)
etc. The current and voltage data also can be collected by the auxiliary acquisition unit. The current and voltage data was recorded with a sample frequency of 10 Hz at the temperature 25 °C. The recorded current is taken as positive at discharge and negative at charge. To guarantee the initial SoC is always known, prior to each test, the battery was charged to 100%.
Figure 3.
Schematic of the battery test bench.
Figure 3.
Schematic of the battery test bench.
The tested available capacity is around 30.86 Ah. Through experimental tests, the recorded OCV data at each given SoC were obtained and plotted in
Figure 4. The OCV-SoC relationship can be captured by a sixth order polynomial function given by:
where
a1 = 36.43,
a2 = −123,
a3 = 165,
a4 = −111.5,
a5 = 39.48,
a6 = −6.36,
a7 = 4.12. The detailed processes of the capacity and OCV tests can be found in [
22].
The hybrid pulse test was performed to identify the equivalent parameters
R,
Rpc,
Cpc,
Rpd and
Cpd at each given SoC [
22].
Figure 5a,b show the input current and corresponding voltage, while
Figure 5c,d plot the amplified current pulses and voltages at 90% SoC. To identify these parameters, the recursive least squares with forgetting factor technique is used.
Figure 4.
Recorded OCV points and curve fitting results.
Figure 4.
Recorded OCV points and curve fitting results.
Figure 5.
Hybrid pulse test. (a) Current demand; (b) Corresponding voltage; (c) Current pulses at SoC 90%; (d) Voltage of current pulse at SoC 90%.
Figure 5.
Hybrid pulse test. (a) Current demand; (b) Corresponding voltage; (c) Current pulses at SoC 90%; (d) Voltage of current pulse at SoC 90%.
4.1. Equivalent Circuit Parameters Identification
Compared to the standard recursive least squares (RLS), the RLS with forgetting factor (RLSF) can give less weight to the older data and more weight to more recent data, which is appropriate for time-variant parameter identification [
19]. The system to be identified can be expressed in the discrete time form as:
where
y(
k) is the observed battery voltage, θ is the parameter vector to be identified, and φ(
k) is the regressor matrix with the observed current and voltage data.
Equations (6) and (7) can be represented as:
The voltage difference
Ud =
U-
Uoc is considered as the OCV has been obtained. Then
y(
k) in Equation (26) would be
Ud(
k). Equations (8) and (27) through the z-transformation can be written as:
Through the inverse z-transformation, Equation (29) is rewritten as:
The parametric form for the battery model is given by:
The RLSF estimation equations can be illustrated as:
where
Ud(
k) is the observed voltage difference;
P(
k) is the covariance matrix;
K(
k) is the algorithm gain; and
λ is the forgetting factor, 0<
λ ≤ 1. The identified parameters at SoC from 20% to 90% are plotted in
Figure 6.
Figure 6.
Parameters identification results. (a) Identified R; (b) Identified Rpc; (c) Identified Cpc; (d) Identified Rpd; (e) Identified Cpd.
Figure 6.
Parameters identification results. (a) Identified R; (b) Identified Rpc; (c) Identified Cpc; (d) Identified Rpd; (e) Identified Cpd.
4.2. Model Validation
The scaled Urban Driving Cycle (UDC) and Dynamic Stress Test (DST) are used for the battery to simulate the actual driving cycles of EVs. These driving cycles were firstly performed to validate the model with the identified parameters.
Figure 7 shows the model validation results under the ten UDC cycles, and the initial SoC is set to 1.
Figure 7a–c plots the input current, amplified current of one driving cycle, and SoC trajectory, respectively.
Figure 7d shows the comparison of experimental and model output voltage, while
Figure 7e plots the voltage error. It can be found that the maximum error is around 0.012 V.
Figure 7f plots the amplified portion of experimental and output voltages showing more details. The root mean square (RMS) value under ten UDC cycles is around 27 mV. Similar results under DST test are plotted in
Figure 8. The maximum absolute error is around 0.025 V, while the RMS value is 20.6 mV. According to the results, it can be concluded that the model could accurately capture the cell dynamics, and it is suitable to be used for model-based fault diagnosis.
Figure 7.
Model validation under UDC test. (a) Input current profile; (b) Amplified current of one driving cycle; (c) SoC trajectory; (d) Comparison of experimental and model output voltages; (e) Voltage error; (f) Amplified experimental and model output voltage.
Figure 7.
Model validation under UDC test. (a) Input current profile; (b) Amplified current of one driving cycle; (c) SoC trajectory; (d) Comparison of experimental and model output voltages; (e) Voltage error; (f) Amplified experimental and model output voltage.
Figure 8.
Model validation under DST test. (a) Input current profile; (b) Amplified current of one DST driving cycle; (c) SoC trajectory; (d) Comparison of experimental and model output voltages; (e) Voltage error; (f) Amplified experimental and model output voltage.
Figure 8.
Model validation under DST test. (a) Input current profile; (b) Amplified current of one DST driving cycle; (c) SoC trajectory; (d) Comparison of experimental and model output voltages; (e) Voltage error; (f) Amplified experimental and model output voltage.
5. Faults Effects Analysis
To this end, the current or voltage sensor faults are injected into the UDC and DST tests in the battery test bench. In this section, only the UDC test is considered. The aim of this section is to investigate the effects of current or voltage sensor faults on the battery SoC estimations. The experimental SoC in the sensor fault-free case, and the estimation results under the sensor healthy and faulty condition are plotted in
Figure 9. The initial SoC is set to be 80%, and the polarization voltages are taken to be zero. The initial error covariance
P0, noise covariance
Q and
V of EKF algorithm were set through trial-and-error as follows:
Figure 9.
Effects of sensor faults on battery SoC estimation under UDC test. (a) SoC estimation results in the current sensor healthy and faulty conditions; (b) SoC estimation errors in the current sensor healthy and faulty conditions; (c) SoC estimation results in the voltage sensor healthy and faulty conditions; (d) SoC estimation errors in the voltage sensor healthy and faulty conditions.
Figure 9.
Effects of sensor faults on battery SoC estimation under UDC test. (a) SoC estimation results in the current sensor healthy and faulty conditions; (b) SoC estimation errors in the current sensor healthy and faulty conditions; (c) SoC estimation results in the voltage sensor healthy and faulty conditions; (d) SoC estimation errors in the voltage sensor healthy and faulty conditions.
To prevent the battery from over-discharge, the lower limit of the battery SoC is taken as 20%. The current sensor fault with ±10 A bias was injected at the time 8000 s respectively.
Figure 9a plots the experimental SoC in the sensor fault-free case, and estimation results under the current sensor fault-free and faulty conditions, while
Figure 9b shows the SoC estimation errors. It can be found from
Figure 9a that the computed SoC in BMS (EKF-estimated SoC) is around 30% at the time 16,000 s when the current sensor has a +10 A bias fault. Therefore, BMS will command to continually discharge the battery until SoC reaching around 20%, but in real life the battery has been at the lower limit. This will result in the battery suffering from over-discharge, accelerating the battery aging and decreasing the battery life. The computed SoC will prematurely reach 20% when the current sensor has a −10 A bias fault, and the battery cannot release the supposed energy. It can be found from
Figure 9b that the estimation errors are out of the acceptable range 5% in the current sensor faulty cases.
Similar results could be found in
Figure 9c,d when the voltage sensor with ±0.03 V fault was injected at the time of 8000 s. The battery may be over-discharged when the voltage sensor has a +0.03 V fault as shown in
Figure 9c. It can be observed from
Figure 9d that the estimation errors are around 10% under the voltage sensor faulty condition.