Battery fault prediction method in new energy electric vehicle scene
Through the extended TrAdaBoost algorithm and permutation feature importance method, combined with different brands of battery data, the problem of limited data volume and sample imbalance in battery failure prediction is solved, and the generalization performance of the model and the reliability of the prediction results are improved. It is suitable for Battery failure prediction for different brands of batteries.
Patent Information
- Application Number
- CN202411151109.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-21
AI Technical Summary
Existing battery failure prediction methods face problems such as limited data volume, unbalanced samples, data homogeneity, and poor model generalization capabilities, resulting in poor prediction performance for new brands or types of batteries.
The extended TrAdaBoost algorithm is used to combine different brands of battery data, transfer learning is used to enhance the model generalization performance, and the replacement feature importance method is used to filter features, and the AutoGluon framework is combined for battery failure prediction.
It improves the generalization performance of the battery failure prediction model and the reliability of the prediction results, reduces the risk of overuse of features, and enhances the adaptability to different brands of batteries.
Smart Images

Figure CN118779591A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a battery failure prediction method in a new energy electric vehicle scenario. Background Art
[0002] Affected by the gradually increasing emission standards and constantly improving environmental regulations, electric vehicles are being vigorously promoted and popularized as an effective way to reduce air pollution and carbon emissions. Electric vehicle batteries are the core components of electric vehicles. With the advancement of lithium-ion battery technology, the energy density, charging speed and life of electric vehicle batteries have been significantly improved; at the same time, the research and development of solid-state batteries, fast charging technology and other new battery technologies are also constantly promoting the development of electric vehicles. However, what follows is the safety issue of electric vehicle batteries. Electric vehicle battery failures often lead to safety accidents such as vehicle inoperability and vehicle explosion. Therefore, it is very necessary to predict electric vehicle battery failures.
[0003] Battery failure prediction aims to improve the reliability and safety of electric vehicles by monitoring the operating status and environmental conditions of the battery and warning of potential battery failures. At present, the main methods for battery failure prediction include data-driven machine learning algorithms and physical modeling methods. The data-driven method mainly uses historical data (such as voltage, temperature, charging status, etc.) to train prediction models. These prediction models usually include regression models, classification models, time series models, etc. The physical modeling method is based on the physical and chemical properties of the battery to establish mathematical models to simulate the behavior of the battery. These models can provide an in-depth understanding of the battery failure mechanism, but usually require detailed battery parameters and high computational complexity. In addition, current battery failure prediction methods usually only use data from electric vehicles of the same brand for model training and prediction. Although these models perform well in relatively fixed environments, they often perform poorly when faced with emergencies. Specifically, battery failure prediction currently faces the following problems:
[0004] 1) Limited data volume. In the electric vehicle market, the failure data of a specific brand of electric vehicles may be relatively limited, especially for newly launched brands or models. Data scarcity will lead to insufficient training data for the model, thus affecting the prediction performance;
[0005] 2) Sample imbalance: Battery failure events are usually rare in the data, which may lead to insufficient failure samples in the training data, affecting the learning effect of the model;
[0006] 3) Data homogeneity: Different brands of electric vehicles may have different battery designs, production processes, and operating conditions. Using data from a single brand for training may make it difficult for the model to generalize to batteries from other brands.
[0007] 4) The model has poor generalization ability. Traditional models often need to be retrained or adjusted when faced with data from different brands or types of batteries, which increases the complexity of model deployment. Summary of the invention
[0008] In order to solve the above problems, the present invention provides a battery failure prediction method in a new energy electric vehicle scenario, which is characterized by comprising the following steps:
[0009] S1. Collecting a data set of information related to electric vehicle batteries and preprocessing it to obtain a preprocessed data set, wherein the data set of information related to electric vehicle batteries includes battery data of a target electric vehicle brand and battery data of other electric vehicle brands;
[0010] S2. Based on the preprocessed data set, a classifier is constructed using the extended TrAdaBoost algorithm; the classifier is used to filter the preprocessed battery data of other electric vehicle brands to obtain filtered data, and the filtered data is combined with the preprocessed battery data of the target electric vehicle brand to obtain a new data set;
[0011] S3. Construct five features for each new data in the new data set, wherein the five features include basic battery features, battery business features, time features, discrete features, and cross features;
[0012] S4. Use the permutation feature importance method to select features from all features corresponding to the new dataset;
[0013] S5. Input the filtered features into the AutoGluon framework and output the battery failure prediction results.
[0014] Beneficial effects of the present invention:
[0015] The present invention adopts an extended TrAdaBoost algorithm, combines data from two different fields, and transfers the knowledge of the source field (other electric vehicle brand battery data) to the target field (target electric vehicle brand battery data) through the idea of transfer learning, thereby enhancing the generalization performance of the model in the target field. When combining electric vehicle battery data of different brands, the definition of weights is adjusted when initializing the weights to address the problems of sample imbalance and unequal contributions of the source domain and the target domain. When processing the relationship between the source domain and the target domain features, feature weights are introduced to adjust the contribution of different features.
[0016] The present invention adopts a method combining permutation feature importance and stability selection to screen features, and considers the synergy between features to expand on the original method and process the relationship between features. Through multiple random sampling to examine the consistency and stability of features, the risk of overuse of permutation feature importance is reduced, the reliability of screening results is improved, and as few and important features as possible are retained to improve efficiency and save costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flow chart of a battery failure prediction method in a new energy electric vehicle scenario according to an embodiment of the present invention;
[0018] Figure 2 The figure is a flow chart of the TrAdaBoost algorithm of a battery fault prediction method in a new energy electric vehicle scenario according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] 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.
[0020] The present invention provides a method for predicting battery failure in a new energy electric vehicle scenario. Figure 1 As shown, the following steps are included:
[0021] S1. Collecting a data set of information related to electric vehicle batteries and preprocessing it to obtain a preprocessed data set, wherein the data set of information related to electric vehicle batteries includes battery data of a target electric vehicle brand and battery data of other electric vehicle brands.
[0022] Specifically, the target electric vehicle brand battery data includes historical usage data of multiple batteries under the target battery brand; other electric vehicle brand battery data includes historical usage data of multiple batteries under the remaining battery brands; the historical usage data includes battery life, battery failure time, battery failure cause, battery failure number, etc.
[0023] Specifically, in order to improve data quality and applicability and reduce the risk of overfitting, it is necessary to preprocess the electric vehicle battery related information dataset. Preprocessing any data in the electric vehicle battery related information dataset includes:
[0024] S11. Clean the data; if the data has missing values, execute step S12; if the data has abnormal values, execute step S13; if the data has neither missing values nor abnormal values, execute step S14.
[0025] S12. Use the KNN method to fill the missing values to form a new data, and then execute step S14.
[0026] Specifically, when the KNN method is used to fill the missing values in step S12, the weight is set to increase the proportion of the upper and lower values of the missing position, which is specifically expressed as:
[0027]
[0028] Among them, X missing Indicates missing values; X above Indicates the value at the missing position, that is, the value of the position before the missing value; X below represents the value at the missing position, that is, the value of the position after the missing value; ω1 represents the weight of the value at the missing position, ω2 represents the weight of the missing value, ω3 represents the weight of the value at the missing position, K represents the data length, X k Indicates the value of the kth position in the data. In the present invention, ω1=0.4, ω2=0.4, ω3=0.2.
[0029] S13. Draw a box plot based on all the fields in the data, and calculate the quartile difference IQR=q3-q1 based on the upper quartile q1 and the lower quartile q3 in the box plot; calculate the limit range [q1-1.5IQR,q3+1.5IQR] according to the quartile difference IQR; delete the fields outside the limit range to form a new data, and then execute step S14.
[0030] S14. Label encoding is performed on the text content of the data, and the date content of the data is converted into a timestamp to extract the year and month, thereby obtaining a preprocessed data.
[0031] S2. Based on the preprocessed data set, the extended TrAdaBoost algorithm is used to construct a classifier; the classifier is used to filter the preprocessed battery data of other electric vehicle brands to obtain filtered data, and the filtered data is combined with the preprocessed battery data of the target electric vehicle brand to obtain a new data set; the purpose of using the classifier for filtering is to determine whether the data of other electric vehicle brands can be added to the battery data of the target electric vehicle brand, and used together as a training set to predict the test set, and the judgment is made based on the evaluation indicators related to the battery data of the target electric vehicle brand.
[0032] Specifically, Figure 2 As shown, step S2 uses the extended TrAdaBoost algorithm to construct a classifier including:
[0033] S21. Combine the preprocessed data sets of other electric vehicle brands and the preprocessed data sets of target electric vehicle brands to construct a first data set, and form a training set T with all data containing the label isDefault in the first data set, and form a test set S with the remaining data; X b represents the preprocessed target electric vehicle brand battery data, X a represents the preprocessed battery data of other electric vehicle brands, and Y represents the isDefault category space.
[0034] S22. Subdivide the training set into source domain datasets and target domain dataset in Represents source domain data The real category, Represents the target domain data The real category.
[0035] S23. Set the initial weight for each data in the training set to obtain the initial weight vector Where W i 1 represents the initial weight of the i-th data, n represents the number of data in the source domain dataset, and m represents the number of data in the target domain dataset.
[0036] Specifically, considering the problem of sample imbalance and the huge difference in the amount of data between the source domain and the target domain, different initial weights are set; the initial weight calculation formula is:
[0037]
[0038] Among them, C a represents the number of categories in the source domain dataset, C b Indicates the number of target domain dataset categories, class weight represents the overall sample weight, represents the category weight of the category to which the i-th source domain data belongs, Indicates the category weight of the category to which the i-th target domain data belongs.
[0039] S24. Perform multiple iterative training on the initial weight vector to obtain a classifier.
[0040] Specifically, the initial weight coefficient β0 is set to:
[0041]
[0042] Where N represents the number of iterations.
[0043] Specifically, each iteration of training includes:
[0044] S241. Update weight distribution p t , the update formula is:
[0045]
[0046] in, represents the weight vector of the t-th iteration training, where W i t Represents the weight of the i-th data in the t-th iteration training;
[0047] S242. Call the basic algorithm Learner, according to the training set T, weight distribution p t and test set S to obtain a classifier h on S t :
[0048] S243. Calculate classifier h t In the target domain dataset T b The classification error ∈ t :
[0049]
[0050] in, is the classifier h in the tth iteration t Target domain data The prediction results, Target domain data The real category of
[0051] According to the weight vector W t To adjust the contribution of different features and calculate the loss function L t :
[0052]
[0053] in, Representation data The loss function at the tth iteration is, Representation data The real label, Representation model for data The predicted value of , λ is a parameter used to balance the loss contribution of the source domain and the target domain, and its value is 0.4; by minimizing the loss function in each iteration, the feature weights and sample weights are gradually adjusted to reduce the overall classification error rate and the classification error value.
[0054] S244. Update weight coefficient β t , the update formula is:
[0055]
[0056] The S245 updated weight vector is expressed as:
[0057]
[0058] in Represents the updated weight of the i-th data.
[0059] Specifically, after N iterations, the final classifier obtained after balancing the contributions of the source domain and the target domain is:
[0060]
[0061] S3. Construct five features for each new data in the new data set, wherein the five features include basic battery features, battery business features, time features, discrete features, and cross features;
[0062] Specifically, the basic characteristics of the battery include basic information such as battery brand and battery capacity; the battery business characteristics are obtained by processing the basic battery data, such as calculating the resistance and whether the voltage for a continuous period of time is greater than a certain value; the time characteristics are, for example, sliding window characteristics based on time. Discrete features and cross features are also battery-related data that are constructed and obtained in a conventional way.
[0063] S4. Use the permutation feature importance method to select features from all the features corresponding to the new dataset.
[0064] Specifically, step S4 uses the permutation feature importance method to screen features including:
[0065] S41. Calculate the stability score of each feature, expressed as:
[0066]
[0067] Among them, S j represents the stability score of feature j, B represents the number of bootstraps, and I(·) represents the indicator function;
[0068] S42. Calculate the permutation feature importance score of each feature, expressed as:
[0069]
[0070] Among them, PI j represents the permutation feature importance score of feature j, M represents the number of permutations, and Δimprtance m represents the change of performance index after the mth replacement;
[0071] S43. Calculate the comprehensive score of each feature, expressed as:
[0072] score j =ω·S j +(1-ω)PI j
[0073] Among them, score j represents the comprehensive score of feature j, ω represents the weight parameter for balancing stability and replacement feature importance;
[0074] S44. Each feature forms a score relationship pair based on its own name and comprehensive score, expressed as:
[0075] Num j =(name j ,score j )
[0076] Among them, Num j Represents the score relationship pair of feature j, name j represents the name of feature j;
[0077] S45. All features are sorted in descending order according to the comprehensive score, the first 4 / 3 features are retained, and the last 4 / 1 features are removed to reduce the feature dimension and save computing resources.
[0078] S5. Input the filtered features into the AutoGluon framework and output the battery failure prediction results.
[0079] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "rotation" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.
[0080] 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 battery failure prediction method for new energy electric vehicles. It is characterized in that The following steps are involved: S1. Collecting a data set of information related to electric vehicle batteries and preprocessing it to obtain a preprocessed data set, wherein the data set of information related to electric vehicle batteries includes battery data of a target electric vehicle brand and battery data of other electric vehicle brands; S2. Based on the preprocessed data set, the classifier is constructed using the extended TrAdaBoost algorithm; The preprocessed battery data of other electric vehicle brands are screened by using a classifier to obtain screened data, and the screened data are combined with the preprocessed battery data of the target electric vehicle brand to obtain a new data set; S3. Construct five features for each new data in the new data set, wherein the five features include basic battery features, battery business features, time features, discrete features, and cross features; S4. Use the permutation feature importance method to select features from all features corresponding to the new dataset; S5. Input the filtered features into the AutoGluon framework and output the battery failure prediction results.
2. According to claim 1, a battery failure prediction method in a new energy electric vehicle scenario, It is characterized in that Preprocessing any data in the electric vehicle battery related information data set includes: S11. Clean the data; if the data has missing values, execute step S12; if the data has abnormal values, execute step S13; if the data has neither missing values nor abnormal values, execute step S14; S12. Use the KNN method to fill the missing values to form a new data, and then execute step S14; S13. Draw a box plot based on all fields in the data, based on the upper quartile q in the box plot 1 and the lower quartile q 3 Calculate the quartile range IQR = q 3 -q 1 ; Calculate the limit range based on the interquartile range IQR [q 1 -1.5IQR,q 3 +1.5IQR]; delete the fields outside the restricted range to form a new data, and then execute step S14; S14. Perform label encoding processing on the text content of the data, and convert the date content of the data into a timestamp to obtain a preprocessed data.
3. According to claim 2, a battery failure prediction method in a new energy electric vehicle scenario, It is characterized in that When the KNN method is used to fill the missing values in step S12, the weight is set to increase the proportion of the upper and lower values of the missing position, which is specifically expressed as: Among them, X missing Indicates missing values; X above Indicates the value at the missing position, that is, the value of the position before the missing value; X below Indicates the value of the missing position, that is, the value of the position after the missing value; ω 1 represents the weight of the value at the missing position, ω 2 represents the weight of missing values, ω 3 represents the weight of the value at the missing position, K represents the data length, and X k Represents the value at the kth position in the data.
4. According to claim 1, a battery failure prediction method in a new energy electric vehicle scenario, It is characterized in that Step S2 uses the extended TrAdaBoost algorithm to construct a classifier including: S21. Combine the preprocessed battery data of other electric vehicle brands and the preprocessed battery data of the target electric vehicle brand to construct a first data set, and form a training set T with all the data containing the label isDefault in the first data set, and form a test set S with the remaining data; wherein X b represents the preprocessed target electric vehicle brand battery data, X a represents the preprocessed battery data of other electric vehicle brands, and Y represents the isDefault category space; S22. Subdivide the training set into source domain datasets and target domain dataset in Represents source domain data The real category, Represents the target domain data The real category of S23. Set the initial weight for each data in the training set to obtain the initial weight vector in represents the initial weight of the i-th data, n represents the number of data in the source domain dataset, and m represents the number of data in the target domain dataset; S24. Perform multiple iterative training on the initial weight vector to obtain a classifier.
5. According to claim 4, a battery failure prediction method in a new energy electric vehicle scenario, It is characterized in that The initial weight calculation formula is: Among them, C a represents the number of categories in the source domain dataset, C b Indicates the number of target domain dataset categories, class weight represents the overall sample weight, represents the category weight of the category to which the i-th source domain data belongs, Indicates the category weight of the category to which the i-th target domain data belongs.
6. A battery failure prediction method for a new energy electric vehicle according to claim 4, It is characterized in that Each training iteration includes: S241. Update weight distribution p t , the update formula is: in, represents the weight vector of the t-th iteration training, where Represents the weight of the i-th data in the t-th iteration training; S242. Call the basic algorithm Learner, according to the training set T, weight distribution p t and test set S to obtain a classifier h on S t : S243. Calculate classifier h t In the target domain dataset T b The classification error ∈ t : in, is the classifier h in the tth iteration t Target domain data The prediction results, Target domain data The real category of According to the weight vector W t To adjust the contribution of different features and calculate the loss function L t : in, Representation data The loss function at the tth iteration is, Representation data The real label, Representation model for data The predicted value of , λ is a parameter used to balance the loss contribution of the source domain and the target domain, and its value is 0.4; S244. Update weight coefficient β t , the update formula is: The S245 updated weight vector is expressed as: in Represents the updated weight of the i-th data.
7. According to claim 1, a battery failure prediction method in a new energy electric vehicle scenario, It is characterized in that Step S4 uses the permutation feature importance method to screen features including: S41. Calculate the stability score of each feature, expressed as: Among them, S j represents the stability score of feature j, B represents the number of bootstraps, and I(·) represents the indicator function; S42. Calculate the permutation feature importance score of each feature, expressed as: Among them, PI j represents the permutation feature importance score of feature j, M represents the number of permutations, and Δimprtance m represents the change of performance index after the mth replacement; S43. Calculate the comprehensive score of each feature, expressed as: score j =ω·S j +(1-ω)PI j Among them, score j represents the comprehensive score of feature j, ω represents the weight parameter for balancing stability and replacement feature importance; S44. Each feature forms a score relationship pair based on its own name and comprehensive score, expressed as: Num j =(name j ,score j ) Among them, Num j Represents the score relationship pair of feature j, name j represents the name of feature j; S45. All features are sorted in descending order according to their comprehensive scores, the first 4 / 3 features are retained, and the last 4 / 1 features are removed.
Citation Information
Patent Citations
Transformer fault detection method based on improved support vector machine regression algorithm
CN113850320A
Battery management system fault prediction method and device
CN114527389A
Lithium battery health state estimation method based on hybrid neural network and transfer learning
CN116679232A
Device failure prediction using filter-based feature selection and a conformal prediction framework
US20220091915A1
Method and Apparatus for Predictive Diagnosis of a Device Battery of a Technical Device Using a Multivariate Transformer Model
US20240168095A1
Cited By
Risk prediction model training method, device and equipment and risk prediction method
CN119762217A
