A battery EIS data enhancement method and related equipment based on data enhancement model
By combining variational autoencoders and generative adversarial networks to generate EIS enhanced data, the problem of high battery EIS data testing costs and insufficient data is solved, and the accuracy of battery health prediction and model robustness are improved.
Patent Information
- Application Number
- CN202410764513.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing battery EIS data testing methods are costly and insufficient in data quantity, making it difficult to accurately predict battery health.
Using a method based on data enhancement models, combined with variational autoencoders and generative adversarial networks, a large amount of expected EIS enhanced data is generated to improve the generalization ability and robustness of the prediction model.
By generating a large amount of EIS enhanced data, the amount of training data for the prediction model is increased, the accuracy of battery health prediction is improved, and model overfitting is avoided.
Smart Images

Figure CN118330471B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of battery technology, and in particular to a battery EIS data enhancement method based on a data enhancement model and related equipment. Background Art
[0002] Electrochemical Impedance Spectroscopy (EIS) is a test method used to characterize the electrochemical process inside a battery. The impedance spectrum EIS data of a battery consists of real impedance and imaginary impedance. During the decline of the battery's state of health (SOH), the active material decreases and the conductivity deteriorates, which will cause the internal resistance of the battery to increase. This can be reflected by the parameter changes of the EIS curve, so the impedance spectrum data obtained by the EIS test can be used to predict the battery SOH.
[0003] Electrochemical impedance spectroscopy data can be used to analyze, evaluate, and optimize battery performance. By measuring battery impedance at different frequencies, information about the internal characteristics of the battery can be obtained. However, testing EIS data requires the use of professional instruments and equipment, which is costly, and the amount of test data is small, which is not enough to serve as training data for prediction models to accurately predict indicators such as battery health. Summary of the invention
[0004] The present invention provides a battery EIS data enhancement method and related equipment based on a data enhancement model. By combining a variational autoencoder and a generative adversarial network, a large amount of EIS enhanced data that meets expectations is generated, the amount of training data for other prediction models is increased, the generalization ability and robustness of the prediction model are improved, and overfitting of the prediction model is avoided.
[0005] The purpose of the present invention is achieved by the following technical solutions:
[0006] In a first aspect, the present invention provides a battery EIS data enhancement method based on a data enhancement model, wherein the data enhancement model includes a variational autoencoder and a generative adversarial network, the variational autoencoder includes an encoder and a decoder, the generative adversarial network includes a generator and a discriminator, the decoder of the variational autoencoder is the generator of the generative adversarial network, and the method includes:
[0007] Test and collect real EIS data of the battery;
[0008] Inputting the EIS real data into the variational autoencoder to obtain the EIS generated data output by the variational autoencoder;
[0009] Training the data enhancement model according to the EIS generated data and the EIS real data;
[0010] Based on the trained data enhancement model, the EIS real data is predicted to generate EIS enhanced data.
[0011] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the step of training the data enhancement model according to the EIS generated data and the EIS real data includes:
[0012] The parameters of the generator are fixed, the discriminator is trained, the EIS generated data and the EIS real data are input to the discriminator together, the EIS generated data and the EIS real data are respectively distinguished as true or false, a discrimination loss is generated, the discrimination loss is back-propagated, and the parameters of the discriminator are updated;
[0013] The parameters of the discriminator are fixed, the generator is trained, the EIS generated data generated by the generator is input into the discriminator for discrimination, the generation loss of the generator is calculated according to the actual output and target output of the discriminator, the generation loss is back-propagated and the parameters of the generator are updated;
[0014] The training steps of the discriminator and the generator are iterated, and when the training reaches a set number of iterations or the discrimination result of the discriminator reaches a set threshold range, the trained data enhancement model is obtained.
[0015] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the variational autoencoder also includes a sampler;
[0016] The step of inputting the EIS real data into the variational autoencoder to obtain the EIS generated data output by the variational autoencoder comprises:
[0017] The encoder encodes the EIS real data into a distribution in a latent space;
[0018] Map the distribution of the latent space into a Gaussian distribution, connected to the mean and variance respectively;
[0019] The sampler samples the Gaussian distribution to generate sampling samples of the latent space;
[0020] The decoder maps the sampled samples back to the data space, and generates new data with a distribution similar to the EIS real data as the EIS generated data.
[0021] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the reconstruction error of the variational autoencoder adopts the mean square error, and the loss function of the variational autoencoder is the sum of the mean square error and the KL divergence error.
[0022] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the encoder and decoder of the variational autoencoder and the discriminator of the generative adversarial network all adopt a Transformer structure.
[0023] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the dimension of the feature embedding of the Transformer structure is 80, the number of attention heads of the multi-head attention mechanism is 10, and the step size of the residual connection is 1.
[0024] According to a battery EIS data enhancement method based on a data enhancement model provided by the present invention, the steps of testing and collecting real EIS data of the battery include:
[0025] A plurality of frequency points are selected at certain intervals within a set frequency range, and the real data and imaginary data of the impedance corresponding to each of the frequency points are collected as the EIS real data.
[0026] In a second aspect, the present invention provides an electronic device, the electronic device comprising:
[0027] One or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor performs the steps of the battery EIS data enhancement method based on the data enhancement model as described above.
[0028] In a third aspect, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of a battery EIS data enhancement method based on a data enhancement model as described in any one of the above.
[0029] In a fourth aspect, the present invention provides a computer program product, comprising a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the battery EIS data enhancement method based on the data enhancement model as described in any one of the above are implemented.
[0030] The present invention provides a battery EIS data enhancement method and related equipment based on a data enhancement model. By combining a variational autoencoder and a generative adversarial network, the decoder of the variational autoencoder is used as a generator of a generative adversarial network to form a data enhancement model. When performing EIS data enhancement, the EIS real data is used as input data, and the generator generates EIS generated data. The discriminator determines whether the EIS generated data is valid enhanced data, and the data enhancement model is trained until the discriminator cannot distinguish between the generated data and the real data, and based on the trained data enhancement model, the EIS real data is predicted to generate EIS enhanced data. Therefore, the present invention uses a data enhancement model to enhance the EIS real data, generates a large amount of EIS enhanced data that meets expectations, increases the number of training data for other prediction models, improves the generalization ability and robustness of the prediction model, and avoids overfitting of the prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other implementation methods can be obtained based on these drawings without paying any creative work.
[0032] Figure 1 is a structural diagram of a data enhancement model provided by an embodiment of the present invention;
[0033] Figure 2 It is a flow chart of a battery EIS data enhancement method based on a data enhancement model provided in an embodiment of the present invention;
[0034] Figure 3 It is a logical processing diagram of performing EIS data enhancement based on a data enhancement model provided in an embodiment of the present invention;
[0035] Figure 4 is a schematic diagram of the structure of a variational autoencoder provided in an embodiment of the present invention;
[0036] Figure 5 is a schematic diagram of the structure of a generative adversarial network provided by an embodiment of the present invention;
[0037] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0038] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows.
[0039] It should be noted that it is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in the present invention can be combined with other embodiments without conflict. Unless otherwise defined, the technical terms or scientific terms involved in the present invention should be the usual meanings understood by people with ordinary skills in the technical field to which the present invention belongs. The words "one", "a", "a", "the" and the like involved in the present invention do not indicate a quantitative limitation and may represent the singular or plural. The terms "including", "comprising", "having" and any of their variations involved in the present invention are intended to cover non-exclusive inclusions; the terms "first", "second", "third", etc. involved in the present invention are merely to distinguish similar objects and do not represent a specific ordering of objects.
[0040] When it comes to method steps, the sequence illustrated herein represents an exemplary solution but does not limit the sequence.
[0041] Variational Autoencoder (VAE) is a generative model consisting of an encoder and a decoder. It can learn the potential distribution of training data and generate new samples by sampling from the potential distribution while retaining the characteristics of the original data.
[0042] Generative Adversarial Networks (GAN) is a generative model consisting of a generator and a discriminator. Its principle is to achieve the tasks of generation and discrimination through two mutually adversarial network models.
[0043] The applicant found that both the VAE model and the GAN model can be used for data enhancement. By generating a large amount of synthetic sample data, the amount of training data for other prediction models can be expanded, thereby improving the generalization ability of the prediction model. However, both the VAE and GAN models have certain disadvantages:
[0044] The disadvantages of the VAE model include:
[0045] (1) The quality of generated data may be poor: When generating data, the VAE model may produce samples with high noise. This is because the VAE tends to average the sampling of the latent space during the optimization process.
[0046] (2) Based on mean and variance: The VAE model assumes that the data in the latent space follows the mean and variance distribution. This assumption may cause the model to fail to accurately capture the complexity of the data distribution in some cases.
[0047] (3) Mode collapse: The VAE model is prone to the "mode collapse" problem, that is, the generator tends to generate similar samples and lacks diversity and creativity.
[0048] The disadvantages of the GAN model include:
[0049] (1) Instability: There is instability in the GAN training process, which may lead to an imbalance between the generator and the discriminator, making it difficult to achieve the ideal generation effect.
[0050] (2) Mode collapse: GAN is prone to "mode collapse" during the generation process, that is, the generator only learns part of the patterns in the training data and cannot generate other patterns.
[0051] (3) Training difficulty: GAN models are difficult to train and require careful adjustment of hyperparameters. They are also very sensitive to initial configuration and network architecture.
[0052] (4) Lack of numerical stability: Related concepts in GAN, such as Jensen-Shannon divergence or KL divergence, are numerically difficult to estimate and optimize.
[0053] As can be seen from the above, the use of VAE model and GAN model cannot generate a large amount of synthetic sample data that meets the expectations, and the generation effect is poor, which makes the VAE model and GAN model still challenging in the application of the generation model. Therefore, the present invention provides a battery EIS data enhancement method based on a data enhancement model and related equipment, by combining the VAE model and the GAN model, that is, constructing a data enhancement model based on the combined VAE-GAN model, which can make up for their respective shortcomings to a certain extent and achieve better generation effect and performance.
[0054] Reference Figure 1 As shown in the figure, the data augmentation model includes a variational autoencoder (VAE model) and a generative adversarial network (GAN model). The variational autoencoder includes an encoder and a decoder. The generative adversarial network includes a generator and a discriminator. The decoder of the variational autoencoder is the generator of the generative adversarial network. Among them, x represents the input data, and the VAE model generates new data x through the encoder-decoder structure. ’ ; The GAN model uses the discriminator to determine the generated data x ’Whether it has a similar structure to the original data x.
[0055] Reference Figure 2-3 As shown, the data enhancement method specifically includes the following steps:
[0056] Step S1: Test and collect real EIS data of the battery.
[0057] In this embodiment, step S1 specifically includes: selecting multiple frequency points at certain intervals within a set frequency range, and collecting real data and imaginary data of impedance corresponding to each frequency point as EIS real data.
[0058] Specifically, testing and collecting battery electrochemical impedance spectrum data requires professional impedance spectrum testing instruments to test the impedance value and phase of the battery at different frequency points and record the frequency response data, mainly testing the real and imaginary data of the impedance. Use an electrochemical workstation to configure a frequency sweep test to cover a certain frequency range. The frequency range can be set to 10 -2 Hz to 10 5 Hz, multiple frequency points are selected at a certain interval in the middle of the frequency range, and the frequency points are generally selected from 5 to 60. The present invention selects 60 frequency points as samples. The real data and imaginary data of the impedance corresponding to each frequency point are collected, and real1 to real60 represent the real data of the impedance data corresponding to high frequency to low frequency, and imaginary1 to imaginary60 represent the imaginary data of the impedance data corresponding to high frequency to low frequency. The real data and imaginary data of the impedance data are used as the input data of the VAE-GAN model to train the VAE-GAN model.
[0059] Step S2: Input the EIS real data into the variational autoencoder to obtain the EIS generated data output by the variational autoencoder.
[0060] In this embodiment, step S2 specifically includes:
[0061] Step S21: The encoder encodes the EIS real data into a distribution in the latent space;
[0062] Step S22: Map the distribution of the latent space into a Gaussian distribution, connected to the mean and variance respectively;
[0063] Step S23: The sampler samples the Gaussian distribution to generate a sample of the latent space;
[0064] Step S24: The decoder maps the sampled samples back to the data space, and generates new data with a distribution similar to the EIS real data as the EIS generated data.
[0065] Specifically, refer to Figure 4As shown, x represents the input data, which is the real and imaginary data of the impedance spectrum EIS; the encoder maps the input data x to the distribution q(z|x) of the latent space; then maps the distribution of the latent space to the Gaussian distribution N In (μ,σ), the sampler samples the Gaussian distribution and adds the sampled samples to obey N The decoder maps the sampled samples back to the data space, which restores the latent vector z to . At this time, the variables in the decoder obey the distribution p(|z), so that new data with a distribution similar to the original data can be generated.
[0066] Step S3: Train the data augmentation model based on the EIS generated data and the EIS real data.
[0067] In this embodiment, a VAE-GAN model is built based on the keras platform. The encoder and decoder of the VAE model and the discriminator of the GAN model all adopt the Transformer structure.
[0068] The main structure and functions of the Transformer model are as follows:
[0069] (1) Positional Encoding: Provides order information for the input sequence to help Attention learn sequence order features.
[0070] (2) Multi-Head Attention Mechanism: This module is used to learn the correlation between different positions of the input sequence and obtain the feature representation of the input.
[0071] (3) Feed Forward Network: This module performs nonlinear transformation on the output of the attention mechanism module to learn more complex feature representations.
[0072] (4) Residual connection and normalization layer (Add & Norm): Residual connection Add is used to avoid the gradient vanishing problem in deep networks; Layer Norm is used to regularize the model, speed up training, and increase model stability.
[0073] In the Transformer model, the relationship and collaboration mechanism between position encoding, multi-head attention, feedforward fully connected network, residual connection and Layer Norm layer are described in detail as follows:
[0074] (1) Position encoding provides position information for the sequence, characterizing the relative position of the input in the sequence, and the output is concatenated with the input sequence embedding representation.
[0075] (2) The multi-head attention layer receives the position-encoded input, calculates the correlation between different positions of the input, and learns the feature representation of the input.
[0076] (3) The feedforward fully connected network further transforms the output of the multi-head attention, adds nonlinearity, and learns new feature representations.
[0077] (4) Residual connections pass the output features of the multi-head attention and feed-forward fully connected networks to subsequent layers, which is beneficial for gradient propagation and feature learning.
[0078] (5) The Layer Norm layer regularizes the output of the residual connection, accelerates network convergence, and stabilizes the feature extraction process.
[0079] In summary, these modules work together to gradually learn feature representations of the input and support sequence transformation tasks. Position encoding introduces position information, multi-head attention learns global dependencies, fully connected networks enhance features, and residuals and regularization accelerate and stabilize feature learning.
[0080] The VAE model includes a Transformer connection layer between the input data and the encoder (latent distribution), with 120 neurons in the input data and 80 neurons in the encoder; a fully connected layer between the encoder and the mean and variance of the Gaussian distribution, with 40 neurons each; a Gaussian distribution is sampled and a neural network is added that obeys N The random perturbation of (0, 0.01) distribution generates a 40-dimensional latent variable; the connection layer between the latent variable and the decoder is a Transformer structure, and the number of decoder neurons is 80; the fully connected layer between the decoder and the output layer has 120 neurons.
[0081] The training process of the VAE model is as follows:
[0082] Construct encoder Encoder and decoder Decoder;
[0083] The encoder maps the input data x to the distribution q(z|x) in the latent space;
[0084] The VAE model is trained so that the encoder Decoder output satisfies the specified prior distribution q(z|x), and the decoder reconstructs the original input as much as possible to generate new data with a distribution similar to the original input data.
[0085] The reconstruction error in the VAE model is the mean square error (MSE), and the loss function of the VAE model is the sum of the mean square error and the KL divergence error.
[0086] Reference Figure 5 As shown in the figure, the generator in the GAN model receives a random noise vector as input and generates fake sample data. The goal of the generator is to generate realistic samples to deceive the discriminator. The discriminator receives real samples and fake samples generated by the generator and classifies them as real or fake. The goal of the discriminator is to be able to accurately distinguish between real samples and fake samples.
[0087] The generator in the GAN model is the decoder of the VAE model. The discriminator of the GAN model uses a classification model based on the Transformer structure. The EIS real data and the EIS generated data are used as the input of the discriminator, where the EIS real data is used as the positive sample and the EIS generated data is used as the negative sample for training the discriminator. The discriminator uses the cross entropy function as the loss function.
[0088] Furthermore, this embodiment adopts a 1-layer Transformer structure, in which the parameter d_model (indicating the dimension of feature embedding embedding) in the structure is 80, num_heads (indicating the number of attention heads of the multi-head attention mechanism) is 10, and dff (indicating the step size of the residual connection) is 1.
[0089] In this embodiment, step S3 specifically includes:
[0090] Step S31: fix the parameters of the generator, train the discriminator, input the EIS generated data and the EIS real data into the discriminator, distinguish the EIS generated data and the EIS real data, generate the discrimination loss, back-propagate the discrimination loss and update the parameters of the discriminator;
[0091] Step S32: The parameters of the discriminator are fixed, the generator is trained, the EIS data generated by the generator is input into the discriminator for discrimination, the generation loss of the generator is calculated according to the actual output and target output of the discriminator, the generation loss is back-propagated and the parameters of the generator are updated;
[0092] Iterate the training steps of the discriminator, variational autoencoder and generator. When the training reaches a set number of iterations or the discrimination result of the discriminator reaches a set threshold range, a trained data enhancement model is obtained.
[0093] The discriminator in step S31 and the generator in step S32 are trained alternately. In each alternating training, the number of model training times in each step is epoch=1, and the set number of iterations epoch_number=100.
[0094] During the training process, the generator and the discriminator compete with each other and continuously optimize, and improve performance through repeated iterations. The generator tries to generate more realistic samples to deceive the discriminator, while the discriminator strives to distinguish between real samples and fake samples; at the same time, the discriminator's prediction value is calculated. If the discriminator's prediction value is within the preset threshold range (for example, around 0.5), or the number of iterations of model training reaches the set number of iterations, it means that the model cannot distinguish between real samples and generated samples, that is, the generated samples achieve the expected effect and can be used as enhanced data.
[0095] Step S4: Based on the trained data enhancement model, the EIS real data is predicted to generate EIS enhanced data.
[0096] Specifically, based on the data enhancement model trained in step S3, the EIS real data or randomly generated data is predicted to obtain EIS generated data. At the same time, the prediction value of the discriminator is calculated. The EIS generated data with a prediction value of about 0.5 can be used as valid EIS generated data, that is, enhanced data.
[0097] This embodiment tests the effect on a public battery EIS data set and enhances the impedance data therein. The input data has a total of 120 features, with feature numbers from 1 to 120. The first 60 features are the real part data of the impedance data corresponding to the frequency from high to low, and the last 60 features are the imaginary part data of the impedance data corresponding to the frequency from high to low, as shown in Table 1.
[0098] Table 1 Battery EIS data set sample (partial)
[0099]
[0100] Among them, f1 to f120 represent the EIS frequency characteristics.
[0101] Based on the trained data enhancement model, the real EIS data in Table 1 is enhanced, and the enhanced data obtained is shown in Table 2.
[0102] Table 2 Examples of battery EIS enhanced data sets for predicting battery SOH (partial)
[0103]
[0104] It can be seen from the table that for each enhanced data generated, the predicted value of the discriminator of the VAE-GAN model is basically around 0.569, which means that the generated sample data has a better effect and can be used as training data for predicting the battery health model.
[0105] Therefore, the combined model of VAE and GAN in the present invention is used as a data enhancement model, namely the VAE-GAN model, which combines the advantages of the two models and has the following advantages:
[0106] (1) Improved sample quality: The VAE-GAN model inherits the generation capability of GAN and can generate more realistic and high-quality samples, achieving better generation effects than the traditional VAE model.
[0107] (2) Learning the latent space: The VAE-GAN model incorporates the latent variables of VAE into the generation and discrimination of GAN. By learning the latent space, the model can better grasp the potential structure and characteristics of the data.
[0108] (3) Controllable generation: The VAE-GAN model can control and manipulate the generated samples by adjusting the latent variables, such as interpolation and interference, thereby enhancing the controllability of the generative model.
[0109] (4) Improve convergence: The VAE-GAN model can improve the convergence of the model and reduce the problem of mode collapse during training through GAN adversarial training.
[0110] In summary, the battery EIS data enhancement method based on the data enhancement model provided by the embodiment of the present invention uses a VAE-GAN combination model to combine the advantages of the VAE model and the GAN model, thereby improving the quality of the generated samples, as well as the learning and generation control capabilities of the latent space. The combined model is used to enhance the EIS real data, generate a large amount of EIS enhanced data that meets expectations, increase the amount of training data for other prediction models, improve the generalization ability and robustness of the prediction model, and avoid overfitting of the prediction model. This combined model has been widely used in the field of generative models, bringing new ideas and methods to the development of generative models.
[0111] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0112] The electronic device includes: one or more processors; and a memory storing computer program instructions, and when the computer program instructions are executed, the processor executes the steps of the battery EIS data enhancement method based on the data enhancement model as provided in any one or more of the above embodiments. Figure 6 An exemplary structural diagram of the electronic device is disclosed. Figure 6 As shown, the electronic device includes: one or more processors 1101, a memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0113] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0114] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0115] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0116] In an embodiment of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the battery EIS data enhancement method based on the data enhancement model provided in any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist alone without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0117] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0118] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0119] It should be noted that 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 thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0120] Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0121] 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 via 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).
[0122] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. For example, an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device may be used to implement the embodiments. In some embodiments, the software program of the present application may be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including related data structures) may be stored in a computer-readable recording medium, such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present application may be implemented by hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
[0123] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0124] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each 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 box can also occur in a different order from the order marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] 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 can easily mention 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, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A battery EIS data enhancement method based on a data enhancement model, characterized in that: The data enhancement model includes a variational autoencoder and a generative adversarial network, the variational autoencoder includes an encoder and a decoder, the generative adversarial network includes a generator and a discriminator, the decoder of the variational autoencoder is the generator of the generative adversarial network, and the method includes: Test and collect real EIS data of the battery; Inputting the EIS real data into the variational autoencoder to obtain the EIS generated data output by the variational autoencoder; Training the data enhancement model according to the EIS generated data and the EIS real data; Based on the trained data enhancement model, predicting the EIS real data to generate EIS enhanced data; The step of training the data enhancement model according to the EIS generated data and the EIS real data includes: The parameters of the generator are fixed, the discriminator is trained, the EIS generated data and the EIS real data are input to the discriminator together, the EIS generated data and the EIS real data are respectively distinguished as true or false, a discrimination loss is generated, the discrimination loss is back-propagated, and the parameters of the discriminator are updated; The parameters of the discriminator are fixed, the generator is trained, the EIS generated data generated by the generator is input into the discriminator for discrimination, the generation loss of the generator is calculated according to the actual output and target output of the discriminator, the generation loss is back-propagated and the parameters of the generator are updated; The training steps of the discriminator and the generator are iterated, and when the training reaches a set number of iterations or the discrimination result of the discriminator reaches a set threshold range, the trained data enhancement model is obtained.
2. The battery EIS data enhancement method based on the data enhancement model according to claim 1 is characterized in that: The variational autoencoder also includes a sampler; The step of inputting the EIS real data into the variational autoencoder to obtain the EIS generated data output by the variational autoencoder comprises: The encoder encodes the EIS real data into a distribution in a latent space; Map the distribution of the latent space into a Gaussian distribution, connected to the mean and variance respectively; The sampler samples the Gaussian distribution to generate sampling samples of the latent space; The decoder maps the sampled samples back to the data space, and generates new data with a distribution similar to the EIS real data as the EIS generated data.
3. The battery EIS data enhancement method based on the data enhancement model according to claim 1 is characterized in that: The reconstruction error of the variational autoencoder adopts mean square error, and the loss function of the variational autoencoder is the sum of mean square error and KL divergence error.
4. The battery EIS data enhancement method based on the data enhancement model according to claim 1 is characterized in that: The encoder and decoder of the variational autoencoder and the discriminator of the generative adversarial network all adopt the Transformer structure.
5. The battery EIS data enhancement method based on the data enhancement model according to claim 4 is characterized in that: The dimension of feature embedding of the Transformer structure is 80, the number of attention heads of the multi-head attention mechanism is 10, and the step size of the residual connection is 1.
6. The battery EIS data enhancement method based on the data enhancement model according to claim 1, characterized in that: The steps to test and collect real EIS data of the battery include: A plurality of frequency points are selected at certain intervals within a set frequency range, and the real data and imaginary data of the impedance corresponding to each of the frequency points are collected as the EIS real data.
7. An electronic device, characterized in that: The electronic device comprises: One or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor performs the steps of the battery EIS data enhancement method based on the data enhancement model as described in any one of claims 1-6.
8. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the battery EIS data enhancement method based on the data enhancement model as described in any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the battery EIS data enhancement method based on the data enhancement model as described in any one of claims 1 to 6 are implemented.
