Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Time series forecasting of COVID-19 infections and deaths in Alpha and Delta variants using LSTM networks

  • Farnaz Sheikhi ,

    Roles Conceptualization, Investigation, Methodology, Project administration, Supervision, Validation, Writing – original draft, Writing – review & editing

    f.sheikhi@kntu.ac.ir

    Affiliation Faculty of Computer Engineering, K. N. Toosi University of Technology, Tehran, Iran

  • Zahra Kowsari

    Roles Conceptualization, Data curation, Formal analysis, Visualization, Writing – original draft

    Affiliation Faculty of Computer Engineering, K. N. Toosi University of Technology, Tehran, Iran

Abstract

Since the beginning of the rapidly spreading COVID-19 pandemic, several mutations have occurred in the genetic sequence of the virus, resulting in emerging different variants of concern. These variants vary in transmissibility, severity of infections, and mortality rate. Designing models that are capable of predicting the future behavior of these variants in the societies can help decision makers and the healthcare system to design efficient health policies, and to be prepared with the sufficient medical devices and an adequate number of personnel to fight against this virus and the similar ones. Among variants of COVID-19, Alpha and Delta variants differ noticeably in the virus structures. In this paper, we study these variants in the geographical regions with different size, population densities, and social life styles. These regions include the country of Iran, the continent of Asia, and the whole world. We propose four deep learning models based on Long Short-Term Memory (LSTM), and examine their predictive power in forecasting the number of infections and deaths for the next three, next five, and next seven days in each variant. These models include Encoder Decoder LSTM (ED-LSTM), Bidirectional LSTM (Bi-LSTM), Convolutional LSTM (Conv-LSTM), and Gated Recurrent Unit (GRU). Performance of these models in predictions are evaluated using the root mean square error, mean absolute error, and mean absolute percentage error. Then, the Friedman test is applied to find the leading model for predictions in all conditions. The results show that ED-LSTM is generally the leading model for predicting the number of infections and deaths for both variants of Alpha and Delta, with the ability to forecast long time intervals ahead.

1 Introduction

Since December 2019 that an unknown devastating virus of the family of Coronavirus emerged, the whole world has been struggling to survive from the extreme circumstances. The new Coronavirus (2019-nCoV) can spread via airborne particles and droplets, and can cause severe lung involvement leading to death. On January 30, 2020, the World Health Organization (WHO) declared this outbreak, a Public Health Emergency of International Concern (PHEIC), and on February 11, 2020, WHO named this virus COVID-19. Soon after, on March 11, 2020, WHO declared it a pandemic [1]. The steep increase in the number of infections and deaths due to COVID-19 has made analysis on the transmission rate, algorithmic preventive solutions, and forecasting the statistics crucial to help decision makers to control the virus. Neither vaccines nor treatments were discovered at the early stage of COVID-19. Hence, preventive strategies such as travel bans, lockdowns, and quarantining suspected cases of COVID-19 received considerable attention [2, 3]. COVID-19 has mutated several times since its initiation, and different variants of the virus have arisen so far [4]. One of the most important differences in characteristics of COVID-19 variants is their transmissibility. The transmissibility of an infectious disease is usually measured by estimation of the basic reproduction number (R0). The basic reproduction number (R0) of an infectious disease is defined as the average number of secondary infections caused by a primary infection in a fully susceptible population [5, 6]. On January 23, 2020, WHO estimated R0 of COVID-19 to be in the range of 1.4–2.5. Following studies estimated R0 of COVID-19 from January 1 to February 7, 2020 to be in the range of 1.4–6.49 with a mean of 3.28 and a median of 2.79 [7]. Later studies focused on estimating R0 of variants of COVID-19.

Several variants of COVID-19 have been reported so far, where Alpha and Delta variants are the most notable ones to compare according to the transmissibility, severity of symptoms, and effectiveness of vaccines [8]. Alpha variant of COVID-19, which is also known as B.1.1.7 variant, was designated on December 8, 2020 in the United Kingdom [8]. The common symptoms of Alpha variant include cough, loss of smell and taste, fever, and muscle aches [9, 10]. The transmission rate of this variant has been increased by 43 to 90% compared to the initial COVID-19 generation [11]. The basic reproduction number (R0) of Alpha variant is measured during its activation period ranging from 2.2 to 6.1 in different countries and continents [1114]. The efficiency of one dose of vaccines is reported 29.5% in the lowest and 88.1% in the highest case against Alpha variant [12, 15, 16]. Moreover, the efficiency of two doses of vaccines is in the range of 74.5% to 100% against this variant which approves the positive effect of vaccination [12, 1517].

Delta variant, which is also known as B.1.617.2 variant, is another type of Variants of Concern (VOC), first found in October 2020 in India [8]. Cough and loss of smell are less reported in this variant, while cold-like symptoms including headache, sore throat, and a runny nose are more frequent in Delta variant in comparison to Alpha variant [9, 10]. Delta variant is more aggressive and transmissible than Alpha variant by 60%, with increased risk of hospitalization and death [18, 19]. The basic reproduction number (R0) of Delta variant is estimated in the range of 3.2–8 [13, 20]. The efficiency of one dose of vaccines against Delta variant is far from Alpha variant. It is shown that one dose of vaccines only provides 30.7% immunity against Delta variant [21]. However, having received the second dose of vaccines, the effectiveness of vaccines against Delta variant will increase to 88% [21]. Therefore, the findings support uptake of at least two vaccine doses to overcome Delta variant [21].

In Iran, COVID-19 was designated on February 19, 2020, when the Health Organization of Iran announced identification of two confirmed cases in the city of Qom [22]. Simultaneously, the Iranian government applied a vast variety of effective preventive strategies such as canceling public events [23], closing educational centers and shopping malls [24], plus setting traffic restrictions to control the spread of the virus. Similar to other countries, Iran also experienced different waves of COVID-19. Alpha variant of COVID-19 got active in Iran during the time interval from February 28 to June 9, 2021. Further, Delta variant was the dominant variant in Iran from June 10 to September 22, 2021. According to WHO website [8], in Asia and the Middle-East and worldwide, Alpha variant was active in the time interval from January 4 to May 15 and Delta variant was active from May 22 to September 22, 2021. Herein, forecasting COVID-19 statistics can help further understanding of nature of the virus and assist governments to tighten or loosen the restrictions. Moreover, it can be useful to plan for the required number of essential medical devises and drugs [25]. To this aim, several approaches like deep learning, linear models and other algorithms have been presented so far to forecast the number of infections and deaths of this ongoing pandemic.

Pinter et al. [26] proposed a Multi-Layered-Perceptron (MLP) integrated with an Imperialist Competitive Algorithm (ICA) for predicting the number of infections and mortality rate of COVID-19 in Hungary. To achieve a more accurate forecast, Zheng et al. [27] designed a hybrid AI model that is a combination of an Improved Susceptible-Infected (ISI) model, the Natural Language Processing (NLP) module, and the Long Short-Term Memory (LSTM) network. This model can predict COVID-19 statistics for the next six days in China.

For the prediction window of ten days in Pakistan, Khan et al. [28] proposed a Vector Autoregressive (VAR) model to predict the number of cases, recoveries, and deaths due to COVID-19 in the time interval from March 8 to June 27, 2020. Bayesian Dynamic Linear Model (BDLM) was also applied to forecast COVID-19 statistics in Pakistan for a longer prediction window of 20 days ahead from March 21 to April 9, 2021, based on the available data [29]. Khan et al. [29] showed in this study that the maximum number of cases, recoveries, and deaths due to COVID-19 in Pakistan during the aforementioned forecast interval would not exceed 4031, 3464, and 81, respectively. For assessing the progress of COVID-19 in Iran, Pakistan, and the neighboring countries, Feroze [30] proposed a Bayesian Structural Time Series (BSTS) model, and compared its predictive power with the Auto-Regressive Integrated Moving Average (ARIMA) models. The results approved superiority of BSTS model over classic ARIMA models.

The Adaptive Neuro-Fuzzy Inference System (ANFIS) and its extensions have shown strength in predicting various infectious diseases. Al-Qaness et al. [31] have provided an improved version of ANFIS by applying the Flower Pollination Algorithm (FPA) and the Sine Cosine Algorithm (SCA) in a model called FPASCA-ANFIS. The proposed FPASCA-ANFIS model was used to predict the weekly number of influenza cases in China and USA, which produced remarkable results. Performance of ANFIS was further examined for predicting the statistics of COVID-19 in different geographical regions. An improved version of ANFIS using a new nature-inspired optimizer, called Marine Predators Algorithm (MPA), was used to predict the number of infections in the countries of Italy, Iran, Korea, and USA [32]. ANFIS was further merged with the Salp Swarm Algorithm (SSA) and FPA to forecast the number of COVID-19 infections in China [33]. A combination of ANFIS with the chaotic MPA showed strength in COVID-19 predictions in Russia and Brazil [34].

Ayoobi et al. [35] forecasted the number of COVID-19 infections and deaths using six different deep learning methods. The methods include LSTM, Convolutional LSTM (Conv-LSTM), Gated Recurrent Units (GRU), and their bidirectional extensions. These methods were tested on COVID-19 datasets of Australia and Iran for predicting COVID-19 statistics for the next, the next three, and the next seven days. Dataset of Australia was studied in the time interval from January 25 to August 19, 2020 and dataset of Iran was considered in the time interval from January 3 to October 6, 2020. The results showed that in predicting the number of infections for the next day in Australia, LSTM and Bi-GRU have the best performance. However, for the next three, and next seven days, Conv-LSTM and Bi-Conv-LSTM outperform the other methods. In Iran, Bi-GRU showed better performance for predicting the number of confirmed cases for the next day, and the next three days while Bi-Conv-LSTM was better for predicting the next seven days. The results were slightly different for predicting the number of deaths. In predicting the number of deaths for the next day, Bi-GRU had the best performance in both countries of Iran and Australia. For the next three days, GRU was the superior model in predictions for Australia while Bi-Conv-LSTM was better for Iran. In predicting the next seven days, Bi-Conv-LSTM was still better for Iran while LSTM outperformed the other methods for the dataset of Australia.

Kafieh et al. [36] studied Random Forrest (RF), MLP, and various versions of LSTM such as LSTM with Regular Features (LSTM-R), LSTM with Extended Features (LSTM-E), and Multivariate LSTM (M-LSTM) to forecast COVID-19 statistics in the countries of China, Germany, Iran, Italy, Japan, Korea, Switzerland, Spain, and the USA. The time interval considered for evaluation was from January 22 until August 31, 2020. The results showed that M-LSTM outperformed the other models in the aforementioned countries.

Focusing on the factors such as age and facilities, ArunKumar et al. [37] proposed an RNN-LSTM and an RNN-GRU model to forecast the number of COVID-19 infections, recoveries, and deaths in the top ten countries based on the cumulative number of infections until August 2020. These countries were USA, Brazil, India, Russia, South Africa, Mexico, Peru, Chile, United Kingdom (UK), and Iran. The results showed that for predicting the number of confirmed cases and deaths, LSTM had achieved better results in the majority of these countries. For the recovered cases, GRU had better results for the majority of countries.

Kirbaş et al [38] provided a comparative analysis of effectiveness of ARIMA, Nonlinear Auto-Regression Neural Network (NARNN), and LSTM in forecasting the number of COVID-19 cases in eight European countries including Denmark, Belgium, Germany, France, United Kingdom, Finland, Switzerland, and Turkey. The time interval considered was from the first day of designation of COVID-19 in each of these countries until May 3, 2020. Comparison of the results showed that the dominant model was LSTM. LSTM also worked well for predicting the number of infections in Canada [39].

Verma, Mandal, and Gupta [40] examined the power of vanilla LSTM, stacked LSTM, Encoder Decoder LSTM (ED-LSTM), Bi-LSTM, Convolutional Neural Network (CNN), and hybrid CNN-LSTM models in forecasting the number of infections for the next 7, 14, and 21 days in India and its four most affected states. Among the aforementioned models, stacked LSTM and hybrid CNN-LSTM models showed a better performance in the majority of states on the dataset updated by July 10, 2021. Chandra, Jain, and Singh Chauhan [41] studied the power of LSTM, Bi-LSTM, and ED-LSTM in forecasting the number of COVID-19 infections for two months ahead (October and November 2021) in the top ten states of India (in terms of the number of infections). The results were slightly different for states with different population densities and cultures. However, ED-LSTM generally showed the best performance for predictions in states of India. Examining the power of this model in predicting COVID-19 statistics in other geographical regions was recommended for further research.

Although a deep body of research has been devoted to the study of COVID-19 and predicting its statistics since the designation of this virus, variant by variant, the virus has surprised researchers by proposing different behavior, structure, transmissibility, hospitalization, and mortality rate. Recent variants of COVID-19 have even shown immunity evasion in vaccinated people [42]. This empowers the assumption that although these variants have all inherited the main characteristics of the virus, each can have independent characteristics as well. Hence, in this paper, our goal is to examine the power of LSTM networks- namely, ED-LSTM, Bi-LSTM, Conv-LSTM and GRU- in predicting the number of infections and deaths in the two noticeably different variants of COVID-19: Alpha and Delta variant. Moreover, we have studied the effect of different geographical regions in terms of size, population, and cultural diversities on the predictive power of the models. We have considered geographical regions in the scale of a country (Iran), a continent (Asia), and the whole world for this analysis. To the best of our knowledge, this is the first time that these factors are put together to evaluate the performance of LSTM networks in the predictions. The results of this study can provide a broader vision on characteristics of the unknown nature of COVID-19 virus, and the possible future outbreaks related to the Coronavirus. This can help decision makers, medical manufacturing companies, and healthcare systems to be prepared with the sufficient quantity of human resources, medical devices, and infrastructures to react rapidly and efficiently against outbreaks of similar type.

The rest of the paper is organized as follows. In Section 2, datasets are introduced. Descriptions of details of the models ED-LSTM, Bi-LSTM, Conv-LSTM, and GRU are provided in Section 3. The evaluation metrics are explained in Section 4. Section 5 presents the results of the study. Section 6 provides a detailed analysis of the results and comparison of the models based on the geographical regions and variants. Finally, Section 7 concludes the paper, and presents recommendations for the future work.

2 Data

There are two datasets used in this paper to obtain the number of infections and deaths in the country of Iran, continent of Asia and the Middle East, and worldwide in the time intervals when Alpha and Delta variants of COVID-19 were the dominant variants. COVID-19 statistics of Iran for Alpha variant (Feb. 28—Jun. 9, 2021) and Delta variant (Jun. 10—Sept. 22, 2021) were obtained from the formal announcements of the Ministry of Health and Medical Education of Iran, published in the Iranian Students News Agency (ISNA) website [43]. COVID-19 statistics of the continent of Asia and the Middle East in Alpha and Delta variants were collected from the WHO website [44]. This site also provides worldwide cumulative number of cases and deaths in Alpha variant (Jan. 4—May 15, 2021) and Delta variant (May 22—Sept. 22, 2021). The beginning and the end of each time interval is determined based on the reports of WHO website [8]. According to the conducted studies [45], duration of the dominance of Delta variant has been longer than Alpha variant all over the world due to the different structure of this variant. Further, the active period of Alpha and Delta variants worldwide is longer than Iran due to differences in strictness of the preventive strategies such as remote working and social distancing in various countries and different vaccination rates. Hence, the time interval in which these variants were dominant in each of the target geographical regions is considered for the analysis.

One of the challenges to work with COVID-19 datasets is presence of remarkable noise in the daily statistics. This inaccuracy in the reported statistics is dependent to several factors such as unavailability of the sufficient number of diagnostic kits for a specific day, inherent error of the kits, and the failure to correctly record the date of illness due to holidays or late visit to the healthcare system. Hence, a currently infected person may be enumerated in the statistics of few days later. Thus, working with daily COVID-19 statistics is not quite reliable. For this reason, we have used the cumulative number of infections and deaths in this paper to lessen the effect of inaccuracy of the data in comparison of the predictive power of the models. The datasets are divided into a training set (75% of data) on which our models are trained, and a test set (25% of data). Further, 20% of the training set is used for validation. After choosing the best model in each of the geographical regions, to show generality of the models, we have forecasted the emergence of a new wave after Alpha and Delta variants; See Section 6. To this aim, we have worked on the daily statistics of COVID-19. In this case, to ignore the sudden fluctuations in the daily statistics, we have smoothed out these datasets by using the centered moving average method.

3 Methods

3.1 LSTM and Encoder Decoder LSTM

The famous Recurrent Neural Network (RNN) is a type of artificial neural network that allows use of previous outputs as input of the current step by providing back-propagation. Despite strength of RNNs, the problem of vanishing gradient prevents these networks from learning long-term dependencies. The most effective solution to tackle this issue is to use memory cells in Long-Short Term Memory (LSTM) networks. LSTM is a type of RNN that is able to add or remove information to the cell state via three multiplicative gates: input gate, output gate, and forget gate. For the current input xt and historical information ht−1 coming from the previous step, forget gate ft decides which information should be thrown away (forgotten) from the cell state. This decision is made by a Sigmoid layer, denoted by σ. On the other hand, the input gate it decides which information should be stored (remembered) in the cell state. The Sigmoid layer decides the values to be updated while tanh layer weighs these values to be added to the state . Now, it is time to update the previous cell state ct−1 to the new cell state ct by combining the values generated in the forget gate and input gate. The output gate ot, which is the last gate in the architecture, decides which should be given as output. This gate also has a Sigmoid layer for selection and a tanh layer to produce the final output. See Fig 1(a). The corresponding equations are as follows.

Encoder Decoder LSTM (ED-LSTM) is the combination of an encoder and a decoder where both the encoder and decoder are LSTMs. Herein, an encoder LSTM reads the input and summarizes it into state vectors. These state vectors are then fed into a decoder LSTM to generate the output. This model is used in multi-step time series predictions when the length of input and the length of output are different [46].

3.2 Bidirectional LSTM

Bidirectional LSTM (Bi-LSTM) is an extension of the traditional LSTM with the capability of running inputs in both forward and backward directions. Namely, in a Bi-LSTM, apart from a regular LSTM, there exists a complementary LSTM layer to process the information backwards. This bidirectional processing increases the amount of information available to the network. Fig 1(b) illustrates architecture of a Bi-LSTM.

3.3 Convolutional LSTM

Convolutional LSTM (Conv-LSTM) is a combination of Convolutional Neural Networks (CNNs) and LSTMs. In this architecture, CNN layers are used for feature extraction, and LSTM layers are used for sequence prediction. The mathematics behind a Conv-LSTM are very similar to an LSTM except addition of the convolution operator *:

3.4 Gated Recurrent Unit

Gated Recurrent Unit (GRU) is an improvement over LSTM with fewer parameters and operations. To solve the vanishing gradient problem without the overhead of standard LSTMs, GRU uses only two gates: update gate and reset gate. The update gate decides which amount of the past information should be passed to the future. This way, any feature which is recognized important, can be retained without being overwritten or lost. Then, this gate creates shortcuts to skip through several time steps and overcome the vanishing gradient problem. Indeed, the update gate in a GRU is a combination of the input gate and the forget gate in an LSTM. The other gate, namely the reset gate in GRU, is used to decide how much of the past information should be forgotten. Fig 2 illustrates architecture of a GRU. The mathematics behind GRU come next. Where xt and ht are the input and the output vector, respectively. Candidate activation vector is denoted by . The operator ⊙ represents the Hadamard product. The update gate vector and the reset gate vector is respectively denoted by zt and rt. Finally, W, U, and b represent parameter matrices and a vector.

4 Evaluation metrics

To compare the performance of the aforementioned networks, we have used the following three evaluation metrics: Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE).

RMSE is one of the popular evaluation metrics to assess the quality of forecasting models. It measures the standard deviation of the prediction errors, and can be used as an important criterion to specify the best forecasting model. Eq 1 provides a detailed definition of this evaluation metric. Squaring the prediction errors, RMSE highlights large errors. However, in MAE, prediction errors are not weighted. The MAE measures the average of the absolute prediction errors, as described in Eq 2. MAPE measures the percentage of relative errors, defined in Eq 3. This way, a unitless measure will be obtained that is suitable for reporting the results. Considering these three metrics provides a comprehensive comparison of the forecasting models. (1) (2) (3)

In Eqs 1, 2 and 3, n is the size of the dataset under study, yt denotes the actual value, and denotes the predicted value.

5 Results

The proposed models are implemented in Python programming language using Jupiter Notebook app, run on a Lenovo Z400 touch, with 8GB RAM, 1TB SSD, Intel Core i7-3632QM 2.20GHz Quad-Core CPU, and Windows 10. Predictions of the models have been repeated 100 times, and the one with the least prediction error is taken.

ED-LSTM, Bi-LSTM, Conv-LSTM, and GRU models are used to predict the number of infections and deaths in Alpha and Delta variants of COVID-19 for several time steps ahead. Performance of these models in predictions are also evaluated in different geographical regions: country of Iran, continent of Asia and the Middle East, and the whole world. The architecture of our ED-LSTM includes two-encoder and two-decoder layers with 100 LSTM units in each layer. Adam optimizer is used with Huber loss function. Moreover, since the output size of the encoder and the input size of the decoder are different, a RepeatVector layer is added for the connection. Our Bi-LSTM has an input layer with 150 LSTM units plus two hidden layers with 128 LSTM units. The architecture of our Conv-LSTM includes a single layer Conv-LSTM with 64 filters. The architecture of our GRU includes an input layer with 64 neurons and a hidden layer with the same number of neurons. Adam optimizer is used in the last three models with the mean squared error as the loss function.

In our ED-LSTM, Bi-LSTM, and GRU, we have considered the sequence size to be five. Hence, these models take every five days as the input and forecast the next three, the next five, and the next seven days. The forecasting time windows are the same for Conv-LSTM, with the difference that the sequence size in Conv-LSTM is four. It should be noted that the number of neurons in the output layer of each network varies between three, five, and seven, according to the aim of prediction. Further, 75% of the data is used to train, and 25% of data is used for test. Moreover, 20% of the training data is used for validation. The number of epochs to be considered is 100.

To provide a comprehensive comparison of performance of the proposed models in predicting the number of infections and deaths, RMSE and MAPE are calculated and reported in Tables 13. Fig 3 illustrates the graphical diagram of MAE for the proposed models. Moreover, Fig 4 depicts the share of each of the proposed networks in predictions with the least error.

thumbnail
Fig 3. Graphical diagram of MAE corresponding to predicting the number of infections and deaths for the next three, the next five, and the next seven days of Alpha and Delta variants of COVID-19.

Top down: the first row is corresponding to the MAE for predictions in the whole world, the second row is corresponding to the MAE for predictions in the continent of Asia and the Middle East, and the third row is corresponding to the MAE for predictions in the country of Iran. MAE of ED-LSTM, Bi-LSTM, Conv-LSTM, and GRU is respectively shaded blue, red, green, and purple.

https://doi.org/10.1371/journal.pone.0282624.g003

thumbnail
Fig 4. Share of each network in predictions with the least error.

https://doi.org/10.1371/journal.pone.0282624.g004

thumbnail
Table 1. RMSE and MAPE of predicting the number of infections and deaths for the next three, the next five, and the next seven days of Alpha and Delta variants of COVID-19 worldwide.

https://doi.org/10.1371/journal.pone.0282624.t001

thumbnail
Table 2. RMSE and MAPE of predicting the number of infections and deaths for the next three, the next five, and the next seven days of Alpha and Delta variants of COVID-19 in Asia and the Middle East.

https://doi.org/10.1371/journal.pone.0282624.t002

thumbnail
Table 3. RMSE and MAPE of predicting the number of infections and deaths for the next three, the next five, and the next seven days of Alpha and Delta variants of COVID-19 in Iran.

https://doi.org/10.1371/journal.pone.0282624.t003

In Figs 57, the residual plots corresponding to the predictions with the least error are shown. The residual plot shows the difference between the observed value and the predicted value. In most cases, these deviations are minor and acceptable. However, the longer the forecast period becomes, the more this deviation increases. The histograms and the density diagrams in Figs 57 show that the residuals related to predicting the number of infections and deaths are approximately normally distributed.

thumbnail
Fig 5. The residual, histogram, and density plots corresponding to the best model for predicting the number of infections and deaths in Alpha and Delta variants of COVID-19 in the whole world.

Top down: the first row is corresponding to the number of infections in Alpha variant, the second row is corresponding to the number of deaths in Alpha variant, the third row is corresponding to the number of infections in Delta variant, and the fourth row is corresponding to the number of deaths in Delta variant. Further, from left to right: the second column depicts the residual plots, the third column illustrates the histograms, and the fourth column depicts the density plots.

https://doi.org/10.1371/journal.pone.0282624.g005

thumbnail
Fig 6. The residual, histogram, and density plots corresponding to the best model for predicting the number of infections and deaths in Alpha and Delta variants of COVID-19 in Asia.

Top down: the first row is corresponding to the number of infections in Alpha variant, the second row is corresponding to the number of deaths in Alpha variant, the third row is corresponding to the number of infections in Delta variant, and the fourth row is corresponding to the number of deaths in Delta variant. Further, from left to right: the second column depicts the residual plots, the third column illustrates the histograms, and the fourth column depicts the density plots.

https://doi.org/10.1371/journal.pone.0282624.g006

thumbnail
Fig 7. The residual, histogram, and density plots corresponding to the best model for predicting the number of infections and deaths in Alpha and Delta variants of COVID-19 in Iran.

Top down: the first row is corresponding to the number of infections in Alpha variant, the second row is corresponding to the number of deaths in Alpha variant, the third row is corresponding to the number of infections in Delta variant, and the fourth row is corresponding to the number of deaths in Delta variant. Further, from left to right: the second column depicts the residual plots, the third column illustrates the histograms, and the fourth column depicts the density plots.

https://doi.org/10.1371/journal.pone.0282624.g007

6 Discussion

6.1 Examining the effect of diversity and size of a geographical region in predictions

Iran.

As recorded in Table 3, among the proposed models, Bi-LSTM has achieved the best predictions for the number of infections in Alpha variant of COVID-19 in Iran. In predicting the number of deaths due to this variant, ED-LSTM has outperformed the other models. Considering Delta variant of COVID-19 in Iran, GRU model has outperformed the other models in predicting the number of infections and deaths. ED-LSTM has ranked second in predicting the number of infections and deaths due to Delta variant of COVID-19 in Iran.

Asia and the Middle East.

Considering a larger geographical and more populated area with great diversity in economical and cultural aspects, namely the continent of Asia, ED-LSTM has outperformed the rest of models in predicting the number of infections and deaths in both variants of Alpha and Delta, as shown in Table 2. Bi-LSTM has achieved the second rank in predictions in this geographical region.

World.

Considering the largest geographical area that is the whole world, ED-LSTM has shown great performance in predicting the number of infections and deaths in both variants of Alpha and Delta. See Table 1.

As the results in Tables 1 and 2 indicate, considering large geographical regions with great diversity in infrastructures, economical, and cultural aspects, such as the whole world and the continent of Asia, ED-LSTM networks show great performance in capturing the patterns and predicting the number of infections and deaths in both Alpha and Delta variants of COVID-19. Bi-LSTM achieves the second rank in these predictions, and GRU gets the third rank. The smaller the geographical region under the study gets, the more powerful Bi-LSTM and GRU networks become in predicting the number of infections and deaths. Hence, as shown in Table 3, for the geographical region of the country of Iran, Bi-LSTM and GRU respectively achieves the first and the second rank in predictions. Increasing the prediction time-window from three to seven days, it is natural that the error of prediction increases.

6.2 Examining the effect of structural difference in variants in predictions

Alpha variant.

As recorded in Tables 13, ED-LSTM and Bi-LSTM has respectively achieved the first and the second rank in predicting the number of infections and deaths due to Alpha variant of COVID-19.

Delta variant.

When considering Delta variant of COVID-19, ED-LSTM, Bi-LSTM, and GRU models achieve a slightly different performance in predictions. While ED-LSTM still takes the first rank in predictions, GRU herein gets the second rank in predictions, and Bi-LSTM is ranked third. See Tables 13.

As the results indicate, structural differences in COVID-19 variants can also affect the power of predictions in LSTM networks. Putting these factors all together, next we propose a statistical analysis to specify the best LSTM network for predictions in all conditions, and continue forecasting the statistics of COVID-19 with the winer model.

6.3 Statistical analysis

So far, we have examined the performance of ED-LSTM, Bi-LSTM, Conv-LSTM, and GRU models in predicting the number of infections and deaths due to Alpha and Delta variants of COVID-19, using RMSE, MAPE and MAE evaluation metrics. To provide a general comparison of these models to choose the best model, herein we use the non-parametric statistical test of Friedman test [47]. For this test, the average value of the evaluation metrics are calculated, and then the proposed models are ranked based on this average, using the Friedman test. The results of this ranking are recorded in Table 4.

thumbnail
Table 4. The ranking of LSTM networks in predicting the number of infections and deaths.

https://doi.org/10.1371/journal.pone.0282624.t004

As concluded from the results of the Friedman test in Table 4, ED-LSTM has achieved the first rank for predictions in all conditions, both according to the type of variant and according to the geographical location. We continue forecasting the number of infections and deaths for the next two months with the winning ED-LSTM network.

6.4 Forecasting the future

Using the models that are capable of forecasting the future waves of an infectious disease, we will be prepared to increase the level of safety of people and the society by announcing the necessary warnings and preventive strategies to the people. Policy makers and healthcare managers can further benefit from these statistics by providing necessary facilities and strategies to reduce the peak of the future waves significantly. Due to importance of this issue, in this paper, we have further examined the generality and reliability of ED-LSTM network in forecasting the next wave in two months, following each of Alpha and Delta variants of COVID-19.

The results of forecast are depicted in Fig 8, which clearly show that ED-LSTM networks have the ability to forecast the future waves. There are also cases that the forecasted pick is lower than the actual pick. This resembles the situation in the society that leaving behind a deadly variant, with the decrease in the number of infections and deaths, people neglect following strict health protocols. This general negligence causes the next wave of infections and deaths. Putting these factors all together, we can conclude that the performance of these LSTM networks is acceptable in forecasting the emergence of future waves.

thumbnail
Fig 8. Predicting the number of infections and deaths due to COVID-19 for the next two months following Alpha and Delta variants in the world.

Top down: the first raw is corresponding to the statistics of Alpha variant, and the second raw is corresponding to the statistics of Delta variant. From left to right: the first column is corresponding to the number of infections, and the second column is corresponding to the number of deaths.

https://doi.org/10.1371/journal.pone.0282624.g008

7 Conclusion

Rapid spread and invasion of COVID-19 worldwide have emphasized the importance of designing models for predicting the epidemiological data for planning strategies to control and prevent the progression of the outbreak. A vast body of research has been devoted to studying the behavior of COVID-19, in terms of the number of infections, deaths, recoveries, hospitalizations, and the basic reproduction number, in different geographical regions considering different time spans and variants of this virus.

In this paper, we have focused on analyzing two noticeably different variants of concern of COVID-19: Alpha and Delta variants. The analysis of these variants are performed considering different geographical regions in terms of size and diversity. We have considered COVID-19 statistics in the country of Iran, the continent of Asia, and the whole world for this analysis. We have examined the predictive power of four different neural network models, namely, ED-LSTM, Bi-LSTM, Conv-LSTM, and GRU to predict the number of infections and deaths for the next three, next five, and next seven days in each of these variants in the aforementioned geographical regions. The results were compared using the evaluation metrics of RMSE, MAE, and MAPE. It is concluded that ED-LSTM and Bi-LSTM are respectively the most powerful models to predict the number of infections and deaths due to Alpha variant of COVID-19. While ED-LSTM still keeps its first rank in predicting the statistics of COVID-19 in Delta variant, GRU takes the second rank in the predictions for Delta variant. Considering different geographical regions, it is concluded that ED-LSTM achieves the best performance in the large geographical regions with great diversity in economical situations and social life style. Putting these factors all together, the Friedman test is used to rank the models. The results show that ED-LSTM, Bi-LSTM, and GRU are in order the best models for predicting the statistics of Alpha and Delta variants of COVID-19, and ED-LSTM is the leading model in all conditions. Hence, we continue examining the power of forecasting of ED-LSTM for the next two months. The results show that ED-LSTM keeps its power in forecasting the future waves. We conclude that ED-LSTM model provides a great performance in predicting the number of infections and deaths due to different variants of COVID-19, and the future similar outbreaks.

In comparison with the earlier results, we should mention a related work of Chandra, Jain, and Singh Chauhan [41] which studied the power of LSTM, Bi-LSTM, and ED-LSTM models in forecasting the number of COVID-19 infections in ten different states of India. They reached the conclusion that although the models showed different performance in the states with different population densities, ED-LSTM generally performed the best for predicting the number of infections in India. They had recommended examining the power of this model in predicting the statistics of COVID-19 in other geographical regions. In this paper, we have shown that ED-LSTM has performed the best for the regions as vast as the continent of Asia and also worldwide. Further, we have shown that besides predicting the number of infections, ED-LSTM also has a great power in predicting the number of deaths due to COVID-19. Moreover, this model keeps its strength in predictions for different COVID-19 variants of concern.

