Important
This repository is currently under construction!
This repository is designed to collect forecast data for the RSV Forecast Hub run by the US CDC. The project collects forecasts for two datasets:
- Weekly new hospitalizations, due to RSV.
- Weekly incident percentage of emergency department visits, due to RSV.
If you are interested in using these data for additional research or publications, please contact rsvhub@cdc.gov for information regarding attribution of the source forecasts.
During the submission period, participating teams will be invited to submit national- and jurisdiction-specific (all 50 states, Washington DC, and Puerto Rico) probabilistic nowcasts and forecasts of the weekly number of confirmed RSV hospital admissions during the preceding epidemiological week ("epiweek"), the current epiweek, and the following three epiweeks.
The weekly total RSV admissions counts can be found in the totalconfrsvnewadm
column of the National Healthcare Safety Network (NHSN) Hospital Respiratory Data (HRD) dataset.
NHSN provides a preliminary release of each week's HRD data on Wednesdays here. Official weekly data is released on Fridays here. For more details on this dataset, its release schedule, and its schema, see the NHSN Hospital Respiratory Data page.
The RSV Forecast Hub also accepts probabilistic nowcasts and forecasts of the proportion of emergency department visits due to RSV. This target represents RSV as a proportion of emergency department (ED) visits, aggregated by epiweek (Sunday-Saturday) and jurisdiction (states, DC, United States). The numerator is the number of visits with a discharge diagnosis of RSV, and the denominator is total visits. This target is optional for any submitted location and forecast horizon.
The weekly percent of ED visits due to RSV can be found in the percent_visits_rsv
column of the National Syndromic Surveillance Program (NSSP) Emergency Department Visits - COVID-19, Flu, RSV, Sub-state dataset. Although these numbers are reported in the percentage form, we will accept forecasts as decimal proportions (i.e., percent_visits_rsv / 100
). To obtain state-level data, we filter the dataset to include only the rows where the county
column is equal to All
.
We are actively working to make the Wednesday release of this dataset available on data.cdc.gov
. In the meantime, we will update the dataset every Wednesday in the auxiliary-data/nssp-raw-data
directory of our GitHub repository as a file named latest.csv
. These Wednesday data update contain the same data that are published Fridays on data.cdc.gov
here: NSSP Emergency Department Visit trajectories. Those data underlie the percentage ED visits reported on the PRISM Data Channel's Respiratory Activity Levels page, which is also refreshed every Friday. The data represent the information available as of Wednesday morning through the previous Saturday. For example, the most recent data available as of the 2025-06-11 release were for the week ending 2025-06-07.
The Challenge Period will begin September 17, 2025, and will run until May 2026.
Participants will be asked to submit nowcasts and forecasts by 11PM USA Eastern Time each Wednesday (the "Forecast Due Date"). If it becomes necessary to change the Forecast Due Date or time deadline, we will notify participants at least one week in advance.
Weekly submissions (including file names) will be specified in terms of a "reference date": the Saturday following the Forecast Due Date. This is the last day of the USA/CDC epiweek (Sunday to Saturday) that contains the Forecast Due Date.
Participating teams will be able to submit national- and jurisdiction-specific (all 50 states, Washington DC, and Puerto Rico) predictions for following targets.
- Quantile predictions for epiweekly total laboratory-confirmed RSV hospital admissions.
- Individual forecast trajectories for epiweekly total laboratory-confirmed RSV hospitalizations over time (i.e sampled trajectories).
- Quantile predictions for epiweekly percent of emergency department visits due to RSV.
- Individual forecast trajectories for epiweekly percent of emergency department visits due to RSV over time (i.e sampled trajectories).
Targets 2, 3 and 4 are optional for any submitted location whereas target 1 (quantile predictions for epiweekly RSV hospital admissions) is mandatory for any submitted location and forecast horizon. Teams are encouraged but not required to submit forecasts for all weekly horizons or for all locations.
Note
We are considering introducing samples-based ensembles for the hubs and would encourage teams to submit sample trajectories along with quantile forecasts.
Teams can submit nowcasts or forecasts for these targets for the following temporal "horizons":
horizon = -1
: the epiweek preceding the reference datehorizon = 0
: the current epiweekhorizon = 1, 2, 3
: each of the three upcoming epiweeks
We use epiweeks as defined by the US CDC, which run Sunday through Saturday. The target_end_date
for a prediction is the Saturday that ends the epiweek of interest. That is:
target_end_date = reference_date + (horizon * 7)
Standard software packages for R and Python can help you convert from dates to epiweeks and vice versa:
Detailed guidelines for formatting and submitting forecasts are available in the model-output
directory README. Detailed guidelines for formatting and submitting model metadata can be found in the model-metadata
directory README.
First-time pull requests (PRs) into the Hub repository must be reviewed and merged manually; subsequent ones can be merged automatically if they pass appropriate checks.
We suggest that teams submitting for the first time make a PR adding their model metadata file to the model-metadata
directory by 4 PM USA Eastern Time on the Wednesday they plan to submit their first forecast. This will allow subsequent PRs that submit forecasts to be merged automatically, provided checks pass. We also request that teams sync their PR branch with the main
branch using the Update branch
button if their PR is behind the main
branch, to ensure the automerge action runs smoothly.
We have made some changes from previous version of the RSV Forecast Hub to align RSV forecasting challenges with COVID-19 forecasting via COVID-19 Forecast Hub and influenza forecasting run via the Flusight Forecast Hub.
All Hubs will require quantile-based forecasts of epiweekly incident hospital admissions reported into NHSN, with the same -1:3 week horizon span. The COVIDhub and RSVhub optionally accept forecasts of proportion of Emergency department visits reported into NSSP. The Hubs also plan to share a forecast deadline of 11pm USA/Eastern time on Wednesdays.
To ensure greater access to the data created by and submitted to this hub, real-time copies of files in the following directories are hosted on the Hubverse's Amazon Web Services (AWS) infrastructure, in a public S3 bucket: rsv-forecast-hub
.
auxiliary-data
hub-config
model-metadata
model-output
target-data
GitHub remains the primary interface for operating the RSV hub and collecting forecasts from modelers. However, the mirrors of hub files on S3 are the most convenient way to access hub data without using git
/GitHub or cloning the entire hub to your local machine.
The sections below provide examples for accessing hub data on the cloud, depending on your goals and preferred tools. The options include:
Access Method | Description |
---|---|
hubData (R) | Hubverse R client and R code for accessing hub data. |
hub-data (Python) | Python package for working with hubverse data |
AWS command line interface | Download data and use hubData, Pyarrow, or another tool for fast local access. |
In general, accessing the data directly from S3 (instead of downloading it first) is more convenient. However, if performance is critical (for example, you're building an interactive visualization), or if you need to work offline, we recommend downloading the data first.
hubData (R)
hubData, the Hubverse R client, can create an interactive session for accessing, filtering, and transforming hub model output data stored in S3.
hubData is a good choice if you:
- already use R for data analysis
- want to interactively explore hub data from the cloud without downloading it
- want to save a subset of the hub's data (e.g., forecasts for a specific date or target) to your local machine
- want to save hub data in a different file format (e.g.,
.parquet
to.csv
)
To install hubData
and its dependencies (including the dplyr
and arrow
packages), follow the instructions in the hubData documentation.
hubData's connect_hub()
function returns an Arrow multi-file dataset that represents a hub's model output data. The dataset can be filtered and transformed using dplyr and then materialized into a local data frame using the collect_hub()
function.
Use hubData to connect to a hub on S3 and retrieve all model-output files into a local dataframe. (note: depending on the size of the hub, this operation will take a few minutes):
library(dplyr)
library(hubData)
bucket_name <- "rsv-forecast-hub"
hub_bucket <- s3_bucket(bucket_name)
hub_con <- hubData::connect_hub(hub_bucket, file_format = "parquet", skip_checks = TRUE)
model_output <- hub_con %>%
hubData::collect_hub()
Use hubData to connect to a hub on S3 and filter model output data before "collecting" it into a local dataframe:
library(dplyr)
library(hubData)
bucket_name <- "rsv-forecast-hub"
hub_bucket <- s3_bucket(bucket_name)
hub_con <- hubData::connect_hub(hub_bucket, file_format = "parquet", skip_checks = TRUE)
hub_con %>%
dplyr::filter(target == "wk inc rsv hosp", location == "25", output_type == "quantile") %>%
hubData::collect_hub() %>%
dplyr::select(reference_date, model_id, target_end_date, location, output_type_id, value)
hub-data (Python)
The Hubverse team is developing a Python client which provides some initial tools for accessing Hubverse data. The repository is located at https://github.com/hubverse-org/hub-data.
Use pip
to install hub-data
(the pypi
package is https://pypi.org/project/hubdata):
`pip install hubdata`
Please see the hub-data package documentation for examples of how to use the CLI, and the hubdata.connect_hub()
and hubdata.create_hub_schema()
functions.
AWS CLI
AWS provides a terminal-based command line interface (CLI) for exploring and downloading S3 files.
This option is ideal if you:
- plan to work with hub data offline but don't want to use git or GitHub
- want to download a subset of the data (instead of the entire hub)
- are using the data for an application that requires local storage or fast response times
- Install the AWS CLI using the instructions here
- You can skip the instructions for setting up security credentials, since Hubverse data is public
When using the AWS CLI, the --no-sign-request
option is required, since it tells AWS to bypass a credential check
(i.e., --no-sign-request
allows anonymous access to public S3 data).
[!NOTE]
Files in the bucket's
raw
directory should not be used for analysis (they're for internal use only).
List all directories in the hub's S3 bucket:
aws s3 ls rsv-forecast-hub --no-sign-request
List all files in the hub's bucket:
aws s3 ls rsv-forecast-hub --recursive --no-sign-request
Download all of target-data contents to your current working directory:
aws s3 cp s3://rsv-forecast-hub/target-data/ . --recursive --no-sign-request
Download the model-output files for a specific team:
aws s3 cp s3://rsv-forecast-hub/model-output/pending/ . --recursive --no-sign-request
This repository follows the guidelines and standards outlined by the hubverse, which provides a set of data formats and open source tools for modeling hubs.
CDC GitHub Guidelines
General Disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.
The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
The source code forked from other open source projects will inherit its license.
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.
Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.
All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.
This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.