Abstract
The COVID-19 pandemic presented enormous data challenges in the United States. Policy makers, epidemiological modelers, and health researchers all require up-to-date data on the pandemic and relevant public behavior, ideally at fine spatial and temporal resolution. The COVIDcast API is our attempt to fill this need: operational since April 2020, it provides open access to both traditional public health surveillance signals (cases, deaths, and hospitalizations) and many auxiliary indicators of COVID-19 activity, such as signals extracted from de-identified medical claims data, massive online surveys, cell phone mobility data, and internet search trends. These are available at a fine geographic resolution (mostly at the county level) and are updated daily. The COVIDcast API also tracks all revisions to historical data, allowing modelers to account for the frequent revisions and backfill that are common for many public health data sources. All of the data is available in a common format through the API and accompanying R and Python software packages. This paper describes the data sources and signals, and provides examples demonstrating that the auxiliary signals in the COVIDcast API present information relevant to tracking COVID activity, augmenting traditional public health reporting and empowering research and decision-making.
Introduction
During the height of the COVID-19 pandemic, decision-makers faced a "fog of war" regarding data. Official reports on cases and deaths were often delayed, inconsistently formatted across states, and subject to massive retrospective revisions (backfill). For researchers and modelers, this creates a major problem: training a model on "finalized" data from the past ignores the reality that this data was not available at the time of prediction. To build models that work in the real world, one must know what the data looked like on the day the prediction was made. The Delphi Group at Carnegie Mellon University introduced the COVIDcast API to solve these issues of fragmentation, latency, and the lack of a "paper trail" for data revisions.
Methods
The authors built a pipeline to ingest, standardize, and distribute over 170 signals from 12 distinct sources. Key technical contributions include:
- Common Schema: Every record is standardized to a (signal, time, location) format using FIPS codes for geography.
- Signal Processing: The team applies non-trivial post-processing, such as using regression to remove "day-of-week" effects and 7-day trailing averages to smooth noise.
- Dual-Dating (Revision Tracking): This is the core innovation. Every observation is tagged with two dates: the
time_value(when the event happened) and theissue_date(when the data was reported). This allows users to "rewind" the database to see exactly what was known on a specific past date, preventing hindsight bias. - Software Ecosystem: Dedicated R and Python packages (
covidcast) make this data immediately actionable for data scientists.
Datasets and Signals
The API serves as a bridge between proprietary "digital exhaust" and public records, providing a wide array of indicators at fine geographic resolution.
Key data sources include:
- Auxiliary Signals: De-identified medical insurance claims (via Change Healthcare), COVID-19 antigen test results (via Quidel), and Google search trends.
- The CTIS Survey: In partnership with Facebook, the authors ran a massive daily survey (over 25 million responses) tracking symptoms, masking behavior, and vaccine hesitancy.
- Mobility Data: Aggregated smartphone movement patterns via SafeGraph.
- Public Mirrors: Standardized versions of data from JHU CSSE, USAFacts, and the CDC/HHS.
Key Insights and Results
The authors conceptualize COVID-19 indicators as a severity pyramid. At the base are "leading" indicators like mobility and survey-based symptoms. As one moves up through outpatient visits and hospitalizations to deaths (the "lagging" indicators), the data becomes more specific but also more delayed.
Key findings include:
- The "Wisdom of Neighbors": The "CLI-in-community" indicator—asking survey respondents if they know someone who is sick—proved to be a more stable and accurate leading indicator than self-reporting.
- Reporting Robustness: Auxiliary signals are often immune to the "glitches" of official reporting. When a county reports a massive backlog of cases due to technical error, survey and claims data remain steady, providing a vital sanity check.
- Predictive Power: Survey-based "willingness to vaccinate" in January 2021 was a strong predictor of actual vaccine uptake in July 2021.
- Revision Impact: The paper demonstrates that "final" values can differ from "initial" reports by over 10%. Models trained on "as-of" data perform more realistically than those trained on finalized data.
Limitations and Future Work
Despite its breadth, the repository has limitations. Internet-based surveys and app-based mobility data may underrepresent certain populations, such as the elderly. Medical claims data depends on the market share of data partners in specific regions, leading to geographic inconsistencies. Furthermore, even "real-time" data is subject to holiday effects requiring seasonal adjustment. Future directions include building automated "nowcasting" models that use auxiliary signals to predict the eventual revised value of official case counts before they are published.
Summary updated