Next Article in Journal
A Study of a 7.5 kW and 18,000 r/min Synchronous Reluctance Motor for Fuel Cell Compressor Applications
Previous Article in Journal
Insulated Hybrid Grid Based on PV System, Battery and Fuel Cell Car—A Case Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

A Long Short-Term Memory-Based Deep Learning Digital Twin of a Li-Ion Cell for Battery SOC Estimation †

by
József Richárd Lennert
* and
Dénes Fodor
Department of Power Electronics and E-Drives, Audi Hungaria Faculty of Automotive Engineering, Széchenyi István University, H-9026 Győr, Hungary
*
Author to whom correspondence should be addressed.
Presented at the Sustainable Mobility and Transportation Symposium 2024, Győr, Hungary, 14–16 October 2024.
Eng. Proc. 2024, 79(1), 16; https://doi.org/10.3390/engproc2024079016
Published: 1 November 2024
(This article belongs to the Proceedings of The Sustainable Mobility and Transportation Symposium 2024)

Abstract

:
This study aims to implement the digital twin of a Li-ion battery by using real measurement data and to create a deep learning-based SOC (state of charge) estimation solution. In the case of the SOC estimator, a special type of deep learning, so-called long short-term memory (LSTM), was used to increase the capabilities of the estimator. The digital twin and the SOC estimator were created by using MATLAB and MATLAB/Simulink. As a result, the implemented system can accurately simulate the non-linearities of the Li-ion battery and provide a satisfactory estimation of the SOC of the battery.

1. Introduction

Nowadays, Li-ion batteries play a crucial role in our lives. This role is due to the everyday use of portable, rechargeable devices like mobile phones and laptops and the increasing demand for electric cars. However, the everyday use of electric cars faces multiple challenges, mainly related to Li-ion batteries [1].
First of all, the energy density of Li-ion batteries is much lower than the energy density of fossil fuels used in internal combustion engine cars, which makes it challenging to reach a similar range. The electric vehicle range can be increased by increasing the number of cells within the battery pack or by developing battery cells with a higher energy density [2,3]. Both of these solutions demand a longer development process where accurate simulations are essential, leading to the creation of digital twins. To reach the most effective range of a given electric car, it is crucial to estimate the actual SOC of the electric vehicle as accurately as possible [4]. Of course, this can be performed with multiple different solutions [5], like using Coulomb Counting [6], a Kalman Filter [7], or creating an AI-based solution [8]. With the widespread use of more and more effective AIs, their use has become more common in the case of SOC estimation. Still, it must be mentioned that there is no universal best solution to estimate the SOC of the system because the use of different methods demands a different depth of knowledge about the given system and a different amount of available measurement data [9]. This is another crucial reason for using digital twins: they can be used to find the best estimation method before they are used in a real car.
Furthermore, Li-ion batteries are sensitive, especially to temperature, meaning that a proper monitor and control system must be created to secure the operating conditions of the Li-ion battery [10]. The task of the so-called battery management system (BMS) is to ensure these conditions, which means that the malfunction of this system can lead to damage or a reduced lifespan of the battery [11].
Finally, the battery’s aging must be mentioned, which is normal if the battery is kept in its normal working conditions [12]. However, aging can also be caused by multiple factors, such as too high a temperature or too deep discharging of the battery. Naturally, modern electric cars try to reduce the possibility of aging as much as possible, but aging cannot be eliminated.
Fortunately, most of these challenges can be eliminated or at least reduced by using proper simulations and running as many virtual tests as possible. By doing so, an extremely high number of tests can be conducted on the Li-ion battery, and the measurement data provided by these tests can be used to train and finetune an AI-based SOC estimator [8,9].
This study aimed to create a reusable digital twin for Li-ion batteries and a deep learning-based SOC estimator that can accurately estimate the SOC of the simulated battery.

2. Materials and Methods

As previously mentioned, the digital twin of the Li-ion battery was created in MATLAB/Simulink. For its implementation, the Simscape battery was crucial, simplifying the modeling of the battery and its cooling system. Due to the non-linear nature of the Li-ion batteries, the so-called 1RC or Thevenin equivalent circuit model (ECM) was used, as shown in Figure 1 [13,14].
The main equations of the 1RC model are the following:
U t = U o p e n S o C i · R 0 U 1
U ˙ 1 = U 1 C 1 · R 1 + i C 1
C 1 = τ 1 R 1
After implementing the digital twin, the parameters of the Thevenin model were estimated using the MATLAB Parameter Estimator app and open-source real measurement data [15]. For creating the artificial intelligence-based (AI-based) SOC estimator, a special type of deep learning, the LSTM, was chosen for multiple reasons [16]. On one hand, using LSTM allows the recognition of long-term connections within the measurement data, making the results more accurate. On the other hand, using LSTM eliminates the main drawback of recurrent neural networks, the problem of vanishing gradients, making the training process smoother and better. For the design of the layers of the neural network, the Deep Network Designer app was used, and the training of the network was performed by using an Adaptive Moment Estimation (ADAM) solver with continuous validation to train the best possible neural network by using as few epochs as possible. After the successful training of the neural network, it was tested using different scenarios, which will be discussed in the following chapter. The neural network design in Deep Network Designer can be seen on Figure 2.

