Next Article in Journal
A Semi-Analytical Model for Pressure Transient Analysis of Multiple Fractured Horizontal Wells in Irregular Heterogeneous Reservoirs
Previous Article in Journal
Multi-Objective Optimization-Driven Research on Rural Residential Building Design in Inner Mongolia Region
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Estimation of the State of Charge of Lithium Batteries Under a Wide Temperature Range

1
Institute of Automation, Qilu University of Technology (Shandong Academy of Sciences), Jinan 250000, China
2
Science and Technology Service Platform, Qilu University of Technology (Shandong Academy of Sciences), Jinan 250000, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(7), 1866; https://doi.org/10.3390/en18071866
Submission received: 6 March 2025 / Revised: 1 April 2025 / Accepted: 4 April 2025 / Published: 7 April 2025
(This article belongs to the Section D2: Electrochem: Batteries, Fuel Cells, Capacitors)

Abstract

:
The state of charge (SOC) of lithium-ion batteries is essential for their proper functioning and serves as the basis for estimating other parameters within the battery management system. To enhance the accuracy of SOC estimation in lithium-ion batteries, we propose a joint estimation method that integrates lithium-ion battery parameter identification and SOC assessment using cat swarm optimization dual Kalman filtering (CSO–DKF), which accounts for variable-temperature conditions. We adopt a second-order equivalent circuit model, utilizing the Kalman filtering (KF) algorithm as a parameter filter for dynamic parameter identification, while the extended Kalman filtering (EKF) algorithm acts as a state filter for real-time SOC estimation. These two filters operate alternately throughout the iterative process. Additionally, the cat swarm optimization (CSO) algorithm optimizes the noise covariance matrices of both filters, thereby enhancing the precision of parameter identification and SOC estimation. To support this algorithm, we establish an environmental temperature battery database and incorporate temperature variables to achieve accurate SOC estimation under variable-temperature conditions. The results indicate that creating a database that accommodates temperature variations and optimizing dual Kalman filtering through the cat swarm optimization algorithm significantly improves SOC estimation accuracy.

1. Introduction

In the context of the current advancing era and the ongoing refinement of environmental protection regulations, the development of power emission technologies for traditional fuel vehicles has encountered significant challenges. Consequently, an increasing number of manufacturers are intensifying their investments in the research, development, and production of new energy vehicles. Specifically, vehicles powered by lithium-ion batteries exhibit superior performance, offer longer driving ranges, and deliver a more favorable driving experience [1]. As a result, they are widely utilized in battery electric vehicles (BEVs), hybrid electric vehicles (HEVs), and plug-in hybrid electric vehicles (PHEVs) [2].
Over the past few decades, the continuous pursuit of high-precision real-time estimation and understanding of the chemical characteristics of lithium-ion batteries has spurred ongoing research in the field of SOC estimation. Consequently, a wide variety of methods have emerged, which can be generally classified into four categories. The first category involves calibrating the SOC through battery characterization parameters. Wang et al. proposed a strategy for updating the SOC algorithm model based on electrochemical impedance spectroscopy (EIS) [3]. The results indicated that this method effectively improved the estimation accuracy. Zheng et al. investigated the influence of different open-circuit voltage (OCV) testing methods on the online estimation of battery SOC [4], providing guidance for the engineering application of battery management systems (BMSs). Pattipati et al. found through research that the temperature and aging degree of the battery had a minimal impact on the SOC–OCV characteristics. Therefore, the normalized OCV parameter is an important means for accurately estimating the SOC [5]. The second category is the ampere-hour integration method. In essence, it accumulates the charge during battery charging and discharging to estimate the battery’s SOC. This method is simple and intuitive, and has relatively low requirements for controller hardware and storage [6]. However, it has multiple sources of error and thus cannot guarantee the accuracy of SOC estimation [7]. The third category utilizes models combined with algorithms for SOC estimation. Cheng et al. proposed a dual fuzzy-based adaptive extended Kalman filter (DFAEKF) [8]. The experiments showed that this method could effectively control the estimation error within 1%. Wang et al. put forward an SOC estimation method based on a first-order equivalent circuit model and cloud data for adaptive adjustment of the noise matrix in the extended Kalman filter [9]. The experiments demonstrated that the overall relative error of this method could be controlled within 3%. Miao et al. proposed an adaptive fractional-order unscented Kalman filter (UKF) algorithm to estimate the battery SOC without the need for parameter identification [10]. Qian et al. proposed a switching gain adaptive sliding-mode observer based on a dual-polarization (DP) equivalent circuit model to improve the SOC estimation accuracy [11]. Chen et al. presented an SOC estimation method based on a non-commensurate fractional-order (FO) observer [12]. Similarly, there are also other methods such as H filtering [13] and particle filter algorithms [14]. The fourth category estimates the SOC through training datasets [15]. Zhang et al. optimized the multi-hidden-layer BP neural network (LMMBP) trained by the Levenberg–Marquard (L–M) algorithm using the genetic algorithm (GA) and particle swarm optimization (PSO) algorithm [16], which improved the SOC estimation accuracy and convergence speed. Zhang et al. adopted a feature extraction strategy based on variable correlation analysis and principal component analysis. The obtained compressed dataset was used as the input of the radial basis function neural network (RBFNN), and the particle swarm optimization algorithm was used to improve the RBFNN estimation model [17], thereby enhancing the SOC estimation accuracy. In addition, there are methods based on deep learning [18,19] and support vector machines [20,21].
Nevertheless, the previous methods have failed to consider the influence of environmental temperature variations on the real-time estimation of the SOC of lithium-ion batteries. Variations in the environmental temperature can impact the activity of the chemical materials within lithium batteries, thereby resulting in the instability of parameter estimation and consequently affecting the accuracy of real-time SOC estimation. To improve the accuracy of parameter identification as well as the precision of SOC estimation, a real-time SOC estimation method based on the dual Kalman filter optimized by the cat swarm optimization algorithm, which takes temperature variations into account, is proposed.
The main contributions of this paper are as follows:
  • In light of the variations in environmental temperature, a second-order equivalent circuit model was developed, and a parameter identification approach based on the CSO algorithm for optimizing the Kalman filter (CSO-KF) was put forward;
  • An environmental temperature battery database was constructed based on the parameter identification results that incorporated temperature variations. By means of mathematical relations, the correlations among the parameters at the current moment, the SOC values, and the temperature were introduced, thus enabling the acquisition of accurate parameter values within variable-temperature environments;
  • A real-time SOC estimation method based on the CSO–DKF algorithm was proposed. The parameter filter and the state filter operated alternately, and the accuracy of SOC estimation was verified under three variable-temperature environments.
