A Comprehensive Evaluation of Machine Learning Algorithms For Precise Energy Consumption Forecasting in Smart Homes
A Comprehensive Evaluation of Machine Learning Algorithms For Precise Energy Consumption Forecasting in Smart Homes
Corresponding Author:
M. J. Suganya
Department of Electrical and Electronics Engineering, Panimalar Engineering College
Varadharajapuram, Poonamallee, Chennai 600123, India
Email: [email protected]
1. INTRODUCTION
Smartgrids (SG) have emerged as a viable solution to meet the growing global energy demand. The
term "grid" refers to the traditional electrical infrastructure comprising transmission lines, substations, and other
elements that facilitate the delivery of energy from power plants to homes and businesses [1], [2]. What sets
Smart Grids apart is their capability for two-way communication between utility providers and consumers,
coupled with sensing capabilities along the grid lines. Key components of a smart grid include controls,
computers, automation systems, and other advanced technologies working in tandem to address the rapid surge
in energy requirements shown in Figure 1. The intelligence embedded in smart grids brings forth various
benefits. Noteworthy advantages include more efficient energy transmission, enhanced security measures, and
the ability to mitigate peak demand, consequently leading to a reduction in electricity rates. Smart grids are also
recognized for their integration of renewable energy sources, aligning with the global push towards sustainable
and eco-friendly power generation. Overall, smart grids represent a significant advancement in the energy
sector, ensuring a more responsive and adaptable infrastructure to meet the evolving needs of our energy-
intensive world [3]-[5]. Efficient energy management systems (EMS) relies heavily on two core pillars:
prediction and scheduling. These systems play a pivotal role in ensuring the optimal functioning of SG, tasked
with managing power flow across SG components to minimize costs and enhance overall quality [6].
Prediction, particularly of energy consumption by various appliances, is fundamental to the SG
concept. Energy consumption can be characterized as a nonlinear time series influenced by numerous
complex factors [7]. As Smart Grids increasingly incorporate renewable energy sources, the accuracy of
energy prediction methods has improved significantly. Consequently, precise prediction becomes a vital
element in the strategic planning of the entire smart grid [8]-[10]. Various approaches are employed for
energy consumption prediction, with machine learning (ML) emerging as the most popular. ML techniques
contribute to the refinement of energy forecasts, aligning with the evolving landscape of Smart Grids and
reinforcing their efficiency in managing diverse energy sources [10]-[15].
Previous studies examining the integration of a smart grid to realize the concept of a smart city. The
authors elaborate on energy-related policies essential for implementing a smart city through the smart grid.
Additionally, they explore prevailing conceptualizations, or "imaginaries," associated with the smart city
facilitated by the smart grid. These imaginaries encompass economic imperatives, environmental solutions,
and the experimental challenges inherent in smart grid technology [16]-[20]. In a related discussion, other
studies emphasize the pivotal roles of the internet of things (IoT) and smart grid in actualizing smart city
initiatives. The authors underscore the significance of energy across various sectors while addressing diverse
challenges in smart city development, such as heterogeneity, unplanned urban growth, and the adaptability of
residents [21], [22]. Other researchers also state that the smart grid as the foundational element and backbone of
the smart city. The author characterizes the smart grid as an amalgamation of the conventional power grid with
information and communication technology, emphasizing its pivotal role as the anchor of the smart city [23]-[25].
The main contributions of this paper are: i) Conducting a literature review of previous research on
energy consumption forecasting in smart homes, exploring their contributions and inferences; ii) Providing a
detailed framework for energy consumption forecasting; iii) Analyzing various methodologies used in home
energy consumption forecasting from multiple perspectives, discussing their findings and limitations; iv) The
primary focus of this exploration is the rigorous evaluation of these algorithms, using key performance
metrics such as mean absolute error (MAE), mean squared error (MSE), and R-squared; and v) This
comprehensive approach aims to enhance understanding and advance the field of energy consumption
forecasting in smart homes.
outcomes presented in prior literature are contingent on the specific dataset employed for analysis. Table 1
compares four public datasets, emphasizing distinctions in their characteristics. Ideally, comprehensive
model evaluation would be conducted across multiple datasets. However, it is common for results to be
reported on a single dataset, with model performance assessed through various metrics such as MAE, MSE,
and R-squared are presented as relative comparisons between different studied approaches shown in Figure 2.
Where MAE is the mean absolute error, a commonly used accuracy metric.
1
MAE= ∑𝑁
𝑖=0 |𝑦𝑖 − yi
̂| (2)
𝑁
- R-squared error
R-squared (R²), commonly referred to as the coefficient of determination, measures the fraction of
variability in the dependent variable that can be accounted for by the independent variables in a regression
model. It serves as an assessment of how well the model conforms to the dataset. The R² is determined by
dividing the explained variance by the total variance, providing insight into the model's effectiveness in
capturing the data's patterns shown in (3).
1
∑N ̂)
i=0(yi –yi
2
R2 = 1-N1 (3)
∑N yi 2
i=0(yi –̅̅̅)
N
- N Number of observations
𝑦𝑖 − 𝑃𝑟𝑖𝑑𝑖𝑐𝑡𝑒𝑑 𝑣𝑎𝑙𝑢𝑒𝑠
Int J Pow Elec & Dri Syst, Vol. 15, No. 4, December 2024: 2138-2144
Int J Pow Elec & Dri Syst ISSN:2088-8694 2141
Figure 7 showcases violin plots that depict the relative performance of the different forecasting
methods. Each method is represented in a different color, with the thickness of the plot indicating the
frequency of errors at a given value. The violin plots further emphasize the random forest regressor's superior
performance, showing a more concentrated distribution of lower errors, thereby reinforcing its effectiveness
in delivering more accurate and reliable predictions compared to both the linear regression and decision tree
regressor models.
5. CONCLUSION
The evaluation of three regression models linear regression, decision tree regressor, and random
forest regressor reveals varying levels of predictive accuracy. The linear regression model presents a MAE of
52.54, a MSE of 8312.76, and an R-squared value of 0.17. This indicates a relatively modest performance
with a limited ability to explain the variance in the data. The decision tree regressor shows some
improvement, with an MAE of 39.45 and an R-squared of 0.15, although its MSE of 8486.24 suggests higher
variability in its predictions compared to linear regression.
In contrast, the random forest regressor demonstrates superior performance across all metrics. It
achieves an MAE of 32.85, significantly lower than the other models, and an MSE of 4704.31, indicating
more precise predictions. Furthermore, its R-squared value of 0.53 highlights a substantially better fit to the
data, explaining more than half of the variance. These results underscore the random forest model's ability to
deliver more accurate and reliable predictions, making it the preferred choice for this regression task. Its
ensemble approach leverages multiple decision trees, enhancing its robustness and predictive power over the
other evaluated models.
REFERENCES
[1] S. N. N. Ibrahim, H. Zainuddin, Y. I. A. A. Rahim, N. A. Mansor, N. Muhammad, and F. L. M. Khir, “Simulation and prediction
of residential grid-connected photovoltaic system performance,” International Journal of Power Electronics and Drive Systems,
vol. 14, no. 1, pp. 506–515, 2023, doi: 10.11591/ijpeds.v14.i1.pp506-515.
Int J Pow Elec & Dri Syst, Vol. 15, No. 4, December 2024: 2138-2144
Int J Pow Elec & Dri Syst ISSN:2088-8694 2143
[2] A. Rafati, M. Joorabian, and E. Mashhour, “An efficient hour-ahead electrical load forecasting method based on innovative
features,” Energy, vol. 201, p. 117511, Jun. 2020, doi: 10.1016/j.energy.2020.117511.
[3] S. Debdas, S. Mohanty, S. Kundu, S. Mohanty, B. Biswas, and A. Pal, “Short-Term Load Forecasting Using Time Series
Algorithm,” in Proceedings - International Conference on Artificial Intelligence and Smart Systems, ICAIS 2021, 2021, pp. 1518–
1524, doi: 10.1109/ICAIS50930.2021.9395948.
[4] S. Pasari and A. Shah, “Time Series Auto-Regressive Integrated Moving Average Model for Renewable Energy Forecasting,” in
Sustainable Production, Life Cycle Engineering and Management, 2020, pp. 71–77.
[5] B. Nørregaard, Z. Ma, and B. N. Jørgensen, “Syddansk Universitet Global Smart Grid Transmission : Comparison of Europe , the
U . S ., and China Global Smart Grid Transmission : Comparison of Europe , the U . S ., and China,” in Proceedings of The 10th
International Green Energy Conference, 2015, no. May.
[6] S. Deepa, S. Praba, V. Deepalakshmi, L. Jayaprakash, and M. Manimurugan, “A Fuzzy Ga Based STATCOM for Power Quality
Improvement,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 8, no. 1, p. 483, Mar. 2017, doi:
10.11591/ijpeds.v8.i1.pp483-491.
[7] C. Zedak, A. Belfqih, J. Boukherouaa, and F. El Mariami, “An intelligent energy management system for optimum design and
real-time operation,” International Journal of Power Electronics and Drive Systems, vol. 14, no. 1, pp. 480–495, 2023, doi:
10.11591/ijpeds.v14.i1.pp480-495.
[8] Y. W. Lee, K. G. Tay, and Y. Y. Choy, “Forecasting Electricity Consumption Using Time Series Model,” International Journal
of Engineering & Technology, vol. 7, no. 4.30, p. 218, 2018, doi: 10.14419/ijet.v7i4.30.22124.
[9] S. Hosein and P. Hosein, “Load forecasting using deep neural networks,” in 2017 IEEE Power & Energy Society Innovative
Smart Grid Technologies Conference (ISGT), 2017, doi: 10.1109/ISGT.2017.8085971.
[10] F. Mahia, A. R. Dey, M. A. Masud, and M. S. Mahmud, “Forecasting electricity consumption using ARIMA model,” 2019, doi:
10.1109/STI47673.2019.9068076.
[11] Z. Deng, C. Liu, and Z. Zhu, “Inter-hours rolling scheduling of behind-the-meter storage operating systems using electricity price
forecasting based on deep convolutional neural network,” International Journal of Electrical Power and Energy Systems, vol.
125, 2021, doi: 10.1016/j.ijepes.2020.106499.
[12] G. Sideratos, A. Ikonomopoulos, and N. D. Hatziargyriou, “A novel fuzzy-based ensemble model for load forecasting using
hybrid deep neural networks,” Electric Power Systems Research, vol. 178, p. 106025, Jan. 2020, doi: 10.1016/j.epsr.2019.106025.
[13] L. Li, C. J. Meinrenken, V. Modi, and P. J. Culligan, “Short-term apartment-level load forecasting using a modified neural network
with selected auto-regressive features,” Applied Energy, vol. 287, p. 116509, Apr. 2021, doi: 10.1016/j.apenergy.2021.116509.
[14] Y. Dong, X. Ma, and T. Fu, “Electrical load forecasting: A deep learning approach based on K-nearest neighbors,” Applied Soft
Computing, vol. 99, 2021, doi: 10.1016/j.asoc.2020.106900.
[15] M. Dehghani, Z. Montazeri, O. P. Malik, G. Dhiman, and V. Kumar, “BOSA: Binary orientation search algorithm,” International
Journal of Innovative Technology and Exploring Engineering, vol. 9, no. 1, pp. 5306–5310, 2019, doi: 10.35940/ijitee.A4215.119119.
[16] G. Dhiman, M. Garg, A. Nagar, V. Kumar, and M. Dehghani, “A novel algorithm for global optimization: Rat Swarm Optimizer,”
Journal of Ambient Intelligence and Humanized Computing, vol. 12, no. 8, pp. 8457–8482, 2021, doi: 10.1007/s12652-020-02580-0.
[17] G. Dudek, P. Pelka, and S. Smyl, “A Hybrid Residual Dilated LSTM and Exponential Smoothing Model for Midterm Electric
Load Forecasting,” IEEE Transactions on Neural Networks and Learning Systems, vol. 33, no. 7, pp. 2879–2891, 2022, doi:
10.1109/TNNLS.2020.3046629.
[18] N. C. Batista, R. Melício, and V. M. F. Mendes, “Services enabler architecture for smart grid and smart living services providers
under industry 4.0,” Energy and Buildings, vol. 141, pp. 16–27, Apr. 2017, doi: 10.1016/j.enbuild.2017.02.039.
[19] A. R. Khan, A. Mahmood, A. Safdar, Z. A. Khan, and N. A. Khan, “Load forecasting, dynamic pricing and DSM in smart grid: A
review,” Renewable and Sustainable Energy Reviews, vol. 54, pp. 1311–1322, 2016, doi: 10.1016/j.rser.2015.10.117.
[20] I. Ozturk, “Energy Dependency and Energy Security: The Role of Energy Effıcıency and Renewable Energy Sources (The Mahbub
Ul Haq Memorial Lecture),” The Pakistan Development Review, pp. 309–330, Dec. 2022, doi: 10.30541/v52i4Ipp.309-330.
[21] M. S. Hossain, “Cloud-supported cyber-physical localization framework for patients monitoring,” IEEE Systems Journal, vol. 11,
no. 1, pp. 118–127, 2017, doi: 10.1109/JSYST.2015.2470644.
[22] E. Jarmouni, A. Mouhsen, M. Lamhammedi, and H. Ouldzira, “Energy management system and supervision in a micro-grid using
artificial neural network technique,” International Journal of Power Electronics and Drive Systems, vol. 12, no. 4, pp. 2570–
2579, 2021, doi: 10.11591/ijpeds.v12.i4.pp2570-2579.
[23] M. S. Bin Tamrin and M. R. Ahmad, “Simulation of adaptive power management circuit for hybrid energy harvester and real-time
sensing application,” International Journal of Power Electronics and Drive Systems, vol. 11, no. 2, pp. 658–666, 2020, doi:
10.11591/ijpeds.v11.i2.pp658-666.
[24] R. Mathumitha, P. Rathika, and K. Manimala, “Intelligent deep learning techniques for energy consumption forecasting in smart
buildings: a review,” Artificial Intelligence Review, vol. 57, no. 2, 2024, doi: 10.1007/s10462-023-10660-8.
[25] S. Zhao and S. Zhao, “Wind Power Interval Prediction via an Integrated Variational Empirical Decomposition Deep Learning
Model,” Sustainability (Switzerland), vol. 15, no. 7, 2023, doi: 10.3390/su15076114.
BIOGRAPHIES OF AUTHORS
Int J Pow Elec & Dri Syst, Vol. 15, No. 4, December 2024: 2138-2144