Skip to Content
  • Article
  • Open Access

14 June 2021

20 Pages

Computational Intelligence-Based Model for Mortality Rate Prediction in COVID-19 Patients

,
,
,
,
,
and
Department of Computer Science, College of Computer Science and Information Technology, Imam Abdulrahman Bin Faisal University, Dammam 31441, Saudi Arabia
*
Author to whom correspondence should be addressed.

Abstract

The COVID-19 outbreak is currently one of the biggest challenges facing countries around the world. Millions of people have lost their lives due to COVID-19. Therefore, the accurate early detection and identification of severe COVID-19 cases can reduce the mortality rate and the likelihood of further complications. Machine Learning (ML) and Deep Learning (DL) models have been shown to be effective in the detection and diagnosis of several diseases, including COVID-19. This study used ML algorithms, such as Decision Tree (DT), Logistic Regression (LR), Random Forest (RF), Extreme Gradient Boosting (XGBoost), and K-Nearest Neighbor (KNN) and DL model (containing six layers with ReLU and output layer with sigmoid activation), to predict the mortality rate in COVID-19 cases. Models were trained using confirmed COVID-19 patients from 146 countries. Comparative analysis was performed among ML and DL models using a reduced feature set. The best results were achieved using the proposed DL model, with an accuracy of 0.97. Experimental results reveal the significance of the proposed model over the baseline study in the literature with the reduced feature set.

1. Introduction

COVID-19 is a highly contagious disease caused by a novel coronavirus. It was first detected around the end of 2019 in Wuhan, China. In January 2020, the virus was announced as a global issue by the World Health Organization (WHO). The virus affects people in diverse ways. However, it is known that elderly people and those with chronic diseases are more likely to experience severe illness [1]. This has put enormous strain and pressure on governments and healthcare organizations, as well as on their limited resources. According to statistics provided by the WHO on 8 February 2021, more than 105 million confirmed cases have been reported globally, with nearly 2 million confirmed deaths caused by the virus [2].
The ongoing COVID-19 pandemic is causing a massive number of infections worldwide due to severe acute respiratory syndrome (SARS-CoV-2). Due to the exponential rise in the number of infections and mortality rates, monumental pressure has been placed on governments and public healthcare systems. It is thus essential to identify critical factors of mortality to optimize patient treatment strategies. Moreover, for COVID-19, it was found that hospital capacity is related to the mortality rate; the lower the hospital capacity, the higher the mortality rate [3]. Thus, it is important to prioritize patients with an elevated risk of mortality and to identify the features of COVID-19 patients that lead to mortality [4].
Artificial Intelligence (AI) offers a unique opportunity to improve the response to this widespread disease as it continues to evolve and spread. Specifically, ML and DL techniques can help in the rapid discovery of insights and show relationships across large populations of heterogeneous COVID-19 cases. These methods can help to automatically extract and identify the relationship among complex attributes. In this study, several ML and DL based models were developed to predict the mortality risk of COVID-19 cases using a worldwide clinical record of COVID-19 cases. The proposed models could help hospitals to assign priorities to patients with a potentially higher risk of mortality. The study compared the ML and DL models developed to predict the rate of mortality in COVID-19 cases using sociodemographic and clinical data.
This paper is organized as follows: Section 2 presents the background of the COVID-19 pandemic and the application of AI to control it. Section 3 presents a review of related studies. In Section 4, the material and methods are described. Section 4 describes the experimental set-up, results, and discussion. Finally, in the last section, the conclusion and recommendations for future research are discussed.

2. Background Section