The specific sections of this paper are structured as follows: Section 2 elaborates on the lithium-ion battery model. Section 3 puts forward the parameter identification method for the Kalman filter optimized by the cat swarm optimization algorithm. Section 4 proposes the real-time SOC estimation method based on optimizing the dual Kalman filter with the cat swarm optimization algorithm. Section 5 presents the experimental results and corresponding analysis. Section 6 offers the conclusions

2. Battery Model

The selection of battery models is directly related to the estimation accuracy of SOC. Currently, commonly used models include electrochemical models [22,23], equivalent circuit models [24,25], and fractional-order models [26,27,28]. Taking into comprehensive consideration the model accuracy, complexity, and computational efficiency, this paper selects the second-order equivalent circuit model. Among them, U o c and U o are the open-circuit voltage and terminal voltage in the circuit, respectively, R 0 is the ohmic internal resistance, R 1 and R 2 are the polarization internal resistances, and C 1 and C 2 are the polarization capacitances. The current in the circuit is represented by I. It takes a positive value during charging and a negative value during discharging. The model is shown in Figure 1.
Based on Kirchhoff’s voltage law, the state equation of the system can be formulated as follows:
d S O C d t = I C q d U 1 d t = U 1 R 1 C 1 + 1 C 1 I d U 2 d t = U 2 R 2 C 2 + 1 C 2 I
Observation equation:
U o = U O C + I R 0 + U 1 + U 2
In the equation, U 1 denotes the voltage of the parallel branch composed of R 1 and C 1 , U 2 represents the voltage of the parallel branch consisting of R 2 and C 2 , and C q stands for the calibrated capacity of the lithium-ion battery employed in the experiment.

3. Dynamic Parameter Identification Method Based on Optimizing Kalman Filter with Cat Swarm Optimization Algorithm

3.1. Cat Swarm Optimization

The cat swarm optimization algorithm represents an optimized bionic computing approach, with its fundamental concept originating from the observation of the behaviors of felines [29]. This algorithm exhibits multiple remarkable advantages, including a straightforward algorithmic structure, a relatively low propensity to be trapped in local optima, a rapid convergence rate, and high adaptability. As a result, it has been extensively employed across a diverse range of fields. Specifically, the CSO categorizes the behavioral patterns of the cat swarm into two distinct modes, namely the seeking mode and the tracing mode.
In the seeking mode, individual cats will replicate their own positions multiple times and store the corresponding position information within the memory. Subsequently, numerous perturbations will be applied to the copies of the position information stored in the memory. Once the perturbations are completed, an evaluation of the position information will be conducted to derive the optimal position, which will then serve as the next movement direction for the cats. The specific steps of the seeking mode are detailed as follows:
  • Generate M copies of its own position and store them in the memory pool, where M denotes the size of the memory pool;
  • Perform random perturbations on the original positions of each individual within the memory pool in accordance with the variations in dimensions and ranges, thereby obtaining a new position to substitute the previous one;
  • Compute the fitness function values of all the new positions in the memory pool and utilize these values as the criteria for optimization;
  • In the memory pool, relocate the cat to the position with the highest fitness function value, thereby accomplishing the update of the cat’s position.
The tracing mode is designed to simulate the behavioral pattern of a cat when it is tracking a target. Specifically, the globally optimal position is exploited to update the current velocity of the cat. Subsequently, a random perturbation is introduced to modify the velocity, thereby facilitating the update of the cat’s current position. Through iterative cycles of this process, the cat is able to continuously approach the optimal solution. Assume that a cat denoted as X i , which is in the tracing mode, moves at a velocity V i . The steps involved in the tracing mode are detailed as follows:
  • The velocity of cat X i is updated via the following formula:
    ν i , d t + 1 = ν i , d t + r c x b e s t , d x i , d
    In the formula, the value range of d is from 1 to the total number of dimensions. V i , d ( t ) represents the velocity of the cat X i in the d dimension at time t before the update, and V i , d ( t + 1 ) represents the speed of the cat in the dimension after the update. X b e s t , d is the position of the cat with the optimal fitness function value in the d dimension, X i , d represents the position of the cat X i in the d dimension, c is a constant, and r is a random value within the range of [0, 1];
  • Update the new position of the cat based on its current position and velocity:
    x i , d t + 1 = x i , d t + ν i , d t + 1
    In the formula, X i , d represents the position of the cat X i in the d dimension at time t prior to the update, and X i , d ( t + 1 ) represents the position of the cat X i in the d dimension subsequent to the update;
  • To avoid out-of-bounds scenarios, if the position in a particular dimension exceeds the defined boundary, it will be adjusted to the corresponding boundary value. By implementing the aforementioned two modes, the positions of each cat are iteratively updated, gradually approaching and ultimately attaining the global optimum. Once the program satisfies the termination criteria, the algorithm concludes.

