Advanced SOC Estimation for Lithium-Ion Batteries Using Fractional-Order Models and PSO-FEKF Algorithm

With the global energy transition and sustainable development goals advancing, the importance of energy storage technologies such as lithium-ion batteries in the energy system has become increasingly prominent. Accurately modeling lithium-ion batteries and estimating their State of Charge (SOC) is critical for ensuring reliability and efficiency in applications like electric vehicles and renewable energy systems. In this paper, we propose a novel SOC estimation algorithm based on a second-order fractional-order equivalent circuit model for lithium-ion batteries. We integrate Particle Swarm Optimization (PSO) for parameter identification and Fractional Extended Kalman Filter (FEKF) for SOC estimation, demonstrating superior performance through MATLAB simulations.

The estimation of SOC in lithium-ion batteries is challenging due to their nonlinear and time-varying characteristics. Traditional integer-order models, such as the second-order RC equivalent circuit, often fail to capture the complex electrochemical behaviors accurately. Recent studies have explored various approaches: for instance, multi-model switching strategies to adapt to different conditions, higher-order RC models improved with electrochemical impedance spectroscopy at varying temperatures, and neural network-based models for SOC optimization. However, these methods can be limited in precision. Fractional-order calculus, with its ability to describe diffusion and memory effects, offers a more accurate representation of lithium-ion battery dynamics. We leverage this by developing a fractional-order model that better aligns with the physical properties of lithium-ion batteries.

Fractional-order calculus theory, first proposed by Leibniz in 1695, has evolved to become a powerful tool for modeling systems with non-integer order dynamics. In the context of lithium-ion batteries, fractional-order models are particularly effective because they can describe the diffusion processes within electrodes, which are inherently fractional in nature. The Grünwald-Letnikov (G-L) definition is commonly used for discretization due to its simplicity. The fractional derivative of order α is defined as:

$$D^\alpha f(t) = \lim_{h \to 0} \frac{1}{h^\alpha} \sum_{j=0}^{L} \omega_j^\alpha f(t – jh)$$

where $$D^\alpha$$ is the fractional operator with respect to time $$t$$, $$f(t)$$ is an arbitrary function, $$h$$ is the step size, $$L$$ is a parameter limiting the expansion length, and $$\omega_j^\alpha = (-1)^j \binom{\alpha}{j}$$ with the binomial coefficient given by:

$$\binom{\alpha}{j} = \begin{cases} 1 & \text{for } j = 0 \\ \frac{\alpha(\alpha-1)\cdots(\alpha-j+1)}{j!} & \text{for } j > 0 \end{cases}$$

For lithium-ion batteries, the fractional order α typically satisfies $$0 < \alpha < 1$$, focusing on fractional differentiation to model the slow diffusion dynamics. This mathematical foundation allows us to construct a more precise equivalent circuit model for lithium-ion batteries.

The electrochemical impedance spectroscopy (EIS) of a lithium-ion battery reveals its frequency-dependent behavior, often represented in a Nyquist plot. A standard second-order RC equivalent circuit model consists of an ohmic resistor and two RC parallel branches to capture high, medium, and low-frequency responses. However, this integer-order model has limitations in accuracy. To address this, we replace the integer-order capacitors with Constant Phase Elements (CPEs), which have impedance defined as $$Z_{\text{CPE}} = \frac{1}{C_{\text{CPE}} s^{\alpha_{\text{CPE}}}}$$, where $$C_{\text{CPE}}$$ is a pseudo-capacitance parameter and $$\alpha_{\text{CPE}} \in [0,1]$$ is the fractional order. This results in a second-order fractional-order equivalent circuit model for the lithium-ion battery, as shown in the conceptual diagram. The model includes an open-circuit voltage source, an ohmic resistor $$R_0$$, and two parallel branches with resistors $$R_1$$, $$R_2$$ and CPEs with orders α and β, respectively.

The dynamic behavior of this fractional-order model is described by the following equations based on Kirchhoff’s laws and Ohm’s law:

$$\frac{d^\alpha U_1(t)}{dt^\alpha} = -\frac{1}{R_1 C_1} U_1(t) + \frac{1}{C_1} I(t)$$

$$\frac{d^\beta U_2(t)}{dt^\beta} = -\frac{1}{R_2 C_2} U_2(t) + \frac{1}{C_2} I(t)$$

$$\frac{d \text{SOC}(t)}{dt} = -\frac{1}{Q_n} I(t)$$

where $$U_1(t)$$ and $$U_2(t)$$ are the voltages across the polarization resistors, $$I(t)$$ is the battery current, $$Q_n$$ is the total charge capacity, and α and β are the fractional orders. The output voltage is given by:

