Battery pack fault multi-order early warning method based on cloud data
Through a multi-stage early warning method for battery pack failures based on cloud data, window data and machine learning models are used for risk screening and fault diagnosis, combined with the longitudinal outlier mean method and the voltage cumulative difference mean method, to realize the detection of electric vehicle lithium battery pack failures. The accurate early warning and type differentiation solve the problems of lag in fault early warning and lack of detailed type differentiation in the existing technology, and significantly improve the safety performance.
Patent Information
- Application Number
- CN202410615242.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technology cannot effectively warn and diagnose faults of electric vehicle lithium battery packs, especially thermal runaway accidents, which lead to safety hazards, and the distinction between fault types is not detailed enough.
A multi-stage battery pack fault early warning method based on cloud data is adopted to realize fault diagnosis, location and type through window division of battery pack characteristic data, risk screening, machine learning model early warning, longitudinal outlier mean method and voltage cumulative difference mean method. distinguish.
It improves the accuracy and efficiency of fault diagnosis, reduces the probability of misdiagnosis and missed diagnosis, can detect vehicle faults with an accuracy of more than 98%, and significantly improves the safety performance of the battery system.
Smart Images

Figure CN118560281A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of Internet big data and battery management, and in particular to a multi-stage early warning method for battery pack failure based on cloud data. Background Art
[0002] Under the dual-carbon strategy, new energy electric vehicles have ushered in unprecedented development opportunities, and relevant core technologies have made great progress. Lithium batteries have become the core power source of electric vehicles with their high energy density, long cycle life, and low self-discharge rate. Although the current battery manufacturing and packaging technology levels have been significantly improved, the vehicle operating conditions are complex and changeable, and thermal and electrical abuses occur frequently. Under the coupling of multiple factors, batteries are bound to fail. At present, thermal runaway accidents caused by battery failures are also increasing year by year, becoming an important reason restricting the popularization and promotion of electric vehicles.
[0003] Taking into account the dual effects of the complex electrical structure and harsh working environment of the vehicle battery system, some minor faults will continue to worsen over time. If not handled in a timely manner, they may eventually lead to a rapid decline in the overall performance of the battery pack or even cause a thermal runaway accident, which will seriously threaten the life and property of the passengers in the vehicle.
[0004] Traditional lithium battery fault diagnosis methods rely on deterministic signals such as temperature, deformation, and smoke. However, these methods often have the problem of delayed warning time and cannot effectively prevent the chain reaction between the electrochemical and thermal runaway inside the battery. In addition, different fault types have different abnormal manifestations and thermal runaway risks. Therefore, how to design a method that can achieve accurate fault warning and further classify fault types is a bottleneck problem that needs to be solved urgently. Summary of the invention
[0005] In view of the shortcomings of the above-mentioned prior art, the technical problem to be solved by the present invention is: how to provide a multi-stage fault warning method to realize the functions of battery pack fault diagnosis, positioning and type classification. First, extract relevant fault features based on cloud voltage, and divide low-, medium- and high-risk vehicles through risk screening mechanism; then, remove misleading windows in real vehicle data to accurately establish the mapping relationship between fault features and labels; finally, deploy outlier mean and cumulative difference mean algorithms to realize vehicle-level fault detection, single-unit-level fault location and thermal runaway / voltage offset fault type classification.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] A multi-stage early warning method for battery pack failure based on cloud data, comprising:
[0008] S1: During the charging and discharging process of the battery pack of the vehicle to be tested, characteristic data of the battery pack is collected and divided into window data;
[0009] S2: Extract the fault features of each window data and conduct preliminary risk screening on the vehicles to be tested, and classify the vehicles to be tested into high-risk vehicles, medium-risk vehicles or low-risk vehicles;
[0010] S3: If the vehicle to be detected is a high-risk vehicle or a low-risk vehicle, the fault characteristics of the vehicle to be detected are input into the trained machine learning model, and the vehicle-level fault warning result is output; if the vehicle has a fault, step S5 is executed;
[0011] S4: If the vehicle to be tested is a medium-risk vehicle, the longitudinal outlier mean method algorithm is used to perform fault diagnosis, and further realize the single-cell level fault location of the battery pack of the vehicle to be tested; if there is a faulty single cell, it is determined that the vehicle has a fault and step S5 is executed;
[0012] S5: Classify the fault types of the vehicles to be tested based on the voltage cumulative difference mean method.
[0013] Preferably, in step S1, the characteristic data of the battery pack includes terminal voltage, battery state of charge and total mileage.
[0014] Preferably, in step S2, the fault characteristics of the window data include the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack, and the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack after singular value decomposition.
[0015] Preferably, in step S2:
[0016] 1) Calculate the maximum voltage deviation F of the battery pack using the following formula: 1,MD and the maximum voltage deviation mean F 2,MMD ;
[0017] Dev=|V j -V mid |;
[0018] F 1,MD =max(Dev i )×α;
[0019]
[0020] Where: Dev represents the voltage deviation matrix; V j represents the voltage vector of the jth single cell; V mid represents the voltage median vector of the battery pack; F 1,MD Indicates the maximum voltage deviation of the battery pack; Dev i represents the maximum voltage deviation of the ith sampling point in the voltage deviation matrix Dev; α represents the amplification factor; F 2,MMD Indicates the maximum voltage deviation mean of the battery pack; MDi represents the F of the i-th sampling point 1,MD ; n represents the number of sampling points in the window data;
[0021] 2) Calculate the maximum voltage deviation F of the battery pack based on singular value decomposition by the following formula: 3,SMD and the maximum voltage deviation mean F 4,SMMD ;
[0022] SDev=|V S,j -V S,mid |;
[0023] F 3,SMD =max(SDev i )×α;
[0024]
[0025] Where: SDev represents the voltage deviation matrix after singular value decomposition; V S,j represents the voltage vector of the jth battery after singular value decomposition; V S,mid represents the voltage median vector of the battery pack after singular value decomposition; F 3,SMD Indicates the maximum voltage deviation of the battery pack based on singular value decomposition; SDev i represents the maximum deviation of the i-th sampling point in the voltage deviation matrix SDev; F 4,SMMD Indicates the maximum deviation mean of the voltage of the battery pack based on singular value decomposition; SMD i represents the F of the i-th sampling point 3,SMD .
[0026] Preferably, in step S2, based on the fault characteristics of the window data, 2,MMD Achieve preliminary risk screening of vehicles to be tested: If the F of the 0%-10% window data 2,MMD If the risk threshold is exceeded, the vehicle to be detected is judged to be a low-risk vehicle; if the F of the 10%-30% window data 2,MMD If the F value of the 30%-100% window data exceeds the risk threshold, the vehicle to be detected is judged as a medium-risk vehicle. 2,MMD If the risk threshold is exceeded, the vehicle to be detected is determined to be a high-risk vehicle.
[0027] Preferably, in step S3, if the vehicle to be detected is a low-risk vehicle, then clear F 2,MMD Window data that exceeds the risk threshold; if the vehicle to be detected is a high-risk vehicle, clear F 2,MMD Window data below the risk threshold.
[0028] Preferably, in step S3, the trained XGBoost classifier is used for vehicle-level fault diagnosis and early warning;
[0029] The formula of XGBoost classifier is expressed as:
[0030]
[0031]
[0032]
[0033]
[0034] Where: q(x) represents the score of the q(x)th node in the tree; γ and λ are the coefficients of the penalty term Ω; T represents the number of leaves in the tree; ω j is the weight of the jth leaf node in the tree; G j , H j ,I j represents the instance of leaf j in the tree; l represents the loss function, which measures the vehicle-level fault warning results and the true value y i The difference between.
[0035] Preferably, in step S3, the loss function when training the XGBoost classifier is as follows:
[0036]
[0037] Preferably, in step S4, the thermal runaway risk value of each single cell in the battery pack of the vehicle to be tested is calculated by a longitudinal outlier mean method algorithm, and then the single cell whose thermal runaway risk value exceeds the thermal runaway threshold is regarded as a faulty single cell;
[0038] The calculation formula of the longitudinal outlier mean method algorithm is as follows:
[0039]
[0040] Where: LOA l represents the longitudinal outlier mean of the lth single cell, i.e., the thermal runaway risk value; V il Represents the voltage value of the lth single cell at time i; V imid It represents the median voltage of all cells at time i; L represents the number of cells; α represents the amplification factor.
[0041] Preferably, in step S5, the steps of classifying the fault types by using the voltage cumulative difference mean method are as follows:
[0042] S501: Calculate the voltage difference mean of the battery pack;
[0043] The formula is:
[0044] V original →V rank ;
[0045] V diff =V rank_i,j -V rank_i,j+1 (i=1,2,...,n; j=1,2,...,m-1);
[0046]
[0047] Where: V original is the original voltage matrix of the battery pack; V rank Represents the voltage matrix of the battery pack after descending order; V diff represents the differential voltage matrix of the battery pack after the first-order difference; VDM represents the longitudinal mean of the differential voltage matrix, that is, the voltage differential mean of the battery pack; n is the sampling length; α represents the amplification factor;
[0048] S502: Subtract the voltage difference average of each single cell from the voltage difference average of the last single cell to obtain a mean difference; if the mean difference is less than 0, define it as 0;
[0049] The formula is:
[0050] VDM del =VDM k -VDM last ,(k=1,2,3...m-1);
[0051] if VDM del <0, VDM del =0;
[0052] Where: VDM del VDM stands for mean difference; k Represents the voltage difference mean of the kth single cell; VDM last Indicates the voltage difference mean of the last single cell;
[0053] S503: summing the mean differences of all single cells to obtain the mean of the accumulated voltage differences of the current cycle of the battery pack;
[0054] The formula is:
[0055]
[0056] Where: VCDM represents the voltage cumulative difference mean of the current cycle of the battery pack; VDM del,k is the mean difference of the kth single cell;
[0057] S504: Determine the fault type of the vehicle to be detected based on the VCDM of the battery pack: if the VCDM of more than 20% of the cycles of the battery pack is greater than the fault threshold, the fault type of the vehicle is voltage offset, otherwise the fault type of the vehicle is thermal runaway risk fault.
[0058] Compared with the prior art, the multi-stage early warning method for battery pack failure based on cloud data in the present invention has the following beneficial effects:
[0059] The present invention collects characteristic data of the battery pack during the charging and discharging process of the battery pack of the vehicle and divides it into window data. First, by dividing the original data into multiple windows of fixed size, the computing power burden of fault diagnosis can be reduced and the efficiency of fault diagnosis can be effectively improved. Then, the window data can highlight the fault characteristics within a specific time period, which helps to extract and amplify the local fault characteristics within the window, and improve the accuracy of subsequent fault diagnosis. Finally, the size selection of the window data can be adjusted according to actual needs, and can adapt to the analysis needs in different application scenarios.
[0060] The present invention performs a preliminary risk screening of vehicles and divides the vehicles into high-risk vehicles, medium-risk vehicles or low-risk vehicles, performs fault warning based on machine learning models for high-risk and low-risk vehicles, and performs fault warning based on the longitudinal outlier mean method algorithm for medium-risk vehicles. Experience confirms that the comprehensive detection accuracy of the present invention is above 98%. First, the present invention can realize preliminary abnormal screening of vehicles by performing a preliminary risk screening of vehicles, and then can perform fault diagnosis on vehicles in a targeted manner. Then, for low- and high-risk vehicles, the present invention extracts fault features based on the discharge data window and trains the machine learning model to achieve high-precision diagnosis of battery pack faults. Furthermore, most of the low- and high-risk vehicles used in the present invention are window data that conform to fault or normal labels, so the machine learning model can effectively diagnose faults, but medium-risk vehicles may only have faults in a small number of windows. If only short-term windows are analyzed, the diagnostic accuracy will be reduced. Therefore, the present invention uses battery pack discharge fragments to diagnose faults on medium-risk vehicles. In addition, the longitudinal outlier mean method algorithm can effectively lock the location of the faulty monomer in the battery pack, which helps to fully mine and refine fault information. Finally, the present invention uses different diagnostic methods for low-, medium-, and high-risk vehicles, which can reduce the probability of misdiagnosis and missed diagnosis of battery pack failures. At the same time, in order to be applicable to different actual situations, the present invention combines the above two methods for fault diagnosis, which can effectively improve the detection accuracy, efficiency, and generalization ability, and has the potential to be applied to cloud platforms and realize the safety regulation and management of massive vehicles.
[0061] When a vehicle has a fault, the present invention classifies the fault type of the faulty vehicle based on the voltage cumulative differential mean method. On the one hand, the voltage cumulative differential mean method determines the fault type based on the change in voltage data. It has sufficient sensitivity to abnormal voltage changes and can detect abnormal voltage deviations in a timely manner. On the other hand, there are differences in the processing methods for different fault types. By accurately classifying the fault type, the subsequent work of the battery pack can be more targeted and the safety performance of the battery system can be significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0063] Figure 1 A network flow chart of a multifunctional battery failure detection method;
[0064] Figure 2 The 14-day operating voltage, temperature, and SOC data of a thermal runaway vehicle;
[0065] Figure 3 Compare four features between the faulty car and the normal car;
[0066] Figure 4 The fault detection results for multiple vehicles are as follows: Figure 4 (a) is the ternary vehicle detection result, Figure 4 (b) is the test result of lithium iron phosphate vehicle;
[0067] Figure 5 The results of single-level fault location for high, medium and low risk vehicles based on the longitudinal outlier mean method are as follows: Figure 5 (a) is the high-risk car #1, Figure 5 (b) is the high-risk car #4, Figure 5 (c) is the medium-risk car #13, Figure 5 (d) is the low-risk vehicle #19;
[0068] Figure 6 To classify fault types based on the cumulative difference mean method: Figure 6 (a) is a ternary battery car, Figure 6 (b) is a lithium iron phosphate battery vehicle. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but only represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0070] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" 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 it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0071] The following is a further detailed description through specific implementation methods:
[0072] Example:
[0073] This embodiment discloses a multi-stage early warning method for battery pack failure based on cloud data.
[0074] like Figure 1As shown, the multi-stage early warning method for battery pack failure based on cloud data includes:
[0075] S1: During the charging and discharging process of the battery pack of the vehicle to be detected, characteristic data of the battery pack is collected at intervals of a set sampling time (in this embodiment, the data can be directly obtained from the cloud), and the characteristic data of the battery pack is divided into window data of size 60;
[0076] In this embodiment, the window size of the window data is 60 sampling points.
[0077] S2: Extract the fault features of each window data and conduct preliminary risk screening on the vehicles to be tested, and classify the vehicles to be tested into high-risk vehicles, medium-risk vehicles or low-risk vehicles;
[0078] S3: If the vehicle to be detected is a high-risk vehicle or a low-risk vehicle, the fault characteristics of the vehicle to be detected are input into the trained machine learning model, and the corresponding vehicle-level fault warning results are output; if the vehicle has a fault, step S5 is executed;
[0079] In this embodiment, the vehicle-level fault warning result is a prediction label. If the vehicle to be detected is normal, the prediction label is 0, and if the vehicle to be detected is faulty, the prediction label is 1.
[0080] S4: If the vehicle to be tested is a medium-risk vehicle, the longitudinal outlier mean method algorithm is used to perform fault diagnosis, and further realize the single-cell level fault location of the battery pack of the vehicle to be tested; if there is a faulty single cell, it is determined that the vehicle has a fault and step S5 is executed;
[0081] In this embodiment, the detection is carried out for vehicles equipped with ternary battery packs and lithium iron phosphate battery packs, and the XGBoost model is trained using a high-risk vehicle without obvious faults, a high-risk vehicle with voltage deviation, and a low-risk vehicle, respectively, to obtain two classifier models suitable for ternary and lithium iron phosphate battery packs. The classifier model can provide high-precision fault warning for high-risk and low-risk vehicles.
[0082] S5: Classify the fault types of the vehicles to be tested based on the voltage cumulative difference mean method.
[0083] In this embodiment, the designed voltage cumulative difference mean method can distinguish between two types of faults: no obvious abnormal performance and voltage offset. Among them, the faulty vehicle with no obvious abnormal performance has a higher risk of thermal runaway; the voltage offset fault may not significantly affect the battery safety, but it may also cause battery power failure or even thermal runaway.
[0084] The present invention collects characteristic data of the battery pack during the charging and discharging process of the battery pack of the vehicle and divides it into window data. First, by dividing the original data into multiple windows of fixed size, the computing power burden of fault diagnosis can be reduced and the efficiency of fault diagnosis can be effectively improved. Then, the window data can highlight the fault characteristics within a specific time period, which helps to extract and amplify the local fault characteristics within the window, and improve the accuracy of subsequent fault diagnosis. Finally, the size selection of the window data can be adjusted according to actual needs, and can adapt to the analysis needs in different application scenarios.
[0085] The present invention performs a preliminary risk screening of vehicles and divides the vehicles into high-risk vehicles, medium-risk vehicles or low-risk vehicles, performs fault warning based on machine learning models for high-risk and low-risk vehicles, and performs fault warning based on the longitudinal outlier mean method algorithm for medium-risk vehicles. Experience confirms that the comprehensive detection accuracy of the present invention is above 98%. First, the present invention can realize preliminary abnormal screening of vehicles by performing a preliminary risk screening of vehicles, and then can perform fault diagnosis on vehicles in a targeted manner. Then, for low- and high-risk vehicles, the present invention extracts fault features based on the discharge data window and trains the machine learning model to achieve high-precision diagnosis of battery pack faults. Furthermore, most of the low- and high-risk vehicles used in the present invention are window data that conform to fault or normal labels, so the machine learning model can effectively diagnose faults, but medium-risk vehicles may only have faults in a small number of windows. If only short-term windows are analyzed, the diagnostic accuracy will be reduced. Therefore, the present invention uses battery pack discharge fragments to diagnose faults on medium-risk vehicles. In addition, the longitudinal outlier mean method algorithm can effectively lock the location of the faulty monomer in the battery pack, which helps to fully mine and refine fault information. Finally, the present invention uses different diagnostic methods for low-, medium-, and high-risk vehicles, which can reduce the probability of misdiagnosis and missed diagnosis of battery pack failures. At the same time, in order to be applicable to different actual situations, the present invention combines the above two methods for fault diagnosis, which can effectively improve the detection accuracy, efficiency, and generalization ability, and has the potential to be applied to cloud platforms and realize the safety regulation and management of massive vehicles.
[0086] When a vehicle has a fault, the present invention classifies the fault type of the faulty vehicle based on the voltage cumulative differential mean method. On the one hand, the voltage cumulative differential mean method determines the fault type based on the change in voltage data. It has sufficient sensitivity to abnormal voltage changes and can detect abnormal voltage deviations in a timely manner. On the other hand, there are differences in the processing methods for different fault types. By accurately classifying the fault type, the subsequent work of the battery pack can be more targeted and the safety performance of the battery system can be significantly improved.
[0087] In the specific implementation process, the characteristic data of the battery pack include terminal voltage, battery state of charge and total mileage. Among them, the battery terminal voltage is an important indicator reflecting the battery operating status, and detecting the inconsistency of terminal voltage between single cells is also an important means of fault diagnosis; the battery state of charge and the total mileage of the vehicle are used to divide the cycle segments.
[0088] The present invention can fully reflect various characteristics of the battery pack through the terminal voltage, battery charge state and total mileage.
[0089] In the specific implementation process, the fault characteristics of the window data include the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack, as well as the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack based on singular value decomposition. Among them, singular value decomposition can effectively reduce the interference of noise on fault diagnosis and highlight the fault characteristics.
[0090] Specific:
[0091] 1) Calculate the maximum voltage deviation F of the battery pack using the following formula: 1,MD and the maximum voltage deviation mean F 2,MMD ;
[0092] Dev=|V j -V mid |;
[0093] F 1,MD =max(Dev i )×α;
[0094]
[0095] Where: Dev represents the voltage deviation matrix; V j represents the voltage vector of the jth single cell; V mid represents the voltage median vector of the battery pack; F 1,MD Indicates the maximum voltage deviation of the battery pack; Dev i represents the maximum voltage deviation of the i-th sampling point in the voltage deviation matrix Dev; α represents the amplification factor, α=100; F 2,MMD Indicates the maximum voltage deviation mean of the battery pack; MD i represents the F of the i-th sampling point 1,MD ; n represents the number of sampling points in the window data;
[0096] 2) The voltage singular value decomposition of the battery pack is realized by the following formula;
[0097]
[0098] Where: A represents the matrix to be decomposed; U represents an orthogonal matrix of shape m×m, which is replaced by left singular vectors; V Trepresents an orthogonal matrix of shape n×n, which is right singular vector; Σ represents a diagonal matrix of shape m×n, and the non-zero elements on the diagonal are the eigenvalues of the matrix A to be decomposed, also known as singular values, which are arranged in order from largest to smallest;
[0099] 3) Calculate the maximum voltage deviation F of the battery pack based on singular value decomposition by the following formula: 3,SMD and the maximum voltage deviation mean F 4,SMMD ;
[0100] SDev=|V S,j -V S,mid |;
[0101] F 3,SMD =max(SDev i )×α;
[0102]
[0103] Where: SDev represents the voltage deviation matrix after singular value decomposition; V S,j represents the voltage vector of the jth battery after singular value decomposition; V S,mid represents the voltage median vector of the battery pack after singular value decomposition; F 3,SMD Indicates the maximum voltage deviation of the battery pack based on singular value decomposition; SDev i represents the maximum deviation of the i-th sampling point in the voltage deviation matrix SDev; F 4,SMMD Indicates the maximum deviation mean of the voltage of the battery pack based on singular value decomposition; SMD i represents the F of the i-th sampling point 3,SMD .
[0104] In the specific implementation process, the F in the fault characteristics based on the window data 2,MMD Achieve preliminary risk screening of vehicles to be tested: If the F of the 0%-10% window data 2,MMD If the F value of the window data of 10%-30% exceeds the risk threshold (set to 12.5 in this embodiment), the vehicle to be detected is judged to be a low-risk vehicle; 2,MMD If the F value of the 30%-100% window data exceeds the risk threshold, the vehicle to be detected is judged as a medium-risk vehicle. 2,MMD If the risk threshold is exceeded, the vehicle to be detected is determined to be a high-risk vehicle.
[0105] In the present invention, F 2,MMD Compared with other features, the computing power and time consumed by calculation are the smallest, and the detection accuracy can also meet the needs of primary screening, thereby achieving the purpose of initial risk screening with the least computing power and time.
[0106] In the specific implementation process, if the vehicle to be detected is a low-risk vehicle, then clear F 2,MMD Window data that exceeds the risk threshold (i.e. misleading window); if the vehicle to be detected is a high-risk vehicle, clear F 2,MMD Window data below the risk threshold (i.e., misleading window).
[0107] In this embodiment, a small part of the windows of normal cars will show abnormal performance, and a small part of the windows of faulty cars will also show normal performance (both are normal phenomena). However, when the windows are uniformly labeled, misleading windows will appear (that is, normal segments correspond to fault labels), which is obviously not conducive to machine learning to classify normal and faulty windows. Therefore, it is necessary to clear the misleading windows to assist in improving the effect and performance of machine learning model training.
[0108] During the specific implementation process, the trained XGBoost classifier is used for vehicle-level fault diagnosis and early warning.
[0109] XGBoost (Extreme Gradient Boosting) is an optimized distributed gradient boosting library designed to be efficient, flexible and portable. It is an efficient implementation of Gradient Boosting Decision Trees (GBDT), which is commonly used for ranking, classification and many other machine learning tasks.
[0110] Specifically, the steps to build the XGBoost classifier are as follows:
[0111] S301: construct a tree f(x);
[0112] The formula is:
[0113] f t (x) = ω q(x) ,(q:R d →{1,2,...,T},ω∈R T );
[0114] Where: f t corresponds to an independent tree structure; q represents the structure of each tree that maps examples to corresponding leaf indices; T represents the number of leaves in the tree; ω represents the leaf weight; ω i is the score of the i-th node; R d Represents the structure of each tree; R T represents the leaf weight; ω q(x) The score of the q(x)th node;
[0115] S302: constructing an objective function;
[0116] The formula is:
[0117]
[0118] in represents the loss function of the entire strong learner; l represents the loss function, which measures the predicted value and the target value y i The difference between represents the complexity of the t weak learners in the strong learner, which helps smooth the final learned weights to avoid overfitting;
[0119] S303: Constructing the complexity of weak learners;
[0120] The formula is:
[0121]
[0122] Where: Ωf(f) represents the complexity of the weak learner; T represents the number of leaf nodes in a tree. The larger the value, the more complex the tree; ω j is the weight of the jth leaf node; γ and λ are the coefficients of the penalty term Ω;
[0123] S304: transform the objective function using the second-order Taylor formula;
[0124] The converted objective function is expressed as:
[0125]
[0126]
[0127]
[0128] Among them, x i Represents the input of the sample;
[0129] S305: Remove the constants in the converted objective function, and the objective function in step S304 becomes:
[0130]
[0131]
[0132] Among them, G j , H j ,I j is the instance of leaf j;
[0133] For a fixed structure q(x), the optimal weight ω of blade j is i * ;
[0134] The formula is:
[0135]
[0136] The optimal loss formula is expressed as:
[0137]
[0138] In other preferred embodiments, an existing trained XGBoost classifier may also be selected as a machine learning model for fault warning.
[0139] In the specific implementation process, the thermal runaway risk value of each single cell in the battery pack is first calculated by the longitudinal outlier mean method algorithm, and then the single cell whose thermal runaway risk value exceeds the thermal runaway threshold (set to 1.2 in this example) is regarded as a faulty single cell;
[0140] The calculation formula of the longitudinal outlier mean method algorithm is as follows:
[0141]
[0142] Where: LOA l represents the longitudinal outlier mean of the lth single cell, i.e., the thermal runaway risk value; V il Represents the voltage value of the lth single cell at time i; V imid represents the median voltage of all cells at time i; L represents the number of cells; α represents the amplification factor, α is the amplification factor, α=100.
[0143] In the specific implementation process, the steps of fault type classification using the voltage cumulative difference mean method are as follows:
[0144] S501: Calculate the voltage difference mean of the battery pack;
[0145] The formula is:
[0146] V original →V rank ;
[0147] V diff =V rank_i,j -V rank_i,j+1 (i=1,2,...,n; j=1,2,...,m-1);
[0148]
[0149] Where: V original is the original voltage matrix of the battery pack; V rank Represents the voltage matrix of the battery pack after descending order; V diffrepresents the differential voltage matrix of the battery pack after the first-order difference; VDM represents the longitudinal mean of the differential voltage matrix, that is, the voltage differential mean of the battery pack; n is the sampling length; α represents the amplification factor, α=100; wherein the voltage differential mean VDM of the battery pack is calculated, and each single cell also has a corresponding VDM value.
[0150] S502: Subtract the voltage difference mean of each single cell from the voltage difference mean of the last single cell (for example, if the vehicle is composed of 96 single cells, then the VDM of each single cell is subtracted from the VDM of the 96th single cell to obtain the mean difference) to obtain the mean difference (i.e. the processed difference mean); if the mean difference is less than 0, it is defined as 0;
[0151] The formula is:
[0152] VDM del =VDM k -VDM last ,(k=1,2,3...m-1);
[0153] if VDM del <0, VDM del =0;
[0154] Where: VDM del VDM stands for mean difference; k Represents the voltage difference mean of the kth single cell; VDM last Indicates the voltage difference mean of the last single cell;
[0155] S503: summing the mean differences of all single cells to obtain the mean of the accumulated voltage differences of the current cycle of the battery pack;
[0156] The formula is:
[0157]
[0158] Where: VCDM represents the voltage cumulative difference mean of the current cycle of the battery pack; VDM del,k is the mean difference of the kth single cell;
[0159] S504: Determine the fault type of the vehicle to be detected based on the VCDM of the battery pack: if the VCDM of more than 20% of the cycles of the battery pack is greater than the fault threshold (set to 3.5 in this embodiment), the fault type of the vehicle is voltage deviation, otherwise the fault type of the vehicle is thermal runaway risk fault.
[0160] The voltage cumulative difference mean method designed in the present invention can effectively distinguish between thermal runaway risk and voltage offset faults. Thermal runaway risk faults have no obvious abnormal performance in the early stage of the fault; in the case of voltage offset faults, some vehicles can run normally for a long time, but battery power failure or even thermal runaway may occur in a short period of time.
[0161] In order to better illustrate the advantages of the technical solution of the present invention, this embodiment discloses the following experiments.
[0162] This experiment uses actual vehicle operation data to verify the method proposed in the present invention, involving a total of 10 vehicles equipped with ternary batteries and 15 vehicles equipped with lithium iron phosphate batteries (hereinafter referred to as ternary vehicles / lithium iron phosphate vehicles). The ternary vehicles include 3 thermal runaway vehicles, 5 voltage offset vehicles and 2 normal vehicles, and the lithium iron phosphate vehicles include 8 voltage offset vehicles, 1 power failure vehicle and 8 normal vehicles. Take a ternary battery thermal runaway vehicle as an example. The 76th single cell of the vehicle experienced a sudden voltage drop about 50 seconds before the accident. In the following tens of seconds, the temperature at the corresponding position of the faulty single cell suddenly rose, and then the vehicle had a thermal runaway accident, and the sensor stopped collecting data. Figure 2 The voltage, temperature, and SOC curves of the vehicle 14 days before the accident.
[0163] Figure 3 The three-element vehicle features extracted based on faulty / normal vehicles, the red line represents faulty electric vehicles, and the green line represents normal electric vehicles. Figure 3 It is not difficult to find in (a) that the F of the faulty electric vehicle and the normal electric vehicle 1,MD Has a more obvious separation. Figure 3 (b) shows the F of a normal / faulty electric vehicle 2,MMD , compared to F 1,MD , the differences are quite obvious. Figure 3 (c) and (d) are the voltage characteristics after SVD decomposition: F 3,SMD , and F 4,SMMD .and Figure 3 (a) Similarly, the fault characteristics of ternary batteries are far away from the normal characteristics.
[0164] Figure 4 The LOA value (thermal runaway risk value) of each unit at different times before the accident is shown. It can be observed that on the 14th day before the accident, the LOA value of each unit was lower than the risk threshold (J=1.2). For ternary vehicles, the present invention uses 1 thermal runaway vehicle, a voltage offset vehicle and a normal vehicle data to train the classifier, and the remaining vehicles are used for verification. For lithium iron phosphate vehicles, 2 voltage offset vehicles and 1 normal vehicle are used for training, and the remaining vehicles are used for verification. For the convenience of description, the vehicles are numbered, and the specific situation is shown in Table 1:
[0165] Table 1 Vehicle number and related information
[0166]
[0167] Among them, cars #1-2 did not show obvious voltage abnormalities before thermal runaway occurred, car #3 experienced thermal runaway due to long-term abnormal voltage deviation, and car #13 had a power failure problem and showed abnormal voltage in the early stage of discharge.
[0168] For the tenary cars, #2, #4, and #9 are selected as the training set, and the Precision, Recall, F1, and Accuracy of the test set results are all greater than 99%. The remaining low- and high-risk tenary car data are input into the trained model, and the verification results are as follows: Figure 4 As shown in (a), the evaluation results of the classifier on the accuracy, precision, recall and F1 score of the remaining three-way vehicle detection are shown. As can be seen from the figure, the model can achieve more than 98.8% correct classification regardless of whether it is a high-risk vehicle or a low-risk vehicle. This shows that the model has a strong generalization ability and is expected to have excellent performance in the cloud that stores massive vehicle data. For lithium iron phosphate vehicles, #11, #12, and #18 are selected as training sets, and the four results of the model test set are all above 99%. Then the remaining LFP vehicle data is input into the trained model, and the verification results are as follows Figure 4 As shown in (b), for LFP vehicles with voltage offset faults, the proposed method can achieve a minimum precision of 98.76%, a recall of 98.73%, an F1 of 98.85%, and an accuracy of 98.75%. It can be seen that the method of the present invention has strong detection performance for both types of battery vehicles.
[0169] Figure 5 The results and distribution of the vehicle's discharge voltage segments and their corresponding faulty monomer positioning based on the LOA method are shown. The red dotted line in the LOA diagram represents the risk threshold J (J=1.2). When the LOA of a monomer exceeds the threshold, it is determined that a fault exists. Figure 5 (a) and Figure 5 (b) Corresponds to the operation clips of vehicles #1 and #4 on the 12th day before the data collection deadline. The vehicles have long-term fault performance, but neither has thermal runaway or power failure. Figure 5 (c) and Figure 5 (d) Corresponds to the running clips of vehicles #13 and #19 on the 12th day before the data collection deadline. The vehicles had no abnormal conditions but were identified as medium risk in the primary risk screening. The LOA method confirmed that the vehicles had no fault conditions. Finally, after testing all medium and high risk vehicles based on the method of the present invention, it was found that the method of the present invention can effectively confirm the fault conditions of medium risk vehicles and accurately locate the faulty single cells in all faulty vehicles.
[0170] Figure 6 is the cumulative difference mean of the voltage of all cycles of 25 vehicles, where Figure 6 (a) is a three-way car, Figure 6 (b) is a lithium iron phosphate vehicle. It should be noted that the thermal runaway vehicle is a dotted line, other vehicles are solid lines, and the orange dotted line is the set threshold TS (TS = 0.0035). Figure 6 (a) and Figure 6 (b) It can be found that if there is an abnormal voltage deviation phenomenon, its VCDM is usually greater than the threshold TS. Therefore, whether the VCDM of all cycles exceeds 20% is used as the final judgment basis.
[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A multi-stage early warning method for battery pack failure based on cloud data, characterized in that: include: S1: During the charging and discharging process of the battery pack of the vehicle to be tested, characteristic data of the battery pack is collected and divided into window data; S2: Extract the fault features of each window data and conduct preliminary risk screening on the vehicles to be tested, and classify the vehicles to be tested into high-risk vehicles, medium-risk vehicles or low-risk vehicles; S3: If the vehicle to be detected is a high-risk vehicle or a low-risk vehicle, the fault characteristics of the vehicle to be detected are input into the trained machine learning model to output the vehicle-level fault warning result; If the vehicle has a fault, execute step S5; S4: If the vehicle to be tested is a medium-risk vehicle, the longitudinal outlier mean method algorithm is used to perform fault diagnosis, and further realize the single-cell level fault location of the battery pack of the vehicle to be tested; if there is a faulty single cell, it is determined that the vehicle has a fault and step S5 is executed; S5: Classify the fault types of the vehicles to be tested based on the voltage cumulative difference mean method.
2. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 1, characterized in that: In step S1 , the characteristic data of the battery pack includes terminal voltage, battery state of charge and total mileage.
3. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 1, characterized in that: In step S2, the fault characteristics of the window data include the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack, and the maximum voltage deviation and the mean of the maximum voltage deviation of the battery pack based on singular value decomposition.
4. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 3, characterized in that: In step S2: 1) Calculate the maximum voltage deviation F of the battery pack by the following formula: 1,MD and the maximum voltage deviation mean F 2,MMD ; Dev=|V j -V mid |; F 1,MD =max(Dev i )×α; Where: Dev represents the voltage deviation matrix; V j represents the voltage vector of the jth single cell; V mid represents the voltage median vector of the battery pack; F 1,MD Indicates the maximum voltage deviation of the battery pack; Dev i represents the maximum voltage deviation of the ith sampling point in the voltage deviation matrix Dev; α represents the amplification factor; F 2,MMD Indicates the maximum voltage deviation mean of the battery pack; MD i represents the F of the i-th sampling point 1,MD ; n represents the number of sampling points in the window data; 2) Calculate the maximum voltage deviation F of the battery pack based on singular value decomposition by the following formula: 3,SMD and the maximum voltage deviation mean F 4,SMMD ; SDev=|V S,j -V S,mid |; F 3,SMD =max(SDev i )×α; Where: SDev represents the voltage deviation matrix after singular value decomposition; V S,j represents the voltage vector of the jth battery after singular value decomposition; V S,mid represents the voltage median vector of the battery pack after singular value decomposition; F 3,SMD Indicates the maximum voltage deviation of the battery pack based on singular value decomposition; SDev i represents the maximum deviation of the i-th sampling point in the voltage deviation matrix SDev; F 4,SMMD Indicates the maximum deviation mean of the voltage of the battery pack based on singular value decomposition; SMD i represents the F of the i-th sampling point 3,SMD .
5. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 4, characterized in that: In step S2, based on the fault characteristics of the window data, F 2,MMD Achieve preliminary risk screening of vehicles to be tested: If the F of the 0%-10% window data 2,MMD If the risk threshold is exceeded, the vehicle to be detected is judged to be a low-risk vehicle; If the F of the 10%-30% window data 2,MMD If the risk threshold is exceeded, the vehicle to be detected is determined to be a medium-risk vehicle; If the F of the 30%-100% window data 2,MMD If the risk threshold is exceeded, the vehicle to be detected is determined to be a high-risk vehicle.
6. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 5, characterized in that: In step S3, if the vehicle to be detected is a low-risk vehicle, clear F 2,MMD Window data that exceeds the risk threshold; if the vehicle to be detected is a high-risk vehicle, clear F 2,MMD Window data below the risk threshold.
7. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 1, characterized in that: In step S3, the trained XGBoost classifier is used for vehicle-level fault diagnosis and early warning; The formula of XGBoost classifier is expressed as: Where: q(x) represents the score of the q(x)th node in the tree;γ and λ are the coefficients of the penalty term Ω; T represents the number of leaves in the tree; ω j is the weight of the jth leaf node in the tree; G j , H j ,I j represents the instance of leaf j in the tree; l represents the loss function, which measures the vehicle-level fault warning results and the true value y i The difference between.
8. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 7, characterized in that: In step S3, the loss function when training the XGBoost classifier is as follows:
9. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 1, characterized in that: In step S4, the thermal runaway risk value of each single battery in the battery pack of the vehicle to be tested is calculated by the longitudinal outlier mean method algorithm, and then the single battery whose thermal runaway risk value exceeds the thermal runaway threshold is regarded as a faulty single battery; The calculation formula of the longitudinal outlier mean method algorithm is as follows: Where: LOA l represents the longitudinal outlier mean of the lth single cell, i.e., the thermal runaway risk value; V il Represents the voltage value of the lth single cell at time i; V imid It represents the median voltage of all cells at time i; L represents the number of cells; α represents the amplification factor.
10. The multi-stage early warning method for battery pack failure based on cloud data as claimed in claim 1, characterized in that: In step S5, the steps of classifying fault types using the voltage cumulative difference mean method are as follows: S501: Calculate the voltage difference mean of the battery pack; The formula is: In original →V rank ; V diff =V rank_i,j -V rank_i,j+1 (i=1,2,...,n;j=1,2,...,m-1); Where: V original is the original voltage matrix of the battery pack; V rank Represents the voltage matrix of the battery pack after descending order; V diff represents the differential voltage matrix of the battery pack after the first-order difference; VDM represents the longitudinal mean of the differential voltage matrix, that is, the voltage differential mean of the battery pack; n is the sampling length; α represents the amplification factor; S502: Subtract the voltage difference average of each single cell from the voltage difference average of the last single cell to obtain a mean difference; if the mean difference is less than 0, define it as 0; The formula is: VDM del =VDM k -VDM last ,(k=1,2,3...m-1); if VDM del <0,VDM del =0; Where: VDM del represents the mean difference; VDM k Represents the voltage difference mean of the kth single cell; VDM last Indicates the voltage difference mean of the last single cell; S503: summing the mean differences of all single cells to obtain the mean of the accumulated voltage differences of the current cycle of the battery pack; The formula is: Where: VCDM represents the voltage cumulative difference mean of the current cycle of the battery pack; VDM del,k is the mean difference of the kth single cell; S504: Determine the fault type of the vehicle to be detected based on the VCDM of the battery pack: if the VCDM of more than 20% of the cycles of the battery pack is greater than the fault threshold, the fault type of the vehicle is voltage offset, otherwise the fault type of the vehicle is thermal runaway risk fault.
