Analysis and Predictive Modelling of EV Charging Patterns and User Behaviour

Main Article Content

Yi Xuan Law
Kah Ong Michael Goh
Check Yee Law
Connie Tee
Yong Wee Sek
S M Hasan Mahmud

Abstract

As more Electric Vehicles (EVs) are released, the ability to predict energy consumption and charging duration becomes crucial in building optimal infrastructure and a proper system of managing energy. This paper proposes a machine learning model that predicts these two important parameters using a real-world dataset. The dataset consists of 1320 EV charging sessions made between January and February 2024 on Kaggle. The data set includes vehicle specifications, time stamps of sessions, environmental conditions, and user behaviour. Feature engineering tasks followed a thorough preprocessing procedure where missing values were imputed, outliers were removed, and the type of data was converted, and included time-based transformations, interaction terms, station popularity measures. Three regression models were developed: Light Gradient Boosting Machine (LGBM), Random Forest (RF), and Support Vector Regression (SVR) to evaluate different modelling approaches and test the predictive efficacy of ensemble against kernel-based methods. These models were trained and tuned using GridSearchCV combined with TimeSeriesSplit cross-validation to maintain temporal integrity. Evaluation metrics included Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and R-squared (R²). Results showed that RF achieved the highest accuracy in predicting energy consumption with an R² of 0.6620, while LGBM performed best in predicting charging duration with an R² of 0.9152. Final testing on unseen data validated the generalization capabilities of these models. The findings support practical infrastructure recommendations and demonstrate the potential of machine learning in enhancing EV charging operations.

Article Details

How to Cite
Law, Y. X., Michael Goh, K. O., Law, C. Y., Tee, C., Sek, Y. W., & Mahmud, S. M. H. (2026). Analysis and Predictive Modelling of EV Charging Patterns and User Behaviour. Journal of Informatics and Web Engineering, 5(2), 93–109. https://doi.org/10.33093/jiwe.2026.5.2.6
Section
Regular issue

References

International Energy Agency (IEA), “Global EV outlook 2024,” IEA, Paris, 2024. [Online]. Available: https://www.iea.org/reports/global-ev-outlook-2024. [Accessed: Jun 12, 2025]

M. Bassey, “Adoption of Electric Vehicles (EVs) as a sustainable transportation solution: Reshaping the trends in conventional automobile applications Aniekan Essienubong Ikpe Akwa Ibom State Polytechnic,” IEA, Paris, 2024. [Online]. Available: www.iksadyayinevi.com.

International Energy Agency (IEA), “Global EV outlook 2024 moving towards increased affordability,” IEA, Paris, 2024. [Online]. Available: www.iea.org.

International Energy Agency (IEA), “Global EV outlook 2023: Catching up with climate ambitions,” IEA, Paris, 2023. [Online]. Available: www.iea.org.

S. S. G. Acharige, M. E. Haque, M. T. Arif, N. Hosseinzadeh, K. N. Hasan, and A. M. T. Oo, “Review of electric vehicle charging technologies, standards, architectures, and converter configurations,” IEEE Access, vol. 11, pp. 41218–41255, 2023, doi: 10.1109/ACCESS.2023.3267164.

A. Alsabbagh, and C. Ma, “Distributed charging management of electric vehicles considering different customer behaviors,” IEEE Transactions on Industrial Informatics, vol. 16, no. 8, pp. 5119–5127, Aug. 2020, doi: 10.1109/TII.2019.2952254.

A. Almaghrebi, K. James, F. Al Juheshi, and M. Alahmad, “Insights into household electric vehicle charging behavior: Analysis and predictive modeling,” Energies, vol. 17, no. 4, pp. 925, Feb. 2024, doi: 10.3390/en17040925.

J. Jayaram, J. Chetan, and B. Nayak, “Electric vehicle health monitoring with electric vehicle range prediction and route planning,” Journal of Informatics and Web Engineering, vol. 3, no. 1, pp. 265–276, Feb. 2024, doi: 10.33093/jiwe.2024.3.1.18.

N. Wang, Y. Lyu, H. Tian, and Y. Guo, “Research on charging patterns of electric taxis based on high-dimensional cluster analysis: A case study of Hangzhou, China,” Transportation, 2025, doi: 10.1007/s11116-024-10574-6.

Y. Xiong, B. Wang, C.-C. Chu, and R. Gadh, “Electric vehicle driver clustering using statistical model and machine learning,” in 2018 IEEE Power & Energy Society General Meeting (PESGM), pp. 1–5, 2019, doi: 10.1109/PESGM.2018.8586132.

S. Shahriar, A. R. Al-Ali, A. H. Osman, S. Dhou, and M. Nijim, “Prediction of EV charging behavior using machine learning,” IEEE Access, vol. 9, pp. 111576–111586, 2021, doi: 10.1109/ACCESS.2021.3103119.

