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

Two‐Stream Reinforcement Ensemble Framework for Agricultural Commodity Prices Forecasting Using Textual Data

Author

Listed:
  • Lin Wang
  • Lean Yu
  • Wuyue An

Abstract

Influenced by various complex factors, the price series of agricultural futures exhibit nonstationarity. Existing research often presumes that the relationship between inputs and outputs remains stable throughout the training process. This assumption makes it challenging to dynamically adjust the weights of various models based on data characteristics. Furthermore, existing studies focus only on modeling variable dependencies, overlooking the impact of variable independence on model robustness. Therefore, this paper proposes a two‐stream ensemble forecasting model that integrates a dynamic sentiment index. Initially, ChineseBERT and textCNN are employed to classify the sentiment of news texts, calculating the sentiment scores. Subsequently, weight factors are designed based on daily price fluctuations to adjust these sentiment scores, ensuring they accurately reflect the impact of news sentiment on market prices. In the model construction phase, multivariate time series data are input into two distinct models: one model is dedicated to capturing temporal dependencies, while the other focuses on capturing intervariable dependencies, thereby providing diverse yet complementary predictive insights. An online convex optimization approach is then utilized to learn the optimal combination weights. During the testing phase, reinforcement learning is applied to dynamically adjust the prediction weights of these two models. The effectiveness of the proposed methods is validated using soybean and corn futures prices. Experimental results demonstrate that the proposed two‐stage sentiment index (TPSI) exhibits strong predictive capability for agricultural futures prices, achieving high accuracy in short‐term and medium‐term price forecasts.

