Sentiment analysis of users in the financial market using the BERT algorithm in the New York Stock market

Authors

    Nima Heidari Ph.D. candidate, Department of Industrial Engineering, Iran University of Science and Technology, Tehran, Iran
    Saeed Mirzamohammadi * Assistant Professor, Department of Industrial Engineering, Iran University of Science and Technology, Tehran, Iran mirzamohammadi@iust.ac.ir
    Babak Amiri Assistant Professor, Department of Industrial Engineering, Iran University of Science and Technology, Tehran, Iran

Keywords:

user sentiments, financial market, BERT algorithm, New York stock market

Abstract

Nowadays, analyzing individuals’ sentiments is supposedly a main indicator in financial management and economic forecasts. Human analysis of different opinions and news during exchanging different opinions between individuals can take several minutes, and investors in financial markets need to make decisions quickly. Such challenging scenarios require faster ways for investors to make decisions. The current research analyzes the sentiments of users in the financial market using the BERT algorithm in the New York stock market based on profit news. This research has set up a data set based on the BERT model to evaluate and predict changes in New York stock market prices for Tesla and has analyzed the results through Python software. This research introduced two multi-class and multi-label models based on individuals’ opinions to classify data on users' sentiments. The results showed that the multi-label model without considering the time lag with an F1 score equal to 0.846 has better performance compared to the multi-class models.

References

[1] R. Catelli, S. Pelosi, and M. Esposito, "Lexicon-based vs. BERT-based sentiment analysis: A comparative study in Italian," Electronics, vol. 11, no. 3, p. 374, 2022, doi: 10.3390/electronics11030374.

[2] M. G. Sousa, K. Sakiyama, L. de Souza Rodrigues, P. H. Moraes, E. R. Fernandes, and E. T. Matsubara, "BERT for stock market sentiment analysis," in 2019 IEEE 31st International Conference on Tools with Artificial Intelligence (ICTAI), 2019, pp. 1597-1601, doi: 10.1109/ICTAI.2019.00231.

[3] M. Li, L. Chen, J. Zhao, and Q. Li, "Sentiment analysis of Chinese stock reviews based on BERT model," Applied Intelligence, vol. 51, pp. 5016-5024, 2021, doi: 10.1007/s10489-020-02101-8.

[4] M. Li, W. Li, F. Wang, X. Jia, and G. Rui, "Applying BERT to analyze investor sentiment in stock market," Neural Computing and Applications, vol. 33, pp. 4663-4676, 2021, doi: 10.1007/s00521-020-05411-7.

[5] S. Alaparthi and M. Mishra, "BERT: A sentiment analysis odyssey," Journal of Marketing Analytics, vol. 9, no. 2, pp. 118-126, 2021, doi: 10.1057/s41270-021-00109-8.

[6] H. Jafarian, A. H. Taghavi, A. Javaheri, and R. Rawassizadeh, "Exploiting BERT to improve aspect-based sentiment analysis performance on Persian language," in 2021 7th International Conference on Web Research (ICWR), 2021, pp. 5-8, doi: 10.1109/ICWR51868.2021.9443131.

[7] C. Liu, J. Yan, F. Guo, and M. Guo, "Forecasting the market with machine learning algorithms: an application of NMC-BERT-LSTM-DQN-X algorithm in quantitative trading," ACM Transactions on Knowledge Discovery from Data (TKDD), vol. 16, no. 4, pp. 1-22, 2022, doi: 10.1145/3564531.

[8] S. Y. Lin, Y. C. Kung, and F. Y. Leu, "Predictive intelligence in harmful news identification by BERT-based ensemble learning model with text sentiment analysis," Information Processing & Management, vol. 59, no. 2, p. 102872, 2022, doi: 10.1016/j.ipm.2022.102872.

[9] Y. Ayyappa, B. V. Kumar, S. P. Priya, S. Akhila, T. P. V. Reddy, and S. M. Goush, "Forecasting Equity Prices using LSTM and BERT with Sentiment Analysis," in 2023 International Conference on Inventive Computation Technologies (ICICT), 2023, pp. 643-648, doi: 10.1109/ICICT57646.2023.10134443.

[10] J. H. Joloudari et al., "BERT-deep CNN: State of the art for sentiment analysis of COVID-19 tweets," Social Network Analysis and Mining, vol. 13, no. 1, p. 99, 2023, doi: 10.1007/s13278-023-01102-y.

[11] G. Z. Nabiilah, S. Y. Prasetyo, Z. N. Izdihar, and A. S. Girsang, "BERT base model for toxic comment analysis on Indonesian social media," Procedia Computer Science, vol. 216, pp. 714-721, 2023, doi: 10.1016/j.procs.2022.12.188.

[12] S. Hao, P. Zhang, S. Liu, and Y. Wang, "Sentiment recognition and analysis method of official document text based on BERT-SVM model," Neural Computing and Applications, pp. 1-12, 2023, doi: 10.1007/s00521-023-08226-4.

[13] P. K. Jain, W. Quamer, V. Saravanan, and R. Pamula, "Employing BERT-DCNN with sentic knowledge base for social media sentiment analysis," Journal of Ambient Intelligence and Humanized Computing, vol. 14, no. 8, pp. 10417-10429, 2023, doi: 10.1007/s12652-022-03698-z.

[14] Z. Liu, D. Huang, K. Huang, Z. Li, and J. Zhao, "FinBERT: A pre-trained financial language representation model for financial text mining," in Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI, 2020, doi: 10.24963/ijcai.2020/622.

Downloads

Published

2026-07-01

Submitted

2025-10-01

Revised

2026-02-01

Accepted

2026-02-07

Issue

Section

Articles

How to Cite

Heidari, N. ., Mirzamohammadi, S., & Amiri, B. . (2026). Sentiment analysis of users in the financial market using the BERT algorithm in the New York Stock market. Management Strategies and Engineering Sciences, 1-11. https://msesj.com/index.php/mses/article/view/343

Similar Articles

1-10 of 139

You may also start an advanced similarity search for this article.