Harnessing the Power of Stacked GRU for Accurate Weather Predictions

Mohammad Diqi, Ahmad Wakhid, I Wayan Ordiyasa, Nurhadi Wijaya, Marselina Endah Hiswati


This research proposed a novel approach using Stacked GRU (Gated Recurrent Unit) models to address the problem of weather prediction and aimed to improve forecasting accuracy in sectors like agriculture, transportation, and disaster management. The key idea involved leveraging the temporal dependencies and memory management capabilities of Stacked GRU to model complex weather patterns effectively. Comprehensive data preprocessing ensured data quality and fine-tuning of the model architecture and hyperparameters optimized performance. The research demonstrated the Stacked GRU model's effectiveness in accurately forecasting temperature, pressure, humidity, and wind speed, validated by low RMSE and MAE scores and high R2 coefficients. However, challenges in forecasting humidity and a percentage discrepancy in wind speed predictions were observed. Overfitting and computational complexity were identified as potential limitations. Despite these constraints, the study concluded that the Stacked GRU model showed promise in weather forecasting and warranted further refinement for broader applications in time-series prediction tasks.


Stacked Gated Recurrent Unit; Weather Forecasting; Time-Series Data; Prediction Accuracy; Model Performance

Full Text:



G. Zuma-Netshiukhwi, O. M. Hlazo, and S. A. Motholo, “Evaluating the Effect of Climate Variability on Zea Mays Productivity Over Glen Research Station: South Africa,” European Journal of Agriculture and Food Sciences, 2021, doi: 10.24018/ejfood.2021.3.3.313.

R. Varahasamy*, S. Meganathan, and D. Karthik, “Association Rule Mining for South West Monsoon Rainfall Prediction and Estimation Over Mumbai Station,” International Journal of Recent Technology and Engineering, 2019, doi: 10.35940/ijrte.c6809.098319.

Z. Zhang and Y. Dong, “Temperature Forecasting via Convolutional Recurrent Neural Networks Based on Time-Series Data,” Complexity, 2020, doi: 10.1155/2020/3536572.

Y. Xie, J. Shi, S. Fan, M. Chen, Y. Dou, and D. Ji, “Impact of Radiance Data Assimilation on the Prediction of Heavy Rainfall in RMAPS: A Case Study,” Remote Sensing, 2018, doi: 10.3390/rs10091380.

T. Ushiyama, T. Sayama, and Y. Iwami, “Development of a Flood Forecasting System Using Regional Ensemble Prediction – Application to the Kinugawa Flood in 2015,” Journal of Jsce, 2019, doi: 10.2208/journalofjsce.7.1_124.

T. Röösli, C. Appenzeller, and D. N. Bresch, “Towards Operational Impact Forecasting of Building Damage From Winter Windstorms in Switzerland,” Meteorological Applications, 2021, doi: 10.1002/met.2035.

J. Jing, Q. J. Li, X. H. Ding, N. X. Sun, R. Tang, and Y. L. Cai, “Aenn: A Generative Adversarial Neural Network for Weather Radar Echo Extrapolation,” The International Archives of the Photogrammetry Remote Sensing and Spatial Information Sciences, 2019, doi: 10.5194/isprs-archives-xlii-3-w9-89-2019.

T. Andrasto, N. Musaropah, N. Haryono, T. Joko, and N. Kardoyo, “Simulation and Design of Smart Clothesline Using Fuzzy for Weather Forecast,” Iop Conference Series Earth and Environmental Science, 2022, doi: 10.1088/1755-1315/969/1/012058.

T. P. Agyekum, P. Antwi-Agyei, and A. J. Dougill, “The contribution of weather forecast information to agriculture, water, and energy sectors in East and West Africa: A systematic review,” Frontiers in Environmental Science, vol. 10, 2022, [Online]. Available: https://www.frontiersin.org/articles/10.3389/fenvs.2022.935696

H. Sangrody, M. Sarailoo, N. Zhou, N. Tran, M. Motalleb, and E. Foruzan, “Weather Forecasting Error in Solar Energy Forecasting,” Iet Renewable Power Generation, 2017, doi: 10.1049/iet-rpg.2016.1043.

L. van Galen, O. Hartogensis, I. Benedict, and G.-J. Steeneveld, “Teaching a Weather Forecasting Class in the 2020s,” Bulletin of the American Meteorological Society, 2022, doi: 10.1175/bams-d-20-0107.1.

I. Sideris, L. Foresti, D. Nerini, and U. Germann, “NowPrecip: Localized Precipitation Nowcasting in the Complex Terrain of Switzerland,” Quarterly Journal of the Royal Meteorological Society, 2020, doi: 10.1002/qj.3766.

R. Ramadhan et al., “Evaluation of GPM IMERG Performance Using Gauge Data Over Indonesian Maritime Continent at Different Time Scales,” Remote Sensing, 2022, doi: 10.3390/rs14051172.

