Predicting the Potential of Renewable Solar Energy Based on Weather Data in Indonesia Using the Random Forest Method

Authors

  • Noviyanti. P Institut Shanti Bhuana, Indonesia
  • Maya Sari Institut Shanti Bhuana, Indonesia
  • Kusnanto Kusnanto Institut Shanti Bhuana, Indonesia

DOI:

https://doi.org/10.70609/g-tech.v9i4.7776

Keywords:

Renewable Energy, Greenhouse Gas Emissions, Random Forest, Solar Energy, Renewable Energy Prediction

Abstract

Renewable energy plays a crucial role in reducing greenhouse gas (GHG) emissions. Excessive use of fossil fuels, such as coal, can produce GHG emissions that trigger extreme weather and global warming. Therefore, efforts to increase renewable energy utilization are necessary, in line with the Government Work Plan (RKP) target, which targets renewable energy contributions to reach 23% by 2025. This study aims to predict the potential for solar renewable energy in an area based on radiation, temperature, and rainfall variables. The method used is a supervised learning-based Random Forest. Weather data was obtained through the Open Meteo API, then processed by assigning weights to variables to produce output labels, which were then used in the classification process and model performance evaluation. The results showed that the Random Forest model produced an accuracy of 99.82%, with predictions of low/no potential energy being completely correct, medium energy potential experiencing only one error, and high energy potential also experiencing only one error. Based on these findings, the Random Forest method has proven effective in predicting solar power potential with high accuracy and is able to identify variables with the highest to lowest levels of importance.

References

Abdelsamiea, A.T., & Abd El-Aal, M.F. (2025). Optimizing Energy Consumption Efficiency in Global Industrial Systems Using the Random Forest Algorithm. International Journal of Energy Economics and Policy, 15(3), 239–244. https://doi.org/10.32479/ijeep.18796

Annur, CM (2022). This is the Growth of Renewable Energy in Indonesia until 2021. Katadata Media Network. https://databoks.katadata.co.id/datapublish/2022/11/23/ini-pertumbuhan-energi-terbarukan-di-indonesia-sampai-2021

Ardianto, Raharjo, AB, & Purwitasari, D. (2022). Random Forest Regression for Predicting Power Production of Solar Power Plants. Briliant: Journal of Research and Conceptual Studies, 7(4), 1058. https://doi.org/10.28926/briliant.v7i4.1036

Directorate General of Electricity. (2021). Government Optimistic That 23% of New and Renewable Energy Will Be Achieved by 2025. Ministry of Energy and Mineral Resources. https://www.esdm.go.id/id/berita-unit/direktorat-jenderal-ketenagalistrikan/pemerintah-optimistis-ebt-23-tahun-2025-tercapai

Efendi, MS, & Zyen, AK (2024). Application of the Random Forest Algorithm for Sales Prediction and Product Inventory Systems. 5(1), 12–20. https://doi.org/10.30865/resolusi.v5i1.2149

Fadil Danu Rahman, Mulki, MIZ, & Taryana, A. (2024). Clustering and Classification of Cilacap Weather Data Using the K-Means and Random Forest Methods. SINTA Journal: Information Systems and Computing Technology, 1(2), 90–97. https://doi.org/10.61124/sinta.v1i2.15

Febriani Irma, M. (2024). High Temperature Rise Due to Increased Greenhouse Gas Emissions in Indonesia. JSSIT: Journal of Science and Applied Science, 2(1), 26–32. https://doi.org/10.30631/jssit.v2i1.49

Febtiawan, EP, Syamsul, LA, Akbar, I., & Rachman, AS (2024). Forecasting Photovoltaic Energy Production Using the Random Forest Classification Algorithm. Journal of Information System Research (JOSH), 5(4), 1053–1062. https://doi.org/10.47065/josh.v5i4.5514

