State-of-Charge Prediction for Megawatt-Scale Vanadium Redox Flow Battery Energy Storage in Rail Transit

Rail Transit Loads and the Case for Flow Batteries

By the end of 2024, China’s railway network reached 162,000 km, including 48,000 km of high-speed line. The rail system consumes about 2% of national electricity, and demand is rising with network length and locomotive numbers. Rail corridors also overlap with wind, hydro and solar resources, giving the network a large potential to absorb renewable generation and reduce both carbon emissions and traction-power purchase costs.

The difficulty is temporal and spatial. Traction demand is pulsed and distributed along the line, while renewable output is intermittent. A megawatt-scale battery energy storage system can act as an energy buffer: it charges when renewable output exceeds local demand or when traction load is low, and discharges when traction demand rises. In this setting, energy battery storage is not a backup add-on but an operational buffer that couples renewable supply to rail load.

Among battery technologies, the all-vanadium redox flow battery (VRB) is well suited to this role. Its power rating is set by stack area and cell count, while its energy capacity is set by electrolyte volume, so power and energy can be scaled independently. The aqueous vanadium electrolyte is non-flammable, the system has a long cycle life, fast start-up, good rate capability, and its electrolyte can be recovered and reused. For rail applications, intrinsic safety and long service life are as important as round-trip efficiency.

Containerized battery energy storage system for grid and rail applications
Containerized battery energy storage systems provide the power and energy capacity needed to buffer traction loads and renewable generation.

The critical operating variable is the state of charge (SOC), the ratio of dispatchable charge to maximum usable charge. In a MW-scale VRB plant, many cells are connected in series and parallel. Differences in internal resistance, initial SOC, electrolyte flow and temperature mean that string and cell SOCs are not identical. Accurate SOC prediction supports power allocation, reserve management and protection against overcharge or over-discharge; inaccurate SOC either leaves capacity unused or pushes cells into unsafe operating regions.

Equivalent-Circuit Model and SOC State Definition

Several SOC methods are available. Open-circuit-voltage (OCV) methods are sensitive to temperature and electrolyte imbalance and degrade with capacity fade. Coulomb counting is simple but drifts with initial SOC error, sensor offset and accumulation. Model-based filters such as the extended Kalman filter (EKF) and unscented Kalman filter (UKF) use terminal voltage and current to correct the state estimate and can suppress measurement noise. Their weak point is the battery model: fixed parameters cannot follow the changes produced by flow rate, temperature, electrolyte imbalance and ageing.

The RLS-EKF framework uses a first-order RC equivalent-loss circuit. The stack is represented by an OCV \(V_s\), a reaction resistance \(R_1\), an ohmic resistance \(R_2\), a loss resistance \(R_3\), an electrode capacitance \(C_1\), and a pump-loss current \(I_p\). The terminal voltage \(U_d\) and stack current \(I_d\) are the external variables; the capacitor voltage \(U_c\) and SOC form the state vector.

The SOC is updated by coulomb counting:

$$ SOC(t)=SOC(0)+\frac{\eta}{C_N}\int_0^t I_d(\tau)\,d\tau $$

where \(C_N\) is the rated capacity in A·h, \(\eta\approx1\) is the coulombic efficiency, and \(I_d\) is positive during charging. The OCV is a Nernst-type nonlinear function of SOC and temperature, which makes the terminal-voltage equation nonlinear. Including the pump-loss branch matters in a flow battery because the pump is an internal load that changes with flow and operating point.

For filtering, the model is written in discrete state-space form:

$$ x_k=f(x_{k-1},u_{k-1})+w_{k-1},\qquad z_k=h(x_k,u_k)+v_k $$

with \(x=[U_c,SOC]^T\), \(u=I_d\), and \(z=U_d\). The process noise \(w_k\) and measurement noise \(v_k\) are modeled as zero-mean Gaussian sequences. The functions \(f\) and \(h\) contain the RC dynamics, pump loss and nonlinear OCV.

RLS-EKF Estimation Architecture

The estimator separates parameter identification from state estimation. A recursive least-squares (RLS) stage identifies the electrical parameters online from terminal voltage and current, and an EKF stage uses those parameters to predict \(U_c\) and SOC. This division is useful because the parameters change more slowly than the state but are not directly measurable.

For RLS, the terminal-voltage response is written as a linear-in-parameters regression. With \(\tilde{I}=I_d-I_p\),

$$ U_d(k)=\theta_1 U_d(k-1)+\theta_2 V_s(k)+\theta_3\tilde{I}(k)+\theta_4\tilde{I}(k-1) $$

where \(\theta=[\theta_1,\theta_2,\theta_3,\theta_4]^T\) is the parameter vector and \(V_s\) is evaluated from the current SOC estimate. The RLS update has the form

$$ \hat{\theta}_k=\hat{\theta}_{k-1}+G_k\left[U_d(k)-\phi_k^{T}\hat{\theta}_{k-1}\right] $$

where \(G_k\) is the RLS gain and \(\phi_k\) is the regressor formed from past voltage, OCV and current terms. Once \(\theta\) is identified, \(R_1\), \(R_2\), \(R_3\) and \(C_1\) are recovered algebraically from the coefficient definitions. Because the identification runs recursively, the model can follow parameter drift instead of relying on a fixed lookup table.

