Published on in Vol 22, No 12 (2020): December

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/21499, first published .
The Twitter Social Mobility Index: Measuring Social Distancing Practices With Geolocated Tweets

The Twitter Social Mobility Index: Measuring Social Distancing Practices With Geolocated Tweets

The Twitter Social Mobility Index: Measuring Social Distancing Practices With Geolocated Tweets

Authors of this article:

Paiheng Xu1 Author Orcid Image ;   Mark Dredze1 Author Orcid Image ;   David A Broniatowski2 Author Orcid Image

Original Paper

1Malone Center for Engineering in Healthcare, Center for Language and Speech Processing, Department of Computer Science, Johns Hopkins University, Baltimore, MD, United States

2Department of Engineering Management and Systems Engineering, The George Washington University, Washington, DC, United States

Corresponding Author:

Mark Dredze, PhD

Malone Center for Engineering in Healthcare

Center for Language and Speech Processing, Department of Computer Science

Johns Hopkins University

Malone 339

3400 N Charles St

Baltimore, MD, 21218

United States

Phone: 1 4105166786

Email: mdredze@cs.jhu.edu


Background: Social distancing is an important component of the response to the COVID-19 pandemic. Minimizing social interactions and travel reduces the rate at which the infection spreads and “flattens the curve” so that the medical system is better equipped to treat infected individuals. However, it remains unclear how the public will respond to these policies as the pandemic continues.

Objective: The aim of this study is to present the Twitter Social Mobility Index, a measure of social distancing and travel derived from Twitter data. We used public geolocated Twitter data to measure how much users travel in a given week.

Methods: We collected 469,669,925 tweets geotagged in the United States from January 1, 2019, to April 27, 2020. We analyzed the aggregated mobility variance of a total of 3,768,959 Twitter users at the city and state level from the start of the COVID-19 pandemic.

Results: We found a large reduction (61.83%) in travel in the United States after the implementation of social distancing policies. However, the variance by state was high, ranging from 38.54% to 76.80%. The eight states that had not issued statewide social distancing orders as of the start of April ranked poorly in terms of travel reduction: Arkansas (45), Iowa (37), Nebraska (35), North Dakota (22), South Carolina (38), South Dakota (46), Oklahoma (50), Utah (14), and Wyoming (53). We are presenting our findings on the internet and will continue to update our analysis during the pandemic.

Conclusions: We observed larger travel reductions in states that were early adopters of social distancing policies and smaller changes in states without such policies. The results were also consistent with those based on other mobility data to a certain extent. Therefore, geolocated tweets are an effective way to track social distancing practices using a public resource, and this tracking may be useful as part of ongoing pandemic response planning.

J Med Internet Res 2020;22(12):e21499

doi:10.2196/21499

Keywords



The outbreak of SARS-CoV-2, a coronavirus that causes the disease COVID-19, has caused a pandemic on a scale unseen in a generation. Without an available vaccine to reduce transmission of the virus, public health organizations and elected officials have called on the public to practice social distancing. Social distancing is a set of practices in which individuals maintain a physical distance to reduce the number of physical contacts they encounter [1,2]. These practices include maintaining a distance of at least six feet from other people and avoiding large gatherings [3]. At the time of this writing, in the United States, nearly every state had implemented statewide “stay-at-home” orders to enforce social distancing practices [4].

Social distancing is an important tool in the fight against COVID-19; however, its implementation by the general public can vary widely. Although a state governor may issue an order for the practice, individuals in different states may respond to this order in different ways. Courtemanche et al [5] showed that social distancing policies in the United States reduced the daily growth rate of COVID-19 cases. However, if we only consider the social distancing policy duration and daily confirmed cases, it is difficult to rule out potential confounders, including additional policies for wearing masks and improving hygiene as well as other social norms. Therefore, understanding actual reductions in travel and social contacts is critical to measuring the effectiveness of such policies. Using mobile phone data, Badr et al [6] found that mobility patterns were strongly correlated with decreased rates of COVID-19 case growth for the 25 most affected counties in the United States. These social distancing policies may remain in effect for an extended period of time. Thus, the public may begin to relax their practices, making additional policies necessary. Researchers showed the effectiveness of strict social distancing followed by testing and contact tracing by modeling mobility data from Cuebiq Inc in the Boston metropolitan area [7]. Additionally, epidemiologists have already modeled the impact of social distancing policies on the course of disease outbreaks [8-10]. These models may be more effective when incorporating actual measures of social distancing rather than assuming that official policies are implemented in practice.

It can be challenging to obtain data on the efficacy of social distancing practices, especially during an ongoing pandemic. In a recent Gallup poll that surveyed Americans, it was found that many adults are taking precautions to maintain distance from others [11]. However, while polling can provide insights, it cannot provide a solution. Polling is relatively expensive; thus, it is a poor choice for ongoing population surveillance practices and providing data on specific geographic locales (ie, US states and major cities) [12]. Additionally, polling around public health issues suffers from response bias, as individuals may overstate their compliance with established public health recommendations [13].

Over the past decade, analyses of social media and web data have been widely adopted to support public health objectives [14]. In this vein, several efforts have emerged over the past few months to track social distancing practices using these data sources. Google has released COVID-19 Community Mobility Reports [15] that use Google data to “chart movement trends over time by geography, across different categories of places such as retail and recreation, groceries and pharmacies, parks, transit stations, workplaces, and residential.” The Unacast Social Distancing Scoreboard uses data collected from 127 million monthly active users to measure the implementation of social distancing practices [16]. Researchers at the Institute for Disease Modeling have used data from Facebook’s Data for Good program to model the decline in mobility in the greater Seattle area and its effect on the spread of COVID-19 [17]. Using mobile phone data, the New York Times completed an analysis that showed that stay-at-home orders dramatically reduced travel; however, it was found that in states where such orders were not quickly enacted, residents continued to travel widely [18].

