Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Improving accuracy in state of health estimation for lithium batteries using gradient-based optimization: Case study in electric vehicle applications

Abstract

Significant improvements in battery performance, cost reduction, and energy density have been made since the advancements of lithium-ion batteries. These advancements have accelerated the development of electric vehicles (EVs). The safety and effectiveness of EVs depend on accurate measurement and prediction of the state of health (SOH) of lithium-ion batteries; however, this process is uncertain. In this study, our primary goal is to enhance the accuracy of SOH estimation by reducing uncertainties in state of charge (SOC) estimation and measurements. To achieve this, we propose a novel method that utilizes the gradient-based optimizer (GBO) to evaluate the SOH of lithium batteries. The GBO minimizes a cost with the aim of selecting the optimal candidate for updating the SOH through a memory-fading forgetting factor. We evaluated our method against four robust algorithms, namely particle swarm optimization-least square support vector regression (PSO-LSSV), BCRLS-multiple weighted dual extended Kalman filtering (BCRLS-MWDEKF), Total least square (TLS), and approximate weighted total least squares (AWTLS) in hybrid electric vehicle (HEV) and electric vehicle (EV) applications. Our method consistently outperformed the alternatives, with the GBO achieving the lowest maximum error. In EV scenarios, GBO exhibited maximum errors ranging from 0.65% to 1.57% and mean errors ranging from 0.21% to 0.57%. Similarly, in HEV scenarios, GBO demonstrated maximum errors ranging from 0.81% to 3.21% and mean errors ranging from 0.39% to 1.03%. Furthermore, our method showcased superior predictive performance, with low values for mean squared error (MSE) (<1.8130e-04), root mean squared error (RMSE) (<1.35%), and mean absolute percentage error (MAPE) (<1.4).

1. Introduction

Electric vehicles are widely recognized as a crucial solution to combat environmental pollution and tackle energy shortages. With the ability to use various sources of energy and multiple modes, EVs can conserve energy and improve the environment [13]. Lithium-ion batteries are widely used as power sources in EVs due to their efficiency. However, their performance degrades over time due to aging, which reduces their energy storage and power delivery capacity. Therefore, evaluating the state of health (SOH) of the battery is crucial to ensure a safe and enjoyable driving experience [4]. Once the SOH of the battery reaches the preset limit, it must be replaced with a new one to maintain optimal EV performance.

The most commonly accepted metrics regarding SOH include cell capacity and battery internal resistance, reflecting the energetic capacity and power capacity, respectively [5,6]. Based on the survey of internal ageing strategies of different kinds of batteries, the leakage of battery lithium storage, breakdown of effective materials, and physical alterations are the most popular reasons for the capacity loss, the resistance rise is primarily caused by the solid electrolyte interface (SEI) layer growth [79]. The battery testing procedure manuals state that when the battery capacity falls below 80% of the original nominal rating within a particular test procedure, the battery is considered unsuitable for the vehicle application and should be replaced [10]. However, in some instances, the increase in internal resistance leading to a decrease in power will obviously lead to the failure of the battery in advance. Therefore, it is crucial to consider these two aspects combined for EVs to function normally. Battery characteristics that change significantly during ageing may also point to the growing potential for battery failure, like charge curves, OCV (open circuit voltage) charts, etc. Many tests have been performed in the laboratory to disclose the ageing pattern of such health-based metrics [11,12].

Various approaches to assess the SOH of the batteries have been developed, and they may be further broken down into the main following groups: Physical models, empiric models, incremental differential voltage/current analysis (ICA/DVA), and data-based techniques [7,8]. The physical methods rely upon mathematically based models describing the internal reaction characteristics of the battery within the electrodes and on their surfaces. They have high precision [9], yet they often encounter significant difficulties in practical implementations due to the model complexity and the identification of the parameters [10]. The empirical models utilize adaptive algorithms that use empirical battery models like the equivalent circuit model [13,14] and the electrochemically reduced model [8]. Such models can be readily implemented for online SOH surveillance, but the development of the algorithm often needs extensive experiment testing and debugging to achieve proper precision [8]. An alternative approach to empirical modeling is to utilize a small set of preset experimental data to enhance the model, but their precision is restricted to conditions similar to those of the experimental data [15].

As battery technology advances, data-driven methods are receiving increased attention thanks to their model-free features [16]. These techniques map out the external properties of the battery to its current capacity (SOH) drop, or using previous capacities and global degradation as input components. Numerous methods have been developed using data-driven methods, such as: Support vector machines [17,18], Bayesian networks [19,20], autoregressive models [21], and Gaussian process regression (GPR) [22]. Despite their nonlinear properties and high estimation accuracy, data-driven methods need access to top-quality data sets for training purposes. For example, Xie et al [23] used a deep learning-based method for estimating the SOH of a lithium-ion battery using a dataset that included multiple battery types and operating conditions. The results showed that the proposed method had high accuracy in estimating the battery SOH but required large amounts of high-quality data for training. Similarly, the paper [24] proposed a hybrid approach that combined data-driven and physics-based models to estimate the SOH of a lithium-ion battery. The method achieved high accuracy in estimating the battery SOH but required top quality data for training and validation.