The EKF then performs the standard predict-correct cycle. The prior state and covariance are

$$ \hat{x}_k^-=f(\hat{x}_{k-1},u_{k-1}),\qquad P_k^-=A_kP_{k-1}A_k^T+W_kQ_{k-1}W_k^T $$

and the gain and posterior update are

$$ K_k=P_k^-H_k^T\left(H_kP_k^-H_k^T+V_kR_kV_k^T\right)^{-1} $$
$$ \hat{x}_k=\hat{x}_k^-+K_k\left[z_k-h(\hat{x}_k^-,u_k)\right],\qquad P_k=(I-K_kH_k)P_k^- $$

The state Jacobians are evaluated at the current estimate:

$$ A_k=\left.\frac{\partial f}{\partial x}\right|_{\hat{x}_{k-1}},\qquad H_k=\left.\frac{\partial h}{\partial x}\right|_{\hat{x}_k^-} $$

with \(W_k=\partial f/\partial w\) and \(V_k=\partial h/\partial v\). The EKF therefore linearizes the nonlinear OCV and RC dynamics around each new operating point. The RLS stage supplies the parameters; the EKF supplies the state; SOC feeds back into the OCV calculation, closing the loop.

Single-Cell Pulse Validation

The validation case uses a single VRB cell and simulation of two current profiles that mimic the step-like and ramped demand seen in rail operation. The first is constant-current pulse charging with an initial SOC of 0.20. Each 600 s cycle contains 240 s of charging and 360 s of rest. The second is trapezoidal pulse discharging with an initial SOC of 0.98. Each 720 s cycle contains 20 A for 120 s, 40 A for 240 s, 20 A for 120 s, and 240 s of rest. The plotted horizon is 10,000 s.

Single-cell validation profiles and SOC error metrics. SOC error is dimensionless and expressed in per-unit SOC.
Validation profile Initial SOC Cycle definition Mean SOC error RMSE
Constant-current pulse charging 0.20 600 s: 240 s charge, 360 s rest 0.00083 0.0011
Trapezoidal pulse discharging 0.98 720 s: 20 A/120 s, 40 A/240 s, 20 A/120 s, rest/240 s 0.00079 0.0010

Under constant-current pulse charging, the predicted SOC tracks the reference closely: the mean SOC error is 0.00083 and the root-mean-square error (RMSE) is 0.0011. Under trapezoidal pulse discharging, the estimate converges quickly after each current step, with a mean error of 0.00079 and an RMSE of 0.0010. Both cases keep the error in the low \(10^{-3}\) SOC range, including the more dynamic discharge profile where the current changes between 20 A and 40 A.

The two profiles stress different parts of the model. Charging with long rest periods tests the relaxation of the RC branch and the OCV-SOC mapping near low SOC. Trapezoidal discharging tests the response to current steps and the pump-loss term over a wider SOC range. In both cases, the combination of online parameter identification and EKF correction keeps the estimate close to the reference.

From Cell-Level Accuracy to MW-Scale Operation

The single-cell result is the foundation, not the final plant-level estimator. A MW-scale VRB plant contains many stacks and cells in series and parallel. The measured terminal voltage is an aggregate, while SOC differences can arise from flow distribution, shunt currents, temperature gradients and unequal initial electrolyte state. A plant-level SOC function therefore needs a hierarchy: cell or stack models provide local estimates; string-level aggregation combines them with current and voltage measurements; system-level logic uses the result for dispatch and protection.

Online RLS is relevant at this scale because resistance and capacitance are not constants. Electrolyte flow rate, temperature, state of charge and ageing all shift the internal losses. A fixed model can pass a laboratory pulse test and still drift in field operation. Recursive identification gives the EKF a parameter set that is tied to the present operating condition, while the EKF suppresses sensor noise and corrects the state through terminal voltage.

For rail dispatch, SOC is a binding variable. It determines how much power the storage system can absorb from renewable generation, how much reserve is available for traction peaks, and when charge or discharge must be curtailed to protect the battery. The low error observed at cell level supports the model structure and the RLS-EKF coupling. Plant-level accuracy will also depend on sensor calibration, flow and thermal uniformity, and the quality of the string aggregation model.

Conclusion

MW-scale VRB storage is a strong candidate for buffering renewable generation and traction load in rail transit, but its value depends on knowing the available charge in real time. The RLS-EKF framework addresses the main weakness of fixed-parameter model-based SOC estimation by identifying \(R_1\), \(R_2\), \(R_3\) and \(C_1\) online and feeding them to an EKF that estimates \(U_c\) and SOC from terminal voltage and current. The first-order RC equivalent-loss model includes the pump load and the nonlinear OCV, so it retains the main electrical behavior without excessive complexity.

In single-cell validation, constant-current pulse charging from 0.20 SOC gave a mean SOC error of 0.00083 and an RMSE of 0.0011; trapezoidal pulse discharging from 0.98 SOC gave a mean error of 0.00079 and an RMSE of 0.0010. These results show that the RLS-EKF method can track SOC under both slow relaxation and rapid current steps. For rail-integrated energy battery storage, that capability is a prerequisite for safe, reliable and cost-effective operation of MW-scale flow-battery plants.

Scroll to Top