Giter Site home page Giter Site logo

yijunwang0805 / covid-19 Goto Github PK

View Code? Open in Web Editor NEW
65.0 6.0 19.0 634 KB

COVID-19 infectious forecasting using SEIR model and R0 estimation

Jupyter Notebook 100.00%
ncov-2019 novel-coronavirus-2019 novel-coronavirus wuhan-coronavirus sars-cov-2 covid-19 seir forecasting-model

covid-19's Introduction

Jan 2020

Herd Immunity Model

Model 1: Estimation of R0

  • Purpose

    • Estimate the value of basic reproduction number
  • Usage

    • Download my Jupyter notebook file: Estimation of R0.ipynb.

    • R0Func() is the function that calculates the basic reproduction number. Its inputs are the number of confirm cases, the number of suspect cases, and days t since the start of the epidemic. Here, we use the December 1st, 2019 as the start of the epidemic, which is the first nCoV case reported.

  • Summary

    • This study seeks to estimate the basic reproduction number by deriving R0 from the SEIR model. As of 2020-02-14, R0 is estimated to be 2.41.
  • Model

                   where,

                   lambda is the growth rate of estimated infectious

                   rho is the ratio of latent period over generation period.

Model 2: Forecasting Using SEIR model

  • Purpose
    • Forecast the SARS-CoV-2 epidemic peak time in metropolis by applying a deterministic SEIR metapopulation transmission model
  • Usage
    • Download my Jupyter notebook file: SEIR.ipynb.

    • R0Func() is the function that calculates the newest basic reproduction number given up to date statistics. Its inputs are the number of confirm cases, the number of suspect cases, and days t since the start of the epidemic. Here, we use the December 1st, 2019 as the start of the epidemic, which is the first nCoV case reported.

    • SEIR() is the epidemic model that describes the system of differential equations.

    • betaFunc() and gammaFunc() calculate the value of transmissibility and removal rate, respectively.

    • spi.odeint() solves the system of differential equations. Its inputs are the epidemic model SEIR(), initial value of susceptible, exposed, infectious, removal INI, and the number of days since the epidemic Time

    • Please note the several assumptions will limit the use of this model, for instance, assumption of consistent behaviors before and during the epidemic means that people do not implement social or non-pharmaceutical intervention.

  • Summary
    • This study seeks to forecast the peak time of SARS-CoV-2 cases. We find, under the assumptions of no quaratine intervention, Wuhan reach peak infection March 3, 2020; Beijing, Shanghai, and Guangzhou would each peak infection in the middle of May.
    • Sensitivity analysis shows that reducing half of the number of catchment size and the reproductive number would reduce the magnitude of epidemic by more than 60%, while lengthening the peak to June and duration of the epidemic to August.
  • Model
    • A typical SEIR (susceptible, exposed, infectious, removed) model can be described as a system of differential equations

                  

                   where,

                   S(t) is the number of susceptible at time t

                   E(t) is the number of exposed at time t

                   I(t) is the number of infectious at time t

                   R(t) is the number of removed, which includes the number of recovered and dead at time t

                   N(t) is the population at time t

                   N(t) = S(t) + E(t) + I(t) + R(t)

Model 3: MCMC under spatial SEIR (In progress)

  • Use Metropolis-Hastings-based Markov chain Monte Carlo (MCMC) to estimate the parameters of the spatial SEIR model

Model 4: Impact on Economic Growth (In progress)

  • A panel approach for external shock:
    • exploiting the dependence among cross-sectional units to construct the counterfactuals?
  • IV?

Model 5: LSTM and ARIMA short-term forecasting (In progress)

Model 6: Oversea Estimation: Possibility of Recovered Back to Infectious (In progress)

Special Thanks to

covid-19's People

Contributors

yijunwang0805 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

covid-19's Issues

Is SEIR a transport equation?

A typical SEIR (susceptible, exposed, infectious, removed) model can be described as a system of differential equations

I am curiosity to know what kind of equation you are trying to study.

Can I rewirte your equation into this equation?

To Do

  • bayesian: beta complies a Poisson distribution
  • use research estimated outbreak size and outbreak date for all the other cities

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.