Method, device and equipment for evaluating residual capacity of storage battery and storage medium

By using a pre-trained evaluation model and historical terminal voltage data to predict the battery's discharge back-end voltage, the problems of low evaluation efficiency and battery damage in the existing technology are solved, and efficient remaining capacity evaluation is achieved.

CN118795342APending Publication Date: 2024-10-18CHINA MOBILE GROUP ZHEJIANG +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311632587.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The remaining capacity evaluation method of valve-regulated lead-acid batteries in the prior art is inefficient and adversely affects the battery, resulting in a shortened cycle life.

Method used

By obtaining the battery's historical terminal voltage data and discharge duration, a pre-trained evaluation model is used to predict the terminal voltage data after discharge, thereby evaluating the remaining capacity and avoiding full-capacity discharge testing.

Benefits of technology

It improves the evaluation efficiency, reduces the damage to the battery, and achieves accurate prediction of the remaining capacity without the need for time-consuming and laborious full-capacity discharge testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795342A_ABST
    Figure CN118795342A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for evaluating the residual capacity of a storage battery, electronic equipment and a computer readable storage medium, which are used for solving the problems of low efficiency and adverse effect on the storage battery in the residual capacity evaluation method adopted in the prior art. The method comprises the steps of obtaining a plurality of historical terminal voltage data when a target storage battery is in a discharge state; inputting a data set constructed based on the plurality of historical terminal voltage data and the data of the first target discharge duration into a pre-trained evaluation model of the residual capacity of the storage battery so as to trigger the evaluation model to execute; and outputting predicted terminal voltage data after the target storage battery is discharged for the first target discharge duration, and taking the predicted terminal voltage data as a residual capacity evaluation result of the target storage battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for evaluating the remaining capacity of a battery. Background Art

[0002] Valve-regulated lead-acid batteries are a type of lead-acid batteries. Their features include: no need to add acid or water for maintenance during use, the battery is a sealed structure, will not leak acid, and will not emit acid mist. The term "valve-regulated" comes from the fact that there is a one-way exhaust valve (also called a safety valve) on the battery cover. The function of this valve is that when the amount of gas inside the battery exceeds a certain value (usually expressed as an air pressure value), that is, when the air pressure inside the battery rises to a certain value, the exhaust valve automatically opens to exhaust the gas, and then automatically closes the valve to prevent air from entering the battery.

[0003] Valve-regulated lead-acid batteries are an important component of the uninterruptible power supply system of a data center. Accurate prediction of the remaining capacity of battery cells can estimate the backup time, which is an important basis for ensuring the business continuity and security of the data center.

[0004] According to the prior art, the remaining capacity of a valve-regulated lead-acid battery is evaluated by performing a periodic verification full-capacity discharge test (also called a full-capacity verification charge and discharge test) to simulate and verify whether the battery's operating status is normal. Through such a simulation, a discharge curve of the battery can be drawn, thereby facilitating the subsequent prediction of the remaining capacity of the battery based on the discharge curve.

[0005] The problem with this evaluation method is that the valve-regulated lead-acid battery needs to be removed from the DC system, and then a temporary load needs to be installed for testing, and the battery needs to be discharged continuously for 3 hours until the battery capacity is exhausted. This is time-consuming, labor-intensive, and inefficient, and it may also accelerate battery aging and shorten the battery's cycle life. Summary of the invention

[0006] The embodiment of the present application provides a method for evaluating the remaining capacity of a battery, so as to solve the problem that the remaining capacity evaluation method used in the prior art has low efficiency and adverse effects on the battery.

[0007] The embodiments of the present application also provide a battery remaining capacity evaluation device, an electronic device, and a computer-readable storage medium.

[0008] The present application embodiment adopts the following technical solutions:

[0009] A method for evaluating the remaining capacity of a battery, comprising:

[0010] Acquire several historical terminal voltage data when the target battery is in a discharging state;

[0011] A data set constructed based on the several historical terminal voltage data and the data of the first target discharge time is input into a pre-trained battery remaining capacity evaluation model to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

[0012] A device for evaluating the remaining capacity of a battery, comprising:

[0013] A voltage data acquisition unit, used to acquire a number of historical terminal voltage data when the target battery is in a discharging state;

[0014] An evaluation unit is used to input a data set constructed based on the several historical terminal voltage data and the data of the first target discharge time into a pre-trained evaluation model of the remaining capacity of the battery, so as to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

[0015] An electronic device, comprising: a memory and a processor, wherein:

[0016] The memory is used to store programs; the processor is coupled to the memory and is used to execute the program stored in the memory to execute the above-mentioned method for evaluating the remaining capacity of the battery.

[0017] A computer-readable storage medium storing a computer program, wherein the computer program can implement the above-mentioned method for evaluating the remaining capacity of a storage battery when executed by a computer.

[0018] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0019] Since the predicted terminal voltage data of the target battery after discharge for the first target discharge time can be predicted based on the historical terminal voltage data of the target battery when it is in a discharge state, the terminal voltage data for a period of time after discharge can be predicted by only some historical terminal voltage data of the target battery instead of all the terminal voltage data obtained by full-capacity discharge. There is no need to adopt the verification full-capacity discharge test method in the prior art to draw a discharge curve for remaining capacity prediction, thereby solving the problems of low efficiency and adverse effects on the battery caused by the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1a A flowchart of a method for evaluating the remaining capacity of a battery provided in an embodiment of the present application;

