IDEAS home Printed from https://ideas.repec.org/a/gam/jforec/v8y2026i3p44-d1957863.html

Standardized Precipitation Index Forecasting Comparison Using Transformer Models

Author

Listed:
  • Rafael Magallanes-Quintanar

    (Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas C.P. 98000, Mexico)

  • Carlos Eric Galván-Tejada

    (Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas C.P. 98000, Mexico)

  • Jorge Isaac Galván-Tejada

    (Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas C.P. 98000, Mexico)

  • Santiago de Jesús Méndez-Gallegos

    (Campus San Luis Potosí, Colegio de Postgraduados, Salinas de Hidalgo, San Luis Potosí C.P. 78622, Mexico)

  • Antonio García-Domínguez

    (Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas C.P. 98000, Mexico)

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.

Suggested Citation

  • Rafael Magallanes-Quintanar & Carlos Eric Galván-Tejada & Jorge Isaac Galván-Tejada & Santiago de Jesús Méndez-Gallegos & Antonio García-Domínguez, 2026. "Standardized Precipitation Index Forecasting Comparison Using Transformer Models," Forecasting, MDPI, vol. 8(3), pages 1-19, June.
  • Handle: RePEc:gam:jforec:v:8:y:2026:i:3:p:44-:d:1957863
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/8/3/44/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/8/3/44/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jforec:v:8:y:2026:i:3:p:44-:d:1957863. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.