IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v44y2025i6p1969-1992.html
   My bibliography  Save this article

A Novel Framework for Agricultural Futures Price Prediction With BERT‐Based Topic Identification and Sentiment Analysis

Author

Listed:
  • Wensheng Wang
  • Yuxi Liu

Abstract

In China's financial and economic system, the agricultural futures market plays an important role in guiding the market to self regulate and providing efficient information transmission for regulators. The effective prediction of futures prices can assist in guiding agricultural production, monitoring operational risks arising from significant price fluctuations, and enhancing the predictability and pertinence of the country's macroeconomic regulation policies. This study investigates the main variety of grain futures—soybean futures, taking into account complex market and non‐market influencing factors. Using historical market data and related news headlines of soybean futures as source data and integrating topic identification and sentiment analysis techniques, a novel framework for predicting agricultural futures prices that integrates topic sentiment is constructed. This model uses BERTopic to extract topic information from agricultural news texts, then integrates FinBERT to construct topic‐based sentiment features, fuses them with structured market features, and constructs LSTM price prediction model with multi‐feature inputs. In order to better model the short‐term features and state transfer patterns of the time series, hidden Markov model (HMM) is further used to extract the hidden states, which are deeply fused with the LSTM model. The empirical results show that the model fusing topic and sentiment features significantly improves the forecasting accuracy in all lags, LSTM works best in short‐term forecasting, and the combination of HMM and LSTM exhibits significant performance advantages in medium‐ and long‐term forecasting. Compared with the baseline model that relies only on market features, topic sentiment features provide important incremental information for price forecasting, and the contribution of each topic sentiment feature calculated based on the PI metric is close to 50%. In addition, deep learning–based prediction model performs better than baseline machine learning models in dealing with extreme external shocks such as climate disasters, the COVID‐19 pandemic, and the Russia–Ukraine conflict.

