Gaussian process regression for forecasting battery state of health

03/16/2017
by   Robert R. Richardson, et al.
University of Oxford
0

Accurately predicting the future capacity and remaining useful life of batteries is necessary to ensure reliable system operation and to minimise maintenance costs. The complex nature of battery degradation has meant that mechanistic modelling of capacity fade has thus far remained intractable; however, with the advent of cloud-connected devices, data from cells in various applications is becoming increasingly available, and the feasibility of data-driven methods for battery prognostics is increasing. Here we propose Gaussian process (GP) regression for forecasting battery state of health, and highlight various advantages of GPs over other data-driven and mechanistic approaches. GPs are a type of Bayesian non-parametric method, and hence can model complex systems whilst handling uncertainty in a principled manner. Prior information can be exploited by GPs in a variety of ways: explicit mean functions can be used if the functional form of the underlying degradation model is available, and multiple-output GPs can effectively exploit correlations between data from different cells. We demonstrate the predictive capability of GPs for short-term and long-term (remaining useful life) forecasting on a selection of capacity vs. cycle datasets from lithium-ion cells.

READ FULL TEXT VIEW PDF

Authors

page 1

page 2

page 3

page 4

07/17/2018

Battery health prediction under generalized conditions using a Gaussian process transition model

Accurately predicting the future health of batteries is necessary to ens...
07/19/2019

Latent Function Decomposition for Forecasting Li-ion Battery Cells Capacity: A Multi-Output Convolved Gaussian Process Approach

A latent function decomposition method is proposed for forecasting the c...
10/19/2021

Data Driven Prediction of Battery Cycle Life Before Capacity Degradation

Ubiquitous use of lithium-ion batteries across multiple industries prese...
12/07/2017

Gaussian Process Regression for In-situ Capacity Estimation of Lithium-ion Batteries

Accurate on-board capacity estimation is of critical importance in lithi...
07/30/2019

Modeling long-term capacity degradation of lithium-ion batteries

Capacity degradation of lithium-ion batteries under long-term cyclic agi...
04/15/2021

Piecewise-linear modelling with feature selection for Li-ion battery end of life prognosis

The complex nature of lithium-ion battery degradation has led to many ma...
10/15/2020

Promise and Challenges of a Data-Driven Approach for Battery Lifetime Prognostics

Recent data-driven approaches have shown great potential in early predic...
This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Lithium-ion batteries (LIBs) are increasingly playing a pivotal role in applications ranging from transport to grid energy storage. However, not knowing a battery’s rate of capacity loss or useful life renders the system susceptible to an unanticipated decline in performance or to operate in an unsafe regime [1]. To mitigate this, LIBs are often over-sized and under-used, which results in unnecessary cost inefficiencies. Second life applications – which offer a potential means of offsetting high initial battery costs in EV applications [2, 3] – rely particularly heavily on accurate capacity forecasting, since this determines the potential value of a cell in its secondary application. Hence, accurate prognostics is an important component of a modern battery management system.

Since the performance capability of a cell is largely defined by its nominal capacity and internal resistance, the State of Health (SoH) is typically defined by one or both of these parameters. In the present case we focus on capacity estimation, although the methods we employ could be applied in either case. Predicting the future state of a LIB is non-trivial due to the complex interplay of parameters and the path-dependence of the degradation behaviour 

[4].

The conventional approach to SoH forecasting relies on degradation modelling via electrochemical or equivalent circuit models. Electrochemical models enable some physical interpretation of degradation behaviour; however, simulating all the underlying dynamics responsible for battery degradation is a momentous challenge. Semi-empirical models have also been used to capture the dependence of battery SoH on likely stressing factors. For instance, Ref. 

[5] develops a capacity fade model using temperature, depth-of-discharge (DoD), C-rate and time as inputs. These models have had some success, although their accuracy is limited when environmental and load conditions differ from the training data set, and when the capacity fade depends on additional contributions from unknown sources.

Data-driven approaches are gaining attention due to the increasing availability of large quantities of battery data. There are various ways data-driven techniques could be applied, and each amounts to different assumptions about the nature of the underlying processes. The most common and simple of these is to use a direct mapping from cycle to SoH [6, 7, 8]. Simplistically, this amounts to fitting a curve to the capacity-cycle data, and then predicting future values by extrapolating the fitted curve. This implies that accurate capacity data for some previous cycles in the battery life is available. We note that battery capacity estimation is another important topic; however, the primary concern of this paper is capacity forecasting, i.e. estimating future values of capacity. Hence, we assume that capacity-cycle data is available – in practice such data may be acquired by direct measurement (slow-rate charge-discharge cycles specifically applied at periodic intervals for capacity measurement) or by a variety of other techniques which obviate the need to interfere with the system (such as parameter estimation of equivalent circuit models). For a detailed review of methods for capacity estimation see Ref. [9].

Figure 2: Battery datasets. a, NASA Battery Data Set used with the basic, single-output GP (Figs. 3 - 6), b, Data extracted from Liu et al. [10] and used with the explicit mean function GP (Fig. 7) c, NASA Randomized Battery Usage Data Set used with the multi-output GP (Fig. 8). Note that the capacity is normalised against the starting capacity in each case.

On the one hand, mapping from cycle to SoH is over-simplistic since the cell capacity depends on various factors, and the historical capacity data alone is unlikely to be sufficient for predicting future capacity. On the other hand, it is reasonable to expect the previous capacity to be somewhat correlated with future capacity and hence it is worth exploring the limits of its predictive capability. Moreover, the methods applied to capacity vs. cycle data could subsequently be applied to more informative (possibly higher dimensional) inputs (such as estimates of physical parameters such as lithium inventory or active material vs. cycle; see [4]).

