CSO-AEKF for Li-ion Battery SOC Estimation

In this work, I focus on improving the state of charge (SOC) estimation accuracy for Li-ion battery systems by combining a cat swarm optimization (CSO) algorithm with an adaptive extended Kalman filter (AEKF). The motivation is straightforward: traditional SOC estimation methods often suffer from insufficient parameter identification accuracy and poor filtering robustness, especially when a Li-ion battery operates under intermittent charging and discharging profiles. To address these issues, I establish a second-order RC equivalent circuit model for the Li-ion battery, use CSO to identify the model parameters precisely, and then apply AEKF to estimate the SOC. I compare the proposed CSO-AEKF method with a genetic algorithm (GA)-AEKF benchmark. The results show that the CSO-AEKF method achieves a relative SOC estimation error of 0.05% under intermittent charging conditions and 0.10% under intermittent discharging conditions. These values indicate better stability and estimation accuracy than the GA-AEKF approach.

The Li-ion battery has become a common choice for new energy vehicles because of its high energy density and favorable performance. A battery management system (BMS) plays a critical role in monitoring the battery state. Improving the accuracy of SOC estimation in the BMS helps extend battery service time and optimize energy consumption. Among the available methods, ampere-hour integration is an offline SOC estimation method. The open-circuit voltage (OCV) method is simpler and more direct than ampere-hour integration. Some improved OCV methods estimate both battery parameters and SOC simultaneously and solve the poor accuracy problem of most OCV methods, yielding good results under federal urban driving schedule (FUDS) conditions. Kalman filter (KF) algorithms are more mainstream for SOC estimation, but they require a very accurate equivalent circuit model and bring a considerable computational burden. A hierarchical adaptive extended Kalman filter (AEKF) algorithm can reduce computational cost and improve accuracy. Compared with KF algorithms, data-driven methods do not need a complex equivalent model; they only require collecting relevant battery test data and performing extensive training. An improved data-driven method adds a delayed adaptive network to SOC estimation. Using a delayed gradient network algorithm to estimate the SOC of a power Li-ion battery can improve effectiveness and robustness. When estimating the SOC of a Li-ion battery, parameter identification errors directly affect the final accuracy. At present, most Li-ion battery parameter identification is based on recursive least squares, which may be distorted by measurement noise and model mismatch when identifying dynamic system parameters, leading to estimation bias and possibly insufficient convergence speed or instability.

An accurate battery equivalent model can improve estimation accuracy. At present, the models used for SOC estimation are mainly equivalent circuit models and electrochemical models. Electrochemical models are computationally intensive, require deep study of internal battery reactions to understand the basic mechanisms, and must be transformed into numerical formats. Therefore, they involve many physical and chemical phenomena, including solid-phase and liquid-phase lithium-ion concentrations, overpotentials, and other variables. These physical quantities are difficult to quantify and require simulation, which increases model complexity and makes BMS application difficult. Internal resistance (Rint) models, Thevenin models, and partnership for a new generation of vehicles (PNGV) models are common equivalent circuit models. The Thevenin model can be divided into two different categories: first-order RC models and multi-order RC models. As the model order increases, accuracy improves, but computational complexity and cost increase proportionally. After comprehensively considering computational cost and model accuracy, the second-order RC model is widely used because it balances these two factors well. Compared with a simpler first-order RC model, the second-order RC model represents the Li-ion battery more accurately at different frequencies, including fast and slow voltage fluctuations, making SOC estimation more precise, especially when operating parameters fluctuate greatly. This model is suitable for various operating scenarios, including charging and discharging of different batteries, ensuring relatively consistent SOC estimation results.

I propose a method based on a second-order RC equivalent circuit model and a CSO algorithm to determine power Li-ion battery parameters. Subsequently, I use an AEKF algorithm to determine the battery SOC. The search strategy of CSO makes it highly flexible in application, and it can maintain stability and robustness even in the presence of noise and incomplete data. Enhanced adaptive weight adjustment helps achieve more precise identification at different stages and improves the accuracy of parameter identification. Finally, I analyze the experimental results of different algorithms under different operating conditions.

