Battery failure prediction method, training method, device, equipment, medium and product

By combining a multi-task learning model with a lightweight gradient boosting machine algorithm and polynomial kernel function, the problem of high complexity and biased prediction results of existing battery failure prediction models is solved, achieving accurate and timely prediction of battery failures and reducing maintenance costs. .

CN118070023BActive Publication Date: 2024-09-03SHENZHEN PENGCHENG WUXIAN NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410499545.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-09-03
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

Most of the existing battery failure prediction models are single-task learning, which cannot effectively predict whether and when a specific battery failure will occur. Moreover, the joint parameter search of the model is complex and the prediction results have large deviations.

Method used

Using a multi-task learning model, by obtaining the sample feature set of the sample battery, including basic features and optimization features, building a shared layer and a task layer, training the model to predict whether and when a specific failure occurs in the battery, using a lightweight gradient boosting machine algorithm and polynomial kernel functions to determine feature importance and optimize model structure and parameters.

Benefits of technology

It improves the accuracy and efficiency of battery fault prediction, reduces maintenance costs, can better utilize the joint distribution information between different features, and enhances the fault prediction ability and applicability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118070023B
    Figure CN118070023B
Patent Text Reader

Abstract

The present application provides a battery fault prediction method, training method, device, equipment, medium and product, which belongs to the field of batteries. The training method of the multi-task learning model includes: obtaining a sample feature set of multiple sample batteries; the sample feature set is a target feature combination associated with a first task and a second task, and the target feature combination includes at least one basic feature and at least one optimized feature determined in a recursive feature combination manner; the sample feature set is input into a pre-built multi-task learning model, and the multi-task learning model is trained to obtain a trained multi-task learning model; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when a specific fault occurs in the battery. The training method of the present application can better utilize the joint distribution information between different features, improve the fault prediction ability of the model, and is conducive to maintenance personnel or systems to perform maintenance according to the risk urgency of the battery, thereby reducing maintenance costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a battery fault prediction method, training method, device, equipment, medium and product. Background Art

[0002] Energy conservation and emission reduction are the key to the sustainable development of the automobile industry. Electric vehicles have become an important part of the sustainable development of the automobile industry due to their advantages in energy conservation and environmental protection. For electric vehicles, battery technology is an important factor in their development.

[0003] As the battery is continuously charged and discharged during operation, the internal parts of the battery will gradually age, which may lead to battery failure, thus adversely affecting the performance of the battery. Therefore, how to effectively identify the risk of failure during battery operation is of great significance to improving the reliability of battery operation and reducing the losses caused by battery failure. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems in the background technology. To this end, one purpose of the present application is to provide a battery failure prediction method, training method, device, equipment, medium and product to improve the accuracy of predicting battery failure.

[0005] An embodiment of the first aspect of the present application provides a training method for a multi-task learning model, the multi-task learning model is used for battery fault prediction, the training method comprising: obtaining a sample feature set of a plurality of sample batteries, the plurality of sample batteries including a failed battery with a specific fault, the sample feature set being a target feature combination associated with a first task and a second task, the target feature combination comprising at least one basic feature determined from operating data of the plurality of sample batteries according to the first task and the second task, and at least one optimized feature determined from non-basic features that are not determined as basic features in the operating data in a recursive feature combination manner; inputting the sample feature set into a pre-constructed multi-task learning model, and training the pre-constructed multi-task learning model to obtain a trained multi-task learning model; wherein the multi-task learning model comprises a shared layer and a task layer, the task layer comprising at least a first sub-network corresponding to the first task and a second sub-network corresponding to the second task; the shared layer is used to determine a shared feature parameter according to the sample feature set, the first sub-network is used to determine a prediction result of the first task according to at least part of the shared feature parameters, and the second sub-network is used to determine a prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery.

[0006] In the technical solution of the embodiment of the present application, the battery failure is predicted by the multi-task learning model obtained through training, which can achieve an end-to-end solution to the prediction of whether there is a risk of a specific failure and when a specific failure will occur. The multi-task learning model can better utilize the joint distribution information between different features, and construct a sample feature set by selecting a target feature combination composed of basic features and optimized features that have a strong correlation and influence with the first task and the second task. This helps the model focus on learning features that are important to both the first task and the second task, improves training efficiency and the model's fault prediction ability, and is beneficial for maintenance personnel or systems to perform maintenance according to the risk urgency of the battery and reduce maintenance costs.

[0007] In some embodiments, obtaining a sample feature set of multiple sample batteries includes: obtaining the operating data of multiple sample batteries, determining the importance score of each feature in the operating data based on a lightweight gradient boosting machine algorithm; fitting the importance score of the feature based on a polynomial kernel function, and calculating the second-order derivative of the fitting curve, taking the minimum point of the second-order derivative as the inflection point, and determining the feature before the inflection point as the basic feature. By determining the importance score of each feature through a lightweight gradient boosting machine algorithm, the features that have the greatest impact on model performance can be more accurately identified. By identifying the inflection point, it can be determined which features play a key role in improving model performance. These features constitute the core part of the model, which helps to optimize the model structure and reduce unnecessary complexity. By identifying and selecting the most valuable features, noise and irrelevant information in the model can be reduced, thereby reducing the risk of overfitting and improving the prediction accuracy and generalization ability of the model.

[0008] In some embodiments, obtaining a sample feature set of multiple sample batteries also includes: adding non-basic features in the operating data to the combination of basic features one by one to obtain a new feature combination; retraining the multi-task learning model using the new feature combination and updating the model evaluation index of the multi-task learning model; the model evaluation index includes one or more of accuracy, recall, F1 score (F1-score), mean square error, root mean square error, and mean absolute error; based on the model evaluation index before and after the update, the newly added non-basic features are determined as optimized features. By setting the corresponding model evaluation index to quantitatively characterize the effect of the newly added non-basic features on the model improvement, it is possible to more accurately screen out suitable optimization features, improve the performance of the model, and enable the model to better learn from the data and make accurate predictions.

[0009] In some embodiments, obtaining sample features of multiple sample batteries also includes: adding non-basic features one by one to the combination of basic features to obtain a new feature combination; retraining the multi-task learning model using the new feature combination, and performing fault sorting based on the prediction results of the multi-task learning model; in response to the ranking of the failed battery in the fault sorting being within a preset ranking range, determining the newly added non-basic features as optimized features, and sorting the faults according to the size of the prediction results corresponding to the sample batteries. By determining the optimized features based on the ranking of the prediction results of the failed batteries, it can be ensured that the selected features are closely related to the actual task objectives (such as the priority of the fault). By combining the prediction results with the actual fault sorting, the output of the model is closer to the actual application needs.

[0010] In some embodiments, obtaining a sample feature set of multiple sample batteries, wherein the multiple sample batteries include a failed battery with a specific fault, further includes: obtaining operating data of multiple sample batteries, wherein the multiple sample batteries include a failed battery with a specific fault and a non-failed battery without a specific fault; in response to the ratio of the number of samples of the failed battery to the number of samples of the non-failed battery being less than or equal to a preset threshold, oversampling the operating data of the failed battery to synthesize new operating data of the failed battery. Oversampling can increase the number of samples of the minority category to be close to or equal to the number of samples of the majority category, thereby improving the fairness and prediction performance of the model for all categories, and improving the recognition and prediction capabilities of the model.

[0011] In some embodiments, obtaining a sample feature set of multiple sample batteries further includes: dividing the sample feature set into a training set and a prediction set; wherein the time when a specific fault occurs in a failed battery in the training set is earlier than the time when a specific fault occurs in a failed battery in the prediction set.

