Battery thermal runaway prediction method, device, equipment and storage medium

By structurally adjusting the initial Transformer model and integrating the characteristics of sensors and time dimensions, the problems of low efficiency and poor accuracy in battery thermal runaway prediction are solved, and more efficient and accurate prediction results are achieved.

CN118091429BActive Publication Date: 2024-08-30HUANENG RENEWABLES CORPORATION LIMITED +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410503574.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-08-30
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

Existing technology is inefficient in battery thermal runaway prediction and cannot guarantee the accuracy of prediction results.

Method used

By structurally adjusting the initial Transformer model, the target Transformer model is formed, including a sensor encoder layer and a moment encoder layer, and the relevant features of the sensor dimension and moment dimension are integrated to improve prediction efficiency and accuracy.

Benefits of technology

It effectively improves the accuracy and efficiency of battery thermal runaway prediction and ensures reliable prediction of battery thermal runaway conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118091429B
    Figure CN118091429B
Patent Text Reader

Abstract

The present disclosure proposes a method, device, equipment and storage medium for predicting thermal runaway of a battery. The method includes: structurally adjusting the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, and the encoder includes a sensor encoder layer and a moment encoder layer; extracting features from the initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is a battery-related parameter collected by multiple sensors; extracting features from the initial data based on the moment encoder layer to obtain a second feature; fusing the first feature and the second feature based on the feature fusion layer to obtain a third feature; and analyzing and processing the third feature based on the decoder to obtain a battery thermal runaway prediction result. As a result, the relevant features of the sensor dimension and the moment dimension can be effectively fused in the thermal runaway prediction process, thereby improving the prediction efficiency and ensuring the accuracy of the battery thermal runaway prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of battery management technology, and in particular to a battery thermal runaway prediction method, device, equipment and storage medium. Background Art

[0002] Lithium-ion batteries are widely used in energy storage systems due to their high energy density and long cycle life. However, lithium-ion battery systems may cause safety accidents due to thermal runaway. Therefore, timely warning of thermal runaway of battery systems is required.

[0003] In the related art, when predicting battery thermal runaway, the efficiency is low and the accuracy of the prediction results cannot be guaranteed. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the purpose of the present disclosure is to propose a battery thermal runaway prediction method, device, computer equipment and storage medium, thereby being able to effectively integrate the relevant features of the sensor dimension and the time dimension in the thermal runaway prediction process, thereby improving the prediction efficiency and ensuring the accuracy of the battery thermal runaway prediction.

[0006] To achieve the above-mentioned purpose, a battery thermal runaway prediction method proposed in an embodiment of the first aspect of the present disclosure includes:

[0007] Adjusting the structure of the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer, and a decoder, and the encoder includes a sensor encoder layer and a moment encoder layer;

[0008] Performing feature extraction on initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is battery-related parameters collected by multiple sensors;

[0009] Performing feature extraction on the initial data based on the moment encoder layer to obtain a second feature;

[0010] Based on the feature fusion layer, the first feature and the second feature are fused to obtain a third feature;

[0011] The third feature is analyzed and processed based on the decoder to obtain a battery thermal runaway prediction result.

[0012] To achieve the above-mentioned purpose, a battery thermal runaway prediction device proposed in a second embodiment of the present disclosure includes:

[0013] A model adjustment module, used for adjusting the structure of the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, and the encoder includes a sensor encoder layer and a moment encoder layer;

[0014] A first feature extraction module, configured to extract features from initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is battery-related parameters collected by a plurality of sensors;

[0015] A second feature extraction module, configured to extract features from the initial data based on the moment encoder layer to obtain a second feature;

[0016] A feature fusion module, used for fusing the first feature and the second feature based on the feature fusion layer to obtain a third feature;

[0017] A processing module is used to analyze and process the third feature based on the decoder to obtain a battery thermal runaway prediction result.

[0018] The computer device proposed in the third aspect embodiment of the present disclosure includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the battery thermal runaway prediction method proposed in the first aspect embodiment of the present disclosure is implemented.

