IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0322496.html
   My bibliography  Save this article

A hybrid TCN-XGBoost model for agricultural product market price forecasting

Author

Listed:
  • Tianwen Zhao
  • Guoqing Chen
  • Sujitta Suraphee
  • Tossapol Phoophiwfa
  • Piyapatr Busababodhin

Abstract

Price volatility in agricultural markets is influenced by seasonality, supply-demand fluctuations, policy changes, and climate. These factors significantly impact agricultural production and the broader macroeconomy. Traditional time series models, limited by linear assumptions, often fail to capture the nonlinear nature of price fluctuations. To address this limitation, we propose an integrated forecasting model that combines TCN and XGBoost to improve the accuracy of agricultural price volatility predictions. TCN captures both short-term and long-term dependencies using convolutional operations, while XGBoost enhances its ability to model nonlinear relationships. The model uses 65,750 historical data points from rice, wheat, and corn, with a sliding window technique to construct time series features. Experimental results demonstrate that the TCN-XGBoost model significantly outperforms traditional models such as ARIMA (RMSE = 0.36, MAPE = 8.9%) and LSTM (RMSE = 0.34, MAPE = 8.1%). It also outperforms other hybrid models, such as Transformer-XGBoost (RMSE = 0.23) and CNN-XGBoost (RMSE = 0.29). Specifically, the TCN-XGBoost model achieves an RMSE of 0.26 and a MAPE of 5.3%, underscoring its superior performance. Moreover, the model shows robust performance across various market conditions, particularly during significant price fluctuations. During dramatic price movements, the RMSE is 0.28 and the MAPE is 6.1%, effectively capturing both trends and magnitudes of price changes. By leveraging TCN’s strength in temporal feature extraction and XGBoost’s capability to model complex nonlinear relationships, the TCN-XGBoost integrated model offers an efficient and robust solution for forecasting agricultural prices. This model has broad applicability, particularly in agricultural market decision-making and risk management.

Suggested Citation

  • Tianwen Zhao & Guoqing Chen & Sujitta Suraphee & Tossapol Phoophiwfa & Piyapatr Busababodhin, 2025. "A hybrid TCN-XGBoost model for agricultural product market price forecasting," PLOS ONE, Public Library of Science, vol. 20(5), pages 1-31, May.
  • Handle: RePEc:plo:pone00:0322496
    DOI: 10.1371/journal.pone.0322496
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0322496
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0322496&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0322496?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    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:plo:pone00:0322496. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.