Abstract
The coronavirus is considered this century's most disruptive catastrophe and global concern. This disease has prompted extreme social, psychological and economic impacts affecting millions of people around the globe. COVID-19 is transmitted from one infected person's body to another through respiratory droplets. This virus proliferates when people breathe in air-contaminated space with droplets and microscopic airborne particles. This research aims to analyze automatic COVID-19 detection using machine learning techniques to build an intelligent web application. The dataset has been preprocessed by dropping null values, feature engineering, and synthetic oversampling (SMOTE) techniques. Next, we trained and evaluated different classifiers, i.e., logistic regression, random forest, decision tree, k-nearest neighbor, support vector machine (SVM), ensemble models (adaptive boosting and extreme gradient boosting) and deep learning (artificial neural network, convolutional neural network and long short-term memory) techniques. Explainable AI with the LIME framework has been applied to interpret the prediction results. The hybrid CNN-LSTM algorithm with the SMOTE approach performed better than the other models on the employed open-source dataset obtained from the Israeli Ministry of Health website, with 96.34% accuracy and a 0.98 F1 score. Finally, this model was chosen to deploy the proposed prediction system to a website, where users may acquire an instantaneous COVID-19 prognosis based on their symptoms.
Keywords: COVID-19, CNN-LSTM, Deep learning, Explainable AI, Hyperparameter optimization, Machine learning, Support vector machine, Webpage
1. Introduction
Coronaviruses are a group of diverse viruses with a wide range of variants that differ in several ways (Bo et al., 2021). In 1965, scientists discovered the first strain of the coronavirus that infected humans. This strain caused common colds in the host body. After more than a decade, the researchers discovered a group of viruses found in humans and animals named after their appearance, which resembled a crown. Hence, the word ‘corona’ in the name of the virus derives from a Latin word that means ‘crown.’ So far, scientists contend that up to seven coronaviruses can infect people. One such severe acute respiratory syndrome-related virus was discovered for the first time in 2003 in southern China, and it spread rapidly in approximately 30 different countries. However, it remains unclear how this virus came to be the source of global devastation in the form of the COVID-19 pandemic. Specialists confirmed that SARS-CoV-2 originated in bats. In the wet market of Wuhan, people would visit to purchase fish and fresh meat as the animals were slaughtered in the same place. It is believed that this is where the contamination spread to humans. The congested and crowded environment is prone to facilitating cross-contamination and the swapping of genes between various animals, which may have resulted in viruses undergoing significant mutations, potentially infecting humans and propagating the infection in a rapid and devastating manner (Jin et al., 2020).
COVID-19 has continued to spread all over the world very rapidly since the beginning of 2021. According to the statistics, as of December 11, 2022, there were 653,374,909 coronavirus-infected cases worldwide, causing 6657,885 deaths. The statistics in North America and Europe are even worse; there were 101,263,635 cases of coronavirus infection in the United States, with 1109,725 deaths (COVID LIVE UPDATE, 2022). Traditional laboratory diagnostic technology implicates various challenges due to the unavailability of facilities and kits to test coronavirus infection, performing a rapid test as an alternative to COVID-19 diagnosis is currently gaining popularity (Amin, Farman, Akgül & Alqahtani, 2022). Given the limits of COVID-19 testing, additional diagnostic methods are considerably in demand. The main goal of developing the web tool proposed in this article is to ensure that the users can quickly determine whether or not they are affected by COVID-19 by answering a few symptom-related clinical questions. People can use forums to ask questions about their symptoms and health concerns and receive advice on possible remedies. This website gives a broad overview of any new respiratory viruses to make people aware of future developments in COVID-19 related health problems.
Significant work has been performed on the automatic detection of coronavirus disease using machine learning techniques. Some of the notable works on this topic have been briefly discussed in the following paragraphs.
Numerous machine learning techniques have been used in the majority of the articles to detect coronaviruses automatically. For instance, in Darapaneni et al. (2020), the authors worked with data on suspected COVID-19 patients and their admission rates in various types of hospital facilities. The authors used data from the Israelita Albert Einstein Medical Center in Sao Paulo city of Brazil to train machine learning models. The data contain the clinical information of the suspected and confirmed COVID-19 patients, such as complete blood cell (CBC) counts and information related to liver, glucose and renal tests. The authors trained models on the dataset using six machine learning algorithms containing various ensemble techniques, i.e., bagging, gradient boosting, and adaptive boosting. They evaluated the machine learning models based on their training accuracy, test accuracy, ROC curve, and confidence score. The random forest approach achieved the best training and validation accuracies of 0.97 and 0.95, respectively. Detection of the onset of the COVID-19 epidemic was examined by Rohini et al. (Rohini et al., 2021) using various machine learning techniques. The authors studied the genesis of the disease and conducted forecasts and time-series monitoring, which is expected to aid in the future control of this disease. KNN with synthetic oversampling accomplished the best performance with an accuracy of 98%. Sharma and his team (D.K. Sharma et al., 2021) worked on the advanced identification of coronavirus using the SVM machine learning model. A hyperparameter optimization strategy was used as a modified cuckoo search technique to improve the SVM classifier's prediction accuracy. An advanced feature selection framework, mRMR (Minimum Redundancy Maximum Relevance), was used to sort COVID-19 and healthy instances. Four distinct machine learning techniques were used by Choudary et al. (Choudary et al., 2021) to identify the presence of COVID-19 in individual patients. The SVM algorithm achieved the highest level of accuracy at 98.38%, but the XGBoost model was determined to be the best model since it had a higher recall value (99.26%) without significantly influencing the other evaluation criteria (accuracy level of 97.71%). Tiwari et al. (Tiwari, Bhati, Al-Turjman & Nagpal, 2022) examined the coronavirus infection trend, treatment and mortality rates by employing classical machine learning techniques. In addition, the future growth of this virus was predicted using an open-source real-time dataset. The authors discovered that the naive Bayes framework forecasted the COVID-19 disease with the highest accuracy. Rai and coauthors (Rai et al., 2022) predicted the death rate of COVID-19 patients employing majority rule-based ensemble techniques. Multivariate imputation, synthetic oversampling and feature selection approaches were used in this work. The XGBoost model attained the best accuracy and F1 coefficient of 86.9% and 71.6%, respectively.
Some authors have tried to predict coronavirus inspection by using both machine learning and deep learning techniques. The use of the occlusion technique in COVID-19 detection was discussed in Udawat, Santani and Agrawal (2021). A content-adaptive progressive occlusion analysis (CAPAO) algorithm was used to perform the analysis. The implementation was performed in several steps, including examining the region of interest, analyzing the spatiotemporal context, and checking the reference target and motion constraints. As a result, various models have produced mixed results, with accuracies ranging between 78.33% and 98.33%. The authors concluded that the COVID-RENet architecture, which is supplied to the SVM to execute the binary classification, accomplished better performance than the proposed CAPAO algorithm. By using a combination of a wrapper feature selection technique and machine learning and deep learning classifiers, Turabieh et al. (H. Turabieh & Karaa, 2021) initiated the automatic forecasting of COVID-19. CNN with the BGA approach achieved an 80% accuracy in predicting COVID-19. Cobre and researchers (Cobre et al., 2021) anticipated coronavirus disease positivity and severity by applying various machine learning and neural network models. The authors employed artificial neural network, DT and KNN models to accurately categorize negative and positive instances with more than 84% accuracy. An accuracy of more than 92% was achieved when classifying patients based on their disease severity with the decision tree approach. Pourhomayoun and Shakibi (Pourhomayoun & Shakibi, 2021) utilized an artificial neural network and achieved an 89.98% overall accuracy level. Shi and colleagues (Shi et al., 2020) attempted to predict the infectious disease using attention-based deep learning models and chest X-ray images. A hybrid attention framework achieved better performance than other works with 94.11% accuracy. Zhang et al. (Zhang, Zhang & Zhu, 2021) employed a custom attention-based CNN framework to identify COVID-19 from 936 chest CT images. This work reported accuracy and an F1 score of 0.9632 and 0.9633, respectively. Wang and team (Wang, Zhu & Zhang, 2021) applied a custom-built CNN framework with a multiple-way image augmentation technique to detect coronavirus. The authors achieved a maximum accuracy and F1 index of 96.36% and 96.35%, respectively. Kalaivani et al. (Kalaivani & Seetharaman, 2022) attempted to identify coronavirus-affected patients using a combined boosted CNN technique from chest X-ray photographs with 0.994 accuracy. Pi and colleagues (Pi & Lima, 2021) implemented image processing techniques and extreme learning-based neural network models to distinguish between healthy and COVID-19 chest CT images. The implemented classification model accomplished 76.98% maximum accuracy for the employed K-fold validation technique.
Few works have deployed the automatic prediction system into a website or smartphone application. Kaiser and his team (Kaiser et al., 2021) created an Android application that includes training, information sharing, risk measurement, symptom display, communication tracking, and quick response during the COVID-19 outbreak. The authors collected a private dataset from a local clothing industry of Bangladesh, RBS Fashion. The author used a fuzzy neural network algorithm in the proposed WorkSafe application to combine examination data and provide an essential metric for determining the safety of health workers. The authors created an app that will track their sick employees and what kind of measures and treatments they receive. The authors built their software with the Larval PHP framework and employed a database on the backend to perform real-time contact tracing among industry workers. The authors accomplished the risk detection by analyzing the collected data and combining multiple machine learning methodologies and the fuzzy neural network method. Koshti and his coauthors (Koshti et al., 2021) created a COVID-19 detection system using machine learning methodologies, a tracking system utilizing geofencing technologies, and an alert system using a mobile application. The authors used geo-fencing and methodological triangulation in the proposed application for data collection. The XGBoost model obtained better precision than the SVC model, with an accuracy of 99%. They used the ‘step out’ feature to access users’ locations for tracking and, finally, stored user data in the Firebase database. The implemented automatic framework could successfully detect the presence of COVID-19 based on the user to identify and track symptoms and geofences around the user when they were in a specific security zone.
The literature reviews mentioned above lead us to the conclusion that extensive research has been done on automatic COVID-19 detection. In addition, numerous machine learning models have been created to forecast the potential occurrence of COVID-19. The results, however, are based solely on the implemented dataset and do not consider the temporal aspects of the progressive symptoms of coronavirus. Most of the work did not contribute to the explanation of the prediction of the machine learning techniques. The majority of these studies did not integrate the automatic detection system into a website or smartphone application for instantaneous prediction.
In this work, an automatic COVID-19 prediction system has been developed employing various machine learning techniques. An open-source dataset comprising information from 2742,596 patients has been obtained. The dataset contains individual results of various symptoms and basic patient information such as the date of the test, gender, age, and COVID-19 test results for almost 2.75 million individuals.
This paper deploys an automatic COVID-19 prediction system where people can obtain an idea of whether they are affected by COVID-19 or not. The major contributions of this work are as follows:
-
•
Preliminary analysis and data preprocessing, including the SMOTE technique, have been performed in order to prepare the dataset for the automatic prediction model training.
-
•
The dataset was used to train with seven machine learning models, including ensemble techniques and three deep learning frameworks. Hyperparameter tuning has been performed to find the salient hyperparameters.
-
•
CNN-LSTM, hybrid deep learning model has been applied to tackle the temporal attributes of the progression-based symptoms of the used COVID-19 dataset.
-
•
Explainable AI with LIME framework to interpret the machine models and SMOTE technique for data imbalance have been applied.
-
•
Finally, a website application has been developed to predict the final results. The SVM model achieved the best results, and it was eventually implemented on the website to predict COVID-19.
The novelty of this article is to implement the hybrid CNN-LSTM deep learning technique to detect COVID-19 from its various progressive symptoms.
Section II discusses the proposed automatic coronavirus identification system. The most important study findings, as well as all of the results and analysis, are presented in Section III. The article is concluded in Section IV by summarizing what we have accomplished in this paper and outlining the enhancements we intend to make in the future.
2. Proposed system
2.1. Dataset
The open-source dataset used in this work is acquired from the Department of Health, Israel (Zoabi, Deri-Rozov & Shomron, 2021). The dataset contains individual results of different symptoms, basic information about the patients, and the COVID-19 test results of 2742,596 patients. There are three types of information available in the dataset. It contains basic information about the patient, i.e., the test date, gender, and if the patient's age is over 60, indicators that denote the symptoms of the patient, including information on five symptoms in the dataset, i.e., cough, fever, shortness of breath, sore throat, and headache and the COVID-19 test result and whether the patient recently came into contact with a COVID-19 patient are also included in the dataset.
2.2. Dataset preprocessing
Before utilizing the dataset for the automatic prediction models’ induction process, initial exploration and data preprocessing have been performed in this work. The age and gender of the patient's personal information are frequently absent from the dataset. The entire dataset would be impacted since it would become biased if average values have been used to replace the missing values. As the used dataset is large in size, the rows with missing values for age and gender are dropped. After dropping the rows with missing values, the size of the dataset becomes 2186,227. The age information do not contain the exact age of patients and rather just indicates if the patients were above 60. Additionally, because patient age feature possesses the lowest correlation with the COVID-19 results, this data can not be used as a feature to train our dataset; therefore, we opted to remove that column. There are some COVID-19 results that are not confirmed as positive or negative. The rows with not confirmed COVID-19 results have been dropped. The final size of the dataset turns into 2151,898, where 1943,172 and 208,726 are confirmed COVID-19 negative and positive cases, respectively. All the attributes are converted from categorical variables to numerical variables as some machine learning models cannot train on label data directly and require all the features in numerical variables. Fig. 1 shows the COVID-19 results in relation to distinct features in the dataset.
Fig. 1.
COVID-19 test results in terms of the features in the dataset.
According to Fig. 1, the dataset is highly imbalanced as there is a higher number of negative cases and a significantly smaller number of positive cases with a ratio of 9.3:1.0. The linear dependence of various features of the used dataset has been measured with the Pearson correlation index, shown in Fig. 2 .
Fig. 2.
Correlation of various features of the used dataset.
To explore further and make a more balanced dataset for training the models, we have also used SMOTE oversampling technique (Suvon et al., 2022) to resample the dataset and make it a 1:1 ratio for the training data. Fig. 3 shows the training dataset after applying SMOTE oversampling technique.
Fig. 3.
Training dataset after applying SMOTE oversampling.
2.3. Machine learning models
The following machine learning techniques have been implemented in this work for automatic coronavirus prediction.
Logistic regression: Logistic regression is an efficient supervised machine learning technique and can be used for the classification of two possible classes in a dataset (Rustam, Zhafarina, Saragih & Hartini, 2021). If we express the logistic regression in an equation, it will be:
| (1) |
where and denote the dependent and independent variables, respectively.
Decision tree: Decision tree is a supervised machine learning model by nature and it can be used in different problem domains, and it is commonly used for classification tasks. The decision tree classification model resembles a tree-structured classifier with vertex representing the features, points representing the decision rules, and leaves representing the outcome (Ahmed et al., 2021). Fig. 4 illustrates a visual representation of the decision tree model's structure.
Fig. 4.
Visual representation of decision tree technique.
Random forest: The random forest model combines and uses various classifiers to explain regression and classification problems (Nurhachita & Negara, 2021). It utilizes ensemble machine learning techniques. The random forest is constructed with many decision trees and gives the best possible output based on the predictions from all the decision trees. Fig. 5 illustrates the structure of a random forest model.
Fig. 5.
Random forest classification structure.
K-Nearest Neighbors (KNN): KNN creates clusters of similar data by calculating their distance and predicts the outcome of new data based on that calculation (Zhang et al., 2018).
Support Vector Machine (SVM): The SVM algorithm attempts to find the optimum line for the decision boundary so that the additional data points can be categorized using it (Cervantes, García-Lamont, Rodríguez & Lopez-Chau, 2020). This decision boundary is also called the hyperplane for n-dimensional data space. The points to draw this line or hyperplane are found by the SVM algorithm during the training phase. Fig. 6 demonstrates the hyperplane categorizing two different classes.
Fig. 6.
Visual Representation of SVM architecture.
Gradient Boosting: Gradient boosting classifiers integrate several weak learning frameworks to establish a robust prediction model (Bentéjac, Csörgő & Martínez-Muñoz, 2021). Decision trees are frequently utilized in the implementation of gradient boosting. The word “Gradient” in gradient boosting suggests that there are two or more derivatives of the same function. In an iterative functional gradient approach, gradient boosting diminishes a loss function by repeatedly selecting a framework that leads toward the negative gradient, i.e., a weak hypothesis.
AdaBoost: The AdaBoost classifier is a meta-estimator that starts with a classifier that has been fitted to the original dataset (Wang, 2012). On the same dataset, this model adjusts an extra copy of the classifier. Nevertheless, the weights of the mistakenly classified examples are modified to make subsequent classifiers more challenging to focus on.
XGBoost: The XGBoost is well known for providing better solutions than other machine learning algorithms (Kumari, Kumar & Mittal, 2021). In fact, since its inception, it has become a “sophisticated” machine learning algorithm for dealing with structural data.
Deep learning models: In this work, various deep learning models, ANN, CNN and hybrid CNN-LSTM, have been used. ANN and CNN frameworks’ working strategies are inspired by the neurons we find in living animals’ brains. In these techniques, many nodes are connected to each other, similar to the human brain's neuron network (S. Sharma et al., 2021). Each node can send a signal or communicate with another node, similar to neurons. In ANN, when a node receives a signal, it analyzes it and then passes it to the next connected node. The corresponding nonlinear functions generate the output of each node. Initially, all the nodes start with random weights, and with the model training, the nodes best fit themselves to make an accurate prediction for the input signal or data.
This study uses CNN-LSTM, a hybrid deep learning technique, for automatic COVID-19 detection. The CNN model extracts the spatial characteristics effectively; however, its performance deteriorates in sequential tasks. The COVID-19 symptoms involve progressive occurrences, starting with fever, headache, and sore throat and progressing to breathing problems and chest pain. The subsequent LSTM model considers the corresponding temporal features of the dataset. The proposed CNN-LSTM architecture utilized in this work comprises similar layers of the model used in Halbouni et al. (2022), as demonstrated in Fig. 7 .
Fig. 7.
Layer structure of the proposed CNN-LSTM model.
After preprocessing the dataset and implementing suitable feature selection techniques, several machine learning models were trained using the dataset. Next, the performance of various models is compared concerning various evaluation metrics. Finally, the best model is used to design the proposed automatic COVID-19 prediction website framework. Fig. 8 illustrates the working sequences of the proposed COVID-19 prediction system.
Fig. 8.
Working sequences of the proposed COVID-19 prediction system.
2.4. Webpage
The goal of this webpage, as demonstrated in Fig. 10, is to provide an online COVID-19 detection to determine whether or not users are likely to be infected with COVID-19. In this work, we used HTML, CSS, and JavaScript for the front end of the proposed online application. The basic foundation of the proposed web framework was built in HTML, and the styling was done in a CSS framework. The SVM model has been chosen for prediction deployment on the proposed website since it achieved the highest accuracy among all the models. The functional flowchart of the proposed automatic COVID-19 prediction website has been illustrated in Fig. 9 . First, users can input their symptoms in binary digits, and they will receive a prognosis and recommendations regarding their symptoms and health conditions. A demonstration of the proposed automatic COVID-19 prediction website has been illustrated in Fig. 10 .
Fig. 10.
Demonstration of the proposed automatic COVID-19 prediction website.
Fig. 9.
Working flowchart of the proposed automatic COVID-19 prediction website.
3. Results and discussion
This section discusses the numerical results of the proposed automated coronavirus detection system for various machine learning frameworks. The dataset has been partitioned into 75% training and 25% test dataset enabling the stratified option.
3.1. Logistic regression model
In this work, various logistic regression models with and L1 and L2 penalty hyperparameters are applied. The logistic regression model achieved 80.91% training accuracy and 83% precision on the test dataset with and L2 penalty. The model performed better in terms of predicting the positive cases. The F1 score of the model is 0.80, and recall is 0.81.
After applying SMOTE technique to the training data, the performance of the logistic regression model improved to 92.02% accuracy and 92% precision. The F1 score of the model also improved to 0.92. Fig. 11 shows the confusion matrix for the logistic regression model after applying SMOTE technique on training data.
Fig. 11.

