Cross-domain capacity estimation method for lithium batteries based on feature decoupling and trend preservation
By adopting the feature decoupling method in cross-domain capacity estimation of lithium batteries, the features are decomposed into public and private features, and the decoder is used to enhance the feature representation, which solves the problem of domain-specific features not being considered in the existing technology and improves the efficiency Accuracy and model robustness of lithium battery capacity estimation.
Patent Information
- Application Number
- CN202210433148.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Existing deep learning methods cannot effectively consider domain-specific features in lithium battery capacity estimation, resulting in individual differences and working condition difference information in battery degradation data in different domains, resulting in poor feature alignment, which in turn affects the domain inconsistency of the model. Variable representation and prediction accuracy.
A lithium battery cross-domain capacity estimation method based on feature decoupling is used to decompose the features into domain-invariant public features and domain-specific private features, use a decoder to decode the features and maximize the interaction between the decoded data and the original data. Information, using domain-invariant public features to predict capacity value labels.
It improves the prediction accuracy and robustness of the model in the target domain, enhances the representation of the model, can more effectively consider domain-specific information, and improves the accuracy of lithium battery capacity estimation.
Smart Images

Figure CN114781264B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of lithium battery health status assessment, and in particular relates to a lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention. Background Art
[0002] In recent years, deep learning methods have been widely used in battery health management systems due to their ability to automatically extract features from massive amounts of data. However, due to the different working conditions of different batteries, the assumption that the training samples and test samples of deep learning are independent and identically distributed is broken, resulting in a significant decrease in the accuracy of deep learning when applied to battery capacity estimation. Existing deep domain adaptation methods only align the feature distributions of the two domains without considering domain-specific features. In addition to information reflecting the battery degradation trend, battery degradation data in different domains also contain individual difference information and operating condition difference information between different batteries. Forced feature alignment does not result in a good domain-invariant representation, so a model that can consider domain-specific information is needed.
[0003] The above information disclosed in this Background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0004] In view of the deficiencies in the prior art, the purpose of the present disclosure is to provide a cross-domain capacity estimation method for lithium batteries based on feature decoupling and trend retention. This method decouples features into domain-invariant public features and domain-specific private features, so that private features contain difference information between different domains, and public features contain information reflecting battery degradation trends. In order to make the features more representative, a decoder is used to decode the features and maximize the mutual information between the decoded data and the original data. Finally, the domain-invariant public features are used to predict the capacity value label.
[0005] To achieve the above objectives, the present disclosure provides the following technical solutions:
[0006] A cross-domain capacity estimation method for lithium batteries based on feature decoupling and trend retention includes the following steps:
[0007] S100: collecting process quantity signals of the lithium battery charging process under different working conditions through the battery health management system, taking the process quantity signals collected under the working condition 1 as source domain data, the corresponding real capacity value of which is known, and taking the process quantity signals collected under the working condition 2 as target domain data, the corresponding capacity value of which is unknown;
[0008] S200: Establish a public feature extractor E s (·), private feature extractor E p(·), decoder D(·), predictor P(·), and domain classifier G D (·) domain adaptation network;
[0009] S300: inputting labeled source domain data and unlabeled target domain data simultaneously to train the domain adaptation network;
[0010] S400: After the training is completed, the unlabeled target domain data is input into the trained domain adaptation network for forward propagation. The trained domain adaptation network is used to output a capacity estimation result to achieve capacity estimation and health status assessment of the lithium battery under different working conditions.
[0011] Preferably,
[0012] In step S100, the process quantity signal includes the current signal c, the charging voltage signal v and the charging time signal t recorded during the charging process, and the corresponding lengths are all l. The charging process quantity data is represented by x, then:
[0013]
[0014] The source domain data is represented as:
[0015]
[0016] in, represents the i-th source domain sample, Represents the capacity value label of the current charge and discharge cycle corresponding to the source domain sample, N s Represents the number of samples in the source domain.
[0017] Preferably,
[0018] In step S100, the target domain data is represented as:
[0019]
[0020] in, represents the i-th target domain sample, N t Represents the number of samples in the target domain.
[0021] Preferably,
[0022] In step S200, the public feature extractor E s (·), private feature extractor E p (·) have the same structure, consisting of convolutional layers, pooling layers, batch normalization layers, and fully connected layers to extract features from input data;
[0023] The decoder D(·) consists of a deconvolution layer, a batch normalization layer, and a fully connected layer, and is used to decode the extracted features;
[0024] The predictor P(·) is composed of a fully connected layer and is used to predict capacity;
[0025] The domain classifier G D (·) It consists of a fully connected layer and is used to distinguish whether the input features come from the source domain or the target domain.
[0026] Preferably,
[0027] In step S300, training the domain adaptation network includes the following sub-steps:
[0028] S301: Input the labeled source domain data and the unlabeled target domain data into the public feature extractor and the private feature extractor for forward propagation, and extract the features of the source domain data and the target domain data, which are recorded as:
[0029]
[0030]
[0031] in: and They represent the public features and private features extracted from the source domain data respectively; and They represent the public features and private features extracted from the target domain data respectively;
[0032] S302: The extracted public features and private features are summed and then forward propagated through the decoder to obtain decoded data Recorded as
[0033]
[0034] Where: z p +z s Represents the sum of public features and private features of the source domain or target domain;
[0035] S303: The extracted public features of the source domain data are input into the predictor for forward propagation to obtain the capacity label prediction value, which is recorded as
[0036] S304: forward propagating the extracted common features of the source domain data and the target domain data through the domain classifier to obtain a domain label prediction value, which is recorded as 0 or 1;
[0037] S305: According to the capacity prediction value, the domain label prediction value, and the decoded data, the loss functions of the predictor, the domain classifier, the encoder, and the decoder are calculated, and then the objective function is constructed by combining the discriminative loss function between the features. After the objective function is constructed, back propagation is performed;
[0038] S306: Repeat steps S301 to S304. When the number of iterations reaches the set maximum number of iterations, the domain adaptive network training is completed.
[0039] Preferably,
[0040] In step S301, after obtaining the public features and private features of the source domain data and the target domain data, the discriminative loss function between the features is calculated, which is expressed as:
[0041]
[0042] in: and Indicated by and points is a matrix composed of row vectors, and Indicated by and points is a matrix composed of row vectors, Represents the squared Frobenuis norm.
[0043] Preferably,
[0044] In step S302, after the decoded data is obtained, the loss between the encoder and the decoder can be calculated based on the real data, which is expressed as:
[0045]
[0046] in, Indicates expectation, x i represents the i-th sample, Represents x i The corresponding decoded data, Represents a batch of data. Represents the similarity function, expressed as
[0047] Preferably,
[0048] In step S303, after obtaining the capacity prediction value of the source domain data, the loss of the predictor is calculated according to the real capacity label of the source domain data. The loss of the predictor is expressed as:
[0049]
[0050] Preferably,
[0051] In step S304, after obtaining the domain label prediction value, the loss of the domain classifier is calculated according to the actual domain label. The loss of the domain classifier is expressed as:
[0052]
[0053] in, Express expectations, represents all source domain samples, represents all target domain samples; is the domain label prediction value of the i-th source domain sample, is the domain label prediction value of the jth target domain sample.
[0054] Preferably,
[0055] In step S305, the loss function is expressed as:
[0056] L=L pred +αL InfoNCE +βL diff +γL adv
[0057] Among them, α, β and γ represent trade-off coefficients, which are searched using grid search technology to ultimately determine the optimal coefficient combination.
[0058] Compared with the prior art, the beneficial effects brought about by the present disclosure are: innovatively proposing the idea of feature decoupling in the field of cross-domain capacity estimation of lithium batteries, while considering the public and private features of lithium batteries in different domains during degradation; using contrastive learning methods to constrain the model to make the extracted features more representative; improving the prediction accuracy of the model in the target domain and enhancing the robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of a lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention provided by an embodiment of the present disclosure;
[0060] Figure 2 It is a schematic diagram of a model framework of a lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention provided by an embodiment of the present disclosure;
[0061] Figure 3 This is a model detail diagram of a lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0062] The following will refer to the attached Figures 1 to 3 Specific embodiments of the present disclosure are described in detail. Although specific embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0063] It should be noted that certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that technicians may use different nouns to refer to the same component. This specification and claims do not use the difference in nouns as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction. As mentioned throughout the specification and claims, "including" or "comprising" is an open term, so it should be interpreted as "including but not limited to". The subsequent description of the specification is a preferred embodiment of the present invention, but the description is based on the general principles of the specification and is not used to limit the scope of the present invention. The scope of protection of the present disclosure shall be determined by the attached claims.
[0064] To facilitate understanding of the embodiments of the present disclosure, further explanation will be given below using specific embodiments as examples in conjunction with the accompanying drawings, and each of the accompanying drawings does not constitute a limitation on the embodiments of the present disclosure.
[0065] In one embodiment, if Figure 1 As shown, the present disclosure provides a lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention, comprising the following steps:
[0066] S100: collecting process quantity signals of the lithium battery charging process under different working conditions through the battery health management system, taking the process quantity signals collected under the working condition 1 as source domain data, the corresponding real capacity value of which is known, and taking the process quantity signals collected under the working condition 2 as target domain data, the corresponding capacity value of which is unknown;
[0067] In this step, the process quantity signal includes a charging current signal c, a charging voltage signal v and a charging time signal t, and the corresponding lengths are all l. If x represents the charging process quantity data, then The source domain data is represented as: The target domain data is represented as:
[0068] in, represents the i-th source domain sample, Represents the capacity value label of the current charge and discharge cycle corresponding to the source domain sample, N s Indicates the number of samples in the source domain; represents the i-th target domain sample, N t Represents the number of samples in the target domain.
[0069] It can be understood that during the signal acquisition process, the charging strategies of batteries in different domains are different.
[0070] In addition, for those skilled in the art, source domain and target domain are two basic concepts in transfer learning. Existing knowledge is usually called source domain, and new knowledge to be learned is called target domain. Through transfer learning, the knowledge of source domain can be transferred to target domain. Specifically, in this embodiment, source domain data can be data collected under a certain charging strategy with real capacity labels, and target domain data can be data collected under another working condition without capacity labels. Through the method provided in this embodiment, the battery degradation trend information contained in the source domain data can be transferred to the target domain data, thereby completing the capacity estimation of lithium batteries under another charging and discharging strategy.
[0071] S200: Establish a public feature extractor E s (·), private feature extractor E p (·), decoder D(·), predictor P(·) and domain classifier GD(·);
[0072] In this step, the public feature extractor E s (·), private feature extractor E p (·) have the same structure, which is composed of convolutional layers, pooling layers, batch normalization layers and fully connected layers, and is used to extract features from input data; the decoder D(·) is composed of deconvolutional layers, batch normalization layers and fully connected layers, and is used to decode the extracted features; the predictor P(·) is composed of a fully connected layer and is used to predict capacity; the domain classifier G D (·) It consists of a fully connected layer and is used to distinguish whether the input features come from the source domain or the target domain.
[0073] S300: inputting labeled source domain data and unlabeled target domain data simultaneously to train the domain adaptation network;
[0074] S400: After the training is completed, the unlabeled target domain data is input into the trained domain adaptation network for forward propagation. The trained domain adaptation network is used to output a capacity estimation result to achieve capacity estimation and health status assessment of the lithium battery under different working conditions.
[0075] In this embodiment, the domain adaptive network constructed by inputting the source domain data and target domain data of the collected lithium battery charging process quantity signal is trained. First, the features are decoupled into domain-specific public features and domain-invariant private features, so that the private features contain the difference information between different domains, and the public features contain information reflecting the battery degradation trend. In order to make the features more representative, a decoder is used to decode the features and maximize the mutual information between the decoded data and the original data. Finally, the domain-invariant public features are used to predict the capacity value label. The entire model ignores other domain-specific interference information while taking into account the domain-invariant degradation information, so the robustness of the model is greatly improved.
[0076] In another embodiment, in step S300, training the domain adaptation network includes the following steps:
[0077] S301: Input the labeled source domain data and the unlabeled target domain data into the public feature extractor and the private feature extractor for forward propagation, and extract the features of the source domain data and the target domain data, which are recorded as:
[0078]
[0079]
[0080] in: and They represent the public features and private features extracted from the source domain data respectively; and They represent the public features and private features extracted from the target domain data respectively;
[0081] In this step, after obtaining the public features and private features of the source domain data and the target domain data, the discriminative loss function between the features can be calculated, which is expressed as:
[0082]
[0083] in: and Indicated by and points is a matrix composed of row vectors, and Indicated by and points is a matrix composed of row vectors, represents the squared Frobenuis norm;
[0084] S302: The extracted public features and private features are summed and then forward propagated through the decoder to obtain decoded data Recorded as
[0085]
[0086] Where: z p +z s Represents the sum of public features and private features of the source domain or target domain;
[0087] In this step, after obtaining the decoded data, the loss of the encoder and decoder can be calculated based on the real data, which is expressed as:
[0088]
[0089] in, Indicates expectation, x i represents the i-th sample, Represents x i The corresponding decoded data, Represents a batch of data. Represents the similarity function, expressed as
[0090] S303: The extracted public features of the source domain data are input into the predictor for forward propagation to obtain the capacity label prediction value, which is recorded as
[0091] In this step, after obtaining the capacity prediction value of the source domain data, the loss of the predictor can be calculated based on the true capacity label of the source domain data. The loss of the predictor is expressed as:
[0092]
[0093] S304: forward propagating the extracted common features of the source domain data and the target domain data through the domain classifier to obtain a domain label prediction value, which is recorded as 0 or 1;
[0094] In this step, after obtaining the predicted value of the domain label, the loss of the domain classifier can be calculated based on the actual domain label. The loss of the domain classifier is expressed as:
[0095]
[0096] in, Express expectations, represents all source domain samples, represents all target domain samples. is the domain label prediction value of the i-th source domain sample, is the domain label prediction value of the jth target domain sample.
[0097] S305: According to the capacity prediction value, the domain label prediction value, and the decoded data, the loss functions of the predictor, the domain classifier, the encoder, and the decoder are calculated, and then the objective function is constructed by combining the discriminative loss function between the features. After the objective function is constructed, back propagation is performed;
[0098] In this step, the loss function is expressed as:
[0099] L=L pred +αL InfoNCE +βL diff +γL adv
[0100] Among them, α, β and γ represent trade-off coefficients. The trade-off coefficients can be searched using grid search technology to ultimately determine the optimal coefficient combination.
[0101] S306: Repeat steps S301 to S304. When the number of iterations reaches the set maximum number of iterations, the domain adaptive network training is completed.
[0102] With respect to the above training steps, combined with what has been mentioned above, the source domain data and the target domain data can be collected under different charging and discharging strategies, so they have different statistical distributions. By adopting the training method of this embodiment, the difference in the feature distribution of the source domain and the target domain can be reduced, so that the predictor obtained by training the source domain data can be used to perform high-precision capacity estimation on the target domain data.
[0103] Figure 2 This is a schematic diagram of the model structure of the lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention. Figure 2 As shown in the figure, on the one hand, by training the public feature extractor, the features generated by it make it impossible for the domain classifier to distinguish whether the feature comes from the source domain or the target domain; on the other hand, the domain classifier is trained to make it possible to distinguish whether the feature comes from the source domain or the target domain. In this adversarial process, the deep network can learn domain-invariant features. In addition, constraints are imposed between the public feature extractor and the private feature extractor so that the features extracted by the public feature extractor and the private feature extractor are dissimilar, thereby achieving the purpose of feature decoupling; constraints are added between the decoded data and the original data so that the features extracted by the feature extractor are more representative. In addition, by minimizing the root mean square error loss of the capacity prediction value, the predictor can correctly predict the capacity label of the sample.
[0104] Figure 3 This is a detailed architecture diagram of the proposed domain adaptation network. Figure 2 A further detailed display of. Figure 3The feature extractor, decoder and predictor in the network are just descriptions of the functions of the network module, which can be composed of convolutional layers, pooling layers, batch normalization layers and fully connected layers, rather than a specific structure. Technicians may use different terms to refer to the same component. This specification and claims do not use the difference in terms as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction.
[0105] Below, the technical solution of the present disclosure is further illustrated by conducting comparative experiments with no domain adaptation structure (NoAdaptation), deep convolutional neural network (DCNN), maximum mean difference (MMD) and adversarial domain adaptation (DANN).
[0106] Specifically, the main evaluation indicators used in this comparative experiment are root mean square error and mean absolute error.
[0107] The data used in the experiment are collected from lithium batteries under different charging and discharging strategies, where x i represents the current, voltage and time data collected in the i-th charging cycle. 128 points are collected in each cycle. Therefore, y i is the capacity corresponding to the i-th charging cycle. The charging strategy is shown in Table 1. There are 4 domains of data in total, so 12 migration tasks can be constructed.
[0108] Table 1
[0109]
[0110] ①3.6→6→5.6→4.755C means charging from 0 to 20% at 3.6C, from 20% to 40% at 6C, from 40% to 60% at 5.6C, and from 60% to 80% at 4.755C. Each charging strategy ensures that the total time from 0 to 80% is 10 minutes. Finally, the constant voltage and constant current mode is used to charge from 80% to 100%.
[0111] To ensure the fairness of the experiment, all methods used the same hyperparameter settings. The prediction accuracy of all methods is shown in Table 2.
[0112] Table 2
[0113]
[0114] The above specific embodiments are merely illustrative and instructive, and are not restrictive. A person skilled in the art may make many different forms based on the guidance of this specification and without departing from the scope of protection of the claims of this disclosure, all of which are protected by this disclosure.
Claims
1. A lithium battery cross-domain capacity estimation method based on feature decoupling and trend retention, comprising the following steps: S100: collecting process quantity signals of the lithium battery charging process under different working conditions through the battery health management system, taking the process quantity signals collected under the working condition 1 as source domain data, the corresponding real capacity value of which is known, and taking the process quantity signals collected under the working condition 2 as target domain data, the corresponding capacity value of which is unknown; S200: Establish a public feature extractor , private feature extractor , Decoder , predictor and domain classifier Domain Adaptive Network; S300: inputting labeled source domain data and unlabeled target domain data simultaneously to train the domain adaptation network; S400: After the training is completed, the unlabeled target domain data is input into the trained domain adaptation network for forward propagation, and the trained domain adaptation network is used to output a capacity estimation result to achieve capacity estimation and health status assessment of the lithium battery under different working conditions; in, In step S300, training the domain adaptation network includes the following sub-steps: S301: Input the labeled source domain data and the unlabeled target domain data into the public feature extractor and the private feature extractor for forward propagation, and extract the features of the source domain data and the target domain data, which are recorded as: , , in: and They represent the public features and private features extracted from the source domain data respectively; and They represent the public features and private features extracted from the target domain data respectively; S302: The extracted public features and private features are summed and then forward propagated through the decoder to obtain decoded data , recorded as: ; in: Represents the sum of public features and private features of the source domain or target domain; S303: The extracted public features of the source domain data are input into the predictor for forward propagation to obtain the capacity label prediction value, which is recorded as ; S304: forward propagating the extracted common features of the source domain data and the target domain data through the domain classifier to obtain a domain label prediction value, which is recorded as 0 or 1; S305: According to the capacity label prediction value, the domain label prediction value, and the decoded data, the loss functions of the predictor, the domain classifier, the encoder, and the decoder are calculated, and then the objective function is constructed by combining the discriminative loss function between the features. After the objective function is constructed, back propagation is performed; S306: Repeat steps S301 to S304. When the number of iterations reaches the set maximum number of iterations, the domain adaptive network training is completed.
2. The method according to claim 1, wherein: In step S100, the process quantity signal includes the current signal recorded during the charging process , Charging voltage signal and charging time signal , and their corresponding lengths are ,use Represents the charging process data, then: ; The source domain data is represented as: , in, Indicates source domain samples, Indicates the capacity value label of the current charge and discharge cycle corresponding to the source domain sample, Represents the number of samples in the source domain.
3. The method according to claim 1, wherein: In step S100, the target domain data is represented as: , in, Indicates target domain samples, Represents the number of samples in the target domain.
4. The method according to claim 1, wherein: In step S200, the public feature extractor , private feature extractor They have the same structure, consisting of convolutional layers, pooling layers, batch normalization layers, and fully connected layers, which are used to extract features from input data; The decoder It consists of deconvolution layers, batch normalization layers, and fully connected layers to decode the extracted features; The predictor It consists of fully connected layers and is used to predict capacity; The domain classifier It is composed of fully connected layers and is used to distinguish whether the input features come from the source domain or the target domain.
5. The method according to claim 1, wherein: In step S301, after obtaining the public features and private features of the source domain data and the target domain data, the discriminative loss function between the features is calculated, which is expressed as: , in: and Indicated by and points is a matrix composed of row vectors, and Indicated by and points is a matrix composed of row vectors, Represents the squared Frobenuis norm.
6. The method according to claim 1, wherein: In step S302, after the decoded data is obtained, the loss between the encoder and the decoder can be calculated based on the real data, which is expressed as: , in, Express expectations, Indicates samples, express The corresponding decoded data, Represents a batch of data. Represents the similarity function, expressed as .
7. The method according to claim 1, wherein: In step S303, after obtaining the capacity label prediction value of the source domain data, the loss of the predictor is calculated according to the real capacity label of the source domain data. The loss of the predictor is expressed as: 。 8. The method according to claim 1, wherein: In step S304, after obtaining the domain label prediction value, the loss of the domain classifier is calculated according to the actual domain label. The loss of the domain classifier is expressed as: , in, Express expectations, represents all source domain samples, represents all target domain samples; For the The domain label prediction value of source domain samples, For the The domain label prediction value of target domain samples.
9. The method according to claim 1, wherein: In step S305, the loss function is expressed as: , in, , and Represents the trade-off coefficient, which is searched using grid search technology to ultimately determine the optimal coefficient combination.