3.2. Kalman Filtering Algorithm

The Kalman filter has the ability to accomplish the optimal estimation of system state variables and is a robust algorithm with globally exponential stability [30]. The system state equation thereof is presented as follows:
x k + 1 = A k x k + B k u k + w k y k = C k x k + D k u k + v k
In the formula, x and y signify the system state matrix and the system output matrix, respectively. The matrices A, B, C, and D represent the system-related matrices, with u being the system input matrix. Meanwhile, w and v stand for the noise matrices.
The core concept underlying the Kalman filter algorithm is to balance the predicted values and the observed values so as to derive the optimal result. The determination of the optimal result value hinges on the magnitudes of the prediction and observation noises. The iterative process of this algorithm can be categorized into two phases, namely prediction and correction. During the prediction phase, a further prediction is conducted based on the current state. Subsequently, in the correction phase, the predicted values obtained in the prediction phase are refined. Through recursive correction commencing from the initial state, the accurate current state value can thus be obtained.
Prediction equation:
x ^ k = A x ^ k 1 + B u k 1 P k = A P k 1 A T + R w
In the formula, the symbol “∧” represents the estimated value, and the symbol “-” represents the prior value. k represents the time. The prior value is the predicted value of the current moment by the system based on the previous moment, and the posterior value is the value obtained by correcting the prior value. P represents the covariance matrix of the one-step predicted value, and R w represents the covariance matrix of the observation noise.
Correction equation:
K k = P k H T H P k H T + Q w 1 x ^ k = x ^ k + K k z k H x ^ k P k = I K k H P k
In the formula, K k denotes the Kalman gain, an essential parameter in the Kalman filtering algorithm. It serves to balance the integration of predicted and observed values, thereby determining the weight assigned to the observed values. Q w stands for the process noise covariance matrix, H represents the observation model matrix, and z k signifies the measured terminal voltage at time k.

3.3. Parameter Identification

Throughout the iterative process of the Kalman filtering algorithm, the noise covariance matrices R w and Q w are incapable of being updated in tandem with the iteration and thus require to be set independently within each recursive procedure. Nevertheless, conventional approaches for setting typically involve the utilization of random numbers, which may induce fluctuations in the output results of the Kalman filter algorithm and consequently exert an adverse impact on its accuracy. When the value of R w is relatively large, greater weight is assigned to the predicted values. In contrast, when the value of R w is relatively small, the observed values are accorded greater weight. Consequently, in order to attain more reliable results, it is imperative to accurately specify the values of R w and Q w . The optimization of the Kalman filter via the cat swarm optimization algorithm is precisely aimed at rectifying these two aforementioned parameters. The flowchart of the parameter identification algorithm is depicted in Figure 2.
The cat swarm optimization algorithm enhances the precision of parameter identification by optimizing the noise covariance matrices. The optimal solution of this algorithm is dictated by a fitness function. The absolute error between the measured and estimated terminal voltage values is utilized as the fitness function, as illustrated in Equation (8). In this equation, it denotes the number of sampling points.
f i t n e s s = i = 1 L z k C k x k | k 1
Suppose T represents the sampling period. It is hypothesized that the parameters remain invariant within a unit sampling time. The observational Equation (2) can be discretized and reformulated as follows:
U OC , k U o , k = s 1 [ U o , k 1 U OC , k 1 ] + s 2 [ U o , k 2 U OC , k 2 ] + s 3 i k + s 4 i k 1 + s 5 i k 2
In the formula,
R 0 = s 5 / s 2 R 1 = ( c R 1 C 1 + b R 0 R 1 C 1 R 0 d ) / ( R 1 C 1 R 2 C 2 ) R 2 = c R 1 R 0 R 1 C 1 = max { ( b + b 2 4 a ) / 2 , ( b b 2 4 a ) / 2 } R 2 C 2 = min { ( b + b 2 4 a ) / 2 , ( b b 2 4 a ) / 2 } s 0 = T 2 / ( s 1 + s 2 1 ) a = s 2 / s 1 b = s 0 ( s 1 + 2 s 2 ) / T c = s 0 ( s 3 + s 4 + s 5 ) / T 2 d = s 0 ( s 4 + 2 s 5 ) / T
The hypothesis is as follows:
x k = s 1 , k , s 2 , k , s 3 , k , s 4 , k , s 5 , k T
C k = U o , k 1 U O C , k 1 U o , k 2 U O C , k 2 i k i k 1 i k 2
z k = U O C , k U o , k
Consequently, the state-space equation for model parameter identification via the CSO-KF algorithm is presented as follows:
x k = x k 1 + ξ k z k = H k x k + χ k
In the formula, ξ k and χ k denote the system random interference noise and the random observation noise, respectively. The statistical characteristics thereof are presented as follows:
E ξ k = 0
E χ k = 0
C o v { χ j , χ k } = 0 , j k N = n , j = k
C o v { ξ j , ξ k } = 0 , j k M = d i a g { [ m 1 , m 2 , m 3 , m 4 , m 5 ] } , j = k
Following the setting of the initial values for the state variables and the error covariance, the recursive process of the algorithm is depicted as in Equation (19). Upon substituting the optimal values yielded by the algorithm into Equation (10), the parameter values to be identified can be inversely deduced.
x ^ k = x ^ k 1 P k = P k 1 + R w K k = P k H k T ( H k P k H k T + Q w ) 1 P k = ( I K k H k ) P k x ^ k = x ^ k + K k ( z k H k x ^ k )

