Skip to main content
Elsevier - PMC COVID-19 Collection logoLink to Elsevier - PMC COVID-19 Collection
. 2020 Sep 1;2(11):e622–e628. doi: 10.1016/S2589-7500(20)30193-X

Measuring mobility to monitor travel and physical distancing interventions: a common framework for mobile phone data analysis

Nishant Kishore a, Mathew V Kiang b, Kenth Engø-Monsen c, Navin Vembar f, Andrew Schroeder g, Satchit Balsari d,e, Caroline O Buckee a,*
PMCID: PMC7462565  PMID: 32905027

Abstract

A surge of interest has been noted in the use of mobility data from mobile phones to monitor physical distancing and model the spread of severe acute respiratory syndrome coronavirus 2, the virus that causes COVID-19. Despite several years of research in this area, standard frameworks for aggregating and making use of different data streams from mobile phones are scarce and difficult to generalise across data providers. Here, we examine aggregation principles and procedures for different mobile phone data streams and describe a common syntax for how aggregated data are used in research and policy. We argue that the principles of privacy and data protection are vital in assessing more technical aspects of aggregation and should be an important central feature to guide partnerships with governments who make use of research products.

Introduction

Data from mobile phones are being used around the world as part of the COVID-19 response, to map population movement, set parameters for disease transmission models, and inform resource allocation.1, 2, 3 When anonymised and aggregated, these data do not reveal information about individuals but provide epidemiologically relevant estimates about population mobility—ie, the extent to which people are sheltering in place, congregating at parks, grocery stores and transit hubs, and generally moving less (or more) than usual.3, 4, 5 These data also provide vital insights into travel patterns to help better understand the effect of travel restrictions and the risk of importation from other locations and to inform spatial epidemiological models.6, 7, 8 These analyses can be used to identify neighbourhoods or communities that could become hotspots for community transmission or that might need additional support to practise physical distancing, or as part of surveillance more generally.9

Mobile phone data, although ubiquitous, have their biases and limitations.4, 5 Although one data stream might be more representative of a younger and more affluent population, another data stream could under-represent those living in rural areas. Popular analytical reports from large data providers show physical distancing (mobility) metrics, for example; however, the underlying data they represent and the aggregation methods used are typically not readily available.1, 10, 11 This scant transparency makes it hard to know the representativeness and limitations of these data before using them for modelling. A common framework is needed to analyse the characteristics of these disparate data and their outputs, to allow for better comparison across mobility metrics and easier interpretation.

In this Viewpoint, we outline considerations for analysing aggregated data from mobile phones, including representativeness, situational context, and methods of aggregation. We then define the analytical pipelines used to construct nine metrics that can be applied towards measuring physical distancing interventions and modelling the spread of COVID-19 and other infectious diseases.

Data pipelines and processing

Data types

Two main types of data can be distinguished, based on how they are gathered. First, mobile operator data are obtained routinely in the form of either call detail records (CDRs) or a continuous stream of network signalling data. CDRs provide a cell tower identifier for calls, texts, or other uses associated with a SIM card, whereas network signalling data give continuous information about the cell tower that a handset is connected to as long as it is on. In both cases, the cell tower provides an approximate location for the user at the time of the call or text, with precision of the location dependent on the density of cell towers in the area. Second, global positioning system (GPS) traces are data obtained from smartphones and provide granular location data for the device over time. These data are precise with respect to location but are sometimes limited in terms of coverage and representativeness, particularly in low-income settings where many people do not have smartphones.12 CDR data are generally more representative of the underlying population than are GPS traces (which are dependent on smartphones) because of the near-universal penetration of standard mobile phones. This notion generally remains true even in highly developed settings, because GPS data are typically only captured for a subset of the population that uses a particular application and provides consent to share location services. Ownership of more than one SIM and limited granularity of data do restrict the application of CDR for mobility analysis.13, 14

For our analysis, we focus on GPS-derived metrics, which have been primarily used for population-level mobility analyses. Location data can, however, also be derived by triangulation from cell towers, from Bluetooth interactions, and from IP addresses via wi-fi connections. GPS data sources can also be complex, with multiple overlapping applications, providers, publishers, and aggregators (appendix p 4).

Prerequisites to data sharing

Data providers are governed by national regulators who determine what CDRs (and sometimes GPS trace data) can be used for, and whether aggregated data can be shared with researchers or policy makers. For example, in most European countries, location data can only be used by the operator when they are made anonymous or with the consent of the individual, in accordance with General Data Protection Regulations. Establishing permission to use the data at all is generally the most lengthy step in the analytical pipeline. Discussions with regulators should, therefore, begin early; legal frameworks vary across jurisdictions and delays are to be expected, even during public health emergencies.15, 16