The results of this study can broaden the general knowledge about the behavior of COVID-19 and the power of LSTM networks in predicting the behavior of this virus. These results are useful for epidemiologists, decision makers, healthcare system, and medical device manufacturers to have a clear picture of the future situation of the virus to design efficient health policies to control the virus, and to provide sufficient quantity of the corresponding medical devises and drugs, as well as an adequate number of healthcare providers to treat the patients.

Limitations of the study are as follows. The first and most important limitation on the study is the fact that COVID-19 statistics are only recorded for people with positive PCR tests. However, the reliability of this diagnostic test is under question. The accurate result of this test depends on several factors such as time of the test, the skillfulness of the person who takes samples, and negligence of people who are infected with mild symptoms to take the test. Further, the level of lockdowns, mask-wearing adherence, and social distancing compliance are not considered in this study. Studying these factors as well as considering other effective parameters such as age, gender, and a history of earlier infections are recommended for further research.

Acknowledgments

The authors gratefully acknowledge the anonymous referees for providing insightful comments which have contributed to improving the quality of presenting the paper.

References

  1. 1. https://www.who.int/director-general/speeches/detail/who-director-general-s-opening-remarks-at-the-media-briefing-on-covid-19---11-march-2020.
  2. 2. Guan WJ, Chen RC, Zhong NS. Strategies for the prevention and management of coronavirus disease 2019. European Respiratory Journal. 2020;55(4):2000597. pmid:32217658
  3. 3. Sheikhi F, Alipour S. A geometric algorithm for fault-tolerant classification of COVID-19 Infected People. In: 2021 26th International Computer Conference, Computer Society of Iran (CSICC); 2021. p. 1–5.
  4. 4. https://www.who.int/westernpacific/emergencies/covid-19/information/covid-19-variants.
  5. 5. Delamater P, Street E, Leslie T, Yang Y, Jacobsen K. Complexity of the basic reproduction number (R0). Emerging Infectious Diseases. 2019;25:1–4. pmid:30560777
  6. 6. Leung NHL. Transmissibility and transmission of respiratory viruses. Nature Reviews Microbiology. 2021;19(8):528–545. pmid:33753932
  7. 7. Liu Y, Gayle AA, Wilder-Smith A, Rocklöv J. The reproductive number of COVID-19 is higher compared to SARS coronavirus. Journal of Travel Medicine. 2020;27(2):taaa021. pmid:32052846
  8. 8. https://www.who.int/en/activities/tracking-SARS-CoV-2-variants/.
  9. 9. https://health.fmolhs.org/body/covid-19/alpha-variant-vs-delta-variant-how-are-the-symptoms-different/.
  10. 10. https://www.yalemedicine.org/news/5-things-to-know-delta-variant-covid.
  11. 11. Davies N, Abbott S, Barnard R, Jarvis C, Kucharski A, Munday J, et al. Estimated transmissibility and impact of SARS-CoV-2 lineage B.1.1.7 in England. Science. 2021;327(6538):eabg3055. pmid:33658326
  12. 12. Hayawi K, Shahriar S, Serhani MA, Alashwal H, Masud MM. Vaccine versus variants (3Vs): are the COVID-19 vaccines effective against the variants? a systematic review. Vaccines (Basel). 2021;9(11):1305. pmid:34835238
  13. 13. Sheikhi F, Yousefian N, Tehranipoor P, Kowsari Z. Estimation of the basic reproduction number of Alpha and Delta variants of COVID-19 pandemic in Iran. PLOS ONE. 2022;17(5):e0265489. pmid:35580114
  14. 14. Murayama H, Kayano T, Nishiura H. Estimating COVID-19 cases infected with the variant Alpha (VOC202012/01): an analysis of screening data in Tokyo, January-March 2021. Theoretical Biology and Medical Modelling. 2021;18(1):13. pmid:34273991
  15. 15. Abu-Raddad LJ, Chemaitelly H, Butt AA. Effectiveness of the BNT162b2 Covid-19 vaccine against the B.1.1.7 and B.1.351 variants. The New England Journal of Medicine. 2021;385(2):187–189. pmid:33951357
  16. 16. Chemaitelly H, Yassine HM, Benslimane FM, Khatib HAA, Tang P, Hasan MR, et al. mRNA-1273 COVID-19 vaccine effectiveness against the B.1.1.7 and B.1.351 variants and severe COVID-19 disease in Qatar. Nature Medicine. 2021;27:1614–1621. pmid:34244681
  17. 17. Rashed EA, Kodera S, Hirata A. COVID-19 forecasting using new viral variants and vaccination effectiveness models. Computers in Biology and Medicine. 2022;149:105986. pmid:36030722
  18. 18. https://www.livescience.com/delta-variant-delta-plus-variant-covid.html.
  19. 19. Alexandar S, Ravisankar M, Kumar RS, Jakkan K. A comprehensive review on COVID-19 Delta variant. International Journal of Pharmacology and Clinical Research (IJPCR). 2021;5(2):83–85.
  20. 20. Liu Y, Rocklöv J. The reproductive number of the Delta variant of SARS-CoV-2 is far higher compared to the ancestral SARS-CoV-2 virus. Journal of Travel Medicine. 2021;28(7):taab124. pmid:34369565
  21. 21. Bernal JL, Andrews N, Gower C, Gallagher E, Simmons R, Thelwall S, et al. Effectiveness of COVID-19 vaccines against the B.1.617.2 (Delta) variant. The New England Journal of Medicine. 2021;385:585–594.
  22. 22. Farsnews. There are two positive cases of Iranian COVID-19; 2020. https://www.farsnews.ir/news/13981130001021/.
  23. 23. Iranian Students News Agency(ISNA). The concerts were canceled until the weekend; 2020. https://www.isna.ir/news/98120302386/.
  24. 24. Iranian Students News Agency(ISNA). Universities in Tehran and several other provinces were closed until the weekend; 2020. https://www.isna.ir/news/98120302468/.
  25. 25. Sheikhi F, Taghdiri A, Moradisabzevar D, Rezakhani H, Daneshkia H, Goodarzi M. Automatic detection of COVID-19 and pneumonia from chest X-ray images using texture features. The Journal of Supercomputing. 2023.
  26. 26. Pinter G, Felde I, Mosavi A, Ghamisi P, Gloaguen R. COVID-19 pandemic prediction for Hungary; a hybrid machine learning approach. Mathematics. 2020;8(6):890.
  27. 27. Zheng N, Du S, Wang J, Zhang H, Cui W, Kang Z, et al. Predicting COVID-19 in China using hybrid AI model. IEEE transactions on cybernetics. 2020;50(7):2891–2904. pmid:32396126
  28. 28. Khan F, Saeed A, Ali S. Modelling and forecasting of new cases, deaths and recover cases of COVID-19 by using vector autoregressive model in Pakistan. Chaos, Solitons & Fractals. 2020;140:110189. pmid:32834659
  29. 29. Khan F, Ali S, Saeed A, Kumar R, Khan AW. Forecasting daily new infections, deaths and recovery cases due to COVID-19 in Pakistan by using Bayesian dynamic linear models. PLoS One. 2021;16(6):e0253367. pmid:34138956
  30. 30. Feroze N. Assessing the future progression of COVID-19 in Iran and its neighbors using Bayesian models. Infectious Disease Modelling. 2021;6:343–350. pmid:33521407
  31. 31. Al-Qaness MA, Ewees AA, Fan H, Abd Elaziz M. Optimized forecasting method for weekly influenza confirmed cases. International Journal of Environmental Research and Public Health. 2020;17(10):3510. pmid:32443409
  32. 32. Al-Qaness MA, Ewees AA, Fan H, Abualigah L, Abd Elaziz M. Marine predators algorithm for forecasting confirmed cases of COVID-19 in Italy, USA, Iran and Korea. International journal of environmental research and public health. 2020;17(10):3520. pmid:32443476
  33. 33. Al-Qaness MA, Ewees AA, Fan H, Abd El Aziz M. Optimization method for forecasting confirmed cases of COVID-19 in China. Journal of Clinical Medicine. 2020;9(3):674. pmid:32131537
  34. 34. Al-Qaness MA, Saba AI, Elsheikh AH, Abd Elaziz M, Ibrahim RA, Lu S, et al. Efficient artificial intelligence forecasting models for COVID-19 outbreak in Russia and Brazil. Process Safety and Environmental Protection. 2021;149:399–409. pmid:33204052
  35. 35. Ayoobi N, Sharifrazi D, Alizadehsani R, Shoeibi A, Gorriz JM, Moosaei H, et al. Time series forecasting of new cases and new deaths rate for COVID-19 using deep learning methods. Results in Physics. 2021;27:104495. pmid:34221854
  36. 36. Kafieh R, Arian R, Saeedizadeh N, Amini Z, Serej ND, Minaee S, et al. COVID-19 in Iran: forecasting pandemic using deep learning. Computational and mathematical methods in medicine. 2021. pmid:33680071
  37. 37. ArunKumar KE, Kalaga DV, Kumar CMS, Kawaji M, Brenza TM. Forecasting of COVID-19 using deep layer Recurrent Neural Networks (RNNs) with Gated Recurrent Units (GRUs) and Long Short-Term Memory (LSTM) cells. Chaos, Solitons & Fractals. 2021;146:110861. pmid:33746373
  38. 38. Kirbas I, Sözen A, Tuncer AD, Kazancioglu FS. Comparative analysis and forecasting of COVID-19 cases in various European countries with ARIMA, NARNN and LSTM approaches. Chaos, Solitons & Fractals. 2020;138:110015. pmid:32565625
  39. 39. Chimmula VKR, Zhang L. Time series forecasting of COVID-19 transmission in Canada using LSTM networks. Chaos, Solitons & Fractals. 2020;135:109864. pmid:32390691
  40. 40. Verma H, Mandal S, Gupta A. Temporal deep learning architecture for prediction of COVID-19 cases in India. Expert Systems with Applications. 2022;195:116611. pmid:35153389
  41. 41. Chandra R, Jain A, Singh Chauhan D. Deep learning via LSTM models for COVID-19 infection forecasting in India. PloS one. 2022;17(1):e0262708. pmid:35089976
  42. 42. Willett BJ, Grove J, MacLean OA, Wilkie C, Lorenzo GD, Furnon W, et al. SARS-CoV-2 Omicron is an immune escape variant with an altered cell entry pathway. Nature Microbilogy. 2022;7:1161–1179.
  43. 43. https://en.isna.ir/.
  44. 44. (WHO) WHO. WHO Coronavirus (COVID-19) Dashboard;. https://covid19.who.int/data.
  45. 45. Florensa D, Mateo J, Spaimoc R, Miret C, Godoy S, Solsona F, et al. Severity of COVID-19 cases in the months of predominance of the Alpha and Delta variants. Scientific Reports. 2022;12(1):1–6. pmid:36104358
  46. 46. Sutskever I, Vinyals O, Le QV. Sequence to sequence learning with neural networks. In: Ghahramani Z, Welling M, Cortes C, Lawrence N, Weinberger KQ, editors. Advances in Neural Information Processing Systems. vol. 27. Curran Associates, Inc.; 2014.Available from: https://proceedings.neurips.cc/paper/2014/file/a14ac55a4f27472c5d894ec1%c3c743d2-Paper.pdf.
  47. 47. Friedman M. A comparison of alternative tests of significance for the problem of m rankings. The Annals of Mathematical Statistics. 1940;11(1):86–92.