Implementasi Algoritma Prophet dengan Grid Search Hyperparameter Tuning untuk Prediksi Konsumsi Energi Listrik Berbasis IoT
DOI:
https://doi.org/10.47065/bulletincsr.v6i5.1182Keywords:
Prophet; IoT; Time Series; MAPE; PZEM-004T; Hyperparameter TuningAbstract
?Real-time monitoring of household electricity consumption is not yet sufficient to support adaptive energy management. Therefore, an accurate yet easily interpretable prediction capability is required. This study implements the Prophet algorithm, an additive time series model based on trend and seasonal components, as the core method for predicting daily energy consumption in an Internet of Things (IoT)-based system with per-room granularity. Data were obtained from PZEM-004T sensors and NodeMCU ESP32 modules in three rooms over 30 days, processed through a two-stage grid search procedure for model hyperparameter optimization. The evaluation results show a testing MAPE of 1.05%–2.01% across the three rooms, all falling into the highly accurate category (<10%). Furthermore, the average MAPE difference between the training and testing data reached only 0.42 percentage points, indicating good model generalization without overfitting. Component decomposition analysis reveals that the consumption pattern is dominated by a stable linear trend with a low-amplitude weekly seasonal pattern (±0.06 kWh), thereby providing a higher level of interpretability compared to black-box models. The 30-day-ahead projection yields a total estimated consumption of approximately 384 kWh (~IDR 554,817) for the three rooms, which can be utilized as a basis for budget planning and adaptive electrical load management. The main contribution of this study is a transparent and reproducible Prophet tuning procedure for per-room electricity consumption data with limited historical volume, supported by metrological validation of the acquisition sensor as an input quality assurance step, a context that has not been widely explored in prior Prophet literature
Downloads
References
Kementrian ESDM, “Handbook Of Energy & Economic Statistics Of Indonesia 2024”, [Online]. Available: https://www.esdm.go.id/assets/media/content/content-handbook-of-energy-and-economic-statistics-of-indonesia-2024.pdf
K. A. Yasa, I. M. Purbhawa, I. M. S. Yasa, I. W. Teresna, A. Nugroho, and S. Winardi, “IoT-based Electrical Power Recording using ESP32 and PZEM-004T Microcontrollers,” J. Comput. Sci. Technol. Stud., vol. 5, no. 4, pp. 62–68, 2023, doi: 10.32996/jcsts.2023.5.4.7.
K. M. W. Hidayat and M. G. Al-Faris, “IoT-Based Electrical Power Consumption Monitoring System in Households Using ESP32 and PZEM-004T,” Brill. Res. Artif. Intell., vol. 5, no. 2, pp. 1077–1081, 2025, doi: 10.47709/brilliance.v5i2.6368.
W. M. Sanya, G. Bajpai, O. H. Kombo, and E. Twahirwa, “Real-Time Data Analytics for Monitoring Electricity Consumption Using IoT Technology,” Tanzania J. Eng. Technol., vol. 41, no. 1, pp. 28–37, 2022, doi: 10.52339/tjet.vi.770.
R. Chéour et al., “Towards hybrid energy-efficient power management in wireless sensor networks,” Sensors, vol. 22, no. 1, pp. 1–17, 2022, doi: 10.3390/s22010301.
M. Bourdeau, J. Waeytens, N. Aouani, P. Basset, and E. Nefzaoui, “A Wireless Sensor Network for Residential Building Energy and Indoor Environmental Quality Monitoring: Design, Instrumentation, Data Analysis and Feedback,” Sensors, vol. 23, no. 12, 2023, doi: 10.3390/s23125580.
S. Naifar, O. Kanoun, and C. Trigona, “Energy Harvesting Technologies and Applications for the Internet of Things and Wireless Sensor Networks,” Sensors, vol. 24, no. 14, pp. 1–5, 2024, doi: 10.3390/s24144688.
G. Hoendarto, A. Saikhu, and R. V. Hari Ginardi, “Bridging IoT devices and machine learning for predicting power consumption: case study universitas Widya Dharma Pontianak,” Energy Informatics, vol. 8, no. 1, 2025, doi: 10.1186/s42162-025-00540-6.
A. Angdresey, L. Sitanayah, and Z. M. P. Rumpesak, “An Electricity Consumption Monitoring and Prediction System Based on The Internet of Things,” in Proceedings of the 2022 International Conference on Informatics, Multimedia, Cyber and Information System (ICIC), IEEE, 2022. doi: 10.1109/ICIC56845.2022.10007020.
M. Sari et al., “Machine Learning-Based Energy Use Prediction for the Smart Building Energy Management System,” J. Inf. Technol. Constr., vol. 28, no. April, pp. 622–645, 2023, doi: 10.36680/j.itcon.2023.033.
V. K. Kolluru, Y. Challagundla, A. N. Chintakunta, B. Roy, A. Bermak, and D. S. M. Ranjitkar, “AI-Driven Energy Optimization: Household Power Consumption Prediction With LSTM Networks and PyTorch-Ray Tune in Smart IoT Systems,” in Proceedings of the 2024 International Conference on Microelectronics (ICM), IEEE, 2024. doi: 10.1109/icm63406.2024.10815802.
Y. Natarajan, S. K. Md Alwi, A. Mukherjee, G. P. Ganapathy, V. Mohanavel, and S. Rajkumar, “Enhancing Building Energy Efficiency with IoT-Driven Hybrid Deep Learning Models for Accurate Energy Consumption Prediction,” Sustainability, vol. 16, no. 5, p. 1925, 2024, doi: 10.3390/su16051925.
G. Hafeez et al., “Efficient energy management of IoT-enabled smart homes under price-based demand response program in smart grid,” Sensors (Switzerland), vol. 20, no. 11, 2020, doi: 10.3390/s20113155.
A. Rahman, S. Hossain, S. Ahmed, and M. T. Ahmed, “IoT Based Smart Energy Consumption Prediction for Home Appliances,” Int. J. Inf. Eng. Electron. Bus., vol. 17, no. 2, pp. 111–128, 2025, doi: 10.5815/ijieeb.2025.02.06.
et al. M.S. Sheela, S. Gopalakrishnan, I.P. Begum, J.J. Hephziah, M. Gopianand, D. Harika, “14. 21. View of Enhancing Energy Efficiency With Smart Building Energy Management System Using Machine Learning and IOT.pdf.”
M. Stogia, G. Salerno, S. Ferretti, and D. Montesi, “A Scalable and User-Friendly Framework Integrating IoT and Digital Twins for Home Energy Management Systems,” Appl. Sci., vol. 14, no. 24, p. 11834, 2024, doi: 10.3390/app142411834.
M. Syamala, C. R. Komala, P. V Pramila, S. Dash, S. Meenakshi, and S. Boopathi, “Machine Learning-Integrated IoT-Based Smart Home Energy Management System,” in Handbook of Research on Deep Learning Techniques for Cloud-Based Industrial IoT, Hershey, PA: IGI Global, 2023, pp. 219–235. doi: 10.4018/978-1-6684-8098-4.ch013.
S. J. Taylor and B. Letham, “Forecasting at Scale,” Am. Stat., vol. 72, no. 1, pp. 37–45, 2018, doi: 10.1080/00031305.2017.1380080.
S. Arslan, “A Hybrid Forecasting Model Using LSTM and Prophet for Energy Consumption with Decomposition of Time Series Data,” PeerJ Comput. Sci., vol. 8, p. e1001, 2022, doi: 10.7717/peerj-cs.1001.
S. Liang et al., “Energy Consumption Prediction Using the GRU-MMattention-LightGBM Model with Features of Prophet Decomposition,” PLoS One, vol. 18, no. 1, p. e0277085, 2023, doi: 10.1371/journal.pone.0277085.
J. Kim, Y. Kim, G. Kim, C.-K. Kim, and S. Kim, “Short- and Medium-Term Electricity Consumption Forecasting Using Prophet and GRU,” Sustainability, vol. 15, no. 22, p. 15860, 2023, doi: 10.3390/su152215860.
S. F. Stefenon, L. O. Seman, V. C. Mariani, and L. dos S. Coelho, “Aggregating Prophet and Seasonal Trend Decomposition for Time Series Forecasting of Italian Electricity Spot Prices,” Energies, vol. 16, no. 3, p. 1371, 2023, doi: 10.3390/en16031371.
W. Sulandari, Y. Yudhanto, R. Hapsari, M. D. Wijayanti, and H. F. Pardede, “Implementation of Prophet in American Electricity Forecasting With and Without Parameter Tuning,” Media Stat., vol. 17, no. 1, pp. 93–104, 2024, doi: 10.14710/medstat.17.1.93-104.
“LSTM vs. Prophet: Achieving Superior Accuracy in Dynamic Electricity Demand Forecasting,” Energies, vol. 18, no. 2, p. 278, 2025, doi: 10.3390/en18020278.
R. V. Klyuev et al., “Methods of Forecasting Electric Energy Consumption: A Literature Review,” Energies, vol. 15, no. 23, 2022, doi: 10.3390/en15238919.
S. Kwarteng and P. Andreevich, “Comparative Analysis of ARIMA, SARIMA and Prophet Model in Forecasting,” Res. Dev., vol. 5, no. 4, pp. 110–120, 2024, doi: 10.11648/j.rd.20240504.13.
C. D. Lewis, Industrial and Business Forecasting Methods. London: Butterworths, 1982.
A. Jain and S. C. Gupta, “Evaluation of electrical load demand forecasting using various machine learning algorithms,” Front. Energy Res., vol. 12, no. June, pp. 1–18, 2024, doi: 10.3389/fenrg.2024.1408119.
A. A. Pierre, S. A. Akim, A. K. Semenyo, and B. Babiga, “Peak Electrical Energy Consumption Prediction by ARIMA, LSTM, GRU, ARIMA-LSTM and ARIMA-GRU Approaches,” Energies, vol. 16, no. 12, 2023, doi: 10.3390/en16124739.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Implementasi Algoritma Prophet dengan Grid Search Hyperparameter Tuning untuk Prediksi Konsumsi Energi Listrik Berbasis IoT
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Suhardi Suhardi, Tedy Rismawan, Cucu Suhery, Irma Nirmala

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













