Dual Square-Root Unscented Kalman Filter for Coupled SOC and SOH Estimation in Energy Battery Storage

Grid-scale energy battery storage is now used for frequency regulation, peak shaving, renewable smoothing, and capacity firming. Its value depends on how well the battery management system (BMS) knows two internal states: state of charge (SOC), which sets the immediate energy available for dispatch, and state of health (SOH), which sets how much power and energy the system can safely deliver over its remaining life. In lithium-ion cells these states are coupled. Aging increases ohmic resistance and reduces usable capacity; resistance changes the terminal-voltage response under current, which in turn biases SOC inference. At the same time, SOC swings move the cell along a nonlinear open-circuit-voltage curve and change the operating point at which resistance is observed.

The estimation problem is therefore not simply to track charge. It is to track charge while the cell’s resistance and capacity are changing, under current profiles that rarely allow a clean rest. Coulomb counting accumulates current-sensor error, open-circuit-voltage (OCV) methods require long relaxation, extended Kalman filters (EKFs) linearize a strongly nonlinear cell model, and unscented Kalman filters (UKFs) can lose covariance positive definiteness during iteration. A dual square-root unscented Kalman filter (Dual-SRUKF) addresses these issues by running two coupled filters: one estimates SOC and polarization voltages, the other estimates the ohmic resistance that serves as an SOH indicator, and each filter supplies the operating point needed by the other.

Grid-scale lithium-ion battery energy storage system
Grid-scale lithium-ion energy battery storage requires simultaneous tracking of charge and health states under dynamic current.

Why Charge and Health Are Coupled

SOH is often expressed through capacity fade and resistance rise. The resistance-based SOH index used here maps the estimated ohmic resistance \(R_0\) between a beginning-of-life value and an end-of-life value:

$$
\mathrm{SOH}_k=\frac{R_{\mathrm{eol}}-R_{0,k}}{R_{\mathrm{eol}}-R_{\mathrm{new}}}\times100\%
$$

With \(R_{\mathrm{new}}=45\ \mathrm{m}\Omega\) and \(R_{\mathrm{eol}}=135\ \mathrm{m}\Omega\), a new cell has an index near 100%, and a cell at the resistance end-of-life has an index near 0%. This is a resistance-based health indicator, not a direct capacity-based SOH. The distinction matters because \(R_0\) is also sensitive to SOC, temperature, and current direction. The SOH filter therefore treats \(R_0\) as a slowly varying state, while the SOC filter tracks the faster charge and polarization dynamics.

The coupling runs in both directions. A larger \(R_0\) produces a larger \(I R_0\) drop, so the same terminal voltage corresponds to a different inferred SOC. Conversely, an error in SOC shifts the OCV lookup and changes the residual used to identify \(R_0\). In a storage duty cycle with frequent charge–discharge reversals, the two errors can reinforce each other. Separating the fast states from the slow resistance state is the architectural reason for using two filters rather than one augmented filter.

Second-Order RC Model and Open-Circuit Voltage

The cell is represented by a second-order RC equivalent circuit: an ohmic resistance \(R_0\), an electrochemical polarization branch \(R_1C_1\), and a concentration polarization branch \(R_2C_2\). The state variables for the SOC filter are \(z\), \(U_1\), and \(U_2\), where \(z\) is SOC and \(U_1\), \(U_2\) are the polarization voltages. With discharge current positive, the discrete state equations are

$$
z_k=z_{k-1}-\frac{\eta\Delta t}{3600C_N}I_{k-1}+w_{z,k-1}
$$

$$
U_{1,k}=e^{-\Delta t/(R_1C_1)}U_{1,k-1}
+R_1\left(1-e^{-\Delta t/(R_1C_1)}\right)I_{k-1}+w_{1,k-1}
$$

$$
U_{2,k}=e^{-\Delta t/(R_2C_2)}U_{2,k-1}
+R_2\left(1-e^{-\Delta t/(R_2C_2)}\right)I_{k-1}+w_{2,k-1}
$$

where \(C_N\) is rated capacity in ampere-hours, \(\Delta t\) is the sampling interval in seconds, \(\eta\) is Coulombic efficiency, and \(w\) terms are process noise. The terminal-voltage observation is

$$
U_{O,k}=U_{OC}(z_k)-U_{1,k}-U_{2,k}-R_{0,k}I_k+v_k
$$

where \(U_{OC}(z_k)\) is the open-circuit voltage at the estimated SOC and \(v_k\) is observation noise. The model parameters at beginning of life, identified from hybrid pulse power characterization (HPPC) data with least-squares fitting, are listed in Table 1.

