WO2023226358A1 - Prediction method for state of charge of energy storage battery pack - Google Patents

Prediction method for state of charge of energy storage battery pack Download PDF

Info

Publication number
WO2023226358A1
WO2023226358A1 PCT/CN2022/137079 CN2022137079W WO2023226358A1 WO 2023226358 A1 WO2023226358 A1 WO 2023226358A1 CN 2022137079 W CN2022137079 W CN 2022137079W WO 2023226358 A1 WO2023226358 A1 WO 2023226358A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
prediction model
charge
training
training data
Prior art date
Application number
PCT/CN2022/137079
Other languages
French (fr)
Chinese (zh)
Inventor
郭媛君
周邦昱
刘祥飞
姚文娇
杨之乐
胡天宇
Original Assignee
深圳先进技术研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳先进技术研究院 filed Critical 深圳先进技术研究院
Publication of WO2023226358A1 publication Critical patent/WO2023226358A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Definitions

  • the present invention relates to the field of battery detection, and in particular to a method for predicting the state of charge of an energy storage battery pack.
  • the battery state of charge is called SOC (State of Charge), which is used to reflect the actual number of charges (unit: ampere hours) existing in the energy storage medium during the electrochemical energy storage process in the energy storage medium corresponding to the rated energy storage capacity. The percentage of charge contained in ampere hours.
  • SOC State of Charge
  • the main measurement methods of SOC include open circuit voltage method, ampere-hour integration method, etc.
  • the open-circuit voltage method requires the battery to stand for a long time to achieve voltage stability, which usually takes several hours or even more than ten hours, and the measurement time cost is large; the ampere-hour integration method is easily affected by the current measurement accuracy and has a cumulative effect. error.
  • new energy electric vehicles have become popular. Accurately understanding the battery state of charge of new energy electric vehicles can help drivers make travel plans.
  • the existing battery state of charge measurement methods cannot meet the requirements of measurement time and measurement in real driving environments. Accuracy requirements.
  • the technical problem to be solved by the present invention is to provide a state-of-charge prediction method for an energy storage battery pack in view of the above-mentioned defects of the prior art, aiming to solve the problem that the existing battery state-of-charge measurement method is difficult to meet the needs of real driving environments. Regarding measurement time and measurement accuracy requirements.
  • embodiments of the present invention provide a method for predicting the state of charge of an energy storage battery pack, wherein the method includes:
  • Obtain a target prediction model input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
  • the target prediction model is a pre-trained model, and the training process of the target prediction model includes:
  • the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data.
  • the first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data.
  • the historical state of charge data is used When reflecting the state of charge of the second energy storage battery pack in the time period corresponding to the first training data, the battery pack types corresponding to the first energy storage battery pack and the second energy storage battery pack are the same;
  • the first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
  • a second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data.
  • the second training data has a one-to-one correspondence with a plurality of the first training data.
  • Each second training data includes second input data and historical state-of-charge data corresponding to the second input data.
  • the second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data.
  • the historical state-of-charge data of the input data are the same;
  • the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  • the first prediction model includes a plurality of first prediction models, and the plurality of first prediction models respectively correspond to different hyperparameter combinations.
  • the first prediction model is configured according to the first training data set. Predictive models are trained, including:
  • test data set wherein the test data set and the first training data set are generated based on the same data set
  • test data set determine the prediction accuracy corresponding to several of the prediction models
  • the second prediction model is determined based on the prediction model with the highest prediction accuracy.
  • several methods for determining the first prediction models include:
  • One of the first prediction models is determined according to each of the hyperparameter combinations.
  • the preset step size includes several step sizes, and the hyperparameter value range is traversed according to the preset step size to obtain several hyperparameter combinations, including:
  • each of the step sizes corresponds to different accuracy intervals, and the size of the accuracy interval corresponding to each step size is inversely proportional to the step size;
  • training several first prediction models respectively according to the first training data set includes:
  • the third prediction model is trained according to the second training data set, and the target prediction model is obtained after the training is completed, including:
  • the third prediction model is the second prediction model or the second prediction model after initializing model parameters.
  • embodiments of the present invention also provide a state-of-charge prediction device for an energy storage battery pack, wherein the device includes:
  • the acquisition module is used to acquire the battery data corresponding to the first energy storage battery pack
  • a prediction module used to obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
  • the target prediction model is a pre-trained model, and the training process of the target prediction model includes:
  • the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data.
  • the first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data.
  • the historical state of charge data is used The state of charge of the second energy storage battery pack within the time period corresponding to the first training data is reflected;
  • the first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
  • a second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data.
  • the second training data has a one-to-one correspondence with a plurality of the first training data.
  • Each second training data includes second input data and historical state-of-charge data corresponding to the second input data.
  • the second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data.
  • the historical state-of-charge data of the input data are the same;
  • the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  • embodiments of the present invention further provide a terminal, wherein the terminal includes a memory and one or more processors; the memory stores one or more programs; the program includes a program for executing: Instructions for the state-of-charge prediction method of any one of the above energy storage battery packs; the processor is used to execute the program.
  • embodiments of the present invention further provide a computer-readable storage medium on which a plurality of instructions are stored, wherein the instructions are suitable for being loaded and executed by a processor to implement any of the above energy storage methods. Steps of battery pack state-of-charge prediction method.
  • Embodiments of the present invention obtain a target prediction model through training by combining machine learning methods and input-output iteration methods. Since the target prediction model combines a variety of training methods, it has high accuracy and can predict energy storage batteries online in real time. The state of charge of the package. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.
  • Figure 1 is a schematic flowchart of a state-of-charge prediction method for an energy storage battery pack provided by an embodiment of the present invention.
  • FIG. 2 is a schematic module diagram of a state-of-charge prediction device for an energy storage battery pack provided by an embodiment of the present invention.
  • Figure 3 is a functional block diagram of a terminal provided by an embodiment of the present invention.
  • the present invention discloses a method for predicting the state of charge of an energy storage battery pack.
  • the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.
  • the battery state of charge is called SOC (State of Charge), which is used to reflect the actual number of charges (unit: ampere hours) existing in the energy storage medium during the electrochemical energy storage process in the energy storage medium corresponding to the rated energy storage capacity. The percentage of charge contained in ampere hours.
  • SOC State of Charge
  • the main measurement methods of SOC include open circuit voltage method, ampere-hour integration method, etc.
  • the open-circuit voltage method requires the battery to stand for a long time to achieve voltage stability, which usually takes several hours or even more than ten hours, and the measurement time cost is large; the ampere-hour integration method is easily affected by the current measurement accuracy and has a cumulative effect. error.
  • new energy electric vehicles have become popular. Accurately understanding the battery state of charge of new energy electric vehicles can help drivers make travel plans.
  • the existing battery state of charge measurement methods cannot meet the requirements of measurement time and measurement in real driving environments. Accuracy requirements.
  • the present invention provides a method for predicting the state of charge of an energy storage battery pack.
  • the method includes: obtaining battery data corresponding to the first energy storage battery pack; obtaining a target prediction model, and converting the battery Data is input into the target prediction model to obtain the state-of-charge data corresponding to the first energy storage battery pack; the target prediction model is a pre-trained model, and the training process of the target prediction model includes: obtaining the first A training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and the first input data.
  • Historical state-of-charge data corresponding to an input data.
  • the first input data is the historical battery data of the second energy storage battery pack within the time period corresponding to the first training data.
  • the historical state-of-charge data is used to reflect the The state of charge of the second energy storage battery pack within the time period corresponding to the first training data; obtaining a first prediction model, wherein the first prediction model is an untrained model; according to the first training data
  • the first prediction model is trained in a set, and after the training is completed, a second prediction model and predicted state-of-charge data corresponding to a plurality of the first training data are obtained; according to the first training data set and a plurality of the first training data,
  • the predicted state of charge data corresponding to the training data respectively determines a second training data set, wherein the second training data set includes a plurality of second training data, a plurality of the second training data and a plurality of the first training data.
  • each second training data includes second input data and historical state-of-charge data corresponding to the second input data
  • the second input data includes the first input data corresponding to the second training data and
  • the predicted state of charge data corresponding to the first input data, the historical state of charge data corresponding to the second input data are the same as the historical state of charge data of the first input data corresponding to the second input data; obtaining the third prediction Model, wherein the third prediction model has the same structure as the second prediction model; the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  • the present invention obtains a target prediction model by combining machine learning methods and input-output iteration method training.
  • the target prediction model Since the target prediction model combines multiple training methods, it has high accuracy and can predict the state of charge of the energy storage battery pack online in real time. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.
  • the method includes the following steps:
  • Step S100 Obtain battery data corresponding to the first energy storage battery pack.
  • the first energy storage battery pack in this embodiment can be any energy storage battery pack that needs to detect the state of charge. In order to obtain the current state of charge of the first energy storage battery pack, this embodiment needs to first obtain the battery data of the first energy storage battery pack.
  • the battery data of the first energy storage battery pack includes one or more characteristic data such as voltage, current, and time.
  • the method also includes the following steps:
  • Step S200 Obtain a target prediction model, input the battery data into the target prediction model, and obtain state-of-charge data corresponding to the first energy storage battery pack.
  • this embodiment pre-trains a target prediction model. Since the target prediction model is pre-trained based on a large amount of training data, it has learned the correlation between battery data with different characteristics and the state of charge. Therefore, after the battery data of the first energy storage battery pack is input into the target prediction model, the target prediction model can quickly predict the current state-of-charge data of the first energy storage battery pack based on the input battery data.
  • the training process of the target prediction model includes:
  • Step S10 Obtain a first training data set, wherein the first training data set includes a plurality of first training data, the plurality of first training data respectively correspond to different time periods, and each of the first training data includes a first training data set.
  • the first input data is the historical battery data of the second energy storage battery pack within the time period corresponding to the first training data.
  • the historical state-of-charge data is The status data is used to reflect the state of charge of the second energy storage battery pack in the time period corresponding to the first training data.
  • the first energy storage battery pack and the second energy storage battery pack correspond to battery packs respectively. Same type;
  • Step S20 Obtain a first prediction model, wherein the first prediction model is an untrained model
  • Step S30 Train the first prediction model according to the first training data set. After the training is completed, obtain the second prediction model and several predicted state-of-charge data corresponding to the first training data;
  • Step S40 Determine a second training data set according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data.
  • a plurality of the second training data correspond to a plurality of the first training data
  • each of the second training data includes second input data and historical state-of-charge data corresponding to the second input data
  • the The second input data includes the first input data corresponding to the second training data and the predicted state of charge data corresponding to the first input data.
  • the historical state of charge data corresponding to the second input data corresponds to the second input data.
  • the historical state-of-charge data of the first input data are the same;
  • Step S50 Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
  • Step S60 Train the third prediction model according to the second training data set, and obtain the target prediction model after training.
  • this embodiment needs to predetermine a second energy storage battery pack of the same battery pack type as the first energy storage battery pack, and obtain its historical battery data and historical state-of-charge data in different time periods to form the first training A data set, wherein the first training data set includes a plurality of first training data, each first training data includes historical battery data for a time period, that is, the first input data, and also includes historical state-of-charge data for the time period. , equivalent to real label data.
  • the untrained first prediction model is then iteratively trained based on the first training data set.
  • the iterative training includes several rounds of training.
  • the process of each round of training is: input the first input data corresponding to a first training data into the first prediction model of the current round, and obtain the output of the first prediction model based on the first input data.
  • the predicted state of charge data, and the first prediction model of the current round is converged based on the predicted state of charge data and the historical state of charge data corresponding to the first input data.
  • the second prediction model and the predicted state of charge data corresponding to each first training data are obtained.
  • a second training data set is reconstructed based on the predicted state of charge data corresponding to each first training data, where the second training data set includes a plurality of second training data, and each second training data is associated with a first training data One-to-one correspondence.
  • the second training data consists of a second input data and a historical state of charge data
  • the second input data corresponding to the second training data is composed of the first input corresponding to the second training data.
  • the data is composed of the predicted state of charge data of the first input data
  • the historical state of charge data corresponding to the second training data follows the historical state of charge data of the first training data corresponding to the second training data.
  • the third prediction model is iteratively trained based on the second training data set, and the target prediction model is obtained after the training is completed.
  • the first prediction model is a lightgbm model.
  • the third prediction model is the second prediction model or the second prediction model after initializing model parameters.
  • the third prediction model is the second prediction model
  • it is equivalent to first using the first training data set for iterative training on the first prediction model to obtain the trained second prediction model, and then based on the second training data set Continue to iteratively train the second prediction model to obtain the trained target prediction model. Since the target prediction model has been iteratively trained with two training data sets, its prediction accuracy will be significantly improved; when the third prediction model is the initialization model
  • the second prediction model after the parameters is equivalent to using the first training data set for iterative training on the first prediction model to obtain the trained second prediction model and the predicted state of charge data obtained in each round of iterative training.
  • the target prediction model Construct a second training data set based on the first training data set and the predicted state of charge data obtained in each round, re-initialize the second prediction model, and finally iteratively train the initialized second prediction model based on the second training data set to obtain
  • the target prediction model since the second training data set has undergone data amplification compared with the first training data set, the target prediction model is trained using the second training data set, and its prediction accuracy will also be significantly improved.
  • the first prediction model includes a plurality of first prediction models, and the plurality of first prediction models respectively correspond to different hyperparameter combinations.
  • the step S30 specifically includes the following steps:
  • Step S31 Train a plurality of the first prediction models respectively according to the first training data set, and obtain a plurality of prediction models respectively corresponding to the first prediction models after the training is completed;
  • Step S32 Obtain a test data set, wherein the test data set and the first training data set are generated based on the same data set;
  • Step S33 Determine the prediction accuracy corresponding to several of the prediction models according to the test data set
  • Step S34 Determine the second prediction model based on the prediction model with the highest prediction accuracy.
  • the process of hyperparameter tuning of the model is also included.
  • the data set is divided into a training data set and a test data set according to a preset ratio in advance, and then for each hyperparameter combination, the hyperparameters of the model are set based on the hyperparameter combination, and the model is trained based on the first training data set.
  • the prediction model with the highest prediction accuracy among all prediction models is used as the second prediction model to complete the two processes of hyperparameter tuning and network parameter optimization.
  • feature engineering, data cleaning and other operations are first performed on the data in the data set, and then divided into a training data set and a test data set.
  • several methods for determining the first prediction models include:
  • Step S01 Obtain the preset hyperparameter value range
  • Step S02 Traverse the hyperparameter value range according to the preset step size to obtain several hyperparameter combinations
  • Step S03 Determine one of the first prediction models according to each of the hyperparameter combinations.
  • a hyperparameter value range is preset to represent the parameter range corresponding to the hyperparameter combination. Then it traverses the hyperparameter value range sequentially according to the preset step size to obtain all possible hyperparameter combinations, and then sets the hyperparameters of the model based on each hyperparameter combination to obtain the first value corresponding to each hyperparameter combination. Predictive model.
  • the preset step size includes several step sizes, and step S02 specifically includes the following steps:
  • Step S021 Obtain a plurality of step sizes, wherein each of the step sizes corresponds to different accuracy intervals, and the size of the accuracy interval corresponding to each step size is inversely proportional to the step size;
  • Step S022 Determine the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, and determine the target step size from a number of the step sizes according to the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, wherein the previous step size is determined.
  • the prediction accuracy of the hyperparameter combination corresponding to the round search is located in the accuracy interval corresponding to the target step size;
  • Step S023 Execute the current round of search according to the target step size, and obtain the hyperparameter combination corresponding to the current round of search;
  • Step S024 Repeat the step of determining the prediction accuracy of the hyperparameter combination corresponding to the previous round of search until the hyperparameter value range is traversed.
  • this embodiment does not use a unified step size throughout the process, but adjusts the current round of search based on the prediction accuracy of the hyperparameter combination searched in the previous round.
  • the step size to take. In other words, use a larger step size traversal in the early stage to quickly reach the vicinity of the optimal hyperparameter combination; use a smaller step size traversal in the later stage to accurately find the optimal hyperparameter combination.
  • step S31 specifically includes:
  • Step S311 For each first prediction model, input the first input data in the first training data set into the first prediction model, and obtain the predicted state of charge data corresponding to the first input data;
  • Step S312 Determine the first loss function value corresponding to the first prediction model based on the predicted state of charge data and historical state of charge data corresponding to the first input data;
  • Step S313 Adjust the model parameters of the first prediction model according to the first loss function value, and continue to perform the step of inputting the first input data in the first training data set into the first prediction model, Until the preset training conditions are met, a prediction model corresponding to the first prediction model is obtained.
  • the training process corresponding to the first training data set is equivalent to using the battery data of the second energy storage battery pack obtained in different time periods as the input data of the model.
  • the first input data corresponding to the current round is input into the first prediction model to obtain the predicted state of charge data of the current round.
  • the state data calculates the first loss function value of the current round. Since the first loss function value can reflect the gap between the model output and the real label, the module model parameters are adjusted based on the first loss function value.
  • step S60 specifically includes the following steps:
  • Step S61 Enter the second input data in the second training data set into the third prediction model to obtain predicted state-of-charge data corresponding to the second input data;
  • Step S62 Determine the second loss function value corresponding to the third prediction model based on the predicted state of charge data and historical state of charge data corresponding to the second input data;
  • Step S63 Adjust the model parameters of the third prediction model according to the second loss function value, and continue to perform the step of inputting the second input data in the second training data set into the third prediction model. Steps until the preset training conditions are met to obtain the target prediction model.
  • the training process corresponding to the second training data set is equivalent to using the battery data of the second energy storage battery pack obtained in different time periods and the predicted state-of-charge data corresponding to the battery data as the input data of the model.
  • the second input data corresponding to the current round is input into the first prediction model to obtain the predicted state of charge data of the current round.
  • the state data calculates the second loss function value of the current round. Since the second loss function value can reflect the gap between the model output and the real label, the module model parameters are adjusted based on the second loss function value.
  • the present invention also provides a device for predicting the state of charge of an energy storage battery pack. As shown in Figure 2, the device includes:
  • Acquisition module 01 is used to obtain battery data corresponding to the first energy storage battery pack
  • the prediction module 02 is used to obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
  • the target prediction model is a pre-trained model, and the training process of the target prediction model includes:
  • the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data.
  • the first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data.
  • the historical state of charge data is used The state of charge of the second energy storage battery pack within the time period corresponding to the first training data is reflected;
  • the first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
  • a second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data.
  • the second training data has a one-to-one correspondence with a plurality of the first training data.
  • Each second training data includes second input data and historical state-of-charge data corresponding to the second input data.
  • the second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data.
  • the historical state-of-charge data of the input data are the same;
  • the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  • the present invention also provides a terminal, the functional block diagram of which can be shown in Figure 3 .
  • the terminal includes a processor, memory, network interface, and display screen connected through a system bus.
  • the processor of the terminal is used to provide computing and control capabilities.
  • the memory of the terminal includes non-volatile storage media and internal memory.
  • the non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media.
  • the network interface of the terminal is used to communicate with external terminals through a network connection.
  • the computer program is executed by a processor to implement a state-of-charge prediction method for an energy storage battery pack.
  • the terminal's display screen may be a liquid crystal display or an electronic ink display.
  • one or more programs are stored in the memory of the terminal, and are configured to be executed by one or more processors, including performing an energy storage battery pack operation. Instructions for the state of charge prediction method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM
  • the present invention discloses a method for predicting the state of charge of an energy storage battery pack.
  • the method includes: obtaining battery data corresponding to the first energy storage battery pack; obtaining a target prediction model, and inputting the battery data.
  • the target prediction model obtains the state-of-charge data corresponding to the first energy storage battery pack;
  • the target prediction model is a pre-trained model
  • the training process of the target prediction model includes: obtaining the first training data Set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes first input data and the first input
  • the historical state of charge data corresponding to the data, the first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data, and the historical state of charge data is used to reflect the first The state of charge of the second energy storage battery pack in the time period corresponding to the training data; obtain a first prediction model, wherein the first prediction model
  • each second training data includes second input data and historical state-of-charge data corresponding to the second input data
  • the second input data includes the first input data corresponding to the second training data and the first input data.
  • Predicted state-of-charge data corresponding to an input data, historical state-of-charge data corresponding to the second input data being the same as historical state-of-charge data corresponding to the first input data corresponding to the second input data; obtaining a third prediction model, Wherein, the third prediction model has the same structure as the second prediction model; the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  • the present invention obtains a target prediction model by combining machine learning methods and input-output iteration method training.
  • the target prediction model Since the target prediction model combines multiple training methods, it has high accuracy and can predict the state of charge of the energy storage battery pack online in real time. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