[0022] Figure 1b A schematic diagram of a process of acquiring a training sample set used when training an evaluation model in an embodiment of the present application;

[0023] Figure 1c It is a schematic diagram of the terminal voltage fluctuation curve of a battery in a discharge state;

[0024] Figure 1d A flowchart of the whole process of searching for inflection points and obtaining several historical terminal voltage data using the KneeLocator method;

[0025] Figure 1e It is a schematic diagram of the basic principle of the 3σ principle;

[0026] Figure 2 A schematic diagram of a battery remaining capacity prediction platform provided in an embodiment of the present application;

[0027] Figure 3 A schematic diagram of a specific structure of a device for evaluating the remaining capacity of a battery provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0030] Those skilled in the art may appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0031] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0032] In order to solve the problems of low efficiency and adverse effects on batteries in the remaining capacity evaluation method used in the prior art, an embodiment of the present application provides a remaining capacity evaluation method for a battery.

[0033] The execution subject of the method may be any computing device, or may be software running on the computing device. The embodiment of the present application does not limit the computing device or software that the execution subject is.

[0034] In addition, different steps of the method may be implemented by different computing devices or software, and the embodiments of the present application do not limit which computing device or software is used to implement which step.

[0035] For ease of description, the method provided in the embodiment of the present application is described in detail below by taking an example in which the execution subject of the method is a battery evaluation device for evaluating the remaining capacity of a battery.

[0036] Please refer to the instruction manual Figure 1a , is a specific implementation flow chart of a method for evaluating the remaining capacity of a battery provided in an embodiment of the present application, comprising the following steps:

[0037] Step 11: The battery evaluation device obtains a number of historical terminal voltage data when the target battery is in a discharge state;

[0038] The explanation of step 11 is as follows:

[0039] The target battery refers to any battery whose remaining capacity is to be evaluated, including but not limited to: lead-acid battery, uninterruptible power supply (UPS) battery, lithium iron phosphate battery, super battery, etc.

[0040] The battery is in a discharging state, that is, the battery is in a discharging process. In this state / process, the battery releases electrical energy.

[0041] The terminal voltage of a battery, also known as the operating voltage of a battery, refers to the potential difference between the positive and negative electrodes of the battery when it is in a discharged state.

[0042] In the embodiment of the present application, the historical terminal voltage of the battery refers to the terminal voltage of the battery detected at a historical moment before executing step 11.

[0043] In an optional implementation, a verification charge and discharge test method can be used to trigger the target battery to enter a discharge state, and test the terminal voltage of the target battery in the discharge state at different historical moments. The terminal voltages obtained by the test can be used as the several historical terminal voltage data described in step 11 and stored in a storage device so that the battery evaluation device can obtain several historical terminal voltage data of the target battery from the storage device. In the embodiment of the present application, a battery terminal voltage tester can be used, but is not limited to, to test the terminal voltage of the target battery at different historical moments.

[0044] In another optional implementation, other equipment (such as a battery terminal voltage tester) may also send the test result of the target battery's several historical terminal voltage data to the battery evaluation device; or, a staff member may input the test result of the target battery's several historical terminal voltage data to the battery evaluation device. The embodiment of the present application does not specifically limit the specific method used by the battery evaluation device to obtain the target battery's several historical terminal voltage data.

[0045] Step 12: The battery evaluation device will input a pre-trained battery remaining capacity evaluation model into a data set constructed based on a number of historical terminal voltage data and the first target discharge time data, so as to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

[0046] The explanation for step 12 is as follows:

[0047] The data of the first target discharge duration may be data indicating a specific length of time, such as data indicating 30 minutes or 2 hours, etc. Alternatively, it may be data indicating that "the first target discharge duration can be calculated based on the initial discharge time of the target battery", for example, data indicating the time of 14:00. Based on this time, if the initial discharge time is assumed to be 10:00, then the first target discharge duration can be calculated to be 14:00-10:00=2 hours.

[0048] The acquired historical terminal voltage data and the first target discharge duration data may constitute a data set as shown below, for example:

[0049] X(t1)={t1,U t1-Δt ,U t1-2Δt ,…,U t1-nΔt}

[0050] Where t1 is the first target discharge duration; U t1-iΔt is the historical terminal voltage, the value range of i is [1, n]; n is the total number of historical terminal voltages; Δt is the test time interval between two adjacent historical terminal voltages on the time axis at the test time.

[0051] In the embodiment of the present application, the pre-trained battery remaining capacity evaluation model is a model for predicting the battery remaining capacity obtained by training based on historical terminal voltage data of sample batteries.

[0052] In an optional implementation, the sample battery may be, but is not limited to, a battery of the same type as the target battery. For example, if the target battery is a valve-regulated lead-acid battery, the sample battery may also be a valve-regulated lead-acid battery.

[0053] Generally, the discharge voltage of batteries of different types and states will be different. For example, the discharge voltage of nickel-cadmium batteries is relatively stable, while the discharge voltage of lead-acid batteries and nickel-metal hydride batteries will gradually decrease as the discharge time increases. Therefore, when the method provided by the embodiment of the present application is applied in an actual scenario, generally speaking, the sample battery and the target battery can be batteries of the same type to avoid the problem of excessive errors in the evaluation results obtained by the evaluation model.