A key advantage of our approach is that it is non-parametric. Non-parametric methods permit a model expressivity (e.g a number of parameters) that is naturally calibrated to the requirements of the data. Hence, such methods can model arbitrarily complex systems, provided enough data is available. For instance, a number of recent studies have used Support Vector Machines (SVMs) for predicting future cell capacity based on it’s historical capacity vs. cycle data and/or from data from multiple identical cells 

[11, 12, 13, 14]. The success of these works demonstrates the advantage of such approaches.

However, an important aspect of prognostics is not only predicting future values of the variable of interest but also expressing the uncertainty associated with these values. Bayesian methods provide a principled approach to dealing with uncertainty. This results in a credible interval comprising probabilistic upper and lower bounds, which is essential for making informed decisions. GPs are a non-parametric Bayesian method that offer a number of other unique advantages which have not been fully exploited in prior work.

There have been a limited number of studies investigating GPs for battery prognostics. Goebel et al. [6] investigated the use of GPs for extrapolating battery internal resistance and subsequently deriving capacity estimates based on a linear relationship between resistance and capacity. They showed that GPs could handle the non-linear data manifested by battery degradation but they concluded that although they were capable of characterizing the uncertainty in the predictions, they lacked long-range predictive capability. Recently, Liu et al. [10] applied Gaussian process regression to battery capacity prediction, and showed that their predictive accuracy was improved when a linear or quadratic Explicit Mean Function (EMF; see Section 2.2) was used. However, the assumption of a linear or quadratic function for the underlying battery behaviour is overly simplistic; it would be preferable to use mean functions inspired by battery degradation models. In a separate study by the same authors [15]

, a Mixture of Gaussian Processes model was used to initialise the parameters of a parametric model using data from identical cells. The model parameters were then recursively updated using a particle filter. Whilst this made use of data from multiple cells, it merely used the data as a means of initialising a parametric model. Superior performance can be achieved by using multi-output models to capture correlations between the capacity trends in each cell, as we show in the present work.

Existing studies fail to exploit many of the capabilities of GPs – in the current study, we present a thorough analysis of these capabilities. Specifically, we use GPs for short-term and long-term, i.e. remaining useful life (RUL), forecasting on a selection of capacity vs. cycle datasets from lithium-ion cells (Fig. 2). First, the most basic GP is studied. We highlight the importance of systematically selecting the correct kernel function (an issue which has been overlooked in previous works) and the advantages of using compound kernel functions. We then present two extensions to this basic approach which enable improved performance: (i) we use explicit mean functions based on known parametric battery degradation models to exploit prior knowledge of battery degradation behaviour and (ii) we use multi-output GPs to effectively exploit available capacity data from multiple identical cells. Lastly, it is worth underscoring the fact that all the methods presented here are rigorously evaluated using different proportions of training data (i.e. using capacity data up to the current cycle for training, with various different values of the current cycle). This is in contrast to most previous studies on battery prognostics, which merely evaluate the accuracy of the predictions made at a single arbitrarily selected cycle (e.g. the first half of training data).

2 Methods

The goal of a regression problem is to learn the mapping from inputs to outputs , given a labelled training set of input-output pairs , where is the number of training examples. In our case, the input is the integer number of cycles applied up to the current cycle, and the output is the corresponding measured capacity (all capacities are normalised against the initial, maximum capacity). We assume the underlying model takes the form , where represents a latent function and is an independent and identically distributed noise contribution.

The learned model can then be used to make predictions at test indices (cycles at which we wish to estimate the capacity) for unknown observations , where is the number of test indices. In our case we are interested in extrapolation to forecast future values of capacity (and so the test indices are the future cycles up until the end of life (EoL)). The EoL is reached when the capacity drops below a predefined threshold denoted by ; the corresponding cycle number at which this occurs is denoted . Note that is a-priori unknown, we will infer it using our model.

We evaluate our methods using two different metrics, which reflect the quantities of interest in a practical application: the first is the root-mean-squared error (RMSE) in the capacity estimation, which we denote . At a given cycle, , where we train using data up to the current cycle () and test on the remainder (), is defined as

(1)

where is the estimate given data only up to and including . By taking only one training proportion (i.e. a single value of ), we would obtain just a single value. This would run the risk of misrepresenting the true performance of the method over the full cycle-life. For instance, it would not be acceptable for the estimates to be accurate after the first 30 cycles are observed but to then diverge when the next 5 cycles are received. Hence, in order to thoroughly validate our methods, we test the performance using all values of from 20% of the cycle-life onwards. We thus obtain a value of at each cycle, and can plot vs. cycle (see later). This is in contrast to most previous studies, which use just a single arbitrary value of .

The second metric is the RMSE in the EoL prediction, which we denote . For each value of , there is a single EoL prediction. Hence, we can compare the predictions at all values against the true EoL to obtain a mean error, defined as

(2)

where is the estimate given data only up to and including , and is the number of cycles at which we test (i.e. the number of different values of ).

Note that this metric neglects the intermediate values of the capacity between the current cycle and the EoL. For instance, two cells could have very different capacity trajectories over the duration of their lives, whilst still reaching their EoL after a similar number of cycles. Hence, a good model should have low values of both of the above metrics.

2.1 Gaussian process regression

This section gives an overview of Gaussian process regression. For simplicity, our presentation assumes the inputs and outputs are scalar, since we only consider 1-D capacity vs. cycle data in this work. However, the analysis can easily be extended to multidimensional inputs, if desired. A more detailed presentation of Gaussian process regression (GPR) is given in Chapter 15 of [16], and a more comprehensive book on the topic is [17].

A Gaussian process (GP) defines a probability distribution over functions, and is denoted as:

(3)

where and are the mean and covariance functions respectively, denoted by

(4)
(5)

For any finite collection of input points, say , this process defines a probability distribution that is jointly Gaussian, with some mean and covariance given by .

Gaussian process regression is a way to undertake non-parametric regression with Gaussian processes. The key idea is that, rather than postulating a parametric form for the function and estimating the parameters (as in parametric regression), we instead assume that the function is a sample from a Gaussian process as defined above.

