A machine learning–based optimal charging strategy for PV-assisted electric vehicle systems incorporating second-life batteries under degradation constraints
A Ezzat, Ayman Samy Abdel-Khalik, Ayman S. Abdel-Khalik, Ragi Ali Hamdy, Ragi A. Hamdy, Mostafa S. Hamad
Abstract
The rapid expansion of electric vehicles (EVs) and residential photovoltaic (PV) systems has created new challenges in battery charging management, particularly due to the variability of renewable energy, grid limitations, and battery aging effects. In this work, we present a machine learning-based Energy Management System (EMS) designed for PV-assisted smart charging of EVs and second-life batteries. The proposed system estimates the Optimal Charging Duration Class (OCDC) using an XGBoost model trained on real-time operating variables such as state of charge (SOC), battery temperature, available PV surplus, and degradation-related indicators. Rather than relying on conventional continuous power control, the proposed approach adopts discrete charging modes that dynamically adjust to operating conditions, aiming to improve both energy utilization and battery health. Degradation considerations are incorporated in a practical, control-oriented manner by avoiding operating regions associated with accelerated aging, instead of explicitly modeling electrochemical processes. The system is evaluated within a simulation framework that includes realistic PV generation profiles, load demand, and thermal behavior. Although hardware implementation is not yet included, it is identified as an important direction for future validation. The results show that the proposed EMS increases PV self-consumption by around 22% while reducing exposure to high-temperature operation, high state-of-charge conditions, and unnecessary cycling. These outcomes indicate a potential reduction in degradation risk, especially for second-life battery applications. Overall, the study demonstrates that integrating machine learning with real-time energy management can provide an efficient and health-aware solution for smart charging in residential and hybrid renewable energy systems.
Details
- Journal / source
- Scientific Reports
- Published
- 2026
- Type
- article
- Access
- Free to read
- Citations
- 0
- Licence
- cc-by
Research areas
Related EV research
Performance and cost of materials for lithium-based rechargeable automotive batteries
Review of Battery Charger Topologies, Charging Power Levels, and Infrastructure for Plug-In Electric and Hybrid Vehicles
This paper reviews the current status and implementation of battery chargers, charging power levels, and infrastructure for plug-in electric vehicles and hybrids. Charger systems are categorized into off-board…
Batteries and fuel cells for emerging electric vehicle markets
Electrical energy storage for transportation—approaching the limits of, and going beyond, lithium-ion batteries
The escalating and unpredictable cost of oil, the concentration of major oil resources in the hands of a few politically sensitive nations, and the long-term impact of CO2 emissions on global climate…