Real vehicle lithium battery SOH estimation method based on big data and hybrid machine learning
Through methods based on big data and hybrid machine learning models, CatBoost and NGBoost algorithms are used to establish hybrid machine learning models, which solves the problem of accuracy and high cost of lithium-ion battery health state estimation under actual vehicle conditions, and achieves high accuracy and reliable SOH assessment.
Patent Information
- Application Number
- CN202410513892.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-10-01
AI Technical Summary
Existing lithium-ion battery state of health (SOH) estimation methods have problems such as strict experimental conditions, high cost, complex models, strong data dependence, and neglected uncertainty measures. It is difficult to achieve accurate and efficient SOH estimation under actual vehicle conditions. .
Using methods based on big data and hybrid machine learning models, we collect electric vehicle operating data, clean and reconstruct the data, select the maximum available capacity as the characterization parameter, use the CatBoost and NGBoost algorithms to build a hybrid machine learning model, and combine it with the gradient boosting framework. Conduct SOH assessments to provide precise point estimates and uncertainty forecasts.
It significantly improves the estimation accuracy of lithium battery SOH, reduces calculation fluctuations, provides a reliable prediction interval, is suitable for SOH evaluation under real vehicle conditions, and improves the accuracy and reliability of estimation.
Smart Images

Figure CN118731702A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of health state (SOH) estimation of lithium-ion batteries for new energy vehicles, and specifically relates to a new method for estimating the health state of real vehicle lithium batteries based on big data and a hybrid machine learning model. Background Art
[0002] At present, it is still difficult to directly measure SOH, an important indicator that can reflect the degree of aging of lithium-ion batteries. SOH can only be obtained indirectly by using sensors to obtain parameters such as current, voltage, temperature, etc., and then performing estimation. The existing SOH estimation methods mainly include: ① an experimental method that directly measures the battery capacity or internal resistance through experiments; ② a model-based method that establishes an electrochemical model or equivalent circuit model of the battery and performs parameter identification; ③ a data-driven method that collects real vehicle big data for machine learning. However, the above existing SOH estimation methods still have many disadvantages, such as: method ① requires strict experimental conditions and complex experimental equipment, a long test cycle, and is only suitable for laboratories or other ideal stable environments, but not for actual vehicle conditions; method ② establishes models of different complexities according to different application scenarios, which is costly, difficult to model in the early stage, difficult to identify model parameters, and different types of batteries require repeated experiments, which is not conducive to application in real vehicles; the accuracy of method ③ is more dependent on massive data, and the existing machine learning algorithms still have a lot of room for improvement. Furthermore, most existing studies typically focus only on providing a point estimate of battery SOH, whereas uncertainty measurement is a crucial practical issue in real applications but is generally ignored. Summary of the invention
[0003] In view of this, in order to solve the technical problems existing in this field, the present invention provides a method for estimating SOH of a real vehicle lithium battery based on big data and hybrid machine learning, which specifically includes the following steps:
[0004] Step 1: Collect the original data of each electric vehicle in operation within a certain period, including data collection time, mileage, total voltage, total current, SOC, maximum cell temperature, maximum cell voltage, etc.;
[0005] Step 2: Perform the following steps on the original data: data cleaning, removing abnormal and duplicate data and interpolating missing data; data slicing, dividing the original data into different segments according to the vehicle's operating status: driving segment, charging segment; data reconstruction, reconstructing data segments with the same operating status and forming an operating segment data set;
[0006] Step 3: Select the maximum available capacity from the running segment data set as a characterization parameter and calculate its reference value, and select multiple characteristic parameters that may be related to the characterization parameter;
[0007] Step 4: Perform correlation screening on the feature parameters, and establish a training set and a test set for training the SOH evaluation model after normalization;
[0008] Step 5: Based on the classification boosting algorithm CatBoost and the natural gradient boosting algorithm NGBoost, a hybrid machine learning SOH evaluation model is established. The model uses the characterization parameter reference value as output and the feature parameter as input, and uses CatBoost as the base learner in NGBoost to establish a gradient boosting-based framework. The process of the framework includes:
[0009] Step 1: Initialize a base model CatBoost whose prediction result is a constant value (such as the mean of the target variable in the training set);
[0010] Step 2: Execute each iteration:
[0011] ① Calculate the target variable minus the prediction of the previous model as the residual of the current stage;
[0012] ②Introduce a new base model CatBoost with residual as the target variable;
[0013] ③ Use the gradient descent method to minimize the negative gradient of the loss function and obtain the optimal fit of the new base model;
[0014] ④Add the base model corresponding to the best fit to the base model set;
[0015] Step 3: Weighted fusion of all models to obtain the final model, where the weight of each model is determined based on cross-validation;
[0016] The SOH evaluation model is trained using the training set obtained in step 4, and the training result is tested using the test set;
[0017] Step 6: Apply the trained SOH evaluation model online to output the current SOH estimation result of the lithium battery according to the characteristic parameters collected from the actual vehicle.
[0018] Furthermore, when the maximum available capacity is selected to represent SOH in step 3, SOH can be expressed as:
[0019]
[0020] Among them, C i is the current maximum available capacity of the battery, C o It is the initial maximum available capacity measured when the battery leaves the factory;
[0021] The reference values of the characterization parameters can be calculated using the charging segment dataset based on the following continuous time inverse ampere-hour integration method:
[0022]
[0023] Among them, i L (τ) is the charging current at time τ, and are the SOC values at the end and start of the segment, respectively;
[0024] Or use the following discrete time inverse ampere-hour integration method:
[0025]
[0026] Where n represents the total number of samples in the segment, Δt represents the current sampling interval, and ΔSOC represents the SOC interval length of a single segment.
[0027] Furthermore, in order to avoid fluctuations in the calculated characterization parameters and maintain their stability, the following restrictions are set for the fragment data samples involved in the calculation:
[0028] At the same time, in order to reduce the instability of the battery at low SOC and the impact of too small current at high SOC, the SOC value of any sample k is restricted as follows:
[0029] 95% ≥ SOC k ≥15%k=1,2,...,n
[0030] Among them, SOC k represents the SOC value of the kth sample in the fragment;
[0031] Considering that the capacity of the battery will not change suddenly between two charges under normal circumstances, σ w The following constraints are imposed on the change rate of the capacity between the two times to limit the amplitude of the capacity change:
[0032]
[0033] Among them, β w is the rate of change of capacity between the two times, σ w is the limiting value of the rate of change;
[0034] In view of the noise still existing in the initial capacity data obtained by the above calculation, a Savitzky-Golay filter is used to smooth the initial capacity data, extract the nonlinear attenuation of the battery capacity, and obtain the final characterization parameters.
[0035] Furthermore, in step 4, the following characteristic parameters are screened using the results of experience or Pearson correlation coefficient calculation: mileage (Me); total voltage related characteristics: the maximum value (Vmax and Vmin), range (Vr), and mean (Vmean) of the total voltage; total current related characteristics: the maximum value (Imax and Imin), range (Ir), and mean (Imean) of the total current; SOC related characteristics: the maximum value (Smax and Smin), range (Sr), and mean (Smean) of SOC; extreme cell voltage related characteristics: the maximum value (HVCmax and HVCmin), mean (HVCmean) of the highest voltage cell, the maximum value (LVCmaxand LVCmin), mean (LVCmean) of the lowest voltage cell, the mean (CVmean) of the cell voltage, and the mean of the cell voltage difference (CVDmean); extreme cell temperature related characteristics: the maximum value (HTCmax and HTCmin), mean (HTCmean) of the highest temperature cell, the maximum value (LTCmax and LTCmin) of the lowest temperature cell LTCmin, mean (LTCmean), cell temperature mean (CTmean), cell temperature difference mean (CTDmean) and charging time (Ct).
[0036] Furthermore, in step 5, the CatBoost base learner f is specifically defined for the established SOH evaluation model. (m) , probability distribution P θ (y|x) is normally distributed, and the scoring rule is based on the negative log-likelihood to establish a scoring function: x is the observed feature vector corresponding to each feature parameter, y is the target variable corresponding to the characterization parameter, and θ is the parameter vector of the distribution, including the mean and standard deviation of the normal distribution;
[0037] The specific training process of the SOH evaluation model includes:
[0038] For the training dataset First, we estimate a common θ (0) Make all training samples correspond to the scoring rule The sum is the smallest, that is:
[0039]
[0040] Where n is the total number of training samples;
[0041] Then, in each base learner m, i.e., the mth stage, for each sample data k, the natural gradient associated with the estimated parameter is calculated
[0042]
[0043] in, For scoring rules The gradient with respect to θ is is the probability distribution P carried by y θ Fisher information is specifically expressed as:
[0044]
[0045] in, is the expected value; After determination, it is used in the mth stage with the input vector x k Fit a collection of base learners f together (m) ;
[0046] Then the sample data k corresponds to The update method is as follows:
[0047]
[0048] Among them, η is the learning rate, ρ (m) is the scaling factor, which is calculated as follows:
[0049]
[0050] Among them, ρ is the proportional factor in the initial stage, and ρ=1.
[0051] The real vehicle lithium battery SOH estimation method based on big data and hybrid machine learning provided by the present invention provides a new N-CatBoost boosting algorithm framework by embedding CatBoost as the base learner of the NGBoost algorithm. The framework can combine the advantages of the two algorithms, so that CatBoost's ability to efficiently process classification features and prevent overfitting and NGBoost's ability to assess predictive uncertainty can be fully utilized, thereby significantly improving the estimation accuracy of the lithium battery SOH. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of the process provided by the present invention;
[0053] Figure 2 This is a schematic diagram of the N-CatBoost algorithm proposed in the present invention;
[0054] Figure 3 Comparison chart of capacity estimation results and true values in the test set example of the present invention. DETAILED DESCRIPTION
[0055] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. 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.
[0056] The present invention provides a real vehicle lithium battery SOH estimation method based on big data and hybrid machine learning, such as Figure 1 As shown, the specific steps include:
[0057] Step 1: Collect the original data of each electric vehicle in operation within a certain period, including data collection time, mileage, total voltage, total current, SOC, maximum cell temperature, maximum cell voltage, etc.;
[0058] Step 2: Perform the following steps on the original data: data cleaning, removing abnormal and duplicate data and interpolating missing data; data slicing, dividing the original data into different segments according to the vehicle's operating status: driving segment, charging segment; data reconstruction, reconstructing data segments with the same operating status and forming an operating segment data set;
[0059] Step 3: Select the maximum available capacity from the running segment data set as a characterization parameter and calculate its reference value, and select multiple characteristic parameters that may be related to the characterization parameter;
[0060] Step 4: Perform correlation screening on the feature parameters, and establish a training set and a test set for training the SOH evaluation model after normalization;
[0061] Step 5: Based on the classification boosting algorithm CatBoost and the natural gradient boosting algorithm NGBoost, construct Figure 2 An N-CatBoost algorithm is shown and a hybrid machine learning SOH evaluation model is established. The model uses the characterization parameter reference value as output and the feature parameter as input, and uses CatBoost as the base learner in NGBoost to establish a gradient boosting-based framework. The process of the framework includes:
[0062] Step 1: Initialize a base model CatBoost whose prediction result is a constant value (such as the mean of the target variable in the training set);
[0063] Step 2: Execute each iteration:
[0064] ① Calculate the target variable minus the prediction of the previous model as the residual of the current stage;
[0065] ②Introduce a new base model CatBoost with residual as the target variable;
[0066] ③ Use the gradient descent method to minimize the negative gradient of the loss function and obtain the optimal fit of the new base model;
[0067] ④Add the base model corresponding to the best fit to the base model set;
[0068] Step 3: Weighted fusion of all models to obtain the final model, where the weight of each model is determined based on cross-validation;
[0069] The SOH evaluation model is trained using the training set obtained in step 4, and the training result is tested using the test set;
[0070] Step 6: Apply the trained SOH evaluation model online to output the current SOH estimation result of the lithium battery according to the characteristic parameters collected from the actual vehicle.
[0071] In a preferred embodiment of the present invention, when the maximum available capacity is selected in step 3 to represent SOH, SOH can be expressed as:
[0072]
[0073] Among them, C i is the current maximum available capacity of the battery, C o It is the initial maximum available capacity measured when the battery leaves the factory;
[0074] The reference values of the characterization parameters can be calculated using the charging segment dataset based on the following continuous time inverse ampere-hour integration method:
[0075]
[0076] Among them, i L (τ) is the charging current at time τ, and are the SOC values at the end and start of the segment, respectively;
[0077] Or use the following discrete time inverse ampere-hour integration method:
[0078]
[0079] Where n represents the total number of samples in the segment, Δt represents the current sampling interval, and ΔSOC represents the SOC interval length of a single segment.
[0080] In a preferred embodiment of the present invention, in order to avoid fluctuations in the calculated characterization parameters and maintain their stability, the following restrictions are set for the fragment data samples involved in the calculation:
[0081] At the same time, in order to reduce the instability of the battery at low SOC and the impact of too small current at high SOC, the SOC value of any sample k is restricted as follows:
[0082] 95% ≥ SOC k ≥15%k=1,2,...,n
[0083] Among them, SOC k represents the SOC value of the kth sample in the fragment;
[0084] Considering that the capacity of the battery will not change suddenly between two charges under normal circumstances, σ w The following constraints are imposed on the change rate of the capacity between the two times to limit the amplitude of the capacity change:
[0085]
[0086] Among them, β w is the rate of change of capacity between the two times, σ w is the limiting value of the rate of change;
[0087] In view of the noise still existing in the initial capacity data obtained by the above calculation, a Savitzky-Golay filter is used to smooth the initial capacity data, extract the nonlinear attenuation of the battery capacity, and obtain the final characterization parameters.
[0088] In a preferred embodiment of the present invention, in step 4, the following characteristic parameters are screened by using experience or Pearson correlation coefficient calculation results: mileage (Me); total voltage related characteristics: the maximum value (Vmax and Vmin), range (Vr), and mean (Vmean) of the total voltage; total current related characteristics: the maximum value (Imax and Imin), range (Ir), and mean (Imean) of the total current; SOC related characteristics: the maximum value (Smax and Smin), range (Sr), and mean (Smean) of SOC; extreme cell voltage related characteristics: the maximum value (HVCmax and HVCmin) of the highest voltage cell, mean (HVCmean), the maximum value (LVCmax and LVCmin) of the lowest voltage cell, mean (LVCmean), cell voltage mean (CVmean), and cell voltage difference mean (CVDmean); extreme cell temperature related characteristics: the maximum value (HTCmax and HTCmin) of the highest temperature cell, mean (HTCmean), the maximum value (LTCmax and LTCmin) of the lowest temperature cell LTCmin, mean (LTCmean), cell temperature mean (CTmean), cell temperature difference mean (CTDmean) and charging time (Ct).
[0089] In a preferred embodiment of the present invention, step 5 specifically defines a CatBoost based learner f for the established SOH evaluation model. (m) , probability distribution P θ (y|x) is normally distributed, and the scoring rule is based on the negative log-likelihood to establish a scoring function: x is the observed feature vector corresponding to each feature parameter, y is the target variable corresponding to the characterization parameter, and θ is the parameter vector of the distribution, including the mean and standard deviation of the normal distribution;
[0090] The specific training process of the SOH evaluation model includes:
[0091] For the training dataset First, we estimate a common θ (0) Make all training samples correspond to the scoring rule The sum is the smallest, that is:
[0092]
[0093] Where n is the total number of training samples;
[0094] Then, in each base learner m, i.e., the mth stage, for each sample data k, the natural gradient associated with the estimated parameter is calculated
[0095]
[0096] in, For scoring rules The gradient with respect to θ is is the probability distribution P carried by y θ Fisher information is specifically expressed as:
[0097]
[0098] in, is the expected value; After determination, it is used in the mth stage with the input vector x k Fit a collection of base learners f together (m) ;
[0099] Then the sample data k corresponds to The update method is as follows:
[0100]
[0101] Among them, η is the learning rate, ρ (m) is the scaling factor, which is calculated as follows:
[0102]
[0103] Among them, ρ is the proportional factor in the initial stage, and ρ=1.
[0104] In a specific example based on the present invention, a data set from 13 pure electric vehicles in operation was used. The data sampling time span was more than one year, the sampling time interval was 10s, and a total of about 28 million data samples were obtained, which contained rich vehicle information and had a certain degree of representativeness and extensiveness. After cleaning, segmenting, and reconstructing the original data, the maximum available capacity reference value of each charging segment was calculated. After Pearson correlation analysis and experimental experience, the mileage; total voltage-related features; total current-related features; SOC-related features; extreme cell voltage-related features; extreme cell temperature-related features and charging time were extracted to form a training sample set. 12 vehicle data were selected as the training set, and the remaining vehicle data was used as the test set. After the model training was completed, MAPE and RMSE were used as indicators to evaluate the model accuracy. Figure 3 The comparison between the estimated results of the capacity of each fragment and the true value shown in embodies the high accuracy that can be achieved by the present invention. In order to further verify the beneficial effects of the present invention, the applicant also used multidimensional linear regression (MLR), support vector machine regression (SVR), random forest regression (RFR), adaptive boosting (AdaBoost), gradient boosting decision tree (GBDT), extreme gradient boosting (XGBoost), and light gradient boosting machine (LGBM) algorithms at the same time, and used the same data set for training and testing. The results showed that the SOH point estimation method based on N-CatBoost in this application has obvious accuracy advantages. In addition, N-CatBoost can also quantify the uncertainty of the predicted value. Since the probability distribution is a normal distribution, three prediction intervals (PI) of 68%, 95% and 99% are selected, which represent the mean (point estimate) minus 1, 2 and 3 standard deviations, respectively. By comparing the capacity values predicted by N-CatBoost with the actual capacity observations, it can be found that 77.12% of the actual capacity values in the test data set are within the 68% prediction interval, 98.87% of the actual capacity values are within the 95% prediction interval, and 100% of the actual capacity values are within the 99% prediction interval. Therefore, the N-CatBoost model not only provides accurate point estimates, but also provides reliable prediction intervals that can take into account the uncertainty caused by sample quality and quantity.
[0105] It should be understood that the size of the serial numbers of the steps in the embodiment of the present invention does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0106] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A real vehicle lithium battery SOH estimation method based on big data and hybrid machine learning, characterized by: The specific steps include: Step 1: Collect the original data of each electric vehicle in operation within a certain period, including data collection time, mileage, total voltage, total current, SOC, maximum cell temperature, and maximum cell voltage; Step 2: Perform the following steps on the original data: data cleaning, removing abnormal and duplicate data and interpolating missing data; data slicing, dividing the original data into different segments according to the vehicle's operating status: driving segment, charging segment; data reconstruction, reconstructing data segments with the same operating status and forming an operating segment data set; Step 3: Select the maximum available capacity from the running segment data set as a characterization parameter and calculate its reference value, and select multiple characteristic parameters that may be related to the characterization parameter; Step 4: Perform correlation screening on the feature parameters, and establish a training set and a test set for training the SOH evaluation model after normalization; Step 5: Based on the classification boosting algorithm CatBoost and the natural gradient boosting algorithm NGBoost, a hybrid machine learning SOH evaluation model is established. The model uses the characterization parameter reference value as output and the feature parameter as input, and uses CatBoost as the base learner in NGBoost to establish a gradient boosting-based framework. The process of the framework includes: Step 1: Initialize a base model CatBoost with a constant prediction result; Step 2: Execute each iteration: ① Calculate the target variable minus the prediction of the previous model as the residual of the current stage; ②Introduce a new base model CatBoost with residual as the target variable; ③ Use the gradient descent method to minimize the negative gradient of the loss function and obtain the optimal fit of the new base model; ④Add the base model corresponding to the best fit to the base model set; Step 3: Weighted fusion of all models to obtain the final model, where the weight of each model is determined based on cross-validation; The SOH evaluation model is trained using the training set obtained in step 4, and the training result is tested using the test set; Step 6: Apply the trained SOH evaluation model online to output the current SOH estimation result of the lithium battery according to the characteristic parameters collected from the actual vehicle.
2. The method according to claim 1, characterized in that: When the maximum available capacity is selected to represent SOH in step 3, SOH can be expressed as: Among them, C i is the current maximum available capacity of the battery, C o It is the initial maximum available capacity measured when the battery leaves the factory; The reference values of the characterization parameters are calculated using the charging segment dataset based on the following continuous time inverse ampere-hour integration method: Among them, i L (τ) is the charging current at time τ, and are the SOC values at the end and start of the segment, respectively; Or use the following discrete time inverse ampere-hour integration method: Where n represents the total number of samples in the segment, Δt represents the current sampling interval, and ΔSOC represents the SOC interval length of a single segment.
3. The method according to claim 1, characterized in that: In order to avoid fluctuations in the calculated characterization parameters and maintain their stability, the following restrictions are set for the fragment data samples involved in the calculation: At the same time, in order to reduce the instability of the battery at low SOC and the impact of too small current at high SOC, the SOC value of any sample k is restricted as follows: 95%≥SOC k ≥15% k=1,2,...,n Among them, SOC k represents the SOC value of the kth sample in the fragment; Considering that the capacity of the battery will not change suddenly between two charges under normal circumstances, σ w The following constraints are imposed on the change rate of the capacity between the two times to limit the amplitude of the capacity change: Among them, β w is the rate of change of capacity between the two times, σ w is the limiting value of the rate of change; In view of the noise still existing in the initial capacity data obtained by the above calculation, the Savitzky-Golay filter is used to smooth the initial capacity data, extract the nonlinear attenuation of the battery capacity, and obtain the final characterization parameters.
4. The method according to claim 1, characterized in that: In step 4, the following characteristic parameters are screened out by using the experience or Pearson correlation coefficient calculation results: mileage; total voltage related characteristics: the maximum value, voltage range and mean of the total voltage; total current related characteristics: the maximum value, current range and mean of the total current; SOC related characteristics: the maximum value, SOC range and mean; extreme cell voltage related characteristics: the maximum and mean of the highest voltage cell, the maximum and mean of the lowest voltage cell, the cell voltage mean, and the cell voltage difference mean; extreme cell temperature related characteristics: the maximum and mean of the highest temperature cell, the maximum and mean of the lowest temperature cell, the cell temperature mean, the cell temperature difference mean and charging time.
5. The method according to claim 1, characterized in that: Step 5: Specifically define the CatBoost base learner f for the established SOH evaluation model (m) , probability distribution P θ (y|x) is normally distributed, and the scoring rule is based on the negative log-likelihood to establish the scoring function: x is the observed feature vector corresponding to each feature parameter, y is the target variable corresponding to the characterization parameter, and θ is the parameter vector of the distribution, including the mean and standard deviation of the normal distribution; The specific training process of the SOH evaluation model includes: For the training dataset First, we estimate a common θ (0) Make all training samples correspond to the scoring rule The sum is the smallest, that is: Where n is the total number of training samples; Then, in each base learner m, i.e., the mth stage, for each sample data k, the natural gradient associated with the estimated parameters is calculated in, For scoring rules The gradient with respect to θ is is the probability distribution P carried by y θ Fisher information is specifically expressed as: in, is the expected value; After determination, it is used in the mth stage with the input vector x k Fit a collection of base learners f together (m) ; Then the sample data k corresponds to The update method is as follows: Among them, η is the learning rate, ρ (m) is the scaling factor, which is calculated as follows: Among them, ρ is the proportional factor in the initial stage, and ρ=1.
Citation Information
Patent Citations
Cell communication prediction method based on Boosting, deep forest and single cell sequencing data and application
CN115691680A
Health state assessment method suitable for lithium battery for V2G electric vehicle
CN116879751A
Cited By
Lithium battery health degree detection method and system based on artificial intelligence
CN120595125A
An artificial intelligence-based lithium battery health degree detection method and system
CN120595125B
Power battery health degree assessment method and device and electronic equipment
CN120972027A
