You are on page 1of 3

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/370636700

Model Comparison and Selection for Battery Digital Twin Development using
PyBaMM

Conference Paper · April 2023

CITATION READS

1 299

4 authors:

Judith Nkechinyere Njoku Cosmas Ifeanyi Nwakanma


Kumoh National Institute of Technology Kumoh National Institute of Technology
36 PUBLICATIONS 131 CITATIONS 161 PUBLICATIONS 652 CITATIONS

SEE PROFILE SEE PROFILE

Jae Min Lee Dong-Seong Kim


Kumoh National Institute of Technology Kumoh National Institute of Technology
280 PUBLICATIONS 1,360 CITATIONS 699 PUBLICATIONS 5,386 CITATIONS

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

DEVELOPING A DIGITAL LANGUAGE MINING PLATFORM FOR NIGERIAN LANGUAGES (DLMP) View project

3D Printer Monitoring Project View project

All content following this page was uploaded by Judith Nkechinyere Njoku on 10 May 2023.

The user has requested enhancement of the downloaded file.


Model Comparison and Selection for Battery
Digital Twin Development using PyBaMM
Judith Nkechinyere Njoku ∗ , Cosmas Ifeanyi Nwakanma† , Jae-Min Lee ∗ , and Dong-Seong Kim ∗
∗ IT Convergence Engineering, † ICT Convergence Research Center, Kumoh National Institute of Technology, Korea.

Abstract—Due to the inability of embedded systems used for Algorithm 1 Algorithm for SPMe model with thermal effect
battery management systems (BMS) to store vast amounts of Require: Define constants, initial state variables & parameters
data, it is difficult to obtain accurate state estimations in real- Ensure: Define final state variables
time. To resolve this issue, digital twin technology is being ex-
plored. To develop a digital twin (DT) for BMS, it is essential that
while t < tf inal do
the best model be used to mimic the battery’s behavior. The main (1) calculate current density, i.
objective of this paper is to simulate different electrochemical (2) update li-ion concentration in electrolytes, C.
models for the development of DT and compare them with real (3) update potential, ϕ.
data. Variants of three electrochemical models were employed in (4) update temperature, T .
this study, and the single particle model with electrolyte (SPMe)
and thermal effect attained the best performance in voltage
(5) update time and check for convergence.
RMSE and voltage R2 of 70.56mV and 0.7397 respectively. if convergence achieved? then
Index Terms—digital twin, NMC, battery, lithium-ion update previous values & continue
else
I. I NTRODUCTION reduce time step & try again.
end if
Battery management systems (BMS) have the primary role end while
of monitoring the conditions of batteries, detecting faults, and
proferring a remedy. To achieve these, BMSs need to process
large amounts of data and predict the battery state in real-time. II. M ETHODOLOGY
However, the conventional BMS have a specific challenge; A. Models
They are unable to store vast amounts of data on the embedded
board [1]. As a result, they can only obtain very minimal This section introduces all models that were employed in
data from the battery in real-time which consequently makes this paper.
it difficult to provide very accurate estimates. To develop a 1) Single particle model (SPM): This model describes the
more efficient BMS, one concept being explored is the ‘digital lithium transport, thermodynamics, and kinetics of the
twin’ which relies on one or more of the previously highlighted reaction in a lithium-ion battery. It is assumed that each
technologies. electrode of the SPM is a particle and the distribution of
Digital twins (DT) refer to the virtual replica of physical the current is uniform across the electrodes.
objects [2]. As a solution to the BMS issues, Digital batteries, 2) Single particle model with electrolyte (SPMe): This
and BMS will be able to access more storage and hence pro- model is an extension of the SPM previous model which
cess more data. However, in developing these digital batteries, includes an electrolyte. This electrolyte model considers
the behavior must be modeled with minimal error [3]. To the diffusion of ions between electrodes and electrolytes,
mimic the battery behavior so effectively, it is important to as well as its effect on this process.
consider the best model for the target batteries. One major 3) Doyle Fuller Newman (DFN) model: This model con-
model that has been extensively considered in literature is the siders the electrochemical behavior of every component
electrochemical model, which takes the diffusion, kinetics, and of the battery, including the electrolyte, anode, separator,
intercalation within the battery into consideration [4]. cathode, etc. While this is the most robust model, it is
There are various types of electrochemical models [5]. the most computationally expensive of the three models.
These models also behave differently when the thermal dy- Despite the robustness of some of these models, they still
namics are considered. The aim of this paper is to determine have certain disadvantages. Table. I provides a review of the
the best model that can be used to mimic the behavior of a characteristics of each of these models. Furthermore, these
lithium-ion battery. To that end, we (i) review the literature electrochemical models do not include effects that are consid-
for the merits and demerits of each electrochemical model ered physical, including mechanical, degradation, or thermal
(ii) simulate six different models under similar conditions as effects. Thus, in addition to modeling the electrochemical
the battery under study, and (ii) compare the performance of properties of lithium-ion batteries, this paper also considers
these models with the real battery based on cell temperature the thermal effects. Algorithm 1 provides a basic summary of
and voltage. how SPMe with thermal effect works.
TABLE I
R EVIEW OF THE ADVANTAGES AND DISADVANTAGES OF EACH ELECTROCHEMICAL MODEL

Metric/Model SPM SPMe DFN


