In smart buildings, time series forecasting of electrical load is essential for energy optimization, demand response, and overall building performance. However, the mid-term load forecasting (MTLF) can be particularly challenging due to several uncertainties, such as sensor malfunctions, communication failures, and external environmental factors. These problems can lead to missing data patterns that may impact the accuracy and reliability of forecasting models. The purpose of this study is to explore the impact of random missing data patterns on the MTLF predictions’ accuracy. Therefore, several data imputation techniques are evaluated using a complete dataset (i.e., with no missing values) acquired on a smart commercial building, and their influence on load forecasting performance is assessed when different percentages of randomly distributed missing data patterns are assumed. Moreover, the deep learning (DL) approach based on a recurrent neural network, namely, long short-term memory (LSTM), is employed to predict the smart building electrical energy consumption. The obtained outcomes demonstrate that the pattern of random missing data significantly impacts the forecasting accuracy, with machine learning (ML) imputation techniques having better results than statistical and hybrid imputation techniques. Based on these findings, it is evident that robust data preprocessing and the handling of missing values are important in order to improve the accuracy and reliability of mid-term electrical load forecasts.
Most electric energy consumption in the building sector is provided by fossil fuels, leading to high greenhouse gas emissions. However, the increasing need for sustainable infrastructure has triggered a significant trend toward smart buildings, which enable optimal and efficient resource usage. In this context, accurate mid-term energy load forecasting is crucial for energy management. This study proposes a hybrid forecasting model obtained through the combination of machine learning (ML) and deep learning (DL) approaches designed to enhance forecasting accuracy at an hourly granularity. The hybrid two-layer architecture first investigates the model’s performance individually, such as decision tree (DT), random forest (RF), support vector regression (SVR), Extreme Gradient Boosting (XGBoost), FireNet, and long short-term memory (LSTM), and then combines them to leverage their complementary strengths in a two-layer hybrid design. The performance of these models is assessed on smart building energy datasets with weather data, and their accuracy is measured through performance metrics such as mean squared error (MSE), root mean squared error (RMSE), and R-squared (). The collected results show that the XGBoost outperformed other ML models. However, the hybrid model obtained by combining FireNet and XGBoost models delivers the highest overall accuracy for the performance parameters. These findings highlight the effectiveness of hybrid models in terms of prediction accuracy. This research contributes to reliable energy forecasting and supports environmentally sustainable practices.