Second-order RC model parameters at beginning of life (25°C, HPPC identification).
Parameter Value
\(R_0\) 45 mΩ
\(R_1\) 17.4 mΩ
\(R_2\) 2 mΩ
\(C_1\) 78.765 F
\(C_2\) 1135.3 F

The OCV–SOC relationship was measured on a 3.2 V lithium iron phosphate (LFP) cell at 25°C using 0.2C charge–discharge cycles. After each 10% SOC step, the cell rested for 30 min and the stabilized terminal voltage was recorded. Because of hysteresis, the charge and discharge values were averaged. The measured averages are given in Table 2.

Average measured OCV at 25°C after charge–discharge rest.
SOC (%) Average OCV (V)
100 3.649
90 3.446
80 3.443
70 3.425
60 3.416
50 3.388
40 3.354
30 3.321
20 3.295
10 3.123

An eighth-order polynomial fit gave \(R^2=0.9999\) and a root-mean-square error of \(3.624\times10^{-3}\ \mathrm{V}\). The flat LFP plateau between roughly 60% and 90% SOC is the difficult region: a small voltage error maps to a relatively large SOC error, so the filter must rely on current dynamics and the coupled resistance estimate rather than on OCV alone.

Dual-Filter Estimation Architecture

The Dual-SRUKF uses two parallel filters. The SOC filter has the three-dimensional state \([z,U_1,U_2]^{\mathsf{T}}\). The SOH filter has the scalar state \(R_0\), modeled as a random walk because resistance aging is slow compared with current transients:

$$
R_{0,k}=R_{0,k-1}+w_{R,k-1}
$$

The SOH filter’s observation equation is the same terminal-voltage equation, with \(z_k\), \(U_1\), and \(U_2\) supplied by the SOC filter. The SOC filter then uses the latest \(R_{0,k}\) in its own state and observation equations. This exchange occurs every sampling period, so the two filters form a closed loop rather than a one-way cascade. The SOH filter corrects the resistance used for SOC inference; the SOC filter corrects the OCV operating point used for resistance inference.

Each filter is a square-root unscented Kalman filter. For an \(n\)-dimensional state, \(2n+1\) sigma points are propagated through the nonlinear model, avoiding the first-order linearization of an EKF. The covariance is represented by a square-root factor \(S\) such that \(P=SS^{\mathsf{T}}\). The prediction step uses QR decomposition of the weighted sigma-point deviations augmented with the process-noise square root, and the measurement update uses a Cholesky rank-one update. Because \(S\) is propagated rather than \(P\), the covariance remains positive semidefinite by construction, which is the main defense against the numerical loss of positive definiteness that can cause a UKF to diverge.

In the reported configuration, the SOC filter uses \(n_{\mathrm{SOC}}=3\), process-noise covariance \(Q_{\mathrm{SOC}}=\mathrm{diag}(10^{-5},10^{-6},10^{-6})\), and observation-noise covariance \(R_{\mathrm{SOC}}=10^{-4}\). The SOH filter uses \(n_{\mathrm{SOH}}=1\), \(Q_{\mathrm{SOH}}=10^{-6}I\), and \(R_{\mathrm{SOH}}=10^{-4}\). The sigma-point scaling is \(\alpha=0.01\), \(\beta=2\), and \(\kappa=0\). These values are tuning parameters for the normalized state and voltage residuals, not physical constants of the cell.

Test Conditions and Error Metrics

Validation used a 100 Ah LFP cell with a 3.65 V charge cutoff and a 2.5 V discharge cutoff. Voltage was logged with an Agilent 34970A data-acquisition system specified at 0.004% accuracy and 6.5-digit resolution; charge–discharge cycling used a Chroma 17020 battery test system. Tests were conducted at 25°C with 1 Hz sampling. The constant-current case used a 1C rate, equal to 100 A for this cell, and 3000 samples over 50 min. The dynamic case used a random pulse-current sequence spanning −1.5C to 1.5C to emulate the rapid power changes seen in frequency regulation and peak-shaving duty. During the constant-current discharge, the estimated \(R_0\) rose from about 45 mΩ to about 52 mΩ, showing that resistance is not fixed even within one operating cycle.

Estimation accuracy was assessed with mean absolute error and maximum absolute error:

$$
\mathrm{MAE}=\frac{1}{N}\sum_{i=1}^{N}\left|\hat{x}_i-x_i\right|\times100\%
$$

$$
\mathrm{MaxAE}=\max_{1\le i\le N}\left|\hat{x}_i-x_i\right|\times100\%
$$

where \(\hat{x}_i\) is the estimated SOC or SOH, \(x_i\) is the reference value, and \(N\) is the number of samples. Filter divergence counts were also recorded.

Estimation Performance