Identifying and isolating individuals who have potentially been exposed to a virus can blunt the spread of a pandemic. Contact tracing involves finding people who have had contact with an infected individual during the time the individual was contagious. In the current pandemic, several efforts have been made to develop digital contact tracing tools. Google and Apple announced a joint effort to build a Bluetooth-based contact tracing platform, which enhances the interoperability between Android and IOS devices using apps from public health authorities [19]. Singapore [20] and Australia [21] released similar apps that use Bluetooth to exchange “digital handshakes” to establish contacts. Many countries have developed their own contact tracing responses [22]. Li and Guo [23] presented a review of the development of contact-tracing apps for COVID-19. These efforts provide new and important opportunities to study social distancing and contact tracing in real time.

We present the Twitter Social Mobility Index, a measure of social distancing and travel patterns derived from public Twitter data. We used public geolocated Twitter data to measure how much a user travels in a given week. We computed a metric based on the standard deviation of a user’s geolocated tweets each week, and we aggregated these data over an entire population to produce a metric for the United States as a whole, for individual states, and for some US cities. We found that in the United States as a whole, there was a dramatic drop in travel in the later weeks of the study period, with travel between March 16 and April 27, 2020, showing the lowest amount since January 1, 2019, the start of our data set. Additionally, we found that travel reductions were not uniform across the United States but varied from state to state. However, there was no clear correlation between social mobility and confirmed COVID-19 cases at the state level. A key advantage of our approach is that unlike the other travel and social distancing analyses referenced above, we rely on entirely public data, which enables others to replicate our findings and explore different aspects of these data. Additionally, because Twitter contains user-generated content in addition to location information, future analyses can correlate users’ attitudes, beliefs, and behaviors with changes in social mobility.

One concern regarding the mining of social media data is user privacy. Unlike the data used by the companies described above, all the data we used is publicly available. Users choose to post their location data to Twitter publicly; therefore, these data are accessible to all users. However, while the location data are public, the potential remains for violating user privacy and producing unintended consequences for users, such as highlighting users who are failing to social distance. To ensure privacy in our index, we aggregated all mobility metrics to produce population-level analyses. None of our work considers the identity of individual users, and we removed identifiable user information from the distributed data aggregations. Furthermore, we caution others who pursue work similar to ours to consider privacy ramifications for users when collecting new data and conducting similar analyses.

There is widespread recognition that real-time tweets from millions of users can yield insights into a variety of population-level trends. Our study follows a tradition of using this insight to develop population-level indices and measures from Twitter data. Previous work includes tracking population-level sentiment as an economic indicator that can track stock price [24], political indices that reflect the popular opinion on major socioeconomic issues [25] or opinions about political candidates [26,27], and measures of pop culture such as reception of entertainment programs [28]. The Twitter Social Mobility Index is a measure of this kind, aggregating Twitter data from millions of people to produce real-time measurements of social distancing.

There is a long line of work on geolocation prediction for Twitter, which requires inferring a location for a specific tweet or user [29-32]. This includes work on patterns and trends in geotagged Twitter data [33]. Although most of these works focus on inferences of users’ current locations and thus are not suitable for tracking user movements, there may be opportunities to combine these methods with our approach.

Many studies have analyzed Twitter geolocation data to study population movements. Hawelka et al [34] demonstrated a method for computing global travel patterns from Twitter, and Dredze et al [35] adapted this method to support efforts in combating the Zika virus epidemic. Several studies have used human mobility patterns from Twitter data [36-39]. These studies include analyses of urban mobility patterns [40-42]. Finally, some of these analyses considered mobility patterns around mass events [43].

Our findings are presented on a website [44], and we will continue to update our analysis during the COVID-19 pandemic.


Data Source

Twitter offers several ways in which a user can indicate their location. If a user is tweeting from a GPS-enabled device, they can attach their exact coordinates to that tweet. Twitter can then display the specific place that corresponds to these coordinates to the user and also provide it in their application programming interface (API). Alternatively, a user can explicitly select a location, which can be a point of interest (eg, a coffee shop), neighborhood, city, state, or country. If the tweet is public, this geolocation information is supplied with the tweet.

We used the Twitter streaming API [45] to download tweets based on location. We used a bounding box that covered the entire United States, including US territories. We used data from this collection starting on January 1, 2019, and ending on April 27, 2020. In total, the data set included 3,768,959 Twitter users and 469,669,925 tweets posted in the United States.

Location Data

We processed the two types of geolocation information described in the previous section.

Coordinates

We processed the exact coordinates (latitude and longitude) provided by the user (the “coordinates” field in the Twitter JavaScript Object Notation [JSON] object). Approximately 8% of our data included coordinates.

Place

The “place” field in the Twitter JSON object indicates a known location in which the tweet was authored. A place can be a point of interest (eg, a specific hotel), a neighborhood (eg, downtown Jacksonville), a city (eg, Kokomo, IN), a state (eg, Arizona), or a country (eg, the United States). The place object contains a unique ID, a bounding box, a country, and a name. More information about the location is available from the Twitter Geo API. A place is provided with a tweet in either of two conditions. First, Twitter can identify the coordinates provided by the user as occurring in a known place. Second, the user can manually select a place when authoring the tweet.

Because coordinates give a more precise location, we used them instead of place when available. If only a place was available, we assumed that the user was in the center of the place, as given by the place’s bounding box.

