1. Introduction
A stock market, also referred to as a stock exchange, is a venue wherein a company’s shares or stocks are traded. For each share or stock granted by a publicly traded corporation, a price is associated with this, called a stock price. On any particular day, the total number of shares traded by any corporation is called the stock trading volume. Generally, the data in stock markets are greatly fluctuating and non-linear. These data are collected over time to determine the state of an event [
1]. Usually, analysis of the stock market is accomplished using the historical stock prices; however, some recent studies have invalidated the use of historical data to forecast stock prices. According to the efficient market hypothesis (EMH), fluctuations in stock prices are heavily influenced by current news, events, and marketing activity [
2]. Currently, social media is rising in importance as a way of shaping people’s reactions to each given event or piece of news. Any favorable or negative public opinion about a certain firm might have an impact on its stock values [
3].
Social media sentiment analysis-based big data analytics for a particular event has garnered a great deal of attention in recent years [
4,
5,
6]. Social media sentiment analysis regarding a particular event provides an insight for investors into better planning and decision-making. For instance, some research studies have conducted sentiment analysis using various social media platforms, e.g., Twitter regarding different events, such as the Nigerian presidential election of 2019 [
5]. Furthermore, this type of sentiment analysis regarding particular events is also employed in determining the trends in stock markets, e.g., studying the influence of the COVID-19 pandemic on stock market prices [
7]. Sentiment analysis of financial news articles regarding different events is also a source of information when analyzing stock market trends [
8]. Analyzing the stock exchanges regarding specific countries is also being studied with regard to the COVID-19 pandemic, e.g., a sentiment analysis-based strategy using the Twitter platform is adopted in [
9] to assess Italy’s reputation and the trends of its stock prices. As indicated before, major events like the coronavirus (COVID-19) pandemic or the British exit from Europe (Brexit) have serious implications for stock exchanges. As a consequence, analyzing the stock markets of the European Union (EU) member states in light of the Brexit event is a primary goal of this research study.
Brexit is an acronym made up of two words: “Britain” and “exit”, and it refers to Great Britain’s departure from the European Union (EU). The European Union (EU) is a political and unified economic partnership between 27 European countries predominantly found in Europe, aimed at breaking down trading, financial, and social hurdles and promoting prosperity in these areas. The essential goals of the EU are to increase well-being and values for its citizens and to promote peace among EU members. The EU also aims to support technological and scientific progress and establish a monetary as well as an economic union, using the euro (EUR) as its official currency. The EU GDP is one of the largest in the world because of its trade structure [
10]. The EU maintains its budget to support funding policies, the administrative costs of research, agriculture, or international aid and development [
10]. The EU has been surrounded by controversies regarding its funding since it began in the 1970s; this is considered one of several reasons that have prompted Brexit [
10]. On 31 January 2020, Britain left the EU because the country voted against EU membership. The UK held a referendum on 23 June 2016 to end its forty-three-year-long European Union membership [
11]. There were mixed opinions and reactions about Brexit, such as financial constraints. Furthermore, the net contribution by Britain to the EU was GBP 20.0 billion in 2018, although the amount was not transferred to the EU but was instead considered as a theoretical liability. Moreover, in 2018, ten EU member states contributed more than they received in the form of direct monetary contributions from the EU. Germany led the ranking, with a donation of EUR 17.2 billion, while Britain came in second with a net contribution of approximately EUR 10 billion [
12]. This disparity in contributions and returns were further discussed after Brexit, as the UK was a major contributor. Furthermore, this leads to an interesting research area to assess what effect Brexit has had on the top contributing countries and countries contributing least; it does seem that there is potentially a substantial difference in what the major contributors are getting back from the EU, compared to the countries contributing least. This disparity causes volatility in the stock exchange markets of EU countries [
13]. The decision-making of many businesses revolves around the stock market and customers’ attitudes and opinions, as exchanged on social media platforms. Many businesses were established in the UK to take advantage of EU trade benefits and Brexit will inevitably have an impact on their approach from now on. Therefore, opinions and sentiments about Brexit can be helpful for decision-makers to prepare better strategies and make intelligent decisions.
Presently, in this era of artificial intelligence, various researchers are attempting to determine the influence of opinions expressed by people on different social media platforms, and their effect on forecasting the eventual movement of stock prices using different automated methods of machine learning and deep learning [
4,
5,
6,
14,
15]. For instance, some research studies exist in which stock exchange forecasting is carried out using traditional machine learning methods [
16,
17,
18]. In addition, some hybrid approaches, such as hybrid naive Bayes classifiers, are also designed to perform classification of the stock market using sentiment analysis with Twitter [
19]. An ensemble learning technique involving different ensemble regressors and classifiers, such as support vector machines (SVM), random forest (RF), decision trees (DT), etc., is also utilized in the analysis of stock markets [
20]. However, in some recent methods, deep learning-based frameworks are also widely used in stock market predictions [
21]. It has been observed that the deep learning-based approach works better than machine learning approaches [
22]. Due to the accurate and high-performance results reported with deep learning-based methods in stock exchange predictions, we have also opted for the approach of deep learning and have proposed a convolutional neural network to predict stock exchange prices with regard to the Brexit event. For comparison, we have also employed machine learning models, namely, support vector regression and linear regression, to carry out stock exchange prediction. Furthermore, while existing research studies are explicitly studied in relation to this Brexit event, we attempt to give a detailed account of its impact on the stock markets in various EU nations. However, there are some studies in which various assessments of Brexit have been made. For instance, the influence of the Brexit vote on the stock exchange of London has been studied in [
23]. The impact of Brexit on the stock markets of India has also been studied in [
24], as well as on European market co-movements [
25]. Nevertheless, the proposed study is different in comparison with these methods, as sentiment analysis regarding Brexit events is also taken into account when analyzing the stock exchanges of EU countries. However, the studies mentioned above have employed different statistical and traditional correlational-based methods to analyze the general impact of Brexit events on stock exchanges.
More precisely, in this research study, we considered Brexit as a case study and evaluated the impact of social media sentiment on this event, collected from 24 February 2016 to 3 May 2016, consisting of 1,826,290 tweets regarding the stock markets of different EU economies [
26]. Social media sentiment analysis has been proved to provide better insight into stock price prediction [
27,
28,
29,
30,
31,
32,
33]. The objective here is to analyze the effect of a major event on different economies, especially in terms of the highest and lowest contributors to the EU. We used three algorithms—linear regression, support vector regression, and deep learning—to predict the stock exchange prices in EU countries. We selected two groups, from those EU countries with the highest contributions to the EU budget and those countries with the lowest contributions to the EU budget. The proposed work evaluated the effect of social media [
30] on the stock markets of EU countries. It also evaluates whether social media sentiment analysis, specifically in terms of Brexit event data analytics, gives improved results or not. The paper offers the following contributions:
The impact of social media sentiment for a major event, namely Brexit, is evaluated regarding the stock exchange markets of different EU countries.
For efficient data analytics, a deep learning-based method, along with comparative machine learning models, are suggested to perform stock exchange prediction.
The proposed sentiment-based algorithm evaluates the effect of the Brexit event on the stock markets for both the greatest and the least contributing EU countries.
The rest of the paper is organized as follows:
Section 2 explains related work in the field of social media-based stock prediction,
Section 3 explains the methodology, and
Section 4 presents the results; the discussion is followed by a conclusion and an outline of future research.
2. Related Work
Stock market prediction is one of the evolving topics of research in academia and real-world businesses. This stock-market forecasting helps researchers to understand better and plan according to business financials. The concept of this research is based on the random walk theory and the efficient market hypothesis (EMH). The researchers evaluated the effects on the current stock market, based on available information, by using the EMH [
34,
35]. With the help of random walk theory, they have forecasted the stocks’ future prices, which have the peculiar habit of constantly changing and a dependency on uncertain news. According to [
36], the ability to predict accurately is not more than 50% in such cases. It has been argued that random walk theory does not help in predicting, as forecasting of stock market prices is accurate to some degree [
37,
38]. Researchers predict that in the case of directional stock forecasting the 56% accuracy is considered substantial [
39,
40,
41,
42]. To forecast the stock market, fundamental and technical analysis are two other viewpoints employed, apart from EMH and random walk theory. To predict the stock market with the help of financial conditions, each company’s operations, macroeconomic factors, and fundamental analysis are used. The technical analysis is used to study historical prices and the time-series effect. Fluctuations in the stock prices can be analyzed using trends since historical trends repeat themselves. Researchers forecast the stock prices with only the help of historical prices. A Bayesian network was also used for an analysis of the time-series data, using the moving average and autoregressive model and the autoregressive moving average model. Most researchers only used one stock for forecasting [
35,
36,
39] and, to test the instances (transaction dates), they keep the number as low as 14 or 15 [
37,
43]. This low test-set of instances might not be sufficient for result evaluation.
Moreover, some current research studies and approaches to stock market prediction and analysis involve more sophisticated and advanced algorithms. For instance, a case study of the Chinese stock exchange market is taken into consideration in [
44]. In this work, a combined framework of knowledge graphs and deep learning is employed to predict stock prices. It is observed that their suggested method shows the best results in comparison with other methods. Similarly, in [
45], a case study of the Tehran exchange is taken into account to examine the impact of daily stock rates by employing a genetic algorithm and multi-layer perceptron. The goal of applying these models in conjunction is to predict one-day returns. In [
21], several types of deep learning models, including a multi-layer perceptron (MLP), recurrent neural networks (RNNs), long short-term memory (LSTM), and convolutional neural networks (CNNs) are employed to predict the prices of stocks, utilizing the historical data of companies. This study has employed the data from two stock exchanges, namely, the National Stock Exchange (NSE) and the New York Stock Exchange (NYSE). A special kind of capsule network, namely, a TI-capsule (text and image information-based capsule neural network) is employed by the authors of [
46] to predict stock behavior. One of the most dominant features of a TI-capsule is the preservation of features in a vector, and, hence, shows 91% accuracy. It has also been observed that deep learning-based data analytics and artificial intelligence-based decision-making algorithms show better results in stock exchange prediction, and they are extensively adopted methods in this area. Due to their superior performances, they are also employed as a data-analytics approach to industrial big data, such as the planning of smart processes in cognitive automation [
47], the comprehension of a cognitive Internet of Things [
48], and product decision-making information systems [
49]. Furthermore, a relationship among machine learning-based data analytics is considered with regard to stock exchange prediction with data-driven Internet of Things systems and interconnected sensor networks, while there are other research studies where these frameworks have applications such as in smart cities [
50]. For instance, a data-driven Internet of Things system, along with machine learning-based assessments, was utilized to determine the COVID-19 pandemic response and recovery rate, for the administration and development of smart sustainable cities [
51].
Furthermore, in other applications, such as tourism, the effect of social media influencers (SMIs) is analyzed through statistical data-analytics approaches to decision-making regarding the travel habits of customers [
52]. These data analytics systems also have numerous applications in the planning procedures of smart processes in sustainable cyber-physical manufacturing frameworks [
53] and the sustainable management of organizational performance [
54].
2.1. Social Media Sentiment Analysis for Stock Exchange Prediction
Twitter is considered an important social media platform for gathering information and influencing public opinion [
55]. It has been shown that social media sentiment analysis plays an integral role in product and restaurant reviews [
56,
57]. Researchers used information sources to apply sentimental analysis for the improvement of the stock prediction model. Currently, social media is the source from which to gather all the information [
58,
59]; previously, this information was collected through news forums [
55]. Then, the prediction model was used to combine all the sentiments. Linear regression-based frameworks were used for the integration of the textual content with historical prices. Previously, a model was widely used to merge “bags-of-words”, which are the text representations used in the prediction model. Schumaker et al. used different textual representation techniques for analysis, such as bag-of-words, name entities, and noun phrases to mine the financial news [
39]. Later, they incorporated the information to support vector machine regression and linear regression, acting as the predictive models. The model forecast the stock prices 20 min after the release of the news article. The result showed 57.1% directional accuracy, 0.04261 mean square error, and 2.06% return in a simulated trading engine. From the message boards, messages were also segmented into three classes—hold, sell and buy—using a naive Bayes model. All those messages that fall under these three segments were collectively considered as bullishness, with further analysis of three functions classified as an alternative to bullishness. All this was integrated into the regression model. Their prediction model was not capable of forecasting stock returns effectively. The relationship between the collective indices, such as investors’ hopes and fears, was evaluated against stock market indicators on a regular basis [
60]. Based on the keywords, the tweets were classified as voicing worry, fear, hope, and so on. According to the authors, a positive relationship of emotional tweets was linked with VIX, and negative relation to the Dow Jones, NASDAQ, and S&P 500. However, they were not using their model to predict stock prices. To evaluate all the stock forecasting, a keyword-based algorithm was created and reported approx. 75% accuracy, on the basis of 14 transactions in mid-September 2012 [
43].
2.2. Impact of Brexit on Stock Markets
In the existing literature, there are many research studies in which the impact of various social events on the stock markets of different countries is studied. These events include the COVID-19 pandemic [
9], the Nigerian presidential election of 2019 [
5], and Brexit [
23]. In addition, the approaches employed in these studies to study the impact on stock prices vary greatly. For instance, in [
9], the impact is studied via a sentiment analysis-based strategy using the Twitter platform. However, specific to the event of Brexit, there do exist some studies in which stock exchange analysis is performed. As an example, in [
61], a survey of UK firms is conducted to study the impact of Brexit. This study demonstrates several key findings, such as that Brexit resulted in a significant, widespread, and long-term rise in uncertainty. An empirical study using autoregressive models has been employed by the authors of [
24] to study the impact of Brexit on the Indian stock exchange. This study demonstrated that by using the test results of the last four years, it can be observed that Brexit has had a major influence on the Indian stock market. Moreover, the uncertainty in financial markets with regard to Brexit has been studied by the authors of [
62]. In this work, both parametric and semi-parametric approaches are employed to analyze whether Brexit has had any major influence on the degree of determination of the FTSE (Financial Times Stock Exchange index). Another empirical analysis has been conducted in [
63] to study the influence of Brexit’s pre- and post-referendum effects on some chosen stock exchanges. This study concludes that a structural break appeared in every stock index, due to the results of the Brexit referendum. Furthermore, in one study [
64], a special case of the New Zealand stock market is analyzed with regard to the Brexit announcement. This impact was analyzed using data from the NZX50 index and details of the closing price of the 50 highest stocks, as well as legitimate stocks available on the Main Board (NZSX). The findings of the study show that the NZX50 index is negatively influenced by Brexit but, on the other hand, NZX50 stock’s returns were better during the period of the Brexit referendum. A relational dynamics impact on stock exchanges was studied in [
65], regarding pre- and post-Brexit referendum figures. In this work, detrended fluctuation analysis (DFA), along with a detrended cross-correlation coefficient, is employed to study its influence.
3. Methodology
In the proposed study, we have performed stock exchange forecasting using a sentiment analysis of tweets related to the Brexit event. In the first stage, we acquired the tweets data, followed by the refining and sentiment analysis of the data. Subsequently, we have proposed both linear and non-linear formworks to carry out the stock exchange forecasting. More specifically, linear regression is used as a linear model to determine the value of an independent variable, using a linear combination of dependent variables and their respective coefficients. Support vector regression and convolutional neural networks are used as a non-linear model to estimate the value of stock markets. In addition, several linear and non-linear artificial intelligence-based models, such as support vector analysis and linear regression, are employed as the existing methods for this purpose. However, choosing the best model for stock forecasting is a critical field of study. Deep learning developments have resulted in a full shift toward adopting these models for data analytics [
21,
46]. Due to their best and most accurate performance being in the domain of data analytics, we have adopted them for our analysis of stock exchanges of EU nations with regard to Brexit sentiment. Furthermore, we have employed the sentiments data from 1,826,290 tweets regarding the stock markets of different EU economies, which is a substantial volume of data; therefore, the deep learning model appears to be a better fit for this analysis as it performs very efficiently when there is a large amount of data. It is crucial to compare the performance of the deep learning model with certain traditional machine learning methods, such as linear regression and support vector regression, in order to assess its ability to handle such large amounts of data since they are widely used for regression problems. We chose linear regression since it is perfectly suited for determining how strong the correlations among variables are.
Furthermore, it is more versatile, easier to interpret, and provides a better comprehension of statistical inference. However, it does not perfectly capture the non-linearity in the dataset, and outliers in the data also affect its accuracy. Similarly, the reason for choosing support vector regression is that it perfectly handles the outliers in the data, along with offering the best generalization ability. However, both these methods do not scale up well for large datasets; hence, we used the deep learning model. In addition, deep learning can work with noisy data and perfectly captures the non-linearity. Moreover, it is observed that the proposed deep learning method outperforms these traditional methods. The proposed methodology is explained in
Figure 1 and the details of each subsection are given below.
3.1. Dataset Collection
The dataset has been collected for the following countries given in
Table 1, from Yahoo! Finance. The starting dates vary for each country but we have used the same end date for each country, according to the availability of a sentiment dataset related to the Brexit event [
26]. More precisely, we have collected the data of EU nations that are major contributing countries and those which contribute the least. This selection (i.e., countries of greatest and least contributions) is based on their statistical contribution, in terms of values obtained from a European Commission poll from 2019 [
66,
67]. The highest-contributing countries to the EU budget include Germany, the UK, France, Netherlands, and Spain, with their stock markets in Frankfurt, London, Paris, Euronext, and Madrid, respectively. Similarly, the lowest-contributing countries to the EU budget include Poland, Hungary, Portugal, and Romania, with their stock markets in Warsaw, Budapest, Euronext Lisbon, and Bucharest, respectively. The dataset incorporates several attributes, such as “open”, “close”, “high”, “low”, “volume”, and “adj close”. More precisely, the “open” attribute provides the opening value of the stock, while the “close” attribute provides the closing prices of stocks on a specific trading day; likewise, the “high” and “low” attributes provide the highest and lowest values of stock traded on that day. In addition, the volume attribute shows the total volume of stock on that particular day, and, after the dividends have been certified, then the remaining stock values are denoted by the “adj close” attribute.
3.2. Social Media Sentiment Analysis for Brexit
In this proposed study, social media sentiment analysis plays an important role in efficient stock exchange prediction. For this sentiment analysis, Alex Davies’ assertion list is used [
68] to analyze the effect of sentiment on market development. More specifically, a list of about 5000 words has been used and categorized into positive, negative, and neutral classes. The process that was originally assigned then converted the tweets into tokens. The blank spaces, emojis, and URL links are removed using parsing algorithms. The three sentiment values, i.e., the negative, neutral, and positive classes are used to categorize the tweets. Then, we interchanged our own generated list, consisting of more than 4000 words, with the previous list for sentiment classification. This assists in achieving improved results because it considers the multi-word associations between each word. In this study, we use a different approach for daily sentiment calculation rather than simply considering the probability or just taking the average of the tweet. The results presented in this study are in terms of the percentage value of all three categories of daily tweets. Along these lines, we only considered the positive and negative categories of the tweets and ignored the neutral category of tweets. More precisely, the percentage values of sentiments of a particular day can be computed using Equations (1)–(3):
In the above equations, shows the percentage values of positive sentiments, , shows the percentage values of negative sentiments, , shows the percentage values of neutral tweets, , while shows the total tweets on the day or the total number of sentiments recorded on the day.
3.3. Linear Regression
Nunno et al. [
69] demonstrate that stock market values can be forecasted by using various machine learning-based regression models, such as support vector regression, linear regression, and deep learning models. Among all these, the linear model is utilized most widely because of its strong and simple nature. For this purpose, single and multi-dependent factors are used; therefore, we utilized a multi-linear regression framework [
70]. This is a generalized regression algorithm that helps when dealing with various dependent variables.
Consider the following equation, where y denotes the independent variable, while the dependent variables are denoted as
,
, …,
through parameters
,
, …,
, as shown below in Equation (4).
The , , …, values represent the regression co-efficient, with a relationship with , , …, , separately, and shows the value of random error between the actual and the predicted values.
In addition,
is the
th coefficient, representing the foreseen alteration in
y per unit alteration in the
th independent variable,
. Let us suppose that
e(
ε) = 0; then, the
value can be determined, utilizing Equation (5).
3.4. Support Vector Regression
Cortes et al. [
71] proposed the use of SVM, which is based on statistical machine learning. The objective behind SVM was to handle structural risks. Since then, many researchers have used a modified SVM for regression problems and employed it for a wide range of applications. These applications include fault prediction, forecasting time-series data, and forecasting power load demand [
72].
Let us assume that the data is in the form of a time-series, which is given below in Equation (6):
where
denotes the information given at period
, with components
, and the output data,
. At that point, the regression can be defined using Equation (7):
where
and
represent the weight and bias, respectively. Here,
is the input vector, and this vector can be mapped by the kernel, (
), into a higher dimensional space. By solving the optimization problems in Equations (8) and (9), we can find out the values of
and
.
Here, represents the tradeoff between model simplicity and generalizability, whereas the cost is measured using the and factors.
Data in non-linear form is plotted from the original vector space to the high dimensional space using kernels, where linear regression can be used. Therefore, the regression models for support vector machines can be obtained as follows, using Equation (10):
where
and
represent the Lagrange factor multipliers. In SVM, the most commonly utilized kernel is the RBF kernel, which is also known as the Gaussian radial function. Its width can be calculated using Equation (11):
In this research study, open, high, low, volume, sentiment, and adj close values of stock data are considered as input variables, while the output variable is the “close” attribute which is the stock closing price on a specific day of trading.
3.5. Convolutional Neural Network
Deep learning models are used to achieve better results in different application areas such as medical imaging [
73,
74], biometric systems [
75], as well as natural language-based tasks [
76]. In addition, as compared to linear regression or support vector regression models, they perform better. For this purpose, Convolutional Neural Network (CNN) is used as a deep learning model in this study. The neural network algorithms use a strategy whereby input data is linearly transformed into a new feature space on each hidden layer, then, a non-linear function is applied. This same process will continue until the final layer of CNN, i.e., the output layer. Hence, deep learning models are defined as an information flow from the input layer to the output layer, through hidden layers. Deep learning models are generally defined as a model consisting of a large number of neurons, hidden layers, and hyperparameters that are interconnected and learn through examples. A typical class of utilization for this framework includes the mathematical regression models to approximate and forecast data. The performance of such models is generally improved by using extra information during the training phase. We have utilized the default settings for deep learning-based CNNs for this reason.
In our proposed framework, at the first layer of the network, the input data contains seven column values, namely, open, high, low, volume, sentiment, and adj close. The output acquired from the CNN framework approach is evaluated using the mean absolute error and root mean square error. In this research, the “close” value is predicted using the remaining attributes mentioned above. All these seven parameters are already available in the datasets utilized for stock trade forecasts, and sentiment value regarding the Brexit event is taken from Twitter information. The architecture is explained in
Figure 2.
5. Conclusions and Future Work
Stock exchange forecasting is one of the most challenging subjects in financial markets. Currently, stock exchange forecasting using social media sentiment analysis for major social and political events is an important research area. This is because emotion and the sentiment expressed by the public influence the stock exchanges and the buying patterns of investors, as well as business decisions. In addition, the analysis of sentiments on social media platforms regarding specific events leads to providing more information, since they have significant consequences for stock exchanges. There are many such events whose impact on stock exchanges was studied in the past; however, in this particular analysis, an important event, namely, Brexit is considered as a case study. More specifically, as a primary goal of this research, we used the case study of the Brexit event to analyze the influence of its sentiment on stock markets. We have proposed an efficient deep learning approach, namely, a convolutional neural network, to accomplish this analysis. In addition to that, we also proposed machine learning frameworks, i.e., linear regression and support vector regression. For sentiments, we used the Twitter dataset of Brexit tweets to check the effect of sentiments regarding Brexit events, in terms of the major contributors and lowest contributing EU countries. In comparison with existing methods, overall, we processed more than 1.8 million tweets and extracted the sentiments related to Brexit, which data were then used for stock exchange prediction. The results are presented, both without and with sentiment analysis. The results show that sentiment analysis of Brexit improves stock exchange prediction, especially for major contributing countries. Furthermore, the major contributing nations contribute more to the EU budget, and, when Brexit is complete, it will be necessary to examine the impact on their stock markets and how their contribution is affected, in terms of profit or loss. However, for the countries contributing least, the results of the analysis will guide the decision-makers and indicate how to safeguard the countries from going over budget if the UK leaves the EU, as the countries contributing least do not have powerful economies and a misjudgment will result in wrong investment opportunities and loss. Hence, the result of stock analysis with respect to Brexit for both groups of countries is essential, to take an optimal decision regarding stock investments. Moreover, it is also clear that the proposed deep learning model works better than traditional machine learning algorithms, i.e., linear regression and support vector regression, in terms of RMSE and MAE. In major contributing countries, the MAE of the deep learning algorithm is about 49.35 less than linear regression and 1.7 times less than support vector regression, when analyzing tweets in the UK. Similarly, in the countries contributing least, the deep learning method also outperformed when analyzing tweets in Portugal, in comparison with other machine learning classifiers. This study is helpful for the various business investors and decision-makers, as it completely portrays an analysis of the stock exchanges of EU nations from two different perspectives.
In the future, this work can be extended by adding more events, including economic and political happenings from each country, to analyze its impact on stocks. As the growth of social media that has been seen in the last few years is enormous, researchers are mining opinions from them according to their needs. Many social media platforms have seen such growth, but Twitter is the only platform being used for sentiment analysis, even though a huge audience is also on Facebook. In future studies, the use of more than one social media platform will be used to extract sentiments for any specific event. This collection of sentiments from more than one platform will be stronger and more authentic. In the future, we also want to incorporate more parallel events that occur during this phase, to improve the prediction results.