Battery residual energy determination method and apparatus, electronic device, and readable storage medium
By combining multiple preset algorithms and dynamically adjusting weight values, the problem of low accuracy in determining the residual energy of retired power batteries was solved, achieving higher accuracy and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TOWER CO LTD
- Filing Date
- 2023-03-03
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, the accuracy of determining the residual energy of retired power batteries is low, and the use of a single algorithm by different manufacturers leads to inconsistent results.
K preset algorithms are used. Based on the usage data and test results of the battery under test in different time periods, the remaining energy and its weight value corresponding to each algorithm are determined. The target remaining energy is obtained by weighted summation. The weight value is dynamically adjusted to improve accuracy.
By combining multiple algorithms and dynamically adjusting weights, the accuracy and precision of determining the residual energy of retired power batteries have been improved, enhancing the reliability and acceptance of the results.
Smart Images

Figure CN116224077B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery technology, and in particular to a method, apparatus, electronic device, and readable storage medium for determining battery remaining energy. Background Technology
[0002] The rapid development of new energy vehicles has driven the rapid development of power batteries. As usage time increases, power batteries become unusable in new energy vehicles and are retired, but their capacity is not completely depleted. After retirement, the power batteries of new energy vehicles can still be used in backup power or energy storage applications.
[0003] Before reusing retired power batteries, it is necessary to assess their residual capacity (or simply, remaining energy). Currently, there are many different algorithms for calculating the remaining energy of retired power batteries, and each manufacturer usually only uses its own preset single algorithm to calculate the remaining energy of retired power batteries, resulting in low accuracy in determining the battery's remaining energy. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and readable storage medium for determining battery remaining power, in order to solve the problem of low accuracy in determining battery remaining power.
[0005] In a first aspect, embodiments of the present invention provide a method for determining battery remaining energy, including:
[0006] Using K preset algorithms, the first residual energy corresponding to each preset algorithm is determined based on the usage data of the battery under test in the first time period, where K is a positive integer greater than or equal to 2;
[0007] Determine a target difference value corresponding to each of the first residual energy values. The target difference value includes a first difference value and / or a second difference value. The first difference value is the absolute value of the difference between the first residual energy value and the second residual energy value. The second residual energy value is determined based on the usage data of the battery under test in a second time period. The second time period is after the first time period. The second difference value is the absolute value of the difference between the first residual energy value and the third residual energy value. The third residual energy value is determined based on the detection results of the battery under test.
[0008] The weight value corresponding to each first residual energy is determined based on the target difference corresponding to each first residual energy;
[0009] Based on the weight value corresponding to each of the first residual energy, the K first residual energy values are weighted and summed to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to the K first residual energy values is 1.
[0010] Optionally, the target difference includes a first difference or a second difference, and determining the weight value corresponding to each first residual energy based on the target difference corresponding to each first residual energy includes:
[0011] Determine the first preset weight corresponding to each of the first residual energy;
[0012] The first preset weight corresponding to the first target surplus energy is increased by a first correction value to obtain the weight value of the first target surplus energy. The first target surplus energy is the first surplus energy with the smallest target difference among K first surplus energies. The first preset weight corresponding to the second target surplus energy is decreased by the first correction value to obtain the weight value of the second target surplus energy. The second target surplus energy is the first surplus energy with the largest target difference among K first surplus energies.
[0013] Optionally, the target difference includes a first difference or a second difference, and determining the weight value corresponding to each first residual energy based on the target difference corresponding to each first residual energy includes:
[0014] Determine the second preset weight corresponding to each of the first residual energy;
[0015] Arrange the K first residual energies in ascending order of the target difference;
[0016] The first residual energy in the first N items is determined as the third target residual energy, and the first residual energy in the last M items is determined as the fourth target residual energy. N and M are both positive integers, and the sum of N and M is less than or equal to K.
[0017] Increase the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy, and decrease the second preset weight corresponding to the fourth target surplus energy to obtain the weight value corresponding to the fourth target surplus energy.
[0018] Optionally, increasing the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy includes:
[0019] The third correction value corresponding to the third target surplus energy is determined based on the target difference corresponding to the third target surplus energy, and the magnitude of the third correction value corresponding to the third target surplus energy is inversely proportional to the magnitude of the target difference corresponding to the third target surplus energy.
[0020] The second preset weight corresponding to each of the third target residual energy is increased by the corresponding third correction value.
[0021] Optionally, determining the third correction value corresponding to the third target residual energy based on the target difference corresponding to the third target residual energy includes:
[0022] Determine a first ratio corresponding to each of the third target residual energy, wherein the first ratio is the ratio of the target difference of the third target residual energy to a first sum, and the first sum is the sum of the target differences of N third target residual energies;
[0023] The third correction value corresponding to each of the third target residual energy is determined based on the first preset value and the first ratio corresponding to each of the third target residual energy.
[0024] Optionally, reducing the second preset weight corresponding to the fourth target residual energy to obtain the weight value corresponding to the fourth target residual energy includes:
[0025] The fourth correction value corresponding to the fourth target surplus energy is determined based on the target difference corresponding to the fourth target surplus energy, and the magnitude of the fourth correction value corresponding to the fourth target surplus energy is set proportionally to the magnitude of the target difference corresponding to the fourth target surplus energy.
[0026] Reduce the corresponding second preset weight of each of the fourth target residual energy by the corresponding fourth correction value.
[0027] Optionally, determining the fourth correction value corresponding to the fourth target residual energy based on the target difference corresponding to the fourth target residual energy includes:
[0028] Determine a second ratio corresponding to each of the fourth target residual energy, the second ratio being the ratio of the target difference of the fourth target residual energy to a second sum, the second sum being the sum of the target differences of the M fourth target residual energies;
[0029] The fourth correction value corresponding to each of the fourth target residual energy is determined based on the second preset value and the first ratio corresponding to each of the fourth target residual energy.
[0030] Secondly, embodiments of the present invention provide a battery remaining energy determination device, comprising:
[0031] The first determining module is used to determine the first residual energy corresponding to each of the K preset algorithms based on the usage data of the battery under test in the first time period, where K is a positive integer greater than or equal to 2;
[0032] The second determining module is used to determine the target difference value corresponding to each of the first residual energy values. The target difference value includes a first difference value and / or a second difference value. The first difference value is the absolute value of the difference between the first residual energy value and the second residual energy value. The second residual energy value is determined based on the usage data of the battery under test in a second time period. The second time period is after the first time period. The second difference value is the absolute value of the difference between the first residual energy value and the third residual energy value. The third residual energy value is determined based on the detection result of the battery under test.
[0033] The third determining module is used to determine the weight value corresponding to each of the first residual energy based on the target difference corresponding to each of the first residual energy;
[0034] The processing module is used to perform weighted summation on K first residual energies based on the weight value corresponding to each first residual energy to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to K first residual energies is 1.
[0035] Thirdly, embodiments of the present invention provide an electronic device, including: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is configured to read the program in the memory to implement the steps of the method described in the first aspect.
[0036] Fourthly, embodiments of the present invention provide a readable storage medium for storing a program, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0037] In this embodiment, based on the usage data of the battery under test within a first time period, a first residual energy corresponding to each of the K preset algorithms is determined. Based on the weight value corresponding to each first residual energy, the K first residual energies are weighted and summed to obtain the target residual energy of the battery under test. This method, using multiple preset algorithms, yields a more accurate and widely accepted residual energy result. Simultaneously, the weight value of the first residual energy is determined based on the target difference corresponding to each first residual energy. If the target difference includes the first difference, the usage data of the battery under test generated during the tiered utilization process can be used to dynamically adjust the weight value of the first residual energy. If the target difference includes the second difference, the detection results of the battery under test can be used to dynamically adjust the weight value of the first residual energy. Through these settings, the accuracy of the weight value corresponding to the first residual energy is improved, thereby enhancing the accuracy and precision of the final determined target residual energy of the battery under test. Attached Figure Description
[0038] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is one of the schematic diagrams of the process for determining battery remaining energy provided in the embodiments of the present invention;
[0040] Figure 2This is the second schematic diagram of the process for determining battery remaining energy provided in the embodiments of the present invention;
[0041] Figure 3 This is a structural diagram of the battery residual energy device provided in an embodiment of the present invention;
[0042] Figure 4 This is a structural diagram of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0043] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0044] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship also changes accordingly.
[0045] This invention provides a method for determining the remaining energy of a battery. This method can be used to determine the remaining energy of any battery, and the type of battery is not limited here. Exemplarily, the battery remaining energy determination method provided by this invention can be used in scenarios where the remaining energy of a retired power battery is determined. For ease of description, in subsequent embodiments, the application of this method to determining the remaining energy of a retired power battery will be used as an example for illustration.
[0046] Please see Figure 1 This invention provides a method for determining battery remaining energy, the method specifically including the following steps:
[0047] Step 101: Using K preset algorithms, determine the first residual energy corresponding to each of the K preset algorithms based on the usage data of the battery under test in the first time period, where K is a positive integer greater than or equal to 2.
[0048] In some embodiments, the usage data of the battery under test includes data such as voltage, current, temperature, and number of charge / discharge cycles measured or calculated during battery use. The usage data of the battery under test in the first time period is used to characterize the usage of the battery under test during that first time period and can also be referred to as the historical data of the battery under test.
[0049] For each of the K preset algorithms, a battery's remaining energy can be calculated based on the usage data of the battery under test during the first time period. This remaining energy is called the first remaining energy corresponding to the preset algorithm.
[0050] All preset algorithms are based on the same usage data of the battery under test in the first time period. However, due to the different preset algorithms, the first residual energy calculated for each preset algorithm may be the same or different.
[0051] The number of preset algorithms is greater than or equal to two, and its specific value can be set and adjusted according to actual needs. In specific implementation, the more preset algorithms there are, the more accurate the battery remaining energy determined by the battery remaining energy determination method provided in this embodiment of the invention will be.
[0052] In practical applications, there are many types of preset algorithms, and different manufacturers may design different algorithms to determine the battery's remaining energy. This method can use algorithms designed by multiple manufacturers as preset algorithms. Since the preset algorithms in this method can come from different market players, both supply and demand sides, the acceptance of the battery's remaining energy determined by the method provided in this application can be improved.
[0053] It should be understood that the specific content of the preset algorithm is not limited here, and the preset algorithm can be any algorithm. For ease of understanding, some preset algorithms will be used as examples below. For example, in some embodiments, the preset algorithm can be an experience-based battery remaining energy determination algorithm and / or a performance-based battery remaining energy prediction algorithm.
[0054] Furthermore, in some embodiments, the experience-based battery remaining energy determination algorithm includes at least one of the following: cycle count method, ampere-hour method, weighted ampere-hour method, and event-oriented aging accumulation method. The cycle count method counts the battery's cycle times; when the number of cycles reaches a certain range, the battery is considered to have reached the end of its service life. This method needs to consider the impact of different cycle conditions and cycle states on cycle life, and determines the battery life based on both experience and standard parameters. The total ampere-hours that a battery can handle throughout its entire charging and discharging process from new to old should be a constant value. The ampere-hour method considers that the battery has reached the end of its service life when the accumulated ampere-hours reach a certain level. The weighted ampere-hour method considers that the degree of damage to the battery's lifespan varies when the same amount of electricity is discharged under different conditions; therefore, when the accumulated ampere-hours after multiplying the discharged electricity by a weighting coefficient reaches a certain value, the battery is considered to have reached the end of its service life. The event-based aging accumulation method first requires defining the specific events that cause battery life loss. Generally, each event has a scale describing the degree of damage. The method monitors the occurrence of events during battery use, accumulates the battery life degradation caused by each event, and gives the remaining life of the current battery.
[0055] In other embodiments, the performance-based battery residual energy prediction algorithm includes at least one of the following: mechanism-based residual energy prediction, feature-based residual energy prediction, and data-driven residual energy prediction. Mechanism-based residual energy prediction analyzes and establishes a battery operating mechanism model and aging model from the perspective of the battery's inherent mechanism, describes the battery's aging behavior from the perspective of electrochemical principles, and predicts battery life through analysis of the battery model. Feature-based residual energy prediction utilizes the evolution of characteristic parameters exhibited during battery aging to establish a correspondence between characteristic quantities and battery life for life prediction. Data-driven residual energy prediction utilizes battery performance test data to mine the patterns of battery performance evolution for life prediction. For example, analytical models obtained by data fitting and artificial neural network models are both data-driven methods. Exemplarily, in specific implementations, data-driven residual energy prediction includes at least one of the following: Support Vector Machine (SVM), Auto Regressive Moving Average (ARMA), Particle Filtering (PF), etc.
[0056] Step 102: Determine the target difference value corresponding to each of the first residual energy values. The target difference value includes a first difference value and / or a second difference value. The first difference value is the absolute value of the difference between the first residual energy value and the second residual energy value. The second residual energy value is determined based on the usage data of the battery under test in a second time period. The second time period is after the first time period. The second difference value is the absolute value of the difference between the first residual energy value and the third residual energy value. The third residual energy value is determined based on the detection results of the battery under test.
[0057] In this embodiment of the application, the second time period is located after the first time period. The battery remaining energy determined by the method provided in this application is the battery remaining energy of the battery under test after the first time period of use and before the second time period of use begins.
[0058] To facilitate understanding, the following explanation uses retired power batteries as an example. For retired power batteries, the first time period can be understood as the period during which the battery was used in new energy vehicles, and the second time period can be understood as the period during which the battery continued to be used in backup power, energy storage, and other tiered application scenarios. This method can determine the residual energy of a retired power battery before it is put into backup power, energy storage, and other tiered application scenarios after being retired from a new energy vehicle.
[0059] It should be understood that the length of the second time period is not limited here. When retired power batteries are used in backup power, energy storage, and other tiered application scenarios, the degradation rate of retired power batteries is relatively slow. Therefore, the second residual energy determined based on the usage data of the battery under test during the second time period can be used to characterize the battery residual energy before it is put into backup power, energy storage, and other tiered application scenarios after being retired from new energy vehicles. In some embodiments, the second residual energy can also be referred to as post-evaluation data.
[0060] The third residual energy is obtained by a third-party testing agency after testing the battery under test for the first period of use. Because third-party testing agencies have a high level of expertise in testing the batteries under test, the accuracy and precision of the third residual energy are higher than those of the first and second residual energy. The third residual energy can accurately characterize the residual energy of retired power batteries at the time of retirement.
[0061] Step 103: Determine the weight value corresponding to each of the first residual energy based on the target difference corresponding to each of the first residual energy.
[0062] When the target difference includes the first difference, the weight value of the first surplus energy can be adjusted and corrected based on the absolute value of the difference between the first and second surplus energy. For any given first surplus energy, the smaller the absolute value of the difference between the first and second surplus energy, the closer the first surplus energy is to the surplus energy determined based on the usage data of the battery under test during the second time period. This indicates that the preset algorithm used to calculate the first surplus energy is more advantageous, or that the preset algorithm has higher accuracy. In this case, it is equivalent to using post-evaluation data to correct the weight value of the first surplus energy, making the weight value of the first surplus energy more reasonable.
[0063] When the target difference includes a second difference, the weight value of the first residual energy can be adjusted and corrected based on the absolute value of the difference between the first and third residual energy. For any given first residual energy, the smaller the absolute value of the difference between the first and third residual energy, the closer the first residual energy is to the detection result of the battery under test, indicating that the preset algorithm used to calculate the first residual energy is more advantageous, or that the preset algorithm has higher accuracy. In this case, it is equivalent to using the detection data from a third-party testing agency to correct the weight value of the first residual energy, making the weight value of the first residual energy more reasonable.
[0064] Optionally, in some embodiments, the target difference includes a first difference or a second difference, and step 103 includes:
[0065] Determine the first preset weight corresponding to each of the first residual energy;
[0066] The first preset weight corresponding to the first target surplus energy is increased by a first correction value to obtain the weight value of the first target surplus energy. The first target surplus energy is the first surplus energy with the smallest target difference among K first surplus energies. The first preset weight corresponding to the second target surplus energy is decreased by the first correction value to obtain the weight value of the second target surplus energy. The second target surplus energy is the first surplus energy with the largest target difference among K first surplus energies.
[0067] The weight value corresponding to the first surplus energy can also be referred to as the weight value corresponding to the preset algorithm used to calculate the first surplus energy. By setting the weight value corresponding to the first surplus energy, the weight of the preset algorithm used to calculate the first surplus energy can be reflected, thus characterizing the quality of the preset algorithm.
[0068] In some embodiments, a first preset weight corresponding to each first surplus energy can be preset based on experience or pre-evaluation of each preset algorithm. In other embodiments, the first preset weight corresponding to each first surplus energy can be determined based on the number of preset algorithms, such that the first preset weight corresponding to each first surplus energy is the same. The sum of the first preset weights corresponding to K first surplus energies is 1.
[0069] In this embodiment, the target difference includes a first difference or a second difference. The first correction value when the target difference includes the first difference may be the same as or different from the first correction value when the target difference includes the second difference.
[0070] It should be noted that when the target difference includes a first difference and a second difference, the method provided in this embodiment can be executed according to the first difference and the second difference respectively to determine the final weight value corresponding to each first surplus energy. In this embodiment, only the first preset weights corresponding to the first target surplus energy and the second target surplus energy are adjusted, while the weight values corresponding to other first surplus energies are the first preset weights corresponding to the first surplus energy.
[0071] To facilitate understanding, the following explanation will use retired power batteries as an example. Please refer to [link / reference]. Figure 2 .
[0072] Define the set of all remaining energy estimation methods as A = [A1A2...A...]. K ] T The usage data of retired power batteries in new energy vehicles (i.e., within the first time period) is denoted as U, and the first residual energy calculated by K preset algorithms is denoted as A(U) = [A1(U)A2(U)...A K (U)] T Let a = [a1a2...a3] be the set of the first preset weights of the K first coherent energies. K ],and i is an integer greater than 0 and less than K.
[0073] Example 1
[0074] If the target difference includes the first difference, the first correction value is denoted as ε. b , ε b ∈(0,1), the second coenergy is denoted as M b .
[0075] When the absolute value of the difference between the first and second surplus energy is minimized by a certain preset algorithm, the first surplus energy is determined as the first target surplus energy, and the weight value corresponding to the first target surplus energy satisfies:
[0076]
[0077] When the absolute value of the difference between the first and second residual energy is maximized by a certain preset algorithm, the first residual energy is determined as the second target residual energy, and the weight value corresponding to the second target residual energy satisfies:
[0078]
[0079] The weights of the K first surplus energies, excluding the first target surplus energy and the second target surplus energy, are the first preset weights corresponding to the first surplus energy.
[0080] Example 2
[0081] If the target difference includes the second difference, the first correction value is denoted as ε. t , ε t ∈(0,1), the third cofactor is denoted as M t .
[0082] When the absolute value of the difference between the first and third surplus energy is minimized by a certain preset algorithm, the first surplus energy is determined as the first target surplus energy, and the weight value corresponding to the first target surplus energy satisfies:
[0083]
[0084] When the absolute value of the difference between the first and third residual energy is maximized by a certain preset algorithm, the first residual energy is determined as the second target residual energy, and the weight value corresponding to the second target residual energy satisfies:
[0085]
[0086] The weights of the K first surplus energies, excluding the first target surplus energy and the second target surplus energy, are the first preset weights corresponding to the first surplus energy.
[0087] Example 3
[0088] It should be understood that the first target surplus energy determined in Embodiment 1 may be the same as or different from the first target surplus energy determined in Embodiment 2. Similarly, the second target surplus energy determined in Embodiment 1 may be the same as or different from the second target surplus energy determined in Embodiment 2.
[0089] When the target difference includes a first difference and a second difference, the weight value of each first surplus energy is determined sequentially according to the steps shown in Embodiment 1 and Embodiment 2, wherein either Embodiment 1 or Embodiment 2 can be executed first. For example, when Embodiment 1 is executed first, when Embodiment 2 is executed, the first preset weight corresponding to the K first surplus energy is the weight value corresponding to the K first surplus energy determined in Embodiment 1.
[0090] It should be noted that after determining the weight values corresponding to the first and second target residual energy, the sum of the weight values of the K first residual energies is still equal to 1.
[0091] In this embodiment, a first preset weight is determined for each first surplus energy; a first correction value is added to the first preset weight corresponding to the first target surplus energy to obtain the weight value of the first target surplus energy; and the first preset weight corresponding to the second target surplus energy is subtracted from the first correction value to obtain the weight value of the second target surplus energy. Through the above settings, only the weight values of the first and second target surplus energies need to be adjusted, improving the convenience and efficiency of determining the weight values corresponding to K first surplus energies.
[0092] Optionally, in some embodiments, the target difference includes a first difference or a second difference, and step 103 includes:
[0093] Determine the second preset weight corresponding to each of the first residual energy;
[0094] Arrange the K first residual energies in ascending order of the target difference;
[0095] The first residual energy in the first N items is determined as the third target residual energy, and the first residual energy in the last M items is determined as the fourth target residual energy. N and M are both positive integers, and the sum of N and M is less than or equal to K.
[0096] Increase the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy, and decrease the second preset weight corresponding to the fourth target surplus energy to obtain the weight value corresponding to the fourth target surplus energy.
[0097] In some embodiments, the weight values are corrected using addition or subtraction based on preset weights according to the correction value. In other embodiments, other mathematical methods for increasing or decreasing the weight values may be used instead, including but not limited to multiplication, division, exponentiation, logarithm, power, square root, etc.
[0098] In some embodiments, a second preset weight corresponding to each first surplus energy can be preset based on experience or pre-evaluation of various preset algorithms. In other embodiments, the second preset weight corresponding to each first surplus energy can be determined based on the number of preset algorithms, such that the second preset weight corresponding to each first surplus energy is the same.
[0099] The sum of the second preset weights corresponding to the K first surplus energies is 1. Therefore, in order to balance the weight values corresponding to the K first surplus energies, the K first surplus energies are divided into third target surplus energies and fourth target surplus energies. The sum of the increases in the second preset weights corresponding to all third target surplus energies is equal to the sum of the decreases in the second preset weights corresponding to all fourth target surplus energies.
[0100] It should be understood that N and M are both positive integers, the sum of N and M is less than or equal to K, and the values of N and M may be equal or unequal. In some embodiments, N and M are equal, and the sum of N and M is equal to K or equal to K-1.
[0101] In this embodiment, K first redundant functions are arranged in ascending order based on the target difference. The smaller the target difference corresponding to a first redundant function, the greater the second preset weight corresponding to that first redundant function; conversely, the greater the target difference corresponding to a first redundant function, the less the second preset weight corresponding to that first redundant function. Through this setting, the accuracy of the weight values corresponding to the K first redundant functions can be improved, and the accuracy of each preset algorithm can be better reflected by the weight values.
[0102] Optionally, in some embodiments, increasing the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy includes:
[0103] The third correction value corresponding to the third target surplus energy is determined based on the target difference corresponding to the third target surplus energy, and the magnitude of the third correction value corresponding to the third target surplus energy is inversely proportional to the magnitude of the target difference corresponding to the third target surplus energy.
[0104] The second preset weight corresponding to each of the third target residual energy is increased by the corresponding third correction value.
[0105] After determining N third target residual energies, the third correction value corresponding to the third target residual energy is determined based on the magnitude of the target difference of the third target residual energy. The smaller the target difference of the third target residual energy, the more third correction values it corresponds to, and the more the second preset weight corresponding to the third target residual energy increases, thereby achieving the purpose of increasing the weight value of the third target residual energy.
[0106] Optionally, in some embodiments, determining the third correction value corresponding to the third target residual energy based on the target difference corresponding to the third target residual energy includes:
[0107] Determine a first ratio corresponding to each of the third target residual energy, wherein the first ratio is the ratio of the target difference of the third target residual energy to a first sum, and the first sum is the sum of the target differences of N third target residual energies;
[0108] The third correction value corresponding to each of the third target residual energy is determined based on the first preset value and the first ratio corresponding to each of the third target residual energy.
[0109] It should be understood that the first preset value is not limited here, and it is a natural number greater than 0 and less than 1. The first preset value is the sum of the increases in the second preset weights corresponding to all third target residual energies.
[0110] In this embodiment, based on the target differences of N third target surplus energies, a first preset value is proportionally allocated to the N third target surplus energies, such that the smaller the target difference, the larger the third correction value corresponding to the third target surplus energy. Through this setting, the method for determining the weight value corresponding to the first surplus energy can be further refined, making the adjustment of the weight value corresponding to the first surplus energy more accurate and precise.
[0111] Optionally, in some embodiments, reducing the second preset weight corresponding to the fourth target residual energy to obtain the weight value corresponding to the fourth target residual energy includes:
[0112] The fourth correction value corresponding to the fourth target surplus energy is determined based on the target difference corresponding to the fourth target surplus energy, and the magnitude of the fourth correction value corresponding to the fourth target surplus energy is set proportionally to the magnitude of the target difference corresponding to the fourth target surplus energy.
[0113] Reduce the corresponding second preset weight of each of the fourth target residual energy by the corresponding fourth correction value.
[0114] After determining M fourth target residual energies, the fourth correction value corresponding to the fourth target residual energy is determined based on the magnitude of the target difference of the fourth target residual energy. The larger the target difference of the fourth target residual energy, the more third correction values it corresponds to, and the more the second preset weight of the fourth target residual energy is reduced, thereby achieving the purpose of reducing the weight value of the fourth target residual energy.
[0115] Optionally, in some embodiments, determining the fourth correction value corresponding to the fourth target residual energy based on the target difference corresponding to the fourth target residual energy includes:
[0116] Determine a second ratio corresponding to each of the fourth target residual energy, the second ratio being the ratio of the target difference of the fourth target residual energy to a second sum, the second sum being the sum of the target differences of the M fourth target residual energies;
[0117] The fourth correction value corresponding to each of the fourth target residual energy is determined based on the second preset value and the first ratio corresponding to each of the fourth target residual energy.
[0118] It should be understood that the second preset value is not limited here; it is a natural number greater than 0 and less than 1. The second preset value is the sum of the reductions in the second preset weights corresponding to all fourth objective residual energies.
[0119] In this embodiment, based on the target differences of the M fourth target surplus energies, a second preset value is proportionally allocated to the M fourth target surplus energies, such that the fourth target surplus energie with the larger target difference corresponds to a larger third correction value. Through the above setting, the method for determining the weight value corresponding to the first surplus energie can be further refined, making the adjustment of the weight value corresponding to the first surplus energie more accurate and precise.
[0120] Step 104: Based on the weight value corresponding to each of the first residual energy, perform a weighted summation on the K first residual energy values to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to the K first residual energy values is 1.
[0121] The set of weight values corresponding to the K first residual energies determined in step 103 is denoted as a' = [a1'a2'...a...]. K '], The target residual energy M of the battery under test then satisfies:
[0122]
[0123] In this embodiment, based on the usage data of the battery under test within a first time period, a first residual energy corresponding to each of the K preset algorithms is determined. Based on the weight value corresponding to each first residual energy, the K first residual energies are weighted and summed to obtain the target residual energy of the battery under test. This method, using multiple preset algorithms, yields a more accurate and widely accepted residual energy result. Simultaneously, the weight value of the first residual energy is determined based on the target difference corresponding to each first residual energy. If the target difference includes the first difference, the usage data of the battery under test generated during the tiered utilization process can be used to dynamically adjust the weight value of the first residual energy. If the target difference includes the second difference, the detection results of the battery under test can be used to dynamically adjust the weight value of the first residual energy. Through these settings, the accuracy of the weight value corresponding to the first residual energy is improved, thereby enhancing the accuracy and precision of the final determined target residual energy of the battery under test.
[0124] In the embodiments of this invention, the application of usage data at different stages of the battery's entire life cycle is considered, and is divided into three aspects: post-evaluation, preset algorithm, and detection results. In specific implementation, the target difference may also include the difference between the first remaining energy and other data. Other data can be understood to essentially be categorized into one or more of the following: post-evaluation, remaining energy prediction algorithm, and third-party detection results, but with different names.
[0125] In one specific embodiment, the battery remaining energy determination method provided in this embodiment can be used to iteratively determine the remaining energy of multiple batteries under test. Each time the remaining energy of a battery under test is determined by this method, the weight values of the K first remaining energy parameters in this method can be updated. Updating the weight values of the K first remaining energy parameters is equivalent to updating the weight values of the K preset algorithms, resulting in higher weight values for preset algorithms that yield more accurate calculation results.
[0126] In this embodiment, the weight value corresponding to the first remaining energy determined by this method each time can be used as the first preset weight or the second preset weight corresponding to the first remaining energy in the next execution of this method. When using this method to determine the remaining energy of multiple batteries under test, the weight values corresponding to the K preset algorithms are gradually optimized. Therefore, in the process of continuously using this method to determine the remaining energy of the battery, the accuracy of the weight values of the K preset algorithms can be gradually improved.
[0127] In some embodiments, for the i-th battery under test, K preset algorithms can be directly used to determine the first residual energy corresponding to each of the K preset algorithms based on the usage data of the i-th battery under test within a first time period. Based on the weight value corresponding to each first residual energy, the K first residual energies are weighted and summed to obtain the target residual energy of the i-th battery under test. Then, based on the data corresponding to the i-th battery under test, the target difference corresponding to each first residual energy is determined, and the weight value corresponding to each first residual energy is updated based on the target difference corresponding to each first residual energy.
[0128] For the (i+1)th battery under test, K preset algorithms can be directly used. Based on the usage data of the (i+1)th battery under test within the first time period, the first surplus energy corresponding to each of the K preset algorithms can be determined. Based on the weight value corresponding to each first surplus energy, the K first surplus energies are weighted and summed to obtain the target surplus energy of the (i+1)th battery under test. The weight value corresponding to the first surplus energy used by the (i+1)th battery under test is the weight value corresponding to the first surplus energy after being updated based on the data corresponding to the ith battery under test.
[0129] To facilitate understanding, a specific embodiment will be used as an example for illustration below.
[0130] Example 4
[0131] Define the set of all remaining energy estimation methods as A = [A1A2...A...]. K ] T The usage data of retired power batteries in new energy vehicles (i.e., within the first time period) is denoted as U, and the first residual energy calculated by K preset algorithms is denoted as A(U) = [A1(U)A2(U)...A K (U)] T ,and i is an integer greater than 0 and less than K.
[0132] In this embodiment, the target difference includes the first difference as an example for explanation, and the second residual energy is denoted as M. b Let c be the first difference corresponding to the i-th first coherent energy. i =M b -A i (U), preset ε b , ε b ∈(0,1). By comparing c i All ε are allocated proportionally. b When the first residual energy calculated by a certain preset algorithm is closer to the second residual energy, the weight value allocated by the preset algorithm will receive a larger share of the correction value, and the sum of the weight values will remain unchanged at 1.
[0133] For the Lth battery to be tested determined using this method, the adjusted weight value corresponding to the first residual energy of the i-th battery (or the weight value corresponding to the i-th preset algorithm) satisfies:
[0134]
[0135] Among them, a i L-1 This is used to characterize the weight value corresponding to the i-th first residual energy determined when using this method to determine the L-1-th battery under test.
[0136] In this embodiment, 1 / L can be referred to as the harmonic series. In this embodiment, by setting the harmonic series, the changing trend of the weight values can be smoothed. However, the harmonic series itself does not converge, which may lead to some algorithms having weight values exceeding 1, while others may have values less than 0. By setting ε... b The specific value of can ensure that the divergence rate of the harmonic series does not increase significantly with the value of i.
[0137] Of course, in practice, the correction factor used to make the weight values converge and smooth quickly is not unique. It can be replaced by any mathematical method that is conducive to the rapid convergence of data, or no correction factor can be set, and the weight values can be naturally converged by the amount of data.
[0138] The case where the target difference includes the second difference can be referred to in the description of Example 4 above. To avoid repetition, it will not be repeated here.
[0139] In practical implementation, testing the batteries under test is costly and time-consuming. Therefore, in some embodiments, when using this method to determine the remaining energy of multiple batteries under test, a portion of the batteries can be periodically and / or selected according to a preset ratio for testing. Thus, when determining the remaining energy of multiple batteries under test, the target difference for different batteries can be a first difference and / or a second difference.
[0140] In this application embodiment, firstly, multiple preset algorithms are introduced for residual energy calculation, ensuring the compatibility of the method. In practical applications, algorithms provided by different market entities can be incorporated into the residual energy assessment system, effectively addressing the issue of market fairness. Secondly, post-assessment data generated during the tiered utilization process is introduced and compared with the residual energy results calculated by multiple preset algorithms in the early stages. Dynamic feedback adjusts the weight values of each preset algorithm, resulting in more comprehensive data, wider algorithm coverage, and improved accuracy. Thirdly, a third-party testing agency is introduced to randomly inspect batteries at a certain proportion, effectively addressing the issue of assessment accuracy.
[0141] This invention also provides a battery remaining power determination device. See [link to related document]. Figure 3 , Figure 3 This is a structural diagram of the battery remaining energy determination device provided in an embodiment of the present invention. Since the principle by which the battery remaining energy determination device solves the problem is similar to the battery remaining energy determination method in this embodiment of the present invention, the implementation of this battery remaining energy determination device can refer to the implementation of the method, and repeated details will not be elaborated further.
[0142] like Figure 3 As shown, an embodiment of the present invention provides a battery remaining energy determination device 300, comprising:
[0143] The first determining module 301 is used to determine the first residual energy corresponding to each of the K preset algorithms based on the usage data of the battery under test in the first time period using K preset algorithms, where K is a positive integer greater than or equal to 2.
[0144] The second determining module 302 is used to determine a target difference value corresponding to each of the first residual energy values. The target difference value includes a first difference value and / or a second difference value. The first difference value is the absolute value of the difference between the first residual energy value and the second residual energy value. The second residual energy value is determined based on the usage data of the battery under test in a second time period. The second time period is after the first time period. The second difference value is the absolute value of the difference between the first residual energy value and the third residual energy value. The third residual energy value is determined based on the detection result of the battery under test.
[0145] The third determining module 303 is used to determine the weight value corresponding to each first residual energy based on the target difference corresponding to each first residual energy.
[0146] The processing module 304 is used to perform weighted summation on K first residual energies based on the weight value corresponding to each first residual energy to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to K first residual energies is 1.
[0147] Optionally, the target difference includes a first difference or a second difference, and the third determining module 303 includes:
[0148] The first determining unit is used to determine the first preset weight corresponding to each of the first residual energy;
[0149] The first processing unit is configured to add a first correction value to the first preset weight corresponding to the first target surplus energy to obtain the weight value of the first target surplus energy, wherein the first target surplus energy is the first surplus energy with the smallest target difference among K first surplus energies, and to subtract the first correction value from the first preset weight corresponding to the second target surplus energy to obtain the weight value of the second target surplus energy, wherein the second target surplus energy is the first surplus energy with the largest target difference among K first surplus energies.
[0150] Optionally, the target difference includes a first difference or a second difference, and the third determining module 303 includes:
[0151] The second determining unit is used to determine the second preset weight corresponding to each of the first residual energy;
[0152] An arrangement unit is used to arrange K of the first residual energy values in ascending order according to the target difference;
[0153] The third determining unit is used to determine the first residual energy in the first N items as the third target residual energy and the first residual energy in the last M items as the fourth target residual energy, where N and M are both positive integers and the sum of N and M is less than or equal to K.
[0154] The second processing unit is used to increase the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy, and to decrease the second preset weight corresponding to the fourth target surplus energy to obtain the weight value corresponding to the fourth target surplus energy.
[0155] Optionally, the second processing unit is specifically used for:
[0156] The third correction value corresponding to the third target surplus energy is determined based on the target difference corresponding to the third target surplus energy, and the magnitude of the third correction value corresponding to the third target surplus energy is inversely proportional to the magnitude of the target difference corresponding to the third target surplus energy.
[0157] The second preset weight corresponding to each of the third target residual energy is increased by the corresponding third correction value.
[0158] Optionally, the second processing unit is specifically used for:
[0159] Determine a first ratio corresponding to each of the third target residual energy, wherein the first ratio is the ratio of the target difference of the third target residual energy to a first sum, and the first sum is the sum of the target differences of N third target residual energies;
[0160] The third correction value corresponding to each of the third target residual energy is determined based on the first preset value and the first ratio corresponding to each of the third target residual energy.
[0161] Optionally, the second processing unit is specifically used for:
[0162] The fourth correction value corresponding to the fourth target surplus energy is determined based on the target difference corresponding to the fourth target surplus energy, and the magnitude of the fourth correction value corresponding to the fourth target surplus energy is set proportionally to the magnitude of the target difference corresponding to the fourth target surplus energy.
[0163] Reduce the corresponding second preset weight of each of the fourth target residual energy by the corresponding fourth correction value.
[0164] Optionally, the second processing unit is specifically used for:
[0165] Determine a second ratio corresponding to each of the fourth target residual energy, the second ratio being the ratio of the target difference of the fourth target residual energy to a second sum, the second sum being the sum of the target differences of the M fourth target residual energies;
[0166] The fourth correction value corresponding to each of the fourth target residual energy is determined based on the second preset value and the first ratio corresponding to each of the fourth target residual energy.
[0167] The battery remaining energy determination device 300 provided in this embodiment of the invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.
[0168] like Figure 4 As shown, this embodiment of the invention also provides an electronic device 400, including a processor 401, a memory 402, and a program or instructions stored in the memory 402 and executable on the processor 401. When the program or instructions are executed by the processor 401, they implement the following: Figure 1 The various processes of the method embodiments shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0169] This invention also provides a readable storage medium storing a program or instructions that, when executed by a processor, implement as follows: Figure 1 The various processes of the method embodiments shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0170] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0171] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.
[0172] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the transmission and reception methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0173] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for determining battery remaining energy, characterized in that, include: Using K preset algorithms, the first residual energy corresponding to each preset algorithm is determined based on the usage data of the battery under test in the first time period, where K is a positive integer greater than or equal to 2; A target difference is determined for each of the first remaining energy values. The target difference includes a first difference and a second difference. The first difference is the absolute value of the difference between the first remaining energy and the second remaining energy. The second remaining energy is determined based on the usage data of the battery under test during a second time period, which is after the first time period. The second difference is the absolute value of the difference between the first remaining energy and the third remaining energy. The third remaining energy is determined based on the test results, which are obtained by a third-party testing organization testing the battery under test used during the first time period. The first time period is the time period during which the battery under test is used, and the second time period is the time period during which the battery under test continues to be used in a tiered application scenario. The weight value corresponding to each first residual energy is determined based on the target difference corresponding to each first residual energy; Based on the weight value corresponding to each of the first residual energy, the K first residual energy values are weighted and summed to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to the K first residual energy values is 1. The target difference includes a first difference and a second difference. Determining the weight value corresponding to each of the first residual energies based on the target difference corresponding to each of the first residual energies includes: Determine the second preset weight corresponding to each of the first residual energy; Arrange the K first residual energies in ascending order of the target difference; The first residual energy in the first N items is determined as the third target residual energy, and the first residual energy in the last M items is determined as the fourth target residual energy. N and M are both positive integers, and the sum of N and M is less than or equal to K. Increase the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy, and decrease the second preset weight corresponding to the fourth target surplus energy to obtain the weight value corresponding to the fourth target surplus energy.
2. The method according to claim 1, characterized in that, The target difference includes a first difference and a second difference. Determining the weight value corresponding to each of the first residual energies based on the target difference corresponding to each of the first residual energies includes: Determine the first preset weight corresponding to each of the first residual energy; The first preset weight corresponding to the first target surplus energy is increased by a first correction value to obtain the weight value of the first target surplus energy. The first target surplus energy is the first surplus energy with the smallest target difference among K first surplus energies. The first preset weight corresponding to the second target surplus energy is decreased by the first correction value to obtain the weight value of the second target surplus energy. The second target surplus energy is the first surplus energy with the largest target difference among K first surplus energies.
3. The method according to claim 1, characterized in that, The step of increasing the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy includes: The third correction value corresponding to the third target surplus energy is determined based on the target difference corresponding to the third target surplus energy, and the magnitude of the third correction value corresponding to the third target surplus energy is inversely proportional to the magnitude of the target difference corresponding to the third target surplus energy. The second preset weight corresponding to each of the third target residual energy is increased by the corresponding third correction value.
4. The method according to claim 3, characterized in that, Determining the third correction value corresponding to the third target residual energy based on the target difference corresponding to the third target residual energy includes: Determine a first ratio corresponding to each of the third target residual energy, wherein the first ratio is the ratio of the target difference of the third target residual energy to a first sum, and the first sum is the sum of the target differences of N third target residual energies; The third correction value corresponding to each of the third target residual energy is determined based on the first preset value and the first ratio corresponding to each of the third target residual energy.
5. The method according to claim 1, characterized in that, The step of reducing the second preset weight corresponding to the fourth target residual energy to obtain the weight value corresponding to the fourth target residual energy includes: The fourth correction value corresponding to the fourth target surplus energy is determined based on the target difference corresponding to the fourth target surplus energy, and the magnitude of the fourth correction value corresponding to the fourth target surplus energy is set proportionally to the magnitude of the target difference corresponding to the fourth target surplus energy. Reduce the corresponding second preset weight of each of the fourth target residual energy by the corresponding fourth correction value.
6. The method according to claim 5, characterized in that, The step of determining the fourth correction value corresponding to the fourth target residual energy based on the target difference corresponding to the fourth target residual energy includes: Determine a second ratio corresponding to each of the fourth target residual energy, the second ratio being the ratio of the target difference of the fourth target residual energy to a second sum, the second sum being the sum of the target differences of the M fourth target residual energies; The fourth correction value corresponding to each of the fourth target residual energy is determined based on the second preset value and the first ratio corresponding to each of the fourth target residual energy.
7. A battery residual energy determination device, characterized in that, include: The first determining module is used to determine the first residual energy corresponding to each of the K preset algorithms based on the usage data of the battery under test in the first time period, where K is a positive integer greater than or equal to 2; The second determining module is used to determine a target difference value corresponding to each of the first residual energy values. The target difference value includes a first difference value and a second difference value. The first difference value is the absolute value of the difference between the first residual energy value and the second residual energy value. The second residual energy value is determined based on the usage data of the battery under test during a second time period. The second time period is after the first time period. The second difference value is the absolute value of the difference between the first residual energy value and the third residual energy value. The third residual energy value is determined based on the detection results of the battery under test. The first time period is the time period during which the battery under test is used, and the second time period is the time period during which the battery under test continues to be used in a tiered application scenario. The third determining module is used to determine the weight value corresponding to each of the first residual energy based on the target difference corresponding to each of the first residual energy; The processing module is used to perform weighted summation on K first residual energies based on the weight value corresponding to each first residual energy to obtain the target residual energy of the battery under test. The weight value is a natural number greater than 0 and less than 1, and the sum of the weight values corresponding to K first residual energies is 1. The third determining module includes: The second determining unit is used to determine the second preset weight corresponding to each of the first residual energy; The arrangement unit is used to arrange K of the first residual energy values in ascending order according to the target difference; The third determining unit is used to determine the first residual energy in the first N items as the third target residual energy and the first residual energy in the last M items as the fourth target residual energy, where N and M are both positive integers and the sum of N and M is less than or equal to K. The second processing unit is used to increase the second preset weight corresponding to the third target surplus energy to obtain the weight value corresponding to the third target surplus energy, and to decrease the second preset weight corresponding to the fourth target surplus energy to obtain the weight value corresponding to the fourth target surplus energy.
8. An electronic device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that, The processor is configured to read a program from memory to implement the steps of the method as described in any one of claims 1 to 6.
9. A readable storage medium for storing a program, characterized in that, When the program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.