A prediction method for a state of charge of an energy storage battery pack. A target prediction model is trained by combining a machine learning method and an input and output iteration method, and because the target prediction model uses a combination of a plurality of training methods, the precision is high, and the state of charge of the energy storage battery pack can be predicted online in real time, thereby solving the problem that existing measurement methods for the state of charge of a battery are difficult to satisfy the requirements for measurement time and measurement precision in a real driving environment.

Description

一种储能电池包的荷电状态预测方法A state-of-charge prediction method for energy storage battery packs 技术领域Technical field
本发明涉及电池检测领域,尤其涉及的是一种储能电池包的荷电状态预测方法。The present invention relates to the field of battery detection, and in particular to a method for predicting the state of charge of an energy storage battery pack.
背景技术Background technique
电池荷电状态称为SOC(State of Charge),是用来反映电化学储能过程中储能介质中实际存在的电荷数(单位为安·时)占额定储能容量对应的储能介质中含有的电荷数(单位为安·时)的百分率。目前SOC的测量方法主要有开路电压法、安时积分法等等。然而,开路电压法需要电池长时静置,以达到电压稳定,通常需要几个小时甚至十几个小时,测量的时间成本较大;安时积分法容易受到电流测量精度的影响,且具有累积误差。目前新能源电动车已经普及,准确了解新能源电动车的电池荷电状态有助于驾驶员制定行程计划,然而现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求。The battery state of charge is called SOC (State of Charge), which is used to reflect the actual number of charges (unit: ampere hours) existing in the energy storage medium during the electrochemical energy storage process in the energy storage medium corresponding to the rated energy storage capacity. The percentage of charge contained in ampere hours. At present, the main measurement methods of SOC include open circuit voltage method, ampere-hour integration method, etc. However, the open-circuit voltage method requires the battery to stand for a long time to achieve voltage stability, which usually takes several hours or even more than ten hours, and the measurement time cost is large; the ampere-hour integration method is easily affected by the current measurement accuracy and has a cumulative effect. error. At present, new energy electric vehicles have become popular. Accurately understanding the battery state of charge of new energy electric vehicles can help drivers make travel plans. However, the existing battery state of charge measurement methods cannot meet the requirements of measurement time and measurement in real driving environments. Accuracy requirements.
因此,现有技术还有待改进和发展。Therefore, the existing technology still needs to be improved and developed.
技术问题technical problem
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种储能电池包的荷电状态预测方法,旨在解决现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求的问题。The technical problem to be solved by the present invention is to provide a state-of-charge prediction method for an energy storage battery pack in view of the above-mentioned defects of the prior art, aiming to solve the problem that the existing battery state-of-charge measurement method is difficult to meet the needs of real driving environments. Regarding measurement time and measurement accuracy requirements.
技术解决方案Technical solutions
本发明解决问题所采用的技术方案如下:The technical solutions adopted by the present invention to solve the problem are as follows:
第一方面,本发明实施例提供一种储能电池包的荷电状态预测方法,其中,所述方法包括:In a first aspect, embodiments of the present invention provide a method for predicting the state of charge of an energy storage battery pack, wherein the method includes:
获取第一储能电池包对应的电池数据;Obtain the battery data corresponding to the first energy storage battery pack;
获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;Obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:The target prediction model is a pre-trained model, and the training process of the target prediction model includes:
获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态,所述第一储能电池包与所述第二储能电池包分别对应的电池包类型相同;Obtain a first training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data. The historical state of charge data is used When reflecting the state of charge of the second energy storage battery pack in the time period corresponding to the first training data, the battery pack types corresponding to the first energy storage battery pack and the second energy storage battery pack are the same;
获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Obtain a first prediction model, wherein the first prediction model is an untrained model;
根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;The first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;A second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data. The second training data has a one-to-one correspondence with a plurality of the first training data. Each second training data includes second input data and historical state-of-charge data corresponding to the second input data. The second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data. The historical state-of-charge data of the input data are the same;
获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。The third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
在一种实施方式中,所述第一预测模型包括若干第一预测模型,若干所述第一预测模型分别对应不同的超参数组合,所述根据所述第一训练数据集对所述第一预测模型进行训练,包括:In one implementation, the first prediction model includes a plurality of first prediction models, and the plurality of first prediction models respectively correspond to different hyperparameter combinations. The first prediction model is configured according to the first training data set. Predictive models are trained, including:
根据所述第一训练数据集分别对若干所述第一预测模型进行训练,训练完毕后得到若干所述第一预测模型分别对应的预测模型;Train a plurality of the first prediction models respectively according to the first training data set, and obtain a plurality of prediction models respectively corresponding to the first prediction models after the training is completed;
获取测试数据集,其中,所述测试数据集与所述第一训练数据集基于同一数据集产生;Obtain a test data set, wherein the test data set and the first training data set are generated based on the same data set;
根据所述测试数据集,确定若干所述预测模型分别对应的预测精度;According to the test data set, determine the prediction accuracy corresponding to several of the prediction models;
根据所述预测精度最高的预测模型,确定所述第二预测模型。The second prediction model is determined based on the prediction model with the highest prediction accuracy.
在一种实施方式中,若干所述第一预测模型的确定方法包括:In one implementation, several methods for determining the first prediction models include:
获取预设的超参数值域;Get the preset hyperparameter value range;
根据预设步长对所述超参数值域进行遍历,得到若干超参数组合;Traverse the hyperparameter value range according to the preset step size to obtain several hyperparameter combinations;
根据每一所述超参数组合确定一个所述第一预测模型。One of the first prediction models is determined according to each of the hyperparameter combinations.
在一种实施方式中,所述预设步长包括若干步长,所述根据预设步长对所述超参数值域进行遍历,得到若干超参数组合,包括:In one implementation, the preset step size includes several step sizes, and the hyperparameter value range is traversed according to the preset step size to obtain several hyperparameter combinations, including:
获取若干所述步长,其中,若干所述步长分别对应不同的精度区间,每一所述步长对应的精度区间的大小与该步长呈反比关系;Obtain a plurality of step sizes, wherein each of the step sizes corresponds to different accuracy intervals, and the size of the accuracy interval corresponding to each step size is inversely proportional to the step size;
确定前一轮搜索对应的超参数组合的预测精度,根据所述前一轮搜索对应的超参数组合的预测精度从若干所述步长中确定目标步长,其中,所述前一轮搜索对应的超参数组合的预测精度位于所述目标步长对应的精度区间;Determine the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, and determine the target step size from several step sizes according to the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, wherein the previous round of search corresponds to The prediction accuracy of the hyperparameter combination is located in the accuracy interval corresponding to the target step size;
根据目标步长执行当前轮搜索,得到当前轮搜索对应的超参数组合;Execute the current round of search according to the target step size, and obtain the hyperparameter combination corresponding to the current round of search;
重复所述确定前一轮搜索对应的超参数组合的预测精度的步骤,直至遍历所述超参数值域。Repeat the step of determining the prediction accuracy of the hyperparameter combination corresponding to the previous round of search until the hyperparameter value range is traversed.
在一种实施方式中,所述根据所述第一训练数据集分别对若干所述第一预测模型进行训练,包括:In one implementation, training several first prediction models respectively according to the first training data set includes:
针对每一所述第一预测模型,将所述第一训练数据集中的第一输入数据输入该第一预测模型,得到该第一输入数据对应的预测荷电状态数据;For each of the first prediction models, input the first input data in the first training data set into the first prediction model to obtain the predicted state of charge data corresponding to the first input data;
根据该第一输入数据对应的预测荷电状态数据和历史荷电状态数据,确定该第一预测模型对应的第一损失函数值;Determine the first loss function value corresponding to the first prediction model according to the predicted state of charge data and historical state of charge data corresponding to the first input data;
根据所述第一损失函数值对该第一预测模型的模型参数进行调整,并继续执行所述将所述第一训练数据集中的第一输入数据输入该第一预测模型的步骤,直至满足预设训练条件,以得到该第一预测模型对应的预测模型。Adjust the model parameters of the first prediction model according to the first loss function value, and continue to perform the step of inputting the first input data in the first training data set into the first prediction model until the predetermined Set training conditions to obtain the prediction model corresponding to the first prediction model.
在一种实施方式中,所述根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型,包括:In one implementation, the third prediction model is trained according to the second training data set, and the target prediction model is obtained after the training is completed, including:
将所述第二训练数据集中的第二输入数据输入所述第三预测模型,得到该第二输入数据对应的预测荷电状态数据;Enter the second input data in the second training data set into the third prediction model to obtain predicted state-of-charge data corresponding to the second input data;
根据该第二输入数据对应的预测荷电状态数据和历史荷电状态数据,确定所述第三预测模型对应的第二损失函数值;Determine the second loss function value corresponding to the third prediction model according to the predicted state of charge data and historical state of charge data corresponding to the second input data;
根据所述第二损失函数值对所述第三预测模型的模型参数进行调整,并继续执行所述将所述第二训练数据集中的第二输入数据输入所述第三预测模型的步骤,直至满足预设训练条件,以得到所述目标预测模型。Adjust the model parameters of the third prediction model according to the second loss function value, and continue to perform the step of inputting the second input data in the second training data set into the third prediction model until Meet the preset training conditions to obtain the target prediction model.
在一种实施方式中,所述第三预测模型为所述第二预测模型或者初始化模型参数后的所述第二预测模型。In one implementation, the third prediction model is the second prediction model or the second prediction model after initializing model parameters.
第二方面,本发明实施例还提供一种储能电池包的荷电状态预测装置,其中,所述装置包括:In a second aspect, embodiments of the present invention also provide a state-of-charge prediction device for an energy storage battery pack, wherein the device includes:
获取模块,用于获取第一储能电池包对应的电池数据;The acquisition module is used to acquire the battery data corresponding to the first energy storage battery pack;
预测模块,用于获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;A prediction module, used to obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:The target prediction model is a pre-trained model, and the training process of the target prediction model includes:
获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态;Obtain a first training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data. The historical state of charge data is used The state of charge of the second energy storage battery pack within the time period corresponding to the first training data is reflected;
获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Obtain a first prediction model, wherein the first prediction model is an untrained model;
根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;The first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;A second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data. The second training data has a one-to-one correspondence with a plurality of the first training data. Each second training data includes second input data and historical state-of-charge data corresponding to the second input data. The second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data. The historical state-of-charge data of the input data are the same;
获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。The third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
第三方面,本发明实施例还提供一种终端,其中,所述终端包括有存储器和一个或者一个以上处理器;所述存储器存储有一个或者一个以上的程序;所述程序包含用于执行如上述任一所述的储能电池包的荷电状态预测方法的指令;所述处理器用于执行所述程序。In a third aspect, embodiments of the present invention further provide a terminal, wherein the terminal includes a memory and one or more processors; the memory stores one or more programs; the program includes a program for executing: Instructions for the state-of-charge prediction method of any one of the above energy storage battery packs; the processor is used to execute the program.
第四方面,本发明实施例还提供一种计算机可读存储介质,其上存储有多条指令,其中,所述指令适用于由处理器加载并执行,以实现上述任一所述的储能电池包的荷电状态预测方法的步骤。In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium on which a plurality of instructions are stored, wherein the instructions are suitable for being loaded and executed by a processor to implement any of the above energy storage methods. Steps of battery pack state-of-charge prediction method.
有益效果beneficial effects
本发明的有益效果:本发明实施例通过结合机器学习方法和输入输出迭代方法训练得到目标预测模型,该目标预测模型由于结合了多种训练方法,因此精度较高且可以在线实时预测储能电池包的荷电状态。解决了现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求的问题。Beneficial effects of the present invention: Embodiments of the present invention obtain a target prediction model through training by combining machine learning methods and input-output iteration methods. Since the target prediction model combines a variety of training methods, it has high accuracy and can predict energy storage batteries online in real time. The state of charge of the package. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments recorded in the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本发明实施例提供的储能电池包的荷电状态预测方法的流程示意图。Figure 1 is a schematic flowchart of a state-of-charge prediction method for an energy storage battery pack provided by an embodiment of the present invention.
图2是本发明实施例提供的储能电池包的荷电状态预测装置的模块示意图。FIG. 2 is a schematic module diagram of a state-of-charge prediction device for an energy storage battery pack provided by an embodiment of the present invention.
图3是本发明实施例提供的终端的原理框图。Figure 3 is a functional block diagram of a terminal provided by an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
本发明公开了一种储能电池包的荷电状态预测方法,为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention discloses a method for predicting the state of charge of an energy storage battery pack. In order to make the purpose, technical solutions and effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。 应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that, unless expressly stated otherwise, the singular forms "a", "an", "the" and "the" used herein may also include the plural form. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. As used herein, the term "and/or" includes all or any unit and all combinations of one or more of the associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in general dictionaries, are to be understood to have meanings consistent with their meaning in the context of the prior art, and are not to be used in an idealistic or overly descriptive manner unless specifically defined as here. to explain the formal meaning.
电池荷电状态称为SOC(State of Charge),是用来反映电化学储能过程中储能介质中实际存在的电荷数(单位为安·时)占额定储能容量对应的储能介质中含有的电荷数(单位为安·时)的百分率。目前SOC的测量方法主要有开路电压法、安时积分法等等。然而,开路电压法需要电池长时静置,以达到电压稳定,通常需要几个小时甚至十几个小时,测量的时间成本较大;安时积分法容易受到电流测量精度的影响,且具有累积误差。目前新能源电动车已经普及,准确了解新能源电动车的电池荷电状态有助于驾驶员制定行程计划,然而现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求。The battery state of charge is called SOC (State of Charge), which is used to reflect the actual number of charges (unit: ampere hours) existing in the energy storage medium during the electrochemical energy storage process in the energy storage medium corresponding to the rated energy storage capacity. The percentage of charge contained in ampere hours. At present, the main measurement methods of SOC include open circuit voltage method, ampere-hour integration method, etc. However, the open-circuit voltage method requires the battery to stand for a long time to achieve voltage stability, which usually takes several hours or even more than ten hours, and the measurement time cost is large; the ampere-hour integration method is easily affected by the current measurement accuracy and has a cumulative effect. error. At present, new energy electric vehicles have become popular. Accurately understanding the battery state of charge of new energy electric vehicles can help drivers make travel plans. However, the existing battery state of charge measurement methods cannot meet the requirements of measurement time and measurement in real driving environments. Accuracy requirements.
针对现有技术的上述缺陷,本发明提供一种储能电池包的荷电状态预测方法,所述方法包括:获取第一储能电池包对应的电池数据;获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态;获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。本发明通过结合机器学习方法和输入输出迭代方法训练得到目标预测模型,该目标预测模型由于结合了多种训练方法,因此精度较高且可以在线实时预测储能电池包的荷电状态。解决了现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求的问题。In view of the above defects of the prior art, the present invention provides a method for predicting the state of charge of an energy storage battery pack. The method includes: obtaining battery data corresponding to the first energy storage battery pack; obtaining a target prediction model, and converting the battery Data is input into the target prediction model to obtain the state-of-charge data corresponding to the first energy storage battery pack; the target prediction model is a pre-trained model, and the training process of the target prediction model includes: obtaining the first A training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and the first input data. Historical state-of-charge data corresponding to an input data. The first input data is the historical battery data of the second energy storage battery pack within the time period corresponding to the first training data. The historical state-of-charge data is used to reflect the The state of charge of the second energy storage battery pack within the time period corresponding to the first training data; obtaining a first prediction model, wherein the first prediction model is an untrained model; according to the first training data The first prediction model is trained in a set, and after the training is completed, a second prediction model and predicted state-of-charge data corresponding to a plurality of the first training data are obtained; according to the first training data set and a plurality of the first training data, The predicted state of charge data corresponding to the training data respectively determines a second training data set, wherein the second training data set includes a plurality of second training data, a plurality of the second training data and a plurality of the first training data. Correspondingly, each second training data includes second input data and historical state-of-charge data corresponding to the second input data, and the second input data includes the first input data corresponding to the second training data and The predicted state of charge data corresponding to the first input data, the historical state of charge data corresponding to the second input data are the same as the historical state of charge data of the first input data corresponding to the second input data; obtaining the third prediction Model, wherein the third prediction model has the same structure as the second prediction model; the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training. The present invention obtains a target prediction model by combining machine learning methods and input-output iteration method training. Since the target prediction model combines multiple training methods, it has high accuracy and can predict the state of charge of the energy storage battery pack online in real time. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.
如图1所示,所述方法包括如下步骤:As shown in Figure 1, the method includes the following steps:
步骤S100、获取第一储能电池包对应的电池数据。Step S100: Obtain battery data corresponding to the first energy storage battery pack.
具体地,本实施例中的第一储能电池包可以为任何一个需要检测荷电状态的储能电池包。为了得到第一储能电池包当前的荷电状态,本实施例需要首先获取第一储能电池包的电池数据。在一种实现方式中,第一储能电池包的电池数据包括电压、电流、时间等特征数据中的一种或者多种。Specifically, the first energy storage battery pack in this embodiment can be any energy storage battery pack that needs to detect the state of charge. In order to obtain the current state of charge of the first energy storage battery pack, this embodiment needs to first obtain the battery data of the first energy storage battery pack. In one implementation, the battery data of the first energy storage battery pack includes one or more characteristic data such as voltage, current, and time.
如图1所示,所述方法还包括如下步骤:As shown in Figure 1, the method also includes the following steps:
步骤S200、获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据。Step S200: Obtain a target prediction model, input the battery data into the target prediction model, and obtain state-of-charge data corresponding to the first energy storage battery pack.
具体地,本实施例预先训练了一个目标预测模型,由于该目标预测模型预先基于大量的训练数据训练,学习了不同特征的电池数据与荷电状态之间的关联关系。因此将第一储能电池包的电池数据输入目标预测模型后,目标预测模型即可根据输入的电池数据快速预测出第一储能电池包当前的荷电状态数据。Specifically, this embodiment pre-trains a target prediction model. Since the target prediction model is pre-trained based on a large amount of training data, it has learned the correlation between battery data with different characteristics and the state of charge. Therefore, after the battery data of the first energy storage battery pack is input into the target prediction model, the target prediction model can quickly predict the current state-of-charge data of the first energy storage battery pack based on the input battery data.
在一种实现方式中,所述目标预测模型的的训练过程包括:In one implementation, the training process of the target prediction model includes:
步骤S10、获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态,所述第一储能电池包与所述第二储能电池包分别对应的电池包类型相同;Step S10: Obtain a first training data set, wherein the first training data set includes a plurality of first training data, the plurality of first training data respectively correspond to different time periods, and each of the first training data includes a first training data set. The input data and the historical state-of-charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack within the time period corresponding to the first training data. The historical state-of-charge data is The status data is used to reflect the state of charge of the second energy storage battery pack in the time period corresponding to the first training data. The first energy storage battery pack and the second energy storage battery pack correspond to battery packs respectively. Same type;
步骤S20、获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Step S20: Obtain a first prediction model, wherein the first prediction model is an untrained model;
步骤S30、根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;Step S30: Train the first prediction model according to the first training data set. After the training is completed, obtain the second prediction model and several predicted state-of-charge data corresponding to the first training data;
步骤S40、根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;Step S40: Determine a second training data set according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data. , a plurality of the second training data correspond to a plurality of the first training data, each of the second training data includes second input data and historical state-of-charge data corresponding to the second input data, the The second input data includes the first input data corresponding to the second training data and the predicted state of charge data corresponding to the first input data. The historical state of charge data corresponding to the second input data corresponds to the second input data. The historical state-of-charge data of the first input data are the same;
步骤S50、获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Step S50: Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
步骤S60、根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。Step S60: Train the third prediction model according to the second training data set, and obtain the target prediction model after training.
简单来说,相对普通的机器学习只需要采用一种训练数据集进行迭代训练而言,本实施例中的目标预测模型需要采用两种训练数据集进行迭代训练,因此模型精度更高。具体地,本实施例需要预先确定与第一储能电池包为同一电池包类型的第二储能电池包,并获取其在不同时间段的历史电池数据和历史荷电状态数据组成第一训练数据集,其中,第一训练数据集包括若干第一训练数据,每一第一训练数据包括一个时间段的历史电池数据,即第一输入数据,并且还包括该时间段的历史荷电状态数据,相当于真实标签数据。然后根据第一训练数据集对未经过训练的第一预测模型进行迭代训练。其中,迭代训练包括若干轮训练,每一轮训练的过程为:将一个第一训练数据对应的第一输入数据输入当前轮的第一预测模型,得到第一预测模型基于该第一输入数据输出的预测荷电状态数据,并基于该预测荷电状态数据和该第一输入数据对应的历史荷电状态数据对当前轮的第一预测模型进行收敛。对第一预测模型进行迭代训练完毕后,即得到第二预测模型和每一第一训练数据对应的预测荷电状态数据。然后基于每一第一训练数据对应的预测荷电状态数据重新构建一个第二训练数据集,其中,第二训练数据集包括若干第二训练数据,每一第二训练数据与一个第一训练数据一一对应。针对每一第二训练数据,该第二训练数据由一个第二输入数据和一个历史荷电状态数据组成,该第二训练数据对应的第二输入数据由该第二训练数据对应的第一输入数据和该第一输入数据的预测荷电状态数据组成,该第二训练数据对应的历史荷电状态数据则沿用该第二训练数据对应的第一训练数据的历史荷电状态数据。最后再根据第二训练数据集对第三预测模型进行迭代训练,训练完毕后即得到目标预测模型。To put it simply, compared with ordinary machine learning, which only needs to use one training data set for iterative training, the target prediction model in this embodiment needs to use two training data sets for iterative training, so the model accuracy is higher. Specifically, this embodiment needs to predetermine a second energy storage battery pack of the same battery pack type as the first energy storage battery pack, and obtain its historical battery data and historical state-of-charge data in different time periods to form the first training A data set, wherein the first training data set includes a plurality of first training data, each first training data includes historical battery data for a time period, that is, the first input data, and also includes historical state-of-charge data for the time period. , equivalent to real label data. The untrained first prediction model is then iteratively trained based on the first training data set. The iterative training includes several rounds of training. The process of each round of training is: input the first input data corresponding to a first training data into the first prediction model of the current round, and obtain the output of the first prediction model based on the first input data. The predicted state of charge data, and the first prediction model of the current round is converged based on the predicted state of charge data and the historical state of charge data corresponding to the first input data. After the iterative training of the first prediction model is completed, the second prediction model and the predicted state of charge data corresponding to each first training data are obtained. Then a second training data set is reconstructed based on the predicted state of charge data corresponding to each first training data, where the second training data set includes a plurality of second training data, and each second training data is associated with a first training data One-to-one correspondence. For each second training data, the second training data consists of a second input data and a historical state of charge data, and the second input data corresponding to the second training data is composed of the first input corresponding to the second training data. The data is composed of the predicted state of charge data of the first input data, and the historical state of charge data corresponding to the second training data follows the historical state of charge data of the first training data corresponding to the second training data. Finally, the third prediction model is iteratively trained based on the second training data set, and the target prediction model is obtained after the training is completed.
在一种实现方式中,所述第一预测模型为lightgbm模型。In one implementation, the first prediction model is a lightgbm model.
在一种实现方式中,所述第三预测模型为所述第二预测模型或者初始化模型参数后的所述第二预测模型。In one implementation, the third prediction model is the second prediction model or the second prediction model after initializing model parameters.
具体地,当第三预测模型为第二预测模型时,相当于在第一预测模型上先采用第一训练数据集进行迭代训练,得到训练完毕的第二预测模型,再基于第二训练数据集继续对第二预测模型进行迭代训练,得到训练完毕的目标预测模型,由于目标预测模型经过了两种训练数据集的迭代训练,因此其预测精度会有明显提升;当第三预测模型为初始化模型参数后的第二预测模型时,相当于在第一预测模型上先采用第一训练数据集进行迭代训练,得到训练完毕的第二预测模型和迭代训练中各轮获取的预测荷电状态数据,基于第一训练数据集和各轮获取的预测荷电状态数据构建第二训练数据集,重新初始化第二预测模型,最后再根据第二训练数据集对初始化后的第二预测模型进行迭代训练得到目标预测模型,由于第二训练数据集相较于第一训练数据集经过了数据扩增,因此采用第二训练数据集训练得到目标预测模型,其预测精度也会有明显提升。Specifically, when the third prediction model is the second prediction model, it is equivalent to first using the first training data set for iterative training on the first prediction model to obtain the trained second prediction model, and then based on the second training data set Continue to iteratively train the second prediction model to obtain the trained target prediction model. Since the target prediction model has been iteratively trained with two training data sets, its prediction accuracy will be significantly improved; when the third prediction model is the initialization model The second prediction model after the parameters is equivalent to using the first training data set for iterative training on the first prediction model to obtain the trained second prediction model and the predicted state of charge data obtained in each round of iterative training. Construct a second training data set based on the first training data set and the predicted state of charge data obtained in each round, re-initialize the second prediction model, and finally iteratively train the initialized second prediction model based on the second training data set to obtain For the target prediction model, since the second training data set has undergone data amplification compared with the first training data set, the target prediction model is trained using the second training data set, and its prediction accuracy will also be significantly improved.
在一种实现方式中,所述第一预测模型包括若干第一预测模型,若干所述第一预测模型分别对应不同的超参数组合,所述步骤S30具体包括如下步骤:In one implementation, the first prediction model includes a plurality of first prediction models, and the plurality of first prediction models respectively correspond to different hyperparameter combinations. The step S30 specifically includes the following steps:
步骤S31、根据所述第一训练数据集分别对若干所述第一预测模型进行训练,训练完毕后得到若干所述第一预测模型分别对应的预测模型;Step S31: Train a plurality of the first prediction models respectively according to the first training data set, and obtain a plurality of prediction models respectively corresponding to the first prediction models after the training is completed;
步骤S32、获取测试数据集,其中,所述测试数据集与所述第一训练数据集基于同一数据集产生;Step S32: Obtain a test data set, wherein the test data set and the first training data set are generated based on the same data set;
步骤S33、根据所述测试数据集,确定若干所述预测模型分别对应的预测精度;Step S33: Determine the prediction accuracy corresponding to several of the prediction models according to the test data set;
步骤S34、根据所述预测精度最高的预测模型,确定所述第二预测模型。Step S34: Determine the second prediction model based on the prediction model with the highest prediction accuracy.
简单来说,本实施例中采用第一训练数据集进行模型训练时,还包括有模型的超参数调优的过程。具体地,预先将数据集按照预设比例分为训练数据集和测试数据集,然后针对每一种超参数组合,均基于该超参数组合设置模型的超参数,并基于第一训练数据集训练出一个预测模型,然后基于测试数据集测试该预测模型的预测精度。最后将所有预测模型中预测精度最高的预测模型作为第二预测模型,从而完成超参数调优和网络参数优化两个过程。To put it simply, in this embodiment, when the first training data set is used for model training, the process of hyperparameter tuning of the model is also included. Specifically, the data set is divided into a training data set and a test data set according to a preset ratio in advance, and then for each hyperparameter combination, the hyperparameters of the model are set based on the hyperparameter combination, and the model is trained based on the first training data set. Develop a prediction model and then test the prediction accuracy of the prediction model based on the test data set. Finally, the prediction model with the highest prediction accuracy among all prediction models is used as the second prediction model to complete the two processes of hyperparameter tuning and network parameter optimization.
在一种实现方式中,获取到数据集以后,先对数据集中的数据进行特征工程、数据清洗等操作,然后再将其分为训练数据集和测试数据集。In one implementation, after obtaining the data set, feature engineering, data cleaning and other operations are first performed on the data in the data set, and then divided into a training data set and a test data set.
在一种实现方式中,若干所述第一预测模型的确定方法包括:In one implementation, several methods for determining the first prediction models include:
步骤S01、获取预设的超参数值域;Step S01: Obtain the preset hyperparameter value range;
步骤S02、根据预设步长对所述超参数值域进行遍历,得到若干超参数组合;Step S02: Traverse the hyperparameter value range according to the preset step size to obtain several hyperparameter combinations;
步骤S03、根据每一所述超参数组合确定一个所述第一预测模型。Step S03: Determine one of the first prediction models according to each of the hyperparameter combinations.
具体地,预先设定一个超参数值域,用于表示超参数组合对应的参数范围。然后根据预先设定的步长依次遍历超参数值域,得到所有可能的超参数组合,然后再基于每一种超参数组合设置一次模型的超参数,得到每一种超参数组合对应的第一预测模型。Specifically, a hyperparameter value range is preset to represent the parameter range corresponding to the hyperparameter combination. Then it traverses the hyperparameter value range sequentially according to the preset step size to obtain all possible hyperparameter combinations, and then sets the hyperparameters of the model based on each hyperparameter combination to obtain the first value corresponding to each hyperparameter combination. Predictive model.
在一种实现方式中,所述预设步长包括若干步长,所述步骤S02具体包括如下步骤:In one implementation, the preset step size includes several step sizes, and step S02 specifically includes the following steps:
步骤S021、获取若干所述步长,其中,若干所述步长分别对应不同的精度区间,每一所述步长对应的精度区间的大小与该步长呈反比关系;Step S021: Obtain a plurality of step sizes, wherein each of the step sizes corresponds to different accuracy intervals, and the size of the accuracy interval corresponding to each step size is inversely proportional to the step size;
步骤S022、确定前一轮搜索对应的超参数组合的预测精度,根据所述前一轮搜索对应的超参数组合的预测精度从若干所述步长中确定目标步长,其中,所述前一轮搜索对应的超参数组合的预测精度位于所述目标步长对应的精度区间;Step S022: Determine the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, and determine the target step size from a number of the step sizes according to the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, wherein the previous step size is determined. The prediction accuracy of the hyperparameter combination corresponding to the round search is located in the accuracy interval corresponding to the target step size;
步骤S023、根据目标步长执行当前轮搜索,得到当前轮搜索对应的超参数组合;Step S023: Execute the current round of search according to the target step size, and obtain the hyperparameter combination corresponding to the current round of search;
步骤S024、重复所述确定前一轮搜索对应的超参数组合的预测精度的步骤,直至遍历所述超参数值域。Step S024: Repeat the step of determining the prediction accuracy of the hyperparameter combination corresponding to the previous round of search until the hyperparameter value range is traversed.
简单来说,为了加快超参数调优和模型训练的时间,本实施例并不是全程采用统一的步长,而是会基于前一轮搜索出的超参数组合的预测精度来调整当前轮搜索所采用的步长。换言之,在前期使用较大的步长遍历,以实现快速到达最优超参数组合附近;在后期使用较小的步长遍历,精确查找出最优超参数组合。To put it simply, in order to speed up the time of hyperparameter tuning and model training, this embodiment does not use a unified step size throughout the process, but adjusts the current round of search based on the prediction accuracy of the hyperparameter combination searched in the previous round. The step size to take. In other words, use a larger step size traversal in the early stage to quickly reach the vicinity of the optimal hyperparameter combination; use a smaller step size traversal in the later stage to accurately find the optimal hyperparameter combination.
在一种实现方式中,所述步骤S31具体包括:In one implementation, step S31 specifically includes:
步骤S311、针对每一所述第一预测模型,将所述第一训练数据集中的第一输入数据输入该第一预测模型,得到该第一输入数据对应的预测荷电状态数据;Step S311: For each first prediction model, input the first input data in the first training data set into the first prediction model, and obtain the predicted state of charge data corresponding to the first input data;
步骤S312、根据该第一输入数据对应的预测荷电状态数据和历史荷电状态数据,确定该第一预测模型对应的第一损失函数值;Step S312: Determine the first loss function value corresponding to the first prediction model based on the predicted state of charge data and historical state of charge data corresponding to the first input data;
步骤S313、根据所述第一损失函数值对该第一预测模型的模型参数进行调整,并继续执行所述将所述第一训练数据集中的第一输入数据输入该第一预测模型的步骤,直至满足预设训练条件,以得到该第一预测模型对应的预测模型。Step S313: Adjust the model parameters of the first prediction model according to the first loss function value, and continue to perform the step of inputting the first input data in the first training data set into the first prediction model, Until the preset training conditions are met, a prediction model corresponding to the first prediction model is obtained.
简单来说,第一训练数据集对应的训练过程相当于将不同时间段得到的第二储能电池包的电池数据作为模型的输入数据。具体地,每轮训练时,将当前轮对应的第一输入数据输入第一预测模型,得到当前轮的预测荷电状态数据,根据预测荷电状态数据和该第一输入数据对应的历史荷电状态数据计算当前轮的第一损失函数值,由于第一损失函数值可以反映模型输出与真实标签之间的差距,因此以第一损失函数值为导向调整模模型参数。Simply put, the training process corresponding to the first training data set is equivalent to using the battery data of the second energy storage battery pack obtained in different time periods as the input data of the model. Specifically, during each round of training, the first input data corresponding to the current round is input into the first prediction model to obtain the predicted state of charge data of the current round. According to the predicted state of charge data and the historical charge corresponding to the first input data, The state data calculates the first loss function value of the current round. Since the first loss function value can reflect the gap between the model output and the real label, the module model parameters are adjusted based on the first loss function value.
在一种实现方式中,所述步骤S60具体包括如下步骤:In one implementation, step S60 specifically includes the following steps:
步骤S61、将所述第二训练数据集中的第二输入数据输入所述第三预测模型,得到该第二输入数据对应的预测荷电状态数据;Step S61: Enter the second input data in the second training data set into the third prediction model to obtain predicted state-of-charge data corresponding to the second input data;
步骤S62、根据该第二输入数据对应的预测荷电状态数据和历史荷电状态数据,确定所述第三预测模型对应的第二损失函数值;Step S62: Determine the second loss function value corresponding to the third prediction model based on the predicted state of charge data and historical state of charge data corresponding to the second input data;
步骤S63、根据所述第二损失函数值对所述第三预测模型的模型参数进行调整,并继续执行所述将所述第二训练数据集中的第二输入数据输入所述第三预测模型的步骤,直至满足预设训练条件,以得到所述目标预测模型。Step S63: Adjust the model parameters of the third prediction model according to the second loss function value, and continue to perform the step of inputting the second input data in the second training data set into the third prediction model. Steps until the preset training conditions are met to obtain the target prediction model.
具体地,简单来说,第二训练数据集对应的训练过程相当于将不同时间段得到的第二储能电池包的电池数据和该电池数据对应的预测荷电状态数据作为模型的输入数据。具体地,每轮训练时,将当前轮对应的第二输入数据输入第一预测模型,得到当前轮的预测荷电状态数据,根据预测荷电状态数据和该第二输入数据对应的历史荷电状态数据计算当前轮的第二损失函数值,由于第二损失函数值可以反映模型输出与真实标签之间的差距,因此以第二损失函数值为导向调整模模型参数。Specifically, simply speaking, the training process corresponding to the second training data set is equivalent to using the battery data of the second energy storage battery pack obtained in different time periods and the predicted state-of-charge data corresponding to the battery data as the input data of the model. Specifically, during each round of training, the second input data corresponding to the current round is input into the first prediction model to obtain the predicted state of charge data of the current round. According to the predicted state of charge data and the historical charge corresponding to the second input data, The state data calculates the second loss function value of the current round. Since the second loss function value can reflect the gap between the model output and the real label, the module model parameters are adjusted based on the second loss function value.
基于上述实施例,本发明还提供了一种储能电池包的荷电状态预测装置,如图2所示,所述装置包括:Based on the above embodiments, the present invention also provides a device for predicting the state of charge of an energy storage battery pack. As shown in Figure 2, the device includes:
获取模块01,用于获取第一储能电池包对应的电池数据;Acquisition module 01 is used to obtain battery data corresponding to the first energy storage battery pack;
预测模块02,用于获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;The prediction module 02 is used to obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:The target prediction model is a pre-trained model, and the training process of the target prediction model includes:
获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态;Obtain a first training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data. The historical state of charge data is used The state of charge of the second energy storage battery pack within the time period corresponding to the first training data is reflected;
获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Obtain a first prediction model, wherein the first prediction model is an untrained model;
根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;The first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;A second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data. The second training data has a one-to-one correspondence with a plurality of the first training data. Each second training data includes second input data and historical state-of-charge data corresponding to the second input data. The second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data. The historical state-of-charge data of the input data are the same;
获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。The third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
基于上述实施例,本发明还提供了一种终端,其原理框图可以如图3所示。该终端包括通过系统总线连接的处理器、存储器、网络接口、显示屏。其中,该终端的处理器用于提供计算和控制能力。该终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该终端的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现储能电池包的荷电状态预测方法。该终端的显示屏可以是液晶显示屏或者电子墨水显示屏。Based on the above embodiments, the present invention also provides a terminal, the functional block diagram of which can be shown in Figure 3 . The terminal includes a processor, memory, network interface, and display screen connected through a system bus. Among them, the processor of the terminal is used to provide computing and control capabilities. The memory of the terminal includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The network interface of the terminal is used to communicate with external terminals through a network connection. The computer program is executed by a processor to implement a state-of-charge prediction method for an energy storage battery pack. The terminal's display screen may be a liquid crystal display or an electronic ink display.
本领域技术人员可以理解,图3中示出的原理框图,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的终端的限定,具体的终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the principle block diagram shown in Figure 3 is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the terminals to which the solution of the present invention is applied. Specific terminals may include There may be more or fewer parts than shown, or certain parts may be combined, or may have a different arrangement of parts.
在一种实现方式中,所述终端的存储器中存储有一个或者一个以上的程序,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行储能电池包的荷电状态预测方法的指令。In one implementation, one or more programs are stored in the memory of the terminal, and are configured to be executed by one or more processors, including performing an energy storage battery pack operation. Instructions for the state of charge prediction method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
综上所述,本发明公开了一种储能电池包的荷电状态预测方法,所述方法包括:获取第一储能电池包对应的电池数据;获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态;获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。本发明通过结合机器学习方法和输入输出迭代方法训练得到目标预测模型,该目标预测模型由于结合了多种训练方法,因此精度较高且可以在线实时预测储能电池包的荷电状态。解决了现有的电池荷电状态的测量方法难以满足现实驾驶环境中对于测量时间和测量精度要求的问题。To sum up, the present invention discloses a method for predicting the state of charge of an energy storage battery pack. The method includes: obtaining battery data corresponding to the first energy storage battery pack; obtaining a target prediction model, and inputting the battery data. The target prediction model obtains the state-of-charge data corresponding to the first energy storage battery pack; the target prediction model is a pre-trained model, and the training process of the target prediction model includes: obtaining the first training data Set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes first input data and the first input The historical state of charge data corresponding to the data, the first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data, and the historical state of charge data is used to reflect the first The state of charge of the second energy storage battery pack in the time period corresponding to the training data; obtain a first prediction model, wherein the first prediction model is an untrained model; and calculate the state of charge of the second energy storage battery pack according to the first training data set The first prediction model is trained, and after the training is completed, a second prediction model and predicted state-of-charge data corresponding to a plurality of the first training data are obtained; according to the first training data set and a plurality of the first training data Respectively corresponding predicted state of charge data determines a second training data set, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data corresponds to a plurality of the first training data in a one-to-one manner. , each second training data includes second input data and historical state-of-charge data corresponding to the second input data, and the second input data includes the first input data corresponding to the second training data and the first input data. Predicted state-of-charge data corresponding to an input data, historical state-of-charge data corresponding to the second input data being the same as historical state-of-charge data corresponding to the first input data corresponding to the second input data; obtaining a third prediction model, Wherein, the third prediction model has the same structure as the second prediction model; the third prediction model is trained according to the second training data set, and the target prediction model is obtained after training. The present invention obtains a target prediction model by combining machine learning methods and input-output iteration method training. Since the target prediction model combines multiple training methods, it has high accuracy and can predict the state of charge of the energy storage battery pack online in real time. This solves the problem that existing battery state-of-charge measurement methods are difficult to meet the measurement time and measurement accuracy requirements in real driving environments.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. Those of ordinary skill in the art can make improvements or changes based on the above descriptions. All these improvements and changes should fall within the protection scope of the appended claims of the present invention.