Complexity simplest slightly complex very complex
Accuracy fairly accurate fairly accurate most accurate
Simulation time fastest faster fast
Modeling domain only solid electrode only solid electrode and electrolyte entire battery
Spatial resolution less spatially resolved less spatially resolved more spatially resolved
Electrolyte modeling not included included in porous electrode complex one included

B. Battery dataset While SPMe with thermal model achieved the lowest RMSE
The dataset used in this study is an LG lithium-ion battery and highest R2 values for voltage, DFN achieved the lowest
dataset obtained from [6]. The data is based on an NMC RMSE and highest R2 values for temperature. As evidenced
positive electrode and graphite negative electrode for a 21700 by the results of simulation time, DFN cannot be adopted,
cylindrical cell of 5Ah nominal capacity. Experiments were as it incurs the most time, with a very wide margin. Hence,
conducted for datasets obtained at a C-rate of 2 and an ambient SPMe with thermal is the most suitable model for developing
temperature of 0o C. This C-rate implies that the discharge the battery DT.
IV. C ONCLUSION
current will discharge the battery in 30 minutes.
In this study, variants of three electrochemical models
C. Simulation set-up
were evaluated for the possible development of digital twins
All models were implemented in PyBaMM (Python Battery for battery systems. The models were simulated using the
Mathematical Modelling) Python package [7]. The thermal and PyBaMM application and evaluated based on terminal voltage
electrochemical parameters were obtained from Table I in [6]. and cell temperature.
Details of some of the parameters used are illustrated in Table
II. Other parameters include initial electrolyte concentration ACKNOWLEDGMENTS
Ce,init , electrolyte diffusivity De , electrolyte conductivity σe , This research was supported by Priority Research Cen-
electrolyte volume fraction ζk , amongst others. ters Program through the NRF funded by the MEST
(2018R1A6A1A03024003), MSIT Korea (1711175292/2022-
TABLE II IT-RD-0084-01), and by MSIT under the Innovative Human
E LECTROCHEMICAL AND THERMAL PARAMETERS USED IN THE Resource Development for Local Intellectualization support
SIMULATION
program (IITP-2023-2020-0-01612) supervised by the IITP.
Symbol Meaning Units Value
h heat exchange coefficient W m−1 20 R EFERENCES
k thermal conductivity W m−1 1.05
θ volumetric heat capacity m−3 2.85 × 106 [1] Y. Wang, J. Tian, Z. Sun, L. Wang, R. Xu, M. Li, and Z. Chen, “A com-
TAM B ambient temperature K 298 prehensive review of battery modeling and state estimation approaches
Lbatt battery length scale m 1 × 10−2 for advanced battery management systems,” Renewable and Sustainable
acool cooling surface density m−1 219.42 Energy Reviews, vol. 131, 10 2020.
F Faraday constant C 96485
iapp applied current density Am−2 48.69C [2] E. Glaessgen and D. Stargel, “The digital twin paradigm for future nasa
R gas constant mol−1 8.314 and us air force vehicles,” in 53rd AIAA/ASME/ASCE/AHS/ASC
t+ transfer number - 0.2594 structures, structural dynamics and materials conference 20th
AIAA/ASME/AHS adaptive structures conference 14th AIAA, 2012,
p. 1818.
[3] M. Grieves and J. Vickers, “Digital twin: Mitigating unpredictable,
III. P ERFORMANCE E VALUATION undesirable emergent behavior in complex systems,” in Transdisciplinary
perspectives on complex systems. Springer, 2017, pp. 85–113.
All models were compared based on terminal voltage and [4] H. E. Perez, X. Hu, and S. J. Moura, “Optimal charging of batteries via
cell temperature of the 4 battery cells, by evaluating the a single particle model with electrolyte and thermal dynamics,” in 2016
simulation time, root mean squared error (RMSE), and R2 . American Control Conference (ACC), 2016, pp. 4000–4005.
[5] D. Di Domenico, A. Stefanopoulou, and G. Fiengo, “Lithium-Ion
Table III summarizes the results obtained. Battery State of Charge and Critical Surface Charge Estimation Using
an Electrochemical Model-Based Extended Kalman Filter,” Journal of
TABLE III Dynamic Systems, Measurement, and Control, vol. 132, no. 6, 10 2010.
P ERFORMANCE COMPARISON OF ALL MODELS [Online]. Available: https://doi.org/10.1115/1.4002475
[6] F. B. Planella, M. Sheikh, and W. D. Widanage, “Systematic derivation
Model/metrics Voltage RMSE (mV) Temp. RMSE (o C ) Voltage R2 Temp. R2 Time (sec) and validation of a reduced thermal-electrochemical model for lithium-
SPM 91.69 13.37 0.5604 -0.4471 3.24 ion batteries using asymptotic methods,” Electrochimica Acta, vol. 388,
SPM with thermal 103.69 5.75 0.4379 0.7324 2.29 p. 138524, 2021.
SPMe 85.57 13.38 0.6175 -0.4471 5.46 [7] V. Sulzer, S. G. Marquis, R. Timms, M. Robinson, and S. J. Chapman,
SPMe with thermal 70.56 1.15 0.7397 0.9894 4.99 “Python Battery Mathematical Modelling (PyBaMM),” Journal of Open
DFN 99.15 13.38 0.4868 -0.4471 5.12 Research Software, vol. 9, no. 1, p. 14, 2021.
DFN with thermal 77.86 1.03 0.6831 0.9914 23

View publication stats

You might also like