\documentclass[11pt,a4paper]{article}
\usepackage[hyperref]{acl2020}
\usepackage{times}
\usepackage{latexsym}
\renewcommand{\UrlFont}{\ttfamily\small}
\usepackage{graphicx}
\usepackage{times}
\usepackage{latexsym}
\usepackage{times}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{makecell}
\usepackage{amssymb}
\newcommand{\R}{\mathbb{R}}
\usepackage[linesnumbered,vlined, ruled]{algorithm2e}
\usepackage[noend]{algpseudocode}

\usepackage{microtype}

\aclfinalcopy %
\newcommand\BibTeX{B\textsc{ib}\TeX}

\title{Cross-lingual Transfer Learning for COVID-19 Outbreak Alignment}

  \author{Sharon Levy \textnormal{and} William Yang Wang\\
  University of California, Santa Barbara \\ 
  Santa Barbara, CA 93106 \\
  \texttt{\{sharonlevy,william\}@cs.ucsb.edu} \\ }

\date{}

\begin{document}
\maketitle
\begin{abstract}
 The spread of COVID-19 has become a significant and troubling aspect of society in 2020. With millions of cases reported across countries, new outbreaks have occurred and followed patterns of previously affected areas. Many disease detection models do not incorporate the wealth of social media data that can be utilized for modeling and predicting its spread. It is useful to ask, can we utilize this knowledge in one country to model the outbreak in another? To answer this, we propose the task of cross-lingual transfer learning for epidemiological alignment. Utilizing both macro and micro text features, we train on Italy's early COVID-19 outbreak through Twitter and transfer to several other countries. Our experiments show strong results with up to 0.85 Spearman correlation in cross-country predictions. 
 
\end{abstract}

\section{Introduction}
During the COVID-19 pandemic, society was brought to a standstill, affecting many aspects of our daily lives. With increased travel due to globalization, it is intuitive that countries have followed earlier affected regions in outbreaks and measures to contain to them \cite{cuffe_2020}. 

A unique form of information that can be used for modeling disease propagation comes from social media. This can provide researchers with access to unfiltered data with clues as to how the pandemic evolves. Current research on the COVID-19 outbreak concerning social media includes word frequency and sentiment analysis of tweets~\cite{rajput2020word} and studies on the spread of misinformation~\cite{kouzy2020coronavirus,singh2020first}. Social media has also been utilized for other disease predictions. Several papers propose models to identify tweets in which the author or nearby person has the attributed disease \cite{kanouchi-etal-2015-caught,aramaki-etal-2011-twitter,lamb-etal-2013-separating,kitagawa-etal-2015-disease}. \citet{iso-etal-2016-forecasting} and \citet{huang-etal-2016-syndromic} utilize word frequencies to align tweets to disease rates. A shortcoming of the above models is they do not consider how one region's outbreak may relate to another. Many of the proposed models also rely on lengthy keyword lists or syntactic features that may not generalize across languages. Text embeddings from models such as multilingual BERT (mBERT)~\cite{devlin-etal-2019-bert} and LASER \cite{laser}
can allow us to combine features and make connections across languages for semantic alignment. 

We present an analysis of Twitter usage for cross-lingual COVID-19 outbreak alignment. We study the ability to correlate social media tweets across languages and countries in a pandemic scenario. Based on this demonstration, researchers can study various cross-cultural reactions to the pandemic on social media. We aim to analyze how one country's tweets align with its own outbreak and if those same tweets can be used to predict the state of another country. This can allow us to determine how actions taken to contain the outbreak can transfer across countries with similar measures. We show that we can achieve strong results with cross-lingual transfer learning.  

\begin{figure*}[t]
  \centering
  \includegraphics[width=.9\linewidth]{initial.png}
  \caption{Timeline of COVID-19-related tweets, from COVID-19 dataset~\cite{chen2020covid}, in various languages. The peaks are marked by events relating to each language's main country's initial outbreak.}\label{fig:initial}
\end{figure*}

Our contributions include:
\begin{itemize}
  \item[$\bullet$] We formulate the task of cross-lingual transfer learning for epidemiological outbreak alignment across countries.
  \item[$\bullet$] We are the first to investigate state-of-the-art cross-lingual sentence embeddings for cross-country epidemiological outbreak alignment. We propose joint macro and micro reading for multilingual prediction. %
  \item[$\bullet$] We obtain strong correlations in domestic and cross-country predictions, providing us with evidence that social media patterns in relation to COVID-19 transcend countries.