4. Real-Time SOC Estimation Method Based on Dual Kalman Filter Optimized by Cat Swarm Optimization Algorithm

4.1. Extended Kalman Filtering Algorithm

The extended Kalman filter is a linearization approximation conducted around the estimated state through the utilization of the first-order Taylor series expansion, which builds upon the Kalman filtering algorithm [31]. It is frequently employed in nonlinear systems, and its recursive equations are shown as follows:
Prediction equation:
x ^ k = f x ^ k 1
P k = Φ k 1 P k 1 Φ k 1 T + R x
Correction equation:
K k = P k H k T ( H k P k H k T + Q x ) 1
x ^ k = x ^ k + K k z k h x ^ k
P k = ( I K k H k ) P k
By applying a first-order Taylor series expansion to linearize the system, we derive the discretized reformulation of state Equation (1) and observation Equation (2):
S O C ( k ) = S O C ( k 1 ) 1 C q I ( k 1 ) U 1 ( k ) = 1 R 1 C 1 e 1 R 1 C 1 U 1 ( k 1 ) + ( 1 e 1 R 1 C 1 ) 1 C 1 I ( k 1 ) U 2 ( k ) = 1 R 2 C 2 e 1 R 2 C 2 U 2 ( k 1 ) + ( 1 e 1 R 2 C 2 ) 1 C 2 I ( k 1 )
U o ( k ) = h k [ S O C ( k ) , U 1 ( k ) , U 2 ( k ) ] + R 0 I ( k )
The preceding equation can be concisely expressed in simplified form as
X k = Φ k 1 X k 1 + B I ( k 1 )
U o ( k ) = H k X k + R 0 I ( k )
In the equation,
X k = S O C ( k ) U 1 ( k ) U 2 ( k )
Φ k 1 = 1 1 R 1 C 1 e 1 R 1 C 1 1 R 2 C 2 e 1 R 2 C 2
B = 1 C q ( 1 e 1 R 1 C 1 ) 1 C 1 ( 1 e 1 R 2 C 2 ) 1 C 2
H k = h k S O C ( k ) h k U 1 ( k ) h k U 2 ( k )

4.2. Real-Time Estimation of SOC

The accuracy of SOC estimation via the EKF algorithm fundamentally relies on precise battery models and well-identified parameters. However, battery model parameters exhibit dynamic variations due to temperature fluctuations. To address this challenge, we propose a dual Kalman filtering framework that integrates model parameter identification with SOC estimation. Similar to the KF algorithm, the noise covariance matrices R x and Q x of the EKF algorithm remain static during iterations and must be predefined. To enhance adaptability, a swarm-intelligence-based CSO algorithm is employed to optimize the dual Kalman filter parameters dynamically. This hybrid approach significantly improves SOC estimation accuracy under time-varying parameter conditions, as validated through experimental case studies.
The dual Kalman filtering algorithm operates through two parallel Kalman filters that work in tandem during iterative cycles. Specifically, a standard KF algorithm dynamically identifies model parameters, while an EKF algorithm estimates system state variables. During initialization, the algorithm employs one-step predicted values of model parameters to update the state filter’s SOC correction term. Conversely, the one-step SOC prediction is utilized to refine the model parameter correction term, establishing a closed-loop feedback mechanism.
As illustrated in Figure 3, the CSO–DKF algorithm integrates two collaborative modules: the upper module employs an EKF algorithm for state prediction using the prior parameter w ^ k 1 , while the lower module utilizes a standard KF algorithm for parameter correction based on x ^ k 1 , the estimated state. Furthermore, the CSO algorithm dynamically optimizes the noise covariance matrices R x , Q x , R w , and Q w during iterations. This optimization process generates the refined state estimate x ^ k and parameter estimate w ^ k .
The iterative procedure of the CSO–DKF algorithm is described as follows:
  • Variable initialization:
    w ^ 0 = E w 0
    P w 0 = E w w ^ 0 w w ^ 0 T
    x ^ 0 = E x 0
    P x 0 = E x x ^ 0 x x ^ 0 T
  • The CSO algorithm yields the optimal solutions for the noise covariance matrices R x , Q x , R w , and Q w ;
  • Parameter prediction update:
    w ^ k = w ^ k 1
    P w k = P w k + R w
  • State variable prediction update:
    x ^ k = f x ^ k 1 , w ^ k
    P x k = Φ k 1 P x k 1 Φ k 1 T + R x
  • State variable correction update:
    K k x = P x k ( H k x ) T H k x P x k ( H k x ) T + Q x 1
    x ^ k = x ^ k + K k x z k h x ^ k
    P x k = ( I K k x H k ) P x k
  • Parameter correction update:
    K k w = P w k ( H k w ) T H k w P w k ( H k w ) T + Q w 1
    w ^ k = w ^ k + K k w ( z k H k w w ^ k )
  • Output the optimal estimated value of the state variable: x ^ k .

5. Experimental Validation and Analysis

