Next Article in Journal
Can Satellites Predict Yield? Ensemble Machine Learning and Statistical Analysis of Sentinel-2 Imagery for Processing Tomato Yield Prediction
Next Article in Special Issue
Replicating File Segments between Multi-Cloud Nodes in a Smart City: A Machine Learning Approach
Previous Article in Journal
Hexagonal-Grid-Layout Image Segmentation Using Shock Filters: Computational Complexity Case Study for Microarray Image Analysis Related to Machine Learning Approaches
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of State of Health of Lithium-Ion Battery Using Health Index Informed Attention Model

Department of Industrial and Systems Engineering, San Jose State University, San Jose, CA 95192, USA
Sensors 2023, 23(5), 2587; https://doi.org/10.3390/s23052587
Submission received: 31 January 2023 / Revised: 23 February 2023 / Accepted: 24 February 2023 / Published: 26 February 2023

Abstract

:
State-of-health (SOH) is a measure of a battery’s capacity in comparison to its rated capacity. Despite numerous data-driven algorithms being developed to estimate battery SOH, they are often ineffective in handling time series data, as they are unable to utilize the most significant portion of a time series while predicting SOH. Furthermore, current data-driven algorithms are often unable to learn a health index, which is a measurement of the battery’s health condition, to capture capacity degradation and regeneration. To address these issues, we first present an optimization model to obtain a health index of a battery, which accurately captures the battery’s degradation trajectory and improves SOH prediction accuracy. Additionally, we introduce an attention-based deep learning algorithm, where an attention matrix, referring to the significance level of a time series, is developed to enable the predictive model to use the most significant portion of a time series for SOH prediction. Our numerical results demonstrate that the presented algorithm provides an effective health index and can precisely predict the SOH of a battery.

1. Introduction

Lithium-ion batteries are extensively adopted as a power resource for unmanned aerial vehicles, electric mobility, and electric vehicles as a result of their low maintenance frequency, long life cycle, and high energy efficiency [1,2]. Research efforts in the field of lithium-ion batteries have focused on various aspects, including improving charge speed and energy density, reducing production costs, and extending battery life cycles [3,4]. In addition, there have been studies on the evolution of li-rich layered cathode materials [5], with a particular focus on controlling the anionic redox of li-rich layered oxides to maximize energy density [6]. Nevertheless, the safety and efficiency of batteries can reduce with the increment of time and charge-discharge cycles, which is also known as battery aging [7,8]. For example, the traveling mileage of unmanned aerial vehicles and electric vehicles can be dramatically reduced due to the battery aging issue. The battery aging issue in electric mobility may result in severe fires and outbursts. As a result, it is necessary to monitor the health condition of batteries so that a proper maintenance schedule can be made to reduce the negative impact of battery aging.
State of health (SOH) represents the primary measurement that provides reliable information to monitor and predict the health conditions of batteries [9]. SOH is defined as the rate between the peak battery capacity and its rated capacity [10]. In the literature, numerous algorithms have been developed to make SOH predictions, and these algorithms can be categorized as model-based and data-driven algorithms. The model-based algorithms are built upon electronic, chemical, and mathematical models [11]. The primary drawback of the model-based algorithms is that the prediction performance can not be guaranteed as these methods can not capture the complex relationships among the enormous electrical and chemical components of batteries. To address the limitation of the model-based algorithms, data-driven algorithms are increasingly used in SOH predictions and this work will aim attention at data-driven algorithms. Data-driven algorithms are built upon statistical or machine-learning algorithms, such as Kalman filter [12], Gaussian Process [13], and deep learning methods [14]. While promising, most of the existing data-driven algorithms are not effective in dealing with time series as they are not able to utilize the most significant part of a time series while predicting the SOH of a battery. To address this issue, an attention-based deep learning predictive algorithm is developed in this work, where an attention matrix referring to the significance level of a time series at distinctive time is generated so that the deep learning predictive model can utilize the most relevant portion of a time series for SOH predictions. Moreover, it has been demonstrated that constructing an effective health index can increase the performance of a predictive model [15,16]. However, to our best knowledge, very few studies have been conducted to define or construct a health index of a battery. Although a few studies have been reported on the development of a health index for complex systems and machinery equipment [17], such as aircraft engines and bearings, these methods can only construct a monotonically decreasing health index which is not capable of capturing capacity fade and capacity regeneration behaviors of a battery. To fill this gap, we propose four properties to capture capacity degradation and regeneration behaviors. We also develop a convex optimization model to obtain a health index of a battery. The major contributions of this work can be described as below:
  • A convex optimization model is introduced to obtain a health index of a battery, such an index can accurately capture the degradation trajectory of a battery as well as improves the SOH prediction performance.
  • An attention-based deep learning predictive algorithm is presented, where an attention matrix referring to the significance level of a time series is adopted in SOH predictions so that the predictive algorithm can utilize the most significant portion of a time series for SOH predictions.
The remaining sections of this work is arranged as follows. Section 2 reviews the data-driven algorithms in SOH predictions. Section 3 presents the proposed convex optimization model for learning a health index and an attention-based deep learning predictive algorithm for SOH predictions of batteries. Section 4 demonstrates the efficiency of the proposed algorithm. Section 5 draws a conclusion and provides a discussion of future work.

2. Data-Driven Algorithms for SOH Predictions

