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

From Market Volatility to Predictive Insight: An Adaptive Transformer–RL Framework for Sentiment-Driven Financial Time-Series Forecasting

Author

Listed:
  • Zhicong Song

    (Department of Computer Science, Hong Kong Chu Hai College, Hong Kong 999077, China)

  • Harris Sik-Ho Tsang

    (Department of Computer Science, Hong Kong Chu Hai College, Hong Kong 999077, China)

  • Richard Tai-Chiu Hsung

    (Department of Computer Science, Hong Kong Chu Hai College, Hong Kong 999077, China)

  • Yulin Zhu

    (Department of Computer Science, Hong Kong Chu Hai College, Hong Kong 999077, China)

  • Wai-Lun Lo

    (Department of Computer Science, Hong Kong Chu Hai College, Hong Kong 999077, China)

Abstract

Financial time-series prediction remains a significant challenge, driven by market volatility, nonlinear dynamic characteristics, and the complex interplay between quantitative indicators and investor sentiment. Traditional time-series models (e.g., ARIMA and GARCH) struggle to capture the nuanced sentiment in textual data, while static deep learning integration methods fail to adapt to market regime transitions (bull markets, bear markets, and consolidation). This study proposes a hybrid framework that integrates investor forum sentiment analysis with adaptive deep reinforcement learning (DRL) for dynamic model integration. By constructing a domain-specific financial sentiment dictionary (containing 16,673 entries) based on the sentiment analysis approach and word-embedding technique, we achieved up to 97.35% accuracy in forum title classification tasks. Historical price data and investor forum sentiment information were then fed into a Support Vector Regressor (SVR) and three Transformer variants (single-layer, multi-layer, and bidirectional variants) for predictions, with a Deep Q-Network (DQN) agent dynamically fusing the prediction results. Comprehensive experiments were conducted on diverse financial datasets, including China Unicom, the CSI 100 index, corn, and Amazon (AMZN). The experimental results demonstrate that our proposed approach, combining textual sentiment with adaptive DRL integration, significantly enhances prediction robustness in volatile markets, achieving the lowest RMSEs across diverse assets. It overcomes the limitations of static methods and multi-market generalization, outperforming both benchmark and state-of-the-art models.