Temperature is a critical factor influencing SOC estimation in lithium-ion batteries. During battery operation, temperature fluctuates due to internal self-heating and ambient thermal variations. At lower temperatures, the electrochemical activity of battery materials diminishes, increasing internal resistance. Conversely, elevated temperatures enhance material reactivity. Both extremes degrade SOC estimation accuracy due to nonlinear electrochemical dynamics. However, most existing studies either overlook the impact of temperature variations on SOC estimation or restrict comparisons to method performance under fixed thermal conditions. To address this gap, we developed a temperature-dependent parameter identification database and integrated it with the proposed algorithm, enabling robust SOC estimation under dynamic temperature scenarios.
The experimental data in this work are sourced from the publicly available CALCE LiFePO4 battery dataset, which provides dynamic charge–discharge cycling profiles under various temperatures ( 10 °C, 0 °C, 10 °C, 20 °C, 25 °C, 30 °C, 40 °C, and 50 °C). Figure 4 illustrates the Dynamic Stress Test (DST) profiles across these temperature conditions.
A nonlinear correlation exists between the SOC and OCV in lithium-ion batteries, where OCV increases monotonically with SOC. Experimental data were collected across a temperature gradient from 10 °C to 50 °C at 10 °C intervals. Temperature-dependent SOC–OCV curves were derived via polynomial fitting. The OCV is influenced not only by SOC but also exhibits systematic temperature dependence. Specifically, OCV decreases by 2.9% per 10 °C increase in temperature, as quantified at SOC = 0.5, as shown in Figure 5. This thermal sensitivity underscores the necessity of temperature compensation for accurate SOC estimation.
In this study, the Kalman filter algorithm and extended Kalman filter algorithm are employed to alternately execute online parameter identification and real-time SOC estimation. Specifically, as a parameter filter, KF utilizes the one-step predicted value of model parameters to update the SOC correction value of the state filter. Conversely, EKF acts as a state filter, leveraging the one-step predicted SOC value to renew the correction value of model parameters. Meanwhile, the CSO algorithm is introduced to optimize the noise covariance matrices of these two filters during the above process. In experimental implementation, the total number of “cats” is set to 50, with an acceleration coefficient of 2.05 and mutation operation parameter α of 0.9. The proportion of cats in tracking mode accounts for 0.4 of the total population, and the parameter c for updating speed in tracking mode is defined as 1.05. The algorithm termination criteria are established as follows: the variation in fitness function value within 100 iterations is less than 1 × 10 8 , or the maximum iteration number reaches 500.
Parameter identification in battery systems typically involves offline and online methods. Offline identification is suitable for fixed operational conditions, whereas this study implements online identification to dynamically update parameters using a CSO-enhanced KF. For the second-order equivalent circuit model, the proposed method dynamically identifies parameters across varying temperatures from 10 °C to 50 °C at 10 °C intervals and SOC intervals of 0.1 . The identified parameters are compiled into a temperature/SOC-dependent database. Figure 6 illustrates the 3D parametric surfaces depicting the relationships between model parameters, SOC, and temperature, demonstrating the algorithm’s capability to capture nonlinear thermal–electrochemical coupling effects.
As illustrated in Figure 6, for R 0 , the increment of electrolyte viscosity and the decline in lithium-ion migration rate at low temperatures jointly result in the minimal fluctuation of ohmic internal resistance. R 1 and R 2 demonstrate notable susceptibility to SOC values. This originates from the two-phase coexistence ( LiFePO 4 / FePO 4 ) of lithium iron phosphate ( LiFePO 4 ) at high SOC. The charge transfer impedance at the phase interface fluctuates with the variation in lithium-ion deintercalation rate. Meanwhile, the abrupt change in interfacial energy barrier during phase transition induces the nonlinear variation in polarization internal resistance, thus presenting a fluctuating state in the figure. At low temperatures, the solid electrolyte interphase may experience thickening or local rupture, which destabilizes the charge–discharge characteristics of the electric double-layer capacitor. At high SOC, anode graphite approaches saturation, potentially triggering lithium metal precipitation. Such precipitation locally blocks electrode pores and alters the equivalent area of the electric double-layer capacitor. Moreover, within the equivalent circuit model, interactive effects exist among parameters. Consequently, C 1 exhibits significant fluctuations under low-temperature and high-SOC conditions, while the variation in C 2 shows irregularity. However, around 20 °C, all parameters exhibit two peaks. Therefore, relying merely on identification results under a single ambient temperature will induce substantial deviation in SOC estimation. To enhance the real-time estimation accuracy of SOC under variable-temperature conditions, integrating Equation (46) with the database enables the acquisition of accurate parameter values corresponding to the current temperature T and SOC value.
R 0 = F R 0 ( S O C , T ) R 1 = F R 1 ( S O C , T ) R 2 = F R 2 ( S O C , T ) C 1 = F C 1 ( S O C , T ) C 2 = F C 2 ( S O C , T )
To validate the outcomes of parameter identification and the accuracy of the model, tests were conducted under DST conditions. Three sets of operating-condition currents corresponding to low temperature ( 10 °C), room temperature ( 25 °C), and high temperature ( 50 °C) were selected as excitation inputs. The parameter identification results were incorporated into the aforementioned model to obtain the model-output voltage at the model output. Figure 7 presents the comparison curves between the model-output terminal voltage and the measured voltage, along with the corresponding error curves. As can be observed from the figures, the algorithm initially exhibits relatively large errors due to the setting of initial values. However, it can rapidly converge to values in the vicinity of the true values. The results demonstrate that, under DST conditions, the model-output voltage can closely track the measured voltage, with errors confined to a very small range. This provides an accurate battery model for SOC estimation.
The real-time estimation of SOC is achieved by optimizing the DKF algorithm with the aforementioned CSO algorithm. Subsequently, the accuracy of SOC estimation under variable-temperature conditions is validated. Specifically, three variable-temperature intervals, namely variable low-temperature, variable ambient-temperature, and variable high-temperature, are selected, as depicted in Figure 8. Figure 9 illustrates the comparison and errors between the CSO–DKF estimation algorithm proposed in this paper and SOC reference values. It can be deduced from the images that, within the three variable-temperature intervals, the black curves generated by CSO–DKF closely approximate the reference values, with errors confined to an extremely narrow range. As shown in Table 1, the DKF algorithm, owing to the method of introducing temperature variables proposed in this paper and its special working state of alternating iteration, also exhibits high estimation accuracy. It maintains the root-mean-square error (RMSE) of SOC estimation below 1% under the three variable-temperature conditions. However, with the optimization of the cat swarm optimization algorithm, the estimation accuracy error can be effectively controlled within 0.4%.