Y. Wang et al., “An Improved ENSO Ensemble Forecasting Strategy Based on Multiple Coupled Model Initialization Parameters,” Journal of Advances in Modeling Earth Systems, 2019, doi: 10.1029/2019ms001620.

A. S. Santra and J. Lin, “Integrating Long Short-Term Memory and Genetic Algorithm for Short-Term Load Forecasting,” Energies, 2019, doi: 10.3390/en12112040.

M. C. Lopes and R. Lamberts, “Development of a Metamodel to Predict Cooling Energy Consumption of HVAC Systems in Office Buildings in Different Climates,” Sustainability, 2018, doi: 10.3390/su10124718.

M. J. Pavolonis, J. Sieglaff, and J. L. Cintineo, “Automated Detection of Explosive Volcanic Eruptions Using Satellite-Derived Cloud Vertical Growth Rates,” Earth and Space Science, 2018, doi: 10.1029/2018ea000410.

H. Sijie, L. Xinyan, T. Laurie, C. A Benjamin, D. Timothy, and B. Arindam, “Learning and Dynamical Models for Sub-Seasonal Climate Forecasting: Comparison and Collaboration,” 2021, doi: 10.48550/arxiv.2110.05196.

Y. Geng et al., “A Deep Learning Framework for Lightning Forecasting With Multi‐source Spatiotemporal Data,” Quarterly Journal of the Royal Meteorological Society, 2021, doi: 10.1002/qj.4167.

K. Ingenloff and A. C. Peterson, “Incorporating Time Into the Traditional Correlational Distributional Modelling Framework: A Proof‐of‐concept Using the Wood Thrush Hylocichla Mustelina,” Methods in Ecology and Evolution, 2020, doi: 10.1111/2041-210x.13523.

J. Xia et al., “Machine Learning-Based Weather Support for the 2022 Winter Olympics,” Advances in Atmospheric Sciences, 2020, doi: 10.1007/s00376-020-0043-5.

R. Meenal, P. A. Michael, and D. Pamela, “Weather Prediction Using Random Forest Machine Learning Model,” Indonesian Journal of Electrical Engineering and Computer Science, 2021, doi: 10.11591/ijeecs.v22.i2.pp1208-1215.

C.-Y. Chang, C.-W. Lu, and C.-J. Wang, “A Multi-Step-Ahead Markov Conditional Forward Model With Cube Perturbations for Extreme Weather Forecasting,” Proceedings of the Aaai Conference on Artificial Intelligence, 2021, doi: 10.1609/aaai.v35i8.16856.

M. Abdulraheem, J. B. Awotunde, E. A. Adeniyi, I. D. Oladipo, and S. O. Adekola, “Weather Prediction Performance Evaluation on Selected Machine Learning Algorithms,” Iaes International Journal of Artificial Intelligence (Ij-Ai), 2022, doi: 10.11591/ijai.v11.i4.pp1535-1544.

J. Chung, C. Gulcehre, K. Cho, and Y. Bengio, “Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling,” 2014, doi: 10.48550/arxiv.1412.3555.

A. Shewalkar, D. Nyavanandi, and S. A. Ludwig, “Performance Evaluation of Deep Neural Networks Applied to Speech Recognition: RNN, LSTM and GRU,” Journal of Artificial Intelligence and Soft Computing Research, 2019, doi: 10.2478/jaiscr-2019-0006.

M. Ravanelli, P. Brakel, M. Omologo, and Y. Bengio, “Improving Speech Recognition by Revising Gated Recurrent Units,” 2017, doi: 10.21437/interspeech.2017-775.

G. Zhou, J. Wu, C.-L. Zhang, and Z.-H. Zhou, “Minimal Gated Unit for Recurrent Neural Networks,” International Journal of Automation and Computing, 2016, doi: 10.1007/s11633-016-1006-2.

A. Zabardast, E. G. Tamer, Y. A. Son, and A. Yılmaz, “An Automated Framework for Evaluation of Deep Learning Models for Splice Site Predictions,” Scientific Reports, 2023, doi: 10.1038/s41598-023-34795-4.

N. C. S. Alfredo and D. A. Adytia, “Time Series Forecasting of Significant Wave Height Using GRU, CNN-GRU, and LSTM,” Jurnal Resti (Rekayasa Sistem Dan Teknologi Informasi), 2022, doi: 10.29207/resti.v6i5.4160.

Z. Zeng, X. Tang, Y. Liu, Z. He, and X. Gong, “Interpretable Recurrent Neural Network Models for Dynamic Prediction of the Extubation Failure Risk in Patients With Invasive Mechanical Ventilation in the Intensive Care Unit,” Biodata Mining, 2022, doi: 10.1186/s13040-022-00309-7.

A. Gasparin, S. Lukovic, and C. Alippi, “Deep Learning for Time Series Forecasting: The Electric Load Case,” Caai Transactions on Intelligence Technology, 2021, doi: 10.1049/cit2.12060.

