Thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism

The feature mining model of Bi-LSTM and the attention mechanism solves the problem of low accuracy in thermal runaway warning of energy storage batteries. Through the combination of multi-basic models and the differentiated weight learning of the attention mechanism, the accuracy of thermal runaway batteries is improved. The recognition accuracy reduces missed judgments and misjudgments, and enhances the reliability of early warnings.

CN114460481BActive Publication Date: 2024-09-03ZHEJIANG SHANGCHUSHU INTELLIGENT SOURCE TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210103432.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-27
Publication Date
2024-09-03
Estimated Expiration
2042-01-27

AI Technical Summary

Technical Problem

Existing technology has problems with low accuracy in thermal runaway warning of energy storage batteries. In particular, the small sample problem caused by the small proportion of thermal runaway data and the insufficient sensitivity to imbalanced data have caused the model to fail to capture battery differences. There are limitations.

Method used

A feature mining model based on Bi-LSTM and attention mechanism is used to obtain the operating status information of the energy storage battery, perform z-score standardization processing, and build multiple basic models to calculate the reconstruction error, and comprehensively determine the thermal runaway probability of the battery. The attention mechanism is used for parameter differential weight learning to reduce missed judgments and misjudgments.

Benefits of technology

It achieves accurate learning of energy storage battery data characteristics, effectively extracts the time-varying characteristics during thermal runaway, improves the accuracy of identifying thermal runaway batteries, reduces the rate of missed and misjudgment, and enhances the reliability of early warning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114460481B
    Figure CN114460481B
Patent Text Reader

Abstract

The present invention belongs to the field of energy storage battery safety warning, and particularly relates to an energy storage battery thermal runaway warning method based on Bi-LSTM and attention mechanism, comprising constructing a feature mining model based on Bi-LSTM and attention mechanism, respectively training n basic models, calculating the reconstruction error of each basic model, the reconstruction errors of the n basic models forming a basic error set, and calculating the reconstruction error threshold according to the reconstruction error set; comparing the reconstruction errors of the n basic models with the reconstruction error threshold, if the reconstruction error of the basic error is less than the reconstruction error threshold, the basic model judges that the battery is normal, otherwise it judges that the battery is in thermal runaway; comprehensively calculating the thermal runaway probability P of the battery thermal runaway based on the n basic models; and giving a thermal runaway warning when the thermal runaway probability P exceeds 70%; the present invention realizes accurate learning of energy storage battery data features, and effectively extracts the time-varying characteristics of energy storage battery state information data during thermal runaway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of safety early warning of energy storage batteries, and in particular relates to a thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism. Background Art

[0002] At present, energy storage batteries are mainly used in electric vehicles and energy storage power stations. With the large-scale promotion of electric vehicles and energy storage power stations, combustion and explosion accidents caused by thermal runaway of energy storage batteries are common. At present, the lack of safety of energy storage batteries in the energy system poses a major threat to the national economy and life safety.

[0003] The causes of thermal runaway problems in energy storage batteries can be divided into three categories: mechanical failure, electrical failure, and thermal failure. The common link is internal short circuit. The development time scale of internal short circuit is hundreds of hours, and the phenomenon is not obvious in the early stage, but it will cause combustion and explosion in a short time in the late stage, so the problem of thermal runaway prevention and control warning is of great significance. In order to solve the problem of thermal runaway prevention and control warning, the mainstream methods in academia are divided into three categories: experimental-based methods, model-based methods, and data-driven methods. The experimental-based method can derive the battery temperature safety boundary and guide the battery system design. However, the accuracy of the experimental method depends on a large number of experiments, which leads to safety hazards and high economic costs, and it is difficult to promote and apply. The model-based method mainly estimates the temperature rise, voltage change or temperature distribution of the battery to indirectly warn of thermal runaway. Its advantage is that the physical meaning is clear, but the existing model method is relatively single in terms of working conditions, which is difficult to apply to real working conditions.

