Training method, device, electronic device and medium for battery capacity prediction model
By using a combined algorithm of exponential regression and linear regression algorithms in battery capacity prediction, battery capacity trend prediction is performed, which solves the problems of high computing hardware requirements and low prediction accuracy in the existing technology, and improves the accuracy of battery capacity prediction. It reduces the risk of traffic accidents caused by battery failure in electric vehicles.
Patent Information
- Application Number
- CN202110952398.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-19
AI Technical Summary
The existing technology has high computational hardware requirements and low prediction accuracy in battery capacity prediction, which makes it difficult to predict in time when the electric vehicle battery pack fails, which may cause traffic accidents.
A combination of exponential regression algorithm and linear regression algorithm is used to iteratively predict the battery's historical charging data, establish a battery capacity prediction model, predict the changing trend of battery capacity, and improve prediction accuracy.
By improving the accuracy of battery capacity prediction, battery degradation can be predicted more effectively and the risk of traffic accidents caused by battery failure in electric vehicles can be reduced.
Smart Images

Figure CN113673157B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery charging and discharging technology, and in particular to a training method, device, electronic device and medium for a battery capacity prediction model. Background Art
[0002] With the development of society, people's environmental awareness has gradually increased, and more and more people are using new energy vehicles. At present, most new energy vehicles in my country are electric vehicles, among which electric vehicles are mainly powered by the electric energy stored in power batteries, such as battery packs, and have the advantages of zero pollution and zero emissions.
[0003] The battery pack is powered by multiple batteries connected in series. When the battery capacity drops to 80%, the performance will decline sharply and it is easy to fail. If a single battery fails, the entire battery pack will also fail. For electric vehicles, they will not be able to drive due to battery pack failure, which is easy to cause traffic accidents. Therefore, it is necessary to predict the capacity of each battery.
[0004] At present, Gaussian process regression is generally used to predict battery capacity. However, when this method is used to predict battery capacity, it has high requirements on computing hardware and the calculation process is prone to errors, resulting in low prediction accuracy. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a training method, device, electronic device and medium for a battery capacity prediction model, so as to solve the above-mentioned problems existing in the prior art and improve the accuracy of battery capacity prediction.
[0006] In a first aspect, a method for training a battery capacity prediction model is provided, and the method may include:
[0007] Acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding state of charge value SOC increment of the battery;
[0008] For any battery's historical charging data, based on the charge amount and the corresponding SOC increment of each charge, a battery capacity data set of the battery is obtained, wherein the battery capacity data set includes a battery identifier of the battery and a battery capacity corresponding to each charge;
[0009] Based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
[0010] In an optional implementation, based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including:
[0011] According to the order of the charging time, obtaining the cumulative charging days of each battery;
[0012] A preset trend prediction algorithm is used to iteratively predict the cumulative charging days of the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
[0013] In an optional implementation, based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including:
[0014] According to the sequence of the charging time and the SOC increment corresponding to each charging time, obtaining the cumulative number of cycle charging of the SOC of each battery from 0 to 100;
[0015] A preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times for the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging times.
[0016] In an optional implementation, the preset trend prediction algorithm is expressed as:
[0017]
[0018] in, Indicates the exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
[0019] In an optional implementation, after establishing the battery capacity prediction model, the method further includes:
[0020] Obtaining a battery capacity prediction request triggered by a user, the prediction request including a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted;
[0021] Inputting the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identifier of the target battery into the battery capacity prediction model, predicting the battery capacity of the target battery when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached by using the preset trend prediction algorithm, and obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model;
[0022] The predicted battery capacity of the target battery is sent to a user terminal, so as to display the predicted battery capacity to the user through the user terminal.
[0023] In an optional implementation, after obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model, the method further includes:
[0024] generating a historical battery capacity attenuation curve and a predicted battery capacity attenuation curve of the target battery;
[0025] The predicted battery capacity of the target battery is sent to a user terminal, so that the decay curve of the historical battery capacity and the decay curve of the predicted battery capacity are displayed to the user through the user terminal.
[0026] In an optional implementation, generating a decay curve of a historical battery capacity and a decay curve of a predicted battery capacity of the target battery, the method further includes:
[0027] Based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, the decay state of the target battery is determined, where the decay state includes a normal decay state and an abnormal decay state.
[0028] In a second aspect, a training device for a battery capacity prediction model is provided, and the device may include:
[0029] An acquisition unit, configured to acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding SOC increment of the battery;
[0030] And, for any battery's historical charging data, based on the charge amount and the corresponding SOC increment of each charge, obtaining a battery capacity data set of the battery, wherein the battery capacity data set includes a battery identification of the battery and a battery capacity corresponding to each charge;
[0031] An establishing unit is used to iteratively predict the battery capacity data set of each battery in the at least one battery based on the sequence of the charging time and using a preset trend prediction algorithm to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; and the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
[0032] In an optional implementation, the establishing unit is specifically configured to:
[0033] According to the order of the charging time, obtaining the cumulative charging days of each battery;
[0034] A preset trend prediction algorithm is used to iteratively predict the cumulative charging days of the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
[0035] In an optional implementation, the establishing unit is further specifically configured to:
[0036] According to the sequence of the charging time and the SOC increment corresponding to each charging time, obtaining the cumulative number of cycle charging of the SOC of each battery from 0 to 100;
[0037] A preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times for the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging times.
[0038] In an optional implementation, the preset trend prediction algorithm is expressed as:
[0039]
[0040] in, Indicates the exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
[0041] In an optional implementation, the apparatus further includes: a sending unit;
[0042] The acquisition unit is further used to acquire a battery capacity prediction request triggered by a user, wherein the prediction request includes a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted;
[0043] And, inputting the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identification of the target battery into the battery capacity prediction model, predicting the battery capacity of the target battery when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached by the preset trend prediction algorithm, and obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model;
[0044] The sending unit is used to send the predicted battery capacity of the target battery to a user terminal, so as to display the predicted battery capacity to the user through the user terminal.
[0045] In an optional implementation, the apparatus further includes: a generating unit;
[0046] The generating unit is used to generate a decay curve of the historical battery capacity and a decay curve of the predicted battery capacity of the target battery;
[0047] The sending unit is further used to send the predicted battery capacity of the target battery to a user terminal, so as to display the attenuation curve of the historical battery capacity and the attenuation curve of the predicted battery capacity to the user through the user terminal.
[0048] In an optional implementation, the apparatus further includes: a determining unit;
[0049] The determination unit is used to determine the decay state of the target battery based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, where the decay state includes a normal decay state and an abnormal decay state.
[0050] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0051] Memory, used to store computer programs;
[0052] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0053] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0054] The training method of the battery capacity prediction model provided in the present application obtains historical charging data of at least one battery, and the historical charging data includes the battery identification, charging time, charging amount corresponding to the corresponding charging time, and corresponding SOC increment of the battery; for the historical charging data of any battery, based on the charging amount and corresponding SOC increment of each charging, the battery capacity data set of the battery is obtained, and the battery capacity data set includes the battery identification of the battery and the battery capacity corresponding to each charging; based on the order of charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in at least one battery, and establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the changing trend of the battery capacity of each battery. The method uses a combination algorithm of an exponential regression algorithm and a linear regression algorithm to perform trend prediction on the battery capacity of the battery, thereby improving the accuracy of battery capacity prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0056] Figure 1 A flowchart of a method for training a battery capacity prediction model provided in an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structure of a battery capacity prediction model training device provided in an embodiment of the present application;
[0058] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] Real-time safety testing of the battery's working indicators can predict the battery life, effectively reducing the probability of electric vehicle charging safety accidents. Among them, the battery capacity of the battery is a working indicator of safety testing.
[0061] The training method of the battery capacity prediction model provided in the present application adopts a combination algorithm of an exponential regression algorithm and a linear regression algorithm to model the battery attenuation and analyze the attenuation trend of the historical charging data of different electric vehicle batteries. Compared with the Gaussian process regression algorithm in the prior art, the accuracy of battery capacity prediction is improved.
[0062] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0063] Figure 1 A flowchart of a method for training a battery capacity prediction model provided in an embodiment of the present application is shown below. Figure 1 As shown, the method may include:
[0064] Step S110: Acquire historical charging data of at least one battery.
[0065] The historical charging data may include a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding state of charge (SOC) value increment.
[0066] Step S120: For any battery's historical charging data, based on the charging amount of each charge and the corresponding SOC increment, a battery capacity data set of the battery is obtained.
[0067] In specific implementation, since the actual amount of electricity charged into the battery is different for every 1% increase in SOC at different SOC stages, if the current capacity of the battery is to be calculated, the ratio of the charge amount corresponding to the current charging time to the corresponding SOC increment is usually determined as the current capacity of the battery, that is, the current capacity is the quotient of the charge amount and the corresponding SOC increment.
[0068] Thus, a battery capacity data set corresponding to the historical charging data of each battery can be obtained, and the battery capacity data set may include a battery identifier of the battery and the battery capacity corresponding to each charging.
[0069] Step S130: Based on the sequence of charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in at least one battery to establish a battery capacity prediction model.
[0070] Among them, the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
[0071] In one implementation, the cumulative number of charging days for each battery is obtained according to the order of charging time;
[0072] Using the preset trend prediction algorithm, the battery capacity data set of each battery is iteratively predicted based on the cumulative charging days to establish a battery capacity prediction model.
[0073] At this time, the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
[0074] In another embodiment, the cumulative number of charge cycles of each battery from 0 to 100 is obtained according to the sequence of the charging time and the SOC increment corresponding to each charging time;
[0075] The preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times of the battery capacity data set of each battery, and a battery capacity prediction model is established.
[0076] At this time, the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging.
[0077] Furthermore, the preset trend prediction algorithm can be expressed as:
[0078]
[0079] in, Indicates exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
[0080] Based on any of the above embodiments, after establishing a battery capacity prediction model, in order to enable the user to view the battery capacity of the battery in real time so as to stop using the battery before the battery capacity decays to 80%, the user may send a battery capacity prediction request to the system where the battery capacity prediction model is located through a user terminal. The prediction request may include a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted. After the system where the battery capacity prediction model is located obtains the battery capacity prediction request triggered by the user, the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identifier of the target battery are input into the battery capacity prediction model. Through a preset trend prediction algorithm, the battery capacity of the target battery is predicted when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached, and the predicted battery capacity of the target battery output by the battery capacity prediction model is obtained; and the predicted battery capacity is sent to the user terminal so as to display the predicted battery capacity to the user through the user terminal.
[0081] Based on the above embodiments, in order to vividly display the battery attenuation trend to the user and improve the user experience, after obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model, the historical battery capacity attenuation curve and the predicted battery capacity attenuation curve of the target battery can be generated in chronological order based on the historical battery capacity and the predicted battery capacity; and the predicted battery capacity is sent to the user terminal to display the historical battery capacity attenuation curve and the predicted battery capacity attenuation curve to the user through the user terminal.
[0082] Furthermore, based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, the decay state of the target battery can be determined, and the decay state includes a normal decay state and an abnormal decay state.
[0083] Among them, the larger the value of the slope of the curve is, the more likely it is that the attenuation state is in an abnormal attenuation state. At this time, a reminder can be sent to the user through the user terminal to avoid accidents.
[0084] The training method of the battery capacity prediction model provided in the present application obtains historical charging data of at least one battery, and the historical charging data includes the battery identification, charging time, charging amount corresponding to the corresponding charging time, and corresponding SOC increment of the battery; for the historical charging data of any battery, based on the charging amount and corresponding SOC increment of each charging, the battery capacity data set of the battery is obtained, and the battery capacity data set includes the battery identification of the battery and the battery capacity corresponding to each charging; based on the order of charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in at least one battery, and establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the changing trend of the battery capacity of each battery. The method uses a combination algorithm of an exponential regression algorithm and a linear regression algorithm to perform trend prediction on the battery capacity of the battery, thereby improving the accuracy of battery capacity prediction.
[0085] Based on the same inventive concept, the present application also provides a training device for a battery capacity prediction model. Figure 2 As shown, the device may include: an acquisition unit 210 and an establishment unit 220;
[0086] An acquisition unit 210 is used to acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding SOC increment of the battery;
[0087] And, for any battery's historical charging data, based on the charge amount and the corresponding SOC increment of each charge, obtaining a battery capacity data set of the battery, wherein the battery capacity data set includes a battery identification of the battery and a battery capacity corresponding to each charge;
[0088] Establishing unit 220, for iteratively predicting the battery capacity data set of each battery in the at least one battery based on the sequence of the charging time and using a preset trend prediction algorithm to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
[0089] In an optional implementation, the establishing unit 220 is specifically configured to:
[0090] According to the order of the charging time, obtaining the cumulative charging days of each battery;
[0091] A preset trend prediction algorithm is used to iteratively predict the cumulative charging days of the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
[0092] In an optional implementation, the establishing unit 220 is further specifically configured to:
[0093] According to the sequence of the charging time and the SOC increment corresponding to each charging time, obtaining the cumulative number of cycle charging of the SOC of each battery from 0 to 100;
[0094] A preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times for the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging times.
[0095] In an optional implementation, the preset trend prediction algorithm is expressed as:
[0096]
[0097] in, Indicates the exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
[0098] In an optional implementation, the apparatus further includes: a sending unit 230;
[0099] The acquisition unit 210 is further used to acquire a battery capacity prediction request triggered by a user, wherein the prediction request includes a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted;
[0100] And, inputting the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identification of the target battery into the battery capacity prediction model, predicting the battery capacity of the target battery when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached by the preset trend prediction algorithm, and obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model;
[0101] The sending unit 230 is configured to send the predicted battery capacity of the target battery to a user terminal, so as to display the predicted battery capacity to the user through the user terminal.
[0102] In an optional implementation, the apparatus further includes: a generating unit 240;
[0103] A generating unit 240, configured to generate a decay curve of a historical battery capacity and a decay curve of a predicted battery capacity of the target battery;
[0104] The sending unit 230 is further configured to send the predicted battery capacity of the target battery to a user terminal, so as to display the attenuation curve of the historical battery capacity and the attenuation curve of the predicted battery capacity to the user through the user terminal.
[0105] In an optional implementation, the apparatus further includes: a determining unit 250;
[0106] The determination unit 250 is used to determine the decay state of the target battery based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, where the decay state includes a normal decay state and an abnormal decay state.
[0107] The functions of each functional unit of the training device for the battery capacity prediction model provided in the above-mentioned embodiments of the present application can be realized through the above-mentioned method steps. Therefore, the specific working process and beneficial effects of each unit in the training device for the battery capacity prediction model provided in the embodiments of the present application will not be repeated here.
[0108] The present application also provides an electronic device, such as Figure 3 As shown, it includes a processor 310 , a communication interface 320 , a memory 330 and a communication bus 340 , wherein the processor 310 , the communication interface 320 , and the memory 330 communicate with each other via the communication bus 340 .
[0109] Memory 330, for storing computer programs;
[0110] The processor 310 is used to execute the program stored in the memory 330 to implement the following steps:
[0111] Acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding SOC increment of the battery;
[0112] For any battery's historical charging data, based on the charge amount and the corresponding SOC increment of each charge, a battery capacity data set of the battery is obtained, wherein the battery capacity data set includes a battery identifier of the battery and a battery capacity corresponding to each charge;
[0113] Based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
[0114] In an optional implementation, based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including:
[0115] According to the order of the charging time, obtaining the cumulative charging days of each battery;
[0116] A preset trend prediction algorithm is used to iteratively predict the cumulative charging days of the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
[0117] In an optional implementation, based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including:
[0118] According to the sequence of the charging time and the SOC increment corresponding to each charging time, obtaining the cumulative number of cycle charging of the SOC of each battery from 0 to 100;
[0119] A preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times for the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging times.
[0120] In an optional implementation, the preset trend prediction algorithm is expressed as:
[0121]
[0122] in, Indicates the exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
[0123] In an optional implementation, after establishing the battery capacity prediction model, the method further includes:
[0124] Obtaining a battery capacity prediction request triggered by a user, the prediction request including a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted;
[0125] Inputting the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identifier of the target battery into the battery capacity prediction model, predicting the battery capacity of the target battery when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached by using the preset trend prediction algorithm, and obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model;
[0126] The predicted battery capacity of the target battery is sent to a user terminal, so as to display the predicted battery capacity to the user through the user terminal.
[0127] In an optional implementation, after obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model, the method further includes:
[0128] generating a historical battery capacity attenuation curve and a predicted battery capacity attenuation curve of the target battery;
[0129] The predicted battery capacity of the target battery is sent to a user terminal, so that the decay curve of the historical battery capacity and the decay curve of the predicted battery capacity are displayed to the user through the user terminal.
[0130] In an optional implementation, generating a decay curve of a historical battery capacity and a decay curve of a predicted battery capacity of the target battery, the method further includes:
[0131] Based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, the decay state of the target battery is determined, where the decay state includes a normal decay state and an abnormal decay state.
[0132] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0133] The communication interface is used for communication between the above electronic device and other devices.
[0134] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0135] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0136] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 1 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.
[0137] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the training method of the battery capacity prediction model described in any of the above embodiments.
[0138] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the training method of the battery capacity prediction model described in any of the above embodiments.
[0139] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or a form of an embodiment combining software and hardware. Moreover, the present application may adopt a form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0140] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
[0144] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application fall within the scope of the claims and their equivalents in the embodiments of the present application, the embodiments of the present application are also intended to include these modifications and variations.
Claims
1. A method for training a battery capacity prediction model, characterized in that: The method comprises: Acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding state of charge value increment of the battery; For any battery's historical charging data, based on the charge amount of each charge and the corresponding state of charge value increment, a battery capacity data set of the battery is obtained, wherein the battery capacity data set includes a battery identifier of the battery and a battery capacity corresponding to each charge; Based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
2. The method according to claim 1, characterized in that Based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including: According to the order of the charging time, obtaining the cumulative charging days of each battery; A preset trend prediction algorithm is used to iteratively predict the cumulative charging days of the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative charging days.
3. The method according to claim 1, characterized in that Based on the sequence of the charging time, a preset trend prediction algorithm is used to iteratively predict the battery capacity data set of each battery in the at least one battery to establish a battery capacity prediction model, including: According to the sequence of the charging time and the charge state value increment corresponding to each charging time, obtaining the cumulative number of charge cycles of the charge state value of each battery from 0 to 100; A preset trend prediction algorithm is used to iteratively predict the cumulative number of cycle charging times for the battery capacity data set of each battery, and a battery capacity prediction model is established; the battery capacity prediction model is used to predict the changing trend of the battery capacity of the battery with the cumulative number of cycle charging times.
4. The method according to claim 2 or 3, characterized in that The preset trend prediction algorithm is expressed as: in, Indicates the exponential regression algorithm; -w5 2 *x+w6 represents the linear regression algorithm, w1-w6 are different algorithm coefficients of the relevant algorithm; x is the cumulative number of charging days to be predicted or the cumulative number of cycle charging to be predicted.
5. The method according to claim 4, characterized in that After establishing the battery capacity prediction model, the method further includes: Obtaining a battery capacity prediction request triggered by a user, the prediction request including a cumulative number of charging days to be predicted or a cumulative number of charging cycles to be predicted; Inputting the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted, and the battery identifier of the target battery into the battery capacity prediction model, predicting the battery capacity of the target battery when the cumulative number of charging days to be predicted or the cumulative number of charging cycles to be predicted is reached by using the preset trend prediction algorithm, and obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model; The predicted battery capacity of the target battery is sent to a user terminal, so as to display the predicted battery capacity to the user through the user terminal.
6. The method according to claim 5, characterized in that After obtaining the predicted battery capacity of the target battery output by the battery capacity prediction model, the method further includes: generating a historical battery capacity attenuation curve and a predicted battery capacity attenuation curve of the target battery; The predicted battery capacity of the target battery is sent to a user terminal, so that the decay curve of the historical battery capacity and the decay curve of the predicted battery capacity are displayed to the user through the user terminal.
7. The method according to claim 6, characterized in that Generating a historical battery capacity attenuation curve and a predicted battery capacity attenuation curve of the target battery, the method further comprising: Based on the decay curve of the historical battery capacity and the slope of the decay curve of the predicted battery capacity, the decay state of the target battery is determined, where the decay state includes a normal decay state and an abnormal decay state.
8. A training device for a battery capacity prediction model, characterized in that: The device comprises: An acquisition unit, configured to acquire historical charging data of at least one battery, wherein the historical charging data includes a battery identification, a charging time, a charging amount corresponding to a corresponding charging time, and a corresponding charge state value increment of the battery; And, for any battery's historical charging data, based on the charge amount of each charge and the corresponding state of charge value increment, obtaining a battery capacity data set of the battery, wherein the battery capacity data set includes a battery identification of the battery and a battery capacity corresponding to each charge; An establishing unit is used to iteratively predict the battery capacity data set of each battery in the at least one battery based on the sequence of the charging time and using a preset trend prediction algorithm to establish a battery capacity prediction model; wherein the preset trend prediction algorithm is a combination algorithm of an exponential regression algorithm and a linear regression algorithm; and the battery capacity prediction model is used to predict the change trend of the battery capacity of each battery.
9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