Suggested Citation

  • Zhicong Song & Harris Sik-Ho Tsang & Richard Tai-Chiu Hsung & Yulin Zhu & Wai-Lun Lo, 2025. "From Market Volatility to Predictive Insight: An Adaptive Transformer–RL Framework for Sentiment-Driven Financial Time-Series Forecasting," Forecasting, MDPI, vol. 7(4), pages 1-29, October.
  • Handle: RePEc:gam:jforec:v:7:y:2025:i:4:p:55-:d:1763898
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-9394/7/4/55/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-9394/7/4/55/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    2. 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).
    3. Paul C. Tetlock, 2007. "Giving Content to Investor Sentiment: The Role of Media in the Stock Market," Journal of Finance, American Finance Association, vol. 62(3), pages 1139-1168, June.
    4. Kui Fu & Yanbin Zhang, 2024. "Incorporating Multi-Source Market Sentiment and Price Data for Stock Price Prediction," Mathematics, MDPI, vol. 12(10), pages 1-26, May.
    5. Tim Loughran & Bill Mcdonald, 2011. "When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10‐Ks," Journal of Finance, American Finance Association, vol. 66(1), pages 35-65, February.
    6. Zeng, Liling & Hu, Huanling & Song, Qingkui & Zhang, Boting & Lin, Ruibin & Zhang, Dabin, 2024. "A drift-aware dynamic ensemble model with two-stage member selection for carbon price forecasting," Energy, Elsevier, vol. 313(C).
    7. Junxiao Gui & Nathee Naktnasukanjn & Xi Yu & Siva Shankar Ramasamy, 2024. "Research on the Impact of Economic Policy Uncertainty and Investor Sentiment on the Growth Enterprise Market Return in China—An Empirical Study Based on TVP-SV-VAR Model," IJFS, MDPI, vol. 12(4), pages 1-20, October.
    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. Massimiliano Caporin & Francesco Poli, 2017. "Building News Measures from Textual Data and an Application to Volatility Forecasting," Econometrics, MDPI, vol. 5(3), pages 1-46, August.
    2. Domenica Mino & Cillian Williamson, 2025. "Sentiment and Volatility in Financial Markets: A Review of BERT and GARCH Applications during Geopolitical Crises," Papers 2510.16503, arXiv.org.
    3. Marcelo Sardelich & Suresh Manandhar, 2018. "Multimodal deep learning for short-term stock volatility prediction," Papers 1812.10479, arXiv.org.
    4. Alberto Barroso Del Toro & Laura Vivas Crisol & Xavier Tort-Martorell, 2022. "The Sustainability Narrative: A Multi Study Using Event Studies to Analyse the American Energy Companies Shareholder’s Reaction to Sustainability News," IJERPH, MDPI, vol. 19(23), pages 1-17, November.
    5. Yen-Ju Hsu & Yang-Cheng Lu & J. Jimmy Yang, 2021. "News sentiment and stock market volatility," Review of Quantitative Finance and Accounting, Springer, vol. 57(3), pages 1093-1122, October.
    6. Yong Ma & Lu Yan & Dongtao Pan, 2024. "The power of news data in forecasting tail risk: evidence from China," Empirical Economics, Springer, vol. 67(6), pages 2607-2642, December.
    7. Erica Juvercina Sobrinho & Rodrigo Fernandes Malaquias, 2025. "Government Announcements Through Harvest Reports, Extreme Market Conditions, and Commodity Price Volatility," Commodities, MDPI, vol. 4(4), pages 1-16, September.
    8. D. Sujatha & A. Krishna Sudheer & Elamurugan Balasundaram, 2025. "Black swan dynamics: a network-based framework for systemic risk detection and mitigation," Risk Management, Palgrave Macmillan, vol. 27(4), pages 1-31, December.
    9. Müller, Karsten, 2020. "German forecasters' narratives: How informative are German business cycle forecast reports?," Working Papers 23, German Research Foundation's Priority Programme 1859 "Experience and Expectation. Historical Foundations of Economic Behaviour", Humboldt University Berlin.
    10. Yan Luo & Linying Zhou, 2020. "Textual tone in corporate financial disclosures: a survey of the literature," International Journal of Disclosure and Governance, Palgrave Macmillan, vol. 17(2), pages 101-110, September.
    11. Jiao Ji & Oleksandr Talavera & Shuxing Yin, 2018. "The Hidden Information Content: Evidence from the Tone of Independent Director Reports," Working Papers 2018-28, Swansea University, School of Management.
    12. Jang, Junkyu, 2025. "Selective news selection model for explainable stock prediction via cross-attention integration," Finance Research Letters, Elsevier, vol. 85(PD).
    13. Kirtac, Kemal & Germano, Guido, 2024. "Sentiment trading with large language models," Finance Research Letters, Elsevier, vol. 62(PB).
    14. Hamza Bennani & Cécile Couharde & Yoan Wallois, 2024. "The effect of IMF communication on government bond markets: insights from sentiment analysis," Review of World Economics (Weltwirtschaftliches Archiv), Springer;Institut für Weltwirtschaft (Kiel Institute for the World Economy), vol. 160(2), pages 615-656, May.
    15. Sapkota, Niranjan, 2022. "News-based sentiment and bitcoin volatility," International Review of Financial Analysis, Elsevier, vol. 82(C).
    16. David Bholat & Stephen Hans & Pedro Santos & Cheryl Schonhardt-Bailey, 2015. "Text mining for central banks," Handbooks, Centre for Central Banking Studies, Bank of England, number 33, April.
    17. Eryka Probierz & Adam Galuszka & Katarzyna Klimczak & Karol Jedrasiak & Tomasz Wisniewski & Tomasz Dzida, 2021. "Financial Sentiment on Twitter's Community and it's Connection to Polish Stock Market Movements in Context of Behavior Modelling," European Research Studies Journal, European Research Studies Journal, vol. 0(4 - Part ), pages 56-65.
    18. Chen, Cathy Yi-Hsuan & Fengler, Matthias R. & Härdle, Wolfgang Karl & Liu, Yanchu, 2022. "Media-expressed tone, option characteristics, and stock return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 134(C).
    19. Nguyen, Huan Huu & Ngo, Vu Minh & Pham, Luan Minh & Van Nguyen, Phuc, 2025. "Investor sentiment and market returns: A multi-horizon analysis," Research in International Business and Finance, Elsevier, vol. 74(C).
    20. Leilane de Freitas Rocha Cambara & Roberto Meurer, 2023. "News sentiment and foreign portfolio investment in Brazil," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(3), pages 3332-3348, July.

    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:7:y:2025:i:4:p:55-:d:1763898. 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: 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.