3. Results and Discussion

As was previously pointed out, the Simscape battery was used to create the basis of the digital twin. This library provides predefined parameters for the simulation of different types of batteries, but these parameters are only sometimes as accurate as they should be, and using different ECM models can further improve the digital twin. This is why the so-called MATLAB Parameter Estimator app was used to estimate more accurate ECM parameters for the digital twin. By using this method, the accuracy of the battery model was significantly improved, leading to better mimicking of the real-life Li-ion battery. The following figure shows the difference between the simulated voltage and the measured voltage in the case of using predefined parameters and estimated parameters. This example was selected because it highlights the significant improvement that can be reached using estimated parameters. As shown in Figure 3, using measurement-based estimated parameters significantly increases the accuracy of the digital twin, meaning that it is worth estimating the critical parameters of the given system if the necessary amount of measurement data is available.
After implementing the digital twin, the neural network for SOC estimation was designed using the Deep Network Designer app. During the design process, it was pointed out that after a given number of hidden layers, the further increase in the number of layers does not lead to a rise in the quality of the neural network, but it even decreases the accuracy of the given neural network. In the case of the layer and training parameters, a very similar tendency was observable because the finetuning of these parameters led to the increase of quality only until a given point. After this point, changes in these parameters in the given direction either started to decrease the system’s quality or increase the neural network’s training time significantly. After finding the proper parameters, a good quality neural network was trained to estimate the SOC of the Li-ion battery, which can estimate the SOC of the battery with good accuracy, as seen in Figure 4.
As the figure shows, the created neural network gives a good estimation result and estimations close to the real SOC values provided by the previously mentioned digital twin. However, the developed simulation system also faces some challenges because it has some problems when the simulation switches between charging and discharging. The main reason for this is that during the testing of the neural network with the digital twin, a simplified charging–discharging logic was implemented, which caused some challenges for artificial intelligence. This is why the next step of this research will be implementing a more realistic charging-discharging logic, allowing better tests of the digital twin and the LSTM-based neural network.

4. Conclusions

Based on the results, a digital twin was created that is suitable for adequately reproducing the behavior of the real Li-ion battery. What is more, the parametrization method being used for the creation of this digital twin makes it possible to use the battery model as a digital twin of a different type of Li-ion battery if the necessary amount of measurement data is available for the parametrizing of the model.
In the case of the LSTM-based SOC estimator, it was shown that the proper structure of the neural network and its parametrization plays a crucial role in reaching attaining good results. However, the importance of the training parameters and settings must be mentioned as well because they can influence the training time of the neural network and its accuracy. As a result of the training, a neural network was created, which is suitable for estimating the current state of charge of the simulated Li-ion battery, meaning that it could be greatly used for multiple purposes.
In conclusion, the research reached its aim and created a reusable simulation. The digital twin of the Li-ion battery can be reparametrized, and the LTSM-based neural network can be retrained at any time if the necessary amount of proper measurement data is available. Thanks to this flexibility, both the digital twin and the estimator can be used in further research and refined to reach even better results.

Author Contributions

Conceptualization, J.R.L. and D.F.; methodology, J.R.L.; software, J.R.L.; validation, J.R.L. and D.F.; formal analysis, D.F.; investigation, J.R.L.; resources, J.R.L.; data curation, J.R.L.; writing—original draft preparation, J.R.L.; writing—review and editing, J.R.L. and D.F.; visualization, J.R.L. and D.F.; supervision, D.F.; project administration, D.F.; funding acquisition, J.R.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the New National Excellence Program of the Ministry for Culture and Innovation from the Source of the National Research, Development and Innovation Fund, grant number ÚNKP-23-2-I-SZE-39.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study, in the collection, analyses, or interpretation of data, in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

UopenOpen-circuit voltage (V)
U1Polarization voltage over the first RC network (V)
R0Terminal resistance (Ω)
R1Polarization resistance
C1Polarization capacitance of the first RC network (F)
τ1Time constant (s)

