DOI QR코드

DOI QR Code

Analysis of Real-Time Estimation Method Based on Hidden Markov Models for Battery System States of Health

  • Piao, Changhao (Institute of Pattern Recognition and Applications, Chongqing University of Posts and Telecommunications) ;
  • Li, Zuncheng (Institute of Pattern Recognition and Applications, Chongqing University of Posts and Telecommunications) ;
  • Lu, Sheng (Institute of Pattern Recognition and Applications, Chongqing University of Posts and Telecommunications) ;
  • Jin, Zhekui (Institute of Pattern Recognition and Applications, Chongqing University of Posts and Telecommunications) ;
  • Cho, Chongdu (Department of Mechanical Engineering, Inha University)
  • Received : 2015.03.24
  • Accepted : 2015.06.30
  • Published : 2016.01.20

Abstract

A new method is proposed based on a hidden Markov model (HMM) to estimate and analyze battery states of health. Battery system health states are defined according to the relationship between internal resistance and lifetime of cells. The source data (terminal voltages and currents) can be obtained from vehicular battery models. A characteristic value extraction method is proposed for HMM. A recognition framework and testing datasets are built to test the estimation rates of different states. Test results show that the estimation rates achieved based on this method are above 90% under single conditions. The method achieves the same results under hybrid conditions. We can also use the HMMs that correspond to hybrid conditions to estimate the states under a single condition. Therefore, this method can achieve the purpose of the study in estimating battery life states. Only voltage and current are used in this method, thereby establishing its simplicity compared with other methods. The batteries can also be tested online, and the method can be used for online prediction.

Keywords

I. INTRODUCTION

The electric vehicle (EV) has become the main research focus of the automobile industry with the development of economies and the concomitant lack of energy sources [1]. A power battery, which is one of the core blocks of an EV, has been influencing the development of the automobile industry. Thus, competition in the EV industry is reduced to competition in power battery technologies. EVs will be widely developed only when mature technology, low cost, and high safety of power batteries have been attained. Therefore, current studies on power battery performance status have become popular in many countries [2].

Lifetime is a key performance index with regard to battery technology [3], [4]. At present, the development of power battery technologies is in a stagnant stage. Studies on battery life prediction have a significant value for power battery systems in several areas, such as effective management, improvement of vehicle dynamic performance, and safety and economic performance. Battery life can be evaluated by examining cell capacity and internal resistance. This study proposes a method to study battery health states. The assessment is divided into four states according to the differences in battery resistance.

Thus far, many researchers have focused on the design of battery mechanism models. Researchers must build efficient battery models to simulate real batteries. Some of these models have elicited good performances [5]-[9]. However, they require calculations of many parameters. Battery parameters are always nonlinear, thereby complicating the calculations [10], [11]. Data-driven means have shown a great potential in solving the aforementioned problems, and they have led to significant progress [12]-[16]. Complex relationships among electrochemical parameters are not considered by these methods, which can analyze problems from the gathered data. In [13], the authors proposed a method to describe the battery capacity under particular conditions in which battery capacity testing took considerable amounts of time. Similarly, a significant amount of time is required to test several cycles in [12], in which an artificial neural network (ANN) method of testing cycles was proposed.

The hidden Markov model (HMM) is a data-driven method. Given the complicated configuration parameters for battery simulation models and the accuracy of HMM in estimating results, this study proposes a method of battery life state estimation through an HMM. On the basis of the changes in battery data, we preprocess these data and propose a method to obtain effective character values for the HMM. Subsequently, an HMM framework is built to estimate battery health state. Finally, test data are collected to generate testing estimation results.

 

II. HIDDEN MARKOV MODEL

An HMM includes a dual stochastic process [17]. The first is a Markov chain, which describes state transitions. The other is a stochastic process, which describes the statistical relationships between states and observational variables. An HMM can be usually described as the function λ=(π, A, B), where π is the initial probability of each state, A=(aij)N×N is a state transition matrix, aij describes the probability of state i transferring to state j, N is the number of states, and B is the probability distribution of observations for each state. B can be described by several Gaussian distributions, which are written as

where bj(ot) is the probability of observation ot in state j, M is the number of Gaussian distributions, μjl and Σjl are the mean and covariance values of the Gaussian density, and Cjl is the weight of the lth Gaussian component in state j. Therefore, an HMM can be also described as λ=(π,A,μjl,Σjl,Cjl) , which is used in this paper.