[0054] In an optional implementation, the evaluation model may be a neural network. For example, it may be, but is not limited to, an Attention-LSTM neural network based on Bayesian optimization. The Attention-LSTM neural network refers to a long short-term neural network (LSTM) neural network that introduces an attention mechanism. The following text will take a specific implementation as an example to introduce how to train the evaluation model, which will not be repeated here.

[0055] In an optional implementation, the evaluation model can be trained in, but is not limited to, the following manner:

[0056] The neural network model is trained by using a training sample set consisting of several historical terminal voltage data of each sample battery when it is in a discharge state and data of the second target discharge time as the input of the neural network model, and using the terminal voltage data of the sample battery after the second target discharge time as the output of the neural network model.

[0057] The data of the second target discharge duration is similar to the data of the first target discharge duration, and may also be data indicating a specific time length, such as data indicating 30 minutes or 2 hours, etc. Alternatively, it may also be data indicating that "the second target discharge duration can be calculated based on the initial discharge time of the target battery", for example, data indicating the time of 14:00. Based on this time, if the initial discharge time is assumed to be 10:00, then the second target discharge duration can be calculated to be 14:00-10:00=2 hours.

[0058] In the embodiment of the present application, the first target discharge duration and the second target discharge duration may be the same or different.

[0059] By using the method provided in the embodiment of the present application, the predicted terminal voltage data of the target battery after discharge for a first target discharge time can be predicted based on the historical terminal voltage data of the target battery when it is in a discharge state. Therefore, only some historical terminal voltage data of the target battery are needed instead of all the terminal voltage data obtained by full-capacity discharge, so that the terminal voltage data for a period of time after discharge can be predicted. There is no need to use the verification full-capacity discharge test method in the prior art to draw a discharge curve for remaining capacity prediction, thereby solving the problem of low efficiency and adverse effects on the battery caused by the prior art.

[0060] In an optional implementation, when the above evaluation model is trained, the process of acquiring the training sample set used may include the following sub-steps a to f. The execution subject of these sub-steps may be, for example, a battery evaluation device for evaluating the remaining capacity of a battery, or other computing devices.

[0061] Sub-steps a to f are described in detail below. Figure 1b As shown:

[0062] Sub-step a: obtaining a number of historical terminal voltage data of each sample battery when it is in a discharge state, and constructing an original sample set;

[0063] The type of the sample battery mentioned here may be the same as the type of the target battery, for example, both may be valve-regulated lead-acid batteries.

[0064] In an optional implementation, a battery terminal voltage tester may test the terminal voltage of a sample battery in a discharge state, thereby obtaining a number of historical terminal voltage data of each sample battery.

[0065] In the embodiment of the present application, a single piece of data in the constructed original sample set includes several historical terminal voltage data of a single sample battery when it is in a discharge state. For example, the several historical terminal voltage data of each sample battery when it is in a discharge state obtained in sub-step a specifically include:

[0066] Several historical terminal voltage data of sample battery A when it is in a discharge state;

[0067] Several historical terminal voltage data of sample battery B when it is in a discharge state;

[0068] Some historical terminal voltage data of the sample battery C when it is in a discharge state; and so on.

[0069] Then, in the original sample set constructed based on these historical terminal voltage data, several historical terminal voltage data of sample battery A when it is in a discharging state can be used as a single piece of data in the original sample set; several historical terminal voltage data of sample battery B when it is in a discharging state can also be used as a single piece of data in the original sample set; similarly, several historical terminal voltage data of sample battery C when it is in a discharging state can also be used as a single piece of data in the original sample set.

[0070] Sub-step b: obtaining a plurality of replicated data obtained by bootstrap resampling of a replicated sample set of the original sample set;

[0071] In sub-step b, the original sample set is first copied to obtain a copied sample set - assumed to be represented as a matrix with m rows and n columns; wherein m represents the total number of data in the original sample set. As mentioned above, several historical terminal voltage data when a single sample battery is in a discharging state is one piece of data; and n represents the total number of historical terminal voltage data contained in a single piece of data.

[0072] Then, based on the replicated sample set, the replicated sample set is self-service resampled, that is, data is randomly extracted from the replicated sample set, and the extracted data can be called several replicated data.

[0073] In an optional implementation, the specific implementation of sub-step b may include: self-service resampling of the data in the replicated sample set according to the specified proportion of the number of samples in the replicated sample set to obtain a number of replicated data. For example, following the previous example, assuming that the replicated sample set can be represented as a matrix with m rows and n columns, then 0.5*m*n groups of data can be randomly extracted from the replicated sample set as the several replicated data. 0.5 is the specified proportion.

[0074] Sub-step c: generating shadow feature data of the replicated data;

[0075] In an optional implementation, following the previous example, a random row transformation may be performed on 0.5*m*n groups of data randomly extracted from the replicated sample set, and the data after the random row transformation may be used as shadow feature data of the replicated data.

[0076] The random row transformation may include but is not limited to: multiplying the data of a row by a non-zero multiple; or, multiplying the data of a row by a non-zero multiple and adding the data to the data of another row to update the data of the other row; etc.

