Investment strategies applied to the Brazilian stock market: A methodology based on Sentiment Analysis with deep learning

Abstract The Efficient Market Hypothesis states that stock market changes reflect the arrival of new information through external events and news. Thus, many recent studies in the literature evaluate the impact of Sentiment Analysis (SA) applied to social media and news in the stock market. However, these studies generally do not present investment strategies that take advantage of sentiments in new publications considering the correlation between news and the stock market, specially when news are written in Portuguese. This paper proposes investment strategies based on Sentiment Analysis of financial news applied to the Brazilian stock market. For such, the following activities were performed: (i) identifying the most suitable Artificial Neural Network (ANN) architecture to perform Sentiment Analysis in financial news in Brazilian Portuguese; (ii) studying the correlation between the predominant sentiment in financial news of three major Brazilian news portals through the Granger causality test; (iii) proposing two categories of investment strategies based on Sentiment Analysis, considering both negative and positive financial news; and (iv) applying the proposed strategies to the Brazilian stock market. Experiments were conducted with financial news from the most popular Brazilian online news sources and the results showed: (i) the most appropriate ANN to perform SA in Portuguese is the Convolutional Neural Network; (ii) there is a significant influence of the predominant daily news sentiment in the stock market; and (iii) investment strategies based on Sentiment Analysis can bring profitability both in short and in long term, surpassing the strategies Random Walk and Buy & Hold.

[1]  Patrick L Purdon,et al.  A study of problems encountered in Granger causality analysis from a neuroscience perspective , 2017, Proceedings of the National Academy of Sciences.

[2]  Yue Zhang,et al.  Deep Learning for Event-Driven Stock Prediction , 2015, IJCAI.

[3]  Fabrício Benevenuto,et al.  An Approach to Sentiment Analysis of Web Applications in Portuguese , 2015, WebMedia.

[4]  Tomas Mikolov,et al.  Enriching Word Vectors with Subword Information , 2016, TACL.

[5]  Lillian Lee,et al.  Opinion Mining and Sentiment Analysis , 2008, Found. Trends Inf. Retr..

[6]  Leandro Balby Marinho,et al.  Using Online Economic News to Predict Trends in Brazilian Stock Market Sectors , 2018, WebMedia.

[7]  Maria das Graças Volpe Nunes,et al.  Lexicon-Based Sentiment Analysis for Reviews of Products in Brazilian Portuguese , 2014, 2014 Brazilian Conference on Intelligent Systems.

[8]  Ling Liu,et al.  The effect of news and public mood on stock movements , 2014, Inf. Sci..

[9]  Wei Zhang,et al.  The Dynamic Cross-Correlations between Mass Media News, New Media News, and Stock Returns , 2018, Complex..

[10]  B. Malkiel The Ef cient Market Hypothesis and Its Critics , 2003 .

[11]  Shuai Wang,et al.  Deep learning for sentiment analysis: A survey , 2018, WIREs Data Mining Knowl. Discov..

[12]  Ewan Klein,et al.  Natural Language Processing with Python , 2009 .

[13]  Ahmet Murat Ozbayoglu,et al.  Financial Time Series Forecasting with Deep Learning : A Systematic Literature Review: 2005-2019 , 2019, Appl. Soft Comput..

[14]  Fang Wang,et al.  Applying BERT to analyze investor sentiment in stock market , 2020, Neural Computing and Applications.

[15]  E. Fama EFFICIENT CAPITAL MARKETS: A REVIEW OF THEORY AND EMPIRICAL WORK* , 1970 .

[16]  S. Heston,et al.  News Versus Sentiment: Predicting Stock Returns from News Stories , 2015 .

[17]  Adriano C. M. Pereira,et al.  Hybrid deep learning approach for financial time series classification , 2018, Revista Brasileira de Computação Aplicada.

[18]  K. Hoover,et al.  Causality in Economics and Econometrics , 2006 .

[19]  Stefan Feuerriegel,et al.  Decision support from financial disclosures with deep neural networks and transfer learning , 2017, Decis. Support Syst..

[20]  Ana Estela Antunes da Silva,et al.  Analyzing the Brazilian Financial Market through Portuguese Sentiment Analysis in Social Media , 2020, Appl. Artif. Intell..

[21]  Adriano M. Pereira,et al.  A Twitter View of the Brazilian Stock Exchange Market , 2015, EC-Web.

[22]  Kazuhiro Seki,et al.  Predicting Stock Market Trends by Recurrent Deep Neural Networks , 2014, PRICAI.

[23]  Yoshua Bengio,et al.  Learning long-term dependencies with gradient descent is difficult , 1994, IEEE Trans. Neural Networks.

[24]  A. P. Quimbaya,et al.  Stock market movement forecast: A Systematic review , 2020, Expert Syst. Appl..

[25]  Khan Muhammad,et al.  A local and global event sentiment based efficient stock exchange forecasting using deep learning , 2020, Int. J. Inf. Manag..

