Optimizing electric vehicle energy consumption prediction through machine learning and ensemble approaches

Accurately predicting energy consumption in electric vehicles (EVs) is essential for enhancing energy efficiency and improving infrastructure planning. However, this task remains challenging due to the complex interplay of driving conditions, vehicle specifications, and environmental factors. This study proposes a novel data-driven approach that utilizes machine learning (ML) techniques, supported by an extensive real-world dataset derived from Colorado. The research aims to extract meaningful insights from the data using advanced analytical methodologies. This research makes three key advances: (1) systematic comparison of four hyperparameter optimization methods (GridSearchCV, RandomizedSearchCV, Optuna, PSO) for KNN regression, (2) development of a stacking hybrid ensemble combining KNN with tree-based models, and (3) comprehensive validation on real-world data with novel temporal feature engineering. The K-Nearest Neighbors (KNN) algorithm is employed as the base model, with hyperparameter optimization performed using GridSearchCV, RandomizedSearchCV, Optuna, and Particle Swarm Optimization (PSO). Additionally, a stacking hybrid ensemble model is developed to combine the strengths of multiple base models. The results show that the stacking hybrid ensemble model achieves the best performance, with the lowest prediction errors (MAE = 0.645880, RMSE = 1.788540) and the highest accuracy score R² (0.960078). Among the optimization techniques, Optuna proves to be the most effective for tuning the KNN model. This study emphasizes the capabilities of ensemble learning and advanced optimization methods in enhancing the prediction of energy consumption. These results demonstrate that temporal feature extraction and optimized ensemble modeling significantly enhance prediction accuracy, providing EV manufacturers and policymakers with deployable tools for sustainable energy management.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-08-08
DOI
https://doi.org/10.1038/s41598-025-14129-2
Citations
8
Primary Topic
Vehicle emissions and performance
Type
article
Field-Weighted Citation Impact
5.46

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing electric vehicle energy consumption prediction through machine learning and ensemble approaches

Kim Gaik Tay, Kok Boon Ching, Adeeb Noor, Sufyan Ali Memon et al.
8 citations
Scientific Reports
Vehicle emissions and performance
5.46
article

Optimizing electric vehicle energy consumption prediction through machine learning and ensemble approaches

Kim Gaik Tay, Kok Boon Ching, Adeeb Noor, Sufyan Ali Memon, Chessda Uttraphan, Izhar Hussain
article en
8 citations

Abstract

Accurately predicting energy consumption in electric vehicles (EVs) is essential for enhancing energy efficiency and improving infrastructure planning. However, this task remains challenging due to the complex interplay of driving conditions, vehicle specifications, and environmental factors. This study proposes a novel data-driven approach that utilizes machine learning (ML) techniques, supported by an extensive real-world dataset derived from Colorado. The research aims to extract meaningful insights from the data using advanced analytical methodologies. This research makes three key advances: (1) systematic comparison of four hyperparameter optimization methods (GridSearchCV, RandomizedSearchCV, Optuna, PSO) for KNN regression, (2) development of a stacking hybrid ensemble combining KNN with tree-based models, and (3) comprehensive validation on real-world data with novel temporal feature engineering. The K-Nearest Neighbors (KNN) algorithm is employed as the base model, with hyperparameter optimization performed using GridSearchCV, RandomizedSearchCV, Optuna, and Particle Swarm Optimization (PSO). Additionally, a stacking hybrid ensemble model is developed to combine the strengths of multiple base models. The results show that the stacking hybrid ensemble model achieves the best performance, with the lowest prediction errors (MAE = 0.645880, RMSE = 1.788540) and the highest accuracy score R² (0.960078). Among the optimization techniques, Optuna proves to be the most effective for tuning the KNN model. This study emphasizes the capabilities of ensemble learning and advanced optimization methods in enhancing the prediction of energy consumption. These results demonstrate that temporal feature extraction and optimized ensemble modeling significantly enhance prediction accuracy, providing EV manufacturers and policymakers with deployable tools for sustainable energy management.

Scientific ReportsVol. 15(1)
Shaheed Benazir Bhutto University (PK), King Abdulaziz University (SA), Sejong University (KR), Tun Hussein Onn University of Malaysia (MY)
Universiti Tun Hussein Onn Malaysia, King Abdulaziz University
Industry, innovation and infrastructure
Openalex Percentile: Top 4%
Vehicle emissions and performance
5.46
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.