[0077] By executing step c, the correlation between the data in the original sample set and the data in the duplicate sample set can be eliminated.

[0078] Sub-step d: merging the shadow feature data into the original sample set to obtain a mixed sample set;

[0079] Sub-step e: inputting the mixed sample set into the random forest to trigger the random forest to output the average reduced precision value corresponding to each data in the mixed sample set;

[0080] Among them, random forest is used to predict the terminal voltage of the battery at a specified time with a mixed sample set as input, and output the average reduced precision value corresponding to each data.

[0081] Sub-step f: According to the average reduced precision value output by the random forest, select the data whose average reduced precision value is greater than the precision value threshold from each data in the original sample set to construct a training sample set for training the evaluation model.

[0082] In an optional implementation, the accuracy value threshold mentioned here may be the maximum value of the average reduced accuracy values ​​possessed by each shadow feature data.

[0083] The above sub-steps e and f are the implementation process of feature (data) selection using random forest.

[0084] Random forest is a machine learning algorithm that uses multiple decision trees to train samples and integrate predictions. In the embodiment of the present application, based on random forest, multiple decision trees can be constructed for each sample (i.e., each data) in the mixed sample set using the random splitting technique of the node, and finally the multiple decision trees are combined and the final prediction result is obtained by voting.

[0085] In an embodiment of the present application, the constructed random forest is used to take a mixed sample set as input and the terminal voltage of the sample battery at a specified time as the prediction result. At the same time, the random forest can also output the average reduced precision value corresponding to each data in the mixed sample set.

[0086] Mean Decrease Accuracy is an indicator used to measure the accuracy of random forest on the original sample data that has not been shuffled and the original sample data after shuffling. The operation of using random forest voting to obtain the final prediction result can be repeated iteratively multiple times. In each round of iteration, the original sample data (that is, the mixed sample set mentioned above) can be shuffled, and then the mean decrease accuracy value corresponding to each data in the mixed sample set output by the random forest can be obtained.

[0087] Based on the average reduced precision values ​​corresponding to each data in the mixed sample set, the maximum value of the average reduced precision value (also called Z_score) of the shadow feature data can be determined and used as the precision value threshold Z_score * .

[0088] Based on the accuracy value threshold Z_score * , we can select the data from the original sample set whose average reduced precision value Z_score is greater than the precision value threshold Z_score * The data is used to construct a training sample set for training and evaluating the model.

[0089] Among them, Z_score is greater than the accuracy value threshold Z_score * The data with higher importance scores can be considered as more important data.

[0090] The embodiment of the present application adopts the above-mentioned data screening method based on the average reduced precision value, which can exclude sample data with extremely small correlation with the label value of the evaluation model to be trained, thereby improving the generalization ability of the evaluation model and enhancing the interpretability of the results.

[0091] In an optional implementation manner, “Step 11: the battery evaluation device obtains several historical terminal voltage data when the target battery is in a discharge state” in the embodiment of the present application may specifically include:

[0092] The battery evaluation equipment uses an inflection point detection method to detect whether there is an inflection point in the original historical terminal voltage data of the target battery;

[0093] According to the detection result, the original historical terminal voltage data is selected from the original historical terminal voltage data as the several historical terminal voltage data of the target battery in step 11.

[0094] In the embodiment of the present application, the above-mentioned inflection point detection method is used to detect whether there is an inflection point, and then the historical terminal voltage data is selected according to the detection data, because it is considered that: generally, the terminal voltage fluctuation curve of the battery in the discharge state is as follows: Figure 1c shown.

[0095] Figure 1c In the graph, the horizontal axis represents the discharge time of the battery; the vertical axis represents the terminal voltage of the battery. The three curves in the coordinate axis represent the terminal voltage fluctuation curves of three types of batteries, which are numbered #5, #7, and #8 respectively.

[0096] Depend on Figure 1c It can be found that the terminal voltage fluctuation curves of the three numbered batteries are similar, and the terminal voltage fluctuation characteristics are: in the initial discharge stage of the battery, the terminal voltage will discharge at a relatively high rate to quickly reach the valley voltage, and then rise back to the voltage maximum at a relatively small amplitude, and finally discharge at a relatively small rate to the cut-off voltage.

[0097] Based on the above characteristics, considering that in the initial discharge stage, the terminal voltage of the battery fluctuates greatly due to factors such as the internal characteristics of the battery, and the discharge curve during this period has little effect on the prediction of the terminal voltage in the later stage, KneeLocator can be used to calculate and return the values ​​of curve and direction, search and find the optimal point (i.e., inflection point U0) where the terminal voltage fluctuation curve reaches a stable discharge process, and then according to the time axis (horizontal axis) position corresponding to the inflection point U0, the terminal voltage before the inflection point U0 on the time axis (called the terminal voltage during the initial discharge fluctuation period) is removed. The terminal voltage remaining after removing these terminal voltages on the terminal voltage fluctuation curve can be used as some historical terminal voltage data of the target battery described in step 11.