The most common choice of covariance function is the squared exponential (SE), defined by

(6)

The covariance function parameters111

The term ‘non-parametric’ is evidently a misnomer since the covariance function contains parameters; however, these are technically hyperparameters 

[17] since they are the parameters of a prior function., and , control the -scaling and -scaling, respectively.

The SE kernel is a stationary kernel, since the correlation between points is purely a function of the difference in their inputs, . We only consider stationary kernels in this work. The choice of the SE kernel makes the assumption that the function is very smooth (infinitely differentiable). This may be too strict a condition for many physical phenomena [18], and so a common alternative is the Matérn covariance class:

(7)

where is a smoothness hyperparameter (larger implies smoother functions) and is the modified Bessel function. This equation simplifies considerably for half-integer . The most common examples are and , which we denote as Ma5 and Ma3 in this work. The final covariance we consider in this paper is the periodic covariance,

(8)

which is suitable for functions with periodic behaviour. The hyperparameter is the period of .

Compound kernels can be created by affine transformations of individual kernels. We limit our attention in this paper to addition of kernels, since these were found to be capable of expressing the structure of the battery data under study, and since they lead to greater ease of interpretation than multiplicative kernels. Ref. [19] provides a more detailed discussion of kernel composition and also addresses the issue of automating the choice of kernels. In summing kernels, the data are modelled as a superposition of independent functions. This can be interpreted as different processes operating at different input and/or output scales.

The mean function is commonly defined as since the GP is flexible enough to model the true mean arbitrarily well. In Section 2.2, we consider parametric models (based on battery degradation models) for the mean function, such that the GP models only the residual errors.

Now, if we observe a labelled training set of input-output pairs , predictions can be made at test indices by computing the conditional distribution . This can be obtained analytically by the standard rules for conditioning Gaussians [16]

, and (assuming a zero mean for notational simplicity) results in a Gaussian distribution given by:

(9)

where

(10)
(11)

The values of the hyperparameters may be optimised by minimising the negative log marginal likelihood defined as

. The NLML automatically performs a trade-off between bias and variance, and hence avoids over-fitting the data. Given an expression for the NLML and its derivative w.r.t

(both of which can be obtained in closed form), we can estimate using any standard gradient-based optimizer. In our case, we used the GPML toolbox [20] implementation of conjugate gradients. Since the objective is not convex, local minima can be a problem. However, this was not an issue in the present study, as was verified by repeated diverse initialisations using Latin hypercube sampling [21] yielding identical results. Minimising the NLML further allows us to perform model selection, i.e. to choose the kernel function, not just the values of the hyperparameters for a given kernel function. Kernel function selection is perhaps the most important aspect of GP modelling, yet it has not been addressed in a principled manner in the aforementioned battery degradation literature [6, 10, 15]

2.2 Explicit mean functions

Explicit mean functions (EMFs), also referred to as explicit basis functions [17] or semi-parametric Gaussian processes [16], allow us to express prior information we may have about the expected functional form of the model. For instance, let’s say we have a battery degradation model which predicts capacity fade of the form where are the parameters of the degradation model, but we believe that there may be other contributions to the battery capacity fade that the model does not account for. We can then model the capacity as the sum of a GP and the parametric model:

(12)

This formulation expresses that the data are close to the degradation model with the residuals being modelled by a GP (and a noise term). When fitting this model, we optimize over the degradation model parameters jointly with the hyperparameters of the covariance function.

2.3 Multi-output GPs

If we have capacity vs. cycle data for multiple batteries undergoing similar loading profiles, we may expect the capacity trends to be correlated. This prior assumption can be modelled using multi-output GPs. This section draws largely from previous works on multi-output GPs [22, 23]; and further details of similar methods can be found in those works.

A function with multiple outputs can be dealt with by treating it as having a single output and an additional input. This additional (discrete) input, , can be thought of as a label for the associated output. Let’s say we have cells whose inputs and outputs are , where , and is the number of training points associated with cell . Each input of the multi-output model is then a vector defined as , and this has an associated scalar output . Assuming, for notational simplicity, that all cells are observed at the same set of cycles and hence for all , we can now write the entire set of inputs and outputs as and . A new covariance function can then be defined as the product of a label covariance and a standard covariance

(13)

where captures the correlation between outputs, and is the covariance with respect to cycles for a given output. The covariance matrix for all n cells is then the matrix defined by

(14)

where is the Kronecker product, , and and are the hyperparameters for and respectively. Note that the assumption that for all cells can easily be relaxed such that the model may be applied to problems with capacities observed at different cycles for each cell.

Lastly, we parametrise the label covariance matrix using a spherical parametrisation scheme [22]:

(15)

where is a vector of output scales corresponding to the different values of , and is an upper triangular matrix of size , whose th column contains the spherical coordinates in of a point on the hypersphere , followed by the requisite number of zeros. For example, for a three dimensional space is

(16)

Note that this ensures that has ones across its diagonal and hence all other entries may be thought of as akin to correlation coefficients, lying between and .

The full set of hyperparameters, , therefore consists of the values of and . If the output scales are expected to be the same for each cell (as we assume in the present work), then the values of can be fixed to a single value, . In this case, the total number of hyperparameters required is .

Once a suitable covariance has been defined, parametrisation and test prediction can be achieved in the same manner as that of single-output GPs, using optimisation of the NLML to select the hyperparameters of the joint covariance matrix. The advantage of the multi-output scheme is that similarities between cells can be captured (through the shared hyperparameters, ), without imposing strict equivalence (through the cell-specific differences induced by the label hyperparameter, ). We employ a standard implementation of this method, which scales as . However, we note various different efficient/approximate schemes have been proposed in the literature, based on approximating input data with pseudo points [24], exploiting grid structure [25] and exploiting the recursivity of the estimation problem in online settings [22, 26, 27]; and these could be used if larger numbers of cells/training points were required.