[0019] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the battery thermal runaway prediction method proposed in the first aspect embodiment of the present disclosure is implemented.

[0020] The fifth aspect embodiment of the present disclosure proposes a computer program product. When the instructions in the computer program product are executed by a processor, the battery thermal runaway prediction method proposed in the first aspect embodiment of the present disclosure is executed.

[0021] The battery thermal runaway prediction method, device, computer equipment and storage medium provided by the present invention adjust the structure of the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, the encoder includes a sensor encoder layer and a moment encoder layer, and feature extraction is performed on the initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is a battery-related parameter collected by multiple sensors, feature extraction is performed on the initial data based on the moment encoder layer to obtain a second feature, the first feature and the second feature are fused based on the feature fusion layer to obtain a third feature, and the third feature is analyzed and processed based on the decoder to obtain a battery thermal runaway prediction result, thereby being able to effectively fuse the relevant features of the sensor dimension and the moment dimension in the thermal runaway prediction process, thereby improving the prediction efficiency and ensuring the accuracy of the battery thermal runaway prediction.

[0022] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0024] Figure 1 is a flow chart of a battery thermal runaway prediction method proposed in an embodiment of the present disclosure;

[0025] Figure 2 is a schematic diagram of the structure of the sensor encoder layer proposed in the present disclosure;

[0026] Figure 3 is a schematic diagram of the workflow of the self-attention function proposed in the present disclosure;

[0027] Figure 4 It is a schematic diagram of the workflow of the multi-head self-attention mechanism proposed in the present disclosure;

[0028] Figure 5 is a schematic diagram of the structure of the time encoder layer proposed in the present disclosure;

[0029] Figure 6 is a schematic diagram of the structure of a decoder layer proposed in the present disclosure;

[0030] Figure 7 is a schematic diagram of the structure of the target Transformer model proposed in the present disclosure;

[0031] Figure 8is a schematic structural diagram of a battery thermal runaway prediction device proposed in an embodiment of the present disclosure;

[0032] Fig. 9 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0033] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.

[0034] Figure 1 It is a flow chart of a battery thermal runaway prediction method proposed in an embodiment of the present disclosure.

[0035] It should be noted that the executor of the battery thermal runaway prediction method of this embodiment is a battery thermal runaway prediction device, which can be implemented by software and / or hardware. The device can be configured in a computer device, and the computer device can include but is not limited to a terminal, a server, etc. For example, the terminal can be a mobile phone, a handheld computer, etc.

[0036] like Figure 1 As shown, the battery thermal runaway prediction method includes:

[0037] S101: structurally adjusting the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, and the encoder includes a sensor encoder layer and a moment encoder layer.

[0038] The initial Transformer model refers to a pre-acquired, unadjusted Transformer model, while the target Transformer model refers to a Transformer model obtained after structural adjustment of the initial Transformer model.

[0039] The sensor encoder layer may refer to an encoder layer that performs feature extraction in the sensor dimension.

[0040] The moment encoder layer may refer to an encoder layer that performs feature extraction in the time dimension.

[0041] That is to say, in the embodiments of the present disclosure, the traditional Transformer model can be structurally adjusted so that the obtained target Transformer model can use the sensor encoder and the time encoder to simultaneously capture the weighted features of different sensors and time steps.

[0042] S102: Extract features from initial data based on a sensor encoder layer to obtain a first feature, wherein the initial data is battery-related parameters collected by multiple sensors.

[0043] Among them, multiple sensors can be used to detect battery voltage, current, temperature, gas production and other parameters without restriction.

[0044] That is, in the embodiment of the present disclosure, feature extraction may be performed on the initial data based on the sensor encoder layer to obtain a first feature of the initial data in the sensor dimension.

[0045] S103: Extract features from the initial data based on the moment encoder layer to obtain a second feature.

[0046] That is to say, in the embodiment of the present disclosure, feature extraction can be performed on the initial data based on the moment encoder layer to obtain the second feature of the initial data in the time dimension.