The paper in [25] employs data-driven methods and introduces an aging feature extraction technique based on an electrochemical model (EM). This method extracts internal health features (IHFs) associated with battery degradation, such as charge transfer resistance and solid phase diffusion coefficient. External health features (EHFs) are also derived from voltage and temperature curves. The selected IHFs and multi-stage EHFs are used to enhance SOH estimation using machine learning algorithms, demonstrating improved accuracy across various scenarios and battery charge-discharge modes. This approach bridges the gap between physical and data-driven models while boosting SOH estimation precision. The study [26] introduces an improved radial basis function neural network (IRBFNN). Unlike traditional neural networks, this IRBFNN combines a linear polynomial to capture long-term battery capacity trends and non-linear transformations in the hidden layers for local capacity changes. The network parameters are optimized using an improved gray wolf optimization (IGWO) algorithm. Four features extracted during partial constant current charging are used as inputs. Experimental results on NASA and CALCE datasets demonstrate that the IRBFNN-based method accurately estimates SOH with maximum errors within ±4%. In contrast, the paper [27] employs a combination of data preprocessing techniques and a CNN-Transformer framework. The data preprocessing steps involve feature selection using the Pearson correlation coefficient (PCC), the application of principal component analysis (PCA) to reduce computational complexity, and feature scaling through min-max normalization for faster training. Subsequently, the CNN-Transformer model is applied to the preprocessed data, and training and testing are conducted using the NASA battery dataset. The results underscore the effectiveness of this approach, with absolute estimation errors staying within 1% and performance metrics like mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean square error (RMSE) all constrained within 0.55%. By harnessing the strengths of both CNNs and Transformers, this model proves proficient in capturing long-term dependencies and providing precise and stable SOH estimations for lithium-ion batteries. The authors in [28] developed a novel hybrid neural network model with attention mechanisms. The model, named CNN-CBAM-LSTM, combines convolution neural network (CNN), convolutional block attention module (CBAM), and long short-term memory (LSTM) neural network components. This innovative approach leverages partial charging voltage curves as direct inputs, achieving high-accuracy SOH estimation. The CBAM’s sequential attention structure enhances CNN’s ability to extract relevant battery health features while reducing the impact of noise in raw data. Additionally, the study demonstrates the model’s effectiveness under various operational conditions and data sampling modes. Transfer learning with fine-tuning is employed to adapt the model to different battery operating scenarios. Validation on two public datasets yields impressive results, with root mean square errors and mean absolute errors for the best estimates at 0.17% and 0.14%, respectively.

One major challenge facing data-driven models for estimating the SOH in practical conditions is the need for training data that includes information on battery capacity and health features. However, obtaining such data can be difficult in electric vehicles (EVs) as the battery is rarely fully cycled and its capacity status is often unknown. This lack of available data can limit the accuracy and effectiveness of data-driven approaches for estimating SOH in real-world scenarios. Overall, while data-driven methods have shown promising results in estimating the battery SOH, careful consideration must be given to the quality and quantity of data used for training and validation.

Most methods for estimating the capacity and, in turn, the battery SOH rely on the following equation: (1)

Where Q refers to the battery capacity, and i(t) is the battery current, η is the efficiency factor.

The linear structure of yj = Qxj is clear, and Q can be estimated using a regression technique. The only requirement is to determine values for "xj" and "yj". The challenge arises from the presence of noise in yj and xj. Therefore, the equation becomes: (yj -Δ yj) = Q(xj -Δxj). Neglecting these uncertainties can lead to inaccurate SOH estimates and, consequently, affect the battery’s overall performance. Therefore, it is crucial to consider both sources of noise when estimating the SOH of a battery.

The conventional linear regression technique (least squares) is problematic as both the accumulated current yj and the difference in the state of charge (SOC) values xj are prone to noise from sensors or estimation. This approach assumes that only the measurements yj have noise, but the independent variable xj is noise-free. However, in reality, both the SOC estimates and integrated current have noise. As a result, using the standard least squares linear regression method yields a biased and inaccurate evaluation of battery capacity because of the noise on the xj variable [29].

Plett’s work on minimizing noise in battery capacity estimation was considered a major contribution, which was documented in publications [29,30]. Plett proposed four least square algorithms that could estimate battery capacity, and consequently, SOH while taking into account noise on both the xj and yj axes. In the same vein, in previous research [31], we employed the Sunflower Optimization Algorithm, which has shown promising results in achieving the same goal. Our study found that the Sunflower Optimization Algorithm could estimate battery capacity (SOH) while accounting for noise, resulting in accurate and unbiased estimates of battery capacity.

Paper [32] focuses on enhancing battery capacity estimation (SOH) accuracy by introducing an innovative approach leveraging the bald eagle search algorithm (BES) to mitigate uncertainties in state of charge (SOC) estimation. BES strategically navigates the search space, minimizing a designated cost function, and incorporates a memory-forgetting factor for real-time cell capacity updates. The study’s distinctiveness lies in integrating BES into battery capacity optimization and including a memory-forgetting factor. Validation with NASA’s Prognostic Data and various battery scenarios demonstrates BES’s consistent outperformance of four aggressive algorithms, with a peak error rate of only 1.06%. This approach also highlights the importance of reducing measurement noise and SOC prediction errors, suggesting using sigma-point Kalman filters (SPKF) to enhance SOC estimation precision while avoiding circular dependencies. The study presented in [33] is primarily concerned with achieving precise battery capacity (SOH) estimation, which is crucial for efficient battery management systems, especially in predicting potential failures via the state of health (SOH) metric. This research introduces a novel algorithm, Enhanced Self-Organization Maps (EASOM), to minimize uncertainties associated with state of charge (SOC) estimation and measurements. EASOM employs a strategic approach to identify the most suitable candidate by utilizing an objective function and incorporates a fading memory forgetting factor to improve battery capacity estimation. Validation through six tests conducted in the context of hybrid electric vehicles demonstrates EASOM’s outstanding performance, with a maximum error rate of only 1.25% and consistently low predictive performance metrics below 1%. The article [34] introduces a semi-supervised learning (SSL) approach that leverages abundant unlabeled charging data, which is often overlooked. The SSL method uses two regressors to map health indicators (HIs) to SOH, augmenting training samples by predicting pseudo-labels for unlabeled data. The results demonstrate remarkable improvement in SOH estimation accuracy, with an average root-mean-square error (RMSE) of only 0.55% for seven cells using labeled data from just one cell.

1.1. Objective of this research

In the realm of State of Health (SOH) estimation for lithium batteries, our research distinguishes itself from the studies discussed above in several ways. While many previous approaches predominantly focus on SOC estimation or utilize specific SOC-dependent algorithms, our primary objective is to enhance SOH estimation precision independently of any particular SOC estimation method. This independence is crucial, as certain SOC estimation methods can introduce circular dependencies between SOC and SOH, potentially leading to instability.