[0098] KneeLocator is a module for detecting inflection points in kneed (a third-party package for inflection point detection in Python). It supports users to pass in parameters (the original historical terminal voltage of the target battery), and then after instantiation and calculation, it can return the existing calculation method of the value of the attribute that the user is mainly concerned about. Among them, the value of the attribute that can be returned, for example, can be the aforementioned curve and direction values. The value of curve is used to indicate whether the area above the curve is a convex set or a concave set, concave represents concave, and convex represents convex; the value of direction is used to indicate whether the initial trend of the curve is increasing or decreasing, increasing represents increasing, and decreasing represents decreasing. Based on the values ​​of curve and direction returned by KneeLocator, the inflection point U0 of the terminal voltage fluctuation curve can be determined.

[0099] The whole process of searching for the inflection point using the KneeLocator method and obtaining several historical terminal voltage data by removing the terminal voltage before the inflection point U0 can be found in the attached manual. Figure 1d The process diagram shown mainly includes the following sub-steps:

[0100] Input the original historical terminal voltage data of the target battery into KneeLocator;

[0101] Based on the values ​​of curve and direction returned by KneeLocator, detect the inflection point U0;

[0102] If the inflection point U0 exists, the original historical terminal voltage data before the inflection point U0 on the time axis is removed, and the remaining original historical terminal voltage data is used as the plurality of original historical terminal voltage data in step 11;

[0103] If the inflection point U0 does not exist, the original historical terminal voltage data of the target battery input into the KneeLocator is used as the several original historical terminal voltage data described in step 11.

[0104] In an optional implementation, before the original historical terminal voltage of the target battery is input into the KneeLocator, the original historical terminal voltage may be preprocessed first, and the preprocessed original historical terminal voltage may be input into the KneeLocator.

[0105] In the embodiment of the present application, the original historical terminal voltage is preprocessed because in the process of collecting the original historical terminal voltage data of the target battery, due to mechanical reasons such as data acquisition device failure, abnormal data and missing data may appear in the collected original historical terminal voltage data. The existence of these abnormal data and missing data may affect the accuracy of the remaining capacity evaluation results. Therefore, a preprocessing method can be used to process the abnormal data and missing data to avoid this adverse effect.

[0106] Based on the assumption that the terminal voltage data of the battery in the discharge state is continuous, in the embodiment of the present application, the 3σ principle can be used to discover abnormal data in the original historical terminal voltage data.

[0107] The 3σ principle, also known as the statistical process control principle, is a method commonly used in quality management. Its basic principle is to control the variability of the process within a certain range through statistical analysis to ensure the stability of the quality of products or services.

[0108] The 3σ principle is a probability statistical theory based on the normal distribution. In a normal distribution, about 68.3% of the data are within the range of the mean plus or minus 1 standard deviation, about 95.4% of the data are within the range of the mean plus or minus 2 standard deviations, and about 99.7% of the data are within the range of the mean plus or minus 3 standard deviations.

[0109] According to this rule, when the data of a process is concentrated near the mean, most of the data points should be within the range of the mean plus or minus 3 standard deviations. When the data points of a process exceed the range of the mean plus or minus 3 standard deviations, it means that the process has undergone special variation and there may be problems.

[0110] like Figure 1e As shown, this is a schematic diagram of the above basic principle of the 3σ principle. Figure 1e In the equation, μ represents the mean of the data and σ represents the standard deviation.

[0111] Specifically, if the 3σ principle is applied to the embodiment of the present application, then, the point where the distance between two adjacent points (two original historical terminal voltage data) on the time axis corresponding to the discharge time of the target battery exceeds a given threshold (for example, the distance does not fall within the interval consisting of the mean plus or minus 3 standard deviations) can be regarded as abnormal data, and the abnormal data can be deleted; then, the missing data caused by the deletion of the data can be supplemented by linear interpolation.

[0112] The basic steps are as follows:

[0113] First, the deviation ε of two adjacent terminal voltage data on the time axis corresponding to the discharge time of the target battery is calculated in sequence. t , the specific calculation method is ε t =U t+Δt -U t , so we can get t The deviation sequence formed is denoted as ε;

[0114] Then, the mean μ and standard deviation σ of the deviation sequence ε are calculated respectively;

[0115] The terminal voltage data corresponding to the values ​​in the sequence ε that are beyond the range of (μ-3σ,μ+3σ) are regarded as abnormal terminal voltage data;

[0116] Delete the abnormal terminal voltage data, and use linear interpolation to complete the missing terminal voltage data due to deletion.

[0117] In an optional implementation, if the predicted terminal voltage data output by the evaluation model meets certain conditions—specifically, if the predicted terminal voltage data includes predicted terminal voltage data that is less than the cutoff voltage of the target battery—then the battery evaluation device may further perform the following operations:

[0118] Obtaining the actual discharge time taken for the target battery to be discharged to the cut-off voltage;

[0119] The actual health state of the target battery is determined according to the first target discharge duration and the actual discharge duration.

[0120] For example, assuming that the target battery is a lead-acid battery and the first target discharge time is 10 hours (denoted as ), then, if the predicted terminal voltage of the lead-acid battery after 10 hours of discharge output by the evaluation model is lower than the cut-off voltage of 1.8V of the lead-acid battery (indicating that the battery is in a scrapped state), the actual discharge time T required for the lead-acid battery to actually discharge to the cut-off voltage of 1.8V can be further obtained. and T, the relative time deviation value ɡ can be calculated as an index to evaluate the actual health status of the lead-acid battery. The calculation formula of ɡ is as follows:

