Volume 8 , Issue 1 , PP: 60-69, 2024 | Cite this article as | XML | Html | PDF | Full Length Article
Khaled Sh. Gaber 1 , Mohamed Abd Elmonem Elsebaey 2 , Ahmed Al-Sayed Ibrahim 3
Doi: https://doi.org/10.54216/JAIM.080105
Weather forecasting is a major discipline that plays an important role in fields such as agriculture, transport, and emergency management, and it largely depends on accurate forecasts. Concerning this problem, this work aimed to analyze the effectiveness of recurrent neural networks, particularly the Long Short-Term Memory (LSTM), for estimating rainfall depending on precipitation, maximum temperature, minimum temperature, and wind speed. We will therefore use a large database containing recorded weather data obtained over several years to calibrate accurate predictive models designed to distinguish between drizzle, rain, sun, snow, and fog. The main idea of the work is to teach LSTM models that are capable of revealing temporal relations and patterns in sequential data, which makes them suitable to work on various time series forecasting such as weather prediction. The data is preprocessed effectively to clean it and make it ideal for our analysis to accurately compare the performance of one model against the others, we have divided the data into training, validation, and testing sets. The concurrency of the proposed LSTM model is then evaluated with the Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²) to measure the forecasting accuracy. The findings show a better predictive performance uplift whereby the best-performing LSTM model has an MSE of 8.74, RMSE of 2.96, MAE of 2.35, and R² of 0.83. Such metrics represent logical dependence between the predicted and actual weather conditions, proving thus the efficiency of the model. Also, the evaluation shows how hyper parameters’ optimization, features’ selection, and normalization, make a huge difference in the model’s performance and indicate that the precise management of weather parameters can result in better forecasts. However, the contributors of this research are not recluded to theoretical perspective; the present study can be useful for various subjects since the dependability of weather forecasts can be improved. They will be advantaged to have more precise weather data for crop growing, road networks, and other transport systems to prepare for the worst conditions, and emergency, rescue operations to be in a better position to handle certain disasters. Consequently, this study improves the academic literature on weather peculiarities with unforeseen downpours through a demonstration and explanation of the potential of LSTM networks to analyze key meteorological characteristics for rainfall prediction. Possible future study directions are outlined, proposing the expansion of features beyond those analyzed in the existing study to improve the predictive models, the usage of continuous rather than weekly data, as well as considering the mixed-ingredients approach for increasing the prediction accuracy. This inclusive strategy seeks to enhance the realistic stages in the phased meteorological prognosis and also timely resource allocation and management tactics within climate volatility.
Weather Prediction , rainfall , LSTM , machine learning , meteorological variables , time-series forecasting
[1] Calvo-Olivera, C., Guerrero-Higueras, Á. M., Lorenzana, J., & García-Ortega, E. (2024). Real-Time Evaluation of the Uncertainty in Weather Forecasts Through Machine Learning-Based Models. Water Resources Management, 38(7), 2455–2470. https://doi.org/10.1007/s11269-024-03779-y
[2] Aghelpour, P., Mohammadi, B., & Biazar, S. M. (2019). Long-term monthly average temperature forecasting in some climate types of Iran, using the models SARIMA, SVR, and SVR-FA. Theoretical and Applied Climatology, 138(3), 1471–1480. https://doi.org/10.1007/s00704-019-02905-w
[3] Llugsi, R., Yacoubi, S. E., Fontaine, A., & Lupera, P. (2021). Comparison between Adam, AdaMax and Adam W optimizers to implement a Weather Forecast based on Neural Networks for the Andean city of Quito. 2021 IEEE Fifth Ecuador Technical Chapters Meeting (ETCM), 1–6. https://doi.org/10.1109/ETCM53643.2021.9590681
[4] Alshdaifat, E., Alshdaifat, D., Alsarhan, A., Hussein, F., & El-Salhi, S. M. F. S. (2021). The Effect of Preprocessing Techniques, Applied to Numeric Features, on Classification Algorithms’ Performance. Data, 6(2), Article 2. https://doi.org/10.3390/data6020011
[5] Suleman, M. A. R., & Shridevi, S. (2022). Short-Term Weather Forecasting Using Spatial Feature Attention Based LSTM Model. IEEE Access, 10, 82456–82468. IEEE Access. https://doi.org/10.1109/ACCESS.2022.3196381
[6] Kreuzer, D., Munz, M., & Schlüter, S. (2020). Short-term temperature forecasts using a convolutional neural network—An application to different weather stations in Germany. Machine Learning with Applications, 2, 100007. https://doi.org/10.1016/j.mlwa.2020.100007
[7] Parasyris, A., Alexandrakis, G., Kozyrakis, G. V., Spanoudaki, K., & Kampanis, N. A. (2022). Predicting Meteorological Variables on Local Level with SARIMA, LSTM and Hybrid Techniques. Atmosphere, 13(6), Article 6. https://doi.org/10.3390/atmos13060878
[8] Zafar, R., Vu, B. H., Husein, M., & Chung, I.-Y. (2021). Day-Ahead Solar Irradiance Forecasting Using Hybrid Recurrent Neural Network with Weather Classification for Power System Scheduling. Applied Sciences, 11(15), Article 15. https://doi.org/10.3390/app11156738
[9] Hewage, P., Trovati, M., Pereira, E., & Behera, A. (2021). Deep learning-based effective fine-grained weather forecasting model. Pattern Analysis and Applications, 24(1), 343–366. https://doi.org/10.1007/s10044-020-00898-1
[10] Khullar, S., & Singh, N. (2022). Water quality assessment of a river using deep learning Bi-LSTM methodology: Forecasting and validation. Environmental Science and Pollution Research, 29(9), 12875–12889. https://doi.org/10.1007/s11356-021-13875-w
[11] Elfaik, H., & Nfaoui, E. H. (2021). Deep Bidirectional LSTM Network Learning-Based Sentiment Analysis for Arabic Text. Journal of Intelligent Systems, 30(1), 395–412. https://doi.org/10.1515/jisys-2020-0021
[12] Yu, Y., Si, X., Hu, C., & Zhang, J. (2019). A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Computation, 31(7), 1235–1270. https://doi.org/10.1162/neco_a_01199
[13] Roy, D. K., Sarkar, T. K., Kamar, S. S. A., Goswami, T., Muktadir, M. A., Al-Ghobari, H. M., Alataway, A., Dewidar, A. Z., El-Shafei, A. A., & Mattar, M. A. (2022). Daily Prediction and Multi-Step Forward Forecasting of Reference Evapotranspiration Using LSTM and Bi-LSTM Models. Agronomy, 12(3), Article 3. https://doi.org/10.3390/agronomy12030594
[14] Anshuka, A., Chandra, R., Buzacott, A. J. V., Sanderson, D., & van Ogtrop, F. F. (2022). Spatio temporal hydrological extreme forecasting framework using LSTM deep learning model. Stochastic Environmental Research and Risk Assessment, 36(10), 3467–3485. https://doi.org/10.1007/s00477-022-02204-3
[15] Gaber, K. S., Zaki, A. M., Eid, M. M., Khafaga, D. S., Alhussan, A. A., & Mohamed, M. E. (2024). Optimizing Marketing Strategies: Integration of Al-Biruni Earth Radius Algorithm for Feature Selection and Pipeline Regression Model. Journal of Artificial Intelligence in Engineering Practice. https://doi.org/10.21608/jaiep.2024.354005