Morocco is a country facing significant climate variability, which poses challenges to its agricultural productivity and socio-economic stability. Machine learning techniques were employed using historical climate data from Morocco. The Random Forest algorithm was selected due to its robust performance in handling complex datasets. The model showed a prediction accuracy of approximately 78% with an uncertainty interval indicating that the actual performance could range between 65-90%. This suggests a promising approach for climate forecasting and adaptation planning. Machine learning models have demonstrated potential in enhancing climate predictions, which can inform more effective adaptation strategies in Morocco. The findings suggest integrating these machine learning models into existing climate change adaptation frameworks to improve decision-making processes. Model estimation used =argmin_ᵢ (yᵢ, f_ (xᵢ) ) +₂², with performance evaluated using out-of-sample error.
Elhazar et al. (Sun,) studied this question.