Professional Documents
Culture Documents
A Recurrent Neural Network With Long Short-Term Memory For State of Charge Estimation of Lithium-Ion Batteries
A Recurrent Neural Network With Long Short-Term Memory For State of Charge Estimation of Lithium-Ion Batteries
Abstract—Lithium-ion batteries (LiBs) have been widely model with the filter method such as adaptive observers [3],
applied in energy storage systems, and accurate State of Charge Particle Filters [4][5] and Kalman Filters [6][9]. However, this
(SOC) estimation of LiBs has become a key issue. However, SOC method needs a suitable model of the battery. In addition, many
is an important LiBs state that cannot be directly observed. It parameters in the battery model need to be identified
needs to be indirectly estimated by the observable variables, and continuously with the changes of battery states. Another
SOC estimation is a challenging task due to strong nonlinear and common way to address the SOC estimation problem is the
complex electrochemical reactions change with temperature in data-driven method, which have used traditional machine
the battery. In this paper, a Recurrent Neural Network with learning techniques including Fuzzy Logic [7], Support Vector
Long Short-Term Memory (LSTM-RNN) for SOC estimation of
Machines (SVMs) [8][9], and Neural Networks [10][11]. A
LiBs is introduced. By training on the observable variables of
LiBs, the voltage, current and temperature can be mapped
significant limitation of the data-driven methods is that the
directly to SOC. Based on the dataset of LiB measured under estimation accuracy is limited to the computing power.
drive cycles of electric vehicles, the effectiveness of the LSTM- Recently, following the impressive results of neural network on
RNN for SOC estimation of LiBs proposed in this paper is a wide spectrum of domains such as natural language
validated. processing, time series forecasting and system modeling,
attempts have been made to train neural network for the task of
SOC Estimation.
1713
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY CALICUT. Downloaded on January 05,2024 at 12:43:44 UTC from IEEE Xplore. Restrictions apply.
with the sampling frequency of 10 Hz. Voltage and current are
Input Hidden Output
record at 0℃, 10℃ and 25℃ are shown in Fig. 5.
Layer Layer Layer
4.5 5
4
Current/(A)
Voltage/(V)
0
ht k 3.5
-5
3
2.5 -10
(a) 0℃
·· Normalize
Normalize the
the testing
testing
dataset
4.5 20
dataset and
and divide
divide them
them
into
into training
training set set and
and
Current/(A)
Voltage/(V)
validation
validation set.
set. 4 10
Validation
Validation of
of LSTM-RNN
LSTM-RNN
3.5 0
+1
+1
·· Constructing
Constructing LSTM
LSTM Neural
Neural 3 -10
Network
Network
·· Selecting the activation
Selecting the activation 2.5 -20
function,
function, loss
loss function
function and
and Maximum number
N 0 5 10 0 5 10
optimization
optimization algorithm
algorithm Time/0.1s 4 Time/0.1s 4
of validation 10 10
Y (b) 10℃
·· Setting
Setting hyperparameters
hyperparameters 4.5 20
·· Initializing
Initializing weights
weights and
and
Voltage/(V)
Current/(A)
biases
biases 4 10
N
Achieving demanded
accuracy 3.5 0
·· Selecting
Selecting the
the evaluation
evaluation
function
function Y 3 -10
+1
+1
2.5 -20
0 5 10 15 0 5 10 15
N 4
Time/0.1s 10 Time/0.1s 10
4
Maximum number Fixing
Fixing network
network parameters
parameters
of training
(c) 25℃
Y
Fig. 5. Voltage and current measured under randomized condition at 0℃,
10℃ and 25℃: (a) 0℃, (b) 10℃, (c) 25℃
End
End
Normalization of initial data is also an important step of
Fig. 4. Flow chart of LSTM-RNN. LSTM-RNN. In this paper, data are normalized to the range
[−1,1] as follow
In order to obtain the testing dataset, discharge tests are
conducted under US06, HWFET, UDDS, LA92 conditions x xmin
x (13)
which are common drive cycles of electric vehicles at 0℃, xmax xmin
10℃ and 25℃ respectively. Datasets of LiBs measured under
where xmax and xmin are the maximum and minimum of data.
US06, HWFET, UDDS, LA92 conditions are taken as the
training set of LSTM-RNN, and a dataset of LiBs under x represents initial data and x represents the data after
randomized condition is taken as the validation set of LSTM- normalization.
RNN, which is a combination of these four data sets. There are
300,000 sampling data of LiBs obtained during LiBs testing
1714
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY CALICUT. Downloaded on January 05,2024 at 12:43:44 UTC from IEEE Xplore. Restrictions apply.
IV. EXPERIMENTS AND RESULT TABLE II. STATISTICAL RESULTS OF RNN FOR SOC ESTIMATION
SOC error/(%)
Measured 8
In this section, RNN and LSTM-RNN for SOC estimation
SOC/(%)
6
are validated respectively with the testing dataset of introduced 50
in Section 3. The RNN have the same structure as the LSTM- 4
RNN. Specially, the network contains 3 input neurons, 1 2
hidden layer and 1 output neuron. Sigmoid and tanh functions 0 0
are used as activation functions. Loss function is shown in 0 400 800 1200 1600 0 400 800 1200 1600
formula (9) and Adam optimization algorithm is used to Time/0.1s Time/0.1s
optimize the network. The results of RNN for SOC estimation (a) 0℃
of LiBs at 0℃, 10℃ and 25℃ are shown in Fig. 6.
100 10
LSTM-RNN
100 15
SOC error/(%)
RNN Measured 8
SOC/(%)
SOC error/(%)
Measured
6
SOC/(%)
10 50
4
50
5 2
0 0
0 500 1000 1500 2000 0 500 1000 1500 2000
0 0
0 400 800 1200 1600 0 500 1000 1500 Time/0.1s Time/0.1s
Time/0.1s Time/0.1s
(b) 10℃
(a) 0℃ 100 10
LSTM-RNN
100 15
SOC error/(%)
Measured 8
RNN
SOC/(%)
SOC error/(%)
Measured 6
SOC/(%)
10 50
4
50
5 2
0 0
0 500 1000 1500 2000 2500 0 500 1000 1500 2000 2500
0 0
0 500 1000 1500 2000 0 500 1000 1500 2000 Time/0.1s Time/0.1
Time/0.1s Time/0.1s
(c) 25℃
(b) 10℃
Fig. 7. SOC estimation results of LSTM-RNN at 0℃, 10℃ and 25℃: (a)
100 15
RNN 0℃, (b) 10℃, (c) 25℃
SOC error/(%)
Measured
SOC/(%)
10
50 TABLE III. STATISTICAL RESULTS OF LSTM-RNN FOR SOC ESTIMATION
5
Temperature MAE(%) MAX(%)
0 0
0℃ 1.29 6.05
0 500 1000 1500 2000 2500 0 500 1000 1500 2000 2500 10℃ 0.96 8.7
Time/0.1s Time/0.1s 25℃ 0.66 4.41
(c) 25℃ Total 0.97 8.7
The statistical results of Fig. 7 are shown in Table 3. The
Fig. 6. SOC estimation results of RNN at 0℃, 10℃ and 25℃: (a) 0℃, (b) MAE of LSTM-RNN are 1.29%, 0.96%, 0.66% at 0℃, 10℃,
10℃, (c) 25℃ 25℃ respectively. And the MAX of LSTM-RNN are 6.05%,
1715
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY CALICUT. Downloaded on January 05,2024 at 12:43:44 UTC from IEEE Xplore. Restrictions apply.
8.7%, 4.41% at 0℃, 10℃, 25℃ respectively. Therefore, the [3] J.N. Du, Z.T. Liu, Y.Y. Wang, et al, “An adaptive sliding mode observer
average MAE of LSTM-RNN for three temperatures is 0.97% for lithium-ion battery state of charge and state of health estimation in
electric vehicles,” Control Engineering Practice 54(2016):81-90.
and the MAX of LSTM-RNN for three temperatures is 8.7%.
[4] X.T. Liu, Z.H. Chen, C.B. Zhang, et al, “A novel temperature-
As can be observed from the SOC estimation results above, compensated model for power Li-ion batteries with dual-particle-filter
compared with the RNN method, LSTM-RNN for SOC state of charge estimation,” Applied Energy 123(2014):263-272.
estimation can achieve SOC estimation with lower errors. It is [5] Y.Y. Wang, C.B. Zhang, and Z.H. Chen, “A method for state-of-charge
estimation of LiFePO4 batteries at dynamic currents and temperatures
proved that LSTM-RNN can overcome the long-term using particle filter,” Journal of Power Sources 279(2015):306-311.
dependencies of RNN and can achieve SOC estimation [6] Y.L. Shang, C.H. Zhang, N.X. Cui, et al, “State of charge estimation for
accurate result. In addition, the high temperatures result in a lithium-ion batteries based on extended Kalman filter optimized by
low MAE and low MAX due to reason that the performance of fuzzy neural network,” Control Theory & Applications 33.2(2016):213-
battery increases with the increase in temperature at ambient 220.
temperature. This is because when the ambient temperature [7] R.J. Feng, S. Zhao, and X.D. Lu, “On-line estimation of Dynamic State-
approaches to the room temperature, the battery has excellent of-Charge for lead acid battery based on fuzzy logic,” 2013 2nd
International Conference on Measurement, Information and Control
cycle stability. It is easier for the RNN and LSTM-RNN to (ICMIC) IEEE, 2013.
learn the characteristics of LiBs.
[8] Alvarez Anton, Juan Carlos, et al, “Support Vector Machines Used to
Estimate the Battery State of Charge,” IEEE Transactions on Power
V. CONCLUSIONS Electronics 28.12(2013):5919-5926.
[9] J.H. Meng, G.Z. Luo, and F. Gao, “Lithium Polymer Battery State-of-
Accurate SOC estimation of LiBs is an urgent problem to Charge Estimation Based on Adaptive Unscented Kalman Filter and
be solved in BMS. This paper achieves accurate SOC Support Vector Machine,” IEEE Transactions on Power Electronics
estimation of LiBs by RNN and LSTM-RNN. Based on the (2015):1-1.
testing datasets of LiBs, RNN achieves SOC estimation of [10] I. Anand, B.L. Mathur, “State of charge estimation of lead acid batteries
LiBs with the average MAE of 3.15% and MAX of 12.92%; using neural networks,” International Conference on Circuits IEEE,
LSTM-RNN achieves SOC estimation of LiB with the average 2013.
MAE of 0.97% and MAX of 8.7%. It is proved that LSTM- [11] J. B. David, F.A. Jesus, C.S. Sandra, et al, “Using Dynamic Neural
Networks for Battery State of Charge Estimation in Electric Vehicles,”
RNN is more suitable for SOC estimation of LiBs. We Procedia Computer Science 130(2018):533-540.
consider the application of LSTM-RNN for SOC estimation of [12] H. Chaoui, C.C. Ibe-Ekeocha, “State of Charge and State of Health
LiBs under more complex operating conditions in the future. Estimation for Lithium Batteries using Recurrent Neural Networks,”
IEEE Transactions on Vehicular Technology (2017):1-1.
REFERENCES [13] S. Hochreiter, J. Schmidhuber, “Long short-term memory,”
Neuralcomputation, vol. 9, no. 8, pp. 1735–1780, 1997.
[1] T. L. Kulova, “New electrode materials for lithium-ion batteries
[14] C. Ephrem, P. J. Kollmeyer, P. Matthias, et al, “State-of-charge
(Review),” Russian Journal of Electrochemistry 49.1(2013):1-25.
estimation of Li-ion batteries using deep neural networks: A machine
[2] F. Huet, “A review of impedance measurements for determination of the learning approach,” Journal of Power Sources 400(2018):242-255.
state-of-charge or state-of-health of secondary batteries,” Journal of
Power Sources 70.1(2012):59-69.
1716
Authorized licensed use limited to: NATIONAL INSTITUTE OF TECHNOLOGY CALICUT. Downloaded on January 05,2024 at 12:43:44 UTC from IEEE Xplore. Restrictions apply.