Given an HMM, the following three essential problems must be solved to make this HMM usable in practical applications [18]:

 

III. DATA ANALYSIS

Battery health states can be described with internal resistance or capacity. A large resistance or low capacity represents a short lifetime. However, an accurate capacity cannot be obtained easily. Therefore, based on resistance, battery lifetime is divided into four states in this study, namely, state 1, state 2, state 3, and state 4. This partition method is shown in [17], which classifies the states of the bearings based on fault diameters. State 1 represents the initial resistance. States 2 and 3 are middle resistance states. State 4 is the failure-state resistance. The internal resistance increases from state 1 to state 4 sequentially.

Terminal voltage and charging–discharging current obviously change in a battery system. These two parameters can be obtained easily, and they are two of the main variables that are monitored by the battery management system. The outward manifestation of a battery state change can be described with voltage and current. Therefore, terminal voltage and charging–discharging current serve as the source data for this study.

The battery system of a vehicle model proposed in [11] is applied to our research to obtain battery data. Standard velocity conditions, which can enhance the reliability of generated data, are included in the vehicle model. Four conditions are used in this study, namely, ECE + EUDC, FTP72, 10-15, and CCDC, which refer to European, American, Japanese, and Chinese conditions, respectively. All of them are typical conditions and used frequently, as shown in Fig. 1. These conditions are associated with various changes, such as constant velocity and variable speed. Therefore, the data have various forms that benefit the HMMs.

Fig. 1.Vehicular speed variation with time under four different vehicle driving conditions.

The battery system of the vehicle model has 50 lithium ion cells. The four internal resistances are 0.285, 0.57, 0.855, and 1.14 Ω, which map to states 1, 2, 3, and 4, respectively. If one of the resistances is kept constant, then the currents can be estimated according to vehicle speeds. Therefore, terminal voltage can be obtained based on the internal resistance and current.

As shown in Fig. 1, the four conditions have different times. The sample time of this vehicle model is 6 × 10−5 s. The sample interval is set to 400 to obtain sufficient data. In other words, the sampling time is 24 ms. An initial dataset is also generated. As shown in Figs. 2, 3, 4, and 5, the horizontal axis shows the data sample number. Different data quantities under the four conditions exist because of the different time conditions. Positive currents indicate that batteries are discharging, whereas negative currents indicate that batteries are charging.

Fig. 2.Battery data for the four states under ECE + EUDC condition.

Fig. 3.Battery data for the four states under FTP72 condition.

Fig. 4.Battery data for the four states under 10-15 condition.

Fig. 5.Battery data for the four states under CCDC condition.

A statistical method shown in [20] is used to verify the reliability of the gathered data by calculating internal resistances. Given the effect of the current dispersion, the allowed error of statistical method is 15%. The currents that are extremely close are removed in this study. The statistical results are shown in Table I.

TABLE ISTATISTICAL METHOD FOR CALCULATING INTERNAL RESISTANCES

Table I shows that the relative errors of statistical resistance are all less than 5%, which is within the allowable scope. This calculation method verifies the reliability of the data.

 

IV. HMM-BASED ESTIMATION

A. Estimation Framework

As shown in Fig. 6(a), voltages and currents are gathered from the vehicle model. After obtaining these characteristic values through the proposed extraction method, all models are acquired through HMM training. For this training, Baum–Welch and forward–backward algorithms can be used. Correspondingly, λ1,λ2,λ3,λ4 are the training results for the four HMMs. Fig. 6(b) shows the collection of the test data that occurs first. After the feature vectors are obtained from test data, probabilities are calculated with forward or backward algorithms according to the HMMs. Finally, the maximum probability values are estimated as the result. The states that respond to the maximum probability values are the recognition results.

Fig. 6.HMM-based estimation framework.

B. Feature Extraction

Efficient feature parameter sequences, which are used to train HMMs, can improve estimation rates. The characteristic values of the data must be extracted before the HMM training. Figs. 2, 3, 4, and 5 illustrate that for the four states at each condition, many charging–discharging currents with similar magnitudes exist, whereas terminal voltages (U) obviously change. According to the change of the data, we preprocess the data by dividing the voltages by the currents (U/I). Therefore, the dataset is composed of U and U/I values. After the preprocessing, the change of the data is apparent in the time domain.

