Current-Sensor Fault Diagnosis for Energy-Storage Battery Management Systems Using an EKF–CUSUM Scheme

Rack-mounted lithium-ion energy battery storage system

The measurement that quietly corrupts state of charge

Grid-connected lithium-ion storage has moved from pilot scale to infrastructure scale: installed new-type storage capacity in China passed 30 GW in 2025. The safety case for these assets rests on the battery management system (BMS), and within the BMS the current sensor occupies a structurally privileged position. Every ampere-hour counted by the BMS passes through it, and the state-of-charge (SOC) estimate is obtained by integrating that signal. Industry failure analyses attribute more than 60% of storage incidents to monitoring failure in the BMS, and a biased current channel is among the most consequential of those failures, because it corrupts the quantity on which charge and discharge limits are enforced.

The arithmetic of that corruption is unforgiving. A 0.1 A offset, small compared with the 2.5 A peak current of the urban dynamometer driving schedule (UDDS) profile used in the experiments below, integrates to 0.1 Ah in one hour, which is 3.8% of the 2.6 Ah rated capacity of the cell tested here; after ten hours the accounting error reaches 38%. Overcharge and overdischarge protection then acts on a number that no longer tracks the physical cell. Offset faults in current channels arise from zero-point drift, thermal drift and component ageing, and are typically quoted at 5% to 15% of full scale in field populations.

Offset faults are also hard to see from the outside. A biased current reading produces no immediate voltage anomaly, and the voltage signature it eventually creates is small, slow and buried under polarization hysteresis and measurement noise. Threshold checks on terminal voltage therefore miss small offsets until the SOC error is already large, while machine-learning classifiers trained on fault libraries detect what they were trained on and respond slowly to sub-0.2 A deviations. The diagnostic problem is one of sensitivity to a small mean shift in a noisy residual, under conditions where the battery model itself is drifting.

Architecture of the diagnostic scheme

The approach described here chains four blocks. A second-order RC equivalent circuit model supplies the physical link between current, voltage and SOC. An adaptive forgetting factor recursive least squares (AFFRLS) estimator tracks the five circuit parameters online so that the model follows ageing and operating-point drift. An extended Kalman filter (EKF) then inverts the model: with terminal voltage as the input and load current as the measurement, it produces an independent estimate of the current from the voltage response. The difference between estimated and measured current forms a residual whose mean is zero in the fault-free case; a cumulative sum (CUSUM) test integrates that residual until it crosses a decision threshold, which converts a small persistent bias into a detectable ramp.

The inversion step is what makes the scheme sensitive. Rather than comparing two independent current sensors, it exploits the redundancy already present in the cell: the voltage trajectory is a memory of the charge that has flowed, so a current channel that reports the wrong charge will disagree with the voltage-derived estimate. Because the disagreement is integrated over time, the detector gains signal-to-noise ratio in proportion to fault duration, which is exactly the property needed for small offsets.

Second-order RC equivalent circuit model

Two RC branches represent the charge-transfer and diffusion behaviour of the cell, in series with the ohmic resistance. Applying Kirchhoff’s laws gives the terminal voltage and branch dynamics:

$$U_T = U_{oc} – I R_0 – U_1 – U_2$$

$$\frac{dU_1}{dt} = -\frac{1}{R_1C_1}U_1 + \frac{1}{C_1}I, \qquad \frac{dU_2}{dt} = -\frac{1}{R_2C_2}U_2 + \frac{1}{C_2}I$$

where $R_0$ is the ohmic internal resistance, $R_1$, $R_2$ and $C_1$, $C_2$ are the polarization resistances and capacitances, $U_1$ and $U_2$ are the branch voltages, $I$ is the charge/discharge current, $U_{oc}$ is the open-circuit voltage and $U_T$ the terminal voltage. The SOC follows from coulomb counting,

$$SOC(t) = SOC_0 – \int_0^t \frac{\eta I}{Q_N}\,dt$$

with $SOC_0$ the initial value, $\eta$ the coulombic efficiency and $Q_N$ the nominal capacity. The $U_{oc}$–$SOC$ relation is obtained from hybrid pulse power characterization (HPPC) testing carried out in the spirit of the FreedomCAR power-assist manual and fitted with an eighth-order polynomial, which reproduces the measured points closely across the full range.