Li-ion battery model and parameter identification

The second-order RC model consists of two RC circuits. In this model, \(U_{oc}\) is the open-circuit voltage (OCV) of the circuit, \(R_0\) is the internal ohmic resistance, \(R_1\) and \(C_1\) are the internal electrochemical polarization resistance and polarization capacitance of the Li-ion battery, and \(U_1\) is the node voltage of this RC network. \(R_2\) and \(C_2\) are the internal electrochemical concentration polarization resistance and concentration polarization capacitance of the Li-ion battery, and \(U_2\) is the node voltage of this RC network. \(U\) is the terminal voltage of the Li-ion battery under operating conditions, and \(I\) is the current. The discharge state is positive, and the charge state is negative. The sum of \(U_1\) and \(U_2\) gives the total polarization voltage of the Li-ion battery.

According to the second-order RC model, the relationship among the state parameters of the Li-ion battery can be written as:

$$
\begin{cases}
\frac{dU_1}{dt} = -\frac{1}{R_1 C_1}U_1 + \frac{1}{C_1}I \\
\frac{dU_2}{dt} = -\frac{1}{R_2 C_2}U_2 + \frac{1}{C_2}I \\
U = U_{oc} – U_1 – U_2 – R_0 I
\end{cases}
$$

According to the ampere-hour integration method, the SOC of the Li-ion battery is calculated as:

$$
SOC = SOC_0 – \frac{1}{C_n}\int_{t_0}^{t} \eta I \, dt
$$

Here, \(SOC_0\) is the SOC at time \(t_0\), \(SOC\) is the SOC at time \(t\), \(C_n\) is the rated capacity of the Li-ion battery, and \(\eta\) is the charge-discharge efficiency.

Table 1 summarizes the main symbols and their meanings in the second-order RC model for the Li-ion battery.

Symbol Meaning Unit
\(U_{oc}\) Open-circuit voltage of the Li-ion battery V
\(R_0\) Internal ohmic resistance mΩ
\(R_1\) Electrochemical polarization resistance mΩ
\(C_1\) Electrochemical polarization capacitance kF
\(R_2\) Concentration polarization resistance mΩ
\(C_2\) Concentration polarization capacitance kF
\(U_1\) Voltage across the first RC network V
\(U_2\) Voltage across the second RC network V
\(U\) Terminal voltage of the Li-ion battery V
\(I\) Current, positive for discharge and negative for charge A
\(C_n\) Rated capacity of the Li-ion battery Ah
\(\eta\) Charge-discharge efficiency —

Parameter identification based on the CSO algorithm

The CSO algorithm is a heuristic optimization algorithm inspired by the living habits of cats. The basic premise can be understood as treating the solution space as the domain of a food source. Search agents, i.e., cats, continuously track and explore the food source to seek a better solution. During the search process, each cat in the swarm has a certain degree of exploration ability and adaptability. Through communication and cooperation, the search performance is improved, and the optimal or near-optimal solution is eventually found. The main steps of the CSO algorithm are as follows.

First, initialization is performed. The position and velocity of each cat in the swarm are initialized, and an initial solution is randomly generated as the initial position of each cat. The initial velocity can be set according to the specific problem, and a small value is usually chosen.

Second, individual behavior is executed. For each cat, the position and velocity are updated according to the current position, velocity, and the evaluation result of the objective function. The position update formula for a cat is:

$$
x_i(t+1) = x_i(t) + v_i(t+1)
$$

Here, \(x_i(t)\) is the current position of the cat, \(v_i(t+1)\) is the velocity of the cat, and \(x_i(t+1)\) is the new position of the cat after updating.

Third, swarm behavior is performed. In the swarm behavior stage, cats can optimize the search process by sharing information and cooperating with each other. Some heuristic strategies can be introduced, such as randomly selecting neighbors to exchange information, to increase search diversity.

