Journal of Intelligent Systems and Internet of Things

Journal DOI

https://doi.org/10.54216/JISIoT

Submit Your Paper

2690-6791ISSN (Online) 2769-786XISSN (Print)

Volume 15 , Issue 1 , PP: 157-166, 2025 | Cite this article as | XML | Html | PDF | Full Length Article

Weekly and Monthly Forecasting Rainfall Model based on LSTM

Kifah Hamzah Allawi 1 * , Hadab Khalid Obayes 2

  • 1 University of Babylon, College of science for Women, Department of Computer Science, Babylon, Iraq - (kefah.alalwany.gsci138@student.uobabylon.edu.iq)
  • 2 University of Babylon, College of Education for Human Sciences, Department of Geography, Babylon, Iraq - (hedhab@uobabylon.edu.iq)
  • Doi: https://doi.org/10.54216/JISIoT.150113

    Received: July 05, 2024 Revised: October 02, 2024 Accepted: December 27, 2024
    Abstract

    The climate of Iraq has become increasingly variable in recent years, characterized by high temperatures and low rainfall. Rainfall plays a crucial role in agriculture in Iraq and thus affects the economy. Rainfall prediction has become essential for the favorable management of rainfall in various aspects of life. In this research, weather data were collected from Hilla station of the Climate Department of the General Authority of Meteorology and Seismology in Iraq for the period from 2012 to 2022. The data consist of several columns: date, wind speed, maximum temperature, minimum temperature, relative humidity, sea pressure, normal temperature, and rainfall. The time series data used with the long short-term memory method represents one of the most effective applications of deep learning techniques. Two LSTMs were trained the first time using all available features, which are 6 features, in addition to training the LSTM and the inputs were the influential features that gave high values in the correlation matrix (wind speed, sea pressure, and relative humidity) to achieve accuracy and reduce the prediction error of rainfall. The weekly and monthly forecasts made with the influential features outperformed the forecasts made with all features. The evaluation metric (root mean square error) showed lower error when using all data columns (RMSE = 0.05 and RMSE = 0.025) for weekly and monthly forecasts, respectively, and less errors when using only a limited number of columns (RMSE = 0.04 and RMSE = 0.01) for weekly and monthly forecasts, respectively.

    Keywords :

    Rainfall forecasting , LSTM , Deep learning , Machine learning

    References

    [1] T. Dananjali, S. Wijesinghe, and J. Ekanayake, “Forecasting Weekly Rainfall Using Data Mining Technologies,” From Innovation to Impact (FITI), IEEE, 2020, pp. 1–4.

    [2] S. Hudnurkar and N. Rayavarapu, “On the performance analysis of rainfall prediction using mutual information with artificial neural network,” International Journal of Electrical and Computer Engineering, vol. 13, no. 2, pp. 2101–2113, 2023, doi: 10.11591/ijece.v13i2.pp2101-2113.

    [3] R. K. Grace and B. Suganya, “Machine Learning based Rainfall Prediction,” 6th International Conference on Advanced Computing and Communication Systems (ICACCS), 2020, pp. 227–229, doi: 10.1109/ICACCS48705.2020.9074233.

    [4] B. Bochenek, “Machine Learning in Weather Prediction and Climate Analyses—Applications and Perspectives,” Journal of Climate Research, vol. 10, no. 1, pp. 1–16, 2022.

    [5] D. Sharma and D. P. Sharma, “Comparison of the Proposed Rainfall Prediction Model Designed using Data Mining Techniques with the Existing Rainfall Prediction Methods,” Indian Journal of Data Mining, vol. 3, no. 2, pp. 7–10, 2023, doi: 10.54105/ijdm.b1627.113223.

    [6] H. K. Obayes and F. Al-Shareefi, “Secure Heart Disease Classification System Based on Three Pass Protocol and Machine Learning,” Iraqi Journal of Computer Science and Mathematics, vol. 4, no. 2, pp. 72–82, 2023.

    [7] S. Manandhar, S. Dev, Y. H. Lee, Y. S. Meng, and S. Winkler, “A Data-Driven Approach for Accurate Rainfall Prediction,” IEEE Transactions on Geoscience and Remote Sensing, vol. 57, no. 11, pp. 9323–9330, 2019, doi: 10.1109/TGRS.2019.2926110.

    [8] N. Kumari and V. Jain, “Rainfall Prediction Model Using LSTM with Seasonal Trends,” Journal of Applied Data Science, vol. 4, no. 3, pp. 45–56, 2021.

    [9] M. M. Hassan et al., “Machine Learning-Based Rainfall Prediction: Unveiling Insights and Forecasting for Improved Preparedness,” IEEE Access, vol. 11, pp. 132196–132222, 2023, doi: 10.1109/ACCESS.2023.3333876.

    [10] A. Y. Barrera-Animas et al., “Rainfall prediction: A comparative analysis of modern machine learning algorithms for time-series forecasting,” Machine Learning with Applications, vol. 7, pp. 100204, 2022, doi: 10.1016/j.mlwa.2021.100204.

    [11] D. Z. Haq et al., “Long Short-Term Memory Algorithm for Rainfall Prediction Based on El-Nino and IOD Data,” Procedia Computer Science, vol. 179, pp. 829–837, 2021, doi: 10.1016/j.procs.2021.01.071.

    [12] J. Diez-Sierra and M. del Jesus, “Long-term rainfall prediction using atmospheric synoptic patterns in semi-arid climates with statistical and machine learning methods,” Journal of Hydrology, vol. 586, no. January, p. 124789, 2020, doi: 10.1016/j.jhydrol.2020.124789.

    [13] W. Li et al., “High temporal resolution rainfall–runoff modeling using long-short-term-memory (LSTM) networks,” Neural Computing and Applications, vol. 33, no. 4, pp. 1261–1278, 2021, doi: 10.1007/s00521-020-05010-6.

    [14] Y. O. Ouma, R. Cheruyot, and A. N. Wachera, “Rainfall and runoff time-series trend analysis using LSTM recurrent neural network,” Complex and Intelligent Systems, vol. 8, no. 1, pp. 213–236, 2022, doi: 10.1007/s40747-021-00365-2.

    [15] A. Samad et al., “An Approach for Rainfall Prediction Using Long Short-Term Memory Neural Network,” 5th International Conference on Computing Communication and Automation (ICCCA), 2020, pp. 190–195, doi: 10.1109/ICCCA49541.2020.9250809.

    [16] H. K. Obayes et al., “Predicting COVID-19 Vaccinators Based on Machine Learning,” Bulletin of Electrical Engineering and Informatics, vol. 12, no. 3, pp. 1648–1656, 2023.

    [17] M. Liu et al., “The Applicability of LSTM-KNN Model for Real-Time Flood Forecasting in Different Climate Conditions,” International Journal of Hydrology Engineering, vol. 5, no. 2, pp. 45–58, 2022.

    [18] Z. Xiang et al., “A Rainfall-Runoff Model With LSTM-Based Sequence-to-Sequence Learning,” Water Resources Research, vol. 56, no. 7, pp. 1–16, 2021, doi: 10.1029/2019WR025326.

    [19] T. Sap et al., “Long-Short Term Memory Technique for Monthly Rainfall,” Symmetry (Basel), vol. 14, no. 1599, pp. 1–24, 2022.

    [20] X. H. Le et al., “Application of Long Short-Term Memory (LSTM) Neural Network for Flood Forecasting,” Water (Switzerland), vol. 11, no. 7, pp. 1–15, 2019.

    [21] C. Zhang and P. C. Woodland, “High Order Recurrent Neural Networks for Acoustic Modelling,” ICASSP, IEEE International Conference on Acoustics Speech Signal Processing, 2018, pp. 5849–5853, doi: 10.1109/ICASSP.2018.8461608.

    [22] H. K. Obayes et al., “Sentiment Classification of User’s Reviews on Drugs,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 23, no. 1, pp. 345–353, 2021.

    [23] C. M. Liyew and H. A. Melese, “Machine Learning Techniques to Predict Daily Rainfall Amount,” Journal of Big Data, vol. 8, no. 1, 2021, doi: 10.1186/s40537-021-00545-4.

    [24] B. Thai et al., “Development of Advanced Artificial Intelligence Models for Daily Rainfall Prediction,” Atmospheric Research, vol. 237, p. 104845, 2020, doi: 10.1016/j.atmosres.2020.104845.

    [25] N. S. Sani et al., “Ensemble Learning for Rainfall Prediction,” International Journal of Advanced Computer Science and Applications, vol. 11, no. 11, 2020.

    [26] P. S. Maya Gopal and R. Bhargavi, “Performance Evaluation of Best Feature Subsets for Crop Yield Prediction,” Applied Artificial Intelligence, vol. 33, no. 7, pp. 621–642, 2019.

    [27] S. Dhamodaran et al., “Spatial Interpolation of Meteorological Data and Forecasting Rainfall,” AIP Conference Proceedings, vol. 2207, no. February, 2020.

    [28] S. Manandhar et al., “A Data-Driven Approach for Accurate Rainfall Prediction,” IEEE Transactions on Geoscience and Remote Sensing, vol. 57, no. 11, pp. 9323–9330, 2019.

    [29] M. Hassan et al., “Machine Learning for Rainfall Prediction: Insights and Forecasting,” IEEE Access, vol. 11, no. November, 2023.

    [30] J. Diez-Sierra and M. del Jesus, “Long-Term Rainfall Prediction Using Atmospheric Synoptic Patterns,” Journal of Hydrology, vol. 586, 2020.

    Cite This Article As :
    Hamzah, Kifah. , Khalid, Hadab. Weekly and Monthly Forecasting Rainfall Model based on LSTM. Journal of Intelligent Systems and Internet of Things, vol. , no. , 2025, pp. 157-166. DOI: https://doi.org/10.54216/JISIoT.150113
    Hamzah, K. Khalid, H. (2025). Weekly and Monthly Forecasting Rainfall Model based on LSTM. Journal of Intelligent Systems and Internet of Things, (), 157-166. DOI: https://doi.org/10.54216/JISIoT.150113
    Hamzah, Kifah. Khalid, Hadab. Weekly and Monthly Forecasting Rainfall Model based on LSTM. Journal of Intelligent Systems and Internet of Things , no. (2025): 157-166. DOI: https://doi.org/10.54216/JISIoT.150113
    Hamzah, K. , Khalid, H. (2025) . Weekly and Monthly Forecasting Rainfall Model based on LSTM. Journal of Intelligent Systems and Internet of Things , () , 157-166 . DOI: https://doi.org/10.54216/JISIoT.150113
    Hamzah K. , Khalid H. [2025]. Weekly and Monthly Forecasting Rainfall Model based on LSTM. Journal of Intelligent Systems and Internet of Things. (): 157-166. DOI: https://doi.org/10.54216/JISIoT.150113
    Hamzah, K. Khalid, H. "Weekly and Monthly Forecasting Rainfall Model based on LSTM," Journal of Intelligent Systems and Internet of Things, vol. , no. , pp. 157-166, 2025. DOI: https://doi.org/10.54216/JISIoT.150113