Abstract
Accurate state of charge (SOC) estimation for lithium-ion batteries (LIBs) is essential. To overcome the susceptibility of conventional data-driven models to local optima and terminal divergence under complex conditions, this paper proposes a novel joint estimation algorithm. Using a second-order resistor–capacitor (RC) model, the slime mould algorithm (SMA) identifies parameters offline at temperature chamber setpoints of 0 °C, 25 °C, and 45 °C for a modified extended Kalman filter (MEKF). Subsequently, a backpropagation (BP) neural network optimized by the sparrow search algorithm (SSA) is introduced to perform feedforward compensation for nonlinear residuals, addressing the error accumulation caused by the randomness of initial network weights, collectively constituting the proposed SSA-BP-MEKF algorithm. Validation at 0 °C, 25 °C, and 45 °C under the Dynamic Stress Test (DST), US06, Federal Urban Driving Schedule (FUDS), and Beijing Dynamic Stress Test (BJDST) demonstrates that the maximum absolute error (MaxAE) remains within 2.21% at 25 °C. At 0 °C and 45 °C, the algorithm effectively suppresses the local divergence of conventional BP compensation, restricting the MaxAE for the demanding BJDST cycle to 2.65% and 1.49%, respectively. Ultimately, the proposed approach significantly enhances estimation accuracy and robustness in complex operating environments.
1. Introduction
According to the International Energy Agency (IEA), global energy-related carbon dioxide (CO2) emissions reached 37.4 billion tonnes in 2023 [1]. Reducing carbon emissions from the transportation sector is an important step toward achieving global carbon neutrality goals. Consequently, accelerating the transition from conventional internal combustion engine vehicles to electric vehicles (EVs) has become an urgent imperative. As a core enabler of green transportation, the operational safety and driving range of EVs heavily rely on accurate monitoring by the battery management system (BMS). Lithium-ion batteries (LIBs) have been extensively employed in power battery systems, owing to their advantages including high energy density, low self-discharge rate, and long cycle life [2,3]. While the modern BMS tracks numerous operational indicators, the state of charge (SOC) represents a core parameter requiring evaluation, as it not only helps ensure battery safety and prolong service life, but also accurately predicts the remaining driving range to improve energy utilization efficiency [4].
Nevertheless, constrained by the intensely nonlinear electrochemical characteristics inherent within the internal cell system, this state cannot be readily quantified through direct measurement. To address this challenge, researchers have conducted extensive investigations. In view of the strong nonlinearity of batteries, mainstream approaches fall primarily into two distinct paradigms: one is to approximate the system as a linear model through linearization, and the other is to formulate the system as a black-box architecture and model it via advanced data-driven techniques [5]. Meanwhile, to cope with the time-varying characteristics induced by complex operating conditions such as wide temperature ranges, model parameters need to be continuously updated through online or offline optimization to adapt to dynamic changes [6]. At present, three major categories of methods have been established for SOC estimation: the ampere-hour integration method [7,8,9], recursive algorithms [10,11,12], and machine learning algorithms [13,14,15].
Currently, ampere-hour integration stands as the predominant approach for SOC estimation, as it directly reflects SOC variations by real-time accumulation of charge and discharge currents without relying on complex battery models or extensive prior data. In [16], an improved ampere-hour integration method based on numerical iteration was proposed to effectively suppress the error accumulation rate under dynamic loads. The conventional ampere-hour integration method was optimized by introducing short-term data-driven approaches such as the relevance vector machine [17]. Although the above studies have improved the algorithm, this method functions strictly as an open-loop technique and still suffers from certain limitations. First, it highly depends upon precise calibration regarding the starting SOC level, becoming increasingly susceptible to compounding deviations triggered by sensor noise alongside zero drift. Second, it is difficult to adapt to the dynamic degradation of available capacity caused by wide temperature ranges and battery aging. Therefore, during long-term operation under complex conditions, the estimation results are prone to diverge from the true SOC; thus, integration with closed-loop observer algorithms is typically necessary for joint correction [18]. To address the open-loop cumulative error problem, recursive algorithms represented by the extended Kalman filter (EKF) construct a battery equivalent circuit model, derive the state-space equations, and correct the SOC estimate through a closed-loop feedback mechanism. In [19], an adaptive EKF based on an improved equivalent circuit model was employed to perform closed-loop estimation of the battery state. A fading Kalman filter was introduced to continuously update and correct internal circuit parameters dynamically [20]. Although recursive algorithms improve estimation accuracy, their overall efficacy relies strictly upon the accuracy of the underlying circuit architecture and its internal parameters. Under low-temperature (0 °C) or high-temperature (45 °C) conditions, the electrochemical reaction characteristics inside the battery change, causing the fixed parameters to deviate from their true state [21]. Such model parameter distortion propagates through the filtering iteration process, leading to error amplification or triggering covariance matrix divergence [22]. Therefore, to guarantee the fundamental underlying model accuracy of recursive algorithms, efficient techniques for parameter extraction must be introduced. Confronted with the strong coupling and nonlinearity among multiple parameters in battery equivalent circuit models, heuristic optimization algorithms have been proven to be an effective approach for obtaining model parameters [23]. Among them, the slime mould algorithm (SMA), as a novel metaheuristic algorithm, features a unique convergence mechanism and offers high computational accuracy and stability when solving multi-dimensional unknown parameters of complex systems [24]. Based on this, the present study applies the SMA to identify the equivalent circuit parameters offline at three fixed temperature setpoints (0 °C, 25 °C, and 45 °C), providing temperature-specific model parameters for the subsequent filtering algorithm.
Recently, machine learning algorithms have seen extensive integration into SOC estimation. Data-driven models possess strong nonlinear mapping capabilities and can extract features from large volumes of operational data. In [25], a deep belief network (DBN) was combined with the Kalman filter algorithm, achieving SOC estimation with an average error below 2.2% under dynamic driving cycles. A recurrent neural network with gated recurrent units (GRU-RNN) was constructed, significantly boosting computational training efficiency alongside the estimation accuracy [26]. However, conventional data-driven networks have an inherent limitation: their initial network weights and thresholds are typically generated by random initialization. When faced with highly fluctuating and complex dynamic operating conditions, such randomness in the initial weights can easily cause the network training to fall into local optima, leading to the accumulation and divergence of nonlinear errors at the terminal stage of estimation [27]. To overcome such deficiencies, swarm intelligence optimization algorithms are frequently employed for parameter optimization of neural networks. In [28], it was demonstrated that the genetic algorithm (GA) can effectively optimize network weights and topological structures. The particle swarm optimization (PSO) algorithm was adopted to optimize the parameters of a long short-term memory (LSTM) network, restricting the prediction error within 0.5% [29]. Although the above algorithms effectively alleviate the local optimum problem, conventional swarm intelligence algorithms still suffer from limited convergence speed and stability in high-dimensional complex optimization spaces. In [30], it was demonstrated that the sparrow search algorithm (SSA) significantly outperforms PSO and GA in key indicators such as accuracy, convergence speed, stability, and robustness. By introducing a flexible random search strategy, SSA can explore global spatial features more efficiently [31]. Therefore, employing SSA to perform global pre-optimization of the initial weights of a standard backpropagation (BP) neural network acts as a preferred approach for bolstering the robustness of residual compensation across multiple dynamic testing profiles and to effectively suppress terminal divergence in estimation.
To address the issues of cumulative errors in the ampere-hour integration method, model parameter mismatch under different temperature conditions, and error divergence caused by randomly initialized neural network weights, this study employs the SMA to identify the equivalent circuit parameters (R0, R1, R2, C1, and C2) offline at 0 °C, 25 °C, and 45 °C. The resulting temperature-specific parameter sets are then incorporated into a modified extended Kalman filter (MEKF) for recursive SOC estimation. On this basis, the paper proposes a joint SOC estimation algorithm that integrates error compensation using a BP neural network optimized by SSA with the MEKF (SSA-BP-MEKF). This approach combines the mechanism-based observation advantages of the MEKF with a conventional BP neural network whose initial weights have been globally pre-optimized by SSA, performing online feedforward compensation for the nonlinear residuals during the observation process.
The main contributions of this paper are as follows:
- An error feedforward algorithm integrating mechanism-based observation with data-driven techniques is established. The MEKF provides the fundamental state observation, while the SSA-optimized conventional BP neural network outputs the nonlinear residual compensation, thereby achieving complementary advantages.
- The SMA is employed to identify the equivalent circuit parameters offline at 0 °C, 25 °C, and 45 °C, providing temperature-specific model parameters for SOC estimation under different fixed-temperature conditions. Meanwhile, the SSA is employed to pre-optimize the initial weights of the conventional BP neural network, effectively alleviating the susceptibility of conventional networks to local optima and terminal divergence.
- Validation is conducted at 0 °C, 25 °C, and 45 °C and under multiple dynamic driving cycles, such as Dynamic Stress Test (DST), US06, Federal Urban Driving Schedule (FUDS), and Beijing Dynamic Stress Test (BJDST). The results demonstrate that the proposed SSA-BP-MEKF achieves a cross-cycle maximum absolute error (MaxAE) within 2.21% at 25 °C, and restricts the MaxAE for the most demanding BJDST cycle to within 2.65% at 0 °C and within 1.49% at 45 °C, demonstrating its robustness across diverse operating conditions and wide temperature ranges.
2. Battery Modeling and Parameter Identification
2.1. Second-Order RC Model
This paper adopts a second-order resistor-capacitor (RC) equivalent circuit model [32] for characterizing the electrochemical characteristics of LIBs, as illustrated in Figure 1.
Figure 1.
Second-order RC model.
In Figure 1, R0 is the ohmic internal resistance; R1 and C1 denote the electrochemical polarization resistance and capacitance, respectively; R2 and C2 denote the concentration polarization resistance and polarization capacitance, respectively; U1 and U2 denote the polarization voltages; Ut and I are the terminal voltage and operating current, respectively, with discharge defined as positive and charge as negative. Based on the circuit network topology, the continuous-time state-space differential equations are given as follows:
where UOCV represents the battery open-circuit voltage (OCV). Given the nonlinear mapping relationship between OCV and SOC, which is significantly influenced by the ambient temperature, this paper extracts and calibrates the OCV-SOC mapping curves of the battery offline under temperature levels of 0 °C, 25 °C, and 45 °C based on the hybrid pulse power characterization (HPPC) test, as illustrated in Figure 2. The local discrepancies among the OCV trajectories at different temperatures highlight the necessity and physical justification for conducting wide-temperature-range modeling.
Figure 2.
OCV-SOC mapping curves at temperature chamber setpoints of 0 °C, 25 °C, and 45 °C.
The time-domain evolution of the battery SOC is described by the ampere-hour integration method:
where SOC(0) denotes the initial state of charge, Qn refers to the actual available nominal capacity at the current ambient temperature, and η represents the Coulombic efficiency.
To meet the requirements of digital recursive computation of the state observer in a microprocessor, it is essential to convert the continuous-time model into its discrete-time equivalent. By establishing the battery terminal current I as the system input, the system state variables are configured as:
Assuming that the system input current remains constant within one sampling interval Δt, the continuous state-space equations are analytically discretized. Consequently, the corresponding discrete state-space model is formulated as:
where τ1 and τ2 denote the time constants characterizing the internal polarization processes, and k denotes the discrete time step. Because the equivalent circuit parameters are temperature-dependent, the parameter vector θ comprising R0, R1, R2, C1, and C2 is identified separately at 0 °C, 25 °C, and 45 °C using the SMA and HPPC data described in Section 2.2. For each fixed-temperature test, the corresponding parameter set is employed in the discrete-time state-space model and remains unchanged throughout the test.
τ1 = R1C1
τ2 = R2C2
2.2. Model Parameter Identification via SMA
The second-order RC model constructed in Section 2.1 contains temperature-dependent parameters that are identified offline for each of the three investigated temperature conditions (0 °C, 25 °C, and 45 °C). In this section, HPPC test data acquired under temperature levels of 0 °C, 25 °C, and 45 °C are used as the system excitation source for parameter identification. To address the issue that unconstrained heuristic algorithms are prone to non-deterministic divergence when searching in multi-dimensional spaces, physically based boundary constraints are introduced. At the transient moment when the HPPC pulse current I undergoes a step change, the polarization capacitor voltage remains continuous, and thus the instantaneous step change ΔU of the model terminal voltage is solely governed by R0. Based on this characteristic, the physical constraint benchmark for R0 can be established:
Meanwhile, based on the exponential decay behavior of the polarization voltage during the relaxation period, the specific upper and lower boundaries (UB, LB) characterizing the search space of the polarization resistance and polarization capacitance are calibrated, correspondingly.
Under all above physical boundary constraints, parameter identification is formulated as a multi-dimensional nonlinear optimization problem that minimizes the terminal voltage reconstruction error. The SMA is adopted for parameter identification to ensure solution accuracy under complex nonlinear conditions [24]. In the SMA, the spatial position of an individual directly maps to the parameter set θ to be identified, and the evaluation fitness function S(θi) is formulated as the root mean square error (RMSE) comparing the actual HPPC-measured terminal voltage Ut,k alongside the model- predicted terminal voltage under the parameter set θi:
in which N signifies the overall count of sampling points. This identification objective aims to determine the optimal solution θbest yielding the least value of S(θi) inside the constraint boundaries. During the optimization process, the spatial position update equation for the parameter set θ at the t-th iteration is:
where θi(t) signifies the current position of the i-th parameter set; θbest(t) represents the current optimal parameter; θr1(t) and θr2(t) constitute the spatial placements of two randomly chosen independent members from this population; u1 and u2 denote random variables that follow a uniform distribution over [0, 1]; and z is a mutation constant used to maintain population diversity. The control parameters and the adaptive weight adjustment mechanism are described as follows. The control threshold p is used to evaluate the optimization potential of the current parameter set θi, where S(θi) denotes the current fitness and DF represents the optimal fitness. The oscillation factor vb follows a uniform distribution within [−a, a], and the boundary a decays nonlinearly with the iteration count; tmax serves as the ultimate iteration limit, whereas vc acts as a linearly decaying parameter. This adaptive weight W dynamically adjusts the update step size based on the fitness ranking [24], thereby balancing the global exploration and local convergence capabilities.
p = tanh|S(θi) − DF|
a = arctanh(−(t/tmax) + 1)
The three temperature-specific parameter sets identified offline by the SMA are separately incorporated into the discrete-time state-space model for the corresponding tests at 0 °C, 25 °C, and 45 °C. Each parameter set remains fixed during the corresponding driving cycle, and no real-time temperature-driven parameter switching is performed. The identified parameters will be further validated using the wide-temperature-range SOC closed-loop estimation results presented in Section 4.
3. Methodology
3.1. State Observation via MEKF
SOC estimation for LIBs is essentially a state estimation problem for nonlinear systems. As presented in the discrete-time state-space model developed in Section 2.1, the state transition equation exhibits linear characteristics, whereas the observation equation demonstrates strong nonlinearity due to the inclusion of UOCV. To overcome this nonlinearity, conventional methods typically perform a first-order Taylor series expansion of the nonlinear observation function around the current estimate point, thereby converting it into a locally linearized model for recursive state estimation [33]. In this study, a modified extended Kalman filter (MEKF) is employed as the mechanism-based state observer for SOC estimation. The state transition matrix Ak−1 and the input matrix Bk−1 are constructed using the temperature-specific equivalent circuit parameters identified offline by the slime mould algorithm (SMA) in Section 2.2. For each fixed-temperature experiment conducted at 0 °C, 25 °C, or 45 °C, the corresponding parameter set is selected before SOC estimation and remains unchanged throughout the driving cycle. The MEKF then recursively estimates the SOC and polarization voltages using the measured current and terminal voltage. On this basis, the proposed joint estimation framework combines the mechanism-based observer with a data-driven residual compensation module. The state and observation equations of the nonlinear discrete-time system are expressed as follows:
where xk denotes the system state vector, whose elements are the SOC, the first-order polarization voltage, and the second-order polarization voltage at time step k, respectively; uk functions as the input variable; whereas yk constitutes the observation variable. wk−1 alongside vk represent these independent and identically distributed zero-mean system process noise and measurement noise, respectively, with their corresponding covariance matrices being Qw and Rv.
uk = Ik ∈ ℝ1×1
yk = Ut,k ∈ ℝ1×1
Qw ∈ ℝ3×3
Rv ∈ ℝ1×1
The primary system state transition matrix and the control input matrix are denoted by Ak−1 and Bk−1, respectively, which are extracted from the discrete-time model in Equation (4). Their mathematical expressions are defined as follows:
For each experiment conducted at 0 °C, 25 °C, or 45 °C, the resistance and capacitance parameters used to construct these matrices are assigned the corresponding values identified offline by the SMA and remain fixed during the individual test. The nonlinear observation function is:
g(xk,uk) = UOCV(SOCk) − U1,k − U2,k − IkR0,k
By evaluating the observation function around the a priori state estimate , the corresponding Jacobian matrix Ck can be derived as:
where ∂UOCV/∂SOC denotes the derivative of the OCV-SOC mapping curve evaluated at the a priori state-of-charge , which is the SOC component of the state vector .
Relying upon the formulated state-space model, this system state estimation process of the MEKF consists of two stages: algorithm initialization and recursive iteration.
(1) Algorithm initialization stage: Set the initial state vector estimate and the initial error covariance matrix P0:
Here, SOC0 is the initial state of charge, and under resting conditions the starting magnitudes for both polarization voltages become initialized at 0; x0 is the true baseline state governing the system; and E[·] represents the mathematical expectation operator.
(2) Recursive iteration stage (time step k = 1, 2, …):
- A priori state prediction: The a priori state estimate for the current interval k is computed using the a posteriori state estimate obtained at step k − 1:
- Covariance matrix time propagation: Determine the a priori error covariance matrix for step k:
- Kalman gain computation: Compute the optimal Kalman gain matrix for interval k by incorporating the derived observation matrix Ck:
- State measurement update: Correct this a priori state estimate using the measurement innovation comparing the actual recorded terminal voltage yk against the predicted value from our nonlinear observation function, thereby yielding the a posteriori state estimate:
- Measurement update for error covariance: Formulate the a posteriori error covariance matrix at time k, where I denotes the third-order identity matrix:
As time step k advances, the algorithm iteratively executes Steps 1 through 5, thereby completing the closed-loop recursive estimation of the system state variables.
3.2. SSA-BP-Based Error Feedforward Compensation
Based on the MEKF estimation framework established in Section 3.1, the SOC estimate output by the mechanism-based observer contains nonlinear residuals, primarily due to the truncation error of the Taylor series expansion under strongly nonlinear operating conditions. In recent years, combining mechanism-based observers, such as Kalman filters, with neural networks for residual compensation has emerged as a cutting-edge trend to enhance the accuracy of SOC estimation in dynamic driving cycles [34,35]. To this end, this section introduces a BP neural network to construct a nonlinear error feedforward compensation algorithm. To overcome the inherent limitation wherein conventional BP neural networks exhibit high susceptibility to local optima when the gradient descent method is employed, the SSA is employed to perform global pre-optimization of the foundational initial weights and thresholds assigned to the BP network [30]. Figure 3 illustrates the complete flowchart of the SSA-BP-based error feedforward compensation algorithm.
Figure 3.
Flowchart of SSA-BP-based error feedforward compensation algorithm.
For the joint estimation algorithm in this study, the input feature vector Hk feeding the network is configured to incorporate the battery operating current Ik, terminal voltage Ut,k, and the preliminary SOC estimate from the MEKF, namely:
The temperature-chamber setpoint is used to associate each dataset with the corresponding temperature-specific equivalent circuit parameters identified offline by the SMA and is not included in the BP neural network input vector. Accordingly, a 3-8-1 BP neural network is adopted to generate the SOC error compensation value ΔSOCk. The number of hidden-layer neurons is selected with reference to the empirical relation reported in previous research [36], as given in Equation (29):
Here, m denotes the hidden-layer neuron count; n and l represent the counts of input and output nodes, respectively; and a is an empirical adjustment coefficient. In this study, n = 3 and l = 1. Setting a = 6 yields m = 8 according to Equation (29), corresponding to the adopted 3-8-1 BP neural network topology. Consequently, the optimization dimension d characterizing the parameters targeted for SSA tuning equates mathematically to the aggregate count of all weights and biases embedded within the network.
In this SSA, the specific vector of weights and thresholds to be optimized is mapped to the position of a sparrow individual across a d-dimensional search space. Assuming the population size equals n, the spatial location of the i-th individual at the t-th iteration is formulated as:
Based on the individual fitness values, i.e., the mean squared error of the BP network, the population is divided into producers, scroungers, and sparrows who perceive the danger.
Producers, which possess higher fitness, are responsible for globally exploring the optimal parameter region. Their position update equation is:
where imax defines the absolute iteration limit; α acts as a randomized variable; R2 denotes the designated warning value; ST functions as the safety threshold; Q constitutes a stochastic variable adhering to a normal distribution; and L indicates a 1 × d matrix of ones.
α ∈ (0,1]
R2 ∈ [0,1]
ST ∈ [0.5,1]
Scroungers follow the producers to perform local intensive exploitation. Their position update rule is described as:
where signifies the absolute worst spatial location within the active population; identifies the spatial coordinate of the present optimal discoverer; A serves as a 1 × d matrix containing components stochastically set to either 1 or −1, with A+ defined as:
Sparrows perceiving the threat constitute 10% to 20% of the entire population, introducing random perturbations designed to keep the search mechanism from stagnating within local optima. Their corresponding spatial adjustment formula is given by:
where defines the overall optimal spatial location; β serves as the control parameter for the step size; Ks ∈ [−1,1] serves as a random step size factor; fi, fg, and fw represent the evaluated fitness of the active individual, the overall best fitness, and the absolute worst fitness, correspondingly; whereas ε stands as an infinitesimally small constant.
Figure 3 uses t ≥ imax as the stopping condition rather than a condition for continuing the iteration. After each round of SSA population position updates, this condition is checked. If t < imax, the iteration counter is incremented (t = t + 1), and the algorithm returns to fitness evaluation for the next iteration. Otherwise, the optimization terminates. Through the above alternating iterative process, the SSA outputs the optimal individual parameters and injects them into the BP neural network to finalize the weights and thresholds at initialization. The high-precision error compensation value ΔSOCk output by the network is then injected into the main observer in a feedforward manner.
3.3. Fusion and Implementation of SSA-BP-MEKF
To address the issues that LIBs are susceptible to nonlinear disturbances under complex dynamic operating profiles, and recognizing that the time-varying characteristics intrinsic to mechanism model parameters constrain the overall estimation accuracy of conventional filtering algorithms, this study formulates a joint SOC estimation algorithm that integrates physical mechanisms with data-driven techniques. The complete architectural layout detailing this proposed algorithm can be observed within Figure 4. This fundamental mechanism-based observer adopts the previously constructed MEKF, upon which a BP neural network optimized by the SSA is introduced to extract nonlinear state features and perform feedforward error compensation. The specific implementation phases executing this joint estimation algorithm are detailed below:
- Mechanism model parameter calibration: Based on the HPPC test profile, battery experimental data are acquired under temperature levels of 0 °C, 25 °C, and 45 °C. The SMA serves to execute offline parameter identification characterizing the second-order RC model, generating the OCV-SOC mapping curves and the associated resistance and capacitance parameters over a wide temperature range. Using these parameters, a discrete state-space equation incorporating the process noise Qw and measurement noise Rv is constructed, thereby laying the physical model foundation for the subsequent state observation.
- Filtering state observation and feature extraction: The MEKF algorithm is executed based on the calibrated model. Through a priori state prediction, error covariance update, and Kalman gain calculation at time step k, the algorithm completes the closed-loop recursion and outputs . At each time step, the variables Ik, Ut,k, and are combined to form the three-dimensional input feature vector Hk for the BP neural network. The temperature label is used to associate the test data with the corresponding offline-identified equivalent circuit parameters and is not included in Hk.
- SSA global pre-optimization: A BP neural network for nonlinear error fitting is constructed, with its core topology configured as 3 input nodes, 8 hidden nodes, and 1 output node. The SSA is deployed to globally refine the network parameters through the initializing the sparrow population, calculating individual fitness values, and alternately updating the positions of producers, scroungers, and sparrows who perceive the danger. The optimization process outputs a globally superior initial weight matrix and bias vector, thereby overcoming the susceptibility of conventional gradient descent methods to local optima.
- Time-series training characterizing the neural network alongside parameter finalization: Sequential time-series data throughout the DST driving cycle are gathered across thermal environments at 0 °C, 25 °C, alongside 45 °C, while the respective feature variable set defined in Step 2 is extracted. To preserve the temporal continuity of the battery’s dynamic polarization characteristics, the first 80% of the DST dataset is divided into a training set in strict chronological order. The initial parameters obtained from the optimization in Step 3 are injected into the BP neural network, and supervised training is performed through alternating iterations of forward propagation aimed at error calculation alongside backpropagation targeting weight updating. Once the mean squared error termination criterion is satisfied, the network weights and thresholds are finalized.
- Online state fusion and validation under multiple operating conditions: In the actual online estimation stage, the real-time acquired feature vector Hk is fed into the finalized SSA-BP neural network, which outputs the nonlinear error compensation value ΔSOCk through forward computation. The mechanism model output and the data-driven compensation (ΔSOCk) are then combined via feedforward fusion at a summation node, yielding the final optimal SOC estimate ():
Figure 4.
Flowchart of the proposed SSA-BP-MEKF joint SOC estimation algorithm.
To fully evaluate both the generalization performance and the inherent robustness of the proposed joint estimation algorithm, the trained and finalized algorithm is applied to the remaining 20% of the DST dataset as the validation set, as well as to complex dynamic driving cycles including FUDS, US06, and BJDST that are completely unseen during network training, for cross-cycle accuracy verification.
4. Experimental Setup and Test Profiles
4.1. Experimental Setup and Data Preprocessing
As shown in Figure 5, the experimental system comprised a CE-4008Q5V30A-SR charge–discharge tester manufactured by Shenzhen Neware Technology Co., Ltd. (Shenzhen, China), a host PC, an ETH-408-70-CP-AR temperature chamber manufactured by Giant Force Instrument Co., Ltd. (New Taipei City, Taiwan), and lithium-ion batteries. The algorithms were implemented using MATLAB R2023b.
Figure 5.
The experimental test setup for lithium-ion batteries.
A commercial INR18650-20R cylindrical lithium-ion battery (Samsung Semiconductor, Suwon, Republic of Korea) was employed in the experiments. The battery is based on a ternary material chemistry and has a rated capacity of 2.0 Ah. To fully validate the robustness exhibited by the joint estimation algorithm under different ambient temperatures, the internal temperature of the temperature chamber was rigidly regulated at 0 °C, 25 °C, and 45 °C throughout these experiments.
At each temperature level, the test procedure consists of two parts. First, an HPPC test sequence is executed upon the cell to facilitate offline extraction of the OCV-SOC mapping curves and the parameters characterizing the second-order RC model across this wide temperature range. Subsequently, dynamic current excitation profiles are imposed upon the cell dictated by the predefined dynamic driving cycles (DST, FUDS, US06, BJDST), and the operating current Ik and terminal voltage Ut,k are continuously captured at a strict 1 Hz sampling frequency. This collected raw time-series data is streamed directly to the host PC for storage.
The raw time-series data acquired by the host PC are first subjected to denoising and smoothing preprocessing. The processed data are then imported into the simulation environment for offline analysis and online simulation. During data preprocessing, the temperature-chamber setpoints (0 °C, 25 °C, and 45 °C) are assigned as dataset-level temperature labels. Each temperature label is used to associate the experimental data with the corresponding temperature-specific equivalent circuit parameter set identified offline by the SMA. As described in Section 3.2, the BP neural network uses the operating current, terminal voltage, and preliminary SOC estimate from the MEKF as its three dynamic inputs. The temperature label is not treated as a continuously measured input during the individual test.
4.2. Cross-Cycle Validation Scheme
To systematically assess the generalization performance inherent to the proposed algorithm across diverse dynamic excitations alongside varying thermal environments, this paper designs a cross-cycle algorithm validation scheme. The specific validation process separates into two distinct phases: offline training alongside cross-cycle testing.
- (1)
- Division of training and validation subsets: For the offline training of the SSA-BP neural network, a chronological hold-out validation strategy is adopted. The DST cycle test sequences under temperature levels of 0 °C, 25 °C, and 45 °C are isolated. At every individual thermal level, the initial 80% portion from the time-series sequence is allocated as a training subset, functioning to facilitate nonlinear feature extraction alongside weight iteration within the SSA-BP neural network; meanwhile, the residual 20% acts as a validation subset to evaluate the convergence status characterizing this network.
- (2)
- Cross-cycle test set design: After completing offline training and finalizing the parameters of the SSA-BP-MEKF algorithm, an independent generalization test set is constructed. The test set employs data from three typical dynamic driving cycles that are not involved in model training, namely US06, FUDS, and BJDST, each covering three temperature levels of 0 °C, 25 °C, and 45 °C. The preprocessed current Ik is used as the model input, while the terminal voltage Ut,k serves as the measurement for the MEKF. The preliminary SOC estimate obtained from the MEKF is then combined with Ik and Ut,k to form Hk, the three-dimensional input feature vector supplied to the BP neural network.
4.3. Evaluation Metrics
To evaluate both SOC estimation accuracy and operational robustness exhibited by the proposed algorithm under varying temperatures and working conditions, this paper adopts three statistical metrics: RMSE, mean absolute error (MAE), MaxAE. The corresponding calculation formulas are provided below:
where N represents the aggregate count of sampling instances throughout the test cycle; SOCTrue,k is the true SOC value of the battery at time step k (corresponding to the discrete data points of SOC_True value in the experimental curves); and is the SOC estimate at time step k output by the algorithm under evaluation (i.e., the basic MEKF, BP-MEKF, and SSA-BP-MEKF). Among these metrics, RMSE remains highly responsive to substantial deviations, thereby reflecting the overall global stability of the estimation results; MAE characterizes the mean dispersion degree inherent to the estimation errors; and MaxAE reflects the local extreme deviation and serves as a core indicator for assessing the algorithm’s ability to suppress error divergence under complex dynamic excitations.
5. Results and Discussion
5.1. Baseline Validation
As described in Section 4.2, the first 80% of the DST cycle data have been used in the offline stage to complete the parameter iteration of the BP neural network, while the remaining 20% is used to monitor its convergence. After offline training finalizes the network weights and SSA-optimal parameters, the algorithm is re-implemented in Simulink R2023b to assess its baseline in-distribution fitting accuracy and continuous tracking capability through a full-cycle DST back-test. Figure 6 presents the full-cycle estimation results and error bands of the basic MEKF, the BP-MEKF with BP-based compensation, and the proposed SSA-BP-MEKF at three temperatures: 0 °C, 25 °C, and 45 °C. As shown in the figure, SOC_K1, SOC_K2, and SOC_K3 correspond to the estimated SOC () curves of the three algorithms, respectively. Specifically, Figure 6a,d,g show the tracking performance of the basic MEKF; Figure 6b,e,h reflect the residual compensation effect after introducing the BP neural network; and Figure 6c,f,i present the final prediction performance after the global weight optimization by SSA.
Figure 6.
Comparison of SOC estimation results and errors among different algorithms over a wide temperature range under the DST cycle: (a) MEKF at 0 °C; (b) BP-MEKF at 0 °C; (c) SSA-BP-MEKF at 0 °C; (d) MEKF at 25 °C; (e) BP-MEKF at 25 °C; (f) SSA-BP-MEKF at 25 °C; (g) MEKF at 45 °C; (h) BP-MEKF at 45 °C; (i) SSA-BP-MEKF at 45 °C.
Specifically, as illustrated in Figure 6a–c, at 0 °C under low-temperature conditions, the MaxAE of the basic MEKF is 0.0468. With conventional BP compensation, due to the highly nonlinear characteristics of low-temperature polarization, the BP-MEKF exhibits local divergence, and this error increases to 0.0549. After further introducing SSA to globally optimize the initial weights, the SSA-BP-MEKF effectively overcomes the local optimum deficiency and reduces this metric to 0.0152, with the predicted curve closely matching the true SOC. Similarly, as shown in Figure 6d–f, under the room-temperature condition of 25 °C, the MaxAE of the basic MEKF is 0.0408. With conventional BP compensation, this value reaches 0.0546. After SSA optimization, the full-cycle error is restricted to 0.0139. Furthermore, as shown in Figure 6g–i, at 45 °C under high-temperature conditions, the MaxAE decreases from 0.0554 with the basic MEKF alone to 0.0372 after conventional BP compensation, and finally converges to 0.0113 under SSA global optimization. The full-cycle DST back-test results demonstrate that the offline-trained SSA-BP-MEKF achieves high in-distribution fitting accuracy at 0 °C, 25 °C, and 45 °C. Table 1 summarizes the MaxAE values of the three algorithms under the DST cycle shown in Figure 6. To further verify whether the proposed algorithm has effectively captured the underlying physical dynamic mapping of the battery, the model with the finalized parameters will be subjected to zero-shot generalization tests under out-of-distribution dynamic driving cycles (US06, FUDS, BJDST) that are unseen during training in the subsequent sections.
Table 1.
MaxAE comparison under the DST cycle at three temperatures.
5.2. Cross-Cycle Validation at 25 °C
After completing offline training and parameter finalization under the DST cycle, three typical dynamic driving cycles (FUDS, US06, and BJDST) that were not involved in training are introduced to verify the generalization performance of the algorithm under unseen dynamic excitations. Figure 7 shows the continuous tracking curves and error distributions of the three estimation algorithms at 25 °C. The corresponding MaxAE values under the FUDS, US06, and BJDST cycles are summarized in Table 2 for quantitative comparison. In the figure, SOC_K1, SOC_K2, and SOC_K3 represent the estimation results of the basic MEKF, the BP-MEKF, and the proposed SSA-BP-MEKF, respectively.
Figure 7.
Comparison of cross-cycle SOC estimation results and errors at 25 °C: (a) MEKF under FUDS; (b) BP-MEKF under FUDS; (c) SSA-BP-MEKF under FUDS; (d) MEKF under US06; (e) BP-MEKF under US06; (f) SSA-BP-MEKF under US06; (g) MEKF under BJDST; (h) BP-MEKF under BJDST; (i) SSA-BP-MEKF under BJDST.
Table 2.
MaxAE comparison under different driving cycles at 25 °C.
Specifically, as shown in Figure 7a–c, under the FUDS cycle, the basic MEKF yields a MaxAE of 0.0391 and the curve exhibits noticeable tracking lag. After introducing conventional BP compensation, the local error at the initial stage of the cycle remains as high as 0.0378. In contrast, the SSA-BP-MEKF, after global optimization by SSA, further reduces this metric to 0.0221, significantly improving the agreement between the predicted curve and the true SOC. As shown in Figure 7d–f, under the US06 test, the MaxAE of the MEKF is 0.0428. With conventional BP compensation, this value decreases to 0.0171. After further introducing SSA optimization, the error of the SSA-BP-MEKF converges to 0.0125. As shown in Figure 7g–i, under the BJDST cycle, the MEKF produces a MaxAE of 0.0448 at the end of the cycle. After conventional BP compensation, this metric of the BP-MEKF decreases to 0.0140. The proposed SSA-BP-MEKF yields a local error of 0.0156. Although this value is close to that of the BP-MEKF, observed over the entire cycle, the SSA-BP-MEKF exhibits smaller residual fluctuations, effectively suppressing the oscillations caused by the conventional BP compensation module at points of sudden current changes.
The above cross-cycle test results indicate that the offline-trained SSA-BP-MEKF does not exhibit overfitting to the single training dataset. The SSA mechanism globally optimizes the initial network weights, achieving a balance between the local error and the overall tracking performance, thereby validating the cross-cycle generalization capability of the SSA-BP-MEKF at 25 °C.
5.3. Low-Temperature Evaluation at 0 °C
Following the validation at the baseline temperature of 25 °C, this section further investigates the tracking performance of the SSA-BP-MEKF under the low-temperature condition of 0 °C. At low temperatures, the electrochemical reaction kinetics inside LIBs are constrained, and the nonlinear polarization characteristics are significantly intensified, posing severe challenges to the parameter matching and error compensation capability of the estimation algorithm. Figure 8 comprehensively presents the continuous tracking curves and error bands of the three algorithms under the cross-cycle tests of FUDS, US06, and BJDST at 0 °C. The corresponding MaxAE values are summarized in Table 3 for quantitative comparison. Specifically, as shown in Figure 8a–c, under the FUDS cycle, the MaxAE of the basic MEKF is 0.0417. After introducing conventional BP compensation, due to the complexity of the low-temperature polarization characteristics, the network is highly prone to local optima, leading to compensation degradation, and this error of the BP-MEKF increases to 0.0491. With SSA global optimization, the SSA-BP-MEKF effectively corrects this deviation and reduces this metric to 0.0141. As shown in Figure 8d–f, under the US06 test, the MaxAE of the basic MEKF is 0.0452, and that of the BP-MEKF further increases to 0.0480. After introducing SSA optimization, the SSA-BP-MEKF overcomes this divergence issue and this error converges to 0.0139. Furthermore, as shown in Figure 8g–i, in the BJDST cycle, which exhibits the most severe dynamic fluctuations, the phenomenon of compensation degradation is even more pronounced. The MaxAE of the basic MEKF is 0.0396, and after conventional BP compensation, the BP-MEKF exhibits local divergence, with this value increasing to 0.0588. In contrast, the proposed SSA-BP-MEKF restricts the local error to 0.0265 by constraining the initial weights of the BP network through the global optimization mechanism. As observed from the full-cycle error band, the SSA-BP-MEKF still maintains a relatively small residual fluctuation amplitude at 0 °C, thereby avoiding the compensation degradation of the conventional data-driven compensation module under severe low-temperature excitation.
Figure 8.
Comparison of cross-cycle SOC estimation results and errors at 0 °C: (a) MEKF under FUDS; (b) BP-MEKF under FUDS; (c) SSA-BP-MEKF under FUDS; (d) MEKF under US06; (e) BP-MEKF under US06; (f) SSA-BP-MEKF under US06; (g) MEKF under BJDST; (h) BP-MEKF under BJDST; (i) SSA-BP-MEKF under BJDST.
Table 3.
MaxAE comparison under different driving cycles at 0 °C.
The above validation results under 0 °C demonstrate that under intensified nonlinear polarization, the unoptimized data-driven compensation module is prone to local divergence, which leads to compensation degradation and consequently undermines the overall estimation accuracy. The proposed SSA-BP-MEKF utilizes SSA to provide globally optimal parameter constraints for the error compensation module, effectively suppressing the divergence tendency of the conventional BP compensation module under complex low-temperature excitation. This set of test data not only confirms the necessity of introducing a global optimization algorithm, but also further validates the robustness of the mechanism-data fusion algorithm at low temperatures.
5.4. High-Temperature Evaluation at 45 °C
Following validation at 0 °C, this section evaluates the proposed algorithm’s estimation performance and error divergence suppression at 45 °C. High temperatures tend to intensify battery side reactions and amplify the randomness of dynamic driving cycles, challenging the local generalization of data-driven algorithms. Figure 9 shows the SOC tracking curves and error bands of the three algorithms under FUDS, US06, and BJDST cross-cycle tests at 45 °C. Table 4 compares their MaxAE values. Specifically, as shown in Figure 9a–c, under the FUDS cycle, the MaxAE of the basic MEKF is 0.0559. After introducing conventional BP compensation, although the overall residual range is somewhat narrowed, the BP-MEKF exhibits local divergence at the end of the cycle and its error still reaches 0.0444. With SSA global optimization, the SSA-BP-MEKF effectively suppresses this divergence phenomenon and reduces this value to 0.0167.
Figure 9.
Comparison of cross-cycle SOC estimation results and errors at 45 °C: (a) MEKF under FUDS; (b) BP-MEKF under FUDS; (c) SSA-BP-MEKF under FUDS; (d) MEKF under US06; (e) BP-MEKF under US06; (f) SSA-BP-MEKF under US06; (g) MEKF under BJDST; (h) BP-MEKF under BJDST; (i) SSA-BP-MEKF under BJDST.
Table 4.
MaxAE comparison under different driving cycles at 45 °C.
As shown in Figure 9d–f, under the US06 test, the MaxAE of the basic MEKF is 0.0572, and that of the BP-MEKF is 0.02. After introducing SSA optimization, the error band of the SSA-BP-MEKF is further narrowed, and its metric converges to 0.0109. Furthermore, as shown in Figure 9g–i, under the BJDST cycle, the error divergence phenomenon is the most pronounced. The MaxAE of the basic MEKF is 0.0512, and after conventional BP compensation, the BP-MEKF suffers from severe local divergence because it cannot fully capture the high-temperature nonlinear dynamics, with its error increasing to 0.069. In contrast, the proposed SSA-BP-MEKF overcomes this deficiency through the global parameter constraint mechanism, restricting the local error to 0.0149.
The validation results under 45 °C demonstrate that under the coupled effects of high-temperature side reactions and dynamic randomness, the conventional data-driven compensation module is prone to residual divergence in local regions, leading to terminal compensation degradation. The proposed SSA-BP-MEKF leverages the SSA mechanism to endow the BP neural network with superior global generalization weights, effectively suppressing the local overfitting phenomenon at high temperatures. Combined with the test results under the low-temperature condition of 0 °C, this set of data comprehensively validates the high accuracy and robustness of the mechanism-data fusion algorithm across a wide temperature range from 0 °C to 45 °C and under complex dynamic excitations.
5.5. Comprehensive Robustness Assessment
Figure 10, Figure 11 and Figure 12, respectively present the comparison of the basic MEKF, BP-MEKF, and SSA-BP-MEKF with respect to RMSE, MAE, and MaxAE, at temperatures of 25 °C, 0 °C, and 45 °C. The comprehensive statistical results indicate that under the four dynamic driving cycles (DST, US06, FUDS, and BJDST) and across the tested wide temperature range, the proposed SSA-BP-MEKF consistently achieves the lowest error metrics, demonstrating the highest estimation accuracy and excellent environmental adaptability.
Figure 10.
Statistical error comparison of SOC estimation among different algorithms at 25 °C: (a) DST cycle; (b) FUDS cycle; (c) US06 cycle; (d) BJDST cycle.
Figure 11.
Statistical error comparison of SOC estimation among different algorithms at 0 °C: (a) DST cycle; (b) FUDS cycle; (c) US06 cycle; (d) BJDST cycle.
Figure 12.
Statistical error comparison of SOC estimation among different algorithms at 45 °C: (a) DST cycle; (b) FUDS cycle; (c) US06 cycle; (d) BJDST cycle.
Figure 10 presents the statistical error results at 25 °C. The corresponding RMSE, MAE, and MaxAE values under the four driving cycles are summarized in Table 5 for quantitative comparison. At this temperature, the SSA-BP-MEKF achieves MAEs of 0.17%, 0.33%, 0.58%, and 0.33% under the DST, FUDS, US06, and BJDST cycles, respectively. In contrast, the basic MEKF generally shows larger errors, with an MAE of 2.89% under the US06 cycle and an RMSE of 2.75% under the BJDST cycle, whereas the proposed SSA-BP-MEKF achieves an RMSE of 0.38% under the same BJDST cycle. Furthermore, the BP-MEKF achieves an MAE of 0.52% under the US06 cycle, which is comparable to that of the proposed SSA-BP-MEKF. However, in terms of the MaxAE metric, which reflects the local extreme deviation, the SSA-BP-MEKF records a value of 1.25%, lower than the 1.71% of the BP-MEKF. The above statistical results indicate that at 25 °C, the proposed SSA-BP-MEKF not only achieves high overall estimation accuracy but also demonstrates superior residual convergence and divergence suppression capability under complex dynamic driving cycles.
Table 5.
Statistical comparison of SOC estimation errors at 25 °C.
Figure 11 presents the statistical error results at 0 °C. The corresponding RMSE, MAE, and MaxAE values under the four driving cycles are summarized in Table 6 for quantitative comparison. The data indicate that under intensified nonlinear polarization at low temperatures, the conventional BP neural network exhibits a declining trend in robustness, and compensation degradation occurs under some complex operating conditions. Specifically, although the BP-MEKF can reduce the RMSE under certain cycles such as DST, it exhibits local error divergence under the BJDST cycle, with its RMSE and MAE increasing from the basic MEKF’s 1.74% and 1.31% to 2.75% and 2.2%, respectively. In contrast, the proposed SSA-BP-MEKF overcomes this issue by introducing the SSA global optimization mechanism, restricting its RMSE and MaxAE to 1.40% and 2.65%, respectively, under the BJDST cycle. Furthermore, under the FUDS cycle, the proposed SSA-BP-MEKF achieves an MAE of 0.34%, which is significantly lower than the basic MEKF’s 2.30% under the same conditions. The above statistical results indicate that the SSA, while improving overall estimation accuracy, effectively suppresses the error divergence tendency that conventional data-driven compensation modules are prone to under low-temperature conditions, thereby further enhancing the overall robustness of the mechanism-data fusion algorithm.
Table 6.
Statistical comparison of SOC estimation errors at 0 °C.
Figure 12 presents the statistical error results at 45 °C. The corresponding RMSE, MAE, and MaxAE values under the four driving cycles are summarized in Table 7 for quantitative comparison. Owing to the combined influence of high-temperature side reactions and stochasticity in dynamic driving cycles, the conventional data-driven compensation module exhibits local error divergence under this condition. Specifically, although the BP-MEKF reduces the RMSE across the four driving cycles from the basic MEKF’s 4.04–4.38% to the 1.23–1.56% range, it shows degradation in the MaxAE, the metric that reflects local extreme deviation. Taking the BJDST cycle as an example, the basic MEKF yields a MaxAE of 5.12%. After introducing conventional BP compensation, this metric surges to 6.90% due to divergence caused by the high-temperature nonlinear characteristics. In contrast, the proposed SSA-BP-MEKF effectively suppresses this divergence. Across the high-temperature test set covering the four complex driving cycles, the RMSE and MAE of the SSA-BP-MEKF remain within 0.78% and 0.64%, respectively, and the MaxAE does not exceed 1.67% in any case. The above statistical results indicate that at 45 °C, the SSA global optimization mechanism not only ensures overall estimation accuracy but also effectively suppresses terminal error divergence, thereby further confirming the robustness of the mechanism–data fusion algorithm in complex environments.
Table 7.
Statistical comparison of SOC estimation errors at 45 °C.
It should be noted that the experimental validation in this study was conducted at three separately controlled ambient temperatures (0 °C, 25 °C, and 45 °C), rather than under continuously varying temperature conditions. At each temperature, the equivalent circuit parameters identified offline using the SMA were kept fixed throughout the corresponding driving cycles (DST, FUDS, US06, and BJDST). Therefore, the present results demonstrate the effectiveness of the proposed SSA-BP-MEKF under different fixed ambient-temperature conditions, but do not directly establish its performance during continuous temperature transitions.
During practical battery operation, changes in ambient temperature and heat generation within the battery may cause variations in the battery temperature. Such variations can affect the equivalent circuit parameters, the OCV-SOC relationship, and the available battery capacity. If the model parameters remain fixed while the battery temperature changes, parameter mismatch and terminal voltage prediction errors may occur, potentially reducing the accuracy of MEKF-based SOC estimation. Moreover, the performance of the SSA-BP residual compensation module may be affected when the operating conditions differ from those represented in the training data.
To address this limitation, future work will investigate the incorporation of real-time battery temperature measurements and temperature-dependent parameter updating strategies, such as lookup-table interpolation, into the proposed framework. However, these extensions have not been implemented or experimentally validated in the present study. Further investigations under dynamically varying thermal conditions are therefore required.
5.6. Statistical Significance and Computational Complexity Assessment
To demonstrate the practical engineering value of the proposed SSA-BP-MEKF, this section evaluates its statistical significance and quantifies its computational complexity.
First, to avoid the randomness of a single experimental result and verify the reliability of the algorithm’s accuracy, Monte Carlo simulations were conducted. According to the test results in Section 5.2 and Section 5.4, the coupling of the 0 °C low-temperature environment and the BJDST driving cycle constitutes a severe testing condition for SOC estimation. By verifying the error convergence characteristics under this condition, the global stability of the proposed algorithm can be effectively evaluated at three ambient temperatures (0 °C, 25 °C, and 45 °C) and under four dynamic driving cycles (DST, FUDS, US06, and BJDST). Therefore, this study established a cross-cycle validation scheme utilizing 0 °C DST as the training set and 0 °C BJDST as the testing set, under which 30 independent repetitive estimation experiments were executed. In each run, the SSA-BP network was independently re-optimized to obtain a new set of network parameters, followed by SOC estimation and error evaluation. The 30 runs were selected as a practical balance between evaluating the repeatability of estimation results and controlling computational cost.
Figure 13 shows that for the three evaluation metrics, namely RMSE (Figure 13a), MAE (Figure 13b), and MaxAE (Figure 13c), the proposed algorithm achieves the smallest error medians and the narrowest box distributions. Here, med represents the median and n is the number of trials. This indicates that the proposed algorithm performs well in battery state estimation. Accordingly, the RMSE values derived from the 30 independent trials were subjected to a paired-sample t-test. After the Shapiro–Wilk test confirmed that the sample differences follow a normal distribution, the calculated p-value was less than 0.01. The outcome refutes the null hypothesis of no performance difference among the algorithms, confirming that the proposed algorithm’s improvements in accuracy as well as stability reach statistical significance.
Figure 13.
Box plots of SOC error distributions for BP-MEKF and SSA-BP-MEKF under the 0 °C BJDST driving cycle: (a) RMSE; (b) MAE; (c) MaxAE.
Second, to evaluate the computational load imposed by the proposed algorithm, the execution time of every core module was quantified. Over the complete dynamic driving cycle, the basic MEKF requires an average of approximately 16.64 μs per step. Since the SSA has already globally optimized the BP network’s weights and thresholds in the offline phase, online deployment only involves forward propagation of the pre-trained network, which adds merely 0.197 μs of computation time per step.
Ultimately, the proposed SSA-BP-MEKF completes a single step in approximately 16.84 μs on average. Compared with typical hybrid optimization algorithms such as HEGO [37] that usually require millisecond-level single-step execution times, the proposed algorithm improves SOC estimation accuracy while keeping its single-step computational cost strictly at the microsecond level. This demonstrates that the algorithm meets the real-time requirements of practical applications.
6. Conclusions
This paper proposes a mechanism-data fusion estimation algorithm, SSA-BP-MEKF. Based on the temperature-specific model parameters identified offline by SMA under wide temperature ranges (0 °C, 25 °C, and 45 °C), the algorithm employs an MEKF for initial SOC estimation. Meanwhile, an SSA-globally optimized BP neural network is introduced to perform feedforward compensation of nonlinear residuals, effectively overcoming the susceptibility of conventional BP neural networks to local optima and terminal divergence. Experimental validation demonstrates that, under the DST, US06, FUDS, and BJDST driving cycles at 0 °C, 25 °C, and 45 °C, the proposed SSA-BP-MEKF generally achieves lower MaxAE values than the comparison algorithms. At the baseline temperature of 25 °C, the MaxAE in cross-cycle tests does not exceed 2.21%. At the extreme temperatures of 0 °C and 45 °C, the SSA-BP-MEKF successfully suppresses the divergence phenomenon commonly observed with conventional BP compensation, and the MaxAE under the most demanding BJDST cycle is constrained to 2.65% and 1.49%, respectively. In summary, the proposed SSA-BP-MEKF improves SOC estimation accuracy and robustness across the three investigated fixed ambient-temperature conditions (0 °C, 25 °C, and 45 °C) and multiple dynamic driving cycles. Nevertheless, its estimation performance under continuously varying battery temperatures remains to be investigated. Future work will focus on temperature-dependent model parameter updating and experimental validation under dynamic thermal conditions to further improve the practical applicability of the proposed algorithm.
Author Contributions
Conceptualization, W.W., L.Z., J.M. and J.W.; methodology, L.Z., W.W. and Z.R.; software, L.Z. and Z.R.; validation, J.W., J.M. and W.W.; investigation, J.W.; resources, W.W., J.M. and J.W.; writing—original draft preparation, L.Z.; writing—review and editing, W.W.; visualization, Z.R.; supervision, W.W.; project administration, J.W.; funding acquisition, W.W. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported by National Natural Science Foundation of China (Grant No. 52567004), Science and Technology Plan Project of Inner Mongolia Autonomous Region (Grant No. 2025YFHH0086) and Ordos Higher Education Institutions Scientific Research Innovation Project (Grant No. KYLJ25Z009).
Data Availability Statement
Data is contained within the article.
Conflicts of Interest
The authors declare that Jinhao Meng serves as an Editorial Board Member of Batteries. This role has no influence on the design, execution, or interpretation of the research presented in this manuscript. Furthermore, Jinhao Meng has not been involved in the editorial processing or peer review of this manuscript. The remaining authors declare no conflicts of interest.
References
- International Energy Agency. CO2 Emissions in 2023; International Energy Agency: Paris, France, 2024; Available online: https://www.iea.org/reports/co2-emissions-in-2023 (accessed on 16 April 2026).
- Khan, A.; Yaqub, S.; Ali, M.; Ahmad, A.; Nazir, H.; Khalid, H.; Iqbal, N.; Said, Z.; Sopian, K. A state-of-the-art review on heating and cooling of lithium-ion batteries for electric vehicles. J. Energy Storage 2024, 76, 109852. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Huang, H.; Zhang, G.; Dai, Z.; Wen, Y.; Jiang, L. Cycle life studies of lithium-ion power batteries for electric vehicles: A review. J. Energy Storage 2024, 93, 112231. [Google Scholar] [CrossRef] [Scilit]
- Li, F.; Zuo, W.; Zhou, K.; Li, Q.; Huang, Y.; Zhang, G. State-of-charge estimation of lithium-ion battery based on second order resistor-capacitance circuit-PSO-TCN model. Energy 2024, 289, 130025. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Bai, G.; Yan, J.; Gu, J. On-line parameter identification and SOC estimation of nonlinear model of lithium-ion battery based on Wiener structure. J. Energy Storage 2024, 92, 112094. [Google Scholar] [CrossRef] [Scilit]
- Xie, Y.; Chen, N.; Chen, J.; Liao, J.; Cao, F.; Yang, C. Co-estimation of state of charge and model parameters for lithium-ion batteries based on variational Bayesian under time-varying noise and temperature conditions. J. Energy Storage 2024, 96, 112600. [Google Scholar] [CrossRef] [Scilit]
- Qaisar, S.M. Event-Driven Approach for an Efficient Coulomb Counting Based Li-Ion Battery State of Charge Estimation. Procedia Comput. Sci. 2020, 168, 202–209. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Yang, Y.; Guo, K. An Improved Recursive Total Least Squares Estimation of Capacity for Electric Vehicle Lithium-Iron Phosphate Batteries. Math. Probl. Eng. 2020, 2020, 9359076. [Google Scholar] [CrossRef] [Scilit]
- Xiong, R.; Li, L.; Yu, Q.; Jin, Q.; Yang, R. A set membership theory based parameter and state of charge co-estimation method for all-climate batteries. J. Clean. Prod. 2020, 249, 119380. [Google Scholar] [CrossRef] [Scilit]
- Guo, H.; Li, Z.; Xue, H.; Luo, J. State of Charge Estimation Method for Lithium-Ion Batteries Based on Online Parameter Identification and QPSO-AUKF. Batteries 2026, 12, 84. [Google Scholar] [CrossRef] [Scilit]
- Qiu, X.; Wu, W.; Wang, S. Remaining useful life prediction of lithium-ion battery based on improved cuckoo search particle filter and a novel state of charge estimation method. J. Power Sources 2020, 450, 227700. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Fernandez, C.; Fan, Y.; Feng, J.; Yu, C.; Huang, K.; Xie, W. A novel safety assurance method based on the compound equivalent modeling and iterate reduce particle-adaptive Kalman filtering for the unmanned aerial vehicle lithium ion batteries. Energy Sci. Eng. 2020, 8, 1484–1500. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Zhang, Y.; Wu, J.; Cheng, W.; Zhu, Q. SOC estimation for lithium-ion battery using the LSTM-RNN with extended input and constrained output. Energy 2023, 262, 125375. [Google Scholar] [CrossRef] [Scilit]
- Cui, Z.; Wang, L.; Li, Q.; Wang, K. A comprehensive review on the state of charge estimation for lithium-ion battery based on neural network. Int. J. Energy Res. 2022, 46, 5423–5440. [Google Scholar] [CrossRef] [Scilit]
- Qiu, J.; Zhang, Z.; Zhu, Z.; Luo, C. Accurate State of Charge Estimation for Lithium-Ion Batteries Using a Temporal Convolutional Network and Bidirectional Long Short-Term Memory Hybrid Model. Batteries 2026, 12, 50. [Google Scholar] [CrossRef] [Scilit]
- He, L.; Guo, D. An Improved Coulomb Counting Approach Based on Numerical Iteration for SOC Estimation With Real-Time Error Correction Ability. IEEE Access 2019, 7, 74274–74282. [Google Scholar] [CrossRef] [Scilit]
- Wang, C.; Zhang, X.; Yun, X.; Fan, X. A novel hybrid machine learning coulomb counting technique for state of charge estimation of lithium-ion batteries. J. Energy Storage 2023, 63, 107081. [Google Scholar] [CrossRef] [Scilit]
- Zhang, M.; Fan, X. Design of battery management system based on improved ampere-hour integration method. Int. J. Electr. Hybrid. Veh. 2022, 14, 1–29. [Google Scholar] [CrossRef] [Scilit]
- He, H.; Xiong, R.; Zhang, X.; Sun, F.; Fan, J. State-of-Charge Estimation of the Lithium-Ion Battery Using an Adaptive Extended Kalman Filter Based on an Improved Thevenin Model. IEEE Trans. Veh. Technol. 2011, 60, 1461–1469. [Google Scholar] [CrossRef] [Scilit]
- Lim, K.; Bastawrous, H.; Duong, V.; See, K.; Zhang, P.; Dou, S. Fading Kalman filter-based real-time state of charge estimation in LiFePO4 battery-powered electric vehicles. Appl. Energy 2016, 169, 40–48. [Google Scholar] [CrossRef] [Scilit]
- Madani, S.; Ziebert, C.; Marzband, M.; Odintsov, S. Thermal Behavior Modeling of Lithium-Ion Batteries: A Comprehensive Review. Symmetry 2023, 15, 1597. [Google Scholar] [CrossRef] [Scilit]
- Jiang, C.; Wang, S.; Wu, B.; Fernandez, C.; Xiong, X.; Coffie-Ken, J. A state-of-charge estimation method of the power lithium-ion battery in complex conditions based on adaptive square root extended Kalman filter. Energy 2021, 219, 119603. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Liu, G.; Deng, W.; Li, Z. Comparative study on parameter identification of an electrochemical model for lithium-ion batteries via meta-heuristic methods. Appl. Energy 2024, 367, 123437. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Chen, H.; Wang, M.; Heidari, A.; Mirjalili, S. Slime mould algorithm: A new method for stochastic optimization. Future Gener. Comp. Syst. 2020, 111, 300–323. [Google Scholar] [CrossRef] [Scilit]
- Liu, D.; Li, L.; Song, Y.; Wu, L.; Peng, Y. Hybrid state of charge estimation for lithium-ion battery under dynamic operating conditions. Int. J. Electr. Power Energy Syst. 2019, 110, 48–61. [Google Scholar] [CrossRef] [Scilit]
- Xiao, B.; Liu, Y.; Xiao, B. Accurate State-of-Charge Estimation Approach for Lithium-Ion Batteries by Gated Recurrent Unit With Ensemble Optimizer. IEEE Access 2019, 7, 54192–54202. [Google Scholar] [CrossRef] [Scilit]
- Vidal, C.; Malysz, P.; Kollmeyer, P.; Emadi, A. Machine Learning Applied to Electrified Vehicle Battery State of Charge and State of Health Estimation: State-of-the-Art. IEEE Access 2020, 8, 52796–52814. [Google Scholar] [CrossRef] [Scilit]
- Man, K.F.; Tang, K.S.; Kwong, S. Genetic algorithms: Concepts and applications [in engineering design]. IEEE Trans. Ind. Electron. 1996, 43, 519–534. [Google Scholar] [CrossRef] [Scilit]
- Ren, X.; Liu, S.; Yu, X.; Dong, X. A method for state-of-charge estimation of lithium-ion batteries based on PSO-LSTM. Energy 2021, 234, 121236. [Google Scholar] [CrossRef] [Scilit]
- Xue, J.; Shen, B. A novel swarm intelligence optimization approach: Sparrow search algorithm. Syst. Sci. Control Eng. 2020, 8, 22–34. [Google Scholar] [CrossRef] [Scilit]
- Golbon-Haghighi, M.-H.; Saeidi-Manesh, H.; Zhang, G.; Zhang, Y. Pattern Synthesis for the Cylindrical Polarimetric Phased Array Radar (Cppar). Prog. Electromagn. Res. M 2018, 66, 87–98. [Google Scholar] [CrossRef] [Scilit]
- Hu, X.; Li, S.; Peng, H. A comparative study of equivalent circuit models for Li-ion batteries. J. Power Sources 2012, 198, 359–367. [Google Scholar] [CrossRef] [Scilit]
- Plett, G. Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs—Part 3. State and parameter estimation. J. Power Sources 2004, 134, 277–292. [Google Scholar] [CrossRef] [Scilit]
- Hu, C.; Li, B.; Ma, L.; Cheng, F. State-of-charge estimation for lithium-ion batteries of electric vehicle based on sensor random error compensation. J. Energy Storage 2022, 55, 105537. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Tian, Y.; Liu, D.; Li, H.; Yi, A.; Wang, Y.; Wang, N.; Pei, L.; Wang, Z.; Jiang, H. A novel dual gated recurrent unit neural network based on error compensation integrated with Kalman filter for the state of charge estimation of parallel battery modules. J. Power Sources 2025, 635, 236508. [Google Scholar] [CrossRef] [Scilit]
- Zhang, C.-W.; Chen, S.-R.; Gao, H.-B.; Xu, K.-J.; Yang, M.-Y. State of Charge Estimation of Power Battery Using Improved Back Propagation Neural Network. Batteries 2018, 4, 69. [Google Scholar] [CrossRef] [Scilit]
- Wang, W.; Ren, Z.; Wang, J.; Zhang, L. Hybrid Elephant Herding and Golden Eagle Optimization-Based Extended Kalman Filter for State of Charge Estimation of Energy Storage Batteries. Batteries 2026, 12, 290. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.












