Hysteresis-Aware State-of-Charge Estimation for LFP Energy Battery Storage Using an Observability-Adaptive Iterative Cubature Kalman Filter

Grid-scale energy battery storage carries most of the burden of peak shaving, frequency regulation and renewable curtailment avoidance, and lithium iron phosphate (LiFePO4, LFP) has become the dominant chemistry for new capacity because of its cycle life and thermal stability. Every dispatch decision, reserve calculation and protection threshold in the battery management system (BMS) rests on a state-of-charge (SOC) estimate. On a 280 Ah LFP cell, two physical properties make that estimate difficult: a path-dependent open-circuit voltage (OCV) and an almost flat voltage plateau.

Two Mechanisms That Break SOC Estimation in Grid-Scale LFP Cells

Hysteresis means that at a fixed SOC the rested cell voltage is higher after charging than after discharging, and the two branches close into a loop whose width depends on the path the cell has taken rather than on the instantaneous SOC alone. An OCV–SOC lookup built on a single averaged curve therefore carries a path-dependent bias. Inside a Kalman-type filter that bias enters as a voltage offset which is indistinguishable from a genuine SOC error, and the correction it drives pushes the estimate in the wrong direction.

The plateau compounds the problem. Between roughly 30% and 80% SOC the OCV of an LFP cell stays inside 3.3–3.4 V, so the full plateau spans only about 2 mV per percentage point of SOC. The observation equation of an equivalent circuit model (ECM) is essentially linear in OCV, which means the Jacobian of terminal voltage with respect to SOC nearly vanishes over half the operating window. Innovations then carry little usable SOC information: a filter tuned for the steep regions either over-corrects in the plateau or, if detuned, silently degenerates into coulomb counting and drifts with current-sensor bias.

Alternatives each carry their own cost. Data-driven estimators map measured signals directly to SOC, but their accuracy depends on large, condition-diverse labelled datasets that are rarely public for grid-scale cells with their own duty profiles. Electrochemical models resolve internal states with strong physical interpretability but require many microscopic parameters and the online solution of partial differential equations, which is heavy for a station BMS. Second-order RC equivalent circuits occupy the practical middle ground and, combined with a recursive Bayesian filter, deliver stable online estimates at modest computational cost.

Containerized lithium iron phosphate energy battery storage system
LFP-based energy battery storage: flat OCV plateaus and charge–discharge hysteresis are the dominant error sources for online SOC estimation.

A Modified Prandtl–Ishlinskii Operator for Asymmetric Hysteresis

The Prandtl–Ishlinskii (PI) class of models represents hysteresis as a weighted superposition of elementary play operators. Each operator holds its output inside a dead band of half-width r around the input, so the ensemble reproduces rate-independent memory with few parameters. For an input v(t) sampled at interval T, a single play operator is written as

$$y_p(t)=\max\left\{\gamma\left(v(t)-r\right),\ \min\left[\gamma\left(v(t)+r\right),\ y_p(t-T)\right]\right\}$$

$$y_p(0)=\max\left\{\gamma\left(v(0)-r\right),\ \min\left[\gamma\left(v(0)+r\right),\ 0\right]\right\}$$

and the hysteresis voltage supplied to the circuit model is the weighted sum over n operators,

$$U_h(t)=\sum_{i=1}^{n} w(r_i)\,H_{oi}[v](t)$$

where w(ri) is the weight of the operator with threshold ri and Hoi denotes the modified operator. In the classical formulation the envelope functions are linear, which restricts the model to symmetric saturation-type loops. LFP charge–discharge loops are neither symmetric nor saturating, so the envelope is replaced by a quadratic correction

$$\gamma(v)=\alpha_0 v^{2}+\alpha_1 v+\alpha_2$$

with three coefficients to identify. A cubic envelope with four coefficients has been used elsewhere for small cells; the quadratic choice removes one parameter, which matters when the identification data come from a limited number of low-rate cycles and overfitting is a realistic risk. Nineteen operators were used, with thresholds spaced at equal intervals of 0.05 from 0.05 to 0.95 across the normalized SOC input.

Second-Order Equivalent Circuit with a Hysteresis Voltage Source

The circuit consists of the hysteresis voltage source Uh, an ohmic resistance R0 and two RC branches representing electrochemical and concentration polarization, all in series. With discharge taken as positive current, Kirchhoff’s voltage law gives the observation equation

$$U_t = U_h – U_1 – U_2 – I R_0$$

and the two polarization voltages evolve as