[0012] In some embodiments, the sample feature set is input into a pre-constructed multi-task learning model, and the pre-constructed multi-task learning model is trained to obtain a trained multi-task learning model, including: inputting the training set into the pre-constructed multi-task learning model, calculating the objective function of the pre-constructed multi-task learning model, and adjusting the model parameters of the multi-task learning model based on minimizing the objective function to obtain an adjusted multi-task learning model; inputting the prediction set into the adjusted multi-task learning model to obtain the prediction results of the first task and the prediction results of the second task, and determining the model evaluation index of the multi-task learning model based on the prediction results, and adjusting the model parameters of the adjusted multi-task learning model based on the model evaluation index to obtain a trained multi-task learning model. By continuously adjusting the model parameters and optimizing the model structure, the prediction capabilities of the first task and the second task of the multi-task learning model can be continuously improved, which is conducive to improving the accuracy of battery failure prediction.

[0013] In some embodiments, the objective function includes a first target loss term determined based on a classification loss function corresponding to the first task and a first weight coefficient, a second target loss term obtained based on a regression loss function corresponding to the second task and a second weight coefficient, and a model regularization term determined based on the first weight coefficient and the second weight coefficient. The objective function combines the classification loss and the regression loss, and balances the effects of different tasks and model complexity through weight coefficients and regularization terms. The model can learn from different types of data, which helps to improve the robustness of the model to noise and outliers, making the model more robust in the face of different types of prediction errors.

[0014] In some embodiments, the model evaluation index includes a classification task evaluation index corresponding to the first task and a regression task evaluation index corresponding to the second task. By constructing model evaluation indexes for the two tasks and adjusting the model parameters during model training, it helps to balance the performance of the two tasks of the model, reduce the risk of overfitting, and improve the overall performance and applicability of the model.

[0015] In some embodiments, the model evaluation index is the product of the classification task evaluation index and the first parameter, and the product of the regression task evaluation index and the second parameter; wherein the classification task evaluation index includes a recall rate, and the recall rate indicates that the number of failed batteries correctly identified by the multi-task learning model accounts for 90% or more of the number of sample batteries in the prediction set, and the first parameter is greater than or equal to the second parameter. The model evaluation index is a comprehensive evaluation method for the multi-task learning model, which combines the recall rate of the classification task and the evaluation index of the regression task in the form of a weighted sum. The setting of the first parameter and the second parameter allows the model to be adjusted according to the importance of different tasks, thereby improving the overall prediction performance of the model for the first task and the second task.

[0016] In some embodiments, the sample feature set is input into a pre-built multi-task learning model, and the pre-built multi-task learning model is trained to obtain a trained multi-task learning model, which further includes: inputting the prediction set into the adjusted multi-task learning model to obtain the prediction result of the first task and / or the prediction result of the second task; in response to the prediction result not meeting the preset application condition, adjusting the model parameters of the adjusted multi-task learning model and / or the feature type in the sample feature set; wherein the preset application condition is to sort the prediction results corresponding to each sample battery in the sample feature set, and the ranking of the failed battery is within a preset range. By setting the model application conditions to evaluate the applicability of the model, the trained multi-task learning model can better meet the prediction requirements in the application scenario of battery fault prediction, thereby improving the adaptability of the model.

[0017] The embodiment of the second aspect of the present application provides a battery fault prediction method based on a multi-task learning model, and the battery fault prediction method includes: obtaining a prediction feature set of a target battery; inputting the prediction feature set into a trained multi-task learning model, and the trained multi-task learning model is a multi-task learning model trained by the above-mentioned training method; outputting the prediction result of the first task and the prediction result of the second task. The use of a multi-task learning model can achieve an end-to-end solution to the prediction of whether there is a risk of a specific fault and when a specific fault will occur. The multi-task learning model can better utilize the joint distribution information between different features, improve the fault prediction ability of the model, and facilitate maintenance personnel or systems to perform maintenance according to the risk urgency of the battery, thereby reducing maintenance costs.

[0018] The embodiment of the third aspect of the present application provides a training device for a multi-task learning model, the device comprising a first acquisition unit and a training unit; the first acquisition unit is configured to acquire a sample feature set of a plurality of sample batteries; the plurality of sample batteries include a failed battery with a specific fault, the sample feature set is a target feature combination associated with a first task and a second task, the target feature combination comprising at least one basic feature determined from the operation data of the plurality of sample batteries according to the first task and the second task, and at least one optimized feature determined from non-basic features that are not determined as basic features in the operation data in a recursive feature combination manner; the training unit is configured to input the sample feature set into a pre-constructed multi-task learning model, and train the multi-task learning model to obtain a trained multi-task learning model; wherein the multi-task learning model comprises a shared layer and a task layer, the task layer at least comprising a first sub-network corresponding to the first task and a second sub-network corresponding to the second task; the shared layer is used to determine a shared feature parameter according to the sample feature set, the first sub-network is used to determine a prediction result of the first task according to at least part of the shared feature parameter, and the second sub-network is used to determine a prediction result of the second task according to at least part of the shared feature parameter; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery. The training device of this embodiment can train a multi-task learning model that can comprehensively and accurately predict battery-specific faults, which is helpful in reducing battery maintenance costs and improving the reliability of battery operation.

[0019] The fourth aspect of the present application provides a battery fault prediction device, which includes a second acquisition unit, a determination unit and an output unit; the second acquisition unit is configured to acquire a prediction feature set of a target battery, and the prediction feature set has the same feature combination as the sample feature set used to train the multi-task learning model; the determination unit is configured to input the prediction feature set into the trained multi-task learning model to obtain the prediction result of the first task and the prediction result of the second task; wherein the trained multi-task learning model is a multi-task learning model trained by the above-mentioned training method; the output unit is configured to output the prediction result of the first task and the prediction result of the second task. The battery fault prediction device of this embodiment can be a multi-task learning model that can perform comprehensive and accurate prediction results on specific battery faults, which is conducive to reducing the maintenance cost of the battery and improving the reliability of battery operation.

[0020] An embodiment of the fifth aspect of the present application provides a computing device, which includes: at least one processor; and at least one memory communicatively connected to the at least one processor, the at least one memory storing instructions, which, when executed individually or collectively by the at least one processor, enable the computing device to execute the training method or battery fault prediction method described in the above embodiments.

[0021] An embodiment of the sixth aspect of the present application provides a computer-readable storage medium storing instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the training method or battery fault prediction method described in the above embodiments.

[0022] An embodiment of the seventh aspect of the present application provides a computer program product, comprising instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the training method or battery fault prediction method described in the above embodiments.

[0023] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0025] Figure 1 A flowchart of a training method for a multi-task learning model provided in some embodiments of the present application;

[0026] Figure 2 A schematic diagram of a multi-task learning model provided for some embodiments of the present application;

[0027] Figure 3 A flowchart of a battery failure prediction method according to some embodiments of the present application;

[0028] Figure 4 A structural block diagram of a training device for a multi-task learning model provided in some embodiments of the present application;

[0029] Figure 5 A structural block diagram of a battery failure prediction device provided in some embodiments of the present application;

[0030] Figure 6 A flowchart for battery fault prediction based on a multi-task learning model is provided in some embodiments of the present application.

[0031] Description of reference numerals:

[0032] Multi-task learning model 10, normalization layer 11, sharing layer 12, task layer 13, first sub-network 131, second sub-network 132; training device 300, first acquisition unit 310, training unit 320; battery fault prediction device 400, second acquisition unit 410, determination unit 420, output unit 430. DETAILED DESCRIPTION

