Open Access Open Access  Restricted Access Subscription Access

Smart Energy Forecasting: Harnessing Machine Learning for Consumption Prediction

R. Sai Priyamshu, S. Rakshitha, M. Bhavya Sree, K. Shirisha, H. B. Varshini Reddy, K Dora Babu

Abstract


Objective: Predicting energy consumption accurately is essential for efficient resource management, cost savings, and advancing sustainable energy practices. Traditional statistical methods often fall short when dealing with the complex and dynamic nature of energy usage patterns. This study focuses on developing a reliable machine learning (ML) model capable of delivering high-accuracy energy consumption forecasts. Methodology: We introduce a hybrid approach that integrates IoT-based data collection with advanced ML algorithms. Using smart meters, we gather historical energy consumption (in kW) and cost data (in INR), which is transmitted to the ThingSpeak cloud platform. The data is pre-processed through normalization and feature engineering before being used to train several ML models, including Linear Regression, Random Forest, and Long Short-Term Memory (LSTM) networks. The LSTM model is particularly suited for time-series forecasting due to its strength in capturing temporal patterns and dependencies. Results: Among all the models tested, the LSTM model delivers the best performance, achieving a Root Mean Square Error (RMSE) of 0.23 and a Mean Absolute Error (MAE) of 0.18. Its real-time predictions closely track actual usage, including during periods of peak demand. The system also features a working hardware prototype using Arduino and ESP8266, which supports seamless data logging and visualization. Conclusion: Our findings highlight the potential of LSTM networks in providing accurate and scalable energy consumption forecasts across residential, commercial, and industrial settings. Future developments will focus on integrating renewable energy inputs and leveraging edge computing to enable localized, real-time predictions.


Full Text:

PDF

References


A. Alsmadi, M. Al-Madi, and F. Al-Turjman, "A short-term power consumption forecasting method based on machine learning," IEEE Access, vol. 7, pp. 141329–141338, 2019. DOI: 10.1109/ACCESS.2019.2941543.

Rakshit, Pranati, Priyanshu Pal, and Sabyasachi Pramanik. "Harnessing machine learning for solar energy forecasting." Perovskite Solar Cells: Modeling the Future of Renewable Energy (2025): 224.

Thanmai, B. Thulasi, K. Vani, I. Dwaraka Srihith, I. Venkat Sai, and I. Shasikala. "Revolutionizing Healthcare with Deep Learning." Recent Trends Inform Technol Appl 6, no. 3 (2023): 16-30.

G. Gonzalez-Briones, J. M. Corchado, S. Omatu, and M. S. Mohamad, "Machine learning models for electricity consumption forecasting: A review," in Proc. 2019 2nd Int. Conf. Comput. Appl. Inf. Secur. (ICCAIS), Riyadh, Saudi Arabia, 2019, pp. 1–6. DOI: 10.1109/ICCAIS46528.2019.9074632.

J. Zhang, F. Gao, L. Liu, and Y. Zou, "A thorough examination of short-term load prediction utilizing machine learning methods," Energy, vol. 14, no. 10, p. 2958, 2021. DOI: 10.3390/en14102958.

Umunnawuike, C., S. Q. A. Mahat, M. A. B. A. Aziz, J. R. Gbonhinbor, B. Money, P. I. Nwaichi, F. Nyah et al. "Predictive energy: Harnessing artificial intelligence for sustainable energy forecasting and management." In SPE Nigeria Annual International Conference and Exhibition, p. D031S022R004. SPE, 2025.

Fathima¹, Hafsa, Soha Juveria, Syeda Hifsa Naaz, I. V. Shashikala, and K. Dora Babu. "Future Proofing Real Estate: Machine Learning for Price Predictions." (2026).

A. H. Almutairi, A. M. Alqahtani, M. A. Alqahtani, and M. R. Alotaibi, "A review of machine learning-based methods for forecasting power use," Sustainability, vol. 12, no. 8, p. 3381, 2020. DOI: 10.3390/su12083381.

J. Joumaa and S. Kadry, "Green IT: Case studies," Energy Procedia, vol. 16, pp. 1052–1058, 2012. DOI: 10.1016/j.egypro.2012.01.168.

Ikbal, Tarik. "Empowering a sustainable future: unleashing the potential of machine learning for energy efficiency and conservation." In Green Machine Learning and Big Data for Smart Grids, pp. 235-249. Elsevier, 2025.


Refbacks

  • There are currently no refbacks.