Research Article

Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis

Volume: 33 Number: 1 January 30, 2021
EN TR

Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis

Abstract

Predicting the stock market instrument price is a valuable but challenging machine learning task. Researchers use advanced techniques to improve the generalization ability of stock prediction models. However, considering that the stock market highly depends on the political and macroeconomic developments as well as the mood of the related investors, the models that use only stock prices fail to cover all factors affecting the stock market. Therefore, to improve the prediction accuracy of stock market prediction, in this study, we first apply sentiment analysis to the news related with the market and related stock, and then combine the sentiment labels of the news with stock prices and commonly used technical indicators. The obtained cumulative dataset is used to train a long short-term memory recurrent neural network, and the output of this regression model is used in the prediction of the closing price movement to decide whether the closing price next day will be higher. The experiments performed on 8-year data showed that while the f1 score of the model built without sentiment analysis was around 0.56, it has increased to 0.65 when stock prices are combined with sentiment labels. The results show that the model with sentiment labels fits better to the actual prices especially when there is a high volatility in the stock price.

Keywords

References

  1. [1] Henrique, B.M., Sobreiro, V.A. and Kimura, H., “Literature review: Machine learning techniques applied to financial market prediction”, Expert Systems with Applications, 124: 226-251, (2019).
  2. [2] Gandhmal, D.P. and Kumar, K., “Systematic analysis and review of stock market prediction techniques”, Computer Science Review, 34: 100190, (2019).
  3. [3] Akita, R., Yoshihara, A., Matsubara, T. and Uehara, K., “Deep learning for stock prediction using numerical and textual information”, IEEE/ACIS 15th International Conference on Computer and Information Science (ICIS), Okayama, Japan, 1-6, (2016).
  4. [4] Chong, E., Han, C. and Park, F.C., “Deep learning networks for stock market analysis and prediction: Methodology, data representations, and case studies”, Expert Systems with Applications, 83: 87-205, (2017).
  5. [5] Yoshihara, A., Fujikawa, K., Seki, K. and Uehara, K., “Predicting stock market trends by recurrent deep neural networks”, Pacific Rim International Conference on Artificial Intelligence, Gold Coast, QLD, Australia, 759-769, (2014).
  6. [6] Nguyen, T.H., Shirai, K. and Velcin, J., “Sentiment analysis on social media for stock movement prediction”, Expert Systems with Applications, 42(24): 9603-9611, (2015).
  7. [7] Vargas, M.R., De Lima, B.S. and Evsukoff, A.G., “Deep learning for stock market prediction from financial news articles”, IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA), Annecy, France, 60-65, (2017).
  8. [8] Pagolu, V.S., Reddy, K.N., Panda, G. and Majhi, B., “Sentiment analysis of Twitter data for predicting stock market movements”, International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES), Paralakhemundi, India, 1345-1350, (2016).

Details

Primary Language

English

Subjects

Engineering

Journal Section

Research Article

Publication Date

January 30, 2021

Submission Date

February 3, 2020

Acceptance Date

October 5, 2020

Published in Issue

Year 2021 Volume: 33 Number: 1

APA
Gumus, A., & Sakar, C. O. (2021). Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis. International Journal of Advances in Engineering and Pure Sciences, 33(1), 18-27. https://doi.org/10.7240/jeps.683952
AMA
1.Gumus A, Sakar CO. Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis. JEPS. 2021;33(1):18-27. doi:10.7240/jeps.683952
Chicago
Gumus, Adnan, and C. Okan Sakar. 2021. “Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis”. International Journal of Advances in Engineering and Pure Sciences 33 (1): 18-27. https://doi.org/10.7240/jeps.683952.
EndNote
Gumus A, Sakar CO (January 1, 2021) Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis. International Journal of Advances in Engineering and Pure Sciences 33 1 18–27.
IEEE
[1]A. Gumus and C. O. Sakar, “Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis”, JEPS, vol. 33, no. 1, pp. 18–27, Jan. 2021, doi: 10.7240/jeps.683952.
ISNAD
Gumus, Adnan - Sakar, C. Okan. “Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis”. International Journal of Advances in Engineering and Pure Sciences 33/1 (January 1, 2021): 18-27. https://doi.org/10.7240/jeps.683952.
JAMA
1.Gumus A, Sakar CO. Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis. JEPS. 2021;33:18–27.
MLA
Gumus, Adnan, and C. Okan Sakar. “Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis”. International Journal of Advances in Engineering and Pure Sciences, vol. 33, no. 1, Jan. 2021, pp. 18-27, doi:10.7240/jeps.683952.
Vancouver
1.Adnan Gumus, C. Okan Sakar. Stock Market Prediction by Combining Stock Price Information and Sentiment Analysis. JEPS. 2021 Jan. 1;33(1):18-27. doi:10.7240/jeps.683952

Cited By