Residential energy consumption dynamics: A SHAP-based interpretation, k-means clustering, and predictive modelling

Oluwatobi Adeleke , Oluwapelumi Joseph Adebowale , Idowu Ayoade , Iretioluwa Olawuyi , Tien-Chien Jen

Green Energy and Resources ›› 2026, Vol. 4 ›› Issue (1) : 100169

PDF (3910KB)
Green Energy and Resources ›› 2026, Vol. 4 ›› Issue (1) :100169 DOI: 10.1016/j.gerr.2026.100169
Research Article
research-article
Residential energy consumption dynamics: A SHAP-based interpretation, k-means clustering, and predictive modelling
Author information +
History +
PDF (3910KB)

Abstract

A proper understanding of climatic consumption dynamics is critical for demand-side management, grid stability, and climate-sensitive residential energy planning. The non-linear interaction between meteorological conditions has necessitated intelligent predictive models. However, existing studies focused on machine learning (ML) models in their black-box nature, with limited interpretability of the impact of climatic-drivers, climatic-demand interactions, and hidden consumption regimes. This research fills this gap through an integrated framework that combines seasonal hypothesis-testing, k-means clustering, Shapley Additive exPlanations (SHAP)-based interpretability, and advanced predictive modeling using XGBoost, Random Forest (RF), long-short term memory (LSTM), Support Vector Machine (SVM), and Autoregressive Integrated moving average (ARIMA). The seasonal hypothesis-testing using ANOVA and Tukey's HSD revealed statistically significant differences in energy consumption across seasons, with peak-demand during winter and summer extremes. SHAP-based feature ranking identified temperature and humidity as the most influential drivers of electricity-demand. The k-means clustering revealed three distinct groups/clusters, which reflect the climatic-consumption scenarios. The ensemble learning (RF and XGBoost) exhibited the lowest training-error. RF had the best training performance with MSE, RMSE, and MAE values of 1.6484, 1.2839, and 0.8480. The data-driven insights in this study provide useful intelligence that supports critical decision-making through a proper understanding of the residential climatic-consumption dynamics.

Keywords

Ensemble learning / SHAP / Explainable AI (XAI) / Power consumption / K-means / Climate

Cite this article

Download citation ▾
Oluwatobi Adeleke, Oluwapelumi Joseph Adebowale, Idowu Ayoade, Iretioluwa Olawuyi, Tien-Chien Jen. Residential energy consumption dynamics: A SHAP-based interpretation, k-means clustering, and predictive modelling. Green Energy and Resources, 2026, 4 (1) : 100169 DOI:10.1016/j.gerr.2026.100169

登录浏览全文

4963

注册一个新账户 忘记密码

CRediT authorship contribution statement

Oluwatobi Adeleke: Writing – review & editing, Writing – original draft, Validation, Investigation, Formal analysis, Data curation, Conceptualization. Oluwapelumi Joseph Adebowale: Writing – original draft, Validation, Investigation, Conceptualization. Idowu Ayoade: Writing – original draft, Visualization, Validation, Investigation, Formal analysis, Conceptualization. Iretioluwa Olawuyi: Writing – original draft, Visualization, Validation, Methodology, Investigation, Data curation. Tien-Chien Jen: Writing – review & editing, Writing – original draft, Supervision, Software, Resources, Project administration, Methodology, Investigation, Funding acquisition, Conceptualization.

Declaration of competing interest

Tien-Chien Jen is an associate editor for Green Energy and Resources and was not involved in the editorial review of the decision to publish this article. Other authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

[1]

Adeleke, O., Akinlabi, S.A., Jen, T.C., Dunmade, I., 2022. Environmental impact assessment of the current, emerging, and alternative waste management systems using life cycle assessment tools: a case study of Johannesburg, South Africa. Environ. Sci. Pollut. Control Ser. 29 (5), 7366-7381. https://doi.org/10.1007/s11356-021-16198-y.

[2]

Adeleke, O., Akinlabi, S.A., Jen, T., Dunmade, I., Adeleke, O., Akinlabi, S.A., Jen, T., Akinlabi, S.A., Jen, T., 2021. Sustainable utilization of energy from waste: a review of potentials and challenges of Waste-to-energy in South Africa. https://doi.org/10.1080/15435075.2021.1914629.

[3]

