Sodium-ion battery-based battery remaining life prediction method and device
By using the dynamic self-attention encoding layer and the temporal attention decoding layer in sodium-ion battery life prediction, the problem of difficulty in modeling the nonlinear characteristics of the battery with traditional models is solved, and more accurate and reliable battery life prediction is achieved.
Patent Information
- Application Number
- CN202410662886.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-27
AI Technical Summary
The life prediction of sodium-ion batteries has low accuracy and reliability. It is difficult for traditional physical models to model the nonlinear characteristics of batteries, resulting in limited prediction accuracy.
A battery life prediction model based on the dynamic self-attention encoding layer and the temporal attention decoding layer is used to capture the temporal changes in battery performance through current data, voltage data and temperature data, and self-attention features are used to predict the remaining battery life.
It improves the accuracy, adaptability and interpretability of remaining battery life prediction, and improves the reliability of prediction.
Smart Images

Figure CN118566743A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery life prediction, and in particular to a method and device for predicting the remaining battery life based on sodium ion batteries. Background Art
[0002] As an emerging energy storage technology, sodium-ion batteries are widely used in electric vehicles, energy storage systems and other fields. However, the problem of estimating the remaining life of sodium-ion batteries has always been one of the important challenges in battery management and maintenance. At present, the remaining life estimation of sodium-ion batteries is mainly based on physical models and data-driven methods, such as Kalman filtering, recurrent neural networks, etc. However, traditional physical models often have difficulties in modeling the nonlinear characteristics of batteries, which in turn limits the accuracy and reliability of remaining life prediction.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a method and device for predicting the remaining life of a battery based on a sodium ion battery, aiming to solve the technical problems of low accuracy and reliability in predicting the life of a sodium ion battery using traditional methods.
[0005] To achieve the above objectives, the present application proposes a method for predicting the remaining life of a battery based on a sodium ion battery. The method for predicting the remaining life of a battery based on a sodium ion battery comprises:
[0006] Acquire target observation data of a target sodium ion battery, wherein the target observation data includes at least current data, voltage data, and temperature data;
[0007] Determine a plurality of time steps according to the target observation data, and generate a target long time series according to the plurality of time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier;
[0008] The target long time series is input into a battery life prediction model to obtain a predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0009] In one embodiment, the step of inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium ion battery includes:
[0010] Inputting the target long time series into the dynamic self-attention encoding layer of the battery life prediction model to obtain self-attention features;
[0011] The self-attention feature is input into the temporal attention decoding layer of the battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery.
[0012] In one embodiment, the first multi-head self-attention mechanism includes multiple attention heads and a fully connected layer; wherein the step of inputting the target long time series into the dynamic self-attention encoding layer of the battery life prediction model to obtain the self-attention feature includes:
[0013] Performing parallel calculations on the target long time series through multiple attention heads of the first multi-head self-attention mechanism to obtain initial self-attention features;
[0014] The initial self-attention feature is linearly transformed through the fully connected layer of the first multi-head self-attention mechanism to obtain a self-attention feature.
[0015] In one embodiment, before the step of inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target lithium-ion battery, the step further includes:
[0016] Collect observation data of the sodium-ion battery under different working conditions from the sodium-ion battery system, and collect battery capacity change values of the sodium-ion battery at different time intervals;
[0017] Determine original data according to the observed data and the battery capacity change value;
[0018] Performing a preprocessing operation on the raw data to obtain training data, and using the battery cycle number of the sodium ion battery as a label value of the training data, wherein the preprocessing operation includes a cleaning operation, an alignment operation, and a standardization operation;
[0019] The battery life prediction model is constructed based on the training data and the label value.
[0020] In one embodiment, the step of constructing the battery life prediction model based on the training data and the label value includes:
[0021] Based on the training data, the first battery life prediction model is trained using a log-likelihood strategy that maximizes the observation probability to obtain a second battery life prediction model;
[0022] Based on the self-supervised loss function of KL divergence, the second battery life prediction model is optimized to obtain the battery life prediction model.
[0023] In one embodiment, after the step of constructing the battery life prediction model based on the training data and the label value, the step further includes:
[0024] Determining a self-attention weight distribution of the battery life prediction model;
[0025] Performing statistical analysis on the self-attention weight distribution to determine the mean and standard deviation of the time steps;
[0026] Determining the importance of different time steps based on the mean and the standard deviation;
[0027] Normalize the importance of each time step to obtain the normalized importance;
[0028] After mapping the normalized importance to a heat map, determining a model prediction process according to the heat map;
[0029] The battery life prediction model is optimized according to the model prediction process.
[0030] In one embodiment, after the step of constructing the battery life prediction model based on the training data and the label value, the step further includes:
[0031] Using test data to verify the battery life prediction model to obtain a verification result;
[0032] Based on the verification result, the hyperparameters and network structure of the battery life prediction model are adjusted.
[0033] In addition, to achieve the above purpose, the present application also proposes a battery remaining life prediction device based on a sodium ion battery, and the battery remaining life prediction device based on a sodium ion battery comprises:
[0034] An acquisition module, used to acquire target observation data of a target sodium-ion battery, wherein the target observation data includes at least current data, voltage data and temperature data;
[0035] A determination module, configured to determine a plurality of time steps according to the target observation data, and generate a target long time series according to the plurality of time steps, wherein a time step includes an observation value, a timestamp, a time interval and an identifier;
[0036] An input module is used to input the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a battery remaining life prediction device based on sodium ion batteries, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the battery remaining life prediction method based on sodium ion batteries as described above.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the battery remaining life prediction method based on sodium ion battery as described above are implemented.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the battery remaining life prediction method based on sodium ion battery as described above.
[0040] One or more technical solutions proposed in this application have at least the following technical effects:
[0041] The present application proposes a method and device for predicting the remaining battery life based on sodium-ion batteries, by acquiring target observation data of a target sodium-ion battery, wherein the target observation data at least includes current data, voltage data and temperature data; determining multiple time steps according to the target observation data, and generating a target long time series according to the multiple time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier; inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network. The technical problem of low accuracy and reliability in realizing life prediction of sodium-ion batteries by traditional methods is solved. Compared with the prior art, the present application can capture the time series changes of battery performance from the battery current data, voltage data and temperature data through a dynamic self-attention encoding layer, and can also make full use of the features extracted by the encoding layer to predict the remaining life of the battery through a time series attention decoding layer. The present embodiment fully considers the time series characteristics of battery performance, so that the accuracy, adaptability and interpretability of the prediction of the remaining life of the battery are effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A schematic diagram of a flow chart of a method for predicting the remaining life of a battery based on a sodium ion battery according to an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a flow chart of a second embodiment of a method for predicting the remaining life of a battery based on a sodium ion battery of the present application;
[0046] Figure 3 This is a schematic diagram of the module structure of a battery remaining life prediction device based on a sodium ion battery in an embodiment of the present application;
[0047] Figure 4Schematic diagram of the device structure of the hardware operating environment involved in the battery remaining life prediction method based on sodium ion batteries in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: obtaining target observation data of a target sodium-ion battery, wherein the target observation data includes at least current data, voltage data and temperature data; determining multiple time steps according to the target observation data, and generating a target long time series according to the multiple time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier; inputting the target long time series into a battery life prediction model to obtain a predicted battery remaining life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0052] In this embodiment, for ease of description, the following is explained by identifying a battery remaining life prediction device based on a sodium ion battery as the execution subject.
[0053] Traditional physical models often have difficulty modeling the nonlinear characteristics of batteries, which in turn limits the accuracy and reliability of remaining life prediction.
[0054] The present application provides a solution that can capture the temporal changes in battery performance from the battery's current data, voltage data, and temperature data through a dynamic self-attention encoding layer, and can also make full use of the features extracted by the encoding layer to predict the remaining battery life through a temporal attention decoding layer. This embodiment fully considers the temporal characteristics of battery performance, so that the accuracy, adaptability, and interpretability of the remaining battery life prediction are effectively improved.
[0055] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a battery remaining life prediction device based on a sodium ion battery, etc. The following takes the battery remaining life prediction device based on a sodium ion battery as an example to illustrate this embodiment and the following embodiments.
[0056] Based on this, the present application embodiment provides a method for predicting the remaining battery life of a sodium ion battery. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for predicting the remaining battery life of a sodium-ion battery in the present application.
[0057] In this embodiment, the method for predicting the remaining battery life based on a sodium ion battery includes steps S10 to S30:
[0058] Step S10, acquiring target observation data of a target sodium ion battery, wherein the target observation data at least includes current data, voltage data and temperature data;
[0059] It should be noted that the current data can be used to understand the performance of the battery during the charge and discharge process. For example, the battery usage pattern and aging can be understood through the current changes in the battery during the charge and discharge cycle. For example, the current data can be combined with the battery's charge and discharge capacity to reveal the battery capacity decay trend over time. For example, by analyzing the relationship between the charge and discharge current and the voltage, the change in the battery's internal resistance can be estimated to reflect the battery aging (because the increase in internal resistance is usually a signal of battery aging). For example, health indicators can be extracted from the current data, such as the incremental capacity (IC) peak during the discharge process, the voltage value corresponding to the peak, the peak area, and the peak slope, which can be used as quantitative indicators of the battery's health status.
[0060] It should be noted that since voltage data is closely related to the health status of the battery, by analyzing the voltage changes during the battery charging and discharging process, indicators related to the battery health status can be extracted, such as the peak value, the voltage value corresponding to the peak value, the peak area, and the peak slope, etc.; since the attenuation of battery capacity is often accompanied by changes in the voltage platform, by monitoring these changes, the downward trend of battery capacity can be evaluated; since voltage data can reveal the mechanism of battery aging, such as the boundary of the electrolyte, the structural changes of the electrode material, etc.
[0061] It should be noted that the temperature of the battery will affect the rate of electrochemical reactions inside it, thereby affecting the performance and life of the battery. For example, a high temperature environment intensifies the separation of the electrolyte and the degradation of the electrode material, thereby accelerating the aging process of the battery.
[0062] It is understandable that the target observation data may also include discharge capacity, cycle life, peak discharge capacity, capacity decay rate, charge and discharge time, health indicators, internal resistance, etc.
[0063] Step S20, determining a plurality of time steps according to the target observation data, and generating a target long time series according to the plurality of time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier;
[0064] It should be noted that the timestamp represents a specific time point, the observation value represents the observation data (such as current data, voltage data and temperature data) of the target sodium-ion battery at the timestamp, and the time interval represents the time difference between two adjacent observation values. The time interval can be fixed or variable, and the identifier is used to distinguish different batteries.
[0065] Step S30, inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0066] It should be noted that the battery life prediction model is a trained model. In the first feedforward network, an activation function layer is added between the first fully connected layer and the second fully connected layer, that is, the first feedforward network includes the first fully connected layer, the activation function layer and the second fully connected layer connected in sequence, wherein the activation function layer is the ReLU activation function. This feedforward structure further enhances the expressive ability of the model by learning nonlinear transformations, thereby better fitting the nonlinear law of battery life.
[0067] It should be noted that the second multi-head self-attention mechanism and the second feedforward network can be used to generate the remaining battery life. Through end-to-end training, the advantages of self-attention and feedforward network can be fully utilized to achieve accurate prediction of battery life.
[0068] In a feasible implementation manner, the step of inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery includes: inputting the target long time series into a dynamic self-attention encoding layer of the battery life prediction model to obtain self-attention features; and inputting the self-attention features into a temporal attention decoding layer of the battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery.
[0069] It should be noted that the attention features determined by the first multi-head self-attention mechanism can reflect the long-term dependency between the observed data and the time series in the target long time series, which can help improve the accuracy of battery life prediction; the temporal attention decoding layer can be used to generate the remaining battery life, which fully utilizes the advantages of the self-attention mechanism and the feedforward network through end-to-end training to achieve accurate prediction of battery life.
[0070] In a feasible implementation, the first multi-head self-attention mechanism includes multiple attention heads and a fully connected layer; wherein, the step of inputting the target long time series into the dynamic self-attention encoding layer of the battery life prediction model to obtain the self-attention feature includes: performing parallel calculations on the target long time series through the multiple attention heads of the first multi-head self-attention mechanism to obtain the initial self-attention feature; performing linear transformation on the initial self-attention feature through the fully connected layer of the first multi-head self-attention mechanism to obtain the self-attention feature.
[0071] It should be noted that adding a fully connected layer after the first multi-head self-attention mechanism can further extract and combine features; after the target long time series is input into the battery life prediction model, multiple attention heads are calculated in parallel, and each attention head learns a different attention weight distribution. For example, after each attention head calculates the query, key and value matrices, it calculates the attention weight through the scaled dot product attention mechanism, and outputs the initial self-attention feature according to the attention weight. Finally, a fully connected layer is used to linearly transform the initial self-attention features output by multiple attention heads to obtain the final self-attention feature.
[0072] In the specific implementation, the specific implementation steps for each attention head to learn different attention weight distributions are as follows:
[0073] (1) The target long time series is divided into multiple subsequences and then input into multiple attention heads respectively. Each attention head processes one subsequence and processes the subsequences in parallel. (2) Each attention head generates query (Q), key (K), and value (V) matrices by transforming the input subsequence through three different linear transformations (i.e., weight matrix multiplication). (3) The dot product of the query and the key is used to calculate the attention score between them (used to indicate how much weight should be given in the output) by scaling the dot product attention. For each query vector, the dot product between it and all key vectors is calculated to obtain the dot product result. The dot product result is scaled by the scaling factor and normalized by the Softmax function to obtain the attention weight of each key.
[0074] In this embodiment, target observation data of a target sodium-ion battery is obtained, wherein the target observation data includes at least current data, voltage data and temperature data; multiple time steps are determined according to the target observation data, and a target long time series is generated according to the multiple time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier; the target long time series is input into a battery life prediction model to obtain a predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network. The technical problem of low accuracy and reliability in realizing life prediction of sodium-ion batteries by traditional methods is solved. Compared with the prior art, the present application can capture the time series changes of battery performance from the battery current data, voltage data and temperature data through a dynamic self-attention encoding layer, and can also make full use of the features extracted by the encoding layer to predict the remaining life of the battery through a time series attention decoding layer. The present embodiment fully considers the time series characteristics of battery performance, so that the accuracy, adaptability and interpretability of the prediction of the remaining life of the battery are effectively improved.
[0075] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 Before step S30, the step of inputting the target long time series into the battery life prediction model to obtain the predicted remaining battery life of the target lithium-ion battery also includes steps S301 to S304:
[0076] Step S301, collecting observation data of the sodium ion battery under different working conditions from the sodium ion battery system, and collecting battery capacity change values of the sodium ion battery at different time intervals;
[0077] Step S302, determining original data according to the observed data and the battery capacity change value;
[0078] Step S303, performing a preprocessing operation on the original data to obtain training data, and using the battery cycle number of the sodium ion battery as a label value of the training data, wherein the preprocessing operation includes a cleaning operation, an alignment operation, and a standardization operation;
[0079] It should be noted that the cleaning operation refers to removing outliers, missing values or erroneous records in the original data; the alignment operation refers to adjusting the data to be continuous and aligned in time series, which is especially important for time series prediction models; the standardization operation refers to standardizing the data to have zero mean and unit variance, which helps the stability and convergence speed of model training; the number of battery cycles can be used to reflect the number of charge and discharge cycles experienced when the battery capacity drops to a certain percentage of the initial capacity, and can be used to indicate the remaining life of the battery; the original data after preprocessing can be used as input data for the battery life prediction model.
[0080] Step S304: construct the battery life prediction model based on the training data and the label value.
[0081] It should be noted that in the training process of constructing the battery life prediction model, the model can be trained by maximizing the log-likelihood of the observation probability, and the model can be optimized using the self-supervised loss of KL divergence, thereby realizing the construction of the battery life prediction model.
[0082] It should be noted that the battery life prediction model is a trained model that can be directly deployed in actual production to predict the remaining life of the sodium-ion battery in real time. At the same time, it can also collect user feedback information, such as the actual remaining life of the sodium-ion battery, and then compare the predicted battery life with the actual remaining life to continuously optimize the battery life prediction model online and continuously update the model to improve the prediction accuracy.
[0083] In a feasible implementation, the step of constructing the battery life prediction model based on the training data and the label value includes: based on the training data, training the first battery life prediction model using a log-likelihood strategy that maximizes the observation probability to obtain a second battery life prediction model; and optimizing the second battery life prediction model based on a self-supervised loss function of KL divergence to obtain the battery life prediction model.
[0084] It should be noted that the log-likelihood strategy of maximizing the observation probability uses the maximum likelihood estimation (MLE) as the training objective. During the training process, gradient ascent or other algorithms are used to adjust the model parameters to maximize the log-likelihood function, and the model is trained by minimizing the negative log-likelihood (because the log-likelihood is monotonically increasing, minimizing its negative value is equivalent to maximizing itself).
[0085] It should be noted that the KL divergence self-supervised loss function includes the KL divergence term, which is mainly used to quantify the difference between the model prediction and the true distribution. The self-supervised loss function can be used to guide the optimization process of the model and adjust the model parameters by minimizing the KL divergence.
[0086] In the specific implementation, Teacher Forcing is used to generate sequences when training the model. For example, during training, a random initial state is used as the starting point of the sequence to generate the first prediction result. Even if the first prediction result may be wrong, the model still uses the real data (rather than its prediction result) as input at the next time step.
[0087] In a feasible implementation manner, the step of constructing the battery life prediction model based on the training data and the label value also includes: verifying the battery life prediction model using test data to obtain a verification result; and adjusting the hyperparameters and network structure of the battery life prediction model based on the verification result.
[0088] It should be noted that you can use an independent test data set to verify the trained model and obtain verification results. The verification results can be used to evaluate the prediction accuracy and generalization ability of the model, and you can tune the model based on the verification results, such as adjusting the model's hyperparameters, optimizing the network structure, etc., to improve the model's prediction performance.
[0089] In a feasible implementation, the step of constructing the battery life prediction model based on the training data and the label value also includes: determining the self-attention weight distribution of the battery life prediction model; performing statistical analysis on the self-attention weight distribution to determine the mean and standard deviation of the time step; determining the importance corresponding to different time steps based on the mean and the standard deviation; normalizing the importance of each time step to obtain a normalized importance; after mapping the normalized importance to a heat map, determining the model prediction process according to the heat map; and optimizing the battery life prediction model according to the model prediction process.
[0090] It can be understood that the attention weight distribution can represent the model's attention to different time steps when predicting battery life; for each time step, the mean and standard deviation of the time step are calculated based on all the attention weights corresponding to the time step; time steps with higher mean and lower standard deviation are more important. Specifically, the mean weight and standard deviation weight can be set, and the importance of the time step can be determined based on the mean of the time step, the standard deviation of the time step, the mean weight and the standard deviation weight.
[0091] It should be noted that after mapping the normalized importance to the heat map, the importance of the time step can be determined according to the color depth on the heat map. For example, the darker the color, the higher the importance of the time step, and the lighter the color, the lower the importance of the time step. Through the heat map, we can more intuitively identify the time step that the model focuses on in the prediction process, that is, understand how the model makes predictions based on time series data, and make it easier for people to understand the decision-making process of the model, so as to optimize the model according to the model prediction process.
[0092] In this embodiment, the observation data of the sodium ion battery under different working conditions is collected from the sodium ion battery system, and the battery capacity change value of the sodium ion battery at different time intervals is collected; the original data is determined according to the observation data and the battery capacity change value; the original data is preprocessed to obtain training data, and the battery cycle number of the sodium ion battery is used as the label value of the training data, wherein the preprocessing operation includes a cleaning operation, an alignment operation and a standardization operation; the battery life prediction model is constructed based on the training data and the label value. In the above manner, the original data can be cleaned, aligned and standardized to obtain training data that is more suitable for the training model, which can not only improve the convergence speed of the model, but also enhance the training stability of the model.
[0093] For example, in order to help understand the implementation process of the battery remaining life prediction method based on sodium ion battery obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a method for predicting the remaining battery life of a sodium-ion battery is provided. Specifically:
[0094] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the battery remaining life prediction method based on sodium ion batteries in the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0095] The present application also provides a battery remaining life prediction device based on sodium ion batteries, please refer to Figure 3 , the battery remaining life prediction device based on sodium ion battery comprises:
[0096] An acquisition module 10 is used to acquire target observation data of a target sodium-ion battery, wherein the target observation data at least includes current data, voltage data and temperature data;
[0097] A determination module 20, configured to determine a plurality of time steps according to the target observation data, and generate a target long time series according to the plurality of time steps, wherein a time step includes an observation value, a timestamp, a time interval and an identifier;
[0098] The input module 30 is used to input the target long time series into the battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0099] The battery remaining life prediction device based on sodium ion batteries provided in the present application adopts the battery remaining life prediction method based on sodium ion batteries in the above-mentioned embodiment, which can solve the technical problems of low accuracy and reliability in the traditional method of realizing the life prediction of sodium ion batteries. Compared with the prior art, the beneficial effects of the battery remaining life prediction device based on sodium ion batteries provided in the present application are the same as the beneficial effects of the battery remaining life prediction method based on sodium ion batteries provided in the above-mentioned embodiment, and the other technical features of the battery remaining life prediction device based on sodium ion batteries are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0100] The present application provides a battery remaining life prediction device based on a sodium ion battery, and the battery remaining life prediction device based on a sodium ion battery includes: at least one processor; and a memory connected to the at least one processor in communication; 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 so that the at least one processor can execute the battery remaining life prediction method based on the sodium ion battery in the above-mentioned embodiment 1.
[0101] Reference below Figure 4 , which shows a schematic diagram of the structure of a battery remaining life prediction device based on sodium ion batteries suitable for implementing the embodiment of the present application. The battery remaining life prediction device based on sodium ion batteries in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The battery remaining life prediction device based on sodium ion battery is shown as an example only and should not bring any limitation to the function and scope of use of the embodiments of the present application.
[0102] like Figure 4 As shown, the battery remaining life prediction device based on sodium ion batteries may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the battery remaining life prediction device based on sodium ion batteries are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the battery remaining life prediction device based on sodium ion batteries to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a battery remaining life prediction device based on sodium ion batteries with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0103] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0104] The battery remaining life prediction device based on sodium ion batteries provided in the present application adopts the battery remaining life prediction method based on sodium ion batteries in the above-mentioned embodiment, which can solve the technical problems of low accuracy and reliability in the traditional method of realizing the life prediction of sodium ion batteries. Compared with the prior art, the beneficial effects of the battery remaining life prediction device based on sodium ion batteries provided in the present application are the same as the beneficial effects of the battery remaining life prediction method based on sodium ion batteries provided in the above-mentioned embodiment, and the other technical features in the battery remaining life prediction device based on sodium ion batteries are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0105] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0106] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0107] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the battery remaining life prediction method based on sodium-ion batteries in the above-mentioned embodiment.
[0108] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0109] The above-mentioned computer-readable storage medium may be included in the battery remaining life prediction device based on sodium ion batteries; or it may exist independently without being assembled into the battery remaining life prediction device based on sodium ion batteries.
[0110] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a battery remaining life prediction device based on a sodium ion battery, the battery remaining life prediction device based on a sodium ion battery: obtains target observation data of a target sodium ion battery, wherein the target observation data includes at least current data, voltage data, and temperature data; determines multiple time steps according to the target observation data, and generates a target long time series according to the multiple time steps, wherein the time step includes an observation value, a timestamp, a time interval, and an identifier; inputs the target long time series into a battery life prediction model to obtain a predicted battery remaining life of the target sodium ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer, and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
[0111] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0114] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for predicting the remaining battery life of a sodium-ion battery, and can solve the technical problem of predicting the remaining battery life of a sodium-ion battery. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the method for predicting the remaining battery life of a sodium-ion battery provided in the above-mentioned embodiment, and will not be repeated here.
[0115] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for predicting remaining battery life based on sodium ion batteries.
[0116] The computer program product provided in this application can solve the technical problem of low accuracy and reliability in the traditional method of predicting the life of sodium ion batteries. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the battery remaining life prediction method based on sodium ion batteries provided in the above embodiment, which will not be repeated here.
[0117] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for predicting the remaining battery life of a sodium ion battery, characterized in that: The method comprises: Acquire target observation data of a target sodium ion battery, wherein the target observation data includes at least current data, voltage data, and temperature data; Determine a plurality of time steps according to the target observation data, and generate a target long time series according to the plurality of time steps, wherein the time step includes an observation value, a timestamp, a time interval and an identifier; The target long time series is input into a battery life prediction model to obtain a predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
2. The method according to claim 1, characterized in that The step of inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium ion battery comprises: Inputting the target long time series into the dynamic self-attention encoding layer of the battery life prediction model to obtain self-attention features; The self-attention feature is input into the temporal attention decoding layer of the battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery.
3. The method according to claim 1, characterized in that The first multi-head self-attention mechanism includes multiple attention heads and a fully connected layer; wherein the step of inputting the target long time series into the dynamic self-attention encoding layer of the battery life prediction model to obtain the self-attention feature includes: Performing parallel calculations on the target long time series through multiple attention heads of the first multi-head self-attention mechanism to obtain initial self-attention features; The initial self-attention feature is linearly transformed through the fully connected layer of the first multi-head self-attention mechanism to obtain a self-attention feature.
4. The method according to claim 1, characterized in that Before the step of inputting the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target lithium-ion battery, the step further includes: Collect observation data of the sodium-ion battery under different working conditions from the sodium-ion battery system, and collect battery capacity change values of the sodium-ion battery at different time intervals; Determine original data according to the observed data and the battery capacity change value; Performing a preprocessing operation on the raw data to obtain training data, and using the battery cycle number of the sodium ion battery as a label value of the training data, wherein the preprocessing operation includes a cleaning operation, an alignment operation, and a standardization operation; The battery life prediction model is constructed based on the training data and the label value.
5. The method according to claim 4, characterized in that The step of constructing the battery life prediction model based on the training data and the label value comprises: Based on the training data, the first battery life prediction model is trained using a log-likelihood strategy that maximizes the observation probability to obtain a second battery life prediction model; Based on the self-supervised loss function of KL divergence, the second battery life prediction model is optimized to obtain the battery life prediction model.
6. The method according to claim 4, characterized in that After the step of constructing the battery life prediction model based on the training data and the label value, the following step is further included: Determining a self-attention weight distribution of the battery life prediction model; Performing statistical analysis on the self-attention weight distribution to determine the mean and standard deviation of the time steps; Determining the importance of different time steps based on the mean and the standard deviation; Normalize the importance of each time step to obtain the normalized importance; After mapping the normalized importance to a heat map, determining a model prediction process according to the heat map; The battery life prediction model is optimized according to the model prediction process.
7. The method according to claim 4, characterized in that After the step of constructing the battery life prediction model based on the training data and the label value, the following step is further included: Using test data to verify the battery life prediction model to obtain a verification result; Based on the verification result, the hyperparameters and network structure of the battery life prediction model are adjusted.
8. A battery remaining life prediction device based on sodium ion battery, characterized in that: The device comprises: An acquisition module, used to acquire target observation data of a target sodium-ion battery, wherein the target observation data includes at least current data, voltage data and temperature data; A determination module, configured to determine a plurality of time steps according to the target observation data, and generate a target long time series according to the plurality of time steps, wherein a time step includes an observation value, a timestamp, a time interval and an identifier; An input module is used to input the target long time series into a battery life prediction model to obtain the predicted remaining battery life of the target sodium-ion battery, wherein the battery life prediction model includes a dynamic self-attention encoding layer and a temporal attention decoding layer, the dynamic self-attention encoding layer includes a first multi-head self-attention mechanism and a first feedforward network, the first feedforward network includes a first fully connected layer, a second fully connected layer and an activation function layer, and the temporal attention decoding layer includes a second multi-head self-attention mechanism and a second feedforward network.
9. A battery remaining life prediction device based on sodium ion batteries, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for predicting the remaining battery life based on a sodium ion battery as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the battery remaining life prediction method based on a sodium ion battery are implemented as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic generation method for concrete dam defect image description based on graph attention network
CN114898121A
Converter-based bidirectional encoder representation sequence recommendation method and apparatus
CN115757865A
Lithium ion battery SOH estimation and RUL prediction method based on TTSNet
CN116467580A
Invalid message suppression method and system, electronic equipment and computer storage medium
CN116915496A
Lithium ion battery life prediction method based on integrated Transform model
CN117148197A
Cited By
Method and system for monitoring running state of sodium ion battery in full life cycle
CN119720892A
Lithium ion battery SOH prediction method and system
CN122652324A
