Due to the variability and unpredictability of solar power, which relies heavily on weather variables such as solar irradiance and temperature, precise forecasting of photovoltaic (PV) energy production is crucial for effectively planning and operating power systems incorporating solar technology. Several machine learning algorithms (MLAs) have recently been developed for PV energy forecasting. This paper discusses various machine learning (ML) techniques for predicting the power output of a PV plant connected to the grid. Multiple algorithms, including linear regression (LR), neural networks (NNs), deep learning (DL), and k-nearest neighbors (k-NNs), are evaluated. The models use real-time data collected from various weather sensors and electrical output over a year, including solar irradiance, ambient temperature, wind speed, and cell temperature, to forecast PV power generation. Over a medium-term horizon, forecasting accuracy is assessed using datasets covering an entire week. The models are analyzed based on multiple performance metrics, such as absolute error (AE), root mean square error (RMSE), normalized absolute error (NAE), relative error (RE), relative root square error (RRSE), and correlation coefficient (R). The results indicate that the deep learning algorithm achieves the highest accuracy, with an RMSE of 0.026, an AE of 0.014, an NAE of 0.064, and an R of 99.7% for the weekly forecast validation. These precise forecasts produced in this research could assist grid operators in managing the variability of PV power output and planning to integrate fluctuating PV energy into the grid.
Cabello-López, T., Carranza-García, M., Riquelme, J.C. and García-Gutiérrez, J. (2023) Forecasting Solar Energy Production in Spain: A Comparison of Univariate and Multivariate Models at the National Level. Applied Energy , 350, Article ID: 121645. https://doi.org/10.1016/j.apenergy.2023.121645
Cantillo-Luna, S., Moreno-Chuquen, R., Celeita, D. and Anders, G. (2023) Deep and Machine Learning Models to Forecast Photovoltaic Power Generation. Energies , 16, Article 4097. https://doi.org/10.3390/en16104097
Dawan, P., Sriprapha, K., Kittisontirak, S., Boonraksa, T., Junhuathon, N., Titiroongruang, W., et al . (2020) Comparison of Power Output Forecasting on the Photovoltaic System Using Adaptive Neuro-Fuzzy Inference Systems and Particle Swarm Optimization-Artificial Neural Network Model. Energies , 13, Article 351. https://doi.org/10.3390/en13020351
Dimd, B.D., Voller, S., Cali, U. and Midtgard, O. (2022) A Review of Machine Learning-Based Photovoltaic Output Power Forecasting: Nordic Context. IEEE Access , 10, 26404-26425. https://doi.org/10.1109/access.2022.3156942
Munawar, U. and Wang, Z. (2020) A Framework of Using Machine Learning Approaches for Short-Term Solar Power Forecasting. Journal of Electrical Engineering & Technology , 15, 561-569. https://doi.org/10.1007/s42835-020-00346-4
Vennila, C., Titus, A., Sudha, T.S., Sreenivasulu, U., Reddy, N.P.R., Jamal, K., et al . (2022) Forecasting Solar Energy Production Using Machine Learning. International Journal of Photoenergy , 2022, Article ID: 7797488. https://doi.org/10.1155/2022/7797488
Das, U.K., Tey, K.S., Seyedmahmoudian, M., Mekhilef, S., Idris, M.Y.I., Van Deventer, W., et al . (2018) Forecasting of Photovoltaic Power Generation and Model Optimization: A Review. Renewable and Sustainable Energy Reviews , 81, 912-928. https://doi.org/10.1016/j.rser.2017.08.017
Ahmed, R., Sreeram, V., Mishra, Y. and Arif, M.D. (2020) A Review and Evaluation of the State-Of-The-Art in PV Solar Power Forecasting: Techniques and Optimization. Renewable and Sustainable Energy Reviews , 124, Article ID: 109792. https://doi.org/10.1016/j.rser.2020.109792
Costa, R.L.D.C. (2022) Convolutional-lstm Networks and Generalization in Forecasting of Household Photovoltaic Generation. Engineering Applications of Artificial Intelligence , 116, Article ID: 105458. https://doi.org/10.1016/j.engappai.2022.105458
Tovar, M., Robles, M. and Rashid, F. (2020) PV Power Prediction, Using CNN-LSTM Hybrid Neural Network Model. Case of Study: Temixco-Morelos, México. Energies , 13, Article 6512. https://doi.org/10.3390/en13246512
Perera, M., De Hoog, J., Bandara, K. and Halgamuge, S. (2022) Multi-Resolution, Multi-Horizon Distributed Solar PV Power Forecasting with Forecast Combinations. Expert S ystems with Applications , 205, Article ID: 117690. https://doi.org/10.1016/j.eswa.2022.117690
Grzebyk, D., Alcañiz, A., Donker, J.C.B., Zeman, M., Ziar, H. and Isabella, O. (2023) Individual Yield Nowcasting for Residential PV Systems. Solar Energy , 251, 325-336. https://doi.org/10.1016/j.solener.2023.01.036
Assouline, D., Mohajeri, N. and Scartezzini, J. (2017) Quantifying Rooftop Photovoltaic Solar Energy Potential: A Machine Learning Approach. Solar Energy , 141, 278-296. https://doi.org/10.1016/j.solener.2016.11.045
Preda, S., Oprea, S., Bâra, A. and Belciu (Velicanu), A. (2018) PV Forecasting Using Support Vector Machine Learning in a Big Data Analytics Context. Symmetry , 10, Article 748. https://doi.org/10.3390/sym10120748
Ahmad, M.W., Mourshed, M. and Rezgui, Y. (2018) Tree-Based Ensemble Methods for Predicting PV Power Generation and Their Comparison with Support Vector Regression. Energy , 164, 465-474. https://doi.org/10.1016/j.energy.2018.08.207
Ferlito, S., Adinolfi, G. and Graditi, G. (2017) Comparative Analysis of Data-Driven Methods Online and Offline Trained to the Forecasting of Grid-Connected Photovoltaic Plant Production. Applied Energy , 205, 116-129. https://doi.org/10.1016/j.apenergy.2017.07.124
Asiedu, S.T., Nyarko, F.K.A., Boahen, S., Effah, F.B. and Asaaga, B.A. (2024) Machine Learning Forecasting of Solar PV Production Using Single and Hybrid Models over Different Time Horizons. Heliyon , 10, e28898. https://doi.org/10.1016/j.heliyon.2024.e28898
Abdelmoula, I.A., Elhamaoui, S., Elalani, O., Ghennioui, A. and Aroussi, M.E. (2022) A Photovoltaic Power Prediction Approach Enhanced by Feature Engineering and Stacked Machine Learning Model. Energy Reports , 8, 1288-1300. https://doi.org/10.1016/j.egyr.2022.07.082
Hassan, A.A., Atia, D.M., El-Madany, H.T. and Eliwa, A.Y. (2024) Performance Assessment of a 30.26 Kw Grid-Connected Photovoltaic Plant in Egypt. Clean Energy , 8, 120-133. https://doi.org/10.1093/ce/zkae074
Ralf, K. and Mierswa, I. (2014) RapidMiner Studio Manual. https://docs.rapidminer.com/downloads/RapidMiner-v6-user-manual.pdf
Luo, X., Zhang, D. and Zhu, X. (2021) Deep Learning Based Forecasting of Photovoltaic Power Generation by Incorporating Domain Knowledge. Energy , 225, Article ID: 120240. https://doi.org/10.1016/j.energy.2021.120240
Alizamir, M., Kim, S., Kisi, O. and Zounemat-Kermani, M. (2020) A Comparative Study of Several Machine Learning Based Non-Linear Regression Methods in Estimating Solar Radiation: Case Studies of the USA and Turkey Regions. Energy , 197, Article ID: 117239. https://doi.org/10.1016/j.energy.2020.117239
Thaker, J. and Höller, R. (2024) Hybrid Model for Intra-Day Probabilistic PV Power Forecast. Renewable Energy , 232, Article ID: 121057. https://doi.org/10.1016/j.renene.2024.121057
Talayero, A.P., Melero, J.J., Llombart, A. and Yürüşen, N.Y. (2023) Machine Learning Models for the Estimation of the Production of Large Utility-Scale Photovoltaic Plants. Solar Energy , 254, 88-101. https://doi.org/10.1016/j.solener.2023.03.007
Huang, Q. and Wei, S. (2020) Improved Quantile Convolutional Neural Network with Two-Stage Training for Daily-Ahead Probabilistic Forecasting of Photovoltaic Power. Energy Conversion and Management , 220, Article ID: 113085. https://doi.org/10.1016/j.enconman.2020.113085
du Plessis, A.A., Strauss, J.M. and Rix, A.J. (2021) Short-Term Solar Power Forecasting: Investigating the Ability of Deep Learning Models to Capture Low-Level Utility-Scale Photovoltaic System Behaviour. Applied Energy , 285, Article ID: 116395. https://doi.org/10.1016/j.apenergy.2020.116395
Zhou, H., Zheng, P., Dong, J., Liu, J. and Nakanishi, Y. (2024) Interpretable Feature Selection and Deep Learning for Short-Term Probabilistic PV Power Forecasting in Buildings Using Local Monitoring Data. Applied Energy , 376, Article ID: 124271. https://doi.org/10.1016/j.apenergy.2024.124271
Shabbir, N., Kütt, L., Astapov, V., Daniel, K., Jawad, M., Husev, O., et al . (2024) Enhancing PV Hosting Capacity and Mitigating Congestion in Distribution Networks with Deep Learning Based PV Forecasting and Battery Management. Applied Energy , 372, Article ID: 123770. https://doi.org/10.1016/j.apenergy.2024.123770
Nguyen Trong, T., Vu Xuan Son, H., Do Dinh, H., Takano, H. and Nguyen Duc, T. (2023) Short-Term PV Power Forecast Using Hybrid Deep Learning Model and Variational Mode Decomposition. Energy Reports , 9, 712-717. https://doi.org/10.1016/j.egyr.2023.05.154
Dong, Y., Ma, X. and Fu, T. (2021) Electrical Load Forecasting: A Deep Learning Approach Based on K-Nearest Neighbors. Applied Soft Computing , 99, Article ID: 106900. https://doi.org/10.1016/j.asoc.2020.106900
Shijer, S.S., Jassim, A.H., Al-Haddad, L.A. and Abbas, T.T. (2024) Evaluating Electrical Power Yield of Photovoltaic Solar Cells with K-Nearest Neighbors: A Machine Learning Statistical Analysis Approach. e - Prime — Advances in Electrical Engineering , Electronics and Energy , 9, Article ID: 100674. https://doi.org/10.1016/j.prime.2024.100674
Al-Dahidi, S., Hammad, B., Alrbai, M. and Al-Abed, M. (2024) A Novel Dynamic/Adaptive K-Nearest Neighbor Model for the Prediction of Solar Photovoltaic Systems’ Performance. Results in Engineering , 22, Article ID: 102141. https://doi.org/10.1016/j.rineng.2024.102141
Abubakar Mas’ud, A. (2022) Comparison of Three Machine Learning Models for the Prediction of Hourly PV Output Power in Saudi Arabia. Ain Shams Engineering Journal , 13, Article ID: 101648. https://doi.org/10.1016/j.asej.2021.11.017
Liu, W., Shen, Y., Aungkulanon, P., Ghalandari, M., Le, B.N., Alviz-Meza, A., et al . (2023) Machine Learning Applications for Photovoltaic System Optimization in Zero Green Energy Buildings. Energy Reports , 9, 2787-2796. https://doi.org/10.1016/j.egyr.2023.01.114
Kuo, W., Chen, C., Hua, S. and Wang, C. (2022) Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System. Applied Sciences , 12, Article 7529. https://doi.org/10.3390/app12157529