Claims (10)

  1. 一种储能电池包的荷电状态预测方法,其特征在于,所述方法包括: A state-of-charge prediction method for an energy storage battery pack, characterized in that the method includes:
    获取第一储能电池包对应的电池数据;Obtain the battery data corresponding to the first energy storage battery pack;
    获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;Obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
    所述目标预测模型为预先经过训练的模型,所述目标预测模型的训练过程包括:The target prediction model is a pre-trained model, and the training process of the target prediction model includes:
    获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态,所述第一储能电池包与所述第二储能电池包分别对应的电池包类型相同;Obtain a first training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data. The historical state of charge data is used When reflecting the state of charge of the second energy storage battery pack in the time period corresponding to the first training data, the battery pack types corresponding to the first energy storage battery pack and the second energy storage battery pack are the same;
    获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Obtain a first prediction model, wherein the first prediction model is an untrained model;
    根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;The first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
    根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;A second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data. The second training data has a one-to-one correspondence with a plurality of the first training data. Each second training data includes second input data and historical state-of-charge data corresponding to the second input data. The second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data. The historical state-of-charge data of the input data are the same;
    获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
    根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。The third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  2. 根据权利要求1所述的储能电池包的荷电状态预测方法,其特征在于,所述第一预测模型包括若干第一预测模型,若干所述第一预测模型分别对应不同的超参数组合,所述根据所述第一训练数据集对所述第一预测模型进行训练,包括: The method for predicting the state of charge of an energy storage battery pack according to claim 1, wherein the first prediction model includes a plurality of first prediction models, and the plurality of first prediction models respectively correspond to different hyperparameter combinations, The training of the first prediction model according to the first training data set includes:
    根据所述第一训练数据集分别对若干所述第一预测模型进行训练,训练完毕后得到若干所述第一预测模型分别对应的预测模型;Train a plurality of the first prediction models respectively according to the first training data set, and obtain a plurality of prediction models respectively corresponding to the first prediction models after the training is completed;
    获取测试数据集,其中,所述测试数据集与所述第一训练数据集基于同一数据集产生;Obtain a test data set, wherein the test data set and the first training data set are generated based on the same data set;
    根据所述测试数据集,确定若干所述预测模型分别对应的预测精度;According to the test data set, determine the prediction accuracy corresponding to several of the prediction models;
    根据所述预测精度最高的预测模型,确定所述第二预测模型。The second prediction model is determined based on the prediction model with the highest prediction accuracy.
  3. 根据权利要求2所述的储能电池包的荷电状态预测方法,其特征在于,若干所述第一预测模型的确定方法包括: The state-of-charge prediction method of an energy storage battery pack according to claim 2, characterized in that the determination methods of several of the first prediction models include:
    获取预设的超参数值域;Get the preset hyperparameter value range;
    根据预设步长对所述超参数值域进行遍历,得到若干超参数组合;Traverse the hyperparameter value range according to the preset step size to obtain several hyperparameter combinations;
    根据每一所述超参数组合确定一个所述第一预测模型。One of the first prediction models is determined according to each of the hyperparameter combinations.
    根据权利要求2所述的储能电池包的荷电状态预测方法,其特征在于,若干所述第一预测模型的确定方法包括:The state-of-charge prediction method of an energy storage battery pack according to claim 2, characterized in that the determination methods of several of the first prediction models include:
    获取预设的超参数值域;Get the preset hyperparameter value range;
    根据预设步长对所述超参数值域进行遍历,得到若干超参数组合;Traverse the hyperparameter value range according to the preset step size to obtain several hyperparameter combinations;
    根据每一所述超参数组合确定一个所述第一预测模型。One of the first prediction models is determined according to each of the hyperparameter combinations.
  4. 根据权利要求3所述的储能电池包的荷电状态预测方法,其特征在于,所述预设步长包括若干步长,所述根据预设步长对所述超参数值域进行遍历,得到若干超参数组合,包括: The method for predicting the state of charge of an energy storage battery pack according to claim 3, wherein the preset step size includes several step sizes, and the hyperparameter value range is traversed according to the preset step size, Several hyperparameter combinations are obtained, including:
    获取若干所述步长,其中,若干所述步长分别对应不同的精度区间,每一所述步长对应的精度区间的大小与该步长呈反比关系;Obtain a plurality of step sizes, wherein each of the step sizes corresponds to different accuracy intervals, and the size of the accuracy interval corresponding to each step size is inversely proportional to the step size;
    确定前一轮搜索对应的超参数组合的预测精度,根据所述前一轮搜索对应的超参数组合的预测精度从若干所述步长中确定目标步长,其中,所述前一轮搜索对应的超参数组合的预测精度位于所述目标步长对应的精度区间;Determine the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, and determine the target step size from several step sizes according to the prediction accuracy of the hyperparameter combination corresponding to the previous round of search, wherein the previous round of search corresponds to The prediction accuracy of the hyperparameter combination is located in the accuracy interval corresponding to the target step size;
    根据目标步长执行当前轮搜索,得到当前轮搜索对应的超参数组合;Execute the current round of search according to the target step size, and obtain the hyperparameter combination corresponding to the current round of search;
    重复所述确定前一轮搜索对应的超参数组合的预测精度的步骤,直至遍历所述超参数值域。Repeat the step of determining the prediction accuracy of the hyperparameter combination corresponding to the previous round of search until the hyperparameter value range is traversed.
  5. 根据权利要求2所述的储能电池包的荷电状态预测方法,其特征在于,所述根据所述第一训练数据集分别对若干所述第一预测模型进行训练,包括: The method for predicting the state of charge of an energy storage battery pack according to claim 2, wherein the step of training a plurality of the first prediction models according to the first training data set includes:
    针对每一所述第一预测模型,将所述第一训练数据集中的第一输入数据输入该第一预测模型,得到该第一输入数据对应的预测荷电状态数据;For each of the first prediction models, input the first input data in the first training data set into the first prediction model to obtain the predicted state of charge data corresponding to the first input data;
    根据该第一输入数据对应的预测荷电状态数据和历史荷电状态数据,确定该第一预测模型对应的第一损失函数值;Determine the first loss function value corresponding to the first prediction model based on the predicted state of charge data and historical state of charge data corresponding to the first input data;
    根据所述第一损失函数值对该第一预测模型的模型参数进行调整,并继续执行所述将所述第一训练数据集中的第一输入数据输入该第一预测模型的步骤,直至满足预设训练条件,以得到该第一预测模型对应的预测模型。Adjust the model parameters of the first prediction model according to the first loss function value, and continue to perform the step of inputting the first input data in the first training data set into the first prediction model until the predetermined Set training conditions to obtain the prediction model corresponding to the first prediction model.
  6. 根据权利要求1所述的储能电池包的荷电状态预测方法,其特征在于,所述根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型,包括: The method for predicting the state of charge of an energy storage battery pack according to claim 1, wherein the third prediction model is trained according to the second training data set, and the target prediction is obtained after training. Models, including:
    将所述第二训练数据集中的第二输入数据输入所述第三预测模型,得到该第二输入数据对应的预测荷电状态数据;Enter the second input data in the second training data set into the third prediction model to obtain predicted state-of-charge data corresponding to the second input data;
    根据该第二输入数据对应的预测荷电状态数据和历史荷电状态数据,确定所述第三预测模型对应的第二损失函数值;Determine the second loss function value corresponding to the third prediction model according to the predicted state of charge data and historical state of charge data corresponding to the second input data;
    根据所述第二损失函数值对所述第三预测模型的模型参数进行调整,并继续执行所述将所述第二训练数据集中的第二输入数据输入所述第三预测模型的步骤,直至满足预设训练条件,以得到所述目标预测模型。Adjust the model parameters of the third prediction model according to the second loss function value, and continue to perform the step of inputting the second input data in the second training data set into the third prediction model until Meet the preset training conditions to obtain the target prediction model.
  7. 根据权利要求1所述的储能电池包的荷电状态预测方法,其特征在于,所述第三预测模型为所述第二预测模型或者初始化模型参数后的所述第二预测模型。 The method for predicting the state of charge of an energy storage battery pack according to claim 1, wherein the third prediction model is the second prediction model or the second prediction model after initializing model parameters.
  8. 一种储能电池包的荷电状态预测装置,其特征在于,所述装置包括: A state-of-charge prediction device for an energy storage battery pack, characterized in that the device includes:
    获取模块,用于获取第一储能电池包对应的电池数据;The acquisition module is used to acquire the battery data corresponding to the first energy storage battery pack;
    预测模块,用于获取目标预测模型,将所述电池数据输入所述目标预测模型,得到所述第一储能电池包对应的荷电状态数据;A prediction module, used to obtain a target prediction model, input the battery data into the target prediction model, and obtain the state-of-charge data corresponding to the first energy storage battery pack;
    所述目标预测模型为预先经过训练的模型,所述目标预测模型的的训练过程包括:The target prediction model is a pre-trained model, and the training process of the target prediction model includes:
    获取第一训练数据集,其中,所述第一训练数据集包括若干第一训练数据,若干所述第一训练数据分别对应不同时间段,每一所述第一训练数据包括第一输入数据和所述第一输入数据对应的历史荷电状态数据,所述第一输入数据为该第一训练数据对应的时间段内第二储能电池包的历史电池数据,所述历史荷电状态数据用于反映该第一训练数据对应的时间段内所述第二储能电池包的荷电状态;Obtain a first training data set, wherein the first training data set includes a plurality of first training data, a plurality of the first training data respectively correspond to different time periods, and each of the first training data includes a first input data and The historical state of charge data corresponding to the first input data. The first input data is the historical battery data of the second energy storage battery pack in the time period corresponding to the first training data. The historical state of charge data is used The state of charge of the second energy storage battery pack during the time period corresponding to the first training data;
    获取第一预测模型,其中,所述第一预测模型为未经过训练的模型;Obtain a first prediction model, wherein the first prediction model is an untrained model;
    根据所述第一训练数据集对所述第一预测模型进行训练,训练完毕后得到第二预测模型和若干所述第一训练数据分别对应的预测荷电状态数据;The first prediction model is trained according to the first training data set, and after the training is completed, a second prediction model and a plurality of predicted state-of-charge data corresponding to the first training data are obtained;
    根据所述第一训练数据集和若干所述第一训练数据分别对应的预测荷电状态数据,确定第二训练数据集,其中,所述第二训练数据集包括若干第二训练数据,若干所述第二训练数据与若干所述第一训练数据一一对应,每一所述第二训练数据包括第二输入数据和所述第二输入数据对应的历史荷电状态数据,所述第二输入数据包括该第二训练数据对应的第一输入数据和该第一输入数据对应的预测荷电状态数据,所述第二输入数据对应的历史荷电状态数据与该第二输入数据对应的第一输入数据的历史荷电状态数据相同;A second training data set is determined according to the predicted state of charge data corresponding to the first training data set and a plurality of the first training data, wherein the second training data set includes a plurality of second training data, and a plurality of the second training data. The second training data has a one-to-one correspondence with a plurality of the first training data. Each second training data includes second input data and historical state-of-charge data corresponding to the second input data. The second input data The data includes first input data corresponding to the second training data and predicted state of charge data corresponding to the first input data, and historical state of charge data corresponding to the second input data and first first input data corresponding to the second input data. The historical state-of-charge data of the input data are the same;
    获取第三预测模型,其中,所述第三预测模型与所述第二预测模型的结构相同;Obtain a third prediction model, wherein the third prediction model has the same structure as the second prediction model;
    根据所述第二训练数据集对所述第三预测模型进行训练,训练完毕后得到所述目标预测模型。The third prediction model is trained according to the second training data set, and the target prediction model is obtained after training.
  9. 一种终端,其特征在于,所述终端包括有存储器和一个或者一个以上处理器;所述存储器存储有一个或者一个以上的程序;所述程序包含用于执行如权利要求1-7中任一所述的储能电池包的荷电状态预测方法的指令;所述处理器用于执行所述程序。 A terminal, characterized in that the terminal includes a memory and one or more processors; the memory stores one or more programs; the program includes a program for executing any one of claims 1-7 Instructions for the state-of-charge prediction method of the energy storage battery pack; the processor is used to execute the program.
  10. 一种计算机可读存储介质,其上存储有多条指令,其特征在于,所述指令适用于由处理器加载并执行,以实现上述权利要求1-7任一所述的储能电池包的荷电状态预测方法的步骤。 A computer-readable storage medium on which a plurality of instructions are stored, characterized in that the instructions are adapted to be loaded and executed by a processor to implement the energy storage battery pack described in any one of claims 1-7. Steps in the state of charge prediction method.