[0004] The data-driven method is one of the emerging research hotspots in this field. By using historical data, a data model of the relationship between the parameters of energy storage batteries such as voltage, temperature, SOC and their thermal runaway can be established. Its advantage is that it can reflect the actual working conditions of the battery and avoid the study of the complex electrochemical mechanism inside the energy storage battery. At present, most of the data-driven methods are supervised methods. The research idea is to obtain the data of thermal runaway energy storage batteries under specific working conditions through experimental methods, use it as a label to train the neural network model, and then distinguish the thermal runaway situation of the energy storage battery. However, the above-mentioned supervised method has the following problems: although the scale of energy storage battery operation data is huge, the proportion of thermal runaway battery data is small, there is a small sample problem, which leads to low model accuracy, so the supervised method has limitations on this problem. The unsupervised method can learn from data sets without label annotations and is not sensitive to unbalanced data. This method is suitable for energy storage battery discrimination problems containing a large number of normal samples. However, the data difference between energy storage batteries in the early and middle stages of thermal runaway and normal batteries is weak, and it is difficult to distinguish thermal runaway energy storage batteries by unsupervised clustering using simple distance calculation methods (such as Kmeans method). In summary, the unsupervised method that can effectively capture the data difference between thermal runaway batteries and normal batteries has great application potential in thermal runaway early warning of electrochemical energy storage batteries. Summary of the invention

[0005] In view of the bottleneck problem of the existing accurate warning technology for thermal runaway of energy storage batteries, the present invention proposes a thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism, comprising the following steps:

[0006] Acquire the operating status information of the energy storage battery, and standardize the acquired operating status information of the energy storage battery using a z-score standardization method; and use n normal battery data sets as n training data;

[0007] Construct a feature mining model based on Bi-LSTM and attention mechanism, train n basic models through n training data respectively, calculate the reconstruction error of each basic model, the reconstruction errors of n basic models constitute the basic error set, and calculate the reconstruction error threshold according to the reconstruction error set;

[0008] Compare the reconstruction errors of the n basic models with the reconstruction error threshold. If the reconstruction error of the basic error is less than the reconstruction error threshold, the basic model determines that the battery is normal, otherwise it is determined that the battery is in thermal runaway;

[0009] The thermal runaway probability P of the battery is calculated by integrating n basic models, which is expressed as:

[0010]

[0011] Among them, y kThe judgment result of the kth basic model on the energy storage battery is battery thermal runaway;

[0012] When the thermal runaway probability P exceeds 70%, a thermal runaway warning is issued.

[0013] Furthermore, the z-score standardization method is used for standardization:

[0014]

[0015] Among them, x is the sample value to be normalized; x * is the normalized sample value; x μ is the sample mean; x σ is the sample standard deviation.

[0016] Furthermore, the feature mining model based on Bi-LSTM and attention mechanism includes a Bi-LSTM model and an attention mechanism. The Bi-LSTM model includes two layers of long short-term memory networks, namely, a long short-term memory network for forward propagation and a long short-term memory network for backward propagation. The propagation process of the long short-term memory network for forward propagation includes:

[0017] f t =σ(W f h t-1 +U f x t +b f );

[0018] i t =σ(W i h t-1 +U i x t +b i );

[0019]

[0020]

[0021] o t =σ(W o h t-1 +U o x t +b o );

[0022] h t =o t ⊙tanh(C t );

[0023] Among them, x t is the input of the hidden layer node of the current sequence; C t is the node state of the hidden layer of the current sequence; ht is the forward hidden layer output at time t; f t 、i t , o t is the intermediate variable, W f , W i , W o , W c They are the intermediate variables f t 、i t , o t as well as The corresponding weight matrix, b f 、b i 、b o 、b c Do not use the intermediate variable f t 、i t , o t as well as The corresponding bias parameter; U f , U i , U c , U o They are the input weight matrices corresponding to the forget gate, input gate, sequence hidden node state, and output gate respectively; σ() is the activation function; ⊙ represents the multiplication of the corresponding elements in the matrix.

[0024] Furthermore, the hidden layer output of the Bi-LSTM model at time t is expressed as:

[0025] h' t =a t h t +b t h i +c t ;

[0026] Among them, h' t represents the hidden layer output of the Bi-LSTM model at time t; a t 、b t is the reverse hidden layer output weight at time t, h t 、h i are the hidden layer outputs of the positive and reverse time series at time t respectively; c t Represents the bias term.

