A battery temperature control method, device, equipment and readable storage medium
By using a pre-trained battery temperature prediction model, extracting feature maps using the SEC-Informer model and performing cross-self-attention analysis, the problem of inaccurate battery temperature prediction over long time intervals is solved, achieving higher battery temperature control accuracy and performance.
Patent Information
- Application Number
- CN202311704112.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Existing technologies struggle to accurately predict battery temperature over long time intervals, leading to inaccurate battery temperature control and impacting battery performance.
A pre-trained battery temperature prediction model is used to predict the battery temperature at the next moment based on the battery attributes at the current moment through a feature map extraction unit and a cross self-attention unit. The SEC-Informer model is used to improve the prediction accuracy.
Even if there is a long time interval between the current moment and the next moment, the battery temperature at the next moment can still be accurately predicted, thus improving the accuracy and performance of battery temperature control.
Smart Images

Figure CN117841777B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of computer technology, and in particular to a method, apparatus, device, and readable storage medium for controlling battery temperature. Background Technology
[0002] Vehicles require a significant energy supply during operation. While traditional methods of burning fossil fuels are common, they also present challenges such as environmental pollution and energy sustainability. Therefore, batteries are now commonly used to power vehicles, achieving energy conservation and emission reduction. However, battery performance is significantly affected by temperature; excessively high or low temperatures can lead to decreased battery efficiency or even battery damage. Therefore, accurately predicting the battery's operating temperature at the next moment allows for better temperature control and optimized battery performance.
[0003] In existing technologies, battery temperature prediction is typically modeled as a nonlinear model. Then, using the current battery temperature as the operating point, approximation methods such as Taylor expansion are employed to transform the nonlinear model into a linear model. Solving the linear model yields the battery temperature at the next moment, thereby enabling temperature control of the battery based on the battery temperature at the next moment.
[0004] However, if the time interval between the current moment and the next moment is long, the accuracy of the battery temperature at the next moment obtained by using the above method will be low, which will make it impossible to accurately control the battery temperature and thus reduce the battery performance. Summary of the Invention
[0005] This specification provides a method, apparatus, device, and readable storage medium for controlling battery temperature, in order to partially solve the aforementioned problems existing in the prior art.
[0006] The following technical solution is adopted in this specification:
[0007] This manual provides a method for controlling battery temperature, including:
[0008] Receive the current battery attributes sent by the vehicle;
[0009] The battery attributes at the current moment are input into a pre-trained battery temperature prediction model, and a feature map is obtained through the feature map extraction unit of the battery temperature prediction model.
[0010] Based on the battery attributes at the current moment and the feature map, the attention weight matrix is obtained through the cross self-attention unit of the battery temperature prediction model;
[0011] The battery temperature at the next moment is determined based on the attention weight matrix and the battery properties at the current moment.
[0012] The battery temperature at the next moment is sent to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
[0013] Optionally, the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs;
[0014] The feature map extraction unit includes a data symmetric dilated recurrent convolutional layer, an attention mechanism layer, a feature symmetric dilated recurrent convolutional layer, and a feature mapping connection layer;
[0015] The feature map extraction unit of the battery temperature prediction model obtains the feature map, specifically including:
[0016] The current battery temperature, current battery voltage, current battery current, and current vehicle speed are respectively input into the data symmetric dilated recurrent convolutional layer to obtain temperature features, voltage features, current features, and vehicle speed features.
[0017] The temperature feature, voltage feature, current feature, and vehicle speed feature are used as input features and input into the attention mechanism layer to obtain attention weights.
[0018] Based on the attention weights, temperature features, voltage features, current features, and vehicle speed features, a temperature feature map, a voltage feature map, a current feature map, and a vehicle speed feature map are obtained through a symmetrically expanded recurrent convolutional layer.
[0019] The temperature feature map, voltage feature map, current feature map, and vehicle speed feature map are fused together through the feature mapping connection layer to obtain a feature map.
[0020] Optionally, the attention mechanism layer is a sparse attention mechanism layer;
[0021] The step of using the temperature feature, voltage feature, current feature, and vehicle speed feature as input features and inputting them into the attention mechanism layer to obtain attention weights specifically includes:
[0022] The temperature feature, voltage feature, current feature, and vehicle speed feature are used as input features and input into the sparse attention mechanism layer to obtain a query vector matrix, a key vector matrix, and a value vector matrix.
[0023] The query vector matrix and the key vector matrix are subjected to a dot product to obtain a dot product result, and the sparsity index of each element contained in the query vector matrix is determined based on the dot product result.
[0024] In the query vector matrix, the values of the elements whose sparsity index is less than the preset index are set to the preset values to obtain the sparsed query vector matrix.
[0025] Attention weights are obtained based on the sparsely processed query vector matrix, the key vector matrix, and the value vector matrix.
[0026] Optionally, a battery temperature prediction model is pre-trained, specifically including:
[0027] Obtain battery attributes at various historical moments; wherein, the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs;
[0028] The battery attributes at each historical moment are input into the battery temperature prediction model to be trained, and a reference feature map is obtained through the feature map extraction unit of the battery temperature prediction model to be trained.
[0029] A specified number of battery attributes from each historical moment are used as training samples, and the labels of the training samples are determined based on the battery temperature in the battery attributes other than the training samples in the battery attribute sequence.
[0030] Based on the training samples and the reference feature map, a reference attention weight matrix is obtained through the cross self-attention unit of the battery temperature prediction model to be trained;
[0031] Based on the reference attention weight matrix and the training samples, determine the predicted battery temperature for the next historical moment;
[0032] The battery temperature prediction model to be trained is trained based on the difference between the predicted battery temperature at the next historical moment and the labeling of the training samples.
[0033] Optionally, before inputting the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtaining the reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained, the method further includes:
[0034] For each historical moment's battery attribute, determine the global timestamp corresponding to the battery attribute of that historical moment based on the historical moment corresponding to that historical moment's battery attribute;
[0035] Based on the historical time corresponding to each battery attribute, and the historical time corresponding to the battery attribute at that historical time, determine the local timestamp corresponding to the battery at that historical time.
[0036] Based on the global timestamp and the local timestamp, the battery attributes at this historical moment are time-location encoded to obtain the battery attributes at this historical moment after time-location encoding.
[0037] The step of inputting the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtaining a reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained, specifically includes:
[0038] The battery attributes at each historical moment, after being encoded with time location, are input into the battery temperature prediction model to be trained. A reference feature map is then obtained through the feature map extraction unit of the battery temperature prediction model to be trained.
[0039] Optionally, the battery temperature prediction model to be trained further includes a feature extraction unit;
[0040] Based on the training samples and the reference feature map, a reference attention weight matrix is obtained through the cross-self-attention units of the battery temperature prediction model to be trained, specifically including:
[0041] The training samples are input into the feature extraction unit to obtain the features of the training samples;
[0042] The features of the training samples and the reference feature map are used as inputs to the cross-self-attention unit of the battery temperature prediction model to be trained, resulting in a reference attention weight matrix.
[0043] Optionally, using a specified number of historical time periods' battery attributes from each historical time period as training samples specifically includes:
[0044] The battery attributes at each historical moment are arranged in chronological order to obtain a battery attribute sequence.
[0045] Determine the specified quantity;
[0046] The mask range is determined based on the specified quantity and the number of battery attributes contained in the battery attribute sequence;
[0047] The battery attributes that fall within the mask range in the battery attribute sequence are masked to obtain the masked battery attribute sequence as training samples.
[0048] This manual provides a battery temperature control device, including:
[0049] The battery attribute receiving module is used to receive the battery attributes at the current moment sent by the vehicle.
[0050] The feature map determination module is used to input the battery attributes at the current moment into a pre-trained battery temperature prediction model, and obtain a feature map through the feature map extraction unit of the battery temperature prediction model.
[0051] The attention weight matrix determination module is used to obtain the attention weight matrix based on the battery attributes at the current time and the feature map, through the cross self-attention unit of the battery temperature prediction model.
[0052] A battery temperature prediction module is used to determine the battery temperature at the next moment based on the attention weight matrix and the battery properties at the current moment.
[0053] A battery temperature transmitting module is used to send the battery temperature at the next moment to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
[0054] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described battery temperature control method.
[0055] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described battery temperature control method.
[0056] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:
[0057] The battery temperature control method provided in this specification inputs the current battery attributes sent by the vehicle into a pre-trained battery temperature prediction model. A feature map is obtained through the feature map extraction unit. Based on the current battery attributes and the feature map, an attention weight matrix is obtained through a cross-attention unit. The battery temperature for the next moment is then calculated based on the attention weight matrix and the current battery attributes. This next-moment battery temperature is returned to the vehicle, enabling the vehicle to control the battery temperature accordingly. Therefore, predicting the next-moment battery temperature based on the pre-trained battery temperature prediction model does not affect the accuracy of the next-moment battery temperature prediction, even with a long time interval between the current and next moments. This improves the accuracy of battery temperature prediction, thereby enhancing the control precision of battery temperature and the performance of the vehicle battery. Attached Figure Description
[0058] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and their descriptions, serving to explain this specification and do not constitute an undue limitation thereof.
[0059] In the picture:
[0060] Figure 1 This is a flowchart illustrating a battery temperature control method described in this specification.
[0061] Figure 2 This is a schematic diagram of a battery temperature control method described in this manual.
[0062] Figure 3 This is a flowchart illustrating a battery temperature control method described in this specification.
[0063] Figure 4 This is a flowchart illustrating a battery temperature control method described in this specification.
[0064] Figure 5 A schematic diagram of a battery temperature control device provided in this specification;
[0065] Figure 6 The corresponding information provided in this specification Figure 1 A schematic diagram of an electronic device. Detailed Implementation
[0066] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.
[0067] Additionally, it should be noted that all actions involving the acquisition of signals, information, or data in this manual are performed in accordance with the relevant data protection regulations and policies of the locality and with authorization from the owner of the relevant device.
[0068] It should be noted that, unless otherwise specified, the features in the following embodiments and implementation methods can be combined with each other.
[0069] Fuel cell trucks require significant energy supplies during transportation. While traditional fossil fuel combustion is common, it also presents challenges such as environmental pollution and energy sustainability. Fuel cell performance is highly sensitive to temperature; excessively high or low temperatures can lead to decreased efficiency or even damage. Therefore, accurately predicting the fuel cell's operating temperature at the next moment allows for better temperature control, ultimately optimizing fuel cell performance.
[0070] Fuel cell systems are typical strongly coupled, nonlinear systems. Traditional fuel cell temperature control strategies often employ prediction methods that approximate the system at a preset point to address nonlinearity. These methods discretize the linearized system equations based on the sampling time to obtain the system output prediction equations for predictive control. This approach yields relatively accurate predictions when the system operates near the preset point, but accuracy suffers in regions deviating from it, and the method exhibits poor generalization and robustness.
[0071] Based on this, this specification provides a battery temperature control method that predicts the battery temperature at the next moment based on a pre-trained battery temperature prediction model. Even if the time interval between the current moment and the next moment is long, it will not affect the accuracy of the battery temperature at the next moment, thereby improving the accuracy of battery temperature prediction.
[0072] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0073] Figure 1 This is a flowchart illustrating a battery temperature control method provided in this specification.
[0074] S100: Receives the battery attributes at the current moment sent by the vehicle.
[0075] This specification provides a battery temperature control method in its embodiments. The execution of this method can be performed by an electronic device such as a server for battery temperature prediction and control. Furthermore, during the execution of this method, the pre-trained battery temperature prediction model involved, the electronic device used for model training, and the electronic device executing the method can be the same or different; this specification does not impose any limitations on this. Figure 2 The diagram illustrates an optional method for predicting the temperature of an onboard battery. The battery temperature prediction model is trained on a model training server 201, and then the trained model is deployed on a cloud server 202. Figure 2 The server that executes the training process of the battery temperature prediction model is different from the server that executes the battery temperature control method. In practical applications, vehicle 203 can send the battery attributes at time t to cloud server 202 via wireless communication. Cloud server 202 predicts the battery temperature at time t+1 based on the battery attributes at time t and the deployed battery temperature prediction model, and returns the battery temperature at time t+1 to vehicle 203, thereby realizing temperature control of the vehicle 203's on-board battery based on the predicted battery temperature at time t+1.
[0076] In this step, the cloud server receives the battery attributes at the current time (time t) sent by the vehicle. These battery attributes include at least four dimensions: battery temperature, battery voltage, battery current, and the vehicle speed.
[0077] Additionally, it should be noted that the battery temperature control method provided in this manual applies to either lithium batteries or fuel cells, and this manual does not limit the specific type of on-board battery.
[0078] S102: Input the battery attributes at the current moment into the pre-trained battery temperature prediction model, and obtain the feature map through the feature map extraction unit of the battery temperature prediction model.
[0079] Furthermore, a battery temperature prediction model pre-deployed on a cloud server is used to predict the battery temperature based on the battery attributes received by S100 at the current moment. The battery temperature prediction model includes two parts: a feature map extraction unit and a cross-self-attention unit. The feature map extraction unit extracts feature information of different dimensions from the battery attributes at the current moment and fuses them to obtain a feature map. The cross-self-attention unit determines the correlation and importance between the battery attributes at the current moment and the feature map, obtaining an attention weight matrix. Then, based on the attention weight matrix, the battery attributes at the current moment are weighted to obtain the battery temperature at the next moment.
[0080] Therefore, in this step, the feature map extraction unit based on the battery temperature prediction model first extracts the corresponding features from the four dimensions of attribute data of the current battery attributes, namely the current battery temperature, the current battery voltage, the current battery current, and the current vehicle speed. Then, by paying attention to the correlation and importance of these features, the features of the aforementioned four dimensions of attribute data are fused based on attention weights to obtain the feature map.
[0081] In this specification, the feature map extraction unit is constructed using an improved Symmetrically Extended Convolution Informer (SEC-Informer). Currently, machine learning models using backpropagation (BP) neural networks are used to predict battery temperature. However, BP neural networks, as a local search optimization algorithm, are prone to getting trapped in local optima, i.e., training failure. Furthermore, the quality of the trained model is greatly affected by the initial values, resulting in poor network performance and an incomplete algorithm after training. The SEC-Informer used in the battery temperature prediction model in this specification differs from the currently used BP neural networks. It does not suffer from the problem of getting trapped in local optima, and not only has high training efficiency but also higher accuracy and stronger robustness than machine learning models based on BP neural networks.
[0082] S104: Based on the battery attributes at the current moment and the feature map, obtain the attention weight matrix through the cross self-attention unit of the battery temperature prediction model.
[0083] In this specification, the cross-self-attention unit of the battery temperature prediction model is used to determine the correlation and importance between the battery attributes and the feature map at the current moment, and outputs the determined correlation and importance in the form of an attention weight matrix.
[0084] S106: Determine the battery temperature at the next moment based on the attention weight matrix and the battery properties at the current moment.
[0085] In this step, the battery attributes at the current time step are weighted using the attention weight matrix to obtain the battery temperature at the next time step. One possible formula is as follows:
[0086] y(i) = X(i) * W(i)
[0087] Among them, y i For the battery temperature at the next moment, X i For the battery properties at the current moment, W i The attention weight matrix determined for S104.
[0088] S108: The battery temperature at the next moment is sent to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
[0089] Based on the battery temperature prediction model, the cloud server can return the battery temperature for the next moment to the vehicle. The vehicle then controls the battery temperature accordingly. For example, if the battery temperature is higher than a preset first temperature threshold, the onboard battery cooling system will cool the battery. Conversely, if the battery temperature is lower than a preset second temperature threshold, the onboard battery heating system will heat the battery, thus ensuring the battery stack is within its optimal temperature range.
[0090] The battery temperature control method provided in this specification inputs the battery attributes at the current moment sent by the vehicle into a pre-trained battery temperature prediction model. A feature map is obtained through the feature map extraction unit. Based on the battery attributes at the current moment and the feature map, an attention weight matrix is obtained through a cross-attention unit. The battery temperature at the next moment is obtained based on the attention weight matrix and the battery attributes at the current moment. The battery temperature at the next moment is returned to the vehicle, so that the vehicle can control the battery temperature based on the battery temperature at the next moment.
[0091] It is evident that the battery temperature prediction model based on pre-trained battery temperature prediction can accurately predict the battery temperature at the next moment, even if there is a long time interval between the current moment and the next moment. This improves the accuracy of battery temperature prediction, thereby enhancing the control precision of battery temperature and the performance of vehicle batteries.
[0092] In one or more embodiments of this specification, the feature map extraction unit includes a data-symmetric dilated recurrent convolutional layer, an attention mechanism layer, a feature-symmetric dilated recurrent convolutional layer, and a feature mapping connection layer. Therefore, the above-mentioned S102 can be specifically implemented through the following scheme, such as... Figure 3 As shown:
[0093] S300: Input the current battery temperature, current battery voltage, current battery current, and current vehicle speed into the data symmetric dilated recurrent convolutional layer to obtain temperature features, voltage features, current features, and vehicle speed features.
[0094] In this step, the symmetrically expanded recurrent convolutional layer extracts temperature features from the current battery temperature, voltage features from the current battery voltage, current features from the current battery current, and vehicle speed features from the current vehicle speed, respectively. Because the symmetrically expanded recurrent convolutional layer takes into account the periodicity and symmetry of the data when processing it, this is very useful for processing time-series data (such as vehicle speed) or data with repetitive periodic structures (such as battery voltage waveforms).
[0095] By processing the data through Chen's extended recurrent convolutional layer, feature representations of battery temperature, battery voltage, battery current, and vehicle speed can be obtained. In other words, these feature representations are more specific and meaningful information extracted from the raw data, which can help understand the nature of the data, conduct subsequent analysis, and predict the battery temperature at the next moment.
[0096] An optional data-symmetric dilated recurrent convolutional layer is used to obtain the following formulas for temperature features, voltage features, current features, and vehicle speed features:
[0097]
[0098] Among them, b t This represents the features extracted from the data after convolution (temperature features, voltage features, current features, and vehicle speed features); 'a' represents the weight value of the convolution kernel; 'a' here refers to battery attributes, specifically vehicle speed, battery current, battery voltage, and battery temperature.
[0099] S302: The temperature feature, voltage feature, current feature, and vehicle speed feature are used as input features and input to the attention mechanism layer to obtain attention weights.
[0100] Furthermore, after obtaining the temperature, voltage, current, and vehicle speed features, the extracted features can be input into the attention mechanism layer to obtain attention weights. In this specification, the attention mechanism layer can be a multi-head attention mechanism layer, and the number of attention heads can be determined according to the specific application scenario. In this specification, the number of attention heads can be optionally set to 8. Each attention head can focus on different aspects and features of the input sequence. By using multiple heads, the model can extract information from multiple perspectives and capture different aspects of the input data. The formula for the traditional attention mechanism is as follows:
[0101]
[0102] Where, q i K and V are the query vector matrix, key vector matrix, and value vector matrix, respectively, between fuel cell voltage data, vehicle speed data, fuel cell current, and fuel cell temperature data, obtained by multiplying the input sequence by the corresponding matrix; k(q i k j The query vector matrix and the key vector matrix are the dot product of the query vector matrix and the key vector matrix. The weights of the final value vector information represent the relationship between this data and other data, and are used to construct the weighted eigenvector matrix.
[0103] Optionally, the attention mechanism layer used in S202 can be a sparse attention mechanism layer, in which case S202 can be implemented according to the following scheme:
[0104] Step 1: Input the temperature feature, voltage feature, current feature, and vehicle speed feature as input features into the sparse attention mechanism layer to obtain the query vector matrix, key vector matrix, and value vector matrix.
[0105] To improve computation speed, accelerate model training, and reduce dot product calculations, the self-attention mechanism is sparsed. Specifically, the query vector matrix is sparsely filtered, and the implementation method is to perform dot product processing to reduce the amount of computation.
[0106] Step 2: Perform a dot product operation between the query vector matrix and the key vector matrix to obtain the dot product result, and determine the sparsity index of each element contained in the query vector matrix based on the dot product result.
[0107] First, perform a dot product between the query vector and the key vector, then select the query vector from the combination with the largest dot product value. The specific formula for filtering query vectors is as follows:
[0108]
[0109] Where M(q) i K) represents the sparsity score; L K d represents the length of the input data column, specifically the data length of fuel cell voltage data, vehicle speed data, fuel cell current data, and fuel cell temperature data; d represents the dimension of the input data, specifically the data dimension of battery voltage data, vehicle speed data, battery current data, and battery temperature data.
[0110] Step 3: Set the values of the elements in the query vector matrix whose sparsity index is less than the preset index to the preset values to obtain the sparsed query vector matrix.
[0111] Furthermore, by setting the values of elements with smaller sparsity indices in the query vector matrix to preset values (such as 0 or 1), the computational cost required to determine attention weights can be reduced. Therefore, in this step, the preset index is essentially a measure of whether the elements in the query vector matrix need sparsity processing. The preset index can be set in advance according to the specific application scenario and prior knowledge; this specification does not limit the specific value of the preset index.
[0112] Step 4: Obtain the attention weights based on the sparsely processed query vector matrix, the key vector matrix, and the value vector matrix.
[0113] Substituting the sparse query vector values into the attention mechanism formula yields the calculation formula for the sparse attention mechanism. The specific calculation formula after substitution is as follows:
[0114]
[0115] in, Value vector information score; The filtered query vector is used; the softmax() function performs a non-linear transformation and normalization on the attention score to calculate the attention weight of each input element, enabling the model to better focus on the information most meaningful to the current task and location.
[0116] S304: Based on the attention weight, temperature feature, voltage feature, current feature, and vehicle speed feature, a temperature feature map, voltage feature map, current feature map, and vehicle speed feature map are obtained by symmetrically expanding the recurrent convolutional layer according to the features.
[0117] Furthermore, after determining the attention weights, the attention weights, as well as the previously extracted temperature features, voltage features, current features, and vehicle speed features, can all be input into the feature-symmetric extended recurrent convolutional layer to obtain feature maps of different dimensions, namely temperature feature maps, voltage feature maps, current feature maps, and vehicle speed feature maps.
[0118] S306: The temperature feature map, the voltage feature map, the current feature map, and the vehicle speed feature map are fused through the feature mapping connection layer to obtain a feature map.
[0119] Then, by connecting feature maps of different dimensions through feature mapping and fusing them together, the final feature map can be obtained. This feature map contains features of different dimensions of battery attributes at the current moment, and also includes the correlation and importance between battery temperature, battery voltage, battery current, and vehicle speed.
[0120] In one or more embodiments of this specification, Figure 1 The battery temperature prediction model used in the method shown can be pre-trained iteratively according to the following scheme, as follows: Figure 4 As shown:
[0121] S400: Obtain battery attributes at various historical moments; wherein the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs.
[0122] This step is the same as described above. Figure 1 The S100 is similar, so it will not be described in detail here.
[0123] However, it should be noted that the time interval between each historical moment is generally the same; that is, the sampling frequency of battery attributes generally remains unchanged. Furthermore, this specification does not limit the number of battery attributes for each historical moment.
[0124] S402: Input the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtain a reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained.
[0125] This step is the same as described above. Figure 1 The same applies to S102, so it will not be described in detail here.
[0126] However, before inputting the battery attributes from each historical moment into the battery temperature prediction model to be trained, the battery attributes can be processed in the following two ways:
[0127] The first step is standardization: Specifically, to ensure that the battery attributes at each historical moment used to train the battery temperature prediction model can be used as input to the model, the battery temperature, battery voltage, battery current, and vehicle speed can be standardized separately, as shown in the following formula:
[0128]
[0129] Where, x new The data represents the standardized battery attributes, where x represents the original battery attributes, specifically including battery voltage, vehicle speed, battery current, and battery temperature. μ represents the mean of each data column, and σ represents the variance of each data column. All data columns maintain the same dimension and length.
[0130] The second step is time-location encoding processing: Specifically, for the battery attribute at each historical moment, a global timestamp corresponding to the battery attribute at that historical moment is determined based on the historical moment corresponding to the battery attribute at that historical moment. Based on the historical moments corresponding to each battery attribute and the historical moment corresponding to the battery attribute at that historical moment, a local timestamp corresponding to the battery at that historical moment is determined. Based on the global timestamp and the local timestamp, the battery attribute at that historical moment is time-location encoded to obtain the battery attribute at that historical moment after time-location encoding.
[0131] Specifically, the battery attributes, including battery temperature, battery voltage, battery current, and vehicle speed, can be arranged chronologically according to historical moments to obtain battery temperature, battery voltage, battery current, and vehicle speed sequences. Each sequence has the same length and a one-dimensional dimension. Since each sequence contains data corresponding to a historical moment, each sequence contains timestamp information, including global and local timestamps. A global timestamp refers to the absolute timestamp of the data in the sequence (e.g., the date and time), while a local timestamp typically represents the positional relationship of a piece of data relative to its neighboring data within the sequence. For example, the relative positional offset of data within the sequence can be used as a local timestamp. Because battery temperature prediction is a time series prediction, timestamps need to be added to ensure the predicted events and their order of occurrence, minimizing time mismatch. The formula for adding time and position timestamps is as follows:
[0132]
[0133] in, Represents the global timestamp. Represents a local timestamp. t i This represents the alignment dimension vector between the upper and lower connections (the alignment dimension vector is a vector representing the alignment dimension between upper and lower connections, used to capture global and local timestamp information in the input sequence for alignment operations in the model. This vector's role is to perform attention operations on the input sequence in the time dimension so that the model can better understand and process time-related information). i∈{1,…,L x} represents the length of the input data (battery attributes at each historical moment); α is a factor that balances the size between scalar mapping and local / global embedding. If the battery attributes have undergone the aforementioned normalization process, then α = 1.
[0134] S404: Use a specified number of battery attributes from each historical time point as training samples, and determine the labeling of the training samples based on the battery temperature in the battery attributes sequence excluding the training samples.
[0135] In this specification, S402 extracts features from different dimensions of battery attributes collected at various historical moments and fuses them to obtain a reference feature map. Since the battery temperature prediction model is actually a time series prediction, a specified number of battery attributes from earlier times in the historical battery attributes sequence can be used as training samples, while the battery attributes from later times can be used as annotations for the training samples. Specifically, the battery attributes from various historical moments can be arranged in chronological order to obtain a battery attribute sequence (battery temperature sequence, battery voltage sequence, battery current sequence, and vehicle speed sequence). Then, a specified number of battery attributes from the specified historical moments in the battery attribute sequence are determined as training samples, and the annotations for the training samples are determined based on the battery attributes in the battery attribute sequence excluding the training samples.
[0136] In determining the annotation of training samples based on battery attributes other than those in the battery attribute sequence, the battery temperature contained in the battery attribute of the next historical moment in the sequence that is adjacent to the last historical moment of the training sample can be used as the annotation of the training sample. Alternatively, the battery temperature in the battery attributes of other historical moments in the battery attribute sequence that are after the training sample but not adjacent to the last historical moment of the training sample can also be used as the annotation of the training sample.
[0137] Specifically, assume the battery attribute sequence is X = {X1, X2, ..., X...} i ,…X N If the specified number is 5, then {X1,…,X5} can be used as training samples, and X6, which is ranked after the training samples, can be used as the label of the training samples, or X7 can be used as the label of the training samples.
[0138] Optionally, the battery attributes at each historical moment are arranged in chronological order to obtain a battery attribute sequence. A specified number is determined, and a mask range is determined based on the specified number and the number of battery attributes contained in the battery attribute sequence. The battery attributes in the battery attribute sequence that fall within the mask range are masked to obtain a masked battery attribute sequence, which is then used as training samples.
[0139] Specifically, the masking range is essentially the difference between the number of battery attributes contained in the battery attribute sequence and a specified number. Assuming the battery attribute sequence contains battery attributes from 10 historical time points, and the specified number is 4, then the number of battery attributes falling within the masking range can be 6. The masked battery attributes are effectively obscured. When the masked battery attribute sequence is used as training samples and input into the battery temperature prediction model to be trained, the model cannot know the specific values of the masked battery attributes. Therefore, the battery temperature prediction model to be trained needs to predict the battery temperature from the masked battery attributes based on the unmasked battery attributes.
[0140] S406: Based on the training samples and the reference feature map, a reference attention weight matrix is obtained through the cross-self-attention unit of the battery temperature prediction model to be trained.
[0141] This step is similar to S104 mentioned above, and will not be repeated here.
[0142] Optionally, the battery temperature prediction model to be trained further includes a feature extraction unit, which is used to extract features from the training samples. Thus, by using the features of the training samples and the reference feature map as input to the cross-attention unit, a reference attention weight matrix can be obtained.
[0143] S408: Determine the predicted battery temperature for the next historical moment based on the reference attention weight matrix and the training samples.
[0144] This step is similar to step S106 mentioned above, and will not be described in detail here.
[0145] S410: Train the battery temperature prediction model to be trained based on the difference between the predicted battery temperature at the next historical moment and the labeling of the training samples.
[0146] This manual does not restrict the specific type of loss function used in training the battery temperature prediction model; it can be any type, such as Mean Squared Error (MSE), Cross-Entropy Loss, or Logarithmic Loss. The following example uses MSE loss, with the formula as follows:
[0147]
[0148] Among them, y i Here, is the predicted value, specifically the predicted battery temperature; n is the batch size for training the model. Model training is complete when the MSE value is less than the given A value, which is 1 here, meaning the squared prediction error is less than 1. Otherwise, the model continues iterative training.
[0149] The above describes a battery temperature control method provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding battery temperature control device, such as... Figure 5 As shown.
[0150] Figure 5 This specification provides a schematic diagram of a battery temperature control device, which specifically includes:
[0151] The battery attribute receiving module 500 is used to receive the battery attributes at the current moment sent by the vehicle.
[0152] The feature map determination module 502 is used to input the battery attributes at the current moment into a pre-trained battery temperature prediction model, and obtain a feature map through the feature map extraction unit of the battery temperature prediction model.
[0153] The attention weight matrix determination module 504 is used to obtain the attention weight matrix based on the battery attributes at the current time and the feature map, through the cross self-attention unit of the battery temperature prediction model.
[0154] The battery temperature prediction module 506 is used to determine the battery temperature at the next moment based on the attention weight matrix and the battery attributes at the current moment.
[0155] The battery temperature transmitting module 508 is used to transmit the battery temperature at the next moment to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
[0156] Optionally, the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs; the feature map extraction unit includes a data-symmetric dilated recurrent convolutional layer, an attention mechanism layer, a feature-symmetric dilated recurrent convolutional layer, and a feature mapping connection layer;
[0157] Optionally, the feature map determination module 502 is specifically used to: input the current battery temperature, current battery voltage, current battery current, and current vehicle speed into the data symmetric dilatation recurrent convolutional layer to obtain temperature features, voltage features, current features, and vehicle speed features; input the temperature features, voltage features, current features, and vehicle speed features as input features into the attention mechanism layer to obtain attention weights; based on the attention weights, temperature features, voltage features, current features, and vehicle speed features, obtain temperature feature maps, voltage feature maps, current feature maps, and vehicle speed feature maps through the feature symmetric dilatation recurrent convolutional layer; and fuse the temperature feature maps, voltage feature maps, current feature maps, and vehicle speed feature maps through the feature mapping connection layer to obtain a feature map.
[0158] Optionally, the attention mechanism layer is a sparse attention mechanism layer;
[0159] Optionally, the feature map determination module 502 is specifically used to: input the temperature feature, voltage feature, current feature, and vehicle speed feature as input features into the sparse attention mechanism layer to obtain a query vector matrix, a key vector matrix, and a value vector matrix; perform a dot product operation on the query vector matrix and the key vector matrix to obtain a dot product result, and determine the sparsity index of each element contained in the query vector matrix based on the dot product result; set the corresponding values of elements in the query vector matrix whose sparsity index is less than a preset index to preset values to obtain a sparsely processed query vector matrix; and obtain attention weights based on the sparsely processed query vector matrix, the key vector matrix, and the value vector matrix.
[0160] Optionally, the device further includes:
[0161] The training module 510 is specifically used to acquire battery attributes at each historical moment; wherein, the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs; inputting the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtaining a reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained; using a specified number of battery attributes from each historical moment as training samples, and determining the label of the training samples based on the battery temperature among the battery attributes in the battery attribute sequence excluding the training samples; obtaining a reference attention weight matrix through the cross-self-attention unit of the battery temperature prediction model to be trained based on the training samples and the reference feature map; determining the predicted battery temperature at the next historical moment based on the reference attention weight matrix and the training samples; and training the battery temperature prediction model to be trained based on the difference between the predicted battery temperature at the next historical moment and the label of the training samples.
[0162] Optionally, the training module 510 is specifically configured to: for each historical moment's battery attribute, determine the global timestamp corresponding to the battery attribute of that historical moment based on the historical moment corresponding to the battery attribute of that historical moment; determine the local timestamp corresponding to the battery of that historical moment based on each historical moment corresponding to each battery attribute and the historical moment corresponding to the battery attribute of that historical moment; and perform time-location encoding on the battery attribute of that historical moment based on the global timestamp and the local timestamp to obtain the time-location encoded battery attribute of that historical moment.
[0163] Optionally, the training module 510 is specifically used to input the battery attributes of each historical moment after time location encoding into the battery temperature prediction model to be trained, and obtain a reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained.
[0164] Optionally, the battery temperature prediction model to be trained further includes a feature extraction unit;
[0165] Optionally, the training module 510 is specifically used to: input the training sample into the feature extraction unit to obtain the features of the training sample; and input the features of the training sample and the reference feature map as inputs into the cross-self-attention unit of the battery temperature prediction model to be trained to obtain a reference attention weight matrix.
[0166] Optionally, the training module 510 is specifically used to: arrange the battery attributes at each historical moment in chronological order to obtain a battery attribute sequence; determine a specified number; determine a mask range based on the specified number and the number of battery attributes contained in the battery attribute sequence; and mask the battery attributes in the battery attribute sequence that fall within the mask range to obtain a masked battery attribute sequence as training samples.
[0167] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 The method for controlling battery temperature is shown.
[0168] This instruction manual also provides Figure 6 The diagram shows a schematic structural representation of the electronic device. Figure 6 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for the business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1 The method for controlling battery temperature is shown. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.
[0169] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0170] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0171] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0172] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.
[0173] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0174] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0175] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0176] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0177] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0178] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0179] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0180] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0181] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0182] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0183] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0184] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.
Claims
1. A method for controlling battery temperature, characterized in that, include: Receive the battery attributes sent by the vehicle at the current moment, including battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs; The battery attributes at the current moment are input into a pre-trained battery temperature prediction model, and a feature map is obtained through the feature map extraction unit of the battery temperature prediction model. The feature map extraction unit includes a data-symmetric dilated recurrent convolutional layer, an attention mechanism layer, a feature-symmetric dilated recurrent convolutional layer, and a feature mapping connection layer. The feature map extraction unit, through the battery temperature prediction model, obtains the feature map by: inputting the current battery temperature, battery voltage, battery current, and vehicle speed into the data-symmetric dilated recurrent convolutional layer, and using the obtained temperature, voltage, current, and vehicle speed features as input features to the attention mechanism layer to obtain attention weights; based on the attention weights, the temperature, voltage, current, and vehicle speed features, obtaining corresponding temperature, voltage, current, and vehicle speed feature maps through the feature-symmetric dilated recurrent convolutional layer; and fusing the temperature, voltage, current, and vehicle speed feature maps through the feature mapping connection layer to obtain the final feature map. Based on the battery attributes at the current moment and the feature map, the attention weight matrix is obtained through the cross self-attention unit of the battery temperature prediction model; The battery temperature at the next moment is determined based on the attention weight matrix and the battery properties at the current moment. The battery temperature at the next moment is sent to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
2. The method as described in claim 1, characterized in that, The attention mechanism layer is a sparse attention mechanism layer; The obtained temperature, voltage, current, and vehicle speed features are used as input features and fed into the attention mechanism layer to obtain attention weights. Specifically, this includes: The temperature feature, voltage feature, current feature, and vehicle speed feature are used as input features and input into the sparse attention mechanism layer to obtain a query vector matrix, a key vector matrix, and a value vector matrix. The query vector matrix and the key vector matrix are subjected to a dot product to obtain a dot product result, and the sparsity index of each element contained in the query vector matrix is determined based on the dot product result. In the query vector matrix, the values of the elements whose sparsity index is less than the preset index are set to the preset values to obtain the sparsed query vector matrix. Attention weights are obtained based on the sparsely processed query vector matrix, the key vector matrix, and the value vector matrix.
3. The method as described in claim 1, characterized in that, Pre-trained battery temperature prediction models include: Obtain battery attributes at various historical moments; wherein, the battery attributes include battery temperature, battery voltage, battery current, and the vehicle speed of the vehicle to which the battery belongs; The battery attributes at each historical moment are input into the battery temperature prediction model to be trained, and a reference feature map is obtained through the feature map extraction unit of the battery temperature prediction model to be trained. A specified number of battery attributes from each historical moment are used as training samples, and the labels of the training samples are determined based on the battery temperature in the battery attributes other than the training samples in the battery attribute sequence. Based on the training samples and the reference feature map, a reference attention weight matrix is obtained through the cross self-attention unit of the battery temperature prediction model to be trained; Based on the reference attention weight matrix and the training samples, determine the predicted battery temperature for the next historical moment; The battery temperature prediction model to be trained is trained based on the difference between the predicted battery temperature at the next historical moment and the labeling of the training samples.
4. The method as described in claim 3, characterized in that, Before inputting the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtaining the reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained, the method further includes: For each historical moment's battery attribute, determine the global timestamp corresponding to the battery attribute of that historical moment based on the historical moment corresponding to that historical moment's battery attribute; Based on the historical time corresponding to each battery attribute, and the historical time corresponding to the battery attribute at that historical time, determine the local timestamp corresponding to the battery at that historical time. Based on the global timestamp and the local timestamp, the battery attributes at this historical moment are time-location encoded to obtain the battery attributes at this historical moment after time-location encoding. The step of inputting the battery attributes at each historical moment into the battery temperature prediction model to be trained, and obtaining a reference feature map through the feature map extraction unit of the battery temperature prediction model to be trained, specifically includes: The battery attributes at each historical moment, after being encoded with time location, are input into the battery temperature prediction model to be trained. A reference feature map is then obtained through the feature map extraction unit of the battery temperature prediction model to be trained.
5. The method as described in claim 3, characterized in that, The battery temperature prediction model to be trained also includes a feature extraction unit; Based on the training samples and the reference feature map, a reference attention weight matrix is obtained through the cross-self-attention units of the battery temperature prediction model to be trained, specifically including: The training samples are input into the feature extraction unit to obtain the features of the training samples; The features of the training samples and the reference feature map are used as inputs to the cross-self-attention unit of the battery temperature prediction model to be trained, resulting in a reference attention weight matrix.
6. The method as described in claim 3, characterized in that, The step of using a specified number of historical time-based battery attributes from each historical time-based battery attribute set as training samples specifically includes: The battery attributes at each historical moment are arranged in chronological order to obtain a battery attribute sequence. Determine the specified quantity; The mask range is determined based on the specified quantity and the number of battery attributes contained in the battery attribute sequence; The battery attributes that fall within the mask range in the battery attribute sequence are masked to obtain the masked battery attribute sequence as training samples.
7. A battery temperature control device, characterized in that, include: A battery attribute receiving module is used to receive the battery attributes sent by the vehicle at the current moment. The battery attributes include battery temperature, battery voltage, battery current, and vehicle speed of the vehicle to which the battery belongs. The feature map determination module is used to input the battery attributes at the current moment into a pre-trained battery temperature prediction model, and obtain a feature map through the feature map extraction unit of the battery temperature prediction model. The feature map extraction unit includes a data-symmetric dilated recurrent convolutional layer, an attention mechanism layer, a feature-symmetric dilated recurrent convolutional layer, and a feature mapping connection layer. The feature map determination module is specifically used to: input the current battery temperature, battery voltage, battery current, and vehicle speed into the data-symmetric dilated recurrent convolutional layer, and input the obtained temperature features, voltage features, current features, and vehicle speed features as input features into the attention mechanism layer to obtain attention weights; based on the attention weights, the temperature features, the voltage features, the current features, and the vehicle speed features, obtain the corresponding temperature feature map, voltage feature map, current feature map, and vehicle speed feature map through the feature-symmetric dilated recurrent convolutional layer; and fuse the temperature feature map, the voltage feature map, the current feature map, and the vehicle speed feature map through the feature mapping connection layer to obtain a feature map. The attention weight matrix determination module is used to obtain the attention weight matrix based on the battery attributes at the current time and the feature map, through the cross self-attention unit of the battery temperature prediction model. A battery temperature prediction module is used to determine the battery temperature at the next moment based on the attention weight matrix and the battery properties at the current moment. A battery temperature transmitting module is used to send the battery temperature at the next moment to the vehicle so that the vehicle can perform temperature control on the battery based on the battery temperature at the next moment.
8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Energy storage system battery thermal runaway pre-judgment method based on hybrid model
CN116626503A
Method and system for predicting remaining service life of lithium battery
WO2022257211A1