PCT/CN2022/137079 2022-05-27 2022-12-06 Prediction method for state of charge of energy storage battery pack WO2023226358A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210587703.3A CN114966413B (en) 2022-05-27 2022-05-27 Method for predicting state of charge of energy storage battery pack
CN202210587703.3 2022-05-27

Publications (1)

Publication Number Publication Date
WO2023226358A1 true WO2023226358A1 (en) 2023-11-30

Family

ID=82956379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/137079 WO2023226358A1 (en) 2022-05-27 2022-12-06 Prediction method for state of charge of energy storage battery pack

Country Status (2)

Country Link
CN (1) CN114966413B (en)
WO (1) WO2023226358A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114966413B (en) * 2022-05-27 2023-03-24 深圳先进技术研究院 Method for predicting state of charge of energy storage battery pack
CN115660515B (en) * 2022-12-08 2023-03-21 北京国网电力技术有限公司 Energy storage data management method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105040A (en) * 2019-11-14 2020-05-05 深圳追一科技有限公司 Hyper-parameter optimization method, device, computer equipment and storage medium
US20200164763A1 (en) * 2017-07-21 2020-05-28 Quantumscape Corporation Predictive model for estimating battery states
CN111476403A (en) * 2020-03-17 2020-07-31 华为技术有限公司 Prediction model construction method and related device
CN111695301A (en) * 2020-06-16 2020-09-22 中国科学院深圳先进技术研究院 Method and device for predicting battery charge state, storage medium and equipment
CN113253116A (en) * 2021-05-18 2021-08-13 齐鲁工业大学 Lithium ion battery state of charge estimation method and storage medium
CN113391209A (en) * 2021-05-26 2021-09-14 江苏小牛电动科技有限公司 Method, device and system for predicting health state of battery and battery
CN113687237A (en) * 2021-08-20 2021-11-23 浙江科技学院 Lithium battery residual charging time prediction method for guaranteeing electrical safety
CN114078195A (en) * 2020-08-07 2022-02-22 华为技术有限公司 Training method of classification model, search method and device of hyper-parameters
CN114240003A (en) * 2022-02-23 2022-03-25 泰豪软件股份有限公司 New energy output prediction method, system, storage medium and equipment
CN114966413A (en) * 2022-05-27 2022-08-30 深圳先进技术研究院 Method for predicting state of charge of energy storage battery pack

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200140093A (en) * 2019-06-05 2020-12-15 삼성에스디아이 주식회사 Prediction Method and Prediction System for predicting Capacity Change according to Charging / Discharging Cycle of Battery
KR20220073829A (en) * 2019-11-07 2022-06-03 바스프 에스이 Battery Performance Prediction
CN116113961A (en) * 2020-08-30 2023-05-12 惠普发展公司,有限责任合伙企业 Battery life prediction using machine learning model
CN112200373A (en) * 2020-10-15 2021-01-08 中国科学院深圳先进技术研究院 Training method and training device for load prediction model, storage medium and equipment
CN112330077B (en) * 2021-01-04 2021-09-24 南方电网数字电网研究院有限公司 Power load prediction method, power load prediction device, computer equipment and storage medium
CN113884905B (en) * 2021-11-02 2022-06-14 山东大学 Power battery state of charge estimation method and system based on deep learning
CN114325406A (en) * 2021-12-30 2022-04-12 重庆长安新能源汽车科技有限公司 Method and system for predicting thermal runaway of battery based on machine learning thinking

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200164763A1 (en) * 2017-07-21 2020-05-28 Quantumscape Corporation Predictive model for estimating battery states
CN111105040A (en) * 2019-11-14 2020-05-05 深圳追一科技有限公司 Hyper-parameter optimization method, device, computer equipment and storage medium
CN111476403A (en) * 2020-03-17 2020-07-31 华为技术有限公司 Prediction model construction method and related device
CN111695301A (en) * 2020-06-16 2020-09-22 中国科学院深圳先进技术研究院 Method and device for predicting battery charge state, storage medium and equipment
CN114078195A (en) * 2020-08-07 2022-02-22 华为技术有限公司 Training method of classification model, search method and device of hyper-parameters
CN113253116A (en) * 2021-05-18 2021-08-13 齐鲁工业大学 Lithium ion battery state of charge estimation method and storage medium
CN113391209A (en) * 2021-05-26 2021-09-14 江苏小牛电动科技有限公司 Method, device and system for predicting health state of battery and battery
CN113687237A (en) * 2021-08-20 2021-11-23 浙江科技学院 Lithium battery residual charging time prediction method for guaranteeing electrical safety
CN114240003A (en) * 2022-02-23 2022-03-25 泰豪软件股份有限公司 New energy output prediction method, system, storage medium and equipment
CN114966413A (en) * 2022-05-27 2022-08-30 深圳先进技术研究院 Method for predicting state of charge of energy storage battery pack