[0027] Furthermore, in the feature mining model based on Bi-LSTM and attention mechanism, the feature classification input into the model at each moment is weighted using the attention mechanism, and the obtained hidden layer is used as input data to update the new hidden layer output h" t ,include:

[0028] h” t =A t h' t;

[0029] Among them, A t is the weight matrix of the attention mechanism layer.

[0030] Furthermore, the weight matrix A of the attention mechanism layer t The element α in row i and column j in i,j is the hidden layer output h′ of the Bi-LSTM model at time t t The similarity between the i-th element and the j-th element in is expressed as:

[0031]

[0032] Among them, h' i,t 、h' j,t They represent the Bi-LSTM hidden layer output h' at time t respectively. t The i-th and j-th elements of ; l is the output dimension of the hidden layer.

[0033] Furthermore, the goal of the feature mining model training process based on Bi-LSTM and attention mechanism is to minimize the reconstruction error of input and output data, which is expressed as:

[0034]

[0035] in, For input X in With output The reconstruction error of in With output The dimension of N is the total duration; x in,i,t For input X in The element value of the i-th dimension at time t; x out,i,t Output The element value of the i-th dimension at time t.

[0036] Furthermore, the reconstruction error of the sample to be detected is compared with the reconstruction error threshold, and the process of determining whether to issue an early warning includes:

[0037]

[0038] Among them, X' in Indicates the input of a storage battery to be judged, represented by X in =[V,SOC,I,T,M], V represents the battery voltage of the energy storage battery, SOC represents the state of charge of the energy storage battery, I represents the current of the energy storage battery, T represents the temperature of the energy storage battery, and M represents the voltage variance, mean, maximum value, and minimum value of all cells in a set of battery data, namely V, SOC, I, and T; Indicates the output of a storage battery to be judged, expressed as is the reconstructed feature based on the input features V, SOC, I, T, and M; y represents the judgment result of the basic model on the energy storage battery to be judged; K represents the reconstruction error threshold.

[0039] Furthermore, the calculation of the reconstruction error threshold K includes: calculating the mean value and standard deviation of the reconstruction error set corresponding to the input data set, and selecting the reconstruction error that is two standard deviations greater than the mean value as the reconstruction error threshold K.

[0040] The present invention can realize accurate learning of energy storage battery data features, and effectively extract the time-varying characteristics of energy storage battery voltage, temperature, SOC and other data during thermal runaway. In addition, the present invention improves the basic model through the attention mechanism to realize differentiated weight learning of various parameters of the energy storage battery at different times, and finally forms an integrated model to further reduce missed judgments and misjudgments of thermal runaway energy storage batteries. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 Schematic diagram of the long-short term memory network used in the present invention;

[0042] Figure 2 This is a schematic diagram of energy storage battery data feature mining based on Bi-LSTM and attention mechanism of the present invention;

[0043] Figure 3 It is the basic model of energy storage battery feature mining based on Bi-LSTM and attention mechanism of the present invention;

[0044] Figure 4 This is a flow chart of the thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism of the present invention;

[0045] Figure 5 is the warning probability value of the top 10 warning probabilities in the embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The present invention proposes a thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism, comprising the following steps:

[0048] Acquire the operating status information of the energy storage battery, and standardize the acquired operating status information of the energy storage battery using a z-score standardization method; and use n normal battery data sets as n training data;

[0049] Construct a feature mining model based on Bi-LSTM and attention mechanism, train n basic models through n training data respectively, calculate the reconstruction error of each basic model, the reconstruction errors of n basic models constitute the basic error set, and calculate the reconstruction error threshold according to the reconstruction error set;

[0050] Compare the reconstruction errors of the n basic models with the reconstruction error threshold. If the reconstruction error of the basic error is less than the reconstruction error threshold, the basic model determines that the battery is normal, otherwise it is determined that the battery is in thermal runaway;

[0051] The thermal runaway probability P of the battery is calculated by integrating n basic models, which is expressed as:

[0052]

[0053] Among them, y k The judgment result of the kth basic model on the energy storage battery is battery thermal runaway;