The data-driven algorithms used for predicting state of health (SOH) of batteries include filter-related models and machine-learning models. The filter-related models incorporate techniques such as the Kalman filter [18,19], particle filter [20,21], and others. For instance, Chen et al. [22] developed an unscented Kalman filter to evaluate the SOH of a battery. Their presented Kalman filter incorporated the internal resistance rate to trace the subsequent SOH trajectory while making predictions. The results showed that the presented Kalman filter could estimate the SOH with a low prediction error rate. Dong et al. [23] utilized the particle filter for estimating the SOH of a battery. Their proposed filter was integrated with a stochastic model to track abrupt changes in the process of battery capacity fade. The results demonstrated that the particle filter was able to predict the SOH of multiple battery cells with relatively high accuracy. The primary advantage of the filter-based methods is their self-correlation capability. However, these methods have difficulty in considering multiple battery cells while making SOH predictions [24].
To better utilize all historical information from all battery cells, machine learning algorithms, especially deep learning algorithms are increasingly adopted. These algorithms incorporate random forests [25], long short-term memory (LSTM) [26], temporal convolutional network (TCN) [27], graph convolutional network (GCN) [28,29], and so on. For example, Mawonou et al. [30] presented a novel random forests SOH estimation algorithm to consider both the usage pattern of drivers and the environmental conditions of electric vehicles. In order to boost the estimation performance, two aging indicators were also incorporated into SOH estimation. The numerical results have manifested that the present novel random forests algorithm can reach a prediction error of 1.27%. Zhao et al. [31] combined the LSTM algorithm with the Gaussian process to evaluate the SOH of a battery, where several health factors extracted from sensor data obtained from charge cycles were utilized. The LSTM model was adopted to track the trajectory change of extracted health factors and the trajectory change was fed into the Gaussian process model for SOH predictions. A publicly available battery dataset was utilized to evaluate the efficacy of the presented algorithm. Zhou et al. [32] used the TCN for battery SOH predictions, where the dilated convolutional operation and causal operation were primarily used in the TCN model. In addition to TCN, the empirical mode decomposition was adopted to reduce the nuisance factors so that the SOH prediction performance can be more robust. Wei and Wu [33] presented a GCN algorithm to predict the SOH and the remaining useful charge and discharge cycles of batteries, where a two-phase optimization model was presented to develop a graph with optimized graph entropy and density. Numerical results have illustrated that the presented GCN algorithm could predict the SOH accurately even without using sensor data during the charging process.
In summary, numerous data-driven algorithms have been developed for predicting the SOH of a battery. However, most of these algorithms cannot effectively learn a health index that captures the degradation trajectory of a battery. Additionally, current data-driven algorithms are not able to handle time series data as they do not use the most significant portion of the time series when predicting the SOH of a battery. To address these issues, we first developed a convex optimization model to obtain a health index of a battery. This health index accurately captures the degradation trajectory of a battery and improves the prediction performance of SOH. We also introduce an attention-based deep learning predictive model, where an attention matrix is generated to show the significance level of each time step in the time series. This allows the deep learning predictive model to utilize the most relevant portion of the time series data when predicting SOH.

3. Health Index Informed Attention Model

The proposed algorithm comprises of three primary steps. Firstly, temporal features are extracted from the sensor data collected during the charging and discharging cycles of lithium-ion batteries. Secondly, a convex optimization model is constructed, and the extracted temporal features are given to the presented optimization model to learn health indices of batteries. Lastly, the extracted features and the learned health index are used to train an attention-based deep learning model for predicting SOH. The following sections provide detailed descriptions of these three steps.

3.1. Temporal Features Extraction

The most common battery health monitoring data includes current, voltage, and temperature. Figure 1 shows the current and voltage measurements during a single charge and discharge cycle. In a charge cycle, the battery is subjected to a consistent current (CC) until the measured voltage reaches a specific value, and then under a consistent voltage (CV) until the current drops to a specific value. In the discharge cycle, the battery is loaded under a consistent current condition until the battery voltage drops to a certain range. The recurrent charging and discharging process leads to a reduced capacity of lithium-ion batteries, which can be observed through changes in sensor measurements. For instance, as batteries age, they require more time to reach a specific voltage during the charge cycle, compared to new batteries. In this work, temporal features are derived from current, voltage, and temperature measurements to capture the depreciation behaviors in charge and discharge cycles.
In the charge cycle, one temporal feature extracted from voltage measurement is written as Equation (1),
min t ( s ) s . t . V t ( s ) V m a x 0
where  t ( s ) refers to the time in the s-th sampling period;  V t ( s ) refers to the voltage measurement at time t(s); and  V m a x is the maximum voltage of a battery. This extracted feature refers to the time to the maximum voltage of batteries. The second feature extracted from voltage measurement is written as Equation (2),
max t ( s ) t ( s ) s . t . V t ( s ) V m a x 0 , V t ( s ) V m a x 0
where  t ( s ) and  t ( s ) represent the time in the s-th and  s -th sampling period; and  V t ( s ) and  V t ( s ) are the measured voltage at  t ( s ) and  t ( s ) . This feature refers to the time that a battery stays in CV mode. The first feature extracted from the current measurement can be written as Equation (3),
max t ( s ) t ( s ) s . t . A t ( s ) = A t ( s ) = A c o n s t a n t
where  A t ( s ) and  A t ( s ) are the current measurement at  t ( s ) and  t ( s ) , and  A c o n s t a n t represents the current that the battery is under the CC condition. This extracted feature refers to the time that a battery is carried out under the CC condition. The second feature extracted from the current measurement is written as Equation (4),
min t ( s ) max t ( s ) s . t . A t ( s ) A c o n s t a n t , A t ( s ) A m i n
where  A m i n is the minimum current of the battery. This feature represents the time to the minimum current of batteries. The feature extracted from temperature measurement can be written as Equation (5),
min t ( s ) s . t . T t ( s ) = max { T t ( s ) , s }
where  T t ( s ) is the temperature at time  t ( s ) . This feature represents the time to the maximum temperature in the charge cycle.
In the discharge cycle, the feature extracted from voltage measurement can be represented in Equation (6),
min t ( s ) s . t . V t ( s ) V m i n
where  V m i n represents the minimum voltage of a battery in the discharge cycle. This extracted feature refers to the time to the minimum voltage. The feature extracted current measurement in the discharge cycle is written as Equation (7),
min t ( s ) s . t . A t ( s ) A l o a d
where  A l o a d is the battery load while discharging. This feature represents the discharging time. The last feature extracted from temperature measurement in the discharge cycle can be written as Equation (8), and this feature refers to the time to the maximum temperature in the discharge cycle.
min t ( s ) s . t . T t ( s ) = max { T t ( s ) , s }
These extracted features are fed into the proposed convex optimization model to obtain the health index of a battery.