Table 3 summarizes the SOH results. Under constant current, the Dual-SRUKF reached an SOH MAE of 0.042%, compared with 0.42% for a single SRUKF, a reduction of about 89.9%. The maximum SOH error was 0.29% versus 1.56%. The UKF diverged three times; the Dual-SRUKF did not diverge. Under the dynamic pulse profile, the Dual-SRUKF held the SOH MAE at 0.042% with a maximum error of 0.32%, while the UKF diverged five times. The EKF remained numerically stable but was consistently less accurate.

SOH estimation error and divergence count under constant-current and dynamic-pulse tests.
Condition Algorithm SOH MAE (%) SOH MaxAE (%) Divergences
Constant current (1C) EKF 1.23 3.15 0
UKF 0.65 2.08 3
Single SRUKF 0.42 1.56 0
Dual-SRUKF 0.042 0.29 0
Dynamic pulses (−1.5C to 1.5C) EKF 1.56 4.28 0
UKF 0.87 3.15 5
Single SRUKF 0.53 2.47 0
Dual-SRUKF 0.042 0.32 0

For SOC, the constant-current Dual-SRUKF reduced MAE by 33.3% relative to the single SRUKF. The convergence-time comparison in that test corresponds to about 28 s for the Dual-SRUKF and 45 s for the single SRUKF, a 37.8% improvement. Under the dynamic profile, the Dual-SRUKF maintained a SOC MAE of 0.48% and showed no visible oscillation at current step changes. The single SRUKF remained stable but converged more slowly and with larger error.

The stability difference is consistent with the square-root formulation. A conventional UKF updates the full covariance matrix; finite-precision arithmetic can produce a matrix with a small negative eigenvalue, after which the filter update becomes unreliable. The SRUKF propagates a factor \(S\), so the reconstructed covariance \(SS^{\mathsf{T}}\) is positive semidefinite. The dual structure adds a second protection: the slow resistance state is not forced to follow fast SOC and polarization transients through the same covariance update. The SOH filter’s random-walk prior reflects slow aging, while its measurement update uses the terminal voltage and the SOC filter’s operating point. The SOC filter then receives a corrected resistance instead of a fixed beginning-of-life value.

Operating Implications for Energy Battery Storage

For energy battery storage, SOC and SOH estimates are control inputs, not only monitoring outputs. SOC supports state-of-charge balancing across modules and clusters, and it sets the energy margin available for dispatch. SOH supports derating, maintenance scheduling, and power-allocation weights that protect aged units. In a hierarchical distributed storage controller, an SOC-based weight can promote charge equalization, while an SOH-based weight can reduce the stress on weaker units. The value of the Dual-SRUKF is that both weights can be updated from the same voltage and current measurements without a full rest period.

The resistance-based SOH is particularly useful for online operation because it can be inferred from terminal voltage under load. A capacity-based SOH generally requires a controlled charge or discharge segment, which is not always available in a storage system following grid commands. At the same time, the resistance index should be interpreted with its operating point. \(R_0\) varies with SOC and temperature, so a change in SOH should not be inferred from a single resistance reading without accounting for the cell’s condition.

Scope and Engineering Constraints

The validation is cell-level: one 100 Ah LFP cell at 25°C, with a constant-current case and a random pulse case. The dynamic profile captures rapid current reversals, but it is not a full year of grid operation. Pack-level behavior introduces additional issues: cell-to-cell imbalance, thermal gradients, busbar resistance, sensor bias, and unequal aging. The SOH definition is resistance-based, so it does not directly quantify capacity fade. The 0.48% SOC MAE and 0.042% SOH MAE are therefore benchmarks for this cell and test campaign, not a blanket guarantee for every energy battery storage rack.

Deployment on an embedded BMS would also require attention to computational load, fixed-point arithmetic, and sensor calibration. The square-root filter is numerically robust, but it still depends on a characterized cell model and on the OCV–SOC curve remaining valid as the cell ages. Temperature-varying OCV and resistance behavior, long-term aging, and real grid mission profiles are the natural next steps for demonstrating transferability from a single cell to a full storage system.

Engineering Outlook

The Dual-SRUKF approach shows that coupled SOC and SOH estimation can remain stable under dynamic storage currents when the covariance update is square-rooted and the fast and slow states are estimated in a coordinated loop. The combination of a second-order RC model, an OCV–SOC characterization, and a dual-filter structure produced a SOC MAE of 0.48% and an SOH MAE of 0.042% under dynamic pulses, with no filter divergence in the reported tests. For energy battery storage, that combination is directly relevant to balancing, derating, and lifecycle-aware power allocation. The remaining engineering question is not whether the filter can track a cell under a controlled profile, but how well the resistance-based health index transfers across temperatures, packs, and multi-year field operation.

Scroll to Top