Coulomb counting, for instance, requires an accurate estimation of total capacity, which depends on the SOH, to estimate the SOC accurately. Therefore, using Coulomb counting with the proposed approach would result in unstable and circular dependencies. However, SOC estimation techniques that rely solely on voltage measurements are suitable. Our preferred approach is to employ methods based on the Kalman filter, especially the sigma-point Kalman filters (SPKF), which can optimally combine voltage and current data and are less sensitive to errors in the SOH estimate, resulting in accurate SOC estimates. Furthermore, we can use the nominal cell capacity as a static constant within the SPKF while calculating SOC estimates and yet achieve reliable results. Relevant sources for available SOC estimation approaches can be found in [3538].

To achieve this, we introduce a new approach for evaluating the SOH of lithium batteries, which employs a gradient-based optimizer (GBO). Our method uses GBO to minimize a specific cost function and select the best candidate for updating battery SOH with a memory fading forgetting factor. To evaluate the effectiveness of our approach, we test it in both hybrid electric vehicle (HEV) and electric vehicle (EV) applications. GBO does not impose constraints on the battery current and considers the noise present in SOC estimates. The algorithm utilizes the SOC and current data to compute an unbiased estimate of the SOH, effectively mitigating the impact of estimation and measurement noises.

With the early emergence of GBO and a thorough review of existing literature, our implementation of GBO represents the first known instance of its application for evaluating battery SOH. This innovative use of GBO highlights its potential as a powerful tool for accurately estimating battery degradation and optimizing battery performance.

The article’s main contributions could be resumed in the points below:

  • A novel recursive battery SOH estimator using the GBO approach is reported. For the evaluation, simulations of a pack of batteries in HEV and EV and applications were employed. The findings have demonstrated the robustness of the approach. Based on our literature review, we can confirm that this is the first attempt to estimate battery SOH employing GBO.
  • The GBO-based approach takes into consideration errors; this includes estimation noises in SOC and measurement noises as well.
  • GBO is compared against robust technics (PSO-LSSV (particle swarm optimization-least square support vector regression), BCRLS-MWDEKF (BCRLS-multiple weighted dual extended Kalman filtering), TLS (Total least square), AWTLS (approximate weighted total least squares)).

2. Problem definition and GBO algorithm

2.1. Problem definition

The SOH is expressed as: (2)

With Q as the actual capacity and Qn is the initial capacity defined by the manufacturer (K = 1/Qn).

In the other hand, the coulomb counting is expressed as: (3)

In the context of battery technology, η is commonly referred to as the coulombic counting coefficient, while SOC represents the state of charge and Q refers to the capacity of the battery. Additionally, i(t) is used to denote the battery current.

The linear equation Eq (4) appears when we rearrange Eq (3) and replace the capacity with SOH. Assuming we have both xj (ΔSOC) and yj (the accumulated amp hours) values, the SOH could be evaluated through a straightforward linear regression approach. The main complication is that yj and xj will always carry some noise. As a result, Eq (4) turns out to be: (yj -Δyj) = SOH (xj -Δxj).

(4)

In this paper, we implement the GOB algorithm to improve battery SOH. For this purpose, we need a specific cost function. We have adopted the cost function Eq (5), inspired by the one developed by G.Plett in [30]. We have used Eq (5) as a cost function, which allows us first to derive the most appropriate candidate for estimating the state of health, denoted SOHhat. Then, the SOHhat value is used via a memory forgetting factor to evaluate the SOH of the battery.

(5)

SOHhat is the estimated SOH. xj refers to the estimated ΔSOC over [t0, t1], the yj is the stored ampere hours across the same interval [t0, t1]. (σxj)2 and (σxj)2 are the variances on xj and yj axes respectively. The loss function is constrained by: (6)

SOHlow and SOHhigh are the min and max values of the SOH.

In this paper, we utilize the gradient-based optimizer (GBO) to estimate battery SOH by minimizing the loss function Eq (5). GBO is a high-performance algorithm known for its good exploration and convergence rate. It relies on two main operators: the gradient search rule (GSR) and the local escaping operator (LEO), which scan the search area ([SOHlow SOHhigh]). The GSR utilizes a gradient-based approach to improve search exploration and increase the rate of convergence to find the best positions in the search area. LEO allows GBO to break out of local optima. From the best-selected solutions, the optimal candidate (SOHhat) is chosen and used in evaluating the SOH via a forgetting factor. Furthermore, we will present a detailed explanation of the Gradient-based optimizer (GBO).

2.2. Gradient-based optimizer

The GBO is a search algorithm inspired by Newton’s gradient-based method [39]. This algorithm consists of two main operators: the gradient-based search rule (GSR) and the local escape operator (LEO), as well as a collection of vectors to scan the searching space. GSR employs the gradient approach to enhance the search pattern and accelerate the convergence rate to reach a better solution within the search area. GSR is described as: (7)

ν being a very small number within [0, 0.1]. xb and xwr represent the optimal and worst solutions, ε1 stands for a balance coefficient expressed as: (8) (9) with bmax and bmin as constants equal to 1.2 and 0.2, respectively, m being the actual iteration and M the number of total iterations. To improve the utilization of the area near xn, the direction of motion (DMV) is added as well, the DMV is defined as follows: (10) (11)

On this basis, the new agent location is formulated as: (12)

GBO employs LEO to skip local optima. The positions generated at the GBO are utilized in this stage; the pseudocode for the operation is shown below in Table 1.

Here, pr refers to the probability, and are solutions produced by GBO for m candidate and n optimizing variables, and are two solutions chosen randomly, f1 is a uniform number chosen randomly between 1 and -1, f2 is a uniform random number derived from a normal distribution with a zero mean and standard deviation 1. The rest of the parameters are set as: (13) (14)

