Lithium battery residual life prediction method based on meta-learning method under limited data condition
By predicting the remaining life of lithium batteries based on the meta-learning method, using the ALPaCA algorithm framework and Bayesian regression, the problem of prediction deviation under limited data conditions is solved, and efficient and accurate lithium battery degradation monitoring and life prediction are achieved, which is suitable for industry Data missing scenarios in production.
Patent Information
- Application Number
- CN202410604982.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-06
AI Technical Summary
Existing lithium battery remaining life prediction methods are difficult to predict accurately under limited data conditions, especially when data is partially missing due to insufficient supervision of equipment degradation in industrial production, resulting in large prediction deviations.
A lithium battery remaining life prediction method based on meta-learning method is adopted. Through feature processing and meta-learning model training, the ALPaCA algorithm framework is combined with Bayesian regression to achieve online data update and prediction, provide confidence intervals, and reduce computational complexity and improve efficiency.
This method can improve prediction accuracy in changes in the external environment, adapt to the problem of missing data, has strong adaptive capabilities, has high computational efficiency, and provides more accurate predictions of future degradation and remaining service life of lithium batteries.
Smart Images

Figure CN118607348A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery remaining life prediction, and in particular to a method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions. Background Art
[0002] During the use of lithium-ion batteries, as the number of charge and discharge cycles increases, some irreversible electrochemical reactions occur inside the battery, causing an imbalance in battery capacity, resulting in a decrease in the maximum battery capacity, which greatly shortens the battery life. By evaluating the battery's state of health (SOH), it can be determined whether the battery's maximum capacity can support the operation of the device. The task of predicting how long it will take for the battery capacity to drop to a certain threshold is the remaining life prediction (RUL).
[0003] Existing remaining life prediction methods are mainly divided into three categories: model-based, data-driven and hybrid-based methods.
[0004] The method based on physical model failure is to collect statistics on the historical signals of the equipment, analyze the changing rules according to the failure mechanism, and establish the corresponding mathematical model to predict the remaining service life. Since it relies on the selection of initial parameters and is not flexible enough, it cannot handle the scenario of data changes in time, resulting in a large deviation in the prediction of the remaining service life;
[0005] The data-driven approach is to analyze monitoring data and use machine learning, deep learning and other algorithms to observe and learn the degradation patterns and laws of the equipment from the available data of the equipment without building physical or statistical models. The meta-learning method of this technology belongs to the data-driven approach. The meta-learning model can learn the common characteristics of tasks from a large number of tasks, so that the learned parameters can be widely applied to most tasks in this distribution, rather than just to a single task.
[0006] Hybrid-based methods attempt to fuse different results from multiple methods into a new result, which is often more stable and robust than a single result. For example, in the literature [1] (J. Liang, H. Liu, N.-C. Xiao. A hybrid approach based on neural network and double exponential model for remaining useful life prediction. Expert Systems with Applications, 2024, 123563), et al. proposed a hybrid method combining a double exponential decay model and a gated recurrent unit network to achieve accurate remaining useful life prediction. The specific method flow is:
[0007] 1) Preprocessing the 1-dimensional health status data to obtain the original data, the first-order difference data of the original data, and the second-order difference data;
[0008] 2) Using the least squares algorithm, fit the double exponential decay model to the original data. And obtain the future data A based on the model;
[0009] 3) The three in 1) are stacked in time sequence to obtain 3D data, which is processed into training data for multi-step prediction of 1 step according to the sliding window, and then the data is used to train the GRU-CNN network. The future data B is obtained through single-step iterative prediction;
[0010] 4) Using A and B stacked as input data and the real degradation curve as label data to train the Bayesian neural network (BNN);
[0011] 5) The new online data needs to be refitted with the double exponential model to obtain A, and the trained GRU-CNN network is used to obtain B, and then AB is stacked and passed through the BNN network to obtain the final future health status data C.
[0012] 6) Detect the time it takes for the C distance to reach the threshold to calculate the remaining service life.
[0013] The above three existing remaining service life prediction methods and most of the current articles discuss the remaining service life prediction under the condition of limited degradation trajectory with full life cycle. However, in actual industrial production, the supervision of equipment degradation is not very adequate, and the equipment data may only be collected by the sensor within a certain period of time due to sensor failure, etc.
[0014] Based on this, the present invention is proposed. Summary of the invention
[0015] The purpose of the present invention is to provide a method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions.
[0016] To achieve the above object, the present invention provides the following technical solutions:
[0017] A method for predicting the remaining life of lithium batteries based on meta-learning methods under limited data conditions includes: feature processing, filtering out the main features after obtaining historical battery data, filtering and normalizing them; meta-learning model training, using the data after feature processing to establish a meta-learning model and train it; meta-learning model application, based on the online data of the battery to be predicted, using the meta-learning model to predict the future degradation and remaining service life of the battery.
[0018] The present invention provides a preferred solution, wherein the meta-learning model training step adopts offline training of the meta-learning model, and the offline training includes a pre-training stage: using the number of cycles of battery degradation in the first half of historical battery data as input and the corresponding battery capacity as output to optimize the meta-learning hyperparameters corresponding to each battery; a verification stage: using the first half of the battery data in the historical battery data for verification and optimizing the hyperparameters.
[0019] The present invention provides a preferred solution, wherein the meta-learning model application step includes online updating: inputting online battery data, and the meta-learning model fine-tuning hyperparameters according to the characteristics of the battery data to achieve online updating of the meta-learning model; online prediction: using the meta-learning model after online update to predict the future degradation and remaining service life of the battery.
[0020] The present invention provides a preferred solution, wherein the meta-learning model is implemented using an ALPaCA algorithm framework or a MAML algorithm framework.
[0021] The present invention provides a preferred solution, in which, in the online updating step, recursive Bayes is used to fine-tune the hyperparameters.
[0022] Compared with the prior art, the above technical solution has the following advantages:
[0023] (1) The meta-learning model in the present invention has strong adaptive capabilities and can continuously improve the prediction accuracy when the external environment is constantly changing. Therefore, the present invention adopts a meta-learning model to predict the future degradation and remaining service life of lithium batteries, which can address the problem of partial data loss due to inadequate degradation monitoring in industrial processes.
[0024] (2) This paper proposes a novel Bayesian meta-learning method, ALPaCA, which combines neural network-based meta-learning with Bayesian regression. Unlike the methods adopted in the prior art, during the meta-learning model training process, this method can learn a neural network model offline, which is trained to quickly incorporate online information to predict the posterior distribution. This method can provide confidence intervals for predictions and has lower computational complexity and higher computational efficiency.
[0025] (3) The meta-learning model of the present invention adopts the ALPaCA algorithm framework, and ALPaCA adopts solutions such as Bayesian linear regression. Compared with the existing technology or the MAML algorithm framework, it has lower computational complexity and higher computational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0027] Figure 1 A schematic diagram of a flow chart of a method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions provided by a specific embodiment of the present invention;
[0028] Figure 2 ALPaCA algorithm framework diagram of a lithium battery remaining life prediction method based on a meta-learning method under limited data conditions provided by a specific embodiment of the present invention;
[0029] Figure 3 A graph showing the RUL prediction results of a No. 4 battery in a lithium battery remaining life prediction method based on a meta-learning method under limited data conditions provided in a specific embodiment of the present invention;
[0030] Figure 4 A RUL prediction error diagram of a No. 4 battery in a lithium battery remaining life prediction method based on a meta-learning method under limited data conditions provided by a specific embodiment of the present invention;
[0031] Figure 5 A graph showing the RUL prediction results of a No. 5 battery in a lithium battery remaining life prediction method based on a meta-learning method under limited data conditions provided in a specific embodiment of the present invention;
[0032] Figure 6 A RUL prediction error diagram of a No. 5 battery in a lithium battery remaining life prediction method based on a meta-learning method under limited data conditions provided in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Please refer to Figure 1This embodiment adopts a meta-learning algorithm based on a Bayesian framework to deal with the problem of partial data loss due to inadequate degradation monitoring in industrial processes. This embodiment is a method for predicting the remaining life of lithium batteries based on a meta-learning method under limited data conditions, and the meta-learning model is implemented using the ALPaCA algorithm framework. The specific operations of ALPaCA in predicting the remaining service life of batteries include: S100 feature processing, S200 meta-learning model training, and S300 meta-learning model application.
[0035] S100 feature processing, after acquiring historical battery data (such as discharge capacity, charging voltage, discharge current and charging time), the main features are screened out (in this embodiment, among the many data of the battery, the battery discharge capacity, a physical value that can reflect the current condition of the battery, is selected as its main degradation feature), and filtering and normalization are performed to eliminate noise and outliers in the data and improve data quality. This step is crucial to improving the prediction accuracy of the model, because the presence of noise may cause the model to be unable to accurately capture the true law of battery degradation. After filtering, the data is processed by normalization so that it is within a suitable range to facilitate the training and calculation of the neural network. The input of the network is the number of cycles, and the output is the discharge capacity of the battery. The filtering method can adopt the smoothing method of Sgolay (Savitzky-Golay filter), smoothing window, polynomial fitting or wavelet transform. In this embodiment, the Sgolay filter is preferably used.
[0036] S200 meta-learning model training, using feature-processed data to build a meta-learning model and train it; specifically, offline training of the meta-learning model is adopted, including
[0037] S210 Pre-training phase: The main steps of the pre-training phase are: first prepare the training data, then initialize the hyperparameters Then, we train and optimize the hyperparameters. Specifically, we use the number of cycles of battery degradation in the first half of the historical battery data as input, and the corresponding battery capacity (i.e. Figure 1 The discharge capacity in is used as the output to optimize the hyperparameters of each battery in the meta-learning.
[0038] S220 verification phase: Use the first half of the battery data in the historical battery data for verification and optimize the hyperparameters. The main steps of the verification phase are: preparing verification data, calculating the loss function, and optimizing the hyperparameters again. This can be used to evaluate its ability to predict the future and its ability to learn across tasks, and can effectively prevent the model from overfitting and improve its generalization ability in practical applications. This process needs to be repeated until the model converges.
[0039] Please refer to Figure 2The meta-learning model in this embodiment adopts the ALPaCA algorithm framework, which includes two stages: offline training and online updating of the meta-learning model. In offline mode, the proxy model q is optimized on the function dataset D extracted from the prior distribution. ξ The parameter ξ is used to align the proxy posterior with the real posterior in the data set through the meta-learning process. By using different data settings in the design of the optimization target during the training process, the predictive power of the implicit prior in the training data is maximized. When online, some hyperparameters are fine-tuned through Bayesian linear regression so that the model can learn the characteristics of online data. It also has good performance on new data of the same type, while reducing the computational cost.
[0040] Figure 2 middle: represents the jth set of data, and the number of cycles in each set is from 1 to τ. The offline training phase of meta-learning is to learn from x t to y t The mapping relationship. It is explained in the model expression, θ j is an intermediate variable used to describe y t ~p(y|x t ,θ j ).
[0041] is online data. In the online stage, the online data up to the tth cycle is used to estimate θ * , and then compare it with the Together with the neural network φ, we estimate the y and variance of the t+1th time, that is, y t+1 and∑ t+1 .
[0042] (1) Model expression: For offline training, first, J datasets D are uniformly sampled from set D τ , where each dataset has τ samples, and each dataset is equivalent to a task. Use j to represent the index of these tasks. By sampling a time range t from the distribution p(t) j , and trim each task to this time range to obtain The task that the ALPaCA algorithm framework hopes to achieve is to τ ={x t ,y t} to predict the next moment y t+1 And the corresponding variance ∑ t+1 Right now
[0043]
[0044]
[0045]
[0046]
[0047] in Y τ =[y 1 ,y 2 ,...,y τ ],Λ 0 is the precision matrix at time 0. φ and other parameters are derived from the mapping relationship y t =K T φ(x t ; w)+∈, where φ(x t ; w) represents input x t After a certain neural network (select a fully connected network, CNN or RNN network according to the actual situation), K is the weight matrix, and the prior expression of K is T represents the transposition operation of the matrix, ∈ is the noise (usually obeys a normal distribution with a mean of 0 and a very small variance (the initial value is set artificially)), and the final set of parameters that meta-learning needs to learn is
[0048]
[0049] (2) Optimization objective: The optimization objective of this task is to minimize the loss function
[0050]
[0051]
[0052] θ * Describes the potential distribution relationship between x and y, which can be represented by D τ Learned from.
[0053] are three parameters in the meta-learning model. E(·) represents the expectation, where t follows the p(t) distribution, p(t) is the empirical distribution generated according to the data set, and θ follows the distribution p(θ). Specifically, a normal distribution with a mean of 0 and a manually set variance (usually less than 1) is generally used.
[0054] The following L(·) indicates that given x and y at time t, the predicted y at the next moment is different from the actual y t+1 log represents the logarithm operation with base 10, det(·) represents the calculation of the matrix determinant, and the other symbols have the same meanings as in model (1).
[0055] More specifically, the offline training algorithm is as follows:
[0056]
[0057] These are the three parameters in the meta-learning model. For details, please refer to the content in (1) model expression. These three parameters can be obtained through offline training.
[0058]
[0059] The S300 meta-learning model application uses the meta-learning model to predict the future degradation and remaining service life of the battery based on the online data of the battery to be predicted. It mainly includes two steps:
[0060] S310 Online Update: Input online battery data (cycle count and discharge capacity) into the meta-learning model, and use recursive Bayes to fine-tune the hyperparameters based on the characteristics of the battery data to achieve online update of the meta-learning model. Offline training uses historical data to update network parameters, and the online update stage uses online data up to the current moment to further fine-tune the parameters.
[0061] S320 Online Prediction: After fine-tuning is completed, the future degradation and remaining service life of the battery will be predicted based on the online battery data using the meta-learning model that has been updated online. The remaining service life is estimated using the health status prediction curve. The specific operation is: by measuring the time required for the health status value to reach the critical value from the current moment. For the calculation of the remaining service life: meta-learning predicts the future HI curve, and the remaining life = the number of cycles when the HI curve reaches the threshold - the current number of cycles. For online battery data, this embodiment only uses {number of cycles, discharge capacity}, so the online battery data is a two-dimensional array, Nx2, N is N groups of {number of cycles, discharge capacity}. If placed in a two-dimensional coordinate system, the horizontal axis is the number of cycles and the vertical axis is the discharge capacity. Online refers to real-time data entered by the user. For the health status prediction curve, it refers to a curve with the horizontal axis being the number of cycles and the vertical axis being the discharge capacity.
[0062] The online update algorithm is as follows:
[0063]
[0064] Each embodiment in this specification focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referenced to each other.
[0065] The above is a detailed introduction to the method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.
Claims
1. A method for predicting the remaining life of lithium batteries based on a meta-learning method under limited data conditions, characterized in that: include: Feature processing: After acquiring historical battery data, the main features are screened out and filtered and normalized; Meta-learning model training: using feature-processed data to build a meta-learning model and train it; Application of meta-learning model, based on the online data of the battery to be predicted, uses the meta-learning model to predict the future degradation and remaining service life of the battery.
2. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 1 is characterized in that: The meta-learning model training step adopts offline training of the meta-learning model, and the offline training includes Pre-training stage: Use the number of cycles of battery degradation in the first half of the historical battery data as input and the corresponding battery capacity as output to optimize the meta-learning hyperparameters corresponding to each battery; Verification phase: Use the first half of the battery data in the historical battery data for verification and optimization of hyperparameters.
3. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 2, characterized in that: The meta-learning model application steps include Online update: The online battery data is input, and the meta-learning model fine-tunes the hyperparameters according to the characteristics of the battery data to achieve online update of the meta-learning model; Online prediction: The future degradation and remaining useful life of the battery are predicted using the meta-learning model updated online.
4. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 1, characterized in that: The historical battery data includes discharge capacity, charge voltage, discharge current and charge time.
5. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 3, characterized in that: The online battery data includes cycle number and discharge capacity.
6. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 1, characterized in that: In the feature processing step, the filtering method adopts a smoothing method such as Sgolay, smoothing window, polynomial fitting or wavelet transform.
7. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 3, characterized in that: The remaining service life is estimated using a health status prediction curve, specifically by measuring the time required for the health status value at the current moment to reach a critical value.
8. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 1, characterized in that: The meta-learning model is implemented using the ALPaCA algorithm framework or the MAML algorithm framework.
9. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 8, characterized in that: The pre-training stage includes preparing training data, initializing hyperparameters, conducting training and optimizing hyperparameters; the verification stage includes preparing verification data, calculating loss functions and optimizing hyperparameters again.
10. The method for predicting the remaining life of a lithium battery based on a meta-learning method under limited data conditions according to claim 3, characterized in that: In the online update step, recursive Bayes is used to fine-tune the hyperparameters.
Citation Information
Cited By
Lithium ion battery remaining service life prediction method based on meta-learning physical constraint depth Wiener model
CN122860124A