\end{itemize}
\section{Twitter and COVID-19}
\subsection{Problem Formulation}
An intriguing question in the scope of epidemiological research is: can atypical data such as social media help us model an outbreak? To study this, we utilize Twitter as our source, since users primarily post textual data and in real-time. Furthermore, Twitter users transcend several countries, which is beneficial as COVID-19 is analyzed by researchers and policymakers on a country by country basis \cite{kaplan_frias_mcfall-johnsen_2020}. Our motivation in this paper is the intuition that social media users can provide us with indicators of an outbreak during the COVID-19 pandemic. In this case, we reformulate our original question: can we align Twitter with a country's COVID-19 outbreak and apply the learned information to other countries? 

\subsection{Data}\label{sec:data}
We utilize the COVID-19 Twitter dataset~\cite{chen2020covid}, comprised of millions of tweets in several languages. These were collected through Twitter's streaming API and Tweepy\footnote{https://www.tweepy.org/} by filtering for 22 specific keywords and hashtags related to COVID-19 such as Coronavirus, Wuhanlockdown, stayathome, and Pandemic. %
We consider tweets starting from February 1st, 2020 to April 30th, 2020, and filter for tweets written in Italian, Indonesian, Turkish, Japanese, and Thai. Specifically, we filter for languages that are primarily spoken in only one country, as opposed to languages such as English and Spanish that are spoken in several countries. In Table \ref{tab:dataset}, we show dataset statistics describing total tweet counts for each country along with counts after our filtering process described later in Section \ref{sec:base}. When aligning tweets with each country's outbreak, we utilize the COVID-19 Dashboard by the CSSE at Johns Hopkins University \cite{dong2020interactive} for daily confirmed cases from each country. Since the COVID-19 pandemic is still in its early stages at the time of writing this paper, sample sizes are limited. Therefore, our experiments have the following time cut settings: train in February and March and test in April (I), train in February and test in March and April (II), train in February and test in March (III), and train in March and test in April (IV).

\begin{table}[t]
\centering
\small
\begin{tabular}{l|l|c|c|c|c}
\toprule
 & Italy &Thailand & Japan & Turkey& Indonesia   \\
\hline
Pre & 1.3M & 2.2M& 2.2M & 960K & 3.2M \\
\hline
Post & 103K & 6.9K & 61K&96K& 309K\\
\bottomrule
 \end{tabular}
\caption{Dataset statistics in each country before (Pre) and after (Post) the tweet filter process described in Section \ref{sec:base}.}\label{tab:dataset}
\end{table}

\subsection{Can Twitter detect the start of a country’s outbreak?}
We start by investigating a basic feature in our dataset: tweet frequency. We plot each country's tweet frequency in Figure~\ref{fig:initial}. There is a distinct peak within each country, corresponding to events within each country signaling initial outbreaks, denoted by the vertical lines. These correlations indicate that even a standard characteristic such as tweet frequency can align with each country's outbreak and occurs across several countries. Given this result, we further explore other tweet features for epidemiological alignment.

\subsection{Cross-Lingual Transfer Learning}
We determine that it is most helpful for researchers to first study regions with earlier outbreaks to make assumptions on later occurrences in other locations. In this case, Italy has the earliest peak in cases. When aligning outbreaks from two different countries, we experiment with the transfer learning setting. We train on Italy's data and test on the remaining countries. We attempt to answer whether we can build a model that correlates the day's tweets with the number of cases in a given country and if we can apply this trained model to tweets and cases in a new country with a different language and culture.

We present this as a regression problem in which we map our input text features $\textbf{x} \in \R^{n}$ to the output $\textbf{y} \in \R$. Our ground-truth output $\textbf{y}$ is presented in two scenarios in our experiments: total cases and daily new cases. The former considers all past and current reported cases while the latter consists of only cases reported on a specific day. The predicted output $\hat{\textbf{y}}$ is compared against ground truth $\textbf{y}$. During training and test time, we utilize support vector regression for our model and concatenate the chosen features as input each day. Due to different testing resources, criteria, and procedures, there are some offsets in each countries' official numbers. Therefore, we follow related disease prediction work and evaluate predictions with Spearman's correlation \cite{hogg2005introduction} to align our features with official reported cases. 
\subsection{Creating a Base Model}\label{sec:base}
 In the wake of the COVID-19 crisis, society has adopted a new vocabulary to discuss the pandemic \cite{katella_2020}. Quarantine and lockdown have become standard words in our daily conversations. Therefore, we ask: are there specific features that indicate the state of an outbreak? 
 
 \paragraph{Which features can we utilize for alignment?}We create a small COVID-19-related keyword list consisting of lockdown, quarantine, social distancing, epidemic, and outbreak and translate these words into Italian. We include the English word ``lockdown'' as it has been used in other countries' vocabularies. We aim to observe which, if any, of these words align with Italy's outbreak. In addition to word frequencies, we also utilize mBERT and LASER to extract tweet representations for semantic alignment. We remove duplicate tweets, retweets, tweets with hyperlinks, and tweets discussing countries other than Italy (tweets with other country names) in order to focus more on personal narratives within the country. Using the sentence encoding service bert-as-a-service \cite{xiao2018bertservice}, we extract fixed-length representations for each tweet. We explore two options for our tweet representations: average-pooling and max-pooling. Our final feature consists of daily tweet frequency after filtering. 
 
 \begin{table}[t]