u1, u2, and u3 represent a random number between 0 and 1. The algorithm procedure is depicted in Fig 1.

2.3 The proposed framework

A sketch of the overall framework can be viewed in Fig 2. The whole approach is split into two parts: pre-treatment and estimation.

Phase 1: In any data analysis process, the reliability and accuracy of the dataset are paramount. Therefore, clearing unreliable records is a critical phase involving cleaning the data to ensure its readiness for treatment. The process entails eliminating all potentially incorrect, overlapping, or erroneous entries from the dataset to guarantee its quality. The estimation of SOC is not the main focus of this study, and it is approached using a separate methodology to avoid circular dependencies with SOC. In this research, SOC estimation techniques relying solely on voltage measurements are employed, specifically the sigma-point Kalman filters (SPKF). By effectively incorporating current and voltage data, SPKF minimizes errors in capacity estimation and enables accurate SOC estimation. Additionally, other techniques for SOC prediction, as outlined in [3538], can also be explored. Afterward, the net resultant data are evenly distributed to ensure unbiased results before calculating the xj and yj vectors.

Phase 2: The GBO is deployed to assess the SOH. Initially, the algorithm begins by defining the parameters of GBO. With each subsequent xj and yj value, GBO proceeds to locate the highest candidate (SOHhat) in an effort to keep Eq (5) (the loss function) to a minimum. We embedded a forgetting factor γ in Eq (15) (typically ranging from 0.9 to 1 [4044]) to compute the SOHest (estimated health state), γ makes sure that GBO converges to the true value rapidly.

(15)

To control the search space effectively, we have implemented an additional step in our methodology. This step involves modifying the parameter boundaries SOHlow and SOHhigh whenever the error exceeds a predetermined threshold. To accomplish this, we utilize two equations to adjust the parameter boundaries as necessary: (16) (17)

3. Hybrid and electric vehicle tests

We used a selection of different scenarios elaborated by Plett [29,30] to assess GBO HEV and EV tests), we also compare GBO against (PSO-LSSV [45], BCRLS-MWDEK [46], TLS and AWTLS [29,30]) in term of SOH estimation performance.

Under the first set of simulations, scenarios of hybrid electric vehicles are considered. From a SOH estimation perspective, these applications are generally characterized by a narrow SOC window. For the following tests, it is assumed that the battery has a capacity of 100 Ah. Table 2 displays the values of GBO parameters for the HEV case. The xj (ΔSOC) and yj (∫ i: the accumulated current) are produced as discussed below.

The purpose of these tests is to evaluate the performance of the algorithms in terms of the SOH prediction for hybrid electric vehicles applications. The test is focused on HEV that operate within a SOC range of 60% to 40%, which is a common range for these vehicles. During the process of updating the SOH, changes in SOC can vary within +0.2 or -0.2. This means that the battery’s charge level can fluctuate by up to 20% during the test [29,30].

The primary objective of the test is to assess the effectiveness of algorithms in monitoring the changes in SOH. SOH is an important parameter for electric vehicles, as it determines the battery’s capacity and overall health. The changes in SOH during the test follow a slope of -0.005/Qn, -0.01/Qn, -0.015/Qn, -0.02/Qn, and -0.025/Qn, corresponding to a decrease in SOH by 1.5%, 3%, 4.5%, 6%, and 7.5% (every 300 iterations as depicted in Fig 3), respectively. This is considered quite an aggressive slope, as it represents a significant decrease in the battery’s SOH over a short period [29,30].

4. Electric vehicle tests

In this section, we will examine the remaining experiments, which are designed to simulate batteries for PHEV and EV operations. These scenarios are more challenging, as they involve larger cell capacities and higher SOC values. In all cases, we assume a battery with a capacity (Q) of 300 Ah, a maximum rate of ±5Qnom, and a 10-bit resolution current sensor [29,30]. GBO parameters for the EV case are given in Table 3.

The experiments involve continuously updating the battery’s SOH during vehicle operation. We express the variable mi as a lognormal random quantity, which generates random updates for the xj and yj variables. This approach produces a probability density function (as shown in Fig 4) that is designed to provide satisfactory drive durations across a range of driving conditions and behaviors.

The driving cycle in these experiments utilizes a significant portion of the battery pack, which requires an update interval that is not periodic. To achieve this, we establish a SOC interval of ±80%, with xj (ΔSOC) being a variable that randomly varies between -0.8 and +0.8 (as depicted in Fig 5). The curve of the SOH has a gradient of -0.01/Qn, -0.02/Qn, -0.03/Qn, -0.04/Qn, and -0.05/Qn (where Qn = 300 Ah), which means that the SOH is declining by 1%, 2%, 3%, 4%, and 5% (every 300 iterations), respectively [29,30].

thumbnail
Fig 5. xj(ΔSOC), and yj(accumulated current) variables for HEV tests.

https://doi.org/10.1371/journal.pone.0293753.g005

5. Results and discussion

To comprehensively assess the performance of the different algorithms in estimating the State of Health (SOH) of batteries in both Hybrid Electric Vehicle (HEV) and Electric Vehicle (EV) scenarios, we conducted an in-depth analysis of the Absolute Percentage Error (APE) expressed in percentage. These findings are graphically presented in Figs 6 and 7 alongside the SOH estimates generated by all the algorithms.

thumbnail
Fig 6. SOH estimation and APE in percent.

(a, b) # HEV1, (c, d) # HEV2, (e, f) # HEV3, (g, h) # HEV4, (i, j) # HEV5.

https://doi.org/10.1371/journal.pone.0293753.g006

thumbnail
Fig 7. SOH estimation and APE in percent.

(a, b) # EV1, (c, d) # EV2, (e, f) # EV3, (g, h) # EV4, (i, j) # EV5.

https://doi.org/10.1371/journal.pone.0293753.g007

(18)

Upon meticulous examination, it becomes evident that the Gradient-Based Optimizer (GBO) algorithm consistently exhibits a lower APE (as defined in Eq (18)) when compared to the other methods in both HEV and EV scenarios (Figs 6 and 7). This reduction in error is particularly noteworthy, given the challenging nature of the test scenarios.