Fourth, data are updated. According to the evaluation results of the objective function, the position and velocity of each cat in the swarm are updated. Some adaptive strategies can be adopted, such as dynamically adjusting parameters according to performance during the search process, to improve search efficiency and convergence.

When the CSO algorithm is combined with Li-ion battery parameter identification, the objective function is defined as the sum of squared residuals:

$$
J = \sum_{k=1}^{N} (U_{meas,k} – U_{est,k})^2
$$

Here, \(U_{meas,k}\) is the measured terminal voltage at time \(k\), \(U_{est,k}\) is the estimated terminal voltage at time \(k\), and \(N\) is the number of sampling points. The parameter vector to be optimized is:

$$
X = [R_0, R_1, R_2, C_1, C_2]
$$

Each cat represents a possible solution, and its position represents the values of \(R_0\), \(R_1\), \(R_2\), \(C_1\), and \(C_2\). The cat updates its position and velocity according to the evaluation of the objective function, aiming to find the optimal solution. The position and velocity updates are:

$$
v_i(t+1) = \omega v_i(t) + c_1 \text{rand}()[p_{best,i} – x_i(t)] + c_2 \text{rand}()[g_{best,i} – x_i(t)]
$$

$$
x_i(t+1) = x_i(t) + v_i(t+1)
$$

Here, \(\omega\) is the inertia weight, usually ranging from 0.5 to 1.5; \(c_1\) and \(c_2\) are acceleration factors, usually set to 2.05; \(\text{rand}()\) is a random number generator that varies between 0 and 1; \(p_{best,i}\) is the best historical position of an individual cat; and \(g_{best,i}\) is the best historical position of the entire swarm.

In many optimization problems, setting \(c_1 = c_2 = 2.05\) provides good convergence performance and ensures that the algorithm efficiently explores the entire solution space. The global and local search abilities in multi-dimensional space are relatively balanced, avoiding local optima, especially in complex and multi-peak optimization problems. Finally, the solution \(X^* = [R_0^*, R_1^*, R_2^*, C_1^*, C_2^*]\) obtained from the final solution minimizes the objective function in the final optimization process.

Table 2 lists the CSO parameter settings I used for Li-ion battery model identification.

Parameter Value
Number of cats 40
Maximum iterations 200
Inertia weight \(\omega\) 0.7
Acceleration factors \(c_1, c_2\) 2.05
Search dimension 5
Objective function Sum of squared terminal voltage residuals

The parameter identification results of the second-order RC equivalent circuit model based on the CSO algorithm are shown in Table 3. These values are obtained at different SOC levels and are used to build the Li-ion battery model for subsequent SOC estimation.

SOC \(R_0\) / mΩ \(R_1\) / mΩ \(C_1\) / kF \(R_2\) / mΩ \(C_2\) / kF
0.0 0.933 1.6 17.45 1.2 902.34
0.1 1.100 2.0 14.49 1.1 450.24
0.2 0.933 2.4 17.13 1.3 768.31
0.3 1.100 2.2 14.88 1.2 818.22
0.4 0.929 2.5 10.24 1.5 569.55
0.5 1.100 2.8 9.32 1.9 496.16
0.6 0.929 2.4 12.23 2.3 277.48
0.7 0.775 2.5 10.08 1.2 674.44
0.8 1.200 3.0 13.37 1.0 1143.10
0.9 0.775 1.6 3.66 4.0 617.93
1.0 0.930 9.3 3.35 3.1 152.25

AEKF algorithm for Li-ion battery SOC estimation

A Li-ion battery system has nonlinear relationships, so the classical Kalman filter method is no longer applicable. Therefore, the extended Kalman filter (EKF) algorithm was developed. EKF can expand the Taylor series of a nonlinear functional relationship to obtain a linearized function, ignoring second-order and higher-order terms. This transformation converts a nonlinear problem into a linear problem and allows the classical Kalman filter algorithm to estimate the optimal state. EKF can estimate the optimal state of a nonlinear system, such as a Li-ion battery system. The nonlinear system equations of the EKF algorithm are:

$$
\begin{cases}
x_{k+1} = f(x_k, u_k) + \omega_k \\
y_k = g(x_k, u_k) + v_k
\end{cases}
$$

Here, \(x\) and \(y\) are the state quantity and output quantity, respectively; \(x_{k+1}\) is the system input; \(y_k\) is the system output; and \(\omega_k\) and \(v_k\) are the process and observation noise of the system.

By discretizing the second-order RC equivalent circuit model, the state equation of the model can be written as:

$$
x_{k+1} =
\begin{bmatrix}
SOC(k+1) \\
U_1(k) \\
U_2(k)
\end{bmatrix}
=
\begin{bmatrix}
1 & 0 & 0 \\
0 & e^{-T/\tau_1} & 0 \\
0 & 0 & e^{-T/\tau_2}
\end{bmatrix}
x_k
+
\begin{bmatrix}
-\eta T / C_n \\
R_1(1 – e^{-T/\tau_1}) \\
R_2(1 – e^{-T/\tau_2})
\end{bmatrix}
T I(k)
+ \omega_k
$$

$$
U = \frac{\partial U_{oc}(SOC(k))}{\partial SOC(k)}
\begin{bmatrix}
SOC(k) \\
U_1(k) \\
U_2(k)
\end{bmatrix}
– R_0 I(k) + v_k
$$

Here, \(T\) is the sampling period, and \(\tau_1 = R_1 C_1\), \(\tau_2 = R_2 C_2\). To improve the accuracy of the EKF algorithm, adaptive optimization is performed. The steps for applying the AEKF algorithm to SOC estimation are as follows.

First, initial values are assigned to the state variables, and the covariance matrix \(P\) is defined. Second, the state variable is estimated:

$$
\hat{x}_{k+1|k} = A \hat{x}_{k|k} + B u_k + \omega_k
$$

Here, \(A\) is the state transition matrix, and \(B\) is the input control matrix. Third, the error covariance matrix \(P_{k+1|k}\) is estimated from the initialized error covariance:

$$
P_{k+1|k} = A P_{k|k} A^T + Q
$$

Here, \(Q\) is the process noise covariance matrix. Fourth, the Kalman gain is calculated:

$$
K_{k+1} = P_{k+1|k} C^T (C P_{k+1|k} C^T + R)^{-1}
$$

Here, \(C\) is the observation matrix, and \(R\) is the observation noise covariance matrix. Fifth, the state variable at time \(k\) is used to update the state variable at the next time:

$$
\hat{x}_{k+1|k+1} = \hat{x}_{k+1|k} + K_{k+1} [y_{k+1} – \hat{y}_{k+1|k}]
$$

Sixth, the covariance matrix is updated:

$$
P_{k+1|k+1} = [I – K_{k+1} C] P_{k+1|k}
$$

Here, \(I\) is the identity matrix. Seventh, adaptive noise updating is performed:

$$
Q_{k+1} = K_{k+1} F K_{k+1}^T
$$

$$
e = y_{k+1} – \hat{y}_{k+1|k}
$$

$$
F = \frac{1}{M} \sum e e^T
$$

$$
R = F + C P_{k+1|k} C^T
$$

Here, \(e\) is the observation innovation, \(F\) is the covariance estimate of the observation innovation sequence, and \(M\) is the matching window size. Steps two through seven are repeated cyclically to estimate the SOC of the Li-ion battery.

Table 4 summarizes the AEKF parameters and the initial conditions used in my Li-ion battery SOC estimation.

Parameter Value
Initial SOC 1.0
Initial covariance \(P_0\) \(10^{-4} I_{3 \times 3}\)
Process noise covariance \(Q\) \(10^{-6} I_{3 \times 3}\)
Observation noise covariance \(R\) 0.01
Sampling period \(T\) 1 s
Window size \(M\) 20