The WHO created a framework that describes an infectious disease breakout in six distinct stages [5]. The first is the “Identification” stage, where a new contagious virus or bacteria has been found. The next stage, “Recognition”, involves pinpointing where the disease clusters are located around the world. Thirdly, “Initiation” is where sustained human transference is established. The following stage is “acceleration”. During this interval, case rates speed up, and in tandem, several mitigation methods are deployed. These deployed methods cause a levelling-off period and a subsequent reduction in the number of cases, which leads to the next stage, “deceleration”. As the rate of spread slows, the world is launched into the “preparation” stage to prepare for the subsequent pandemic wave.
AI has the potential to address challenges at all these stages. This section will provide a brief description of how AI can be used to identify, prevent, address, and recuperate from the coronavirus. For example, AI systems in China identified the emergence of a novel strain of pneumonia [6]. Moreover, Deep Learning (DL) can be used to develop new drugs to treat COVID-19. Several companies, such as DeepMind, are employing DL to find prototype treatments and vaccinations for COVID-19 (SARS-CoV-2) [7]. As COVID-19 is now considered to be a global pandemic, AI can be utilized by policymakers, healthcare organizations, and communities to help manage each phase of the disease.
AI can be employed to help identify, recognize, and fend off further transmission of the disease. Several algorithms capable of identifying any patterns or abnormalities are already used to identify and predict where the spread of COVID-19 will be highest. Furthermore, the use of AI-augmented image processing and recognition accelerates the diagnosis process. Moreover, artificial intelligence can assist in recognizing the chain of how the virus spreads and can carry out surveillance on a wide range of economic effects. In several instances, AI has been shown to infer epidemiological data faster than conventional health data surveying. Organizations such as the Organization for Economic Co-operation and Development (OECD) and Johns Hopkins University have developed interactive dashboards that monitor how the virus is spreading using data from the news regarding new cases of COVID-19, new recoveries, and new deaths. It is important to note that, in order to limit the spread of the coronavirus, there is a need to accelerate the diagnostic process. Inadequate testing for COVID-19 has hindered the identification of the disease in affected individuals. Alternatives that depend on radiology, such as CT scans and X-rays, have been shown to out-perform serology and viral tests (PCR and antigen tests).
As part of their disease prevention strategies, several countries track COVID-19 cases using population surveillance tools. For instance, South Korea traces COVID-19 cases by employing programs that use data referring to the geographical location of patients, data from surveillance cameras, and credit card records. China allocates everyone a colour-coded risk level, which indicates their individual contagion risk [8]. Machine learning models use records of travel, credit card payments, and communication to assign the appropriate colour and predict the location of the next disease outbreak. Furthermore, multiple countries use geolocation to identify people who have been in contact with known virus carriers, a process known as contact tracing. Additionally, autonomous systems, such as robots and drones, have been developed to respond to emergencies in hospitals.
AI systems can also be used to tackle this health catastrophe through the use of misinformation correction and to disseminate personalized information regarding suitable advice and treatment. To combat the threat of misinformation, search engines such as Google and social networks such as Facebook use algorithms that remove any false or misleading information from their platforms and provide users with personalized knowledge using AI. Moreover, chatbots and online assistants have been developed to answer people’s queries and to assist hospitals in triaging people based on the presence of symptoms. Furthermore, AI has been employed to find patients at an elevated risk of death. For example, the Medical Home Network implemented an AI-augmented system that uses the risk of respiratory difficulties to identify high-risk patients.
In summary, artificial intelligence can be used in the detection of COVID-19, either for early warning systems to detect anomalies or any digital “smoke signals” or for diagnosis where AI is employed to recognize patterns in medical imagery and symptom data. For the prevention phase of the COVID-19 crisis, AI can be employed to calculate the probability that a person will be infected, a concept known as prediction. AI can also be used for surveillance, monitoring and tracking the contagion in real-time, and information, personalized news and content moderation to fight misinformation. For the response stage, AI is employed in delivery, where, for example, drones are used to transport materials, and robots are utilized for high-exposure tasks at hospitals. AI can also be employed for service automation where chatbots and digital triaging assistants are deployed. Lastly, AI can be used in recovery to monitor and track economic recovery using Global Positioning System(GPS), satellite, and social media data.

4. Materials and Methods

The study was implemented using the Python programming language and Jupyter IDE. Sklearn version 0.23.2 library was used for conventional ML models. For the DL model, the TensorFlow version 2.4.1 was used. The model was trained on Intel core i7 and 16 GB RAM. The hash function was used to convert object type columns into integer type to enable them to be used and analyzed by the ML and DL algorithm. The dataset was then split using K-fold cross-validation with the value of K = 10. For the cross-validation, the dataset was initially divided into two sets, i.e., training and testing. The training set was then further divided into two folds, i.e., training and validation folds. The validation fold was used for parameter tuning. Finally, six different algorithms using ML and DL techniques were trained and tested along with parameter optimization to achieve the best outcome. Figure 1 represents the block diagram for the proposed study. The section below also includes a description of all the steps used in the proposed methodology.
Figure 1. Framework of the proposed study.

4.1. Data Preprocessing

Data preprocessing is a crucial step in the development of ML and DL models. Several preprocessing techniques were applied, such as data unification, transformation, and missing value imputation. The study used an open-source dataset introduced in [29]. Initially the dataset consisted of 2,676,311 COVD-19 patients containing several outcomes, such as alive, transferred, migrated, death, dead, discharged, critical, recovered, severe, and stable. Some of the categories in the outcome have the same meaning, such as, death, dead, died, and deceased. Therefore, data unification was performed by replacing these with deceased. Some patient records with missing outcomes were removed from the dataset. The aim of the study was to predict the mortality rate of COVID-19 patients; consequently, the outcome was converted into two labels, i.e., deceased and survived. The final dataset contained 103,888 records, with 97,941 records from surviving patients and 5947 for deceased patients.
The Length of Stay (LOS) attribute was derived by subtracting the date of death/discharge from the date of admission. Some of the records in the dataset have either date of admission or date of death/discharge, or both these dates, missing. Therefore, for those records, the LOS was imputed with 0. After calculating the LOS attribute, three attributes were removed: date of admission, date of symptoms, and date of death/discharge.
There are various symptoms and chronic disease attributes in the dataset. Some of the symptoms and chronic diseases occur very infrequently and may only account for less than 10% of the entire dataset. Therefore, these attributes were removed. All symptoms and chronic disease attributes were selected where the percentage of occurrence is equal to or greater than 10%. Subsequently, one hot encoding technique was applied for each selected symptom and chronic disease. Furthermore, it was found that the gender column had a substantial number of missing values, which were replaced with the “Unknown” category. Lastly, the data were transformed to numeric values by encoding the categorical data. Figure 2 summarizes the pre-processing steps.
Figure 2. Data preprocessing steps.
The selected attributes in the dataset were age, gender, country, LOS, fever, fatigue, weakness, pneumonia, cough, diarrhea, sore throat, headache, hypertension, diabetes, and cardiac disease. Thus, the dataset contains 15 features in total out of 32 from the original dataset. Figure 3 represents the selected feature correlation in the dataset. Figure 3 represents the correlation of the features with the outcome.
Figure 3. Selected features correlation in the dataset.