For points of interest and neighborhoods, Twitter only provides the country in the associated metadata. Although in some cases, the city can be parsed from the name and the state inferred, we opted to exclude these places from our analysis for states. The full location details can be obtained from querying the Twitter API; however, due to the magnitude of the data in our analysis, this task would have been too time-consuming. This limitation excluded approximately 1.8% of our data.

We performed analyses for the 50 most populous US cities. For these analyses, we included points of interest that c the city name in their names, such as “New York City Center.” Specifically for New York City, we included places that corresponded to each of the five New York City boroughs (Brooklyn, Manhattan, Queens, Staten Island, and the Bronx).

In summary, for each geolocated tweet, we obtained an associated latitude and longitude.

Computing Mobility

We defined the Twitter Social Mobility Index as follows. For each user, we collected all locations (coordinates) in a 1-week period, where a week starts on Monday and ends the following Sunday. We denoted the coordinate sequence as , where Cj is the coordinate at time j in week i and n is the number of coordinates in that week. We computed the centroid of all of the coordinates and considered this the “home” location for the user. We then measured the distance between each location and the centroid for that week. To determine distance, we measured the geodesic distance in kilometers between two adjacent records, Cj and Cj+1, using geopy [46], resulting in a distance sequence of . After collecting the distances, we measured the standard deviations of these distances. Formally, we defined Twitter Social Mobility Index M for each user as

where σ(·) is the standard deviation operator and N is the number of weeks considered for the measure. We measured mobility in kilometers.

In summary, this measure reflects the area and regularity of travel for a user rather than the raw distance traveled. Therefore, a user who takes a long trip with a small number of check-ins would have a larger social mobility measure than a user with many check-ins who traveled in a small area. Because the measure is sensitive to the number of check-ins, it reflects when people have fewer check-ins during the pandemic.

We aggregated the results by week by taking the mean measure of all users in a given geographic area. We also present results for a 7-day moving average aggregation as a measure of daily movement. We recorded the variance of these measures to study the travel variance in the population, which indicates if travel is reduced overall but not for some users.

We produced aggregate scores by geographic area for the United States as a whole, for each US state and territory, and for the 50 most populous cities in the United States. We determined the geographic area of a user based on their centroid location for all times in our collection.

We computed the social mobility index for each day and week between January 1, 2019, and April 27, 2020. We selected the date of March 16, 2020, as the start of social distancing on the national level, although individual states implemented practices at different times. Therefore, we divided the data into two time periods: before social distancing (January 1, 2019, to March 15, 2020) and after social distancing (March 16, 2020, to April 27, 2020).

We then computed the group level reduction in social mobility by considering the average values as follows:

We also computed the reduction for each user and then tracked the median value, number of users active in both periods, and proportion of active users who completely reduced their mobility. We conducted a similar analysis for seasonal effects by comparing mobility after social distancing with mobility during the same period in 2019.

To address sparse data issues in our data set, we excluded users with fewer than 3 geolocated tweets overall and excluded the weekly record for a user if they had fewer than 3 geolocated tweets in that week. Additionally, due to data loss in our data collection process, we removed two weeks that contained far less data than the other time periods by taking a 99.75% confidence limit on the number of users and records.


Social Mobility Index

Table 1 shows the Twitter Social Mobility Index measured in kilometers for every state and territory in the United States and the United States as a whole. City results are shown in Table 2. We also included the rank of location by the group level reduction.

Table 1. Reductions of mobility for all US states and territories and for the United States. Ranks are based on group level reduction.
LocationMobility (kilometers)Group level reduction (%)User-level reduction (%)Rank

Before distancingAfter distancing
Median reductionMedian seasonal reduction
AK109.7625.4776.8099.8463.731
AL48.0422.5753.0384.4772.9447
AR50.5423.1554.1991.8776.8145
AZ62.8523.4762.6693.6985.5526
CA78.5829.6062.3396.6591.3529
CO72.2324.4766.1298.293.3712
CT45.5114.8967.2896.2989.258
DC77.6719.7474.58100.0097.752
DE43.6313.6168.8193.4485.087
FL76.9932.2458.1392.3882.9242
GA65.6427.1158.7085.2678.0039
HI147.6170.7552.0797.6989.2151
IA50.4220.5959.1795.9189.8237
ID70.7733.3652.8694.1278.1949
IL55.5919.3865.1598.7193.0116
IN45.8617.1562.6097.1989.6127
KS65.5023.1964.6097.0381.5719
KY44.6715.3165.7493.9383.4213
LA45.9819.3957.8386.1377.7643
MA58.6917.6469.9598.8393.935
MD46.1015.1967.0494.8088.679
ME59.6822.4562.3893.7778.5328
MI56.2420.9662.7296.8490.4225
MN64.0121.6866.1398.3691.3411
MO52.2720.0861.5995.8988.6531
MS50.2424.3651.5179.0969.1152
MT69.9332.9652.8690.1765.5848
NC52.1119.7362.1494.2785.2630
ND65.7723.6564.0499.7197.2122
NE55.1121.8860.2999.9591.4035
NH55.0919.4864.6496.2685.3518
NJ49.2714.6270.3397.2893.414
NM58.2024.2358.3795.6673.1441
NV80.2533.1958.6493.4285.0040
NY71.1724.5765.4898.9494.2015
OH44.8815.7364.9594.8188.6817
OK52.3424.6952.8388.3876.9950
OR71.1225.9763.4997.5192.6824
PA54.4019.4564.2497.5989.8520
PR44.9614.9466.7797.2690.3810
RI46.8014.5069.0196.7490.556
SC48.2819.8558.8886.0377.9238
SD68.4131.5253.9295.9186.6646
TN56.7721.8361.5594.8985.8932
TX73.2428.6060.9593.8184.1834
UT68.4323.6265.4993.5691.5014
VA57.3722.3361.0795.6287.5133
VI132.1647.5764.0098.6687.7223
VT56.8420.3364.2396.3586.7021
WA75.3421.3171.7198.4395.723
WI56.3222.6859.7496.8891.7536
WV46.5920.0257.0288.9582.4044
WY71.6444.0338.5484.9550.9053
United States65.5925.0461.8395.8688.36N/Aa