$$\frac{\mathrm{d}U_1}{\mathrm{d}t}=-\frac{U_1}{R_1C_1}+\frac{I}{C_1},\qquad \frac{\mathrm{d}U_2}{\mathrm{d}t}=-\frac{U_2}{R_2C_2}+\frac{I}{C_2}$$

The essential difference from a conventional ECM is that Uh is generated by the PI operator from the current SOC and its recent trajectory, so the model distinguishes charging from discharging branches automatically instead of averaging them.

Observability-Adaptive Iterative Cubature Kalman Filter

A standard cubature Kalman filter (CKF) performs a single measurement update per time step. When the observation equation is strongly nonlinear, one linearization is not enough, and the residual error propagates into the state. The iterative variant repeats the measurement update j times, starting from the time-updated prediction xp:

$$x_{u,j}=x_p+K_j\left(U_t – z_{u,j}\right)$$

where Kj is the gain at iteration j and zu,j the predicted terminal voltage. Iterations are accepted only while they reduce a composite cost of state deviation and observation residual,

$$\Delta x_j^{\mathrm{T}}P_{u,j-1}^{-1}\Delta x_j+\Delta y_j^{2}S^{-1}<\Delta y_{j-1}^{2}S^{-1}$$

with Δxj = xu,j − xu,j−1, Δyj = Ut − zu,j, prior covariance Pu,j−1 and measurement noise variance S. The loop stops when the inequality fails or an iteration cap is reached, which prevents the divergence that unconstrained iteration can produce.

Iteration alone does not address the plateau. The filter’s authority over SOC comes from the sensitivity of terminal voltage to SOC, which is set by the local OCV slope. The proposed observability-adaptive (OA) mechanism quantifies that slope at every step by central differencing of the hysteresis model,

$$\eta_k=\left|\frac{U_h(\mathrm{SOC}_k+\delta)-U_h(\mathrm{SOC}_k-\delta)}{2\delta}\right|$$

and scales the SOC component of the process noise covariance continuously between a floor and a sensitivity-weighted increment,

$$q_{\mathrm{SOC}}=q_{\mathrm{base}}+q_{g}\left(\frac{\eta_k}{\eta_{\max}}\right)^{2}$$

where qbase is the baseline variance, qg the adaptive gain and ηmax the maximum sensitivity over the full SOC range, used to normalize the ratio into [0, 1]. The mechanism works because ηk is precisely the Jacobian entry of the observation equation with respect to SOC: the corresponding Kalman gain scales approximately with ηk and the prior covariance, while the prior covariance itself grows each step by the injected qSOC. On steep sections of the OCV curve, ηk is large, the prior covariance inflates, process confidence is lowered and the filter leans on the measured voltage. On the plateau, ηk approaches zero, qSOC falls back to qbase, gain shrinks and the estimate rides on the process model rather than on corrections that carry no information.

Each step therefore proceeds in three stages: cubature points are generated from the prediction and its covariance,

$$X_i = x_p \pm \sqrt{N}\,[M]_i,\quad i=1,\dots,N$$

with M the Cholesky factor of the covariance and [M]i its i-th column; the points are propagated through the state transition and the observation equation, where the OCV of each point is computed from its SOC and its stored hysteresis path; and the iterative measurement update with the cost-based stopping rule produces the SOC estimate and refreshes the internal operator states for the next step.

Test Matrix, Reference SOC, and Parameter Identification

Validation used a 280 Ah prismatic LFP/graphite cell of the type used in station modules, held at 25 °C in a thermal chamber and driven by a programmable charge–discharge unit under PC control. Three identification experiments were run: a capacity test at C/7 between 3.65 V and 2.5 V with a C/20 cut-off current; a hybrid pulse power characterization (HPPC) test with 100 A, 10 s discharge and charge pulses separated by 30 s rests and 10% SOC steps at C/7 followed by 1 h rests, logged at 0.1 s; and a low-rate OCV test at C/20, charged to 3.65 V without a constant-voltage phase and rested 2 h before discharge, logged at 10 s, so that terminal voltage approximates the hysteresis voltage and both branches can be fitted.

PI parameters were identified in a two-layer scheme: an outer Nelder–Mead search over the envelope coefficients and an inner ridge regression for the operator weights. The identified envelope is α0 = −3.5151973×105, α1 = 1.40607891×106, α2 = 9.3968089×105. Weights span roughly 10−9 to 10−5 and alternate in sign, the compensation pattern expected when many overlapping operators cooperate to bend a single loop. Against the measured C/20 charge and discharge curves the fitted hysteresis voltage gives a mean absolute error of 0.011 V and a root mean square error of 0.023 V, with the closest agreement in the plateau region where the charge and discharge branches separate most visibly.

