Cross-Regime Transfer Learning for Dekadal Rainfall Prediction in Indonesia Using a Transformer Encoder

Authors

  • Tonny Wahyu Aji State College of Meteorology, Climatology, and Geophysics (STMKG), Tangerang
  • Marzuki Sinambela State College of Meteorology, Climatology, and Geophysics (STMKG), Tangerang
  • Hapsoro Agung Nugroho State College of Meteorology, Climatology, and Geophysics (STMKG), Tangerang
  • Edward Trihadi State College of Meteorology, Climatology, and Geophysics (STMKG), Tangerang
  • Tonni Limbong Universitas Katolik Santo Thomas Medan

DOI:

https://doi.org/10.53842/juki.v8i1.2684

Keywords:

Transfer learning, rainfall prediction, Transformer encoder, domain adaptation, ; dekadal rainfall

Abstract

. Rainfall prediction across regions with different rainfall regimes remains challenging because a model trained in one climatic domain can fail when applied to another domain. This study evaluates transfer learning for dekadal rainfall prediction using a Transformer encoder trained on 10 rainfall sites in West Java and adapted to three target regions representing different rainfall patterns: Kupang (monsoonal), Padang (equatorial), and Ambon (local). Three transfer strategies were evaluated: zero-shot inference, head-only fine-tuning, and staged unfreezing. The source model used 22 meteorological and climate-index features, site embedding, a 36-step input window, and H1-H6 forecasting horizons. Zero-shot transfer produced negative R2 on all targets, indicating substantial domain shift. Staged unfreezing consistently improved the zero-shot model, reducing RMSE by 49.83% in Kupang, 9.13% in Padang, and 24.76% in Ambon. On the raw millimeter scale, the final transferred model obtained RMSE values of 69.30 mm, 168.36 mm, and 92.91 mm for Kupang, Padang, and Ambon, respectively. Compared with simple baselines, the transferred model outperformed persistence on all targets but outperformed climatology only in Ambon. These results indicate that transfer learning is useful for adapting deep rainfall models to new regions, but reliable deployment still requires target-domain fine-tuning, raw-scale evaluation, and comparison against simple climatological baselines.

Downloads

Download data is not yet available.

References

I. Ramli, S. Rusdiana, A. Achmad, Azizah, and M. E. Yolanda, ‘Forecasting of Rainfall Using Seasonal Autoregreressive Integrated Moving Average (SARIMA) Aceh, Indonesia’, Math. Model. Eng. Probl., 2023, doi: 10.18280/mmep.100216.

C. Liyew and H. A. Melese, ‘Machine learning techniques to predict daily rainfall amount’, J. Big Data, vol. 8, 2021, doi: 10.1186/s40537-021-00545-4.

P. Rejekiningrum et al., ‘Optimising Water Management in Drylands to Increase Crop Productivity and Anticipate Climate Change in Indonesia’, Sustainability, 2022, doi: 10.3390/su141811672.

D. Lee et al., ‘Maize yield forecasts for Sub-Saharan Africa using Earth Observation data and machine learning’, Glob. Food Sec., 2022, doi: 10.1016/j.gfs.2022.100643.

W. Atiah, E. Bendito, and F. Muthoni, ‘Evaluating Seasonal Rainfall Forecast Gridded Models over Sub-Saharan Africa’, Hydrology, 2025, doi: 10.3390/hydrology12100251.

M. Ariska, Suhadi, Supari, M. Irfan, and I. Iskandar, ‘Detection of Dominant Rainfall Patterns in Indonesian Regions Using Empirical Orthogonal Function (EOF) and Its Relation with ENSO and IOD Events’, Sci. Technol. Indones., 2024, doi: 10.26554/sti.2024.9.4.1009-1023.

G. Alsepan and S. Minobe, ‘Relations between Interannual Variability of Regional-Scale Indonesian Precipitation and Large-Scale Climate Modes during 1960–2007’, J. Clim., 2020, doi: 10.1175/jcli-d-19-0811.1.

M. Yamanaka et al., ‘Maritime continent coastlines controlling Earth’s climate’, Prog. Earth Planet. Sci., vol. 5, pp. 1–28, 2018, doi: 10.1186/s40645-018-0174-9.