6. Conclusions

Lithium-ion batteries exhibit a high degree of sensitivity to temperature variations. Nonetheless, certain prior studies have been solely centered around the modeling of lithium batteries under constant temperature conditions, neglecting the influence of temperature changes. This paper, predicated on the DST operating condition data of lithium batteries across diverse temperatures ( 10 °C, 0 °C, 10 °C, 20 °C, 25 °C, 30 °C, 40 °C, and 50 °C), makes the following primary contributions:
  • A second-order equivalent circuit model was constructed. Dynamic parameter identification was carried out by leveraging the CSO algorithm to optimize the KF, thereby determining the model parameters. Subsequently, the accuracy of the proposed model was verified under low-temperature ( 10 °C), ambient-temperature ( 25 °C), and high-temperature ( 50 °C) conditions. The verification results demonstrated that the model is capable of providing favorable accuracy and exhibits robust performance with respect to temperature variations;
  • An environmental temperature battery database was established based on the parameter identification results obtained at different temperatures and various SOC stages. Through mathematical expressions, the relationships among the parameters at the current moment, temperature, and SOC values were established, thus facilitating the introduction of the temperature variable during the joint estimation of dynamic parameter identification and real-time SOC;
  • Building upon this foundation, the CSO algorithm was utilized to optimize the DKF for real-time SOC estimation. The state filter and the parameter filter were employed alternately. The accuracy of SOC estimation and the optimization effect of the CSO were verified within three temperature variation intervals, namely variable low temperature, variable ambient temperature, and variable high temperature. The results revealed that, under varying temperatures, this system can ensure commendable accuracy in real-time SOC estimation, thereby providing a viable approach for estimating the state of charge of lithium-ion batteries in variable-temperature environments.
Although this algorithm represents a real-time estimation scheme that strikes a balance between model accuracy and computational complexity, it still poses a challenge in engineering applications due to its relatively high requirement for chip computing power. Future research directions should focus on exploring ways to minimize the computational complexity to the greatest extent while maintaining accuracy, with the aim of applying the algorithm in practical engineering projects. Moreover, while the current framework can effectively conduct real-time SOC estimation under wide dynamic temperature ranges, the impact of capacity fade, which is induced by environmental temperature and battery aging, on SOC estimation has not been taken into account. Consequently, a real-time SOC estimation method that considers capacity fade will undoubtedly be the subject of further investigation in our future work.

Author Contributions

Conceptualization, D.L.; methodology, D.L.; software, D.L.; validation, D.L., C.Y., L.L. and Y.Z.; formal analysis, D.L. and C.Y.; investigation, L.L.; resources, Y.Z.; data curation, X.G. and Y.Z.; writing—original draft preparation, D.L.; writing—review and editing, X.G. and Y.Z.; visualization, X.G. and Y.Z.; supervision, Y.Z.; project administration, Y.Z.; funding acquisition, Y.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This study is funded by the Key R&D Program (Science and Technology Cooperation) of Shandong Province (2024KJHZ030), the Innovation Pilot Project for the Integration of Science, Education, and Industry (2024GH12), and the Innovation Capability Enhancement Project for Science-and-Technology-oriented Small- and Medium-sized Enterprises in Shandong Province (2024TSGC0903).

Data Availability Statement

