Energy battery storage provides peak shaving, frequency regulation, renewable smoothing, and black-start support. In these services, the battery operates around partial states of charge and is dispatched in steps, so state of charge (SOC) is simultaneously a control variable and a protection limit. Dispatch thresholds, reserve calculations, and overcharge/overdischarge logic all depend on SOC. The quantity is not measured directly: it is inferred from current, voltage, and temperature through a cell model and a recursive estimator.
The estimation problem is difficult because lithium-ion cells have a flat open-circuit-voltage (OCV) plateau over much of their operating range. A voltage offset of a few millivolts can shift the inferred SOC by several percent. Current-sensor gain and offset, analog-to-digital conversion, wiring, and calibration contribute additional systematic terms. The resulting voltage bias enters every measurement and can be mistaken for a change in SOC. During current steps, polarization voltages change rapidly, and a filter tuned for steady operation responds too slowly.

Error pathways: sensor bias and load transients
A conventional extended Kalman filter (EKF) treats terminal voltage as a function of SOC and two RC polarization voltages. It does not separate a constant voltage offset from the electrochemical state. If the measured voltage is biased high, the filter interprets the excess as additional charge and converges to an SOC that is too high. The bias may be small in absolute terms, but the OCV slope \(dU_{oc}/dS\) is also small on the plateau, so the SOC error can be large.
A dual extended Kalman filter (DEKF) adds the voltage bias to the state vector and estimates it jointly with SOC. This removes the bulk of a constant offset: in the validation discussed below, bias augmentation reduced the magnitude of the mean SOC error by about 71%. The remaining limitation is dynamic. A fixed-gain DEKF uses the same filter bandwidth in rest, constant-current charging, high-rate discharge, and current steps. Low gain suppresses noise but produces lag and overshoot at a step; high gain tracks the step but amplifies measurement noise and model mismatch during steady operation.
Residual-based adaptive filters, including strong-tracking and fading-memory variants, adjust gain after the innovation covariance has changed. They therefore need several samples of evidence before responding. The current derivative provides an earlier signal: a large change in current precedes the polarization response that the voltage measurement eventually reveals. The variable-gain strategy uses this signal as feedforward information rather than waiting for the residual to accumulate.
Second-order RC model and discrete state equations
The cell is represented by an OCV source \(U_{oc}\), an ohmic resistance \(R_0\), and two parallel RC branches. The first branch \((R_1,C_1)\) represents electrochemical polarization; the second \((R_2,C_2)\) represents concentration polarization. With discharge current \(I_0>0\), Kirchhoff’s laws give
$$
U_{oc}=U_{PT}+U_1+U_2+I_0R_0,\qquad
I_0=C_1\frac{dU_1}{dt}+\frac{U_1}{R_1},\qquad
I_0=C_2\frac{dU_2}{dt}+\frac{U_2}{R_2}
$$
where \(U_{PT}\) is terminal voltage and \(U_1,U_2\) are the polarization voltages. SOC is updated by ampere-hour integration:
$$
\frac{dS}{dt}=-\frac{\eta}{C_{bat}}I_0
$$
Here \(S\) is SOC, \(C_{bat}\) is capacity in coulombs, and \(\eta\) is Coulombic efficiency, typically 0.98–1.00. Choosing \(\mathbf x=[S,U_1,U_2]^\top\) as the state and \(I_0\) as the input, first-order Euler discretization with step \(\Delta T\) gives
$$
\begin{aligned}
\begin{bmatrix}S_k\\U_{1,k}\\U_{2,k}\end{bmatrix}
&=
\begin{bmatrix}
1&0&0\\
0&e^{-\Delta T/(R_1C_1)}&0\\
0&0&e^{-\Delta T/(R_2C_2)}
\end{bmatrix}
\begin{bmatrix}S_{k-1}\\U_{1,k-1}\\U_{2,k-1}\end{bmatrix}\\
&\quad+
\begin{bmatrix}
-\eta\Delta T/C_{bat}\\
R_1\left(1-e^{-\Delta T/(R_1C_1)}\right)\\
R_2\left(1-e^{-\Delta T/(R_2C_2)}\right)
\end{bmatrix}I_{0,k-1}
\end{aligned}
$$
The measurement includes the bias state \(b_k\) and random noise \(v_k\):
$$
y_k=U_{oc}(S_k)-U_{1,k}-U_{2,k}-I_{0,k}R_0+b_k+v_k
$$
The nonlinear map \(U_{oc}(S)\) is obtained from a slow OCV test or from a parameterized look-up curve. The bias is modeled as a slow random walk, \(b_k=b_{k-1}+w_{b,k}\), because sensor offset and calibration error usually drift much more slowly than the battery dynamics.
Dual estimation of SOC and voltage bias
The DEKF uses two coupled branches. The state branch predicts SOC and the two polarization voltages; the bias branch predicts the offset. The bias estimate is fed back into the state measurement residual, and the state estimate is used in the bias update. In one practical form, the state prediction and covariance are
$$
\hat{\mathbf x}_k^-=\mathbf A\hat{\mathbf x}_{k-1}+\mathbf B I_{0,k-1},\qquad
\mathbf P_k^-=\mathbf A\mathbf P_{k-1}\mathbf A^\top+\mathbf Q
$$
with measurement Jacobian
$$
\mathbf J_k=\left[\left.\frac{\partial U_{oc}}{\partial S}\right|_{S_k^-},\;-1,\;-1\right]
$$
The state-branch gain and update are
$$
\mathbf K_k^x=\mathbf P_k^-\mathbf J_k^\top\left(\mathbf J_k\mathbf P_k^-\mathbf J_k^\top+R\right)^{-1}
$$
$$
e_k=y_k-\left[U_{oc}(S_k^-)-U_{1,k}^- -U_{2,k}^- -I_{0,k}R_0\right]-\hat b_{k-1}
$$
$$
\hat{\mathbf x}_k=\hat{\mathbf x}_k^-+\mathbf K_k^x e_k,\qquad
\mathbf P_k=(\mathbf I-\mathbf K_k^x\mathbf J_k)\mathbf P_k^-
$$
For the scalar bias branch,
$$
P_{b,k}^-=P_{b,k-1}+Q_b,\qquad
K_{b,k}=P_{b,k}^-\left(P_{b,k}^-+R\right)^{-1}
$$
$$
\hat b_k=\hat b_{k-1}+K_{b,k}e_k
$$
The two branches are coupled through the shared residual. This structure lets the filter attribute part of a persistent voltage discrepancy to sensor bias rather than to SOC. The separation is not automatic: a constant voltage measurement during rest contains little information to distinguish bias from SOC error. Identifiability depends on current excitation and on the slow-bias assumption. Abrupt sensor faults violate that assumption and require separate detection.
Current-rate feedforward gain scheduling
The scheduled gain uses the magnitude of the current change rate,
$$
\gamma_k=\frac{\left|I_{0,k}-I_{0,k-1}\right|}{\Delta T}
$$
A three-segment mapping converts \(\gamma_k\) into a gain multiplier \(\lambda_k\):
$$
\lambda_k=
\begin{cases}
\lambda_{\min}, & \gamma_k\le\gamma_0\\[4pt]
\lambda_{\min}+(\lambda_{\max}-\lambda_{\min})
\dfrac{\gamma_k-\gamma_0}{\gamma_{\max}-\gamma_0},
& \gamma_0<\gamma_k<\gamma_{\max}\\[8pt]
\lambda_{\max}, & \gamma_k\ge\gamma_{\max}
\end{cases}
$$
The applied gains are
$$
\mathbf K_k^{x,\mathrm{VG}}=\lambda_k\mathbf K_k^x,\qquad
K_{b,k}^{\mathrm{VG}}=\lambda_k K_{b,k}
$$
In the validation, \(\lambda_{\min}=0.9\), \(\lambda_{\max}=1.4\), \(\gamma_0=0.5\ \mathrm{A\,s^{-1}}\), and \(\gamma_{\max}=5.0\ \mathrm{A\,s^{-1}}\). Below the lower threshold, the multiplier reduces gain and narrows the filter bandwidth, which suppresses random noise during rest and constant-current operation. Above the upper threshold, the multiplier increases gain so that the state and bias branches respond faster to a current step. Scaling the whole gain matrix preserves its direction and changes the step size; the actual gain still depends on the covariance matrix and the Jacobian, so the observed gain is not simply a constant multiplied by \(\lambda_k\).
Validation platform and test profile
The validation used a 17.328 Ah prismatic NCM523 lithium-ion cell at a controlled temperature of 25 °C. The cell was cycled with a BTS-4000 battery test system and a WHW-200L environmental chamber. The second-order RC parameters were identified from hybrid pulse power characterization (HPPC) tests. The sampling interval was 1 s, the initial SOC estimate was 0.5, and the initial voltage-bias estimate was 0.02 V.
| Parameter | Value | Unit |
|---|---|---|
| \(C_1\) | \(1.84\times10^4\) | F |
| \(C_2\) | \(1.95\times10^5\) | F |
| \(R_0\) | \(1.7\times10^{-3}\) | Ω |
| \(R_1\) | \(5.41\times10^{-4}\) | Ω |
| \(R_2\) | \(5.10\times10^{-4}\) | Ω |
| \(C_{bat}\) | 17.328 (62,380.8) | Ah (C) |
| \(\lambda_{\min}\) | 0.9 | — |
| \(\lambda_{\max}\) | 1.4 | — |
| \(\gamma_0\) | 0.5 | A s\(^{-1}\) |
| \(\gamma_{\max}\) | 5.0 | A s\(^{-1}\) |
| \(\mathbf Q\) | diag\((10^{-6},10^{-4},10^{-4})\) | — |
| \(R\) | \(10^{-4}\) | — |
| \(Q_b\) | \(10^{-8}\) | — |
| Initial SOC | 0.5 | — |
| Initial bias | 0.02 | V |
| \(\Delta T\) | 1 | s |
The 15,000 s profile contained four segments: rest from 0 to 2,000 s, constant-current charging from 2,001 to 6,000 s, high-current discharge from 6,001 to 10,000 s, and a current-step segment from 10,001 to 15,000 s. Three estimators were compared. S1 was a conventional EKF with fixed gain and no bias state. S2 was a fixed-gain DEKF that estimated SOC and voltage bias jointly. S3 was the variable-gain DEKF described above. Accuracy was quantified by mean error (ME), root-mean-square error (RMSE), and maximum absolute error:
$$
E_{ME}=\frac1N\sum_{i=1}^{N}\left(\hat S_i-S_i\right),\qquad
E_{RMSE}=\sqrt{\frac1N\sum_{i=1}^{N}\left(\hat S_i-S_i\right)^2},\qquad
E_{\max}=\max_{1\le i\le N}\left|\hat S_i-S_i\right|
$$
Positive ME indicates SOC overestimation. The true SOC was obtained from a rested OCV calibration after the profile.
Accuracy across steady and dynamic operation
| Scheme | Bias state | Gain | ME | RMSE | Max. abs. error |
|---|---|---|---|---|---|
| S1: EKF | No | Fixed | 0.0212 | 0.0241 | 0.0325 |
| S2: DEKF | Yes | Fixed | −0.0061 | 0.0222 | 0.0287 |
| S3: VG-DEKF | Yes | Current-rate scheduled | −0.0009 | 0.0152 | 0.0193 |
The uncompensated EKF had a clear positive mean error of 0.0212, consistent with a voltage measurement that is biased high relative to the model. Its RMSE reached 0.0241 and its maximum absolute error 0.0325. Adding the bias state moved the mean error to −0.0061 and lowered RMSE to 0.0222 and maximum error to 0.0287. Bias augmentation alone therefore reduced the magnitude of the mean error from 0.0212 to 0.0061, about 71%. The residual negative mean indicates that the bias branch was still converging over part of the profile and that some model mismatch remained.
The variable-gain filter gave the smallest errors: ME −0.0009, RMSE 0.0152, and maximum absolute error 0.0193. Relative to S2, the tabulated RMSE and maximum-error reductions are 31.5% and 32.7%. Relative to S1, they are 36.9% and 40.6%. The frequently quoted summary figures of 41.5% and 32.7% RMSE reduction are not reproduced exactly by the rounded RMSE values in Table 2; the 32.7% value matches the maximum-error reduction against S2. The ranking of the three estimators is unaffected.
In the steady segments, where \(\gamma_k\le0.5\ \mathrm{A\,s^{-1}}\), all three estimators remained close to the true SOC. The variable-gain filter set \(\lambda_k=0.9\), reduced its gain, and kept the mean absolute deviation within 0.001. Noise suppression was better than in S1 and S2, and the estimate did not show the small oscillation that appeared when the fixed-gain filter was exposed to measurement noise.
The difference emerged in the dynamic segments. At the current step near 10,000 s, S1 amplified the bias error and reached a maximum absolute error of 0.0325. S2 compensated the bias but its fixed gain produced visible overshoot and lag, with a maximum error of 0.0287. S3 raised \(\lambda_k\) toward 1.4 as the current rate increased, tracked the state change more closely, and corrected the bias at the same time. Its maximum error was 0.0193. The improvement is not only a lower average error; it is a shorter and smaller overshoot at the event that matters for protection and dispatch.
Gain behavior, robustness, and operating limits
S2 held its Kalman gain near \(5\times10^{-4}\) throughout the profile. S3 moved from about \(4.5\times10^{-4}\) in steady operation to about \(7\times10^{-4}\) during the dynamic segment. The ratios, 0.9 and 1.4, match the chosen \(\lambda_{\min}\) and \(\lambda_{\max}\), although the underlying covariance and Jacobian also changed. The practical effect is a filter that behaves conservatively when the current is smooth and aggressively when the current changes.
Robustness was tested with initial voltage biases of 0.01, 0.02, and 0.03 V. The RMSE of S3 remained in the range 0.015–0.017, whereas S2 rose from about 0.020 to 0.025 as the initial bias increased. A fixed-gain DEKF can eventually absorb a larger offset, but its state branch does not change bandwidth when the bias is large; convergence is therefore slower. Scheduling the bias gain together with the state gain accelerates the initial compensation when the current profile provides excitation.
Several limits follow from the model structure. The bias state is a lumped term. It can absorb sensor offset, but it can also absorb temperature-dependent model error, aging-induced resistance growth, or an inaccurate OCV curve. If that happens, the estimated “bias” is no longer a pure sensor quantity, and the SOC estimate may look accurate over the calibration profile while drifting under other conditions. The validation used one cell, one chemistry, one temperature, and one current profile. Pack-level sensing harnesses, cell imbalance, thermal gradients, and module-level calibration were not represented. The gain thresholds were tuned to this profile; very noisy current signals could make \(\gamma_k\) large on measurement noise alone, so rate limiting or filtering of the current derivative is advisable in a production implementation.
A natural extension is to estimate state of health (SOH) or resistance degradation alongside SOC and bias. A multi-timescale filter could update capacity and resistance slowly while keeping the SOC and bias branches on the faster timescale. That would reduce the tendency of the bias state to absorb aging effects, but it also increases the number of coupled states and the excitation required for identifiability.
Conclusion
The variable-gain DEKF addresses two distinct error sources in battery state estimation. The dual structure separates a slow voltage bias from SOC, removing most of the systematic mean error. The current-rate schedule then changes the filter bandwidth before the polarization response fully develops, reducing lag and overshoot at current steps. In the 17.328 Ah NCM523 validation, the combined method reached an RMSE of 0.0152 and a maximum absolute error of 0.0193, compared with 0.0222 and 0.0287 for a fixed-gain DEKF. The gain moved from \(4.5\times10^{-4}\) in steady operation to \(7\times10^{-4}\) during transients, and the RMSE remained within 0.015–0.017 across initial biases of 0.01–0.03 V.
The result is a practical mechanism rather than a universal tuning rule: the benefit depends on the current profile providing enough excitation to separate bias from SOC, and on the bias remaining slow relative to the filter dynamics. Pack-level validation, temperature-dependent parameter adaptation, and joint SOC–SOH estimation remain necessary before the method can be translated from a single-cell study to field-deployed energy battery storage.