Online parameter identification with an adaptive forgetting factor

Taking the Laplace transform of the model and setting $E = U_T – U_{oc}$ yields the transfer function

$$\frac{E(s)}{I(s)} = -\left(R_0 + \frac{R_1}{1+R_1C_1s} + \frac{R_2}{1+R_2C_2s}\right)$$

Bilinear discretization converts this into a linear-in-parameters regression,

$$E(k) = \theta_1 E(k-1) + \theta_2 E(k-2) + \theta_3 I(k) + \theta_4 I(k-1) + \theta_5 I(k-2)$$

with regressor $\varphi_k = [E(k-1),\,E(k-2),\,I(k),\,I(k-1),\,I(k-2)]^{T}$ and parameter vector $\hat\theta_k = [\theta_1,\dots,\theta_5]^{T}$; the five circuit elements are recovered algebraically from these coefficients. The estimator minimizes the quadratic index $J=\sum_k e_k^2$ recursively, but a fixed forgetting factor cannot serve both requirements of this application: slow forgetting is needed for noise rejection at steady operating points, fast forgetting for tracking during transients. The forgetting factor is therefore made a function of the instantaneous identification error,

$$\lambda_k = \lambda_{min} + (1-\lambda_{min})\,h^{\beta_k}, \qquad \beta_k = \mathrm{round}\!\left[\left(\frac{e_k}{e_{base}}\right)^{2}\right]$$

where $\lambda_{min}$ is the lower bound, $h$ the sensitivity of the forgetting factor to the error and $e_{base}$ the error expected under stable conditions. When the identification error falls below $e_{base}$, $\lambda_k$ rises toward unity and the estimator averages over a longer window; when the error exceeds it, $\lambda_k$ falls and the estimator re-weights recent data. The recursion is completed by

$$K_k = P_{k-1}\varphi_k^{T}\left(\lambda_k + \varphi_k P_{k-1}\varphi_k^{T}\right)^{-1}, \qquad \hat\theta_k = \hat\theta_{k-1} + K_k e_k$$

$$P_{k+1} = \frac{1}{\lambda_k}\left(I – K_k\varphi_k\right)P_k$$

Load-current estimation by extended Kalman filtering

The filter state is $m = [U_1,\,U_2,\,SOC]^{T}$, the input is the measured terminal voltage $u = U_T$ and the measurement is the current $n = I$. This is an unusual but deliberate assignment: the current is treated as the quantity to be reconstructed, so that a sensor fault appears as an innovation rather than as an input. Algebraically, the model gives

$$I = \frac{1}{R_0}\left(U_{oc} – U_1 – U_2 – U_T\right)$$

so the measurement matrix and feedthrough term are

