Skip to main content

Effectiveness of Social Media in Stock Market Price Prediction Based on Machine Learning

  • Conference paper
  • First Online:
Intelligent and Fuzzy Systems (INFUS 2022)

Abstract

Trying to predict the future using social media data and analytics is very popular today. With this motivation, we aimed to make stock market predictions by creating different analysis models for 10 different banks traded in “Borsa Istanbul 100” over 3 different groups that we selected on social media. The groups determined within the scope of the study can be detailed as tweets posted by banks from their accounts, tweets posted with the name of the bank, and tweets with the name of the bank posted from approved accounts. In our analysis, we used various variations, including the tweets’ sentiments, replies, retweet and like counts of the tweets, the effects of daily currency (Dollar, Euro, and Gold) prices, and the changes in stock changes up to 3 days. To apply some pre-processing techniques to the collected data, we defined sentiment classes for sentiment analysis, created 6 different models, and analyzed it using 7 different classification algorithms such as Multi-Layer Perceptron, Random Forest, and deep learning algorithm. After all the models and analysis, we got a total of 1440 different results. According to our results, the accuracy rates vary according to the data groups and models we have chosen. The tweet group in which the name of the banks is mentioned can be shown as the most successful data group and we can easily say that there is a certain relation between social media and stock market prices.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 329.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Schniederjans, D., Cao, E.S., Schniederjans, M.: Enhancing financial performance with social media: an impression management perspective. Decis. Support Syst. 55(4), 911–918 (2013)

    Article  Google Scholar 

  2. Akmese, H., Aras, S., Akmese, K.: Financial performance and social media: a research on tourism enterprises quoted in Istanbul stock exchange (BIST). Procedia Econ. Finan. 39, 705–710 (2016)

    Article  Google Scholar 

  3. Nguyen, T.H., Shirai, K., Velcin, J.: Sentiment analysis on social media for stock movement prediction. Expert Syst. Appl. 42(24), 9603–9611 (2015)

    Article  Google Scholar 

  4. Kaushik, B., Hemani, H., Ilavarasan, P.V.: Social media usage vs. stock prices: an analysis of Indian firms. Procedia Comput. Sci. 122, 323–330 (2017)

    Article  Google Scholar 

  5. Chahine, S., Malhotra, N.K.: Impact of social media strategies on stock price: the case of Twitter. Eur. J. Market. 52, 1526–1549 (2018)

    Article  Google Scholar 

  6. Carosia, A.E.O., Coelho, G.P., Silva, A.E.A.: Analyzing the Brazilian financial market through Portuguese sentiment analysis in social media. Appl. Artif. Intell. 34(1), 1–19 (2020)

    Article  Google Scholar 

  7. Van Dieijen, M., Borah, A., Tellis, G.J., Franses, P.H.: Big data analysis of volatility spillovers of brands across social media and stock markets. Ind. Mark. Manage. 88, 465–484 (2020)

    Article  Google Scholar 

  8. Khan, W., Ghazanfar, M.A., Azam, M.A., Karami, A., Alyoubi, K.H., Alfakeeh, A.S.: Stock market prediction using machine learning classifiers and social media, news. J. Ambient. Intell. Humaniz. Comput. 13, 3433–3456 (2022). https://doi.org/10.1007/s12652-020-01839-w

    Article  Google Scholar 

  9. Twitter Intelligence Tool Project: https://github.com/otuncelli/turkish-stemmer-python. Accessed 23 Mar 2022

  10. Turkish Stemmer Phyton Project: https://github.com/twintproject/twint. Accessed 25 Mar 2022

  11. Sentiment Lexicon Dataset: https://www.kaggle.com/rtatman/sentiment-lexicons-for-81-languages. Accessed 23 Mar 2022

  12. KNIME Analytics Tool: https://www.knime.com. Accessed 25 Mar 2022

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Emre Karaşahin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Karaşahin, E., Utku, S., Öztürkmenoğlu, O. (2022). Effectiveness of Social Media in Stock Market Price Prediction Based on Machine Learning. In: Kahraman, C., Tolga, A.C., Cevik Onar, S., Cebi, S., Oztaysi, B., Sari, I.U. (eds) Intelligent and Fuzzy Systems. INFUS 2022. Lecture Notes in Networks and Systems, vol 505. Springer, Cham. https://doi.org/10.1007/978-3-031-09176-6_4

Download citation

Publish with us

Policies and ethics