I would like to express my sincere gratitude to the funding sources that have supported this study. This research was funded by the Key R&D Program (Science and Technology Cooperation) of Shandong Province (Project No. 2024KJHZ030), the Innovation Pilot Project for the Integration of Science, Education, and Industry (Project No. 2024GH12), and the Innovation Capability Enhancement Project for Science-and-Technology-oriented Small- and Medium-sized Enterprises in Shandong Province (Project No. 2024TSGC0903). Their financial support has played a crucial role in enabling the successful completion of this study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Demirci, O.; Taskin, S.; Schaltz, E.; Demirci, B.A. Review of battery state estimation methods for electric vehicles-Part I: SOC estimation. J. Energy Storage 2024, 87, 111435. [Google Scholar]
  2. Su, L.; Zhou, G.; Hu, D.; Liu, Y.; Zhu, Y. Research on the state of charge of lithium-ion battery based on the fractional order model. Energies 2021, 14, 6307. [Google Scholar] [CrossRef]
  3. Wang, L.; Zhao, X.; Deng, Z.; Yang, L. Application of electrochemical impedance spectroscopy in battery management system: State of charge estimation for aging batteries. J. Energy Storage 2023, 57, 106275. [Google Scholar]
  4. Zheng, F.; Xing, Y.; Jiang, J.; Sun, B.; Kim, J.; Pecht, M. Influence of different open circuit voltage tests on state of charge online estimation for lithium-ion batteries. Appl. Energy 2016, 183, 513–525. [Google Scholar]
  5. Pattipati, B.; Balasingam, B.; Avvari, G.V.; Pattipati, K.R.; Bar-Shalom, Y. Open circuit voltage characterization of lithium-ion batteries. J. Power Sources 2014, 269, 317–333. [Google Scholar]
  6. Shrivastava, P.; Naidu, P.A.; Sharma, S.; Panigrahi, B.K.; Garg, A. Review on technological advancement of lithium-ion battery states estimation methods for electric vehicle applications. J. Energy Storage 2023, 64, 107159. [Google Scholar]
  7. Ghaeminezhad, N.; Ouyang, Q.; Wei, J.; Xue, Y.; Wang, Z. Review on state of charge estimation techniques of lithium-ion batteries: A control-oriented approach. J. Energy Storage 2023, 72, 108707. [Google Scholar]
  8. Xu, C.; Zhang, E.; Jiang, K.; Wang, K. Dual fuzzy-based adaptive extended Kalman filter for state of charge estimation of liquid metal battery. Appl. Energy 2022, 327, 120091. [Google Scholar]
  9. Wang, L.; Gao, K.; Han, J.; Zhao, X.; Liu, L.; Pan, C.; Li, G.; Wang, Y. Battery pack SOC estimation by Noise Matrix Self Adjustment-Extended Kalman Filter algorithm based on cloud data. J. Energy Storage 2024, 84, 110706. [Google Scholar]
  10. Miao, Y.; Gao, Z. Estimation for state of charge of lithium-ion batteries by adaptive fractional-order unscented Kalman filters. J. Energy Storage 2022, 51, 104396. [Google Scholar]
  11. Qian, W.; Li, W.; Guo, X.; Wang, H. A switching gain adaptive sliding mode observer for SoC estimation of lithium-ion battery. Energy 2024, 292, 130585. [Google Scholar]
  12. Chen, L.; Guo, W.; Lopes, A.M.; Wu, R.; Li, P.; Yin, L. State-of-charge estimation for lithium-ion batteries based on incommensurate fractional-order observer. Commun. Nonlinear Sci. Numer. Simul. 2023, 118, 107059. [Google Scholar]
  13. Chen, Z.; Zhou, J.; Zhou, F.; Xu, S. State-of-charge estimation of lithium-ion batteries based on improved H infinity filter algorithm and its novel equalization method. J. Clean. Prod. 2021, 290, 125180. [Google Scholar]
  14. Wang, Q.; Sun, C.; Gu, Y. Research on SOC estimation method of hybrid electric vehicles battery based on the grey wolf optimized particle filter. Comput. Electr. Eng. 2023, 110, 108907. [Google Scholar]
  15. Hannan, M.A.; Lipu, M.H.; Hussain, A.; Mohamed, A. A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations. Renew. Sustain. Energy Rev. 2017, 78, 834–854. [Google Scholar]
  16. Zhang, G.; Xia, B.; Wang, J. Intelligent state of charge estimation of lithium-ion batteries based on LM optimized back-propagation neural network. J. Energy Storage 2021, 44, 103442. [Google Scholar]
  17. Zhang, G.; Xia, B.; Wang, J.; Ye, B.; Chen, Y.; Yu, Z.; Li, Y. Intelligent state of charge estimation of battery pack based on particle swarm optimization algorithm improved radical basis function neural network. J. Energy Storage 2022, 50, 104211. [Google Scholar]
  18. Korkmaz, M. A novel approach for improving the performance of deep learning-based state of charge estimation of lithium-ion batteries: Choosy SoC Estimator (ChoSoCE). Energy 2024, 294, 130913. [Google Scholar]
  19. Korkmaz, M. SoC estimation of lithium-ion batteries based on machine learning techniques: A filtered approach. J. Energy Storage 2023, 72, 108268. [Google Scholar]
  20. Liu, B.; Wang, H.; Tseng, M.L.; Li, Z. State of charge estimation for lithium-ion batteries based on improved barnacle mating optimizer and support vector machine. J. Energy Storage 2022, 55, 105830. [Google Scholar]
  21. Hu, J.; Hu, J.; Lin, H.; Li, X.; Jiang, C.; Qiu, X.; Li, W. State-of-charge estimation for battery management system using optimized support vector machine for regression. J. Power Sources 2014, 269, 682–693. [Google Scholar]
  22. Li, W.; Fan, Y.; Ringbeck, F.; Jöst, D.; Han, X.; Ouyang, M.; Sauer, D.U. Electrochemical model-based state estimation for lithium-ion batteries with adaptive unscented Kalman filter. J. Power Sources 2020, 476, 228534. [Google Scholar]
  23. Lotfi, N.; Landers, R.G.; Li, J.; Park, J. Reduced-order electrochemical model-based SOC observer with output model uncertainty estimation. IEEE Trans. Control Syst. Technol. 2016, 25, 1217–1230. [Google Scholar]
  24. Koseoglou, M.; Tsioumas, E.; Panagiotidis, I.; Papagiannis, D.; Jabbour, N.; Mademlis, C. A lithium-ion battery equivalent circuit model based on a hybrid parametrization approach. J. Energy Storage 2023, 73, 109051. [Google Scholar]
  25. Huang, Z.; Best, M.; Knowles, J.; Fly, A. Adaptive piecewise equivalent circuit model with SOC/SOH estimation based on extended Kalman filter. IEEE Trans. Energy Convers. 2022, 38, 959–970. [Google Scholar]
  26. Deng, Q.; Qiu, D.; Xie, Z.; Zhang, B.; Chen, Y. Online SOC estimation of supercapacitor energy storage system based on fractional-order model. IEEE Trans. Instrum. Meas. 2023, 72, 1–10. [Google Scholar]
  27. Guha, A.; Routh, B.; Velivela, N.P. Adaptive Extended Kalman Filtering based State-of-Charge and Voltage Estimation of a Lithium-ion Battery using a Fractional Order Model. IEEE Sens. J. 2024, 24, 26225–26234. [Google Scholar]
  28. Xiong, R.; Tian, J.; Shen, W.; Sun, F. A novel fractional order model for state of charge estimation in lithium ion batteries. IEEE Trans. Veh. Technol. 2018, 68, 4130–4139. [Google Scholar]
  29. Huang, J.; Asteris, P.G.; Manafi Khajeh Pasha, S.; Mohammed, A.S.; Hasanipanah, M. A new auto-tuning model for predicting the rock fragmentation: A cat swarm optimization algorithm. Eng. Comput. 2022, 38, 2209–2220. [Google Scholar]
  30. Lin, Q.; Li, X.; Tu, B.; Cao, J.; Zhang, M.; Xiang, J. Stable and accurate estimation of SOC using eXogenous Kalman filter for lithium-ion batteries. Sensors 2023, 23, 467. [Google Scholar] [CrossRef]
  31. Sepasi, S.; Ghorbani, R.; Liaw, B.Y. A novel on-board state-of-charge estimation method for aged Li-ion batteries based on model adaptive extended Kalman filter. J. Power Sources 2014, 245, 337–344. [Google Scholar]
