A self-supervised deep learning model for enhanced generalization in soil moisture prediction
• A self-supervised Transformer model is developed for soil moisture prediction. • The model achieves enhanced generalization over extreme and unseen conditions. • Latent representations of the model align with underlying soil hydrodynamics. Machine learning models are increasingly developed for soil moisture prediction, but their generalization under diverse and unobserved conditions remains a critical challenge. Existing models often fail in scenarios involving unseen meteorological conditions or soil depths. To address this limitation, we propose a novel approach that combines self-supervised learning with a physics-guided spatio-temporal Transformer architecture to improve generalization. We evaluate our model through synthetic experiments and benchmark its performance against the state-of-the-art Long Short-Term Memory (LSTM) model. Results show that our model consistently outperforms LSTM in capturing extreme soil dryness, adapting to unseen meteorological conditions, and predicting moisture dynamics at unobserved depths. The improved generalization is attributed to the model’s ability to capture spatio-temporal moisture dynamics and reveal hidden patterns by encoding past observations into high-dimensional latent representations. In addition, the model adapts well to complex scenarios, such as extracting infiltration characteristics from datasets without heavy rainfall events and accounting for interactions across soil depths under varying meteorological conditions. Overall, it is demonstrated that self-supervised learning with Transformer-based architectures significantly improves the deep learning of soil moisture dynamics and enhances model generalization. This study provides a robust solution to the challenges posed by variable and complex environmental conditions and represents a promising data-driven approach to facilitating process understanding.
Authors
- Shijie Jiang (ORCID: https://orcid.org/0000-0002-2808-9559)
- Liangsheng Shi (ORCID: https://orcid.org/0000-0003-0446-0488)
- Markus Reichstein (ORCID: https://orcid.org/0000-0001-5736-1112)
- Christian Reimers (ORCID: https://orcid.org/0000-0003-1127-136X)
- Leilei He (ORCID: https://orcid.org/0000-0002-5380-5879)
- Yanling Wang (ORCID: https://orcid.org/0000-0002-1006-6869)
- Lijun Wang
- Yujie Wang (ORCID: https://orcid.org/0009-0003-6799-1726)
Institutions
- Wuhan University (CN)
- Max Planck Institute for Biogeochemistry (DE)
Publication Details
- Journal
- Journal of Hydrology
- Published
- 2025-07-26
- DOI
- https://doi.org/10.1016/j.jhydrol.2025.133974
- Citations
- 2
- Primary Topic
- Soil Moisture and Remote Sensing
- Type
- article
- Field-Weighted Citation Impact
- 1.60