3.2. Health Index Generation of a Battery

In the literature, few studies have been conducted on learning monotonically decreasing health indices for complex engineering systems, such as those described in the Ref. [34]. While these health indices have proven effective in solving prognostic problems, they are unsuitable for modeling the degradation behavior of lithium-ion batteries. For instance, the capacity of a battery does not decrease monotonically due to phenomena such as capacity regeneration. To better characterize the degradation behavior of lithium-ion batteries, we introduce four attributes for learning health indices. The first two attributes are based on the physical properties of aging batteries, while the remaining attributes are commonly used to capture the general degradation behaviors of complex systems [35].
  • Attribute 1: The health indices of aging batteries should be piece-wise monotonically decreasing with the increasing number of charge and discharge cycles.
  • Attribute 2: The health indices of aging batteries should increase after a complete charge-discharge cycle and a long period of storage.
  • Attribute 3: The variance of the failure threshold for the health indices of aging batteries should be minimal.
  • Attribute 4: The health indices should be consistent with the true capacity degradation trajectory of batteries.
The continuously repeated charge and discharge cycles lead to the reduced health conditions of lithium-ion batteries; therefore, Attribute 1 aims at learning piece-wise monotonically decreasing health indices in the piece-wise continued charging and discharging process. A battery may regain some capacity because of the capacity regeneration phenomenon; therefore, Attribute 2 aims at learning increasing health indices after a complete charge-discharge cycle and a long period of storage. Moreover, Attribute 3 and Attribute 4 are introduced to learn consistent and reliable health indices with less variance. Based on these four attributes, an optimization model is introduced as Equation (9),
min θ 1 i = 1 m j = 1 n i k = 1 l w k ( f i , j , k f i , j 1 , k ) p i , j + θ 2 i = 1 m j = 1 n i k = 1 l w k ( f i , j 1 , k f i , j , k ) r i , j + θ 3 w T Q T M Q w + θ 4 ( i = 1 m j = 1 n i k = 1 l ( w k f i , j , k y i , j ) 2 ) 1 / 2 s . t . a θ a = 1 ; i = 1 , , m , j = 1 , , n i , k = 1 , , l
where m refers to the total number of battery units;  n i refers to the total number of cycles for the battery cell i; l is the total number of temporal features are extracted;  w k is the weighted coefficient for feature k to combine extracted features to learn health indices of batteries;  f i , j , k represents the kth feature derived from the battery cell i in cycle j f i , j 1 , k represents the kth feature derived from the battery cell i in cycle  j 1 p i , j and  r i , j are binary variables represent the information of storage periods;  p i , j = 1 and  r i , j = 0 , if the cycle j is not after a storage period;  p i , j = 0 and  r i , j = 1 , if the cycle j is after a storage period;  y i , j is the battery capacity for the battery cell i in cycle j w R l × 1 is the vector stores the weighted coefficients  w k Q R m × l is the matrix recording the temporal features extracted from failure observations with rows referring to each battery cell and the columns referring to every extracted features k θ a , a are hyperparameters that decide the importance of four proposed attributes;  M = ( I O / j ) / ( j 1 ) O R m × m is a matrix with all elements are one, and  I R m × m is an identity matrix; the matrix  M is introduced to estimate the unbiased variance of the failure threshold of health indices, which is proved as Equation (10). Similar proofs can be found in the Refs. [36,37].
( ( Q w ) T Q w m ( ( 1 T Q w ) / m ) 2 ) = w T Q T ( ( I 1 1 T / m ) / ( m 1 ) ) Q w / ( m 1 ) = w T Q T M Q w
To simplify the proposed optimization model, this model can be rewritten as Equation (11),
min θ 1 p T D w θ 2 r T D w + θ 3 w T Q T M Q w + θ 4 F w y 2 2 s . t . a θ a = 1
where  p R 1 × i n i 1 is a vector stores  p i , j for all  i , j and  p = [ p 1 , 1 , , p 1 , n 1 , p 2 , 1 , , p 2 , n 2 , , p m , n m ] T r R 1 × i n i 1 is a vector stores  r i , j for all  i , j and  r = [ r 1 , 1 , , r 1 , n 1 , r 2 , 1 , , r 2 , n 2 , , r m , n m ] T D R i n i 1 × m is a matrix of collecting the differences of adjacent sampling time, and  D = [ D 1 , , D i , , D m ] T F R i n i × m is a matrix recording the extracted features for all battery units and cycles, and  F = [ F 1 , , F i , , F m ] T . The matrix  D i and the matrix  F i can be written as Equation (12);
D i = f i , 2 , 1 f i , 1 , 1 f i , 2 , l f i , 1 , l f i , 3 , 1 f i , 2 , 1 f i , 3 , l f i , 2 , l f i , n i , 1 f i , n i 1 , 1 f i , n i , l f i , n i 1 , l F i = f i , 1 , 1 f i , 1 , 2 f i , 1 , l f i , 2 , 1 f i , 2 , 2 f i , 2 , l f i , n i , 1 f i , n i , 2 f i , n i , l
Moreover,  y R i n i × 1 is a vector recording the battery capacity for all battery units and cycles, where  y = [ y 1 , y 2 , , y m ] T and  y i = [ y i , 1 , y i , 2 , , y i , l ] T . Next, the gradient descent method could be adopted to resolve the optimization model, the optimized weighted coefficients  w k , k are used to combine the extracted features to obtain the health indices. The health indices for unit i in the cycle j can be mathematically represented as  h i j = k w k f i j k .
Figure 2 exhibits the framework of the presented optimization model for generating the health index of a lithium-ion battery. During the training process, four attributes are first introduced to capture the capacity degradation and regeneration phenomenon of a battery, and a convex optimization model is constructed based on these attributes. To train the optimization model, the importance hyperparameters  θ a , a , the storage period inputs  r i , j , p i , j , i , j , temporal features  f i , j , k , i , j , k , and the battery capacity  y i , j , i , j are given to the presented convex optimization model. The gradient descent method is adopted to learn the weighted coefficients  ω i , j , i , j in the optimization model. During the process of learning the health index, the learned weighted coefficients are used to combine the extracted temporal features to learn the health index  h i , j , i , j . Next, both the learn health index and the temporal features are fed into the proposed attention-based deep learning model for SOH predictions of batteries.