[0047] S104: Fusing the first feature and the second feature based on the feature fusion layer to obtain a third feature.

[0048] The third feature may refer to a fusion feature obtained by fusing the first feature and the second feature.

[0049] That is to say, in the embodiment of the present disclosure, after the initial data is feature extracted based on the sensor encoder layer and the moment encoder layer to obtain the first feature and the second feature, the first feature and the second feature can be fused based on the feature fusion layer to obtain the third feature, thereby providing reliable data support for subsequent thermal runaway prediction.

[0050] S105: Analyze and process the third feature based on the decoder to obtain a battery thermal runaway prediction result.

[0051] That is to say, in the embodiment of the present disclosure, after the third feature is obtained, the third feature can be analyzed and processed based on the decoder to obtain a battery thermal runaway prediction result.

[0052] In this embodiment, the structure of the initial Transformer model is adjusted to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, the encoder includes a sensor encoder layer and a moment encoder layer, feature extraction is performed on the initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is a battery-related parameter collected by multiple sensors, feature extraction is performed on the initial data based on the moment encoder layer to obtain a second feature, the first feature and the second feature are fused based on the feature fusion layer to obtain a third feature, and the third feature is analyzed and processed based on the decoder to obtain a battery thermal runaway prediction result, thereby being able to effectively fuse the relevant features of the sensor dimension and the moment dimension in the thermal runaway prediction process, thereby improving the prediction efficiency and ensuring the accuracy of the battery thermal runaway prediction.

[0053] The present disclosure also proposes a battery thermal runaway prediction method, in which the sensor encoder layer adopts a multi-head self-attention mechanism; when extracting features from initial data based on the sensor encoder layer to obtain a first feature, the initial data can be mapped to a vector of a preset dimension to obtain first input data, the first input data is position-encoded to obtain first target data, the first target data is processed based on the sensor encoder layer to obtain a first query matrix, a first key matrix and a first value matrix, a softmax activation function is applied along the sensor dimension to process the preset dimension, the first query matrix and the first key matrix to obtain first weight data, and a weighted sum is performed based on the first value matrix and the first weight data to obtain the first feature.

[0054] That is, in the embodiment of the present disclosure, the encoder further includes an input embedding layer and a position encoder layer, and the input embedding layer can map the initial data to a preset dimension through a fully connected feedforward network. to obtain the first input data, and then the position encoder layer performs position encoding on the first input data to obtain the first target data.

[0055] It is understandable that since the model involved in the present invention does not include a structure based on RNN or CNN. Therefore, some relative position markers can be injected into the sequence so that the model can make full use of the position information of the sequence. There are multiple position encoding methods available for the present invention. Take sine and cosine functions of different frequencies as an example:

[0056] (1)

[0057] (2)

[0058] in, It's time. is the sensor dimension. Thus, and There is a linear relationship, where is any fixed moment, which makes it easy for the model to learn based on relative positions.

[0059] The present disclosure also proposes a battery thermal runaway prediction method, in which the sensor encoder layer includes a multi-head sensor self-attention layer and a fully connected feedforward network layer, and the multi-head sensor self-attention layer and the fully connected feedforward network layer are both configured with residual connections and layer normalization modules.

[0060] For example, Figure 2 As shown, Figure 2 is a schematic diagram of the structure of the sensor encoder layer proposed in the present disclosure.

[0061] In the disclosed embodiment, there is a residual connection and layer normalization module (and & norm) after each sublayer. The purpose of the residual connection is to reduce the difficulty of training deep neural networks. Layer normalization can accelerate the training process by normalizing the layer activation values, allowing the model to converge faster. The sensor encoder layer uses a multi-head self-attention mechanism to extract the importance of different sensors along the sensor dimension. Therefore, it is possible to automatically learn to pay attention to those sensor features with higher weights during training without the need for manual experience intervention. The working process of multi-head sensor self-attention is as follows.

