Lithium ion battery state of charge estimation method based on bidirectional cyclic neural network

文档序号:1598079 发布日期:2020-01-07 浏览:8次 中文

阅读说明:本技术 基于双向循环神经网络的锂离子电池荷电状态估计方法 (Lithium ion battery state of charge estimation method based on bidirectional cyclic neural network ) 是由 杨顺昆 何霍亮 边冲 于 2019-09-12 设计创作,主要内容包括:本发明公开了一种基于双向循环神经网络的锂离子电池荷电状态估计方法,利用锂离子电池实时产生的数据,使用训练好的双向循环神经网络,得到锂离子电池实时的荷电状态值,双向循环神经网络在训练完成之后,可以对荷电状态值进行实时估计,十分便捷,双向循环神经网络考虑时间序列数据的特性,利用当前结果之前和之后的数据,适用于锂离子电池荷电状态值估计领域。本发明属于数据驱动的方法,不需要冗繁的电化学相关知识,能够有效提取锂离子电池的历史数据,对锂离子电池放电特性进行建模,获得精准的荷电状态估计,并且,能够处理有着大量数据的复杂非线性系统,不需要电池领域的信息,只需要锂离子电池的历史数据。(The invention discloses a lithium ion battery state of charge estimation method based on a bidirectional circulation neural network, which utilizes data generated by a lithium ion battery in real time and the trained bidirectional circulation neural network to obtain a real-time state of charge value of the lithium ion battery. The invention belongs to a data driving method, does not need tedious electrochemistry related knowledge, can effectively extract historical data of a lithium ion battery, models the discharge characteristic of the lithium ion battery to obtain accurate charge state estimation, can process a complex nonlinear system with a large amount of data, does not need information in the battery field, and only needs the historical data of the lithium ion battery.)

1. A lithium ion battery state of charge estimation method based on a bidirectional cyclic neural network is characterized by comprising the following steps:

s1: acquiring a battery voltage value, a battery current value and a battery surface temperature value of the lithium ion battery at the current moment;

s2: performing data sampling processing, data standardization processing and data dimension change processing on the acquired data at the current moment;

s3: and inputting the processed data at the current moment into the trained bidirectional circulation neural network to obtain the charge state value of the lithium ion battery at the current moment.

2. The lithium ion battery state of charge estimation method of claim 1, wherein the training process of the bi-directional recurrent neural network comprises the steps of:

s11: manually selecting characteristics input to the bidirectional recurrent neural network, including a battery voltage value, a battery current value and a battery surface temperature value;

s12: under different working conditions, collecting a battery voltage value, a battery current value, a battery surface temperature value and a charge state value;

s13: carrying out data sampling processing on the acquired battery voltage value, battery current value, battery surface temperature value and state of charge value, and carrying out data standardization processing and data dimension change processing on the battery voltage value, battery current value and battery surface temperature value after the data sampling processing;

s14: initializing the bidirectional cyclic neural network, inputting data under the same working condition with the data to be measured in the processed battery voltage value, battery current value and battery surface temperature value into the initialized bidirectional cyclic neural network, training by utilizing a time-based back propagation algorithm, and continuously adjusting network hyper-parameters to obtain the trained bidirectional cyclic neural network.

3. The lithium ion battery state of charge estimation method of claim 2, wherein in step S13, the data sampling processing is performed on the collected battery voltage value, battery current value, battery surface temperature value and state of charge value, and the data standardization processing and data dimension change processing are performed on the battery voltage value, battery current value and battery surface temperature value after the data sampling processing, specifically comprising the following steps:

s131: under different working conditions, sampling the battery voltage value, the battery current value, the battery surface temperature value and the state of charge value again, and setting the data interval to be 1s to generate a data point;

s132: standardizing the battery voltage value, the battery current value and the battery surface temperature value after resampling to ensure that the battery voltage value, the battery current value and the battery surface temperature value are all distributed in a [0,1] interval, wherein the formula of the standardization is as follows:

Figure FDA0002200172280000021

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

