Optimizing electric vehicle energy consumption prediction through machine learning and ensemble approaches
Izhar Hussain1,2, Kok Boon Ching3, Chessda Uttraphan4
1Departement of Electrical Engineering, Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Parit Raja, Batu Pahat, Johar, 86400, Malaysia.
Scientific Reports
|August 8, 2025
Summary
Predicting electric vehicle energy consumption is crucial. A novel machine learning approach using ensemble models and temporal features significantly improves prediction accuracy for sustainable energy management.
Area of Science:
- Energy Systems
- Machine Learning
- Transportation Engineering
Background:
- Accurate electric vehicle (EV) energy consumption prediction is vital for efficiency and infrastructure planning.
- Challenges exist due to complex interactions between driving conditions, vehicle specs, and environment.
- Real-world data analysis is key to understanding and optimizing EV energy usage.
Purpose of the Study:
- To develop and validate a data-driven machine learning approach for predicting EV energy consumption.
- To systematically compare hyperparameter optimization methods for K-Nearest Neighbors (KNN) regression.
- To create and evaluate a stacking hybrid ensemble model for enhanced prediction accuracy.
Main Methods:
- Utilized an extensive real-world dataset from Colorado for analysis.
- Employed K-Nearest Neighbors (KNN) as a base model with hyperparameter optimization via GridSearchCV, RandomizedSearchCV, Optuna, and Particle Swarm Optimization (PSO).
- Developed a stacking hybrid ensemble model combining KNN with tree-based models and incorporated novel temporal feature engineering.
Main Results:
- The stacking hybrid ensemble model demonstrated superior performance, achieving the lowest prediction errors (MAE = 0.645880, RMSE = 1.788540) and highest accuracy (R² = 0.960078).
- Optuna was identified as the most effective hyperparameter optimization technique for the KNN model.
- Temporal feature extraction and optimized ensemble modeling significantly boosted prediction accuracy.
Conclusions:
- Ensemble learning and advanced optimization methods are highly effective for improving EV energy consumption prediction.
- The developed model offers a deployable tool for EV manufacturers and policymakers in sustainable energy management.
- Optimized ensemble modeling with temporal features provides a robust solution for accurate EV energy usage forecasting.
Related Concept Videos
Mechanical Efficiency of Real Machines
856
The mechanical efficiency of a machine is a fundamental concept that describes how effectively a machine can convert input work into output work. According to this concept, the efficiency of a machine is equal to the ratio of the output work to the input work. An ideal machine, meaning a machine that has no energy losses, has an efficiency of one. This implies that the input work and the output work are equal.
However, in reality, no machine can be truly ideal, and all of them experience some...
However, in reality, no machine can be truly ideal, and all of them experience some...
856
Batteries and Fuel Cells
28.0K
A battery is a galvanic cell that is used as a source of electrical power for specific applications. Modern batteries exist in a multitude of forms to accommodate various applications, from tiny button batteries such as those that power wristwatches to the very large batteries used to supply backup energy to municipal power grids. Some batteries are designed for single-use applications and cannot be recharged (primary cells), while others are based on conveniently reversible cell reactions that...
28.0K
Electrical Energy
1.3K
Using electric appliances for a longer period of time consumes more electrical energy and results in a higher electric bill. The energy produced by the transfer of electrons from one point to another is known as electrical energy. If power is delivered at a constant rate, the electrical energy can be defined as the product of power used by the device for a period of time. The energy unit on electric bills is the kilowatt-hour, where one kilowatt-hour is equivalent to 3.6 × 106 joules.
1.3K
Energy Conservation and Bernoulli's Equation
9.4K
Applying the conservation of energy principle or the work-energy theorem to an incompressible, inviscid fluid in laminar, steady, irrotational flow leads to Bernoulli's equation. It states that the sum of the fluid pressure, potential, and kinetic energy per unit volume is constant along a streamline.
All the terms in the equation have the dimension of energy per unit volume. The kinetic energy per unit volume is called the kinetic energy density, and the potential energy per unit volume is...
All the terms in the equation have the dimension of energy per unit volume. The kinetic energy per unit volume is called the kinetic energy density, and the potential energy per unit volume is...
9.4K
Energy and Power Signals
583
In an electrical system with a resistor, voltage and current signals facilitate the measurement of power and energy across the resistor. For a continuous-time signal, the total energy over a time interval is defined as the integral of the square of the signal's magnitude over that interval. Mathematically, this is expressed as:
583
Prediction Intervals
2.3K
The interval estimate of any variable is known as the prediction interval. It helps decide if a point estimate is dependable.
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
2.3K