4.2. Exploratory Data Analysis

Researchers collected and curated heterogynous data on an individual level from different national, provincial, and municipal health reports, along with data from online reports. The geocoded data included travel history and symptoms, along with critical dates, such as onset date, admission data, and confirmation data. Initially, the dataset included over 2,676,311 records from over 76 countries, including records for males and females of all ages. After preprocessing, records from 103,888 patients from 45 different countries were left, with the highest number of patients from India (98,632). The second highest number of patients was from the Philippines (4493). However, there were less than 200 patients from each of the remaining countries. The analysis of the dataset is shown in Table 3. It contains the feature type, datatype, and unique values of the dataset features for each feature.
Table 3. Description of the dataset.
The dataset contains 97,165 patients with unknown gender. However, 3761 patients were female and 2960 male. The minimum length of stay (LOS) for the patient is 0 and the maximum LOS is 43 days. The most frequent LOS in the dataset is 7. Similarly, the minimum age of the patient is 0 years, the maximum age is 101, and the median age is 50. Fever, sore throat, and pneumonia are the most commonly occurring symptoms in the dataset. Similarly, in terms of chronic diseases, hypertension is the most common.

4.3. Predictive Algorithms

In this study, several DL and ML classifiers, such as deep neural network (DNN), DT, LR, RF, XGBoost, and KNN, were used to predict the mortality rate of COVID-19 patients. A grid search was used to optimize ML classifier parameters. A brief description of classifiers is given below.
  • Decision Tree (DT)
Decision trees (DT) is a supervised ML algorithm that is used for regression and classification problems. A DT model uses a tree of decisions to reach a conclusion about a target variable, which is usually represented in the leaves of the tree. Trees can be classified as either classification trees, where the leaf contains discrete values, or as regression trees, where the leaf contains continuous values. Constructing a tree requires a split at the root into subsets, and the split is repeated on each subset. This process is recursive in nature; thus, the algorithm is known as a greedy algorithm, and it stops when no value is added to the prediction or when all nodes have the same value as the target value. The DT model is easy to understand and performs feature selection implicitly.
There are two main advantages to using DT:
○
The explanatory models provide a useful description about a phenomenon, unlike more complex models such as neural networks, where extracting knowledge is complex.
○
The non-parametric model assumes that the distribution of data is not defined by a finite set of parameters. During the learning process, the tree can grow depending on the problem’s complexity.
However, it can produce a complex tree that does not generalize well and causes overfitting.
  • Logistic Regression (LR)
Logistic Regression (LR) is a supervised ML algorithm that is widely used for classification problems, mostly for binary class values. The algorithm name is based on its core function, the logistic or sigmoid function. The sigmoid function is used to map predicted values to probability scores between 0 and 1.
There are two main operations for this algorithm. The first is a linear operation from which the predictor or independent features are used to obtain multiple linear regression. The second applies the sigmoid function to obtain the probability score to a given class.
Sigmoid function:
P ( c l a s s | x 1 , .. , x N ) = 1 1 + e − ( w 0 + ∑ k − 1 N w k x k )
where w k is the parameter of the model, and x k are the features for an object, and N is the total number of attributes.
The LR algorithm is fast in classifying new records and performs well for many simple datasets that are linearly separable. However, the algorithm may overfit in the case of high dimensional datasets, although this can be avoided when using regularization techniques [30]. In the Logistic Regression model used in this study, the following hyperparameters were tuned:
  • penalty: to specify the penalization norm;
  • random_state: for shuffling the data;
  • max_iter: the maximum number of iterations for the algorithm to converge;
  • tol: this refers to the tolerance for the stopping criteria [31].
Table 4 below presents the parameter values set used in LR.
Table 4. Optimized parameter values for the Logistic Regression model.
  • Random Forest (RF)
Random Forest (RF) is a supervised ensemble ML algorithm. It builds multiple decision trees known as a forest based on multiple samples of the training data. This technique is an extension of bagging, which is known to reduce the high variance characteristic of decision trees. It differs from bagging in that data is added to the tree at each split point in the data, and only a fixed set of features are considered [32]. The algorithm is used to solve classification and regression problems. Trees are generated using stochastic recursive partitioning, which randomizes each tree using two methods. To start with, randomizing for each tree is done by basing it on a smaller bootstrap sample from a larger training sample. The algorithm chooses a smaller set of samples from n data with a replacement so that every sample is either not chosen or chosen multiple times. Every bootstrap sample has 37% left out, which is known as out-of-bag and used as an error estimation. Second, at each node, it randomizes the tree by stochastically selecting a subset of attributes. Therefore, during training, the trees are partitioned so that the tree nodes are associated with objects that have similar predictable values. Following this, training samples are assigned to leaf nodes and the construction of the tree ends. In our RF algorithm the following hyperparameters were tuned:
  • n_estimators: the number of generated trees;
  • max_depth: the maximum levels in each tree;
  • min_samples_split: the minimum number of node data before it splits;
  • min_samples_leaf: the minimum amount of data that can populate the leaf node [33].