First, eight parameters (i.e., mean-squared value, effective value, mean value, standard deviation, dispersion coefficient, median, skewness coefficient, and kurtosis coefficient) have been calculated as features, and some parameters change inconspicuously. The mean-square value, effective value, mean value, and median of U clearly change. A normalization method is used to solve this problem because some values are large, whereas some are small. All the voltages are positive. Thus, a max-normalization method can be used to normalize the mean-square value, effective value, mean value, and median of U, as shown in Equ. (3). For U/I, its mean value and its dispersion coefficient apparently change. Given that the currents attain negative values, we can normalize them between [–1, 1], as shown in Equ. (4).

where X is the set of characteristic values before normalization, and X* is the set of characteristic values after normalization. Max is the maximum value of the characteristic values, and Min is the minimum of the characteristic values.

Therefore, after normalizing the characteristic values, they can be regarded as observations for HMM training. Fig. 7 illustrates that for ECE + EUDC condition, every 500 points are treated as a frame, and 100 frames exist altogether. In Fig. 7, the numbers of feature vectors are plotted as the abscissa values and the characteristic values as the ordinate values. We do not discuss the characteristic extraction of the other three conditions in detail because the extraction method is the same. The characteristic values can be calculated in accordance with Equs. (5)–(11) as follows:

Fig. 7.Feature vectors under ECE + EUDC condition.

C. Estimation of Battery States of Health

The internal resistances show an increasing trend in the process of using our battery system. The battery system health states change sequentially from state 1 to state 4. We can set π=[1,0,0,0]T when we initialize the HMM parameters. The transition matrix can be set as

Thus, the present state can transfer only to itself or to the state behind it, as shown in Fig. 8.

Fig. 8.Four-state left-to-right HMM.

Fig. 7 illustrates that the changes of the characteristic values do not conform to normal distributions. However, a mixture of several Gaussian distributions can be used to describe the probabilities of the characteristic values, as indicated in Eqs. (1) and (2). For this study, we set M = 3. In addition, μjl, Σjl, and Cjl can be calculated with a k-means clustering algorithm based on the given data. The algorithm is not discussed comprehensively in this paper. The error precision of k-means is set at 0.0001.

In general, four states for each condition exist, and each state is composed of three Gaussian components. Every Gaussian component has a single mean μ. Therefore, 12 mean values μ must be initialized for the four states. The calculation steps are as follows:

According to Equ. (12), the covariances of the Gaussian densities can be obtained with

where Σj is the covariance of the jth class, Dj is the number of observations for the jth class, and oji and μj are the observations and the mean for the jth class, respectively. Then, 12 mean values and 12 covariance values are obtained. The reshape function is then used to change μ or Σ into a 4 × 3 matrix with responses to the four states and the three Gaussian components. Given that each observation consists of six characteristic values, μ becomes a 6 × 4 × 3 matrix, and Σ becomes a 6 × 6 × 4 × 3 matrix. Three positive numbers with a sum of 1 are generated randomly as the weights because each state has three Gaussian components. This case is the same for the other states.

After initialization, some characteristic value sequences are used to train HMM for a state. Baum–Welch algorithm can be used to train an HMM. The training stops when the number of iterations is less than 40 or the convergence error is less than 0.0001.

Fig. 9 shows the process of estimation by comparing forward probabilities. After training, the characteristic values can be extracted from the test data. According to the training results, forward probabilities can be calculated based on HMM parameters. Calculation starts from the first group of feature vectors. T is the number of groups in total. After the forward probabilities are calculated, the corresponding state of the maximum probability is the estimation result. The next group of feature vectors is then estimated.

Fig. 9.Process of calculating probabilities for test data.

 

V. EXPERIMENTS

As mentioned earlier, the data were obtained from a vehicle model that has several typical conditions. The experiments were conducted under ECE + EUDC, FTP72, 10-15, and CCDC conditions. The condition times were 1200, 1372, 661, and 1314 s. We kept the internal resistance of each state constant. We then gathered data once every 24 ms, after leading in the initial data.