[0033] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0035] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0036] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0037] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0038] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0039] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0040] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0041] At present, from the perspective of market development, the application of batteries is becoming more and more extensive. Batteries are not only used in energy storage power systems such as hydropower, thermal power, wind power and solar power stations, but also widely used in electric vehicles such as electric bicycles, electric motorcycles, electric cars, as well as military equipment and aerospace and other fields. With the continuous expansion of battery application areas, its market demand is also constantly expanding.

[0042] Most prediction models based on machine learning algorithms are single-task learning, treating real-world problems as independent single tasks and constructing multiple models separately, such as voltage risk model, current risk model, and temperature risk model. However, the causes of battery failure are complex and are often not caused by a single factor. Using multiple models for prediction actually ignores the correlation information between problems, resulting in large deviations in prediction results. In addition, the time complexity of joint parameter search for multiple models is high, and parameter adjustment is difficult.

[0043] For the prediction of a specific battery failure, in addition to predicting "whether a failure will occur", it is also necessary to predict "when thermal runaway will occur" so that the risk of battery failure can be more accurately understood and countermeasures can be taken. However, the single-task model cannot meet the above prediction requirements.

[0044] In order to solve the above problems, the present application proposes a training method for a multi-task learning model and a battery fault prediction method based on the multi-task learning model, the training method comprising: obtaining a sample feature set of multiple sample batteries, the multiple sample batteries including a failed battery with a specific fault; inputting the sample feature set into a pre-built multi-task learning model, and training the multi-task learning model to obtain a trained multi-task learning model; wherein the multi-task learning model comprises a shared layer and a task layer, the task layer at least comprising a first sub-network corresponding to a first task and a second sub-network corresponding to a second task; the shared layer is used to determine a shared feature parameter according to the sample feature set, the first sub-network is used to determine a prediction result of the first task according to at least part of the shared feature parameters, and the second sub-network is used to determine a prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault occurs in the battery. The battery fault prediction method comprises: obtaining a prediction feature set of a target battery; inputting the prediction feature set into a trained multi-task learning model, and outputting the prediction result of the first task and the prediction result of the second task. By building a multi-task learning model to predict whether a target battery will fail and when the target battery will fail, we can better utilize the joint distribution information between different features, improve the model's fault prediction ability, and help maintenance personnel or systems perform maintenance according to the risk urgency of the battery, thereby reducing maintenance costs.

[0045] The battery disclosed in the embodiment of the present application can be used in, but not limited to, electrical devices such as vehicles, ships, aircraft or energy storage devices. The battery fault prediction method disclosed in the present application can be used not only to predict battery faults, but also to predict battery faults in electrical devices.

[0046] The embodiment of the present application provides an electric device using a battery as a power source, and the electric device may be, but is not limited to, a mobile phone, a tablet, a laptop, an electric toy, an electric tool, a battery car, an electric car, a ship, a spacecraft, etc. Among them, the electric toy may include a fixed or mobile electric toy, for example, a game console, an electric car toy, an electric ship toy, and an electric airplane toy, etc., and the spacecraft may include an airplane, a rocket, a space shuttle, and a spacecraft, etc. The energy storage device may include a distributed household energy storage device, an industrial and commercial energy storage device, or an energy storage power station.

[0047] Please refer to Figure 1 and Figure 2 , Figure 1 A flowchart of a method for training a multi-task learning model provided in some embodiments of the present application. Figure 2 A schematic diagram of a multi-task learning model provided for some embodiments of the present application.

[0048] The embodiment of the present application provides a training method 100 of a multi-task learning model, where the multi-task learning model is used for battery fault prediction. The training method 100 includes:

[0049] Step S110: Acquire sample feature sets of multiple sample batteries.

[0050] The multiple sample batteries include failed batteries with specific faults, and the sample feature set is a target feature combination associated with a first task and a second task. The target feature combination includes at least one basic feature determined from operating data of the multiple sample batteries according to the first task and the second task, and at least one optimized feature determined from non-basic features in the operating data that have not been determined as basic features in a recursive feature combination manner.

[0051] Step S120: inputting the sample feature set into a pre-built multi-task learning model, and training the multi-task learning model to obtain a trained multi-task learning model.

[0052] The multi-task learning model includes a shared layer and a task layer, the task layer includes at least a first subnetwork corresponding to a first task and a second subnetwork corresponding to a second task; the shared layer is used to determine shared feature parameters according to a sample feature set, the first subnetwork is used to determine a prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine a prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery.

[0053] The sample feature set may include the operating data of the sample battery under multiple different working conditions. The sample feature set of the sample battery also includes a first tag corresponding to the first task and a second tag corresponding to the second task. The first tag is used to indicate whether the sample battery to which it belongs has a specific fault, and the second tag is used to indicate the failure time of the specific fault of the sample battery to which it belongs. Here, the failure time refers to the time interval between the time point when the specific fault occurs and the time when the battery leaves the factory (or the first power-on time). The failed battery refers to the battery in the sample battery whose first tag indicates that a specific fault has occurred.

[0054] In some embodiments, step S110 includes: acquiring operating data of multiple sample batteries; determining a target feature combination based on the operating data of the multiple sample batteries, including determining one or more features in the operating data as basic features; determining one or more optimized features from non-basic features in the operating data in a recursive feature combination manner, and forming a target feature combination together with the basic features; and constructing a sample feature set based on the target feature combination.

[0055] The operating data of the sample battery includes operating parameters under multiple different operating conditions, such as voltage, current, temperature, battery state of charge, etc. The operating conditions may include charging, discharging and static. The operating data may also include characteristic parameters obtained after data processing of the operating parameters. The characteristic parameters may include but are not limited to statistical characteristics, mechanism characteristics, differential characteristics, etc., such as the highest voltage, lowest voltage, maximum voltage difference, etc. of multiple battery cells in the same battery pack (or battery module). These operating data are usually monitored and recorded in real time throughout the entire service life of the sample battery, and can provide important information on the performance and health of the sample battery.

[0056] The target feature combination is a feature combination selected from the running data and adapted to the task layer of the multi-task learning model. The features in the target feature combination are all related and useful to the first task and the second task, and can improve the efficiency of model training.

[0057] The basic features are features that contribute more to model prediction. In some embodiments, the basic features are features that are most important and have the greatest influence on the first task and the second task. Based on the multiple features contained in the running data, it is necessary to first identify and determine the basic features that have the greatest influence on the model task. Specifically, a decision tree can be used to determine the basic features.

[0058] For the remaining non-basic features, they can be verified one by one in a recursive manner to determine one or more optimized features. The determination method can be judged by the impact of the feature combination after adding non-basic features on the model. The optimized features and basic features together constitute the target feature combination, which is the optimal feature combination that best matches the multi-task learning model.

[0059] Using a recursive method to determine the optimized features can accurately evaluate the impact of each newly added feature on the model, which helps to accurately determine the features that most significantly improve the model as the optimized features, thereby improving the predictive performance of the model.

[0060] like Figure 2 As shown, the shared layer 12 of the multi-task learning model 10 is a network layer used by multiple tasks. The shared layer 12 can extract shared feature parameters useful for all tasks from the input sample feature set. The shared layer 12 may include n fully connected layers, where n is a positive integer greater than or equal to 1, where n is a hyperparameter of the multi-task learning model, which is used to control the network depth, and the size of n can be optimized and determined during model training.

