Lithium battery capacity prediction method based on chemical composition data
By combining the incremental capacity curve processing of the formation data with the neural network model, the problem of failing to fully utilize neural networks and time series data in the existing technology is solved, and efficient prediction of lithium battery capacity and improvement of production efficiency are achieved.
Patent Information
- Application Number
- CN202410252193.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-03-06
AI Technical Summary
Existing lithium battery capacity prediction methods fail to make full use of the characteristics of neural networks and time series data, and need to retrain the network for different batches of batteries, resulting in low efficiency and high complexity.
The incremental capacity curve of the formation data is used for normalization processing, abstract features are extracted through the upper-layer abstract task model, and combined with the lower-layer Transformer model, the mapping relationship between the formation data and the lithium battery capacity is established, eliminating the capacity classification step and improving efficiency. Production efficiency.
It achieves efficient prediction of lithium battery capacity, can be applied to different batches of batteries, reduces the difficulty of using the method and power consumption, and improves production efficiency.
Smart Images

Figure CN118091424B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lithium batteries, and in particular to a lithium battery capacity prediction method based on chemical composition capacity data. Background Art
[0002] In the existing technology, lithium batteries on the actual production line will first be formed to activate the battery; then they need to be divided into capacities, and multiple charge and discharge cycles are performed to calibrate the capacity of the lithium battery and grade the products. Among them, the capacity division process takes a lot of time and consumes a lot of electricity. Currently, only a few leading battery companies have cancelled the capacity division process or reduced the capacity division equipment. The following strategies are mainly adopted: first, to improve the front-end process level so that the capacity consistency of the produced batteries is high; second, to establish a prediction model based on the existing battery formation big data and corresponding capacity.
[0003] However, the existing battery capacity prediction methods have the following problems: First, the characteristics of neural networks are not fully utilized when extracting features, and artificially extracted features may not be more effective; second, the characteristics of formation time series data are not fully utilized during design, and no effective usage method is designed; third, the currently available methods often only target the same batch of batteries, and the network needs to be retrained when targeting different batches of batteries. Summary of the invention
[0004] The present invention utilizes the incremental capacity (IC) curve of formation data, normalizes it, and fully utilizes the characteristics of its time series. Firstly, abstract features are further extracted in the upper layer abstract task model as the input of the lower layer specific task model to predict the capacity of the lithium battery, and a mapping relationship between the formation data and the capacity of the lithium battery is established. Only a few formation data are needed to predict the capacity of the lithium battery, which saves the capacity division step, saves electric energy, and improves production efficiency.
[0005] This patent proposes a lithium battery capacity prediction method based on chemical composition capacity data, and the lithium battery capacity prediction method based on chemical composition capacity data includes the following steps:
[0006] Step 1, calculating the IC curve of each lithium battery according to the voltage time series data and capacity time series data of each lithium battery formation data;
[0007] Step 2, apply Savitzky-Golay filtering to the calculated IC curve;
[0008] Step 3, obtain the position code of the data and add it to the scaled IC curve to construct the time series feature;
[0009] Step 4, organize the time series features into the upper training set;
[0010] Step 5: Use the upper-layer training set to train the upper-layer model and generate abstract features;
[0011] Step 6, generating lower-level model inputs through abstract features, grouping them with lithium battery capacity to form a lower-level model training set, and training the lower-level model;
[0012] Furthermore, in step 1, the IC curve of each sequence is:
[0013]
[0014] In the formula, Q raw (t i ), V raw (t i ) are t i Original capacity and voltage data at each moment.
[0015] Furthermore, in step 2, the Savitzky-Golay filter is:
[0016]
[0017] where Y j is the jth capacity increase data after smoothing, m is the window width, j is the smoothing point, C i are the coefficients of the fitted polynomial used to weight the data at each data point to produce a new filtered point, and are determined by the least squares method.
[0018] Furthermore, in step 3, the IC curve is scaled so that its interval changes to between [-1:1]:
[0019]
[0020] Among them, x j is the jth point in the sequence, x min The minimum value in the sequence, x max is the maximum value in the sequence, represents the jth point in the sequence after scaling;
[0021] A position code is added to the scaled sequence. The position code is a sinusoidal function of time to generate time series features:
[0022]
[0023] Among them, t j is the time corresponding to the jth data, f j is a time series feature.
[0024] Furthermore, in step 4, the upper training set takes any two time series from the multiple time series features, where the earlier one in the time series is used as input data and the later one is used as output label.
[0025] Furthermore, in step 5, the upper model includes an input layer, a convolution module, an LSTM module, a fully connected layer and an output layer;
[0026] The input layer, convolution module, LSTM module, fully connected layer and output layer are connected in sequence. The convolution module is composed of convolution layer and pooling layer, and the LSTM module is composed of LSTM layer and flattening layer.
[0027] There are d neurons in the fully connected layer, so each time the abstract feature extraction of the sequence is performed, a feature with a shape of d×1 can be obtained. By extracting the abstract feature of the time series feature of a segment, a feature with a shape of abstract features.
[0028] Furthermore, in step 6, the lower layer model is a Transformer-based lithium battery capacity prediction model, including a lower layer input, an encoding block, an average pooling layer, and a lower layer model output;
[0029] The lower-layer input is connected to the fully connected layer to obtain abstract features as the input data of the lower-layer model. The lower-layer input, encoding block, average pooling layer and lower-layer model output are connected in sequence. The lower-layer model output outputs the predicted value of the lithium battery capacity. The network is trained by minimizing the network output and the actual capacity of the lithium battery.
[0030] Furthermore, in step 5, the upper model loss function is:
[0031]
[0032] Where n is the length of the time series, f j is the true feature sequence value, is the predicted value.
[0033] Furthermore, in step 6, the lower layer model loss function is:
[0034]
[0035] Among them, k is the number of lithium battery capacities, y i is the true value, is the predicted value. The neural network parameters are optimized by minimizing the mean square error, and the training is stopped when the validation set loss no longer decreases with the increase in the number of iterations.
[0036] Furthermore, in step 6, the abstract features of the neuron outputs of the fully connected layer are extracted as the input of the lower model, and the predicted capacity of the corresponding lithium battery is used as a label to train the lower model.
[0037] The beneficial effects achieved by the present invention are:
[0038] The present invention establishes a complete neural network workflow and proposes a workflow of upper-level abstract tasks and lower-level specific tasks. The upper-level abstract tasks build a sequence-to-sequence model based on CNN-LSTM networks 1-5, and the lower-level specific task model predicts the specific capacity of lithium batteries based on transformer neural networks 6-9.
[0039] The sequence-to-sequence model in the upper layer model of the present invention can process any transformation data by dividing the entire transformation data into multiple sub-segments, thereby reducing the difficulty of using the method and increasing the ease of use of the method;
[0040] Based on the transfer learning theory, the present invention extracts 4 neurons of the fully connected layer as the feature input of the specific task model after training the upper CNN-LSTM neural network, making full use of the characteristics of neural network in extracting features;
[0041] Since the present invention has an upper layer model in the process, that is, the layer used to extract abstract features in transfer learning, the method can be applied to batteries of different batches at the same time;
[0042] The present invention proposes a feature normalization method with better effect, which normalizes the IC curve of the converted data and adds it to the sine function of time to obtain the feature, so that the time position feature is more obvious, and the processed feature is used as the input of the upper model. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a lithium battery capacity prediction method based on chemical composition capacity data provided by an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of the structure of an upper-layer abstract task model of a lithium battery capacity prediction model network in a lithium battery capacity prediction method based on chemical composition capacity data provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of the structure of a specific task model of the lower layer of the lithium battery capacity prediction model network in the lithium battery capacity prediction method based on chemical composition capacity data provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of the structural details of the coding block in the lower-level specific task model of the lithium battery capacity prediction method based on the composition capacity data provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of an LSTM unit in an upper-level abstract task model of a lithium battery capacity prediction method based on quantified capacity data provided in an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of SG filtering of an IC curve in Example 1 of a lithium battery capacity prediction method based on chemical composition capacity data provided by an embodiment of the present invention;
[0049] Figure 7 A schematic diagram of the loss functions of the training set and the validation set in Example 1 of the lithium battery capacity prediction method based on chemical composition capacity data provided in an embodiment of the present invention.
[0050] Description of the symbols in the accompanying drawings:
[0051] 1-upper layer model input, 2-convolution module, 3-LSTM module, 4-fully connected layer, 5-upper layer model output, 6-specific task model input, 7-transformer encoding block, 8-average pooling layer, 9-lower layer model output, 10-LSTM unit input gate, 11-LSTM unit forget gate, 12-LSTM unit state update gate, 13-LSTM output gate, 14-encoding block input, 15-multi-head attention module, 16-residual connection module. DETAILED DESCRIPTION
[0052] The technical solution of the present invention is described in more detail below in conjunction with the accompanying drawings. The present invention includes but is not limited to the following embodiments.
[0053] As attached Figure 1 As shown, the present invention provides a lithium battery capacity prediction method based on chemical composition capacity data, including the following process:
[0054] Step 1, calculating the IC curve of each lithium battery according to the voltage time series data and capacity time series data of each lithium battery formation data;
[0055] The IC curve of lithium battery is:
[0056]
[0057] In the formula, Q raw (t i ), V raw (t i ) are t i Original capacity and voltage data at each moment.
[0058] Step 2, apply Savitzky-Golay filtering to the calculated IC curve;
[0059] The Savitzky-Golay filter formula is:
[0060]
[0061] where Y j is the jth capacity increase data after smoothing, m is the window width, j is the smoothing point, C i are the coefficients of the fitted polynomial used to weight the data at each data point to produce a new filtered point, and are determined by the least squares method.
[0062] In the present invention, the width of the filter window is 5, that is, each window includes the processing point and the two points before and after, and the data in the window are fitted with a least squares polynomial. In the present invention, a quadratic polynomial is used for fitting. The SG filter smoothes the data while maintaining the shape and trend of the data and reducing the impact of noise.
[0063] The filtered IC curve is cut into a data segment of equal length. Each segment has the same number of points. Let the number of points be n.
[0064] Step 3, obtain the position code of the data and add it to the scaled IC curve to construct the time series feature;
[0065] Scale the IC curve so that its interval changes to [-1:1]. The scaling formula is as follows
[0066]
[0067] Among them, x j is the jth point in the sequence, x min The minimum value in the sequence, x max is the maximum value in the sequence, Represents the jth point in the sequence after scaling.
[0068] Then add the position code after the scaled sequence to generate the time series features:
[0069]
[0070] Among them, t j The time corresponding to the j-th data, in seconds.
[0071] Here, the position encoding is the sine function sin(t j ), after the above steps, we get a time series feature with a length of n.
[0072] Step 4, organize the time series features into the upper training set;
[0073] Each upper-layer training set takes any two time series from a time series feature, where the earlier one in the time series is used as input data and the later one is used as output label.
[0074] Step 5: Use the upper-layer training set to train the upper-layer model and generate abstract features;
[0075] As attached Figure 2-3 As shown, the upper model includes an upper model input 1, a convolution module 2, an LSTM module 3, a fully connected layer 4 and an upper model output 5;
[0076] The upper model input 1, convolution module 2, LSTM module 3, fully connected layer 4 and upper model output 5 are connected in sequence. The convolution module 2 is composed of a convolution layer and a pooling layer, and the LSTM module 3 is composed of an LSTM layer and a flattening layer.
[0077] The LSTM module 3 includes an LSTM unit input gate 10, an LSTM unit forget gate 11, an LSTM unit state update gate 12, and an LSTM output gate 13.
[0078] The features of two time series in the time series features of segment a are taken as the true values of the upper model input 1 and the upper model output 5 respectively. The time series features are input into the neural network of the upper model from the upper model input 1, and then pass through the convolution module 2, the LSTM module 3, and the fully connected layer 4 in sequence to obtain the upper model output 5.
[0079] The upper model loss function is:
[0080]
[0081] Where n is the length of the time series, f j is the true feature sequence value, is the predicted value.
[0082] If the number of neurons in the fully connected layer 4 is d, then each time the abstract feature extraction of the sequence is performed, a feature with a shape of d×1 can be obtained. By extracting the abstract features of a sequence, a feature with a shape of abstract features.
[0083] Generally speaking, if the value of a is not large, dividing it into two segments will be effective. As the number of batteries increases, the number of segments can increase and more features can be obtained through the upper model. In actual operation, the number of batteries is too small and the number of segments is too large, resulting in poor training results.
[0084] Specifically, the upper model is trained by the upper training set, and the input and output are any two time series in the a sequence, that is, A model. The first segment of any two time series is used as input and the second segment is used as output label. The weight of the neural network is improved by minimizing the loss between the prediction result and the label. The loss function uses the mean square error function. The training is stopped when the validation set loss does not decrease in 5 iterations. At this time, the model is trained.
[0085] The first segment of multiple battery data is used as input to the trained model, and the neuron values of the fully connected layer are extracted to obtain values with a shape of d*1.
[0086] Use respectively The neural network is trained by grouping time series, and the training process is the same. After the model is trained, the values of neurons in the d*1 fully connected layer are extracted according to the same steps, and the shape is stacked to obtain abstract features.
[0087] Step 6, generating lower-level model inputs through abstract features, grouping them with lithium battery capacity to form a lower-level model training set, and training the lower-level model;
[0088] As attached Figure 4-5 As shown, the upper-layer model tasks in the present invention are highly correlated with the specific tasks of the lower-layer model. Therefore, the abstract features of the neuron outputs of the fully connected layer 4 are extracted as the input of the lower-layer model, and the predicted capacity of the corresponding lithium battery is used as a label to train the lower-layer model.
[0089] The lower model is a Transformer-based lithium battery capacity prediction model, including a specific task model input 6, a transformer encoding block 7, an average pooling layer 8, and a lower model output 9;
[0090] The specific task model input 6 is connected to the fully connected layer 4 to obtain the input data of the lower model. The specific task model input 6, the transformer encoding block 7, the average pooling layer 8 and the lower model output 9 are connected in sequence. The lower model output 9 outputs the predicted value of the lithium battery capacity. The network is trained through the lower model output 9 and the actual capacity of the lithium battery.
[0091] Since the task can be summarized as extracting information from features and predicting the target, and does not involve the decoding process, only the transformer encoding block 7 in the transformer network needs to be used.
[0092] like Figure 3 The transformer encoding block 7 is composed of multiple "Encoder" blocks, and the "Encoder" is mainly composed of a multi-head attention module 15 and a feedforward neural network module. Both modules are set with a random inactivation layer and a layer normalization layer.
[0093] The following describes the multi-head attention module and the feed-forward residual neural network respectively. The core steps of the multi-head attention module 15 are as follows:
[0094] First, the model maps the input query Q, key K, and value V to different dimensions through three different linear transformations to obtain Q′, K′, and V′.
[0095] Q′=Q·W Q
[0096] K′=K·W K
[0097] V′=V·W V
[0098] Among them, W Q , W K and W V is the parameter matrix to be learned, Q, K, and V are the same input vector.
[0099] The calculation formula of Self-Attention is as follows:
[0100]
[0101] In the multi-head attention module 15, multiple heads will independently execute the above steps, and finally all heads will concatenate the output vectors obtained to obtain the final output.
[0102] output=Concat(output head1 , output head2 ,…,output headn )
[0103] The core steps of the feedforward residual neural network are as follows:
[0104] The feedforward neural network consists of two layers of convolutional networks. The convolution kernel size of the first layer is 1, which is equivalent to using a linear change operation. Then the Dropout strategy is used to randomly inactivate some neurons to prevent the model from overfitting. The second convolutional network restores the shape to the original dimension, and finally uses layer normalization to perform a normalization operation on each time step to make its mean 0 and variance 1. This step also prevents the gradient explosion and gradient disappearance problems during training.
[0105] Since the Relu function has a small amount of calculation and is effective in most networks, according to the Occam's razor principle, all activation functions of the neural network in the present invention use the Relu function. The expression of the Relu activation function is:
[0106] f(x)=max(0,x)
[0107] The loss function of the lower model optimizes the neural network parameters by minimizing the mean square error, and the training is stopped when the loss no longer decreases with the increase of the number of iterations.
[0108] During the training of the lower model, multiple batteries The abstract features are used as input, the battery capacity is used as the output label, and the loss function uses the mean square error. The training is stopped when the validation set loss function no longer decreases after 5 steps. At this time, the lower layer model is trained.
[0109] Step 7, predicting the battery capacity by using a neural network model for the formation data of the battery to be predicted.
[0110] Implementation Case 1
[0111] The transfer learning-based method proposed in the present invention can be applied to different battery batches and different battery formulas in the same training. In order to illustrate the effectiveness of the inventive method, this section provides the following specific implementation cases.
[0112] Different from the implementation part of the existing patent, this case includes 100 batteries with different formulations and batches to illustrate the effectiveness of the method when applied to different formulations.
[0113] The batteries are made of 4 different formulas. Formula 1 contains 24 batteries, formula 2 contains 35 batteries, and formula 3 contains 27 batteries. The 27 batteries of formula 3 are divided into 3 batches, with 11, 5, and 11 batteries in each batch. Formula 4 contains 14 batteries. The discharge capacity of all batteries at 0.2C is extracted by the capacity separation process.
[0114] It should be noted that in this case, the small amount of data will become the main factor restricting the accuracy of battery prediction, so this case mainly illustrates the effectiveness of the transfer learning method in applying different formulations at the same time. In practical applications, if it is necessary to predict the capacity of multiple formulations and multiple batches of batteries in one model at the same time, the number of batteries in each batch needs to be at least several hundred orders of magnitude.
[0115] First, the IC curve is calculated through the voltage and capacity data of the battery formation data, normalized and added with the sine function of time, and then SG filtering is performed, with the window size set to 5 and the fitting polynomial order set to 3. According to the set parameters, the SG filtering formula can be written as:
[0116]
[0117] Where Y j is the point after filtering and y is the point before filtering. After filtering, it is divided into 3 segments with equal spacing. Each segment has 95 data points.
[0118] The three curves obtained are as follows Figure 6 As shown, the first and second segments, the first and third segments, and the second and third segments are taken as input and output, and are put into the CNN-LSTM neural network to extract abstract features. Due to the small number of batteries, only one convolution layer is used in this task, and the number of convolution kernels is set to 8. The number of LSTM layer units is set to 32, and the number of neurons in the fully connected layer is 128. The network sets random inactivation in multiple layers to avoid overfitting.
[0119] The data set of the upper model is used for training. When the training loss stops decreasing within 5 iterations, the training is stopped. If necessary, the division of other data sets can be determined according to the actual situation. For example, when the amount of data is large enough, try to set a validation set.
[0120] Next, the neurons in the fully connected layer are extracted as abstract features for transfer learning, and each training can obtain features with a shape of 128*1. After the final training is completed, each battery extracts features with a shape of 128*3.
[0121] The discharge capacity of each battery was extracted from the capacity separation process and normalized by taking the logarithm with base e.
[0122] The obtained features are then transferred to the capacity prediction model. The specific parameters of the model are set as follows: the number of "Encoder" blocks is 3, the number of multi-head attention is 8, the dimension of the key is set to 128, and the number of neurons in the fully connected layer is 128. To prevent overfitting, random deactivation strategies are used in multiple layers.
[0123] In the specific task model, the data set of 100 batteries is divided into 10 test sets, 10 battery validation sets, and 80 battery training sets. To ensure the training effect, both the test set and the validation set cover four different formulations.
[0124] The mean square error is used as the loss function, and the training is stopped when the validation set loss does not decrease within 5 iterations. The loss functions of the training set and the validation set during the training process are as follows: Figure 7 shown.
[0125] After training, the model is applied to the test set, and its error is shown in Table 1.
[0126] Table 1
[0127] Battery ID Predicted capacity (Ah) Actual capacity (Ah) error 5 2.2174 2.1997 0.805% 25 2.3471 2.2987 2.11% 28 2.2971 2.2931 0.174% 44 2.1658 2.1634 0.110%
[0128] As can be seen from Table 1, in this case, the method was applied to a battery data set containing multiple recipes. With a small amount of data, acceptable results were achieved.
[0129] Implementation Case 2
[0130] Implementation case 2 is a battery with the same formula, with a total of 500. First, the IC curve is calculated through the formation data, and the SG filtering is performed after normalization according to the method. The window size is 5 and the fitting polynomial degree is 3. The filtered curve is divided into 3 intervals of equal length. In this case, the upper model uses two convolution layers, the number of convolution kernels in the first layer is set to 16, and the number of convolution kernels in the second layer is set to 8. Each convolution layer is followed by a maximum pooling layer. The number of LSTM units is set to 32, and the number of neurons in the fully connected layer is set to 128.
[0131] As in case 1, each battery can obtain features of size 128*3, which are input into the transformer capacity prediction model. The number of "Encoder" blocks is 4, the number of multi-head attention is 8, and the dimension of the key is set to 128. The data set is divided into a training set of 400 batteries, a validation set of 50 batteries, and a test set of 50 batteries. The prediction of some batteries in the test set is shown in Table 2.
[0132] Table 2
[0133] Battery ID Predicted capacity (Ah) Actual capacity (Ah) error 37 5.0894 5.081 0.165% 123 5.1032 5.095 0.161% 248 5.1107 5.106 0.092% 385 5.0036 4.98 0.474% 478 5.1197 5.125 0.103%
[0134] The predicted capacity in Table 2 is rounded to 4 decimal places, and the actual capacity is measured by experiment. Since there is capacity redundancy when making batteries to avoid the capacity being lower than the nominal capacity and reduce the capacity failure rate, most battery capacities are greater than 5Ah. This prediction error is within an acceptable range.
[0135] The present invention is not limited to the above-mentioned specific implementation modes. A person skilled in the art may implement the present invention in various other specific implementation modes according to the embodiments and the disclosure of the drawings. Therefore, any design that adopts the design structure and concept of the present invention and makes some simple transformations or changes shall fall within the scope of protection of the present invention.
Claims
1. A lithium battery capacity prediction method based on chemical composition capacity data, characterized in that: The lithium battery capacity prediction method based on chemical composition capacity data comprises the following steps: Step 1, calculating the IC curve of each lithium battery according to the voltage time series data and capacity time series data of each lithium battery formation data; Step 2, apply Savitzky-Golay filtering to the calculated IC curve; Step 3, obtain the position code of the data and add it to the scaled IC curve to construct the time series feature; Step 4, organize the time series features into the upper training set; Step 5: Use the upper-layer training set to train the upper-layer model and generate abstract features; Step 6, generating lower-level model inputs through abstract features, grouping them with lithium battery capacity to form a lower-level model training set, and training the lower-level model; Step 7, predicting the battery capacity by using a neural network model for the formation data of the battery to be predicted; In step 1, the IC curve of each lithium battery is: In the formula, Q raw (t i ), V raw (t i ) are t i Original capacity and voltage data at all times; In step 3, the IC curve is scaled so that its interval changes to between [-1:1]: Among them, x j is the jth point in the sequence, x min The minimum value in the sequence, x max is the maximum value in the sequence, represents the jth point in the sequence after scaling; A position code is added to the scaled sequence. The position code is a sinusoidal function of time to generate time series features: Among them, t j is the time corresponding to the jth data, f j is the time series feature; In step 5, the upper model includes an upper model input (1), a convolution module (2), an LSTM module (3), a fully connected layer (4) and an upper model output (5); The upper model input (1), convolution module (2), LSTM module (3), fully connected layer (4) and upper model output (5) are connected in sequence. The convolution module (2) is composed of a convolution layer and a pooling layer, and the LSTM module (3) is composed of an LSTM layer and a flattening layer. There are d neurons in the fully connected layer (4), so each time the abstract feature extraction of the sequence to sequence is performed, a feature with a shape of d×1 can be obtained. By extracting the abstract feature of the time series feature of a segment, a feature with a shape of abstract features.
2. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 1, characterized in that: In step 2, the Savitzky-Golay filter is: where Y j is the jth capacity increase data after smoothing, m is the window width, j is the smoothing point, C i are the coefficients of the fitted polynomial used to weight the data at each data point to produce a new filtered point, and are determined by the least squares method.
3. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 1, characterized in that: In step 4, the upper layer training set takes any two time series from the multiple time series features, where the earlier one in the time series is used as input data and the later one is used as output label.
4. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 1, characterized in that: In step 6, the lower layer model is a Transformer-based lithium battery capacity prediction model, including a specific task model input (6), a transformer encoding block (7), an average pooling layer (8), and a lower layer model output (9); The specific task model input (6) is connected to the fully connected layer (4) to obtain abstract features as the input data of the lower model. The specific task model input (6), transformer encoding block (7), average pooling layer (8) and lower model output (9) are connected in sequence. The lower model output (9) outputs the predicted value of the lithium battery capacity. The network is trained through the lower model output (9) and the actual capacity of the lithium battery.
5. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 1, characterized in that: In step 5, the loss function of the upper model is: Where n is the length of the time series, f j is the true feature sequence value, is the predicted value.
6. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 4, characterized in that: In step 6, the loss function of the lower model is: Among them, k is the number of lithium battery capacities, y i is the true value, To predict the value, the neural network parameters are optimized by minimizing the mean square error, and the training is stopped when the validation set loss no longer decreases with the increase in the number of iterations.
7. The lithium battery capacity prediction method based on chemical composition capacity data according to claim 4, characterized in that: In step 6, the abstract features of the neuron output of the fully connected layer (4) are extracted as the input of the lower model, and the predicted capacity of the corresponding lithium battery is used as a label to train the lower model.