$$U_t(t) = U_{\text{oc}}(t) + R_0 I(t) + U_1(t) + U_2(t)$$

Discretizing these equations using the G-L definition leads to the state-space representation. Let the state vector be $$x_k = [U_{1,k}, U_{2,k}, \text{SOC}_k]^T$$, where $$k$$ denotes the discrete time step. The state equation is:

$$x_{k+1} = A x_k + B u_k – \sum_{i=1}^{k+1} K_i x_{k+1-i}$$

with system matrices defined as:

$$A = \text{diag}\left( e^{-\frac{T_s}{R_1 C_1}}, e^{-\frac{T_s}{R_2 C_2}}, 1 \right)$$

$$B = \left[ \frac{T_s^\alpha}{C_1}, \frac{T_s^\beta}{C_2}, -\frac{T_s}{Q_n} \right]^T$$

where $$T_s$$ is the sampling time, and $$K_i$$ is a fractional-order correction matrix. The output equation is:

$$y_k = C x_{k+1} + R_0 u_{k+1} + U_{\text{oc}}$$

with $$C = [1, 1, 0]$$. This fractional-order state-space model forms the basis for SOC estimation in lithium-ion batteries.

The open-circuit voltage (OCV) is a key parameter in lithium-ion battery modeling, as it correlates with SOC. However, OCV cannot be measured directly during operation due to polarization effects. We derive the relationship between OCV and SOC using experimental data from the CALCE battery group at the University of Maryland, specifically for an INR 18650-20 lithium-ion battery at 25°C. The data includes OCV measurements under various conditions such as US06, FUDS, and DST driving cycles. We fit the OCV-SOC data with an 8th-order polynomial function:

$$U_{\text{oc}} = \sum_{i=1}^{9} P_i \cdot \text{SOC}^{9-i}$$

The coefficients obtained from the fitting are summarized in Table 1.

Coefficient Value
P1 -178.3
P2 701.2
P3 -1115
P4 922.4
P5 -430.6
P6 120.4
P7 -22.54
P8 3.435
P9 3.264

This nonlinear relationship shows that OCV changes rapidly at extreme SOC levels (near 0 or 1), which is typical for lithium-ion batteries. Accurate modeling of this curve is essential for reliable SOC estimation.

Parameter identification for the fractional-order model is crucial to ensure its accuracy. We use Particle Swarm Optimization (PSO), a population-based stochastic optimization technique inspired by bird flocking behavior. PSO is known for its simplicity, robustness, and strong global search capabilities. In this algorithm, each particle represents a potential solution in a d-dimensional search space, with position $$x_i$$ and velocity $$v_i$$. The steps of PSO are as follows:

  1. Initialize parameters: Generate n particles with random positions and velocities within specified bounds.
  2. Evaluate fitness: For each particle, compute the fitness value based on an objective function.
  3. Update personal and global best: Record the best position for each particle ($$p_i$$) and the global best position ($$p_g$$).
  4. Update velocity and position:
    $$v_i(t+1) = v_i(t) + c_1 \cdot \text{rand}_1() \cdot (p_i(t) – x_i(t)) + c_2 \cdot \text{rand}_2() \cdot (p_g(t) – x_i(t))$$
    $$x_i(t+1) = x_i(t) + v_i(t+1)$$
    where $$c_1$$ and $$c_2$$ are cognitive and social learning factors, and $$\text{rand}_1(), \text{rand}_2()$$ are random numbers in [0,1].
  5. Iterate until convergence: Repeat steps 2-4 until a termination criterion is met, such as a maximum number of iterations.

For parameter identification of the lithium-ion battery model, we define the objective function as the root mean square error (RMSE) between the measured voltage and the model-predicted voltage:

$$U_{\text{RMSE}} = \sqrt{\frac{1}{N} \sum_{k=1}^{N} \left( u_{\text{meas}}(k) – u_{\text{pred}}(k) \right)^2}$$

where $$N$$ is the number of voltage samples. To accelerate convergence, we first use Recursive Least Squares (RLS) to identify parameters for an integer-order second-order RC model, providing a rough initial range for the PSO search. The RLS results under Hybrid Pulse Power Characteristic (HPPC) discharge data at 0.5C rate are shown in Table 2, though some anomalies like negative values are ignored as they only serve to guide bounds.

Parameter Estimated Range from RLS
Ohmic Resistance $$R_0$$ ~0.15 Ω
Polarization Resistance $$R_1$$ ~0.05 Ω
Polarization Resistance $$R_2$$ ~0.0002 Ω
Polarization Capacitance $$C_1$$ ~1500 F
Polarization Capacitance $$C_2$$ ~6.5 F

Using these ranges, we apply PSO to identify the parameters of the fractional-order model. The PSO settings include a swarm size of 30 particles and a velocity limit set to 2.25 times the minimum search speed. The identified parameters for the second-order fractional-order model are listed in Table 3.

