IDEAS home Printed from https://ideas.repec.org/a/ajp/edwast/v9y2025i8p148-178id9249.html
   My bibliography  Save this article

Machine learning models for rainfall prediction over arid climatic regions of South Africa

Author

Listed:
  • Jeremiah Ayodele Ogunniyi
  • Mohamed A. M. Abd Elbasit
  • Ibidun Christiana Obagbuwa

Abstract

This study focused on predicting rainfall in four arid climatic zones in South Africa using four machine learning models. Prior to this, numerical models were used for weather forecasts in South Africa. Therefore, this study explores the use of machine learning models for rainfall prediction. The models used include linear regression, random forest, support vector machine, and ridge and lasso regression. The arid climatic zones were divided into four regions using the Koppen-Geiger climate classification system, with three locations selected for each zone. Atmospheric datasets from the South African Weather Service (1991–2023) and NASA (1983–2023) were utilized. These datasets were trained from 1983 to 2014 and tested from 2015 to 2023 using the four models. The monthly rainfall predictions obtained after training and testing were compared with actual data to validate the models' accuracy. Evaluation metrics such as mean absolute error, mean square error, root mean square error, correlation coefficient, and coefficient of determination were used to assess each model's performance. Support vector machine and random forest were the most accurate models across nearly all climatic zones. Linear regression, as well as ridge and lasso regression, also performed well in various regions. The study further indicated that atmospheric parameters such as dew point, cloud cover, and water vapor are essential at similar time lags for improved predictive performance.

Suggested Citation

  • Jeremiah Ayodele Ogunniyi & Mohamed A. M. Abd Elbasit & Ibidun Christiana Obagbuwa, 2025. "Machine learning models for rainfall prediction over arid climatic regions of South Africa," Edelweiss Applied Science and Technology, Learning Gate, vol. 9(8), pages 148-178.
  • Handle: RePEc:ajp:edwast:v:9:y:2025:i:8:p:148-178:id:9249
    as

    Download full text from publisher

    File URL: https://learning-gate.com/index.php/2576-8484/article/view/9249/3052
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ajp:edwast:v:9:y:2025:i:8:p:148-178:id:9249. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Melissa Fernandes (email available below). General contact details of provider: https://learning-gate.com/index.php/2576-8484/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.