Y. Wang et al., “The analysis of electrical vehicles charging behavior based on charging big data,” 2019 IEEE 4th International Conference on Cloud Computing and Big Data Analytics, ICCCBDA 2019, pp. 63–67, Apr. 2019, doi: 10.1109/ICCCBDA.2019.8725776.

J. Yusuf, S. Ula, and A. S. M. J. Hasan, “Analyses and applications of plug-in electric vehicle charging stations’ user behavior in a large university campus community,” Proceedings - 2020 International Conference on Smart Grids and Energy Systems, SGES 2020, pp. 928–933, Nov. 2020, doi: 10.1109/SGES51519.2020.00170.

X. Li, Y. Sun, M. Shi, and Y. Jia, “Multi-stage charging recommendation of charging station considering user’s charging behavior,” 2023 5th Asia Energy and Electrical Engineering Symposium, AEEES 2023, pp. 1247–1251, 2023, doi: 10.1109/AEEES56888.2023.10114356.

A. Almaghrebi, S. Shom, F. Al Juheshi, K. James, and M. Alahmad, “Analysis of user charging behavior at public charging stations,” ITEC 2019 - 2019 IEEE Transportation Electrification Conference and Expo, Jun. 2019, doi: 10.1109/ITEC.2019.8790534.

C. Chen, Y. Song, X. Hu, & I. Guardiola, “Analysis of electric vehicle charging behavior patterns with function principal component analysis approach”, Journal of Advanced Transportation, vol. 2020, pp. 1-12, 2020, doi: 10.1155/2020/8850654.

A. Skuza and R. Jurecki, “Analysis of factors affecting the energy consumption of an EV vehicle - A literature study”, Iop Conference Series Materials Science and Engineering, vol. 1247, no. 1, pp. 012001, 2022, doi: 10.1088/1757-899x/1247/1/012001.

W. Yao, Z. Yu, and S. Gao, “Research on data-driven cluster analysis of electric vehicle charging sessions,” 2023 IEEE Sustainable Power and Energy Conference, iSPEC 2023, 2023, doi: 10.1109/ISPEC58282.2023.10402864.

S. Singh, B. Vaidya, & H. Mouftah, “Smart EV charging strategies based on charging behavior”, Frontiers in Energy Research, vol. 10, 2022, doi: 10.3389/fenrg.2022.773440.

D. Yan, C. Y. Luo, Y. Li, B. Zhu, M. L. Yan, and S. L. Yao, “Charging behavior analysis based on BIRCH clustering,” 2022 12th International Conference on Power and Energy Systems, ICPES 2022, pp. 450–454, 2022, doi: 10.1109/ICPES56491.2022.10072610.

J. H. Lee, D. Chakraborty, S. J. Hardman, and G. Tal, “Exploring electric vehicle charging patterns: Mixed usage of charging infrastructure,” Transportation Research Part D Transport and Environment, vol. 79, pp. 102249, Feb. 2020, doi: 10.1016/J.TRD.2020.102249.

M. van der Kam, W. van Sark, and F. Alkemade, “Multiple roads ahead: How charging behavior can guide charging infrastructure roll-out policy,” Transportation Research Part D Transport and Environment, vol. 85, pp. 102452, Aug. 2020, doi: 10.1016/J.TRD.2020.102452.

A. Alsarhan, A. Alnatsheh, M. Aljaidi, T. Al Makkawi, M. Aljamal, and T. Alsarhan, “Optimizing electric vehicle charging infrastructure through machine learning: A study of charging patterns and energy consumption,” International Journal of Interactive Mobile Technologies , vol. 18, no. 21, pp. 149–170, Nov. 2024, doi: 10.3991/ijim.v18i21.50843.

J. Zhang, Z. Wang, P. Liu, and Z. Zhang, “Energy consumption analysis and prediction of electric vehicles based on real-world driving data,” Applied Energy, vol. 275, Oct. 2020, doi: 10.1016/j.apenergy.2020.115408.

S. Shahriar, A. R. Al-Ali, A. H. Osman, S. Dhou, and M. Nijim, “Machine learning approaches for EV charging behavior: A review,” IEEE Access, vol. 8, pp. 168980–168993, 2020, doi: 10.1109/ACCESS.2020.3023388.

T. Etem, “Machine learning approaches for predicting electric vehicle charging demand and energy consumption,” 8th International Artificial Intelligence and Data Processing Symposium, IDAP 2024, pp. 1-7, 2024, doi: 10.1109/IDAP64064.2024.10710701.

Q. Zhu, Y. Huang, C. F. Lee, P. Liu, J. Zhang, and T. Wik, “Predicting electric vehicle energy consumption from field data using machine learning,” IEEE Transactions on Transportation Electrification, vol. 11, no. 1, p. 2120-2132, 2024, doi: 10.1109/TTE.2024.3416532.