M. Marzuki et al., ‘Long‐Term Spatial–Temporal Variability, Trends and Extreme Rainfall Events Over Indonesia Based on 43 Years of CHIRPS Data’, Int. J. Climatol., vol. 45, 2025, doi: 10.1002/joc.70107.

Q. Gu and Q. Dai, ‘A novel active multi-source transfer learning algorithm for time series forecasting’, Appl. Intell., vol. 51, pp. 1326–1350, 2020, doi: 10.1007/s10489-020-01871-5.

P. Harder et al., ‘Benchmarking the geographic generalization of deep learning models for precipitation downscaling’, Sci. Rep., vol. 16, 2026, doi: 10.1038/s41598-025-34557-4.

S. Siswanto, G. v. d. Schrier, and B. v. d. Hurk, ‘Observed Increase of Urban Extreme Rainfall as Surface Temperature Rise: The Jakarta Case’, J. Meteorol. Soc. Japan, vol. 100, no. 3, pp. 475–492, 2022, doi: 10.2151/jmsj.2022-023.

M. Yu, Q. Huang, and Z. Li, ‘Deep learning for spatiotemporal forecasting in Earth system science: a review’, Int. J. Digit. Earth, vol. 17, 2024, doi: 10.1080/17538947.2024.2391952.

A. Vaswani et al., ‘Attention Is All You Need’, 2017, doi: 10.48550/arxiv.1706.03762.

M. Sit, B. Z. Demiray, Z. Xiang, G. J. Ewing, Y. Sermet, and İ. Demir, ‘A Comprehensive Review of Deep Learning Applications in Hydrology and Water Resources’, 2020, doi: 10.31223/osf.io/xs36g.

A. Maghridlo et al., ‘Implementation of LSTM for Weather Prediction in Kupang City, East Nusa Tenggara’, in 2025 IEEE International Conference on Artificial Intelligence and Mechatronics Systems (AIMS), 2025, pp. 1–6. doi: 10.1109/AIMS66189.2025.11227176.

Y. Xu et al., ‘Deep Transfer Learning based on Transformer for Flood Forecasting in Data-sparse Basins’, J. Hydrol., 2023, doi: 10.1016/j.jhydrol.2023.129956.

F. Ghobadi, Z. Yaseen, and D. Kang, ‘Long-term streamflow forecasting in data-scarce regions: Insightful investigation for leveraging satellite-derived data, Informer architecture, and concurrent fine-tuning transfer learning’, J. Hydrol., 2024, doi: 10.1016/j.jhydrol.2024.130772.

M. He, X. Xu, S. Wu, C.-X. Kang, and B. Huang, ‘Multi-step ahead forecasting of daily streamflow based on the transform-based deep learning model under different scenarios’, Sci. Rep., vol. 15, 2025, doi: 10.1038/s41598-025-89837-w.

S. Golian et al., ‘Dynamical–statistical seasonal forecasts of winter and summer precipitation for the Island of Ireland’, Int. J. Climatol., vol. 42, pp. 5714–5731, 2022, doi: 10.1002/joc.7557.

M. Krouma, D. Specq, L. Magnusson, C. Ardilouze, L. Batté, and P. Yiou, ‘Improving subseasonal forecast of precipitation in Europe by combining a stochastic weather generator with dynamical models’, Q. J. R. Meteorol. Soc., vol. 150, pp. 2744–2764, 2024, doi: 10.1002/qj.4733.

R. Ashrit, K. Sharma, A. Dube, G. Iyengar, A. Mitra, and E. Rajagopal, ‘Verification of short range forecasts of extreme rainfall during monsoon’, MAUSAM, 2021, doi: 10.54302/mausam.v66i3.548.

Downloads

Published

2026-06-12

How to Cite

Aji, T. W. ., Sinambela, M., Nugroho, H. A. ., Trihadi, E. ., & Limbong, T. . (2026). Cross-Regime Transfer Learning for Dekadal Rainfall Prediction in Indonesia Using a Transformer Encoder. JUKI : Jurnal Komputer Dan Informatika, 8(1), 294–304. https://doi.org/10.53842/juki.v8i1.2684

Most read articles by the same author(s)