Affiliation:
1. Electrical Engineering Department, College of Engineering, Najran University 1 , Najran 61441, Saudi Arabia
2. Department of Computer Science, COMSATS University Islamabad, Sahiwal Campus 2 , Sahiwal 57000, Pakistan
3. Artificial Intelligence and Sensing Technologies (AIST) Research Center, University of Tabuk 3 , Tabuk 71491, Saudi Arabia
4. Faculty of Maritime Studies; King Abdualziz University 4 , Jeddah 22230, Saudi Arabia
5. Department of Information Systems, College of Computer Science & Information Systems, Najran University 5 , Najran 61441, Saudi Arabia
Abstract
Producing and supplying energy efficiently are important for many countries. Using models to predict energy production can help reduce costs, improve efficiency, and make energy systems work better. This research predicts solar electricity production in the Najran and Riyadh regions of Saudi Arabia by analyzing 14 weather factors. The weather factors that were considered in the study include date, time, Global Horizontal Irradiance (GHI), clear sky, top of atmosphere, code, temperature, relative humidity, pressure, wind speed, wind direction, rainfall, snowfall, and snow depth. GHI is the most important factor because it determines how much solar energy a system can produce. Therefore, it is important to be able to predict GHI accurately. This study used a variety of data-driven models to predict GHI, including the elastic net regression, linear regression, random forest, k-nearest neighbor, gradient boosting regressor, light gradient boosting regressor, extreme gradient boosting regressor, and decision tree regressor. The models were evaluated using a set of metrics, including the mean absolute error, mean squared error, root mean square error, coefficient of determination (R2), and adjusted coefficient of determination. This study found that the decision tree regression, Random Forest (RF), and Extreme Gradient Boosting (XGB) models performed better in the Riyadh region than in the Najran region. The R2 values for the Riyadh region were 99%, 99%, and 98%, while the R2 values for the Najran region were 89%, 94%, and 94%. This suggests that the Riyadh region is a more suitable location for solar energy conversion systems. These findings are important for policymakers and investors who are considering the development of solar energy projects in Saudi Arabia.