Professional Documents
Culture Documents
Battery Management System To Estimate Battery Agin
Battery Management System To Estimate Battery Agin
Battery Management System To Estimate Battery Agin
Abstract: One of the greatest challenges faced by Electric Vehicle (EV) manufactures is
insufficient charging stations. Estimating the aging of the battery in the electric vehicle helps the
driver to predict the driving range of the vehicle. This paper proposes a battery management
system that is developed to predict remaining battery charge of the Electric Vehicle. The aging
of the lithium-ion (Li-Ion) battery present in the electric vehicle is predicted using different
machine learning and deep learning algorithms. The parameters such as voltage, current and
temperature are taken from the sensors connected to the LPC2148 ARM board and the values
are given as dataset to the Long Short-Term Memory (LSTM), Decision Tree (DT), K-Nearest
Neighbors (KNN), Naïve Bayes (NB) and Support Vector Machine (SVM) Algorithms. The
experimental results indicate that for real-time data Naïve Bayes algorithm gave the best results
in terms of metrics such as Accuracy, Precision, Recall and F1-score. Naïve Bayes produced
results with the accuracy rate of 88% and used to calculate the Remaining Battery Capacity
which helps predicting the aging of the lithium- ion battery.
Keywords: Electric Vehicle (EV), Lithium-Ion (Li-Ion), State Of Charge (SOC), Battery
Management System (BMS), Long Short-Term Memory (LSTM), Decision Tree (DT), K-
Nearest Neighbors (KNN), Naïve Bayes (NB) and Support Vector Machine (SVM).
1. INTRODUCTION
The impacts of air pollution and global warming that is caused due to greenhouse gas emissions
from fuel based vehicles have increasingly attracted great attention towards the eco-friendly electric
vehicles (EVs). The transport industry accounts for the large amount of greenhouse gas emission and
pollution to the environment. The transport sector can be improved by the introduction of the
environmentally friendly Hybrid Electric Vehicle (HEV), Battery Electric Vehicle (BEV), Fuel Cell
Electric Vehicle (FCEV) and Plug-in Hybrid Electric Vehicle (PHEV). Among these Battery Electric
vehicles (BEV) are currently the best choice in terms of public and personal transportation for the
environment. Because of high cell voltage, low self-discharge rate, high energy density, light weight,
long lifetime and low maintenance Li-ion batteries have gained high popularity when compared to other
batteries. Range, cost, and battery life cycle are the main challenges for the development of Li-Ion
battery systems for electric vehicles [4]. A battery can support only a finite, limited number of charge
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
and discharge cycles. A sufficiently long battery life is necessary to avoid battery replacements during
the vehicle’s lifetime. To achieve this, a study on lithium-ion battery aging behavior in electric vehicles
are essential. Every battery at any instant has a capacity value known as state of charge (SoC) which
reduces with energy usage. Range of an EV depends on the SoC of the battery. Therefore, battery
management system (BMS) is important to make sure that the battery is operated in its specified safety
limits [3]. One of the most important tasks of the BMS is to predict the state of charge. SOC provides
percentage of the remaining battery charge. SOC can be calculated based on three battery parameters
such as voltage, current and temperature. Through SOC we can identify when the battery needs to be
recharged and how long the vehicle can be driven without recharging the battery [7].
2. RELATED WORKS
Prakash et al (2021) has proposed a work that establishes the effective method for identifying
the battery aging. Battery Aging provides the accurate estimation of battery health through real time
simulation. This paper estimates remaining useful life and state of health by calculating the SOC,
internal resistance and capacitance of Lithium-Ion battery along with the voltage transfer characteristics.
Various statistical model on battery and machine learning approaches are introduced to predict SOH and
RUL which are implemented on a hardware. The overall results produced by the neural network
approaches in predicting the SOH are within the error rate of ±5%. The RUL is predicted using long
short time memory neural network through which ±10 cycles of accuracy is obtained [2].
Kailong et al (2021) proposed a system which is used to predict remaining useful life (RUL) and
future capacity using uncertainty quantification. Advanced machine-learning techniques which uses
reliable uncertainty management technique to predict battery capacities and RUL for lithium-ion (Li-
ion) batteries is developed. Battery capacity is then completely decomposed into intrinsic mode function
(IMF) and residual value using the empirical mode decomposition (EMD) method. IMF and residual are
calculated using Long short-term memory (LSTM) and Gaussian process regression (GPR) with the
uncertainty level. The aging is calculated by implementing LSTM+GPR model which is then compared
with GPR, LSTM, GPR+EMD, and LSTM+EMD models. The accurate results are obtained in
LSTM+GPR. The proposed system shows better results in battery health diagnosis [3].
Rasool et al (2020) proposed a better management system for Lithium-Ion batteries to achieve safe
use and to increase the battery lifetime. SOC estimation technique is established. Here model-based
estimation method is used to find the accuracy of the model. The estimation of accuracy can be predicted
considering parameters such as aging, self-discharge and temperature. An extended Kalman filter is
performed to estimate better SOC. The degradation of battery capacity is evaluated using this approach.
In this paper noise covariance is optimized to improve the state estimation by particle swarm
optimization. The results produced are effective in both accuracy and computational simplicity [8].
Zhang et al(2020) proposed a novel sparse machine learning for real time state of charge estimation.
Least squares support vector machine (LS-SVM) is developed and the process dynamics is executed in
real-time for Li-Ion batteries. The computation and mapping functions are calculated using fast recursive
method. A weighted regularization scheme and the differential evolution (DE) method are implemented
that helps in optimizing the parameters which enhances the accuracy of the proposed system. State of
charge estimation in real-time is estimated using unscented Kalman filter (UKF) based on the proposed
model. The results produced by Federal Urban Drive Schedule (FUDS) test data creates an enhanced
absolute error which is less when compared with conventional LS-SVMs. The proposed system
produces 10 times less error when compared with conventional LS-SVMs [11].
Fen et al (2020) had proposed a model for the efficient use of energy in EV’s by frequently
monitoring the Li-Ion batteries. To determine the accurate lifetime of the battery a deep learning based
SOC prediction model was implemented and in addition to that recursive neural network (RNN) based
2
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
method was used to improve the data representation. Lithium-Ion Batteries SOC was accurately
predicted using the Convolution neural network (CNN) fed with the well trained vector representation.
Feature Extraction and Vector representation was used to improve the proposed model for SOC
prediction. The performance produced by the system is improved by 4.3% in prediction when compared
with RNN algorithm [12].
Carlos et all(2020) proposed the survey on battery state estimation using the machine learning
approaches like feedforward neural network(FNN) ,recurrent neural network(RNN) ,support vector
machine (SVM) ,radial basis function(RBF) and Hamming network. The comparisons are based in terms
of input, outputs, data quality, stated accuracy and battery types of ML landscapes for SOC and SOH
estimation. The RNN, FNN algorithms are trained 50 times while in each time 3000 epochs are obtained
to improve the efficiency of the system[10]. The errors appeared to be different because of the initial
values of the parameters, when the comparison must be made among the estimation techniques, the same
no of initial parameters must be present, and it has to be trained and tested with similar data within
proposed model [13].
Matteo et al (2019) proposes the capability to control the battery capacity degradation in terms of,
recharge time, driving range and drivability for battery aging management model whose vehicle
performance was guaranteed. In battery aging management, the parameters such as depth of discharge
and maximum battery current are used in construction of the framework. This paper proposes a solution
for a multi-input optimization problem, multi-objective which is an issue in battery management. The
algorithm used in this paper gives the present battery residual capacity and forecasting the behavior of
driver, also selects the best control variables over a suitable control discretization step. The Driving style
gives the best aging strategy. A Markov-chain-based driving style, self-learnt system is created for
producing accurate results for battery aging. The simulation of the proposed strategy produces the
battery life of 200 000 (km) [14].
Yohwan et al (2019) proposed a health management system to know about the risk of the failures
in advance and it has been implemented in battery systems. Depending on the charging profiles and
capacity of the battery the model is analysed and characterized using the neural network algorithms. To
estimate the state of health, a familiar algorithm such as Feedforward Neural Network (FNN),
Convolution Neural Network (CNN) and Long -Short Term Memory (LSTM) is used. The results
obtained in this of the experiment is efficient than the conventional method. The proposed multi-channel
technique is based on current, voltage and temperature profiles in which the mean absolute error is
reduced up to 25 to 58% [15].
3. METHODOLOGY
Fig.1 depicts the flow diagram of the proposed system where the data is split into training and
testing dataset.
3
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
4
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
The naive Bayes classifier are designed using Bayes theorem. It considers that the existence of
the feature in a class would be varying to other features. it can provide better performance when it comes
to multi class predictions. this algorithm constructs the machine learning models quickly which helps
in making fast predictions. this classifier is also known as probabilistic classifier. It makes prediction
based on the probability of the object.
5
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
The K-nearest neighbours has data points that belongs to the class it shares the greatest number
of common points with respect to its distance. K numbered nearest points that are present around the
data point which must be predicted are taken into consideration. These K points then it belongs to a
particular class. The data points belong to the class with the greatest number of points. Euclidean
distance method is used to identify the distance between the points in KNN algorithm.
5. EXPERIMENTATIONS
The experimental setup of the Battery Management System is shown in Fig.3. The LPC2148 is
connected to sensors through GPIO pins. AC5712 current sensor, Voltage sensor and a Current sensor
are used to measure the Battery parameters. Parameters such as current, voltage and temperature are
6
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
monitored, and the data is collected from the Battery that is connected to the setup. A CPC2102 USB to
TTL module is connected between ARM MC and PC which collects the data from MC and to feds to
excel in PC. The dataset is collected by measuring the parameters at different conditions. The acquired
datasets are then fed into the machine learning and deep learning algorithms.
7
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
Fig.5 shows the losses obtained through number of passes. val_loss is the value obtained for cost
function by cross validating the data. The cost function obtained for the training data is the loss. The
loss doesn’t improve from epoch 16 and thus the training of the dataset completes and early stopping
occurs.
8
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
Fig 6 shows the battery voltage, current, state of charge and temperature plotted against predicted values
and actual values trained for about 26 epochs. The actual and predicted values are same which indicates
that the LSTM has produced high accurate results.
Fig.6. Predicted and actual battery voltage, current, state of charge and temperature through LSTM
algorithm
Fig.7 shows for the Naïve Bayes algorithm the rate of accuracy achieved is around 88 %. Among 25
total test labels 22 labels are predicted correctly indicating true positive and negative values.
9
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
Fig.8 depicts for Decision Tree algorithm the rate of accuracy achieved is around 72 %. Among 25 total
test labels 18 labels are predicted correctly indicating true positive and negative values.
Fig.9 depicts for KNN algorithm the rate of accuracy achieved is around 80 %. Among 25 total test
labels 20 labels are predicted correctly indicating true positive and negative values.
10
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
Fig.10 depicts for SVM algorithm the rate of accuracy achieved is around 76 %. Among 25 total test
labels 19 labels are predicted correctly indicating true positive and negative values.
11
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
ANALYSIS REPORT
Table.1 infers that by comparing results of Classification report we can observe Naïve Bayes
produces high Accuracy with high precision, Recall and F1 score values. Thus, the Naïve Bayes
algorithm is best suitable to estimate remaining charge of the lithium-ion battery.
Fig.11 depicts the battery aging prediction obtained after testing in Naïve Bayes algorithm. The
Naïve Bayes algorithm produces high accuracy of 88% in Analysis2 of the project. So, the prediction
results are taken for analysis from KNN algorithm. Here 1 indicates for the obtained battery voltage,
current and temperature, the time for which the remaining battery capacity will be true and 0 indicates
false. By this we can conclude that the battery aging can be predicted accurately through Naïve Bayes
algorithm.
12
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
7. CONCLUSION
In this paper the battery management system to predict the battery capacity was developed and
the method was implemented using different machine learning and deep learning algorithms. The four-
classification metrics such as accuracy, precision, recall and F1-score are calculated and the naïve bayes
algorithm is found to be best to predict aging of the battery by producing high accuracy of 88% while
analysing real-time data. This method will allow us to predict the battery life and helps the driver to
estimate the driving range of the vehicle. The real-time implementation of this technique will be highly
applicable for the estimation of lithium-ion battery capacity in electric vehicles.
REFERENCES
[1] Yichun Li, Mina Maleki, Shadi Banitaan, Mingzuoyang Chen, “Data-Driven State of Charge
Estimation of Li-ion Batteries using Supervised Machine Learning Methods”, IEEE International
Conference on Machine Learning and Applications, January, 2022.
[2] Prakash Venugopal, S. Siva Shankar , C. Phillip Jebakumar, Rishab Agarwal, Hassan Haes Alhelou,
S. Sofana Reka, And Mohamad Esmail Hamedani Golshan, “Analysis of Optimal Machine Learning
Approach for Battery Life Estimation of Li-Ion Cell”, IEEE Access, November, 2021.
[3] Thiruvonasundari Duraisamy, Deepa Kaliyaperumal, “Machine Learning-Based Optimal Cell
Balancing Mechanism for Electric Vehicle Battery Management System”, IEEE Access, September,
2021.
[4] Kailong Li, Yunlong Shang, Quan Ouyang, and Widanalage Dhammika Widanage, “A Data-Driven
Approach With Uncertainty Quantification for Predicting Future Capacities and Remaining Useful Life
of Lithium-ion Battery”, IEEE Transactions On Industrial Electronics, Vol. 68, No. 4, April 2021.
[5] Tsung-Wen Sun and Tsung-Heng Tsai, “A Battery Management System with Charge Balancing and
Aging Detection Based on ANN”, IEEE International Symposium on Circuits and Systems, April, 2021.
13
International Conference on Electronic Circuits and Signalling Technologies IOP Publishing
Journal of Physics: Conference Series 2325 (2022) 012004 doi:10.1088/1742-6596/2325/1/012004
14