[0054] When the thermal runaway probability P exceeds 70%, a thermal runaway warning is issued.

[0055] Example 1

[0056] In this embodiment, a thermal runaway warning method for an energy storage battery based on Bi-LSTM and attention mechanism of the present invention is further described in detail.

[0057] The present invention proposes a data feature mining technology for energy storage batteries based on Bi-LSTM and attention mechanism, and uses it as a basic model for judging thermal runaway of energy storage batteries. The operating state of the energy storage battery can be described by variables such as battery voltage (V), current (I), state of charge (SOC), temperature (T), etc. These variables can be monitored in real time by the battery management system (BMS). Since these variables have different dimensions and have large differences in values, in order to ensure the training accuracy of the basic reconstruction model, the energy storage battery samples should first be subjected to data standardization. Since the energy storage battery is affected by changes in the physical state of the battery, there may be some extreme data that deviates from the sample mean, and the z-score standardization method uses the overall information of the sample and is less affected by extreme data, so this article uses the z-score standardization method. The z-score standardization method uses the sample mean and standard deviation to preprocess the data, that is:

[0058]

[0059] Where: x is the sample value to be normalized; x * is the normalized sample value; x μ is the sample mean; x σ is the sample standard deviation. The standardized variables are used as the feature vectors for the basic model input. The thermal runaway process of energy storage batteries often involves a time span of dozens of hours. Therefore, in the process of data reconstruction, the basic model must have the ability to process long-term span information. The bidirectional long short-term memory network (Bi-long Short-term Memory, Bi-LSTM) can efficiently and effectively capture the characteristics of long-term span information. Therefore, the present invention uses Bi-LSTM as the basic model, which is obtained by combining two layers of long short-term memory networks (Long Short-Term Memory, LSTM). LSTM is like Figure 1 The specific model is as follows:

[0060] f t =σ(W f h t-1 +U f x t +b f );

[0061] i t =σ(W i h t-1 +U i x t +b i );

[0062]

[0063]

[0064] o t =σ(W o h t-1 +U o x t +b o );

[0065] h t =o t ⊙tanh(C t );

[0066] Where: x t is the input of the hidden layer node of the current sequence; C t is the node state of the hidden layer of the current sequence; h t is the hidden layer node output of the current sequence; f t ,i t , o tis the intermediate variable; W, b are the weight parameter and bias parameter respectively. The first five items in the above formula are described by LSTM(·), which means that the input x t With the output h t The relationship between them, and then the hidden layer output of Bi-LSTM at time t can be expressed as:

[0067] h t =LSTM(V t ,I t ,SOC t ,T t ,M t ,h t-1 );

[0068] h i =LSTM(V t ,I t ,SOC t ,T t ,M t ,h i-1 );

[0069] h' t =a t h t +b t h i +c t ;

[0070] Where: LSTM(·) represents the operation process of the LSTM network; h t is the forward hidden layer output at time t, which is determined by the input V at time t t ,I t , SOC t 、T t 、M t and the hidden layer output h at the previous moment t-1 It is calculated, which takes into account the influence of the past hidden layer output on the current hidden layer output. The forward hidden layer is as follows Figure 3 The second circle from bottom to top; h i is the reverse hidden layer output at time t, which is the input quantity V at time t t ,I t , SOC t 、T t 、M t and the hidden layer output h at the next moment i-1 It is calculated, which takes into account the impact of future hidden layer output on current hidden layer output. The reverse hidden layer is as follows Figure 3 The third layer from the bottom is shown in the circle. Bi-LSTM uses the reconstruction error as the loss function and updates the network hidden layer output h' t ,like Figure 3The fourth circle from the bottom up.