Table 5 below presents the parameter values set used in the RF.
Table 5. Optimized parameter values for the Random Forest model.
  • Extreme Gradient Boosting (XGBoost)
Extreme Gradient Boosting, also known as XGBoost, is a widely used ML algorithm. An implementation of gradient boosted decision, XGBoost is designed to provide both performance and speed. Moreover, because XGBoost uses parallelism, it is known for its ability to learn quickly and scale appropriately to the problem. In simple terms, XGBoost uses an ensemble method that implements the principle of boosting weak learners, and the gradient descent algorithm to enhance the model’s performance [34,35]. For example, when using the algorithm for regression, the weak learners are a regression tree. For each tree, it assigns the input data to leaf nodes that hold continuous values. The algorithm reduces a regularized function combined with the model complexity penalty term, which is the function of regression trees and a convex loss function that depends on the difference between the target and predicted outputs. Training is carried out in an iterative process by adding new trees that predict the errors of previous trees, which are later combined with the previous trees to make a final decision or result.
For a dataset (X,Y):
F k ( X ) = F k − 1 ( X ) + α k h k ( X , r k − 1 )
arg min α = ∑ i = 1 k L ( Y i , F i − 1 ( X i ) + α h i ( X i , r i − 1 ) )
w h e r e L ( Y , F ( X ) )   a   d i f f e r n t i a b l e   l o s s   f u n c t i o
Here, r i and α i are regularization parameters, and h i is a trained function that predicts residuals r i .
XGBoost has many different parameters that alter its performance. The two parameters altered in this experiment are objective and random_state. Objective defines the loss function meant to be minimized, while random_state refers to the random number seed. Other parameters were left to their default values [36]. Table 6 below represents the different parameters and the values chosen in this experiment.
Table 6. Optimized parameter values for Extreme Gradient Boosting model.
  • K-Nearest Neighbor (KNN)
K-Nearest Neighbors, also known as KNN, is a lazy supervised learner. A lazy model refers to the fact that the model stores the whole dataset given to it and classifies new data based on similarity measures (usually distance). KNN assumes that similar things will exist close to each other in the same area. It can be used for classification and regression problems. KNN calculates the distance between the points based on the similarity measure and labels the unknown data depending on the values of the closest neighbours in proximity to it. KNN has only one hyperparameter that affects its performance, which is K. K is the number of closest neighbours that can be considered after deciding the label of unknown data sample [37]. For numerical data, to find the nearest neighbour to calculate the distance between the new sample and every training sample, the distance is calculated using either Euclidean, Makowski, or Manhattan distances. For categorical data, the Hamming distance is used. The distance formulas are as follows:
Euclidean:
∑ k = 1 N ( x k − y k ) 2  
Makowski:
[ ∑ k = 1 N ( | x k − y k | ) q ] 1 / q
Manhattan:
∑ k = 1 N | x k − y k |
where x k is the test sample attribute value while y k is the training sample attribute value, and N is the total number of attributes.
Hamming:
d i j = l + m
where l is the number of variables with one category for i object, and m is the number of variables with the other category for j object. KNN can produce good results for many tasks, such as categorizing texts, recognizing patterns, detecting objects, and ranking models. However, there are some disadvantages, such as memory consumption, as it stores the whole dataset, and it is prone to perform badly when there is noise in the data.
For this experiment, the value of k was equal to 5.
  • Deep Learning Model
Deep Learning models, also known as Deep Neural Network (DNN), are a type of neural network (NNs) that contain three main layers: input, output, and hidden layers.
○
Input layer: in this layer, the values of inputs xn enter the neural network. For each input, the weight wn is applied, before their summation is sent to the hidden layer in which the activation function ƒ is used.
○
Hidden layer: in this layer, the activation function ƒ uses the summation from the input layer including a bias b and sends it to all nodes in the next hidden layer, which eventually produces the output variable yn.
y n = f ( b + ∑ w n x n )
○
Output layer: in this layer, the output value is determined with the lowest error rate possible, and backpropagation is applied to reduce the error rate by using the gradient descent algorithm to adjust new weights Wn.
W n = w n − a ( ∂ E r r o r ∂ w n )
The network may have many hidden layers, each of which depends on the output of the previous layer. The equation below demonstrates the output of layer n in the network, where f, b, and w are activation function, bias, and weights, respectively, and yn−1 is the output of the previous layer.
yn = f (wn · yn−1 + bn)
DLs are usually Feed Forward Networks (FFNNs) in which the data goes only in one direction from the input layer to the output layer. DNN usually consists of many hidden layers depending on the problem complexity and show efficient results in pattern recognition and classification.
The proposed DL model architecture consists of six fully connected dense layers with 19 variables as inputs, where each layer consists of 512, 512 (dropout_layer), 128, 128 (dropout_layer), 64, 64 (dropout_layer), and 1 (output_layer) neurons, respectively. The three dropout layers with a 20% dropout rate were added to allow the model to learn more robust features. Moreover, rectified linear units (ReLU) were chosen as activation functions. The output layer used a sigmoid function because binary classification was used to classify patients into deceased and survived.
ReLU activation function:
R ( x ) = m a x ( 0 , x )
where if x is negative the output is 0, and thus, the node will not be activated; few nodes are active, making the neural network sparse and efficient.
Sigmoid activation function:
σ ( x ) = 1 1 + e − x
where the range of values for the output is from [0,1]. The output is equal to 0.5 when x is equal to 0. The output gets closer to 1 when x is a huge positive number and gets closer to 0 when x is a huge negative number.
The Adam optimization algorithm with learning rate 0.001 was used for model optimization, while “binary_crossentropy” was employed to calculate the loss of the model. The accuracy metrics were used to evaluate the accuracy of the model. For training the model, the epochs were set to 50 and batch size to 512, along with the additional setting of callbacks, where the monitor was set to “Validation accuracy”, save best only to “True” and mode to “max”. The Kfold cross validation with n_splits were set to 10 to optimize model performance.