[0061] The task layer 13 is a network layer specially designed for a specific task in the model architecture. The task layer 13 includes a first sub-network 131 for the first task and a second sub-network 132 for the second task. The first sub-network 131 is used to capture unique features related to the first task from shared feature parameters, and the second sub-network 132 is used to capture unique features related to the second task from shared feature parameters.

[0062] The first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when a specific fault will occur in the battery. The specific fault can be a pre-set fault type, such as battery thermal runaway. The first task is a classification task, so the first sub-network can use the Sigmoid activation layer. The output range of the Sigmoid activation layer is between 0 and 1, which makes it particularly suitable for the output layer of the binary classification problem. The output result of the first sub-network can be the probability of a specific fault, and the battery with a probability exceeding a preset threshold is identified as having a specific fault, and the battery with a probability below the preset threshold is identified as not having a specific fault. The second task is a regression task, and the output result of the second sub-network can be the failure time of a specific fault. The specific output result can be the time interval between the battery's factory time (or the first power-on time) and the time point when the specific fault fails.

[0063] In some embodiments, the multi-task learning model 10 may further include a batch normalization layer 11, which normalizes the training feature set input into the model and scales the numerical range of the input feature to a specific interval, such as [0, 1]. In the multi-task learning model 10, different tasks may have different sensitivities to the scale of features. The normalization layer 11 can ensure that all tasks learn features on a fair basis, thereby improving the overall performance of the model on multiple tasks.

[0064] By using the trained multi-task learning model to predict battery failures, it is possible to achieve an end-to-end solution to predict whether there is a risk of a specific failure and when it will occur. The multi-task learning model can better utilize the joint distribution information between different features, and construct a sample feature set by selecting a target feature combination composed of basic features and optimized features that are highly correlated and influential with the first and second tasks. This helps the model focus on learning features that are important to both the first and second tasks, improves training efficiency and the model's fault prediction ability, and is conducive to maintenance personnel or systems performing maintenance according to the risk urgency of the battery, thereby reducing maintenance costs.

[0065] According to some embodiments of the present application, step S110 includes: obtaining operating data of multiple sample batteries; determining the importance score of each feature in the operating data based on a lightweight gradient boosting machine algorithm; fitting the importance scores of the features based on a polynomial kernel function, and calculating the second-order derivative of the fitting curve, taking the minimum point of the second-order derivative as the inflection point, and determining the features before the inflection point as the basic features.

[0066] The multi-task learning model is a multi-task prediction model built based on the Light Gradient Boosting Machine algorithm. The Light Gradient Boosting Machine (LightGBM) is an algorithm based on gradient boosting decision trees. It iteratively builds a series of weak learners (usually decision trees), each of which is used to correct the errors of the previous learner.

[0067] In a multi-task learning model based on a lightweight gradient boosting machine algorithm, the degree of influence of each feature on the prediction result can be evaluated through the internal mechanism of the model training process. In this embodiment, the model assigns an importance score to each feature, which reflects the contribution of the feature in the model prediction. In the lightweight gradient boosting machine algorithm, feature importance can be calculated by observing the gain brought by each feature when splitting a node in the tree structure. The larger the gain, the higher the effectiveness of the feature in distinguishing data points, so its importance score is also higher.

[0068] After obtaining the importance score of each feature, this embodiment uses a polynomial kernel function to fit these scores in order to better understand the distribution and trend of feature importance. The polynomial kernel function can capture the nonlinear relationship that may exist between feature importance scores and features. After fitting the feature importance scores using the polynomial kernel function, the inflection point of the curve can be found by calculating the second-order derivative of this function. In the embodiment of the present application, the minimum point of the second-order derivative is taken as the inflection point, and the features before the inflection point (i.e., those features with higher feature importance scores before the inflection point) are selected as basic features. These basic features are considered to be the most critical features for model prediction because they contribute the most to model performance. Using a polynomial kernel function to fit feature importance scores and determine inflection points is a flexible determination method that can be adjusted according to different data sets and task characteristics. This highly adaptable method helps to find the optimal feature combination in various scenarios.

[0069] By using a lightweight gradient boosting machine algorithm to determine the importance score of each feature, we can more accurately identify the features that have the greatest impact on model performance. By identifying inflection points, we can determine which features are most critical to improving model performance. These features constitute the core part of the model, which helps optimize the model structure, reduce unnecessary complexity, and increase training speed and reduce memory burden. By identifying and selecting the most valuable features, we can reduce noise and irrelevant information in the model, thereby reducing the risk of overfitting and improving the model's prediction accuracy and generalization ability.

[0070] According to some embodiments of the present application, step S110 also includes: adding non-basic features in the running data one by one to the combination of basic features to obtain a new feature combination; retraining the multi-task learning model using the new feature combination and updating the model evaluation indicators of the multi-task learning model; the model evaluation indicators include one or more of accuracy, recall rate, F1 score (F1-score), mean square error, root mean square error and mean absolute error; based on the model evaluation indicators before and after the update, the newly added non-basic features are determined as optimized features.

[0071] After the basic features are determined, the non-basic features in the running data are added one by one to the combination of basic features to form a new feature combination, and the new feature combination is input into the multi-task learning model to retrain the model. During the training process, the parameters of the model can be adjusted so that the model can learn new feature representations.

[0072] After the model is retrained, the performance of the model can be evaluated by the set model evaluation index, which can be set according to the specific tasks of the multi-task learning model. In this embodiment, the model evaluation index may include one or more of accuracy, recall, F1 score, mean square error (MSE), root mean square error (RMSE) and mean absolute error (MAE). These indicators can reflect the prediction ability of the model from different perspectives, such as accuracy in classification tasks and error size in regression tasks.

[0073] By comparing the model evaluation indicators before and after using the new feature combination, it is possible to evaluate whether the added non-basic features actually improve the performance of the model. If the updated model improves in the evaluation indicators, this indicates that the newly added non-basic features are valuable to the model and can be identified as optimized features. These optimized features will be retained in the model as part of the final target feature combination.

[0074] By setting corresponding model evaluation indicators to quantify the effect of newly added non-basic features on the model improvement, we can more accurately screen out suitable optimization features, improve model performance, and enable the model to better learn from data and make accurate predictions.

[0075] According to some embodiments of the present application, step S110 also includes: adding the non-basic features one by one to the combination of the basic features to obtain a new feature combination; retraining the multi-task learning model using the new feature combination, and performing fault sorting based on the prediction results of the multi-task learning model; in response to the ranking of the failed battery in the fault sorting being within a preset ranking range, determining the newly added non-basic features as optimized features; and the fault sorting is to sort according to the size of the prediction results corresponding to the failed batteries.

[0076] Fault sorting can be performed based on the size of the prediction results of the first task output by the first sub-network of the multi-task learning model, such as the probability of a specific fault occurring in each sample battery, or based on the size of the prediction results of the second task output by the second sub-network, such as the failure time of a specific fault occurring in each sample battery. Sorting can also be performed based on the weighted values ​​of the prediction results of the first task and the prediction results of the second task at the same time.

[0077] The prediction results are sorted according to their size, and the ranking of the failed batteries is determined. If the ranking of the failed batteries is within the preset ranking range, for example, the probability ranking of a specific failure is within the top 10% of all sample batteries, then it is determined that the newly added features meet the model task prediction requirements, and this feature that can improve the model performance and meet the task prediction requirements is used as an optimized feature.

[0078] By determining the optimized features based on the predicted ranking of failed batteries, we can ensure that the selected features are closely related to the actual task objectives (such as the priority of the failure). By combining the prediction results with the actual fault ranking, the output of the model is closer to the actual application needs.

