EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

Using Machine Learning Algorithms to Forecast Solar Energy Power Output

Ali Jassim Lari, Antonio P. Sanfilippo, Dunia Bachour, Daniel Perez-Astudillo

Electronics · 2025-02-21 · 14 (5) · 866

DOI: 10.3390/electronics14050866 ↗

At a glance

Journal article in Electronics, published online on 2025-02-21. Written by Ali Jassim Lari and 3 co-authors. Cited 43 times so far (Crossref); 24 references. The full text is freely available (open access, CC BY 4.0).

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Solar energy is an inherently variable energy resource, and the ensuing uncertainty in matching energy demand presents a challenge in its operational use as an alternative energy source. The factors influencing solar energy power generation include geographic location, solar radiation, weather conditions, and solar panel performance. Solar energy forecasting is performed using machine learning for better accuracy and performance. Due to the variability of solar energy, the forecasting window is an important aspect of solar energy forecasting that must be integrated into any machine learning model. This study evaluates the suitability of selected machine learning (ML) models comprising Linear Regression, Decision Tree, Random Forest and XGBoost, which have been proven to be effective at forecasting. The data forecasting horizon used was a 24-h window in steps of 30 min. We focused on the first 30-min, 3-h, 6-h, 12-h, and 24-h windows to gain an appreciation of the impact of forecasting duration on the accuracy of prediction using the selected machine learning algorithms. The study results show that Random Forest outperformed all other tested algorithms. It recorded the best values in all evaluation metrics: an average mean absolute error of 0.13, mean absolute percentage error of 0.6, root-mean-square error of 0.28 and R-squared value of 0.89.

Cite

APA

Lari, A. J., Sanfilippo, A. P., Bachour, D., & Perez-Astudillo, D. (2025). Using Machine Learning Algorithms to Forecast Solar Energy Power Output. Electronics, 14(5), 866. https://doi.org/10.3390/electronics14050866

Vancouver

Lari AJ, Sanfilippo AP, Bachour D, Perez-Astudillo D. Using Machine Learning Algorithms to Forecast Solar Energy Power Output. Electronics. 2025;14(5):866. doi:10.3390/electronics14050866

BibTeX
@article{Lari2025,
  author = {Lari, Ali Jassim and Sanfilippo, Antonio P. and Bachour, Dunia and Perez-Astudillo, Daniel},
  title = {Using Machine Learning Algorithms to Forecast Solar Energy Power Output},
  journal = {Electronics},
  year = {2025},
  volume = {14},
  number = {5},
  pages = {866},
  doi = {10.3390/electronics14050866}
}
Start for free →