Next Article in Journal
Longitudinal Growth Dynamics and Future Potential for the Supply–Demand Trend of Mango and Avocado Exports in Australia
Previous Article in Journal
Multi-Scale Forecasting of Natural Rubber Prices Using VMD-Augmented BiLSTM: A Hybrid Architecture Ablation Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Standardized Precipitation Index Forecasting Comparison Using Transformer Models

by
Rafael Magallanes-Quintanar
1,*,
Carlos Eric Galván-Tejada
1,
Jorge Isaac Galván-Tejada
1,
Santiago de Jesús Méndez-Gallegos
2 and
Antonio García-Domínguez
1
1
Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas C.P. 98000, Mexico
2
Campus San Luis Potosí, Colegio de Postgraduados, Salinas de Hidalgo, San Luis Potosí C.P. 78622, Mexico
*
Author to whom correspondence should be addressed.
Forecasting 2026, 8(3), 44; https://doi.org/10.3390/forecast8030044
Submission received: 20 March 2026 / Revised: 30 May 2026 / Accepted: 31 May 2026 / Published: 2 June 2026
(This article belongs to the Section Environmental Forecasting)

Abstract

Accurate long-horizon drought forecasting is essential for water resource management and early warning systems in semi-arid regions. This study evaluates five state-of-the-art Transformer architectures—Vanilla Transformer, Informer, Autoformer, Temporal Fusion Transformer (TFT), and PatchTST—for 24-month forecasting of the Standardized Precipitation Index (SPI-12) across four climatically homogeneous regions of Zacatecas, Mexico (Semi-arid, Highlands, Mountains, and Canyons). Models were trained on monthly precipitation data from 1965–2022 and evaluated on an independent test period (2023–2024) using MAE, RMSE, Pearson correlation, and the Diebold–Mariano test. The results show that PatchTST achieved the best overall performance in three of the four regions, significantly outperforming the other models in most cases. The Vanilla Transformer performed best in the less variable Highlands region. These findings demonstrate that the model’s suitability is strongly dependent on regional climatic characteristics. PatchTST’s patch-based approach proved particularly effective for capturing complex temporal dependencies in highly variable semi-arid environments. This study highlights the potential of Transformer architectures, especially PatchTST, to improve long-horizon SPI forecasting and strengthen operational drought monitoring systems in water-scarce regions.
Keywords: PatchTST; ANN; Nixtlaverse; SPI; drought forecasting; long-horizon prediction; Diebold–Mariano test; semi-arid regions PatchTST; ANN; Nixtlaverse; SPI; drought forecasting; long-horizon prediction; Diebold–Mariano test; semi-arid regions

Share and Cite

MDPI and ACS Style

Magallanes-Quintanar, R.; Galván-Tejada, C.E.; Galván-Tejada, J.I.; Méndez-Gallegos, S.d.J.; García-Domínguez, A. Standardized Precipitation Index Forecasting Comparison Using Transformer Models. Forecasting 2026, 8, 44. https://doi.org/10.3390/forecast8030044

AMA Style

Magallanes-Quintanar R, Galván-Tejada CE, Galván-Tejada JI, Méndez-Gallegos SdJ, García-Domínguez A. Standardized Precipitation Index Forecasting Comparison Using Transformer Models. Forecasting. 2026; 8(3):44. https://doi.org/10.3390/forecast8030044

Chicago/Turabian Style

Magallanes-Quintanar, Rafael, Carlos Eric Galván-Tejada, Jorge Isaac Galván-Tejada, Santiago de Jesús Méndez-Gallegos, and Antonio García-Domínguez. 2026. "Standardized Precipitation Index Forecasting Comparison Using Transformer Models" Forecasting 8, no. 3: 44. https://doi.org/10.3390/forecast8030044

APA Style

Magallanes-Quintanar, R., Galván-Tejada, C. E., Galván-Tejada, J. I., Méndez-Gallegos, S. d. J., & García-Domínguez, A. (2026). Standardized Precipitation Index Forecasting Comparison Using Transformer Models. Forecasting, 8(3), 44. https://doi.org/10.3390/forecast8030044

Article Metrics

Back to TopTop