[0079] According to some embodiments of the present application, step S110 further includes:

[0080] Acquiring operation data of a plurality of sample batteries, wherein the plurality of sample batteries include failed batteries having a specific fault and non-failed batteries having no specific fault;

[0081] In response to a ratio of the number of samples of the failed battery to the number of samples of the non-failed battery being less than or equal to a preset threshold, oversampling the operating data of the failed battery is performed to synthesize new operating data of the failed battery.

[0082] The operation data can be obtained by receiving external input or retrieving the operation data in the memory. Since the number of failed batteries is usually very small, this will lead to a significant imbalance in the sample data set, which may cause the machine learning model to be biased towards those categories with more samples when predicting, thereby affecting the model's recognition ability for minority categories. In this case, oversampling can be used to increase the number of samples in the minority class so that it is close to or equal to the number of samples in the majority class, thereby improving the fairness and prediction performance of the model for all categories.

[0083] In this embodiment, the synthetic minority over-sampling technique (SMOTE) can be used to over-sample the samples of failed batteries. First, k nearest neighbor minority class samples are selected and recorded as , interpolate between adjacent minority class samples to synthesize new minority class samples, and the method of generating new minority class sample points is as follows:

[0084]

[0085] in, For any two samples among the k nearest neighbor samples, the newly generated samples are randomly generated through the distance between the two minority class points, which can ensure the diversity of minority class samples until the number of samples sampled is consistent with that of the majority class.

[0086] Oversampling can increase the number of samples in the minority category to make it close to or equal to the number of samples in the majority category, thereby improving the fairness and prediction performance of the model for all categories and enhancing the model's recognition and prediction capabilities.

[0087] According to some embodiments of the present application, step S110 also includes: obtaining operating data of multiple sample batteries, and dividing the sample data set into a training set and a prediction set; wherein the time when a specific fault occurs in a failed battery in the training set is earlier than the time when the specific fault occurs in a failed battery in the prediction set.

[0088] In some embodiments, step S120 includes: inputting the training set into a pre-constructed multi-task learning model, calculating the objective function of the pre-constructed multi-task learning model, and adjusting the model parameters of the pre-constructed multi-task learning model based on minimizing the objective function to obtain an adjusted multi-task learning model; inputting the prediction set into the adjusted multi-task learning model to obtain a prediction result of the first task and a prediction result of the second task, and determining a model evaluation index of the adjusted multi-task learning model based on the prediction results, and adjusting the model parameters of the adjusted multi-task learning model based on the model evaluation index to obtain a trained multi-task learning model.

[0089] Since the application scenarios of the multi-task learning model of the embodiments of the present application involve time series scenarios, when dividing the training set and the prediction set, it is necessary to divide them according to the failure time of the sample batteries. For example, the sample batteries are sorted according to the failure time, the first 70% are included in the training set, and the last 30% are included in the prediction set. This can ensure that data will not be leaked when the subsequent prediction set is trained.

[0090] The training set is input into the multi-task learning model, and the objective function is calculated based on the prediction results. The objective function here refers to the target loss function of the model, which is a combination of the loss functions of multiple tasks, which measure the prediction error of the model on each task. According to the calculated objective function value, an optimization algorithm (such as gradient descent) is used to adjust the parameters of the model. The purpose of this process is to minimize the objective function, that is, to reduce the prediction error. In this process, model parameters such as weights and biases of the model will be updated so that the model can better fit the training data.

[0091] The prediction set is then input into the adjusted multi-task learning model, and the model will output the prediction results for each task. For classification tasks, this may be a probability distribution or a category label; for regression tasks, this may be a continuous value. The model evaluation index is used to evaluate the actual effect of the model. The model parameters are further adjusted based on the model evaluation index. This process may involve adjusting the model structure or hyperparameter tuning.

[0092] By continuously adjusting model parameters and optimizing model structure, the prediction capabilities of the first and second tasks of the multi-task learning model can be continuously improved, which is conducive to improving the accuracy of battery failure prediction.

[0093] According to some embodiments of the present application, the objective function includes a first target loss term determined based on a classification loss function corresponding to a first task and a first weight coefficient, a second target loss term obtained based on a regression loss function corresponding to a second task and a second weight coefficient, and a model regularization term determined based on the first weight coefficient and the second weight coefficient.

[0094] In some embodiments, the objective function Loss can be calculated using the following formula:

[0095] ;

[0096] in, is the first target loss term, is the second target loss term; is the classification loss function corresponding to the first task; is the regression loss function corresponding to the second task; is the first weight coefficient, is the second weight coefficient, is the model regularization term.

[0097] The classification loss function can be cross entropy loss, calculated using the following formula:

[0098] ;

[0099] The regression loss function can be the least squares loss, calculated using the following formula:

[0100] ;

[0101] in, is the input training feature set, which can be specifically expressed as ,in, They represent the voltage, battery state of charge, temperature, and current data generated by the sample battery during operation. It may include a feature set representing voltage data features during charging / discharging / stationary process, for example, it may include , Represents the highest voltage in the battery cell list, Represents the lowest voltage in the battery cell list, Represents the maximum voltage difference in the battery cell list. Battery state of charge, temperature, and current can also contain similar feature sets. Indicates whether the sample battery has experienced a specific failure. Indicates the failure time of a sample battery that will experience a specific fault.

[0102] The objective function in this embodiment combines classification loss and regression loss, and balances the impact of different tasks and model complexity through weight coefficients and regularization terms. The model can learn from different types of data, which helps to improve the model's robustness to noise and outliers, making the model more robust when facing different types of prediction errors.

[0103] According to some embodiments of the present application, the model evaluation index includes a classification task evaluation index corresponding to the first task, and a regression task evaluation index corresponding to the second task.

[0104] Evaluation indicators for classification tasks may include accuracy, recall, F1-score, and geometric mean (Gmean). Evaluation indicators for regression tasks may include mean squared error (MSE), root mean squared error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), or R-squared (R-squared, R 2 ).

[0105] By constructing model evaluation indicators for the two tasks and adjusting the model parameters based on them during model training, it helps to balance the performance of the two tasks of the model, reduce the risk of overfitting, and improve the overall performance and applicability of the model.

[0106] According to some embodiments of the present application, the model evaluation index is the sum of the product of the classification task evaluation index and the first parameter, and the product of the regression task evaluation index and the second parameter; wherein the classification task evaluation index includes the recall rate, and the recall rate indicates that the number of failed batteries correctly identified by the multi-task learning model accounts for 90% or more of the number of sample batteries in the prediction set, and the first parameter is greater than or equal to the second parameter.

[0107] In some embodiments, the classification task evaluation indicator is the recall rate , the first parameter is , the regression task evaluation index is , the second parameter is , then the model evaluation index It can be calculated according to the following formula:

[0108] .

[0109] Among them, the recall rate This refers to the ratio of the number of failed batteries correctly identified by the model to the total number of all failed batteries in the prediction set under the set probability threshold. The probability threshold can take a certain value, such as 0.5. In some embodiments, the prediction result of the first task output by the model indicates that the corresponding sample battery will fail, and this prediction result can be compared with the first label of the sample battery. If the two are consistent, the sample battery is considered to be a failed battery and can be correctly identified by the model. In order for the trained model to meet the application requirements, the recall rate should be greater than or equal to 90%, that is, the model needs to be able to identify at least 90% of failed batteries.