GPS trace data are routinely gathered by data publishers for commercial reasons. Publishers sell the data to brokers or aggregators, who might be able to provide insight into the representativeness of the data and their generalisability to the population. Partnership with data aggregators can reduce the technical burden of working with raw GPS trace data, which are typically massive, noisy, and require validation, and preclude the need for negotiating with every upstream data publisher. For example, Camber Systems (Washington, DC, USA), Cuebiq (New York, NY, USA), SafeGraph (San Francisco, CA, USA), and Facebook (Menlo Park, CA, USA) aggregate and preprocess data, providing the aggregates rather than raw trace data to researchers. The aggregation and preprocessing maintains privacy across the analytical pipeline. Data-use agreements and compliance with university ethics processes are also essential prerequisites for data sharing with researchers.17

The benefits of using personal data should outweigh the risks to privacy, even during a pandemic.18 To date, epidemiological or clinical justification has not been satisfactorily shown to override privacy and ethical considerations in several settings where individuals have been deidentified by using mobile phone data.19, 20 Privacy should be preserved through statistical thresholds, differential privacy, and appropriate security controls with all parties in agreement on the principle of privacy protection.21, 22, 23

Representativeness of data

Data providers must be clear about the representativeness of their data for epidemiological research. There are at least three important considerations. First is market share: what fraction of the population are represented in these data? Second is demographic representativeness: who are the people generating the data, with respect to age groups, sex, race and ethnicity, and socioeconomic status, compared with the overall population? Third is geographical representativeness: generally, these data will be most representative of urban populations; understanding how well they represent rural communities is important to communicate to users of aggregated data.

Outliers should be discarded. Devices with an implausible number of calls, short duration between calls, or implausibly fast travel patterns are probably machines and do not represent human behaviour. The exact parameters for discarding outliers will depend on the population and the operator. Iterative communication between providers and data consumers is vital on these issues.

Summary measures of representativeness (or imbalance) can be used to compare data across different providers but are almost never shared currently. Providers could compare their internal data about user characteristics to a shared, public gold standard (such as the US Census). These measures would allow researchers to formally compare the representativeness of different providers. Importantly, this process preserves the privacy of users and providers by ensuring individual-level data are never shared.

Establishing baselines

An important component of almost all analyses will be a baseline against which to compare changes in travel and, in many cases, a home location for particular devices.24 For example, in the COVID-19 context, mobility data are useful if compared against prephysical distancing or, now, comparing post-relaxation mobility with lockdown or prelockdown averages. Baselines can be established by making sure that the data analysis reaches back in time before the severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) outbreak started and physical distancing interventions were put in place. Comparing data with the same time window in previous years accounts for important seasonal mobility patterns; however, most companies do not store data for such a long time because of data retention policies.25, 26 Clear communication of the baseline is important, including the uncertainty associated with it, so that decision makers can make sense of the changes they see in mobility.

Spatial and temporal aggregation

To preserve privacy, data should be aggregated (appendix pp 2–3). However, policy makers and researchers will typically request high-resolution disaggregated data. To strike a balance, data must be optimised to an actionable spatial boundary, such as an administrative zone or grid square, and on a timescale that can provide epidemiologically relevant information. The scale of administrative boundaries will depend on whether the location in question is rural or urban; cities sometimes need smaller spatial scales. Standard grid squares are, therefore, useful for some research questions. Timescales will also vary and the research questions should be considered; diurnal variation might be very useful to plot commute patterns, for example, whereas seasonal variation could show migration patterns related to agriculture, holidays, educational terms, or even weekday or weekend flows.27

The spatial scale needed will also depend on the policy or research objective. For example, city administrators might be interested in identifying hotspots of congregation or patterns in specific types of activity (eg, visits to grocery stores, transit hubs, and schools), whereas state governments might be more concerned with travel networks across administrative boundaries. If aggregators can dedicate resources in response to a crisis, they might consider generating analyses at varying spatial resolutions specific to each use case.

Disaggregation of data by sociodemographic information, such as age, gender, and race or ethnicity, should only be considered if there is a compelling reason. For example, it could be reasonable in the COVID-19 pandemic to disaggregate data by age to identify mobility patterns among people older than 60 years. Similarly, spatial aggregation must ensure that the numbers of unique devices do not fall below thresholds that enable re-identification of individuals or groups.21, 28 In general, grid cells with fewer than five to 20 users should not be shared with external parties.29 Resetting the cohort of the analysis daily also protects privacy.22, 30, 31