4.4. Evaluation Measures

To evaluate the proposed models, a wide range of different performance measures were used. These include the following:
Accuracy is the ratio of correctly predicted COVID-19 cases to the total number of COVID-19 cases. Accuracy is mathematically shown in Equation (13).
A c c u r a c y = T r u e S u r v i v e d C O V I D − 19 p a t i e n t s + T r u e d e c e a s e d C O V I D − 19 p a t i e n t s T o t a l n u m b e r o f C O V I D − 19 p a t i e n t s
Precision is the ratio of the correctly predicted records for the surviving COVID-19 patients’ class to the total predicted as survived COVID-19 patients. High precision corresponds to a low false-positive rate [38]. This can be seen mathematically in Equation (14).
P r e c i s i o n = T r u e p r e d i c t e d S u r v i v e d C O V I D − 19 p a t i e n t s p r e d i c t e d s u r v i v e d C O V I D − 19 p a t i e n t s
Sensitivity is the ratio of correctly predicted patient records for the survived COVID-19 patients’ class to the total survived patients in the dataset [38]. This is mathematically described as shown in Equation (15):
S e n s i t i v i t y = T r u e p r e d i c t e d S u r v i v e d C O V I D − 19 p a t i e n t s T o t a l n u m b e r o f s u r v i v e d p a t i e n t s i n t h e d a t a s e t
Specificity is the ratio of correctly predicted deceased COVID-19 patients to all the deceased patients in the dataset [39]. This is mathematically described, as shown in Equation (16):
S p e c i f i c i t y = T r u e p r e d i c t e d d e c e a s e d C O V I D − 19 p a t i e n t s T o t a l n u m b e r o f d e c e a s e d p a t i e n t s i n t h e d a t a s e t
F1 − Score is the weighted average of recall and precision, taking both false negatives and false positives into account [38]. Mathematically this is represented as shown in Equation in (17):
F 1 − S c o r e = 2 ∗ ( S e n s i t i v i t y × P r e c i s i o n ) S e n s i t i v i t y + P r e c i s i o n

5. Results and Discussion

In severe cases, COVID-19 can lead to multiple organ damage, acute respiratory distress, and death. Therefore, it is essential to identify patients at an elevated risk of mortality early on and to support them by providing them with appropriate treatment and care. Moreover, the shortage of resources and staff poses a major challenge to healthcare systems and governments. The identification of high-risk patients can help solve this challenge by allowing these institutions to better plan and optimize the use of their limited technical and human resources. In this study, six different classifiers were used to predict mortality in patients. These models include DT, LR, RF, XGBoost, KNN, and the DL model.
Table 7 shows the results obtained from the different models using the 15 selected features. As shown, all models achieved very comparable results. It can be seen that the DL model outperformed ML models with respect to all the evaluation measures, as it achieved an accuracy of 0.970, precision and specificity of 1.000, sensitivity of 0.970, and F1−Score of 0.985. The best performing ML models are RF and XGBoost. Both achieved an accuracy of 0.946. Moreover, both the models had high precision (0.998), sensitivity (0.947), and F1-score (0.972). It is important to note, however, that XGBoost outperformed RF with regard to specificity, with XGBoost achieving a specificity of 0.810 and RF achieving a specificity of 0.807. The worst-performing model was KNN, accuracy, precision, specificity, and F1-score of which was lower than for the other models. Figure 4 shows the training accuracy and loss, and Figure 5 represents validation accuracy and loss.
Table 7. Performance comparison of the proposed models for mortality rate prediction of COVID-19 patients.
Figure 4. Proposed Deep Learning model: training accuracy and loss.
Figure 5. Proposed Deep Learning model: validation accuracy and loss.
In medical applications, the false-negative rate should be minimized as much as possible, as people who test positive for a particular disease should take the necessary precautions and receive the care and treatment they need. Especially in the case of this pandemic, it is imperative that people with COVID-19 are aware of their condition so that they refrain from spreading their infection to others and take all precautionary measures required. Therefore, one of the most important measures in this research is sensitivity. A high sensitivity corresponds to a low false-negative rate. Among all the reviewed literature, this research resulted in the highest sensitivity of 0.970.
Moreover, although false positives are not as significant as false negatives in medicine, it is still important to minimize the false positive rate. False positives have the associated hassle of staying at home for 14 days, unable to carry out responsibilities. Of the reviewed literature, this research also provides the highest precision of 1.000.
Because both the sensitivity and precision achieved in the proposed research is higher than the studies mentioned in the literature, the F1 score obtained is also the highest, namely, 0.985. The F1 score is one of the most important measures in the current study because it takes into consideration the subtleties of class imbalances and/or the varying cost of false positives and false negatives. Furthermore, [24] uses the same dataset as that used in the current study. While they achieved a reported accuracy of 0.9375, this research surpassed that accuracy, with an acquired value of 0.970.
This study aimed to develop DL and ML models using sociodemographic and brief clinical (symptoms and patient comorbidities) attributes. The proposed models can better contribute to the fight against the pandemic and provide medical institutions and governments with a way to identify high-risk patients so that they can provide them with the support they need and save lives. The proposed model outperformed the baseline study as shown in the Table 8.
Table 8. Comparison of proposed model with the baseline study.
Despite all these advantages, there is always a room for improvement. The proposed model needs to be investigated on other datasets. Similarly, there is a need to include other features that were identified as significant in the literature review. Moreover, it will be important to explore the impact of these features on the models’ performance.