Our experiments were conducted with MATLAB. After collecting the source data, one characteristic value could be obtained for every 500 data points. As mentioned in the previous section, trained HMMs could be acquired. An HMM under one condition might not be able to estimate the state of another condition with satisfactory performance because HMMs were different under different conditions. Therefore, we estimated the states not only under one condition but also under a hybrid condition. All the data were then combined in an order according to the state. For example, the data of states 1, 2, 3, and 4 included the data of states 1, 2, 3, and 4, respectively, under all conditions. If an HMM was trained with the new data, then the HMM could be used to estimate the states under different conditions.

Figs. 10 and 11 illustrate that for the condition with the convergence error, the numbers of iterations were all less than 40. Finally, the probabilities tended to attain invariant values. This finding indicated that an HMM accomplished its training objective.

Fig. 10.Log-likelihoods of HMMs during training under the four conditions.

Fig. 11.Log-likelihoods of HMMs during training under hybrid conditions.

After training, the parameters of each HMM could be obtained. The training results of state 1 for the condition of FTP72 are given as follows:

Gaussian covariance:

where μ represents the mean of the three Gaussian components for state 1, and Σij represents the covariance of the jth component for the ith state.

According to Equs. (15)–(19), the probability for state 1 could be obtained in accordance to Equ. (20), where B1 represents the probability of Ot for state 1, and c11 , c12 , and c13 are the first, second, and third columns of the first row of c in Equ. (19), respectively. μ1 ,μ2 , and μ3 are the first, second, and third columns of μ in Equ. (15), respectively. Ot represents an observation, and d is the dimension of Ot, which is equal to 6 in this study. Thus, B2, B3, and B4 could be obtained based on Equs. (1) and (2).

After obtaining B and the HMM parameters, a forward algorithm can be used to calculate P(O|λ) as follows:

where αi(t)=P(O1,O2,⋯Ot,Qt=i|λ) is the probability of the sequence O1,O2,⋯Ot that ends up in state i, Qt represents the state of Ot , aij is the probability of state i transferring to state j, and N represents the number of states at each condition.

The results were divided into two groups to test the estimation results: one group was under a single condition, whereas the other was under hybrid conditions. A part of the gathered data were selected randomly and regarded as the testing data for each state. Thus, repetition of testing and training data could be avoided. After extracting the characteristic values of the data, these values could be introduced into HMM to calculate the forward probabilities. Fig. 12 shows the estimation results of state 1 under ECE + EUDC condition. Fig. 12 indicates that 35000 data existed, namely, 70 groups of characteristic values. Most log-likelihood probabilities of state 1 were larger than those of the other three states. Only two probabilities did not belong to state 1. Table II indicates that the estimation rate was 97.1%. Fig. 13 shows the estimation results of state 4 for FTP72 condition. The estimation rates are shown in Table II.

Fig. 12.Estimation results of state 1 under the ECE + EUDC condition.

TABLE IIESTIMATION RESULTS FOR BATTERY SYSTEM STATES UNDER A SINGLE CONDITION

Fig. 13.Estimation results of state 4 under FTP72 condition.

Table II indicate that all the estimation rates were greater than 90%. The rates could not achieve 100% because some data of different states were similar, thereby making the characteristic values similar.

The data from a mixture of states under single and hybrid conditions were constructed to test our results further. The hybrid conditions were according to the order of ECE + EUDC, FTP72, 10-15, and CCDC. Fig. 14 shows the estimation result for the mixture states under 10-15 condition. These test data included 11500 data of state 1, 14500 data of state 2, 14000 data of state 3, and 18000 data of state 4. The data were arranged in order from state 1 to state 4. The observation sequence consisted of 23 groups of state 1, 29 groups of state 2, 28 groups of state 3, and 36 groups of state 4. In general, nearly all the observations corresponded to the matching states except for the five observations. Fig. 15 shows the estimation result for mixture states under hybrid condition. The statistical results of the mixture states under single and hybrid conditions are shown in Table III.

Fig. 14.Estimation results of mixture states under 10-15 condition.

Fig. 15.Estimation results of mixture states under hybrid condition.

TABLE IIIESTIMATION RESULTS OF MIXTURE STATES UNDER SINGLE AND HYBRID CONDITIONS

