1. Introduction
Lithium-ion batteries (LIBs) are considered the cornerstone of modern-world technology, as they are characterized by high energy and power density, efficiency, a long lifespan, low self-discharge, and a fast charging capability, and are relatively lightweight [
1,
2,
3]. These attributes make LIBs essential for a variety of applications, including mobile devices, renewable energy storage, and electric vehicles [
4,
5]. As technology advances, the importance of accurately simulating and modeling these batteries becomes evident. However, the development of precise physical models that accurately capture the intricate internal static and dynamic processes of LIBs is a challenging task. In practical applications, the effectiveness of battery management systems (BMSs) heavily relies on the accuracy of battery models to monitor SOC and predict state of health (SOH), as these critical states are usually immeasurable and must be estimated from model-based algorithms [
6].
To enhance the resilience and safety of electric vehicles (EVs), it is imperative to consider the properties of lithium-ion batteries. Accurately identifying the model parameters of these batteries can significantly improve the effectiveness of battery management systems by facilitating condition monitoring and fault diagnosis. Battery models are categorized into the following three types, each of which will be discussed in detail below: black-box models [
7], equivalent circuit models [
8], and electrochemical models [
9,
10]. Each category underpins both theoretical analysis and practical application, thereby facilitating the development of advanced battery management systems [
11].
The electrochemical model provides an in-depth understanding of the internal reaction mechanisms of batteries from an electrochemical standpoint, highlighting the significance of its parameters. Despite its detailed accuracy, the model’s complexity and the large number of parameters make it challenging to apply in electric vehicle simulations or battery management systems, especially with varying battery materials [
12].
Recent advances in machine learning (ML) and data-driven techniques have significantly impacted various electrical engineering applications, including model parameters calibration [
13,
14,
15], anomaly detection [
16,
17], oscillation localization [
18,
19], spoofing detection [
20], and SOC estimation across various operational states [
21]. By utilizing neural networks (NNs), the black-box model effectively addresses the high nonlinearity of internal parameters in lithium-ion batteries during reactions, capitalizing on the networks’ robust self-learning abilities. However, the model’s accuracy is closely tied to the quality and availability of training data, which limits its adaptability [
22,
23].
The equivalent circuit model (ECM) effectively describes the voltage characteristics of lithium-ion batteries during charge and discharge cycles by modeling the battery as a circuit configuration, with components including resistors, voltage sources, and Resistor Capacitor (RC) networks, thereby capturing the battery’s dynamic and static properties. This method emphasizes characteristics, like open circuit voltage, and internal resistances sidestepping the intricate internal electrochemical examinations needed in alternative models [
24,
25]. The ECM distinguishes from electrochemical and data-driven models by offering distinct advantages: it is flexible in several battery types, can be represented mathematically, and its parameters are easier to identify than for other models [
26]. The ECM is categorized into two main types: fractional order models and integer order models [
27]. Integer order models encompass various configurations, including the Rint model [
28], the Thevenin model [
29], the Partnership for a New Generation of Vehicle (PNGV) model [
30], and multi-order models [
31].
Different studies have systematically explored parameter identification for lithium-ion batteries, with the different optimization methodologies broadly categorized into four categories [
32]. The first category is meta-heuristic optimization methods, such as the genetic algorithm and particle swarm optimization, which have been widely used for the identification of parameters in battery modeling due to their flexibility and robustness. However, these methods require high levels of computational power and, in most cases, their convergence rate is comparatively slow [
33,
34]. In contrast, least squares methods are preferred due to their simplicity, efficiency, and fast convergence, which is suited for real-time applications [
35]. The second category is least squares methods, which include both linear and nonlinear approaches. This category is widely used due to their highly computationally efficient nature and ease of implementation [
35]. These techniques are very useful when the rapid approximation of parameters is required, for example in real-time systems monitoring and control [
36,
37]. First-order ECMs with hysteresis are developed in [
38], utilizing the Levenberg–Marquardt algorithm for parameter identification. Similarly, a first-order ECM using recursive least squares (RLS) and recursive total least squares (RTLS) was developed in [
39] to enhance the performance of battery ECM parameter identification. Meanwhile, the work in [
36] investigated a second-order ECM model, introducing a novel variable recursive least squares (VRLS) algorithm, and compared it with RLS and adaptive forgetting factor recursive least squares (AFFRLS) methods. In their study, their findings highlighted that VRLS offered a high accuracy, compared to other methods, and further recommended to integrate VRLS with advanced algorithms to enhance the evaluation of battery state the of health/charge. In addition, the work in [
40] utilized a very efficient RLS algorithm to obtain battery measurement outliers, which also demonstrated its applicability in the real world [
40]. The third category is analytical equations, which present a direct and mathematically precise approach for parameter estimation, as they provide a set of equations based on the fundamentals of the physical and chemical properties of the battery. This method is particularly valuable in theoretical studies and detailed computer modeling, since it imposes a high demand on a understanding of the batteries’ operation. It assists the researchers with fine-tuning and managing the various variables in an accurate manner, thereby enabling the researchers to gain insights into batteries’ behaviors under various circumstances [
41,
42]. The fourth, and last, category is the Kalman filter-based algorithm; this category is effectively capable of tracking the battery system’s dynamic state under an uncertainty condition. They are suitable for real-time prediction due to their fast response when updating the new set of data, which allows them to be employed in electric vehicle batteries, specifically for estimating the state of charge [
43,
44]. The following studies utilized the Kalman filter for parameter identification: in [
45], the authors described an approach to estimate the lithium-ion battery temperatures using an electro-thermal model and an extended Kalman filter instead of additional sensors. The method’s effectiveness and feasibility were validated through both simulations and experimental tests. The work in [
46] presented a reduced-order model of an electrochemical battery for online control systems, as this method integrated frameworks of porous electrodes and concentrated-solution theory.
A sigma-point Kalman filter was used to manage inaccuracies, accurately predicting internal variables, voltage, and SOC across various temperatures and operational states. In [
47], an adaptive unscented Kalman filter is developed using an extended single-particle model to estimate lithium-ion battery states beyond state of charge, including concentrations and potentials. This approach, validated both experimentally and numerically, is crucial for enhancing safety and managing degradation in real-time battery management systems.
In this work, we propose a new framework for battery modeling and parameter identification using hybrid optimization approach. This framework has been verified on INR 18650-20R Battery. The main contributions of this study are summarized as follows:
We developed and implemented a new robust framework for model validation and parameter identification for lithium-ion batteries, leveraging a hybrid optimization approach that combines the Gauss–Newton algorithm and gradient descent technique, the so-called Levenberg–Marquardt algorithm.
This framework effectively balances the precision of Gauss–Newton with the robustness of gradient descent, making it particularly valuable for parameter identification problems.
This framework has been verified using experimental measurements on the INR 18650-20R battery, conducted by the Center for Advanced Life Cycle Engineering (CALCE) battery group at the University of Maryland.
This work presented a comprehensive comparative study between various types of models, specifically first-, second-, and third-order models.
The remainder of this article is organized as follows:
Section 2 provides a brief theoretical overview of battery modeling and parameterization. The proposed methodology is outlined in
Section 3.
Section 4 details the experimental methodology. A summary of the main numerical results is presented in
Section 5. Finally, the conclusions are drawn in
Section 6.
2. Battery Modeling
To ensure the stability and accuracy of lithium-ion battery models and enhance battery management systems performance, it is essential to accurately predict battery behavior under various operating conditions by establishing mathematical relationships among the characteristics of the batteries parameters, comprising capacitance, internal resistance, open-circuit voltage (OCV), and SOC [
48]. To facilitate a better understanding of this model, it is essential to recognize that the ECM fundamentally characterizes a battery by employing a combination of electrical components that simulate its behavior. The battery can be conceptualized as a complex system, where elements such as resistors and capacitors interact to represent the charging and discharging processes. By accurately modeling these interactions, the ECM enables the prediction of battery performance under varying conditions, which is critical for the optimization of battery management systems in practical applications. In this study, we employ the N-order Thevenin RC equivalent circuit model depicted in
Figure 1, which includes an OCV, a series resistance (
), and a parallel
to
network to capture transient responses. The variable
n represents the number of parallel RC branches, considering the order of the ECM [
49,
50].
The proposed approach in this work involves expressing the model parameters as functions of the SOC to capture the dynamic characteristics of the battery. Three battery models were established and tested in this work, namely the first-order model, the second-order model, and the third-order model. The first-order model is a simple representation, while the second- and third-order models have more RC branches to characterize the transient response. To find the dependencies of SOC and model parameters, experimental data are gathered, which are then used to parameterize the models [
51]. In this case, when comparing these models, the goal is to identify a model that balances complexity and accuracy, providing valuable insights for the development and enhancement of battery management systems and then reflecting on the measurement of the SOC and SOH [
52].
When analyzing the electrical behavior of the ECM of a battery, we apply Kirchhoff’s laws to derive the fundamental equations. The following are the basic equations for the voltage and currents and the internal parameters of the battery. Therefore, the total voltage
across the battery is given by [
53], as follows:
where OCV represents the open-circuit voltage of the battery,
denotes the passing current in the circuit,
represents the series resistance, and
refers to the voltage across the parallel
i-th RC branch. The voltage (
) across the capacitor (
) in each parallel
i-th RC branch changes over time, as shown in the following equation:
where
is the initial voltage across the capacitor at
, and
, where
represents the time constant for the parallel
i-th RC branch. To capture the transient response of the battery, first-order, second-order, and third-order models were developed. Each model has a different number of RC branches, which provide different levels of accuracy when representing the battery’s dynamics [
48,
51,
53,
54]. The following equations govern the three types of ECMs for N, ranging from one to three, as follows:
First-Order Model (
):
Second-Order Model (
):
Third-Order Model (
):
where
,
, and
, which represent time constants for different parallel RC branches. These time constants, along with the resistors
,
,
, and
, are unknown parameter values. By using the LMA and experimental data provided by the CALCE group, the values of these parameters are determined. The battery is then dynamically simulated under various operating conditions, revealing insights into its efficiency and performance. The obtained parameters are validated on a different set of data to ensure their accuracy. These details will be discussed in more depth in the following section. Incorporating the SOC dependency into the ECM, particularly within the Thevenin model, provides a more accurate representation of the battery’s behavior in real-world applications.
5. Results and Discussion
In this research, we conducted a quantitative evaluation of the proposed approach on real-world cases to demonstrate its capability to calibrate model parameters and validate the effectiveness of the proposed algorithm. Specifically, the performance of the LMA was assessed by applying it to first-order, second-order, and third-order battery models.
After verifying the battery model, it became evident that identifying and optimizing the model parameters was necessary. During the identification phase, only discharging measurements were used. The first-order model demonstrated slightly higher error metrics, with an RMSE of
and an MAE of
, yet still maintained a commendable level of accuracy, as shown in
Figure 7. The second-order model achieved an RMSE of
and an MAE of
, as shown in
Figure 8, reflecting a performance that, while better than that of the first-order model, was marginally inferior to the third-order model. The third-order model demonstrated superior performance with an RMSE of
and an MAE of
, as shown in
Figure 9. This indicates a high accuracy in fitting the training data. In addition to the accuracy metrics, we also analyzed the computational efficiency of the models to provide a comprehensive evaluation of their performance. The time required to estimate the unknown parameters varied significantly with model complexity. Specifically, the first-order model required 182 min for parameter estimation, the second-order model required 245 min, and the third-order model required 593 min. This increase in computation time with model complexity underscores the trade-off between accuracy and computational efficiency; while the third-order model offered the highest accuracy, it also demanded the most computational resources. This trade-off is crucial for applications where computational resources are limited or when real-time performance is essential.
The specific parameter values for the first, second, and third-order models are presented in
Table 2,
Table 3, and
Table 4, respectively, providing a comprehensive overview of their characteristics and performance metrics.
To verify the performance of the optimized battery model, it was evaluated on unseen data (charging measurements) to assess their generalization capabilities. The first-order model (
Figure 10) had an RMSE of
and an MAE of
, suggesting it had the highest error among the three models during verification. The second-order model (
Figure 11) performed better than the first-order model, with an RMSE of
and an MAE of
, but it was still not as accurate as the third-order model. The third-order model (
Figure 12) showed an RMSE of
and an MAE of
, indicating a slight degradation in performance compared to the identification phase. During the validation phase, we observed a slight increase in both the RMSE and MAE compared to the identification phase. This increase, although slight, can be attributed to the differences between the charging and discharging processes, which introduce varying dynamic behaviors in the battery. Specifically, while the discharging data were used to optimize the model parameters, the charging data were employed to validate the model, naturally resulting in a slight increase in errors due to the distinct operational characteristics of charging. Despite this, the model maintained a high level of accuracy, showcasing its robustness and ability to generalize across different phases of battery operation. The results of the validation phase, including the observed RMSE and MAE values, are summarized in
Table 5. This comprehensive analysis highlights the algorithm’s adaptability and precision when handling complex modeling challenges.