Also Published As

Publication number Publication date
CN114966413B (en) 2023-03-24
CN114966413A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US11293987B2 (en) Battery capacity prediction system using charge and discharge cycles of a battery to predict capacity variations, and associated method
WO2023226358A1 (en) Prediction method for state of charge of energy storage battery pack
Tian et al. Capacity attenuation mechanism modeling and health assessment of lithium-ion batteries
US20220283240A1 (en) Method and system for estimating state of health of battery pack
CN108872866B (en) Dynamic evaluation and long-acting prediction fusion method for charge state of lithium ion battery
Sun et al. A sequential capacity estimation for the lithium-ion batteries combining incremental capacity curve and discrete Arrhenius fading model
CN111695301A (en) Method and device for predicting battery charge state, storage medium and equipment
Huang et al. The state of health estimation of lithium-ion batteries based on data-driven and model fusion method
Sun et al. Sequent extended Kalman filter capacity estimation method for lithium-ion batteries based on discrete battery aging model and support vector machine
CN115629314B (en) Battery parameter and state joint estimation method and system based on improved Jaya
Yu et al. Life-cycle parameter identification method of an electrochemical model for lithium-ion battery pack
CN117054892B (en) Evaluation method, device and management method for battery state of energy storage power station
CN116643196A (en) Battery health state estimation method integrating mechanism and data driving model
CN111537888A (en) Data-driven echelon battery SOC prediction method
Wu et al. State of health estimation of the lithium-ion power battery based on the principal component analysis-particle swarm optimization-back propagation neural network
Havangi Adaptive robust unscented Kalman filter with recursive least square for state of charge estimation of batteries
Wang et al. Identification of fractional-order equivalent circuit model of lithium-ion battery for improving estimation of state of charge
CN117471320A (en) Battery state of health estimation method and system based on charging fragments
CN117169749A (en) Method for generating battery capacity prediction model, prediction method and device thereof
US20240125856A1 (en) Method for predicting battery performance based on combination of material parameters of battery pulping process
CN110232432B (en) Lithium battery pack SOC prediction method based on artificial life model
CN112485672A (en) Battery state determination method and device
CN114861413B (en) Method and device for estimating full life cycle SOC of lithium ion battery based on interactive multi-model
US11460513B2 (en) Assessment of cell group health in a battery pack
Xing et al. Parameter identification and SOC estimation for power battery based on multi-timescale double Kalman filter algorithm

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22943545

Country of ref document: EP

Kind code of ref document: A1