Differential privacy should be applied to data releases. Differential privacy applies noise to the statistical computations to preserve individual and group privacy. It has been used by the US Census,32 Apple,33 Google,34 and other organisations. Selecting appropriate parameters is implementation-dependent but must be undertaken with care.29, 35

In large and quickly moving crises, the number of requests for data can scale up much more quickly than aggregator-specific capacity can respond. In this case, it is important that aggregators generate standard pipelines that provide data or metrics aggregated to an optimised spatial resolution, which advance analytical objectives without doing harm. When in doubt, automate lower resolution and maintain a human in the loop to provide access to higher resolution while maintaining privacy budgets.36

Mobility metrics and their relation to physical distancing and COVID-19 response

Metrics

Common metrics could be useful either for observing population mobility under different types of physical distancing interventions or as inputs for mechanistic models of disease spread (appendix p 1). Nearly all metrics calculated by CDR can be calculated with GPS traces; therefore, we have separated the metrics into those that can be calculated by both and those which are exclusive to GPS trace data.

Baseline metrics

Six baseline metrics are defined first.

  • Population: a description of the unit of measurement that contributes data to the analysis such as unique users or unique devices. These are designated as i and j.

  • Spatial resolution of categorisation: a description of the dimensions of the user locations that are used for categorisation. For example, unique locations that are visited by a user might be defined by tile grids, tower catchment areas, or GPS radii from points of interest for internal analysis. These are designated as a and b.

  • Spatial resolution of aggregation: a description of the size of the regions of interest for which data are aggregated before being shared. For example, the metrics calculated for the population can be aggregated across all users in a region of interest such as neighbourhood or county. These are designated as A and B.

  • Temporal resolution of categorisation: a description of the time bins that are used to categorise every user's location. For example, the modal location a that a user i logs data in every hour. These are designated as t.

  • Temporal resolution of aggregation: a description of the time window for which data are aggregated for all users i in region A. For example, we might be interested in the average numbers of locations a (defined at top location per t min bin) over all space visited by users i in region A over the course of an 8 h time window. These are designated as T.

  • Temporal thresholds: rather than calculating locations by top location a in every time bin t, providers may decide to calculate locations a as those where the user i spends at least a certain amount of time. This threshold is then designated at T*.

Using these definitions, a provider might generate for every individual i a set of locations at spatial scale a for every time bin t in the time window T. The values for a can be directly mapped to larger regions of aggregation A. For example, for a given user, one can calculate their location as defined by presence in a 600 m × 600 m Bing Tile (a: zoom level 16)37 for every 30 min segment (t) over the course of 24 h (T). Every Bing Tile is also mapped onto a county A for which all data are aggregated. We define this set of time-specific locations as

MiT={ait1,ait2,...,aitn}

for which a itn refers to a specific bin t in time window T. Not all users will provide enough information to generate a full set M iT; therefore, the provider should be transparent about any interpolation or imputation steps taken to make the set more robust.

Because of differences in spatiotemporal resolution, the definition of a stay location a will differ between CDR and GPS. For CDR, a stay location represents the tower, grid, or administrative region where a user's mobile phone was located. For GPS, depending on the spatiotemporal resolution, some preprocessing might take place. Typically, we can define a stay location as an area of size a within which all movement occurred for at least T* time units (eg, a circle with a radius of 25 m within which all movement remained for at least 30 min). Different thresholds T* can be used (eg, 5 min, 1 h, etc); the proper threshold will depend on both technological and computational constraints and the relevant question.

These key values can change depending on the metric, because of privacy-preserving objectives, or owing to computational limitations. However, the rationale of these values should be clearly communicated.

Metrics applicable to both CDR and GPS traces

Population distribution and dynamics

For most epidemiological analyses and modelling work, an estimate of the population residing in a specific region at a particular time provides an estimate of the denominator, which is the number of unique i that spend most of their time in a given area. To estimate this quantity, we assign every user to a home location, which is typically either the night-time location of the user or the area where the user spends the most time in the set of locations M iT. In the case of continuous GPS data collection, one can also use location at midnight local time, or a range around that time, if data availability is not continuous. The sum of unique users in every region A is then used as the population estimate for that time window T. This value is denoted as

NAT=ixiAT

for which x iAT = 1, if the mode of M iT for time T is in A and 0 otherwise.

Number of significant locations

