Method and system for predicting remaining service life of lithium batteries based on ensemble learning
Through the integrated learning method, a variety of basic learners and genetic algorithms are combined to form an integrated model, which solves the shortcomings of a single machine learning algorithm in lithium battery life prediction and achieves more accurate and robust prediction results.
Patent Information
- Application Number
- CN202210495663.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-05-06
AI Technical Summary
The existing technology uses a single machine learning algorithm to accurately predict the remaining service life of lithium batteries, has weak anti-interference ability, poor generalization ability, and poor portability.
An ensemble learning-based method is used to convert the original data of lithium batteries, train multiple basic learners, and use genetic algorithms to integrate these learners to form an integrated model to predict the remaining service life of lithium batteries.
The generalization performance and robustness of the remaining service life prediction of lithium batteries are improved, the prediction results are more accurate, more persuasive, and can be adapted to different usage scenarios and data sets.
Smart Images

Figure CN114881246B
Abstract
Description
Technical Field
[0001] A method and system for predicting the remaining service life of a lithium battery based on ensemble learning are used for predicting the remaining service life of a lithium battery, and belong to the intersection of remaining service life prediction technology and computational science in comprehensive equipment support. Background Art
[0002] The performance of lithium batteries will degrade to a certain extent as the number of charge and discharge cycles increases. As an energy storage and energy supply unit, the degradation of lithium batteries often causes the failure of a whole system and even causes many safety accidents. Therefore, with the increasing popularity of the application scope of lithium batteries, it has become a very necessary task to conduct a safety assessment of the availability of batteries, and its safety and reliability issues need to be solved urgently. As the battery is charged and discharged, the internal resistance of the battery gradually increases, and the capacity of the battery continues to decrease. It is generally believed that when the remaining capacity of the battery drops to 70%-80% of the initial capacity, the battery life will end. At this time, in order to ensure the safety of the lithium battery, the battery will no longer be used for power supply. The change in the remaining capacity of the lithium battery directly represents the degree of battery degradation during the charge and discharge cycle. Therefore, the remaining capacity of the lithium battery can be directly used as a health factor to evaluate the degradation of the battery performance to predict the remaining service life of the lithium battery. The remaining service life has a very intuitive and important significance for the safety assessment of lithium batteries. Therefore, it has always been a hot direction in the field of lithium battery research.
[0003] Because the internal physical changes and electrochemical reactions of lithium batteries are relatively complex when they are working normally, and the analysis of the degradation process needs to consider some physical properties, the prediction usually has the defects of too many model parameters and difficulty in practical application. It is also easily disturbed by noise and environmental factors, and it is difficult to track the dynamic characteristics of the load. The dynamic accuracy, robustness and adaptability are poor. It is often too complex to implement, and the versatility of the model is limited, and the generalization effect cannot be determined.
[0004] Data-driven methods can establish statistical models that can approximate the degradation law by exploring and mining the intrinsic relationship between output response and input, and predict the time or period when the battery reaches the failure threshold. It has gradually become the main direction in the field of remaining life prediction in recent years. Most of the current data-driven methods are developed based on a single machine learning algorithm, such as support vector regression, random forest, multi-layer perceptron, etc., such as "CN113361197A-A method and system for predicting the remaining service life of lithium batteries" and "CN113203953B-A method for predicting the remaining service life of lithium batteries based on an improved extreme learning machine". It is difficult to accurately predict the remaining service life of lithium batteries using a single machine learning algorithm. In addition, in the competition among many machine learning algorithms, it is difficult to select one or one type of algorithm specifically for predicting the remaining service life of lithium batteries. Moreover, the portability of a single method is poor and it can often only adapt to a single data set.
[0005] CN103293487B-A lithium-ion battery life prediction method based on an integrated model is to sample the training set multiple times to obtain multiple training sets, and then train only on one type of algorithm, namely the monotone echo state network model. Obviously, it can indeed maintain the difference of the training set by sampling the data set multiple times, and can improve the parameters of the monotone echo state network model, but in the end only one model is used, and a single algorithm model (monotone echo state network model) is used to improve the parameters to avoid using cross-validation or expert experience to obtain the parameters of the echo state network, and the average value is directly used for fusion. Since it cannot be guaranteed that each single model contributes equally to the integrated model, it will also reduce the prediction accuracy.
[0006] In summary, the existing methods for predicting the remaining service life of lithium batteries have the following technical problems:
[0007] 1. The existing technology uses a single machine learning algorithm that is difficult to accurately predict the remaining service life of lithium batteries. That is, the single machine learning algorithm has weak anti-interference ability, is only suitable for mining a single type of data, and has weak generalization ability. When the data changes slightly, the algorithm performance will be very poor;
[0008] 2. The existing technology uses a single machine learning algorithm, which can only adapt to a single data set, resulting in poor portability. Summary of the invention
[0009] In response to the above-mentioned research problems, the purpose of the present invention is to provide a method and system for predicting the remaining service life of a lithium battery based on ensemble learning, so as to solve the problem that it is difficult to accurately predict the remaining service life of a lithium battery using a single machine learning algorithm in the prior art, that is, the single machine learning algorithm has weak anti-interference ability, is only suitable for mining a single type of data, has weak generalization ability, and when the data changes slightly, the algorithm performance will be very poor.
[0010] In order to achieve the above object, the present invention adopts the following technical solution:
[0011] A method for predicting the remaining service life of a lithium battery based on ensemble learning comprises the following steps:
[0012] Step 1: convert the acquired raw data of the lithium battery to obtain a time series data set, wherein the raw data refers to the charge and discharge data of a lithium battery over a period of time, and the time series data set includes a training set, a validation set, and a test set;
[0013] Step 2: Train multiple basic learners based on the time series dataset;
[0014] Step 3: Based on the genetic algorithm, multiple basic learners after training are integrated to obtain an integrated model;
[0015] Step 4: Input the time series data of the lithium battery to be predicted into the integrated model for prediction to obtain the remaining service life of the lithium battery.
[0016] Further, the specific steps of step 1 are:
[0017] Step 1.1, according to the usage scenario, the time window size is given, that is, if the charging and discharging process is more frequent, a small time window is given; otherwise, a large time window is given;
[0018] Step 1.2: According to the time window, the original data is converted into time series data, wherein, based on the size of the time window, the time series data RUL with a time window size of L is obtained. t-1 , RUL t-2 , ... RUL t-L , RUL t represents the time series data at time t, and L represents the size of the time window;
[0019] Step 1.3: After converting the original data, a time series data set is obtained.
[0020] Furthermore, the multiple basic learners in step 2 are relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network.
[0021] Furthermore, the training method of training each basic learner based on the training set in step 2 is: by using the gradient descent method, the error between the predicted value of the time series data predicted by each basic learner and the actual value of the actual remaining capacity of the lithium battery is continuously reduced by iteration, and the training ends when the error reaches a given accuracy requirement or the number of training times reaches a maximum number of iterations;
[0022] The error formula is:
[0023] Where n represents the size of the training set. Represents the predicted value of the i-th time series data in the training set, y i Represents the true value of the i-th time series data.
[0024] Further, the specific steps of step 3 are:
[0025] Step 3.1, the weights of the real-coded relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network are a, b, c, d, e respectively, that is, a real number between [0, 1] is randomly given;
[0026] Step 3.2, given population size;
[0027] Step 3.3, calculate the fitness function: Where n represents the size of the training set. represents the prediction result of time series data i on basic learner j, j = 1, 2, 3, 4, 5, y i Represents the true value of time series data i;
[0028] Step 3.4: Perform genetic operations based on population size and fitness function. Genetic operations include selection, crossover and mutation.
[0029] Step 3.5, after the genetic operation, if the maximum number of iterations is reached, the obtained weights a, b, c, d, e are the optimal weights and the value of the fitness function is the minimum, the optimal weights are used as the weights of the corresponding basic learners, and the final multiple basic learners constitute the integrated model. Otherwise, re-given the weights a, b, c, d, e, and then execute step 3.3.
[0030] A lithium battery remaining service life prediction system based on ensemble learning, comprising:
[0031] Conversion module: converts the acquired raw data of lithium batteries to obtain a time series data set, where the raw data refers to the charge and discharge data of a lithium battery over a period of time. The time series data set includes a training set, a validation set, and a test set.
[0032] Training module: training multiple basic learners based on time series datasets;
[0033] Ensemble model: Based on the genetic algorithm, multiple basic learners after training are integrated to obtain an ensemble model;
[0034] Prediction module: Input the time series data of the lithium battery to be predicted into the integrated model for prediction to obtain the remaining service life of the lithium battery.
[0035] Furthermore, the specific implementation steps of the conversion module are:
[0036] Step 1.1, according to the usage scenario, give a time window size. If the charging and discharging process is frequent, give a small time window, otherwise, give a large time window;
[0037] Step 1.2: According to the time window, the original data is converted into time series data, wherein, based on the size of the time window, the time series data RUL with a time window size of L is obtained. t-1 , RUL t-2 , ... RUL t-L , RUL t represents the time series data at time t, and L represents the size of the time window;
[0038] Step 1.3: After converting the original data, a time series data set is obtained.
[0039] Furthermore, the multiple basic learners in the training module are relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network.
[0040] Furthermore, the training module trains each basic learner based on the training set in a training method that uses a gradient descent method to continuously iterate and reduce the error between the predicted value of the time series data predicted by each basic learner and the actual value of the actual remaining capacity of the lithium battery. When the error reaches a given requirement or the number of training times reaches a maximum number of iterations, the training ends.
[0041] The error formula is:
[0042] Where n represents the size of the training set. Represents the predicted value of the i-th time series data in the training set, y i Represents the true value of the i-th time series data.
[0043] Furthermore, the specific implementation steps of the integrated model are:
[0044] Step 3.1, the weights of the real-coded relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network are a, b, c, d, e respectively, that is, a real number between [0, 1] is randomly given;
[0045] Step 3.2, given population size;
[0046] Step 3.3, calculate the fitness function: Where n represents the size of the training set. represents the prediction result of time series data i on basic learner j, j = 1, 2, 3, 4, 5, y i Represents the true value of time series data i;
[0047] Step 3.4: Perform genetic operations based on population size and fitness function, including selection, crossover and mutation;
[0048] Step 3.5, after the genetic operation, if the maximum number of iterations is reached, the obtained weights a, b, c, d, e are the optimal weights and the value of the fitness function is the minimum, the optimal weights are used as the weights of the corresponding basic learners, and the final multiple basic learners constitute the integrated model. Otherwise, re-given the weights a, b, c, d, e, and then execute step 3.3.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] 1. The present invention integrates five different basic learners based on genetic algorithm to obtain an integrated model. The integrated model mines the data features of lithium batteries from different angles to predict the remaining service life of lithium batteries. Compared with other single models, it has better generalization performance and robustness, and the prediction results are more accurate and more convincing.
[0051] 2. The present invention flexibly sets the time window of the original data of the lithium battery according to different usage scenarios to obtain time series data, so as to determine the optimal time window according to the user's intention and purpose, or through multiple training models, so as to more accurately predict the battery capacity of the lithium battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic diagram of the process of the present invention;
[0053] Figure 2 It is a schematic diagram of the process of obtaining an integrated model using a genetic algorithm in the present invention;
[0054] Figure 3 It is a comparison diagram of the prediction results of the integrated model obtained in the present invention and the relevant vector machine;
[0055] Figure 4 It is a comparison chart of the prediction results of the integrated model obtained in the present invention and the random forest;
[0056] Figure 5 is a comparison chart of the prediction results of the integrated model obtained in the present invention and the elastic network;
[0057] Figure 6 It is a comparison chart of the prediction results of the integrated model and the autoregressive model obtained in the present invention;
[0058] Figure 7 It is a comparison diagram of the prediction results of the integrated model obtained in the present invention and the long short-term memory network;
[0059] Figure 8 It is a comparison diagram of the errors between the integrated model obtained in the present invention and five single basic learners. DETAILED DESCRIPTION
[0060] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0061] A new ensemble learning-based method is used to simulate the degradation process of lithium battery capacity and predict its remaining service life. The ensemble learning method is to combine the results of multiple basic learners on the prediction of the remaining service life of lithium batteries, reduce the proportion of methods with poor performance, increase the proportion of methods with good performance, and make the overall model optimal. Compared with the basic learner, the ensemble model has better generalization effect and robustness.
[0062] In ensemble learning, generally speaking, the greater the difference between the basic learners, the greater the "diversity" of the ensemble, and the stronger the generalization of the ensemble model. In short, the lower the correlation between the basic learners, the more obvious the advantage of ensemble learning. In order to improve the prediction accuracy of the ensemble learning algorithm, the basic learner algorithms should be as diverse as possible. The ensemble learning algorithm proposed in the present invention combines 5 different types of algorithms, all of which can be applied to similar time series data prediction problems such as lithium battery capacity degradation.
[0063] The ensemble learning algorithm proposed in this paper combines five different types of algorithms, all of which can be applied to time series data prediction problems, including relevance vector machine (based on Bayesian), random forest (based on ensemble tree), elastic network (based on regression model), autoregressive model (based on randomness model) and long short-term memory network (based on artificial neural network).
[0064] The present invention designs a method for predicting the remaining service life of a lithium battery based on ensemble learning. The model proposed in the present invention can predict the remaining service life of a lithium battery. Compared with other single models, the present invention has better generalization performance and robustness, and the prediction result is more accurate and more convincing.
[0065] The relevance vector machine (Bayes-based) is a Bayesian sparse kernel algorithm for regression and classification. Compared with the support vector machine, its advantages are that the hyperparameters of the relevance vector machine do not need to be obtained through cross-validation; and the kernel function can be specified arbitrarily and does not have to be positive definite; the solution obtained by the relevance vector machine is sparser than that of the support vector machine.
[0066] Random forest (based on ensemble trees) is a bagging-type ensemble learning algorithm consisting of multiple decision trees. There is no correlation between each decision tree in the forest, and the final output of the model is determined by the average value of each decision tree in the forest.
[0067] Elastic Net (based on regression model) is a linear model that uses L1 and L2 penalty terms in the objective function. This combination not only learns a sparse model (similar to the least absolute shrinkage and selection algorithm Lasso), but also maintains the regularization properties of ridge regression.
[0068] The autoregressive model (based on the stochastic model) is a process that uses itself as a regression variable, that is, using the linear combination of random variables at several previous moments to describe the linear regression model of random variables at a certain moment in the future.
[0069] Long short-term memory network (based on artificial neural network) is a neural network used to process time series data. It is mainly used to solve the gradient disappearance problem in the long sequence training process of recurrent neural network.
[0070] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement it according to the description. In order to verify the effectiveness of the present invention, a simulation experiment is conducted on the CS2_35 lithium-ion battery data set of the Center for Advanced Life Cycle Engineering (CALCE) of the University of Maryland, as follows:
[0071] The invention firstly trains five different types of basic learners, then uses a genetic algorithm to determine the optimal weights of the five basic learners, and integrates the five basic learners into a new integrated model.
[0072] First, the Excel file containing the data is read in through pd.read_excel and converted to DataFrame type through pd. Then, the remaining capacity of the lithium battery is calculated based on the column name, and 881 battery capacity data that change with the time period (this is the time period measured by the experimenter, about 30 seconds) are obtained, that is, the original data.
[0073] M1. Data conversion:
[0074] For the input raw data, observe the actual operation of battery CS_35, set the time window size to 10, and convert it into time series data, that is, use the data of the first 10 time steps to predict the data of the next time step, that is, predict the time t+10.
[0075] Step 1.1, according to the usage scenario, the time window size is given, that is, if the charging and discharging process is relatively frequent, a small time window is given, otherwise, a large time window is given; due to different usage scenarios of different types of lithium batteries, the charging and discharging data measured by the tester are also different, and the time window needs to be given according to the specific charging and discharging data of a specific battery and the user's expected time window size;
[0076] Step 1.2: According to the time window, the original data is converted into time series data, wherein, based on the size of the time window, the time series data RUL with a time window size of L is obtained. t-1 , RUL t-2 , ... RUL t-L , RUL t represents the time series data at time t, and L represents the size of the time window;
[0077] Step 1.3: After converting the original data, a time series data set is obtained.
[0078] M2. Train multiple basic learners based on the training set:
[0079] M21. The original data before the failure of the lithium battery is converted into a time series data set. About 50% of the time series data is used as the training set and the validation set, where the ratio of the training set to the validation set is about 9:1, and about 50% of the time series data is used as the test set. Observing the degradation model of the lithium battery in M1, it can be seen that the lithium battery works for about 600 cycles before failure. Therefore, the 0-270 cycle data is used as the training set, the 270-300 cycle data is used as the validation set, and the 300-600 cycle data is used as the test set.
[0080] M22. Train each basic learner based on the training set:
[0081] The training method for training each basic learner based on the training set is: through the gradient descent method, the error between the predicted value of the time series data predicted by each basic learner and the actual value of the actual remaining capacity of the lithium battery is continuously reduced iteratively. When the error reaches the given accuracy requirement or the number of training times reaches the maximum number of iterations, the training ends;
[0082] The error formula is:
[0083] Where n represents the size of the training set. Represents the predicted value of the i-th time series data in the training set, y i Represents the true value of the i-th time series data.
[0084] During training, the basic learner parameters that need to be set and trained are:
[0085] Correlation vector machine: the number of iterations (n_estimators) is 100 and the error accuracy (learning_error) is 0.0001:
[0086] Random Forest: The number of iterations (n_estimators) is 160 and the error is 0.001;
[0087] Elastic net: Iterations: 1000, L1 norm penalty ratio 0.001, L1 parameter penalty: 0.001;
[0088] Autoregressive model: The order of the difference equation is 21;
[0089] Long short-term memory network: There are 5 network layers: 1 input layer, 2 LSTM layers, 1 fully connected layer, and 1 output layer. The layers are connected to each other (that is, the input layer, the first LSTM layer, the second LSTM layer, the fully connected layer, and the output layer are connected in sequence). The number of neurons in the LSTM layer is 128.
[0090] M23. After training, the prediction results (i.e., prediction values) and errors of each basic learner are obtained, and each basic learner can be verified through the validation set, which is used to determine the parameters of each basic learner; the test set is used to test each basic learner to compare the advantages with the test results of the subsequent integrated model; that is, through the time series data RUL with a time window size of L t-1 , RUL t-2 , ... RUL t-L , use each basic learner to predict the RUL at the next time t t way to verify and test.
[0091] M3. Based on the genetic algorithm, multiple basic learners after integration training are obtained to obtain the integrated model:
[0092] Figure 2 This is a schematic diagram of the process of using a genetic algorithm to integrate a basic learner in the present invention. It can be seen from the figure that:
[0093] M31. The weights of the real-coded relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network are a, b, c, d, e, respectively, i.e., a real number between [0, 1] is randomly given;
[0094] M32. Given a population size of 100;
[0095] M33. Calculate the fitness function as: and minimize;
[0096] Where n represents the size of the training set. represents the prediction result of sequence i on basic learner j, j = 1, 2, 3, 4, 5, y i represents the true value of sequence i, a, b, c, d, e represent the weights of each basic learner respectively;
[0097] M34. Continuously perform genetic operations (selection, crossover and mutation), the probability of genetic evolution is 0.01, the maximum number of iterations is 800, and the operation is terminated by judging whether the maximum number of iterations has been reached. Finally, the minimum value of the fitness function is 4.97513239e-05 and the optimal weight value are obtained.
[0098] The weights of each basic learner obtained by genetic algorithm are:
[0099]
[0100] M4. Predict the remaining service life of lithium batteries based on the integrated model:
[0101] M41. Use the test set in M21 as input and input the ensemble model to obtain the prediction results and errors. The test set can be used here to compare the advantages of the ensemble model with a single basic learner.
[0102] M42. Compare the errors of the integrated model and each basic learner, and select the integrated model with the smallest error value to predict the remaining service life of the lithium battery;
[0103] The comparison results are as follows:
[0104]
[0105]
[0106] Figure 3-Figure 7 This is a comparison chart of the prediction results of the integrated model of the present invention and five single basic learners. Figure 8 This is the error comparison diagram of the integrated model of the present invention and five single basic learners. Figure 3-8 It can be seen that:
[0107] Under the relative error measurement condition, the results achieved by the correlation vector machine and the integrated model of the present invention are equivalent; under the mean absolute error measurement condition, the correlation vector machine achieves the best result; under the root mean square error measurement condition, the integrated model proposed by the present invention achieves the smallest error, which is 0.0274 lower than the autoregressive model method and 0.00261 lower than the correlation vector machine. The root mean square error is more sensitive to outliers, so the model with a smaller root mean square error has better robustness. Therefore, the integrated learning prediction model proposed by the present invention can show better generalization and robustness for different data by setting the time window size and combining the advantages and disadvantages of the five basic learners.
[0108] M43. When there is new lithium battery data, determine the appropriate time window according to the working time, obtain the time series data of the lithium battery to be predicted, and then input the time series data into the integrated model for prediction. After the prediction, the remaining service life of the lithium battery can be obtained, and a more accurate and robust prediction result can be obtained. + =RUL t-1 , RUL t-2 , ... RUL t-L The integrated model is input and the integrated model uses the optimal weights to perform weighted calculation based on the prediction results of the five basic learners to obtain the remaining service life value at time t.
[0109] The above are only representative embodiments of the present invention in many specific application scopes, and do not constitute any limitation on the protection scope of the present invention. Any technical solutions formed by transformation or equivalent replacement fall within the protection scope of the present invention.
Claims
1. A method for predicting the remaining service life of a lithium battery based on ensemble learning, characterized in that: The steps include: Step 1: convert the acquired raw data of the lithium battery to obtain a time series data set, wherein the raw data refers to the charge and discharge data of a lithium battery over a period of time, and the time series data set includes a training set, a validation set, and a test set; Step 2: Train multiple basic learners based on the time series dataset; Step 3: Based on the genetic algorithm, multiple basic learners after training are integrated to obtain an integrated model; Step 4: Input the time series data of the lithium battery to be predicted into the integrated model for prediction to obtain the remaining service life of the lithium battery; The multiple basic learners in step 2 are relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network; The training method of training each basic learner based on the training set in step 2 is: by using the gradient descent method, the error between the predicted value of the time series data predicted by each basic learner and the actual value of the actual remaining capacity of the lithium battery is continuously reduced by iteration, and the training ends when the error reaches a given accuracy requirement or the number of training times reaches a maximum number of iterations; The error formula is: error= in, represents the size of the training set, Indicates the training set The predicted value of time series data, Indicates The true value of the time series data; The specific steps of step 3 are: Step 3.1, the weights of real-coded relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network are , that is, randomly give a real number between [0,1]; Step 3.2, given population size; Step 3.3, calculate the fitness function: ,in, represents the size of the training set, Representing time series data In the basic learning The prediction results on , Representing time series data The true value of Step 3.4: Perform genetic operations based on population size and fitness function. Genetic operations include selection, crossover and mutation. Step 3.5: After the genetic operation, if the maximum number of iterations is reached, the weight obtained is The optimal weight and the fitness function value are the minimum. The optimal weight is used as the weight of the corresponding basic learner. The final multiple basic learners constitute an integrated model. Otherwise, the weight is re-given. Then proceed to step 3.
3.
2. The method for predicting the remaining service life of a lithium battery based on ensemble learning according to claim 1, characterized in that: The specific steps of step 1 are: Step 1.1: According to the usage scenario, the time window size is given. If the charging and discharging process is more frequent, a smaller time window is given. Otherwise, a large time window is given; Step 1.2: Convert the original data into time series data according to the time window. Based on the size of the time window, the time window size is Time series data , Indicates time Time series data, Indicates the size of the time window; Step 1.3: After converting the original data, a time series data set is obtained.
3. A lithium battery remaining service life prediction system based on ensemble learning, characterized in that: include: Conversion module: converts the acquired raw data of lithium batteries to obtain a time series data set, where the raw data refers to the charge and discharge data of a lithium battery over a period of time. The time series data set includes a training set, a validation set, and a test set. Training module: training multiple basic learners based on time series datasets; Ensemble model: Based on the genetic algorithm, multiple basic learners after training are integrated to obtain an ensemble model; Prediction module: input the time series data of the lithium battery to be predicted into the integrated model for prediction to obtain the remaining service life of the lithium battery; The multiple basic learners in the training module are relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network; The training method of training each basic learner based on the training set in the training module is: by using the gradient descent method, the error between the predicted value of the time series data predicted by each basic learner and the actual value of the actual remaining capacity of the lithium battery is continuously reduced by iteration, and the training ends when the error reaches a given requirement or the number of training times reaches a maximum number of iterations; The error formula is: error= in, represents the size of the training set, Indicates the training set The predicted value of time series data, Indicates The true value of the time series data; The specific implementation steps of the integrated model are: Step 3.1, the weights of real-coded relevance vector machine, random forest, elastic network, autoregressive model and long short-term memory network are , that is, randomly give a real number between [0,1]; Step 3.2, given population size; Step 3.3, calculate the fitness function: ,in, represents the size of the training set, Representing time series data In the basic learning The prediction results on , Representing time series data The true value of Step 3.4: Perform genetic operations based on population size and fitness function. Genetic operations include selection, crossover and mutation. Step 3.5: After the genetic operation, if the maximum number of iterations is reached, the weight obtained is The optimal weight and the fitness function value are the minimum. The optimal weight is used as the weight of the corresponding basic learner. The final multiple basic learners constitute an integrated model. Otherwise, the weight is re-given. Then proceed to step 3.
3.
4. The lithium battery remaining service life prediction system based on ensemble learning according to claim 3 is characterized in that: The specific implementation steps of the conversion module are: Step 1.1, according to the usage scenario, give a time window size. If the charging and discharging process is frequent, give a small time window, otherwise, give a large time window; Step 1.2: Convert the original data into time series data according to the time window. Based on the size of the time window, the time window size is Time series data , Indicates time Time series data, Indicates the size of the time window; Step 1.3: After converting the original data, a time series data set is obtained.
Citation Information
Patent Citations
A lithium-ion battery lifetime prediction method based on an ensemble model
CN103293487B
A Method for Predicting Remaining Lifespan of Lithium-ion Batteries Based on an Improved Extreme Learning Machine
CN113203953B
Lithium battery remaining service life prediction method and system
CN113361197A
Lithium ion battery remaining life direct prediction method based on probability integration
CN103954914A
Deep belief network and relevance vector machine fusion-based lithium battery residual life prediction method
CN106908736A