s133: dimension change processing is carried out on the battery voltage value, the battery current value and the battery surface temperature value after the standardization processing, and the battery voltage value, the battery current value and the battery surface temperature value at each time point in the data after the standardization processing are connected as a vector [ V, I, T]Connecting the data points of k time steps as a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]。

4. The lithium ion battery state of charge estimation method of claim 3, wherein step S14, initializing the bidirectional cyclic neural network, inputting the data of the processed battery voltage value, battery current value and battery surface temperature value under the same working condition as the data to be measured into the initialized bidirectional cyclic neural network, training by using a time-based back propagation algorithm, and continuously adjusting network hyper-parameters to obtain the trained bidirectional cyclic neural network, specifically comprising the following steps:

s141: initializing each parameter value of the bidirectional cyclic neural network, and randomly setting each parameter value as any numerical value in an interval of [0,1 ];

s142: inputting all sample input data [ sample number, time step and characteristic number ] into the bidirectional circulation neural network, calculating a predicted value of the SOC at the current moment through forward propagation of the bidirectional circulation neural network, calculating the distance between the predicted value of the SOC at the current moment and the actual value of the SOC at the current moment, and solving the distance between the predicted value of the SOC and the actual value of the SOC of all samples, wherein the calculation formula is as follows:

Figure FDA0002200172280000031

where y represents the true value of the state of charge,representing a predicted value of the state of charge, m representing the number of samples, and i representing the serial number of the samples;

s143: updating each parameter value of the bidirectional cyclic neural network by using a gradient descent and back propagation algorithm;

and repeating the step S142 to the step S143 until the bidirectional circulation neural network is converged, and finishing the training.

5. The method for estimating the state of charge of the lithium ion battery according to any one of claims 1 to 4, wherein the step S2 is to perform data sampling processing, data normalization processing and data dimension change processing on the acquired data at the current time, and specifically includes the following steps:

s21: sampling the battery voltage value, the battery current value and the battery surface temperature value again, and setting the data interval to be 1s to generate a data point;

s22: carrying out standardization processing on the sampled data to enable the battery voltage value, the battery current value and the battery surface temperature value to be distributed in a [0,1] interval, wherein the formula of the standardization processing is as follows:

Figure FDA0002200172280000033

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

s23: performing dimension change processing on the normalized data, and connecting the battery voltage value, the battery current value and the battery surface temperature value of each time point in the normalized data into a vector [ V, I, T ]]Connecting the data points of k time steps as a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]。

Technical Field

The invention relates to the technical field of battery management systems and deep learning, in particular to a lithium ion battery state of charge estimation method based on a bidirectional cyclic neural network.

Background

Lithium ion batteries are currently the fastest growing, most promising battery technology. Compared with the traditional battery, the lithium ion battery has the advantages of light weight, quick charge, high energy density, low self-discharge rate, long service life and the like.

State of Charge (SOC), one of the key states for battery monitoring, is defined as the percentage of the battery's remaining capacity to its maximum capacity. The reliable SOC estimation can accurately judge the current state of the battery, prevent possible dangers and ensure the safe and stable operation of the battery. However, due to the non-linear and time-varying characteristics of the SOC of the lithium ion battery, the SOC value cannot be directly observed, and the battery discharge characteristics are easily affected by the aging of the battery, the temperature variation and other factors, so that the SOC estimation is challenging.

The battery SOC estimation method is mainly classified into two types, one is an SOC estimation method based on the characteristics of the battery itself, and the other is a data-driven SOC estimation method. The latter draws great attention in recent two years, and only historical data of battery charge and discharge are needed to learn the end-to-end mapping relation between the battery characteristics and the SOC value without depending on an electrochemical method in the field of traditional batteries. The method mainly takes a support vector machine and a neural network as main parts, particularly the neural network, and has strong data fitting capacity and can process data of large number of levels, so that the method has good effect in the field of battery SOC prediction.