6. Conclusions and Recommendation

Announced as a global pandemic on 2 February 2020, COVID-19 can lead to multiple organ damage, acute respiratory distress, and death. It has presented governments and healthcare institutions with the never-ending nightmare of attempting to reduce the mortality rate of the disease with limited technical and human resources. This study aims to help fight COVID-19 by developing a model capable of discerning high-risk patients early on to enable institutions to optimize their human and technical resources, thus ensuring that all patients receive the care and support they need from the outset.
The main contribution of the proposed study is:
  • Comparative analysis of the DL and ML models in predicting the mortality rate of COVID-19 patients;
  • The study proposed a model to achieve better results with reduced number of features as compared to the baseline study;
  • In general, the proposed DL model outperformed the baseline study in terms of all performance evaluation measures. The model can be an effective tool for the early prediction of at-risk COVID-19 patients.
In this study, one DL and five ML models were developed using sociodemographic and brief clinical data to predict mortality. Models included DL, DT, LR, RF, XGBoost, and KNN. The study showed that the DL model outperformed the other five classifiers, with an accuracy of 0.97, a precision of 1, a sensitivity of 0.97 a specificity of 1, and an F1-score of 0.985. It is hoped that this study will help fight the pandemic. Despite achieving significant results, the proposed model needs to be investigated with other datasets. Similarly, there is a need to include the lab findings to further explore the significant features.
The proposed model can be used as a decision support system to identify patients at a high risk of mortality. Furthermore, models can help with the remote triaging of the COVID-19 patients, thus reducing the burden placed on hospitals and the risk of contamination.

Author Contributions

