Downloads · 30 days
0
kevinkyi/EV_Battery_Consumption_XGBoost
EV_Battery_Consumption_XGBoost is a machine learning model from kevinkyi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for xgboost. The card lists the license as mit.
EcoRoute is a physics-based machine learning model designed to predict the Instantaneous Energy Consumption (kW) of any electric vehicle based on dynamic environmental conditions.
Downloads · 30 days
0
Access
Public
Updated Dec 6, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json5.5 MB · 100%
From the Hugging Face model README
EcoRoute is a physics-based machine learning model designed to predict the Instantaneous Energy Consumption (kW) of any electric vehicle based on dynamic environmental conditions.
Unlike traditional range estimators that rely on simple averages, this model uses XGBoost to learn the non-linear physics of driving—specifically how Gravity (Slope), Aerodynamics (Speed), and Thermodynamics (Temperature) impact battery drain in real-time.
This model is the backend brain for the EcoRoute Optimizer Application. It is designed to:
The model was trained on the Extended Vehicle Energy Dataset (eVED), a rigorous enhancement of the IEEE-standard VED dataset.
The model was evaluated on a held-out test set (20% split) of real-world driving logs.
| Metric | Score | Interpretation |
|---|---|---|
| R² Score | 0.731 | Explains 73.1% of the variance in instantaneous energy usage (High for raw sensor data). |
| MAE | 4.71 kW | On average, predictions are within ~4.7 kW of the actual sensor reading. |
Note: While 0.73 is the per-second accuracy, the aggregate accuracy over a full trip (summing thousands of seconds) typically exceeds 90% due to error cancellation.
To use this model, your input dataframe must contain these exact columns in this order:
Speed_Smooth (km/h): Rolling average speed (removes GPS jitter).Road_Slope_pct (%): The gradient of the road (positive = uphill, negative = downhill).Ambient_Temp_C (°C): Outside air temperature.Weight_kg (kg): Curb weight of the vehicle + passengers.Acceleration_m_s2 (m/s²): Change in speed over time.