Digital Twin-Driven Electric Vehicle Battery Monitoring Using Explainable Artificial Intelligence

Authors

  • Hamza Muneer University of Central Punjab, Lahore, Pakistan
  • Anam Mustaqeem University of Central Punjab, Lahore, Pakistan
  • Salman Muneer University of Central Punjab, Lahore, Pakistan
  • Rabia Tehseen University of Central Punjab
  • Khadija Moazzam University of Central Punjab, Lahore, Pakistan
  • Uzma Omer University of Central Punjab, Lahore, Pakistan

Keywords:

digital twin, Machine Learning, Electric Vehicles, Explainable Artificial Intelligence, EV Battery Monitoring, Charging Optimization, Optimal Charging Duration

Abstract

The increasing adoption of electric vehicles (EVs) requires intelligent battery monitoring systems that can support efficient and reliable charging decisions. This study presents a Digital Twin-Driven Electric Vehicle Battery Monitoring framework using Explainable Artificial Intelligence (XAI). The proposed approach integrates battery operating parameters, machine learning, and explain ability techniques to predict optimal charging duration. The dataset contains 1,000 samples and 13 variables, including state of charge (SOC), voltage, current, battery and ambient temperature, degradation rate, efficiency, charging cycles, charging mode, battery type, and EV model. The target variable is formulated as a three-class optimal charging duration problem. After preprocessing using feature scaling, one-hot encoding, and a pipeline-based architecture, multiple machine learning models were evaluated. Logistic Regression achieved the highest testing accuracy of 97%, with macro-averaged precision, recall, and F1-score of 0.97. The optimized Random Forest achieved 91% testing accuracy, with weighted precision, recall, and F1-score of 0.91, while its cross-validation score reached 92.10%. The Random Forest model provided class-wise F1-scores of 0.87, 0.89, and 0.95 for the three charging-duration classes. XAI analysis was incorporated to improve model transparency by identifying influential battery and operational features. The proposed framework demonstrates the potential of integrating Digital Twin concepts, machine learning, and XAI for transparent and intelligent EV battery monitoring and charging optimization. The numerical results and model comparisons are presented in the abstract, where Logistic Regression achieved the highest accuracy of 97%, followed by Gradient Boosting (93%), Random Forest (91%) and Extra Trees (90%). The degradability rate (30.60%), efficiency (29.51%), and SOC (16.98%) are some of the identified influential features through the Random Forest feature-importance analysis. Moreover, the results of the experimentally validated ML are clearly differentiated from the proposed Digital Twin and future real-time monitoring.

Downloads

Published

2026-10-08

How to Cite

Muneer, H., Mustaqeem, A., Muneer, S., Tehseen, R., Moazzam, K., & Omer, U. (2026). Digital Twin-Driven Electric Vehicle Battery Monitoring Using Explainable Artificial Intelligence. Magna Carta: Contemporary Social Science, 5(280), 1–17. Retrieved from https://journal.50sea.com/index.php/MC/article/view/2087

Issue

Section

Articles