$$C = \begin{bmatrix} -\dfrac{1}{R_0} & -\dfrac{1}{R_0} & \dfrac{Z'(\cdot)}{R_0}\end{bmatrix}, \qquad D = -\frac{1}{R_0}$$

where $Z(\cdot)$ is the $U_{oc}$–$SOC$ polynomial and $Z'(\cdot)$ its local slope. The transition matrix follows from discretizing the branch and coulomb-counting equations at sampling period $T_s$, with the open-circuit voltage linearized about the current SOC. The filter then runs the standard recursion:

$$\hat m_k^{-} = A\hat m_{k-1} + B U_{T,k-1}, \qquad H_k^{-} = A H_{k-1}A^{T} + Q$$

$$L_k = H_k^{-}C^{T}\left(C H_k^{-}C^{T} + R\right)^{-1}$$

$$\hat m_k = \hat m_k^{-} + L_k\left(I_k – \hat n_k^{-}\right), \qquad H_k = H_k^{-} – L_k C H_k^{-}$$

with $Q$ and $R$ the process and measurement noise covariances. The innovation $I_k – \hat n_k^{-}$ is the instantaneous disagreement between the measured current and the current implied by the voltage trajectory; it is this quantity that the detector accumulates.

Residual generation and CUSUM decision logic

The residual is defined as the estimated current minus the measured current,

$$r_{I,k} = I_{e,k} – I_{t,k}$$

Under fault-free conditions the residual sequence is approximately zero-mean Gaussian. Fitting a normal distribution to fault-free data supplies both the noise reference and the tuning constants: the fitted mean $\mu_I$ serves as the accumulation offset, and the decision threshold is set from the spread of the fit. The one-sided CUSUM then integrates only positive excursions above the no-fault mean, resetting whenever the residual falls below it:

$$S_{I,k} = \begin{cases} S_{I,k-1} + \left(r_{I,k} – \mu_I\right), & r_{I,k} – \mu_I \ge 0\\ 0, & r_{I,k} – \mu_I < 0\end{cases}$$

A fault is declared when the accumulated statistic exceeds the residual threshold $\phi_I$:

$$S_{I,k} \ge \phi_I \;\Rightarrow\; \text{fault}, \qquad S_{I,k} < \phi_I \;\Rightarrow\; \text{no fault}$$

The reset rule is what preserves specificity: isolated noise excursions are discarded, whereas a persistent bias keeps adding to the statistic until it crosses $\phi_I$. Detection latency therefore scales inversely with the magnitude of the offset, and the threshold pair $(\mu_I, \phi_I)$ is what sets the trade-off between false alarms and detection speed.

Experimental configuration

Tests used a single ternary lithium-ion cell of type INR18650-26E with 2 600 mAh nominal capacity and cut-off voltages of 4.2 V and 2.75 V, cycled on a Neware BTS-5V200A charge/discharge unit with ±0.1% voltage and current accuracy, a 25 mV–5 V voltage range and a 0.05–200 A current range. The UDDS profile applied to the cell spanned −1.5 A to 2.5 A. Offset faults of 0.1 A, 0.2 A and 0.4 A were injected, corresponding to roughly 4%, 8% and 16% of the peak current — the small-to-moderate band in which field offset faults are typically found.

Two experiment sets were run. The first validated parameter identification: the second-order RC model was built in simulation, AFFRLS was applied to the measured UDDS data, the identified parameters were fed back into the simulation, and the simulated terminal voltage was compared with the measurement. The second validated diagnosis: fault-free data were used to fit the residual distribution and fix the thresholds, offsets were then injected at randomly generated instants within three segments of the profile (early, middle and late life-cycle position) to avoid dependence on one particular dynamic phase, and the CUSUM detector was run on the resulting data.

Model fidelity and identified parameters

The AFFRLS estimates show pronounced, physically interpretable movement rather than smooth convergence, which is the expected signature of parameters that genuinely vary with operating point and current direction.

Representative AFFRLS parameter trajectories over the UDDS profile
Parameter Early transient Peak / oscillation band Settled value
$R_0$ 32 mΩ, drifting to 31 mΩ 36 mΩ peak near 10 000 s 31 mΩ
$R_1$ 3.75 mΩ falling to 2.0 mΩ 1.5–2.0 mΩ over the first 6 000 s 1.5 mΩ
$R_2$ stepping up to 55 mΩ 30–45 mΩ after 6 000 s 38 mΩ
$C_1$ 300 F rising to 700–800 F 650–850 F, peak 980 F 720 F
$C_2$ 1 100 F to 1 500 F, then 1 000 F 1 900 F peak between 4 000 and 8 000 s 1 300 F

Feeding these parameters into the circuit simulation reproduced the measured terminal voltage with a maximum absolute error below 15 mV, or 0.5% in relative terms, across the whole profile. That accuracy is the precondition for the diagnostic step: the residual must be dominated by sensor behaviour rather than by model error, otherwise the CUSUM statistic would drift even without a fault.

Residual statistics and threshold setting

Running the EKF on fault-free data produced a residual sequence whose fitted normal distribution has mean −0.004 18 A and variance 0.052 13 A². The mean was taken as the noise offset $\mu_I$ in the accumulation. The residual-sum threshold $\phi_I$ was set to 0.156 65 A, numerically three times the fitted variance — a deliberately conservative margin chosen so that no false alarm occurred anywhere in the fault-free record. The cumulative-sum decision threshold was fixed at 16 A in accumulated amplitude units, again by requiring zero false alarms over the full fault-free profile before any fault was injected.

Detection times across the operating envelope

Diagnosis time for injected offset faults at three fault instants in the UDDS profile
Offset current / A Early, 3 178 s Middle, 7 245 s Late, 11 156 s Mean
0.1 2 416 s 1 248 s 1 467 s 1 710 s
0.2 647 s 1 082 s 1 446 s 1 058 s
0.4 46 s 52 s 57 s 52 s

Every injected offset was detected, and detection latency falls steeply with fault magnitude: a 0.4 A offset is flagged in 46–57 s irrespective of where in the profile it occurs, whereas a 0.1 A offset requires 20 to 40 minutes. The segment dependence is informative. In the early segment the cell sits at high SOC, where polarization and the initial transient of the identified parameters — $R_0$ alone falls by about 3 mΩ — raise the variance of the current estimate. The standard deviation of the current series is 0.68 A early, against 0.52 A in the middle and 0.49 A late. That larger fluctuation dilutes a 0.1 A bias in the accumulated statistic, so the threshold is reached only after a long integration.

The non-monotonic behaviour of the 0.2 A case follows from the same mechanism. Early in the profile, current reversals momentarily amplify the residual, so the statistic crosses the threshold sooner than it does for 0.1 A; in the middle segment, where fluctuation is steadier, that accidental amplification disappears and the 0.2 A case slows to 1 082 s. Late in the profile, at low SOC, reduced model accuracy attenuates the residual, so 0.2 A and 0.1 A faults converge to similar latencies (1 446 s and 1 467 s). Only the 0.4 A offset is large enough to be immune to these effects. Against a published model-based scheme that required 1 754 s to flag a 0.245 A offset, the mean of 1 058 s at 0.2 A and 52 s at 0.4 A indicates that the EKF–CUSUM chain is competitive on moderate offsets and decisively faster on large ones, while remaining slower than desirable for offsets at the 0.1 A level.

Engineering reading and limits

Three properties matter for deployment in energy battery storage. First, the method needs no additional hardware: it reuses the voltage and current channels already present in every rack BMS, which matters when a container holds hundreds of cells and per-cell sensor redundancy is uneconomic. Second, the detector output is a physical quantity — an offset in amperes — rather than a class label, so it can feed directly into a compensation or alarm strategy, and its threshold has a statistical interpretation. Third, the method degrades gracefully: because sensitivity is bought through integration time, a large fault is caught in under a minute and only small faults pay a latency penalty.

The limits are equally clear. All results here come from one 2 600 mAh cell under a single UDDS profile at ambient temperature; scaling to series-parallel racks introduces cell-to-cell parameter spread and interconnection resistance that will widen the residual distribution and therefore slow detection. The thresholds are fitted per cell and operating condition and would need periodic re-estimation as the cell ages. Only offset faults were examined; gain faults, which scale with current rather than adding a constant, produce a residual that changes sign with current direction and would require a two-sided or direction-aware statistic. The detector identifies the presence and magnitude of a bias but not its sign, since accumulation is one-sided. Finally, because the scheme inverts a model, its accuracy inherits the model’s weak points: at low SOC and low temperature, where the equivalent circuit fits poorly, the residual is attenuated and small faults take longer to surface.

Conclusions

Combining an EKF that reconstructs load current from the voltage response with a CUSUM test on the resulting residual yields a current-sensor diagnostic that runs on standard BMS signals. A second-order RC model with AFFRLS parameter tracking reproduced terminal voltage to within 15 mV (0.5%), and the fault-free residual fitted a normal distribution with mean −0.004 18 A and variance 0.052 13 A², which set the detection thresholds without false alarms. Under UDDS cycling with faults injected at random instants in three segments of the profile, mean diagnosis times were 1 710 s for a 0.1 A offset, 1 058 s for 0.2 A and 52 s for 0.4 A, with the 0.4 A fault identified within 60 s in every segment. The dominant determinant of latency is the ratio of offset magnitude to current-estimation noise, which varies by segment as the cell moves from high through low SOC; improving performance at the 0.1 A level therefore requires reducing model-induced residual variance — through temperature-dependent parameterization and pack-level modelling — rather than tightening the decision threshold, which would trade detection speed for false alarms.

Scroll to Top