H. Mediouni, A. Ezzouhri, Z. Charouh, K. El Harouri, S. El Hani, and M. Ghogho, “Energy consumption prediction and analysis for electric vehicles: A hybrid approach,” Energies, vol. 15, no. 17, pp. 6490, Sep. 2022, doi: 10.3390/en15176490.

D. A. Renata et al., “Modeling of electric vehicle charging energy consumption using machine learning,” 2021 International Conference on Advanced Computer Science and Information Systems, ICACSIS 2021, pp. 1-6, 2021, doi: 10.1109/ICACSIS53237.2021.9631324.

H. Rathore, H. K. Meena, and P. Jain, “Prediction of EV energy consumption using random forest and XGBoost,” in Proceedings - 2nd International Conference on Power Electronics and Energy, ICPEE 2023, Institute of Electrical and Electronics Engineers Inc., pp. 1-6, 2023, doi: 10.1109/ICPEE54198.2023.10060798.

Z. M. Sarkin Adar, A. Alhayd, and G. Todeschini, “Predicting EV charging duration using machine learning and charging transactions at three sites,” in Proceedings of the IEEE International Conference on Industrial Technology, Institute of Electrical and Electronics Engineers Inc., pp. 1-6, 2024. doi: 10.1109/ICIT58233.2024.10540858.

I. Ullah, K. Liu, T. Yamamoto, M. Zahid, and A. Jamal, “Prediction of electric vehicle charging duration time using ensemble machine learning algorithm and Shapley Additive Explanations,” International Journal of Energy Research, vol. 46, no. 11, pp. 15211–15230, Sep. 2022, doi: 10.1002/er.8219.

I. Ullah, K. Liu, T. Yamamoto, M. Shafiullah, and A. Jamal, “Grey Wolf Optimizer-Based machine learning algorithm to predict electric vehicle charging duration time,” Transportation Letters, vol. 15, no. 8, pp. 889–906, 2023, doi: 10.1080/19427867.2022.2111902.

X. Hu, and B. Sikdar, “Energy consumption prediction of electrical vehicles through transformation of time series data,” 2023 IEEE 3rd International Conference on Sustainable Energy and Future Electric Transportation, SeFet 2023, pp. 1-7, 2023, doi: 10.1109/SEFET57834.2023.10245102.

A. A. Visaria, A. F. Jensen, M. Thorhauge, and S. E. Mabit, “User preferences for EV charging, pricing schemes, and charging infrastructure,” Transportation Research Part a Policy and Practice, vol. 165, pp. 120–143, Nov. 2022, doi: 10.1016/J.TRA.2022.08.013.

F. Lo Franco, V. Cirimele, M. Ricco, V. Monteiro, J. L. Afonso, and G. Grandi, “Smart charging for electric car-sharing fleets based on charging duration forecasting and planning,” Sustainability, vol. 14, no. 19, pp. 12077, Oct. 2022, doi: 10.3390/su141912077.

V. Khorasani, “Electric vehicle charging patterns,” Kaggle, 2025. [Online]. Available: https://www.kaggle.com/datasets/valakhorasani/electric-vehicle-charging-patterns/data. [Accessed: Jun. 11, 2025].

A. Bansal, K. Balaji, and Z. Lalani, “Temporal encoding strategies for energy time series prediction,” preprint arXiv:2503.15456, Mar. 2025, doi: 10.48550/arXiv.2503.15456. [Online]. Available: https://arxiv.org/pdf/2503.15456.

B. K. S. Bondili, S. P. Bolagani, and R. Thatikonda, “Comparative analysis of ml algorithms for forecasting time series stock returns,” 4th International Conference on Sentiment Analysis and Deep Learning, ICSADL 2025 - Proceedings, pp. 727–732, 2025, doi: 10.1109/ICSADL65848.2025.10933249.

G. N. Ahmad, H. Fatima, Shafiullah, A. Salah Saidi, and Imdadullah, “Efficient medical diagnosis of human heart diseases using machine learning techniques with and without GridSearchCV,” IEEE Access, vol. 10, pp. 80151–80173, 2022, doi: 10.1109/ACCESS.2022.3165792.

City of Boulder, “Electric vehicle charging station data,” City of Boulder Open Data. [Online]. Available: https://open-data.bouldercolorado.gov/datasets/95992b3938be4622b07f0b05eba95d4c/explore. [Accessed: Jun. 11, 2025].

K. C. Akshay, G. H. Grace, K. Gunasekaran, and R. Samikannu, “Power consumption prediction for electric vehicle charging stations and forecasting income,” Scientific Reports, vol. 14, no. 1, pp. 6497, 2024, doi: 10.1038/s41598-024-56507-2.

M. Muller and M. Salathe, “Addressing machine learning concept drift reveals declining vaccine sentiment during the COVID-19 pandemic,” preprint, arXiv:2012.02197, Dec. 2020, doi: 10.48550iv.2012.02197.