3 Basic single-output GP – Results

The first example we consider is a basic single-output GP with a constant prior mean set equal to the mean of the observed capacity data. The dataset considered consists of capacity vs. cycle data obtained from the NASA battery data repository (see Appendix A, and Fig. 2a). Here, we present the results for Cell A1, although similar results were obtained for Cells A2-A4.

3.1 Kernel function selection

It is apparent from Fig. 2a that the capacities experience a long-term downward trend with occasional, apparently discontinuous, step increases. In other words, they exhibit a combination of short- and long- term structure. The physical explanation for the short term jumps is not clear – it may in fact be an artefact of the measurement process. For instance, the data indicates that these increases tend to occur after long periods without cycling, possibly when reference tests were performed, which indicates that the capacity increase may be related to these pauses. In any case, accounting for these local variations by means of appropriate kernel function selection is essential since: (i) the capacity measurement provided in a real application could also manifest similar artefactual variations, and (ii) accounting for such artefacts is necessary in order to correctly express the uncertainty in subsequent measurements obtained via the same process.

In order to identify a suitable compound kernel function, we assessed 10 different compound kernels: namely, all possible pairs of the following base kernels: Matérn 5/2 (Ma5), Matérn 3/2 (Ma3), Squared Exponential (SE) and Periodic (Pe). The NLML of the GP when applied to the full capacity vs. cycle data was used to evaluate the kernel combinations. The ranking of these results is shown in the bar-plot of Fig. 3. This plot shows that four combinations achieve an NLML between 527 and 530, and hence perform similarly well. The performance then drops off more rapidly for the subsequent 5 combinations, and finally the last combination (Pe+Pe, NLML = 97.1) performs significantly worse than the others. This is perhaps not surprising given the lack of any exactly periodic structure in the data, let alone a superposition of two periodic components.

Figure 3: Ranking of kernel function combinations by marginal likelihood. The coloured bars for selected kernel pairs correspond to the coloured lines in Figs. 4a and 4b.

Although Ma3+Ma3 was the highest ranked pair, it performed only marginally better than the second ranked pair, Ma5+Ma3 (red bar in Fig. 3). Hence we chose the latter for subsequent analysis because the contributions of each base kernel are easily interpretable.

3.2 Kernel function decomposition

In order to highlight the significance of kernel function selection, the posterior mean and covariance for selected kernel pairs are decomposed into their constituent contributions in Fig. 4 (using equations 2.17 and 2.18 from [28]).

Figure 4: Decomposition of posterior functions into constituent kernels.

The top plot in each column shows the posterior mean and credibility interval of the compound kernel. For this and all subsequent figures, the black markers indicate data-points used for training, and the continuous black line indicates testing data, the coloured line indicates the mean of the posterior, and the correspondingly coloured shaded region indicates the area enclosed by the mean plus or minus two standard deviations. The vertical line indicates the extent of the training data.

a, Ma5+Ma3 (the selected kernel pair); b, SE+Per (a poorly performing kernel pair); c, SE (a singleton kernel)

Fig. 4a shows the decomposition of the selected Ma5+Ma3 kernel pair, evaluated using 55% of the cycle-capacity data and tested on the remainder. The sub-plots beneath each main plot show the individual contributions, including the noise covariance (which is implicitly included in each model). It can be seen that the Ma5 term captures the smooth long-term downward trend as desired, with an increasing uncertainty as it is projected into the future; the Ma3 term captures the short term variation; and the noise term models the remaining small scale variation in the data. As a result, the extrapolation performance at this particular cycle is quite good, as indicated by the close match between the mean prediction and the true data for the remaining cycles. Fig. 4b shows the result for a kernel pair which performed less well (NLML = 500, Fig. 3). In this case, the long-term trend is captured by the periodic component, whilst the Ma5 term is forced to model the short term variation. This indicates that there is little actual periodic structure present in the data, since the optimised length-scale of the periodic term is similar to the time-scale of the data, and hence only half a cycle of the periodic term is modelled. The predictions from this model indicate that the capacity will increase in the subsequent 100 cycles, before decreasing again and then repeating this behaviour periodically, which is clearly unrealistic. Finally, Fig. 4c shows the decomposition of a singleton SE kernel function (i.e. not the sum of two base kernels). In this case, the SE term is forced to try to model both the long and short term trends in the data. This results in the long-term trends being heavily influenced by the short term variations. Hence, when the short term step increase at cycle 90 is reached, the model predicts a smooth increase (then subsequent decrease) in the gradient, which is unrepresentative of the data. Moreover, there is obvious structure still present in the noise contribution (bottom sub-plot), which indicates that not all of the structure in the data has been captured by the model. Both of these attributes are clearly undesirable and lead to poor extrapolation performance.

3.3 Short-term lookahead prediction

Having selected a suitable kernel function, we now investigate the extrapolation performance using training data up to various different current cycles, . Fig. 5 shows the performance of the method for n-step lookahead forecasting. Fig. 5a shows the posterior mean and covariance using prediction horizons of 5, 10, 20 and 40 cycles. For each cycle number, the posterior is obtained using data up to the current cycle, and the mean and standard deviation are evaluated at the cycle n steps ahead of the current cycle. This is repeated at every cycle up until the vertical dashed line (equal to the number of the last cycle minus the size of the prediction horizon). Hence, the posterior mean and variance shown in the plots is the amalgamated posterior from all of these cycles.

Figure 5: Short term lookahead prediction performance. a, Posterior distribution of the Ma5+Ma3 GP for a range of different prediction horizons as indicated. b-d, Box-plot of capacity prediction errors for b, the Ma5+Ma3 GP, c, the singleton Ma5 GP and d, an autoregressive moving average of order 10. e, of each method plotted on the same axis with the y-axis in log scale for ease of comparison.

The plots show that the method is highly accurate for relatively small but that the performance diminishes as is increased. This is hardly surprising given that we have no a-priori reason to believe that the capacity data up to a given cycle has strong predictive capabilities for distant future cycles.