Adeleke, O., Olatunji, K.O., Madyira, D.M., Jen, T.C., 2025. Application of multimodal machine learning-based analysis for the biomethane yields of NaOH-pretreated biomass. Sci. Rep. 15 (1), 24372. https://doi.org/10.1038/s41598-025-09527-5.

[4]

Ang, Y.Q., Berzolla, Z.M., Reinhart, C.F., 2020. From concept to application: a review of use cases in urban building energy modeling. Appl. Energy 279, 115738. https://doi.org/10.1016/j.apenergy.2020.115738.

[5]

Atalay, S.D., Calis, G., Kus, G., Kuru, M., 2019. Performance analyses of statistical approaches for modeling electricity consumption of a commercial building in France. Energy Build. 195, 82-92. https://doi.org/10.1016/j.enbuild.2019.04.035.

[6]

Auffhammer, M., Mansur, E.T., 2014. Measuring climatic impacts on energy consumption: a review of the empirical literature. Energy Econ. 46, 522-530. https://doi.org/10.1016/j.eneco.2014.04.017.

[7]

Baur, L., Ditschuneit, K., Schambach, M., Kaymakci, C., Wollmann, T., Sauer, A., 2024. Explainability and interpretability in electric load forecasting using machine learning techniques - a review. Energy AI 16, 100358. https://doi.org/10.1016/j.egyai.2024.100358.

[8]

Cárdenas-Rangel, J., Osma-Pinto, G., Jaramillo-Ibarra, J., 2023. Energy characterization of residential and office buildings in a tropical location. Heliyon 9 (5), e16048. https://doi.org/10.1016/j.heliyon.2023.e16048.

[9]

Chen, T., Guestrin, C., 2016. XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785-794. https://doi.org/10.1145/2939672.2939785.

[10]

Chen, Y., Gong, W., Obrecht, C., Kuznik, F., 2025. A review of machine learning techniques for building electrical energy consumption prediction. Energy AI 21, 100518. https://doi.org/10.1016/j.egyai.2025.100518.

[11]

Cortes, C., Vapnik, V., 1995. Support-vector networks. Mach. Learn. 20 (3), 273-297. https://doi.org/10.1007/BF00994018.

[12]

Cui, X., Lee, M., Koo, C., Hong, T., 2024. Energy consumption prediction and household feature analysis for different residential building types using machine learning and SHAP: toward energy-efficient buildings. Energy Build. 309, 113997. https://doi.org/10.1016/j.enbuild.2024.113997.

[13]

El-Azab, H.-A.I., Swief, R.A., El-Amary, N.H., Temraz, H.K., 2025. Seasonal forecasting of the hourly electricity demand applying machine and deep learning algorithms impact analysis of different factors. Sci. Rep. 15 (1), 9252. https://doi.org/10.1038/s41598-025-91878-0.

[14]

Huang, J., Iglesias, G., 2025. Socioeconomic and climatic impacts on long-term electricity demand: a high-resolution approach through machine learning. Energy 333, 137205. https://doi.org/10.1016/j.energy.2025.137205.

[15]

Iftikhar, H., Zywiołek, J., López-Gonzales, J.L., Albalawi, O., 2024. Electricity consumption forecasting using a novel homogeneous and heterogeneous ensemble learning. Front. Energy Res. 12. https://doi.org/10.3389/fenrg.2024.1442502.

[16]

Lotfi, H., Vafadoost, P., Rokhsati, H., Parsadust, H., 2025. An optimized machine learning approach for short-term electricity demand forecasting considering environmental and historical influencing factors. Discov. Appl. Sci. 7 (9), 1015. https://doi.org/10.1007/s42452-025-07681-z.

[17]

Masebinu, S.O., Holm-Nielsen, J.B., Mbohwa, C., Padmanaban, S., Nwulu, N., 2020. Electricity consumption data of a student residence in Southern Africa. Data Brief 32. https://doi.org/10.1016/j.dib.2020.106150.

[18]

Mienye, I.D., Swart, T.G., Obaido, G., 2024. Recurrent neural networks: a comprehensive review of architectures, variants, and applications. Information 15 (9). https://doi.org/10.3390/info15090517.

[19]

Mustaffa, Z., Sulaiman, M.H., 2025. Advanced forecasting of building energy loads with XGBoost and metaheuristic algorithms integration. Energy Storage. https://doi.org/10.1016/j.enss.2025.03.005.

[20]

