Giter Club home page Giter Club logo

pycovid's Introduction

PyCovid

A ML based model to predict the COVID-19 growth using historical data from existing countries

Attempt 1

First attempt to predict the growth was by using fbProphet. However, since the scale of data was too small, accurate results were not obtained. A linear increment was predicted, and clearly it was not the case.

Attempt 2

The second attempt was by using LSTM networks in Tensorflow to predict data. Such a network needed to be trained first. The WHO dataset https://covid.ourworldindata.org/data/full_data.csv was used. The dataset consisted of time-series growth rates of various countries. We tried using the data from China for training. However, it consisted of outliers and the records are available when the growth was at an advanced stage in China. Therfore the results were not satisfactory.

Attempt 3

After noticing similar patterns of growth in early stage in various countries, including India, countries like Austria, Czech Republic were used to train the model. Of them Germany yielded the best results. Loss during training was in ranges of 4.2715e-05and Root Mean Square Error (RMSE) in ranges of 40s. The prediction was spot on.

Results

Growth Prediction for the next 7 days

LSTM based predictions are not suitable for predicting farther time ranges. I have hereby listed for the next 6 days.

The next 6 days (21-03-2020 to 26-03-2020)

Date Total Cases
21-03-2020 277
22-03-2020 324
23-03-2020 360
24-03-2020 383
25-03-2020 397
26-03-2020 405

If the preventive measures taken were not effective in the last 20 days, the growth will cross 400 within a week

pycovid's People

Contributors

varghese-ascalonic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jun2018cn

pycovid's Issues

Can't reproduce results

  • On running the same code, the results are not reproducible

Screenshot_2020-03-18 Coronna virus Kerala Kaggle

Please clarify if this is the exact code, or have I missed something

  • Your models look pretty basic, it's hard to believe you can predict with so less data and simple model

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.