[0121]

[0122] According to the calculation method of ɡ, generally speaking, the relationship between the size of ɡ and the health status of the lead-acid battery is: the larger the ɡ, the worse the actual health status of the lead-acid battery; the smaller the ɡ, the better the actual health status of the lead-acid battery.

[0123] The following describes how to apply the above method in an actual scenario in combination with an actual scenario.

[0124] In actual scenarios, the following can be used Figure 2 The battery remaining capacity prediction platform shown in the figure is used to implement the above method. The platform mainly includes: a state parameter acquisition module, a data processing module, a battery capacity prediction module and a model evaluation and analysis module. Among them:

[0125] The state parameter acquisition module is used to collect the real-time discharge parameters (terminal voltage data) of the target battery and establish an initial data set. The data in the initial data set mentioned here is the original historical terminal voltage data.

[0126] The data processing module is used to process abnormal data and missing data in the initial data set, and to extract features using correlation analysis. The specific method for processing abnormal data and missing data can be found in the preprocessing method described above, which will not be repeated here. For the original historical terminal voltage data obtained after preprocessing, the data processing module can further input it into KneeLocator for inflection point detection, and determine several historical terminal voltage data based on the detection results.

[0127] Furthermore, the data processing module may also use sub-steps e to f described above to implement feature (data) extraction (selection) using random forests.

[0128] The model prediction module is used to build a deep neural network model (i.e., the battery remaining capacity evaluation model mentioned above, referred to as the model), and input the features (data) extracted by the data processing module into the model so that the model can predict the remaining capacity of the target battery.

[0129] The model evaluation and analysis module is used to perform quantitative analysis on the model and prediction results, evaluate and determine whether the target battery has failed, and facilitate comprehensive management by operation and maintenance personnel.

[0130] The above is an introduction to the main functions of each module included in the battery remaining capacity prediction platform. For more specific implementation methods of the module functions, please refer to the previous description, which will not be repeated here.

[0131] The following focuses on examples to introduce how to train the evaluation model of the remaining battery capacity in the embodiment of the present application.

[0132] The evaluation model can be, for example, based on the Bayesian optimization Attention-LSTM neural network. The Attention-LSTM neural network refers to a Long Short-Term Memory (LSTM) neural network that introduces an attention mechanism with weighted distribution. Introducing the attention mechanism with weighted distribution into the LSTM model to learn and process data is used to solve the problem that the LSTM model input sequence is represented by a fixed vector no matter how long it is, so that the model can automatically learn and focus on the most important information in the input sequence.

[0133] Specifically, the Attention mechanism with assigned weights will screen the input sequence of the neural network, assign different weights to influencing factors according to different input sequences, and use the Bayesian optimization method to tune hyperparameters, thereby improving the prediction accuracy of the neural network.

[0134] The basic steps of the model training process in the embodiment of the present application may include:

[0135] Step I: Divide the data set used to train the evaluation model into a training set and a test set in a ratio of 7:3; wherein the data set specifically consists of the second target discharge duration, and several historical terminal voltage data of the sample batteries obtained by preprocessing, inflection point detection and random forest selection.

[0136] Step II: Build LSTM neural network model:

[0137] Specifically, the terminal voltage data sequence U of the sample battery after discharge for the second target discharge time t2 is t As the model output, X(t2) = {t2, U t2-Δt,U t2-2Δt ,…,U t2-pΔt} as the model input and build the LSTM neural network model to be trained.

[0138] Wherein, the above t2 is the second target discharge duration;

[0139] Δt is the interval between the collection / detection times of two adjacent terminal voltage data of the sample battery on the time axis;

[0140] U t1-iΔt is the terminal voltage data of the sample battery, and the value range of i is [1, p];

[0141] p is the total number of terminal voltage data of the sample batteries.

[0142] In the embodiment of the present application, the trained LSTM neural network model is a neural network model including multiple LSTM neural network units, and each LSTM network unit can be regarded as the state of the LSTM neural network at different time spans. In the initial state, a decimal between 0 and 1 is randomly generated to assign values ​​to the weight matrix W and the bias matrix b in the network.

[0143] Step III: Train the LSTM neural network model, and during the training process, use the Bayesian optimization method to tune the model's hyperparameters to obtain the optimal values ​​of the network hyperparameters.

[0144] The specific implementation process of step III includes the following sub-steps:

[0145] Sub-step III-1: Before training begins, set the hyperparameters of the LSTM network model as follows: number of input nodes m, number of hidden nodes k, number of LSTM neurons w, number of output nodes q, learning rate lr, Dropout;

[0146] Sub-step III-2: Taking minimizing the mean square error (MSE) as the objective function, randomly generate initialization parameter combinations within the optimization range, and then import the generated hyperparameter combinations into the LSTM prediction model for training to obtain the mean square error (MSE) value of the model training;

[0147] Sub-step III-3: Import the initialization parameter combination into the Gaussian process, then use the initial Gaussian model as the proxy model of the objective function, and use the mean square error (MSE) value of the model training obtained in the previous step to correct the proxy model so that its distribution is closer to the actual distribution of the mean square error (MSE) of the model training;