S.-W. Jung, J. Moon, S. W. Park, and E. Hwang, “An Attention-Based Multilayer GRU Model for Multistep-Ahead Short-Term Load Forecasting,” Sensors, 2021, doi: 10.3390/s21051639.

J. Wojtkiewicz, M. Hosseini, R. Gottumukkala, and T. L. Chambers, “Hour-Ahead Solar Irradiance Forecasting Using Multivariate Gated Recurrent Units,” Energies, 2019, doi: 10.3390/en12214055.

X.-B. Jin, X. H. Yu, X. Wang, Y. Bai, T. Su, and J.-L. Kong, “Deep Learning Predictor for Sustainable Precision Agriculture Based on Internet of Things System,” Sustainability, 2020, doi: 10.3390/su12041433.

J. Zang et al., “Prediction Model of Carbon Dioxide Concentration in Pig House Based on Deep Learning,” Atmosphere, 2022, doi: 10.3390/atmos13071130.

N. Li, H. Sheng, P. Wang, Y. Jia, Z. Yang, and Z. Jin, “Modeling Categorized Truck Arrivals at Ports: Big Data for Traffic Prediction,” Ieee Transactions on Intelligent Transportation Systems, 2023, doi: 10.1109/tits.2022.3219882.

B. Yang, T. Xiao, and L. Wang, “Using Complementary Ensemble Empirical Mode Decomposition and Gated Recurrent Unit to Predict Landslide Displacements in Dam Reservoir,” Sensors, 2022, doi: 10.3390/s22041320.

F. R. Alharbi and D. Csala, “Short-Term Wind Speed and Temperature Forecasting Model Based on Gated Recurrent Unit Neural Networks,” 2021, doi: 10.1109/gpecom52585.2021.9587479.

Y. Zhao and Y. Ban, “Early Detection of Wildfires With GOES-R Time Series and Deep GRU-Network,” 2022, doi: 10.20944/preprints202207.0265.v1.

S. Boubaker, M. Benghanem, A. Lefza, O. Kahouli, and L. Kolsi, “Deep Neural Networks for Predicting Solar Radiation at Hail Region, Saudi Arabia,” Ieee Access, 2021, doi: 10.1109/access.2021.3062205.

S. Roy, I. Kiral-Kornek, and S. Harrer, “ChronoNet: A Deep Recurrent Neural Network for Abnormal EEG Identification,” 2019, doi: 10.1007/978-3-030-21642-9_8.

A. Caniago, W. Kaswidjanti, and J. Juwairiah, “Recurrent Neural Network With Gate Recurrent Unit for Stock Price Prediction,” Telematika, 2021, doi: 10.31315/telematika.v18i3.6650.

R. K. Pandit, D. Astolfi, A. M. Tang, and D. Infield, “Sequential Data-Driven Long-Term Weather Forecasting Models’ Performance Comparison for Improving Offshore Operation and Maintenance Operations,” Energies, 2022, doi: 10.3390/en15197233.

S. Scher and G. Messori, “Predicting Weather Forecast Uncertainty With Machine Learning,” Quarterly Journal of the Royal Meteorological Society, 2018, doi: 10.1002/qj.3410.

N. Aslam, F. Rustam, E. A. Lee, P. B. Washington, and I. Ashraf, “Sentiment Analysis and Emotion Detection on Cryptocurrency Related Tweets Using Ensemble LSTM-GRU Model,” Ieee Access, 2022, doi: 10.1109/access.2022.3165621.

C. Zeng, C. Ma, K. Wang, and Z. Cui, “Parking Occupancy Prediction Method Based on Multi Factors and Stacked GRU-LSTM,” Ieee Access, 2022, doi: 10.1109/access.2022.3171330.

J. K. Mandal, T. Kim, and S. K. Bandyopadhyay, “Breast Cancer Prediction Using Stacked GRU-LSTM-BRNN,” Applied Computer Systems, 2020, doi: 10.2478/acss-2020-0018.

DOI: http://dx.doi.org/10.24014/ijaidm.v6i2.24769


  • There are currently no refbacks.

Office and Secretariat:

Big Data Research Centre
Puzzle Research Data Technology (Predatech)
Laboratory Building 1st Floor of Faculty of Science and Technology
UIN Sultan Syarif Kasim Riau

Jl. HR. Soebrantas KM. 18.5 No. 155 Pekanbaru Riau – 28293
Website: http://predatech.uin-suska.ac.id/ijaidm
Email: ijaidm@uin-suska.ac.id
e-Journal: http://ejournal.uin-suska.ac.id/index.php/ijaidm
Phone: 085275359942

Click Here for Information

Journal Indexing:

Google Scholar | ROAD | PKP Index | BASE | ESJI | General Impact Factor | Garuda | Moraref | One Search | Cite Factor | Crossref | WorldCat | Neliti  | SINTA | Dimensions | ICI Index Copernicus