Nebey, A.H., 2024. Recent advancement in demand side energy management system for optimal energy utilization. Energy Rep. 11, 5422-5435. https://doi.org/10.1016/j.egyr.2024.05.028.

[21]

Nepal, B., Yamaha, M., Yokoe, A., Yamaji, T., 2020. Electricity load forecasting using clustering and ARIMA model for energy management in buildings. Japan Archit. Rev. 3 (1), 62-76. https://doi.org/10.1002/2475-8876.12135.

[22]

Nikkhah, M.H., Samadi, M., Lotfi, H., Vafadoost, P., 2024. Agent-based machine learning assessment on real data for improvement of the daily load factor using demand response program. Sustain. Energy Grids Netw. 40, 101584. https://doi.org/10.1016/j.segan.2024.101584.

[23]

Oladipo, S., Sun, Y., Adeleke, O., 2023. An improved particle swarm optimization and adaptive neuro-Fuzzy inference system for predicting the energy consumption of university residence. Int. Tran. Elect. Energy Sys. 2023 (1), 8508800. https://doi.org/10.1155/2023/8508800.

[24]

Owusu, P.A., Asumadu-Sarkodie, S., 2016. A review of renewable energy sources, sustainability issues and climate change mitigation. Cogent Eng. 3 (1), 1167990. https://doi.org/10.1080/23311916.2016.1167990.

[25]

Pai, H.A., Mishra, K.K., R, M.T., Jeyan, J.V.M.L., Sayal, A., 2025. Enhanced household energy consumption forecasting using multivariate long short-term memory (LSTM) networks with weather data integration. Results Eng. 27, 106512. https://doi.org/10.1016/j.rineng.2025.106512.

[26]

Pierre, A.A., Akim, S.A., Semenyo, A.K., Babiga, B., 2023. Peak electrical energy consumption prediction by ARIMA, LSTM, GRU, ARIMA-LSTM and ARIMA-GRU approaches. Energies 16 (12). https://doi.org/10.3390/en16124739.

[27]

Pilloud, M.A., Maier, C., Scott, G.R., Hefner, J.T., 2018. Chapter 4 - advances in cranial macromorphoscopic trait and dental morphology analysis for ancestry estimation. In: Latham, K.E., Bartelink, E.J., Finnegan, M. (Eds.), New Perspectives in Forensic Human Skeletal Identification. Academic Press, pp. 23-34. https://doi.org/10.1016/B978-0-12-805429-1.00004-1.

[28]

Semekonawo, K.P., Kam, S., 2022. Linear regression and ARIMA models for electricity demand forecasting in West Africa. J. Energy Res. Rev. 26-36. https://doi.org/10.9734/jenrr/2022/v12i230296.

[29]

Shajalal, M., Boden, A., Stevens, G., 2024. ForecastExplainer: explainable household energy demand forecasting by approximating shapley values using DeepLIFT. Technol. Forecast. Soc. Change 206, 123588. https://doi.org/10.1016/j.techfore.2024.123588.

[30]

Shawe-Taylor, J., Sun, S., 2011. A review of optimization methodologies in support vector machines. Neurocomputing 74 (17), 3609-3618. https://doi.org/10.1016/j.neucom.2011.06.026.

[31]

Tarmanini, C., Sarma, N., Gezegin, C., Ozgonenel, O ., 2023. Short term load forecasting based on ARIMA and ANN approaches. Energy Rep. 9, 550-557. https://doi.org/10.1016/j.egyr.2023.01.060.

[32]

Tempel, F., Ihlen, E.A.F., Adde, L., Strümke, I., 2025. Explaining human activity recognition with SHAP: validating insights with perturbation and quantitative measures. Comput. Biol. Med. 188, 109838. https://doi.org/10.1016/j.compbiomed.2025.109838.

[33]

Ugbehe, P.O., Diemuodeke, O.E., Aikhuele, D.O., 2025. Electricity demand forecasting methodologies and applications: a review. Sustain. Energy Res. 12 (1), 19. https://doi.org/10.1186/s40807-025-00149-z.

[34]

Zaidi, A.R., Abbas, T., Daud, A., Alghushairy, O., Dawood, H., Sarwar, N., 2025. Enhancing android malware detection with XGBoost and convolutional neural networks. Comput. Mater. Continua (CMC) 84 (2), 3281-3304. https://doi.org/10.32604/cmc.2025.063646.

PDF (3910KB)

0

Accesses

0

Citation

Detail

Sections
Recommended

/