Author:
- Irwan Sanjaya (A1341666)
- Alan Luthfi (M0040339)
- Aknanta Akmal (C1751816)
- Rizaldo Rizky Himawansah (A0040344)
- Itania Widyanti Rahayu (M1161487)
We will use Vaccination dataset from https://corona.jakarta.go.id/id which is a institution in Jakarta that monitoring vaccination process in Jakarta. You can find the dataset in here
import file csv from google drive, dataset has been uploaded to google drive and need to be downloaded to jupyter notebook.
using pandas libraries to laod csv file to make it as dataframe
for machine learning model we use "vaksinasi 1 total" column as dataset
split dataset from value of "vaksinasi1 total" column to 80% training and 20% as test
training a machine learning model requires the data to be in {features,target} format. so, this will need to convert the given data into this format using TimeSeriesGenerator.
using architecture of LSTM units trained using sgd optimizer and Mean Squared Loss function for 100 epochs. using model.fit_generator() because already created a data generator.
The layer are starts from LSTM Layer which consist of input data time_step same as look_back and input unit of 1. The dense layer Perform matrix multiplication to result in an output matrix with a desired last dimension to be 1.
After training model, let see if it performed well. testing the model on testing data and see if the prediction and the actual values overlap, then plot it.
Saving the prediction result, data train, and data test as json, to be deployed by cloud computing and accessed by android
Android application that display a machine learning model that can predict how long it will take for the vaccination target number to be achieved. The data is from web API.
Libraries used:
- Retrofit: https://github.com/square/retrofit
- GSON: https://github.com/google/gson
- Spark from Robinhood: https://github.com/robinhood/spark
- Ticker from Robinhood: https://github.com/robinhood/ticker
Vaxi application can be download and develop in Android Studio.
First step is to design the UI/UX of the app, we decided to show the vaccination data in the form of a graphic and also numbers. Our apps is simple and only consist of homepage.
Next step to realize the UI/UX design into android application layout in Android Studio. We use text view to display number of texts, sparkview (a library by robinhood) to display the graph, radiogroup and radiobutton to display the selection between data, and tickerview (library develop by robinhood) to show animation in the textview. For now we only focus on the main features of the apps, to show the vaccination prediction.
First, we retrieve the API using Retrofit and GSON. And then we call the data in the Main Activity. We also code the adapter for the SparkView, so it will show the correct data according the user selection. We also add scrubbing feature, so the user can view the data in different dates by scrub the graph. For the appearance, we also edit the graphic line color by selection. And also add the tickerview code to show animation in the textview. This app can display the vaccination prediction data based on user selection in the form of graph. Here is the some images of how our application looks like.