Confusion matrix for the logistic regression model after applying SMOTE.
3.2. Decision tree model
To find the optimum depth for the decision tree model, before training models, we tested the accuracy of different decision tree models with various depths ranging from 1 to 9 using the hyperparameter optimization technique, GridSearchCV.
The decision tree model achieved 92.18% accuracy and 93% precision on the test dataset with a maximum depth of three. The F1 score of the model was 0.92, and recall was 0.92. Fig. 12 represents the accuracy of the decision tree models with different values for depth after applying SMOTE.
Fig. 12.
Accuracy for different depth values of the decision tree model after applying SMOTE.
3.3. Random forest model
The random forest model performed similarly to the decision tree model on the test dataset and achieved 80.91% accuracy and 83% precision. The model's performance was almost similar to the decision tree model. The F1 score and recall of the model are 0.81 and 0.82, respectively.
After applying SMOTE to the training data, the efficiency of the random forest technique improved significantly. The model achieved 92.19% accuracy with 93% precision. The F1 score of the model was 0.92, and recall was 0.92. Fig. 13 shows the confusion matrix for the random forest model after applying SMOTE approach to the training data.
Fig. 13.

Confusion matrix for the random forest model after applying SMOTE.
3.4. KNN model
The KNN model with nearest neighbors numbered between 1 and 10, required a longer time than the other models to predict on the test dataset as it was computationally complex. With SMOTE and 8 nearest neighbors, it achieved 92.16% accuracy on the test dataset and 91% precision. The F1 score of the model was 0.92, and recall was 0.91.
3.5. SVM model
In this study, three kernel functions—linear, RBF, sigmoid, and = [0.1:100] and gamma = [0.10:10], have been used to train a variety of SVM models. Also, the hyperparameters were tuned using GridSearchCV. Among the combination of the various hyperparameters, SVM with RBF kernel and parameter values and gamma=1 performed the best. Without SMOTE, the SVM model achieved 83% accuracy and precision. The F1 score was 0.81, and recall was 0.82.
After applying SMOTE, the performance improved to 93% accuracy and precision with an F1 score of 0.93 and a recall of 0.93.
3.6. AdaBoost classifier
In this work, the AdaBoost and XGBoost models are trained with various hyperparameters, including the maximum number of estimators between 10 and 100 and learning rate = . The AdaBoost classifier achieved 92.65% accuracy and 96% precision on the test dataset with SMOTE and 0.50 learning rate. The model performed better in terms of predicting the negative cases. The F1 score of the model was 0.96, and recall was 0.96.
3.7. XGBoost model
The XGBoost model achieved 92.18% accuracy and 96% precision on the test dataset with SMOTE and 0.50 learning rate. The model performed better in terms of predicting the negative cases. The F1 score and recall of the model are 0.96 and 0.95, respectively. For positive cases, the precision is 59%. The F1 score of the model was 0.62, and recall was 0.62. Fig. 14 illustrates the confusion matrix for the XGBoost model.
Fig. 14.