[0071] When calculating the cumulative reconstruction error of the energy storage battery in N time periods, the relative importance of each input variable of the energy storage battery in the reconstruction error at the current moment is different. It is not accurate to directly consider the reconstruction error calculation of the multi-dimensional time series of the energy storage battery as the accumulation of reconstruction errors for abnormal judgment of single-variable time series data. It is necessary to give the current moment Bi-LSTM hidden layer a dynamic weight as time changes. The attention mechanism can realize the differentiated learning of the weights of the features of time series data at different moments. To this end, the present invention adds an attention mechanism to the Bi-LSTM basic reconstruction model. Figure 3 The colored circles represent the attention mechanism layer, which is assigned different weight coefficients to the feature vector after the attention mechanism layer. The input features in the thermal runaway warning basic model at each moment are weighted using the attention mechanism, and the obtained hidden layer is used as input data to update the new hidden layer output h" t ,Right now:

[0072] h” t =A t h' t ;

[0073] Where: A t is the weight matrix of the attention mechanism layer. t The element α in i,j Calculated by similarity, expressed as:

[0074]

[0075] Where: h' i,t , h' j,t They represent the Bi-LSTM hidden layer output h' at time t respectively. t The i-th and j-th elements of , l is the hidden layer output dimension. Finally, the output is obtained through the fully connected layer See the top circle in Figure 3.

[0076] In summary, in order to effectively extract the data features of the energy storage battery pack voltage, temperature, current, SOC, etc., the present invention comprehensively considers the time series characteristics of the energy storage battery operation data and the weight differentiation of the features to achieve effective mining of the energy storage battery data features. The above model is used as the basic model for calculating the battery data reconstruction error, and the model input vector is denoted as X in =[V,SOC,I,T,M]; the output is the reconstructed data of the input features, denoted as The variable dimensions of input and output are equal. The optimization goal of the model training process is to minimize the reconstruction error of input and output data, which can be expressed as:

[0077]

[0078] Where: J is the input X in With output The reconstruction error of in and Dimension; x in,i,t For X in The element value of the i-th dimension at time t; x out,i,t for The element value of the i-th dimension at time t in . After the above basic model training is completed, it can be used to judge the thermal runaway of the energy storage battery to be tested. The reconstruction error of the energy storage battery to be tested is obtained after calculation by the basic model. The judgment rule is:

[0079]

[0080] Where: X' in Indicates a storage battery input to be judged; represents the output of a certain energy storage battery to be judged; y represents the judgment result of the basic model on the energy storage battery to be judged; K represents the judgment threshold of whether thermal runaway occurs; J' represents the reconstruction error of the sample to be judged calculated by the basic model. If its reconstruction error J' is greater than or equal to the set threshold K, the energy storage battery is judged to be in thermal runaway and assigned a value of 1; if its reconstruction error J' is less than the set threshold K, the energy storage battery is judged to be normal and assigned a value of 0. The present invention obtains the corresponding reconstruction error set by training different normal battery samples, calculates the mean value and standard deviation of the set, and the present invention selects the reconstruction error that is exactly greater than two standard deviations from the mean value as the threshold K.

[0081] In summary, the overall flow chart of the thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism of the present invention is as follows: Figure 3 As shown, the specific steps include:

[0082] Step 1: Data preprocessing. First, in order to eliminate the influence of the dimensions of each feature vector when calculating the reconstruction error, the features with different dimensions are normalized. The present invention adopts the z-score method. Then, a multidimensional time series feature vector is constructed. Finally, the n normal battery data sets in the obtained data are used as n training sets, and the remaining battery data sets are used as test sets.

[0083] Step 2: Model training. First, the energy storage battery data feature mining technology based on Bi-LSTM and attention mechanism in Section 2 is used to build a basic model. Then, based on the n training sets in step 1, n basic models are trained in turn; and the reconstruction error set is obtained, and the reconstruction error threshold K is calculated from the reconstruction error set.

[0084] Step 3: Calculation of samples to be judged. Input a sample of energy storage battery to be judged into the integrated model, calculate the reconstruction error J' of the sample, compare it with the given reconstruction error threshold K, and judge the output y of each basic model k (0 / 1), and finally the warning probability is calculated to obtain the warning probability value P, that is:

[0085]

[0086] Among them, y k The judgment result of the kth basic model for the energy storage battery is battery thermal runaway.

[0087] Energy storage batteries with a warning probability value exceeding 70% are regarded as potential thermal runaway batteries.

[0088] Example 2

