Predicting Borsa Istanbul Bank Indices Using Deep Neural Networks and Text Mining
Abstract
1. Introduction
2. Methodology
2.1. Financial Markets/Technical Indicators
2.1.1. Basic Analysis
2.1.2. Technical Analysis
- History repeats itself; that is, past movements produce similar ones in the future.
- The price reflects all information on the market.
- Price movements follow trends for a specific and significant period of time [26].
| Indicators | Formula |
| Williams %R Indicator | |
| Moving Average | |
| Relative Strength Index | |
| Stochastic Oscillator | |
| Moving Average Convergence–Divergence | |
| Momentum Indicator | |
| Description | |
| Highest price in n days | |
| Closing price | |
| Closing price n days ago | |
| Lowest price in n days | |
| Lowest price within the specified period | |
| Highest price within the specified period | |
| 26-day exponential moving average | |
| 12-day exponential moving average |
2.2. Data Collection
2.3. Data Preparation
2.4. Feature Selection
- Shadow values are created.
- Random Forest Algorithm is trained using all of the features and Z-scores are calculated.
- Maximum Z-score is calculated.
- Variables are checked for whether their presence in the model is significant or not.
- Finally, the algorithm decides on the variables that should be kept in the model.
3. Results
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Türkmen, A.C.; Cemgil, A.T. An application of deep learning for trade signal prediction in financial markets. In Proceedings of the 2015 23nd Signal Processing and Communications Applications Conference (SIU); IEEE: Piscataway, NJ, USA, 2015; pp. 2521–2524. [Google Scholar]
- Gunduz, H.; Cataltepe, Z.; Yaslan, Y. Stock market direction prediction using deep neural networks. In Proceedings of the 2017 25th Signal Processing and Communications Applications Conference (SIU); IEEE: Piscataway, NJ, USA, 2017; pp. 1–4. [Google Scholar]
- Fung, G.P.C.; Yu, J.X.; Lam, W. Stock prediction: Integrating text mining approach using real-time news. In Proceedings of the 2003 IEEE International Conference on Computational Intelligence for Financial Engineering, 2003; IEEE: Piscataway, NJ, USA, 2003; pp. 395–402. [Google Scholar]
- Mahajan, A.; Dey, L.; Haque, S.M. Mining financial news for major events and their impacts on the market. In Proceedings of the IEEE/WIC/ACM International Conference on Web Intelligence and Intelligent Agent Technology; IEEE Computer Society: Los Alamitos, CA, USA, 2008; Volume 1, pp. 423–426. [Google Scholar]
- Akita, R.; Yoshihara, A.; Matsubara, T.; Uehara, K. Deep learning for stock prediction using numerical and textual information. In Proceedings of the 2016 IEEE/ACIS 15th International Conference on Computer and Information Science (ICIS); IEEE: Piscataway, NJ, USA, 2016; pp. 1–6. [Google Scholar]
- Oncharoen, P.; Vateekul, P. Deep learning for stock market prediction using event embedding and technical indicators. In Proceedings of the 2018 5th International Conference on Advanced Informatics: Concept Theory and Applications (ICAICTA); IEEE: Piscataway, NJ, USA, 2018; pp. 19–24. [Google Scholar]
- Tetlock, P.C. Giving content to investor sentiment: The role of media in the stock market. J. Financ. 2007, 62, 1139–1168. [Google Scholar] [CrossRef]
- Bollen, J.; Mao, H.; Zeng, X. Twitter mood predicts the stock market. J. Comput. Sci. 2011, 2, 1–8. [Google Scholar] [CrossRef]
- Ding, X.; Zhang, Y.; Liu, T.; Duan, J. Deep learning for event-driven stock prediction. In Proceedings of the 24th International Joint Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2015; Volume 15, pp. 2327–2333. [Google Scholar]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Fischer, T.; Krauss, C. Deep learning with long short-term memory networks for financial market predictions. Eur. J. Oper. Res. 2018, 270, 654–669. [Google Scholar] [CrossRef]
- Nelson, D.M.; Pereira, A.C.; De Oliveira, R.A. Stock market’s price movement prediction with LSTM neural networks. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN); IEEE: Piscataway, NJ, USA, 2017; pp. 1419–1426. [Google Scholar]
- Pellicani, A.; Pio, G.; Ceci, M. CARROT: Simultaneous prediction of anomalies from groups of correlated cryptocurrency trends. Expert Syst. Appl. 2025, 260, 125457. [Google Scholar] [CrossRef]
- Sezer, O.B.; Gudelek, M.U.; Ozbayoglu, A.M. Financial time series forecasting with deep learning: A systematic literature review: 2005–2019. Appl. Soft Comput. 2020, 90, 106181. [Google Scholar] [CrossRef]
- Wikipedia Contributors. March 2019 Istanbul Mayoral Election. 2024. Available online: https://en.wikipedia.org/wiki/March_2019_Istanbul_mayoral_election (accessed on 22 May 2024).
- McKernan, B. Erdogan Faces Scrutiny Once More as Istanbul Goes Back to the Polls. The Guardian. Available online: https://www.theguardian.com/world/2019/jun/23/erdogan-faces-scrutiny-once-more-as-istanbul-goes-back-to-the-polls (accessed on 22 May 2024).
- Hornik, K.; Stinchcombe, M.; White, H. Multilayer feedforward networks are universal approximators. Neural Netw. 1989, 2, 359–366. [Google Scholar] [CrossRef]
- Goodfellow, I. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar]
- Aytekin, G. Türkiye’de Sermaye Piyasaları ve Borsaların Gelişim Süreci. Int. J. Humanit. Educ. 2018, 4, 150–176. [Google Scholar]
- Kindik, N. Türkiye’de Hisse Senedi Piyasasının Ekonomik Büyümeye Katkısı. Master’s Thesis, Nevşehir Hacı Bektaş Veli University Institute of Social Sciences, Nevşehir, Turkey, 2019. [Google Scholar]
- Erdinç, Y. Yatırımcı ve Teknik Analiz Sorgulanıyor; Siyasal Kitabevi: Ankara, Turkey, 2004. [Google Scholar]
- Krantz, M. Fundamental Analysis for Dummies; Wiley Publishing: Hoboken, NJ, USA, 2010. [Google Scholar]
- Ergin, E. Hisse Senedi Piyasalarında Temel Analiz: 2008–2013 Yılları Arasında Bist’te işlem Gören Sigorta şirketleri üzerine Bir Uygulama. Master’s Thesis, Osmaniye Korkut Ata University Institute of Social Sciences, Osmaniye, Turkey, 2015. [Google Scholar]
- Kirkpatrick, C.D.; Dahlquist, J. Technical Analysis: The Complete Resource for Financial Market Technicians; FT Press: Upper Saddle River, NJ, USA, 2011. [Google Scholar]
- Cetinyokuş, T.; Gökçen, H. Borsada Göstergelerle Teknik Analiz için Bir Karar Destek Sistemi. J. Fac. Eng. Archit. Gazi Univ. 2002, 17, 43–58. [Google Scholar]
- Orçun, C. Finansal Piyasalarda Alım Satım Kararlarında Teknik Analiz ve İMKB Uygulaması. Master’s Thesis, Dokuz Eylül University Institute of Social Sciences, İzmir, Turkey, 2010. [Google Scholar]
- Oztürk, H. Teknik Analizde Alım-Satım Sistemi Oluşturma: Sistemin Geçmişe Yönelik Testleri. J. Financ. Res. Stud. 2016, 8, 469–493. [Google Scholar] [CrossRef]
- Blanco, P.F.; Sagi, D.B.; Soltero, F.; Hidalho, J.I. Technical Market Indicators Optimization using Evolutionary Algorithms. In GECCO’08: Proceedings of the 10th Annual Conference Companion on Genetic and Evolutionary Computation; Association for Computing Machinery: New York, NY, USA, 2008; pp. 1851–1858. [Google Scholar] [CrossRef]
- R Core Team. An Introduction to R; R Foundation for Statistical Computing: Vienna, Austria, 2024. [Google Scholar]
- Kursa, M.B.; Rudnicki, W.R. Feature selection with the Boruta package. J. Stat. Softw. 2010, 36, 1–13. [Google Scholar] [CrossRef]
- Chollet, F.; Kalinowski, T.; Allaire, J.J. Deep Learning with R; Simon and Schuster: New York, NY, USA, 2022. [Google Scholar]
- Wickham, H.; Francois, R.; Henry, L.; Müller, K.; Vaughan, D. dplyr: A Grammar of Data Manipulation, R Package Version 1.2.1. Available online: https://dplyr.tidyverse.org (accessed on 26 April 2026).
- Sirisuriya, D.S. A Comparative Study on Web Scraping. In Proceedings of the 8th International Research Conference, KDU, Ratmalana, Sri Lanka, 27–28 August 2015. [Google Scholar]
- Akın, A.A.; Akın, M.D. Zemberek, an open source NLP framework for Turkic languages. Structure 2007, 10, 1–5. [Google Scholar]
- Blei, D.M.; Ng, A.Y.; Jordan, M.I. Latent Dirichlet Allocation. J. Mach. Learn. Res. 2003, 3, 993–1022. [Google Scholar]
- Gan, J.; Qi, Y. Selection of the optimal number of topics for LDA topic model—Taking patent policy analysis as an example. Entropy 2021, 23, 1301. [Google Scholar] [CrossRef] [PubMed]
- Chen, Q.; Yao, L.; Yang, J. Short Text Classification Based On Lda Toic Model. In Proceedings of the International Conference on Audio, Language and Image Processing (ICALIP); IEEE: Piscataway, NJ, USA, 2016; pp. 749–753. [Google Scholar] [CrossRef]
- Zheng, A. Evaluating Machine Learning Models; O’reilly Media: Sebastopol, CA, USA, 2015. [Google Scholar]
- Tanyıldızı, E.; Demirtaş, F. Hiper Parametre Optimizasyonu. In Proceedings of the 1st International Informatics and Software Engineering Conference (UBMYK); IEEE: Piscataway, NJ, USA, 2019; pp. 1–5. [Google Scholar] [CrossRef]
- Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
- Nazir, S.; Patel, S.; Patel, D. Hyper Parameters Selection for Image Classification in Convolutional Neural Networks. In Proceedings of the 17th International Conference on Cognitive Informatics & Cognitive Computing (ICCI*CC’18); IEEE: Piscataway, NJ, USA, 2018; pp. 401–407. [Google Scholar] [CrossRef]
- Wang, Z.; Bovik, A.C. Mean squared error: Love it or leave it? A new look at Signal Fidelity Measures. IEEE Signal Process. Mag. 2009, 26, 98–117. [Google Scholar] [CrossRef]
- James, G.; Witten, D.; Hastie, T.; Tibshirani, R.; Taylor, J. An Introduction to Statistical Learning: With Applications in R; Springer: Cham, Switzerland, 2013; Volume 103. [Google Scholar]
- Dayı, F. Sistematik Riskin Hisse Senedi Getirisine Etkisi: Borsa Istanbul örneği. Optim. J. Econ. Manag. Sci. 2020, 7, 1–20. [Google Scholar]
- Cınaroğlu, S. Sağlık Harcamasının Tahmininde Makine öğrenmesi Regresyon Yöntemlerinin Karşılaştırılması. Uludağ Univ. J. Fac. Eng. 2017, 22, 179–200. [Google Scholar]
- Chicco, D.; Warrens, M.J.; Jurman, G. The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation. PeerJ Comput. Sci. 2021, 7, e623. [Google Scholar] [CrossRef] [PubMed]