Figure 1. Second-order equivalent circuit model.
Figure 1. Second-order equivalent circuit model.
Energies 18 01866 g001
Figure 2. Flowchart of the parameter identification algorithm.
Figure 2. Flowchart of the parameter identification algorithm.
Energies 18 01866 g002
Figure 3. The logic diagram of the CSO–DKF algorithm.
Figure 3. The logic diagram of the CSO–DKF algorithm.
Energies 18 01866 g003
Figure 4. DST conditions: (a) voltage curve under the condition. (b) Current curve under the condition.
Figure 4. DST conditions: (a) voltage curve under the condition. (b) Current curve under the condition.
Energies 18 01866 g004
Figure 5. Temperature-dependent SOC–OCV characteristics.
Figure 5. Temperature-dependent SOC–OCV characteristics.
Energies 18 01866 g005
Figure 6. Parameter identification results: (a) R 0 . (b) R 1 . (c) R 2 . (d) C 1 . (e) C 2 .
Figure 6. Parameter identification results: (a) R 0 . (b) R 1 . (c) R 2 . (d) C 1 . (e) C 2 .
Energies 18 01866 g006
Figure 7. Comparison between the estimated terminal voltage and the reference value, and the error: (a) 10 °C. (b) 25 °C. (c) 50 °C.
Figure 7. Comparison between the estimated terminal voltage and the reference value, and the error: (a) 10 °C. (b) 25 °C. (c) 50 °C.
Energies 18 01866 g007
Figure 8. Variable-temperature intervals: (a) variable low temperature. (b) Variable ambient temperature. (c) Variable high temperature.
Figure 8. Variable-temperature intervals: (a) variable low temperature. (b) Variable ambient temperature. (c) Variable high temperature.
Energies 18 01866 g008
Figure 9. Comparison of estimation performance and error analysis between CSO–DKF and DKF under variable-temperature conditions: (a) variable low temperature. (b) Variable ambient temperature. (c) Variable high temperature.
Figure 9. Comparison of estimation performance and error analysis between CSO–DKF and DKF under variable-temperature conditions: (a) variable low temperature. (b) Variable ambient temperature. (c) Variable high temperature.
Energies 18 01866 g009
Table 1. SOC estimation characteristics.
Table 1. SOC estimation characteristics.
RMSE (Variable Low Temperature)RMSE (Variable Ambient Temperature)RMSE (Variable High Temperature)
CSO–DKF0.30%0.24%0.36%
DKF0.93%0.88%0.97%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, D.; Liu, L.; Yue, C.; Gao, X.; Zhu, Y. Real-Time Estimation of the State of Charge of Lithium Batteries Under a Wide Temperature Range. Energies 2025, 18, 1866. https://doi.org/10.3390/en18071866

AMA Style

Li D, Liu L, Yue C, Gao X, Zhu Y. Real-Time Estimation of the State of Charge of Lithium Batteries Under a Wide Temperature Range. Energies. 2025; 18(7):1866. https://doi.org/10.3390/en18071866

Chicago/Turabian Style

Li, Da, Lu Liu, Chuanxu Yue, Xiaojin Gao, and Yunhai Zhu. 2025. "Real-Time Estimation of the State of Charge of Lithium Batteries Under a Wide Temperature Range" Energies 18, no. 7: 1866. https://doi.org/10.3390/en18071866

APA Style

Li, D., Liu, L., Yue, C., Gao, X., & Zhu, Y. (2025). Real-Time Estimation of the State of Charge of Lithium Batteries Under a Wide Temperature Range. Energies, 18(7), 1866. https://doi.org/10.3390/en18071866

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop