Skip to main content

ORIGINAL RESEARCH article

Front. Med., 03 September 2024
Sec. Precision Medicine
This article is part of the Research Topic Cluster-based Intelligent Recommendation System for Hybrid Healthcare Units View all 19 articles

Deep learning infused SIRVD model for COVID-19 prediction: XGBoost-SIRVD-LSTM approach

Hisham AlkhalefahHisham Alkhalefah1D. PreethiD. Preethi2Neelu KhareNeelu Khare3Mustufa Haider Abidi
Mustufa Haider Abidi1*Usama UmerUsama Umer1
  • 1Advanced Manufacturing Institute, King Saud University, Riyadh, Saudi Arabia
  • 2Department of Computer Science and Engineering, Faculty of Engineering and Technology, SRM Institute of Science and Technology, Chennai, Tamil Nadu, India
  • 3School of Computer Science Engineering and Information Systems (SCORE), Vellore Institute of Technology, Vellore, Tamil Nadu, India

The global impact of the ongoing COVID-19 pandemic, while somewhat contained, remains a critical challenge that has tested the resilience of humanity. Accurate and timely prediction of COVID-19 transmission dynamics and future trends is essential for informed decision-making in public health. Deep learning and mathematical models have emerged as promising tools, yet concerns regarding accuracy persist. This research suggests a novel model for forecasting the COVID-19’s future trajectory. The model combines the benefits of machine learning models and mathematical models. The SIRVD model, a mathematical based model that depicts the reach of the infection via population, serves as basis for the proposed model. A deep prediction model for COVID-19 using XGBoost-SIRVD-LSTM is presented. The suggested approach combines Susceptible-Infected-Recovered-Vaccinated-Deceased (SIRVD), and a deep learning model, which includes Long Short-Term Memory (LSTM) and other prediction models, including feature selection using XGBoost method. The model keeps track of changes in each group’s membership over time. To increase the SIRVD model’s accuracy, machine learning is applied. The key properties for forecasting the spread of the infection are found using a method called feature selection. Then, in order to learn from these features and create predictions, a model involving deep learning is applied. The performance of the model proposed was assessed with prediction metrics such as R2, root mean square error (RMSE), mean absolute percentage error (MAPE), and normalized root mean square error (NRMSE). The results are also validated to those of other prediction models. The empirical results show that the suggested model outperforms similar models. Findings suggest its potential as a valuable tool for pandemic management and public health decision-making.

1 Introduction

The COVID-19 epidemic has presented a serious threat to civilization worldwide. The virus has killed millions of people and spread quickly. World Health Organization (WHO) at the end of 2019 announced COVID-19 as global epidemic disease, since its outbreak worldwide. As of November 6, 2023, reported by WHO, there are 775,335,916 confirmed cases and 7,045,569 deaths worldwide (1). Based on WHO data, 13.59bn vaccine doses have been given as of May 2, 2024. COVID-19 immensely affected daily life, health, and the economy at the global level. Governments and public health experts have put in place a number of strategies to prevent the epidemic, including social isolation, mask use, and vaccine. However, the transmission of the virus has not totally been halted by these precautions. Predicting how the pandemic will develop in the future is one of the difficulties in combatting COVID-19. This is significant for various reasons. First, it can assist governments and public health experts in making choices regarding the distribution of resources and pandemic response. Second, it can assist organizations and people in making decisions regarding how to run and safeguard themselves. The upcoming course of COVID-19 transmission is forecasted using various techniques. Making use of mathematical models is one strategy. The transmission of the virus and its effects on various populations can be predicted using mathematical models. Mathematical modeling is a crucial device for analyzing epidemic infectious diseases, presented in 1927 by Kermack (2). Since the outbreak of the pandemic, various mathematical models have been employed in predicting the diseases, which are epidemic. The widely used mathematical models include SIR (3), which assesses susceptible, infected, and recovered rates (4), and SEIR (5), which evaluates based on susceptible, exposed, infected, and recovered rates. Furthermore, most of the research studies are the enhanced models derived from these two models. However, using mathematical models can be challenging and complex.

Machine learning is a different strategy for forecasting COVID-19’s future trajectory. Machine learning, a form of artificial intelligence, possesses the ability to gain information from data and produce predictions. The efficacy of models involving machine learning in predicting transmission of various illnesses, including influenza, has been established through empirical evidence. Many studies are available on predicting and transmitting the virus’s spread (6).

This paper introduces a novel deep learning model named Extreme Gradient Boosting-Susceptible-Infected-Recovered-Vaccinated-Deceased-Long Short-Term Memory (XGBoost-SIRVD-LSTM), which is designed to forecast the quantity of COVID-19 cases. The suggested XGBoost-SIRVD-LSTM model operates in four stages: (1) Data pre-processing, (2) XGBoost feature importance score feature selection, (3) SIRVD epidemic model design, and (4) LSTM prediction. The suggested model is tested using datasets from John Hopkins University’s CSSE (7) and Our World in Data (8). The dataset is first pre-processed using the min-max normalization technique. Second, the XGBoost is used for feature selection, which is done using the feature importance score. Finally, the optimal features are supplied into the SIRVD model to estimate the COVID-19 transmission with respect to time. Finally, the LSTM model is applied to the dataset for disease prediction. The empirical results suggest that the suggested model exhibits superior performance in relation to accuracy for predicting outcomes compared to alternative deep learning models.

The following are the research study’s contributions:

• In this study, we introduce a deep learning model that utilizes XGBoost-SIRVD-LSTM model to predict COVID-19 infection cases.

• The outcomes of the suggested model assessed in comparison with existing deep learning models and utilizing performance measures for prediction.

The remaining sections of the paper are structured as follows: Section 2 presents a summary of the current body of literature. Section 3 delves into background information of the techniques employed in the proposed model. Section 4 outlines the methodology proposed in detail. Section 5 explores the dataset, presents the experimental results, and includes a comparative analysis with other models.

2 Literature review

This section elaborates on numerous models for COVID-19 prediction found in the literature. A standard SIR model for predicting COVID-19 pandemic progression was proposed in Kartono et al. (9). The model was tested using the most recent confirmed cases from the WHO dashboard. The authors used this approach to forecast instances in Singapore, Saudi Arabia, Indonesia, and the Philippines. In their study, Kumar et al. (10) employed recurrent neural network (RNN) models, including gated recurrent unit (GRU) and LSTM cells, to predict the future patterns of COVID-19 cases. The researchers utilized the publicly accessible COVID-19 dataset from Johns Hopkins University and emphasized the importance of factors such as age, population density, healthcare infrastructure, and disease-prevention efforts in the rapid progression of the COVID-19 outbreak. To analyze the COVID-19 pandemic, the study conducted exploratory data analysis using machine-learning techniques, followed by the implementation of the SIR model (11). The most popular John Hopkins dataset for COVID-19 was used for experiments, with just data from the Kingdom of Saudi Arabia used to forecast instances. The researchers analyzed three possibilities for anticipating the progression of the outbreak and its possible resolution, namely new medicine, lockdowns, and no actions. The simulation results demonstrate that interventions such as new drugs and lockdowns outperform no-action scenarios. To forecast the COVID-19 instances, the MLP with feature selection (MLPFS) classification model was presented (12). This study was based on the characteristics and symptoms of Electronic Medical Records (EMR) patients. Three separate datasets and eight alternative models were utilized to evaluate the provided model. According to the experimental findings, the suggested MLPFS outperformed the other seven models chosen for comparison in terms of accuracy indicators, extracted number of features, and time required to implement the model. The SIRVD model, an extension of classic epidemiological models, incorporates vaccination and time-dependent fatality rates (13). Analyzing exact solutions and approximations, it reveals crucial insights into epidemic dynamics, offering benchmarks for numerical simulations. By applying analytical approximations, particularly effective for low cumulative infection rates, it elucidates the impact of vaccination and time-varying fatality rates, enabling precise parameter extraction from COVID-19 data, essential for pandemic management. Babaei et al. (14) explores integrability conditions and exact analytical solutions for the SIRV model, crucial for understanding COVID-19 dynamics, using a partial Hamiltonian approach. Analyzing two cases based on model parameters and considering different phase spaces, it provides insights into the dynamics of susceptible, infected, recovered, and vaccinated populations over time through graphical representations. Federico (15) addresses an optimal vaccination strategy within an SIRS compartmental model, aiming to minimize social and economic costs while reducing susceptibility. Theoretical contributions include a non-smooth verification theorem and conditions for well-posed closed-loop equations, while numerical implementations highlight the effectiveness of vaccination policies in long-term infection control, particularly with low reproduction and reinfection rates.

In an another study, researchers suggested a three-stage COVID-19 prediction, namely pre-processing, feature selection, and classification (16). Wrapper-based feature selection using Recursive Feature Extraction and embedded-based feature selection using Extra Tree Classifier were the two methods used. The naive bayes and restricted Boltzmann Machine models were employed for classification. The proposed approach was implemented using WHO data. According to the authors, the model worked well and produced better prediction results with feature selection than models without feature selection. In their previous work, the researchers put forth COVID-19 prediction models utilizing Susceptible_Infected_Recovered (SIR) and Susceptible_Exposed_Infected_Quarantined_Recovered (SEIQR) epidemic models for several countries, including Australia, United Kingdom, and Italy (3). To enhance parameters in these epidemic models (L-BFGS-B), they employed optimization algorithms such as Conjugate Gradient (CG), Nelder–Mead, restricted memory bound constrained, and the Broyden-Fletcher-Goldfarb-Shanno (BFGS). The performance of these two models was compared to the performance of two machine learning methods, prophet and logistic function. The authors discovered that the prophet model outperformed the logistic function and provided a superior prediction model for Italy and the United Kingdom than for Australia. The prediction accuracy was significantly increased once the models such as SIR and SEIQR were optimized. In their findings, the authors observed that the prophet model demonstrated superior performance compared to the logistic function, particularly in predicting the COVID-19 trends for United Kingdom and Italy, while its performance in the case of Australia was relatively less favorable. The accuracy of predictions was notably improved by optimizing the SIR and SEIQR models. In a separate study conducted by the authors of Chandra et al. (17), deep learning-based LSTM models were explored for predicting the future trajectory of COVID-19 in specific Indian states that experienced a high incidence of the disease. Various LSTM models, including LSTM, bidirectional, and encoder-decoder models, were developed for disease spread prediction. The authors highlighted that the encoder-decoder LSTM model exhibited superior prediction accuracy compared to other models. In Alassafi et al. (18), a comparison study was undertaken to assess the efficacy of RNN and LSTM models in predicting the spread of the coronavirus. The dataset utilized for this analysis consisted of data from Malaysia, Morocco, and Saudi Arabia, sourced from the European Center for Disease Prevention and Control. The authors examined the models’ effectiveness in predicting positive cases, recoveries, and COVID-19-related mortality rates. Also, estimating the potential quantity of cases over the next 7 days. Another research study (19) proposed an XGBoost-DNN classifier model for detecting network intrusions. The model employed XGBoost feature importance scores to select relevant features and utilized DNN for classification of network intrusions.

In a separate study, researchers introduced a feature selection based on ensemble approach with LSTM for network intrusion classification (20). Their method aimed to improve the accuracy of network invasion detection by utilizing LSTM along with ensemble-based feature selection. Youssef et al. (4) employed the SEIQR model and utilized real data of Saudi Arabia for predicting the transmission of COVID-19 cases. The results demonstrated the efficiency of the model suggested in analyzing epidemic spread, thus providing a basis for framing effective government policies.

The COVID-19 pandemic has significantly accelerated research on the development of predictive models for the pandemic’s future trajectory. Numerous models, including mathematical, machine learning, and hybrid models, have been put forth. The propagation of the virus can be simulated and the effects on various populations can be predicted using mathematical models that are based on epidemiological principles. However, using mathematical models can be challenging and complex. An artificial intelligence that can learn from data and predict the future is known as a machine-learning model. It has been demonstrated that machine-learning models are useful for forecasting the spread of other diseases, such as influenza. Nevertheless, machine-learning models can often rely heavily on the specific data they were trained on, resulting in potential challenges when attempting to generalize to new data. To overcome these limitations, hybrid models (2123) merge the advantages of both mathematical models and machine learning approaches. By combining these two techniques, hybrid models have the potential to offer greater precision and accuracy compared to using either method in isolation. However, the development of hybrid models can be intricate and pose significant challenges. Despite the extensive research conducted thus far, there remains a need for more precise and reliable models to effectively forecast the future trajectory of COVID-19. Thus, this study endeavors to fill this research void by proposing a novel model that leverages the strengths of both mathematical and machine learning methods.

3 Methodology

3.1 Xgboost feature selection

Extreme Gradient Boosting (XGBoost) is a scalable machine learning technique used for tree boosting, which falls within the class of scalable machine learning approaches (24). This method, known as a distributed optimized library for gradient boosting, is capable of analyzing the relevance of each feature in the dataset. It has been demonstrated as a reliable and practical approach in machine learning research (19, 25). In comparison to earlier boosting methods, XGBoost excels at selecting a robust classifier from a set of weaker classifiers. It offers advantages such as effective handling of missing values, avoidance of overfitting, and faster computation times for parallel and distributed models. The primary objective of XGBoost utilizes an optimized gradient descent approach with versatile differentiable loss functions is to employ an optimized gradient descent method with arbitrary differentiable loss functions. This is achieved by incorporating weak learners to minimize the loss function, thus defining and optimizing the overall objective function.

Extreme gradient boosting strives to reduce the objective function in the following manner (as shown in Equation 1).

o b j θ = i L y ̂ i y i + k Ω f k , f k ϵ F     (1)

The training loss function, denoted as L, quantifies the disparity between the predicted value y ̂ i by the model proposed and actual value of y i . Overfitting is prevented thanks to the regularization function Ω, which estimates the model’s complexity. The set of all possible regression trees is represented by the function f in the functional space F. By using parameters and a greedy search method, XGBoost determines the optimal tree structure to minimize the objective function.

3.2 SIRVD epidemic model

The SIRVD is derived from the SIR epidemic model (26). This model encompasses dynamics of the virus’s interaction during transmission with the host and classifies individuals into five distinct groups: susceptible, infected, recovered, vaccinated, and deceased (27). The SIRVD expands upon the existing SIR framework by including the new states of vaccinated and deceased. Vaccinated persons are those who have been inoculated against the disease, while deceased individuals are those who have died after becoming sick in the community (28). The ordinary differential equations below represent the mathematical formulation of the SIRVD model (Equations 27).

d S r t i d t i = β l r t i S t i N + σ R r t i α S r t i     (2)
d I r t i d t i = β l r t i S r t i N γ l r t i δ I r t i     (3)
d R r t i d t i = γ I r t i σ R r t i     (4)
d V r t i d t i = α S r t i     (5)
d D r t i d t i = δ I r t i     (6)
N = S r t i + d I r t i + R r t i + V r t i + D r t i     (7)

where,

β—Infection rate, encompasses the spread of the infection in a susceptible state.

γ—Recovery rate consists of the transferal from the infected to the recovered state.

δ—Rate of death, represents the transferal from the infected to the deceased state.

α—Rate of vaccination consists of the transferal from susceptible to the vaccinated condition.

σ—rate of susceptibility depicts the transferal from recovered to a susceptible state.

It is stated that the transference cycle of the virus is characterized by β I r t i S r t i N depicts the number of individuals per unit of time who transmitted from the susceptible individuals ( S r ) to the infected individuals ( I r ). The five parameters of the SIRVD epidemic model such as β , γ , δ , α , and σ are considered to be constant, as these are dynamic and thereby, this model neglects their time-dependent characteristics. To predict the growth of the disease trend efficiently and effectively, a time-dependent SIRVD model was proposed, which includes these factors of the SIRVD epidemic model with respect to time t i . The proposed SIRVD epidemic model can reasonably trace the COVID-19 disease transmission and also predicts the future spread of the disease.

3.3 SIRVD epidemic time-dependent COVID-19 model

The SIRVD model, which is dependent on time, incorporates five parameters that change over time: the infection rate β, the recovery rate γ, the death rate δ, the vaccination rate α, and the susceptibility rate σ as in Liao et al. (27). These parameters are represented as functions of time, denoted as β( t i ), γ( t i ), δ( t i ), α( t i ), and σ( t i ) (27). The differential equations have been adjusted as follows (Equations 812):

d S r t i d t i = β t i I r t i S r t i N + σ t i R r t i α t i S r t i     (8)
d I r t i d t i = β t i I r t i S r t i N γ t i I r t i δ t i δ I r t i     (9)
d R r t i d t i = γ t i I r t i σ t i R r t i     (10)
d V r t i d t i = α t i S r t i     (11)
d D r t i d t i = δ t i δ I r t i     (12)

N is a constant across the population, then the sum of each population’s gain or decrease in the state equals to zero (as shown in Equation 13).

d S r t i d t i + d I r t i d t i + d R r t i d t i + d V r t i d t i + d D r t i d t i = 0     (13)

Since the COVID-19 data are updated regularly on daily basis, the Equations 812 can be changed to differential Equations 1418.

S r t i + 1 S r t i = β t i I r t i S r t i N + σ t i R r t i α t i S r t i     (14)
I r t i + 1 I r t i = β t i I r t i S r t i N γ t i I r t i δ t i δ I r t i     (15)
R r t i + 1 R r t i = γ t i I r t i σ t i R r t i     (16)
V r t i + 1 V r t i = α t i S r t i     (17)
D r t i + 1 D r t i = δ t i δ I r t i     (18)

Since the human body would create antibodies to the virus, it is believed that the COVID-19 reinfection rate during transmission was approximately equal to zero (29).

Subsequently, the formula of γ t can be expressed as (Equations 1921):

γ t i = R r t i + 1 R r t i I r t i     (19)

Similarly,

α t i = S r t i + 1 S r t i V r t i     (20)
δ t i = D r t i + 1 D r t i I r t i     (21)

Once the rate of death and recovery is computed, add up with Equation 13. Thus, β t i , the time dependent parameter can be obtained using Equation 22.

β t i = I r t i + 1 I r t i + R r t i + 1 R r t i + D r t i + 1 D r t i × N I r t i × S r t i     (22)

3.4 Long short-term memory

Long Short Term Memory (LSTM) is a specialized deep learning-based RNN architecture that finds extensive use in practical applications of time series models (30). As a subclass of artificial neural networks, RNNs display dynamic behavior over time due to their interconnected nodes forming a directed graph along a temporal sequence. RNNs can process input sequences of varying lengths by leveraging their internal state or memory. An RNN can be precisely defined as a collection of analogous networks, each transmitting information to a different recipient, enabling them to connect prior knowledge with the current context. However, as this gap widens, RNNs may struggle to learn to establish meaningful relationships in the data, particularly focusing on short-term memory over long-term memory’s influence.

To address the challenges of long-term dependencies, LSTM networks were introduced by Hochreiter and Schmidhuber (30). LSTMs have demonstrated exceptional proficiency in classifying and predicting from time series data. These networks are constructed as chains of replicated modules, each equipped with a unique structure. A typical LSTM unit comprises of memory cell, and three gates say, forget, input, and output. The memory cell possesses the ability of retaining information across extended time intervals, while the three gates discussed earlier controls the information flow in the cell. The output gate determines which value should be stored as the expected output, the input gate decides which additional information to record, and the forget gate selectively discards certain information from the cell state. Figure 1 illustrates the LSTM’s structure, where lines connect entire vectors from one node’s output to another node’s input. The circles represent pointwise operations, while the yellow boxes denote the layers of the previously trained neural network.

Figure 1
www.frontiersin.org

Figure 1. LSTM architecture.

The output of LSTM gates, which use sigmoid activation functions to process information, is either 0 or 1. “0” indicates that the gates are blocking everything, and “1” indicates that everything is able to pass past the gates. In the LSTM, the equations of gates are:

f t = σ w f . a t 1 z t + b f     (23)
i t = σ w i . a t 1 z t + b i     (24)
o t = σ w o . a t 1 z t + b o     (25)

From Equations 2325, it, ot and (30) represents three gates say, forget, input and output. The sigmoid function is denoted by the symbol σ , and x , represents the relevant weight for each LSTM block. a t 1 represents the preceding output at t 1 , timestamp, while z t denotes the current input vector at timestamp, t and b x represents bias neurons for gate z . The formulas for the final output, candidate cell state, and cell state are given as follows:

c ˜ t = tanh w c . a t + 1 z t + b c     (26)
c t = f t c t 1 + i c c t     (27)
a t = o t tana c t     (28)

From the Equations 2628, c t and c t 1 depicts the current and preceding cell states or memory at t and t 1 timestamps, respectively. The term c ˜ t expresses to the output of the tanh function, which represents the potential cell state at timestamp t . The symbol denotes element-wise multiplication between vectors.

3.5 Proposed XGBoost-SIRVD-LSTM model

Figure 2 shows the suggested model’s workflow details. The proposed XGBoost-SIRVD-LSTM model works in four phases: (1) Data preprocessing, (2) Feature selection using XGBoost feature importance score, (3) SIRVD epidemic model construction, and (4) Prediction using LSTM. This model focuses mainly on the prediction of the recent trends of the epidemic based on the evaluation of the parameter changes in the epidemic. The remainder of this section explains the various stages of the suggested prediction model.

Figure 2
www.frontiersin.org

Figure 2. The workflow of the proposed XGBoost-SIRVD-LSTM model for COVID-19 prediction.

The steps for the proposed XGBoost-SIRVD-LSTM model are as follows:

Input: COVID-19 dataset containing confirmed cases, susceptible cases, recovered cases, deceased cases, and vaccination.

Output: estimating/predicting the COVID-19 infection rate.

Algorithm steps:

1. Implement data pre-processing techniques on the COVID-19 dataset.

2. Utilize the Min-Max approach to normalize the dataset.

3. For feature selection, use XGBoost feature importance score.

4. Develop the SIRVD epidemic model with the selected features from step 3.

5. Using step 4, the quantity of COVID-19 infection cases using LSTM are predicted.

6. Evaluate the proposed model using predictive performance metrics.

This section discusses the detailed steps involved in the proposed XGBoost-SIRVD-LSTM model for prediction.

3.5.1 Data pre-processing

The min-max normalization suggested in this paper to pre-process the COVID-19 data. Using below Equation 29, the feature values are normalized between [0, 1].

min max normalization , y i = y i min max min     (29)

Where max denotes the highest value and min denotes the least value.

3.5.2 Feature selection using XGBoost feature importance score

The dataset pre-processed after step 1 used for feature optimization in this step. XGBoost feature importance score computed for the optimal selection of features from the COVID-19 dataset (19). Feature importance scores are normalized so that they sum up to 1 across all features. Higher scores indicate more important features relative to others in the dataset. Feature importance scores are useful for feature selection and understanding which features contribute most to the predictions made by the model.

3.5.3 SIRVD epidemic model construction

In this stage, the reduced-feature dataset obtained from step 2 is employed to construct the SIRVD epidemic model. The model incorporates five parameters: (infection) β, (recovery) γ, (death) δ, (vaccination) α, and (susceptibility) σ, which varies over time represented by t (27). The dataset is prepared and formatted according to the specifications of the SIRVD model. The construction of the suggested SIRVD occurs once; dataset has been processed and transformed into the desired format.

3.5.4 Prediction using LSTM

The SIRVD model from step 3 is used for prediction using LSTM in this stage. In this study, single day prediction is computed for predicting the COVID-19 infection, and the model is tested with third, seventh, fourteenth, twenty-first- and twenty-eighth-days’ prediction to evaluate the developed model’s efficacy.

4 Results

This section describes the dataset in depth, including the evaluation metrics and efficacy evaluation of the suggested model.

4.1 Dataset

Extreme Due to the outbreak of COVID-19, multiple governments worldwide have made public their actions or measures and undertaken real-time data analysis to determine the disease’s up-to-date trends. In this research study, two research data, which are publicly available are collected for experimentation of the proposed model, namely CSSE from Johns Hopkins University (7) and Our World in Data (8). The John Hopkins dataset comprises cumulative cases, including confirmed, recovered, and deceased at a global level. This dataset includes country, province, longitude, latitude, and total affected patients on a specified date as its features.

The data source from Our World in Data includes potential features of interest, namely confirmed and deceased cases, hospitalizations, vaccinations, and testing. The vaccination data obtained from this data source includes various information such as the country name (location), country code (iso_code), date of observation (date), total number of administered doses (total vaccinations), and the count of vaccinated individuals (people_vaccinated). These data, in combination with the data from John Hopkins University, are utilized to implement and assess the proposed model.

4.2 Evaluation metrics

The performance of the XGBoost-SIRVD-LSTM model’s performance involves comparing the observed and forecasted values. The evaluation metrics employed in this study include R2 (determination coefficient) (Equation 32), normalized root mean square error (NRMSE) (Equation 31), root mean square error (RMSE) (Equation 30), and mean absolute percentage error (MAPE) (Equation 33) (31). The validation of the suggested model computed with the following formulas for calculating these metrics.

RMSE = 1 N i = 1 N y ̂ i y i 2     (30)
NRMSE = 1 N i = 1 N y ̂ i y i 2 y ¯     (31)
R 2 = i = 1 N x i x ¯ y i y ¯ 2 i = 1 N x i x ¯ 2 × i = 1 N y i y ¯ 2     (32)
MAPE = 1 N i = 1 N | y ̂ i y i y i | 100 %     (33)

4.3 Performance evaluation

The evaluation of the proposed model involves the utilization of datasets mentioned above. The experiments are conducted using Python, with deep learning libraries: numpy, pandas, keras, and tensorflow. The experimentation is performed on hardware with the following specifications: Intel (R) Core i7-8750H CPU @ 2.20 GHz, 64-bit operating system, RAM of 8.00 GB, and with GPU.

The architecture of deep learning models is determined by their hyper-parameters, which play a crucial role in achieving high-quality models. In this study, the optimal hyper-parameters are determined using a grid search approach. Table 1 presents the hyper-parameters utilized in the developed model. The dataset is split as training and testing sets in the ratio of 70:30 and implemented in training and testing the proposed COVID-19 infection case prediction model. The evaluation metrics described in the equations above are used in this study, and Table 2 compares the single-day prediction results of the developed model with existing models in literature.

Table 1
www.frontiersin.org

Table 1. Hyper-parameters for the proposed model.

Table 2
www.frontiersin.org

Table 2. Results depicting prediction for a single day with the proposed model as well as other models.

The effectiveness of the proposed model is assessed by comparing its outcomes with those of existing literature on recurrent deep learning models, including bidirectional LSTM, GRU, Stacked LSTM, Vanilla LSTM, and SIRVD-DL (27). The unique combination of machine learning and mathematical modeling makes the XGBoost-SIRVD-LSTM model better than others. First, using XGBoost for feature selection helps the model find and prioritize key variables, enhancing prediction accuracy. Second, adding the SIRVD model captures COVID-19 transmission dynamics between susceptible, infected, recovered, vaccinated, and deceased populations. Thirdly, LSTM’s sequential data learning allows it to capture COVID-19 temporal patterns and trends. Our comprehensive strategy combines the benefits of each component, resulting in improved prediction accuracy in empirical data. This integrative approach yields more accurate estimates than machine learning or epidemiological models. The experiments were specifically conducted to predict outcomes for the third, seventh, fourteenth, twenty-first, and twenty-eighth days. The experimental results are presented in Figures 37. To evaluate the performance of the proposed model, the obtained results are compared to those of other recurrent deep learning models, such as bidirectional LSTM, GRU, stacked LSTM, vanilla LSTM, and SIRVD-DL (27). The experiments were accurately performed to predict outcomes for the third day, seventh day, fourteenth day, twenty-first day, and twenty-eighth day. The experimental findings are displayed in Figures 47. Similarly, the proposed model resulted with the R2 score of 0.999 on the 3-day, 0.997 on the 7-day, 0.956 on the 14-day, 0.64 on the 21-day, and 0.19 on the 28-day. When compared to other models that were taken into consideration for evaluation, the R2 score grows comparatively as the number of predicting days’ rises, demonstrating the effectiveness of the suggested model. The other models consequently displayed negative values as the number of days increased, indicating that the fitting function’s prediction error was higher than the mean function. As a result, the prediction models’ performance when combined with other models is ineffective.

Figure 3
www.frontiersin.org

Figure 3. Comparison analysis of prediction results of the suggested model with other models for a 3-day duration.

Figure 4
www.frontiersin.org

Figure 4. Comparison analysis of prediction results of the suggested model with other models for a 7-day duration.

Figure 5
www.frontiersin.org

Figure 5. Comparison analysis of prediction results of the suggested model with other models for a 14-day duration.

Figure 6
www.frontiersin.org

Figure 6. Comparison analysis of prediction results of the suggested model with other models for a 21-day duration.

Figure 7
www.frontiersin.org

Figure 7. Comparison analysis of prediction results of the suggested model with other models for a 28-day duration.

From the preceding discussion, the contributions of the proposed model can be summarized as follows:

1. A new XGBoost-SIRVD-LSTM model is introduced for predicting COVID-19 infection cases. This model combines XGBoost for feature selection and integrates the SIRVD epidemic model with LSTM for disease prediction.

2. SIRVD-DL and other recurrent deep learning models were used to compare the efficacy of the suggested model.

When compared to previous models, the performance of the proposed XGBoost-SIRVD-LSTM produced improved predictions.

5 Conclusion

This research work introduces an innovative model that merges mathematical and machine learning methodologies to forecast the future trajectory of COVID-19. The XGBoost-SIRVD-LSTM model represents a significant advancement in forecasting the course of COVID-19, offering a solution to the critical challenge of precise prediction in the face of a dynamically evolving pandemic. By harmonizing the strengths of XGBoost for feature selection with the SIRVD model’s capacity to track COVID-19 transmission over time, this research provides a comprehensive approach for pandemic forecasting. The dataset is processed using LSTM to provide disease predictions. The model is evaluated using the Our World in Data and CSSE datasets from John Hopkins University. The experimental findings illustrate that the suggested model surpasses alternative deep learning models in terms of performance, exhibiting superior prediction accuracy and precision. These findings suggest that the model proposed will be one of a valuable resource for forecasting the future course of COVID-19. It has the potential to assist governments and public health experts in making informed decisions and formulating effective strategies to combat the pandemic.

Here are some specific potential future research trajectories:

1. Increase the model’s precision and accuracy. More data, more advanced machine learning algorithms, or a mix of the two may be used to achieve this.

2. Improve the model’s usability. This could be achieved by creating a user interface that makes it simple for users to enter data and generate predictions.

3. Predict the efficacy of various therapies using the model. Governments and public health professionals may utilize this information to assist in choosing which actions to prioritize.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material; further inquiries can be directed to the corresponding author.

Author contributions

HA: Conceptualization, Funding acquisition, Project administration, Resources, Writing – original draft, Writing – review & editing. DP: Conceptualization, Data curation, Formal analysis, Software, Validation, Writing – original draft. NK: Conceptualization, Methodology, Supervision, Validation, Writing – review & editing. MA: Conceptualization, Formal analysis, Methodology, Writing – original draft, Writing – review & editing. UU: Conceptualization, Methodology, Resources, Writing – review & editing.

Funding

The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This research was funded by King Abdulaziz City for Science and Technology (KACST) via the Fast Track Funding Path for COVID-19 Research Projects, grant number 5-21-01-001-0036.

Acknowledgments

The authors extend their appreciation to King Abdulaziz City for Science and Technology (KACST) to fund this work via the Fast Track Funding Path for COVID-19 Research Projects, grant number 5-21-01-001-0036.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1. WHO (2023). WHO Coronavirus (COVID-19) Dashboard 2023. Available online at: https://covid19.who.int/ (Accessed on May 2, 2024).

Google Scholar

2. Kermack, WO, McKendrick, AG, and Walker, GT. A contribution to the mathematical theory of epidemics. Proc Roy Soc London Ser A Contain Papers Math Phys Charact. (1997) 115:700–21.

Google Scholar

3. Rahimi, I, Gandomi, AH, Asteris, PG, and Chen, F. Analysis and prediction of COVID-19 using SIR, SEIQR, and machine learning models: Australia, Italy, and UK cases. Inform. (2021) 12. doi: 10.3390/info12030109

Crossref Full Text | Google Scholar

4. Youssef, H, Alghamdi, N, Ezzat, MA, El-Bary, AA, and Shawky, AM. Study on the SEIQR model and applying the epidemiological rates of COVID-19 epidemic spread in Saudi Arabia. Infect Dis Model. (2021) 6:678–92. doi: 10.1016/j.idm.2021.04.005

PubMed Abstract | Crossref Full Text | Google Scholar

5. He, S, Peng, Y, and Sun, K. SEIR modeling of the COVID-19 and its dynamics. Nonlinear Dynam. (2020) 101:1667–80. doi: 10.1007/s11071-020-05743-y

PubMed Abstract | Crossref Full Text | Google Scholar

6. Fatimah, B, Aggarwal, P, Singh, P, and Gupta, A. A comparative study for predictive monitoring of COVID-19 pandemic. Appl Soft Comput. (2022) 122:108806. doi: 10.1016/j.asoc.2022.108806

PubMed Abstract | Crossref Full Text | Google Scholar

7. Dong, E, Du, H, and Gardner, L. An interactive web-based dashboard to track COVID-19 in real time. Lancet Infect Dis. (2020) 20:533–4. doi: 10.1016/S1473-3099(20)30120-1

PubMed Abstract | Crossref Full Text | Google Scholar

8. Mathieu, E, Ritchie, H, Ortiz-Ospina, E, Roser, M, Hasell, J, Appel, C, et al. A global database of COVID-19 vaccinations. Nat Hum Behav. (2021) 5:947–53. doi: 10.1038/s41562-021-01122-8

Crossref Full Text | Google Scholar

9. Kartono, A, Karimah, SV, Wahyudi, ST, Setiawan, AA, and Sofian, I. Forecasting the long-term trends of coronavirus disease 2019 (COVID-19) epidemic using the susceptible-infectious-recovered (SIR) model. Infect Dis Rep. (2021) 13:668–84. doi: 10.3390/idr13030063

PubMed Abstract | Crossref Full Text | Google Scholar

10. ArunKumar, KE, Kalaga, DV, Kumar, CMS, Kawaji, M, and 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 Fract. (2021) 146:110861. doi: 10.1016/j.chaos.2021.110861

PubMed Abstract | Crossref Full Text | Google Scholar

11. Alanazi, SA, Kamruzzaman, MM, Alruwaili, M, Alshammari, N, Alqahtani, SA, and Karime, A. Measuring and preventing COVID-19 using the SIR model and machine learning in smart health care. J Healthcare Eng. (2020) 2020:1–12. doi: 10.1155/2020/8857346

Crossref Full Text | Google Scholar

12. El-Attar, N-E, Sabbeh, S-F, Fasihuddin, H, and Awad, W-A. An improved DeepNN with feature ranking for Covid-19 detection. Comput Mater Contin. (2022) 71:2249–69. doi: 10.32604/cmc.2022.022673

Crossref Full Text | Google Scholar

13. Schlickeiser, R, and Kröger, M. Mathematics of epidemics: on the general solution of SIRVD, SIRV, SIRD, and SIR compartment models. Mathematics. (2024) 12:941. doi: 10.3390/math12070941

Crossref Full Text | Google Scholar

14. Amiri Babaei, N, and Özer, T. On exact integrability of a Covid-19 model: SIRV. Math Methods Appl Sci. (2024) 47:3529–46. doi: 10.1002/mma.8874

Crossref Full Text | Google Scholar

15. Federico, S, Ferrari, G, and Torrente, M-L. Optimal vaccination in a SIRS epidemic model. Economic Theory. (2024) 77:49–74. doi: 10.1007/s00199-022-01475-9

PubMed Abstract | Crossref Full Text | Google Scholar

16. Ali, RH, and Abdulsalam, WH. The prediction of COVID 19 disease using feature selection techniques. J Phys Conf Ser. (2021) 1879:022083. doi: 10.1088/1742-6596/1879/2/022083

Crossref Full Text | Google Scholar

17. Chandra, R, Jain, A, and Singh, CD. Deep learning via LSTM models for COVID-19 infection forecasting in India. PLoS One. (2022) 17:e0262708. doi: 10.1371/journal.pone.0262708

PubMed Abstract | Crossref Full Text | Google Scholar

18. Alassafi, MO, Jarrah, M, and Alotaibi, R. Time series predicting of COVID-19 based on deep learning. Neurocomputing. (2022) 468:335–44. doi: 10.1016/j.neucom.2021.10.035

PubMed Abstract | Crossref Full Text | Google Scholar

19. Devan, P, and Khare, N. An efficient XGBoost–DNN-based classification model for network intrusion detection system. Neural Comput & Applic. (2020) 32:12499–514. doi: 10.1007/s00521-020-04708-x

Crossref Full Text | Google Scholar

20. Devan, P, and Khare, N. EFS-LSTM (ensemble-based feature selection with LSTM) classifier for intrusion detection system. Int J e-Collab. (2020) 16:72–86. doi: 10.4018/IJeC.2020100106

Crossref Full Text | Google Scholar

21. Singh, P, and Gupta, A. Generalized SIR (GSIR) epidemic model: an improved framework for the predictive monitoring of COVID-19 pandemic. ISA Trans. (2022) 124:31–40. doi: 10.1016/j.isatra.2021.02.016

PubMed Abstract | Crossref Full Text | Google Scholar

22. Cooper, I, Mondal, A, and Antonopoulos, CG. A SIR model assumption for the spread of COVID-19 in different communities. Chaos, Solitons Fractals. (2020) 139:110057. doi: 10.1016/j.chaos.2020.110057

PubMed Abstract | Crossref Full Text | Google Scholar

23. Devaraj, J, Elavarasan, RM, Pugazhendhi, R, Shafiullah, GM, Ganesan, S, Jeysree, AK, et al. Forecasting of COVID-19 cases using deep learning models: is it reliable and practically significant? Results Phys. (2021) 21:103817. doi: 10.1016/j.rinp.2021.103817

PubMed Abstract | Crossref Full Text | Google Scholar

24. Liew, XY, Hameed, N, and Clos, J. An investigation of XGBoost-based algorithm for breast cancer classification. Mach Learn Appl. (2021) 6:100154. doi: 10.1016/j.mlwa.2021.100154

Crossref Full Text | Google Scholar

25. Zheng, Y, Zhu, Y, Ji, M, Wang, R, Liu, X, Zhang, M, et al. A learning-based model to evaluate hospitalization priority in COVID-19 pandemics. Patterns. (2020) 1:100092. doi: 10.1016/j.patter.2020.100092

PubMed Abstract | Crossref Full Text | Google Scholar

26. Farooq, J, and Bazaz, MA. A novel adaptive deep learning model of Covid-19 with focus on mortality reduction strategies. Chaos, Solitons Fractals. (2020) 138:110148. doi: 10.1016/j.chaos.2020.110148

PubMed Abstract | Crossref Full Text | Google Scholar

27. Liao, Z, Lan, P, Fan, X, Kelly, B, Innes, A, and Liao, Z. SIRVD-DL: a COVID-19 deep learning prediction model based on time-dependent SIRVD. Comput Biol Med. (2021) 138:104868. doi: 10.1016/j.compbiomed.2021.104868

PubMed Abstract | Crossref Full Text | Google Scholar

28. Usherwood, T, LaJoie, Z, and Srivastava, V. A model and predictions for COVID-19 considering population behavior and vaccination. Sci Rep. (2021) 11:12051. doi: 10.1038/s41598-021-91514-7

PubMed Abstract | Crossref Full Text | Google Scholar

29. Phelan, AL. COVID-19 immunity passports and vaccination certificates: scientific, equitable, and legal challenges. Lancet. (2020) 395:1595–8. doi: 10.1016/S0140-6736(20)31034-5

PubMed Abstract | Crossref Full Text | Google Scholar

30. Hochreiter, S, and Schmidhuber, J. Long short-term memory. Neural Comput. (1997) 9:1735–80. doi: 10.1162/neco.1997.9.8.1735

Crossref Full Text | Google Scholar

31. Kafieh, R, Arian, R, Saeedizadeh, N, Amini, Z, Serej, ND, Minaee, S, et al. COVID-19 in Iran: forecasting pandemic using deep learning. Comput Math Methods Med. (2021) 2021:1–16. doi: 10.1155/2021/6927985

Crossref Full Text | Google Scholar

Keywords: deep learning, extreme gradient boosting (XGBoost), susceptible-infected-recovered-vaccination-deceased (SIRVD), long short-term memory (LSTM), feature selection, COVID-19, prediction

Citation: Alkhalefah H, Preethi D, Khare N, Abidi MH and Umer U (2024) Deep learning infused SIRVD model for COVID-19 prediction: XGBoost-SIRVD-LSTM approach. Front. Med. 11:1427239. doi: 10.3389/fmed.2024.1427239

Received: 03 May 2024; Accepted: 12 August 2024;
Published: 03 September 2024.

Edited by:

Surbhi Bhatia Khan, University of Salford, United Kingdom

Reviewed by:

Krishna Kumar Mohbey, Central University of Rajasthan, India
Chandrasekar Ravi, National Institute of Technology Puducherry, India
Sohail Mohammed, Toronto Metropolitan University, Canada
Nur Al Hasan Haldar, Curtin University, Australia

Copyright © 2024 Alkhalefah, Preethi, Khare, Abidi and Umer. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Mustufa Haider Abidi, mabidi@ksu.edu.sa

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.