Electric quantity balancing method, system and device and nonvolatile storage medium
The reinforcement learning model is used to optimize the balance control of the cells in the lithium battery pack, and the bidirectional power converter is used to achieve efficient power balance, which solves the problem of low efficiency in traditional technology and improves the stability and energy utilization efficiency of the system.
Patent Information
- Application Number
- CN202410660227.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional active balancing technology is less efficient in lithium battery packs and cannot meet the high-performance requirements of large-capacity and high-energy-density lithium battery packs.
The reinforcement learning model is used to obtain the working state parameters of the battery cells, the power balance is achieved through the bidirectional power converter, and the switching state is optimized through training samples and reward functions to improve the balancing efficiency.
It improves the active balancing efficiency between cells in the lithium battery pack, reduces energy consumption, enhances the stability and reliability of the system, and realizes automated and intelligent balancing control.
Smart Images

Figure CN118560347A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicles, and in particular to a power balancing method, system, device and non-volatile storage medium. Background Art
[0002] With the rapid development of mobile communications and renewable energy, the demand for high-performance, high-reliability, and high-safety energy storage devices is increasing. Lithium batteries have become an important energy storage technology due to their high energy density, long cycle life, and lightweight, and are widely used in various fields. However, in lithium battery packs, due to the influence of factors such as manufacturing process, ambient temperature, and usage status, there will be differences in voltage, capacity, etc. between different single cells. These imbalance problems will lead to reduced performance of the battery pack, reduced cycle life, and increased safety risks.
[0003] Traditional passive balancing technology achieves the balancing of battery packs by connecting components such as series resistors and capacitors, but it has problems such as energy waste and poor balancing effect. Especially for lithium battery packs with large capacity and high energy density, passive balancing technology can no longer meet their high performance requirements. In order to solve the imbalance problem of lithium battery packs, active balancing technology came into being. Active balancing technology achieves accurate monitoring and active balancing of single cells in the battery pack by introducing electronic circuits and control algorithms. Active balancing technology can transfer energy in a targeted manner according to the state differences of battery cells (cells), thereby improving the balancing performance of the entire battery pack. However, the traditional rule-based active balancing method has low transfer efficiency.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] Embodiments of the present invention provide a power balancing method, system, device and non-volatile storage medium to at least solve the technical problem of low efficiency in actively balancing multiple cells in a battery pack in the related art.
[0006] According to one aspect of an embodiment of the present invention, a power balancing method is provided, comprising: obtaining working state parameters of each of a plurality of battery cells; inputting the working state parameters of each of the plurality of battery cells into a pre-trained reinforcement learning model, and using the reinforcement learning model to determine a switch state set from an action set, wherein the switch state set comprises the switch state parameters of each of the plurality of battery cells, and the switch state parameters of each of the plurality of battery cells indicate whether the plurality of battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the plurality of battery cells, and the action set comprises a plurality of candidate switch state sets for selection; according to the switch state parameters of each of the plurality of battery cells, controlling the on and off of a plurality of switches to balance the power between the battery cells connected to the bidirectional power converter, wherein the plurality of switches are switches corresponding to the plurality of battery cells connected to the bidirectional power converter.
[0007] Optionally, the reinforcement learning model is trained in the following manner: obtaining multiple groups of training samples, wherein the multiple groups of training samples respectively include the starting working state parameters of multiple sample battery cells, the sample switch state set and the feedback working state parameters of multiple sample battery cells; based on a pre-set reward function, determining the reward value of each of the multiple groups of training samples, wherein the reward value of each of the multiple groups of training samples represents whether the selected sample switch state set is worthy of reward; iteratively training the original reinforcement learning model according to the multiple groups of training samples and the reward values of the multiple groups of training samples to obtain the reinforcement learning model.
[0008] Optionally, the original reinforcement learning model is iteratively trained according to multiple groups of training samples and respective reward values of the multiple groups of training samples to obtain a reinforcement learning model, including: iterating the network parameters of the original reinforcement learning model according to respective reward values of the multiple groups of training samples to obtain the original reinforcement learning model after N iterations, wherein N is an integer greater than 1; determining whether the original reinforcement learning model after N iterations meets a predetermined condition; if the original reinforcement learning model after N iterations meets the predetermined condition, using the original reinforcement learning model after N iterations as the reinforcement learning model.
[0009] Optionally, determining whether the original reinforcement learning model after N iterations satisfies a predetermined condition includes: determining a first reward value corresponding to an action selected in an action set by the original reinforcement learning model after N iterations; obtaining a second reward value corresponding to an action selected in the action set by the original reinforcement learning model after NM iterations, where M is a positive integer greater than 0; and determining whether the original reinforcement learning model after N iterations satisfies the predetermined condition when the difference between the first reward value and the second reward value is not greater than a predetermined threshold.
[0010] Optionally, based on a pre-set reward function, respectively determine the reward value of each of the multiple groups of training samples, including: using the following method to determine the reward value of the target training sample, based on the reward function, determine the reward value of each of the multiple groups of training samples: determine the average value of the feedback voltage of each of the multiple sample cells included in the target training sample; respectively determine the difference between the feedback voltage of each of the multiple sample cells included in the target training sample and the average value; sum the differences of each of the multiple sample cells included in the target training sample to obtain the reward value of the target training sample.
[0011] According to another aspect of an embodiment of the present invention, a power balancing system is also provided, including: a battery management system, a bidirectional power converter, and multiple switches, wherein the multiple switches are used to connect multiple battery cells and the bidirectional power converter; the bidirectional power converter is used to realize energy flow between the multiple battery cells; the battery management system is connected to the multiple battery cells, and is used to obtain the working state parameters of each of the multiple battery cells, and input the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to the bidirectional power converter, and the action set includes multiple candidate switch state sets for selection; according to the switch state parameters of each of the multiple battery cells, the on and off of the multiple switches are controlled to achieve power balancing between the battery cells connected to the bidirectional power converter.
[0012] According to another aspect of an embodiment of the present invention, a power balancing device is also provided, including: an acquisition module, used to acquire working state parameters of each of the multiple battery cells; a determination module, used to input the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the multiple battery cells, and the action set includes a plurality of candidate switch state sets for selection; a control module, used to control the on and off of a plurality of switches according to the switch state parameters of each of the multiple battery cells, so as to balance the power between the battery cells connected to the bidirectional power converter, wherein the plurality of switches are switches corresponding to the plurality of battery cells connected to the bidirectional power converter.
[0013] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided. The non-volatile storage medium includes a stored program. When the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above power balancing methods.
[0014] According to another aspect of the embodiments of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above power balancing methods is executed.
[0015] According to another aspect of the embodiments of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above-mentioned power balancing methods is implemented.
[0016] In an embodiment of the present invention, a reinforcement learning model is used to implement active balancing between multiple battery cells in a battery pack, by obtaining working state parameters of each of the multiple battery cells; inputting the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the multiple battery cells, and the action set includes a plurality of candidate switch state sets for selection; according to the switch state parameters of each of the multiple battery cells, the on and off of the multiple switches are controlled to balance the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells connected to the bidirectional power converter, thereby achieving the purpose of flexibly and efficiently adjusting the power balancing method according to the actual state of the multiple battery cells in the battery pack, thereby achieving the technical effect of improving the efficiency of active balancing between the multiple battery cells in the battery pack, and thus solving the technical problem of low efficiency of active balancing between the multiple battery cells in the battery pack in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 A hardware structure block diagram of a computer terminal for implementing a power balancing method is shown;
[0019] Figure 2 is a flow chart of a power balancing method provided according to an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of a power balancing system provided according to an embodiment of the present invention;
[0021] Figure 4 is a structural block diagram of a power balancing device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] According to an embodiment of the present invention, a method embodiment of power balancing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a power balancing method. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0026] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0027] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the power balancing method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the power balancing method of the above-mentioned application is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 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.
[0028] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0029] Figure 2 is a flow chart of a power balancing method according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0030] Step S202, obtaining working state parameters of each of the plurality of battery cells.
[0031] In electric vehicles, battery packs are usually made up of multiple single cells connected together. Due to differences in the production process and the aging of the battery during use, the performance of each single cell will gradually differ. This difference may cause some batteries in the battery pack to be overcharged or over-discharged, thus affecting the performance and life of the entire battery pack.
[0032] In this step, the working state parameters of each of the multiple battery cells can be obtained to determine whether there is a large difference in the current state between the multiple battery cells. The working state parameters of each battery cell may include: voltage, current, temperature, charging state, discharge depth, etc. In order to measure these parameters, corresponding equipment can be selected, such as voltage sensor, current sensor, temperature sensor, etc. For temperature, multiple sensors can be installed at different positions of the battery pack to obtain more accurate temperature information.
[0033] Step S204: input the working state parameters of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from the action set, wherein the switch state set includes the switch state parameters of the multiple battery cells, and the switch state parameters of the multiple battery cells indicate whether the multiple battery cells are respectively connected to the bidirectional power converter, and the bidirectional power converter is used to realize the energy flow between the multiple battery cells. The action set includes multiple candidate switch state sets for selection.
[0034] Among them, the bidirectional power converter is a power electronic device, which can be used for bidirectional transmission and storage of energy. The bidirectional power converter can store electric energy as an energy storage device, and can also transmit the stored energy to other devices. Therefore, the bidirectional power converter can make energy flow between multiple battery cells. Each of the multiple battery cells provided by the present invention can be connected to the bidirectional power converter, and can transmit electric energy to the bidirectional power converter, and can also receive electric energy transmitted by the bidirectional power converter.
[0035] Before this step, the original reinforcement learning model can be pre-trained with training samples to obtain a trained reinforcement learning model, and then the trained model is put into practical application. According to the working state parameters of each of the multiple battery cells in the actual environment, a switch state set suitable for the working state parameters of each of the current multiple battery cells is selected from the multiple candidate switch state sets included in the action set. Among them, the switch state set includes the connection state of each of the multiple switches, and the connection state of each of the multiple switches can be connected or disconnected, that is, it can be on or off. The mathematical representation of the switch state set can be a matrix, a vector, or a set.
[0036] Specifically, the trained reinforcement learning model can identify the battery cells that need energy balancing among the multiple battery cells, or the battery cells whose charges deviate from the average level of the multiple battery cells, among which there may be battery cells with relatively high charges and battery cells with relatively low charges, based on the input working status parameters of each of the multiple battery cells. Then, it can be determined that the connection relationship between these battery cells and the bidirectional power converter is connected, while other battery cells that do not need energy balancing, or the battery cells whose charges are at the average level of the multiple battery cells, do not need to be connected to the bidirectional power converter.
[0037] Step S206, controlling the on and off of the multiple switches according to the switch state parameters of the multiple battery cells to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells connected to the bidirectional power converter.
[0038] In this step, after using the reinforcement learning model to make decisions based on the working state parameters of each of the multiple battery cells, a switch state set output by the reinforcement learning model is obtained, that is, the switch state parameters of each of the multiple battery cells are obtained, and then the entire power balancing system controls the on and off of each of the multiple switches according to the instructions of the switch state parameters of each of the multiple battery cells. In other words, each battery cell will be connected to the bidirectional power converter, and a switch is set on the link between each battery cell and the bidirectional power converter, which can be controlled to determine whether each battery cell is actually connected to the bidirectional power converter.
[0039] Among the battery cells connected to the bidirectional power converter, the battery cells with higher power will transmit power to the bidirectional power converter, and the bidirectional power converter will transmit the power from the battery cells with higher power to the battery cells with lower power, ultimately achieving energy balance in the battery cells connected to the bidirectional power converter.
[0040] Through the above steps, the purpose of flexibly and efficiently adjusting the power balancing method according to the actual status of multiple battery cells in the battery pack can be achieved, thereby realizing the technical effect of improving the efficiency of active balancing between multiple battery cells in the battery pack, and further solving the technical problem of low efficiency of active balancing between multiple battery cells in the battery pack in the related technology.
[0041] As an optional embodiment, the reinforcement learning model is trained in the following manner: obtaining multiple groups of training samples, wherein the multiple groups of training samples respectively include the starting working state parameters of multiple sample battery cells, the sample switch state set and the feedback working state parameters of multiple sample battery cells; based on a pre-set reward function, determining the reward value of each of the multiple groups of training samples, wherein the reward value of each of the multiple groups of training samples represents whether the selected sample switch state set is worthy of reward; iteratively training the original reinforcement learning model according to the multiple groups of training samples and the reward values of the multiple groups of training samples to obtain a reinforcement learning model.
[0042] Optionally, reinforcement learning is a machine learning method in which the model can autonomously learn how to make decisions through interaction with the environment. The following are the detailed steps of the training process: First, sufficient training data needs to be collected. Among them, each group of training samples contains the starting working state parameters, sample switch state sets and feedback working state parameters of multiple sample cells, among which the starting working state parameters are the working state parameters of multiple sample cells at the beginning of this control cycle, the switch state set is the decision made by the model during this control cycle, and the feedback working state parameters are the results of the model making a decision during this control cycle and implementing the decision based on the initial environment, that is, the working state parameters of multiple sample cells at the end of this control cycle.
[0043] Secondly, a reward function needs to be set. The reward function is a key part of reinforcement learning and is used to evaluate whether the actions taken by the model are worth encouraging. For each set of training samples, after the model selects an action from the action set, the reward function can be used to calculate the reward value corresponding to this action. The reward value indicates whether the action is conducive to the energy balance between multiple sample cells.
[0044] Secondly, the original reinforcement learning model can be iteratively trained using the collected sets of training samples and their corresponding reward values. In each iteration, the model adjusts its parameters based on the training samples and reward values, thereby improving its decision-making ability.
[0045] Finally, after multiple iterations of training, a trained reinforcement learning model can be obtained. The model can automatically select the optimal set of switch states based on the input working state parameters of the battery cell to achieve energy balance among multiple sample batteries.
[0046] As an optional embodiment, the original reinforcement learning model is iteratively trained according to multiple groups of training samples and respective reward values of the multiple groups of training samples to obtain a reinforcement learning model, including: iterating the network parameters of the original reinforcement learning model according to respective reward values of the multiple groups of training samples to obtain the original reinforcement learning model after N iterations, wherein N is an integer greater than 1; determining whether the original reinforcement learning model after N iterations meets a predetermined condition; if the original reinforcement learning model after N iterations meets the predetermined condition, using the original reinforcement learning model after N iterations as the reinforcement learning model.
[0047] Optionally, the training process of the reinforcement learning model is an iterative training process, and each training is performed on the basis of the previous one. Each time an iteration is performed, the model will adjust the internal parameters according to the reward value, and the model after this iteration can be obtained after the adjustment is completed. Until the parameters of the model after a certain iteration meet the predetermined conditions, the training process can be considered to be over, and the model obtained by the last iteration is used as the trained reinforcement learning model. Assume that in the Nth iteration, the network parameters in the model obtained in the N-1th iteration are adjusted to obtain the original reinforcement learning model after N iterations. If the original reinforcement learning model after N iterations meets the predetermined conditions, the model is considered to be a trained reinforcement learning model and can be used in practical applications.
[0048] It should be noted that the reinforcement model can also continue to be trained during the actual application process, that is, while making decisions during the application process, it uses the data from the environment feedback during the application to adjust its own parameters.
[0049] As an optional embodiment, determining whether the original reinforcement learning model after N iterations satisfies a predetermined condition includes: determining a first reward value corresponding to an action selected in an action set by the original reinforcement learning model after N iterations; obtaining a second reward value corresponding to an action selected in the action set by the original reinforcement learning model after NM iterations, where M is a positive integer greater than 0; and determining whether the original reinforcement learning model after N iterations satisfies the predetermined condition when the difference between the first reward value and the second reward value is not greater than a predetermined threshold.
[0050] Optionally, when the reward value obtained by the strategy made by the model tends to be stable, it means that the model has been learned to a good degree, and then it is no longer necessary to continue training, and the learned model can be directly applied to solve the corresponding problem. At this time, the second reward value obtained by the strategy made by the model obtained in the M iterations before the Nth iteration can be determined according to the preset value of M, and compared with the first reward value obtained by the strategy made by the model obtained in the Nth iteration. If the difference between the reward values is not greater than the predetermined threshold, it can be considered whether the original reinforcement learning model after N iterations meets the predetermined conditions.
[0051] Alternatively, the difference between the reward value at each iteration and the previous reward value may be determined. If the difference is less than a predetermined threshold, the number of times is accumulated. If the difference is greater than the predetermined threshold, the accumulated number of times is cleared until the accumulated number of times exceeds the predetermined number threshold. Then, it is determined whether the original reinforcement learning model after N iterations meets the predetermined conditions.
[0052] As an optional embodiment, based on a pre-set reward function, respectively determine the reward value of each of the multiple groups of training samples, including: using the following method to determine the reward value of the target training sample, based on the reward function, determine the reward value of each of the multiple groups of training samples: determine the average value of the feedback voltage of each of the multiple sample cells included in the target training sample; respectively determine the difference between the feedback voltage of each of the multiple sample cells included in the target training sample and the average value; sum the differences of each of the multiple sample cells included in the target training sample to obtain the reward value of the target training sample.
[0053] Optionally, since the reinforcement learning model is used to balance the power among multiple cells, when setting the reward function, the reward function can be set to be related to the power balance of the cells. Specifically, the reward function can be set to be the sum of the differences between the voltages of the multiple cells and the average voltage. The specific formula can be:
[0054]
[0055] In the formula, R t is the reward function value corresponding to the strategy made by the model during the tth round of training, is the average voltage of A cells obtained after the environment responds to the strategy made by the model in the tth round of training, The voltage value of the i-th battery cell obtained after the environment responds to the strategy made by the model in the t-th round of training. Each set of training samples corresponds to a reward value.
[0056] It should be noted that the training process of the reinforcement learning model can specifically include the following steps:
[0057] Step 1: In the sampling phase, use the current policy network to select an action, execute the action in the environment, obtain the next state, reward, and a flag indicating whether the action is terminated, and store the current state, action, reward, next state, and a flag indicating whether the action is terminated in a buffer.
[0058] Step 2: Calculate the advantage function and reward, and use the GAE algorithm and the discounted return algorithm to calculate the advantage function and reward for each time step. Among them, the GAE (Generalized Advantage Estimation) algorithm is an important technology in the field of reinforcement learning, which is used to estimate the policy gradient or value function gradient. The core idea of GAE is to adjust and update the value function and strategy by estimating the advantage in the state transition process.
[0059] Step 3: During the training process, in any update cycle, randomly sample the data in the buffer, calculate the ratio between the new action probability and the old action probability, and set the clip function for the ratio of the new and old actions to prevent the action update from being too large and causing unstable training. Update the network parameters according to the loss function, and calculate the KL divergence between the probability distributions of the new and old policy networks. When the KL divergence between the probability distributions of the new and old policy networks is greater than a specific threshold, jump out of the update cycle, where the KL divergence (Kullback Leibler) is a numerical value that measures the difference between two probability distributions. When the update cycle reaches the set maximum number of update cycles, the training ends.
[0060] Compared with the prior art, the embodiments of the present invention can achieve the following beneficial effects:
[0061] 1) Efficiency: This method can accurately predict the state and demand of the battery pack through the reinforcement learning algorithm, and make adaptive adjustments according to the actual state of the battery pack, thereby achieving more efficient active balancing control of the battery pack.
[0062] 2) Energy consumption optimization: By strengthening the optimization and learning ability of the learning algorithm, this method can reduce the energy consumption of the battery pack during the balancing process. By reasonably adjusting the strategy and parameters in the balancing process, lower energy consumption and higher energy utilization efficiency can be achieved, thereby extending the battery pack life and reducing the system operating cost.
[0063] 3) Improve system reliability: The reinforcement learning-based method can improve the stability and reliability of battery pack energy balancing. It can respond to various abnormal conditions and changes in the battery system through self-learning and optimization, including changes in the health status of the battery pack, load fluctuations, and changes in ambient temperature. This helps to improve the stability and reliability of the system and reduce the possibility of failures.
[0064] 4) Automation and intelligence: This method realizes the automation and intelligence of battery pack energy balancing. It can automatically monitor and adjust the battery pack balancing process, reducing the need for manual intervention and management. This helps to improve the automation and intelligence level of the system and reduce labor costs and management burdens.
[0065] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0066] Through the description of the above implementation methods, those skilled in the art can clearly understand that the power balancing method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0067] According to an embodiment of the present invention, a power balancing system for implementing the above power balancing method is also provided. Figure 3 is a structural block diagram of a power balancing system provided according to an embodiment of the present invention. Figure 3 As shown, the power balancing system includes: a battery management system 31, a bidirectional power converter 32, and a plurality of switches 33. The power balancing system is described below.
[0068] The multiple switches 33 are used to connect the multiple battery cells and the bidirectional power converter.
[0069] The bidirectional power converter 32 is connected to the battery management system 31 and is used to realize the energy flow between multiple battery cells.
[0070] A battery management system 31 is connected to a plurality of battery cells and is used to obtain the working state parameters of each of the plurality of battery cells, and input the working state parameters of each of the plurality of battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the plurality of battery cells, and the switch state parameters of each of the plurality of battery cells indicate whether the plurality of battery cells are respectively connected to a bidirectional power converter, and the action set includes a plurality of candidate switch state sets for selection; according to the switch state parameters of each of the plurality of battery cells, the on and off of the plurality of switches are controlled to balance the power between the battery cells connected to the bidirectional power converter.
[0071] It should be noted here that the examples and application scenarios implemented by the above-mentioned multiple components and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0072] According to an embodiment of the present invention, a power balancing device for implementing the above power balancing method is also provided. Figure 4 is a structural block diagram of a power balancing device provided according to an embodiment of the present invention, such as Figure 4 As shown, the power balancing device includes: an acquisition module 41, a determination module 42 and a control module 43. The power balancing device is described below.
[0073] The acquisition module 41 is used to acquire the working state parameters of each of the multiple battery cells.
[0074] The determination module 42 is connected to the acquisition module 41, and is used to input the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from the action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the multiple battery cells. The action set includes multiple candidate switch state sets for selection.
[0075] The control module 43 is connected to the determination module 42, and is used to control the on and off of multiple switches according to the switch state parameters of each of the multiple battery cells to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells connected to the bidirectional power converter.
[0076] It should be noted that the acquisition module 41, the determination module 42 and the control module 43 correspond to steps S202 to S206 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.
[0077] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0078] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the power balancing method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned power balancing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal 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.
[0079] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain the working state parameters of each of the multiple battery cells; input the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from the action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize the energy flow between the multiple battery cells, and the action set includes a plurality of candidate switch state sets for selection; according to the switch state parameters of each of the multiple battery cells, control the on and off of the multiple switches to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells connected to the bidirectional power converter.
[0080] According to an embodiment of the present invention, a scheme for power balancing is provided. A reinforcement learning model is used to realize active balancing between multiple cells in a battery pack, by obtaining the working state parameters of each of the multiple cells; inputting the working state parameters of each of the multiple cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple cells, and the switch state parameters of each of the multiple cells indicate whether the multiple cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the multiple cells, and the action set includes multiple candidate switch state sets for selection; according to the switch state parameters of each of the multiple cells, the on-off of multiple switches is controlled to balance the cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple cells connected to the bidirectional power converter, and the purpose of flexibly and efficiently adjusting the power balancing method according to the actual state of the multiple cells in the battery pack is achieved, thereby achieving the technical effect of improving the efficiency of active balancing between the multiple cells in the battery pack, and thus solving the technical problem of low efficiency of active balancing between the multiple cells in the battery pack in the related art.
[0081] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0082] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the power balancing method provided in the embodiment.
[0083] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0084] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: obtaining working state parameters of each of the multiple battery cells; inputting the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the multiple battery cells, and the action set includes a plurality of candidate switch state sets to choose from; according to the switch state parameters of each of the multiple battery cells, controlling the on and off of the multiple switches to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells connected to the bidirectional power converter.
[0085] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the power balancing method in each embodiment of the present application when the computer program is executed by a processor.
[0086] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0087] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0088] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0090] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0092] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A power balancing method, characterized in that: include: Obtaining the working status parameters of multiple battery cells; Inputting the working state parameters of each of the plurality of battery cells into a pre-trained reinforcement learning model, and determining a switch state set from an action set by the reinforcement learning model, wherein the switch state set includes the switch state parameters of each of the plurality of battery cells, and the switch state parameters of each of the plurality of battery cells indicate whether the plurality of battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is used to realize energy flow between the plurality of battery cells, and the action set includes a plurality of candidate switch state sets for selection; The on and off of the multiple switches are controlled according to the switch state parameters of each of the multiple battery cells to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells and connected to the bidirectional power converter.
2. The method according to claim 1, characterized in that The reinforcement learning model is trained as follows: Acquire multiple groups of training samples, wherein the multiple groups of training samples respectively include initial working state parameters of multiple sample cells, sample switch state sets, and feedback working state parameters of the multiple sample cells; Based on a preset reward function, respectively determine the reward value of each of the multiple groups of training samples, wherein the reward value of each of the multiple groups of training samples represents whether the selected sample switch state set is worthy of reward; According to the multiple groups of training samples and the reward values of the multiple groups of training samples, the original reinforcement learning model is iteratively trained to obtain the reinforcement learning model.
3. The method according to claim 2, characterized in that The iterative training of the original reinforcement learning model according to the multiple groups of training samples and the reward values of the multiple groups of training samples to obtain the reinforcement learning model includes: Iterating the network parameters of the original reinforcement learning model according to the respective reward values of the multiple groups of training samples to obtain the original reinforcement learning model after N iterations, where N is an integer greater than 1; Determining whether the original reinforcement learning model after the N iterations satisfies a predetermined condition; When the original reinforcement learning model after N iterations meets a predetermined condition, the original reinforcement learning model after N iterations is used as the reinforcement learning model.
4. The method according to claim 3, characterized in that The determining whether the original reinforcement learning model after N iterations satisfies a predetermined condition comprises: Determine a first reward value corresponding to the action selected by the original reinforcement learning model in the action set after the N iterations; Obtain a second reward value corresponding to the action selected by the original reinforcement learning model in the action set after NM iterations, where M is a positive integer greater than 0; When the difference between the first reward value and the second reward value is not greater than a predetermined threshold, it is determined whether the original reinforcement learning model after N iterations satisfies a predetermined condition.
5. The method according to claim 2, characterized in that: The determining the reward values of the plurality of training samples respectively based on a preset reward function includes: The reward value of each of the plurality of groups of training samples is determined based on the reward function by adopting the following method to determine the reward value of the target training sample: Determining an average value of feedback voltages of each of a plurality of sample cells included in the target training sample; respectively determining the difference between the feedback voltage of each of the plurality of sample cells included in the target training sample and the average value; The difference values of the plurality of sample cells included in the target training sample are summed to obtain a reward value of the target training sample.
6. A power balancing system, characterized in that: include: Battery management system, bidirectional power converter, multiple switches, among which, The plurality of switches are used to connect the plurality of battery cells and the bidirectional power converter; The bidirectional power converter is used to realize the energy flow between the multiple battery cells; The battery management system is connected to multiple battery cells and is used to obtain the working state parameters of each of the multiple battery cells, and input the working state parameters of each of the multiple battery cells into a pre-trained reinforcement learning model, and the reinforcement learning model determines a switch state set from an action set, wherein the switch state set includes the switch state parameters of each of the multiple battery cells, and the switch state parameters of each of the multiple battery cells indicate whether the multiple battery cells are respectively connected to the bidirectional power converter, and the action set includes a plurality of candidate switch state sets for selection; according to the switch state parameters of each of the multiple battery cells, the on and off of the multiple switches are controlled to balance the power between the battery cells connected to the bidirectional power converter.
7. A power balancing device, characterized in that: include: An acquisition module, used to obtain working status parameters of each of the multiple battery cells; a determination module, configured to input the working state parameters of each of the plurality of battery cells into a pre-trained reinforcement learning model, and determine a switch state set from an action set by the reinforcement learning model, wherein the switch state set includes the switch state parameters of each of the plurality of battery cells, and the switch state parameters of each of the plurality of battery cells indicate whether the plurality of battery cells are respectively connected to a bidirectional power converter, and the bidirectional power converter is configured to realize energy flow between the plurality of battery cells, and the action set includes a plurality of candidate switch state sets for selection; A control module is used to control the on and off of multiple switches according to the switch state parameters of each of the multiple battery cells so as to balance the power between the battery cells connected to the bidirectional power converter, wherein the multiple switches are switches corresponding to the multiple battery cells and connected to the bidirectional power converter.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the power balancing method according to any one of claims 1 to 6.
9. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the power balancing method according to any one of claims 1 to 6.
10. A computer program product comprising computer instructions, characterized in that: The computer instructions are executed by a processor to execute the power balancing method according to any one of claims 1 to 6.