[0089] In this embodiment, actual energy storage battery data of a domestic company is collected, involving a total of 60 groups of batteries, including the voltage, current, state of charge, temperature and other parameters of each group of batteries, with a time span of about half a year and a sampling frequency of 10Hz. Since the working conditions involved in the non-charging battery data are changeable, even between normal sample sets, the gap is relatively large, so the present invention only analyzes the actual charging data. However, since the charging frequency and charging time of each group of batteries are different, the shortest charging data length is used as the benchmark value, and the remaining data lengths are all benchmark values. Two groups of energy storage batteries caused combustion and explosion due to thermal runaway. The above data are preprocessed as follows:

[0090] First, the thermal runaway outbreak phase is extremely short, and the phenomenon is not obvious in the early stage, but in the late stage it will cause combustion and explosion in a short time. During the above process, the parameters of the energy storage battery change significantly. In order to eliminate the influence of abnormal data in the outbreak phase of the battery thermal runaway on the model judgment, the data in the outbreak phase is deleted;

[0091] Then, because the non-charging state of the energy storage battery involves too many working conditions, the model may misjudge the energy storage battery in different working conditions as abnormal. However, the working condition of the energy storage battery during the charging process is single, and the data characteristics are relatively stable, so the charging part of the data is selected. Finally, in order to eliminate the influence of each feature dimension when calculating the reconstruction error, the features with different dimensions are normalized.

[0092] The present invention will compare the following methods (M1-M3):

[0093] M1: A thermal runaway judgment model for energy storage batteries based on unsupervised learning. The model uses a bidirectional long short-term memory neural network with two hidden layers and 40 neurons in each layer, which ensures that the number of input and output neurons is consistent. The initial learning rate is 0.001, and the optimizer uses an improved algorithm with adaptive learning rate.

[0094] M2: A thermal runaway judgment model for energy storage batteries based on unsupervised learning. The model uses a fully connected neural network. There are three hidden layers. The number of neurons in the first layer is 40, the number of neurons in the second layer is 15, and the number of neurons in the third layer is 40, which ensures that the number of neurons in the input and output layers is consistent. The initial learning rate is selected as 0.0001, and the optimizer uses a variable step size gradient descent algorithm to integrate the above basic models to form an integrated model.

[0095] M3: A thermal runaway judgment model for energy storage batteries based on unsupervised learning. The model uses a bidirectional long short-term memory neural network. Among them, the number of hidden layers is 4. The number of neurons in the first layer is 40, the number of neurons in the second layer is 15, and the third layer is different from M2. It is an added attention mechanism layer. The number of neurons in the fourth layer is 40, that is, the number of neurons in the input and output layers is guaranteed to be consistent. The initial learning rate is selected as 0.0001, and the optimizer uses a variable step size gradient descent algorithm to integrate the above basic models to form an integrated model.

[0096] This embodiment considers taking six aspects to measure the accuracy of the model, including classification accuracy, classification precision, classification recall, F1 value, warning probability, and ranking of suspicious degree of problem vehicles. Among them: classification accuracy refers to the ratio of correctly classified thermal runaway lithium batteries to correctly classified healthy lithium batteries to the total number of batteries, that is:

[0097]

[0098] In the formula, A is the accuracy; Tr right is the number of vehicles that are correctly classified as real thermal runaway vehicles; NTr right is the number of correctly classified healthy batteries; Tr wrong is the number of vehicles that are misclassified as real thermal runaway vehicles; NTr wrong is the number of healthy batteries that are misclassified; the classification accuracy refers to the ratio of correctly classified thermal runaway lithium batteries to the number of vehicles identified as thermal runaway by the model, that is:

[0099]

[0100] Where P is the precision; Tr right is the number of vehicles that are correctly classified as real thermal runaway vehicles; Tr wrong It is the number of batteries that are judged by the model as being in thermal runaway but are not in thermal runaway temporarily; the recall rate refers to the ratio of correctly classified thermal runaway lithium batteries to the number of real thermal runaway lithium batteries, that is:

[0101]

[0102] Where: P is the precision; Trright NTr is the number of vehicles correctly classified as real thermal runaway vehicles; wrong is the number of batteries that are judged to be normal in the real thermal runaway battery. The F1 value is the harmonic mean of precision and recall, which takes into account the precision and recall, that is:

[0103]

[0104] Definition of warning probability The number of times the basic model in the integrated model is judged as 1 accounts for the proportion of all basic models, which reflects the judgment of the integrated model on the thermal runaway of a lithium battery. The ranking of the suspicious degree of problem vehicles indicates the ranking of the probability values ​​of problem vehicles in the current test batch, which can measure whether the reconstruction error value of the model for suspicious vehicles is significantly different from that of normal vehicles. The larger the value of the above indicators, the better the model classification performance. In addition, the present invention sets a warning ranking index for thermal runaway batteries, and obtains a ranking from high to low by calculating the reconstruction error size of all batteries in the same test set, and records the serial numbers of the two groups of thermal runaway batteries. The lower the value, the better the model performance.

[0105] The precise mining method of energy storage battery data features aims to improve the accuracy of each basic model in the integrated model. In order to illustrate the effect of this method on improving model accuracy, the following calculation example is set: M1 randomly selects 20 groups of normal energy storage battery samples from 60 groups of battery data as training sets, and the remaining 40 groups of energy storage battery samples (including 2 groups of thermal runaway battery data) as test sets. The training set and test set settings of M2 and M3 are the same as M1, and the results are shown in Tables 2, 3, Figure 5 shown.

[0106] Table 2 Comparison of performance of ensemble models based on different learning strategies

[0107]

[0108] Table 3 Warning probability and ranking of thermal runaway energy storage batteries

[0109]

[0110] In summary, in order to solve the problem that it is difficult to effectively warn of thermal runaway of energy storage batteries, the present invention verifies the three schemes M1 to M3: First, the present invention proposes a time series feature extraction technology for energy storage battery parameters based on Bi-LSTM to form a basic model for distinguishing differences, and uses the reconstruction error of energy storage battery data to define the degree of difference between batteries, effectively extracting the time-varying characteristics of energy storage battery voltage, temperature, SOC and other data during thermal runaway. On this basis, the basic model is improved through the attention mechanism to realize the differentiated weight learning of various parameters of the energy storage battery at different times, reduce the missed judgment and misjudgment of thermal runaway vehicles by the integrated model, further form an integrated model, and quantify the probability of thermal runaway of the energy storage battery. In the model of the present invention, thermal runaway energy storage batteries can be significantly distinguished from normal batteries, and this method has the highest warning accuracy for thermal runaway batteries.

[0111] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism, characterized in that: The following steps are involved: Acquire the operating status information of the energy storage battery, and standardize the acquired operating status information of the energy storage battery using a z-score standardization method; and use n normal battery data sets as n training data; A feature mining model based on Bi-LSTM and attention mechanism is constructed. N basic models are obtained by training n training data respectively. The reconstruction error of each basic model is calculated. The reconstruction errors of n basic models constitute the basic error set, and the reconstruction error threshold is calculated according to the reconstruction error set. The hidden layer output of Bi-LSTM at time t can be expressed as: h t =LSTM(V t ,I t ,SOC t ,T t ,M t ,h t-1 ) h i =LSTM(V t ,I t ,SOC t ,T t ,M t ,h i-1 ) h’ t =a t h t +b t h i +c t Among them, h t is the forward hidden layer output at time t, h i is the reverse hidden layer output at time t; LSTM(·) represents the operation process of the LSTM network; V t ,I t ,SOC t ,T t are the battery pack voltage, current, state of charge, and temperature at time t, respectively. t Represents the voltage variance, mean, maximum, and minimum of all cells in a set of battery data at time t; a t , b t is the reverse hidden layer output weight at time t, c t represents the bias term; The feature classification input into the model at each moment is weighted using the attention mechanism, and the obtained hidden layer is used as input data to update the new hidden layer output h" t ,include: h” t =A t h’ t Among them, A t is the weight matrix of the attention mechanism layer, the weight matrix A of the attention mechanism layer t The element α in row i and column j in i,j The hidden layer output h' of the Bi-LSTM model at time t t The similarity between the i-th element and the j-th element in is expressed as: Among them, h' i,t 、h' j,t They represent the Bi-LSTM hidden layer output h' at time t respectively. t The i-th and j-th elements of ; l is the output dimension of the hidden layer; Compare the reconstruction errors of the n basic models with the reconstruction error threshold. If the reconstruction error of the basic error is less than the reconstruction error threshold, the basic model determines that the battery is normal, otherwise it is determined that the battery is in thermal runaway; The thermal runaway probability P of the battery is calculated by integrating n basic models, which is expressed as: Among them, y k The judgment result of the kth basic model on the energy storage battery is battery thermal runaway; When the thermal runaway probability P exceeds 70%, a thermal runaway warning is issued.