Suggested Citation

  • 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.
  • Handle: RePEc:wly:jforec:v:44:y:2025:i:8:p:2386-2404
    DOI: 10.1002/for.70015
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1002/for.70015?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. 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.
    2. Tian, Fengping & Yang, Ke & Chen, Langnan, 2017. "Realized volatility forecasting of agricultural commodity futures using the HAR model with time-varying sparsity," International Journal of Forecasting, Elsevier, vol. 33(1), pages 132-152.
    3. Yongmei Fang & Bo Guan & Shangjuan Wu & Saeed Heravi, 2020. "Optimal forecast combination based on ensemble empirical mode decomposition for agricultural commodity futures prices," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(6), pages 877-886, September.
    4. 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.
    5. Hardik A. Marfatia & Qiang Ji & Jiawen Luo, 2022. "Forecasting the volatility of agricultural commodity futures: The role of co‐volatility and oil volatility," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(2), pages 383-404, March.
    6. Paroissien, Emmanuel, 2020. "Forecasting bulk prices of Bordeaux wines using leading indicators," International Journal of Forecasting, Elsevier, vol. 36(2), pages 292-309.
    7. 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.
    8. Tserenpurev Chuluunsaikhan & Ga-Ae Ryu & Kwan-Hee Yoo & HyungChul Rah & Aziz Nasridinov, 2020. "Incorporating Deep Learning and News Topic Modeling for Forecasting Pork Prices: The Case of South Korea," Agriculture, MDPI, vol. 10(11), pages 1-22, October.
    9. Wu, Binrong & Wang, Lin & Wang, Sirui & Zeng, Yu-Rong, 2021. "Forecasting the U.S. oil markets based on social media information during the COVID-19 pandemic," Energy, Elsevier, vol. 226(C).
    10. Yun Bai & Xixi Li & Hao Yu & Suling Jia, 2020. "Crude oil price forecasting incorporating news text," Papers 2002.02010, arXiv.org, revised Jul 2021.
    11. Li, Ranran & Hu, Yucai & Heng, Jiani & Chen, Xueli, 2021. "A novel multiscale forecasting model for crude oil price time series," Technological Forecasting and Social Change, Elsevier, vol. 173(C).
    12. Wang, Jue & Wang, Zhen & Li, Xiang & Zhou, Hao, 2022. "Artificial bee colony-based combination approach to forecasting agricultural commodity prices," International Journal of Forecasting, Elsevier, vol. 38(1), pages 21-34.
    13. Binrong Wu & Zhongrui Wang & Lin Wang, 2024. "Interpretable corn future price forecasting with multivariate time series," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(5), pages 1575-1594, August.
    14. 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.
    15. Lin Wang & Wuyue An & Feng‐Ting Li, 2024. "Text‐based corn futures price forecasting using improved neural basis expansion network," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(6), pages 2042-2063, September.
    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. Li, Yuze & Jiang, Shangrong & Li, Xuerong & Wang, Shouyang, 2021. "The role of news sentiment in oil futures returns and volatility forecasting: Data-decomposition based deep learning approach," Energy Economics, Elsevier, vol. 95(C).
    18. Harvey, David & Leybourne, Stephen & Newbold, Paul, 1997. "Testing the equality of prediction mean squared errors," International Journal of Forecasting, Elsevier, vol. 13(2), pages 281-291, June.
    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. 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.
    2. 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.
    3. 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).
    4. Xu Gong & Keqin Guan & Qiyang Chen, 2022. "The role of textual analysis in oil futures price forecasting based on machine learning approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(10), pages 1987-2017, October.
    5. Rui Luo & Jinpei Liu & Piao Wang & Zhifu Tao & Huayou Chen, 2024. "A multisource data‐driven combined forecasting model based on internet search keyword screening method for interval soybean futures price," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(2), pages 366-390, March.
    6. Lin Wang & Wuyue An & Feng‐Ting Li, 2024. "Text‐based corn futures price forecasting using improved neural basis expansion network," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(6), pages 2042-2063, September.
    7. Bonato, Matteo & Cepni, Oguzhan & Gupta, Rangan & Pierdzioch, Christian, 2024. "Financial stress and realized volatility: The case of agricultural commodities," Research in International Business and Finance, Elsevier, vol. 71(C).
    8. 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.
    9. Wuyue An & Lin Wang & Yu‐Rong Zeng, 2023. "Text‐based soybean futures price forecasting: A two‐stage deep learning approach," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(2), pages 312-330, March.
    10. Jiangwei Liu & Xiaohong Huang, 2021. "Forecasting Crude Oil Price Using Event Extraction," Papers 2111.09111, arXiv.org.
    11. 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.
    12. 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.
    13. 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).
    14. Krzysztof Drachal, 2022. "Forecasting the Crude Oil Spot Price with Bayesian Symbolic Regression," Energies, MDPI, vol. 16(1), pages 1-29, December.
    15. Xu, Kunliang & Wang, Weiqing, 2023. "Limited information limits accuracy: Whether ensemble empirical mode decomposition improves crude oil spot price prediction?," International Review of Financial Analysis, Elsevier, vol. 87(C).
    16. Li, Jieyi & Qian, Shuangyue & Li, Ling & Guo, Yuanxuan & Wu, Jun & Tang, Ling, 2024. "A novel secondary decomposition method for forecasting crude oil price with twitter sentiment," Energy, Elsevier, vol. 290(C).
    17. Jiang, He & Hu, Weiqiang & Xiao, Ling & Dong, Yao, 2022. "A decomposition ensemble based deep learning approach for crude oil price forecasting," Resources Policy, Elsevier, vol. 78(C).
    18. Rangan Gupta & Christian Pierdzioch, 2024. "Multi-Task Forecasting of the Realized Volatilities of Agricultural Commodity Prices," Mathematics, MDPI, vol. 12(18), pages 1-26, September.
    19. Matteo Bonato & Oguzhan Cepni & Rangan Gupta & Christian Pierdzioch, 2024. "Forecasting the realized volatility of agricultural commodity prices: Does sentiment matter?," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(6), pages 2088-2125, September.
    20. Matteo Bonato & Oğuzhan Çepni & Rangan Gupta & Christian Pierdzioch, 2023. "El Niño, La Niña, and forecastability of the realized variance of agricultural commodity prices: Evidence from a machine learning approach," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(4), pages 785-801, July.

    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:8:p:2386-2404. 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.