Abstract
Social media is increasingly being used as a source of news, a trend which has resulted in large amounts of data. This work presents an evaluation strategy for assessing the impact that social media has on the Bovespa Index (IBovespa), the benchmark index of the Brazilian stock market. A total of 105000 tweets were collected from the twitter profile of “G1 Economia”, one of the main Brazilian finance portals. This data was processed using sentiment analysis methods which were then incorporated into the development of an artificial neural network whose objective was to predict the IBovespa. A hyperparameter optimization study is also presented. The experimental results show that of the 1279 topologies studied, \(82.4\%\) exhibited better performance when using sentiment analysis in conjunction with historical data, against the baseline of using only the latter. Curiously, even though the average performance was higher, the absolute best result was obtained without the use of NLP techniques. In the context of the method developed and the data used, it appears that approaches using sentiment analysis alongside historical records may be more effective than using only one or the other.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Barreto, J.M.: Introdução às redes neurais artificiais, pp. 5–10. V Escola Regional de Informática. Sociedade Brasileira de Computaçao, Regional Sul, Santa Maria, Florianópolis, Maringá pp (2002)
Benesty, J., Chen, J., Huang, Y., Cohen, I.: Pearson correlation coefficient. In: Noise Reduction in Speech Processing. vol. 2. Springer, Berlin, pp. 1–4 (2009). https://doi.org/10.1007/978-3-642-00296-0_5
Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. J. Comput. Sci. 2(1), 1–8 (2011)
Conway, C.M.: How does the brain learn environmental structure? Ten core principles for understanding the neurocognitive mechanisms of statistical learning. Neurosci. Biobehav. Rev. 112, 279–299 (2020)
Derakhshan, A., Beigy, H.: Sentiment analysis on stock social media for stock price movement prediction. Eng. Appl. Artif. Intell. 85, 569–578 (2019)
Dey, S.K.: Stock market prediction using twitter mood. Int. J. Sci. Eng. Res. 5(5), 44–47 (2014)
Graves, A., Schmidhuber, J.: Framewise phoneme classification with bidirectional LSTM networks. In: Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005, vol. 4, pp. 2047–2052 (2005)
Graves, A., et al.: A novel connectionist system for unconstrained handwriting recognition. IEEE Trans. Pattern Anal. Mach. Intell. 31(5), 855–868 (2009)
Hasan, A., Moin, S., Karim, A., Shamshirband, S.: Machine learning-based sentiment analysis for twitter accounts. Math. Comput. Appl. 23(1), 11 (2018)
Hutto, C., Gilbert, E.: Vader: A parsimonious rule-based model for sentiment analysis of social media text. In: Proceedings of the International AAAI Conference on Web and Social Media, vol. 8 (2014)
Jing, N., Wu, Z., Wang, H.: A hybrid model integrating deep learning with investor sentiment analysis for stock price prediction. Expert Syst. Appl. 178, 115019 (2021)
JingTao, Y., Chew Lim, T.: Guidelines for financial prediction with artificial neural networks. Int. J. Comput. Appl. 135(8), 28–32 (2009)
Li, J., Meesad, P.: Combining sentiment analysis with socialization bias in social networks for stock market trend prediction. Int. J. Comput. Intell. Appl. 15(01), 1650003 (2016)
Li, X., Wu, P., Wang, W.: Incorporating stock prices and news sentiments for stock market prediction: a case of Hong Kong. Information Processing & Management 57(5), 102212 (2020)
Lippmann, R.: An introduction to computing with neural nets. IEEE ASSP Mag. 4(2), 4–22 (1987)
Liu, B.: Sentiment analysis and opinion mining. Synth. Lect. Hum. Lang. Technol. 5(1), 1–167 (2012)
Maqsood, H., et al.: A local and global event sentiment based efficient stock exchange forecasting using deep learning. Int. J. Inf. Manage. 50, 432–451 (2020)
McCulloch, W.S., Pitts, W.: A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 5(4), 115–133 (1943)
Nabipour, M., Nayyeri, P., Jabani, H., Mosavi, A., Salwana, E., et al.: Deep learning for stock market prediction. Entropy 22(8), 840 (2020)
Nguyen, T.H., Shirai, K.: Topic modeling based sentiment analysis on social media for stock market prediction. In: Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pp. 1354–1364 (2015)
Nguyen, T.H., Shirai, K., Velcin, J.: Sentiment analysis on social media for stock movement prediction. Expert Syst. Appl. 42(24), 9603–9611 (2015)
Nti, I.K., Adekoya, A.F., Weyori, B.A.: Predicting stock market price movement using sentiment analysis: evidence from Ghana. Appl. Comput. Syst. 25(1), 33–42 (2020)
de Oliveira Carosia, A.E., Coelho, G.P., da Silva, A.E.A.: Investment strategies applied to the Brazilian stock market: a methodology based on sentiment analysis with deep learning. Expert Syst. Appl. 184, 115470 (2021)
Pagolu, V.S., Reddy, K.N., Panda, G., Majhi, B.: Sentiment analysis of twitter data for predicting stock market movements. In: 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES), pp. 1345–1350. IEEE (2016)
Paredes-Valverde, M.A., Colomo-Palacios, R., Salas-Zárate, M.d.P., Valencia-García, R.: Sentiment analysis in Spanish for improvement of products and services: a deep learning approach. Sci. Program. 2017 (2017)
e Participações S.A., G.C.: G1 - o portal de notícias da globo (2000). http://g1.globo.com/
Pehlevan, C., Chklovskii, D.B.: Neuroscience-inspired online unsupervised learning algorithms: artificial neural networks. IEEE Signal Process. Mag. 36(6), 88–96 (2019)
Porshnev, A., Redkin, I., Shevchenko, A.: Machine learning in prediction of stock market indicators based on historical data and data from twitter sentiment analysis. In: 2013 IEEE 13th International Conference on Data Mining Workshops, pp. 440–444. IEEE (2013)
Reed, M.: A study of social network effects on the stock market. J. Behav. Financ. 17(4), 342–351 (2016)
Sindhu, C., ChandraKala, S.: A survey on opinion mining and sentiment polarity classification. Knowl. Based Syst. 89, 14–46 (2013)
Soni, S.: Applications of ANNs in stock market prediction: a survey. Int. J. Comput. Sci. Eng. Technol. 2(3), 71–83 (2011)
Tang, D., Qin, B., Liu, T.: Document modeling with gated recurrent neural network for sentiment classification. In: Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing. pp. 1422–1432 (2015)
Vargas, M.R., De Lima, B.S., Evsukoff, A.G.: Deep learning for stock market prediction from financial news articles. In: 2017 IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA), pp. 60–65. IEEE (2017)
Zhang, G., Xu, L., Xue, Y.: Model and forecast stock market behavior integrating investor sentiment analysis and transaction data. Clust. Comput. 20(1), 789–803 (2017). https://doi.org/10.1007/s10586-017-0803-x
Zhang, Q., Wang, B., Wu, L., Huang, X.: Fdu at trec 2007: Opinion retrieval of blog track. In: TREC, pp. 500–274. Citeseer (2007)
Zhang, X., Shi, J., Wang, D., Fang, B.: Exploiting investors social network for stock prediction in china’s market. J. Comput. Sci. 28, 294–303 (2018)
Acknowledgements
This work has been financially supported by national grant from the FCT (Fundação para a Ciência e a Tecnologia), under the project UIDB/05567/2020.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Souza, Y.G.V., Tarrataca, L., Cardoso, D.O., Assis, L.S.d. (2022). Sentiment Analysis Applied to IBOVESPA Prediction. In: Pereira, A.I., Košir, A., Fernandes, F.P., Pacheco, M.F., Teixeira, J.P., Lopes, R.P. (eds) Optimization, Learning Algorithms and Applications. OL2A 2022. Communications in Computer and Information Science, vol 1754. Springer, Cham. https://doi.org/10.1007/978-3-031-23236-7_26
Download citation
DOI: https://doi.org/10.1007/978-3-031-23236-7_26
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-23235-0
Online ISBN: 978-3-031-23236-7
eBook Packages: Computer ScienceComputer Science (R0)