As illustrated in Table III, all the data were selected randomly. The values below the column labels λ1, λ2, λ3, and λ4 are the numbers of correctly estimated results. The estimation rates of mixture states under single and hybrid conditions could achieve values above 90%. Meanwhile, we could use the HMMs that correspond to hybrid conditions to estimate the states that were under single conditions.

ANN is the most frequently used among the available study methods of battery health states [21]. All other factors being equal, this study used BP-ANN to estimate the states. The outputs of BP-ANN were the internal resistances that respond to the states. The inputs were the feature vectors extracted by the aformentioned method. The training data of BP-ANN were the same as the data of HMM under hybrid conditions, and so are the test data. Fig. 16 shows the results estimated with BP-ANN. The estimation results were proved correct when the estimation and actual values were equal. Based on the analyses, 535 sequences were estimated correctly in the entire set of 714 sequences. Therefore, the estimation rate was approximately 74.9%. The proposed method could achieve values of approximately 98% compared with the estimation results of the mixture states under hybrid condition in Table III. This finding further proves that the proposed method can estimate battery health states accurately.

Fig. 16.Estimation results of mixture states under hybrid condition via BP-ANN.

After offline training of the HMM, approximately 0.2 s was taken to recognize a feature vector according to our test. Each feature vector corresponded to 500 data points, namely, 12 s. Therefore, approximately 12.2 s was taken from the collection of the data to the completion of the estimation. The comparison of this finding with the outcomes in [12] indicated that the proposed method could achieve an online battery test. According to [11], batteries had to be offline to obtain lifetime or the number of cycles, and accelerated test were performed, which took a considerable time. Therefore, online estimation of battery states could achieve a good performance.

 

VI. CONCLUSION

This study proposes a method to estimate battery health states based on HMM. Battery life states should be defined according to the internal resistance to estimate battery life. HMM is applied to recognize the life states of the battery. This study proposes a characteristic value extraction method for HMM. The forward log-likelihood probabilities can be obtained according to HMMs. We can identify the state to which the observation belongs by comparing the probabilities. A recognition framework is built to estimate battery health states. In the experimental stage, the test data of the single and hybrid conditions are built. After preprocessing these data, the characteristic value sequences are inputted in the HMM for estimation. The estimation performance can be evaluated according to the estimation rates. Experimental results shows that the estimation rates of battery life states are all above 90%. This method achieves the purpose of recognizing battery system life states. In addition, the proposed method only needs two parameters and saves a significant amount of time. It also provides a good foundation for online prediction of battery life.