[0110] First parameter The value range of can be [0.5, 1], for example, the value can be 0.5, 0.6, 0.7, 0.8 or 0.9. The second parameter The value range of can be [0, 0.5], for example, the value can be 0.1, 02, 03, 04 and 0.5. The first parameter and the second parameter It is a coefficient used to weight the evaluation index of classification tasks and regression tasks. This weighted sum design allows the model to adjust the degree of attention to each task according to the importance of the task. The first parameter and the second parameter This can be determined by searching the Internet.

[0111] In this embodiment, the first parameter is greater than or equal to the second parameter. This is because in the scenario of battery fault prediction, the consequences of incorrect prediction results of the classification task are more serious than those of the regression task. Incorrect prediction of a target battery may cause the entire battery pack or electrical device to fail or be at risk, and increasing the weight of the classification task can reduce this risk. On the other hand, since the failed batteries with specific faults in the sample batteries belong to the minority class samples after all, the classification task may face a more serious class imbalance problem. In this case, increasing the weight of the classification task helps the model learn the classification features better.

[0112] The model evaluation index in this embodiment is a comprehensive evaluation method for the multi-task learning model, which combines the recall rate of the classification task and the evaluation index of the regression task in the form of a weighted sum. The setting of the first parameter and the second parameter allows the model to be adjusted according to the importance of different tasks, thereby improving the overall prediction performance of the model for the first task and the second task.

[0113] According to some embodiments of the present application, step 120 also includes: inputting the prediction set into the adjusted multi-task learning model to obtain the prediction result of the first task and / or the prediction result of the second task; in response to the prediction result not meeting the preset application condition, adjusting the model parameters of the multi-task learning model and / or the feature type in the sample feature set; wherein the preset application condition is to sort the prediction results corresponding to each sample battery in the sample feature set, and the ranking of the failed batteries is within a preset range.

[0114] The preset application conditions are the judgment conditions set to determine whether the model meets the application requirements. Specifically, the prediction results output by the multi-task model can be sorted. For example, the prediction result of the first task outputs the probability of a specific fault occurring in each sample battery. All sample batteries are sorted from high to low according to the probability of failure, and the ranking of failed batteries needs to be within the preset range, such as within the top 10%. In this way, the prediction results of the model are judged to meet the preset application conditions. If the ranking of failed batteries is outside the preset range, the prediction results of the model are judged to not meet the preset application conditions and cannot be applied to the prediction of actual batteries. It is necessary to adjust the parameters of the model, such as model hyperparameters, or adjust the feature types in the sample feature set, that is, adjust the features in the target feature combination.

[0115] In other embodiments, the preset application conditions can be sorted according to the prediction results of the second task and make subsequent judgments. In still other embodiments, the preset application conditions can be sorted according to the weighted calculation values ​​of the prediction results of the first task and the prediction results of the second task at the same time, so that the judgment of the application ability of the model to different tasks can be taken into account at the same time, and the prediction ability of the model in specific application scenarios can be improved.

[0116] In some embodiments, the step of making judgments using preset application conditions can be performed after the training is completed, that is, after training using the training set and the prediction set respectively, the judgment of the above-mentioned preset application conditions is performed separately. It can also be combined with the step of using the prediction set for predictive evaluation, that is, after inputting the prediction set into the model, the model evaluation index and the model application conditions are calculated simultaneously or successively according to the prediction results of the model, and it is decided whether to return to retraining based on the calculation results and / or judgment results.

[0117] By setting model application conditions to evaluate the model's applicability, the trained multi-task learning model can better meet the prediction requirements in the application scenarios of battery fault prediction and improve the model's adaptability.

[0118] See also Figure 3 , Figure 3 This is a flowchart of a battery failure prediction method according to some embodiments of the present application.

[0119] The embodiment of the present application provides a battery fault prediction method 200 based on a multi-task learning model. The battery fault prediction method 200 includes:

[0120] Step S210: Obtain a prediction feature set of a target battery.

[0121] Step S220: input the prediction feature set into the trained multi-task learning model.

[0122] Step S230: output the prediction result of the first task and the prediction result of the second task.

[0123] The target battery may be a battery in service, such as a battery or a battery cell installed in a vehicle. The prediction feature set has the same feature combination as the training feature set.

[0124] The multi-task learning model in step S220 may be a multi-task learning model trained by the above-mentioned training method 100. The specific fault may be a certain preset fault type, such as a thermal runaway fault.

[0125] The prediction result of the first task in step S230 may be whether a characteristic fault will occur or not, or the probability of a specific fault occurring. The prediction result of the second task may be the failure time of the target battery when the specific fault occurs, that is, the time interval between the time point when the specific fault occurs and the factory time (or the first power-on time).

[0126] The use of multi-task learning models can achieve an end-to-end solution for predicting whether there is a risk of a specific failure and when a specific failure will occur. The multi-task learning model can better utilize the joint distribution information between different features, improve the model's fault prediction ability, and help maintenance personnel or systems perform maintenance according to the risk urgency of the battery, thereby reducing maintenance costs.

[0127] See also Figure 4 , Figure 4 A structural block diagram of a training device for a multi-task learning model provided in some embodiments of the present application.

[0128] The embodiment of the present application provides a training device 300 for a multi-task learning model, and the training device 300 includes a first acquisition unit 310 and a training unit 320; the first acquisition unit 310 is configured to acquire a sample feature set of multiple sample batteries; the multiple sample batteries include failed batteries with specific faults; the training unit 320 is configured to input the sample feature set into a pre-built multi-task learning model, and train the multi-task learning model to obtain a trained multi-task learning model; wherein the multi-task learning model includes a shared layer and a task layer, and the task layer includes at least a first subnetwork corresponding to the first task and a second subnetwork corresponding to the second task; the shared layer is used to determine shared feature parameters according to the sample feature set, the first subnetwork is used to determine the prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine the prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery.

[0129] The first acquisition unit 310 may acquire the sample feature set by directly inputting or calling the stored data in the memory, and provide it to the training unit 320, or it may first acquire the sample data of the sample battery, and pre-process the sample data, such as cleaning and normalizing the data, and then provide the pre-processed data to the training unit.

[0130] The training unit 320 may include the multi-task learning model 10 described in the above embodiment, and may use the training method 100 described in the above embodiment to train the multi-task learning model 10.

[0131] The training device 300 of this embodiment can train a multi-task learning model that can comprehensively and accurately predict battery-specific faults, which is helpful in reducing battery maintenance costs and improving the reliability of battery operation.

[0132] See also Figure 5 , Figure 5 A structural block diagram of a battery fault prediction device provided in some embodiments of the present application.

[0133] The embodiment of the present application provides a battery fault prediction device 400 , which includes a second acquisition unit 410 , a determination unit 420 , and an output unit 430 .

[0134] The second acquisition unit 410 is configured to acquire a prediction feature set of the target battery; the determination unit 420 is configured to input the prediction feature set into a trained multi-task learning model to obtain a prediction result of the first task and a prediction result of the second task; wherein the multi-task learning model includes a shared layer and a task layer, and the task layer includes at least a first subnetwork corresponding to the first task and a second subnetwork corresponding to the second task; the shared layer is used to determine shared feature parameters according to the prediction feature set, the first subnetwork is used to determine the prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine the prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the target battery, and the second task is to predict the time when a specific fault will occur in the target battery; the output unit 430 is configured to output the prediction result of the first task and the prediction result of the second task.

[0135] The second acquisition unit 410 may include a preprocessing module for preprocessing the input operation data of the target battery, such as cleaning and normalization, and constructing a prediction feature set according to the requirements of the target feature combination to provide to the determination unit 420. In some embodiments, the second acquisition unit 410 may also directly obtain the constructed prediction feature set.

