| Literature DB >> 33520006 |
David Valle-Cruz1, Vanessa Fernandez-Cortez2, Asdrúbal López-Chau3, Rodrigo Sandoval-Almazán4.
Abstract
Investors are constantly aware of the behaviour of stock markets. This affects their emotions and motivates them to buy or sell shares. Financial sentiment analysis allows us to understand the effect of social media reactions and emotions on the stock market and vice versa. In this research, we analyse Twitter data and important worldwide financial indices to answer the following question: How does the polarity generated by Twitter posts influence the behaviour of financial indices during pandemics? This study is based on the financial sentiment analysis of influential Twitter accounts and its relationship with the behaviour of important financial indices. To carry out this analysis, we used fundamental and technical financial analysis combined with a lexicon-based approach on financial Twitter accounts. We calculated the correlations between the polarities of financial market indicators and posts on Twitter by applying a date shift on tweets. In addition, correlations were identified days before and after the existing posts on financial Twitter accounts. Our findings show that the markets reacted 0 to 10 days after the information was shared and disseminated on Twitter during the COVID-19 pandemic and 0 to 15 days after the information was shared and disseminated on Twitter during the H1N1 pandemic. We identified an inverse relationship: Twitter accounts presented reactions to financial market behaviour within a period of 0 to 11 days during the H1N1 pandemic and 0 to 6 days during the COVID-19 pandemic. We also found that our method is better at detecting highly shifted correlations by using SenticNet compared with other lexicons. With SenticNet, it is possible to detect correlations even on the same day as the Twitter posts. The most influential Twitter accounts during the period of the pandemic were The New York Times, Bloomberg, CNN News and Investing.com, presenting a very high correlation between sentiments on Twitter and stock market behaviour. The combination of a lexicon-based approach is enhanced by a shifted correlation analysis, as latent or hidden correlations can be found in data.Entities:
Keywords: Affective computing; Finance; Pandemic; Sentic computing; Sentiment analysis; Stock market
Year: 2021 PMID: 33520006 PMCID: PMC7825382 DOI: 10.1007/s12559-021-09819-8
Source DB: PubMed Journal: Cognit Comput ISSN: 1866-9956 Impact factor: 5.418
Fig. 1Sentic computing papers per year
Sentic computing papers on the Internet
| Year | Google Scholar | Scopus | Web of Science | IEEE Xplore | Springer Link | ACM Digital Library |
|---|---|---|---|---|---|---|
| 2009 | 2 | 0 | 0 | 0 | 0 | 0 |
| 2010 | 8 | 0 | 3 | 1 | 2 | 0 |
| 2011 | 26 | 4 | 4 | 0 | 8 | 1 |
| 2012 | 45 | 11 | 6 | 2 | 22 | 1 |
| 2013 | 60 | 6 | 4 | 4 | 11 | 3 |
| 2014 | 83 | 7 | 6 | 1 | 8 | 1 |
| 2015 | 116 | 6 | 5 | 2 | 23 | 2 |
| 2016 | 126 | 6 | 6 | 1 | 12 | 1 |
| 2017 | 137 | 4 | 8 | 1 | 17 | 2 |
| 2018 | 106 | 2 | 2 | 1 | 19 | 0 |
| 2019 | 105 | 4 | 3 | 1 | 19 | 1 |
| 2020 | 62 | 1 | 0 | 2 | 11 | 0 |
Scientific papers related to sentic computing and finance
| Reference | Title |
|---|---|
| Minhas et al. (2013) [ | A Review of Artificial Intelligence and Biologically Inspired Computational Approaches to Solving Issues in Narrative Financial Disclosure |
| Ahmed (2017) [ | Quantification of Investor Emotion in Financial News by Analyzing the Stock Price Reaction |
| Atzeni, Dridi and Recupero (2018) [ | Using Frame-Based Resources for Sentiment Analysis within the Financial Domain |
| Xing, Cambria and Welsch (2018) [ | Intelligent Asset Allocation via Market Sentiment Views |
| Picasso et al. (2018) [ | Technical Analysis and Sentiment Embeddings for Market Trend Prediction |
| Xing, Cambria and Welsch (2018) [ | Natural Language Based Financial Forecasting: a Survey |
| Malandri et al. (2018) [ | Public Mood-Driven Asset Allocation: the Importance of Financial Sentiment in Portfolio Management |
| Upreti et al. (2019) [ | Knowledge-Driven Approaches for Financial News Analytics |
| Dridi, Atzeni and Recupero (2019) [ | FineNews: Fine‐Grained Semantic Sentiment Analysis on Financial Microblogs and News |
| Merello et al. (2019) [ | Ensemble Application of Transfer Learning and Sample Weighting for Stock Market Prediction |
| Xing, Cambria and Welsch (2019) [ | Growing Semantic Vines for Robust Asset Allocation |
| Xing, Cambria and Zhang (2019) [ | Sentiment-Aware Volatility Forecasting |
| Akhtar, Ekbal and Cambria (2020) [ | How Intense Are You? Predicting Intensities of Emotions and Sentiments Using Stacked Ensemble |
Fig. 2Word cloud of scientific papers related to sentic computing and finance
Description of financial indicators
| Country | Index | Stock market | Involved sectors |
|---|---|---|---|
| Mexico | IPC | Mexican Stock Exchange | Telecommunications, consumer products, materials, financial services, industrial, healthcare, financial services |
| USA | NASDAQ 100 | NASDAQ | Telecommunications, biotechnology, video games, hardware, software, Internet services, financial services, pharmaceuticals, E-commerce, data analysis |
| USA | Dow Jones | New York Stock Exchange and NASDAQ | Covers all sectors except transport and utilities |
| USA | S&P 500 | New York Stock Exchange and NASDAQ | Consumer discretionary, health care, industrials, information technology, materials, real state, communication services, utilities, financials, energy |
| UK | FTSE 100 | London Stock Exchange | Financial services, mining, food, pharmaceutical and technology, software and computer services, life insurance, services |
| Brazil | BOVESPA | Sao Paulo Stock Exchange | Energy, logistics, finance and insurance, real estate, energy, steel and metallurgy, aviation, telecommunications, food |
| France | CAC 40 | Euronext | Energy, logistics, banking, real estate, energy, oil and gas, aerospace, telecommunications, food, oil equipment, industrial machinery |
| Germany | DAX | Euronext | Logistics, finance and insurance, real estate, energy, pharmaceutical chemicals, airlines, telecommunications, consumer goods, automotive, utilities, building materials, technology, software |
| Japan | Nikkei 225 | Tokyo Stock Exchange | Technology, consumer goods, food, transportation, telecommunications, transportation, automotive, tourism, water, construction, healthcare, finance, electrical industry |
| China | Hang Seng | Hong Kong Stock Exchange | Commercial services, communications, consumer goods, technology, energy minerals, transportation, utilities, health services |
| China | SSE Composite | Shanghai Stock Exchange | Communications, bank, energy, technology, industrial, finance and insurance, petrochemical, food |
Maximum and minimum prices of the stock exchange indices
| Index | Maximum price date | Maximum price | Minimum price date | Minimum price | Percentage loss (%) |
|---|---|---|---|---|---|
| During the H1N1 pandemic | |||||
| IPC | 11/June/2009 | 25,372.84 | 07/July/2009 | 23,359.93 | − 7.93 |
| NASDAQ 100 | 11/June/2009 | 1862.36 | 07/July/2009 | 1746.17 | − 6.23 |
| Dow Jones | 11/June/2009 | 8770.91 | 10/July/2009 | 8146.52 | − 7.11 |
| S&P 500 | 11/June/2009 | 944.89 | 10/July/2009 | 879.13 | − 6.95 |
| FTSE 100 | 10/June/2009 | 4436.80 | 10/July/2009 | 4127.20 | − 6.97 |
| BOVESPA | 12/June/2009 | 53,558.00 | 14/July/2009 | 48,873.00 | − 8.74 |
| CAC 40 | 11/June/2009 | 3334.93 | 10/July/2009 | 2983.10 | − 10.55 |
| DAX | 11/June/2009 | 5107.25 | 10/July/2009 | 4576.31 | − 10.39 |
| Hang Seng | 11/June/2009 | 18,791.02 | 13/July/2009 | 17,254.63 | − 8.17 |
| Nikkei 225 | 12/June/2009 | 10,135.82 | 13/July/2009 | 9050.33 | − 10.70 |
| SSE Composite | 10/June/2009 | 2816.25 | 12/June/2009 | 2743.76 | − 2.57 |
| During the COVID-19 pandemic | |||||
| IPC | 12/February/2020 | 45,338.37 | 23/March/2020 | 32,964.21 | − 27.29 |
| NASDAQ 100 | 19/February/2020 | 9,817.17 | 20/March/2020 | 6,879.52 | − 29.92 |
| Dow Jones | 12/February/2020 | 29,551.41 | 23/March/2020 | 18,591.92 | − 37.08 |
| S&P 500 | 19/February/2020 | 3386.14 | 23/March/2020 | 2237.39 | − 33.92 |
| FTSE 100 | 19/February/2020 | 7457.02 | 20/March/2020 | 5190.78 | − 30.39 |
| BOVESPA | 19/March/2020 | 68,332.00 | 20/March/2020 | 67,069.00 | − 1.84 |
| CAC 40 | 19/February/2020 | 6111.24 | 18/March/2020 | 3754.84 | − 38.55 |
| DAX | 19/February/2020 | 13,789.00 | 18/March/2020 | 8441.70 | − 38.77 |
| Hang Seng | 17/February/2020 | 27,959.59 | 23/March/2020 | 21,696.13 | − 22.40 |
| Nikkei 225 | 12/February/2020 | 23,861.21 | 19/March/2020 | 16,552.83 | − 30.62 |
| SSE Composite | 13/January/2020 | 3115.57 | 23/March/2020 | 2660.17 | − 14.61 |
Analysed Twitter accounts
| Twitter account | Total downloaded tweets | |
|---|---|---|
| 2009 | 2020 | |
| @business | 50 | 551 |
| @Carl_C_Icahn | NA* | 2 |
| @CNNBusiness | 747 | 1725 |
| @ecb | NA* | 298 |
| @Investingcom | NA* | 279 |
| @InvestOfficeAD | NA* | 120 |
| @jpmorgan | NA* | 86 |
| @JPMorganAM | NA* | 30 |
| @lloydblankfein | NA* | 8 |
| @nytimes | 490 | 244 |
| @SEC_Enforcement | NA* | 2 |
| @UBS_CEO | NA* | 9 |
| @USTreasury | NA* | 78 |
| @WarrenBuffett | NA* | 0 |
*Not applicable because the user did not have a Twitter account in 2009

Transformation of values of polarity into real numbers
| Lexicon | Rule |
|---|---|
| Bing Liu | Value "positive" is transformed into + 1 Value "negative" is transformed into − 1 |
| Sentiment 140 | Value 0 is transformed into − 1 Value 2 is transformed into 0 Value 4 is transformed into + 1 |
| NRC | Sentiments ( +) are transformed into + 1 Sentiments (-) are transformed into − 1 |
| Affin | Values are divided by 5 |
| SenticNet | polarity_intense () method |

Hypothetical example of a matrix of dates, adjusted prices and polarities of posts
| Date | AdjPrice | S140 + | S140- | Bing + | Bing- | NRC + | NRC- | Affin + | Affin- | SN + | SN- |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 12-March-2020 | 2923.49 | − 0.56 | 0.24 | 0.33 | − 0.14 | 0.12 | − 0.16 | 0.58 | − 0.06 | 0.05 | 0.57 |
| 13-March-2020 | 2887.43 | 0.10 | 0.31 | 0.34 | − 0.18 | 0.50 | − 0.20 | 0.44 | − 0.41 | 0.70 | − 0.52 |
| 16-March-2020 | 2789.25 | 0.50 | 0.28 | − 0.07 | − 0.59 | 0.14 | 0.33 | 0.52 | 0.52 | − 0.03 | 0.44 |

Example of polarity vector with a date shift = − 7
| Date | S140 | Bing + | Bing- | NRC + | NRC- | Affin | SenticNet | Adj.Close |
|---|---|---|---|---|---|---|---|---|
| 2020/May/12 | 0.000 | 0.29 | 0.25 | 0.48 | 0.30 | − 0.02 | − 0.58 | 2891.56 |
| 2020/May/13 | 0.000 | 0.23 | 0.33 | 0.51 | 0.38 | − 0.03 | 0.59 | 2898.05 |
Correlations found for the data set Bloomberg, date shift = − 7
| Date | S140 | BingPos | BingNeg | NrcPos | NrcNeg | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| 12/May/2020 | NA | 1 | − 1 | − 1 | − 1 | 1 | 1 |
| 13/May/2020 | NA | − 1 | 1 | 1 | 1 | − 1 | 1 |
Most significant correlations in absolute value for each data set
| Data set | H1N1 (2009) | COVID-19 (2020) | ||||
|---|---|---|---|---|---|---|
| Shift | lexicon | Shift | lexicon | |||
| CNNBusiness | − 2 | 0.46 | SenticNet | − 6 | 0.70 | SenticNet |
| Bloomberg | + 2 | 0.54 | SenticNet | − 7 | 1.00 | SenticNet |
| NYTimes | − 1 | 0.39 | SenticNet | − 13 | 0.97 | SenticNet |
| Investing.com | NA | NA | SenticNet | 4 | 0.93 | SenticNet |
Correlations/date shifts for data set (CNNBusiness 2009)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | 0.034/0 | NA | NA | NA | NA | 0.188/− 2 | − 0.527/0 |
| NASDAQ IXIC | − 0.048/− 2 | NA | NA | NA | NA | 0.198/− 2 | − 0.489/0 |
| DOW JONES DJI | 0.126/0 | NA | NA | NA | NA | 0.339/− 2 | − 0.68/0 |
| BOVESPA | 0.080/− 2 | NA | NA | NA | NA | 0.334/− 2 | − 0.493/− 7 |
| S&P GSPC | 0.061/− 1 | NA | NA | NA | NA | 0.322/− 2 | − 0.453/0 |
| CAC 40 FRANCIA FCHI | 0.199/0 | NA | NA | NA | NA | 0.405/− 2 | 0.597/10 |
| DAX ALEMANIA GDAXI | 0.183/− 3 | NA | NA | NA | NA | 0.359/− 2 | 0.563/10 |
| HONG KONG HSI | − 0.111/− 3 | NA | NA | NA | NA | 0.263/− 2 | − 0.449/− 11 |
| NIKKEI JAPAN N225 | − 0.081/0 | NA | NA | NA | NA | 0.469/− 2 | 0.587/− 6 |
| SHANGHAI CHINA | − 0.095/− 1 | NA | NA | NA | NA | − 0.413/− 2 | − 0.573/− 4 |
Correlations/date shifts for data set (CNNBusiness 2020)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Afinn | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | 0.122/− 6 | − 0.190/− 6 | 0.046/− 6 | − 0.264/− 6 | 0.011/− 6 | − 0.453/− 6 | 1.000/7 |
| NASDAQ IXIC | − 0.073/− 6 | − 0.594/− 6 | − 0.003/− 6 | − 0.401/− 6 | − 0.086/− 6 | − 0.621/− 6 | − 1.000/8 |
| DOW JONES DJI | − 0.068/− 6 | − 0.694/− 6 | − 0.001/− 6 | − 0.282/− 6 | − 0.059/− 6 | − 0.594/− 6 | − 1.000/8 |
| BOVESPA | − 0.016/− 6 | − 0.682/− 6 | 0.004/− 6 | − 0.219/− 6 | 0.018/− 6 | − 0.568/− 6 | 1.000/10 |
| S&P GSPC | − 0.071/− 6 | − 0.659/− 6 | 0.007/− 6 | − 0.326/− 6 | − 0.053/− 6 | − 0.622/− 6 | 1.000/8 |
| CAC 40 FRANCIA FCHI | − 0.003/− 6 | − 0.621/− 6 | − 0.196/− 6 | − 0.205/− 6 | − 0.267/− 6 | − 0.351/− 6 | − 1.000/11 |
| DAX ALEMANIA GDAXI | − 0.041/− 6 | − 0.605/− 6 | − 0.068/− 6 | − 0.214/− 6 | − 0.140/− 6 | − 0.479/− 6 | − 1.000/8 |
| HONG KONG HSI | − 0.128/− 6 | − 0.704/− 6 | − 0.054/− 6 | − 0.272/− 6 | − 0.085/− 6 | − 0.530/− 6 | − 1.000/8 |
| NIKKEI JAPAN N225 | − 0.111/− 6 | − 0.553/− 6 | − 0.226/− 6 | − 0.395/− 6 | − 0.360/− 6 | − 0.317/− 6 | − 1.000/6 |
| SHANGHAI CHINA | − 0.183/− 6 | − 0.589/− 6 | 0.060/− 6 | − 0.405/− 6 | − 0.074/− 6 | − 0.668/− 6 | − 1.000/6 |
Correlations/date shifts for data set (Bloomgberg 2009)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Afinn | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | 0.391/2 | 0.050/7 | 0.018/7 | 0.050/0 | 0.018/0 | 0.309/2 | − 0.500/3 |
| NASDAQ IXIC | 0.479/2 | 0.425/2 | 0.012/2 | 0.447/8 | 0.012/8 | 0.345/− 1 | − 0.697/3 |
| DOW JONES DJI | 0.493/0 | 0.458/2 | 0.156/8 | 0.471/8 | 0.156/2 | 0.168/0 | − 0.522/3 |
| BOVESPA | NA | NA | NA | NA | NA | NA | − 0.497/2 |
| S&P GSPC | 0.540/6 | 0.429/8 | 0.112/8 | 0.444/6 | 0.112/6 | 0.205/5 | − 0.530/3 |
| CAC 40 FRANCIA FCHI | 0.488/1 | 0.068/1 | 0.262/1 | 0.057/2 | 0.262/1 | − 0.005/0 | − 0.502/15 |
| DAX ALEMANIA GDAXI | 0.476/0 | 0.027/11 | 0.199/11 | 0.018/2 | 0.199/8 | 0.094/8 | 0.543/15 |
| HONG KONG HSI | 0.379/2 | 0.190/0 | 0.087/2 | 0.189/2 | 0.087/2 | 0.306/2 | 0.589/12 |
| NIKKEI JAPAN N225 | 0.313/0 | 0.113/6 | 0.036/6 | 0.114/2 | 0.036/6 | 0.008/5 | 0.435/12 |
| SHANGHAI CHINA | − 0.139/− 1 | 0.183/− 1 | − 0.279/− 1 | 0.199/− 6 | − 0.279/6 | 0.484/6 | − 0.493/5 |
Correlations/date shifts for data set (Bloomgberg 2020)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | NA | NA | NA | NA | NA | NA | 1.000/7 |
| NASDAQ IXIC | NA | NA | NA | NA | NA | NA | − 1.000/8 |
| DOW JONES DJI | NA | NA | NA | NA | NA | NA | − 1.000/8 |
| BOVESPA | NA | NA | NA | NA | NA | NA | 1.000/− 1 |
| S&P GSPC | NA | NA | NA | NA | NA | NA | − 1.000/10 |
| CAC 40 FRANCIA FCHI | NA | NA | NA | NA | NA | NA | − 1.000/10 |
| DAX ALEMANIA GDAXI | NA | NA | NA | NA | NA | NA | − 1.000/11 |
| HONG KONG HSI | NA | NA | NA | NA | NA | NA | − 1.000/6 |
| NIKKEI JAPAN N225 | NA | NA | NA | NA | NA | 1.000/− 7 | − 1.000/6 |
| SHANGHAI CHINA | NA | NA | NA | NA | NA | 1.000/− 7 | − 1.000/6 |
Correlations/date shifts for data set (NYTimes 2009)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | 0.349/0 | NA | NA | NA | NA | − 0.181/0 | − 0.527/0 |
| NASDAQ IXIC | 0.220/0 | NA | NA | NA | NA | − 0.188/0 | 0.489/0 |
| DOW JONES DJI | 0.391/3 | NA | NA | NA | NA | − 0.174/3 | − 0.468/3 |
| BOVESPA | 0.346/− 7 | NA | NA | NA | NA | − 0.057/− 7 | − 0.493/− 7 |
| S&P GSPC | 0.340/0 | NA | NA | NA | NA | − 0.177/0 | − 0.453/0 |
| CAC 40 FRANCIA FCHI | 0.356/10 | NA | NA | NA | NA | − 0.130/10 | 0.598/10 |
| DAX ALEMANIA GDAXI | 0.398/10 | NA | NA | NA | NA | − 0.157/10 | 0.563/10 |
| HONG KONG HSI | 0.206/− 11 | NA | NA | NA | NA | − 0.037/− 11 | − 0.449/− 11 |
| NIKKEI JAPAN N225 | 0.086/− 6 | NA | NA | NA | NA | 0.116/− 6 | 0.588/− 6 |
| SHANGHAI CHINA | − 0.297/− 4 | NA | NA | NA | NA | − 0.091/− 4 | − 0.573/− 4 |
Correlations/date shifts for data set (NYTimes 2020)
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | 0.637/− 13 | NA | NA | NA | NA | − 0.079/− 13 | − 1.000/10 |
| NASDAQ IXIC | 0.631/− 13 | NA | NA | NA | NA | − 0.299/− 13 | − 1.000/10 |
| DOW JONES DJI | 0.849/− 13 | NA | NA | NA | NA | − 0.036/− 13 | − 1.000/10 |
| BOVESPA | 0.724/− 13 | NA | NA | NA | NA | − 0.695/− 13 | − 1.000/11 |
| S&P GSPC | 0.766/− 13 | NA | NA | NA | NA | 0.123/− 13 | − 1.000/10 |
| CAC 40 FRANCIA FCHI | 0.949/− 13 | NA | NA | NA | NA | − 0.246/− 13 | − 1.000/11 |
| DAX ALEMANIA GDAXI | 0.973/− 13 | NA | NA | NA | NA | − 0.391/− 13 | − 1.000/11 |
| HONG KONG HSI | 0.113/− 13 | NA | NA | NA | NA | 0.422/− 13 | 1.000/10 |
| NIKKEI JAPAN N225 | 0.271/− 13 | NA | NA | NA | NA | 0.037/− 13 | − 1.000/8 |
| SHANGHAI CHINA | 0.635/− 13 | NA | NA | NA | NA | − 0.119/− 13 | − 1.000/8 |
Correlations/date shifts for data set (Investing.com 2020), date shift = 4
| Financial indices | S140 | Bing + | Bing- | Nrc + | Nrc- | Affin | SenticNet |
|---|---|---|---|---|---|---|---|
| IPC | − 0.181 | NA | NA | NA | NA | − 0.875 | NA |
| NASDAQ IXIC | − 0.052 | NA | NA | NA | NA | − 0.825 | NA |
| DOW JONES DJI | 0.918 | NA | NA | NA | NA | 0.247 | NA |
| BOVESPA | 0.752 | NA | NA | NA | NA | 0.710 | NA |
| S&P GSPC | 0.545 | NA | NA | NA | NA | − 0.374 | NA |
| CAC 40 FRANCIA FCHI | 0.461 | NA | NA | NA | NA | 0.628 | NA |
| DAX ALEMANIA GDAXI | 0.694 | NA | NA | NA | NA | − 0.356 | NA |
| HONG KONG HSI | 0.555 | NA | NA | NA | NA | 0.585 | NA |
| NIKKEI JAPAN N225 | − 0.136 | NA | NA | NA | NA | − 0.556 | NA |
| SHANGHAI CHINA | − 0.280 | NA | NA | NA | NA | − 0.938 | NA |