3.3. Attention-Based Deep Learning Model

While attention-based models have been used to deal with time series, most of these studies focus on neural machine translation and text generation [38,39]. The general concept of the attention model is to simulate the attention mechanism of humans used for tasks such as reading and visualization. The attention model can be represented as the value retrieval procedure of a data administration system. In such a system, each value  v i has a key  k i associated with it. For a query q, the attention value  α i on item i can be written as  α i = e x p ( s c i ) / i s c i , where  s c i refers to the alignment score between the query q and the key  k i for item i. The most often used alignment score function include dot-product [40], scaled dot-product [41], and additive [38].
In this work, the attention model is integrated with a sequence-to-one LSTM neural network to predict the SOH. Figure 3 shows the attention-based sequence-to-one LSTM predictive model for SOH predictions. This predictive model consists of three primary components, including an encoder network, an attention layer, and a decoder network. In the encoder network, time series inputs  x i , j are given to the LSTM to derive the corresponding key  k i , j and value  v i , j . More specifically,  x i , j is the vector that stores the extracted features and the learned health indices for battery unit i in cycle j v i , 0 is the randomized initial input of the encoder network;  v i , j is the value generated from the LSTM network for cell i in cycle j k i , j refers to the key generated from the LSTM network for unit i in cycle j; both the  v i , j and  k i , j are the hidden state of the LSTM in cycle j, and we set  v i , j k i , j to represent that the value is identical with the key;  q i , t refers to the query and  q i , t = k i , t = v i , t . In the attention layer, we use the local attention model with the monotonic alignment. The attention value  α i , j for cycle j can be calculated by Equation (13), where  s c i i , a refers to the alignment score between the query  q i , t and the key  k i , t Moreover, d represents the window length of the local attention model.
α i , j = e x p ( s c i , j ) / a = j d j + d s c i , a
The general alignment function is utilized in this work, and the corresponding score  s c i , j can be calculated by using Equation (14).  W a R z × z is the trainable weighted matrix to calculate the alignment score, where z is the total number of nodes in LSTM.
s c i , j = q i , j T W a k i , j
In the decoder network, the context vector  c i is calculated by using Equation (15). Then, the context vector and the output of the LSTM network are given to a fully connected layer to predict the SOH of the battery cell i in cycle t, that is,  y i , t
c i = j = 1 t α i , j v i , j
In comparison with the traditional LSTM predictive model, the attention-based predictive model has access to the entire time series while predicting by introducing the context vector  c i . Because the context vector represents the weighted sum of the hidden outputs generated by the time series, respectively.

4. Case Study

4.1. Dataset Description

In this work, we used four battery cells (Battery No. 5, No. 6, No. 7, and No. 18) to evaluate the efficiency of the proposed algorithm. The condition monitoring data of these four battery cells were collected by the NASA Ames Prognostics Center of Excellence (PCoE) [42], where the current, voltage, and temperature data were collected during the charging and discharging process. In the charging process, the CC mode with a current of 1.5 A was discontinued when the voltage measurement was above 4.2 V and proceeded under a CV condition unless the measured current was below 20 mA. In the discharging process, the CC mode was adopted with a current of 2A unless the measured voltage was below 2.7 V, 2.5 V, 2.2 V, and 2.5 V for Battery No. 5, Battery No. 6, Battery No. 7, and Battery No. 18, respectively. The run-to-failure experiment was conducted on these four battery cells, and the test was stopped when the capacity dropped to 70%. For all four battery cells, the maximum capacity was 2 Ah, and the test was stopped when the capacity dropped to 1.4 Ah.
Figure 4 shows the measured voltage, current, and temperature over time during different charge and discharge cycles of battery cell No. 5. Based on this figure, we can observe that the trajectories of the measured voltage, current, and temperature change with the number of charge and discharge cycles. For example, Figure 5a shows that the time to reach the maximum voltage in 40 cycles is longer than the time to reach the maximum voltage in 120 cycles.

4.2. Health Index

To capture changes in battery trajectory over time, temporal features were extracted to learn the health indices of the batteries. As mentioned earlier, this paper extracted five temporal features during charge cycles and three features during discharge cycles, as they have been shown to be efficient for predicting the SOH of a battery [43]. During the charge cycles, we extracted the time to maximum voltage and temperature, time to minimum current, and time charged under CC and CV modes. During discharge cycles, we extracted the time to minimum voltage and maximum temperature, as well as time discharged under a CC mode. The extracted temporal features were then input into the optimization model presented to learn the health indices. To learn the health index of a battery, the values of hyperparameters  θ a for all a must be determined to evaluate the importance of the four proposed attributes. In this study, we considered each proposed attribute equally important by setting  θ a = 0.25 for all a. Furthermore, all extracted temporal features were standardized to reduce the loss of generality.
Figure 5 presents the SOH, the capacity fade, and the learned health index for batteries No. 5, No. 6, No. 7, and No. 18. Based on Figure 5, we can conclude that the learned health index shows an obvious depreciation trend, which is consistent with the degradation trajectory of the SOH. Moreover, the learned health indices can also reflect the capacity regeneration phenomenon after a long storage period. For example, the SOH of battery No. 5 increases after 150 cycles due to its storage period between the 149th and 150th charge and discharge cycles. Therefore, we can conclude that the learned health indices are consistent with the degradation trajectory of the SOH and could potentially be used for predicting the SOH.

