1. Introduction
The rapid growth in global electricity demand caused by population growth, industrial revolution, urbanization, digitalization, economic growth and high standard of living has led to an excessive reliance on the grid [
1,
2]. The energy consumption of the residential sector increased by 40–60% in developing countries over the past two decades despite electricity price mechanisms introduced globally through market reforms [
3]. The integration of renewable energy sources (RESs) into residential buildings has changed many households from consumers to prosumers [
4]. The proliferation of traditional power systems with smart metres, sensing technologies, automated control system and smart grid features has necessitated accurate forecasting of renewable energy generation, residential electrical load demands and electricity bills to improve grid sustainability, increase energy management and support technical and economic decisions of stakeholders of the power system [
5,
6]. The integration of renewable energy technologies into the residential buildings can cause variability and uncertainty of power supply due to the intermittent nature of weather conditions and change in seasonal climatic patterns [
7]. The stochastic nature of solar resources has created a complicated challenge for the power system operators to accurately forecast household load demands and electricity bills under the dynamic tariff mechanism [
8]. The Time-of-Use (TOU) electricity tariffs, based on the electricity pricing regimes such as peak, standard and off-peak periods, are used by utilities to regulate load demand and reduce grid congestion. TOU pricing mechanisms are introduced by electric utilities, energy regulators, system operators, policy makers, researchers and data analysists to improve demand side flexibility and promote home appliances shifting [
9].
Forecasting techniques have undergone significant advancement in the past few decades by changing from traditional statistical techniques to sophisticated machine learning (ML) approaches [
10]. The abovementioned techniques can be utilized in the power system for load forecasting, electricity price prediction, renewable energy generation prediction, energy management, operational planning and economic decision-making. Traditional statistical forecasting techniques are suitable for linear, stationary and well-structured time-series data. However, their performances are drastically affected by highly nonlinear, stochastic and multi-variable systems such as embedded renewable energy operation with smart grid, tariff mechanism, appliance usage patterns, consumer’s power consumption behaviour and weather variables [
11]. These limitations can be addressed by using ML techniques that have proved to be more effective at modelling complicated time-dependent and nonlinear energy consumption behaviours of consumers. The application of single-model ML techniques in highly dynamic residential energy datasets can suffer from overfitting, instability and limited generalization capability due to limited or imbalanced data, behavioural uncertainty, renewable energy variability, poor temporal representation, excessive model complexity, poor hyperparameter tuning, lack of regularization and training and validation issues [
12]. The shortcomings of using single model ML models for the prediction of residential building parameter can be addressed by hybridizing multiple ML models. Hybrid systems combined complementary techniques to increase prediction accuracy. This is achieved by using the strengths of each model while mitigating their intrinsic weaknesses [
13]. Hybrid ML models can be used in the power system to integrate historical load data and meteorological parameters to forecast not only electrical demand and PV output but also real-time electricity bills [
14]. The accuracy of electricity bill forecasting under TOU tariffs is crucial for households of developing countries whose incomes vary according to changes in energy prices [
15]. Electricity bill prediction tools allow households to optimize the scheduling of appliances, increase self-consumption of solar energy, reduce peak-period usage and improve participation in demand response programmes [
16].
Recent studies have been focused on the ML models to improve the robustness and accuracy of forecasting of the power systems due to their capability to model nonlinear relationships and process large-scale energy datasets. Li et al. [
17] proposed a hybrid model for forecasting of load demands based on the combination of empirical mode decomposition and random forest (RF) approaches. The study showed that the decomposition-supported RF model considerably greatly increased forecasting accuracy and decreased prediction uncertainty under varying load demand circumstances. Mosetlhe and Yusuff [
18] presented RF regression schemes to forecast energy demand of residential building. The results obtained from the study demonstrated that RF models reflected fluctuation of household energy usage trends and produced lower forecasting errors in comparison to traditional regression techniques. Parizad et al. [
19] applied a hybrid ML approach for forecasting of residential energy demand and electricity price forecasting using a gradient boosting regression (GBR) algorithm. The results showed that boosting-based algorithms models performed better when predicting electricity costs under dynamic pricing conditions. Saini et al. [
20] proposed a probabilistic GBR model integrated with iterative seasonal trend decomposition and multi-approach feature selection for short-term load forecasting. It can be seen from the outcomes of the research that the GBR models considerably increased the forecasting accuracy by capturing nonlinear and seasonal features of electricity load demand. Cui et al. [
21] applied extreme gradient boosting (XGBoost) in a hybrid model for short-term electrical load prediction. It can be established from the outcomes of the study that XGBoost accomplished superior forecasting accuracy owing to its effective feature learning competence and robustness against overfitting. Yu et al. [
22] presented the combination of Bayesian and XGBoost models in an error-weighted ensemble system for forecasting of household electricity load demand. It can be seen from the outcomes of the study that there is a significant reduction in RMSE and MAE values when compared to standalone ML models.
Han et al. [
23] applied deep belief networks (DBN) model in forecasting the power output of photovoltaic based renewable energy systems. The findings of their study demonstrated that DBN models increased the prediction accuracy of solar power generation by learning hidden representations from historical solar generation data and meteorological variables. Similarly, Wu et al. [
24] developed an improved DBN-based intelligent load identification and prediction model where DBN was optimized using a sparrow search algorithm. It can be established from the outputs of the study that DBN significantly improved feature extraction competence in nonlinear load data. This makes the model suitable for complex smart grid environments. In the same way, Shin et al. [
25] presented a hybridization approach of hybrid variational mode decomposition and random vector functional link networks (RVFL) for short-term forecasting of load demand. The authors achieved high forecasting accuracy and lower computational complexity with proposed model when compared with the conventional deep learning approaches. Katuwal et al. [
26] utilized a deep RVFL neural network for forecasting of nonlinear applications. The RVFL model is utilized in the study to improve generalization capability and reduce forecasting uncertainty of dynamic datasets. Peplinski et al. [
27] proposed a ML approach for forecasting household electricity demand based on large-scale smart metre data integrated with weather, building and social and economic information. Zhou et al. [
28] proposed smart metre data and probabilistic deep learning (DL) techniques for forecasting of residential electrical load demand. The findings of the research showed that multi-layer perceptron (MLP) models can effectively learn complicated consuming behaviours from historical data when preprocessing and feature representation are used correctly.
Banik and Biswas [
29] incorporated RF and XGBoost models into a meta-learning architecture for forecasting of renewable energy and load demand. The authors utilized RF as a base learner to capture nonlinear correlations in input features and XGBoost was used in the study to increase prediction accuracy by correcting residual errors from the first stage model. The outcomes of the study show that hybridization of RF and XGBoost improved prediction accuracy and reduced error metrics when compared with standalone ML models that are utilized in forecasting of renewable energy applications. Cui et al. [
21] applied a short-term load forecasting approach that combined XGBoost and RF features for accurate prediction of load demands. It can be seen from the outcomes of the study that the hybrid approach has considerably reduced forecasting accuracy, reduced error metrics and increased robustness under fluctuating load demands and weather conditions relative to conventional forecasting approaches. Muqtadir et al. [
30] presented an ensemble of boosting ML models such as LightGBM, XGBoost and CatBoost for forecasting of residential electricity load demand. The work focused on short-term prediction by taking into account the nonlinear and intermittent nature of household energy usage in smart grid systems. The research results have shown that the proposed approach significantly improved forecasting accuracy by removing overfitting and capturing complicated temporal–spatial relations in load data. In addition, the authors also pointed out that the combination of multiple gradient boosting methods in a well-designed ensemble greatly enhanced prediction stability and robustness at various residential locations. Simaiya et al. [
31] proposed hybrid model using transfer learning that combined XGBoost and LightGBM algorithms for energy forecasting in the smart grid. The research demonstrated that the proposed hybrid models significantly improved both computational performance and forecasting reliability.
Several critical research gaps have not been fully addressed in the literature despite significant progress in electricity demand forecasting and energy management using ML techniques. There are limited studies that simultaneously modelled residential electrical load, solar energy generation, solar irradiance and electricity bill forecasting within a unified hybrid ensemble technique under TOU pricing schemes. There is a limited number of studies that presented forecasting models by utilizing several geographical datasets and climatic conditions of developing nations. Most existing models are developed and tested using datasets from developed nations. The proposed datasets do not accurately reflect energy consumption trends in emerging economies. The significance portion of existing research is focused on electricity demand forecasting accuracy without considering the integration of forecasting models with practical energy management strategies. In addition, several forecasting models are developed using synthetic datasets that do not adequately represent real-time operating conditions of residential energy systems. Finally, limited attention has been given to the application of ML techniques in residential energy forecasting. The influence of different variables is essential for improving decision-making and policy development since the energy system has become data driven. Therefore, there is a clear need for ML techniques that integrate multiple predictive algorithms, incorporate RESs, utilize real-time datasets and support residential energy management strategies.
The abovementioned gaps are addressed in this study by proposing a hybrid ensemble forecasting framework that integrated multiple machine learning models to improve prediction accuracy and robustness. The performance of the proposed model is comprehensively evaluated using several statistical metrics and compared with state-of-the-art of forecasting models. This study presents forecasting techniques that consist of random forest, gradient boosting regression, XGBoost, deep belief networks, random vector functional link networks, multi-layer perceptron and hybrid ensemble. The hybridization of several models is utilized in the study to improve forecasting accuracy and maximize energy efficiency of the household system that is located in Durban, South Africa. The proposed models are used for residential electricity demand forecasting and energy management in response to residential buildings energy challenges of Durban. The study area is a metropolitan city that is characterized by humid climate, high solar irradiation and high residential load demand owing to population growth and urbanization. Multiple machine learning algorithms are presented in the paper to evaluate the forecasting accuracy and robustness of each model under dynamic operating conditions. The performance of the proposed models is assessed using real-time residential energy datasets and the comparative analysis based on the statistical metrics. This study provides several significant contributions to the field of residential energy forecasting and smart grid management. The major contributions of this research are presented as follows:
- i.
Development of forecasting approaches that integrated load demand, solar irradiance, renewable energy and electricity bill prediction using real-time data collected from Durban, South Africa.
- ii.
Comparative assessment of machine learning models such as RF, GBR, XGBoost, DBN, RVFL, MLP and hybrid ensemble techniques.
- iii.
Presentation of an ensemble hybrid model that utilized the complementary strengths of one model to overcome the weakness of another model.
- iv.
Assessment of forecasting performance by utilizing statistical metrics such as MAE, RMSE, MASE, MSE and R2.
- v.
Application of the proposed models in residential energy systems to establish their effectiveness and increase the forecasting accuracy.
- vi.
Integration of TOU tariff schemes into electricity bill forecasting for realistic economic evaluation and optimized residential energy management.
The remaining sections of the paper are organized as follows:
Section 2 describes the materials and methods that consist of data collection, data preprocessing, machine learning model development and performance evaluation.
Section 3 presents the results and discussion of the study that include forecasting accuracy, performance analysis of different techniques and comparative performance of the models. Finally,
Section 4 concludes the paper with the key findings, contributions and future research prospects.
3. Results and Discussion
The simulation was conducted on MATLAB 2025b (MathWorks, Inc., Natick, MA, USA) using 12th Gen Intel (R) Core (TM) i5-1235U (1.30 GHz) with RAM of 8 GB, graphical card of 128 MB, storage of 500 GB and Windows 11. The results obtained from forecasting of residential load, solar irradiance, solar energy generation and electricity costs based on TOU tariffs of Durban, South Africa are presented in this section using the proposed models. The performance of each model such as RF, GRB, XGBoost, DBN, RFVL, MLP and hybrid ensemble models is assessed using multiple error metrics like MSE, RMSE, MAE, MASE and R2. The abovementioned performance indicators are simultaneously assessed using multiple approaches. The improved forecasting accuracy of MAE, RMSE, MSE and MASE is demonstrated by their lower values while higher values of R2 indicate a very strong correlation between the predicted and actual values. The interpretation of the models is presented in this section using model accuracy, error histograms and time series. The outcomes of the study are presented as follows.
3.1. Load Demand Forecasting
The performance evaluation of various models for residential electrical load demand forecasting of a residential building in Durban, South Africa is presented in this section. The models considered include RF, GBR, XGBoost, DBN, RVFL, MLP and hybrid ensemble. The forecasting accuracy of each model is assessed in the study utilizing MSE, RMSE, MAE, MASE and R
2. The comparative analysis presented in
Figure 17 shows that the abovementioned models can capture the temporal patterns of load demand and their predictive accuracies vary significantly based on their learning mechanisms. The output of the study as presented in
Figure 17 illustrates how predicted load demand of each model tracked the actual residential load demand pattern. The performance of the hybrid ensemble is the best among all the models based on the ability of its prediction to perfectly overlap the actual load demand throughout the 430 h horizon. The high robustness and superior accuracy of ensemble hybrid has been attributed to hybridization of multiple models to reduce prediction errors and deviation and improve generalization. The prediction pattern of XGBoost closely followed the actual load pattern with small deviations based on its strong predictive capability. The performance of XGBoost is slightly below the hybrid model. The predictions of GBR and RF are less precise when compared to hybrid ensemble and XGBoost models. They have good alignment with actual load demand due to minor inconsistencies noticed at the peak points. The RVFL model has moderate performance to capture the pattern of the load demand with noticeable deviations at sharp peaks. The performance of the MLP and DBN models is the least among the seven models presented in the study due to it having the lowest accuracy and large deviation from the actual load demand. The hybrid ensemble model is the most suitable model for load demand forecasting applications in the study since it has achieved the highest level of accuracy and stability.
The statistical distribution of load demand forecasting errors is further analyzed using error histograms presented in
Figure 18. The combined operation of these results provides a detailed assessment of prediction accuracy, variability and distributional characteristics. The error histograms reveal that all models produce errors that are cantered close to zero and indicate negligible systematic bias in load prediction. The distributions vary greatly amongst models in terms of their spread and shape. The distribution of the hybrid ensemble model is symmetrical and heavily concentrated around zero. This demonstrates the superior predictive accuracy and minimal deviation of the hybrid ensemble model when compared to XGBoost, GBR, RF, RVFL, MLP and DBN models. XGBoost and GBR models closely followed with a relatively narrow and symmetric error distribution to maintain strong central concentration. RF and RVFL models produced more noticeable tails and broader spreads to increase variability and reduce consistency and accuracy. The error distribution of the DBN and MLP models is the widest and the most irregular among all models owing to high dispersion and uncertainty and low reliability.
The statistical characteristics of prediction errors obtained from the evaluated models for load demand forecasting are presented in
Table 1. The analysis consists of mean error, error range, standard deviation, skewness and kurtosis that can be used for comprehensive evaluation of the model’s accuracy, consistency and robustness. The mean error values for all models are observed to be very close to zero, this indicates that the models exhibit minimal systematic bias. The values of mean errors observed in the hybrid ensemble, XGBoost and GBR are −0.00013186, −0.00013880 and −0.00012515, demonstrating near-perfect unbiased predictions of the models. RF and RVFL models have negative mean errors of −0.0004371 and −0.001214, this indicates mild underestimation. MLP and DBN have positive mean errors of 0.00330350 and 0.00341770, with the tendency of overestimating the load demand. The error range and standard deviation serve as critical metrics for variability and consistency of model predictions. The hybrid ensemble has the lowest error range of 0.81093 and standard deviation of 0.11600 to demonstrate high concentrated errors and superior prediction stability of the model. Similarly, XGBoost and GBR demonstrate strong performance with low error range of 0.85361 and 0.97101 and standard deviation of 0.1221 and 0.14026. The RF, RVFL and MLP models exhibit relatively high error range of 1.1093, 1.2153 and 1.3868 and high standard deviation of 0.158, 0.18327 and 0.20994 to confirm their limitations in maintaining consistent predictive performance. DBN model has the highest error range of 1.64520 and standard deviation of 0.24741. The results obtained from the study indicate that ensemble and boosting-based models are more stable and reliable when compared to neural network-based models. The skewness values for all models are positive within the range of 0.27095 and 0.36438 to demonstrate slightly right-skewed error distributions. The hybrid ensemble has a balanced skewness of 0.3448 to illustrate a stable transition between peak and off-peak forecasting. The highest kurtosis value of 3.6505 of the RF models suggests a greater likelihood of extreme prediction errors. MLP and RVFL models have relatively lower kurtosis values of 3.4525 and 3.3586. The hybrid ensemble produced moderate kurtosis value of 3.6003 with the presence of outliers. The outcomes of the study demonstrate that the performance of the ensemble hybrid approach is better than other models due to its ability to reduce both bias and variance.
The performance evaluation of the forecasting models as presented in
Table 2 provides critical insights into the accuracy and robustness capability of each approach in predicting residential electrical load demand. The hybrid model has the lowest MSE of 0.013425, MAE of 0.090522, RMSE of 0.11587 and MASE of 0.28023 and the highest R
2 of 0.99344. The outcomes of the study clearly demonstrate that the hybrid model performed better than each individual model in every evaluation metric. XGBoost achieved relatively low MSE of 0.014875, MAE of 0.095286, RMSE of 0.12196 and MASE 0.29498 and high R
2 of 0.98166. The performance of XGBoost is attributed to its sophisticated boosting mechanism and regularization competencies to avoid overfitting of load demand forecasting. The effectiveness of the GBR model as a robust technique for residential load demand forecasting is presented in
Table 2. MSE of 0.019628, MAE of 0.10966, RMSE of 0.1401, MASE of 0.33947 and R
2 of 0.9758 are attained by the model. This indicates a strong predictive capability with relatively low error margins. The performance of GBR is attributed to its sequential boosting mechanism. It can be seen from the results presented in
Table 2 that the RF has consistent and reliable predictions with moderate accuracy in residential load demand forecasting. The model attained MSE of 0.024907, MAE of 0.12303, RMSE of 0.15782, MASE of 0.38086 and R
2 of 0.96928. This indicates a reasonably good predictive capability, but its inability to effectively capture high variability and peak demand patterns limits its overall performance. The RVFL model demonstrates moderate and competitive performance in residential load demand forecasting. The RVFL model achieved MSE of 0.033513, MAE of 0.14381, RMSE of 0.18307, MASE of 0.44518 and R
2 of 0.95867 to demonstrate a balanced trade-off between prediction accuracy and computational efficiency. The MLP model achieved MSE of 0.043986, MAE of 0.16601, RMSE of 0.20973, MASE of 0.5139 and R
2 of 0.94576. The MLP model has moderate but relatively lower performance compared to hybrid ensemble, XGBoost, GBR, RF and RVFL approaches in residential load demand forecasting. The performance of the DBN model is the lowest among all evaluated models for residential load demand forecasting. It achieved MSE of 0.061083, MAE of 0.19359, RMSE of 0.24715, MASE of 0.59929 and R
2 of 0.92467. The DBN model has limited effectiveness in residential load demand forecasting due to its higher error metrics and wider error distribution. The improvement of the hybrid model is compared with the best individual model in this study. The proposed hybrid model reduced RMSE from 0.112196 to 0.11587 when compared with the best individual model (XGBoost), this translates to a 5% reduction. Similarly, MAE reduced by 5%, MASE reduced by 5% and MSE reduced by 9.748%, while R
2 increased from 0.98166 to 0.98344.
The radar chart presented in
Figure 19 shows that the hybrid ensemble model consistently achieved the best performance to confirm its robustness for load demand forecasting. XGBoost and GBR models follow the performance hierarchy by delivering competitive results that are slightly lower than those of the hybrid ensemble model. The DBN and MLP models exhibited limited accuracy and robustness relative to other models used in the study. These results show that the use of hybrid ensemble with multiple learning models can be utilized to improve the predictive performance by modelling the residential energy consumption patterns and variability of load demands. The proposed hybrid ensemble mode can be used for accurate forecasting under variety of load conditions such as smart energy management and demand-side planning applications.
3.2. Solar Irradiance Forecasting
Solar irradiance forecasting is crucial for the optimization of PV energy generation and improvement of energy management in residential systems. The forecasting performance of RF, GBR, XGBoost, DBN, MLP, RVFL and hybrid ensemble models is evaluated in this section as presented in
Figure 20. The results show that the hybrid ensemble model provided the closest agreement with the actual irradiance profile, with the predicted values almost overlapped the observed data throughout the forecasting period. This indicates its superior capability in capturing both the nonlinear characteristics and short-term variability of solar irradiance. XGBoost accurately tracked the trend and peak irradiance values with small deviation to show good prediction performance. The performance of GBR is moderately recognized as one of the best with slight variations noted with sudden changes in solar irradiance. The RF and RVFL models also demonstrate moderate performance with a strong capability to capture the overall trend of the irradiance profile. The MLP and DBN models have relatively poor performance with visible deviations from the actual irradiance curve. The superior performance of the hybrid model is based on the significance of using several learning strategies to improve prediction accuracy in extremely unpredictable energy systems.
The hourly error distribution (histogram) of solar irradiance forecasting models that consists of RF, GBR, XGBoost, DBN, RVFL, MLP and the hybrid ensemble models. It can be established from the error histograms presented in
Figure 21 that there is a considerable difference in the performance of each model. The hybrid model has a highly concentrated error distribution around zero to indicate accurate and consistent predictions with very small deviations between predicted and actual values. The distribution of XGBoost and GBR models are narrow and well centred to demonstrate high prediction accuracy and consistency with the capability of moderate deviation. The wider distributions of RF and RVFL indicate higher uncertainty and less consistent performance. It can be seen in
Figure 21 that RF has noticeable spread on both sides while RVFL exhibits even broader dispersion. MLP and DBN models have the widest distributions to indicate the highest prediction uncertainty. This shows that errors are more spread out with visible tails to reflect reduced accuracy and consistency. The histogram analysis established that the robustness of the hybrid model can be used to minimize large deviations, this is crucial for renewable energy system scheduling and grid integration.
The statistical error analysis for solar irradiance prediction across the evaluated models is presented in
Table 3. The mean error for all models is extremely close to zero to indicate that all models are effectively unbiased in predicting solar irradiance. Excellent agreement between projected and actual values is reflected in the near-zero bias. The hybrid ensemble has the lowest error range of 0.0042422 and standard deviation error of 0.00078, followed by XGBoost and GBR with error range of 0.006018 and 0.0087583 and standard deviation error of 0.0011167 and 0.0014533. This demonstrates their superior consistency and stability relative to other models. The results presented in
Table 3 demonstrate that RF and RVFL models have error range of 0.010948 and 0.11901 and standard deviation error of 0.00179 and 0.0021267. MLP and DBN exhibit the highest variability with error range of 0.016246 and 0.01638 and standard deviation error of 0.0024633 and 0.0028. The results indicate reduced predictive reliability of MLP and DBN models. The skewness values are generally closed to zero to suggest near-symmetric error distributions. Slight negative skewness of −0.12103, −0.16826 and−0.1621 are observed in XGBoost, GBR and RF to suggest a mild tendency toward underestimation. In contrast, hybrid ensemble of 0.03078 and RVFL of 0.029272 are nearly symmetric, while DBN of 0.18222 shows a slight inclination toward overestimation. RF and MLP have slightly higher kurtosis of 3.1443 and 3.3836 to signal the presence of weak outliers and hybrid ensemble and RVFL of 2.8341 and 2.6848 to show more regulated tail behaviour. The results demonstrate that the hybrid ensemble model provides the most accurate and stable solar irradiance predictions, followed by XGBoost and GBR. The performance of MLP and DBN models is not consistent and more variable when compared to other models utilized in the study.
The predictive performance of the solar irradiance forecasting models is assessed using MAE, MSE, RMSE, MASE and R
2 as presented in
Table 4. The ensemble hybrid produced the lowest MSE of 0.13672, MAE of 0.21969, RMSE of 0.36976 and MASE of 0.0034927 and the highest R
2 of 0.98879. The results clearly indicate that the hybrid model outperformed other models in all evaluation metrics. The substantial improvement is attributed to its capability to integrate complementary strengths of many algorithms and improve generalization and robustness. XGBoost demonstrates the best overall performance among the individual models with lower MSE of 0.15149, MAE of 0.23126, RMSE of 0.38922 and MASE of 0.0036765 and the higher R
2 of 0.98758. This demonstrates an effective way of capturing the nonlinear relationships present in data on solar irradiance. The GBR model achieved lower MSE of 0.20127, MAE of 0.27229, RMSE of 0.44863 and MASE of 0.0043289 and a higher R
2 of 0.9835 compared to RF that has MSE of 0.25769, MAE of 0.313, RMSE of 0.50764, MASE of 0.0049761 and R
2 of 0.97887. This indicates that boosting techniques provide better predictive improvement in this application. The RVFL model has a moderate level of predictive accuracy with MSE of 0.34002, MAE of 0.37208, RMSE of 0.58311, MASE of 0.0059154 and R
2 of 0.97212. The results demonstrate that the performance of RVFL is better than DBN and MLP but significantly worse than GBR and XGBoost. The MLP model has acceptable performance values with MSE of 0.45069, MAE of 0.44139, RMSE of 0.67134, MASE of 0.0070173 and R
2 of 0.96305. The DBN model recorded the weakest performance among the seven models with the highest MSE of 0.59513, MAE of 0.5199, RMSE of 0.77145 and MASE of 0.0082525 and the lowest R
2 of 0.95121. The results demonstrate that hybridization of models significantly improved forecasting accuracy by utilizing the strengths of several algorithms. The predictive performance of the hybrid ensemble model is compared with the XGBoost. The comparison show that the hybrid ensemble has superior performance across all evaluation metrics relative to the best standalone model. RMSE reduced from 0.38922 for XGBoost to 0.36976 for the hybrid ensemble, this corresponds to a 5% reduction. Similarly, the MAE and MASE are reduced by 5% to indicate a consistent reduction in forecasting errors. MSE is also reduced by 9.75%, this reduction demonstrates the improved capability of the hybrid model to minimize large prediction deviations. Furthermore, R
2 increased from 0.98758 to 0.98879 to confirm the superior predictive performance of the proposed model.
The forecasting performance of each model such as RF, GBR, XGBoost, DBN, MLP, RVFL and hybrid ensemble models is comprehensively visualized in
Figure 22. The benefits of hybridizing several models to improve the prediction accuracy of solar irradiance forecasting in smart grid systems are further visualized in the figure. XGBoost model exhibited the second-best performance with a comparatively nearly and fairly symmetrical polygon. It is followed by GBR, RVFL, RF, MLP and DBN models.
3.3. Solar Energy Generation Forecasting
Solar energy generation forecasting is essential for the improvement of PV system operation and energy management in residential systems. The forecasting performance of GBR, RF, DBN, XGBoost, MLP, RVFL and a hybrid ensemble model is evaluated in this section. The results are assessed using standard statistical error metrics that provide an extensive evaluation of model performance under varying operating conditions. The time-series comparison between the actual and predicted solar energy is presented in
Figure 23. The hybrid ensemble model has the most accurate predictions with the forecasted values that are closely matched the actual PV output throughout all time intervals. XGBoost has good predictive performance by closely tracking the actual output of the PV system with minimal deviation. The GBR also has good agreement with the observed data with slight deviation from actual solar energy generation. The RF and RVFL models demonstrate moderate performance. They can successfully capture the general pattern of solar energy generation by showing noticeable smoothing of peak values. The MLP and DBN models have the lowest performance with obvious deviations from the actual output of the photovoltaic system. It can be confirmed from the comparative analysis of the results that hybrid and boosting-based approaches are more effective in capturing the complex temporal dynamics of solar energy generation. This makes them highly suitable for real-time forecasting applications in smart grid and renewable energy systems.
The hourly error distribution of solar energy generation forecasting based on different models is presented in
Figure 24. The best performance of the ensemble approach is attributed to a highly concentrated and symmetric error distribution near zero. The hybrid ensemble model is characterized by low variance and strong predictive accuracy that are based on the narrow spread. The XGBoost and GBR models followed closely by revealing a small wider distribution error that reflect strong predictive accuracy. The RF and RVFL models have broader distribution errors with very high deviation. This demonstrates acceptable performance that has continuously reduced when compared to boosting-based approaches. On the other hand, MLP and DBN models have the longest up tails and the biggest error spreads to indicate greatest uncertainty and worst predictive reliability.
The solar energy statistics reflect the final operational efficiency and the capacity of the model to manage the nonlinear conversion factors of the photovoltaic system. The hybrid ensemble model has the best predictive accuracy with the lowest mean error of 0.0036524, closely followed by XGBoost and GBR with mean errors of 0.0038446 and 0.0044503 as presented in
Table 5. Conversely, MLP and DBN have relatively higher bias with mean error of 0.0065747 and 0.0073378, demonstrating their reduced accuracy. The mean error progression among models follows the same ranking as shown in
Figure 22 to show consistency between visual and numerical analyses. The error dispersion metrics such as error range and standard deviation are used in this section to further highlight the performance disparities. The hybrid ensemble achieved the smallest error range of 0.031556 and standard deviation of 0.0055544 to indicate its highly consistent predictions. XGBoost and GBR followed with error range of 0.033217 and 0.037853 and standard deviation of 0.0058467 and 0.0067349 to demonstrate their slightly higher variability. RF and RVFL show moderate dispersion with error range of 0.04264 and 0.049077 and standard deviation of 0.0075844 and 0.008787. The largest variability is observed in MLP and DBN, with error ranges of 0.060249 and 0.062306 and standard deviations of 0.010193 and 0.011764, confirming their lower stability. These findings indicate that the hybrid model increased accuracy and prediction stability. All models exhibit positive skewness of 1.1135–1.2619 to indicate their right-skewed error distributions with occasional large positive errors. The skewness values progressively reduced from hybrid ensemble to DBN to indicate less asymmetry in lower performing models. The hybrid ensemble and XGBoost have the highest skewness of 1.2619, this demonstrates a clear tendency for sporadic significant positive errors. The hybrid ensemble and XGBoost show slightly higher kurtosis of 4.0197–4.0469 to demonstrate their heavier tails while DBN has a relatively lower kurtosis of 3.8112 with a lower tail intensity.
The performance of solar energy generation forecasting models is assessed in this section using MSE, RMSE, MAE, R
2 and MASE. It can be seen from the results presented in
Table 6 that the hybrid model continuously performed better than the other models in every evaluation metric. It has the highest R
2 of 0.98884 and the lowest MSE of 4.412 × 10
−1, MAE of 0.0039487, RMSE of 0.0066423 and MASE of 0.34876. The hybridization of different models and superior ability to accurately capture the intermittent nature of solar energy are responsible for the best performance of the hybrid ensemble approach. In a comparable direction, XGBoost emerged as an effective model among individual models with MSE of 4.8887 × 10
−1, MAE of 0.0041566, RMSE of 0.0069919, MASE of 0.36712 and R
2 of 0.98763. The excellent performance of XGBoost has been attributed to its ability to describe the intricate nonlinear relationships and temporal dependencies present in solar energy generation data. The GBR model demonstrated competitive performance with MSE of 6.5061 × 10
−2, MAE of 0.0048926, RMSE of 0.008066, MASE of 0.43212, and R
2 of 0.98354. It has relatively low error values to confirm the effectiveness of the GBR model in forecasting of solar energy generation. The RF model has a lower R
2 of 0.97915 and a significantly higher MSE of 8.2399 × 10
−1, MAE of 0.0056119, RMSE of 0.0090774 and MASE of 0.49565. This indicates limitations in modelling complex patterns despite its robustness. The RVFL model has moderate predictive ability with MSE of 0.00011032, MAE of 0.0067404, RMSE of 0.010503, MASE of 0.59533 and R
2 of 0.97209. It has an inferior performance when compared to boosting-based models. The MLP model has higher MSE of 0.00014688, MAE of 0.0079814, RMSE of 0.01212, MASE of 0.70494 and lower R
2 of 0.932 to demonstrate acceptable performance but with relatively higher prediction errors. The DBN recorded the poorest performance among all models with the highest MSE of 0.00019191, MAE of 0.0093814, RMSE of 0.013853 and MASE of 0.82859 and the lowest R
2 of 0.95144. This implies that the DBN model is not effective for the specified dataset owing to inadequate training data. The outcomes of the study clearly show that ensemble hybrid, XGBoost and GBR approaches are significantly better than RF, RVFL, MLP and DBN models in solar energy generation forecasting. The performance of the hybrid model is assessed in this section by comparing its metrics with the best standalone model (XGBoost). It can be seen from the outcomes of the study that RMSE of the hybrid model reduced from 0.0069919 to 0.0066423, this demonstrates a 5.00% reduction. Similarly, the values of MAE and MASE reduced by 5.00% to indicate a reduction in forecasting errors. In addition, the MSE reduced by 9.75%, this reveals a minimum prediction deviation. R
2 increased from 0.98763 to 0.98884, this indicates an improved ability of the hybrid model to capture the variability of solar energy generation.
A radar chart is a multi-dimensional comparative visualization that can be used to evaluate the forecasting performance of solar energy using statistical error metrics. The numerical values shown in
Table 6 are visually confirmed by the radar chart presented in
Figure 25. The figure clearly shows that the hybrid ensemble model is better than all the other forecasting models in terms of the selected performance indicators. XGBoost and GBR models are ranked second and third based on their high predictive accuracy and robustness, but their performance is slightly inferior to the hybrid ensemble model. The RF and RVFL models attained moderate performance, while the MLP and DBN models produced comparatively lower forecasting accuracy and consistency. This analysis shows that hybrid and boosting-based models can be used in the power system to improve the performance of solar energy generation forecasting.
3.4. Electricity Bill Forecasting
Electricity bill forecasting is a significant component of residential building energy system where prices of electricity fluctuate throughout the day. Customers can optimize energy consumption, schedule household appliances and reduce expenses when electricity bills are accurately predicted. RF, GBR, XGBoost, DBN, MLP, RVFL and hybrid ensemble models are utilized in this section to forecast electricity bills. The time-series comparison between the actual and predicted electricity bills for RF, GBR, XGBoost, DBN, RVFL, MLP and hybrid ensemble models over an extended forecasting horizon of approximately 450 h is presented in
Figure 26. The hybrid model has the best agreement with the actual electricity bill profile and the projected values almost overlapped the observed data throughout the time horizon. XGBoost has a very strong prediction performance that closely tracked the real billing trend. Similarly, GBR has a very good agreement with the actual values but with some smoothing and latency during peak cost periods. The main trend and periodicity of the electricity bill are captured by RF but peak values are smoothed out, and high-cost periods are slightly underestimated. This indicates limited responsiveness to sharp variations in tariff and demand. RVFL demonstrates moderate performance in tracking the general pattern effectively but shows noticeable deviations during peak and transition periods. DBN shows the poorest performance that is characterized by significant deviations from actual values, irregular prediction patterns and poor tracking of periodic billing behaviour.
The analysis of the error distribution histograms for electricity bill forecasting and the corresponding statistical error metrics to provide an in-depth assessment of models’ accuracy, variability and distributional behaviours. The hybrid ensemble model exhibits the most concentrated and symmetric distribution around zero to indicate high prediction accuracy, low variance and minimal bias as shown in
Figure 27. The narrow spread of the hybrid ensemble can be used to validate its ability to consistently predict electricity costs under various conditions. Additionally, XGBoost and GBR show comparatively narrow error distributions with a moderate dispersion and the majority of errors concentrated close to zero. RF and RVFL models have wider spreads and longer tails to indicate greater variability, less bias and less consistent predictions when compared to boosting models. The MLP and DBN models have the widest spread distributions with substantial deviation and heavy tails to indicate high prediction errors and volatility in the modelling of cost dynamics.
The statistical error metrics for electricity bill prediction such as mean error, range, standard deviation, skewness and kurtosis are presented in this section. The results shown in
Table 7 demonstrate that the mean error values are generally closed to zero, which indicates minimal bias across all models. The hybrid ensemble and XGBoost demonstrate low bias with the values of mean error of 0.00030015 and 0.00031595. While RVFL recorded the smallest mean error of 9.8036 × 10
−5 to suggest near-unbiased predictions. This does not translate into better performance due to its significantly larger variability. DBN shows the highest mean error of 0.00091745 to indicate its relatively reduced accuracy. The hybrid ensemble has the smallest range and standard deviation of 0.15567 and 0.022985. This shows that the model has the most stable and consistent prediction in terms of error dispersion. XGBoost and GBR followed closely with error range of 0.16386 and 0.18931 and standard deviation of 0.024195 and 0.027853. While RF and RVFL show moderate variability with error range of 0.2133 and 0.2397 and standard deviation of 0.031483 and 0.036605. The highest dispersion is observed in MLP and DBN with error range of 0.29598 and 0.313846 and standard deviation of 0.042034 and 0.04974. Skewness values for all models are positive from range of 0.12609 to 0.27315 to indicate slightly right-skewed error distributions and occasional underestimation. The values remain relatively small with near-symmetric distributions. MLP exhibits a higher kurtosis of 3.3839 to indicate heavier tails and a greater likelihood of extreme errors. The hybrid ensemble has a kurtosis of 3.1317 to maintain near-normal behaviours and balanced distribution with limited outliers. DBN also showed a high kurtosis of 3.1588 that is consistent with its wide error spread. These results demonstrate the effectiveness of an ensemble model for accurate electricity bill forecasting.
The performance of the electricity bill forecasting models is evaluated in this section using statistical metrics presented in
Section 2.4. The performance of each model for the assessment period is presented in
Table 8. It can be seen from the results that the hybrid ensemble model achieved the best performance with the lowest MSE of 0.00052719, MAE of 0.018126, RMSE of 0.022961 and MASE of 0.30006 and the highest R
2 of 0.97978. This shows excellent predicting performance of the hybrid ensemble model with a significant correlation with observed values and minimal variation from actual electricity bills. XGBoost achieved relatively low MSE of 0.00058414, MAE of 0.01908, RMSE of 0.024169 and MASE of 0.31585 and high R
2 of 0.97759 to indicate its competitive performance. The GBR also demonstrates strong predictive capability to achieve MSE of 0.00077666, MAE of 0.022002, RMSE of 0.027869 and MASE of 0.36421 and R
2 of 0.97021. These results can be used to reinforce the suitability of boosting-based ensemble approaches for energy forecasting applications. The RF model yields comparatively higher MSE of 0.000994, MAE of 0.024906, RMSE of 0.029080, MASE of 0.4123 and R
2 of 0.96187. This demonstrates that the RF model is less effective in capturing intricate nonlinear dependencies in solar energy generation data when compared with boosting-based approaches. The RVFL model shows moderate performance with MSE of 0.0012985, MAE of 0.028561, RMSE of 0.036035, MASE of 0.4728 and R
2 of 0.95019 to provide a reasonable balance between prediction accuracy and computational efficiency. However, its performance remains inferior to that of the boosting-based models. The MLP model demonstrates acceptable performance with MSE of 0.0017742, MAE of 0.033358, RMSE of 0.042121, MASE of 0.5522 and R
2 of 0.93194. The performance of the DBN is the poorest among the assessed models with the highest MSE of 0.0023968, MAE of 0.039109, RMSE of 0.048957, MASE of 0.64741 and the lowest R
2 of 0.90806. The effectiveness of the hybrid ensemble model has been revealed in the study through the comparison of XGBoost and hybrid ensemble models. The findings showed that the reduction in RMSE is achieved from 0.024169 to 0.022961 with improvement of 5.00%; whereas, MAE and MASE are reduced by 5.00%. In addition, MSE is reduced by 9.75%, while the value of R
2 increased from 0.97759 to 0.97978.
It can be established from the results presented in
Table 8 that hybrid and boosting-based models considerably improved forecasting accuracy and reliability for electricity bill. These models can be deployed in smart grid operations, renewable energy integration system and advanced energy management systems where accurate and reliable electricity bill forecasting is essential for making the best decisions.
The radar chart comparison of the electricity bill forecasting models, including RF, GBR, XGBoost, MLP, DBN, RVFL and the hybrid ensemble model is presented in
Figure 28. The radar chart efficiently illustrates the relative capabilities of each model. It is obvious from the figure the radar chart that the hybrid ensemble model consistently occupied the outermost region to demonstrate its superior forecasting performance. This is achieved by its lowest values of MAE, MSE, MASE and RMSE, coupled with the highest value of R
2 when compared to other evaluated forecasting models. The XGBoost and GBR models ranked second and third in terms of forecasting performance relative to hybrid ensemble model. The RF, RVFL, MLP and DBN show relatively poor performance across the selected evaluation metrics when compared to hybrid ensemble model. This indicates that hybrid ensemble approach can provide strong and balanced performance across all metrics.
3.5. Comparative Analysis of Forecasting Models
The radar chart presented in
Figure 29a–d reveals that the hybrid ensemble model consistently occupied the outermost area to indicate superior performance in all metrics across all domains. The solid lines indicate superior predictive performance with the lowest error values such as MAE, MSE, MASE and RMSE and the highest R
2. This shows that the model can reliably capture both linear trends and nonlinear fluctuations irrespective of the standardized domain. XGBoost and GBR models followed closely with high performance while RF and RVFL models showed poorer performance. RF and RVFL exhibited lower radar chart coverage to indicate relatively poorer predictive accuracy. MLP and DBN models showed poor predicting performance with marginal larger errors. The results presented in this section underscore the robustness and suitability of the hybrid model for practical energy system forecasting applications such as load management, renewable energy integration and electricity cost optimization.
It can be seen from the outcomes of the study that the proposed hybrid ensemble model consistently achieved superior performance compared with the individual forecasting models. The improvement of hybrid ensemble model achieved in this study has been attributed to its ability to combine the complementary strengths of RF, GBR, XGBoost, DBN, RVFL and MLP models. The hybrid model reduced individual model biases and minimized prediction uncertainties by combining the predictions of multiple learners through a validation-based weighting mechanism. The results are interpreted in terms of their practical significance beyond statistical performance. The findings of the study demonstrate that the hybrid model has achieved improved forecasting accuracy which can be used for effective utilization of solar energy generation, reliable estimation of electricity costs under TOU tariffs and improved residential energy management. The results obtained from the study indicate that accurate predictions can lead to improved system efficiency and reduction in electricity bills. Accurate predictions of load demand and solar energy generation can be utilized in energy scheduling, management of battery storage system and demand-side response strategies. The performance of the model in different households, seasons and cities cannot be conclusively established from the current dataset. The proposed hybrid model is effective for short-term forecasting under high-resolution residential data and its applications in several buildings and seasonal conditions will require retraining or domain adaptation. Consequently, additional validation using multi-season, multi-household and geographically diverse datasets is required to fully assess the generalization capability and transferability of the proposed framework.
4. Conclusions
The comprehensive assessment of seven forecasting models such as RF, GBR, XGBoost, MLP, DBN, RVFL and hybrid ensemble models was applied to load demand, solar irradiance, solar energy generation and electricity bill forecasting of a residential building in Durban, South Africa. The performance of each model was evaluated using MAE, MSE, MASE, RMSE and R2. The results indicate that the hybrid ensemble model consistently outperformed all individual models across all metrics and domains and achieved the electricity forecasting bill with the lowest MAE, RMSE, MSE, MASE of 0.018126, 0.022961, 0.00052719 and 0.30006 and the highest R2 of 0.97978 when compared to other models. This demonstrates its exceptional capacity to reduce prediction errors and integrate complementary strengths of several algorithms. The hybrid model showed superior performance in accurate tracking of demand fluctuations with minimized error metrics and improved electricity billing accuracy that supports demand-side energy management. It can be established from the outcomes of the study that hybrid ensemble models are highly suitable for practical applications in smart grids, electricity cost optimization and renewable energy systems based on its robustness and accurate predictions. The future studies must be focused on the hybridization of real-time models with the integration of IoT-enabled energy systems that are capable of further improving forecasting performance and applicability. The proposed hybrid framework demonstrates strong forecasting capability and provides a promising foundation for residential energy forecasting with several limitations such as limited interpretability, increased computational complexity, potential risk of over lifting and limited climatic diversity. The future work should be directed toward improving interpretability, reducing computational complexity and validating performance across multiple households with diverse consumption characteristics and seasonal conditions. This can be achieved by broader deployment of artificial intelligence techniques in smart residential energy management systems. Additional investigations that include external validation, uncertainty analysis and model interpretability techniques are also recommended to further assess the practical applications of the proposed approach.