Conceptualization, I.U.K., N.A., S.S.A., and M.A.; methodology, I.U.K. and N.A.; software, I.U.K.; validation, I.U.K. and N.A.; formal analysis, I.U.K., N.A., F.M.A., and M.M.A.K.; investigation, I.U.K., N.A., S.S.A., and M.A.; resources, I.U.K. and N.A.; data curation, I.U.K., N.A., F.M.A., and M.M.A.K.; writing—original draft preparation, N.A., F.M.A., M.M.A.K., and S.M.B.C.; writing—review and editing, I.U.K., N.A., S.S.A., M.A., F.M.A., M.M.A.K., and S.M.B.C.; visualization, I.U.K., N.A., and S.M.B.C.; supervision, I.U.K., N.A., S.S.A., and M.A.; project administration, I.U.K., N.A., S.S.A., and M.A.; funding acquisition, I.U.K., N.A., S.S.A., and M.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to the Deputyship for Research & Innovation, Ministry of Education in Saudi Arabia, for funding this research work through the project number [Grant No. Covid19-2020-059-CSIT] at Imam Abdulrahman bin Faisal University/College of Computer Science and Information Technology.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The study used an open-source dataset accessible from the weblink https://github.com/beoutbreakprepared/nCoV2019 (accessed on 18 April 2021).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Coronavirus. Available online: https://www.who.int/health-topics/coronavirus#tab=tab_1 (accessed on 16 February 2021).
  2. WHO. Weekly Operational Update on COVID-19. World Heal. Organ. 2021, 1–10. Available online: https://www.who.int/publications/m/item/weekly-update-on-covid-19---16-october-2020 (accessed on 18 April 2021).
  3. Did Hospital Capacity Affect Mortality during the Pandemic’s First Wave—The Health Foundation. Available online: https://www.health.org.uk/news-and-comment/charts-and-infographics/did-hospital-capacity-affect-mortality-during-the-pandemic (accessed on 16 February 2021).
  4. Du, R.-H.; Liang, L.-R.; Yang, C.-Q.; Wang, W.; Cao, T.-Z.; Li, M.; Guo, G.-Y.; Du, J.; Zheng, C.-L.; Zhu, Q.; et al. Predictors of mortality for patients with COVID-19 pneumonia caused by SARSCoV- 2: A prospective cohort study. Eur. Respir. J. 2020, 55. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Chen, Z.-L.; Zhang, W.-J.; Lu, Y.; Guo, C.; Guo, Z.-M.; Liao, C.-H.; Zhang, X.; Zhang, Y.; Han, X.-H.; Li, Q.-L.; et al. From severe acute respiratory syndrome-associated coronavirus to 2019 novel coronavirus outbreak: Similarities in the early epidemics and prediction of future trends. Chin. Med. J. Engl. 2020, 133, 1112–1114. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. OECD. Using Artificial Intelligence to Help Combat COVID-19; OECD: Paris, France, 2020; pp. 1–5. Available online: https://www.oecd.org/coronavirus/policy-responses/using-artificial-intelligence-to-help-combat-covid-19-ae4c5c21/ (accessed on 18 April 2021).
  7. AI and Control of Covid-19 Coronavirus. Available online: https://www.coe.int/en/web/artificial-intelligence/ai-and-control-of-covid-19-coronavirus (accessed on 16 February 2021).
  8. Laudanski, K.; Shea, G.; DiMeglio, M.; Restrepo, M.; Solomon, C. What Can COVID-19 Teach Us about Using AI in Pandemics? Healthcare 2020, 8, 527. [Google Scholar] [CrossRef] [Scilit]
  9. Aljameel, S.S.; Khan, I.U.; Aslam, N.; Aljabri, M.; Alsulmi, E.S. Machine Learning-Based Model to Predict the Disease Severity and Outcome in COVID-19 Patients. Sci. Program. 2021, 2021. [Google Scholar] [CrossRef] [Scilit]
  10. Ko, H.; Chung, H.; Kang, W.S.; Park, C.; Kim, D.W.; Kim, S.E.; Chung, C.R.; Ko, R.E.; Lee, H.; Seo, J.H.; et al. An Artificial Intelligence Model to Predict the Mortality of COVID-19 Patients at Hospital Admission Time Using Routine Blood Samples: Development and Validation of an Ensemble Model. J. Med. Internet. Res. 2020, 22. [Google Scholar] [CrossRef] [Scilit]
  11. Yadaw, A.S.; Li, Y.C.; Bose, S.; Iyengar, R.; Bunyavanich, S.; Pandey, G. Clinical features of COVID-19 mortality: Development and validation of a clinical prediction model. Lancet Digit. Health 2020, 2, e516–e525. [Google Scholar] [CrossRef] [Scilit]
  12. Bertsimas, D.; Lukin, G.; Mingardi, L.; Nohadani, O.; Orfanoudaki, A.; Stellato, B.; Wiberg, H.; Gonzalez-Garcia, S.; Parra-Calderón, C.L.; Robinson, K.; et al. COVID-19 mortality risk assessment: An international multi-center study. PLoS ONE 2020, 15, e0243262. [Google Scholar] [CrossRef] [Scilit]
  13. Karthikeyan, A.; Garg, A.; Vinod, P.K.; Priyakumar, U.D. Machine learning based clinical decision support system for early COVID-19 mortality prediction. medRxiv 2020. [Google Scholar] [CrossRef] [Scilit]
  14. Vaid, A.; Somani, S.; Russak, A.J.; De Freitas, J.K.; Chaudhry, F.F.; Paranjpe, I.; Johnson, K.W.; Lee, S.J.; Miotto, R.; Richter, F.; et al. Machine learning to predict mortality and critical events in a cohort of patients with COVID-19 in New York City: Model development and validation. J. Med. Internet Res. 2020, 22, 1–19. [Google Scholar] [CrossRef] [Scilit]
  15. Das, S.S.G.A.K.; Mishra, S. Predicting CoVID-19 community mortality risk using machine learning and development of an online prognostic tool. Peer J. 2020, 8. [Google Scholar] [CrossRef] [Scilit]
  16. An, C.; Lim, H.; Kim, D.W.; Chang, J.H.; Choi, Y.J.; Kim, S.W. Machine learning prediction for mortality of patients diagnosed with COVID-19: A nationwide Korean cohort study. Sci. Rep. 2020, 10. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Sánchez-Montañés, M.; Rodríguez-Belenguer, P.; Serrano-López, A.J.; Soria-Olivas, E.; Alakhdar-Mohmara, Y. Machine learning for mortality analysis in patients with COVID-19. Int. J. Environ. Res. Public Health 2020, 17, 8386. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Ryan, L.; Lam, C.; Mataraso, S.; Allen, A.; Green-Saxena, A.; Pellegrini, E.; Hoffman, J.; Barton, C.; McCoy, A.; Das, R. Mortality prediction model for the triage of COVID-19, pneumonia, and mechanically ventilated ICU patients: A retrospective study. Ann. Med. Surg. 2020, 59, 207–216. [Google Scholar] [CrossRef] [Scilit]
  19. Parchure, P.; Joshi, H.; Dharmarajan, K.; Freeman, R.; Reich, D.L.; Mazumdar, M.; Timsina, P.; Kia, A. Development and validation of a machine learning-based prediction model for near-term in-hospital mortality among patients with COVID-19. BMJ Support. Palliat. Care 2020, 1–8. [Google Scholar] [CrossRef] [Scilit]
  20. Agbelusi, O.; Olufunke, O. Prediction of Mortality Rate of COVID-19 Patients using Machine Learning Techniques in Nigeria. Int. J. Comput. Sci. Softw. Eng. 2020, 9, 30–34. [Google Scholar]
  21. Tezza, F.; Lorenzoni, G.; Azzolina, D.; Barbar, S.; Leone, L.A.C.; Gregori, D. Predicting in-Hospital Mortality of Patients with COVID-19 Using Machine Learning Techniques. J. Pers. Med. 2021, 11, 343. [Google Scholar] [CrossRef] [Scilit]
  22. Ferreira, A.T.; Fernandes, C.; Vieira, J.; Portela, F. Pervasive Intelligent Models to Predict the Outcome of COVID-19 Patients. Future Internet 2021, 13, 102. [Google Scholar] [CrossRef] [Scilit]
  23. López-Escobar, A.; Madurga, R.; Castellano, J.; Velázquez, S.; del Villar, R.S.; Menéndez, J.; Peixoto, A.; Jimeno, S.; Ventura, P.; de Aguiar, S.R. Risk Score for Predicting In-Hospital Mortality in COVID-19 (RIM Score). Diagnostics 2021, 11, 596. [Google Scholar] [CrossRef] [Scilit]
  24. Pourhomayoun, M.; Shakibi, M. Predicting mortality risk in patients with COVID-19 using artificial intelligence to help medical decision-making. medRxiv 2020. [Google Scholar] [CrossRef] [Scilit]
  25. Li, X.; Ge, P.; Zhu, J.; Li, H.; Graham, J.; Singer, A.; Richman, P.S.; Duong, T.Q. Deep learning prediction of likelihood of ICU admission and mortality in COVID-19 patients using clinical variables. Peer J. 2019, 8, 1–19. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Dhamodharavadhani, J.M.C.S.; Rathipriya, R. COVID-19 Mortality Rate Prediction for India Using Statistical Neural Network Models. Front. Public Health 2020, 8, 441. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Zhu, J.S.; Ge, P.; Jiang, C.; Zhang, Y.; Li, X.; Zhao, Z.; Zhang, L.; Duong, T.Q. Deep-learning artificial intelligence analysis of clinical variables predicts mortality in COVID-19 patients. J. Am. Coll. Emerg. Physicians Open 2020, 1, 1364–1373. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Li, Z.; Ding, C.; Wang, S.; Wen, W.; Zhou, Y.; Liu, C.; Qiu, Q.; Xu, W.; Lin, X.; Qian, X.; et al. Efficient Recurrent Neural Networks: Design Optimization for Efficient Recurrent Neural Networks in FPGAs. Available online: https://arxiv.org/abs/1812.07106 (accessed on 12 December 2018).
  29. Xu, B.; Gutierrez, B.; Mekaru, S.; Sewalk, K.; Goodwin, L.; Loskill, A.; Cohn, E.L.; Hswen, Y.; Hill, S.C.; Cobo, M.M.; et al. Epidemiological data from the COVID-19 outbreak, real-time case information. Sci. Data 2020, 7. [Google Scholar] [CrossRef] [Scilit]
  30. Bowlee, J. Logistic Regression for Machine Learning; Machine Learning Mastery: San Juan, Puerto Rico, 2016. [Google Scholar]
  31. Sklearn.linear_model.LogisticRegression—Scikit-learn 0.24.1 Documentation. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html (accessed on 18 April 2021).
  32. Here, S. How to Implement Random Forest from Scratch in Python; Machine Learning Mastery: San Juan, Puerto Rico, 2017; pp. 1–23. [Google Scholar]
  33. Koehrsen, W. Hyperparameter Tuning the Random Forest in Python; Towards Data Science: Toronto, CA, Canada, 2018. [Google Scholar]
  34. Brownlee, J. A Gentle Introduction to XGBoost for Applied Machine Learning; Machine Learning Mastery: San Juan, Puerto Rico, 2016; pp. 1–20. [Google Scholar]
  35. Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
  36. Zhang, L.; Zhan, C. Machine Learning in Rock Facies Classification: An Application of XGBoost. In Proceedings of the International Geophysical Conference, Qingdao, China, 17–20 April 2017; pp. 1371–1374. [Google Scholar] [CrossRef] [Scilit]
  37. Agarwal, S. Data mining: Data mining concepts and techniques. In Proceedings of the 2013 International Conference on Machine Intelligence and Research Advancement (ICMIRA), Katra, India, 21–23 December 2013. [Google Scholar]
  38. Joshi, R. Accuracy, Precision, Recall & F1 Score: Interpretation of Performance Measures; Exsilio Inc.: Irvine, CA, USA, 2016. [Google Scholar]
  39. Swift, A.; Heale, R.; Twycross, A. What are sensitivity and specificity? Evid. Based. Nurs. 2020, 23, 2–4. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.