[0136] The determination unit 420 may include a multi-task learning model 10 that has completed training, wherein the multi-task learning model 10 may be trained according to the above-mentioned training method 100. In some embodiments, a training device 300 in the above-mentioned embodiment may be set in the determination unit 420 to train the pre-built multi-task learning model.

[0137] The battery fault prediction device 400 of this embodiment can use a multi-task learning model to perform comprehensive and accurate prediction results on battery-specific faults, which is beneficial to reducing battery maintenance costs and improving battery operation reliability.

[0138] An embodiment of the present application provides a computing device, which includes: at least one processor; and at least one memory communicatively connected to the at least one processor, wherein the at least one memory stores instructions, which, when executed individually or collectively by the at least one processor, enable the computing device to execute the training method 100 or the battery fault prediction method 200 described in the above embodiment.

[0139] Various embodiments of the systems and techniques described above in this application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0140] An embodiment of the present application provides a computer-readable storage medium storing instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the training method 100 or the battery fault prediction method 200 described in the above embodiment.

[0141] Computer readable media may be tangible media that may contain or store programs for use by or in conjunction with an instruction execution system, device, or equipment. Machine readable media may be machine readable signal media or machine readable storage media. Machine readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of machine readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0142] An embodiment of the present application provides a computer program product, including instructions, which, when executed individually or collectively by one or more processors of a computing device, enable the computing device to execute the training method 100 or the battery fault prediction method 200 described in the above embodiment.

[0143] The embodiments of the present application are further described in detail below in conjunction with a specific implementation method.

[0144] like Figure 1-6 As shown, battery fault prediction based on the multi-task learning model mainly includes the training of the multi-task learning model, and using the trained multi-task learning model to predict battery faults.

[0145] The training method 100 of the multi-task learning model mainly includes:

[0146] Step S110: Obtain sample feature sets of multiple sample batteries. The multiple sample batteries include failed batteries with specific faults, and the sample feature set is a target feature combination associated with the first task and the second task, and the target feature combination includes at least one basic feature determined from the operating data of the multiple sample batteries according to the first task and the second task, and at least one optimized feature determined from non-basic features that are not determined as basic features in the operating data in a recursive feature combination manner.

[0147] The sample batteries may include both failed batteries that have a specific fault and non-failed batteries that have not a specific fault. Figure 6 As shown, step S110 may include the following steps:

[0148] Acquire operating data of the sample battery. The operating data of the sample battery includes operating parameters under multiple different operating conditions, such as voltage, current, temperature, battery state of charge, etc. The operating conditions may include charging, discharging, and standing. The operating data may also include characteristic parameters obtained after data processing of the operating parameters. The characteristic parameters may include but are not limited to statistical characteristics, mechanism characteristics, differential characteristics, etc. In response to the ratio of the number of samples of failed batteries to the number of samples of non-failed batteries being less than or equal to a preset threshold, the operating data of the failed battery is oversampled to synthesize a new sample feature set of the failed battery.

[0149] A target feature combination is determined based on the operating data of multiple sample batteries and used as a sample feature set, wherein the target feature combination includes basic features determined by a lightweight gradient boosting machine algorithm based on a multi-task learning model, and one or more optimized features are determined from non-basic features that are not determined as basic features in the operating data in a recursive feature combination manner.

[0150] The sample batteries are sorted according to the failure time, the first 70% are classified into the training set, and the last 30% are classified into the prediction set; in this way, the time when the specific failure of the failed batteries in the training set occurs is earlier than the time when the specific failure of the failed batteries in the prediction set occurs.

[0151] Step S120: inputting the sample feature set into a pre-built multi-task learning model, and training the multi-task learning model to obtain a trained multi-task learning model.

[0152] The multi-task learning model includes a shared layer and a task layer, the task layer includes at least a first subnetwork corresponding to a first task and a second subnetwork corresponding to a second task; the shared layer is used to determine shared feature parameters according to a sample feature set, the first subnetwork is used to determine a prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine a prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery.

[0153] Step S120 may include the following steps:

[0154] The training set is input into the pre-built multi-task learning model, the objective function of the multi-task learning model is calculated, and the model parameters of the multi-task learning model are adjusted based on minimizing the objective function to obtain the adjusted multi-task learning model.

[0155] The objective function Loss can be calculated using the following formula:

[0156] ;

[0157] in, is the first target loss term, is the second target loss term; is the classification loss function corresponding to the first task; is the regression loss function corresponding to the second task; is the first weight coefficient, is the second weight coefficient, is the model regularization term.

[0158] The classification loss function can be cross entropy loss, calculated using the following formula:

[0159] ;

[0160] The regression loss function can be the least squares loss, calculated using the following formula:

[0161] ;

[0162] in, is the input training feature set, which can be specifically expressed as ,in, They represent the voltage, battery state of charge, temperature, and current data generated by the sample battery during operation. It may include a feature set representing voltage data features during charging / discharging / stationary state, for example, it may include: , Represents the highest voltage in the battery cell list, Represents the lowest voltage in the battery cell list, Represents the maximum voltage difference in the battery cell list. Battery state of charge, temperature, and current can also contain similar feature sets. Indicates whether the sample battery has experienced a specific failure. Indicates the failure time of a sample battery that develops a specific fault.

[0163] The prediction set is input into the adjusted multi-task learning model to obtain the prediction results of the first task and the prediction results of the second task, and the model evaluation index of the multi-task learning model is determined according to the prediction results. The model parameters of the multi-task learning model are adjusted based on the model evaluation index to obtain a trained multi-task learning model.

[0164] Model evaluation indicators It can be calculated according to the following formula:

[0165] ;

[0166] in, is the recall rate used as an evaluation indicator for classification tasks, is the root mean square error used as the evaluation indicator for regression tasks, is the first parameter, The second parameter is the recall rate, which should be greater than or equal to 90%. Greater than or equal to the second parameter .

[0167] According to the prediction results output by the model after the prediction set is input, it is judged whether the preset application conditions are met. In response to the prediction results not meeting the preset application conditions, the model parameters of the multi-task learning model and / or the feature types in the sample feature set are adjusted; wherein the preset application conditions are to sort the prediction results corresponding to each sample battery in the prediction set, and the ranking of the failed battery is within a preset range. For example, according to the prediction results of the first task, that is, the probability of a specific fault, the ranking of the failed battery should be within the top 10%.

[0168] The trained multi-task learning model can be used to execute the battery fault prediction method 200, which mainly includes:

[0169] Step S210: Obtain a prediction feature set of a target battery. The target battery may be a battery in service, such as a battery or a battery cell loaded in a vehicle. The prediction feature set has the same feature combination as the training feature set.

[0170] Step S220: input the prediction feature set into the trained multi-task learning model, where the multi-task learning model is the trained multi-task learning model mentioned above, that is, the model trained according to the training method 100.

[0171] Step S230: output the prediction result of the first task and the prediction result of the second task.