Circuit parameters were extracted per SOC point. Ohmic resistance follows directly from the voltage jump at pulse onset, and the relaxation tail after the pulse is fitted with a double exponential,

$$R_0=\frac{\left|U_t(t_1)-U_t(t_0)\right|}{I_{\mathrm{pulse}}}$$

$$U_t(t)=U_{\mathrm{end}}-b_f e^{-\beta t}-c_f e^{-\varphi t}$$

from which the time constants and, with the pulse duration Δtpulse, the polarization resistances and capacitances follow as

$$\tau_1=\frac{1}{\beta},\qquad \tau_2=\frac{1}{\varphi}$$

$$R_1=\frac{b_f}{\left(1-e^{-\Delta t_{\mathrm{pulse}}/\tau_1}\right)I_{\mathrm{pulse}}},\qquad R_2=\frac{c_f}{\left(1-e^{-\Delta t_{\mathrm{pulse}}/\tau_2}\right)I_{\mathrm{pulse}}}$$

$$C_1=\frac{\tau_1}{R_1},\qquad C_2=\frac{\tau_2}{R_2}$$

The identified resistances behave as expected for LFP: R0 stays below 5.4 mΩ between 10% and 80% SOC and rises sharply above 90% SOC, while R1 and R2 both decrease with SOC and R2 exceeds R1 throughout, indicating that concentration polarization dominates the dynamic response. Capacitance C1 remains under 31 kF up to 90% SOC and reaches 65 kF at full charge; C2 climbs from 69 kF at 10% SOC to 247 kF at 100% SOC.

Two datasets probed the estimator. The first was a RegD profile, a regulation signal from the PJM ancillary-service market that demands near-synchronous response and therefore produces frequent, violent power reversals — a better match to storage duty than electric-vehicle cycles such as FUDS or US06. The implemented sequence contains 30 discharge and 15 charge current values in random order, starts at 100% SOC and repeats the 45-step block six times. The second dataset came from a 20 MWh station coupled directly to a photovoltaic plant and operated with daytime charging and nighttime discharging; one cluster was used, comprising 25 series-connected packs of 16 series cells each, with time, current, voltage and state-of-health (SOH) channels. Three cases were extracted: 0.5C charge, 0.25C charge, and two consecutive 0.5C charge–discharge cycles with the long idle intervals between them removed. Reference SOC was rebuilt independently: available capacity from rated capacity and SOH, coulomb counting of charge throughput, and accumulation onto the initial SOC.

Accuracy on RegD Profiles and Station Data

Under the RegD profile the model reproduces terminal voltage with a mean absolute error of 0.0176 V and a root mean square error of 0.0199 V, including the charging segments where the cell sits on the plateau — the condition in which a hysteresis-free OCV curve fails most obviously. Starting from a correct initial SOC, the SOC estimate tracks the reference with 0.728% MAE, 0.874% RMSE and a maximum absolute error of 1.94%, so the 2% band is respected over the whole six-block sequence. Initializing the model 40 percentage points away, at 60% against a true 100%, the estimate converges quickly; outside the convergence transient the maximum absolute error is 2.06%.

Sensor bias is the more realistic stress. Shifting every discharge current down by 5 A and every charge current up by 5 A leaves the estimator at 1.34% MAE, 1.64% RMSE and 2.97% maximum absolute error, so a constant offset is largely rejected by the voltage feedback rather than integrated into SOC.

On station data the single-charge cases are tighter than the laboratory dynamic profile, which is expected because the current is smooth: 0.608% MAE and 0.718% RMSE at 0.5C, 0.465% MAE and 0.594% RMSE at 0.25C. The two-cycle case is harder, at 1.79% MAE, 2.10% RMSE and about 4% maximum absolute error, with the estimate biased high during discharge and low during charge. Two causes are identifiable: at each current reversal the play operators’ stored path departs from the cell’s true hysteresis state, and removing the idle intervals strips the relaxation that the model would otherwise reproduce. Crucially, the error does not accumulate — the end of the second cycle lands close to the reference.

Parameter drift was emulated by scaling the identified resistances, 1.1× to represent aging and 0.9× to represent a temperature rise, applied to the 0.5C charge case. Accuracy degrades only mildly, to 1.71% MAE and 1.99% RMSE at 1.1× and 1.12% MAE and 1.28% RMSE at 0.9×, both inside 2%. A resistance error first appears as a bias in predicted terminal voltage, and the observability-weighted feedback then suppresses its transfer into SOC instead of amplifying it.