Horhoruw, LFM, Pratama, A., Asri, Y., & P, N. (2024). MACHINE LEARNING EXPLORATION WITH SCIKIT-LEARN: Machine Learning Strategy. UWAIS Inspirasi Indonesia.

Liu, Z., Guo, H., Zhang, Y., & Zuo, Z. (2025). A Comprehensive Review of Wind Power Prediction Based on Machine Learning: Models, Applications, and Challenges. Energies, 18(2), 1–17. https://doi.org/10.3390/en18020350

Mahmuda, S. (2024). Implementation of the Random Forest Method on YouTube Channel Content Categories. Jurnal Jendela Matematika, 2(01), 21–31. https://doi.org/10.57008/jjm.v2i01.633

Malakouti, S. M. (2023). Use machine learning algorithms to predict turbine power generation to replace renewable energy with fossil fuels. Energy Exploration and Exploitation, 41(2), 836–857. https://doi.org/10.1177/01445987221138135

Mallala, B., Ahmed, AIU, Pamidi, SV, Faruque, MO, & M, RR (2025). Forecasting global sustainable energy from renewable sources using random forest algorithm. Results in Engineering, 25(November 2024), 103789. https://doi.org/10.1016/j.rineng.2024.103789

P, N., Gudiato, C., Frigia, L., Horhoruw, M., & Asri, Y. (2025). MACHINE LEARNING APPROACH: A Practical Guide to Big Data and Regression Analysis. UWAIS Inspiration of Indonesia.

Pratiwi, GE, & Nugroho, A. (2024). IMPLEMENTATION OF THE RANDOM FOREST METHOD FOR CLASSIFICATION OF BEST-SELLING SOAP PRODUCTS. 7(2), 531–540. https://doi.org/10.37600/tekinkom.v7i2.1610

Putra, A., Veronica, D., & Bansa, Y.A. (2023). Revenue from Natural Resource Management and Its Impact on Non-Tax State Revenue in Indonesia. Journal of Development, 11(1), 29–37. https://doi.org/10.53978/jd.v11i1.272

Rahman, FI, Lukman, & Hildayati. (2025). Road Damage Classification System Using Machine Learning Method with K-Means and Random Forest Algorithms. 3(1).

Suci Amaliah, Nusrang, M., & Aswi, A. (2022). Application of the Random Forest Method for Classifying Coffee Drink Variants at the Konijiwa Bantaeng Coffee Shop. VARIANSI: Journal of Statistics and Its Application on Teaching and Research, 4(3), 121–127. https://doi.org/10.35580/variansiunm31

Taneza, E., & Firdaus. (2025). SMART SYSTEM FOR MONITORING AND OPTIMIZING SOLAR POWER PLANTS PERFORMANCE. Scientific Journal of Electrical Engineering. https://doi.org/10.14710/transmisi.27.1.20-32

Tjiwidjaja, H., & Salima, R. (2023). The Impact of Fossil Fuels on Climate Change and Green Energy-Based Solutions. 2(2), 166–172.

Villegas-Mier, C.G., Rodriguez-Resendiz, J., Álvarez-Alvarado, J.M., Jiménez-Hernández, H., & Odry, Á. (2022). Optimized Random Forest for Solar Radiation Prediction Using Sunshine Hours. Micromachines, 13(9). https://doi.org/10.3390/mi13091406

Yesğmur, A., Kayakuş, M., & Terzioğlu, M. (2023). Predicting renewable energy production by machine learning methods: The case of Turkey. Environmental Progress & Sustainable Energy, 42(3). https://aiche.onlinelibrary.wiley.com/doi/10.1002/ep.14077

Downloads

Published

2025-10-02

How to Cite

Predicting the Potential of Renewable Solar Energy Based on Weather Data in Indonesia Using the Random Forest Method. (2025). G-Tech: Jurnal Teknologi Terapan, 9(4), 1771-1781. https://doi.org/10.70609/g-tech.v9i4.7776

Most read articles by the same author(s)