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

Title:
Optimizing electric vehicle energy consumption prediction through machine learning and ensemble approaches.
Authors:
Hussain I; Departement of Electrical Engineering, Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Parit Raja, Batu Pahat, Johar, 86400, Malaysia.; Department of Electronics Engineering Benazir Bhutto Shaheed, University of Technology and Skill Development, Khairpure mirs, 66020, Pakistan., Ching KB; Departement of Electrical Engineering, Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Parit Raja, Batu Pahat, Johar, 86400, Malaysia. bckok@uthm.edu.my., Uttraphan C; Department of Computer Engineering, Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Parit Raja, Batu Pahat, Johar, 86400, Malaysia., Tay KG; Faculty of Electrical and Electronic Engineering, Universiti Tun Hussein Onn Malaysia, Parit Raja, Batu Pahat, Johar, 86400, Malaysia., Noor A; Department of Information Technology, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah, Saudi Arabia., Memon SA; Department of Defense Systems Engineering, Sejong University, 209 Neungdong-ro, Gwangjin-Gu, 05006, Seoul, Republic of Korea. sufyanahmedali@sejong.ac.kr.
Source:
Scientific reports [Sci Rep] 2025 Aug 08; Vol. 15 (1), pp. 29065. Date of Electronic Publication: 2025 Aug 08.
Publication Type:
Journal Article
Language:
English
Journal Info:
Publisher: Nature Publishing Group Country of Publication: England NLM ID: 101563288 Publication Model: Electronic Cited Medium: Internet ISSN: 2045-2322 (Electronic) Linking ISSN: 20452322 NLM ISO Abbreviation: Sci Rep Subsets: PubMed not MEDLINE; MEDLINE
Imprint Name(s):
Original Publication: London : Nature Publishing Group, copyright 2011-
Comments:
Erratum in: Sci Rep. 2025 Oct 28;15(1):37536. doi: 10.1038/s41598-025-24611-6.. (PMID: 41152512)
References:
Sci Rep. 2024 Mar 18;14(1):6497. (PMID: 38499576)
Sci Rep. 2025 May 8;15(1):16124. (PMID: 40341692)
Sci Rep. 2025 May 13;15(1):16612. (PMID: 40360691)
Grant Information:
IPP-668-611-2025 Deanship of Scientific Research (DSR) at King Abdulaziz University
Contributed Indexing:
Keywords: Electric vehicles; Energy consumption prediction; Ensemble hybrid models; Hyperparameter tuning; KNN
Entry Date(s):
Date Created: 20250808 Latest Revision: 20251031
Update Code:
20251031
PubMed Central ID:
PMC12334666
DOI:
10.1038/s41598-025-14129-2
PMID:
40781262
Database:
MEDLINE

Weitere Informationen

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.
(© 2025. The Author(s).)

Declarations. Competing interests: The authors declare no competing interests. Consent for publication: The authors have full consent for publication. Software and packages used: The SciPy package in Python is used for statistical techniques, including hypothesis testing, probability distributions, and correlation analysis. Additionally, statistical modelling, data analysis, and manipulation, as well as handling dates and times, are accomplished using the statsmodels, NumPy, and pandas packages, along with the DateTime package in Python. This comprehensive data preprocessing and model implementation is conducted using VS Code software.