aN/A: not applicable.

Table 2. Reduction of mobility for top 50 United States cities by population. Ranks are based on group level reduction.
LocationMobility (kilometers)Group level reduction (%)User level reduction (%)Rank

Before distancingAfter distancing
Median reductionMedian seasonal reduction
New York City86.3729.9165.3899.7096.6927
Los Angeles103.1640.8660.3998.6993.8740
Chicago64.0919.8769.0099.9694.5814
Houston53.7021.5059.9697.0488.0041
Phoenix60.0719.1268.1796.3291.0818
Philadelphia54.8017.7067.7199.1693.7019
San Antonio45.4315.9364.9399.0091.3328
San Diego79.2128.1964.4198.6792.7730
Dallas63.9221.8565.8195.4889.3225
San Jose60.6314.8275.5599.8897.342
Austin72.5022.8468.5099.6694.6617
Jacksonville47.0626.8742.9096.6092.9250
Fort Worth51.6719.6861.9295.3385.7237
Columbus44.6714.7367.0296.9193.1522
San Francisco113.7731.9971.8999.9398.948
Charlotte58.1320.9064.0496.2689.8331
Indianapolis46.5014.5368.7699.2691.8515
Seattle98.9221.6478.1299.9899.061
Denver81.1123.0871.5599.0596.309
Washington80.2622.1272.4399.9397.277
Boston77.5827.4764.5999.4296.4029
El Paso51.1021.5057.92100.0095.9744
Detroit53.9422.3858.5094.8983.6843
Nashville72.8323.9467.1398.4594.8821
Portland78.9124.8168.5699.4596.8116
Memphis48.6418.4162.1598.6586.7535
Oklahoma City46.0716.7863.5791.3475.1933
Las Vegas80.2135.6955.5094.8783.9047
Louisville45.5212.9771.5194.3177.6810
Baltimore45.6111.6674.4396.1089.374
Milwaukee52.0122.7856.1997.0191.8646
Albuquerque51.0416.8866.9398.9575.8123
Tucson53.5823.1056.8995.7384.4845
Fresno37.3910.8471.0296.0689.2011
Mesa48.7721.7255.4792.4071.3348
Sacramento62.1425.4559.0594.8294.4742
Atlanta87.9033.3962.0293.5086.3636
Kansas City62.9317.2372.6198.3096.546
Colorado Springs64.8223.5563.6799.4795.6632
Miami114.3355.7751.2297.5588.5649
Raleigh51.6215.2470.4797.7989.5112
Omaha49.9915.3869.24100.0093.7213
Long Beach54.9720.5162.7093.3389.7534
Virginia Beach48.9118.9261.3396.3588.3839
Oakland87.3622.2674.5298.4196.263
Minneapolis69.6718.7273.1499.1494.215
Tulsa48.5418.5161.8599.8993.2038
Arlington56.4218.2767.6297.5893.2520
Tampa70.5023.5566.5994.4883.2324
New Orleans55.9619.1865.7397.0088.7526

We observed that the overall drop in mobility across the United States was large (61.83%). Figure 1 shows the weekly social mobility index for the United States for the entire time period of our data set. The figure reflects a massive drop in mobility starting in March, and the four most recent weeks showed the lowest mobility on record in our data set. Second, every US state and territory saw a drop in mobility, ranging from 38.54% to 76.80% of travel compared to the numbers before March 16, 2020. However, the variance by state was high. States that were early adopters of social distancing practices ranked highly on the reduction in travel, such as Washington (3) and Maryland (9). In contrast, the eight states that had not implemented statewide orders as of the start of April [4] ranked poorly, namely Arkansas (45), Iowa (37), Nebraska (35), North Dakota (22), South Carolina (38), South Dakota (46), Oklahoma (50), Utah (14), and Wyoming (53). We observed similar trends in the city analysis; however, the median users in cities had a larger mobility reduction than the users in states.

Figure 1. Mean social mobility index (kilometers) in United States from January 1, 2019, to April 27, 2020. Weeks with missing data are excluded from the figure.
View this figure

In addition to the group-level mobility travel reduction, we examined the distribution of user-level travel reduction. For this analysis, we only considered the subgroup of users who had at least two check-ins in both periods. The median values for the reduction distribution were close to 100% for most states. The median values for seasonal reduction were all smaller but still suggested that people substantially reduced their mobility during the pandemic. Moreover, in the United States, 40% of the 818,213 active users completely reduced their mobility (ie, the mobility reduction was 100%). In contrast, during the same period in 2019, a 31% reduction was seen among 286,217 active users.

The White House announced “Slow the Spread” guidelines for persons to take action to reduce the spread of COVID-19 on March 16, 2020 [47]. Of the states, 49.06% (26/53) had their largest mobility drop in the week of March 16-22, 2020, and 22.64% (12/53) had their largest drop in the following week. We computed a moving average of daily mobility data and used an offline change point detection method [48] on this trend. In 2020, 62.26% of the change points occurred after the national announcement date but before the dates on which individual state policies were enacted. This suggests that the national announcement had a larger effect compared to state policies, which is a similar finding to that of a mobile phone–based mobility analysis of four large cities [49]. We also observed that among the 40 states that announced stay-at-home policies, 92.5% (37) of the states had a more stationary daily mobility time series before the policy announcement date compared to the mobility time series over the entire time period, suggesting a rapid mobility change during the pandemic.