For example, the simplest fully-connected neural network can grasp the nonlinear relation between output and input, the manually selected battery characteristics are used as the input of the fully-connected neural network, the battery SOC value is used as the output of the fully-connected neural network, the fully-connected neural network can well fit the relation, and the obtained effect exceeds that of a support vector machine. However, the fully-connected neural network simply grasps the relationship between input and output, and the effect of the fully-connected neural network in the field of battery SOC prediction is still to be improved.

Disclosure of Invention

In view of this, the present invention provides a lithium ion battery state of charge estimation method based on a bidirectional cyclic neural network, so as to realize accurate estimation of the lithium ion battery state of charge.

Therefore, the invention provides a lithium ion battery state of charge estimation method based on a bidirectional cyclic neural network, which comprises the following steps:

s1: acquiring a battery voltage value, a battery current value and a battery surface temperature value of the lithium ion battery at the current moment;

s2: performing data sampling processing, data standardization processing and data dimension change processing on the acquired data at the current moment;

s3: and inputting the processed data at the current moment into the trained bidirectional circulation neural network to obtain the charge state value of the lithium ion battery at the current moment.

In a possible implementation manner, in the above method for estimating a state of charge of a lithium ion battery provided by the present invention, the training process of the bidirectional recurrent neural network includes the following steps:

s11: manually selecting characteristics input to the bidirectional recurrent neural network, including a battery voltage value, a battery current value and a battery surface temperature value;

s12: under different working conditions, collecting a battery voltage value, a battery current value, a battery surface temperature value and a charge state value;

s13: carrying out data sampling processing on the acquired battery voltage value, battery current value, battery surface temperature value and state of charge value, and carrying out data standardization processing and data dimension change processing on the battery voltage value, battery current value and battery surface temperature value after the data sampling processing;

s14: initializing the bidirectional cyclic neural network, inputting data under the same working condition with the data to be measured in the processed battery voltage value, battery current value and battery surface temperature value into the initialized bidirectional cyclic neural network, training by utilizing a time-based back propagation algorithm, and continuously adjusting network hyper-parameters to obtain the trained bidirectional cyclic neural network.

In a possible implementation manner, in the lithium ion battery state of charge estimation method provided by the present invention, in step S13, data sampling processing is performed on the acquired battery voltage value, battery current value, battery surface temperature value, and state of charge value, and data normalization processing and data dimension change processing are performed on the battery voltage value, battery current value, and battery surface temperature value after the data sampling processing, which specifically includes the following steps:

s131: under different working conditions, sampling the battery voltage value, the battery current value, the battery surface temperature value and the state of charge value again, and setting the data interval to be 1s to generate a data point;

s132: standardizing the battery voltage value, the battery current value and the battery surface temperature value after resampling to ensure that the battery voltage value, the battery current value and the battery surface temperature value are all distributed in a [0,1] interval, wherein the formula of the standardization is as follows:

Figure BDA0002200172290000031

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

s133: dimension change processing is carried out on the battery voltage value, the battery current value and the battery surface temperature value after the standardization processing, and the battery voltage value, the battery current value and the battery surface temperature value at each time point in the data after the standardization processing are connected as a vector [ V, I, T]Connecting the data points of k time steps as a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]。

In a possible implementation manner, in the method for estimating the state of charge of the lithium ion battery provided by the present invention, in step S14, the bidirectional cyclic neural network is initialized, data of the processed battery voltage value, battery current value, and battery surface temperature value, which is under the same working condition as the data to be measured, is input to the initialized bidirectional cyclic neural network, the training is performed by using a time-based back propagation algorithm, and the network hyper-parameter is continuously adjusted to obtain the trained bidirectional cyclic neural network, which specifically includes the following steps:

s141: initializing each parameter value of the bidirectional cyclic neural network, and randomly setting each parameter value as any numerical value in an interval of [0,1 ];

s142: inputting all sample input data [ sample number, time step and characteristic number ] into the bidirectional circulation neural network, calculating a predicted value of the SOC at the current moment through forward propagation of the bidirectional circulation neural network, calculating the distance between the predicted value of the SOC at the current moment and the actual value of the SOC at the current moment, and solving the distance between the predicted value of the SOC and the actual value of the SOC of all samples, wherein the calculation formula is as follows:

Figure BDA0002200172290000041

where y represents the true value of the state of charge,

Figure BDA0002200172290000042

representing a predicted value of the state of charge, m representing the number of samples, and i representing the serial number of the samples;

s143: updating each parameter value of the bidirectional cyclic neural network by using a gradient descent and back propagation algorithm;

and repeating the step S142 to the step S143 until the bidirectional circulation neural network is converged, and finishing the training.

In a possible implementation manner, in the method for estimating the state of charge of the lithium ion battery provided by the present invention, the step S2 of performing data sampling processing, data normalization processing, and data dimension change processing on the acquired data at the current time specifically includes the following steps:

s21: sampling the battery voltage value, the battery current value and the battery surface temperature value again, and setting the data interval to be 1s to generate a data point;

s22: carrying out standardization processing on the sampled data to enable the battery voltage value, the battery current value and the battery surface temperature value to be distributed in a [0,1] interval, wherein the formula of the standardization processing is as follows:

Figure BDA0002200172290000043

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

s23: performing dimension change processing on the normalized data, and connecting the battery voltage value, the battery current value and the battery surface temperature value of each time point in the normalized data into a vector [ V, I, T ]]Connecting the data points of k time steps as a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]。

According to the lithium ion battery state-of-charge estimation method provided by the invention, the real-time state-of-charge value of the lithium ion battery is obtained by utilizing the data generated by the lithium ion battery in real time and the trained bidirectional cyclic neural network model, the state-of-charge value can be estimated in real time after the training of the bidirectional cyclic neural network model is completed, the method is very convenient and fast, the bidirectional cyclic neural network can fully consider the characteristics of time sequence data, the effect of the method is more accurate than that of a unidirectional cyclic neural network by utilizing the data before the current result and the data after the current result, the method has great potential for estimating the state-of-charge value of the lithium ion battery, and is very suitable for being applied to the field of estimating the state-. The invention belongs to a data driving method, does not need tedious electrochemistry related knowledge, starts from data completely, can effectively extract information expressed by historical data of a lithium ion battery, models the discharge characteristic of the lithium ion battery, obtains an accurate charge state estimation result, can process a complex nonlinear system with a large amount of data, does not need information in the battery field, and only needs the historical data of the lithium ion battery.

Drawings

Fig. 1 is a flowchart of a lithium ion battery state of charge estimation method based on a bidirectional recurrent neural network according to the present invention;

fig. 2 is a schematic structural diagram of a bidirectional recurrent neural network in a lithium ion battery state of charge estimation method based on the bidirectional recurrent neural network provided by the invention;

fig. 3 is one of the flow charts of the bidirectional cyclic neural network training process in the lithium ion battery state of charge estimation method based on the bidirectional cyclic neural network according to the present invention;

fig. 4 is a second flowchart of a two-way recurrent neural network training process in the lithium ion battery state of charge estimation method based on a two-way recurrent neural network according to the present invention;

fig. 5 is a third flowchart of a bidirectional cyclic neural network training process in the lithium ion battery state of charge estimation method based on the bidirectional cyclic neural network according to the present invention;

fig. 6 is a second flowchart of a lithium ion battery state of charge estimation method based on a bidirectional recurrent neural network according to the present invention;

FIG. 7 is a graph showing the effect of the bidirectional recurrent neural network of the present invention applied to the US06 data set at 45 ℃;

FIG. 8 is a graph of the mean absolute error of the two-way recurrent neural network of the present invention applied to the US06 data set at 45 ℃;

FIG. 9 is a diagram showing the effect of the bi-directional recurrent neural network applied to the BJST data set at 45 deg.C in the present invention;

FIG. 10 is a graph of the mean absolute error of a BJST data set at 45 ℃ using a bi-directional recurrent neural network of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only illustrative and are not intended to limit the present invention.