4.3. SOH Estimation

The proposed attention-based deep learning algorithm was then used to predict the SOH using the temporal features and learned health index. To simplify the algorithm and reduce prediction errors, the network architecture and hyperparameters used in this case study have been tabulated in Table 1. The batch size is 30, the number of hidden nodes in the LSTM layer is 50, the window size of the local attention mechanism is 5, and the learning rate is set to  1 × 10 5 . Moreover, the predictive alignment is used in this case study. Figure 6 shows the ground truth of SOH and the predicted values for all four batteries, with the predicted starting point at 20 charge and discharge cycles. From Figure 6, we can see that the proposed algorithm can predict the SOH of lithium-ion batteries with satisfactory precision, as the predicted values are close to the ground truth for all four batteries. Moreover, we can also observe that the predicted SOH can capture the capacity regeneration phenomenon after a storage period.
To fully evaluate the efficacy of the proposed algorithm, it was compared with other algorithms listed in Table 2. In this table, HI-ALSTM refers to the proposed algorithm, which is the health index-informed attention-based LSTM model. HI-LSTM refers to the proposed algorithm without the attention mechanism, ALSTM is the attention-based LSTM predictive algorithm without using the health index, and LSTM refers to the classical long short-term memory without using the proposed health index or the attention mechanism. To ensure a fair comparison, the hyperparameters used in HI-LSTM, ALSTM, and LSTM are the same as those in the proposed algorithm, except that HI-LSTM does not use the attention mechanism, ALSMT does not use the learned health index, and LSTM does not use either the attention mechanism or the learned health index.
Table 3 and Table 4 show the mean absolute error (MAE) and mean absolute percentage error (MAPE) of the proposed algorithm and algorithms listed in Table 2 for all four batteries, respectively. Based on these two tables, it is evident that the learned health index and the attention mechanism can improve the accuracy of SOH prediction. For example, the average MAE of the proposed algorithm is 0.0103. However, the MAE of HI-LSTM and ALSTM is 0.0405 and 0.0121, respectively, indicating that the presented algorithm outperforms these models in terms of prediction accuracy.
Table 5 shows the root mean squared error (RMSE) of the proposed algorithm, algorithms tabulated in Table 2, and other algorithms reported in the literature [44,45] for all four batteries, to thoroughly evaluate the efficacy of the presented algorithm. The methods described in the literature incorporate logistic regression (LR) and gradient boosting decision tree (GBDT). Based on Table 5, it is evident that the learned health index and the attention mechanism can increase the SOH prediction accuracy. For example, for Battery No. 6, the prediction RMSE of the presented algorithm is 0.0153, whereas the methods without using the learned health index or the attention mechanism range from 0.220 to 0.612. With respect to Battery No. 7, the prediction RMSE of the presented algorithm is 0.0089, whereas the prediction RMSE of HI-LSTM and ALSTM is 0.0542 and 0.0145, respectively. Moreover, the presented algorithm also outperforms other methods used in the literature. For instance, the average prediction RMSE of the presented algorithm is 0.0136, whereas the average prediction RMSE of the other algorithms tabulated in Table 5 ranges from 0.0150 to 0.0457.

5. Conclusions and Future Work

In this work, a convex optimization model was presented to learn a health index of a battery. Such a health index can accurately capture the degradation trajectory of a battery as well as help improve SOH prediction accuracy. Moreover, we developed an attention-based LSTM algorithm for predicting the SOH of a battery, where an attention matrix, referring to the significance level of a time series, was adopted so that the predictive model can utilize the most significant portion of a time series while predicting. A battery dataset, including current, voltage, and temperature, collected from four batteries was utilized to evaluate the performance of the presented algorithm. The numerical results have illustrated that the learned health indices can precisely capture the capacity fade and regeneration phenomenons of the four batteries. The results have also shown that utilizing the learned health index can improve the SOH prediction performance as the average RMSE with utilizing the health index is 0.0157 in comparison with the average RMSE without utilizing the health index is 0.0164 when over 20 cycles have been observed. We can also conclude that using the attention mechanism can also achieve a better SOH estimation performance. For example, with respect to No. 7, the RMSE of the presented algorithm is 0.0140, however, the RMSE of HI-LSTM is 0.0447. In addition, the presented algorithm outperforms other algorithms used in the literature.
The field of battery research is constantly evolving, and future efforts are expected to focus on predicting the SOH of batteries across a wide range of different battery types. Currently, much of the research in this area has been focused on lithium-ion batteries, which are widely used in a variety of applications, including electric vehicles, smartphones, and laptops. However, there are many other types of batteries, including lead-acid, nickel-cadmium, and zinc-carbon batteries, which also require accurate and reliable SOH prediction methods. Research in this area is likely to involve developing new algorithms and machine learning models that can accurately predict the remaining capacity and useful lifetime of these batteries, as well as identifying the factors that contribute to degradation and failure. In addition to improving SOH prediction in different battery types, future research is also expected to facilitate the detection of small devices. As technology becomes increasingly miniaturized, there is a growing need for small, reliable batteries that can power these devices for extended periods of time. Research in this area is likely to focus on developing new battery chemistries that can deliver high energy densities in small form factors, as well as improving the accuracy and sensitivity of diagnostic tools for detecting small battery defects and failures. Overall, the future of battery research is likely to be focused on developing more accurate and reliable methods for predicting SOH across a wide range of battery types, as well as improving the performance and reliability of small batteries for use in miniature devices.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The dataset used in this study are available at https://www.nasa.gov/content/prognostics-center-of-excellence-data-set-repository, accessed on 01 December 2022.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
HIHealth Index
SOHState of Health
CCConstant Current
CVConstant Voltage
PCoEPrognostics Center of Excellence
RSMERoot Mean Squared Error
LSTMLong Short-term Memory
FCFully Connected

