Comparative evaluation of random forest, GRU, and transformer models for soil moisture prediction using reanalysis and meteorological time series data

Authors

  • Defilia Fatikasari Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia Author
  • Miftahul Walid Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia Author https://orcid.org/0000-0001-7962-9298
  • Muhsi Department of Information System, Faculty of Engineering, Universitas Islam Madura, Indonesia Author
  • Moh. Aminollah Hamzah Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia Author

DOI:

https://doi.org/10.52465/joscex.v7i2.54

Keywords:

Soil moisture prediction, Random forest, GRU, Transformer, Time series

Abstract

Soil moisture is an important indicator influenced by climate change and water resource availability, with significant impacts across various sectors, particularly agriculture. Limited continuous observational data necessitate historical data-driven approaches for accurate soil moisture prediction. This study aims to comparatively evaluate the performance of Random Forest, Gated Recurrent Unit (GRU), and Transformer models in soil moisture prediction using time series data based on a combination of NASA POWER reanalysis and BMKG meteorological data for the period 2020–2025. The methodology involves data acquisition, preparation, preprocessing (train–test split, min-max normalization, and windowing), model training, and performance evaluation based on MAE, RMSE, and R². The results show that the Random Forest model with a window size of 21 days achieves the best performance, yielding an MAE of 0.0396, an RMSE of 0.0534, and an R² of 0.8585. The Random Forest model produces predictions closest to the actual values and demonstrates better stability in capturing time series patterns, outperforming the GRU and Transformer models in soil moisture prediction using integrated global and local time series data

Author Biographies

  • Defilia Fatikasari, Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

    Defilia Fatikasari is a student at the Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

  • Miftahul Walid, Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

    Miftahul Walid, S.Kom., M.T., is a lecturer at the Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

  • Muhsi, Department of Information System, Faculty of Engineering, Universitas Islam Madura, Indonesia

    Dr. Muhsi, M.T., is a lecturer at the Department of Information System, Faculty of Engineering, Universitas Islam Madura, Indonesia

  • Moh. Aminollah Hamzah, Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

    Moh. Aminollah Hamzah, M.Kom., is a lecturer at the Department of Informatics Engineering, Faculty of Engineering, Universitas Islam Madura, Indonesia

Downloads

Published

15-05-2026

Issue

Section

Articles

How to Cite

Comparative evaluation of random forest, GRU, and transformer models for soil moisture prediction using reanalysis and meteorological time series data. (2026). Journal of Soft Computing Exploration, 7(2), 300-311. https://doi.org/10.52465/joscex.v7i2.54

Similar Articles

1-10 of 19

You may also start an advanced similarity search for this article.