[0148] Sub-step III-4: Select the minimum value of the objective function as the next parameter combination to be evaluated through the expected improvement acquisition function, and repeat the LSTM prediction model training and Gaussian model correction of sub-steps III-2 and III-3;

[0149] Sub-step III-5: When the maximum number of iterations is reached, stop the optimization process and take the hyperparameter combination corresponding to the minimum mean square error (MSE) value as the optimal hyperparameter.

[0150] Step IV: Input the input samples in the test set into the LSTM network model after hyperparameter tuning, and then use the output results as the input of the Attention layer. In the Attention layer, weights are assigned to obtain a new vector;

[0151] Step V: Use the new vector obtained in step IV as the input of the fully connected layer, and after calculation, get the final prediction value.

[0152] For details of the specific training process of the LSTM network model, you can further refer to the relevant mature technologies in this field, which will not be repeated here.

[0153] In practical applications, the evaluation accuracy and effect of the trained LSTM model can also be analyzed, which can be performed by the model evaluation and analysis module.

[0154] For example, you can choose the root mean square error RMSE, the mean absolute percentage error MAPE and the goodness of fit R 2 To test and measure the accuracy and effectiveness of the algorithm model.

[0155] Among them, RMSE, MAPE and R 2 The expression is as follows:

[0156]

[0157]

[0158]

[0159] In the above formula: m is the total number of predictions; U t and Represent the actual value and predicted value of the target battery terminal voltage at time t, respectively. is the average value of the terminal voltage of the target battery measured. The time t here is equivalent to the time when the target battery is discharged for the first target time length from the current time.

[0160] Based on the same inventive concept as the previous embodiments, in order to solve the problems of low efficiency and adverse effects on the battery in the remaining capacity evaluation method used in the prior art, the embodiment of the present application also provides a device for evaluating the remaining capacity of a battery.

[0161] The specific structural diagram of the device is shown in Figure 3As shown, it includes the following functional units:

[0162] A voltage data acquisition unit 31 is used to acquire a number of historical terminal voltage data when the target battery is in a discharging state;

[0163] The evaluation unit 32 is used to input a data set constructed based on the several historical terminal voltage data and the data of the first target discharge time into a pre-trained evaluation model of the remaining capacity of the battery, so as to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

[0164] In an optional implementation, the evaluation model is trained in the following manner:

[0165] The neural network model is trained by using a training sample set consisting of several historical terminal voltage data of each sample battery when it is in a discharge state and data of a second target discharge time as input to the neural network model, and using the terminal voltage data of the sample battery after the second target discharge time as output of the neural network model.

[0166] In an optional implementation, the process of acquiring the training sample set includes:

[0167] Acquire several historical terminal voltage data of each sample storage battery when it is in a discharge state, and construct an original sample set; wherein a single piece of data in the constructed original sample set includes several historical terminal voltage data of a single sample storage battery when it is in a discharge state;

[0168] Acquire a plurality of replicated data obtained by self-service resampling of a replicated sample set of the original sample set;

[0169] generating shadow feature data of the replicated data;

[0170] Merging the shadow feature data into the original sample set to obtain a mixed sample set;

[0171] Input the mixed sample set into a random forest to trigger the random forest to output the average reduced precision value corresponding to each data in the mixed sample set; wherein the random forest is used to predict the terminal voltage of the battery at a specified time with the mixed sample set as input, and output the average reduced precision value corresponding to each data;

[0172] According to the average reduced precision value output by the random forest, data with an average reduced precision value greater than a precision value threshold are selected from each piece of data in the original sample set; wherein the precision value threshold is the maximum value of the average reduced precision values ​​of each piece of the shadow feature data;

[0173] The training sample set is constructed based on the selected data whose average reduced precision value is greater than the precision value threshold and the second target discharge duration.

[0174] In an optional implementation manner, the above acquisition performs self-service resampling on the duplicate sample set of the original sample set, and the obtained plurality of duplicate data may specifically include:

[0175] According to the specified proportion of the number of samples in the copied sample set, the data in the copied sample set is self-service resampled to obtain the plurality of copied data.

[0176] Correspondingly, generating the shadow feature data of the replicated data may specifically include: performing random row transformation on the plurality of replicated data respectively, so as to obtain transformed replicated data as the shadow feature data.

[0177] In an optional implementation, the voltage data acquisition unit 31 can be specifically used to: use an inflection point detection method to detect whether there is an inflection point in the original historical terminal voltage data of the target battery; and select original historical terminal voltage data from the original historical terminal voltage data as the several historical terminal voltage data based on the detection result.

[0178] In an optional implementation, the battery remaining capacity assessment device may further include:

[0179] a time length data acquisition unit, configured to acquire an actual discharge time length consumed by the target battery to discharge to the cut-off voltage if there is predicted terminal voltage data less than the cut-off voltage of the target battery in the predicted terminal voltage data;

[0180] A health state determination unit is used to determine the actual health state of the target battery according to the first target discharge time and the actual discharge time.

