This research aims to develop an XGBoost-based predictive model for accurately forecasting hourly electricity consumption in diverse household scenarios. By leveraging household-specific details and time-specific data from the IDEAL dataset, which encompasses over 200 UK households, the study delves into precise electricity usage forecasting. Data pre-processing is employed to ensure data reliability and reduce the computational costs, while XGBoost's robust learning capability renders it particularly suitable for time series forecasting. Two training techniques, grid search and cross validation were introduced to find the most proper parameters, which assured the quality of the model. From the results, it is evident that the demand for electricity is primarily determined by temporal factors (hour, days, month, quarter, year, weekday) and marginally related to household features (number of residents, build era, income, install type). The developed model effectively captures the fundamental patterns of electricity demand, prompting both consumers and producers to embrace energy-efficient measures, paving the way for a more sustainable future. Meanwhile, energy experts could refer to the model with actual values to formulate an energy generating strategy based on the number of population and household for a specific location. This prediction can provide a dispatching basis for various smart grids.
Ahmad, A. S. et al. (2014). A review on applications of ANN and SVM for building electrical energy consumption forecasting. Renewable and Sustainable Energy Reviews, 33, pp.102–109. doi:10.1016/j.rser.2014.01.069.
Al-Ghandoor, A. et al. (2008). Electricity consumption and associated GHG emissions of the Jordanian industrial sector: Empirical analysis and future projection. Energy Policy, 36(1), pp.258–267. Available at: https://ideas.repec.org/a/eee/enepol/v36y2008i1p258-267.html (Accessed: October 5, 2023).
Alquthami, T. et al. (2022). A performance comparison of machine learning algorithms for load forecasting in smart grid. IEEE access: practical innovations, open solutions, 10, pp.48419–48433. doi:10.1109/access.2022.3171270.
Bates, S., Hastie, T. and Tibshirani, R. (2023). Cross-validation: What does it estimate and how well does it do it?. Journal of the American Statistical Association, pp.1–12. doi:10.1080/01621459.2023.2197686.
Bianco, V., Manca, O. and Nardini, S. (2009). Electricity consumption forecasting in Italy using linear regression models. Energy (Oxford, England), 34(9), pp.1413–1421. doi:10.1016/j.energy.2009.06.034.
BloombergNEF (2021). New Energy Outlook 2021 | Bloomberg NEF. [online] Bloomberg NEF. Available at: https://about.bnef.com/new-energy-outlook/.
Chen, H. et al. (2023). Maybe only 0.5% data is needed: A preliminary exploration of Low Training Data Instruction Tuning. arXiv [cs.AI]. Available at: http://arxiv.org/abs/2305.09246.
Chen, T. and Guestrin, C. (2016). XGBoost: A Scalable Tree Boosting System. in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York, NY, USA: ACM.
Parmesan, C., Morecroft, M. D., & Trisurat, Y. Climate Change 2022: Impacts, Adaptation and Vulnerability. [Research Report] GIEC. 2022. ffhal-03774939f.
Fallah, S. et al. (2018). Computational intelligence approaches for energy load forecasting in smart energy management grids: State of the art, future challenges, and research directions. Energies, 11(3), p.596. doi:10.3390/en11030596.
Fatema, I., Kong, X. and Fang, G. (2021). Electricity demand and price forecasting model for sustainable smart grid using comprehensive long short term memory. International journal of sustainable engineering, 14(6), pp.1714–1732. doi:10.1080/19397038.2021.1951882.
Fu, W., Nair, V. and Menzies, T. (2016). Why is differential evolution better than grid search for tuning defect predictors?. arXiv [cs.SE]. Available at: http://arxiv.org/abs/1609.02613.
Guo, Z., O’Hanley, J. R. and Gibson, S. (2022). Predicting residential electricity consumption patterns based on smart meter and household data: A case study from the Republic of Ireland. Utilities policy, 79(101446), p.101446. doi:10.1016/j.jup.2022.101446.
Hussain, T. et al. (2021). Smart and intelligent energy monitoring systems: A comprehensive literature survey and future research guidelines. International journal of energy research, 45(3), pp.3590–3614. doi:10.1002/er.6093.
IEA (2022). Global Energy Review: CO2 Emissions in 2021. IEA, Paris https://www.iea.org/reports/global-energy-review-co2-emissions-in-2021-2, License: CC BY 4.0
Jain, R. K. et al. (2014). Forecasting energy consumption of multi-family residential buildings using support vector regression: Investigating the impact of temporal and spatial monitoring granularity on performance accuracy. Applied energy, 123, pp.168–178. doi:10.1016/j.apenergy.2014.02.057.
Kavzoglu, T. and Teke, A. (2022). Predictive performances of ensemble machine learning algorithms in landslide susceptibility mapping using random forest, extreme gradient boosting (XGBoost) and natural gradient boosting (NGBoost). Arabian journal for science and engineering, 47(6), pp.7367–7385. doi:10.1007/s13369-022-06560-8.
Kim, J.-Y. and Cho, S.-B. (2019). Electric energy consumption prediction by deep learning with state explainable autoencoder. Energies, 12(4), p.739. doi:10.3390/en12040739.
Leung, C. K. et al. (2021). A visual data science solution for visualization and visual analytics of big sequential data. in 2021 25th International Conference Information Visualisation (IV). IEEE.
Liashchynskyi, Petro and Liashchynskyi, Pavlo (2019). Grid Search, Random Search, Genetic Algorithm: A big comparison for NAS. arXiv [cs.LG]. Available at: http://arxiv.org/abs/1912.06059.
Merola, G. M. (2023). Blocked cross–validation: A precise and efficient method for hyperparameter tuning. Research Square. doi:10.21203/rs.3.rs-3221138/v1.
Nguyen, V.-B., Duong, M.-T. and Le, M.-H. (2020). Electricity demand forecasting for smart grid based on deep learning approach. in 2020 5th International Conference on Green Technology and Sustainable Development (GTSD). IEEE.
Poštuvan, T. et al. (2022). AdaGrid: Adaptive Grid Search for link prediction training objective. arXiv [cs.LG]. Available at: http://arxiv.org/abs/2203.16162.
Pullinger, M. et al. (2021). The IDEAL household energy dataset, electricity, gas, contextual sensor data and survey data for 255 UK homes. Scientific data, 8(1), p.146. doi:10.1038/s41597-021-00921-y.
Rakesh, K. and Rakesh, R. (2022). Electricity load forecasting in smart grid using web based geographic information systems (web GIS). i-manager’s Journal on Future Engineering and Technology, 17(4), p.25. doi:10.26634/jfet.17.4.18971.
Stanelyte, D., Radziukyniene, N. and Radziukynas, V. (2022). Overview of demand-response services: A review. Energies, 15(5), p.1659. doi:10.3390/en15051659.
Suganthi, L. and Samuel, A. A. (2012). Energy models for demand forecasting—A review. Renewable and Sustainable Energy Reviews, 16(2), pp.1223–1240. doi:10.1016/j.rser.2011.08.014.
Ullah, F. U. M. et al. (2020). Short-term prediction of residential power energy consumption via CNN and multi-layer bi-directional LSTM networks. IEEE access: practical innovations, open solutions, 8, pp.123369–123380. doi:10.1109/access.2019.2963045.
Wang, Y. P. et al. (2012). Using relational analysis and multi-variable grey model for electricity demand forecasting in smart grid environment. Power System Protection and Control, 40(1), pp.96–100.
Wen, L. et al. (2019). Optimal load dispatch of community microgrid with deep learning based solar power and load forecasting. Energy (Oxford, England), 171, pp.1053–1065. doi:10.1016/j.energy.2019.01.075.
Wilson, A., Kasy, M. and Mackey, L. (2020). Approximate cross-validation: Guarantees for model assessment and selection. arXiv [stat.ML]. Available at: http://arxiv.org/abs/2003.00617.
Yang, Y. et al. (2022). Predicting freeway traffic crash severity using XGBoost-Bayesian Network Model with consideration of features interaction. Journal of advanced transportation, 2022, pp.1–16. doi:10.1155/2022/4257865.
Yu, C.-N., Mirowski, P. and Ho, T. K. (2016). A sparse coding approach to household electricity demand forecasting in smart grids. IEEE transactions on smart grid, pp.1–11. doi:10.1109/tsg.2015.2513900.
Zahedi, L. et al. (2021). Search algorithms for automated hyper-parameter tuning. arXiv [cs.LG]. Available at: http://arxiv.org/abs/2104.14677.
Zeng, Y.-R. et al. (2017). Multifactor-influenced energy consumption forecasting using enhanced back-propagation neural network. Energy (Oxford, England), 127, pp.381–396. doi:10.1016/j.energy.2017.03.094.
Zhang, Y. et al. (2022). Investigation on a vermiculite-based solar thermochemical heat storage system for building applications. Future cities and environment, 8(1). doi:10.5334/fce.153.
Zhao, H.-X. and Magoulès, F. (2012). A review on the prediction of building energy consumption. Renewable and Sustainable Energy Reviews, 16(6), pp.3586–3592. doi:10.1016/j.rser.2012.02.049.
How to cite this article
Zhou, M., Li, X., Sripada, S. and Zhang, Y. (2023). 'AI-based hourly electricity consumption prediction for households and residents'. SET Proceedings, 20(3), pp. 404-412. https://doi.org/10.65582/set.2023.135