An Intelligent Hybrid Machine Learning Model for Sustainable Forecasting of Home Energy Demand and Electricity Price

Banafshe Parizad,Hassan Ranjbarzadeh,Ali Jamali,Hamid Khayyam
DOI: https://doi.org/10.3390/su16062328
IF: 3.9
2024-03-12
Sustainability
Abstract:Home energy systems (HESs) face challenges, including high energy costs, peak load impact, and reliability issues associated with grid connections. To address these challenges, homeowners can implement solutions such as energy management, renewable resources, and energy storage technologies. Understanding consumption patterns and optimizing HES operations are crucial for effective energy management. As a primary step, addressing these concerns requires an efficient forecasting tool to predict home energy demand and electricity prices. Due to the complexity of big data, and uncertainties involved in forecasting, machine learning (ML) methods are necessary. In this study, we develop a hybrid machine learning approach, utilizing one year of data on home energy demand and prices to address the challenge of forecasting home energy consumption. A comprehensive comparison of different deep and non-deep ML models highlights the superiority of the proposed hybrid approach. The performance of these models, measured using metrics such as RMSE, MAE, R2, and RT (running time), are compared. Finally, an optimized hybrid XGBoost (XGB) ML model that combines price and energy demand forecasting is introduced. The proposed ML method's parameters are optimally determined using Particle Swarm Optimization. The hybrid ML model's performance is evaluated in predicting both energy demand and consumption prices using historical data from diverse households with various features and consumption patterns. The results indicate that the hybrid ML model achieves accurate predictions for energy consumption and prices, with improvements in RMSE (up to 36.6%), MAE (up to 36.8%), and R2 (up to 3.9), as compared to conventional ML methods. This research contributes to sustainable energy practices by providing an effective tool for forecasting energy consumption and associated costs in the dynamic landscape of home energy systems.
environmental sciences,environmental studies,green & sustainable science & technology
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to accurately predict household energy demand and electricity prices in the household energy system. Specifically, the research aims to address the following challenges by developing a hybrid machine - learning model: 1. **High energy cost**: By accurately predicting energy demand and price, it helps households optimize energy use and thus reduce energy costs. 2. **Impact of grid peak - load**: By predicting energy demand in peak hours in advance, measures can be taken to smooth the load curve and reduce the pressure on the grid. 3. **Reliability issues**: By optimizing the operation of the household energy system, the reliability and stability of the system are improved. To achieve these goals, the research utilized one year of household energy demand and price data to develop a hybrid machine - learning model. This model combines the prediction of price and energy demand and optimizes the model parameters through Particle Swarm Optimization (PSO) technology to improve the accuracy and efficiency of prediction. ### Model features - **Dual - parallel XGBoost models**: One is used to predict electricity prices, and the other is used to predict energy demand. The electricity price prediction model uses time - series data and multiple moving averages as inputs, while the energy demand prediction model combines electricity prices, environmental factors (such as temperature, humidity) and energy consumption data of various devices. - **Parameter optimization**: Use Particle Swarm Optimization technology to optimize the parameters of the XGBoost model (such as learning rate `learning_rate`, maximum depth `max_depth` and number of estimators `n_estimators`) to further improve the performance of the model. - **Multi - dataset validation**: Validation was carried out on five different household datasets, and the results show that the XGBoost model is superior to other traditional machine - learning methods in terms of prediction accuracy and running time. ### Main contributions 1. **Innovative hybrid machine - learning method**: For the first time, electricity price is included as a key input variable in the household energy demand prediction model, which improves the accuracy of prediction. 2. **Parameter optimization**: The performance of the model is further enhanced by optimizing the model parameters through Particle Swarm Optimization technology. 3. **Multi - dataset validation**: Experiments on multiple household datasets prove the effectiveness and robustness of the model. Through these innovations, this research provides an effective tool for sustainable household energy management, which helps optimize energy use, reduce costs and improve the reliability of the system.