Finally, Figure 2 shows a box plot of the mobility variance across all users in a given time period. The distribution is long-tailed with numerous zeros; therefore, we took the log of 1 plus each mobility index. Although mobility was reduced in general, some users still showed a lot of movement, which suggests that social distancing is not being uniformly practiced. These results clearly demonstrate that our metric can track drops in travel, suggesting that it can be used as part of ongoing pandemic response planning.

Figure 2. Box plots showing the user distributions of the mean social mobility index (kilometers) before and after social distancing measure were enacted in the United States.
View this figure

Correlations

To investigate the factors that explain our Twitter Social Mobility Index and how well the index tracks COVID-19 cases compared to other relevant factors, we performed a correlation analysis on our data. We computed the daily infection rate by dividing the number of new confirmed COVID-19 cases in each US state [50] by the population of the state. We compared the daily infection rate with the social mobility index and the trends in the state characteristics category from [51]. We first ran a correlation analysis for the following trends: state size in square miles, population density per square mile, unemployment rate (2018), percentage of the population living under the federal poverty line (2018), number of homeless individuals (2019), percentage of the population at risk for serious illness due to COVID-19, and number of all-cause deaths (2016). We selected these measures to track the size of the state, economic activity, and composition of the population, which were studied in a similar correlation analysis of other countries [52]. These measures may change how far people typically travel in a given state.

In Figure 3 and Figure 4, we show the characteristics that have high correlation with either the number of confirmed cases or the mobility index. These characteristics were the size of the state in square miles, the number of homeless individuals (2019), the unemployment rate (2018), and the percentage of the population at risk for serious illness due to COVID-19.

For each day, we computed the correlations between the daily infection rate and the above data by state.

Figure 3. Pearson correlations between daily COVID-19 infection rates and various factors at the state level.
View this figure

Figure 3 shows the correlations by day. We adopted the infection rate because the raw number of confirmed cases is not as informative, as the population has the highest correlation. However, the most significant factors in the early stage were still population-related factors (eg, the number of homeless people). We did not see significant correlations with other factors, including the social mobility index. Starting from mid-March, we observed trends of increasing correlation with the unemployment rate, size of the state, and social mobility index; however, these correlations were not significant (absolute correlation values <.5). A fluctuation occurred in the middle of the period, when states started to report confirmed cases of COVID-19.

We conducted a similar correlation analysis between each data source and the social mobility index, as shown in Figure 4. As expected, geographical state size showed the highest positive correlation. We also observed that the number of people at risk for serious illness due to COVID-19 had a negative correlation at the early stage of the pandemic.

Figure 4. Pearson correlations between the social mobility index and various factors at the state level.
View this figure

Table 3 demonstrates the effects of various restriction policies on confirmed cases by running a similar correlation analysis on the cumulative confirmed cases for each state on May 10, 2020. The policy types follow the data from [51]. We used the time difference (in days) between May 10, 2020, and the policy release date as the input for the analysis, and we assigned a negative value (–1000) to states that had not announced a policy. The factor with the highest correlation with the social mobility index is the declaration of a state of emergency, which is the broadest type of policy.

Table 3. Pearson correlations between the cumulative number of confirmed COVID-19 cases on May 10, 2020, and the dates on which policies were released in each state.
PolicyCorrelationP value
State of emergency0.2587 .07
Date banned visitors to nursing homes0.151 .29
Stay-at-home or shelter-in-place order0.1507 .29
Evictions frozen0.1411 .32
Nonessential businesses closed0.1359 .34
Gyms closed0.0765 .59
Movie theaters closed0.0737 .61
Day cares closed0.0563 .70
Restaurants closed except takeout0.0341 .81
Kindergarten to 12th grade schools closed–0.0821 .57

We present the Twitter Social Mobility Index, a measure of social mobility based on public geolocated tweets. Our analysis shows that there was a large drop in mobility overall in the United States. However, the drop was inconsistent and varied significantly by state. It appears that states that were early adopters of social distancing practices experienced more significant drops than states that had not yet implemented these practices.

Several limitations of using geo-tagged tweets as the subject of our study must be kept in mind. First, users on Twitter and other social media platforms are not representative of the general population. Their demographics, such as age, race, ethnicity, education level, income, and political affiliation, do not perfectly mirror the larger population. In the United States, Twitter users are younger, more educated, have higher incomes, and are more likely to identify as Democrats than the general public [53,54]. Therefore, while our sample of users is large, it is highly biased.

Second, not all users are equally likely to use geotagging features on Twitter, and they may use the features in different ways. For example, in a previous study [32], demographic differences were found in the groups of people who used the two different types of geolocation information (ie, coordinates and place). GPS-tagged tweets are posted more often by young people and by women compared to tweets with self-reported locations.

Third, while we obtained access to millions of geotagged tweets, this is still a relatively small proportion of the total number of nongeotagged tweets on the platform, and it is also small compared to private measures of social mobility computed by companies such as Google and Apple.

Fourth, a small proportion of geotagged tweets report fake geolocation information. However, we believe that this is a negligible problem, as previous work found the rate of fake geolocation to be around 0.22% on social media in general [55] and even lower on Twitter. In our preliminary analysis, we considered mobility data based on GPS from mobile devices alone while excluding place information, as this method has greater precision. However, our results with these limited data were similar to our results with the full data set, except that they were less stable. Therefore, we decided to include all location data.