References

  1. C. C. Chan and Y. S. Wong, “Electric vehicles charge forward,” Power and Energy Magazine , Vol. 2, No. 6, pp. 24-33, Dec. 2004. https://doi.org/10.1109/MPAE.2004.1359010
  2. T. Horiba, "Lithium-ion battery system," in Proc. the IEEE, Vol. 102, No. 6, pp. 936-950, 2014. https://doi.org/10.1109/JPROC.2014.2321031
  3. P. Bubna, D. Brunner, S. G. Advani, and A. K. Prasad, “Prediction-based optimal power management in a fuel cell/battery plug-in hybrid vehicle,” J. Power Sources, Vol. 195, No. 19, pp. 6699-6708, Oct. 2010. https://doi.org/10.1016/j.jpowsour.2010.04.008
  4. E. Meissner, and G. Richter, “The challenge to the automotive battery industry: the battery has to become an increasingly integrated component within the vehicle electric power system,” J. Power Sources, Vol. 144, No. 2, pp. 438-460, Jun. 2005. https://doi.org/10.1016/j.jpowsour.2004.10.031
  5. J. A. M. Penna and C. L. N. Júnior, "Health monitoring and remaining useful life estimation of lithium-ion aeronautical batteries," in Aerospace Conference. IEEE, 2012, pp. 1-12, Mar. 2012.
  6. Q. Zhang and R. E.White. “Capacity fade analysis of lithium ion cell,” J. Power Sources, Vol. 179, No. 2, pp. 793-798, May 2008. https://doi.org/10.1016/j.jpowsour.2008.01.028
  7. D. Rakhmatov, S. Vrudhula, and D. A. Wallach, “A model for battery lifetime analysis for organizing applications on a pocket computer,” IEEE Trans. Very Large Scale Integr. (VLSI) Syst., Vol. 11, No. 6, pp. 1019-1030, Dec. 2003. https://doi.org/10.1109/TVLSI.2003.819320
  8. C. H. Piao, Z. Huang, L. Su, and S. Lu, “Research on outlier detection algorithm for evaluation of battery system safety,” Adv. Mech Eng., Vol. 6, pp. 1-8, Dec. 2014.
  9. Y. Xie, Z. G. Wang, and Y. S. Zhang, “Development of battery system testing machine,” International Journal of Future Engineering, Vol. 2015, pp. 1-7, 2015.
  10. C. H. Piao, Z. G. Wang, J. Cao, W. Zhang, and S. Lu, “Lithium-ion battery cell-balancing algorithm for battery management system based on real-time outlier detection,” Math Probl Eng, Vol. 4, pp. 1-13, Apr. 2015.
  11. C. H. Piao, Q. F. Yu, C. X. Duan, L. Su, and Y. Zhang, “Virtual environment modeling for battery management system,” J. Electr. Eng. Technol., Vol. 9, No. 8, pp. 1729-1738, Sep. 2014. https://doi.org/10.5370/JEET.2014.9.5.1729
  12. T. Parthiban, R. Ravi, and N. Kalaiselvi, “Exploration of artificial neural network [ANN] to predict the electrochemical characteristics of lithium-ion cells,” Electrochim. Acta, Vol. 53, No. 4, pp. 1877-1882, Dec. 2007. https://doi.org/10.1016/j.electacta.2007.08.049
  13. B. Y. Liaw, R. G. Jungst, and G. Nagasubramanian, “Modeling capacity fade in lithium-ion cells,” J. Power Sources, Vol.140, No.1, pp. 157-161, Jan. 2005. https://doi.org/10.1016/j.jpowsour.2004.08.017
  14. X. S. Hu, F. C. Sun, Y. Zou, and H. Peng, "Online estimation of an electric vehicle lithium-ion battery using recursive least squares with forgetting," in American Control Conference (ACC), pp. 935-940, Jul.2011.
  15. W. Zhang, C. Cho, J. Liu, and X. Han, “A hybrid parameter identification method based on probability and interval for uncertainty structures”. Mechanical Systems and Signal Processing, Vol. 60, pp. 853-865, 2015. https://doi.org/10.1016/j.ymssp.2015.02.009
  16. W. Zhang, C. Cho, J. Liu, and X. Han, “A fast bayesian approach for parameter identifications using adaptive densifying approximation technique,” Inverse Probl. Sci. Eng, Mar. 2015. (online)
  17. Z. J. Liu, Q. Li, X. H. Liu, and C. D. Mu, “A hybrid LSSVR/HMM-based prognostic approach,” Sensors, Vol.13, No.5, pp. 5542-5560, Apr. 2013. https://doi.org/10.3390/s130505542
  18. L. R. Rabiner, "A tutorial on hidden Makrov models and selected applications in speech recognition," in Proc. the IEEE, Vol.77, No. 1, pp. 257-286, Feb. 1989. https://doi.org/10.1109/5.18626
  19. L. R. Rabiner. “An introduction to hidden Markov models,” IEEE ASSP Magazine, Vol. 3, No. 1, pp. 4-16, 1986. https://doi.org/10.1109/MASSP.1986.1165351
  20. C. H. Piao, W. L. Fu, G. H. Lei, and C. D. Cho, “Online parameter estimation of the Ni-MH batteries based on statistical methods,” Energies, Vol. 3, No. 2, pp. 206-215, Feb. 2010. https://doi.org/10.3390/en3020206
  21. J. Kim, S. Lee, and B. Cho, "Discrimination of battery characteristics using discharging/charging voltage pattern recognition," Energy Conversion Congress and Exposition, IEEE. pp. 20-24, Sep. 2009.

Cited by

  1. State of Charge and State of Health Estimation of AGM VRLA Batteries by Employing a Dual Extended Kalman Filter and an ARX Model for Online Parameter Estimation vol.10, pp.1, 2017, https://doi.org/10.3390/en10010137
  2. Design and Implementation of a High-Efficiency Multiple Output Charger Based on the Time-Division Multiple Control Technique vol.32, pp.2, 2017, https://doi.org/10.1109/TPEL.2016.2551723