Suggested Citation

  • Wensheng Wang & Yuxi Liu, 2025. "A Novel Framework for Agricultural Futures Price Prediction With BERT‐Based Topic Identification and Sentiment Analysis," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(6), pages 1969-1992, September.
  • Handle: RePEc:wly:jforec:v:44:y:2025:i:6:p:1969-1992
    DOI: 10.1002/for.3278
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/for.3278
    Download Restriction: no

    File URL: https://libkey.io/10.1002/for.3278?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
    ---><---

    References listed on IDEAS

    as
    1. Degiannakis, Stavros & Filis, George & Klein, Tony & Walther, Thomas, 2022. "Forecasting realized volatility of agricultural commodities," International Journal of Forecasting, Elsevier, vol. 38(1), pages 74-96.
    2. Zhao, Lu-Tao & Wang, Dai-Song & Ren, Zhong-Yuan, 2024. "The impact of joint events on oil price volatility: Evidence from a dynamic graphical news analysis model," Economic Modelling, Elsevier, vol. 130(C).
    3. Zhen Zeng & Rachneet Kaur & Suchetha Siddagangappa & Saba Rahimi & Tucker Balch & Manuela Veloso, 2023. "Financial Time Series Forecasting using CNN and Transformer," Papers 2304.04912, arXiv.org.
    4. Huong Nguyen & Marcus Randall & Andrew Lewis, 2024. "Factors Affecting Crop Prices in the Context of Climate Change—A Review," Agriculture, MDPI, vol. 14(1), pages 1-17, January.
    5. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    6. Li, Jianping & Li, Guowen & Liu, Mingxi & Zhu, Xiaoqian & Wei, Lu, 2022. "A novel text-based framework for forecasting agricultural futures using massive online news headlines," International Journal of Forecasting, Elsevier, vol. 38(1), pages 35-50.
    7. Paolo Libenzio Brignoli & Alessandro Varacca & Cornelis Gardebroek & Paolo Sckokai, 2024. "Machine learning to predict grains futures prices," Agricultural Economics, International Association of Agricultural Economists, vol. 55(3), pages 479-497, May.
    8. Bai, Yun & Li, Xixi & Yu, Hao & Jia, Suling, 2022. "Crude oil price forecasting incorporating news text," International Journal of Forecasting, Elsevier, vol. 38(1), pages 367-383.
    9. Li, Miao & Xiong, Tao, 2021. "Dynamic price discovery in Chinese agricultural futures markets," Journal of Asian Economics, Elsevier, vol. 76(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hao, Jun & Feng, Qianqian & Yuan, Jiaxin & Sun, Xiaolei & Li, Jianping, 2022. "A dynamic ensemble learning with multi-objective optimization for oil prices prediction," Resources Policy, Elsevier, vol. 79(C).
    2. Ewald, Christian Oliver & Li, Yaoyu, 2024. "The role of news sentiment in salmon price prediction using deep learning," Journal of Commodity Markets, Elsevier, vol. 36(C).
    3. Gkillas, Konstantinos & Gupta, Rangan & Pierdzioch, Christian, 2020. "Forecasting realized oil-price volatility: The role of financial stress and asymmetric loss," Journal of International Money and Finance, Elsevier, vol. 104(C).
    4. Jesus Crespo Cuaresma & Ines Fortin & Jaroslava Hlouskova & Michael Obersteiner, 2024. "Regime‐dependent commodity price dynamics: A predictive analysis," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(7), pages 2822-2847, November.
    5. Bingzi Jin & Xiaojie Xu, 2025. "Machine learning price index forecasts of flat steel products," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 38(1), pages 97-117, March.
    6. Wuyue An & Lin Wang & Dongfeng Zhang, 2023. "Comprehensive commodity price forecasting framework using text mining methods," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1865-1888, November.
    7. Xiaojie Xu & Yun Zhang, 2022. "Commodity price forecasting via neural networks for coffee, corn, cotton, oats, soybeans, soybean oil, sugar, and wheat," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 29(3), pages 169-181, July.
    8. Binrong Wu & Sihao Yu & Sheng‐Xiang Lv, 2025. "Explainable Soybean Futures Price Forecasting Based on Multi‐Source Feature Fusion," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(4), pages 1363-1382, July.
    9. Mao, Jinqi & Wang, Delu & Chen, Fan & Li, Chunxiao & Shi, Xunpeng & Zhang, Yuqing, 2024. "A novel text-based framework for forecasting coal power overcapacity in China from the industrial correlation perspective," Technological Forecasting and Social Change, Elsevier, vol. 208(C).
    10. Afees A. Salisu & Ahamuefula E. Ogbonna & Rangan Gupta & Elie Bouri, 2025. "Forecasting Spot and Futures Price Volatility of Agricultural Commodities: The Role of Climate-Related Migration Uncertainty," Working Papers 202516, University of Pretoria, Department of Economics.
    11. Xiaojie Xu & Yun Zhang, 2023. "Steel price index forecasting through neural networks: the composite index, long products, flat products, and rolled products," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 36(4), pages 563-582, December.
    12. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    13. Dutta, Anupam & Uddin, Gazi Salah & Sheng, Lin Wen & Park, Donghyun & Zhu, Xuening, 2024. "Volatility dynamics of agricultural futures markets under uncertainties," Energy Economics, Elsevier, vol. 136(C).
    14. Xiaojie Xu & Yun Zhang, 2022. "Forecasting the total market value of a shares traded in the Shenzhen stock exchange via the neural network," Economics Bulletin, AccessEcon, vol. 42(3), pages 1266-1279.
    15. Wang, Lu & Wu, Rui & Ma, WeiChun & Xu, Weiju, 2023. "Examining the volatility of soybean market in the MIDAS framework: The importance of bagging-based weather information," International Review of Financial Analysis, Elsevier, vol. 89(C).
    16. Lu, Xinjie & Su, Yuandong & Huang, Dengshi, 2023. "Chinese agricultural futures volatility: New insights from potential domestic and global predictors," International Review of Financial Analysis, Elsevier, vol. 89(C).
    17. Yilun Zhang & Yuping Song & Ying Peng & Hanchao Wang, 2024. "Volatility forecasting incorporating intraday positive and negative jumps based on deep learning model," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(7), pages 2749-2765, November.
    18. Sun, Jingyun & Zhao, Panpan & Sun, Shaolong, 2022. "A new secondary decomposition-reconstruction-ensemble approach for crude oil price forecasting," Resources Policy, Elsevier, vol. 77(C).
    19. Liu, Jinpei & Zhao, Xiaoman & Luo, Rui & Tao, Zhifu, 2024. "A novel link prediction model for interval-valued crude oil prices based on complex network and multi-source information," Applied Energy, Elsevier, vol. 376(PB).
    20. Ma, Yong & Li, Shuaibing & Zhou, Mingtao, 2025. "Twitter-based market uncertainty and global stock volatility predictability," The North American Journal of Economics and Finance, Elsevier, vol. 75(PA).

    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:wly:jforec:v:44:y:2025:i:6:p:1969-1992. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: Wiley Content Delivery (email available below). General contact details of provider: http://www3.interscience.wiley.com/cgi-bin/jhome/2966 .

    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.