Experimental validation and analysis

To verify the effectiveness of the proposed method, I used a battery test system to build a simulation and experimental platform based on MATLAB. The experimental object was an IFP36130120 Li-ion battery. The battery had a capacity of 36 Ah, a rated voltage of 3.2 V, a charge cutoff voltage of 3.7 V, and a discharge end voltage of 2.5 V. Table 5 lists the main specifications of the Li-ion battery used in the experiments.

Specification Value
Battery type Li-ion battery
Model IFP36130120
Rated capacity 36 Ah
Rated voltage 3.2 V
Charge cutoff voltage 3.7 V
Discharge end voltage 2.5 V
Operating temperature for validation 25 °C

To determine the SOC of the Li-ion battery, I measured the OCV and compared it with a specific \(U_{oc}\)-SOC curve. Usually, experimental data are needed to establish the \(U_{oc}\)-SOC curve of a Li-ion battery. When the battery is fully charged, the OCV reaches its highest value. The OCV gradually decreases during discharge. When the battery is fully discharged, the OCV reaches its lowest value. At a constant temperature of 25 °C, I charged and discharged the Li-ion battery fully with a current of 1/3 C, rested it for 1 h, and measured the OCV. The fitted \(U_{oc}\)-SOC curve is nonlinear. When the Li-ion battery is nearly fully charged or fully discharged, the rate of change of OCV with SOC is larger than at intermediate SOC values. Equation (14) uses a ninth-order polynomial to fit the curve:

$$
\begin{aligned}
U_{oc} = & 3060.5 \times SOC^9 – 13712.7 \times SOC^8 \\
& + 25908.7 \times SOC^7 – 26861.9 \times SOC^6 \\
& + 16655.1 \times SOC^5 – 6310.9 \times SOC^4 \\
& + 1434.4 \times SOC^3 – 185.1 \times SOC^2 \\
& + 12.47 \times SOC + 2.90
\end{aligned}
$$

Table 6 lists the fitting coefficients of the \(U_{oc}\)-SOC polynomial for the Li-ion battery. These coefficients are used to compute the OCV during AEKF-based SOC estimation.

Order Coefficient
\(SOC^9\) 3060.5
\(SOC^8\) -13712.7
\(SOC^7\) 25908.7
\(SOC^6\) -26861.9
\(SOC^5\) 16655.1
\(SOC^4\) -6310.9
\(SOC^3\) 1434.4
\(SOC^2\) -185.1
\(SOC^1\) 12.47
Constant 2.90

I used an intermittent charge and discharge condition with a current of 12 A to validate the algorithm. The cycle steps were as follows. First, I divided the SOC from 0 to 1.0 into 10 intervals with \(\Delta SOC = 0.1\). Second, in the charge or discharge stage, the Li-ion battery was charged or discharged at 12 A for 20 min until the SOC increased or decreased by approximately 0.1. I recorded the voltage and current data during the charge or discharge process. Third, in the rest stage, after charging or discharging ended, the Li-ion battery was rested for 1 h to simulate the idle time in actual use. Fourth, the cycle was repeated until the Li-ion battery rose from SOC = 0 to SOC = 1.0 or dropped from SOC = 1.0 to SOC = 0. Table 7 summarizes the intermittent charge and discharge profile used for the Li-ion battery experiments.

Step Action Current Duration SOC change
1 Charge or discharge 12 A 20 min approximately 0.1
2 Rest 0 A 1 h 0
3 Repeat 12 A 20 min approximately 0.1
4 Continue until SOC limit — — 0 to 1.0 or 1.0 to 0

Under the intermittent charging condition, I predicted the terminal voltage of the Li-ion battery. The GA-AEKF algorithm had an error within 1.0%, while the CSO-AEKF algorithm had a smaller error, within 0.5%. Under the intermittent charging condition, I also predicted the SOC. The GA-AEKF algorithm had an error not exceeding 0.40%, while the CSO-AEKF algorithm had an error within 0.05%. Table 8 presents the terminal voltage prediction error statistics for the Li-ion battery under intermittent charging conditions.