However, it is clear that the principled selection of the kernel function has been advantageous, since the method clearly outperforms the singleton Ma5 GP. Fig. 5b shows box-plots of the extrapolation error for various prediction horizons for the Ma5-Ma3 GP, whilst Fig. 5c shows the same data for the singleton Ma5 GP. Lastly, we evaluated a more conventional time-series approach, an autoregressive moving average of order 10 (i.e. using the 10 most recent data-points for training at each cycle), which is shown in Fig. 5c.

The Ma5+Ma3 GP has the best performance of these three, as shown by Fig. 5e which plots the RMSE against prediction horizon of each of the three cases on a single axis for ease of comparison. This can be attributed to the fact that the additive kernels are capable of handling the processes of different scales – with the short term variation being handled by one of the constituent kernels and the long-term downward trend by the other.

3.4 Remaining useful life prediction

Depending on the requirements of the system, predicting future capacity 10 cycles ahead with reasonable accuracy may be sufficient to facilitate corrective action. In some cases, however, it may be desirable to accurately estimate the remaining useful life (RUL) from the earliest stage possible, in which case accurate long-term prediction is important.

Figure 6: End of life (EoL) estimation performance. a-c, Posterior distribution of the Ma5+Ma3 GP at 3 different proportions of the training data. The horizontal black line indicates the capacity at the EoL. d

, Predicted cycle no. at EoL vs. training data proportion for the GP and AR methods. The shaded region indicates the confidence interval in the EoL prediction. Note that there is no green shaded area since the AR does not provide confidence bounds. The horizontal black line indicates the true EoL.

Fig. 6

shows the performance of the method for estimating the end of life (EoL) at three different current cycle values. The method shows some desirable properties, such as converging to the correct EoL estimate as more training data are acquired and having large credible intervals when the extrapolation is far into the future. It also outperforms the baseline autoregressive model. However, the EoL predictions are poor at the initial cycles when there are limited training data available. For instance, it can be seen from Fig. 