References

  1. Liu, X.; Wu, J.; Zhang, C.; Chen, Z. A method for state of energy estimation of lithium-ion batteries at dynamic currents and temperatures. J. Power Sources 2014, 270, 151–157. [Google Scholar] [CrossRef]
  2. Xi, Z.; Wang, R.; Fu, Y.; Mi, C. Accurate and reliable state of charge estimation of lithium ion batteries using time-delayed recurrent neural networks through the identification of overexcited neurons. Appl. Energy 2022, 305, 117962. [Google Scholar] [CrossRef]
  3. Wang, Y.; Cao, G. Developments in nanostructured cathode materials for high-performance lithium-ion batteries. Adv. Mater. 2008, 20, 2251–2269. [Google Scholar] [CrossRef]
  4. Guo, P.; Song, H.; Chen, X. Electrochemical performance of graphene nanosheets as anode material for lithium-ion batteries. Electrochem. Commun. 2009, 11, 1320–1324. [Google Scholar] [CrossRef]
  5. Fang, L.; Chen, M.; Nam, K.W.; Kang, Y.M. Redox Evolution of Li-Rich Layered Cathode Materials. Batteries 2022, 8, 132. [Google Scholar] [CrossRef]
  6. Fang, L.; Zhou, L.; Park, M.; Han, D.; Lee, G.H.; Kang, S.; Lee, S.; Chen, M.; Hu, Z.; Zhang, K.; et al. Hysteresis Induced by Incomplete Cationic Redox in Li-Rich 3d-Transition-Metal Layered Oxides Cathodes. Adv. Sci. 2022, 9, 2201896. [Google Scholar] [CrossRef]
  7. He, W.; Williard, N.; Chen, C.; Pecht, M. State of charge estimation for Li-ion batteries using neural network modeling and unscented Kalman filter-based error cancellation. Int. J. Electr. Power Energy Syst. 2014, 62, 783–791. [Google Scholar] [CrossRef]
  8. Xing, Y.; Ma, E.W.; Tsui, K.L.; Pecht, M. An ensemble model for predicting the remaining useful performance of lithium-ion batteries. Microelectron. Reliab. 2013, 53, 811–820. [Google Scholar] [CrossRef]
  9. Fu, P.; Chu, L.; Li, J.; Guo, Z.; Hu, J.; Hou, Z. State of Health Prediction of Lithium-Ion Battery Based on Deep Dilated Convolution. Sensors 2022, 22, 9435. [Google Scholar] [CrossRef]
  10. Yao, L.; Wen, J.; Xu, S.; Zheng, J.; Hou, J.; Fang, Z.; Xiao, Y. State of Health Estimation Based on the Long Short-Term Memory Network Using Incremental Capacity and Transfer Learning. Sensors 2022, 22, 7835. [Google Scholar] [CrossRef]
  11. Wei, Y.; Liu, H. Convolutional Long-Short Term Memory Network with Multi-Head Attention Mechanism for Traffic Flow Prediction. Sensors 2022, 22, 7994. [Google Scholar] [CrossRef]
  12. Meng, J.; Yue, M.; Diallo, D. A degradation empirical-model-free battery end-of-life prediction framework based on gaussian process regression and Kalman filter. IEEE Trans. Transp. Electrif. 2022, 1. [Google Scholar] [CrossRef]
  13. Jia, J.; Liang, J.; Shi, Y.; Wen, J.; Pang, X.; Zeng, J. SOH and RUL prediction of lithium-ion batteries based on Gaussian process regression with indirect health indicators. Energies 2020, 13, 375. [Google Scholar] [CrossRef] [Green Version]
  14. Xu, N.; Xie, Y.; Liu, Q.; Yue, F.; Zhao, D. A Data-Driven Approach to State of Health Estimation and Prediction for a Lithium-Ion Battery Pack of Electric Buses Based on Real-World Data. Sensors 2022, 22, 5762. [Google Scholar] [CrossRef]
  15. Wei, Y.; Wu, D.; Terpenny, J. Learning the health index of complex systems using dynamic conditional variational autoencoders. Reliab. Eng. Syst. Saf. 2021, 216, 108004. [Google Scholar] [CrossRef]
  16. Kumar, A.; Parkash, C.; Vashishtha, G.; Tang, H.; Kundu, P.; Xiang, J. State-space modeling and novel entropy-based health indicator for dynamic degradation monitoring of rolling element bearing. Reliab. Eng. Syst. Saf. 2022, 221, 108356. [Google Scholar] [CrossRef]
  17. Wei, Y.; Wu, D.; Terpenny, J. Constructing Robust and Reliable Health Indices and Improving the Accuracy of Remaining Useful Life Prediction. J. Nondestruct. Eval. Diagn. Progn. Eng. Syst. 2022, 5, 021009. [Google Scholar] [CrossRef]
  18. Andre, D.; Appel, C.; Soczka-Guth, T.; Sauer, D.U. Advanced mathematical methods of SOC and SOH estimation for lithium-ion batteries. J. Power Sources 2013, 224, 20–27. [Google Scholar] [CrossRef]
  19. Xu, W.; Wang, S.; Jiang, C.; Fernandez, C.; Yu, C.; Fan, Y.; Cao, W. A novel adaptive dual extended Kalman filtering algorithm for the Li-ion battery state of charge and state of health co-estimation. Int. J. Energy Res. 2021, 45, 14592–14602. [Google Scholar] [CrossRef]
  20. Liu, D.; Yin, X.; Song, Y.; Liu, W.; Peng, Y. An on-line state of health estimation of lithium-ion battery using unscented particle filter. IEEE Access 2018, 6, 40990–41001. [Google Scholar] [CrossRef]
  21. Schwunk, S.; Armbruster, N.; Straub, S.; Kehl, J.; Vetter, M. Particle filter for state of charge and state of health estimation for lithium–iron phosphate batteries. J. Power Sources 2013, 239, 705–710. [Google Scholar] [CrossRef]
  22. Chen, N.; Hu, X.; Gui, W.; Zou, J. Estimation of li-ion battery state of charging and state of healthy based on unsented Kalman filtering. In Proceedings of the The 26th Chinese Control and Decision Conference (2014 CCDC), Changsha, China, 31 May–2 June 2014; pp. 4725–4729. [Google Scholar]
  23. Dong, G.; Chen, Z.; Wei, J.; Ling, Q. Battery health prognosis using Brownian motion modeling and particle filtering. IEEE Trans. Ind. Electron. 2018, 65, 8646–8655. [Google Scholar] [CrossRef]
  24. Thelen, A.; Li, M.; Hu, C.; Bekyarova, E.; Kalinin, S.; Sanghadasa, M. Augmented model-based framework for battery remaining useful life prediction. Appl. Energy 2022, 324, 119624. [Google Scholar] [CrossRef]
  25. Li, Y.; Zou, C.; Berecibar, M.; Nanini-Maury, E.; Chan, J.C.W.; Van den Bossche, P.; Van Mierlo, J.; Omar, N. Random forest regression for online capacity estimation of lithium-ion batteries. Appl. Energy 2018, 232, 197–210. [Google Scholar] [CrossRef]
  26. Yayan, U.; Arslan, A.T.; Yucel, H. A novel method for SoH prediction of batteries based on stacked LSTM with quick charge data. Appl. Artif. Intell. 2021, 35, 421–439. [Google Scholar] [CrossRef]
  27. Zhou, D.; Wang, B. Battery health prognosis using improved temporal convolutional network modeling. J. Energy Storage 2022, 51, 104480. [Google Scholar] [CrossRef]
  28. Yao, X.Y.; Chen, G.; Pecht, M.; Chen, B. A novel graph-based framework for state of health prediction of lithium-ion battery. J. Energy Storage 2023, 58, 106437. [Google Scholar] [CrossRef]
  29. Wei, Y.; Wu, D.; Terpenny, J. Bearing remaining useful life prediction using self-adaptive graph convolutional networks with self-attention mechanism. Mech. Syst. Signal Process. 2023, 188, 110010. [Google Scholar] [CrossRef]
  30. Mawonou, K.S.; Eddahech, A.; Dumur, D.; Beauvois, D.; Godoy, E. State-of-health estimators coupled to a random forest approach for lithium-ion battery aging factor ranking. J. Power Sources 2021, 484, 229154. [Google Scholar] [CrossRef]
  31. Zhao, J.; Zhu, Y.; Zhang, B.; Liu, M.; Wang, J.; Liu, C.; Zhang, Y. Method of Predicting SOH and RUL of Lithium-Ion Battery Based on the Combination of LSTM and GPR. Sustainability 2022, 14, 11865. [Google Scholar] [CrossRef]
  32. Zhou, D.; Li, Z.; Zhu, J.; Zhang, H.; Hou, L. State of health monitoring and remaining useful life prediction of lithium-ion batteries based on temporal convolutional network. IEEE Access 2020, 8, 53307–53320. [Google Scholar] [CrossRef]
  33. Wei, Y.; Wu, D. Prediction of state of health and remaining useful life of lithium-ion battery using graph convolutional network with dual attention mechanisms. Reliab. Eng. Syst. Saf. 2023, 230, 108947. [Google Scholar] [CrossRef]
  34. Liu, K.; Chehade, A.; Song, C. Optimize the signal quality of the composite health index via data fusion for degradation modeling and prognostic analysis. IEEE Trans. Autom. Sci. Eng. 2015, 14, 1504–1514. [Google Scholar] [CrossRef]
  35. Wei, Y.; Wu, D.; Terpenny, J. Decision-Level Data Fusion in Quality Control and Predictive Maintenance. IEEE Trans. Autom. Sci. Eng. 2020, 18, 184–194. [Google Scholar] [CrossRef]
  36. Liu, K.; Gebraeel, N.Z.; Shi, J. A data-level fusion model for developing composite health indices for degradation modeling and prognostic analysis. IEEE Trans. Autom. Sci. Eng. 2013, 10, 652–664. [Google Scholar] [CrossRef]
  37. Wei, Y.; Wu, D.; Terpenny, J. Robust incipient fault detection of complex systems using data fusion. IEEE Trans. Instrum. Meas. 2020, 69, 9526–9534. [Google Scholar] [CrossRef]
  38. Bahdanau, D.; Cho, K.; Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv 2014, arXiv:1409.0473. [Google Scholar]
  39. Xu, K.; Ba, J.; Kiros, R.; Cho, K.; Courville, A.; Salakhudinov, R.; Zemel, R.; Bengio, Y. Show, attend and tell: Neural image caption generation with visual attention. In Proceedings of the International Conference on Machine Learning, PMLR, Miami, FL, USA, 9–11 December 2015; pp. 2048–2057. [Google Scholar]
  40. Luong, M.T.; Pham, H.; Manning, C.D. Effective approaches to attention-based neural machine translation. arXiv 2015, arXiv:1508.04025. [Google Scholar]
  41. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 5998–6008. [Google Scholar]
  42. Saha, B.; Goebel, K. Battery data set. NASA AMES Progn. Data Repos. 2007. [Google Scholar]
  43. Audin, P.; Jorge, I.; Mesbahi, T.; Samet, A.; De Beuvron, F.D.B.; Boné, R. Auto-encoder LSTM for Li-ion SOH prediction: A comparative study on various benchmark datasets. In Proceedings of the 2021 20th IEEE International Conference on Machine Learning and Applications (ICMLA), online, 13–15 December 2021; pp. 1529–1536. [Google Scholar]
  44. Yu, J. State of health prediction of lithium-ion batteries: Multiscale logic regression and Gaussian process regression ensemble. Reliab. Eng. Syst. Saf. 2018, 174, 82–95. [Google Scholar] [CrossRef]
  45. Qin, P.; Zhao, L.; Liu, Z. State of health prediction for lithium-ion battery using a gradient boosting-based data-driven method. J. Energy Storage 2022, 47, 103644. [Google Scholar] [CrossRef]
