Dataset construction method and device for lithium-ion battery state of charge estimation
By constructing the current, state-of-charge and voltage data sets of lithium-ion batteries, and using the recurrent neural network to train the model, the problem of the lack of training data sets for lithium-ion battery state estimation in the existing technology is solved, and the prediction accuracy is improved.
Patent Information
- Application Number
- CN202111484504.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-07
AI Technical Summary
When existing machine learning methods are used for lithium-ion battery state estimation, they lack a complete training data set construction method, resulting in large errors in prediction results.
By obtaining the current data of the lithium-ion battery, a current data set is constructed, and the preset state of charge equation and voltage state equation are used to generate the state of charge and voltage data sets. Combined with the recurrent neural network, the judgment model and the generation model are constructed for multiple times. Train to modify model parameters and build a dataset for lithium-ion battery state-of-charge estimation.
The accuracy of lithium-ion battery state-of-charge estimation is improved, and prediction errors are reduced by massively building data sets through simple learning methods.
Smart Images

Figure CN114355213B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a method and device for constructing a data set for estimating the state of charge of a lithium-ion battery. Background Art
[0002] Machine learning methods have been widely used to study the state estimation of lithium-ion batteries. They use battery test data as original samples and estimate the state of charge under limited prior knowledge of the battery's internal characteristics and chemical reactions. The advantage is that they can learn complex patterns in the data and quickly provide accurate predictions. However, there are limitations, because the accuracy and performance of machine learning methods depend to a large extent on the quality and quantity of training data. If there is a lack of sufficient, high-quality training data, the prediction results of machine learning will have large errors. When existing machine learning methods are used for lithium-ion battery state estimation, there is no perfect method for constructing training data sets. Therefore, a simple and effective method is needed to obtain training data of appropriate size. Summary of the invention
[0003] The embodiment of the present invention provides a method and device for constructing a data set for lithium-ion battery state of charge estimation, which can construct a large number of data sets for lithium-ion battery state of charge estimation through a simple learning method.
[0004] To achieve the above object, an embodiment of the present invention provides a method for constructing a data set for estimating the state of charge of a lithium-ion battery, comprising:
[0005] Acquire current data of the lithium-ion battery during charging and discharging, and construct a current data set of the lithium-ion battery based on the current data;
[0006] According to the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium ion battery;
[0007] Combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set;
[0008] Through the recurrent neural network, a judgment model and a generation model are constructed, and N model training operations are performed; where N is greater than or equal to 1;
[0009] Model training operation: perform k judgment model training operations and 1 generation model training operation in sequence; where k is greater than or equal to 1;
[0010] Judgment model training operation: randomly generate a first noise distribution data set including m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1;
[0011] Generate model training operation: randomly generate a second noise distribution data set containing m noise data; input the second noise distribution data set into the generation model to obtain a second lithium-ion battery extension data set; input the second lithium-ion battery extension data set into the judgment model to obtain the judgment characteristics of the second lithium-ion battery extension data set; correct the parameters of the generation model through the judgment characteristics of the second lithium-ion battery extension data set and a preset generation model parameter correction function;
[0012] All stored first lithium-ion battery extended data sets constitute a data set for estimating the state of charge of the lithium-ion battery.
[0013] As an improvement of the above solution, the state of charge data set and the voltage data set of the lithium-ion battery are obtained according to the current data set, the preset state of charge equation and the preset voltage state equation, specifically:
[0014] Substituting the current data set into a preset state of charge equation to obtain a state of charge data set of the lithium-ion battery;
[0015] Obtaining an open circuit voltage data set of the lithium ion battery through the open circuit voltage-state of charge curve of the lithium ion battery acquired in advance and the state of charge data set;
[0016] Substituting the open circuit voltage data set and the current data set into a preset voltage state equation, a voltage data set of the lithium-ion battery is obtained.
[0017] As an improvement of the above solution, the preset state of charge equation is specifically:
[0018]
[0019] Among them, SOC(t) is the state of charge data set of lithium-ion batteries, SOC(t 0 ) is the initial state of charge of the lithium-ion battery, IL is the current data set, η is the charge and discharge efficiency of the lithium-ion battery, C N is the rated capacity of the lithium-ion battery, t is the first time parameter, t 0 is the initial time, and τ is the second time parameter.
[0020] As an improvement of the above solution, the expression of the basic data set is: Data = [I L ,U,SOC]; where Data is the basic data set, I L is the current data set, U is the voltage data set, and SOC is the state of charge data set.
[0021] As an improvement of the above solution, the expression of the generative model is: G out =G(z;θ G ), where G out is the output data of the generated model, z is the input noise distribution data set, θ G are the parameters of the generative model, and G() is the generative model.
[0022] As an improvement of the above solution, the expression of the judgment model is: A=D(D in θ D ), where A is the judgment feature, D in is the input data of the judgment model, θ D are the parameters of the judgment model, and D() is the judgment model.
[0023] As an improvement of the above solution, the preset generation model parameter correction function is specifically:
[0024]
[0025] Among them, θ' G is the parameter of the modified generated model, θ G is the parameter of the current generation model, m is the number of noise data in the second noise distribution data set, θ D Determine the parameters of the model, G() is the generation model, z j is the second noise distribution data set, is the sign of partial derivative, D(G(z j θ G );θ D ) is a judgment feature of the second lithium-ion battery extended data.
[0026] As an improvement of the above solution, the preset judgment model parameter correction function is specifically:
[0027]
[0028] Among them, θ'D is the parameter of the corrected judgment model, θ D is the parameter of the current judgment model, m is the number of noise data in the first noise distribution data set, θ G The parameters of the current generated model, D() is the judgment model, Data i is a sample data set, G() is a generative model, z i is the first noise distribution data set, is the sign of partial derivative, D(G(z i θ G );θ D ) is the judgment feature of the first lithium-ion battery extended data set.
[0029] To achieve the above-mentioned purpose, an embodiment of the present invention provides a data set construction device for lithium-ion battery state of charge estimation, comprising:
[0030] A data acquisition module, used to acquire current data of the lithium-ion battery during charging and discharging, and to construct a current data set of the lithium-ion battery based on the current data;
[0031] The first dataset building module is used to:
[0032] According to the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium ion battery;
[0033] Combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set;
[0034] A model building module, used to build a judgment model and a generation model through a recurrent neural network, and perform N model training operations; wherein N is greater than or equal to 1;
[0035] A model training module, used to perform a model training operation: sequentially performing k judgment model training operations and 1 generation model training operation; wherein k is greater than or equal to 1;
[0036] A judgment model training module, used to perform a judgment model training operation: randomly generate a first noise distribution data set containing m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain a judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, and if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1;
[0037] A generation model training module is used to perform a generation model training operation: randomly generate a second noise distribution data set containing m noise data; input the second noise distribution data set into the generation model to obtain a second lithium-ion battery extension data set; input the second lithium-ion battery extension data set into the judgment model to obtain a judgment feature of the second lithium-ion battery extension data set; and correct the parameters of the generation model through the judgment feature of the second lithium-ion battery extension data set and a preset generation model parameter correction function;
[0038] The second data set construction module is used to construct a data set for estimating the state of charge of the lithium-ion battery by combining all the stored first lithium-ion battery extended data sets.
[0039] Compared with the prior art, the method and device for constructing a data set for estimating the state of charge of a lithium-ion battery disclosed in an embodiment of the present invention first obtain current data of the lithium-ion battery during charging and discharging, and construct a current data set of the lithium-ion battery based on the current data; secondly, obtain a state of charge data set and a voltage data set of the lithium-ion battery based on the current data set, a preset state of charge equation and a preset voltage state equation; combine the current data set, the state of charge data set and the voltage data set of the lithium-ion battery to obtain a basic data set; then, through a recurrent neural network, construct a judgment model and a generation model and perform N model training operations; model training operation: sequentially perform k judgment model training operations and 1 generation model training operation; judgment model training operation: randomly generate a first noise distribution data set containing m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery expansion data set The invention relates to a method for generating a data set for a lithium-ion battery extended data set; inputting the first lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the first lithium-ion battery extended data set; judging whether the judgment feature of the first lithium-ion battery extended data set is 1, and if so, storing the first lithium-ion battery extended data set; if not, correcting the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; generating a model training operation: randomly generating a second noise distribution data set containing m noise data; inputting the second noise distribution data set into the generation model to obtain a second lithium-ion battery extended data set; inputting the second lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the second lithium-ion battery extended data set; correcting the parameters of the generation model through the judgment feature of the second lithium-ion battery extended data set and the preset generation model parameter correction function; finally, all the stored first lithium-ion battery extended data sets constitute a data set for lithium-ion battery state of charge estimation. The present invention can construct a large number of data sets for lithium-ion battery state of charge estimation through a simple learning method, thereby improving the accuracy of predicting the state of charge of lithium-ion batteries. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of a method for constructing a data set for estimating the state of charge of a lithium-ion battery provided by an embodiment of the present invention;
[0041] Figure 2 is a structural schematic diagram of an equivalent circuit model of a lithium-ion battery provided by an embodiment of the present invention;
[0042] Figure 3It is a structural schematic diagram of a data set construction device for lithium-ion battery state of charge estimation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] See also Figure 1 , is a flow chart of a method for constructing a data set for estimating the state of charge of a lithium-ion battery provided by an embodiment of the present invention.
[0045] The method for constructing a data set for estimating the state of charge of a lithium-ion battery provided in an embodiment of the present invention comprises the following steps:
[0046] S101, acquiring current data of a lithium-ion battery during charging and discharging, and constructing a current data set of the lithium-ion battery according to the current data;
[0047] S102, obtaining a state of charge data set and a voltage data set of the lithium-ion battery according to the current data set, a preset state of charge equation, and a preset voltage state equation; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium-ion battery;
[0048] S103, combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set;
[0049] S104, constructing a judgment model and a generation model through a recurrent neural network, and performing N model training operations; wherein N is greater than or equal to 1;
[0050] S105, model training operation: performing k judgment model training operations and 1 generation model training operation in sequence; wherein k is greater than or equal to 1;
[0051] S106, judgment model training operation: randomly generate a first noise distribution data set including m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain a judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1;
[0052] S107, generating model training operation: randomly generating a second noise distribution data set including m noise data; inputting the second noise distribution data set into the generating model to obtain a second lithium-ion battery extended data set; inputting the second lithium-ion battery extended data set into the judging model to obtain the judging features of the second lithium-ion battery extended data set; and correcting the parameters of the generating model by using the judging features of the second lithium-ion battery extended data set and a preset generating model parameter correction function;
[0053] S108: All stored first lithium-ion battery extended data sets are combined to form a data set for estimating the state of charge of the lithium-ion battery.
[0054] Furthermore, the state of charge of the lithium-ion battery is estimated by using the data set and machine learning method for estimating the state of charge of the lithium-ion battery to obtain a state of charge estimation result of the lithium-ion battery.
[0055] Preferably, the step S101 is specifically:
[0056] The current data of the lithium-ion battery during charging and discharging are obtained, and the charging and discharging current profile of the lithium-ion battery is randomly generated according to the current data and the normal distribution, and the average value of the current rate is set to 0.3 to 3C rate, and the standard deviation of the current rate is set to 0 to 1C rate, so as to construct the current data set of the lithium-ion battery.
[0057] It is worth noting that the current data set of the lithium-ion battery is the basic data of the charge and discharge rate.
[0058] See also Figure 2 , Figure 2 It is a structural schematic diagram of an equivalent circuit model of a lithium-ion battery provided by an embodiment of the present invention.
[0059] Figure 2 The dynamic process of the equivalent circuit model of the lithium-ion battery shown is expressed as:
[0060]
[0061] U t =U oc -U 1 -I L R 0 ; Formula (2)
[0062] Among them, R 0 is the internal resistance of the lithium-ion battery, I L is the current data set, i.e., the charging and discharging current of the lithium-ion battery, R 1 is the polarization resistance, C 1 is the polarization capacitance, U oc is the open circuit voltage, U 1 is the voltage at the RC network terminals, U t Output voltage for lithium-ion batteries.
[0063] Discretizing equations (1) and (2) yields:
[0064] U 1,k+1 =exp(-Δt / (R 1 C 1 ))U 1,k +(1-exp(-Δt / (R 1 C 1 )))R 1 I L,k ;
[0065] U t,k =U oc,k -U 1,k -I L,k R 0 ;
[0066] Among them, U 1,k+1 is the terminal voltage of the RC network at time k+1, U 1,k is the terminal voltage of the RC network at time k, exp is an exponential function with the natural constant e as the base, Δt is the sampling time, Δt = 1s, U t,k is the output voltage of the lithium-ion battery at time k, I L,k is the lithium-ion battery charge and discharge current at time k in the current data set, U oc,k is the open circuit voltage of the lithium-ion battery at time k.
[0067] In a specific implementation, the step S102 is specifically:
[0068] Substituting the current data set into a preset state of charge equation to obtain a state of charge data set of the lithium-ion battery;
[0069] Obtaining an open circuit voltage data set of the lithium ion battery through the open circuit voltage-state of charge curve of the lithium ion battery acquired in advance and the state of charge data set;
[0070] Substituting the open circuit voltage data set and the current data set into a preset voltage state equation, a voltage data set of the lithium-ion battery is obtained.
[0071] It should be noted that the open circuit voltage-state of charge curve of the lithium-ion battery can be obtained through experimental testing. Specifically, the open circuit voltage-state of charge curve of the lithium-ion battery can be obtained through a low current discharge test or an incremental open circuit voltage test. In addition, in addition to the open circuit voltage-state of charge curve, an open circuit voltage data set can also be obtained through an existing open circuit voltage model.
[0072] Specifically, the equivalent circuit model of the lithium-ion battery is a Thevenin equivalent circuit model.
[0073] In some preferred embodiments, the preset state of charge equation is specifically:
[0074]
[0075] Among them, SOC(t) is the state of charge data set of lithium-ion batteries, SOC(t 0 ) is the initial state of charge of the lithium-ion battery, I L is the current data set, η is the charge and discharge efficiency of the lithium-ion battery, C N is the rated capacity of the lithium-ion battery, t is the first time parameter, t 0 is the initial time, and τ is the second time parameter.
[0076] In a preferred embodiment, the expression of the basic data set is: Data = [I L ,U,SOC]; where Data is the basic data set, I L is the current data set, U is the voltage data set, and SOC is the state of charge data set.
[0077] Preferably, the preset voltage state equation is specifically:
[0078] U 1,k+1 =exp(-Δt / (R 1 C 1 ))U 1,k +(1-exp(-Δt / (R 1 C 1 )))R 1 I L,k ;
[0079] U t,k =Uoc,k -U 1,k -I L,k R 0 ;
[0080] Among them, U 1,k+1 is the terminal voltage of the RC network at time k+1, U 1,k is the terminal voltage of the RC network at time k, exp is an exponential function with the natural constant e as the base, Δt is the sampling time, Δt = 1s, U t,k is the output voltage of the lithium-ion battery at time k, I L,k is the lithium-ion battery charge and discharge current at time k in the current data set, U oc,k is the open circuit voltage of the lithium-ion battery at time k.
[0081] It should be noted that the voltage data set is composed of the output voltage of the lithium-ion battery.
[0082] In some preferred embodiments, the expression of the generative model is: G out =G(z;θ G ), where G out is the output data of the generated model, z is the input noise distribution data set, θ G are the parameters of the generative model, and G() is the generative model.
[0083] Furthermore, the expression of the judgment model is: A=D(D in θ D ), where A is the judgment feature, D in is the input data of the judgment model, θ D are the parameters of the judgment model, and D() is the judgment model.
[0084] Preferably, the preset generation model parameter correction function is specifically:
[0085]
[0086] Among them, θ' G is the parameter of the modified generated model, θ G is the parameter of the current generation model, m is the number of noise data in the second noise distribution data set, θ D Determine the parameters of the model, G() is the generation model, z j is the second noise distribution data set, is the sign of partial derivative, D(G(z j θ G );θ D ) is a judgment feature of the second lithium-ion battery extended data.
[0087] Need to explain, That is, to find the function For θ G The partial derivative of .
[0088] In a preferred embodiment, the preset judgment model parameter correction function is specifically:
[0089]
[0090] Among them, θ' D is the parameter of the corrected judgment model, θ D is the parameter of the current judgment model, m is the number of noise data in the first noise distribution data set, θ G The parameters of the current generated model, D() is the judgment model, Data i is a sample data set, G() is a generative model, z i is the first noise distribution data set, is the sign of partial derivative, D(G(z i θ G );θ D ) is the judgment feature of the first lithium-ion battery extended data set.
[0091] Need to explain, That is, to find the function For θ D The partial derivative of .
[0092] The following describes a data set construction method for estimating the state of charge of a lithium-ion battery according to the present invention through a specific implementation.
[0093] 1. Construct the basic data set of lithium-ion charging and discharging current, i.e., the current data set;
[0094] Construct basic data of a wide range of charge and discharge rates C-rate, randomly generate the charge and discharge current profile of lithium-ion batteries based on normal distribution, the average current rate is 0.3 to 3C rate, and the standard deviation is 0 to 1C rate, so as to construct a current data set; wherein, the current data set includes: charging data and discharging data.
[0095] 2. Calculate voltage and state of charge SOC;
[0096] Based on the equivalent circuit model of the lithium-ion battery, the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium-ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on the equivalent circuit model of the lithium-ion battery;
[0097] (1) First, the state of charge data set SOC of the lithium-ion battery is calculated according to the following preset state of charge equation;
[0098]
[0099] Among them, SOC(t) is the state of charge data set of lithium-ion batteries, SOC(t 0 ) is the initial state of charge of the lithium-ion battery, I L is the current data set, η is the charge and discharge efficiency of the lithium-ion battery, C N is the rated capacity of the lithium-ion battery, t is the first time parameter, t 0 is the initial time, and τ is the second time parameter.
[0100] (2) Then, based on the experimentally measured battery open circuit voltage-state of charge curve and the state of charge data set SOC of the lithium-ion battery, the open circuit voltage data set U is obtained. oc ;
[0101] (3) Finally, the open circuit voltage data set U oc and current data set I L Substitute the preset voltage state equation and calculate the output voltage data set U:
[0102] U 1,k+1 =exp(-Δt / (R 1 C 1 ))U 1,k +(1-exp(-Δt / (R 1 C 1 )))R 1 I L,k ;
[0103] U t,k =U oc,k -U 1,k -I L,k R 0 ;
[0104] Among them, U 1,k+1 is the terminal voltage of the RC network at time k+1, U 1,k is the terminal voltage of the RC network at time k, exp is an exponential function with the natural constant e as the base, Δt is the sampling time, Δt = 1s, U t,k is the output voltage of the lithium-ion battery at time k, I L,k is the lithium-ion battery charge and discharge current at time k in the current data set, U oc,k is the open circuit voltage of the lithium-ion battery at time k.
[0105] 3. Build basic data sets, expand data generation models and judgment models;
[0106] The current data set, the state of charge data set and the voltage data set are combined as the basic data set Data = [I L,U,SOC];
[0107] (1) Use recurrent neural network to build the generative model G out =G(z;θ G ), where z is the input noise distribution data set, θ G is the parameter of the generative model, G() is the generative model, G out The output is a combination of the current, voltage and state of charge sequence of the lithium-ion battery.
[0108] (2) Using recurrent neural network to construct the judgment model A=D(D in θ D ), D in is the input lithium-ion battery current, voltage and state of charge sequence combination, θ D is the judgment model parameter, and A is the judgment feature of the output.
[0109] Set the number of iterations N, where the value of N is very large.
[0110] 4. Training judgment model:
[0111] Set the number of training times k = 5;
[0112] (1) Randomly generate m noise distributions z i ={z 1 ,z 2 ,z 3 ,...,z m}, take m samples from the basic data set of lithium-ion batteries, Data i ={Data 1 ,Data 2 ,Data 3 ,...,Data m}
[0113] (2) Inputting m noise distributions into the generation model, a set of lithium-ion battery extended data G(z i θ G );
[0114] (3) Extend the lithium-ion battery data G(z i θ G ) is input into the judgment model, A=D(G(z i ,θ G );θ D ), if the judgment feature A of the judgment model is 1, then go to step (5), otherwise go to step (4).
[0115] (4) According to the following formula, correct the judgment model parameter θ D :
[0116]
[0117] Among them, θ' D is the parameter of the corrected judgment model, θ D is the parameter of the current judgment model, m is the number of noise data in the first noise distribution data set, θ G The parameters of the current generated model, D() is the judgment model, Data i is a sample data set, G() is a generative model, z i is the first noise distribution data set, is the sign of partial derivative, D(G(z i θ G );θ D ) is the judgment feature of the first lithium-ion battery extended data set.
[0118] Repeat steps (1)-(4) k times, and then proceed to step 5 to train the generated model.
[0119] (5) Complete the generation of a set of lithium-ion battery current, voltage and state of charge SOC extended data, and store the generated G(z i θ G ). Enter a new round of iteration and re-execute step 4 to train the judgment model and generate the next set of extended data.
[0120] 5. Train the generative model;
[0121] (1) Randomly generate m noise distributions z j ={z 1 ,z 2 ,z 3 ,...,z m};
[0122] (2) Inputting m noise distributions into the generation model, a set of lithium-ion battery extended data G(z j θ G );
[0123] (3) Extend the lithium-ion battery data G(z j θ G ) is input into the judgment model to obtain the judgment feature: A=D(G(z j ,θ G );θ D );
[0124] (4) According to the following formula, the generation model parameter θ is modified G :
[0125]
[0126] Among them, θ' G is the parameter of the modified generated model, θ G is the parameter of the current generation model, m is the number of noise data in the second noise distribution data set, θ D Determine the parameters of the model, G() is the generation model, z j is the second noise distribution data set, is the sign of partial derivative, D(G(z j θ G );θ D ) is a judgment feature of the second lithium-ion battery extended data.
[0127] Return to step 4 and train again until the training of the generated model is completed N times.
[0128] It is worth noting that since lithium-ion batteries vary greatly in materials, battery types, and operating conditions, determining a suitable training data set remains a challenge for model development and validation. The present invention estimates the state of charge during battery operation based on measurable inputs such as current and voltage, thereby constructing a simple basic data set, and using simple learning methods to greatly expand and optimize the data set. The calculation is simple and the data set is comprehensive, which can effectively improve the accuracy of machine learning prediction of lithium-ion battery state of charge and reduce the time for prediction training.
[0129] Correspondingly, an embodiment of the present invention further provides a data set construction device for lithium-ion battery state of charge estimation, which can implement all processes of the above-mentioned data set construction method for lithium-ion battery state of charge estimation.
[0130] See also Figure 3 , is a structural schematic diagram of a data set construction device for lithium-ion battery state of charge estimation provided by an embodiment of the present invention.
[0131] The data set construction device for estimating the state of charge of a lithium-ion battery provided by an embodiment of the present invention includes:
[0132] The data acquisition module 21 is used to acquire the current data of the lithium-ion battery during charging and discharging, and to construct a current data set of the lithium-ion battery according to the current data;
[0133] The first data set construction module 22 is used to:
[0134] According to the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium ion battery;
[0135] Combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set;
[0136] A model building module 23, used to build a judgment model and a generation model through a recurrent neural network, and perform N model training operations; wherein N is greater than or equal to 1;
[0137] The model training module 24 is used to perform a model training operation: sequentially performing k judgment model training operations and 1 generation model training operation; wherein k is greater than or equal to 1;
[0138] The judgment model training module 25 is used to perform the judgment model training operation: randomly generate a first noise distribution data set including m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, and if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1;
[0139] The generation model training module 26 is used to perform the generation model training operation: randomly generate a second noise distribution data set including m noise data; input the second noise distribution data set into the generation model to obtain a second lithium-ion battery extension data set; input the second lithium-ion battery extension data set into the judgment model to obtain the judgment characteristics of the second lithium-ion battery extension data set; and correct the parameters of the generation model through the judgment characteristics of the second lithium-ion battery extension data set and a preset generation model parameter correction function;
[0140] The second data set construction module 27 is used to construct a data set for estimating the state of charge of the lithium-ion battery by combining all the stored first lithium-ion battery extended data sets.
[0141] As an optional implementation manner, the first data set construction module 22 is further used to:
[0142] Substituting the current data set into a preset state of charge equation to obtain a state of charge data set of the lithium-ion battery;
[0143] Obtaining an open circuit voltage data set of the lithium ion battery through the open circuit voltage-state of charge curve of the lithium ion battery acquired in advance and the state of charge data set;
[0144] Substituting the open circuit voltage data set and the current data set into a preset voltage state equation, a voltage data set of the lithium-ion battery is obtained.
[0145] As one of the optional implementations, the preset state of charge equation is specifically:
[0146]
[0147] Among them, SOC(t) is the state of charge data set of lithium-ion batteries, SOC(t 0 ) is the initial state of charge of the lithium-ion battery, I L is the current data set, η is the charge and discharge efficiency of the lithium-ion battery, C N is the rated capacity of the lithium-ion battery, t is the first time parameter, t 0 is the initial time, and τ is the second time parameter.
[0148] As one of the preferred implementations, the expression of the basic data set is: Data = [I L ,U,SOC]; where Data is the basic data set, I L is the current data set, U is the voltage data set, and SOC is the state of charge data set.
[0149] As a specific implementation, the expression of the generative model is: G out =G(z;θ G ), where G out is the output data of the generated model, z is the input noise distribution data set, θ G are the parameters of the generative model, and G() is the generative model.
[0150] Preferably, the expression of the judgment model is: A=D(D in θ D ), where A is the judgment feature, D in is the input data of the judgment model, θ D is the parameter of the judgment model, and D() is the judgment model.
[0151] As a preferred implementation, the preset generation model parameter correction function is specifically:
[0152]
[0153] Among them, θ' G is the parameter of the modified generated model, θ G is the parameter of the current generation model, m is the number of noise data in the second noise distribution data set, θ DDetermine the parameters of the model, G() is the generation model, z j is the second noise distribution data set, is the sign of partial derivative, D(G(z j θ G );θ D ) is a judgment feature of the second lithium-ion battery extended data.
[0154] As a specific implementation, the preset judgment model parameter correction function is specifically:
[0155]
[0156] Among them, θ' D is the parameter of the corrected judgment model, θ D is the parameter of the current judgment model, m is the number of noise data in the first noise distribution data set, θ G The parameters of the current generated model, D() is the judgment model, Data i is a sample data set, G() is a generative model, z i is the first noise distribution data set, is the sign of partial derivative, D(G(z i θ G );θ D ) is the judgment feature of the first lithium-ion battery extended data set.
[0157] It should be noted that the relevant specific descriptions and beneficial effects of the various embodiments of the data set construction device for lithium-ion battery state of charge estimation in this embodiment can refer to the relevant specific descriptions and beneficial effects of the various embodiments of the data set construction method for lithium-ion battery state of charge estimation mentioned above, and will not be repeated here.
[0158] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work.
[0159] In summary, the method and device for constructing a data set for estimating the state of charge of a lithium-ion battery provided by an embodiment of the present invention first obtain current data of the lithium-ion battery during charging and discharging, and construct a current data set of the lithium-ion battery based on the current data; secondly, obtain a state of charge data set and a voltage data set of the lithium-ion battery based on the current data set, a preset state of charge equation and a preset voltage state equation; combine the current data set, the state of charge data set and the voltage data set of the lithium-ion battery to obtain a basic data set; then, through a recurrent neural network, construct a judgment model and a generation model and perform N model training operations; model training operation: sequentially perform k judgment model training operations and 1 generation model training operation; judgment model training operation: randomly generate a first noise distribution data set containing m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery expansion data set Data set; input the first lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through the preset judgment model parameter correction function and the sample data set; generate model training operation: randomly generate a second noise distribution data set containing m noise data; input the second noise distribution data set into the generation model to obtain the second lithium-ion battery extended data set; input the second lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the second lithium-ion battery extended data set; correct the parameters of the generation model through the judgment feature of the second lithium-ion battery extended data set and the preset generation model parameter correction function; finally, all the stored first lithium-ion battery extended data sets constitute a data set for lithium-ion battery state of charge estimation. The present invention can construct a large number of data sets for lithium-ion battery state of charge estimation through a simple learning method, thereby improving the accuracy of predicting the state of charge of lithium-ion batteries.
[0160] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for constructing a data set for estimating the state of charge of a lithium-ion battery, characterized in that: include: Acquire current data of the lithium-ion battery during charging and discharging, and construct a current data set of the lithium-ion battery based on the current data; According to the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium ion battery; Combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set; Through the recurrent neural network, a judgment model and a generation model are constructed, and N model training operations are performed; wherein N is greater than or equal to 1; Model training operation: perform k judgment model training operations and 1 generation model training operation in sequence; where k is greater than or equal to 1; Judgment model training operation: randomly generate a first noise distribution data set including m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain the judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1; Generate model training operation: randomly generate a second noise distribution data set containing m noise data; input the second noise distribution data set into the generation model to obtain a second lithium-ion battery extension data set; input the second lithium-ion battery extension data set into the judgment model to obtain the judgment characteristics of the second lithium-ion battery extension data set; correct the parameters of the generation model through the judgment characteristics of the second lithium-ion battery extension data set and a preset generation model parameter correction function; All stored first lithium-ion battery extended data sets constitute a data set for estimating the state of charge of the lithium-ion battery.
2. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, characterized in that: The step of obtaining the state of charge data set and the voltage data set of the lithium-ion battery according to the current data set, the preset state of charge equation and the preset voltage state equation is specifically as follows: Substituting the current data set into a preset state of charge equation to obtain a state of charge data set of the lithium-ion battery; Obtaining an open circuit voltage data set of the lithium ion battery through the open circuit voltage-state of charge curve of the lithium ion battery acquired in advance and the state of charge data set; Substituting the open circuit voltage data set and the current data set into a preset voltage state equation, a voltage data set of the lithium-ion battery is obtained.
3. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, characterized in that: The preset state of charge equation is specifically: Among them, SOC(t) is the state of charge data set of the lithium-ion battery, SOC(t0) is the initial state of charge of the lithium-ion battery, I L is the current data set, η is the charge and discharge efficiency of the lithium-ion battery, C N is the rated capacity of the lithium-ion battery, t is the first time parameter, t0 is the initial time, and τ is the second time parameter.
4. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, wherein: The expression of the basic data set is: Data = [I L ,U,SOC]; where Data is the basic data set, I L is the current data set, U is the voltage data set, and SOC is the state of charge data set.
5. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, characterized in that: The expression of the generative model is: G out =G(z;θ G ), where G out is the output data of the generated model, z is the input noise distribution data set, θ G are the parameters of the generative model, and G() is the generative model.
6. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, characterized in that: The expression of the judgment model is: A=D(D in θ D ); Among them, A is the judgment feature, D in is the input data of the judgment model, θ D is the parameter of the judgment model, and D() is the judgment model.
7. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, characterized in that: The preset generation model parameter correction function is specifically: Among them, θ' G is the parameter of the modified generated model, θ G is the parameter of the current generation model, m is the number of noise data in the second noise distribution data set, θ D Determine the parameters of the model, G() is the generation model, z j is the second noise distribution data set, is the sign of partial derivative, D(G(z j θ G );θ D ) is a judgment feature of the second lithium-ion battery extended data.
8. The method for constructing a data set for estimating the state of charge of a lithium-ion battery according to claim 1, wherein: The preset judgment model parameter correction function is specifically: Among them, θ' D is the parameter of the corrected judgment model, θ D is the parameter of the current judgment model, m is the number of noise data in the first noise distribution data set, θ G The parameters of the current generated model, D() is the judgment model, Data i is a sample data set, G() is a generative model, z i is the first noise distribution data set, is the sign of partial derivative, D(G(z i θ G );θ D ) is the judgment feature of the first lithium-ion battery extended data set.
9. A data set construction device for lithium-ion battery state of charge estimation, characterized in that: include: A data acquisition module, used to acquire current data of the lithium-ion battery during charging and discharging, and to construct a current data set of the lithium-ion battery based on the current data; The first dataset building module is used to: According to the current data set, the preset state of charge equation and the preset voltage state equation, a state of charge data set and a voltage data set of the lithium ion battery are obtained; wherein the preset state of charge equation and the preset voltage state equation are constructed based on an equivalent circuit model of the lithium ion battery; Combining the current data set, the state of charge data set, and the voltage data set of the lithium-ion battery to obtain a basic data set; A model building module, used to build a judgment model and a generation model through a recurrent neural network, and perform N model training operations; wherein N is greater than or equal to 1; A model training module, used to perform a model training operation: sequentially performing k judgment model training operations and 1 generation model training operation; wherein k is greater than or equal to 1; A judgment model training module, used to perform a judgment model training operation: randomly generate a first noise distribution data set containing m noise data and randomly select m data samples from the basic data set to form a sample data set; input the first noise distribution data set into the generation model to obtain a first lithium-ion battery extended data set; input the first lithium-ion battery extended data set into the judgment model to obtain a judgment feature of the first lithium-ion battery extended data set; judge whether the judgment feature of the first lithium-ion battery extended data set is 1, and if so, store the first lithium-ion battery extended data set; if not, correct the parameters of the judgment model through a preset judgment model parameter correction function and the sample data set; wherein m is greater than or equal to 1; A generation model training module is used to perform a generation model training operation: randomly generate a second noise distribution data set containing m noise data; input the second noise distribution data set into the generation model to obtain a second lithium-ion battery extension data set; input the second lithium-ion battery extension data set into the judgment model to obtain a judgment feature of the second lithium-ion battery extension data set; and correct the parameters of the generation model through the judgment feature of the second lithium-ion battery extension data set and a preset generation model parameter correction function; The second data set construction module is used to construct a data set for estimating the state of charge of the lithium-ion battery by combining all the stored first lithium-ion battery extended data sets.
