IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v44y2025i6p1969-1992.html

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. 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).
    2. 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.
    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. 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.
    6. 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.
    7. 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.
    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)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Lin Wang & Lean Yu & Wuyue An, 2025. "Two‐Stream Reinforcement Ensemble Framework for Agricultural Commodity Prices Forecasting Using Textual Data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(8), pages 2386-2404, December.

    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. Lin Wang & Lean Yu & Wuyue An, 2025. "Two‐Stream Reinforcement Ensemble Framework for Agricultural Commodity Prices Forecasting Using Textual Data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 44(8), pages 2386-2404, December.
    4. Hongcheng Ding & Xuanze Zhao & Ruiting Deng & Shamsul Nahar Abdullah & Deshinta Arrova Dewi, 2024. "EUR-USD Exchange Rate Forecasting Based on Information Fusion with Large Language Models and Deep Learning Methods," Papers 2408.13214, arXiv.org, revised Jun 2025.
    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. Salisu, Afees A. & Ogbonna, Ahamuefula E. & Gupta, Rangan & Bouri, Elie, 2025. "Forecasting spot and futures price volatility of agricultural commodities: The role of climate-related migration uncertainty," Research in International Business and Finance, Elsevier, vol. 80(C).
    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. 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).
    13. Yi Chen, 2025. "A novel method for corn futures price prediction integrating decomposition, denoising, feature selection and hybrid networks," Annals of Operations Research, Springer, vol. 353(2), pages 449-484, October.
    14. Dabin Zhang & Xiaoming Li & Liwen Ling & Huanling Hu & Ruibin Lin, 2025. "Integrated GCN–BiGRU–TPE Agricultural Product Futures Prices Prediction Based on Multi-graph Construction," Computational Economics, Springer;Society for Computational Economics, vol. 66(5), pages 3927-3955, November.
    15. Luo, Rui & Liu, Jinpei & Chen, Peipei & Luo, Jian, 2025. "Enhancing carbon price robust forecasting: A text-driven method utilizing weighted interval-joint quadratic support vector regression," Energy Economics, Elsevier, vol. 148(C).
    16. 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).
    17. Hugo Gobato Souto, 2026. "Evaluating the Efficacy of NHITS for Forecasting Stock Realized Volatility: A Comparative Analysis with Established Models," Computational Economics, Springer;Society for Computational Economics, vol. 67(2), pages 1291-1348, February.
    18. 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.
    19. 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).
    20. 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).

    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.