Research Article

COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING

Volume: 29 Number: 4 December 3, 2026
EN TR

COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING

Abstract

Forecasting stock returns is challenging due to market volatility and nonlinear dynamics. Models based on prices and technical indicators often miss the influence of financial news and investor sentiment. This study examines the role of news sentiment in stock return forecasting and prediction-based trading. FinBERT, which achieved the best sentiment classification (accuracy: 90.9%, F1-score: 0.91), generated daily sentiment scores from news headlines. These scores, combined with technical indicators, were fed into LSTM, GRU, and SimpleRNN models to forecast one-day and five-day returns for ten NASDAQ-listed companies. Sentiment-enhanced models improved directional performance and reduced forecasting errors in several cases, and some trading strategies yielded favorable outcomes. Overall, news sentiment provides complementary value, although its contribution varies across stocks and horizons.

Keywords

Supporting Institution

This research was supported by the project titled “Sosyal Medya, Haber, Temel ve Teknik Analizleri Dikkate Alan Makine Öğrenmesi Temelli Hisse Senedi Yatırım Tavsiye Platformu” funded by the TÜBİTAK TEYDEB program under Project Number 3230482.

Project Number

3230482

Ethical Statement

This study does not involve any human participants or animal experiments. Therefore, ethical approval was not required.

Thanks

The authors would like to thank the Scientific and Technological Research Council of Türkiye (TÜBİTAK) for supporting this work under the TEYDEB program (Project No. 3230482).

References

  1. Araci, D. (2019). FinBERT: Financial sentiment analysis with pre-trained language models. arXiv preprint arXiv:1908.10063. https://doi.org/10.48550/arXiv.1908.10063
  2. Ashtiani, M. N., & Raahemi, B. (2023). News-based intelligent prediction of financial markets using text mining and machine learning: A systematic literature review. Expert Systems with Applications, 217, 119509. https://doi.org/10.1016/j.eswa.2023.119509
  3. Ayyildiz, N., & Iskenderoglu, O. (2024). How effective is machine learning in stock market predictions? Heliyon, 10(2), e24123. https://doi.org/10.1016/j.heliyon.2024.e24123
  4. Bhatti, S. (2021). Financial Sentiment Analysis. https://www.kaggle.com/datasets/sbhatti/financial-sentiment-analysis Accessed 04.05.25.
  5. Bustos, O., Pomares-Quimbaya, A., & Stellian, R. (2025). Machine learning, stock market forecasting, and market efficiency: A comparative study. International Journal of Data Science and Analytics, 20(7), 6815–6839. https://doi.org/10.1007/s41060-025-00854-4
  6. Chang, Y., Lu, W., Xue, F., & Lu, X. (2025). Combining market-guided patterns and mamba for stock price prediction. Alexandria Engineering Journal, 113, 287–293. https://doi.org/10.1016/j.aej.2024.10.117
  7. Chung, J., Gulcehre, C., Cho, K., & Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555. https://doi.org/10.48550/arXiv.1412.3555
  8. Davidovic, M., & McCleary, J. (2025). News sentiment and stock market dynamics: A machine learning investigation. Journal of Risk and Financial Management, 18(8), 412. https://doi.org/10.3390/jrfm18080412

Details

Primary Language

English

Subjects

Data Engineering and Data Science, Natural Language Processing

Journal Section

Research Article

Authors

Muhammed Eşit
ABDULLAH GÜL ÜNİVERSİTESİ
0009-0003-8073-1945
Türkiye

Mustafa Etcil *
ABDULLAH GÜL ÜNİVERSİTESİ
0000-0002-5573-3418
Türkiye

Burak Kolukisa
Kayseri University
0000-0003-0423-4595
Türkiye

Burcu Güngör
ABDULLAH GÜL ÜNİVERSİTESİ
0000-0002-2272-6270
Türkiye

Publication Date

December 3, 2026

Submission Date

October 14, 2025

Acceptance Date

October 30, 2026

Published in Issue

Year 2026 Volume: 29 Number: 4