2. The thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism according to claim 1, characterized in that: Standardization is performed using the z-score standardization method: Among them, x is the sample value to be normalized; x * is the normalized sample value; x μ is the sample mean; x σ is the sample standard deviation.

3. The thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism according to claim 1, characterized in that: The feature mining model based on Bi-LSTM and attention mechanism includes Bi-LSTM model and attention mechanism. The Bi-LSTM model includes two layers of long short-term memory network, namely, long short-term memory network of forward propagation and long short-term memory network of backward propagation. The propagation process of long short-term memory network of forward propagation includes: f t =σ(W f h t-1 +U f x t +b f ); i t =σ(W i h t-1 +U i x t +b i ); the t =σ(W o h t-1 +U o x t +b o ); h t =o t ⊙tanh(C t ); Among them, x t is the input of the hidden layer node of the current sequence; C t is the node state of the hidden layer of the current sequence; h t is the forward hidden layer output at time t; f t 、i t , o t is the intermediate variable, W f , W i , W o , W c They are the intermediate variables f t 、i t , o t as well as The corresponding weight matrix, b f , b i , b o , b c Do not use the intermediate variable f t 、i t , o t as well as The corresponding bias parameter; U f , U i , U c , U o are the input weight matrices corresponding to the forget gate, input gate, sequence hidden node state, and output gate respectively; σ( ) is the activation function; ⊙ represents the multiplication of the corresponding elements in the matrix.

4. The thermal runaway warning method for energy storage batteries based on Bi-LSTM and attention mechanism according to claim 1, characterized in that: The goal of the feature mining model training process based on Bi-LSTM and attention mechanism is to minimize the reconstruction error of input and output data. This goal is expressed as: in, For input X in With output The reconstruction error of in With output The dimension of N is the total duration; x in,i,t For input X in The element value of the i-th dimension at time t; x out,i,t Output The element value of the i-th dimension at time t.

5. The thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism according to claim 4 is characterized in that: The reconstruction error of the sample to be detected is compared with the reconstruction error threshold to determine whether to issue an early warning. The process includes: Among them, X in Indicates the input of a storage battery to be judged, represented by X in =[V,SOC,I,T,M], V represents the battery voltage of the energy storage battery, SOC represents the state of charge of the energy storage battery, I represents the current of the energy storage battery, T represents the temperature of the energy storage battery, and M represents the voltage variance, mean, maximum value, and minimum value of all cells in a set of battery data, namely V, SOC, I, and T; Indicates the output of a storage battery to be judged, expressed as is the reconstructed feature based on the input features V, SOC, I, T, and M; y represents the judgment result of the basic model on the energy storage battery to be judged; K represents the reconstruction error threshold.

6. The thermal runaway early warning method for energy storage batteries based on Bi-LSTM and attention mechanism according to claim 1, characterized in that: The calculation of the reconstruction error threshold K includes: calculating the mean value and standard deviation of the reconstruction error set corresponding to the input data set, and selecting the reconstruction error that is two standard deviations greater than the mean value as the reconstruction error threshold K.

Citation Information

Patent Citations

  • Wind turbine generator key component fault early warning method based on DA-RNN

    CN111814849A

  • Battery health state estimation method of electric vehicle

    CN112505570A

  • Coal mine gas concentration missing value filling method based on space-time fusion

    CN112948743A

  • Battery state evaluation method based on automatic encoder

    CN113076689A

  • Lithium ion battery thermal runaway grading early warning method and early warning system

    CN113344024A