A battery operation data enhancement method, device, medium and product
By combining the CNN-Transformer model with the VAE model to process battery operating data, it solves the problem of difficult data collection under extreme conditions, significantly improves the quality and quantity of battery operating data, and improves the accuracy of battery performance evaluation and health monitoring. Optimized the battery management system.
Patent Information
- Application Number
- CN202410764515.2
- 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
Under extreme working conditions, it is difficult to obtain battery operating data, resulting in a reduction in the amount of data, limiting the comprehensive assessment of battery performance and health, and affecting the optimization and reliability improvement of batteries and their application equipment.
The combination of CNN-Transformer model and VAE model is used to encode and decode battery operating data to generate enhanced battery operating data, which improves the effect of data processing and enhancement, especially in numerical data enhancement in the field of electrochemistry.
Significantly improves the quantity and quality of battery operating data, supports the accuracy of battery performance evaluation and health monitoring, enhances the data analysis capabilities of the battery management system, optimizes battery usage strategies, and extends battery life.
Smart Images

Figure CN118330472B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrochemical technology, and in particular to a method, device, medium and product for enhancing battery operation data. Background Art
[0002] Battery operation data can be used to evaluate battery performance and health, as well as to optimize battery use and charging strategies. By monitoring data such as battery capacity, voltage, and charging status, you can ensure that the battery is within the normal operating range and promptly understand whether the battery needs to be charged or replaced. In addition, battery temperature data can be used to prevent safety issues caused by overheating or overcooling. By analyzing battery operation data, you can also optimize the battery life and efficiency, and improve the endurance and reliability of the device.
[0003] However, the inventors have found that there are at least the following technical problems in the related art: In practical applications, especially under extreme working conditions, obtaining battery operation data often faces many challenges. Under these extreme conditions, the battery may not work properly, or the collection of working data becomes very difficult, resulting in a significant reduction in the amount of data available for analysis. This lack of data limits the comprehensive evaluation of battery performance and health status, which in turn affects the optimization and reliability improvement of batteries and their application equipment. Summary of the invention
[0004] One purpose of the present application is to provide a battery operation data enhancement method, device, medium and product, at least to solve the technical problem of insufficient battery operation data collection.
[0005] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0006] In the first aspect, some embodiments of the present application also provide a battery operation data enhancement method for charging and discharging a battery and collecting corresponding data to obtain battery operation data, and inputting the battery operation data into a CNN-Transformer model; the CNN-Transformer model is connected to the encoder of a VAE model to process the battery operation data to obtain input data; the encoder of the VAE model maps the input data to a Gaussian distribution in a potential distribution, and obtains a potential vector by sampling the Gaussian distribution; the CNN-Transformer model is connected to the decoder of the VAE model to process the potential vector to obtain output data; the output data is processed by the decoder of the VAE model to obtain battery enhanced operation data.
[0007] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0008] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0009] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0010] Compared with the related art, the solution provided in the embodiment of the present application combines the Transformer model with the CNN convolutional neural network model to construct a CNN-Transformer model structure, which is used in the encoder and decoder of the VAE model, thereby improving the model effect. In general, the VAE model is mostly used to enhance image data. The present invention introduces the VAE model to enhance numerical data, especially numerical data enhancement in the field of electrochemistry. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0012] Figure 1 This is a schematic diagram of an exemplary process of a battery operation data enhancement method provided according to an embodiment of the present application;
[0013] Figure 2 A schematic diagram of the structure of an improved VAE model provided according to an embodiment of the present application;
[0014] Figure 3 This is a schematic diagram of an exemplary process of another battery operation data enhancement method provided according to an embodiment of the present application;
[0015] Figure 4 This is a schematic diagram of an exemplary structure of a battery operation data enhancement device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0017] First embodiment
[0018] The first embodiment of the present application relates to a method for enhancing battery operation data. Figure 1 As shown, the method may include the following steps:
[0019] S101, charge and discharge the battery and collect corresponding data to obtain battery operation data, and input the battery operation data into the CNN-Transformer model; the CNN-Transformer model is connected to the encoder of the VAE model.
[0020] S102, processing the battery operation data to obtain input data; the encoder of the VAE model maps the input data to a Gaussian distribution in a potential distribution, and obtains a potential vector by sampling the Gaussian distribution.
[0021] S103, processing the latent vector to obtain output data; connecting the CNN-Transformer model to the decoder of the VAE model; processing the output data through the decoder of the VAE model to obtain battery enhanced operation data.
[0022] The following is a detailed description of each of the above steps. Figure 2An improved VAE model is shown, where the battery operating data current, voltage, temperature and capacity represent the battery operating data such as current, voltage, temperature and capacity respectively. Battery capacity is the overall energy storage capacity of the battery, generally expressed in milliampere hours (mAh) or ampere hours (Ah); voltage is the potential difference of the battery, and the common unit is volt (V); current is the rate of charge flow through the battery, generally measured in amperes (A); temperature is the operating temperature of the battery, and too high or too low temperature may affect battery performance. The collected battery operation data is input into the CNN-Transformer model composed of a CNN (convolutional neural network) layer and a Transformer layer to perform preliminary processing on the battery operation data; the preliminarily processed battery operation data is used as the input data of the VAE model and sent to the Encoder of the VAE model for encoding processing; the encoder maps the input data to the potential distribution q(z|x); the potential distribution is mapped to a Gaussian distribution, and the distribution is connected to the mean μ and the variance σ; the Gaussian distribution is sampled, and random perturbations that obey N(0,0.01) are added to generate sampled samples z, i.e., latent variables; the sampled latent variables z are input into the decoder of the VAE model through the CNN-Transformer model; the decoder outputs the predicted value, i.e., the battery enhanced operation data.
[0023] Variational Autoencoder (VAE) is a generative model that can learn the potential distribution of training data. It can generate new samples by sampling from the potential distribution while retaining the characteristics of the original data. This data enhancement method can increase the diversity of training samples. In traditional VAE models, encoders and decoders generally use fully connected neural networks or convolutional neural network models (Convolution Neural Network, CNN). Compared with fully connected neural networks or convolutional neural networks, the Transformer model has the advantages of long-distance dependence, multi-head attention mechanism, and a more scientific encoder-decoder structure. This application combines the Transformer model with the convolutional neural network model to construct a CNN-Transformer model structure, which is used in the encoder and decoder of the VAE model to improve the model effect. In general, the VAE model is mostly used for the enhancement of image data. This application introduces the VAE model to the enhancement of numerical data, especially the enhancement of numerical data in the field of electrochemistry.
[0024] Second embodiment
[0025] The second embodiment of the present application relates to a method for enhancing battery operation data. The second implementation is an improvement made on the basis of the first embodiment. Figure 3 As shown: Testing and collecting battery operation data: Perform charge and discharge tests on the battery and collect corresponding data.
[0026] Build an improved VAE model: Determine the basic architecture of the VAE model, including the basic structure of the encoder and decoder. The encoder is responsible for mapping the input data to a latent space, while the decoder samples and reconstructs the input data from the latent space. CNN modules are integrated before the input layer of the encoder and before the output layer of the decoder. The purpose of this step is to use the ability of the CNN layer to extract local features of the input data and enhance the quality of the model reconstructed data at the output. After the CNN layer, the Transformer layer is further integrated. The introduction of the Transformer layer is intended to enhance the model's ability to process long-distance dependencies of input data and capture complex relationships in the data using its multi-head attention mechanism. The CNN layer and the Transformer layer constitute the CNN-Transformer model structure. The encoder maps the data processed by the CNN-Transformer structure to the latent space. In the latent space, Gaussian distribution is used for sampling to generate new latent variables, which provide a basis for the decoder's data reconstruction. The decoder receives the latent variables and processes the latent variables through the Transformer-CNN structure to reconstruct the enhanced battery operation data. The improved VAE model is trained using a real data set of battery operation, and the best data enhancement effect is achieved by adjusting the model parameters and structure. Appropriate loss functions, such as reconstruction error and KL divergence, can be used to guide the model training and optimization process.
[0027] The structure of the improved VAE model includes a CNN-Transformer connection layer between the input data and the encoder (latent distribution), with 6 neurons for the input data and 4 neurons for the encoder; the encoder is fully connected to the mean and variance of the Gaussian distribution, with 2 neurons each; the Gaussian distribution is sampled, and random perturbations following the N(0,0.01) distribution are added to generate 2-dimensional latent variables. The connection layer between the latent variable and the decoder is a CNN-Transformer model, with 4 neurons for the decoder; the fully connected layer between the decoder and the output layer has 6 neurons. The reconstruction error in the improved VAE model is the mean square error (MSE), and the loss function is the sum of the mean square error and the KL divergence error. A 1-layer CNN structure is used, with parameters filters=4, kernel_size=1, and the activation function is relu. filters represents the number of filters, and kernel_size represents the number of convolution kernels. A 1-layer Transformer structure is used, with parameters d_model=4, num_heads=2, and dff=1. d_model represents the dimension of feature embedding; num_heads represents the number of heads of the multi-head attention mechanism; dff represents the step size of the residual connection.
[0028] Training the improved VAE model: The battery operation data is used as both input data and prediction data to train the improved VAE model and observe the model loss function until the model converges or reaches the number of iterations. The number of model iterations is 200, and the sample size for each training is 50.
[0029] Generate new battery operation data: that is, obtain enhanced data, use the above-trained improved VAE model to predict the real battery operation data, and obtain generated data.
[0030] Through the above steps, the improved VAE model in this embodiment can not only effectively process battery operation data and extract key features, but also generate high-quality enhanced data to support the accuracy improvement of battery performance evaluation and health monitoring. The improvement of this model uses the improved VAE model to enhance the real battery operation data and increase the data volume; the CNN-Transformer model is constructed and used in the encoder and decoder of the VAE model.
[0031] Third embodiment
[0032] The third embodiment of the present application relates to a method for enhancing battery operation data. The third implementation is an improvement made on the basis of the first embodiment, and the specific improvements are:
[0033] The VAE model was improved. The CNN-Transformer structure was added to the encoder and decoder of the VAE model to improve the effect of the model in generating data. The CNN layer processes the input battery operation data to obtain the input feature data, and performs convolution operation through the filter (convolution kernel). The tensor product of the input feature data is calculated starting from the field of the input feature data. After each convolution operation is completed, the next convolution calculation is performed with a stride of 1, and the input feature data is finally obtained. The main structure and function of the Transformer layer are as follows: (1) Positional Encoding: Provides order information for the input sequence to help Attention learn the sequence order characteristics. Positional encoding provides position information for the sequence, characterizes the relative position of the input in the sequence, and the output is spliced with the input sequence embedding representation. (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. 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. (3) Feed Forward Network: This module performs nonlinear transformation on the output of the attention module to learn more complex feature representations. The feed forward fully connected network further transforms the output of the multi-head attention, adds nonlinearity, and learns new feature representations. (4) Residual connection and Layer Norm layer (Add & Norm): The residual connection Add is used to avoid the gradient vanishing problem in deep networks. The residual connection passes the output features of the multi-head attention and feed forward fully connected network to the subsequent layers, which is beneficial to gradient propagation and feature learning. (5) Layer Norm is used to regularize the model, speed up training, and increase model stability. The Layer Norm layer regularizes the output of the residual connection, accelerates network convergence, and stabilizes the feature extraction process. In the Transformer model, position encoding, multi-head attention, feed forward fully connected network, and residual modules work together to gradually learn the feature representation of the input and support sequence conversion tasks. Position encoding introduces position information, multi-head attention learns global dependencies, the fully connected network enhances features, and residual and regularization accelerate and stabilize feature learning. The battery operation data is used as the input data and prediction data of the improved VAE model to train the improved VAE model. Based on the trained model, the battery operation data is predicted to obtain the generated battery operation data, i.e., enhanced data.
[0034] The battery operation data enhancement method of this application is used to test the effect on the discharge phase data of the B0018 battery in the NASA battery data set, using the battery current, voltage, temperature, battery capacity and other data for data enhancement. The test data has a total of 5 features, the names and meanings of the features are shown in the following table:
[0035] Table 1 List of battery operation data feature names and meanings
[0036]
[0037] The specific data samples are shown in the following table:
[0038] Table 2 Battery operation data set sample (partial)
[0039]
[0040] The improved VAE model is trained using battery operation data, and the data is normalized using the MAX-MIN normalization method. The overall mean square error of the improved VAE model is 0.048385, indicating that the data predicted by the model is not much different from the original data, which is enough to be mistaken for the real data and has an enhanced effect. The enhanced data can be obtained by predicting the battery operation data based on the improved VAE model, and the results are shown in the following table:
[0041] Table 3 Battery operation data enhancement data display (partial)
[0042]
[0043] From the above enhanced data, it can be seen that an improved variational autoencoder (VAE) model in the battery operation data enhancement method of this application is used in battery operation data enhancement. By integrating convolutional neural network (CNN) and Transformer model, this improved model not only effectively extracts key features in battery operation data, but also enhances the model's ability to handle long-distance data dependencies. The embodiment proves that this method can significantly improve the quantity and quality of battery operation data, and provide richer and more accurate data support for battery performance evaluation and health monitoring. The results show that the improved VAE model is of great significance in improving the data analysis capabilities of battery management systems (BMS), optimizing battery usage strategies, and extending battery life. Through this method, challenges in battery data collection can be more effectively addressed, especially under extreme working conditions, greatly improving the quality and efficiency of battery technology research and application. The improved VAE model of this application can well generate data close to the original data.
[0044] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0045] 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.
[0046] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 4 An exemplary structural diagram of the electronic device is disclosed. Figure 4 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.
[0047] 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 4 The example of connecting through bus is taken in the following.
[0048] 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.
[0049] 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).
[0050] In the embodiments 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 method provided by 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 independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0051] 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.
[0052] 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.
[0053] It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0054] Computer readable 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 media that can be used to store information that can be accessed by a computing device.
[0055] 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).
[0056] 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.
[0057] 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.
[0058] 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.
[0059] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0060] 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 operation data enhancement method, characterized in that: The method comprises: The battery is charged and discharged and corresponding data is collected to obtain battery operation data, and the battery operation data is input into a CNN-Transformer model; the CNN-Transformer model is connected to an encoder of a VAE model to process the battery operation data, and the CNN-Transformer model performs convolution calculation on the battery operation data through a CNN layer to obtain first feature data; the first feature data is processed through a Transformer layer to obtain input data; The encoder of the VAE model maps the input data to a Gaussian distribution in a potential distribution, and obtains a potential vector by sampling the Gaussian distribution; the CNN-Transformer model is connected to the decoder of the VAE model to process the potential vector, and the CNN-Transformer model performs convolution calculation on the potential vector through the CNN layer to obtain second feature data; the second feature data is processed through the Transformer layer to obtain output data; the output data is processed by the decoder of the VAE model to obtain battery enhanced operation data.
2. The method according to claim 1, characterized in that The parameters of the CNN layer are filters=4, kernel_size=1, and the activation function is relu; the filters is the number of filters, and the kernel_size is the number of convolution kernels.
3. The method according to claim 1, characterized in that The Transformer layer parameters are d_model=4, num_heads=2, and dff=1; d_model is the dimension of feature embedding; num_heads is the number of heads of the multi-head attention mechanism; and dff is the step size of the residual connection.
4. The method according to claim 1, wherein The number of neurons of the input data in the encoder connection between the CNN-Transformer model and the VAE model is 6, and the number of neurons of the encoder is 4; the number of neurons of the output data in the decoder connection between the CNN-Transformer model and the VAE model is 6, and the number of neurons of the decoder is 4.
5. The method according to claim 4, characterized in that The encoder of the VAE model maps the input data to a Gaussian distribution in a potential distribution, including: the number of neurons in the fully connected layer of the encoder and the mean and variance of the Gaussian distribution are both 2; the Gaussian distribution is sampled, and random perturbations that obey the N(0,0.01) distribution are added to generate a 2-dimensional latent variable.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method according to any one of claims 1 to 5.
7. A computer-readable 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 method according to any one of claims 1 to 5 are implemented.
8. 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 method according to any one of claims 1 to 5 are implemented.
