A method, device, equipment and storage medium for predicting the probability of thermal runaway of a battery
Through the fuzzy reasoning system and the improved Sparrow algorithm, the battery temperature and thermal runaway position are used to calculate the thermal runaway probability of lithium batteries, which solves the problem of low thermal runaway prediction accuracy of lithium batteries in the existing technology and achieves accurate thermal runaway probability prediction. .
Patent Information
- Application Number
- CN202211462521.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-11-21
AI Technical Summary
In the existing technology, the lithium battery thermal runaway determination model has low accuracy in practical applications, is prone to false positives and false negatives, and cannot accurately predict the spread of thermal runaway in the battery pack.
A fuzzy inference system is used to obtain the battery temperature and thermal runaway position, use the optimized fuzzy membership function to fuzzify the data and perform fuzzy reasoning, calculate the battery thermal runaway probability, and use the improved Sparrow algorithm to optimize the fuzzy membership function to improve Prediction accuracy.
It achieves accurate prediction of the probability of thermal runaway of lithium batteries, reduces the occurrence of false alarms and false alarms, and improves the accuracy of predicting the spread of thermal runaway in battery packs.
Smart Images

Figure CN116093497B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of battery technology, and in particular to a method, device, equipment and storage medium for predicting the probability of thermal runaway of a battery. Background Art
[0002] Lithium batteries have been widely used in electric vehicles, energy storage grids and other fields. However, accidents such as lithium battery fires and explosions occur from time to time, which poses certain safety risks. Lithium batteries will have internal short circuits under extreme conditions such as extrusion, high temperature, overcharging, and over-discharging. As the internal short circuit gradually intensifies, the battery temperature continues to rise, and eventually thermal runaway occurs. In order to increase the power supply and battery life of lithium batteries, large lithium energy platforms generally use hundreds or thousands of lithium batteries in series and parallel. When a battery has thermal runaway, it is very likely that a thermal runaway accident will spread in the battery pack chain, bringing serious consequences.
[0003] In order to avoid the chain-like thermal runaway propagation of battery packs, a thermal runaway propagation prediction system for battery packs can be developed to provide a reference for the subsequent disposal and suppression of thermal runaway. Current research generally uses a certain model or method to predict thermal runaway, such as relying on the numerical values of characteristic quantities such as temperature and gas, or using a trained neural network model to predict temperature and voltage faults. However, the latest research shows that the thermal runaway propagation of battery packs is uncertain. Therefore, most models have low accuracy in practical applications, are prone to false alarms and omissions, and are not suitable for predicting the thermal runaway propagation of battery packs. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for predicting the probability of thermal runaway of a battery, so as to solve the problem that the thermal runaway determination model provided by the prior art has low accuracy in practical applications and is prone to false alarms and missed alarms.
[0005] According to one aspect of the present invention, a method for predicting the probability of thermal runaway of a battery is provided, comprising:
[0006] Get battery temperature and battery thermal runaway location;
[0007] Inputting the battery temperature and the battery thermal runaway position into a fuzzy inference system;
[0008] In the fuzzy inference system, the battery temperature and the battery thermal runaway position are fuzzified according to the optimized fuzzy membership function to obtain fuzzy data;
[0009] Performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result;
[0010] The fuzzy result is defuzzified according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
[0011] According to another aspect of the present invention, a battery thermal runaway probability prediction device is provided, comprising:
[0012] An acquisition module is used to obtain the battery temperature and the battery thermal runaway position;
[0013] An input module, used for inputting the battery temperature and the battery thermal runaway position into a fuzzy inference system;
[0014] A fuzzification module, used for fuzzifying the battery temperature and the battery thermal runaway position in the fuzzy inference system according to an optimized fuzzy membership function to obtain fuzzy data;
[0015] A fuzzy reasoning module, used for performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result;
[0016] The defuzzification module is used to defuzzify the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the battery thermal runaway probability prediction method described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the battery thermal runaway probability prediction method described in any embodiment of the present invention when executed.
[0022] The technical solution of the embodiment of the present invention obtains the battery temperature and the battery thermal runaway position; inputs the battery temperature and the battery thermal runaway position into a fuzzy inference system; in the fuzzy inference system, fuzzifies the battery temperature and the battery thermal runaway position according to an optimized fuzzy membership function to obtain fuzzified data; performs fuzzy inference on the fuzzy data to obtain a fuzzy result; and defuzzifies the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability, thereby solving the problem that the thermal runaway determination model provided by the prior art has low accuracy in practical applications and is prone to false alarms and missed alarms, and achieving the beneficial effect of being able to accurately predict the battery thermal runaway probability.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic flow chart of a method for predicting the probability of thermal runaway of a battery provided in the first embodiment of the present invention;
[0026] Figure 2 A schematic diagram of a fuzzy membership function of battery temperature provided in the first embodiment of the present invention;
[0027] Figure 3 A schematic diagram of a fuzzy membership function of a battery thermal runaway probability provided in the first embodiment of the present invention;
[0028] Figure 4 A flowchart of a method for predicting the probability of thermal runaway of a battery provided in the second embodiment of the present invention;
[0029] Figure 5 A schematic diagram of a process for optimizing a fuzzy membership function based on an improved sparrow algorithm provided in the second embodiment of the present invention;
[0030] Figure 6 A schematic diagram of the structure of a battery thermal runaway probability prediction device provided in Embodiment 3 of the present invention;
[0031] Figure 7 A schematic diagram of the structure of an electronic device of a method for predicting the probability of thermal runaway of a battery according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should belong to the scope of protection of the present invention. It should be understood that the various steps recorded in the method implementation of the present invention can be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0033] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0037] Embodiment 1
[0038] Figure 1This is a flow chart of a method for predicting the probability of thermal runaway of a battery provided in the first embodiment of the present invention. The method can be applied to the situation where a battery pack has thermal runaway, and is particularly applicable to predicting the thermal runaway phenomenon of a battery pack. The method can be executed by a device for predicting the probability of thermal runaway of a battery, wherein the device can be implemented by software and / or hardware and is generally integrated in an electronic device. In this embodiment, the electronic device includes but is not limited to: a computer device.
[0039] like Figure 1 As shown, a method for predicting the probability of thermal runaway of a battery provided by Embodiment 1 of the present invention includes the following steps:
[0040] S110. Obtain battery temperature and battery thermal runaway position.
[0041] The battery pack is composed of a plurality of batteries, and the battery pack may be a lithium battery pack. The battery with the highest temperature in the battery pack or the battery with a temperature greater than or equal to 300 degrees Celsius is regarded as a thermal runaway battery.
[0042] The battery temperature may be the current temperature of the lithium battery, and the battery thermal runaway position may be the minimum value of the distance between the lithium battery in the battery pack and the thermal runaway battery.
[0043] In this embodiment, the battery temperatures and battery thermal runaway positions of all batteries in the battery pack except the battery in thermal runaway may be collected, and the method of collecting the battery temperatures is not limited herein.
[0044] S120: Input the battery temperature and the battery thermal runaway position into a fuzzy inference system.
[0045] Among them, the fuzzy inference system is optimized based on the improved sparrow algorithm. The fuzzy inference system can be used to calculate the probability of battery thermal runaway. The input of the fuzzy inference system is the battery temperature and the battery thermal runaway position.
[0046] S130. In the fuzzy inference system, the battery temperature and the battery thermal runaway position are fuzzified according to the optimized fuzzy membership function to obtain fuzzy data.
[0047] The fuzzy data may be understood as fuzzy language, and the fuzzy data may include fuzzy language corresponding to the battery temperature and fuzzy language corresponding to the battery thermal runaway position.
[0048] Among them, the optimized fuzzy membership function is obtained by optimizing using the improved sparrow algorithm.
[0049] In this embodiment, the improved sparrow algorithm can be used to optimize and obtain an optimized fuzzy membership function. The battery temperature and the battery thermal runaway position can be fuzzified according to the optimized fuzzy membership function, and the fuzzified data corresponding to different battery temperatures and the fuzzified data corresponding to different battery thermal runaway positions can be calculated.
[0050] Exemplarily, the fuzzy data corresponding to the battery temperature T may include NT, MT, and PT; and the fuzzy data corresponding to the battery thermal runaway position d may include ND, GD, and MD.
[0051] Figure 2 A schematic diagram of the fuzzy membership function of the battery temperature provided in the first embodiment of the present invention is shown in FIG. Figure 2 As shown, the fuzzy data corresponding to the battery temperature can be determined according to the battery temperature and the membership calculated by the fuzzy membership function of the battery temperature.
[0052] S140, performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result.
[0053] In this embodiment, fuzzy reasoning can be performed on fuzzified data through a fuzzy rule base in a fuzzy reasoning system to obtain a fuzzy result. The fuzzy rule in the fuzzy rule base is that the higher the battery temperature and the closer to the location of the thermal runaway battery, the greater the corresponding thermal runaway probability.
[0054] The fuzzy rule base records the corresponding relationship between the fuzzy data corresponding to different battery temperatures and the fuzzy data corresponding to different battery thermal runaway positions and the fuzzy results. For example, if the fuzzy data corresponding to the battery temperature is NT and the fuzzy data corresponding to the battery thermal runaway position is ND, the corresponding fuzzy result is MR.
[0055] S150, defuzzifying the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
[0056] Among them, the membership degree can be calculated according to the optimized fuzzy membership function, and the battery thermal runaway probability can be determined according to the membership degree and the fuzzy result.
[0057] Figure 3 A schematic diagram of the fuzzy membership function of the battery thermal runaway probability provided in the first embodiment of the present invention is shown in FIG. Figure 3 As shown, the horizontal axis is the probability of battery thermal runaway, the vertical axis is the degree of membership, and different line segments in the figure represent different fuzzy results.
[0058] A method for predicting the probability of thermal runaway of a battery provided in the first embodiment of the present invention first obtains the battery temperature and the battery thermal runaway position; secondly, the battery temperature and the battery thermal runaway position are input into a fuzzy inference system; then, in the fuzzy inference system, the battery temperature and the battery thermal runaway position are fuzzified according to an optimized fuzzy membership function to obtain fuzzy data; then, the fuzzified data is subjected to fuzzy inference to obtain a fuzzy result; finally, the fuzzy result is defuzzified according to the optimized fuzzy membership function to obtain the probability of thermal runaway of the battery. In order to overcome the problem of uncertainty in the spread of thermal runaway of the battery, the above method optimizes the fuzzy membership function through an improved sparrow algorithm, calculates the probability of thermal runaway of the battery through fuzzy inference, and can accurately predict the probability of thermal runaway of the battery.
[0059] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0060] Furthermore, the performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result includes: performing fuzzy reasoning on the fuzzified data through a fuzzy rule base to obtain a fuzzy result;
[0061] The fuzzified data includes first fuzzified data corresponding to the battery temperature and second fuzzified data corresponding to the battery thermal runaway position, and the fuzzy rule base includes fuzzy results corresponding to the first fuzzified data and the second fuzzified data.
[0062] It can be understood that the first fuzzy data can be understood as fuzzy data corresponding to the battery temperature, and the second fuzzy data can be understood as fuzzy data corresponding to the battery thermal runaway position.
[0063] Among them, the fuzzy rule base can record the fuzzy results corresponding to the first fuzzified data and the second fuzzified data through a fuzzy rule table. Table 1 is a fuzzy rule table in the fuzzy rule base. It can be seen from Table 1 that when the first fuzzy data is NT and the second fuzzy data is ND, the corresponding fuzzy result is MR; when the first fuzzy data is NT and the second fuzzy data is GD, the corresponding fuzzy result is GR; when the first fuzzy data is NT and the second fuzzy data is MD, the corresponding fuzzy result is NR; when the first fuzzy data is NT and the second fuzzy data is ZD, the corresponding fuzzy result is NR; when the first fuzzy data is NT and the second fuzzy data is PD, the corresponding fuzzy result is NR; when the first fuzzy data is MT and the second fuzzy data is ND, the corresponding fuzzy result is ZR; when the first fuzzy data is MT and the second fuzzy data is GD, the corresponding fuzzy result is MR; When the first fuzzy data is MT and the second fuzzy data is MD, the corresponding fuzzy result is GR; when the first fuzzy data is MT and the second fuzzy data is ZD, the corresponding fuzzy result is GR; when the first fuzzy data is MT and the second fuzzy data is PD, the corresponding fuzzy result is NR; when the first fuzzy data is PT and the second fuzzy data is ND, the corresponding fuzzy result is PR; when the first fuzzy data is PT and the second fuzzy data is GD, the corresponding fuzzy result is PR; when the first fuzzy data is PT and the second fuzzy data is MD, the corresponding fuzzy result is ZR; when the first fuzzy data is PT and the second fuzzy data is ZD, the corresponding fuzzy result is MR; when the first fuzzy data is PT and the second fuzzy data is PD, the corresponding fuzzy result is GR.
[0064]
[0065] Table 1
[0066] Furthermore, the optimization of the fuzzy membership function by using the improved sparrow algorithm includes:
[0067] Initialize the sparrow population, set the number of sparrows in the sparrow population, the number of iterations, the upper and lower boundaries, the initial sparrow position, and the initial fitness corresponding to the initial sparrow position;
[0068] Determine individual sparrow fitness;
[0069] Sorting the individual fitness of the sparrows, determining the optimal individual fitness value and the position of the sparrow corresponding to the optimal individual fitness value;
[0070] Taking the target sparrows in the sparrow population as the discoverer, updating the position of the discoverer by a first preset formula, wherein the target sparrows are the sparrows with the first preset number of sparrows in the sparrow individual fitness ranking;
[0071] Taking the remaining sparrows in the sparrow population as followers, updating the position of the tracer by a second preset formula, wherein the remaining sparrows are the sparrows in the population other than the target sparrow;
[0072] Selecting a second preset number of sparrows in the sparrow population as warning sparrows, and updating the positions of the warning sparrows by using a third preset formula;
[0073] Adding hunters, the hunters' positions form an encirclement around the sparrow population, and drive the sparrow population to gather towards the optimal point;
[0074] Perform boundary detection so that the positions of all sparrows do not exceed the upper and lower boundaries and the encirclement;
[0075] Determine whether the number of iterations is reached, and if not, return to the step of determining the fitness of the individual sparrows until the number of iterations is reached.
[0076] Among them, the initial sparrow position can be expressed as The initial fitness corresponding to the initial sparrow position can be expressed as
[0077] In this embodiment, a fuzzy inference system is established according to the sparrow coordinate values, the inputs are the battery temperature T and the battery thermal runaway position d, and the output is the battery thermal runaway probability ρ.
[0078] Furthermore, determining the individual fitness of the sparrow includes: taking the difference between 1 and the Pearson correlation coefficient as the individual fitness of the sparrow; wherein the Pearson correlation coefficient is determined based on the battery thermal runaway probability and the battery temperature.
[0079] It should be noted that since the probability of battery thermal runaway is proportional to the battery temperature, the Pearson correlation coefficient r between the probability of battery thermal runaway and the battery temperature is calculated, and the individual fitness is 1-r.
[0080] Specifically, the calculation formula of the Pearson correlation coefficient is as follows:
[0081]
[0082] Where r represents the Pearson correlation coefficient, ρ i represents the thermal runaway probability of the ith battery, represents the average value of thermal runaway probability of all batteries, T i represents the current temperature of the i-th battery, Indicates the average temperature of all batteries.
[0083] In this embodiment, after the individual fitness of the sparrows is sorted, the minimum individual fitness value can be used as the optimal individual fitness value.
[0084] In this embodiment, the target sparrows ranked in the top 20% of the fitness in the sparrow population can be used as discoverers, and the first preset formula can be a preset formula for updating the discoverer position. The first preset formula is as follows:
[0085]
[0086] Among them, t represents the current iteration number, iter max It is expressed as the maximum number of iterations, Q represents a random number that obeys a normal distribution, L represents a matrix of all 1s, W represents a warning value, R2 represents a random number in the range of [0,1], and ST represents a safety threshold.
[0087] In this embodiment, the remaining sparrows in the sparrow population except the discoverer can be used as followers, and the second preset formula can be a preset formula for updating the position of the followers. The second preset formula is as follows:
[0088]
[0089] in, represents the global worst sparrow position, X p represents the producer's optimal position, A + Represents the plus inverse of A.
[0090] In this embodiment, 20% of the sparrows can be selected from the sparrow population as warning sparrows, and the warning sparrows drive the sparrow population to converge in the right direction. The third preset formula can be a preset formula for updating the position of the warning sparrows. The third preset formula is as follows:
[0091]
[0092] Among them, X best represents the current global optimal position, β represents a random value of normal distribution, K is a random number between [-1,1]; f i 、f g 、f w They represent the current individual position value of the sparrow, the current global best fitness value and the worst fitness value respectively; ε represents an infinitesimal constant.
[0093] In this embodiment, in order to prevent the population from stagnation and speed up the convergence speed, a hunter is added on the basis of the traditional sparrow algorithm. The hunter's position surrounds the sparrow population and drives the sparrow population to gather to the optimal point.
[0094] Furthermore, the center point of the hunter's encirclement is a square of the optimal point of the sparrow's position, and the distance between the center point and any side is a preset distance; a reduction factor is set so that the Pearson correlation coefficient is gradually reduced according to the number of iterations.
[0095] For the simplicity of the algorithm, the center point of the hunter's encirclement is defined as the square of the optimal point of the sparrow's position, and the distance between the center point and any side is r. A reduction factor θ is set so that the Pearson correlation coefficient r is gradually reduced according to the number of iterations.
[0096] In this embodiment, boundary detection is performed to ensure that the positions of all sparrows do not exceed the upper and lower boundaries and the hunter's encirclement. If they exceed, they are updated to the corresponding boundaries.
[0097] Embodiment 2
[0098] Embodiment 2 of the present invention provides several specific implementation methods based on the technical solutions of the above embodiments.
[0099] As a specific implementation method of this embodiment, Figure 4 A flowchart of a method for predicting the probability of thermal runaway of a battery provided in the second embodiment of the present invention is shown in FIG. Figure 4 As shown, the following steps are included:
[0100] S201. Collect the temperatures of all batteries in the battery pack.
[0101] S202. Mark the thermal runaway location.
[0102] S203. Fuzzy reasoning.
[0103] This step includes: in the fuzzy inference system, according to the optimized fuzzy membership function, the battery temperature and the battery thermal runaway position are fuzzified to obtain fuzzy data; the fuzzy data are fuzzy inferred to obtain a fuzzy result; the fuzzy result is defuzzified according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
[0104] S204. Output battery thermal runaway probability.
[0105] In the above embodiment, the improved sparrow algorithm is used to optimize the membership function of the battery temperature input and the battery thermal runaway probability output. The specific process is as follows: Figure 5 As shown, Figure 5 The schematic diagram of the process of optimizing the fuzzy membership function based on the improved sparrow algorithm provided in the second embodiment of the present invention includes the following steps:
[0106] S101, initializing sparrow population parameters.
[0107] This step includes: initializing the sparrow population, setting the number of sparrows in the sparrow population, the number of iterations, the upper and lower boundaries, the initial sparrow positions, and the initial fitness corresponding to the initial sparrow positions.
[0108] S102. Calculate the fitness of individuals in the population.
[0109] S103, sort the fitness to obtain the optimal position of the optimal value.
[0110] S104. Discoverer update.
[0111] This step corresponds to taking the target sparrows in the sparrow population as the discoverer, and updating the position of the discoverer by a first preset formula, wherein the target sparrows are the first preset number of sparrows ranked before the individual fitness of the sparrows.
[0112] S105. Follower update.
[0113] This step corresponds to taking the remaining sparrows in the sparrow population as followers, and updating the position of the tracer by using a second preset formula.
[0114] S106. Update the position of the warning sparrow.
[0115] This step corresponds to selecting a second preset number of sparrows in the sparrow population as warning sparrows, and updating the positions of the warning sparrows by using a third preset formula.
[0116] S107, Hunter update.
[0117] This step corresponds to adding a hunter, and the hunter's position forms an encirclement around the sparrow population, driving the sparrow population to gather toward the optimal point.
[0118] S108: Boundary detection.
[0119] This step corresponds to performing boundary detection so that the positions of all sparrows do not exceed the upper and lower boundaries and the encirclement.
[0120] S109: Determine whether the set number of iterations has been reached.
[0121] If yes, the operation result is saved and the algorithm ends; if no, the process returns to S102 and continues to iterate until the number of iterations is reached.
[0122] Embodiment 3
[0123] Figure 6 This is a schematic diagram of the structure of a battery thermal runaway probability prediction device provided in Embodiment 3 of the present invention. The device can be applied to situations where thermal runaway occurs in a battery pack, wherein the device can be implemented by software and / or hardware and is generally integrated in an electronic device.
[0124] like Figure 6 As shown, the device includes: an acquisition module 110 , an input module 120 , a fuzzification module 130 , a fuzzy reasoning module 140 and a defuzzification module 150 .
[0125] An acquisition module 110 is used to acquire the battery temperature and the battery thermal runaway position;
[0126] An input module 120, configured to input the battery temperature and the battery thermal runaway position into a fuzzy inference system;
[0127] A fuzzification module 130, configured to fuzzify the battery temperature and the battery thermal runaway position according to an optimized fuzzy membership function in the fuzzy inference system to obtain fuzzy data;
[0128] A fuzzy reasoning module 140, configured to perform fuzzy reasoning on the fuzzified data to obtain a fuzzy result;
[0129] The defuzzification module 150 is used to defuzzify the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
[0130] In this embodiment, the device first obtains the battery temperature and the battery thermal runaway position through the acquisition module 110; secondly, the battery temperature and the battery thermal runaway position are input into the fuzzy inference system through the input module 120; then, the battery temperature and the battery thermal runaway position are fuzzified according to the optimized fuzzy membership function in the fuzzy inference system through the fuzzification module 130 to obtain fuzzy data; then, the fuzzy inference module 140 performs fuzzy inference on the fuzzy data to obtain a fuzzy result; finally, the fuzzy result is defuzzified according to the optimized fuzzy membership function through the defuzzification module 150 to obtain the battery thermal runaway probability.
[0131] This embodiment provides a battery thermal runaway probability prediction device, which can accurately predict the battery thermal runaway probability in view of the problem of uncertainty in the spread of thermal runaway of a lithium battery pack.
[0132] Furthermore, the fuzzy reasoning module 140 is specifically used to: perform fuzzy reasoning on the fuzzified data through a fuzzy rule base to obtain a fuzzy result;
[0133] The fuzzified data includes first fuzzified data corresponding to the battery temperature and second fuzzified data corresponding to the battery thermal runaway position, and the fuzzy rule base includes fuzzy results corresponding to the first fuzzified data and the second fuzzified data.
[0134] Furthermore, the optimized fuzzy membership function is obtained by optimizing using an improved sparrow algorithm.
[0135] On the basis of the above optimization, the optimization of fuzzy membership function by using the improved sparrow algorithm includes:
[0136] Initialize the sparrow population, set the number of sparrows in the sparrow population, the number of iterations, the upper and lower boundaries, the initial sparrow position, and the initial fitness corresponding to the initial sparrow position;
[0137] Determine individual sparrow fitness;
[0138] Sorting the individual fitness of the sparrows, determining the optimal individual fitness value and the position of the sparrow corresponding to the optimal individual fitness value;
[0139] Taking the target sparrows in the sparrow population as the discoverer, updating the position of the discoverer by a first preset formula, wherein the target sparrows are the sparrows with the first preset number of sparrows in the sparrow individual fitness ranking;
[0140] Taking the remaining sparrows in the sparrow population as followers, updating the position of the tracer by a second preset formula, wherein the remaining sparrows are the sparrows in the population other than the target sparrow;
[0141] Selecting a second preset number of sparrows in the sparrow population as warning sparrows, and updating the positions of the warning sparrows by using a third preset formula;
[0142] Adding hunters, the hunters' positions form an encirclement around the sparrow population, and drive the sparrow population to gather towards the optimal point;
[0143] Perform boundary detection so that the positions of all sparrows do not exceed the upper and lower boundaries and the encirclement;
[0144] Determine whether the number of iterations is reached, and if not, return to the step of determining the fitness of the individual sparrows until the number of iterations is reached.
[0145] Furthermore, determining the individual fitness of the sparrow includes: taking the difference between 1 and the Pearson correlation coefficient as the individual fitness of the sparrow; wherein the Pearson correlation coefficient is determined based on the battery thermal runaway probability and the battery temperature.
[0146] Furthermore, the calculation formula of the Pearson correlation coefficient is as follows:
[0147]
[0148] Where r represents the Pearson correlation coefficient, ρ i represents the thermal runaway probability of the ith battery, represents the average value of thermal runaway probability of all batteries, T i represents the current temperature of the i-th battery, Indicates the average temperature of all batteries.
[0149] Furthermore, the center point of the hunter's encirclement is a square of the optimal point of the sparrow's position, and the distance between the center point and any side is a preset distance; a reduction factor is set so that the Pearson correlation coefficient is gradually reduced according to the number of iterations.
[0150] The battery thermal runaway probability prediction device can execute the battery thermal runaway probability prediction method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0151] Embodiment 4
[0152] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0153] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0154] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0155] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a battery thermal runaway probability prediction method.
[0156] In some embodiments, the battery thermal runaway probability prediction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps in the battery thermal runaway probability prediction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the battery thermal runaway probability prediction method in any other appropriate manner (e.g., by means of firmware).
[0157] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0159] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0160] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0161] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0162] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0163] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0164] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for predicting the probability of thermal runaway of a battery, characterized in that: The method comprises: Get battery temperature and battery thermal runaway location; Inputting the battery temperature and the battery thermal runaway position into a fuzzy inference system; In the fuzzy inference system, the battery temperature and the battery thermal runaway position are fuzzified according to the optimized fuzzy membership function to obtain fuzzy data; Performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result; Defuzzifying the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability; The battery temperature is the current temperature of the lithium battery; The battery thermal runaway position is the minimum distance between the lithium battery in the battery pack and the thermal runaway battery; The step of performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result includes: Performing fuzzy reasoning on the fuzzified data through a fuzzy rule base to obtain a fuzzy result; The fuzzy data includes first fuzzy data corresponding to the battery temperature and second fuzzy data corresponding to the battery thermal runaway position, and the fuzzy rule base includes fuzzy results corresponding to the first fuzzy data and the second fuzzy data; The fuzzy rule in the fuzzy rule base is that the higher the battery temperature and the closer to the location of the thermal runaway battery, the greater the corresponding probability of thermal runaway; The optimized fuzzy membership function is obtained by optimizing using an improved sparrow algorithm; The optimization of fuzzy membership function by using the improved sparrow algorithm includes: Initialize the sparrow population, set the number of sparrows in the sparrow population, the number of iterations, the upper and lower boundaries, the initial sparrow position, and the initial fitness corresponding to the initial sparrow position; Determine individual sparrow fitness; Sort the individual fitness of the sparrows, determine the optimal individual fitness value and the position of the sparrow corresponding to the optimal individual fitness value; Taking the target sparrows in the sparrow population as the discoverer, updating the position of the discoverer by a first preset formula, wherein the target sparrows are the sparrows with the first preset number of sparrows in the sparrow individual fitness ranking; Taking the remaining sparrows in the sparrow population as followers, and updating the positions of the followers by a second preset formula, wherein the remaining sparrows are the sparrows in the population other than the target sparrow; Selecting a second preset number of sparrows in the sparrow population as warning sparrows, and updating the positions of the warning sparrows by using a third preset formula; Adding hunters, the hunters' positions form an encirclement around the sparrow population, and drive the sparrow population to gather towards the optimal point; Perform boundary detection so that the positions of all sparrows do not exceed the upper and lower boundaries and the encirclement; Determine whether the number of iterations is reached, and if not, return to the step of determining the fitness of the individual sparrows until the number of iterations is reached; Determining the individual fitness of the sparrow comprises: The difference between 1 and the Pearson correlation coefficient was taken as the individual fitness of the sparrow; Wherein, the Pearson correlation coefficient is determined based on the battery thermal runaway probability and the battery temperature; The calculation formula of the Pearson correlation coefficient is as follows: ; Where r represents the Pearson correlation coefficient, represents the thermal runaway probability of the ith battery, represents the average value of thermal runaway probability of all batteries, represents the current temperature of the i-th battery, Indicates the average temperature of all batteries; The center point of the hunter encirclement is a square of the optimal point of the sparrow position, and the distance between the center point and any side is a preset distance; a reduction factor is set so that the Pearson correlation coefficient is gradually reduced according to the number of iterations; The first preset formula is as follows: ; Among them, t represents the current iteration number, It is represented by the maximum number of iterations, Q represents a random number that follows a normal distribution, L represents a matrix of all 1s, W represents a warning value, R2 represents a random number in the range of [0,1], and ST represents a safety threshold; The second preset formula is as follows: ; in, represents the global worst sparrow position, represents the producer's optimal position, A + It represents the plus inverse of A; The third preset formula is as follows: ; in, represents the current global best position, represents a random value of normal distribution, K is a random number between [-1,1]; f i 、f g 、f w They represent the current individual position value of the sparrow, the current global best fitness value and the worst fitness value respectively; ε represents an infinitesimal constant.
2. A battery thermal runaway probability prediction device, which is controlled by the battery thermal runaway probability prediction method according to claim 1, characterized in that: The device comprises: An acquisition module is used to obtain the battery temperature and the battery thermal runaway position; An input module, used for inputting the battery temperature and the battery thermal runaway position into a fuzzy inference system; A fuzzification module, used for fuzzifying the battery temperature and the battery thermal runaway position in the fuzzy inference system according to an optimized fuzzy membership function to obtain fuzzy data; A fuzzy reasoning module, used for performing fuzzy reasoning on the fuzzified data to obtain a fuzzy result; The defuzzification module is used to defuzzify the fuzzy result according to the optimized fuzzy membership function to obtain the battery thermal runaway probability.
3. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the battery thermal runaway probability prediction method according to claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the battery thermal runaway probability prediction method according to claim 1 when executed.
