Skip to content

Source code for the PLOS ONE (2022) and epiDAMIK@KDD 2021 paper "Simple Epidemic Models with Segmentation can be Better than Complex Ones."

Notifications You must be signed in to change notification settings

geon0325/covid_segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Epidemic Models with Segmentation Can Be Better than Complex Ones

Source code for the PLOS ONE (2022) paper Simple Epidemic Models with Segmentation Can Be Better than Complex Ones, Geon Lee, Se-eun Yoon, Kijung Shin. This was also presented in epiDAMIK workshop in KDD 2021.

Datasets

  • The original datasets are available here.
  • The processed datasets are available in data folder.

Requirements

To properly run the code, please install the following required packages via:

pip install pykalman
pip install lmfit

Running Demo

  • There are 10 different runtypes which can be set in run.sh:
1.  Fitting using LLD/NLLD (our segmentation scheme)
2.  Fitting using LLD/NLLD (single segmentation)
3.  Fitting using LLD/NLLD (incremental segmentation)
4.  Forecasting using LLD/NLLD (our segmentation scheme)
5.  Forecasting using LLD/NLLD (single segmentation)
6.  Fitting with SIR (our segmentation scheme)
7.  Fitting with SIR (single segmentation)
8.  Fitting with SIR (incremental segmentation)
9.  Forecasting with SIR (our segmentation scheme)
10. Forecasting with SIR (single segmentation)
  • For runtypes 1, 2, 3, 4, and 5, execute:
./run.sh [runtype] [country] [output directory] [LLD or NLLD] [latent dimension k] [error rate (only for runtype 3)]
e.g., ./run.sh 1 japan ./ NLLD 3
  • For runtypes 6, 7, 8, 9, and 10, execute:
./run.sh [runtype] [country] [output directory] [SIR] [error rate (only for runtype 8)]
e.g., ./run.sh 6 japan ./ SIR

Contact Information

If you have any questions, please contact Geon Lee.

About

Source code for the PLOS ONE (2022) and epiDAMIK@KDD 2021 paper "Simple Epidemic Models with Segmentation can be Better than Complex Ones."

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published