To install necessary library packages, run the following command in your terminal:
pip install -r requirements.txt
-
Clone the repo to your project folder by using the following commend:
git clone https://github.com/kleelab-bch/FIGI-Net -
Prepare the dataset as Excel file and copy to the
Datafolder. -
Follow the order of codes (in the
srcfolder)- Run
1_Temporal_Clustering.pyto obtain the cluster labels of US counties.- The Clustering labels will be saved to a new custom sheet in the original Excel file.
- Then run
2_FIGINet_Prediction.pyfor model training and result forecasting.- If the user would like to use uni-pretrained models to train FIGI-Net models , please set the parameters
Use_Uni_PretrainedtoTrueandUse_Grained_Pretrainedto**False**. - If the user would like to train all models from scratch, please set the above parameters to
False.
- If the user would like to use uni-pretrained models to train FIGI-Net models , please set the parameters
- Run
-
The forecasting results will be generated in
Resultsfolder
- All the Covid-19 Confirmed Data of US Counties are from Center for Systems Science and Engineering (CSSE) at Johns Hopkins University.
- The
libfolder includes all dependencies required for the FIGInet workflow. - All trained models are saved to the
Modelfolder. - The raw error data, consisting of the RMSE and RRMSE values of evaluated models, have been added to the
Datafolder for comparison and analysis.
@article{Song2025FIGINet,
author = {Song, Tzu‑Hsi and Clemente, Leonardo and Pan, Xiang and Jang, Junbong and Santillana, Mauricio and Lee, Kwonmoo},
title = {Fine‑grained forecasting of COVID‑19 trends at the county level in the United States},
journal = {npj Digital Medicine},
volume = {8},
number = {1},
pages = {204},
year = {2025},
doi = {10.1038/s41746-025-01606-1},
url = {https://www.nature.com/articles/s41746-025-01606-1}
}
If you have any question about the code or paper, please contact Tzu-Hsi.Song@childrens.harvard.edu
