key: cord-0996961-njimvnbv authors: Das, Anupam title: Adaptive UNet-based Lung Segmentation and Ensemble Learning with CNN-based Deep Features for Automated COVID-19 Diagnosis date: 2021-12-22 journal: Multimed Tools Appl DOI: 10.1007/s11042-021-11787-y sha: a977d2b2976f756498fc96b3f3bb9f1d8cb6a0c2 doc_id: 996961 cord_uid: njimvnbv COVID-19 disease is a major health calamity in twentieth century, in which the infection is spreading at the global level. Developing countries like Bangladesh, India, and others are still facing a delay in recognizing COVID-19 cases. Hence, there is a need for immediate recognition with perfect identification of infection. This clear visualization helps to save the life of suspected COVID-19 patients. With the help of traditional RT-PCR testing, the combination of medical images and deep learning classifiers delivers more hopeful results with high accuracy in the prediction and recognition of COVID-19 cases. COVID-19 disease is recently researched through sample chest X-ray images, which have already proven its efficiency in lung diseases. To emphasize corona virus testing methods and to control the community spreading, the automatic detection process of COVID-19 is processed through the detailed medication reports from medical images. Although there are numerous challenges in the manual understanding of traces in COVID-19 infection from X-ray, the subtle differences among normal and infected X-rays can be traced by the data patterns of Convolutional Neural Network (CNN). To improve the detection performance of CNN, this paper plans to develop an Ensemble Learning with CNN-based Deep Features (EL-CNN-DF). In the initial phase, image scaling and median filtering perform the pre-processing of the chest X-ray images gathered from the benchmark source. The second phase is lung segmentation, which is the significant step for COVID detection. It is accomplished by the Adaptive Activation Function-based U-Net (AAF-U-Net). Once the lungs are segmented, it is subjected to novel EL-CNN-DF, in which the deep features are extracted from the pooling layer of CNN, and the fully connected layer of CNN are replaced with the three classifiers termed “Support Vector Machine (SVM), Autoencoder, Naive Bayes (NB)”. The final detection of COVID-19 is done by these classifiers, in which high ranking strategy is utilized. As a modification, a Self Adaptive-Tunicate Swarm Algorithm (SA-TSA) is adopted as a boosting algorithm to enhance the performance of segmentation and detection. The overall analysis has shown that the precision of the enhanced CNN by using SA-TSA was 1.02%, 4.63%, 3.38%, 1.62%, 1.51% and 1.04% better than SVM, autoencoder, NB, Ensemble, RNN and LSTM respectively. The comparative performance analysis on existing model proves that the proposed algorithm is better than other algorithms in terms of segmentation and classification of COVID-19 detection. The Severe acute respiratory syndrome Corona virus 2(Sars-Cov-2), which is also called as Corona Virus Disease-19 virus comes from the corona virus family [10] . This virus induces illness starting from communicable diseases like fever, common cold to severe respiratory diseases, which leads to difficulty in breathing [26] . In December 2019, this novel corona virus is initially reported in Wuhan, China that is now started to spreading in other countries around world-wide. The World Health Organization (WHO) officially declared the Corona virus explosion a pandemic on March 11, 2020 . Due to this COVID-19 virus, people's lifestyle and healthcare [25] sectors are tremendously affected around the world. The latest reports have portrayed that the global death record has exceeded over 578 K. Among them, the US is the most affected country with confirmed cases of 3.48 M (as of July 2020), and significantly there were 7.37 M of the people relieved from the disease [34] . Due to this difficult pandemic situation, most of the countries have announced a whole lockdown to stop the virus from spreading across the people. The people are affected by COVID-19, including both asymptomatic and symptomatic cases [39] . So, it is important to test the people who have the infection and also the people who have contact with affected people [2] . The COVID-19 infection easily spreads among humans by its aerosols kind of nature, especially by means of the sneeze, cough, or any other kind of physical contact [19] . Even though this virus affects people regardless of age group, most of the elderly aged people and the people who are already affected with cardiovascular diseases, cancer, diabetes, and respiratory diseases are targeted easily. The COVID-19 infection has some common symptoms such as fever, dry cough, exhaustion, and body pain [31] . Still, sometimes these mild symptoms start to grow around 5 to 6 days with severe symptoms such as high fever and breathing difficulty after being affected by the virus. Even though specific drugs, possible vaccines, and plasma-therapy treatment are being examined and implemented on sample subjects [14] , there are no clinically proven medicines against this disease up-to-date. The rehabilitation of this disease is mainly based on the immunity power of the people who are all affected [13] . Moreover, precaution is better than cure, so the WHO advises taking necessary preventive options such as basic personal hygienic measures and social distancing [37] . It also recommends real-time Polymerase Chain Reaction (PCR) testing that identifies the presence of antigen from the respiratory samples for COVID-19 detection [40] . The test results are usually acquired in a few hours to two days, which is considered as a critical phase according to the treatment rules. Rapid Diagnostic Test (RPT) is another diagnostic testing method to identify the presence of viral proteins which in respiratory samples. The disease is rapidly diagnosed by many kinds of automatic detection that reduce the work pressure of doctors and also useful for treating the patients at the appropriate time and reduces the dead counts [1] . The X-Ray images develop the observation and identification of automatic detection with various computational approaches based on machine learning. It is a combination of methods essentially focused on classifying and automatically extracting the images. Deep learning is experienced in the fields of segmentation, classification, and medical image recognition [38] . In the last five years, deep learning applications have enhanced and empower experimenters to analyze X-Ray scans [30] . Deep learning is based on machine learning, and it offers automatic learning of realistic features from new data sets [15] . CNN is a technique that provides a major contribution in the medical field to develop deep learning techniques, such as "Deep Boltzmann Machine (DBM), Stacked Auto-Encoder (SAE), and Deep Belief Network (DBN)" [27] . The emergence of deep learning in the medical field helps researchers to focus on automatic detection models [17] . The main contribution of the lung segmentation and classification model of the proposed COVID-19 detection model is given here. The rest of the sections of this paper are given here. Section II discusses the existing methodologies, their advantages, and their challenges. Section III briefly reviews the enhanced lung segmentation and classification process using X-ray images for COVID-19 detection model. Section IV presents the lung segmentation by the proposed AAF-U-Net model. Section V elaborates the ensemble learning with CNN-based deep features for COVID-19 detection. Section VI analyzes the performance of the COVID-19 classification model. Section VII concludes the COVID-19 detection model. In 2020, Karthik et al. [21] have developed a unique CNN architecture, which has convolutional filter patterns that would return only a specific COVID-19 class by prohibiting some filters in the convolutional layer. The CNN architecture has included various types of convolutional methods to obtain a better framework for increasing gradient flow and learning robust features between layers. The specific pneumonia classes were identified using deep learning, which acquired custom filters inside one convolutional layer. The proposed work has compared several methods for COVID-19 through X-ray images with improved accuracy. In 2021, Sheykhivand et al. [33] have developed a new method for the automatic detection of COVID-19 using a deep neural network. The X-ray images were classified into 4 classes such as bacterial, viral, COVID-19, and healthy classes."The Generative Adversarial Networks (GANs) and Long Short Term Memory (LSTM) networks" were used together with a combination of the deep transfer learning that doesn't include the feature extraction to diagnosis pneumonia. The deep transfer learning networks such as "Inception V4, MobileNet, Inception-ResNet V2 and Inception V4" were compared with the deep proposed network, and the results generated over the developed model were improved on the basis of precision, specificity, sensitivity, and accuracy. The proposed method has been used in the real time treatment based on its high performance. In 2020, Panwar et al. [28] have proposed an algorithm on the basis of deep transfer learning that has enhanced the recognition of COVID-19. The proposed algorithm has used X-ray images and CT-Scan of chest. Later, the primary screening of these images has delivered the proper information in the identification of assumed COVID-19 cases. There were 3 datasets used for this method namely "Chest X-ray images (Pneumonia), COVID-chest X-ray and SARS-COV-2 CT-scan". The results have revealed that the developed model has recognised the positive cases in less than two seconds, which was earlier when compared to existing RT-PCR screening. Grad-CAM was another approach, which was implemented based on colour visualization method to create a typical pattern between COVID-19 and Pneumonia radiology images for future use. In 2021, Ismael and Sengur [18] have suggested a new end-to-end training model based on CNN. The superior classification accuracy of this experimental study was attained on "two hundred healthy and one hundred and eighty COVID-19 datasets". The profound features have obtained from the SVM classifier, and ResNwt50 model with the input Linear Kernel function attained 94.7% accuracy. The success of the tuned end-toend training model was found to be 91.6% and ResNet50 produced 92.6% result. The deep approaches were compared with SVM classifiers and different types of local texture descriptors and the obtained results has shown that the performance of deep approaches was high when compared to existing models in the recognition of COVID-19 through chest X-ray images. In 2021, Hussain et al. [16] have proposed a CoroDet based novel CNN model for automatic recognition of COVID-19 through chest X-rays and CT scan images. The proposed model has produced the accurate diagnosis with 2 class (Normal and COVID), 3 class classifications (non-COVID pneumonia, COVID and Normal) and 4 class classifications (Normal, non-COVID pneumonia, non-COVID viral pneumonia and COVID). The developed model was compared with 10 existing models to calculate the accuracy for achieving better performance. In 2020, Rajaraman et al. [29] have established a pruned deep learning model for identifying pulmonary symptoms of COVID-19 through X-ray images. A pre-trained Image-Net models and a novel CNN were accomplished at patient-level on widely available chest X-Ray image collections to examine the modality-specific representations. This model has studied fine-tuned information and increased the performance in classifying the X-Ray images as normal, COVID-19 and bacterial pneumonia defects. The finest models were continuously pruned and compared with different ensemble models to improve classification performance, memory efficiency and to reduce complexity. The iterative pruning model, ensemble learning and modality-specific information transfer have used in this model, which has resulted in improved forecasts. This method was expected to implement in COVID-19 tests with chest radiographs. In 2020, Julian et al. [3] have demonstrated a deep neural network models to improve an automatic detection of COVID-19 with chest X-ray images to differentiate between pneumonia and COVID-19 and groups. There were three pre-processing models used to test the developed model, which has also estimated how the pre-processed data have impact on the results. Similarly, the serious enquiry of different inconsistency problems was performed, and 5% of the results have shown that it has attained 87.4% accuracy and 91.5% average recall for classification. In 2020, De et al. [8] have proposed a unique automatic method for the detection of chest X-ray images developed by handy device into two various clinical categories such as pathological and normal. There were three deep learning methods based on densely CNN architecture. The combined response of all these methods have permitted to improve the variation between patients affected with COVID-19 and patients with other diseases. Even with the low quality of X-Ray images, the developed model has provided high performance, which has promoted to improve the medical decisionmaking progression. In 2021, Chen et al. [6] have developed a structured model pruning library for Ten-sorFlow2 to modify the models instead of combining the mask layers. The accuracyefficiency trade-off was measured for various structured model pruning methods and datasets (CIFAR-10 and ImageNet) on Tensor Processing Units (TPUs). It has shown that the structured model pruning could improve model memory usage and speed on TPUs without losing accuracy, especially for small datasets. The results were suggested that structured model pruning was a promising approach to improve the efficiency of CNNs on TPUs. In 2021, Kaur et al. [22] have proposed an expert model on the basis of deep features, and Parameter Free BAT (PF-BAT) optimized Fuzzy K-nearest neighbor (PF-FKNN) classifier to diagnose novel corona virus. The features were extracted from the fully connected layer of transfer learned MobileNetv2 by the FKNN training. The PF-BAT was fine-tuned by the hyperparameters of FKNN. Then, the proposed model has been extensively validated on publicly available CT scan image datasets. The analyses on the datasets have revealed that with the scheme of hyper-parameter optimization, an increase in the validation accuracy was obtained. In 2021, Wang and Quan [7] have proposed a deep supervised autoencoder (DSAE) framework to automatically identify COVID-19 using multi-view features extracted from CT images. It was designed to encode valuable information from different frequency features and has constructed a compact class structure for separability. Here, a multi-task loss function has consisted of a supervised loss and a reconstruction loss. This method has demonstrated that it has achieved better diagnostic performance and has potential clinical application for the diagnosis of COVID-19. COVID-19 is a deadly pandemic that resulted in important threats to human lives. The automatic COVID-19 detection can be done through control community outbreak, exact medication, and reinforcing corona virus testing techniques. Various BAT • It can improve its local search capability and ensure the stability of the algorithm • It requires very huge amount of data to perform better than other methods Wang and Quan [7] DSAE • It is useful to removes noise from the input signal • It is very expensive to train due to the complex data models challenges exist in the manual tracing of this infection from the X-ray images. Table 1 reveals the features and challenges of the traditional COVID-19 detection methods. CNN decreases the model complexity, prediction variance, and enhanced generalization, performance and faster inference and also exactly localizes the salient ROI by the pruned methods. Yet, it is limited by the computational resources, inherent variability, and dataset size. Deep learning permits a reliable and robust analysis for supporting the clinical decision-making process. Still, it does not attain the datasets from the portable equipment. Hence, novel deep learning methods must be established for diagnosing the COVID-19 pandemic from the X-Ray images in a more reliable and appropriate manner. detection using X-ray images In recent years, COVID-19 spreads rapidly, and so the diagnosis and detection of COVID-19 is significant and considered as a major challenge in the world. X-rays and Computed Tomography (CT) are used to detect COVID-19. The benefits offered by using X-rays over CT scans are safer, quicker, and less harmful during diagnosis. However, the manual evaluation of these methods is time-consuming. Therefore instead of RT-PCR test, X-rays and CT scans tests are used, and it is easy for the medical professionals to see the results immediately while the process is going on, whereas the conventional RT-PCR only provides results when the process is at the end-stage. However, it is required to re-examine the high volume of infected people to know the seriousness of the disease. Therefore, the performance of X-rays and CT scans has to be improved by increasing the diagnosis speed. The performance of detection is improved by Artificial Intelligence (AI), which is a technique used for diagnosis. AI algorithm needs to associate with exposure history, laboratory tests and chest imaging with clinical symptoms of COVID-19 detection. The detection performance of COVID-19 is further improved by deep learning approaches which leads to train AI to predict outputs with given dataset that produce high accuracies. Although deep learning algorithm provides detection enhancement in COVID-19, the major drawback is the overfitting problem. Therefore, the performance and success ratio of COVID-19 detection can be enhanced by developing a new deep learning model, depicted in Fig. 1 . The proposed COVID-19 detection has different processes like, "(1) Pre-processing, (2) Lung segmentation, (3) Deep feature extraction, and (4) Ensemble learning-based detection", which has been followed in both training and testing stages. Initially, the gathered X-ray images are given as input for the pre-processing phase, which is done by image scaling and image filtering approaches. The image scaling resizes the input images, and the image filtering enhances the input images, including smoothening, sharpening, and edge enhancement of input images. In the filtering, a median filter is used, which reduces blurriness or noise from the images. The pre-processed images are forwarded to the lung segmentation process, which is done by using ADL-U-Net. It is a medical segmentation tool that acts as a binary segmentor to discriminate the infected and healthy lung tissues, also learns the infection type on the lung images by acting as the multi-class segmentors. The improved UNET [41] termed AAF-U-Net is intended to maximize the multi-objective function concerning accuracy and precision for attaining the accurate segmented results, in which the activation function of U-Net is optimized using SA-TSA. Then, the segmented images are processed to the deep feature extraction phase, which is done by the CNN model. In this phase, the features are extracted from the pooling layer of CNN, where the hidden neurons are optimized using SA-TSA. Further, the COVID-19 diagnosis is processed by the Ensemble learning-based detection model named EL-CNN-DF, which employs three models, namely SVM, Auto-encoder, and Naive-Bayes classifiers, in which the image is classified efficiently using SA-TSA. As the major contribution of this developed diagnosis model, the detection accuracy is maximized for efficient COVID-19 diagnosis. The proposed COVID-19 detection model gathers the input images from "https:// github. com/ ieee8 023/ covid-chest xray-datas et": Access date: 2021-05-21″. The datasets consist of X-ray images of lungs with COVID-19 and other viral pneumonia diseases. The sample X-ray images consist of two parts such as (i) Pneumonia or other virus affected lung images and (ii) COVID-19 affected lung images, which are depicted in Fig. 2 . The gathered input X-ray images are termed as Y n , where n = 1, 2, ⋯ , N and N represent the total number of images present in the dataset. The developed COVID-19 diagnosis involves pre-processing phase to improve the quality of input image. The pre-processing method is used to enhance some features and suppress the undesired distortions in the input images. The pre-processing phase improves the input images by reducing the noise or blurriness in the images. The preprocessing phase consists of two techniques, namely (1) Image scaling, (2) Median filtering. These techniques are described here: (a) Image scaling [36] : The image scaling is efficient in resizing the input X-ray images. There are two types of scaling such as scaling down and scaling up, which make the images into smaller and larger images. The images should not loss its quality during the process. Image scaling describes the homogenous map between the image pixels, which is formulated in Eq. (1). Here, the input image is termed as Y n , the resize factor is denoted as scale that is a numerical scalar and the resized image is considered as Y RS n . If Y RS n > Y n , then scale > 1. After the scaling process, the original images are resized into 128 × 128 respectively. The resized images Y RS n are given to the filtering process. (2) Median filtering [44] : It is used to provide a noiseless image which is done by the nonlinear filter, where the median is used to retain the sharpness of image edges while filtering. The median value is replaced in the place of noise value by considering the ranking of gray levels. The median filtering output is formulated in Eq. (2). Here, the input image is termed as Y RS n (a, b) , and the output image is represented as The proposed COVID-19 diagnosis involves the segmentation phase for efficient and faster diagnosis. This model has used AFF-U-Net [12] based lung segmentation to obtain more precise segments. U-Net is classified into two parts: The first part is based on typical CNN, which is the contracting path. In this path, each block comprises of two consecutive 3 × 3 convolutions carried by a max-pooling layer and ReLU activation unit. This method is repeated many times. In the expansive path of U-Net, the feature map is unsampled based on 2 × 2 up-convolutions in each stage. Then, the feature map in the contracting path and the unsampled feature map is cropped and connected, which is followed by ReLU activation and two successive 3 × 3 convolutions. Finally, the segmented image is produced by an additional 1 × 1 convolution, which is employed to minimize the channels counts in the feature map. In this method, cropping is a significant part of discarding the small amount of contextual information in the edges of pixel features. This implements a U-shape network and significantly leads to pass the contextual information from large overlapping areas across the networks. Therefore, U-Net uses very limited trading samples and provides highly detailed segmentation feature maps in our proposed COVID-19 detection lung segmentation phase. In our proposed COVID-19 detection model, U-Net provides a better segmentation process with detailed feature maps. However, this architecture provides less performance while extracting the deep feature representations. In middle layers, the hidden neurons of deeper or complex models are present in UNet. As a modification to the conventional UNet model, the activation functions are optimized by the SA-TSA, so-called as AAF-U-Net for increasing the segmentation accuracy in COVID-19 detection. Here, the COVID-19 detection model takes the input as the pre-processed images Y M n . The activation functions used in UNet are explained here, which are (1) Linear, (2) Sigmoid, (3) Soft-max, (4) Tanh, and (5) ReLU. In the network architecture, the biases and weights of the neurons are restructured based on the error at the output, and it is known as the back-propagation process. Activation functions allow the process to update the biases and weights by providing the gradients and the error. Unfortunately, the neuron does not study with just a linear function. So the proposed model has to use some non-linear functions such as Sigmoid, Soft-max, ReLU, and Tanh. (1) Linear activation function It is a simple form of the linear function. "It takes the inputs, multiplied by the weights for each neuron, and creates an output signal proportional to the input". (2) Sigmoid activation function This function is very simple, which takes "a real value as input and gives probability always between 0 and 1". The main advantage is that, it provides good performance for classification. However, it raises a problem of "vanishing gradients" because of the non-zero centered output that makes the gradient updates to extreme in different directions. If the output is considered as 0 < output < 1, then it results in harder optimization. However, it suffers from the computational time in hidden layer. This function is used usually at the final layer of neural network. It computes "the probability distribution of the event above 'n' different events". The benefit of the function is its ability to handle multiple classes. However, this function produces interrelated outputs. Therefore, in the proposed model, the above activation functions are optimized or tuned using the SA-TSA algorithm to achieve the optimal results of lung segmentation for an efficient COVID-19 detection model. The optimization pattern of AAF-U-Net model using SA-TSA algorithm is represented in Fig. 3 . Here, the activation functions like Linear, Sigmoid, Soft-max, Tanh and ReLU are represented as L r , S d , S m , T h and R u respectively, which are in the range of 0 to 4, respectively. The proposed AAF-U-Net-based lung segmentation considers the multi-objective function concerning with maximization of accuracy (accr) and precision (pcn). Accuracy accr is referred as "the nearness of the measurements to a specific value. The low accuracy creates the difference between a result and a "true" value". The high accuracy needs both high trueness and high precision. The accuracy is the number of correct forecasts (both true negatives and true positives) between the total cases tested. It is formulated in Eq. (4). Here, term t p is denoted as true positives, f p is denoted as false positives, t n is denoted as true negatives and f n is denoted as false negatives. Precision pcn is referred as the points that are stated to be positive; especially, it is used to declare what percentage of the points is truly positive. Finally, the AAF-U-Net-based segmented images are represented as Y AAF−Unet n . The proposed AAF-U-Net using SA-TSA algorithm for the COVID-19 detection model is depicted in Fig. 4 . The pre-processed images of the chest X-ray images are done by image scaling and median filtering. The second phase is lung segmentation, which is accomplished by the AAF-U-Net. As a modification, a Self SA-TSA is developed as a boosting algorithm to increase the performance of segmentation and detection. The multiobjective functions concerning with accuracy and precision to achieve the accurate segmented results, in which the activation function of U-Net is optimized using SA-TSA. In the proposed COVID-19 detection model, the CNN model is used to extract the spatial dependencies from the segmented input image. The CNN has achieved significant (i) Convolution layer: The convolution layers provide output as extracted features through input images. The feature map consists of neurons, and each neuron has its own field which is connected to adjacent neurons in the previous layer. A set of learned weights connects the neurons. The inputs are given to the convolution layer with trained weights in order to produce a new feature map. The performance of the convolution layer is improved by hidden neurons optimization in the feature map using SA-TSA. The feature map extraction is formulated in Eq. (6) . Here, the input image is termed as Y AAF−Unet n , E t is represented as output feature image, YF t is termed as t th output feature map in the convolutional layer, * symbol denotes two (ii) Pooling layer: The feature maps which are extracted from the convolution layer are given to the pooling layer. This layer decreases the spatial resolution of the input feature map images and transmits the maximum value to the next layer inside the field. The pooling layer chooses the leading element inside each receptive field, and it is formulated in Eq. (7). Here the outcome of the pooling process is termed as E tjk , related with the t th feature map. The location of the element Y AAF−Unet n is termed as (u,v) enclosed by the pooling area L jk , which represents a receptive field near the position (j,k). Further, the extracted deep features E df from the pooling layer are used for ensemblebased detection process, where df = 1, 2, ⋯ , DF and DF denotes the total number of deep features extracted from the pooling layer of CNN. The number of epochs and the convergence of CNN network are shown in Fig. 5 . The ensemble learning methods are used to improve the results of deep learning by combining several models, which gives an improved prediction. The proposed COVID-19 detection use ensemble classification techniques, which improve the accuracy of detection with enhanced performance. In recent studies, ensemble learning shows the better prediction with the most significant outcomes, and thus, the proposed model suggests a new EL-CNN-DF to get more suitable results for COVID-19 diagnosis. There are three classifiers used in the EL-CNN-DF based detection, namely (a) SVM, (b) Autoencoder, and (c) NB, in which the ranking strategy is used to get the efficient result in the final decision (a) SVM [11] : The proposed model uses the SVM classifier to achieve improved efficiency. It is used to reduce the unseen errors or generalization errors caused by machine learning data. SVM uses a function namely kernel function, which is a set of mathematical functions. The input data E df is given to the kernel function that is transformed into the required form of data. Therefore, SVM classifier takes the input from the CNN deep features, and it clearly classifies the features to show the relevancy among the features with COVID-19 diseases or other Pneumonia viral diseases. The process of SVM classifier is formulated in Eq. (8) . Here, V t is denoted as weight vector, ϕ denotes the mapping function of input and the dimensional space that makes the classification process as an easy one. The output g SVM (y) uses the trained image values, and this value is used to classify the test images clearly. The kernel function κ is used to convert the input data into the required form which is optimized using the SA-TSA algorithm. (b) Autoencoder [43] : The proposed COVID-19 model uses an autoencoder to get the distortion-less feature classes by mapping the features, where the hidden neurons are optimized using SA-TSA. The optimization of hidden neurons has been done by adjusting the values among 10 to 50.The mapping is done by transferring the data into encoder, which converts the high-dimensional data into low-dimensional data and finally getting back the high-dimensional data using decoder. At last, the classified outcomes are attained accurately that reveals the features between classes. It reduces the dimensionality of the data used. It can extract the features easily. Due to these advantages, the autoencoder has been chosen as a classifier. (c) NB [5] : It is capable among many learning algorithms, which is mainly used for data mining processes based on machine learning. It is generally a simple classifier with the traditional statistical theory named "Bayes theorem", which has a strong hypothesis. The extracted features should not be dependent on each other concerning the class. The advantages of NB algorithm are high efficiency in computation, provides new training data quickly, capable of handling the distortion and missing values in the dataset. Thus it is selected for ensemble learning. The probability distribution of each class for the predictive attributes with the given vector values is formulated in Eq. (9) . Here E df denotes the vector of random variables, which are the observed attribute values as given as E df = E 1 , E 2 , ...., E DF in the training set to certain class label L, P(X j ) denotes the prior probability of class X j and P X j |E df refers to class conditional probabilitydensity functions. The estimation of test cases from training datasets is formulated in Eq. (10). Here E df i denotes the i th attributes values in E df and a is the number of attributes. The calculated probability distribution P(E df ) over the set of features is formulated in the Eq. (11) . Here c denotes the number of classes and L i denotes the i th class. However, the assumption of feature independence is a major challenge for NB algorithm. Therefore, the proposed model uses the Gaussian function along with NB algorithm. The Gaussian function is also called as a probability density function, which gives the estimation for the probability of new input value. The Gaussian predictions give more accuracy rate by substituting the new values to the input parameters. The normal distribution is computed using the mean and variance of Z is formulated in Eq. 12. Here, μ and σ is the mean and variance of the continuous variable E df calculated for a given class L of X. This Gaussian function is optimized using the SA-TSA algorithm. with deep features for effective classification. The three ensemble classification techniques are SVM, Autoencoder and NB classifiers The features E df extracted from the pooling layer of CNN are processed through these classifiers to obtain the better-classified results. The kernel function κ in SVM is optimized to solve the unseen errors in the extracted feature images. The autoencoder classifier is used to get the distortion-less classes, where the hidden neurons A h are also optimized using the SA-TSA algorithm. NB classifier is used to attain the accurate prediction value by using the Gaussian function G fun , which is done by substituting new input parameter values. The Gaussian function of NB is optimized using the SA-TSA algorithm. Finally, the highest ranking of classes from three classifiers is taken as the final outcomes, which are considered as the most accurate results. Therefore, the proposed model improves a new optimized EL-CNN-DF model using the SA-TSA algorithm. The main objective of this algorithm is considered as the maximization of accuracy concerned with classified outcomes. Here, OF 2 denotes the second objective function of the SA-TSA algorithm. The accuracy accr denotes the accuracy, which is formulated in Eq. (4). The proposed COVID-19 diagnosis model use ensemble learning techniques for improving classification accuracy. The optimization of classified outcomes using the SA-TSA algorithm is represented in Fig. 6 . The EN-CNN-DF model uses SVM, in which the kernel function κ is ranging from 0 to 3, the hidden neurons optimized in autoencoder has the bounding limit from 10 to 50 and the Gaussian function of NB lies among 8 to 32. At last, the classified outputs are attained using the SA-TSA algorithm, which is diagrammatically represented in Fig. 7. The proposed COVID-19 detection model proposes a new algorithm SA-TSA for improving the efficiency of outcomes. As a primary objective of the proposed model, the designed SA-TSA optimizes the activation function of U-Net-based lung segmentation, in which Linear L r , Sigmoid S d , Soft-max S m , Tanh functions are optimized for getting the enhanced segmented images. The deep features extracted from the CNN are further classified by using ensemble learning techniques, in which the kernel function k in SVM, hidden neurons in autoencoder, and Gaussian function in NB are optimized using the SA-TSA algorithm. This optimization improves the outcomes of the ensemble model of COVID-19 detection. SA-TSA produces the better optimal solutions when compared with the other competitive algorithms and it is capable of solving real case studies having unknown search spaces. An agent-based model is the computational model for simulating the actions and interactions of autonomous agents for understanding the behavior of a system and what governs its outcomes. TSA [32] is a meta-heuristic optimization algorithm, which optimizes non-linear constrained problems in recent studies. The advantages of TSA are efficient in solving real-world optimizations, giving the best standard deviation and mean-variance values for search agents, and providing better optimal designs. However, the major drawbacks of TSA are deflation in the searching process and a low convergence rate. Therefore, an enhanced TSA is developed, namely SA-TSA, which is used to improve searching behavior efficiency and improve the convergence rate. In the conventional TSA, the solutions are updated based on the random number m and , which is in the range,[0,1] whereas the proposed SA-TSA uses a new fitness-based parameter for updating the solutions. It offers better search efficiency and convergence rate. TSA is a meta-heuristic optimization algorithm that reproduces the swarm behaviors and jet propulsion during searching and navigation. TSA is a special class of algorithm among many bio-inspired algorithms, which is developed by swarm behavior. TSA has the capability of solving many optimization problems in reality. Tunicates are considered as insect in the ocean, which are bio-luminescent and bright to see from many kilometers away by producing pale green-blue light. Tunicates are capable of finding the food source location in the sea without having any idea about the search space in which the food source is available. The behaviors such as swarm intelligence and jet propulsion are used to find the food source. This process is known as optimization. It includes fluid jet-like propulsion, which is used for the migration of tunicates to the depth of the ocean in the vertical direction. Therefore, the idea of swarm behavior and jet propulsion are the major facts used in the proposed model to achieve improved optimization. Tunicate should satisfy three conditions to implement the mathematical modeling of jet propulsion behavior such as movement towards the position of best search agent, closer movement to the best search agent and avoid the conflicts between search agents. On the other hand, the swarm behavior gives the best optimal solution by updating the locations of search agents. The conflicts between the other tunicates should be avoided to calculate the position of new search agent. A vector ⃗ E is applied and the computation is formulated in Eq. (14) . Here, term ⃗ W denotes the water flow direction in ocean and ⃗ F denotes the gravity force. The variables d 1 ,d 2 and d 3 denote the random numbers, which lies in the range [0,1]. The vector ⃗ S refers to the social force among search agents and it is formulated in Eq. (17) . Here, terms Q max and Q min refers to the subordinate and initial speeds to create social interaction, respectively. The range of Q max and Q min is considered as 4 and 1, respectively. After the process of avoiding conflicts among tunicates, the next step is for search agents, which move towards the location of the best neighbor. This process is formulated in Eq. (18). In the above equation, ⃗ SF refers to the position of food source, z denotes the current iteration, T q ⃗ z denotes the position of search agents and m and refers to the random number which lies in the range[0,1]. The tunicate keeps moving towards the position where the best search agents with the food source. The vector ⃗ T q z ′ refers to the position of food source ⃗ SF concerned with new position of tunicate. The mathematical simulation of the swarm behavior is done by two optimal solutions such as update and save the positions of tunicates to the position of best or near search agents accordingly. The swarm behavior of tunicate is formulated in Eq. (20) . Therefore, the improved updating of swarm behavior and jet propulsion of TSA algorithm is used in SA-TSA for the enhancement of proposed model. The following procedures are used to get the improved algorithm of TSA as follows. • The random variable m and is new formulated based on the current fitness value and the previous fitness value of search agents. • Both the fitness values of search agents are intended to find the best search agent. • Then, the position of the best search agent is updated and adjusted to the given space without including the boundary beyond the search space. A new formula for m and is derived in Eq. (21) . Here, ⃗ SF(z − 1) denotes the fitness of previous iteration ⃗ SF(z) denotes the fitness of current iteration. The pseudo code of the developed SA-TSA algorithm is represented in Algorithm 1. The developed SA-TSA algorithm is used in the proposed COVID-19 detection model to provide optimal outcomes. The SA-TSA algorithm improves the performance of search agents by solving the search deflation issues and it offers better performance by increasing the rate of convergence. In the proposed COVID-19 detection model, the developed SA-TSA algorithm improves the performance of segmentation and detection. The flowchart of the developed SA-TSA algorithm is represented in Fig. 8 . In the proposed COVID-19 detection model, the experimental study has done by X-ray images and it was developed in Python. The assessment has been done among the existing model and proposed model based on meat-heuristic algorithms and classifiers in terms of "Accuracy, Sensitivity, Specificity, Precision, False Positive Rate (FPR), False Negative Rate (FNR), Negative Predicted Value (NPV), False Discovery Rate (FDR), F1-score and Matthews's correlation coefficient (MCC)". If the 75% of the dataset used for training purposes, then the remaining 25% is used for testing purposes. The COVID-19 detection analysis was conducted based on 10 numbers of population and 25 maximum numbers of iterations. The proposed meta-heuristic algorithm was examined with additional algorithms like "Particle Swarm Optimization (PSO) [20] , Grey Wolf Optimizer (GWO) [9] , Whale Optimization Algorithm (WOA) [35] , TSA [32] , classifiers such as Support Vector Machine (SVM) [11] , Auto encoder [43] , Naive Bayes [5] , Ensemble learning [24] , RNN [42] , LSTM [23] and SA-TSA". Different performance measures [4] considered for evaluating the performance that are given below. (e) NPV: It "denotes the negative predicted value. If the value of NPV is 1 (100%), then it returns no false negatives. If the value of the NPV is 0, then it returns no true negatives". (f) FDR: It is a "process of abstracting the rate of type I errors in null premise testing when conducting various evaluations". (g) F1-Score: It is used "to calculate the test accuracy. It is referred as a weighted average of the recall and precision. While F1 score is 1, it is considered as best and on 0, it is considered as worst". (h) MCC: It is used "to calculate the quality of two-class binary classifications. It produced a correlation coefficient among the predicted and observed binary classifications and it yields a value among − 1 and + 1". t p + f p t p + f n t n + f p t n + f n The segmented results using AAF-U-Net model with SA-TSA algorithm is given in Fig. 9 . The segmentation process by developing AAF-U-Net using the SA-TSA algorithm is analyzed with other optimization algorithms are given in Table 2 . The accuracy of the proposed segmentation using SA-TSA-U-Net is 1.71%, 2.53%, 1.13%, and 2.76%, superior to PSO-U-Net, GWO-U-Net, WOA-U-Net, and TSA-U-Net, respectively. It clearly reveals that the SA-TSA algorithm is improved than other algorithms in terms of accuracy. The precision of the proposed segmentation using SA-TSA-U-Net is 1.51%, 1.003%, 1.30%, 1.20% improved than PSO-U-Net, GWO-UNet, WOA-U-Net, and TSA-U-Net, respectively. The values clearly show that the SA-TSA-U-Net gives a better precision value than other algorithms. The FDR of the proposed segmentation using SA-TSA-U-Net is 46.96%, 37.13%, 43.33%, 41.32% progressed than PSO-U-Net, GWO-U-Net, WOA-U-Net, and TSA-U-Net, respectively. Hence, the results show that the proposed AAF-U-Net with the SA-TSA algorithm provides better performance for segmentation than the other algorithms. The proposed COVID-19 detection model is validated with other algorithms with different performance measures by changing the learning percentages as given in Fig. 10 results shows that the proposed SA-TSA-EL-CNN-DF based classification provides better performance than the other algorithms. The proposed classification technique of developed COVID-19 detection model is validated with other classifiers with various performance measures and learning percentages as given in Fig. 11 . In terms of accuracy, for the corresponding learning percentage 35 The overall comparative analysis on the proposed COVID-19 detection is depicted in Table 3 and Table 4 . The accuracy of the proposed SA-TSA-EL-CNN-DF is 1.92%, 3.08%, 3.56% and 3. The comparison of the proposed SA-TSA with the existing methods is shown in the Fig. 12 . At learning percentage 55, the accuracy of the proposed SA-TSA performs 10.52%, and 12.63% better than DNN and Grad-CAM. Thus, the performance of the proposed method is better in all the performance measures. Therefore, the proposed SA-TSA algorithm of COVID-19 detection model provides better performance than the existing algorithms. In this work, a novel algorithm has been proposed to detect the COVID-19 disease effectively. The proposed COVID-19 model has improved the process of segmentation and classification of images. The input X-Ray images were pre-processed through image scaling and filtering. The lung segmentation was improved by the performed by the novel AFF-U-Net. Then, the segmented images were processed through CNN, in which the deep features were extracted from the pooling layer. The CNN model was also enhanced by the proposed algorithm SA-TSA, so called as EL-CNN-DF by optimizing the hidden neurons in convolution layer. The optimized outcomes from CNN were processed through three classifiers which were also enhanced by the proposed SA-TSA algorithm and thus the efficient results were attained. The overall analysis has shown that the precision of the enhanced CNN by using SA-TSA was 1.02%, 4.63%, 3.38%, 1.62%, 1.51% and 1.04% better than SVM, autoencoder, NB, Ensemble, RNN and LSTM respectively. Finally, the overall experimental analysis have revealed that the proposed algorithm SA-TSA has given comparatively enhanced results in the phases of segmentation and classification over the existing algorithms. The collection of non-COVID cough samples can be performed in future to make cough detection model that is more robust against incorrectly classifying non COVID coughs as COVID coughs, which can be performed by adopting intelligent approaches. DF attains 1.03%, 2.08%, 2.08%, and 3.16% better than TSA In terms of FPR, for the corresponding learning percentage 65, the SA-TSA-EL-CNN-DF attains 82.14%, 80%, 68.75%, and 78.26% larger than TSA In terms of FDR, for the corresponding learning percentage 55, the SA-TSA-EL-CNN-DF attains 52.17%, 51.75%, 64.52%, and 69.44% increased than TSA Correlation of chest CT and RT-PCR testing in coronavirus disease 2019 (COVID-19) in China: a report of 1014 cases Covid-19: automatic detection from x-ray images utilizing transfer learning with convolutional neural networks Artificial intelligence applied to chest X-Ray images for the automatic detection of COVID-19. A thoughtful evaluation approach Plant leaf disease classification using EfficientNet deep learning model Naive Bayes classification of neurodegenerative diseases by using discrete wavelet transform Structured Model Pruning of Convolutional Networks on Tensor Processing Units Automated diagnosis of covid-19 using deep supervised autoencoder with multi-view features from CT images Deep Convolutional Approaches for the Analysis of COVID-19 Using Chest X-Ray Images From Portable Devices Binary Grey Wolf Optimizer based Feature Selection for Nucleolar and Centromere Staining Pattern Classification in Indirect Immunofluorescence Images Why is chest CT important for early diagnosis of COVID-19? A New Automatic Identification Method of Heart Failure Using Improved Support Vector Machine Based on Duality Optimization Technique Prostate lesion segmentation in MR images using radiomics based deeply supervised U-Net Performance of radiologists in differentiating COVID-19 from viral pneumonia on chest CT COVID-19 detection through transfer learning using multimodal imaging Radiology perspective of coronavirus disease 2019 (COVID-19): Lessons from severe acute respiratory syndrome and middle east respiratory syndrome CoroDet: A deep learning based classification for COVID-19 detection using chest X-ray images A combined deep CNN-LSTM network for the detection of novel coronavirus (COVID-19) using X-ray images Deep learning approaches for COVID-19 detection based on chest X-ray images Classification of the COVID-19 infected patients using DenseNet201 based deep transfer learning PSO-SVM based disease detection in medical images processing Learning distinctive filters for COVID-19 detection from chest X-ray using shuffled residual CNN Automated diagnosis of COVID-19 using deep features and parameter free BAT optimization LSTM and multiple CNNs based event image classification Article An Ensemble SSL Algorithm for Efficient Chest X-Ray Image Classification Application of artificial intelligence in healthcare: chances and challenges A Novel Medical Diagnosis model for COVID-19 infection detection based on Deep Features and Bayesian Optimization Chest computed tomography in children with COVID-19 respiratory infection A deep learning and grad-CAM based color visualization approach for fast detection of COVID-19 cases using chest X-ray and CT-Scan images Iteratively pruned deep learning ensembles for COVID-19 detection in chest X-Rays The epidemiology and pathogenesis of coronavirus disease (COVID-19) outbreak Leung AN (2020) The role of chest imaging in patient management during the COVID-19 pandemic: a multinational consensus statement from the fleischner society Tunicate Swarm Algorithm: A new bioinspired based metaheuristic paradigm for global optimization Developing an efficient deep neural network for automatic detection of COVID-19 using chest X-ray images First cases of coronavirus disease 2019 (COVID-19) in France: surveillance, investigations and control measures A Hybrid Grey Wolf-Whale Optimization Algorithm for Optimizing SVM in Breast Cancer Diagnosis Pre-processing image data for deep learning COVIDiagnosis-Net: Deep Bayes-SqueezeNet based diagnosis of the coronavirus disease 2019 (COVID-19) from X-ray images COVID-Net: A tailored deep convolutional neural network design for detection of COVID-19 cases from chest X-ray images Covert COVID-19 and false-positive dengue serology in Singapore Prediction of criticality in patients with severe Covid-19 infection using three clinical features: a machine learning-based prognostic model with clinical data in Wuhan Automatic segmentation model combining U-Net and level set method for medical images CNN-RNN: a large-scale hierarchical image classification framework Deep autoencoder for mass spectrometry feature learning and cancer detection An Improved Median Filtering Algorithm for Image NoiseReduction Publisher's note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Anupam Das 1 * Anupam Das anupam.cotton@gmail.com