The invention selects a data set of an INR 18650-20R type lithium ion battery, the data set is data acquired under three temperature conditions of 0 ℃, 25 ℃ and 45 ℃, loads of different simulated automobile driving states are respectively applied to the lithium ion battery under the same temperature condition, the loads comprise US06, FUDS, DST and BJDT, the detailed information of the lithium ion battery is shown in table 1, and the detailed information of the data set is shown in table 2.

TABLE 1 INR 18650-20R lithium ion batteries

Figure BDA0002200172290000061

TABLE 2 INR 18650-20R lithium ion Battery data set

Figure BDA0002200172290000071

Each data set comprises a complete charging process and a complete discharging process of the lithium ion battery, and two experiments are carried out under each data set, wherein one experiment is that a simulated load is applied from 80% of the capacity of the lithium ion battery to the end of discharging, the other experiment is that a simulated load is applied from 50% of the capacity of the battery to the end of discharging, the former is used as training data, and the latter is used as real-time data to test the effect of the invention.

The invention provides a lithium ion battery state of charge estimation method based on a bidirectional cyclic neural network, as shown in fig. 1, comprising the following steps:

s1: acquiring a battery voltage value, a battery current value and a battery surface temperature value of the lithium ion battery at the current moment;

s2: performing data sampling processing, data standardization processing and data dimension change processing on the acquired data at the current moment;

s3: and inputting the processed data at the current moment into the trained bidirectional circulation neural network to obtain the charge state value of the lithium ion battery at the current moment.

According to the lithium ion battery state-of-charge estimation method provided by the invention, the real-time state-of-charge value of the lithium ion battery is obtained by utilizing the data generated by the lithium ion battery in real time and the trained bidirectional cyclic neural network model, the state-of-charge value can be estimated in real time after the training of the bidirectional cyclic neural network model is completed, the method is very convenient and fast, the bidirectional cyclic neural network can fully consider the characteristics of time sequence data, the effect of the method is more accurate than that of a unidirectional cyclic neural network by utilizing the data before the current result and the data after the current result, the method has great potential for estimating the state-of-charge value of the lithium ion battery, and is very suitable for being applied to the field of estimating the state-. The invention belongs to a data driving method, does not need tedious electrochemistry related knowledge, starts from data completely, can effectively extract information expressed by historical data of a lithium ion battery, models the discharge characteristic of the lithium ion battery, obtains an accurate charge state estimation result, can process a complex nonlinear system with a large amount of data, does not need information in the battery field, and only needs the historical data of the lithium ion battery.

In specific implementation, in the lithium ion battery state of charge estimation method provided by the present invention, the specific structure of the bidirectional recurrent neural network may be: an input layer, a hidden layer and an output layer; wherein, the hidden layer adopts a bidirectional Long-Short Term Memory network (LSTM) layer, and a Full Connection layer (FC) is connected behind the LSTM layer; wherein, the bidirectional LSTM structure can be superimposed, that is, the bidirectional LSTM layer can include a plurality of bidirectional LSTM network structures interconnected, the specific structure is shown in fig. 2, X in fig. 2t、Xt+1…Xt+kTo input data, Yt、Yt+1…Yt+kTo output data. The specific parameter configuration of the bidirectional recurrent neural network is different due to data under different working conditions, and the invention is explained by taking the example that the time step is set to be 40-50, the number of hidden units is set to be 64, and a bidirectional LSTM structure is stacked into two layers.

In specific implementation, in the method for estimating the state of charge of the lithium ion battery provided by the present invention, the trained bidirectional recurrent neural network can be obtained by using the bidirectional recurrent neural network to train by using the historical data of the lithium ion battery, and specifically, the training process of the bidirectional recurrent neural network, as shown in fig. 3, may include the following steps:

s11: manually selecting characteristics input into the bidirectional cyclic neural network, wherein the characteristics comprise a battery voltage value, a battery current value and a battery surface temperature value;

s12: under different working conditions, collecting a battery voltage value, a battery current value, a battery surface temperature value and a charge state value;

specifically, the different working conditions may include conditions of different temperatures, different loads, and the like; the collection of the battery voltage value, the battery current value, the battery surface temperature value and the state of charge value needs to be respectively collected by using special equipment;