[0062] The state data collected by k sensors in a time window of length T is defined as ,Will It is defined as the data obtained after being processed by the position encoder layer. Figure 3 As shown, Figure 3 This is a schematic diagram of the workflow of the self-attention function proposed in this disclosure. First, three matrices are generated by processing the input data: , , (query, key and value):

[0063] (3)

[0064] in, , and is a trainable parameter, , , , is the input dimension. Then calculate and The dot product of ), and apply a softmax activation function along the sensor dimension to obtain Therefore, different sensors at time The weight vector at is:

[0065] (4)

[0066] in, .

[0067] Finally, the features of different sensors weighted by the self-attention mechanism are calculated as The weighted sum of:

[0068] (5)

[0069] A multi-head self-attention mechanism is used here to allow the model to jointly focus on information from different representation subspaces at different locations, thereby improving the prediction performance. Figure 4 As shown, Figure 4 It is a schematic diagram of the workflow of the multi-head self-attention mechanism proposed in this disclosure, which can be expressed as:

[0070] (6)

[0071] Among them, the parameter matrix , is the number of heads, and , Concat represents the matrix concatenation operation.

[0072] The present disclosure also proposes a battery thermal runaway prediction method, in which a moment encoder layer adopts a multi-head self-attention mechanism; when extracting features from initial data based on the moment encoder layer to obtain a second feature, the initial data can be mapped to a vector of a preset dimension to obtain second input data, wherein the second input data is the transpose of the first input data, the second input data is positionally encoded to obtain second target data, the second target data is processed based on the moment encoder layer to obtain a second query matrix, a second key matrix and a second value matrix, a softmax activation function is applied along the moment dimension to process the preset dimension, the second query matrix and the second key matrix to obtain second weight data, and weighted summation is performed based on the second value matrix and the second weight data to obtain the second feature.

[0073] The present disclosure also proposes a battery thermal runaway prediction method, wherein the moment encoder layer includes a multi-head moment self-attention layer and a fully connected feedforward network layer, and the multi-head moment self-attention layer and the fully connected feedforward network layer are both configured with residual connection and layer normalization modules.

[0074] For example, Figure 5 As shown, Figure 5 It is a schematic diagram of the structure of the time encoder layer proposed in the present disclosure.

[0075] That is, in the disclosed embodiment, the time step encoder layer has the same structure as the sensor encoder layer. The time step encoder layer includes two sublayers: a multi-head time self-attention layer and a fully connected feedforward network layer. The difference is that the time encoder layer extracts features along the time dimension and allows the improved Transformer model to focus on the time that is more important for the prediction of thermal runaway of lithium-ion batteries. The input data of the time feedforward encoder is the above is the transpose of , and is processed by the position encoder layer as The moment-to-moment feedforward encoder layer first uses the trainable parameters via equation (3). , , Get query, key and value matrices , and Then, the weight vectors at different times corresponding to the sensor s are obtained by performing the softmax function on the time dimension:

[0076] (7)

[0077] in, The characteristics of the self-attention mechanism weighted at different moments are as follows:

[0078] (8)

[0079] Similar to the sensor encoder layer, multi-head self-attention is applied to the moment encoder layer:

[0080] (9)

[0081] Among them, the parameter matrix and .

[0082] In the embodiment of the present disclosure, after extracting features from the time and sensor dimensions of the initial data, the feature fusion layer combines the time and sensor features to form a new feature map. The features extracted from the sensor encoder and the time encoder are represented as and . Feature fusion is performed using the following calculation:

[0083] (10)

[0084] Among them, the trainable parameter matrix , which can make the model from and Capture feature information.

[0085] The present disclosure also proposes a battery thermal runaway prediction method, in which the number of sensor encoder layers in the encoder is equal to the number of moment encoder layers, the sensor encoder layers and the moment encoder layers have corresponding position numbers, and the sensor encoder layers and the moment encoder layers with the same position numbers work in parallel.

