Evaluating the efficacy of univariate LSTM approach for COVID-19 data prediction in Indonesia

Tegar Arifin Prasetyo, Joshua Pratama Silitonga, Matthew Alfredo, Risky Saputra Siahaan, Roberd Saragih, Dewi Handayani, Rudy Chandra


The coronavirus disease 2019 (COVID-19) pandemic, originating in 2020, has emerged as a critical global issue due to its rapid and widespread transmission. Indonesia, among the affected nations, has taken measures to address the situation, including the development of a deep learning model for predicting future COVID-19 infection and spread. This predictive tool serves as a valuable reference for the government and stakeholders, aiding them in making informed decisions and implementing appropriate measures to contain the virus. The deep learning model employs the long short-term memory (LSTM) algorithm, chosen for its ability to recognize temporal patterns in the country’s COVID-19 data. The model creation process involves data collection, preprocessing, model architecture planning, modeling, training, and evaluation. Two LSTM models were developed: a univariate and a multivariate model. Following thorough training and evaluation, the univariate model emerged as the superior choice, boasting evaluation metrics of 16.72 for mean absolute percentage error (MAPE) and 66.36 for root mean squared error (RMSE). This model was then deployed on a publicly accessible website, presenting visualizations of past COVID-19 data and predictions of future cases through line graphs. This user-friendly platform enables the public to access and analyze the data easily.


COVID-19; Deep learning; Long short-term memory; Multivariate model; Prediction; Univariate model

Full Text:


DOI: http://doi.org/10.11591/ijeecs.v34.i2.pp1353-1366


  • There are currently no refbacks.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

The Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES) in collaboration with Intelektual Pustaka Media Utama (IPMU).

shopify stats IJEECS visitor statistics