s13: carrying out data sampling processing on the acquired battery voltage value, battery current value, battery surface temperature value and state of charge value, and carrying out data standardization processing and data dimension change processing on the battery voltage value, battery current value and battery surface temperature value after the data sampling processing; thus, the processed data can be directly input into the bidirectional cyclic neural network for training;

s14: initializing a bidirectional cyclic neural network, inputting data under the same working condition with the data to be measured in the processed battery voltage value, battery current value and battery surface temperature value into the initialized bidirectional cyclic neural network, training by utilizing a time-based back propagation algorithm, and continuously adjusting network hyper-parameters to obtain the trained bidirectional cyclic neural network.

In a specific implementation, in the above method for estimating the state of charge of the lithium ion battery provided by the present invention, in step S13, data sampling processing is performed on the acquired battery voltage value, battery current value, battery surface temperature value, and state of charge value, and data normalization processing and data dimension change processing are performed on the battery voltage value, battery current value, and battery surface temperature value after the data sampling processing, as shown in fig. 4, the method specifically includes the following steps:

s131: under different working conditions, sampling the battery voltage value, the battery current value, the battery surface temperature value and the state of charge value again, and setting the data interval to be 1s to generate a data point;

s132: standardizing the battery voltage value, the battery current value and the battery surface temperature value after resampling to ensure that the battery voltage value, the battery current value and the battery surface temperature value are all distributed in a [0,1] interval, wherein the formula of the standardization is as follows:

Figure BDA0002200172290000091

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

specifically, the voltage value, the current value and the surface temperature value of the battery are distributed in a [0,1] interval, so that the training of a bidirectional circulation neural network is facilitated; meanwhile, a standardized reference value can be reserved so that the same standardized mode can be adopted in real-time estimation, and the consistency of data distribution can be ensured;

s133: dimension change processing is carried out on the battery voltage value, the battery current value and the battery surface temperature value after the standardization processing, and the battery voltage value, the battery current value and the battery surface temperature value at each time point in the data after the standardization processing are connected as a vector [ V, I, T]Connecting the data points of k time steps into a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]So that the two-way circulation neural network can be directly input for training.

In specific implementation, in the method for estimating the state of charge of the lithium ion battery provided by the present invention, step S14 is to initialize a bidirectional cyclic neural network, input data of the processed battery voltage value, battery current value, and battery surface temperature value, which is under the same working condition as the data to be measured, into the initialized bidirectional cyclic neural network, train the data by using a time-based back propagation algorithm, and continuously adjust the network hyper-parameters to obtain the trained bidirectional cyclic neural network, as shown in fig. 5, which specifically includes the following steps:

s141: initializing each parameter value of the bidirectional cyclic neural network, and randomly setting each parameter value as any numerical value in a [0,1] interval;

s142: inputting all sample input data [ sample number, time step and characteristic number ] into a bidirectional circulation neural network, calculating a predicted value of the state of charge at the current moment through forward propagation of the bidirectional circulation neural network, calculating the distance between the predicted value of the state of charge at the current moment and the actual value of the state of charge at the current moment, and solving the distance between the predicted value of the state of charge and the actual value of the state of charge of all samples, wherein the calculation formula is as follows:

Figure BDA0002200172290000101

where y represents the true value of the state of charge,

Figure BDA0002200172290000102

representing a predicted value of the state of charge, m representing the number of samples, and i representing the serial number of the samples;

specifically, calculating the distance between the predicted value of the current time SOC and the true value of the current time SOC, namely, making a difference and solving the square; the true value of the current time SOC is the resampled SOC value;

s143: updating each parameter value of the bidirectional cyclic neural network by using a gradient descent and back propagation algorithm;

and (5) repeating the step (S142) to the step (S143) until the bidirectional recurrent neural network converges, and finishing the training.

Preferably, in order to accelerate the training speed of the bidirectional cyclic neural network and improve the effect precision of the bidirectional cyclic neural network, an Adam optimization method and a mini-batch optimization method may be adopted, the size of the batch may be set to 128, and the training times on the whole training set may be set to 2000.

