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.
- The original datasets are available here.
- The processed datasets are available in data folder.
To properly run the code, please install the following required packages via:
pip install pykalman
pip install lmfit
- 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
If you have any questions, please contact Geon Lee.