Algorithm Maximum voltage error / % Mean voltage error / % Standard deviation / %
GA-AEKF 1.00 0.52 0.21
CSO-AEKF 0.50 0.21 0.09

Table 9 presents the SOC prediction error statistics for the Li-ion battery under intermittent charging conditions.

Algorithm Maximum SOC error / % Mean SOC error / % Relative error / %
GA-AEKF 0.40 0.18 0.12
CSO-AEKF 0.05 0.02 0.05

Under the intermittent discharging condition, I predicted the terminal voltage of the Li-ion battery. The GA-AEKF algorithm had errors uniformly distributed around 0.5%. At the end of discharge, the error increased to about 1%. The CSO-AEKF algorithm had errors within 0.5%, and even when the Li-ion battery was not at the end of discharge, the influence on the algorithm was relatively small. Table 10 presents the terminal voltage prediction error statistics for the Li-ion battery under intermittent discharging conditions.

Algorithm Maximum voltage error / % Mean voltage error / % End-of-discharge error / %
GA-AEKF 1.00 0.53 1.00
CSO-AEKF 0.50 0.24 0.48

Under the intermittent discharging condition, I also predicted the SOC of the Li-ion battery. As the SOC decreased, the prediction error of the GA-AEKF algorithm gradually increased, reaching a maximum of about 1.5% at the end of discharge. The CSO-AEKF algorithm had an error around 0.1% in the early discharge stage. At the end of discharge, the error increased but did not exceed 1.4%. Table 11 presents the SOC prediction error statistics for the Li-ion battery under intermittent discharging conditions.

Algorithm Maximum SOC error / % Mean SOC error / % Relative error / %
GA-AEKF 1.50 0.72 0.65
CSO-AEKF 1.40 0.13 0.10

The comparison between GA-AEKF and CSO-AEKF clearly shows that the CSO-AEKF algorithm provides better SOC estimation for the Li-ion battery. The relative SOC estimation error of CSO-AEKF is 0.05% under intermittent charging conditions and 0.10% under intermittent discharging conditions. These results validate the superiority of the CSO-AEKF method for Li-ion battery SOC estimation.

Discussion of robustness and computational behavior

The CSO algorithm improves the parameter identification of the Li-ion battery model by searching the solution space globally. The adaptive weight adjustment and the cooperative swarm behavior allow the CSO to avoid local optima and to identify \(R_0\), \(R_1\), \(R_2\), \(C_1\), and \(C_2\) more accurately. The AEKF then uses these parameters to estimate SOC. The adaptive noise updating in AEKF compensates for modeling errors and measurement noise, which is important for a Li-ion battery because its internal parameters vary with SOC, current, and aging.

Table 12 compares the computational cost and estimation accuracy of the GA-AEKF and CSO-AEKF algorithms for the Li-ion battery.

Algorithm Parameter identification method SOC filter Relative SOC error under charging / % Relative SOC error under discharging / % Robustness
GA-AEKF Genetic algorithm AEKF 0.12 0.65 Moderate
CSO-AEKF Cat swarm optimization AEKF 0.05 0.10 High

Table 13 summarizes the SOC error of the Li-ion battery in different SOC intervals under intermittent discharging conditions.

SOC interval GA-AEKF error / % CSO-AEKF error / %
1.0–0.8 0.20 0.05
0.8–0.6 0.35 0.08
0.6–0.4 0.55 0.10
0.4–0.2 0.80 0.18
0.2–0.0 1.50 1.40

Table 14 summarizes the SOC error of the Li-ion battery in different SOC intervals under intermittent charging conditions.

SOC interval GA-AEKF error / % CSO-AEKF error / %
0.0–0.2 0.40 0.05
0.2–0.4 0.30 0.04
0.4–0.6 0.22 0.03
0.6–0.8 0.18 0.02
0.8–1.0 0.25 0.05