Confusion matrix for XGBoost model with SMOTE.
3.8. Performance comparison
Next, we compared different models’ performances on several metrics to find the better-performing model. We examined the receiver operating characteristic (ROC) and the detection error trade-off (DET) graphs to interpret various techniques’ performance. For the ROC curves, the curves closer to the top left corners indicates better performance. According to Fig. 15 , the ROC curve performs better for the decision tree and random forest models. The DET graph shows the detection error trade-off of the modes, and it also shows that the decision tree and random forest perform better than the other models.
Fig. 15.
ROC curve and DET graph of various machine learning models.
We observed that the models’ performances were similar to the other performance metrics, e.g., accuracy, precision, F1 scores, and recall. All models performed better in predicting the positive COVID-19 cases than the negative ones.
Training and validation accuracy and loss graphs with the change of epochs of the proposed CNN-LSTM model with SMOTE technique have been illustrated in Fig. 16 . The symptoms of COVID-19 are progressive in nature and involve temporal characteristics. As anticipated, the proposed CNN-LSTM model accomplished a superior performance with 96.34% validation accuracy compared to other techniques.
Fig. 16.
Training and validation accuracy and loss graphs of the proposed CNN-LSTM model with SMOTE.
Table I contains all the performance metrics for the machine learning models with and without SMOTE technique. As can be seen in Table I, various models performed almost similar in terms of predicting COVID-19 cases without SMOTE technique. But the performance of all the models improved significantly after applying SMOTE oversampling approach to the training data. The accuracy of all the ML models enhanced with an average of approximately 10.95% with SMOTE technique.
Table 1.
Performance of the Models Before and After SMOTE.
| Classification Model | Sampling Technique | Accuracy | Precision | Recall |
F1 Score |
|---|---|---|---|---|---|
| Logistic Regression | without SMOTE | 80.91% | 0.83 | 0.81 | 0.80 |
| with SMOTE | 92.02% | 0.92 | 0.92 | 0.92 | |
| Decision Tree | without SMOTE | 81.67% | 0.83 | 0.82 | 0.81 |
| With SMOTE | 92.18% | 0.93 | 0.92 | 0.92 | |
| Random Forest | without SMOTE | 81.67% | 0.83 | 0.82 | 81 |
| with SMOTE | 92.19% | 0.93 | 0.92 | 0.92 | |
| KNN | without SMOTE | 81.66% | 0.93 | 0.82 | 0.81 |
| with SMOTE | 92.16% | 0.91 | 0.92 | 0.91 | |
| SVM | without SMOTE | 81.68% | 0.83 | 0.82 | 0.81 |
| with SMOTE | 92.91% | 0.93 | 0.93 | 0.93 | |
| AdaBoost | without SMOTE | 80.98% | 0.76 | 0.96 | 0.85 |
| with SMOTE | 92.65% | 0.96 | 0.96 | 0.96 | |
| XGBoost | without SMOTE | 81.67% | 0.77 | 0.95 | 0.85 |
| with SMOTE | 92.18% | 0.96 | 0.95 | 0.96 | |
| ANN | without SMOTE | 31% | 0.31 | 0.56 | 0.40 |
| with SMOTE | 82% | 0.82 | 0.90 | 0.86 | |
| CNN | without SMOTE | 81.35% | 0.78 | 0.91 | 0.83 |
| with SMOTE | 92.88% | 0.95 | 0.95 | 0.95 | |
| CNN-LSTM | without SMOTE | 85.49% | 0.86 | 0.85 | 0.85 |
| with SMOTE | 96.34% | 0.98 | 0.98 | 0.98 |
Fig. 17 shows the performance comparison of the best-performed five prediction techniques. According to this radar chart, the proposed CNN-LSTM deep learning model outperformed all other techniques by a significant margin. Among all the models, the CNN-LSTM with SMOTE performed better than the other models with 96.34% accuracy and 0.98 F1 score. We have compared the CNN-LSTM technique's performance with the other models from similar projects done by other works using COVID-19 symptoms-based text (non-image) datasets. Table II shows the performance comparison of the proposed CNN-LSTM model with other existing automatic COVID-19 detection works.
Fig. 17.
Performance comparison of various best-performed models.
Table 2.
Performance Comparison of This work with Other Existing Models.
| Reference | Dataset | Network | Accuracy | Specificity | Sensitivity |
|---|---|---|---|---|---|
| (Rohini et al., 2021) | COVID-19 Dataset from Kaggle | KNN | 0.98 | 0.236 | 0.952 |
| (D.K. Sharma et al., 2021) | UCI machine learning repository | HPO- FS-SVM | 0.967 | 0.961 | 0.971 |
| (H. Turabieh & Karaa, 2021) | Dataset of Israelita Albert Einstein Hospital, Sao Paulo, Brazil | CNN | 0.80 | – | 0.74 |
| (Cobre et al., 2021) | CORD-19 dataset | RNA | 0.98 | 0.97 | 0.99 |
| (Choudary et al., 2021) | Symptoms and COVID Presence (May 2020 data) | SVM | 0.983 | – | 0.987 |
| (Pourhomayoun & Shakibi, 2021) | Epidemiological data from real-time cases | ANN | 0.899 | 0.936 | 0.936 |
| (Jha, Bhattacharjee, Mustafi & Sahana, 2022) | Dataset of Israelita Albert Einstein Hospital | DNN | 0.969 | – | – |
| (H. Turabieh & Karaa, 2021) | Dataset of Israelita Albert Einstein Hospital | CNN | 0.80 | 0.76 | 0.74 |
| (Banerjee, Ray & Vorselaars, 2020) | COVID-19 Dataset from Kaggle | ANN | 0.90 | 0.94 | 0.85 |
| (Kukar et al., 2021) | Dataset of University Medical centre Ljubljana | DNN | – | 0.98 | 0.82 |
| This work | COVID-19 dataset by the Israeli Ministry of Health | CNN-LSTM | 0.963 | 1.0 | 0.98 |
3.9. LIME-based explainability model
Explainable AI consist of a collection of frameworks that helps to visualize and better understand the prediction offered by the machine learning models (Collini et al., 2022). The LIME-based explainability method has been employed in this work to explain and predict machine learning classifiers’ predictions. The LIME model can interpret the estimates produced by the machine learning model by performing local approximations of the estimate points (Sahay, Omare & Shukla, 2021). The original LIME model brings stability issues; when the model is repeatedly assigned under the same conditions, it can give different explanations. We use an improved version of the LIME model in this research to overcome the stability problem.
Finally, Fig. 18 illustrates an example of an interpretation of the COVID-19 prediction employing the LIME explainable AI framework. The blue bars explain the treatment's background and symptoms that have significant weight to support negative prediction, while the orange bars illustrate the positive one. The explanation indicates that when making the negative COVID-19 prediction with 95% confidence, in this case, the main symptoms of the patient and the history of the treatment that contributes the most to the projection are the test indications, fever, headache, sore throat and shortness of breath.
Fig. 18.
Interpretation of prediction results by the LIME approach.
A feedback survey of the designed automatic coronavirus detection website has been performed in this work. 27 volunteers (15 male and 12 female) aged between 19 and 46 years participated in this evaluation process. All of them assessed distinct features of the proposed website on a Likert scale of 1 to 5. The average of the ratings of various salient features has been demonstrated in Fig. 19 .
Fig. 19.
Ratings of various features of the designed coronavirus detection website.
4. Conclusions
The main goal of this work is to predict whether the user is infected with the coronavirus and create awareness about people's COVID-19 circumstances, which may assist in preventing the disease from spreading more in future. This article utilizes an open-source dataset containing records of more than 2 million people with their symptoms and essential information that includes the test date and result, gender, age, etc. Various data preprocessing techniques are applied, e.g., handling null values, conversion of categorical features, and imbalanced datasets with the SMOTE approach. Next, multiple machine learning approaches with hyperparameter tuning have been utilized. The CNN-LSTM model with the SMOTE approach accomplished the best prediction results regarding classification accuracy and F1 score. Next, an explainable AI technique with the LIME framework is employed to interpret the prediction results. Finally, the proposed machine learning model has been deployed on a website.
An obvious limitation of this study is to utilize an open-source dataset comprising patient data from a specific region. Future studies can use a private dataset with additional biomarkers covering more features and regions in the future. Prediction accuracy can be improved by utilizing meta learning techniques and a combination of the machine learning models with fuzzy logic frameworks. Feature selection with the wrapper technique can be applied to enhance the performance of the system.
Declaration of Competing Interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Footnotes
Supplementary material associated with this article can be found, in the online version, at doi:10.1016/j.ijcce.2023.01.003.
Appendix. Supplementary materials
References
- Jin Y., Yang H., Ji W., Wu W., Chen S., Zhang W., et al. Virology, epidemiology, pathogenesis, and control of COVID-19. Viruses. 2020;12:1–17. doi: 10.3390/v12040372. [DOI] [PMC free article] [PubMed] [Google Scholar]
- COVID LIVE UPDATE: 317,983,061 CASES AND 5,533,431 DEATHS FROM THE CORONAVIRUS - WORLDOMETER In-text: (COVID Live Update: 317,983,061 Cases and 5,533,431 Deaths from the Coronavirus - Worldometer, 2022).
- Darapaneni, N., Singh, A., Paduri, A., Ranjith, A., Kumar, A., Dixit, D. et al. (2020). A machine learning approach to predicting COVID-19 cases amongst suspected cases and their category of admission. International Conference on Industrial and Information Systems, 375–380.
- Kaiser M.S., Mahmud M., Noor M.B.T., Zenia N.Z., Mamun S.A., et al. iWorksafe: Towards healthy workplaces during COVID-19 with an intelligent phealth app for industrial settings. IEEE Access. 2021;9:13814–13828. [Google Scholar]
- Koshti D., Kamoji S., Cheruthuruthy K., Shahi S.P., Mishra M. International Conference on Intelligent Computing and Control Systems. 2021. A detection, tracking and alerting system for Covid-19 using geo-fencing and machine learning; pp. 1499–1506. [Google Scholar]
- Udawat B., Santani A., Agrawal S. International Conference on Advanced Computing and Communication Systems. 2021. Occlusion detection for COVID-19 identification: A review; pp. 298–301. [Google Scholar]
- Zoabi Y., Deri-Rozov S., Shomron N. Machine learning-based prediction of COVID-19 diagnosis based on symptoms. npj Digital Medicine. 2021;4:1–5. doi: 10.1038/s41746-020-00372-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rustam Z., Zhafarina F., Saragih G.S., Hartini S. Pancreatic cancer classification using logistic regression and random forest. International Journal of Artificial Intelligence. 2021;10:476–481. [Google Scholar]
- Ahmed N., Ahammed R., Islam M.M., Uddin M.A., Akhter A., Talukder M.A., et al. Machine learning based diabetes prediction and development of smart web application. International Journal of Cognitive Computing in Engineering. 2021;2:229–241. [Google Scholar]
- Nurhachita N., Negara E.S. A comparison between deep learning, naïve bayes and random forest for the application of data mining on the admission of new students. International Journal of Artificial Intelligence. 2021;10:324–331. [Google Scholar]
- Zhang S., Li X., Zong M., Zhu X., Wang R. Efficient kNN classification with different numbers of nearest neighbors. IEEE Transactions on Neural Networks and Learning Systems. 2018;29:1774–1785. doi: 10.1109/TNNLS.2017.2673241. [DOI] [PubMed] [Google Scholar]
- Bo W., Ahmad Z., Alanzi A.R.A., Al-Omari A.I., Hafez E.H., Abdelwahab S.F. The current COVID-19 pandemic in China: An overview and corona data analysis. Alexandria Engineering Journal. 2021;61:1369–1381. [Google Scholar]
- Cervantes J., García-Lamont F., Rodríguez L., Lopez-Chau A. A comprehensive survey on support vector machine classification: Applications, challenges and trends. Neurocomputing. 2020;408:189–215. [Google Scholar]
- Amin M., Farman M., Akgül A., Alqahtani R.T. Effect of vaccination to control COVID-19 with fractal fractional operator. Alexandria Engineering Journal. 2022;61:3551–3557. [Google Scholar]
- Suvon M.N.I., Siam S.C., Ferdous M., Alam M., Khan R. Masters and doctor of philosophy admission prediction of Bangladeshi students into different classes of universities. International Journal of Artificial Intelligence. 2022;11:1545–1553. [Google Scholar]
- Bentéjac C., Csörgő A., Martínez-Muñoz G. A comparative analysis of gradient boosting algorithms. Artificial Intelligence Review. 2021;54:1937–1967. [Google Scholar]
- Collini E., Palesi L.A.I., Nesi P., Pantaleo G., Nocentini N., Rosi A. Predicting and understanding landslide events with explainable AI. IEEE Access. 2022;10:31175–31189. [Google Scholar]
- Wang R. AdaBoost for feature selection, classification and its relation with SVM: A Review. Physics Procedia. 2012;25:800–807. [Google Scholar]
- Rohini, M., Naveena, K.R., Jothipriya, G., Kameshwaran, S., & Jagadeeswari, M. (2021). A comparative approach to predict corona virus using machine learning. International Conference on Artificial Intelligence and Smart Systems, 331–337.
- Sharma D.K., Subramanian M., Malyadri P., Reddy B.S., Sharma M., Tahreem M. Classification of COVID-19 by using supervised optimized machine learning technique. Materials Today Procedings. 2021:2060–2062. doi: 10.1016/j.matpr.2021.11.388. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Turabieh, H., & Karaa, W.B.A. (2021). Predicting the existence of COVID-19 using machine learning based on laboratory findings. International Conference of Women in Data Science, 1–7.
- Cobre A.F., Stremel D.P., Noleto G.R., Fachi M.M., Surek M., Wiens A., et al. Diagnosis and prediction of COVID-19 severity: Can biochemical tests and machine learning be used as prognostic indicators? Computers in Biology and Medicine. 2021;134 doi: 10.1016/j.compbiomed.2021.104531. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Choudary M.N.S., Bommineni V.B., Tarun G., Reddy G.P., Gopakumar G. International Conference on Electronics and Sustainable Communication Systems. 2021. Predicting Covid-19 positive cases and analysis onthe relevance of features using SHAP (shapley additive explanation; pp. 1892–1896. [Google Scholar]
- Pourhomayoun M., Shakibi M. Predicting mortality risk in patients with COVID-19 using machine learning to help medical decision-making. Smart Health. 2021;20 doi: 10.1016/j.smhl.2020.100178. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sahay, S., Omare, N., & Shukla, K.K. (2021). An approach to identify captioning keywords in an image using LIME. International Conference on Computing, Communication, and Intelligent Systems, 648–651.
- Kumari S., Kumar D., Mittal M. An ensemble approach for classification and prediction of diabetes mellitus using soft voting classifier. International Journal of Cognitive Computing in Engineering. 2021;2:40–46. [Google Scholar]
- Tiwari D., Bhati B.S., Al-Turjman F., Nagpal B. Pandemic coronavirus disease (Covid-19): World effects analysis and prediction using machine-learning techniques. Expert Systems. 2022;39:1–20. doi: 10.1111/exsy.12714. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Shi W., Tong L., Zhuang Y., Zhu Y., Wang M.D. EXAM: An explainable attention-based model for COVID-19 automatic diagnosis. International Conference on Bioinformatics, Computational Biology and Health Informatics. 2020:1–6. [Google Scholar]
- Pi P., Lima D. Gray level co-occurrence matrix and extreme learning machine for Covid-19 diagnosis. International Journal of Cognitive Computing in Engineering. 2021;2:93–103. [Google Scholar]
- Zhang Y., Zhang X., Zhu W. ANC: Attention network for COVID-19 explainable diagnosis based on convolutional block attention module. Computer Modeling in Engineering and Sciences. 2021;127 [Google Scholar]
- Wang S., Zhu Z., Zhang Y. PSCNN: Patchshuffle convolutional neural network for COVID-19 explainable diagnosis. Frontiers in Public Health. 2021;9 doi: 10.3389/fpubh.2021.768278. [DOI] [PMC free article] [PubMed] [Google Scholar] [Retracted]
- Sharma S., Gupta R., Bhatia R., Toor A.P., Setia H. Predicting microbial response to anthropogenic environmental disturbances using artificial neural network and multiple linear regression. International Journal of Cognitive Computing in Engineering. 2021;2:65–70. [Google Scholar]
- Jha R., Bhattacharjee V., Mustafi A., Sahana S.K. Improved disease diagnosis system for COVID-19 with data refactoring and handling methods. Frontiers in Physilology. 2022;13 doi: 10.3389/fpsyg.2022.951027. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Turabieh, H., & Karaa, W.B.A. (2021). Predicting the existence of COVID-19 using machine learning based on laboratory findings. International Conference of Women in Data Science, 1–7.
- Banerjee A., Ray S., Vorselaars B., et al. Use of machine learning and artificial intelligence to predict SARS-CoV-2 infection from full blood counts in a population. International Immunopharmacology. 2020;86 doi: 10.1016/j.intimp.2020.106705. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kukar M., Gunčar G., Vovko T., Podnar S., Černelč P., Brvar M., et al. COVID-19 diagnosis by routine blood tests using machine learning. Scientific Reports. 2021;11 doi: 10.1038/s41598-021-90265-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rai N., Kaushik N., Kumar D., Raj C., Ali A. Mortality prediction of COVID-19 patients using soft voting classifier. International Journal of Cognitive Computing in Engineering. 2022;3:172–179. [Google Scholar]
- Kalaivani S., Seetharaman K. A three-stage ensemble boosted convolutional neural network for classification and analysis of COVID-19 chest X-ray images. International Journal of Cognitive Computing in Engineering. 2022;3:35–45. [Google Scholar]
- Halbouni A., Gunawan T.S., Habaebi M.H., Halbouni M., Kartiwi M., Ahmad R. CNN-LSTM: hybrid deep neural network for network intrusion detection system. IEEE access : practical innovations, open solutions. 2022;10:99837–99849. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
