In a specific implementation, in the method for estimating a state of charge of a lithium ion battery provided by the present invention, in step S2, the data sampling process, the data normalization process, and the data dimension change process are performed on the acquired data at the current time, as shown in fig. 6, the method may specifically include the following steps:

s21: sampling the battery voltage value, the battery current value and the battery surface temperature value again, and setting the data interval to be 1s to generate a data point;

s22: carrying out standardization processing on the sampled data to enable the battery voltage value, the battery current value and the battery surface temperature value to be distributed in a [0,1] interval, wherein the formula of the standardization processing is as follows:

Figure BDA0002200172290000111

wherein D represents any one of a battery voltage value, a battery current value and a battery surface temperature valuetData representing time t, DminRepresents the smallest data point, DmaxRepresents the largest data point;

specifically, a standardized reference value reserved during network training can be used, so that the same standardized mode can be adopted for network training and real-time estimation, and the consistency of data distribution can be ensured;

s23: performing dimension change processing on the normalized data, and changing the battery voltage value, the battery current value and the electricity of each time point in the normalized dataThe temperature values on the surface of the pool are connected as a vector [ V, I, T ]]Connecting the data points of k time steps into a sample input data [ V ] of the bidirectional cyclic neural networkt,It,Tt],[Vt+1,It+1,Tt+1],……,[Vt+k-1,It+k-1,Tt+k-1]]Finally obtaining all sample input data [ sample number, time step, characteristic number]. In summary, the acquired data at the current moment is processed by using the same processing method as the historical data during network training, so that the distribution of the data input into the trained bidirectional cyclic neural network can be kept consistent, and the accuracy of the estimation of the state of charge of the lithium ion battery can be ensured.

In Table 3 are the effects of the four data sets US06, FUDS, DST and BJSDT at three temperatures of 0 deg.C, 25 deg.C and 45 deg.C, and the evaluation criterion is Mean Absolute Error (MAE).

TABLE 3 Effect of four data sets at three temperatures

As can be seen from table 3, the estimation method for the state of charge of the lithium ion battery provided by the present invention has an excellent effect, and under the conditions of 45 ℃ and 25 ℃, the MAE values of the four data sets US06, FUDS, DST and BJDST are all less than 1%, and especially under the condition of 45 ℃, the MAE values of the four data sets US06, FUDS, DST and BJDST are all the smallest, and the effect is the best. As shown in fig. 7 and 9, the predicted values of the SOC of the two data sets US06 and BJDST almost coincide with the true values, and as shown in fig. 8 and 10, the MAE values of the two data sets US06 and BJDST are both less than 1%, which illustrates that the above-mentioned estimation method of the state of charge of the lithium ion battery provided by the present invention has very accurate effect on the two data sets US06 and BJDST, which has reached a quite high standard in practical application, and proves the applicability of the bi-directional cyclic neural network in the field of predicting the SOC of the lithium ion battery.

According to the lithium ion battery state-of-charge estimation method provided by the invention, the real-time state-of-charge value of the lithium ion battery is obtained by utilizing the data generated by the lithium ion battery in real time and the trained bidirectional cyclic neural network model, the state-of-charge value can be estimated in real time after the training of the bidirectional cyclic neural network model is completed, the method is very convenient and fast, the bidirectional cyclic neural network can fully consider the characteristics of time sequence data, the effect of the method is more accurate than that of a unidirectional cyclic neural network by utilizing the data before the current result and the data after the current result, the method has great potential for estimating the state-of-charge value of the lithium ion battery, and is very suitable for being applied to the field of estimating the state-. The invention belongs to a data driving method, does not need tedious electrochemistry related knowledge, starts from data completely, can effectively extract information expressed by historical data of a lithium ion battery, models the discharge characteristic of the lithium ion battery, obtains an accurate charge state estimation result, can process a complex nonlinear system with a large amount of data, does not need information in the battery field, and only needs the historical data of the lithium ion battery.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电池包的电池寿命预测方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类