The results indicate that the CSO-AEKF method maintains a low SOC estimation error across most SOC intervals. The largest error occurs at the end of discharge for both algorithms, which is caused by the steep \(U_{oc}\)-SOC relationship and the increased polarization effect in the Li-ion battery. Nevertheless, the CSO-AEKF algorithm still limits the relative error to 0.10% under intermittent discharging conditions when the whole profile is considered, and the maximum observed error is 1.40%, which is better than the GA-AEKF benchmark.

Future improvements and temperature considerations

The experiments in this work did not consider the influence of temperature on the algorithm estimation. Temperature affects the internal resistance, polarization capacitance, and OCV of a Li-ion battery. Therefore, future work should include temperature as one of the influencing factors. I plan to extend the model to a temperature-dependent second-order RC model, where the parameters are functions of both SOC and temperature. The parameter vector can be generalized as:

$$
X(SOC, T) = [R_0(SOC,T), R_1(SOC,T), R_2(SOC,T), C_1(SOC,T), C_2(SOC,T)]
$$

The objective function for parameter identification can then be extended to include multiple temperature conditions:

$$
J = \sum_{j=1}^{M_T} \sum_{k=1}^{N} (U_{meas,k}^{(j)} – U_{est,k}^{(j)})^2
$$

Here, \(M_T\) is the number of temperature conditions, and \(U_{meas,k}^{(j)}\) and \(U_{est,k}^{(j)}\) are the measured and estimated terminal voltages at temperature condition \(j\), respectively. Table 15 lists potential temperature levels and their expected effects on the Li-ion battery parameters.

Temperature / °C Expected \(R_0\) change Expected \(R_1, R_2\) change Expected \(C_1, C_2\) change Expected SOC error impact
-10 Higher Higher Lower Increased error
0 Moderately higher Moderately higher Moderately lower Moderate error
25 Reference Reference Reference Low error
40 Lower Lower Higher Low error
55 Lower Lower Higher Potential aging effect

Another direction is to improve the AEKF by using a variable window size for adaptive noise covariance estimation. The window size \(M\) in the covariance estimate

$$
F = \frac{1}{M} \sum e e^T
$$

can be adjusted online according to the innovation sequence. A larger window reduces noise sensitivity, while a smaller window improves tracking speed. For a Li-ion battery, a variable window may improve SOC estimation during rapid current changes and rest periods. Table 16 summarizes possible adaptive window strategies for AEKF-based Li-ion battery SOC estimation.

Strategy Window size \(M\) Advantage Risk
Fixed small window 5–10 Fast tracking Noise sensitivity
Fixed medium window 15–25 Balanced Moderate tracking
Fixed large window 30–50 Low noise sensitivity Slow tracking
Variable window 5–50 Adaptive to dynamics Requires tuning

Conclusion

In this work, I established a second-order RC equivalent circuit model for a Li-ion battery and proposed a SOC estimation method that combines the CSO algorithm and the AEKF algorithm. I compared the proposed CSO-AEKF method with a GA-AEKF algorithm. By comparing the experimental results of each algorithm under different operating conditions, I found that the CSO-AEKF algorithm achieves a SOC estimation error within 0.05% under intermittent charging conditions and within 0.10% under intermittent discharging conditions. Both results are better than those of the GA-AEKF algorithm. The results validate the superiority of the CSO-AEKF method for Li-ion battery SOC estimation. The CSO algorithm provides accurate parameter identification for the Li-ion battery model, and the AEKF algorithm provides robust SOC estimation despite measurement noise and model mismatch. The combination is particularly suitable for Li-ion battery applications with intermittent charging and discharging, where the current profile is not constant and the internal parameters change with SOC. The experiments did not consider the influence of temperature on the algorithm estimation. In future work, I will include temperature as one of the influencing factors, extend the model to temperature-dependent parameter identification, and evaluate the CSO-AEKF method for Li-ion battery SOC estimation under a wider range of operating conditions.

Scroll to Top