6a-b that the EoL is first severely over-estimated and then severely underestimated as new data are received. This results in only moderate overall performance as indicated by the corresponding values (see inset of Fig. 6d. This plot also shows the credibility intervals in the EoL estimate. These were obtained by extrapolating the upper and lower confidence intervals in the capacity estimates until they reached the EoL value. In some cases the upper confidence interval never crosses the lower threshold and hence the upper EoL estimate is very large or infinite (extending beyond the upper limit of the y-axis in this plot). This is an unfortunate consequence of the fact that the model is not restricted to be monotonic, as we discuss in Section 6. However, it is promising that from about a third of the training data onwards, the true EoL estimate always remains within the lower confidence interval.

4 Encoding exponential degradation via EMFs – Results

In order to improve the long term predictive forecasts, we now consider a single-output GP with an explicit mean function based on a battery degradation model from the literature. The dataset in this case consists of capacity vs. cycle data extracted from [13] (see Appendix A, and Fig. 2b). Here, we apply the method to Cell B3 since this exhibits the greatest deviation from the exact exponential decay behaviour of the model, and hence benefits most from the additional non-parametric contributions provided by the GP.

We use an explicit mean function of the form . The model parameters are thus given by . This function is equivalent to the degradation model used by Goebel et. al [6]. It could also be viewed as a special case of the three-parameter degradation model used by Wang et al. [13] with the “empirical factor” set to zero (i.e.  in Eq. (21) of [13]).

We consider three different GP models:

  1. , where

  2. , where

Model (a) assumes that the response consists of the specified exponential mean function plus a GP with Ma3 covariance. Model (b) is identical to (a) but with a noise covariance; since the covariance is simply white noise, this is essentially just a parametric model. Model (c) is the basic GP that gave best results in the previous section (i.e. with a zero mean function but with a covariance function consisting of a sum of Ma5 and Ma3 terms).

Fig. 7

shows the posterior predictions at two arbitrarily chosen cycles (top) and the estimated EoL (bottom) for each of the three cases.

Figure 7: Explicit mean function GP results. a-c, (top) Posterior distribution at 2 different proportions of the training data for a, EMF+Ma3, b, EMF+Noise and c, Ma5+Ma3. The horizontal black line indicates the capacity at the EoL. (bottom) Predicted cycle no. at EoL vs. training data proportion for the corresponding methods. The shaded region indicates the credible interval in the EoL prediction. The horizontal black line indicates the true EoL cycle.

It can be seen from this figure that model (c) performs poorly in the region of 60 cycles, where the capacity temporarily levels off. This is because the model has no prior assumption encoded about the degradation behaviour (other than the smoothness assumptions encoded by the covariance) and hence, when only the data up until this time step are used for training, it predicts a subsequent upwards trend in the capacity. This can be seen from the bottom plot of Fig. 7c in the same region, which shows that the EoL prediction extends beyond the upper limit of the y-axis. In contrast, models (a) and (b) cope with this temporary stationary behaviour and correctly predict a continuing exponential degradation for subsequent time steps. As a result of this, models (a) and (b) also have lower overall values than model (c). Hence, these results show that the use of an explicit mean function improves the overall accuracy of the EoL predictions.

Comparing model (a) against model (b), we can see the advantage of using a GP model over a purely parametric model. Since model (b) assumes that any deviation from the exponential model must be noise (since the kernel function is defined to be white noise), the optimised noise parameter becomes quite large and the credible interval increases to encompass the spread in observed capacities. In contrast, model (a) models the deviations with an Ma3 kernel, and hence can fit the non-exponential trend quite well, whilst maintaining a sensible assumption for the noise levels.

Lastly, it should be noted that models (a) and (b) are both overconfident in their predictions (the credibility intervals in the EoL estimation in the bottom plots are too narrow and do not encompass the true EoL for most of the training proportions). Moreover, in some cases the uncertainty is seen to decrease with increasing cycle number, in particular in model (b). This is obviously not desirable behaviour and is an indication that the assumption of the functional form of the underlying model (i.e. the exponential degradation model) is not entirely valid for this data.

5 Capturing cell-to-cell correlations via multi-output GPs – Results

The final example we consider is a multi-output GP. The dataset in this case consists of capacity vs. time data from three cells with randomised load profiles (see A, and Fig. 2c). Since the cell cycling is randomised, a parametric degradation model (which is a function of the number of cycles) would be unsuitable. Hence, we rely on exploiting data from existing cells to improve the long-term forecast. We apply the method to cell C3 using data from cells C1 and/or C2 for training as follows.

We considered four different models:

  1. A multi-output GP with 3-outputs: the capacity data for cells C1-C3. The model is trained on all capacity data for cells C1 and C2, along with data up until the current cycle for cell C3, in the same manner as the previous test cases.

  2. A multi-output GP with 2-outputs: the capacity data for cells C1 and C3 (omitting C2). The model is trained on all of the capacity data for cell C1, along with data up until the current cycle for cell C3 as before.

  3. A multi-output GP with 2-outputs as in (b) but provided with data from C2 instead of C1.

  4. A standard single-output GP trained using just data up to the current cycle for C3.

The multi-output models were defined as described in Section 2.3, with the where is the label covariance matrix (Eq. 15), and . The covariance of the single output model was simply .

The training data and results for these four cases are shown in Fig. 8. Figs. 8a-d show the data used for training at a selected time step (top), the posterior predictions at the corresponding time step (middle), and the estimated EoL as a function of the number of cycles of cell C3 training data used (bottom) for each of the four cases. Figs. 8e-g show summary statistics for all four cases: Fig. 8e shows as a function of the proportion of the training data (for cell C3) used. Fig. 8f shows a boxplot of the same data. Fig. 8g shows a bar plot of .

It can be seen from these results that the multi-output models (a-c) have better predictive performance than the single output model (d). For instance, in the middle subplots in Fig. 8a-d (which show the posterior prediction at 75 days), all of the multi-output models accurately track the future capacity up until the predicted EoL, whereas the single output method does not anticipate the sudden drop in capacity at 125 days, and hence over-predicts the subsequent capacity. Indeed, the estimates of the EoL of cell C3 are quite accurate throughout the entire range of training data (bottom subplots) for the multi-ouput methods, but are shown to fluctuate significantly as additional training data are received in the single-output case. This is also reflected in the overall and values depicted in Figs. 8e-g.

Interestingly, there are significant differences in the performance of models b and c (which are both two output models); for instance, model b, which is trained on cell C1, has an of 18.1, whereas model c, which is trained on cell C2, has an of 4.86. Likewise, there is greater uncertainty (larger error bounds) in the posterior predictions of model b than those of model c (see e.g. middle subplots of Fig.8b and c). This indicates that the capacity trend of cell C3 shares a stronger correlation with that of cell C2 than that of cell C1.

It is perhaps even more interesting to note that model a (which has 3-outputs) is not negatively affected by the inclusion of data from Cell 1. Rather, the model naturally puts more weight on the data from cell C2 (than from cell C1) since this shows a stronger correlation with cell C3. As a result, the performance of model a turns out to be superior to either model b or model c in this case (Figs. 8f-g).

There are a number of obvious caveats to be aware of in the present case: the method has performed particularly well here because the dataset consists of cells cycled under the same thermal conditions with statistically equivalent applied current profiles222Note that the applied current profiles are generated by a stochastic algorithm [29] and hence they are not identical from cell to cell. However, since the algorithm is the same for each cell, the global properties of these current profiles are the same, and so they manifest similar degradation behaviour.. Hence, there were strong correlations between the data for these cells. Whilst this could occur in practice in some limited cases (for instance, multiple cells in a pack could experience the same conditions), in most cases of interest we would wish to use data from identical cells but cycled under differing conditions. The method could of course be extended to account for such differences by including additional inputs, such as temperature or depth of discharge, although this would require data from many more cells to cover a broad range of operating conditions. For such (larger) datasets, more efficient implementation methods must be used, such as those discussed in Section 2.3.

However, the present results indicate that the multi-output method has promise. In particular, it is favourable over previous GP capacity estimation methods that use data from identical cells, which merely identify an optimal prior estimate for the parameters of a parametric model, which are then updated sequentially [10]. In such a setting the advantage of the prior information is quickly lost. In contrast, the present method exploits correlations in cell behaviour over the duration of the cell life, which leads to the improved results obtained here.

Figure 8: Multi-output GP results. a-d, Data and results for a, 3-output, b, 2-output (i), c 2-output (ii), and d single-output GPs. (top) Battery data; black markers indicate training data and red line indicates unseen testing data. (middle) Posterior distribution using 40% of the training data and (bottom) Predicted cycle no. at EoL vs. training data proportion. e, RMSE vs. proportion of training data; f, Box-plot of RMSE data; and g, Bar plot of RMSE on EoL prediction. Note that the colours of the lines/shaded regions in a-d correspond to the colours of the lines and bars in e and g.

6 Conclusions

This paper has demonstrated the applicability of GPs to battery capacity forecasting, and highlighted some of their key advantages for this application. We have shown the advantage of using compound kernel functions for capturing complex behaviour and highlighted the importance of proper kernel function selection by means of optimising w.r.t. the NLML. We have shown that using an explicit mean function based on known degradation models, it is possible to improve the predictive performance of the baseline GP. Indeed, we argue that one should never just consider a purely data-driven approach if prior information on the functional form of the underlying model is available; or a purely parametric approach if the model information is not known with certainty, since in either case one would be neglecting a valuable source of information. Lastly, we have shown that multi-output models can effectively exploit data from multiple cells to significantly improve forecasting performance. The main bottleneck of this approach is the computational cost of handling large numbers of outputs; although we applied this method to a small dataset of just 3 cells in the present case, efficient approaches exist which allow scaling to very large numbers of outputs.

The present work aims to highlight just some of the advantages of GPs. Several extensions/variations on this work are also possible. For instance:

  • We know a-priori that the normalised cell capacity must take a value between 0 and 1. In the present work, this is not enforced and at times the GP may predict values outside of this range (in particular for single-output GPs with limited training data). One way to enforce positive values is to apply a logit-transform to the data as a pre-processing step and apply a GP to the resulting data, then reverse transform the result.

  • The notion that the future capacity depends only on the past values is naïve. A more comprehensive study could include DoD, temperature, idle time etc. as inputs. Whilst such dependencies have been considered in a parametric framework in previous works (e.g. [5]), the application in a GP framework has not yet been considered, Such an approach would require data from many more cells to cover a broad range of operating conditions.

  • Cells often exhibit regime changes during aging (e.g. a transition from a linear capacity vs. cycle trend to a non-linear regime with accelerated aging [30]). GPs have the capability to account for such transitions; specifically, change-point kernels [31, 32] could be used to locate change points in an online manner, and hence more accurately model the regimes before and after a transition than would be possible with a single model over the entire domain.

  • The GP framework could also be applied using higher dimensional input data, such as open circuit voltage curves or electrochemical impedance spectra acquired at periodic cycles.

We hope that the present study has provided motivation for further study of GPs applied to battery capacity forecasting.

Appendix A Data

The datasets (Fig. 1) consist of capacity vs. cycle data obtained from either open-access NASA repositories or extracted directly from the plots in previous papers. In each of these cases, the results obtained from a single selected cell were presented in this paper; similar results were obtained for the other cells in each dataset, but for brevity these were not presented.

Dataset A is obtained from the NASA Ames Prognostics Center of Excellence Battery Data Set[33]. The experiments consisted of applying several charge-discharge cycles to a number of commercially available 18650 lithium-ion cells at room temperature in order to achieve accelerated aging. Charging was carried out via a constant-current, constant-voltage regime: charging at constant current at 1.5 A until the voltage reached the cell upper voltage limit of 4.2 V, then applying a constant voltage until the the current dropped to 20 mA. Discharging was carried out at a constant current of 2 A until the cell voltage fell to 2.7 V, 2.5 V, 2.2 V, and 2.5 V for batteries 5, 6, 7, and 18, respectively. The experiments were stopped when the batteries had lost 30% of the initial capacity. Additional data (including temperature and electrochemical impedance) are also provided in the online repository, although these were not used in the present study. Full details of the experiments are available in Ref. [7].

Batteries 5, 6, 7, and 18 (in the numbering of the online repository) were chosen to be analysed in the present work, since these have the most data-points; and because they have previously been chosen for analysis in earlier works [8, 10], and hence the present selection facilitates a comparison with those works. For consistency, these cells are labelled as A1, A2, A3 and A4 respectively in the present paper (Fig. 2a). The results for Cell A1 are presented in Section 3.

Dataset B was obtained by manually extracting the data from the capacity vs. cycle plots in Fig. 1 of Ref. [8], using Matlab GRABIT (a tool for extracting raw data from plot images). These data were originally obtained from charge-discharge experiments on a 0.9 Ah lithium-ion cell. The discharge rate was 0.45 A and the currents were cut off at the upper and lower voltage limits specified by the battery manufacturer. Further details of the experiments are available in Ref. [8]. These cells are denoted B1, B2, B3 and B4 in the present paper (Fig. 2b). The results for Cell B3 are presented in Section 4.

Dataset C is obtained from the NASA Ames Prognostics Center of Excellence Randomized Battery Usage Data Set [29]. The experiments consisted of applying randomized sequences of current loads ranging from 0.5 A to 4 A to a number of LG Chem. 18650 lithium-ion cells at a range of environmentally controlled temperatures in order to achieve accelerated aging. The sequence was randomized in order to better represent practical battery usage. After every fifty randomized discharging cycles, the capacity was measured via a low-rate charge-discharge cycle, and the electrochemical impedance were measured via an EIS sweep. The experiments are described in detail in Ref. [34].

The first three cells from Dataset 1, denoted RW9, RW10 and RW11 (in the numbering and labelling of the online repository) were chosen for analysis. These cells were cycled at room temperature and express highly non-linear and non-parametric behaviour. The cells are labelled as C1, C2 and C3 in the present paper (Fig. 2c). The results for Cell C1 are presented in Section 5.

References

  • [1] E. Cabrera-Castillo, F. Niedermeier, A. Jossen, Calculation of the state of safety (sos) for lithium ion batteries, Journal of Power Sources 324 (2016) 509–520.
  • [2] J. Neubauer, A. Pesaran, The ability of battery second use strategies to impact plug-in electric vehicle prices and serve utility energy storage applications, Journal of Power Sources 196 (23) (2011) 10351–10358.
  • [3] C. R. Birkl, D. F. Frost, A. M. Bizeray, R. R. Richardson, D. A. Howey, Modular converter system for low-cost off-grid energy storage using second life li-ion batteries, in: Global Humanitarian Technology Conference (GHTC), 2014 IEEE, IEEE, 2014, pp. 192–199.
  • [4] C. R. Birkl, M. R. Roberts, E. McTurk, P. G. Bruce, D. A. Howey, Degradation diagnostics for lithium ion cells, Journal of Power Sources 341 (2017) 373–386.
  • [5] J. Wang, P. Liu, J. Hicks-Garner, E. Sherman, S. Soukiazian, M. Verbrugge, H. Tataria, J. Musser, P. Finamore, Cycle-life model for graphite-LiFePO 4 cells, Journal of Power Sources 196 (8) (2011) 3942–3948.
  • [6] K. Goebel, B. Saha, A. Saxena, J. R. Celaya, J. P. Christophersen, Prognostics in battery health management, IEEE instrumentation & measurement magazine 11 (4) (2008) 33.
  • [7] B. Saha, K. Goebel, Uncertainty management for diagnostics and prognostics of batteries using Bayesian techniques, in: Aerospace Conference, 2008 IEEE, IEEE, 2008, pp. 1–8.
  • [8] W. He, N. Williard, M. Osterman, M. Pecht, Prognostics of lithium-ion batteries based on Dempster–Shafer theory and the Bayesian Monte Carlo method, Journal of Power Sources 196 (23) (2011) 10314–10321.
  • [9] A. Farmann, W. Waag, A. Marongiu, D. U. Sauer, Critical review of on-board capacity estimation techniques for lithium-ion batteries in electric and hybrid electric vehicles, Journal of Power Sources 281 (2015) 114–130.
  • [10] D. Liu, J. Pang, J. Zhou, Y. Peng, M. Pecht, Prognostics for state of health estimation of lithium-ion batteries based on combination Gaussian process functional regression, Microelectronics Reliability 53 (6) (2013) 832–839.
  • [11] X. Hu, J. Jiang, D. Cao, B. Egardt, Battery health prognosis for electric vehicles using sample entropy and sparse Bayesian predictive modeling, IEEE Transactions on Industrial Electronics 63 (4) (2016) 2645–2656.
  • [12] M. A. Patil, P. Tagade, K. S. Hariharan, S. M. Kolake, T. Song, T. Yeo, S. Doo, A novel multistage Support Vector Machine based approach for li ion battery remaining useful life estimation, Applied Energy 159 (2015) 285–297.
  • [13] D. Wang, Q. Miao, M. Pecht, Prognostics of lithium-ion batteries based on relevance vectors and a conditional three-parameter capacity degradation model, Journal of Power Sources 239 (2013) 253–264.
  • [14] A. Nuhic, T. Terzimehic, T. Soczka-Guth, M. Buchholz, K. Dietmayer, Health diagnosis and remaining useful life prognostics of lithium-ion batteries using data-driven methods, Journal of Power Sources 239 (2013) 680–688.
  • [15] F. Li, J. Xu, A new prognostics method for state of health estimation of lithium-ion batteries based on a mixture of Gaussian process models and particle filter, Microelectronics Reliability 55 (7) (2015) 1035–1045.
  • [16]

    K. P. Murphy, Machine learning: a probabilistic perspective, MIT press, 2012.

  • [17] C. E. Rasmussen, Gaussian processes for machine learning.
  • [18]

    M. L. Stein, Interpolation of spatial data: some theory for kriging, Springer Science & Business Media, 2012.

  • [19] D. K. Duvenaud, J. R. Lloyd, R. B. Grosse, J. B. Tenenbaum, Z. Ghahramani, Structure discovery in nonparametric regression through compositional kernel search., in: ICML (3), 2013, pp. 1166–1174.
  • [20] C. E. Rasmussen, H. Nickisch, Gaussian processes for machine learning (GPML) toolbox, J. Mach. Learn. Res. 11 (2010) 3011–3015.
    URL http://dl.acm.org/citation.cfm?id=1756006.1953029
  • [21] R. L. Iman, Latin hypercube sampling, Encyclopedia of Quantitative Risk Analysis and Assessment.
  • [22] M. Osborne, Bayesian Gaussian processes for sequential prediction, optimisation and quadrature, Oxford University New College, 2010.
  • [23] R. Dürichen, M. A. Pimentel, L. Clifton, A. Schweikard, D. A. Clifton, Multitask Gaussian processes for multivariate physiological time-series analysis, IEEE Transactions on Biomedical Engineering 62 (1) (2015) 314–322.
  • [24] M. A. Alvarez, N. D. Lawrence, Computationally efficient convolved multiple output gaussian processes, Journal of Machine Learning Research 12 (May) (2011) 1459–1500.
  • [25] A. G. Wilson, H. Nickisch, Kernel interpolation for scalable structured Gaussian processes (KISS-GP), arXiv preprint arXiv:1503.01057.
  • [26] G. Pillonetto, F. Dinuzzo, G. De Nicolao, Bayesian online multitask learning of gaussian processes, IEEE Transactions on Pattern Analysis and Machine Intelligence 32 (2) (2010) 193–205.
  • [27] Y.-L. K. Samo, S. J. Roberts, p-markov Gaussian processes for scalable and expressive online Bayesian nonparametric time series forecasting, arXiv preprint arXiv:1510.02830.
  • [28] D. Duvenaud, Automatic model construction with Gaussian processes, Ph.D. thesis, University of Cambridge (2014).
  • [29] B. Bole, C. Kulkarni, M. Daigle, Randomized battery usage data set, NASA AMES prognostics data repository.
  • [30]

    G.-w. You, S. Park, D. Oh, Diagnosis of electric vehicle batteries using recurrent neural networks, IEEE Transactions on Industrial Electronics.

  • [31] Y. Saatçi, R. D. Turner, C. E. Rasmussen, Gaussian process change point models, in: Proceedings of the 27th International Conference on Machine Learning (ICML-10), 2010, pp. 927–934.
  • [32] R. Garnett, M. A. Osborne, S. Reece, A. Rogers, S. J. Roberts, Sequential Bayesian prediction in the presence of changepoints and faults, The Computer Journal 53 (9) (2010) 1430. doi:doi:10.1093/comjnl/bxq003.
  • [33] B. Saha, K. Goebel, Battery data set, NASA AMES prognostics data repository.
  • [34] B. Bole, C. S. Kulkarni, M. Daigle, Adaptation of an electrochemistry-based li-ion battery model to account for deterioration observed under randomized use, in: Proceedings of Annual Conference of the Prognostics and Health Management Society, Fort Worth, TX, USA, Vol. 29, 2014.

Acknowledgments

This work was funded by an RCUK Engineering and Physical Sciences Research Council grant, ref. EP/K002252/1.