References

  1. Miao, Y.; Hynan, P.; von Jouanne, A.; Yokochi, A. Current Li-Ion Battery Technologies in Electric Vehicles and Opportunities for Advancements. Energies 2019, 12, 1074. [Google Scholar] [CrossRef]
  2. Frith, J.T.; Lacey, M.J.; Ulissi, U. A non-academic perspective on the future of lithium-based batteries. Nat. Commun. 2023, 14, 420. [Google Scholar] [CrossRef] [PubMed]
  3. Nitta, N.; Wu, F.; Lee, J.T.; Yushin, G. Li-ion battery materials: Present and Future. Mater. Today 2015, 18, 252–264. [Google Scholar] [CrossRef]
  4. Singirikonda, S.; Obulesu, Y.P. Battery modelling and state of charge estimation methods for energy management in electric vehicles: A review. IOP Conf. Ser. Mater. Sci. Eng. 2020, 937, 012046. [Google Scholar] [CrossRef]
  5. Danko, M.; Adamec, J.; Taraba, M.; Drgona, P. Overview of batteries state of charge estimation methods. Transp. Res. Procedia 2019, 40, 186–192. [Google Scholar] [CrossRef]
  6. Syafii, S.; El Fakhri, I.; Kurnia Agung, T.; Azizah, F. Design of battery state of charge monitoring and control system using coulomb counting method. Indones. J. Electr. Eng. Comput. Sci. 2024, 33, 736–745. [Google Scholar] [CrossRef]
  7. Shi, S.; Zhang, M.; Lu, M.; Wu, C.; Cai, X. State of charge estimation for lithium-ion batteries based on extended Kalman particle filter and orthogonal optimized battery model. Adv. Theory Simul. 2024, 7, 2301022. [Google Scholar] [CrossRef]
  8. Li, X.; Jiang, H.; Guo, S.; Xu, J.; Li, M.; Liu, X.; Zhang, X. SOC estimation of lithium-ion battery for electric vehicle based on deep multilayer perceptron. Comput. Intell. Neurosci. 2022, 2022, 3920317. [Google Scholar] [CrossRef]
  9. Hannan, M.A.; Lipu, M.H.; Hussain, A.; Mohamed, A. A review of lithium-ion battery state of charge estimation and management system in electric vehicle applications: Challenges and recommendations. Renew. Sustain. Energy Rev. 2017, 78, 834–854. [Google Scholar] [CrossRef]
  10. Leng, F.; Tan, C.M.; Pecht, M. Effect of temperature on the aging rate of Li-ion battery operating above room temperature. Sci. Rep. 2015, 5, 12967. [Google Scholar] [CrossRef] [PubMed]
  11. Wikner, E.; Thiringer, T. Extending battery lifetime by avoiding high SOC. Appl. Sci. 2018, 8, 1825. [Google Scholar] [CrossRef]
  12. Xiong, R.; Pan, Y.; Shen, W.; Li, H.; Sun, F. Lithium-ion battery aging mechanisms and diagnosis method for automotive applications: Recent advances and perspectives. Renew. Sustain. Energy Rev. 2020, 131, 110048. [Google Scholar] [CrossRef]
  13. Rajanna, B.V.; Kumar, M.K. Comparison of one and two time constant models for lithium-ion battery. Int. J. Electr. Comput. Eng. 2020, 10, 670–680. [Google Scholar] [CrossRef]
  14. Thakkar, R.R. Electrical equivalent circuit models of lithium-ion battery. In Management and Applications of Energy Storage Devices; Kabza, K., Ed.; IntechOpen: London, UK, 2021; pp. 47–69. [Google Scholar] [CrossRef]
  15. Szürke, S.K.; Dineva, A.; Csomós, B. Complex testing procedure for 18650 batteries. IEEE Dataport 2021. [Google Scholar] [CrossRef]
  16. Hochreiter, S. Long Short-term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The 1RC (Thevenin) model.
Figure 1. The 1RC (Thevenin) model.
Engproc 79 00016 g001
Figure 2. A screenshot of the neural network being designed for this experiment in MATLAB’s Deep Network Designer.
Figure 2. A screenshot of the neural network being designed for this experiment in MATLAB’s Deep Network Designer.
Engproc 79 00016 g002
Figure 3. The reaction of the Li-ion battery digital twin on the WLTP load current in the case of predefined parameters and estimated parameters compared to the real response of the system.
Figure 3. The reaction of the Li-ion battery digital twin on the WLTP load current in the case of predefined parameters and estimated parameters compared to the real response of the system.
Engproc 79 00016 g003
Figure 4. Comparison of the deep learning-based estimation of the SOC with the real SOC of the Li-ion battery.
Figure 4. Comparison of the deep learning-based estimation of the SOC with the real SOC of the Li-ion battery.
Engproc 79 00016 g004
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lennert, J.R.; Fodor, D. A Long Short-Term Memory-Based Deep Learning Digital Twin of a Li-Ion Cell for Battery SOC Estimation. Eng. Proc. 2024, 79, 16. https://doi.org/10.3390/engproc2024079016

AMA Style

Lennert JR, Fodor D. A Long Short-Term Memory-Based Deep Learning Digital Twin of a Li-Ion Cell for Battery SOC Estimation. Engineering Proceedings. 2024; 79(1):16. https://doi.org/10.3390/engproc2024079016

Chicago/Turabian Style

Lennert, József Richárd, and Dénes Fodor. 2024. "A Long Short-Term Memory-Based Deep Learning Digital Twin of a Li-Ion Cell for Battery SOC Estimation" Engineering Proceedings 79, no. 1: 16. https://doi.org/10.3390/engproc2024079016

APA Style

Lennert, J. R., & Fodor, D. (2024). A Long Short-Term Memory-Based Deep Learning Digital Twin of a Li-Ion Cell for Battery SOC Estimation. Engineering Proceedings, 79(1), 16. https://doi.org/10.3390/engproc2024079016

Article Metrics

Back to TopTop