key: cord-0540751-fsah245z authors: Seki, Kazuhiro; Ikuta, Yusuke; Matsubayashi, Yoichi title: News-based Business Sentiment and its Properties as an Economic Index date: 2021-10-20 journal: nan DOI: nan sha: e8784024261d451a9dfb867281a58c5ac5da2c89 doc_id: 540751 cord_uid: fsah245z This paper presents an approach to measuring business sentiment based on textual data. Business sentiment has been measured by traditional surveys, which are costly and time-consuming to conduct. To address the issues, we take advantage of daily newspaper articles and adopt a self-attention-based model to define a business sentiment index, named S-APIR, where outlier detection models are investigated to properly handle various genres of news articles. Moreover, we propose a simple approach to temporally analyzing how much any given event contributed to the predicted business sentiment index. To demonstrate the validity of the proposed approach, an extensive analysis is carried out on 12 years' worth of newspaper articles. The analysis shows that the S-APIR index is strongly and positively correlated with established survey-based index (up to correlation coefficient r=0.937) and that the outlier detection is effective especially for a general newspaper. Also, S-APIR is compared with a variety of economic indices, revealing the properties of S-APIR that it reflects the trend of the macroeconomy as well as the economic outlook and sentiment of economic agents. Moreover, to illustrate how S-APIR could benefit economists and policymakers, several events are analyzed with respect to their impacts on business sentiment over time. In Japan, there exist business sentiment indices, such as Economy Watchers Survey 1 and Short-term Economic Survey of Principal Enterprise 2 conducted by the Government and the Bank of Japan, respectively. These diffusion indices (DI) play a crucial role in decision-making for governmental/monetary policies, industrial production planning, institutional/private investment, and so on. However, these DIs rely on traditional surveys, which are costly and time-consuming to conduct. For example, Economy Watchers Survey is carried out in 12 regions of Japan, where 2,050 preselected respondents who can observe the regional business/economic conditions (e.g., store owners and taxi drivers) fill out a questionnaire and then an investigative organization in each region aggregates the surveys and calculates a DI. As the survey and subsequent processes take time, the DI is published only monthly. On the other hand, so-called alternative data, including merchandise sales, news, micro-blogs, query logs, credit card transactions, GPS location information, and satellite images, are constantly generated and accumulated. The availability of such data has accelerated the development of data-driven artificial intelligence (AI) models and techniques represented by deep learning. In econometrics, there is a growing interest in future/current forecasts of economic and financial indices by using such alternative, large-scale data instead of traditional surveys (Chen et al., 2019; Jain, 2019) . For example, point of sales (POS) data have been used for estimating consumer price index (CPI) (Watanabe & Watan-1 https://www5.cao.go.jp/keizai3/watcher-e/index-e.html 2 https://www.boj.or.jp/en/statistics/tk/long_syu/index.htm/ abe, 2014); financial and economic reports for business sentiment (Yamamoto & Matsuo, 2016) ; newspaper for stock prices Picasso et al., 2019; Yoshihara et al., 2014 Yoshihara et al., , 2016 , socio-economic indicators (Chakraborty et al., 2016) , consumer sentiment (Shapiro et al., 2020) ; and social media for stock prices (Bollen et al., 2011; Derakhshan & Beigy, 2019; Levenberg et al., 2014) . This work focuses on textual data and uses daily newspaper articles to develop a new business sentiment index, named the S-APIR index. In addition, using the computed index, we propose an approach to temporally analyzing the influence of an arbitrary event on business sentiment. The remainder of the paper is structured as follows: Section 2 introduces the related work on sentiment analysis in general and its applications to market sentiment and business sentiment prediction. Section 3 states the research objectives pursued in the present work. Section 4 details our proposed approach to forecasting business sentiment index and describes how to temporally analyze the contribution of a given event to business sentiment index based on predicted business sentiment scores. Section 5 conducts evaluative experiments using over 12 years' worth of newspaper articles and discusses the properties of S-APIR, in addition to word-level temporal analysis. Section 6 discusses the implications and findings of this work. Section 7 concludes with a brief summary and possible future directions. In the economic and financial domains, there are abundant textual data, such as newspaper articles and financial reports as well as many numerical data. These texts are intended to be read by humans, who also consider other sources of information and make decisions on investment, financial policies, and so on. However, it is difficult even for experts to read and grasp all the available information in a limited time. Therefore, there has been much research on computing economical/financial indices from textual data, which is closely related to sentiment analysis. In the following, we briefly introduce the related work in general sentiment analysis, and then summarize its applications to market sentiment prediction. Finally, we describe the related work in business sentiment prediction, which is the main focus of the present work. Sentiment analysis is a sub-field of natural language processing (NLP) and aims to predict the sentiment orientation (i.e., positive or negative) or sentiment score for a given text (Yadollahi et al., 2017) . Sentiment analysis is often applied to user-generated content such as tweets (Giachanou & Crestani, 2016; Zimbra et al., 2018) and product reviews (Fang & Zhan, 2015) to understand the opinions of users about an object (e.g., product, service, person, and company), which can be valuable information for, for example, improving products for manufacturers and making decisions for customers. Note that it is also possible to consider multiple categories of sentiment, such as happy, sad, angry, and embarrassed, instead of the dichotomous, positive/negative sentiment. Sentiment analysis approaches can be roughly categorized into lexicon-based (Khoo & Johnkhan, 2018) , rule-based (Vilares et al., 2017) , and machine learningbased (Kouadri et al., 2020) . Lexicon-based approaches use lists of words, each belonging to a sentiment category, and look for the occurrences of the words in the list. Rule-based approaches are similar to lexicon-based but add another layer of inference based on linguistic rules. Machine learning-based approaches employ supervised or semi-supervised learning models to classify a given text into predefined sentiment categories. As supervised learning models, deep learning models have been popularly used in recent years, including memory neural network (MNN) (Tay et al., 2017) , recurrent neural network (RNN) with long short-term memory (LSTM) units (Song et al., 2019; Xu et al., 2019) , combination of LSTM and convolutional neural network (CNN) (Behera et al., 2021; Rehman et al., 2019) , and attention-based language representation models (Abu Farha & Magdy, 2021; Pota et al., 2021; Smetanin & Komarov, 2021) . Market sentiment prediction is an application of sentiment analysis techniques to the stock market domain. Seminal work in market sentiment prediction was conducted by Bollen et al. (2011) . They collected microblog posts (i.e., tweets) from Twitter and applied a lexicon-based sentiment analysis using six categories: calm, alert, sure, vital, kind, and happy. Their analysis showed that the calm score and Dow Jones Industrial Average have a causal relation. Since Bollen et al's work, there has been much work utilizing social media for forecasting stock market indices (Arias et al., 2014; Oliveira et al., 2017) , predicting stock price (or movement) (Derakhshan & Beigy, 2019; Li et al., 2017; Nguyen et al., 2017; Tu et al., 2018) , investigating the effects of users' emotions on the stock market during a market crash (Ge et al., 2020) , and analyzing the impact of bullish-bearish tendencies estimated from the online financial community forum on market volatility and market returns (Qian et al., 2020) . Ren et al. (2021) analyzed the interaction between social media sentiment and mass media sentiment. For predicting stock prices or their movements, the sentiment of financial news texts has been also utilized (Li et al., 2014) . Zhang et al. (2018) jointly used news texts and social media considering their interaction via matrix factorization. Li et al. (2020) and Picasso et al. (2019) independently proposed to combine the news sentiment and technical analysis for improving prediction. Similar to market sentiment prediction, sentiment analysis techniques have been applied to business sentiment prediction (Shapiro et al., 2020) . For Japanese data, Economy Watchers Survey mentioned in Section 1 is often used as training data to learn a supervised prediction model. Since our study also relies on the Economy Watchers Survey, we first describe the data. Economy Watchers Survey publishes not only the business sentiment index (hereafter called EWDI) but also individual survey responses on which EWDI is based. The survey responses contain a pair of economic condition on a five-point (Blei et al., 2003) to analyze latent topics and discussed their contributions to the estimated senti-ment index. Following up our work (Seki & Ikuta, 2020) , we applied the Bidirectional Encoder Representation from Transformers (BERT) to measure business sentiment (Seki & Ikuta, 2021) , which was found to be strongly positively correlated with survey-based EWDI, outperforming the related work. However, the properties of the predicted business sentiment or its usefulness have not been fully discussed in our preceding paper, which motivated the present work. This paper aims at shedding light on the properties of S-APIR as an economic index and to demonstrate its practical values as discussed in the next section. This paper is an extension of our previous work (Seki & Ikuta, 2021) with more focus on studying the properties of our business sentiment index, S-APIR, and its application to the temporal analysis of arbitrary events. Specifically, the research objectives (RO) of this work are the followings: • RO1: To measure business sentiment based on daily newspaper articles and empirically validate the proposed approach. • RO2: To analyze the properties of the S-APIR index in comparison with various representative economic indicators and discuss its implications. • RO3: To quantify the effects of several notable events on business sentiment and illustrate how it could benefit economists and policymakers. To accomplish these goals, we devise a framework to measure business sentiment from newspaper articles based on supervised machine learning models and conduct extensive experiments. Also, to reveal the properties of the S-APIR index, we systematically compare it against a number of macroeconomic indicators and semi-macro indicators including sentiment indices and actual activity indices. Lastly, we present and discuss the result of temporal analysis of significant events that occurred between 2008 to 2020. This section describes our approach (Seki & Ikuta, 2021) to predicting business sentiment based on news articles. The overview of the approach is illus- Two models are trained using the training data; One is a model to predict an economic status as a continuous value for an input text, and the other is an outlier detection model described in the next section. Regarding the former, we adopt a language representation model, specifically, BERT (Devlin et al., 2019) , for its superior performance to existing models. BERT and its derivative models are based on Transformers (Vaswani et al., 2017) and have been widely used in recent years. These models are initially learned on a large-scale, unlabeled corpus by solving a task to predict masked words from their context. The initial models can be fine-tuned for various downstream tasks by feeding a task-specific labeled corpus and it has been reported that they yield superior performance to the former state-of-the-art models. We use a pre-trained Japanese BERT model 3 and add an output layer that predicts economic status or a business sentiment score of an arbitrary input text. The weights of the entire model are fine-tuned using the Economy Watchers Survey as training data. Our work is one of the earliest attempts, if not the first, to use a language representation model to predict business sentiment. One could use the aforementioned fine-tuned BERT model to predict a business sentiment score for any input text. However, news articles are generally written in many genres, some of which may not be necessarily relevant to the economy. Using irrelevant information would be harmful in capturing business sentiment. Therefore, we attempt to filter out such irrelevant news texts by treating them as outliers. For this purpose, we preliminarily compared several outlier detection models and chose a one-class support vector machine (SVM) (Manevitz & Yousef, 2002) . Unlike an ordinal SVM used for binary classification, a one-class SVM can be learned on documents belonging to only one class and detect documents dissimilar to the training documents as outliers. We use Economy Watchers Survey, specifically, statements of the reason(s), as the training data for one-class SVM and filter out news text dissimilar to those statements. For text representation, we use the traditional Bag-of-Words (BoW) with the term frequency-inverted document frequency (tfidf) term weighting (Manning et al., 2008) . In Section 5.4, we will empirically compare one-class SVM with an alternative outlier detection model to discuss its advantage. Note that there are several prior works to predict business sentiment from textual data as summarized in Section 2 but few paid attention to whether or not each input text should be used for predicting business sentiment. In contrast, we use an outlier detection model to selectively use input sentences from news articles. For computing the S-APIR index, we take advantage of newspaper articles. First, each news article is divided into sentences based on the Japanese punctuation mark "。 " and fed to the outlier detection model. The sentences judged as outliers are filtered out and the other sentences are input to the fine-tuned BERT model. As a result, a business sentiment score is obtained for each sentence. The output scores can be aggregated by any arbitrary unit, e.g., daily or weekly. Following the related work (Aiba & Yamamoto, 2018; Goshima et al., 2019; Kondo et al., 2019) , we aggregate them by their average to define the S-APIR index and use monthly S-APIR throughout this paper as it can be directly compared with EWDI. Business sentiment is formed by various factors including monetary policies, trade, military conflicts, and an outbreak of pandemic diseases. However, it is not clear how each factor influences the overall sentiment and discovering the influence of those potential factors has a tremendous value. For instance, policymakers could assess the impact of any event of their interest (e.g., certain fiscal policies) and take necessary measures in a timely fashion. To this end, we propose a simple approach to analyzing when and how much any given factor contributed to the business sentiment index. Specifically, we define the contribution of word w during time t, denoted as p t,w , using the predicted business sentiment score of an input news text. We first assume that the sentiment score p s of sentence s is additive, that is, p s is the sum of the sentiments of words (w) appearing in s as follows: where N s is the number of words composing s and p s,w is the sentiment of w. Further assume that all the words w i (i = 1, . . . , N s ) equally contribute to the sentiment of s. Then, p s,wi is simply written as: Note that p s is the output of the fine-tuned BERT model for input sentence s. Here, let S t denote the set of news sentences published during time t. Using S t , we define the contribution of w in time t as the average of p s,w over S t . In cases where w is a compound word, we multiply Equation (2) by the number of constituents of w. Intuitively, the S-APIR index in time t can be interpreted as the sum of the influences of all the words appearing in texts published during t. To the best of our knowledge, there has never been an attempt to temporally analyze business sentiment at a word level. For fine-tuning BERT and a one-class SVM, we downloaded the Economy Watchers Survey data from the web page of the Cabinet Office 4 in February 2020. The number of the pairs of an economic condition and a statement of the reason(s) was 254,823 in total, of which randomly selected 90% were used for training and validation and the rest were used for testing. The ratio of the training and validation data was set to 9:1. When fine-tuning a BERT model, we tested a number of combinations of parameters and set the batch size and the number of epochs to 32 and 3, respectively, which resulted in the least mean squared error (MSE) on the validation data. The length of the input word sequence was set to 200. To compute the S-APIR index, we used the titles and body texts of news articles from the Nikkei newspaper 5 from January 2008 to June 2020. The titles and body texts were not distinguished. As a preliminary experiment, we evaluated the fine-tuned BERT on the heldout test data (10% of Economy Watchers Survey). In other words, the model was tested how closely it could predict the economic condition for a given statement of the reason(s). advantage of transformer-based language representation models over previous models as witnessed in other downstream NLP tasks (Devlin et al., 2019) . This section compares our business sentiment index, S-APIR, and existing business sentiment index, specifically EWDI. It should be emphasized, however, that S-APIR is intended not to replace EWDI but to be a new index using newspaper as the source of information. There is no ground truth for a business sentiment index and EWDI is also one of the possible indices, which is measured based on somewhat limited 2,050 respondents. Nevertheless, we make the comparison to ensure that S-APIR generally has a similar trend to the existing index and to study the characteristics of S-APIR. Using the fine-tuned BERT and the one-class SVM as described in Section 5.2, we computed monthly S-APIR on the Nikkei Newspaper from January 2008 to June 2020. Figure 2 shows the computed S-APIR and compares it with EWDI. One can observe that S-APIR's trend is generally close to that of EWDI, capturing the financial crisis triggered by the bankruptcy of Lehman Brothers in 2008 and the decline of business sentiment caused by the Great East Japan Earthquake (Tohoku Earthquake) in 2011. In effect, they were found to be strongly positively correlated (r = 0.888), which proves the validity of the S-APIR index. Here, we would like to remind that the input texts used in this experiment are only newspaper articles. The result is striking considering the fact that EWDI is calculated based on a costly survey specially designed to measure business sentiment, whereas the Nikkei is a national newspaper for the general public even though it focuses on economy and business. While we do not have complete understanding of why S-APIR has strong positive correlation with EWDI, one of the reasons would be that the prediction model was trained on EWDI's survey data. Another reason would be that the Nikkei Newspaper contains many articles in economy, finance, and business and consequently its contents are similar to some extent to EWDI's survey responses, which are mainly the situations of economy and business the respondents observed. Incidentally, Economy Watchers Survey contains occupations of respondents as shown in Table 1 , which are categorized into household-related (about 70% of the respondents), industry-related (about 20%), and employment-related (about 10%). Thus, the influence of household trends is relatively large on EWDI. On the other hand, the Nikkei used in this study is a financial newspaper publishing many business-related articles. Consequently, S-APIR is likely to be more influenced by businesses and industries. To examine the assumption, we compared S-APIR with industry-related EWDI which was computed based only on industry-related respondents. Then, their correlation coefficient increased from 0.888 to 0.937. This result indicates the characteristics of the S-APIR index calculated from the Nikkei that it reflects industry trends more closely. We used one-class SVM to filter out sentences irrelevant to the economy in Section 5.3. In order to validate the effectiveness of the filtering process, we computed an S-APIR index based on all the news sentences without applying filtering. As a result, the correlation coefficient with EWDI slightly decreased from 0.888 to 0.878. When compared with industry-related EWDI, the difference was somewhat greater; it decreased from 0.937 to 0.919. In both cases, correlation coefficients decreased, suggesting that news articles contain sentences not suitable to measure business sentiment and that one-class SVM was able to filter them out. We also tested the effectiveness of the filtering process when LSTM-BiRNN (see Section 5.2) was used for computing a business sentiment index. The correlation coefficient with EWDI was found to be 0.765 without filtering and 0.875 with filtering. The correlation efficient with industry-related EWDI was 0.805 without filtering and 0.922 with filtering. In both cases, the benefit of the filtering was much greater than that of BERT. The results indicate that BERT is more robust than LSTM-BiRNN when input texts contain sentences irrelevant to economy. In order to directly compare the one-class SVM and LSTM-RNN autoencoder models for outlier detection, a data set consisting of inliers and outliers is needed. However, it is costly to manually create such a dataset. Instead, we used as inliers 7,962 data from the Economy Watchers Survey after March 2020, which were not used for training the outlier detection models. As for outliers, we used 14,912 articles in the entertainment category in the 2019 edition of the Mainichi Newspaper. 6 Although there may be articles related to the economy Table 3 . Recall, precision, and F 1 scores were macro-averaged for the inliers and outliers classes. Note that, for autoencoder, it is necessary to set a threshold for the reconstruction error to judge whether it is an outlier or not. We tested a number of threshold values and Table 3 shows the performance with the highest F 1 . From the result, it can be seen that the one-class SVM has greater performance for outlier detection. Intuitively, an RNN-based autoencoder has an advantage as it can capture contextual information. However, for this relatively simple task to identify whether a sentence is about the economy, the wordlevel features used by one-class SVM appear to suffice. On trial, we used the auto-encoder for outlier detection and computed the business sentiment index from January 2008 to June 2020. As a result, the correlation coefficient with EWDI was found to be 0.875, which is slightly worse than the case where outlier detection was not used (0.878). We computed the S-APIR index based on the Nikkei newspaper as it focuses on economics, finance, and business and was deemed suitable for measuring business sentiment. The experiment presented in Section 5.3 supported the expectation, showing that the S-APIR index has a strong correlation, especially with the industry-related EWDI. To further investigate the relation between input text and the resulting business sentiment index, we measured the business sentiment using general newspaper as input and compared it with Nikkei's result. Specifically, we calculated an Furthermore, as an attempt, we computed the S-APIR index using both Nikkei and Mainichi, and the correlation coefficient was slightly improved to 0.899 as compared to using either newspaper alone. The result is interesting from the viewpoint of the use of big data that, even though Mainichi is suboptimal as compared to Nikkei, their combination works complementarily. This section looks at the relationship between the S-APIR index and other business conditions indicators. S-APIR is computed based on a fine-tuned BERT model, which was learned from the Economic Watchers data. Conse- quently, S-APIR was found to be strongly correlated with EWDI even though S-APIR was computed not from survey responses but from newspaper articles. While the strong correlation with EWDI is beneficial on its own right, EWDI is just one economic indicator among others based on a survey. Therefore, it is crucial to study the characteristics of S-APIR as a more general business conditions indicator in comparison with other representative ones. First, we examined the relationship with two macroeconomic indicators. The first is the Gross Domestic Product (GDP) of Japan. Figure 3 compares the S-APIR index and month-on-month GDP. As can be seen, S-APIR generally followed the movement of GDP and their correlation coefficient was 0.698. Looking into the details, S-APIR is slightly ahead of GDP when there are The second macroeconomic indicator to be compared is an artificially mea- sured one. Specifically, we used the dynamic factor model (DFM) (Stock & Watson, 1989 , 1991 to measure the common factors to several representative economic indicators using a state-space model. 7 Figure 4 illustrates DFM, which assumes that observable individual economic data y i,t , such as Indices of Industrial Production (IIP), are generated from unobservable common macroeconomic indicator x t , where i ∈ {1, . . . , N } denotes an individual economic index and t ∈ {1, . . . , T } denotes a time-series index. The relationship between y i,t and x t are formulated by the single-index DFM as follows: where u i,t is an idiosyncratic shock which is not correlated with x t identically, and η t and i,t are error terms. Equation (4) is a measurement equation, where individual economic variable y i,t depends on x t and u i,t . Equation (5) is a transition equation, where x t follows a p-order autoregressive process. An idiosyncratic shock u i,t follows a qorder autoregressive process as in Equation (6). The equations are transformed to state-space representation since x t is not observable. Then, parameters deter-7 The business condition index by DFM was developed by Stock & Watson (1989 , 1991 mining the relationship between y i,t and x t are estimated by Kalman filtering. In this study, we used as y i,t four types of data regarding production, consumption, employment, and exports (i.e., N = 4). These four observable economic variables are assumed to be basic series to estimate the common, unobservable economic indicator x t . As shown in Figure 5 , S-APIR and DFM have roughly similar movements (r = 0.749). Also, as in the case of GDP, S-APIR shows a slightly earlier movement than DFM for major shocks. As can be seen from the above observations, the S-APIR index is similar to the GDP and DFM in terms of its overall trends, indicating its characteristic that it is able to capture the macroeconomy as a whole. Also, the S-APIR is ahead of the macroeconomic indicators to some extent, suggesting another characteristic that it encompasses some information concerning the economic outlook and sentiment of economic agents (e.g., consumers and producers). To analyze the latter characteristic in more detail, we examine the relationship between S-APIR and several semi-macro indicators. For sentiment indices, we focus on the Consumer Confidence Index and the Purchasing Managers' Index (PMI), which represent the aspects of consumers and sellers, respectively. For actual activity indices, we focus on the Synthetic Consumption Index computed from both demand-and supply-side statistics and the Consumer Activity Index computed from only the supply-side statistics. Consumer Confidence Index (CCI) is the most famous index of consumer confidence in Japan. Figure 6 compares CCI with S-APIR, where their movements are similar, resulting in a strong positive correlation (r = 0.848). In fact, the timing of the decline and recovery during major shocks, specifically, the financial crisis in 2008 and the COVID-19 pandemic in 2020, is generally consistent, suggesting that S-APIR reflects the consumer sentiment toward the future. Next, we looked at the Manufacturing PMI (referred to as MPMI) and the Services PMI (referred to as SPMI) as outlook indicators from the sales side 8 . implying the coverage of Nikkei newspaper-the information source of the S-APIR index-is higher on the manufacturing or service industry, whichever affected worse, depending on a particular period. The above comparison of S-APIR with sentiment indices (i.e., CCI and PMIs) showed that S-APIR well captured consumer activity forecasts. However, the result does not tell whether S-APIR precedes actual consumption activities. Therefore, by comparing S-APIR with actual activity indices (i.e., SCI and CAI), we study the suitability of S-APIR as a leading index of consumption activity. In Figure 8 , it can be seen that S-APIR is ahead of the actual consumption, especially in large economic events, including the financial crisis in 2008, the tax increase in 2014 and 2019, and the COVID-19 pandemic. An exception is the Great East Japan Earthquake, where S-APIR appears to move in line with SCI and CAI. From the series of comparisons discussed above, we identified two major characteristics of the S-APIR index. Firstly, S-APIR captures the overall macroeconomic trends. Secondly, it contains much information concerning the outlook for consumption and sales. This is presumably due to the fact that the Economic Watchers Survey (i.e., the training data of our model) includes a variety of sentences expressing the outlook for household consumption and corporate sales. Also, the Nikkei newspaper (i.e., the information source of the S-APIR) contains relatively a large number of articles on consumer sentiment and corporate sales forecasts. This section examines the contributions of several events to S-APIR as business sentiment. In conventional quantitative analysis, when analyzing the degree to which a certain event or factor affects economic trends, a time series of that factor (e.g., crude oil prices) and an indicator representing economic trends (e.g., GDP) are examined using regression analysis. In contrast, we focus on the input news texts used for measuring business sentiment and take advantage of the context in which the term "crude oil price" appeared by way of the predicted business sentiment scores of the news sentences. In other words, we attempt to examine the factors that cause economic fluctuations based on the behavioral patterns and future forecasts of economic agents that cannot be captured by quantitative data alone. In the following, we focus on three events that have been attracting attention in the Japanese economy in recent years and examine their relationship with the S-APIR index. First, let us look at "インバウンド" (roughly translated to "foreign tourists"). The term "インバウンド" is a loanword of "inbound" and the meaning was changed to refers to foreign tourists or foreign tourism to Japan, which had been increasing rapidly since the 2010s. As can be seen from beginning of the COVID-19 pandemic, foreign visits to Japan have been disrupted, which has made a great impact on the economy as shown in Figure 9 . At the same time, however, we can also observe that the impact is most severe in early 2020 and the situation has improved to some extent since then. This suggests that the effect of the disruption of foreign tourism on the economy may not be very persistent, which is very useful for policymakers to assess the situation. That is, if the slowdown in the economy due to the decline of foreign visitors is relatively transient, policymakers may not need to implement largescale support measures for the tourism industry. Instead, they could allocate their limited resources to other industries and individuals needing immediate supports. Next, let us look at the relationship with "増税" (tax increase). Since the 2010s, Japan had a consumption tax increase twice: the first increase from 5% to 8% took effect in April 2014 and the second from 8% to 10% in October 2019. Since the implementation of the consumption tax increase was announced in advance, it affected the economy through a rush of demand just before the tax increase and a decline afterward. Figure subtle. It suggests that consumer sentiment has begun to lessen and is hardly responding to the shock of the tax increase. The impact of the tax increase on the economic sentiment is also not something that can be easily confirmed by traditional quantitative analysis as in the case of foreign tourism to Japan, substantiating the utility of our approach. Finally, let us look at the major event, "東京五輪" (Tokyo Olympics), which was originally scheduled to be held in 2020. As can be seen in Figure 11 , the Olympics had generally a positive effect on the economy for about seven years from September 2013 when Tokyo was selected to host the Olympics. However, as we moved into 2020, the impact on the economy has taken a turn for the worse as the COVID-19 pandemic has raised concerns about the event. We conjecture that, if the pandemic did not occur, we would have witnessed a constant and stable positive effect of the Olympics on the Japanese economy. The impact of the Tokyo Olympics on the economy has taken nearly eight years since the selection of the host country, which makes it difficult for a traditional quantitative analysis to assess the impact of the event for a specific period on the economic sentiment. In contrast, our approach enables a temporal analysis for any given event at any given time as long as it is covered by the newspaper. These examples discussed above demonstrated how the effect of an event on business sentiment can be analyzed by our approach. However, the approach is based on an assumption that all words contribute to the sentiment of a sentence, which can be argued as over-simplification. An alternative approach would be to take advantage of self-attention weights (Vaswani et al., 2017) . BERT, or other attention-based language representation models, estimates attention weights for each element (word) of an input sequence in predicting the business sentiment score of the input. However, the values of attention weights tend to be similar as they approach the last attention layer and thus they do not necessarily represent the importance of words (Serrano & Smith, 2019) . To represent their importance more properly, Abnar & Zuidema (2020) We adopted attention rollout, which is computationally less expensive, and computed attention rollout r w from the CLS token (a special symbol representing the whole sentence) in the last attention layer of BERT to each word w and distribute the sentiment p s of sentence s to words w proportionally to r w . That is, we used Equation (7) instead of Equation (2) to estimate the sentiment p s,w of word w in sentence s. p s,w = p s · r w w ∈s r w We recomputed the contribution of Tokyo Olympics over time using Equation (7). The result is shown in Figure 12 , where the plot from Figure 11 is also shown for comparison. We can observe that they are almost identical with a few negligible differences (e.g., the contribution is slightly higher for the bottom plot than the top in January 2020). The observations are similar for the other two events, tax increase and foreign tourism, and thus omitted. It indicates that the assumption introduced in Equation (2) does not affect the result of the analysis much as compared to the cases where the importance of words was computed by attention weights. We presented an approach to turning news articles into a business sentiment index, S-APIR. With the proposed index, we pursued three research objectives (RO) as stated in Section 3, which guided this work and distinguished it from the previous work. Specifically, (a) we employed a self-attention-based language representation model, BERT, to measure business sentiment and used daily newspaper articles as input; (b) we explored effective outlier detection models for this particular problem; (c) we thoroughly investigated the properties of the S-APIR index by comparing it with a variety of economic indicators; and (d) we proposed a simple approach to temporally analyzing the influence of a given event on business sentiment. The following discusses what we learned for each of the research objectives and summarizes the major findings. RO1: To measure business sentiment based on daily newspaper articles and empirically validate the proposed approach. • In a preliminary study, we fine-tuned a Japanese BERT model and compared it with the related work. Our fine-tuned model outperformed other models including LSTM-BiRNN (Yamamoto & Matsuo, 2016) for predicting business conditions for a given statement of the reason(s) from the Economy Watchers Survey. • We fed the Nikkei newspaper published between 2008 and 2020 to the model to predict their sentiment scores. The predicted scores were aggregated monthly and compared with EDWI-a survey-based business sentiment index-published by the Government of Japan. The result demonstrated the validity of our proposed approach with a strong positive correlation (r = 0.888). The correlation became even higher (r = 0.937) when compared to the EWDI calculated for survey respondents with industryrelated occupations. This result implies that S-APIR computed from the Nikkei reflects business sentiment in industries more strongly. It should be also emphasized that S-APIR does not require a costly survey and can be computed much more frequently than monthly EWDI without a time lag. • Filtering by our outlier detection model (one-class SVM) worked to remove news texts irrelevant to business sentiment and increased r by 2.1%. The effect of filtering was greater for LSTM-BiRNN, which indicates that our fine-tuned BERT is more robust in cases where news texts are noisy, i.e., containing irrelevant texts. Also, the effect of filtering was greater for general newspapers, increasing r by 10.7%. • Contrary to the intuition that LSTM autoencoder would have an advantage over one-class SVM due to its memory mechanism, the latter was found to be more effective than the former for this relatively simple task to filter out irrelevant texts. In fact, LSTM autoencoder slightly deteriorated the performance of nowcasting business sentiment index. RO2: To analyze the properties of the S-APIR index in comparison with various representative economic indicators and discuss its implications. • A comparison with macroeconomic indicators, GDP and DFM, showed that S-APIR captures the macroeconomy as a whole and is slightly ahead of them when there are major shocks. The result implies that S-APIR contains information about the economic outlook and sentiment of economic agents, such as consumers and sellers. • To investigate the implication above, S-APIR was compared with economic indicators representing economic outlook and sentiment; specifically, CCI for the consumer side and PMIs for the sales side toward consumers. It was found that they showed a strong correlation and that S-APIR was particularly consistent with CCI and PMIs on major shocks. The result confirms that S-APIR well captures consumer activity forecasts. • To further investigate whether S-APIR precedes actual consumption activities, it was compared with SCI from both demand-and supply-side statistics and CAI from only supply-side statistics. During most of the large economic events (e.g., the financial crisis and the COVID-19 pandemic), S-APIR was found to be ahead of the indicators. Thus, S-APIR can be considered as a suitable leading index of actual consumption activity. RO3: To quantify the effects of several notable events on business sentiment and illustrate how it could benefit economists and policymakers. • We analyzed the effects of several events on business sentiment by distributing a sentiment score of a sentence to its constituent words and by adding them up for each word (or phrase) representing an event. It was empirically shown that the analysis could help us examine what factors cause economic fluctuations for a specific period. One of the examples regarding foreign tourists ("インバウンド") exemplified the value of the S-APIR index for policymakers in order to assess the negative effect of the COVID-19 pandemic on tourism. Also, it was shown that the results were robust as to whether sentiment scores were distributed equally or proportionally to attention rollout (Abnar & Zuidema, 2020). This paper reported our work to develop a new business sentiment index, called S-APIR. The main contribution of this work is threefold: Firstly, we proposed an approach to capturing business sentiment based on news texts and empirically validated it in comparison with an existing survey-based index. Secondly, we thoroughly studied the properties of the proposed index. Lastly, we illustrated how the predicted business sentiment can be used by policymakers and economists when it was broken down into individual events. The following describes, more specifically, the contribution from methodological, theoretical, and practical viewpoints. The methodological contribution is that we devised an effective framework composed of outlier detection and prediction models. The former used one-class SVM to identify news texts related to the economy and the latter was a BERT model fine-tuned on Economy Watchers Survey to predict the sentiment score of input news text. Another contribution is that we proposed an approach to analyzing the effect of an event represented by an individual/compound word on business sentiment. Next, the theoretical contribution is that business sentiment was shown to be accurately measured by news articles instead of a traditional, large-scale survey. Our evaluation using the Nikkei Newspaper demonstrated that S-APIR had a strong positive correlation with an existing business sentiment index, EWDI, up to 0.937. Also, the result suggested that the S-APIR index more accurately reflects business sentiment in industries. Then, the practical contribution is that S-APIR does not require a costly survey and can be computed much more frequently than monthly EWDI with almost no time lag. From the comparison with other business conditions indicators, it was revealed that S-APIR is useful as a leading index of actual consumption activity especially during major economic events such as the global financial crisis and the COVID-19 recession. Also, it could help us examine what factors cause economic fluctuations for specific periods. With several example events, such as "Tokyo Olympics", it was demonstrated that S-APIR can be useful for economists or policymakers to measure the impact of any event of their interest on business sentiment over time to promptly respond to, if any, their negative effects when necessary. The findings of this study, however, should be considered in the light of the following limitations: • Both the outlier detection and sentiment analysis models are learned from the past Economy Watchers Survey responses and thus potentially suffered from new words unknown to the models. To keep up with the latest events, these models need to be regularly updated every time new survey data are available. • Similarly, while the usefulness of the S-APIR index was demonstrated, the evaluation was done retrospectively on the historical data. Ideally, it should be evaluated by prospective users on ongoing events with a real-time system where the S-APIR index is dynamically updated as breaking news comes in. • Predicted values of the S-APIR index depend on news texts we feed to the model. Currently, we use the Nikkei newspaper, which resulted in a strong correlation with EWDI, but feeding a different newspaper yields a different result as witnessed in Section 5.5. The difference may come from the different coverage of different newspapers but we do not know exactly if that is the case. For example, it might be caused by different political stances or tones of different newspapers. We plan to investigate it further in future work. We are currently working on automatically collecting online news and applying our models to nowcast daily business sentiment and are planning to provide a temporal analysis tool to be used by economists. Quantifying attention flow in transformers A comparative study of effective approaches for Arabic sentiment analysis Data science and new financial engineering Forecasting with Twitter data Co-LSTM: Convolutional LSTM model for sentiment analysis in social big data Latent dirichlet allocation Twitter mood predicts the stock market Predicting socio-economic indicators using news events Off to the races: A comparison of machine learning and alternative data for predicting economic indicators. In Big Data for Twenty-First Century Economic Statistics NBER Chapters Sentiment analysis on stock social media for stock price movement prediction BERT: Pre-training of deep bidirectional transformers for language understanding Sentiment analysis using product review data Beyond negative and positive: Exploring the effects of emotions in social media during the stock market crash Like it or not: A survey of twitter sentiment analysis methods Construction of business news index by natural language processing and its application to volatility prediction Long short-term memory Macro forecasting using alternative data Lexicon-based sentiment analysis: Comparative evaluation of six sentiment lexicons Outlier detection for multidimensional time series using deep neural networks Measuring economic trends based on financial institution texts Quality of sentiment analysis tools: The reasons of inconsistency Predicting economic indicators from web text using sentiment composition Discovering public sentiment in social media for predicting stock movement of publicly listed companies Incorporating stock prices and news sentiments for stock market prediction: A case of Hong Kong News impact on stock price return via sentiment analysis. Knowledge-Based Systems One-class SVMs for document classification Introduction to information retrieval Distinguishing antonyms and synonyms in a pattern-based neural network The impact of microblogging data for stock market prediction: Using Twitter to predict returns, volatility, trading volume and survey sentiment indices Technical analysis and sentiment embeddings for market trend prediction Multilingual evaluation of pre-processing for BERT-based sentiment analysis of tweets On exploring the impact of users' bullishbearish tendencies in online community on the stock market A hybrid CNN-LSTM model for improving accuracy of movie reviews sentiment analysis How does social media sentiment impact mass media sentiment? A study of news in the financial markets S-APIR: news-based business sentiment index Nowcasting business sentiment from economic news articles Is attention interpretable? Measuring news sentiment Deep transfer learning baselines for sentiment analysis in Russian Attention-based long short-term memory network using sentiment lexicon embedding for aspect-level sentiment analysis in Korean New indexes of coincident and leading economic indicators A probability model of the coincident economic indicators Dyadic memory networks for aspectbased sentiment analysis Investment recommendation by discovering high-quality opinions in investor based social networks Attention is all you need Universal, unsupervised (rule-based), uncovered sentiment analysis. Knowledge-Based Systems Estimating daily inflation using scanner data: A progress report Sentiment analysis of comment texts based on bilstm Current state of text sentiment analysis from opinion to emotion mining Sentiment summarization of financial reports by LSTM RNN model with the Japan Economic Watcher Survey Data Real time sentiment analysis of bank of japan using text of financial report and macroeconomic index Predicting stock market trends by recurrent deep neural networks Leveraging temporal properties of news events for stock market prediction Improving stock market prediction via heterogeneous information fusion. Knowledge-Based Systems The state-of-the-art in Twitter sentiment analysis: A review and benchmark evaluation This work was conducted partly as a research project "Development and application of new business sentiment index based on textual data" at APIR and was partially supported by MEXT, Japan; and JSPS KAKENHI #18K11558, #20H05633, and #21K13301. We thank Hideo Miyahara, Hiroshi Iwano, Yuzo Honda, Yoshihisa Inada, and Akira Nakayama for their support.