[0086] In the improved Transformer model involved in the present invention, both the sensor encoder and the moment encoder are constructed by stacking multiple identical sensor or moment encoder layers. The same number of stacks N is used for the two encoders. The hyperparameter N may affect the feature extraction capability of the improved Transformer model. Therefore, N can be adjusted empirically in the experiment to obtain good performance. In the improved Transformer, since the moment encoder and the sensor encoder are arranged in parallel, the features of the sensor dimension and the moment dimension are extracted simultaneously. This design effectively avoids the mutual influence of the two aspects of information, and helps to improve the performance of thermal runaway prediction of lithium-ion batteries. At the same time, there is no RNN / CNN module in DAST, and long-term dependency information is processed purely based on the self-attention mechanism.

[0087] The present disclosure also proposes a battery thermal runaway prediction method, wherein the decoder includes: an input layer, multiple decoder layers, a flat layer, and a fully connected feedforward network layer. The number of decoder layers is equal to the number of moment encoder layers. The decoder layer includes: a masked multi-head self-attention layer and a codec multi-head self-attention layer.

[0088] For example, Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of the decoder layer proposed in the present disclosure. The decoder layer also includes a fully connected feedforward network layer, and residual connections and layer normalization modules are configured after the fully connected feedforward network layer, the masked multi-head self-attention layer, and the encoder-decoder multi-head self-attention layer.

[0089] The decoder of the improved Transformer involved in the present invention is composed of an input layer, multiple decoder layers, a flat layer, and a fully connected feedforward network layer. The decoder layer includes two multi-head self-attention sublayers, including masked multi-head self-attention and codec multi-head self-attention. The codec multi-head self-attention will receive keys and values ​​from the output of the encoder, and query the output from the previous layer of the decoder. Therefore, the weight features of different sensors and moments extracted by the encoder part are analyzed on the decoder, and attention is paid to the current working cycle information and the previous different moments and sensor information, and finally the predicted thermal runaway of the lithium-ion battery is output through the fully connected feedforward network layer. In order to ensure that the prediction of time series data points only depends on previous data points, a masked multi-head self-attention mechanism is applied in the self-attention by setting the corresponding dot product to -∞, thereby ensuring that the model only pays attention to the data points before the target data. In other words, the predicted data When the lithium-ion battery is in thermal runaway at the moment, the self-attention mechanism only pays attention to the data and previous data.

[0090] Based on the above embodiment, the structure of the target Transformer model can be as follows: Figure 7 As shown, Figure 7 Schematic diagram of the structure of the target Transformer model proposed in the present disclosure.

[0091] In the embodiment of the present disclosure, when performing model training and thermal runaway prediction, training samples and test samples may be collected separately. The length window slices the collected samples. The predicted state data is compared with the threshold range. If it is within the normal threshold range, the state is marked as a normal state, otherwise it is a thermal runaway state.

[0092] For each data set, it is divided into training, test and support sub-data sets in proportion. The training sub-data set is divided into multiple groups, one group is used to evaluate the improved Transformer model involved in the present disclosure, and the remaining multiple groups are used to train the network.

[0093] Figure 8 It is a structural schematic diagram of a battery thermal runaway prediction device proposed in one embodiment of the present disclosure.

[0094] like Figure 8 As shown, the battery thermal runaway prediction device 80 includes:

[0095] The model adjustment module 801 is used to adjust the structure of the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, and the encoder includes a sensor encoder layer and a moment encoder layer;

[0096] A first feature extraction module 802 is used to extract features from initial data based on a sensor encoder layer to obtain a first feature, wherein the initial data is battery-related parameters collected by multiple sensors;

[0097] A second feature extraction module 803, configured to extract features from the initial data based on the moment encoder layer to obtain a second feature;

[0098] A feature fusion module 804 is used to fuse the first feature and the second feature based on the feature fusion layer to obtain a third feature;

[0099] The processing module 805 is used to analyze and process the third feature based on the decoder to obtain a battery thermal runaway prediction result.

[0100] It should be noted that the aforementioned explanation of the battery thermal runaway prediction method is also applicable to the battery thermal runaway prediction device of this embodiment and will not be repeated here.