Table 1. SOC estimation accuracy across validation cases (errors in percentage points of SOC).
Case Condition MAE / % RMSE / % Max AE / %
RegD dynamic profile Initial SOC matched 0.728 0.874 1.94
RegD dynamic profile Initial SOC offset 40 points — — 2.06
RegD dynamic profile 5 A current-sensor bias 1.34 1.64 2.97
Station, 0.5C charge Single charge, field data 0.608 0.718 —
Station, 0.25C charge Single charge, field data 0.465 0.594 —
Station, 0.5C cycles Two consecutive cycles 1.79 2.10 ≈4
Station, 0.5C charge Resistances × 1.1 (aging) 1.71 1.99 —
Station, 0.5C charge Resistances × 0.9 (warming) 1.12 1.28 —

Ablation: Where the Accuracy Comes From

Five configurations were compared on the RegD data to separate the contributions of the hysteresis model, the OA mechanism and the iterative measurement update. The full method (PI+OA-ICKF) is contrasted with the same hysteresis model driven by a plain CKF (PI+CKF), and with three variants in which the OCV is a charge–discharge average instead of the PI output: averaged OCV with the complete filter (OCV+OA-ICKF), averaged OCV with OA only (OCV+OA-CKF), and averaged OCV with iteration only (OCV+ICKF).

Table 2. Ablation results on the RegD profile; PI denotes the modified hysteresis model and OCV an averaged open-circuit voltage curve.
Configuration MAE / % RMSE / % Max AE / %
PI + OA-ICKF (full method) 0.728 0.874 1.94
PI + CKF 2.28 2.65 4.61
OCV + OA-ICKF 8.87 9.00 11.3
OCV + OA-CKF 11.2 11.4 14.3
OCV + ICKF 16.0 17.8 32.3

The ordering is informative. PI+CKF tracks the reference early but drifts as the filter loses any means of adjusting its correction policy, tripling the MAE of the full method. Replacing the hysteresis source with an averaged OCV is far more damaging still: the three OCV variants all begin below the reference and stay there, because the OCV bias produced by ignoring hysteresis is fed directly into the SOC correction as if it were a real state error. This identifies path-dependent OCV as the dominant error term, worth roughly an order of magnitude in MAE compared with the filter refinements.

Within the OCV group, iteration and observability weighting contribute differently. Removing iteration raises MAE from 8.87% to 11.2%, the expected penalty for a single linearization of a nonlinear observation. Removing OA weighting raises it to 16.0% and pushes the maximum error from 11.3% to 32.3%, the largest single degradation in the study. That asymmetry is consistent with the mechanism: with a flat OCV curve and no sensitivity-dependent noise scheduling, the filter has neither reliable voltage information nor a reason to distrust it, so spurious corrections accumulate where they can least be checked. The three components act on different failure modes — model bias, linearization error and observability loss — and each is necessary.

Engineering Implications and Limits of the Evidence

For station operation, the design lesson is that the OCV source and the filter tuning cannot be optimized independently. A hysteresis-resolving OCV model removes the bias at its origin, but the resulting estimate is only reliable in the plateau if the filter knows how much the voltage measurement is worth at the current SOC. Tying process noise to the local OCV slope is a cheap way to encode that knowledge: it requires only a numerical derivative of the model already in the BMS and no additional sensing. Iteration on the measurement update then recovers the accuracy lost to a single linearization, at the cost of extra evaluations bounded by the stopping rule.

The evidence also has clear boundaries. All identification and dynamic testing were performed on one 280 Ah prismatic cell at a fixed 25 °C; temperature and aging were examined through resistance scaling rather than through thermal transients or aged cells, so the interaction between hysteresis shape and temperature, which is known to shift loop width, remains unquantified. Validation at station level used a single cluster of one 20 MWh plant, and the reference SOC itself is built from rated capacity, SOH and coulomb counting, so it inherits the current-sensor accuracy of that installation — the 5 A bias experiment is an explicit acknowledgment of this dependency. The two-cycle case also shows that deleting idle periods penalizes the model, which is an artefact of the test construction rather than of station operation, where rests are long and relaxation is real.

Open questions follow directly. Joint estimation of SOC and SOH with the hysteresis state treated as a slowly varying parameter would address the resistance drift more rigorously than scaling factors. Extending the operator set or its envelope to temperature-dependent coefficients would let a single model cover the seasonal swing of a container. And because the plateau is where observability is weakest, the sensitivity index used here as a noise scheduler could equally serve as an online diagnostic — an early warning that the estimate has stopped being voltage-supported and should be flagged to the dispatch layer rather than trusted silently.

Scroll to Top