Despite these limitations, our results produced metrics that align with expected trends given national social distancing guidelines and related statewide policies. This suggests that there is sufficient information in our data to overcome these limitations. Additionally, the public nature of Twitter data has advantages over proprietary and private data sources. More work is needed to compare our mobility trends with those of other data sources.

Our work on this data is ongoing, and there are several directions that warrant further study. First, as states begin to reopen and some states maintain restrictions, tracking changes in population behaviors will be helpful in making policy decisions. Second, we focused on the United States; however, Twitter data provides sufficient coverage to replicate our analysis for many countries. Third, tweet content exists for each user in the data set; this content can reflect the user's attitudes, beliefs, and behaviors. Studying these factors together with users’ mobility reduction could yield further insights. Our findings are presented on a website [44], and we will continue to update our analysis during the pandemic.

Conflicts of Interest

MD holds equity in Sickweather Inc and has received consulting fees from Bloomberg LP and Good Analytics Inc. These organizations did not have any role in the study design, data collection and analysis, decision to publish, or preparation of the article. All other authors have no conflicts to declare.

  1. Maharaj S, Kleczkowski A. Controlling epidemic spread by social distancing: do it well or not at all. BMC Public Health 2012 Aug 20;12:679 [FREE Full text] [CrossRef] [Medline]
  2. Kelso JK, Milne GJ, Kelly H. Simulation suggests that rapid activation of social distancing can arrest epidemic development due to a novel strain of influenza. BMC Public Health 2009 Apr 29;9(1):117 [FREE Full text] [CrossRef] [Medline]
  3. Glass R, Glass L, Beyeler W, Min H. Targeted social distancing design for pandemic influenza. Emerg Infect Dis 2006 Nov;12(11):1671-1681 [FREE Full text] [CrossRef] [Medline]
  4. Zeleny J. Why these 8 Republican governors are holding out on statewide stay-at-home orders. CNN. 2020 Apr 04.   URL: https:/​/www.​cnn.com/​2020/​04/​04/​politics/​republican-governors-stay-at-home-orders-coronavirus/​index.​html [accessed 2020-10-27]
  5. Courtemanche C, Garuccio J, Le A, Pinkston J, Yelowitz A. Strong Social Distancing Measures In The United States Reduced The COVID-19 Growth Rate. Health Affairs 2020 Jul 01;39(7):1237-1246. [CrossRef]
  6. Badr H, Du H, Marshall M, Dong E, Squire M, Gardner L. Association between mobility patterns and COVID-19 transmission in the USA: a mathematical modelling study. Lancet Infect Dis 2020 Nov;20(11):1247-1254. [CrossRef]
  7. Aleta A, Martín-Corral D, Pastore Y Piontti A, Ajelli M, Litvinova M, Chinazzi M, et al. Modelling the impact of testing, contact tracing and household quarantine on second waves of COVID-19. Nat Hum Behav 2020 Sep 05;4(9):964-971. [CrossRef] [Medline]
  8. Prem K, Liu Y, Russell TW, Kucharski AJ, Eggo RM, Davies N, Centre for the Mathematical Modelling of Infectious Diseases COVID-19 Working Group, et al. The effect of control strategies to reduce social mixing on outcomes of the COVID-19 epidemic in Wuhan, China: a modelling study. Lancet Public Health 2020 May;5(5):e261-e270 [FREE Full text] [CrossRef] [Medline]
  9. Fenichel EP, Castillo-Chavez C, Ceddia MG, Chowell G, Parra PAG, Hickling GJ, et al. Adaptive human behavior in epidemiological models. Proc Natl Acad Sci USA 2011 Apr 12;108(15):6306-6311. [CrossRef] [Medline]
  10. Caley P, Philp DJ, McCracken K. Quantifying social distancing arising from pandemic influenza. J R Soc Interface 2008 Jun 06;5(23):631-639 [FREE Full text] [CrossRef] [Medline]
  11. Saad L. Americans Step Up Their Social Distancing Even Further. Gallup. 2020 Mar 24.   URL: https://news.gallup.com/opinion/gallup/298310/americans-step-social-distancing-even-further.aspx [accessed 2020-10-28]
  12. Dredze M, Broniatowski DA, Smith MC, Hilyard KM. Understanding Vaccine Refusal: Why We Need Social Media Now. Am J Prev Med 2016 Apr;50(4):550-552 [FREE Full text] [CrossRef] [Medline]
  13. Adams A, Soumerai S, Lomas J, Ross-Degnan D. Evidence of self-report bias in assessing adherence to guidelines. Int J Qual Health Care 1999 Jun 01;11(3):187-192. [CrossRef] [Medline]
  14. Paul MJ, Dredze M. Social Monitoring for Public Health. Synthesis Lectures on Information Concepts, Retrieval, and Services 2017 Aug 31;9(5):1-183. [CrossRef]
  15. COVID-19 Community Mobility Report. Google.   URL: https://www.google.com/covid19/mobility/ [accessed 2020-10-28]
  16. Social Distancing Scoreboard. Unacast.   URL: https://www.unacast.com/covid19/social-distancing-scoreboard [accessed 2020-10-28]
  17. Burstein R, Hu H, Thakkar N, Schroeder A, Famulare M, Klein D. Understanding the Impact of COVID-19 Policy Change in the Greater Seattle Area using Mobility Data. Institute for Disease Modeling. 2020 Mar 29.   URL: https://covid.idmod.org/data/Understanding_impact_of_COVID_policy_change_Seattle.pdf [accessed 2020-10-28]
  18. Glanz J, Carey B, Holder J, Watkins D, Valentino-DeVries J, Rojas R, et al. Where America Didn’t Stay Home Even as the Virus Spread. New York Times.   URL: https://www.nytimes.com/interactive/2020/04/02/us/coronavirus-social-distancing.html [accessed 2020-10-28]
  19. Apple and Google partner on COVID-19 contact tracing technology. Apple Newsroom.   URL: https:/​/www.​apple.com/​newsroom/​2020/​04/​apple-and-google-partner-on-covid-19-contact-tracing-technology/​ [accessed 2020-10-28]
  20. Koh D. Singapore government launches new app for contact tracing to combat spread of COVID-19. Mobi Health News. 2020 Mar 20.   URL: https:/​/www.​mobihealthnews.com/​news/​asia-pacific/​singapore-government-launches-new-app-contact-tracing-combat-spread-covid-19 [accessed 2020-10-28]
  21. Coronavirus: Australians download COVIDSafe contact tracing app. BBC. 2020 Apr 06.   URL: https://www.bbc.com/news/world-australia-52433340 [accessed 2020-10-28]
  22. Hale T, Webster S, Petherick A, Phillips T, Kira B. Which countries do COVID-19 contact tracing? Our World in Data.   URL: https://ourworldindata.org/grapher/covid-contact-tracing [accessed 2020-10-28]
  23. Li J, Guo X. Global Deployment Mappings and Challenges of Contact-tracing Apps for COVID-19. SSRN Journal Preprint posted online on May 24, 2020. [CrossRef]
  24. Si J, Mukherjee A, Liu B, Li Q, Li H, Deng X. Exploiting topic based twitter sentiment for stock prediction. In: Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics. 2013 Aug Presented at: 51st Annual Meeting of the Association for Computational Linguistics; August 4-9, 2013; Sofia, Bulgaria.
  25. Bollen J, Mao H, Pepe A. Modeling public mood and emotion: Twitter sentiment and socio-economic phenomena. In: Proceedings of the Fifth International AAAI Conference on Weblogs and Social Media. 2011 Presented at: Fifth International AAAI Conference on Weblogs and Social Media; July 17-21, 2011; Barcelona, Spain   URL: https://www.aaai.org/ocs/index.php/ICWSM/ICWSM11/paper/viewFile/2826/3237
  26. Using Twitter To Graph Public Opinion of Presidential Candidates. Twitter Sentiment Index.   URL: http://www.thetsindex.com/ [accessed 2020-10-28]
  27. Tumasjan A, Sprenger T, Sandner P, Welpe I. Predicting Elections with Twitter: What 140 Characters Reveal about Political Sentiment. In: Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media. Fourth international AAAI conference on weblogs and social media; 2010 May 16; Atlanta, Georgia, USA; 2010 Presented at: Fourth International AAAI Conference on Weblogs and Social Media; Washington, DC; May 23–26, 2010   URL: https://www.aaai.org/ocs/index.php/ICWSM/ICWSM10/paper/viewFile/1441/1852
  28. Hennig-Thurau T, Wiertz C, Feldhaus F. Does Twitter matter? The impact of microblogging word of mouth on consumers’ adoption of new movies. J Acad Mark Sci 2014 Jun 1;43(3):375-394. [CrossRef]
  29. Dredze M, Paul M, Bergsma S, Tran H. Carmen: A Twitter Geolocation System with Applications to Public Health. In: Expanding the Boundaries of Health Informatics Using Artificial Intelligence: Papers from the AAAI 2013 Workshop. 2013 Presented at: Workshops at the Twenty-Seventh AAAI Conference on Artificial Intelligence; July 14-15, 2013; Bellevue, WA p. A   URL: https://www.aaai.org/ocs/index.php/WS/AAAIW13/paper/download/7085/6497
  30. Zheng X, Han J, Sun A. A Survey of Location Prediction on Twitter. IEEE Trans Knowl Data Eng 2018 Sep 1;30(9):1652-1671. [CrossRef]
  31. Han B, Cook P, Baldwin T. Text-Based Twitter User Geolocation Prediction. J Artif Intell Res 2014 Mar 20;49:451-500. [CrossRef]
  32. Pavalanathan U, Eisenstein J. Confounds and Consequences in Geotagged Twitter Data. In: Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.: Association for Computational Linguistics; 2015 Presented at: 2015 Conference on Empirical Methods in Natural Language Processing; September 17-21, 2015; Lisbon, Portugal p. 2138-2148. [CrossRef]
  33. Dredze M, Osborne M, Kambadur P. Geolocation for Twitter: Timing Matters. In: Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.: Association for Computational Linguistics; 2016 Presented at: 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; June 12-17, 2016; San Diego, CA p. 1064-1069. [CrossRef]
  34. Hawelka B, Sitko I, Beinat E, Sobolevsky S, Kazakopoulos P, Ratti C. Geo-located Twitter as proxy for global mobility patterns. Cartogr Geogr Inf Sci 2014 May 27;41(3):260-271. [CrossRef] [Medline]
  35. Dredze M, García-Herranz M, Rutherford A, Mann G. Twitter as a Source of Global Mobility Patterns for Social Good. In: Proceedings of the 2016 ICML Workshop on #Data4Good: Machine Learning in Social Good Applications. In: ICML Workshop on #Data4Good: Machine Learning in Social Good Applications; 2016 Presented at: 2016 ICML Workshop on #Data4Good: Machine Learning in Social Good Applications; June 24, 2016; New York, NY.
  36. Jurdak R, Zhao K, Liu J, AbouJaoude M, Cameron M, Newth D. Understanding Human Mobility from Twitter. PLoS One 2015 Jul 8;10(7):e0131469 [FREE Full text] [CrossRef] [Medline]
  37. Huang Q, Wong D. Modeling and Visualizing Regular Human Mobility Patterns with Uncertainty: An Example Using Twitter Data. Annals of the Association of American Geographers 2015 Sep 23;105(6):1179-1197. [CrossRef]
  38. Birkin M, Harland K, Malleson N, Cross P, Clarke M. An Examination of Personal Mobility Patterns in Space and Time Using Twitter. International Journal of Agricultural and Environmental Information Systems (5) 2014:55-72. [CrossRef]
  39. Hasan S, Zhan X, Ukkusuri S. Understanding urban human activity and mobility patterns using large-scale location-based data from online social media. In: UrbComp '13: Proceedings of the 2nd ACM SIGKDD International Workshop on Urban Computing. 2013 Presented at: 2nd ACM SIGKDD International Workshop on Urban Computing; August 11, 2013; Chicago, IL p. 1-8. [CrossRef]
  40. Luo F, Cao G, Mulligan K, Li X. Explore spatiotemporal and demographic characteristics of human mobility via Twitter: A case study of Chicago. Applied Geography 2016 May;70:11-25. [CrossRef]
  41. Soliman A, Soltani K, Yin J, Padmanabhan A, Wang S. Social sensing of urban land use based on analysis of Twitter users' mobility patterns. PLoS One 2017 Jul 19;12(7):e0181657 [FREE Full text] [CrossRef] [Medline]
  42. Kurkcu A, Ozbay K, Morgul E. Evaluating the Usability of Geo-located Twitter as a Tool for Human Activity and Mobility Patterns: A Case Study for New York City. 2016 Presented at: Transportation Research Board 95th Annual Meeting; January 10-14, 2016; Washington, DC.
  43. Steiger E, Ellersiek T, Resch B, Zipf A. Uncovering Latent Mobility Patterns from Twitter During Mass Events. GI Forum 2015;1:525-534. [CrossRef]
  44. Twitter Social Mobility Index: A measure of social distancing derived from Twitter.   URL: http://socialmobility.covid19dataresources.org/index [accessed 2020-10-28]
  45. Filter realtime Tweets. Twitter Developer.   URL: https://developer.twitter.com/en/docs/tweets/filter-realtime/overview/statuses-filter [accessed 2020-10-28]
  46. geopy. github.   URL: https://github.com/geopy/geopy [accessed 2020-10-28]
  47. 15 Days to Slow the Spread. The White House. 2020 Mar 16.   URL: https://www.whitehouse.gov/articles/15-days-slow-spread/ [accessed 2020-10-28]
  48. Truong C, Oudre L, Vayatis N. Selective review of offline change point detection methods. Signal Process 2020 Feb;167:107299. [CrossRef]
  49. Lasry A, Kidder D, Hast M, Poovey J, Sunshine G, Winglee K, CDC Public Health Law Program, New York City Department of Health and Mental Hygiene, Louisiana Department of Health, San Francisco COVID-19 Response Team, Alameda County Public Health Department, San Mateo County Health Department, Marin County Division of Public Health. Timing of Community Mitigation and Changes in Reported COVID-19 and Community Mobility - Four U.S. Metropolitan Areas, February 26-April 1, 2020. MMWR Morb Mortal Wkly Rep 2020 Apr 17;69(15):451-457 [FREE Full text] [CrossRef] [Medline]
  50. Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE. GitHub.   URL: https://github.com/CSSEGISandData/COVID-19 [accessed 2020-10-28]
  51. Raifman J, Nocka K, Jones D, Bor J, Lipson S, Jay J, et al. COVID-19 US State Policy Database. OpenICPSR.   URL: https://www.openicpsr.org/openicpsr/project/119446/version/V39/view [accessed 2020-10-28]
  52. Jia JS, Lu X, Yuan Y, Xu G, Jia J, Christakis NA. Population flow drives spatio-temporal distribution of COVID-19 in China. Nature 2020 Jun;582(7812):389-394. [CrossRef] [Medline]
  53. Mislove A, Lehmann S, Ahn Y, Onnela J, Rosenquist J. Understanding the Demographics of Twitter Users. In: Proceedings of the Fifth International AAAI Conference on Weblogs and Social Media. 2011 Presented at: Fifth International AAAI Conference on Weblogs and Social Media; July 17-21, 2011; Barcelona, Spain   URL: https://www.aaai.org/ocs/index.php/ICWSM/ICWSM11/paper/viewFile/2816/3234
  54. Wojcik S, Hughes A. Sizing Up Twitter Users. Pew Research Center. 2019 Apr 24.   URL: https://www.pewresearch.org/internet/2019/04/24/sizing-up-twitter-users/ [accessed 2020-10-28]
  55. Zhao B, Sui D. True lies in geospatial big data: detecting location spoofing in social media. Annals of GIS 2017 Jan 31;23(1):1-14. [CrossRef]


API: application programming interface
JSON: JavaScript Object Notation


Edited by G Eysenbach, G Fagherazzi; submitted 16.06.20; peer-reviewed by A Sun, J Li; comments to author 13.07.20; revised version received 04.08.20; accepted 11.10.20; published 03.12.20

Copyright

©Paiheng Xu, Mark Dredze, David A Broniatowski. Originally published in the Journal of Medical Internet Research (http://www.jmir.org), 03.12.2020.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on http://www.jmir.org/, as well as this copyright and license information must be included.