The average number of significant locations provides an indication of how many distinct places users spend a substantial amount of time. Normal human mobility entails very few significant locations: usually, home, work, or school. However, varying shelter-in-place orders can result in different types of behaviours. For example, strict never-leave-home orders would result in a reduction of significant locations to 1, whereas less strict orders might result in increased numbers of local significant locations as individuals attempt to leave their homes more frequently but briefly.

To calculate the average number of significant locations for a specific population, we use the set of time-varying locations for every user i (M iT) and create a subset of unique locations. Once the set of significant locations for every user has been estimated, the average across a region, grid, or other area of interest can be estimated as the sum of total unique locations visited by user i whose home location is in region A divided by the total number of users whose home location is in region A.

MAT¯=iAcard(MiT)NAT

Transition between regions

This value provides an estimate of mobility between locations, which can be used in models to estimate the spatial spread of SARS-CoV-2. Transition matrices should include number, index, or proportion of unique users i who move from region A to region B. Users should contribute only once to the transition matrices within every time window to ensure that the numbers represent unique users and not trips between regions. As the time window considered decreases, researchers will be better able to understand within-day heterogeneity in movement between regions. These values can be used to calculate the percentage change in the total number of trips that occur between and within regions of interest, providing metrics of intraregional and inter-regional mobility.

It is important to note that this metric will vary with spatial scale and the time window considered. We recommend that T is, at most, 4 h for assessment of local travel networks, particularly those that might not cross time zones. Smaller time windows are unable to capture long-distance travel that takes more time than the length of the time window; however, it does allow for better understanding of within-day fluctuations of mobility. Larger time windows could be warranted for assessment of long-distance travel networks across time zones (eg, long-distance interstate travel) because the degree of displacement will typically not be clearly captured within shorter time windows.

This metric can be calculated by splitting a time window T into two halves (T1 and T2) then simply calculating the mode for each set (M iT1 and M iT2), resulting in a iT1 and a iT2. We assume that, for some time window T, the user transitioned from the modal location in T1 to the modal location in T2. If the user did not transition between locations, the matrix will include these counts on the diagonal. These vectors of transition are then summed across all users. Vectors with transitions that do not meet a minimum threshold are dropped. To aggregate to a larger spatial resolution, we map a to its corresponding A and sum the transition values for unique pairs of A and B.

Distances travelled

This metric measures the amount of movement occurring within a population and is calculated for all start and stop points of the vectors of travel for both CDRs and GPS traces. It is important to note that, for CDRs, this metric will be constrained by cell tower transitions and could have problems whereby two towers might route a call if a subscriber is between them and be upwardly biased in their estimates. As such, these data should not be interpreted as movement patterns. For GPS traces, distance travelled can be simple Euclidean or haversine distances calculated between points of the trail. For cases when car travel is obvious, various routing engines can be used to calculate on-ground transit distances. To make the traces useful, depending on the data source, care should be taken to remove points that represent impossible travel (accounting for different modes of transportation) and data that might be imputed and, thus, not representative of reality.38 Average and total distances of these vectors are then weighted by the number of users who made the transition, providing a total or average distance moved by users in a given region.

Di¯=i=2n|ail-ail-1|

for which

|ail-ail-1|

is the distance between location a il and a il–1. Another option would be to directly provide the distances between these locations as a value for each pair of locations, allowing researchers to aggregate and calculate as they see fit.

Radius of gyration

This metric provides a summary of travel that incorporates both the number of trips and the distance of every trip.5, 39 To calculate the radius of gyration for user i, first calculate the root mean squared distance of a user's movement across space over a given time window from their centre of gravity.

rg(i)=1ni=1n|ail-a¯|2

for which the centre of gravity is

a¯=1ni=1nail

Then for every user, generate their home region A as the region in which they spend the most time in their location set M iT. Then, aggregate this value across a population in a given region and provide an average and percentiles.

Regularity of movement

In general, human mobility is highly predictable.40, 41, 42 This predictability is important for urban planning, traffic forecasting, and public health. A formal measure of (un)predictability is location entropy. A low location entropy means an individual's time spent at their significant locations is highly predictable. Conversely, high location entropy suggests that predicting an individual's location is difficult. Therefore, the lowest location entropy would be achieved by a user who spends the exact same amount of time in the same places in every time window.

Using the set of locations defined above (M iT), the Shannon entropy of user i can be calculated as

Sirand=log2Li

for which L i is the number of distinct locations in M iT. This measure assumes a person's location is uniformly distributed among all L i observed distinct locations in M iT. The uncorrelated Shannon entropy of the user i is

Siunc=-k=1Lipklog2pk

for which p k is the frequency of the user's visit to their kth location (k is the index of all locations that the user visits). Other, more elaborate measures of location entropy have also been found to describe movement predictability well.41

