Incorporating Stock Prices and Social Media Sentiment for Stock Market Prediction: A Case of Indonesian Banking Company

Authors

  • Dhenda Rizky Pradiptyo Universitas Indonesia
  • Irfanda Husni Sahid
  • Indra Budi
  • Aris Budi Santoso
  • Prabu Kresna Putra

DOI:

https://doi.org/10.23887/janapati.v13i1.74486

Keywords:

Sentiment Analysis, Stock Market, Forecasting, Machine Learning

Abstract

Forecasting the stock market is one of the most popular topics to be discussed in many fields. Many studies, especially in information technology have been conducted machine learning algorithms to achieve a more accurate prediction of the stock market. This research aims to find the effectiveness in predicting stock market performance by utilizing social media sentiment in combination with historical data. In addition, this research uses a machine learning algorithm to train a model to predict the stock price of each bank and training the model on a dataset that included the historical stock prices of the bank, as well as the sentiment scores of the social media posts about the bank and evaluate the performance of the model by comparing the predicted stock prices to the actual stock prices. The research shows that the R2 and RMSE score model that has been built with its historical data has slightly better performance than the model that has been built with the combination of historical data and social media sentiment. The finding indicates that the research method is closely correlated and affected to the performance of the stock market prediction.

Author Biographies

Irfanda Husni Sahid

Faculty of Computer Science, Universitas Indonesia

Indra Budi

Lecturer of Faculty of Computer Science, Universitas Indonesia
h-index 24
i10-index 77

Aris Budi Santoso

Lecturer Assistant of Faculty of Computer Science, Universitas Indonesia
h-index 5
i10-index 4

Prabu Kresna Putra

Lecturer Assistant of Faculty of Computer Science, Universitas Indonesia
h-index 6
i10-index 4

References

X. Li, P. Wu, and W. Wang, “Incorporating stock prices and news sentiments for stock market prediction: A case of Hong Kong,” Inf Process Manag, vol. 57, no. 5, Sep. 2020, doi: 10.1016/j.ipm.2020.102212.

B. Kaushik, H. Hemani, and P. V. Ilavarasan, “Social media usage vs. stock prices: An analysis of Indian firms,” in Procedia Computer Science, Elsevier B.V., 2017, pp. 323–330. doi: 10.1016/j.procs.2017.11.376.

A. Porshnev, I. Redkin, and A. Shevchenko, “Machine learning in prediction of stock market indicators based on historical data and data from twitter sentiment analysis,” in Proceedings - IEEE 13th International Conference on Data Mining Workshops, ICDMW 2013, IEEE Computer Society, 2013, pp. 440–444. doi: 10.1109/ICDMW.2013.111.

Bursa Efek Indonesia, “50 Biggest Market Capitalization - September 2022.” Accessed: Oct. 23, 2022. [Online]. Available: https://www.idx.co.id/data-pasar/laporan-statistik/digital-statistic-beta/biggest-market-cap?q=eyJ5ZWFyIjoiMjAyMiIsIm1vbnRoIjoiOSIsInF1YXJ0ZXIiOjAsInR5cGUiOiJtb250aGx5In0=

F. Carlini, D. Cucinelli, D. Previtali, and M. G. Soana, “Don’t talk too bad! stock market reactions to bank corporate governance news,” J Bank Financ, vol. 121, Dec. 2020, doi: 10.1016/j.jbankfin.2020.105962.

D. Shah, H. Isah, and F. Zulkernine, “Predicting the Effects of News Sentiments on the Stock Market,” in Proceedings - 2018 IEEE International Conference on Big Data, Big Data 2018, Institute of Electrical and Electronics Engineers Inc., Jan. 2019, pp. 4705–4708. doi: 10.1109/BigData.2018.8621884.

Jain College of Engineering, Institute of Electrical and Electronics Engineers. Bangalore Section., and Institute of Electrical and Electronics Engineers, 2020 International Conference for Emerging Technology (INCET) : Belgaum, India. Jun 5-7, 2020.