Parameter Value
Ohmic Resistance $$R_0$$ 150 mΩ
Electrochemical Polarization Resistance $$R_1$$ 52.4 mΩ
Concentration Polarization Resistance $$R_2$$ 0.155 mΩ
Polarization Capacitance $$C_1$$ 150 kF
Polarization Capacitance $$C_2$$ 6.5 kF
Fractional Order α 0.982
Fractional Order β 0.969

The convergence of PSO is validated by monitoring $$U_{\text{RMSE}}$$ over iterations under Dynamic Stress Test (DST) conditions. As shown in Figure 1, $$U_{\text{RMSE}}$$ decreases rapidly and falls below 0.05 V after 25 iterations, indicating effective parameter identification for the lithium-ion battery model.

For SOC estimation, we employ the Fractional Extended Kalman Filter (FEKF), an extension of the classic Kalman filter that incorporates fractional-order calculus to handle nonlinear systems. The standard Extended Kalman Filter (EKF) linearizes nonlinear functions, but it may not fully capture fractional dynamics. FEKF addresses this by integrating fractional derivatives into the prediction step. The state-space model for the lithium-ion battery is given by:

$$x_{k+1} = f(x_k, u_k) + w_k$$

$$y_k = g(x_{k+1}, u_{k+1}) + v_k$$

where $$f(\cdot)$$ and $$g(\cdot)$$ are nonlinear functions derived from the fractional-order model, and $$w_k$$ and $$v_k$$ are process and measurement noise with covariances $$Q_k$$ and $$R_k$$, respectively. The FEKF algorithm involves the following steps:

  1. Initialization: Set initial state estimate $$\hat{x}_0^+$$ and error covariance matrix $$P_0^+$$.
  2. Time update (prediction):
    $$\hat{x}_{k+1}^- = A \hat{x}_k^+ + B u_k – \sum_{i=1}^{k+1} K_i \hat{x}_{k+1-i}^+$$
    $$P_{k+1}^- = A P_k^+ A^T + \sum_{i=1}^{k+1} K_i P_{k+1-i}^+ K_i^T + Q_k$$
  3. Kalman gain update:
    $$L_{k+1} = P_{k+1}^- G_{k+1}^T \left( G_{k+1} P_{k+1}^- G_{k+1}^T + R_{k+1} \right)^{-1}$$
    where $$G_{k+1}$$ is the Jacobian matrix of the output function.
  4. Measurement update (correction):
    $$\hat{x}_{k+1}^+ = \hat{x}_{k+1}^- + L_{k+1} \left( y_{k+1} – g(\hat{x}_{k+1}^-, u_{k+1}) \right)$$
    $$P_{k+1}^+ = (I – L_{k+1} G_{k+1}) P_{k+1}^-$$
  5. Iterate until the end of the data stream.

We simulate SOC estimation under DST conditions with an initial SOC of 1 and a duration of 5000 seconds. The results compare FEKF against traditional EKF. The SOC estimation errors are quantified, and the performance metrics are summarized in Table 4.

Algorithm Maximum SOC Error RMSE of SOC Estimation Computation Time (s)
EKF ±0.005 0.0021 0.45
FEKF ±0.002 0.0008 0.52

The FEKF algorithm demonstrates superior accuracy with smaller fluctuations and stronger anti-interference capability. This improvement is attributed to the fractional-order model’s better representation of the lithium-ion battery’s diffusion dynamics, which are inherently non-integer order. The integration of PSO for parameter identification ensures that the model parameters are optimized, further enhancing the SOC estimation performance.

In conclusion, we have developed an advanced SOC estimation method for lithium-ion batteries based on a second-order fractional-order equivalent circuit model. By replacing integer-order capacitors with Constant Phase Elements, we achieve a more accurate representation of battery behavior. Parameter identification using PSO, guided by initial ranges from least squares estimation, ensures fast convergence and low error. The FEKF algorithm, incorporating fractional calculus, provides precise SOC estimates with minimal error compared to traditional EKF. Simulation results under DST conditions validate the effectiveness of our approach, highlighting its potential for real-world applications in battery management systems. Future work could explore adaptive fractional-order models or integration with other estimation techniques to further improve robustness for lithium-ion batteries under varying operational conditions.

The advancements in lithium-ion battery modeling and SOC estimation are crucial for the development of reliable energy storage systems. Our method contributes to this field by leveraging fractional-order theory and optimization algorithms, offering a pathway to enhance the performance and longevity of lithium-ion batteries. As the demand for efficient energy storage grows, such innovative approaches will play a key role in supporting sustainable energy solutions worldwide.

Scroll to Top