GPS trace metrics

Average co-location with individuals in other regions

This value provides an indication of how much contact individuals from one region have with individuals from other regions. This analysis is restricted to GPS trace data but provides the most direct measure of contact between different populations. It is important that users who form the population for this metric meet a minimum threshold for data contributed during time T. First, for every user, calculate their set of locations for every time segment t in time window T.

MiT={ait1,ait2,...,aitn}

Depending on the completeness of the GPS traces, interpolation or imputation of user locations might need to be considered. Second, calculate every user's home region A as the region in which the user spends most of their time at night in a time window T. For situations when comparing two different regions A and B, calculate the probability of co-location as

jBiAYijNAT×NBT×Tt

for which

Yij=l=1n{aitl=ajtl}

describes the total number of co-locations in a region of size a that users i and j have over the course of T. N AT is the total population of users whose home location is in region A for time T, N BT is the total population of users whose home location is in region B for time T, and T/t is the total number of time bins t that exist in time window T. For situations when comparing the same region, calculate the probability of co-location as

jiAiAYij2NAT×(NAT-12)×Tt

This method has been led and implemented by Facebook's Data for Good team and provides direct measures of probability of contact between different regions in their population. For their metric, Facebook define a as Bing Tiles at zoom level 16, A as a county in the USA or an administration level 3 equivalent spatial area, t as 5 min, and T as a week. Unlike other metrics provided by Facebook, this one is independent for every time window and, therefore, does not have a baseline.

Measures of staying put

This metric is a direct measure of how much time people are spending in one location versus moving around and is relevant to measuring the effect of shelter-in-place policies and other strict lockdowns. This metric should be inversely related to the measures of mobility above (average distance travelled and radius of gyration). To calculate this measure, generate the full set of unique locations M iT for every user i for a given time window T. Then assign every user to a home region A as the region a iT where the user spends the most time in a time window T. Finally, count the number of unique locations for every user i in region A and calculate the proportion of all users i in region A who reported only one unique location during the time window T.

Measures of travel to points of interest (geofenced locations)

This metric will provide an indication of the nature of the travel that is being undertaken.1, 10 First, define a set of locations of size a in region A that are categorised as being locations of interest. These might include (but are not restricted to) parks, commercial areas, or grocery stores. These locations could either be grouped together in categories or specify different points of interest. Three steps are needed to calculate this metric. First, generate the full set of unique locations M iT for every user i in a time window T. Second, assign every user to a region A based on the location a it that the user i spends the most amount of time in. Third, for all users i in region A, calculate the proportion who visited a geofenced location in a time window T.

Conclusions

The COVID-19 pandemic has accelerated the use of aggregated mobility data from mobile devices, although without a universal governing framework for its application. Such data provide valuable insights, but without expertise and diligence it is easy to misinterpret these data, or cause harm, even if inadvertent.

As the COVID-19 pandemic continues, the metrics of interest and how they are used will also change. For example, our threshold of an optimal change in radius of gyration in response to a non-pharmaceutical intervention will be different now than when monitoring the same region for spikes in mobility 3 months from now.

We share this framework to advance a common language of comparison across these vast datasets. A shared language will allow us to synchronise future analysis with the limitations of every metric. Together, considerations provide insights for policy makers and could inform epidemiological models about physical distancing and the spatial spread of COVID-19. Combined with clinical and public health data, these metrics will have an important role in planning rollbacks of distancing because they help estimate the effect of various rollbacks on actual mobility patterns on the ground and, as a result, on epidemic spread.

Acknowledgments

Acknowledgments

Research reported in this Viewpoint was supported by the National Institute on Drug Abuse of the National Institutes of Health (K99DA051534 to MVK) and a National Institute of General Medical Sciences Maximizing Investigator's Research Award (R35GM124715-02 to COB). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

Contributors

NK and COB had the idea for this Viewpoint, created all figures, and contributed to writing the manuscript. MVK, KE-M, NV, AS, and SB provided substantial subject matter expertise and contributed to writing the manuscript. COB and SB provided supervision and guidance.

Declaration of interests

NV is an employee of Camber Systems, a data analysis firm that produces statistical analyses of mobility data; future work by this company might use these metrics or similar metrics for commercial products. All other authors declare no competing interests.

Supplementary Material

Supplementary appendix
mmc1.pdf (189.4KB, pdf)

References

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary appendix
mmc1.pdf (189.4KB, pdf)

Articles from The Lancet. Digital Health are provided here courtesy of Elsevier

RESOURCES