[26]  Bo Pang,et al.  Thumbs up? Sentiment Classification using Machine Learning Techniques , 2002, EMNLP.

[27]  Filippo Menczer,et al.  Erratum: Competition among memes in a world with limited attention , 2013, Scientific Reports.

[28]  Isaac Kofi Nti,et al.  Predicting Stock Market Price Movement Using Sentiment Analysis: Evidence From Ghana , 2020, Appl. Comput. Syst..

[29]  Tong Zhang,et al.  Effective Use of Word Order for Text Categorization with Convolutional Neural Networks , 2014, NAACL.

[30]  Ye Zhang,et al.  A Sensitivity Analysis of (and Practitioners’ Guide to) Convolutional Neural Networks for Sentence Classification , 2015, IJCNLP.

[31]  Hongfei Lin,et al.  Transformer-Based Capsule Network For Stock Movement Prediction , 2019 .

[32]  Kimon P. Valavanis,et al.  Surveying stock market forecasting techniques - Part II: Soft computing methods , 2009, Expert Syst. Appl..

[33]  Ying Wah Teh,et al.  Text mining for market prediction: A systematic review , 2014, Expert Syst. Appl..

[34]  Zachary Chase Lipton A Critical Review of Recurrent Neural Networks for Sequence Learning , 2015, ArXiv.

[35]  Jürgen Schmidhuber,et al.  Long Short-Term Memory , 1997, Neural Computation.

[36]  Ali Almiman A Decade of Using Hybrid Inference Systems in NLP (2005-2015) : A Survey , 2016 .

[37]  Johan Bollen,et al.  Twitter mood predicts the stock market , 2010, J. Comput. Sci..

[38]  Eric Gilbert,et al.  Widespread Worry and the Stock Market , 2010, ICWSM.

[39]  Hsinchun Chen,et al.  Evaluating sentiment in financial news articles , 2012, Decis. Support Syst..

[40]  Geoffrey E. Hinton,et al.  Deep Learning , 2015, Nature.

[41]  Danqi Li,et al.  Comparison of export and outward foreign direct investment models of Chinese enterprises based on quantitative algorithm , 2018, Neural Computing and Applications.

[42]  Yoon Kim,et al.  Convolutional Neural Networks for Sentence Classification , 2014, EMNLP.

[43]  Manuel R. Vargas,et al.  Deep learning for stock market prediction from financial news articles , 2017, 2017 IEEE International Conference on Computational Intelligence and Virtual Environments for Measurement Systems and Applications (CIVEMSA).

[44]  Maite Taboada,et al.  Lexicon-Based Methods for Sentiment Analysis , 2011, CL.

[45]  Júlio C. Nievola,et al.  Predicting published news effect in the Brazilian stock market , 2012, Expert Syst. Appl..

[46]  Xiaodong Li,et al.  Incorporating stock prices and news sentiments for stock market prediction: A case of Hong Kong , 2020, Inf. Process. Manag..

[47]  Petr Hájek,et al.  Combining bag-of-words and sentiment features of annual reports to predict abnormal stock returns , 2017, Neural Computing and Applications.

[48]  Carlo Vercellis,et al.  Public Mood–Driven Asset Allocation: the Importance of Financial Sentiment in Portfolio Management , 2018, Cognitive Computation.

[49]  Yoshua Bengio,et al.  Gradient Flow in Recurrent Nets: the Difficulty of Learning Long-Term Dependencies , 2001 .

[50]  Denilson Alves Pereira,et al.  A survey of sentiment analysis in the Portuguese language , 2020, Artificial Intelligence Review.

[51]  Lawrence D. Jackel,et al.  Backpropagation Applied to Handwritten Zip Code Recognition , 1989, Neural Computation.

[52]  Stefan Feuerriegel,et al.  Improving Decision Analytics with Deep Learning: the Case of Financial Disclosures , 2015, ECIS.

[53]  Hamid Beigy,et al.  Sentiment analysis on stock social media for stock price movement prediction , 2019, Eng. Appl. Artif. Intell..

[54]  L. Summers,et al.  Noise Trader Risk in Financial Markets , 1990, Journal of Political Economy.

[55]  Eraldo Rezende Fernandes,et al.  BERT for Stock Market Sentiment Analysis , 2019, 2019 IEEE 31st International Conference on Tools with Artificial Intelligence (ICTAI).

[56]  Hua Yuan,et al.  On exploring the impact of users' bullish-bearish tendencies in online community on the stock market , 2020, Inf. Process. Manag..

[57]  Shiliang Sun,et al.  A review of natural language processing techniques for opinion mining systems , 2017, Inf. Fusion.

[58]  Tobias Preis,et al.  Quantifying the Relationship Between Financial News and the Stock Market , 2013, Scientific Reports.

[59]  Arthur E. de O. Carosia,et al.  The influence of tweets and news on the brazilian stock market through sentiment analysis , 2019, WebMedia.