Skip to content

debayanLab/covidPredictions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alternative Approaches for Modelling COVID-19: High-Accuracy Low-Data Predictions

Numerous models have tried to predict the spread of COVID-19. Manyinvolve myriad assumptions and parameters which cannot be reliably calculated undercurrent conditions. We describe machine-learning and curve-fitting based models usingfewer assumptions and readily available data

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

For running the python files, you will need to install pandas, numpy, SciPy and sklearn and seaborn libraries. You may install them via an Anacondo distribution or simply use the following in the project directory (preferrably in a virtualenv)

pip install <library name>

Files

  • ActiveFromDeath.py, ActiveFromDeathByState.py - Python files, for curve-fitting and predicting the actual number of COVID-19 infections. To run them on updated data and parameters, change the following section in the code:
# SET THESE PARAMETERS ACCORDINGLY

ifr = 0.41
offset = 23
min_death_fact = 1.5
max_death_fact = 4
death_fact = (max_death_fact + min_death_fact)/2

data = pd.read_csv("owid-covid-data.csv") # Data Course: OWID
india_combined = data.loc[data["iso_code"]=="IND",("date","total_cases","total_deaths")]  # For any other country, replace "IND" with respective country code
  • CovidByStateIndia.java - Java file for cumulative prediction of cases in Indian districts. To update parameters set the parameters on lines 313 and 314
double x = (cases_and_projections.size() + i - 70) / (4.65 * x_not);
y[i] = Math.round (1180 * mean * sigmoid(x)) - 5100;
  • CountryAndStatePredictions.java - Java file for prediction of cases in US States; European countries like the UK, France, and Germany. To update parameters set the parameters on lines 95 and 96
double x = (n + 0.5 * i - 70) / (x_not);
y[i] = Math.round (9 * mean * sigmoid(x)) + 94400;

Miscellaneous Links

National Prediction:https://www.overleaf.com/project/5ea933d883635f0001df191a All training data from covid19india.org and verification data from worldometer.

Google Sheets (25 US States) May 25 onwards: https://docs.google.com/spreadsheets/d/19kGvj9H35VDPCbgKrWeobHbZjOqNprcmMWCL_wjtr4E/edit?usp=sharing

Google Sheets (3 European Countries) July 10 onwards: https://docs.google.com/spreadsheets/d/1miyKh4MWrgUZM75j3y1bQpSuXIaRv_SXYi2Fc_ZSQ8Q/edit?usp=sharing

Google Sheets made to track CFR fluctuations (compiled till May 10th) : https://docs.google.com/spreadsheets/d/1OijyFvOldjteY_3OFgU1Rr_azDGOhm0Zk2rjbDoKvWE/edit?usp=sharing

A simple back-calculation example : https://www.telegraphindia.com/india/coronavirus-outbreak-what-the-numbers-reveal/cid/1771525#.XrYWo77Qbsg.facebook

All data from https://ourworldindata.org/coronavirus

An article very similar to our CFR paper : https://science.thewire.in/the-sciences/covid-19-pandemic-case-fatality-rate-calculation/

Deaths using Active Cases is surprisingly related using a quadratic with a Rsq of 0.998 ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published