Figure 1. The current and voltage measurements in a single charge and discharge cycle.
Figure 1. The current and voltage measurements in a single charge and discharge cycle.
Sensors 23 02587 g001
Figure 2. The framework of the proposed optimization model for generating the health index of a lithium-ion battery.
Figure 2. The framework of the proposed optimization model for generating the health index of a lithium-ion battery.
Sensors 23 02587 g002
Figure 3. The attention-based sequence-to-one LSTM predictive model.  x i , j refers to the vector of inputs for battery cell i in cycle j v i , j is the key and  k i , j is the value generated from the LSTM network for cell i in cycle j α i , j refers to the attention value for cell i in cycle j; and  c i represents the context vector.
Figure 3. The attention-based sequence-to-one LSTM predictive model.  x i , j refers to the vector of inputs for battery cell i in cycle j v i , j is the key and  k i , j is the value generated from the LSTM network for cell i in cycle j α i , j refers to the attention value for cell i in cycle j; and  c i represents the context vector.
Sensors 23 02587 g003
Figure 4. The voltage, current, and temperature measurements change over time in different charge and discharge cycles with respect to battery No. 5.
Figure 4. The voltage, current, and temperature measurements change over time in different charge and discharge cycles with respect to battery No. 5.
Sensors 23 02587 g004
Figure 5. The SOH, the capacity fade, and the learned health index for batteries No. 5, No. 6, No. 7, and No. 18.
Figure 5. The SOH, the capacity fade, and the learned health index for batteries No. 5, No. 6, No. 7, and No. 18.
Sensors 23 02587 g005
Figure 6. The ground truth of SOH and the predicted value for all four batteries with the prediction starting point is 20 cycles.
Figure 6. The ground truth of SOH and the predicted value for all four batteries with the prediction starting point is 20 cycles.
Sensors 23 02587 g006
Table 1. Hyperparameters and network architecture utilized in this case study for SOH predictions.
Table 1. Hyperparameters and network architecture utilized in this case study for SOH predictions.
Sequence of LayersDescriptionOutput Dimensionality
1Input layer   30 × 165 × 9
2LSTM layer   30 × 165 × 50
3Attention layer   30 × 5 × 50
4Flatten layer   30 × 250
5Output layer   30 × 1
Table 2. Symbols and descriptions of the presented algorithm and comparable algorithms.
Table 2. Symbols and descriptions of the presented algorithm and comparable algorithms.
Method SymbolMethod Description
HI-ALSTMHealth index informed attention-based LSTM model (Proposed methodology)
HI-LSTMHealth index-informed LSTM model without using the attention mechanism
ALSTMAttention-based LSTM predictive model without using the health index
LSTMtraditional LSTM predictive model
Table 3. The MAE of the proposed algorithm and algorithms listed in Table 2 for all battery units.
Table 3. The MAE of the proposed algorithm and algorithms listed in Table 2 for all battery units.
Battery No. 5Battery No. 6Battery No. 7Battery No. 18Average
HI-ALSTM0.01490.01100.00680.00830.0103
HI-LSTM0.03800.05510.04660.02220.0405
ALSTM0.00660.01700.01330.01140.0121
LSTM0.03620.02130.03720.02640.0303
Table 4. The MAPE of the proposed algorithm and algorithms listed in Table 2 for all battery units.
Table 4. The MAPE of the proposed algorithm and algorithms listed in Table 2 for all battery units.
Battery No. 5Battery No. 6Battery No. 7Battery No. 18Average
HI-ALSTM196.30%151.03%84.17%108.29%134.95%
HI-LSTM512.55%793.49%611.81%292.07%552.48%
ALSTM85.89%247.20%165.64%150.38%162.28%
LSTM487.97%290.07%485.74%352.43%404.05%
Table 5. The RMSE of the proposed algorithm, algorithms listed in Table 2, and other algorithms reported in the literature for all battery units.
Table 5. The RMSE of the proposed algorithm, algorithms listed in Table 2, and other algorithms reported in the literature for all battery units.
Battery No. 5Battery No. 6Battery No. 7Battery No. 18Average
HI-ALSTM0.01650.01530.00890.01390.0136
HI-LSTM0.03990.06120.05420.02740.0457
ALSTM0.00850.02200.01450.01510.0150
LSTM0.03750.02490.04270.02880.0335
LR-GPR [44]0.01680.0292-0.01690.0210
GBDT [45]0.01920.02810.0157-0.0210
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wei, Y. Prediction of State of Health of Lithium-Ion Battery Using Health Index Informed Attention Model. Sensors 2023, 23, 2587. https://doi.org/10.3390/s23052587

AMA Style

Wei Y. Prediction of State of Health of Lithium-Ion Battery Using Health Index Informed Attention Model. Sensors. 2023; 23(5):2587. https://doi.org/10.3390/s23052587

Chicago/Turabian Style

Wei, Yupeng. 2023. "Prediction of State of Health of Lithium-Ion Battery Using Health Index Informed Attention Model" Sensors 23, no. 5: 2587. https://doi.org/10.3390/s23052587

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

Article Metrics

Back to TopTop