[0172] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A training method for a multi-task learning model, wherein the multi-task learning model is used for battery fault prediction, characterized in that: include: Acquire a sample feature set of a plurality of sample batteries; the plurality of sample batteries include failed batteries with a specific fault, the sample feature set is a target feature combination associated with a first task and a second task, the target feature combination includes at least one basic feature and at least one optimized feature determined from operating data of the plurality of sample batteries according to the first task and the second task; These include: Acquiring operating data of the plurality of sample batteries; Determining an importance score for each feature in the operational data based on a lightweight gradient boosting machine algorithm; Fitting the importance score of the feature based on a polynomial kernel function, and calculating the second-order derivative of the fitting curve, taking the minimum point of the second-order derivative as the inflection point, and determining the feature before the inflection point as the basic feature; and Determine at least one of the optimization features from non-basic features that are not determined as basic features in the operation data in a recursive feature combination manner; Inputting the sample feature set into a pre-constructed multi-task learning model, and training the pre-constructed multi-task learning model to obtain a trained multi-task learning model; Among them, the multi-task learning model includes a shared layer and a task layer, the task layer includes at least a first subnetwork corresponding to the first task and a second subnetwork corresponding to the second task; the shared layer is used to determine the shared feature parameters according to the sample feature set, the first subnetwork is used to determine the prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine the prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when a specific fault will occur in the battery.

2. The training method according to claim 1, characterized in that: The step of obtaining a sample feature set of a plurality of sample batteries further comprises: Adding the non-basic features one by one to the combination of the basic features to obtain a new feature combination; Retraining the multi-task learning model using the new feature combination and updating the model evaluation index of the multi-task learning model; the model evaluation index includes one or more of accuracy, recall, F1 score, mean square error, root mean square error and mean absolute error; The newly added non-basic features are determined as the optimized features based on the model evaluation indicators before and after the update.

3. The training method according to claim 1, characterized in that: The step of obtaining a sample feature set of a plurality of sample batteries further comprises: Adding the non-basic features one by one to the combination of the basic features to obtain a new feature combination; Retraining the multi-task learning model using the new feature combination, and performing fault sorting based on the prediction results of the multi-task learning model, In response to the ranking of the failed battery in the fault sorting being within a preset ranking range, the newly added non-basic feature is determined as the optimization feature, wherein the fault sorting is performed according to the size of the prediction results corresponding to the sample batteries.

4. The training method according to any one of claims 1 to 3, characterized in that: The step of obtaining a sample feature set of a plurality of sample batteries further comprises: Acquiring operation data of a plurality of sample batteries, wherein the plurality of sample batteries include failed batteries having a specific fault and non-failed batteries having no specific fault; In response to the ratio of the number of samples of the failed battery to the number of samples of the non-failed battery being less than or equal to a preset threshold, the operating data of the failed battery is oversampled to synthesize new operating data of the failed battery.

5. The training method according to any one of claims 1 to 3, characterized in that: The step of obtaining a sample feature set of a plurality of sample batteries further comprises: The sample feature set is divided into a training set and a prediction set; wherein the time when the specific fault of the failed battery in the training set occurs is earlier than the time when the specific fault of the failed battery in the prediction set occurs; And wherein, the step of inputting the sample feature set into a pre-built multi-task learning model and training the pre-built multi-task learning model to obtain a trained multi-task learning model comprises: Inputting the training set into a pre-constructed multi-task learning model, calculating the objective function of the pre-constructed multi-task learning model, and adjusting model parameters of the pre-constructed multi-task learning model based on minimizing the objective function to obtain an adjusted multi-task learning model; The prediction set is input into the adjusted multi-task learning model to obtain a prediction result of the first task and a prediction result of the second task, and a model evaluation index of the adjusted multi-task learning model is determined according to the prediction results. The model parameters of the adjusted multi-task learning model are adjusted based on the model evaluation index to obtain a trained multi-task learning model.

6. The training method according to claim 5, characterized in that: The objective function includes a first target loss term determined based on a classification loss function corresponding to the first task and a first weight coefficient, a second target loss term obtained based on a regression loss function corresponding to the second task and a second weight coefficient, and a model regularization term determined based on the first weight coefficient and the second weight coefficient.

7. The training method according to claim 6, characterized in that: The model evaluation index includes a classification task evaluation index corresponding to the first task and a regression task evaluation index corresponding to the second task.

8. The training method according to claim 7, characterized in that: The model evaluation index is the sum of the product of the classification task evaluation index and the first parameter and the product of the regression task evaluation index and the second parameter; Among them, the classification task evaluation index includes a recall rate, and the recall rate indicates that the number of failed batteries correctly identified by the multi-task learning model accounts for 90% or more of the number of failed batteries in the prediction set; and the first parameter is greater than or equal to the second parameter.

9. The training method according to claim 5, characterized in that: The step of inputting the sample feature set into a pre-built multi-task learning model and training the pre-built multi-task learning model to obtain a trained multi-task learning model further comprises: Inputting the prediction set into the adjusted multi-task learning model to obtain a prediction result of the first task and / or a prediction result of the second task; In response to the prediction result not satisfying a preset application condition, the model parameters of the adjusted multi-task learning model and / or the feature type in the sample feature set are adjusted; wherein the preset application condition is to sort the prediction result according to each sample battery in the sample feature set, and the ranking of the failed battery is within a preset range.

10. A battery fault prediction method based on a multi-task learning model, characterized in that: include: Acquire a prediction feature set of a target battery; the prediction feature set has the same feature combination as a sample feature set for training a multi-task learning model; Inputting the prediction feature set into a trained multi-task learning model, wherein the trained multi-task learning model is a multi-task learning model trained by the training method according to any one of claims 1 to 9; Output the prediction result of the first task and the prediction result of the second task.

11. A training device for a multi-task learning model, characterized in that: include: A first acquisition unit is configured to acquire a sample feature set of a plurality of sample batteries; the plurality of sample batteries include failed batteries with a specific fault, the sample feature set is a target feature combination associated with a first task and a second task, the target feature combination includes at least one basic feature and at least one optimized feature determined from operation data of the plurality of sample batteries according to the first task and the second task; The method includes: obtaining the operating data of the plurality of sample batteries; determining the importance score of each feature in the operating data based on a lightweight gradient boosting machine algorithm; fitting the importance scores of the features based on a polynomial kernel function, and calculating the second-order derivative of the fitting curve, taking the minimum point of the second-order derivative as the inflection point, and determining the feature before the inflection point as the basic feature; and determining at least one of the optimized features from the non-basic features in the operating data that have not been determined as basic features in a recursive feature combination manner; A training unit is configured to input the sample feature set into a pre-built multi-task learning model and train the multi-task learning model to obtain a trained multi-task learning model; wherein the multi-task learning model includes a shared layer and a task layer, and the task layer includes at least a first subnetwork corresponding to a first task and a second subnetwork corresponding to a second task; the shared layer is used to determine shared feature parameters according to the sample feature set, the first subnetwork is used to determine a prediction result of the first task according to at least part of the shared feature parameters, and the second subnetwork is used to determine a prediction result of the second task according to at least part of the shared feature parameters; the first task is to predict whether a specific fault will occur in the battery, and the second task is to predict the time when the specific fault will occur in the battery.

12. A battery failure prediction device, characterized in that: include: A second acquisition unit is configured to acquire a prediction feature set of a target battery; the prediction feature set has the same feature combination as a sample feature set used to train a multi-task learning model; A determination unit configured to input the prediction feature set into a trained multi-task learning model to obtain a prediction result of the first task and a prediction result of the second task; wherein the trained multi-task learning model is a multi-task learning model trained by the training method according to any one of claims 1 to 9; An output unit is configured to output the prediction result of the first task and the prediction result of the second task.

13. A computing device, characterized in that: include: at least one processor; as well as At least one memory is communicatively connected to the at least one processor, the at least one memory stores instructions, and when the instructions are executed by the at least one processor individually or collectively, the computing device performs the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: Instructions are stored, which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the method of any one of claims 1 to 10.

15. A computer program product, characterized in that The method comprises instructions which, when executed individually or collectively by one or more processors of a computing device, cause the computing device to perform the method of any one of claims 1 to 10.