[Paper Review] A Machine Learning-based Digital Twin for Electric Vehicle Battery Modeling
This paper proposes a machine learning-based digital twin for electric vehicle (EV) battery management that jointly models State of Charge (SOC) and State of Health (SOH) using data-driven models. The SOH model is pre-trained once on historical data, while the SOC model is periodically retrained in the cloud using updated battery data to maintain accuracy amid aging, achieving inference times under 1 second and retraining times below 1 second, ensuring compatibility with onboard EV systems.
The widespread adoption of Electric Vehicles (EVs) is limited by their reliance on batteries with presently low energy and power densities compared to liquid fuels and are subject to aging and performance deterioration over time. For this reason, monitoring the battery State Of Charge (SOC) and State Of Health (SOH) during the EV lifetime is a very relevant problem. This work proposes a battery digital twin structure designed to accurately reflect battery dynamics at the run time. To ensure a high degree of correctness concerning non-linear phenomena, the digital twin relies on data-driven models trained on traces of battery evolution over time: a SOH model, repeatedly executed to estimate the degradation of maximum battery capacity, and a SOC model, retrained periodically to reflect the impact of aging. The proposed digital twin structure will be exemplified on a public dataset to motivate its adoption and prove its effectiveness, with high accuracy and inference and retraining times compatible with onboard execution.
Motivation & Objective
- To address the challenge of accurately estimating battery State of Charge (SOC) and State of Health (SOH) in electric vehicles amid non-linear aging effects.
- To develop a digital twin architecture that maintains the interdependence between SOC and SOH by retraining the SOC model as the battery ages.
- To ensure the digital twin is deployable in real-time EV environments by optimizing inference and retraining times for onboard feasibility.
- To validate the approach using a public NASA dataset, demonstrating high accuracy and adaptability of data-driven models.
- To establish a framework for cloud-based periodic retraining of SOC models to reflect evolving battery degradation.
Proposed method
- The digital twin employs a pre-trained, offline SOH model based on historical battery cycle data to estimate capacity degradation.
- The SOC model is retrained periodically in the cloud using updated discharge data from the EV, reflecting current battery aging conditions.
- Random Forest (RF), LightGBM (LGB), and Deep Neural Network (DNN) models are evaluated for both SOC and SOH estimation using Min-Max normalized features.
- The SOC model is retrained using data from different SOH levels (e.g., 100%, 75%, 70%) to assess performance degradation when using outdated models.
- Inference is performed either on the cloud or onboard the vehicle, with a focus on minimizing latency to support real-time battery management.
- The system uses a hybrid edge-cloud architecture, with model updates pushed to the vehicle after cloud-based retraining.

Experimental results
Research questions
- RQ1How can a digital twin accurately model the dynamic interplay between SOC and SOH in aging lithium-ion batteries?
- RQ2What machine learning models provide the best trade-off between accuracy, inference time, and retraining time for SOC estimation in an EV context?
- RQ3How does the performance of an SOC model degrade when used beyond its training SOH condition?
- RQ4Can periodic retraining of the SOC model maintain high accuracy over the battery’s lifetime despite aging effects?
- RQ5What are the computational performance characteristics (inference and retraining times) of different models in a real-time digital twin deployment?
Key findings
- The SOH model, trained once on full charge cycle data, achieves high accuracy with inference times around 1 second, suitable for real-time use.
- LightGBM (LGB) and Random Forest (RF) models for SOC estimation show significantly lower training times (under 1 second) compared to DNN (approx. 67 seconds), making them more suitable for periodic retraining.
- At SOH = 75%, the SOC model trained at that SOH level achieved an RMSE of 0.809% (RF) and 0.599% (LGB), while the outdated model trained at SOH = 100% had an RMSE of 184.450% (RF), proving severe performance degradation over time.
- The MAE of the DNN model increased to 25.315% when used at SOH = 75% with a model trained at SOH = 100%, rendering it unusable in practice due to excessive error.
- The digital twin architecture ensures high accuracy by retraining the SOC model periodically with current SOH data, reducing estimation errors by over 90% compared to outdated models.
- The proposed system achieves inference and retraining times compatible with onboard execution, with all models operating within 1 second for inference and under 1 second for retraining (except DNN), supporting real-time deployment.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.