[0181] By using the above-mentioned device provided in the embodiment of the present application, the predicted terminal voltage data of the target battery after discharge for the first target discharge time can be predicted based on the historical terminal voltage data of the target battery when it is in a discharge state. Therefore, only some historical terminal voltage data of the target battery are needed instead of all the terminal voltage data obtained by full-capacity discharge, so as to realize the prediction of the terminal voltage data for a period of time after discharge. There is no need to use the verification full-capacity discharge test method in the prior art to draw a discharge curve for remaining capacity prediction, thereby solving the problems of low efficiency and adverse effects on the battery caused by the prior art.

[0182] Based on the same inventive concept as the above embodiments, the embodiments of the present application also provide an electronic device to solve the problem of low efficiency and adverse effect on the battery in the remaining capacity evaluation method used in the prior art.

[0183] like Figure 4 As shown, the electronic device includes: a memory 41 and a processor 42. The memory 41 can be configured to store various other data to support operations on the electronic device. Examples of these data include instructions for any application or method for operating on the electronic device. The memory 41 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk.

[0184] The processor 42 is coupled to the memory 41 and is used to execute the program stored in the memory 41 to execute the method for evaluating the remaining capacity of the battery described in the embodiment of the present application.

[0185] When the processor 42 executes the program in the memory 41, in addition to the above functions, it can also realize other functions, and the details can be referred to the description of the previous embodiments.

[0186] Further, such as Figure 4 As shown, the electronic device also includes: a display 44, a communication component 43, a power component 45, an audio component 46 and other components. Figure 4 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 4 Components shown.

[0187] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a computer, the steps or functions of the methods provided in the above embodiments can be implemented.

[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for evaluating the remaining capacity of a battery, characterized in that: include: Acquire several historical terminal voltage data when the target battery is in a discharging state; A data set constructed based on the several historical terminal voltage data and the data of the first target discharge time is input into a pre-trained battery remaining capacity evaluation model to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

2. The method according to claim 1, characterized in that The evaluation model is trained in the following way: The neural network model is trained by using a training sample set consisting of several historical terminal voltage data of each sample battery when it is in a discharge state and data of a second target discharge time as input to the neural network model, and using the terminal voltage data of the sample battery after the second target discharge time as output of the neural network model.

3. The method according to claim 1, characterized in that The process of obtaining the training sample set includes: Acquire several historical terminal voltage data of each sample storage battery when it is in a discharge state, and construct an original sample set; wherein a single piece of data in the constructed original sample set includes several historical terminal voltage data of a single sample storage battery when it is in a discharge state; Acquire a plurality of replicated data obtained by self-service resampling of a replicated sample set of the original sample set; generating shadow feature data of the replicated data; Merging the shadow feature data into the original sample set to obtain a mixed sample set; Input the mixed sample set into a random forest to trigger the random forest to output the average reduced precision value corresponding to each data in the mixed sample set; wherein the random forest is used to predict the terminal voltage of the battery at a specified time with the mixed sample set as input, and output the average reduced precision value corresponding to each data; According to the average reduced precision value output by the random forest, data with an average reduced precision value greater than a precision value threshold are selected from each piece of data in the original sample set; The precision value threshold is the maximum value of the average reduced precision values ​​of each of the shadow feature data; The training sample set is constructed based on the selected data whose average reduced precision value is greater than the precision value threshold and the second target discharge duration.

4. The method according to claim 3, characterized in that Obtaining a plurality of replicated data obtained by self-service resampling of a replicated sample set of the original sample set, including: According to the specified proportion of the number of samples in the replicated sample set, self-service resampling is performed on the data in the replicated sample set to obtain the plurality of replicated data; Generating shadow feature data of the replicated data, comprising: The plurality of replicated data are respectively subjected to random row transformation to obtain transformed replicated data as the shadow feature data.

5. The method according to any one of claims 1 to 4, characterized in that: Obtain some historical terminal voltage data of the target battery whose remaining capacity is to be evaluated, including: Adopting an inflection point detection method to detect whether there is an inflection point in the original historical terminal voltage data of the target battery; According to the detection result, original historical terminal voltage data is selected from the original historical terminal voltage data as the plurality of historical terminal voltage data.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If there is predicted terminal voltage data that is less than the cut-off voltage of the target battery in the predicted terminal voltage data, then obtaining the actual discharge time taken for the target battery to be actually discharged to the cut-off voltage; The actual health state of the target battery is determined according to the first target discharge duration and the actual discharge duration.

7. A device for evaluating the remaining capacity of a battery, characterized in that: include: A voltage data acquisition unit, used to acquire a number of historical terminal voltage data when the target battery is in a discharging state; An evaluation unit is used to input a data set constructed based on the several historical terminal voltage data and the data of the first target discharge time into a pre-trained evaluation model of the remaining capacity of the battery, so as to trigger the evaluation model to execute: based on the data set, output the predicted terminal voltage data of the target battery after discharge for the first target discharge time as the remaining capacity evaluation result of the target battery.

8. The device according to claim 7, characterized in that The evaluation model is trained in the following way: The neural network model is trained by using a training sample set consisting of several historical terminal voltage data of each sample battery when it is in a discharge state and data of a second target discharge time as input to the neural network model, and using the terminal voltage data of the sample battery after the second target discharge time as output of the neural network model.

9. An electronic device, characterized in that: include: Memory and processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to execute the method for evaluating the remaining capacity of a battery as described in any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer, can implement the method for estimating the remaining capacity of a storage battery as claimed in any one of claims 1 to 6.