APA
Eşit, M., Etcil, M., Kolukisa, B., & Güngör, B. (2026). COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING. Kahramanmaraş Sütçü İmam Üniversitesi Mühendislik Bilimleri Dergisi, 29(4), 1750-1768. https://izlik.org/JA28XE63NU
AMA
1.Eşit M, Etcil M, Kolukisa B, Güngör B. COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING. KSU J. Eng. Sci. 2026;29(4):1750-1768. https://izlik.org/JA28XE63NU
Chicago
Eşit, Muhammed, Mustafa Etcil, Burak Kolukisa, and Burcu Güngör. 2026. “COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING”. Kahramanmaraş Sütçü İmam Üniversitesi Mühendislik Bilimleri Dergisi 29 (4): 1750-68. https://izlik.org/JA28XE63NU.
EndNote
Eşit M, Etcil M, Kolukisa B, Güngör B (December 3, 2026) COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING. Kahramanmaraş Sütçü İmam Üniversitesi Mühendislik Bilimleri Dergisi 29 4 1750–1768.
IEEE
[1]M. Eşit, M. Etcil, B. Kolukisa, and B. Güngör, “COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING”, KSU J. Eng. Sci., vol. 29, no. 4, pp. 1750–1768, Dec. 2026, [Online]. Available: https://izlik.org/JA28XE63NU
ISNAD
Eşit, Muhammed - Etcil, Mustafa - Kolukisa, Burak - Güngör, Burcu. “COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING”. Kahramanmaraş Sütçü İmam Üniversitesi Mühendislik Bilimleri Dergisi 29/4 (December 3, 2026): 1750-1768. https://izlik.org/JA28XE63NU.
JAMA
1.Eşit M, Etcil M, Kolukisa B, Güngör B. COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING. KSU J. Eng. Sci. 2026;29:1750–1768.
MLA
Eşit, Muhammed, et al. “COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING”. Kahramanmaraş Sütçü İmam Üniversitesi Mühendislik Bilimleri Dergisi, vol. 29, no. 4, Dec. 2026, pp. 1750-68, https://izlik.org/JA28XE63NU.
Vancouver
1.Muhammed Eşit, Mustafa Etcil, Burak Kolukisa, Burcu Güngör. COMPARATIVE ANALYSIS OF TRANSFORMER MODELS AND RECURRENT NEURAL NETWORKS FOR SENTIMENT-ENHANCED STOCK TRADING. KSU J. Eng. Sci. [Internet]. 2026 Dec. 3;29(4):1750-68. Available from: https://izlik.org/JA28XE63NU

INDEXING & ABSTRACTING & ARCHIVING

download?token=eyJhdXRoX3JvbGVzIjpbXSwiZW5kcG9pbnQiOiJqb3VybmFsIiwib3JpZ2luYWxuYW1lIjoiaW1hZ2UucG5nIiwicGF0aCI6IjAzNTkvYmZjYS81YjQyLzY5ZjFkM2E4NWY2YWY3Ljg1NjQ2NDgxLnBuZyIsImV4cCI6MTc3NzQ1OTY0MCwibm9uY2UiOiI1NTUzYmJiN2U5NGNkMjdkYWNhMTRlMDZiYjc1OTY4NCJ9.nCVoSJClEIC9bWK5gGCmjHyTNRz2N0DhYKVJzJZR9Bs

download?token=eyJhdXRoX3JvbGVzIjpbXSwiZW5kcG9pbnQiOiJqb3VybmFsIiwib3JpZ2luYWxuYW1lIjoiaW1hZ2UucG5nIiwicGF0aCI6Ijg5YmUvODZlOC8wYzY0LzY5ZjFkNWE4MWJmYzY0LjM0OTM2NzM1LnBuZyIsImV4cCI6MTc3NzQ2MDE1Miwibm9uY2UiOiI3OWE1Mzk0OWRhMTk0Mjg0OGYzZTUxOWQyNTU5MjdjMSJ9.XxqhJ36woCZcO1DV_I9Mogpgg86-bwM454jQiOcqpS0 

This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0).