[0101] In this embodiment, the structure of the initial Transformer model is adjusted to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, the encoder includes a sensor encoder layer and a moment encoder layer, feature extraction is performed on the initial data based on the sensor encoder layer to obtain a first feature, wherein the initial data is a battery-related parameter collected by multiple sensors, feature extraction is performed on the initial data based on the moment encoder layer to obtain a second feature, the first feature and the second feature are fused based on the feature fusion layer to obtain a third feature, and the third feature is analyzed and processed based on the decoder to obtain a battery thermal runaway prediction result, thereby being able to effectively fuse the relevant features of the sensor dimension and the moment dimension in the thermal runaway prediction process, thereby improving the prediction efficiency and ensuring the accuracy of the battery thermal runaway prediction.

[0102] Fig. 9 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Fig. 9 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0103] like Fig. 9 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0104] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnection (PCI) bus.

[0105] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0106] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 Not shown, usually called a "hard drive").

[0107] although Fig. 9 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) can be provided. In these cases, each drive can be connected to the bus 18 through one or more data medium interfaces. The memory 28 may include at least one program product, which has a set (for example, at least one) of program modules, which are configured to perform the functions of the various embodiments of the present disclosure.

[0108] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0109] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a human body to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0110] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , such as implementing the battery thermal runaway prediction method mentioned in the above embodiment.

[0111] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the battery thermal runaway prediction method proposed in the above embodiments of the present disclosure is implemented.

[0112] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product is executed, the battery thermal runaway prediction method proposed in the above embodiments of the present disclosure is executed.

[0113] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0114] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0115] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.

[0116] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.

[0117] It should be understood that the various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof may be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0118] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0119] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0120] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0122] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.

Claims

1. A method for predicting battery thermal runaway, characterized in that: include: The initial Transformer model is structurally adjusted to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, the encoder includes a sensor encoder layer and a moment encoder layer, the number of the sensor encoder layers is equal to the number of the moment encoder layers, the sensor encoder layer and the moment encoder layer have corresponding position numbers, the sensor encoder layer and the moment encoder layer with the same position number work in parallel, the sensor encoder layer includes a multi-head sensor self-attention layer and a fully connected feedforward network layer, the multi-head sensor self-attention layer and the fully connected feedforward network layer are both configured with residual connection and layer normalization modules, the decoder includes an input layer, multiple decoder layers, a flat layer and a fully connected feedforward network layer, the number of the decoder layers is equal to the number of the moment encoder layers, and the decoder layer includes a mask multi-head self-attention layer and a codec multi-head self-attention layer; Mapping initial data to a vector of a preset dimension to obtain first input data, position encoding the first input data to obtain first target data, processing the first target data based on the sensor encoder layer to obtain a first query matrix, a first key matrix, and a first value matrix, applying a softmax activation function along the sensor dimension to process the preset dimension, the first query matrix, and the first key matrix to obtain first weight data, performing weighted summation based on the first value matrix and the first weight data to obtain a first feature, wherein the initial data is a battery-related parameter collected by multiple sensors; Mapping the initial data to a vector of a preset dimension to obtain second input data, position encoding the second input data to obtain second target data, processing the second target data based on the moment encoder layer to obtain a second query matrix, a second key matrix, and a second value matrix, applying a softmax activation function along the moment dimension to process the preset dimension, the second query matrix, and the second key matrix to obtain second weight data, performing weighted summation based on the second value matrix and the second weight data to obtain a second feature, wherein the second input data is the transpose of the first input data, the moment encoder layer includes a multi-head moment self-attention layer and a fully connected feedforward network layer, and the multi-head moment self-attention layer and the fully connected feedforward network layer are both configured with residual connections and layer normalization modules; Based on the feature fusion layer, the first feature and the second feature are fused to obtain a third feature; Analyzing and processing the third feature based on the decoder to obtain a battery thermal runaway prediction result; When the target Transformer model is trained and thermal runaway is predicted, training samples and test samples are collected respectively, wherein N P The collected samples are sliced ​​by a length window, and the predicted state data is compared with the threshold range. If it is within the normal threshold range, the state is marked as a normal state, otherwise it is a thermal runaway state; each data set is divided into a training sub-dataset, a test sub-dataset, and a support sub-dataset, and the training sub-dataset is divided into multiple groups, one group is used to evaluate the target Transformer model, and the remaining multiple groups are used to train the target Transformer model.