\centering
\small
\begin{tabular}{l|l|c|c|c|c}
\toprule
&&  \multicolumn{4}{c}{Time Setting} \\
\hline
Cases & Embed & I & II & III & IV   \\
\hline
Total & mBERT & \textbf{0.880}  & \textbf{0.947} & \textbf{0.769} & \textbf{0.880}\\
\hline
& LASER & 0.879  & 0.946 & 0.766 & 0.879\\
\Xhline{2\arrayrulewidth}
New &  mBERT & \textbf{0.805}  & 0.416 & 0.718 & 0.794\\
\hline
&  LASER & 0.800  & \textbf{0.490} & \textbf{0.723} & \textbf{0.800}\\
\bottomrule
 \end{tabular}
\caption{Italy's Spearman correlation results with total and daily case count prediction for mBERT and LASER (Embed). Time settings are defined in \ref{sec:data}. We bold the highest correlations within each case setting.}\label{tab:italy}
\end{table}
\begin{figure}[t]
  \centering
  \includegraphics[width=.8\linewidth]{new_cases_v5.png}
  \caption{Distribution of new daily COVID-19 cases in Italy, Turkey, Thailand, Japan, and Indonesia. Daily case counts come from COVID-19 Dashboard by CSSE at Johns Hopkins University \cite{dong2020interactive}.}\label{fig:new_cases}
\end{figure}

 
\paragraph{Can tweet text align with confirmed cases?} We combine combinations of our frequency features with our tweet embeddings and show results in Table \ref{tab:italy}. Through manual tuning, we find our strongest model (polynomial kernel) contained the English keyword lockdown and averaged tweet representations from mBERT for the total case scenario. When aligning to new cases, the best model (sigmoid kernel) contained the English keyword lockdown and max-pooled LASER embeddings. While mBERT and LASER provide very little difference in alignment to total cases, LASER is noticeably stronger in the new case setting, particularly in II. For the total case setting, our predictions show strong alignment with ground truth, which is monotonically increasing, in all time settings. When measuring new daily cases, the correlations are weaker in II. We find that Italy's new cases form a peak in late March, as shown in Figure \ref{fig:new_cases}. As a result, there is a distribution shift when training on February data only (tail of the distribution) and testing in March and April. 
 
\begin{table}[t]
\centering
\small
\begin{tabular}{l|c|c|c|c}
\toprule
Setting & Thailand & Japan & Turkey & Indonesia   \\
\hline
I & 0.200 & -.300 & .188 & -.316 \\
\hline
II & 0.696 & 0.543 & 0.715 & 0.285\\
\hline
III & 0.823 & 0.856 & 0.679 & 0.925 \\
\hline
IV & 0.196 & -.300 & 0.188 & -.316\\
\hline
V & 0.859 & 0.649 & 0.817 & 0.722\\ 
\bottomrule
 \end{tabular}
\caption{Cross-lingual transfer learning Spearman correlation with total case counts while training with Italy data. Time settings are defined in \ref{sec:data}.}\label{tab:total}
\end{table}

\begin{table}[t]
\centering
\small
\begin{tabular}{l|c|c|c|c}
\toprule
Setting & Thailand & Japan & Turkey & Indonesia   \\
\hline
I & -.022 & 0.130 & -.368 & 0.416 \\
\hline
II & 0.277 & 0.273 & 0.426 & 0.332\\
\hline
III  & 0.661 & 0.262 & 0.255 & 0.407 \\
\hline
IV & -.043 & 0.127&-.375& 0.416\\
\hline
V & 0.755 & 0.515 & 0.745 & 0.742\\
\bottomrule
 \end{tabular}
\caption{Cross-lingual transfer learning Spearman correlation with new daily case counts while training with Italy data. Time settings are defined in \ref{sec:data}.}\label{tab:current}
\end{table}
\subsection{Cross-Lingual Prediction}
While we can align historical data to future cases within Italy, researchers may not have enough data to train models for each country. Therefore we ask, can we use Italy's outbreak to predict the outbreak of another country? In particular, we determine whether users from two different countries follow similar patterns of tweeting during their respective pandemics and how well we can align the two. We follow the same tweet preprocessing methodology described in Section \ref{sec:base} and the timeline cuts for training and testing defined in Section \ref{sec:data}. We also add another time setting (V): training in February, March, and April and testing all three months. This serves as an upper bound for our correlations, indicating how well the general feature trends align between the two countries and their outbreaks.

\paragraph{Can we transfer knowledge to other countries?}
We show our results for the total and new daily case settings in Tables \ref{tab:total} and \ref{tab:current}. All of the test countries have strong correlations in time setting V for both case settings. Since this is used as an upper bound, we can deduce that tweets across countries follow the same general trend in relation to reported cases. When examining the other time settings, it is clear that Italy transfers well in II and III for the total case setting. As these train in February only, this shows us that transferring knowledge works better in times of more linear case increases, rather than during peaks, which becomes unstable. Times I through IV generally do not perform as well in the new case setting, though II and III primarily have higher correlations. 
\paragraph{Why does Indonesia differ?}
It is noticeable that Indonesia aligns better with new daily cases in times I through IV, as opposed to the other countries. When examining Figure \ref{fig:new_cases}, we find that Indonesia is the only country that had not yet reached a peak in new daily cases by the end of April, and is steadily increasing. Meanwhile, the other countries follow normal distributions like Italy. However, given that we train our model on February and March data, it does not learn information on post-peak trends and cannot generalize well to these scenarios that occur in April in the other countries. 

\paragraph{What can we learn from our results?}
Overall, transfer learning in the total case setting leads to stronger correlations with case counts. While results show that training in February and testing in March and/or April works best, our results for V's upper bound correlation show that weaker correlations can be due to the limited sample sizes we have from the start of the pandemic. Additionally, training in February, March, and April in Italy allows us to model a larger variety of scenarios during the pandemic, with samples during pre, mid, and post-peak. Therefore, as we obtain more data every day, we can build stronger models that can generalize better to varying distributions of cases and align outbreaks across countries that can fully reach their upper bound correlations and beyond. 
\section{Conclusion}
In this paper, we performed an analysis of cross-lingual transfer learning with Twitter data for COVID-19 outbreak alignment using cross-lingual sentence embeddings and keyword frequencies. We showed that even with our limited sample sizes, we can utilize knowledge of countries with earlier outbreaks to correlate with cases in other countries. With larger sample sizes and when training on a variety of points during the outbreak, we can obtain stronger correlations to other countries. We hope our analysis can lead to future integration of social media in epidemiological prediction across countries, enhancing outbreak detection systems.

\section*{Acknowledgements}

We would like to thank Amazon Alexa Knowledge team for their support. The authors are solely responsible for the contents of the paper, and the opinions expressed in this publication do not reflect those of the funding agencies.

\bibliography{emnlp2020}
\bibliographystyle{acl_natbib}
\end{document}


Peer review:
Review of: Cross-lingual Transfer Learning for COVID-19 Outbreak Alignment
# [REVIEW] Cross-lingual Transfer Learning for COVID-19 Outbreak Alignment

10th June 2020

## SUMMARY
This short paper describes work on cross-lingual transfer learning to track COVID-19 cases across Italy, Thailand, Japan, Turkey, and Indonesia (i.e. languages that are largely spoken in a single country).  Using case statistics derived from Johns Hopkins COVID dashboard, the researchers aim to determine (a) if the number of COVID-related tweets is associated with case numbers (good correlations were achieved for this), and (b) can this training be applied to other countries that may be at a slightly different point in their COVID trajectory i.e. cross-lingual transfer learning (a range of correlations with JHU data were achieved ranging from -.316 to 0.859, indicating that the approach has some utility — but see caveats below).  

It is difficulty for me to assess the quality of this paper relative to other submissions, but I suspect that this use of cross-lingual transfer learning is sufficiently interesting to justify a short paper.

## MAJOR COMMENTS
1.  There is a major methodological issue not related to the NLP and not something you can be reasonably expected to do anything about — but I think it’s important to point it out as a limitation:  The international ground truth data for COVID is  not very reliable regarding underlying prevalence/incidence of COVID-19.  Even in the US, there have been stark differences in approaches to testing, and the criteria for testing. International comparisons are even more difficult. This undermines the evaluation somewhat.

## MINOR COMMENTS [NITPICKING]
1.  [p1c1] “With globalization, it is intuitive that countries have followed earlier affected regions in patterns of outbreaks and measures to contain to them (Cuffe and Jeavans, 2020).” Consider rephrasing this to emphasise that it is the increased travel associated with globalization that is important, rather than globalisation per se.
2.  [p3c1] “Bert as service” probably requires a few words of  explanation (at least for this reviewer - I had to google it)
3.  [p3c2] “When measuring against new daily cases, the correlations are not as significant in time II”  suggest avoiding using the word significance here, unless you are referring to statistical significance.
Rating: 7: Good paper, accept
Confidence: 3: The reviewer is fairly confident that the evaluation is correct