GithubHelp home page GithubHelp logo

safwanshamsir99 / covid-19-lstm-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.67 MB

Trained nearly 700 official data provided by Ministry of Health Malaysia to forecast Covid-19 cases.

Python 100.00%
covid-19 lstm-neural-networks ministry-of-health tensorboard-visualization time-series-analysis

covid-19-lstm-prediction's Introduction

python spyder GitHub NumPy Pandas scikit-learn tf

model_loss

Forecastive Time-Series Model using Deep Learning of LSTM for Covid-19 Cases in Malaysia.

Trained nearly 700 official data provided by Ministry of Health Malaysia to forecast Covid-19 cases.

Description

  1. The project's objective is to forecast the Malaysia's Covid-19 cases trend.
  2. The data is provided through an official GitHub page by Ministry of Health (MoH) Malaysia. The link to the GitHub page will be provided in the credit section below.
  3. The dataset contains anomalies such as 2 different types of NaNs (which imputed by using df.interpolate()), but no duplicate data.
  4. The layers used for the deep learning model are consist of only three layers, input layer, LSTM layer and output layer.

Deep learning model images

model_architecture

Results

Training Loss:

model_loss

Training MAPE:

model_mape

Model Score:

model_score

Malaysia's Covid-19 Cases Trendline:

model_score

Discussion

  1. The model is able to predict the trend of the Covid-19 cases in Malaysia.
  2. Mean absolute error(MAE) and mean squared error(MSE) report 4.18% and 0.47% respectively when tested using the testing dataset.
  3. Based on the Loss graph displayed using Tensorboard, loss occured during the dataset training is nearly 0% with a high amount of epochs (1000).

tensorboard

  1. The deep learning model used only 3 layers; input layer, LSTM layer and output layer. The number of nodes was set to 15, and the dropout rate was set to 0.03. Rectified linear unit (ReLU) was used as an activation function.
  2. Based on the mean absolute percentage error(MAPE) which around 0.08%, this model can be considered as successful as it can predicted the trendline of Covid-19 cases in Malaysia.

Credits:

The source of the dataset is obtained from GitHub page of Ministry of Health (MoH) Malaysia. Check out the latest dataset by clicking the link below. ๐Ÿ˜„

Dataset link

Covid-19 Cases in Malaysia

covid-19-lstm-prediction's People

Contributors

safwanshamsir99 avatar

Watchers

 avatar

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.