2. The method according to claim 1, characterized in that The sensor encoder layer adopts a multi-head self-attention mechanism.

3. The method according to claim 1, characterized in that The moment encoder layer adopts a multi-head self-attention mechanism.

4. A battery thermal runaway prediction device, characterized in that: include: A model adjustment module, used for structurally adjusting the initial Transformer model to obtain a target Transformer model, wherein the target Transformer model includes: an encoder, a feature fusion layer and a decoder, the encoder includes a sensor encoder layer and a moment encoder layer, the number of the sensor encoder layers is equal to the number of the moment encoder layers, the sensor encoder layer and the moment encoder layer have corresponding position numbers, the sensor encoder layer and the moment encoder layer with the same position number work in parallel, the sensor encoder layer includes a multi-head sensor self-attention layer and a fully connected feedforward network layer, the multi-head sensor self-attention layer and the fully connected feedforward network layer are both configured with a residual connection and layer normalization module, the decoder includes an input layer, multiple decoder layers, a flat layer and a fully connected feedforward network layer, the number of the decoder layers is equal to the number of the moment encoder layers, and the decoder layer includes a mask multi-head self-attention layer and a codec multi-head self-attention layer; a first feature extraction module, configured to map initial data to a vector of a preset dimension to obtain first input data, position-encode the first input data to obtain first target data, process the first target data based on the sensor encoder layer to obtain a first query matrix, a first key matrix, and a first value matrix, apply a softmax activation function along a sensor dimension to process the preset dimension, the first query matrix, and the first key matrix to obtain first weight data, and perform weighted summation based on the first value matrix and the first weight data to obtain a first feature, wherein the initial data is a battery-related parameter collected by a plurality of sensors; A second feature extraction module is used to map the initial data to a vector of a preset dimension to obtain second input data, position encode the second input data to obtain second target data, process the second target data based on the moment encoder layer to obtain a second query matrix, a second key matrix and a second value matrix, apply a softmax activation function along the moment dimension to process the preset dimension, the second query matrix and the second key matrix to obtain second weight data, and perform weighted summation based on the second value matrix and the second weight data to obtain a second feature, wherein the second input data is the transpose of the first input data, the moment encoder layer includes a multi-head moment self-attention layer and a fully connected feedforward network layer, and the multi-head moment self-attention layer and the fully connected feedforward network layer are both configured with a residual connection and layer normalization module; A feature fusion module, used for fusing the first feature and the second feature based on the feature fusion layer to obtain a third feature; A processing module, configured to analyze and process the third feature based on the decoder to obtain a battery thermal runaway prediction result; When the target Transformer model is trained and thermal runaway is predicted, training samples and test samples are collected respectively, wherein N P The collected samples are sliced ​​by a length window, and the predicted state data is compared with the threshold range. If it is within the normal threshold range, the state is marked as a normal state, otherwise it is a thermal runaway state; each data set is divided into a training sub-dataset, a test sub-dataset, and a support sub-dataset, and the training sub-dataset is divided into multiple groups, one group is used to evaluate the target Transformer model, and the remaining multiple groups are used to train the target Transformer model.

5. A computer device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.

6. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for constructing lithium ion battery thermal runaway prediction model and prediction system

    CN114509685A

  • Transform-based bidirectional self-attention remaining life prediction method

    CN116578944A

  • Commodity click motivation prediction method based on user dynamic interaction behaviors

    CN116629956A

  • Non-constant-temperature numerical control workshop short-term temperature prediction method based on AFSA optimization Transform-GRU

    CN117852714A