Machine Learning-Driven Real-Time Battery Health Estimation for EV Battery Swapping
DOI:
https://doi.org/10.63665/8qwnpw11Keywords:
Electric Vehicles, Battery Swapping, State of Health, Machine Learning, Random Forest, XGBoost, FlaskAbstract
Electric Vehicle (EV) adoption is rapidly increasing, necessitating efficient and reliable battery management systems, especially in battery swapping infrastructures. This project presents a Machine Learning-driven web application for real-time battery health estimation, aimed at enhancing the efficiency of EV battery swapping systems. Built using Flask as the backend web framework and Python for data processing and machine learning, the system predicts two critical parameters of battery condition: State of Health (SoH) and remaining charge cycles. To achieve accurate predictions, the application leverages Random Forest Regression and XGBoost, two powerful ensemble learning algorithms, trained on historical battery usage data including charge/discharge current, voltage, temperature, and cycle counts. The system processes user input in real time and displays the battery’s health status via a user-friendly interface, enabling swift decision-making at battery swapping stations. This solution not only promotes proactive maintenance and optimal utilization of EV batteries but also supports sustainable energy practices by reducing the chances of premature battery disposal. The combination of ML with a lightweight Flask-based deployment makes the application scalable, efficient, and suitable for integration into real-world EV infrastructure. Keywords— Electric Vehicle, Battery Swapping, Battery Health, State of Health, Remaining Useful Life, XGBoost, Random Forest, Flask.
Downloads
References
[1]. A. P. Renold and N. S. Kathayat, “Comprehensive Review of Machine Learning, Deep Learning, and Digital Twin Data Driven Approaches in Battery Health Prediction of Electric Vehicles,” IEEE Access, 2024.
[2]. S. F. Chevtchenko et al., “A Mapping Study of Machine Learning Methods for Remaining Useful Life Estimation of Lead Acid Batteries,” 2023.
[3]. N. Jiang et al., “Driving Behavior Guided Battery Health Monitoring for Electric Vehicles Using Machine Learning,” arXiv, 2023.
[4]. S. A. Celtek et al., “Machine Learning Based Real Time Remaining Useful Life Estimation and Fair Pricing Strategy for Electric Vehicle Battery Swapping Stations,” IEEE Access, 2025.
[5]. C. Liu et al., “Deep Learning for State of Health Estimation of Lithium-Ion Batteries in Electric Vehicles: A Systematic Review,” Energies, 2025.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Authors

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