| Root Mean Squared Error | Dropout | Dropout2 | Batch | Epoch |
|---|---|---|---|---|
| 0.4 | 0.4 | 32 | 50 |
| July–December 2019 (Excl.) | July–December 2019 (Incl.) | |||||
|---|---|---|---|---|---|---|
| Models | RMSE | MAPE | MAE | RMSE | MAPE | MAE |
| Combined | 46,308.96 | 32.71% | 40,002.74 | 89,226.18 | 33.06% | 71,141.58 |
| Average of Financial and Textual | 11,203.49 | 7.58% | 8984.48 | 24,011.12 | 11.58% | 17,923.36 |
| Textual | 19,650.73 | 13.67% | 15,840.19 | 17,725.52 | 11.47% | 13,890.07 |
| Financial | 20,361.73 | 14.47% | 17,068.08 | 50,362.44 | 22.28% | 37,001.72 |
| Average of Combined and Textual | 23,633.45 | 16.56% | 20,043.73 | 43,349.14 | 19.26% | 34,703.84 |
| Average of Combined and Financial | 30,403.41 | 21.11% | 25,563.66 | 68,676.27 | 26.57% | 51,963.89 |
| Average of Combined, Financial and Textual | 198,686.17 | 13.51% | 16,343.57 | 44,567.76 | 18.41% | 33,548.92 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Altunbas, C.; Aydin, O.; Hayat, E. Predicting Borsa Istanbul Bank Indices Using Deep Neural Networks and Text Mining. Appl. Sci. 2026, 16, 4377. https://doi.org/10.3390/app16094377
Altunbas C, Aydin O, Hayat E. Predicting Borsa Istanbul Bank Indices Using Deep Neural Networks and Text Mining. Applied Sciences. 2026; 16(9):4377. https://doi.org/10.3390/app16094377
Chicago/Turabian StyleAltunbas, Cansu, Olgun Aydin, and Elvan Hayat. 2026. "Predicting Borsa Istanbul Bank Indices Using Deep Neural Networks and Text Mining" Applied Sciences 16, no. 9: 4377. https://doi.org/10.3390/app16094377
APA StyleAltunbas, C., Aydin, O., & Hayat, E. (2026). Predicting Borsa Istanbul Bank Indices Using Deep Neural Networks and Text Mining. Applied Sciences, 16(9), 4377. https://doi.org/10.3390/app16094377