T. Mankar, T. Hotchandani, M. Madhwani, A. Chidrawar, and L. C. S $ # Be, “Stock Market Prediction based on Social Sentiments using Machine Learning; Stock Market Prediction based on Social Sentiments using Machine Learning,” 2018.

Z. Drus and H. Khalid, “Sentiment analysis in social media and its application: Systematic literature review,” in Procedia Computer Science, Elsevier B.V., 2019, pp. 707–714. doi: 10.1016/j.procs.2019.11.174.

Siddhant College of Engineering and Institute of Electrical and Electronics Engineers, 2017 2nd International Conference for Convergence in Technology (I2CT).

P. Eachempati, P. R. Srivastava, A. Kumar, J. Muñoz de Prat, and D. Delen, “Can customer sentiment impact firm value? An integrated text mining approach,” Technol Forecast Soc Change, vol. 174, Jan. 2022, doi: 10.1016/j.techfore.2021.121265.

C. Wu, X. Xiong, Y. Gao, and J. Zhang, “Does social media distort price discovery? Evidence from rumor clarifications,” Res Int Bus Finance, vol. 62, Dec. 2022, doi: 10.1016/j.ribaf.2022.101749.

S. H. Jung and Y. J. Jeong, “Examining stock markets and societal mood using Internet memes,” J Behav Exp Finance, vol. 32, Dec. 2021, doi: 10.1016/j.jbef.2021.100575.

E. Teti, M. Dallocchio, and A. Aniasi, “The relationship between twitter and stock prices. Evidence from the US technology industry,” Technol Forecast Soc Change, vol. 149, Dec. 2019, doi: 10.1016/j.techfore.2019.119747.

P. Y. Hao, C. F. Kung, C. Y. Chang, and J. B. Ou, “Predicting stock price trends based on financial news articles and using a novel twin support vector machine with fuzzy hyperplane,” Appl Soft Comput, vol. 98, Jan. 2021, doi: 10.1016/j.asoc.2020.106806.

W. Chen, C. K. Yeo, C. T. Lau, and B. S. Lee, “Leveraging social media news to predict stock index movement using RNN-boost,” Data Knowl Eng, vol. 118, pp. 14–24, Nov. 2018, doi: 10.1016/j.datak.2018.08.003.

K. Liu, J. Zhou, and D. Dong, “Improving stock price prediction using the long short-term memory model combined with online social networks,” J Behav Exp Finance, vol. 30, Jun. 2021, doi: 10.1016/j.jbef.2021.100507.

M. Billah, S. Waheed, and A. Hanifa, “Stock market prediction using an improved training algorithm of neural network,” in ICECTE 2016 - 2nd International Conference on Electrical, Computer and Telecommunication Engineering, Institute of Electrical and Electronics Engineers Inc., Mar. 2017. doi: 10.1109/ICECTE.2016.7879611.

T. Fischer and C. Krauss, “Deep learning with long short-term memory networks for financial market predictions,” Eur J Oper Res, vol. 270, no. 2, pp. 654–669, Oct. 2018, doi: 10.1016/j.ejor.2017.11.054.

X. Zhang, Y. Zhang, S. Wang, Y. Yao, B. Fang, and P. S. Yu, “Improving stock market prediction via heterogeneous information fusion,” Knowl Based Syst, vol. 143, pp. 236–247, Mar. 2018, doi: 10.1016/j.knosys.2017.12.025.

R. Ren, D. D. Wu, and D. D. Wu, “Forecasting stock market movement direction using sentiment analysis and support vector machine,” IEEE Syst J, vol. 13, no. 1, pp. 760–770, Mar. 2019, doi: 10.1109/JSYST.2018.2794462.

Downloads

Published

2024-03-31

How to Cite

Dhenda Rizky Pradiptyo, Irfanda Husni Sahid, Indra Budi, Aris Budi Santoso, & Prabu Kresna Putra. (2024). Incorporating Stock Prices and Social Media Sentiment for Stock Market Prediction: A Case of Indonesian Banking Company. Jurnal Nasional Pendidikan Teknik Informatika : JANAPATI, 13(1), 156–165. https://doi.org/10.23887/janapati.v13i1.74486

Issue

Section

Articles