One of the primary challenges in these scenarios is the wide and aggressive variation in the State of Charge (SOC) level. In HEV scenarios, SOC fluctuates erratically within a range of ±40%, while in EV scenarios, it experiences even more substantial fluctuations, ranging from ±80%. This erratic SOC behavior significantly contributes to the high errors observed across all methods (Figs 6B, 6D, 6F, 6H, 6J, 7B, 7D, 7F, 7H and 7J), as outlined in Table 4. Moreover, these fluctuations impose substantial obstacles on the convergence rate of all the algorithms.

In both HEV and EV scenarios, the battery’s SOH undergoes a steep decline following a gradient ranging from -0.005/Qn to -0.025/Qn for HEV and -0.01/Qn to -0.05/Qn for EV. This aggressive and rapid SOH degradation is both unusual and challenging.

Despite the formidable challenges posed by the unpredictable and aggressive nature of the tests, the GBO algorithm consistently outperforms other methods. It manages to maintain an overall error rate that is lower than that of its counterparts. This exceptional performance underscores the GBO algorithm’s capacity to deliver precise predictions even in complex, uncertain, and challenging environments.

Our detailed analysis, as presented in Table 4, reveals further insights into the algorithms’ performance in HEV scenarios. GBO emerges as the top-performing method, with maximum errors ranging between 0.82% and 3.21%. The second-best method, PSO-LSSV, records maximum errors within the range of 2.27% to 9.8%. Conversely, AWTLS, TLS, and BCRLS-MWDEKF consistently exhibit the highest maximum errors across all scenarios.

In terms of mean errors in HEV scenarios, both GBO and PSO-LSSV consistently outperform other algorithms, maintaining lower mean errors. AWTLS, TLS, and BCRLS-MWDEKF exhibit mean errors that are generally higher than those of GBO and PSO-LSSV across all scenarios.

Similarly, in EV scenarios, GBO stands out with the lowest maximum errors, ranging from 0.65% to 1.57%. PSO-LSSV follows closely with maximum errors ranging from 2.20% to 2.28%. AWTLS, TLS, and BCRLS-MWDEKF consistently show higher maximum errors compared to GBO and PSO-LSSV.

The data presented in Table 4 underscores GBO’s ability to accurately capture the intricate properties of online SOH changes during battery operation. In comparison, GBO surpasses the other techniques, demonstrating its remarkable potential for precise SOH predictions across various scenarios.

In conclusion, the results validate the superiority of the GBO algorithm over the other methods in accurately predicting battery SOH in both HEV and EV scenarios, even in the face of challenging and erratic operating conditions. These findings further solidify GBO’s standing as a reliable tool with extensive applications, particularly in the realms of Hybrid Electric Vehicles (HEVs) and Electric Vehicles (EVs), where precise SOH estimation is crucial. Additionally, GBO’s versatility, with its compatibility across multiple programming languages, positions it as an ideal choice for a wide array of applications.

To evaluate the efficacy of the algorithms, we assess their predictive capability using three variables: Mean Squared Error (MSE), Mean Absolute Percentage Error (MAPE), and Root Mean Squared Error (RMSE). These allow for a comprehensive assessment of the algorithms’ performance, providing valuable insights into how accurately they predict battery SOH: (19) (20) (21) n: the actual number of cycles, SOHest and SOHtrue: the estimated and actual SOH of the battery.

The results presented in Table 5 demonstrate the superiority of the GBO algorithm over the TLS methods in accurately predicting the battery SOH in both Hybrid Electric Vehicle (HEV) and Electric Vehicle (EV) scenarios:

In the HEV scenarios (#HEV1 to #HEV5), the Gradient-Based Optimizer (GBO) consistently stands out as the top-performing algorithm. It exhibits the lowest RMSE, which ranges from 0.44% to 1.35%, indicating its remarkable accuracy in estimating battery SOH. Comparatively, the other algorithms, including AWTLS, TLS, BCRLS-MWDEKF, and PSO-LSSV, show higher RMSE values, with the highest reaching 2.58%.

The MAPE values follow a similar pattern, with GBO consistently maintaining the lowest error percentages, ranging from 0.43% to 1.3912%. In contrast, the other algorithms exhibit higher MAPE values, with the highest reaching 3.2591%.

The MSE values reinforce GBO’s superior performance, consistently recording the lowest values across all HEV scenarios. This underscores GBO’s ability to provide accurate and precise estimates of battery SOH in these challenging scenarios.

In the EV scenarios (#EV1 to #EV5), GBO continues to exhibit exceptional performance. It consistently achieves the lowest RMSE values, ranging from 0.25% to 0.70%. This indicates its consistent accuracy in estimating battery SOH in EV scenarios.

The MAPE values in the EV scenarios further support GBO’s dominance, with the lowest error percentages consistently attributed to GBO, ranging from 0.19% to 0.93%. In contrast, the other algorithms exhibit higher MAPE values, with the highest reaching 0.93%.

Once again, the MSE values align with the trend observed in the RMSE and MAPE, with GBO consistently recording the lowest MSE values across all EV scenarios.

The numerical results presented in Table 5 consistently demonstrate that the GBO algorithm outperforms AWTLS, TLS, BCRLS-MWDEKF, and PSO-LSSV in accurately estimating battery SOH across a diverse range of scenarios. GBO’s ability to consistently achieve lower RMSE, MAPE, and MSE values highlights its superior predictive capabilities, even in challenging and fluctuating environments.

These results reinforce the conclusion that GBO is a robust and reliable algorithm for battery SOH estimation, with the potential for a wide range of applications, particularly in the context of Hybrid Electric Vehicles (HEVs) and Electric Vehicles (EVs), where precise SOH estimation is critical. GBO’s consistent accuracy and reliability position it as a valuable tool for enhancing battery health monitoring and management in real-world scenarios. Figs 8 and 9 illustrate the MAPE and RMSE values of all the methods under consideration. These figures demonstrate the remarkable accuracy of the GBO algorithm in both scenarios, with the other methods falling short in comparison.

The boxplots in Figs 10 and 11 illustrate the estimated SOH of the battery during all tests for every algorithm. In each boxplot, the red horizontal line denotes the mean value of the SOH for each approach. The distance from the top edge to the bottom edge of the box is defined as the Interquartile Range (IQR). Values that lie outside the boxplot’s whiskers (the top and bottom lines) are considered outliers. The boxplots display the variability and spread of the data for each method, providing further insight into their performance and accuracy.

thumbnail
Fig 10. Boxplots in HEV tests.

(a) #HEV1, (b) #HEV2, (c) #HEV3, (d) #HEV4, (e) #HEV5.

https://doi.org/10.1371/journal.pone.0293753.g010

thumbnail
Fig 11. Boxplots in EV tests.

(a) #EV1, (b) #EV2, (c) #EV3, (d) #EV4, (e) #EV5.

https://doi.org/10.1371/journal.pone.0293753.g011

The GBO algorithm had the lowest spread, with the interquartile range being considerably lower than the other methods. On the contrary, the compared methods exhibited a wider spread, as evidenced by their significantly larger interquartile ranges. This suggests a greater degree of variability which could be attributed to their lower accuracy compared to the GBO algorithm.

The boxplots illustrate that all algorithms, without exception, exhibited no outliers in all tests, which indicates a higher level of accuracy in estimating the SOH. This indicates that the overall estimated SOH points of the GBO algorithm were close to the median and thus, closer to the actual true SOH.

According to the boxplots, the GBO algorithm had a relatively small difference between the 25th and 75th percentile. Tables 4 and 5 also demonstrate that GBO had small errors, with nearly 75% of the points being close to the true SOH. This indicates the precision of the algorithm, providing further evidence of its capacity for accurate updates.

As is shown in the findings above, across all tests, the GBO algorithm exhibited high performance in prediction, which could be anticipated given its working principle:

The gradient-based optimizer (GBO) algorithm is designed to efficiently navigate the search space and obtain accurate solutions using the gradient-based search rule (GSR) and local escape operator (LEO). GSR enhances the rate of convergence towards a better solution by optimizing the search pattern. In each cycle, GBO searches for the best candidate (SOHhat) based on the current xj (ΔSOC) and yj (accumulated current) values, minimizing the loss function shown in Eq (5).

GBO utilizes various parameters, such as population number (N), number of iterations (Maxgen), and forgetting factor (γ), to reach the actual value faster and with less effort. Dynamically varying the search space [SOHlow SOHhigh] is another factor that aids in achieving this goal. GBO’s efficient and reliable operating principle has undergone extensive testing and has demonstrated strong prediction performance in all scenarios.

By considering the intricate characteristics of a battery’s components, such as its capacity and voltage, the GBO algorithm has effectively tracked the SOH value of a battery cell during charging and discharging. Our approach has yielded highly accurate predictions.

The results of our study demonstrate that GBO is a potent tool with great potential for various applications, including both Hybrid Electric Vehicle (HEV) and Electric Vehicle (EV) scenarios. Additionally, GBO’s flexibility in being able to be implemented in multiple programming languages makes it an ideal choice for a wide range of applications.

6. Computation speed

In this assessment, we conducted a comparison between the calculation efficiency of the GBO algorithm and the compared algorithms. MATLAB software was utilized for the experiments, employing a laptop equipped with an i7-6700HQ CPU @ 2.60GHz and 8 GB of RAM. The execution of the algorithms allowed us to record the average runtime for a single cycle, and the summarized outcomes can be found in Table 6.

For the HEV scenarios, the GBO algorithm performs quite well with an average cycle duration of approximately 1.98 ms. It is only slightly slower than AWTLS and TLS, which have average cycle durations of 1.72 ms. GBO’s relatively fast speed is notable, considering its accuracy compared to the other algorithms (refer to Tables 4 and 5).

For the EV scenarios, AWTLS and TLS continue to demonstrate the fastest calculation speeds with average cycle durations of approximately 1.16 ms. GBO, on the other hand, has an average cycle duration of around 1.79 ms. Although GBO’s performance is still respectable, it is slower than AWTLS and TLS in this context as well.

Overall, while GBO shows competitive performance in terms of speed calculation, there is an opportunity to enhance its efficiency further. By refining the algorithm’s approach or making optimizations, it may be possible to achieve faster calculation speeds without sacrificing accuracy. This could lead to improved performance and make GBO an even more compelling choice for hybrid electric vehicles and electric vehicles.

7. Limitations and future work

While our study has yielded promising results in enhancing battery state of health estimation accuracy, there are certain limitations that warrant acknowledgment. Firstly, our approach relies on specific datasets, and the generalization of our findings to diverse battery chemistries, operating conditions, road conditions, and environmental conditions may require further investigation.Secondly, the proposed algorithm’s computational complexity, while manageable, may benefit from optimization techniques to enhance real-time applicability.

In terms of future work, we intend to explore other dimensions of the suggested framework. As a starting point, we aim to verify the effectiveness of the method using other datasets related to the battery’s state of health and the driving patterns of electric vehicles and plug-in hybrid electric vehicles (EV/PHEVs). We’re also keen to investigate different types of battery chemistry.

In addition, we are keen to evaluate the algorithm’s ability to predict battery’s SOH while considering external factors such as temperature, depth of discharge and cell balancing. This can be achieved by examining battery ageing datasets that encapsulate these variables. We would also like to test the robustness of our approach under specific conditions, for example in the event of noisy input data or significant errors on one of the axes.

Our motivation also extends to improving the algorithm itself. This includes optimizing the parameters of the gradient-based optimizer (GBO) to improve accuracy and speed up the estimation process. Our aim is to find the ideal balance between accuracy and computational speed, while exploring other cost functions.

Last but not least, we are eager to implement and evaluate the framework in an on-board system. This is an essential part of our project roadmap.

8. Conclusion

The SOH is a strong metric to capture battery ageing level. In the present paper, a brand-new SOH estimator based on the gradient-based optimizer (GBO) is introduced. Our main objective is to improve the accuracy of SOH estimation by minimizing uncertainties in both State of Charge (SOC) estimation and measurements. To explore the robustness of the algorithm, six aggressive tests for a cell pack in HEV and EV applications were conducted. The reported methodology was evaluated against four robust techniques.

Our method delivered exceptional results across all tests. It achieves low maximum errors (0.65% to 3.21%) and mean errors (0.21% to 1.03%) in EV scenarios, and similarly low maximum errors (0.81% to 3.21%) and mean errors (0.39% to 1.03%) in HEV scenarios. These results highlight the effectiveness of GBO in accurately estimating the SOH in both EV and HEV systems. Additionally, GBO achieved low values for all predictive performance metrics, which include MSE, RMSE, and MAPE.

In the future, we plan to extend the scope of our algorithm. Specifically, we intend to evaluate the performance of GBO using additional battery aging datasets, HEV/EV driving cycles, and other battery chemistries.

  • In addition, we try to continuously improve the approach byTweaking the GBO parameters to get better results.
  • Speeding up the prediction, by identifying the most appropriate parameters values to obtain the most effective trade-off between precision and calculation speed.
  • Examining other cost functions.

Lastly, we plan to apply and validate the proposed methodology in an embedded device.

References

  1. 1. Lipu MH, Hannan M, Hussain A, Hoque M, Ker PJ, Saad MHM, et al. A review of state of health and remaining useful life estimation methods for lithium-ion battery in electric vehicles: Challenges and recommendations. Journal of cleaner production. 2018;205:115–33.
  2. 2. Tan KM, Ramachandaramurthy VK, Yong JY. Integration of electric vehicles in smart grid: A review on vehicle to grid technologies and optimization techniques. Renewable and Sustainable Energy Reviews. 2016;53:720–32.
  3. 3. Farmann A, Sauer DU. A comprehensive review of on-board State-of-Available-Power prediction techniques for lithium-ion batteries in electric vehicles. Journal of Power Sources. 2016;329:123–37.
  4. 4. Ma Z, Yang R, Wang Z. A novel data-model fusion state-of-health estimation approach for lithium-ion batteries. Applied energy. 2019;237:836–47.
  5. 5. Anseán D, García VM, González M, Blanco-Viejo C, Viera JC, Pulido YF, et al. Lithium-ion battery degradation indicators via incremental capacity analysis. IEEE Transactions on Industry Applications. 2019;55(3):2992–3002.
  6. 6. Pastor-Fernández C, Uddin K, Chouchelamane GH, Widanage WD, Marco J. A comparison between electrochemical impedance spectroscopy and incremental capacity-differential voltage as Li-ion diagnostic techniques to identify and quantify the effects of degradation modes within battery management systems. Journal of Power Sources. 2017;360:301–18.
  7. 7. Li Y, Abdel-Monem M, Gopalakrishnan R, Berecibar M, Nanini-Maury E, Omar N, et al. A quick on-line state of health estimation method for Li-ion battery with incremental capacity curves processed by Gaussian filter. Journal of Power Sources. 2018;373:40–53.
  8. 8. Dubarry M, Svoboda V, Hwu R, Liaw BY. Incremental capacity analysis and close-to-equilibrium OCV measurements to quantify capacity fade in commercial rechargeable lithium batteries. Electrochemical and solid-state letters. 2006;9(10):A454.
  9. 9. Dubarry M, Truchot C, Liaw BY. Synthesize battery degradation modes via a diagnostic and prognostic model. Journal of power sources. 2012;219:204–16.
  10. 10. Tian J, Xiong R, Yu Q. Fractional-order model-based incremental capacity analysis for degradation state recognition of lithium-ion batteries. IEEE Transactions on Industrial Electronics. 2018;66(2):1576–84.
  11. 11. Pradhan SK, Chakraborty B. Battery management strategies: An essential review for battery state of health monitoring techniques. Journal of Energy Storage. 2022;51:104427.
  12. 12. Honkura K, Takahashi K, Horiba T. Capacity-fading prediction of lithium-ion batteries based on discharge curves analysis. Journal of power sources. 2011;196(23):10141–7.
  13. 13. Bloom I, Christophersen J, Gering K. Differential voltage analyses of high-power lithium-ion cells: 2. Applications. Journal of Power Sources. 2005;139(1–2):304–13.
  14. 14. Xiong R, Li L, Tian J. Towards a smarter battery management system: A critical review on battery state of health monitoring methods. Journal of Power Sources. 2018;405:18–29.
  15. 15. You G-w, Park S, Oh D. Real-time state-of-health estimation for electric vehicle batteries: A data-driven approach. Applied energy. 2016;176:92–103.
  16. 16. Li X, Shu X, Shen J, Xiao R, Yan W, Chen Z. An on-board remaining useful life estimation algorithm for lithium-ion batteries of electric vehicles. Energies. 2017;10(5):691.
  17. 17. Wei J, Dong G, Chen Z. Remaining useful life prediction and state of health diagnosis for lithium-ion batteries using particle filter and support vector regression. IEEE Transactions on Industrial Electronics. 2017;65(7):5634–43.
  18. 18. Saha B, Goebel K, Poll S, Christophersen J. Prognostics methods for battery health monitoring using a Bayesian framework. IEEE Transactions on instrumentation and measurement. 2008;58(2):291–6.
  19. 19. Ciucci F, Chen C. Analysis of electrochemical impedance spectroscopy data using the distribution of relaxation times: A Bayesian and hierarchical Bayesian approach. Electrochimica Acta. 2015;167:439–54.
  20. 20. Long B, Xian W, Jiang L, Liu Z. An improved autoregressive model by particle swarm optimization for prognostics of lithium-ion batteries. Microelectronics Reliability. 2013;53(6):821–31.
  21. 21. Richardson RR, Osborne MA, Howey DA. Gaussian process regression for forecasting battery state of health. Journal of Power Sources. 2017;357:209–19.
  22. 22. Yang D, Zhang X, Pan R, Wang Y, Chen Z. A novel Gaussian process regression model for state-of-health estimation of lithium-ion battery using charging curve. Journal of Power Sources. 2018;384:387–95.
  23. 23. Xie J, Zheng Y, Du R, Xiong W, Cao Y, Ma Z, et al. Deep learning-based computer vision for surveillance in its: Evaluation of state-of-the-art methods. IEEE Transactions on Vehicular Technology. 2021;70(4):3027–42.
  24. 24. Van Nguyen T, Zhang J, Zhou L, Meng M, He Y. A data-driven optimization of large-scale dry port location using the hybrid approach of data mining and complex network theory. Transportation Research Part E: Logistics and Transportation Review. 2020;134:101816.
  25. 25. Li X, Ju L, Geng G, Jiang Q. Data-driven state-of-health estimation for lithium-ion battery based on aging features. Energy. 2023;274:127378.
  26. 26. Wu J, Fang L, Dong G, Lin M. State of health estimation of lithium-ion battery with improved radial basis function neural network. Energy. 2023;262:125380.
  27. 27. Gu X, See K, Li P, Shan K, Wang Y, Zhao L, et al. A novel state-of-health estimation for the lithium-ion battery using a convolutional neural network and transformer model. Energy. 2023;262:125501.
  28. 28. Tang A, Jiang Y, Yu Q, Zhang Z. A hybrid neural network model with attention mechanism for state of health estimation of lithium-ion batteries. Journal of Energy Storage. 2023;68:107734.
  29. 29. Plett GL. Recursive approximate weighted total least squares estimation of battery cell total capacity. Journal of Power Sources. 2011;196(4):2319–31.
  30. 30. Plett GL. Battery management systems, Volume II: Equivalent-circuit methods: Artech House; 2015. Available online: http://mocha-java.uccs.edu/BMS2/index.html (accessed on 28 May 2023).
  31. 31. Mouncef EM, Mostafa B. Battery total capacity estimation based on the sunflower algorithm. Journal of Energy Storage. 2022;48.
  32. 32. El Marghichi M, Loulijat A, Dangoury S, Chojaa H, Abdelaziz AY, Mossa MA, et al. Enhancing battery capacity estimation accuracy using the bald eagle search algorithm. Energy Reports. 2023;10:2710–24.
  33. 33. El marghichi M. Estimation of battery capacity using the enhanced self-organization maps. Electrical Engineering. 2023:1–19.
  34. 34. Lin C, Xu J, Mei X. Improving state-of-health estimation for lithium-ion batteries via unlabeled charging data. Energy Storage Materials. 2023;54:85–97.
  35. 35. Elmarghichi M, Bouzi M, Ettalabi N, Derri M, editors. Comparison of state of charge estimation algorithms for lithium battery. Proceedings of the 2nd International Conference on Electronic Engineering and Renewable Energy Systems: ICEERE 2020, 13–15 April 2020, Saidia, Morocco; 2021: Springer.
  36. 36. Hannan MA, Lipu MH, Hussain A, Mohamed A. A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations. Renewable and Sustainable Energy Reviews. 2017;78:834–54.
  37. 37. Zheng Y, Ouyang M, Han X, Lu L, Li J. Investigating the error sources of the online state of charge estimation methods for lithium-ion batteries in electric vehicles. Journal of Power Sources. 2018;377:161–88.
  38. 38. Shrivastava P, Soon TK, Idris MYIB, Mekhilef S. Overview of model-based online state-of-charge estimation using Kalman filter family for lithium-ion batteries. Renewable and Sustainable Energy Reviews. 2019;113:109233.
  39. 39. Ahmadianfar I, Bozorg-Haddad O, Chu X. Gradient-based optimizer: A new metaheuristic optimization algorithm. Information Sciences. 2020;540:131–59.
  40. 40. Elmarghichi M, Bouzi M, Ettalabi N. Robust Parameter Estimation of an Electric Vehicle Lithium-Ion Battery Using Adaptive Forgetting Factor Recursive Least Squares. International Journal of Intelligent Engineering & Systems. 2020;13(5).
  41. 41. El Marghichi M, Loulijat A, El Hantati I. Variable Recursive Least Square Algorithm for Lithium-ion Battery Equivalent Circuit Model Parameters Identification. Periodica Polytechnica Electrical Engineering and Computer Science. 2023.
  42. 42. Elmarghichi M, Ettalabi N. Online parameter estimation of a lithium-ion battery based on sunflower optimization algorithm. Bulletin of Electrical Engineering and Informatics. 2021;10(3):1505–13.
  43. 43. Mouncef E, Mostafa B, Naoufl. Online parameter estimation of a lithium-ion battery based on sunflower optimization algorithm. 2020 2nd Global Power, Energy and Communication Conference (GPECOM); 2020: IEEE.
  44. 44. Mouncef E, Mostafa B, Naoufl E, editors. Online Parameter Estimation of an Electric Vehicle Lithium-Ion Battery Using AFFRLS. 2020 IEEE 2nd International Conference on Electronics, Control, Optimization and Computer Science (ICECOCS); 2020: IEEE.
  45. 45. Yang D, Wang Y, Pan R, Chen R, Chen Z. State-of-health estimation for the lithium-ion battery based on support vector regression. Applied Energy. 2018;227:273–83.
  46. 46. Qiao J, Wang S, Yu C, Shi W, Fernandez C. A novel bias compensation recursive least square‐multiple weighted dual extended Kalman filtering method for accurate state‐of‐charge and state‐of‐health co‐estimation of lithium‐ion batteries. International Journal of Circuit Theory and Applications. 2021;49(11):3879–93.