automatic covid 19 infected chest x ray image classification using support vector machine

7
International Journal of Tre Volume 5 Issue 4, May-June @ IJTSRD | Unique Paper ID – IJTSRD4 Automatic Cov Classificatio Md. Abdul Matin 1 , Abdu 1 Lecturer (Physics), 2 Workshop Supe 1 Begum Rokeaya Gir 2,3 Tangai 4 Rabin ABSTRACT The recent coronavirus disease (COVID-19 the world for the sake of its very infec nationwide by the world health organizat group of coronavirus that has caused pa people through the sneezing and cough weakens the person and it then slowly in In this study, we have classified the ch infected chest images or normal chest im images is hard and time-consuming wor automatic Covid-19 infected chest X classification tool is very useful even for ex of chest X-Ray images. For that, we have p technique to automatically classify the images or normal chest images. Hence, w (ML) model like Support Vector Machin infected chest images and normal chest im have preprocessed the chest X-Ray imag distinct features from the chest X-Ray im have trained into Machine Learning (ML these images into the category. From the Machine (SVM) models achieving an accur KEYWORDS: Machine Learning (ML), Confusion Matrix (CM), Covid-19, Chest X-Ra 1. INTRODUCTION Covid-19 has become a burning issue in This virus has created a difficult situati world. The outbreak began in late Decemb Hubei Province, China, and has since sprea around the world, including Bangladesh 2020, the first case of the virus was i country and ten days later, on March 18, died of the virus, then the rate of infe increased in Bangladesh[1].In the last two of last year, the corona infestation and m Bangladesh was very low. But in Februar March this year, there was a sudden inc infestation and mortality at a time when as alert. Due to which the number of patien corona is gradually increasing in the Bangladesh. According to the Department May 11, 2021, the number of patients compassion in Bangladesh is over 7 lakh 7 the number of deaths due to compassio human body suffers from various types of is infected with the Covid-19, most not airways and lungs. Health experts have already said that th been infected with the Covid-19, their l largely destroyed and they will never end in Scientific Research and Dev 2021 Available Online: www.ijtsrd.com e-I 41283 | Volume – 5 | Issue – 4 | May-June 2 vid-19 Infected Chest X-Ray on using Support Vector Ma ur Rahman 2 , S M Abdullah Al Shuaeb 3 , An er (Mechanical), 3 Instructor (Tech), 4 Assistant C rls School and College Gurudaspur, Natore, Ban il Polytechnic Institute, Tangail, Bangladesh ndra University, Shahjadpur, Bangladesh 9) is extending very speedily over ctious nature and is announced tion (WHO). The (COVID-19) is a anic all over the world. It enters hing of the infected person and nfects the affected person’s lungs. hest X-Ray images like Covid-19 mages. Classifying the chest X-Ray rk for human beings. Hence, an X-Ray image or normal chest xperience humans to classify a lot proposed a new machine learning chest Covid-19 infected X-Ray we have used a Machine learning ne (SVM) to classify (Covid-19) mages. For this work, at first, we ge. Then we have extracted the mages. After that, these features L) algorithm and finally classify e experiment, The Support Vector racy of up to 93.1%. Support Vector Machine (SVM), ay, Image Processing (IP) How to cite | Abdur R Shuaeb | Covid-19 I Classificati Support Machine" in Inte Journal of Scientific and Dev (ijtsrd), ISS 6470, Vol Issue-4, Ju www.ijtsrd Copyright Internation Scientific and Dev Journal. T Open Acce the terms Attribution (http://creat n today's world. ion all over the ber 2019 in Wan, ad to 218 regions h. On March 8, identified in the , the first person ection gradually o to three months mortality graph in ry and the end of crease in corona people were not nts infected with e big cities of t of Health, as of s suffering from 76 thousand and on is 12005. The f damage when it tably the human hese people have lungs have been r fully recover. Covid-19 lungs are severe common symptoms are seve and fatigue. An X-ray of an in the condition of the person's has been done. Over the las research on Covid-19 chest among the research include lung image, tumor classifica There is currently a lot coronavirus infected lung im algorithms. In recent years important role in the part o processing (IP) means fetchi the image. The X-Ray image general image classification Presently, X-Ray chest image thing to identify lung infectio and detects their levels. In this work, a novel techniq organization of one classific Machine (SVM) with variou The features learning are av hue, saturation, values color contrast, horizontal and ve and vertical energy, horizon velopment (IJTSRD) ISSN: 2456 – 6470 2021 Page 626 y Image achine nwar Hossen 4 Controller (Examination), ngladesh e this paper: Md. Abdul Matin Rahman | S M Abdullah Al Anwar Hossen "Automatic Infected Chest X-Ray Image ion using Vector Published ernational Trend in Research velopment SN: 2456- lume-5 | une 2021, pp.413-418, URL: d.com/papers/ijtsrd41283.pdf © 2021 by author (s) and nal Journal of Trend in Research velopment This is an ess article distributed under s of the Creative Commons n License (CC BY 4.0) tivecommons.org/licenses/by/4.0) ely damaged and the most ere shortness of breath, cough, nfected person's chest reveals s lungs and how much damage st year, there has been much t X-Ray images in the world es X-Ray image classification, ation, blood cell detection, etc. of research being done on mages using machine learning s, image processing plays an of machine learning[2]. Image ing necessary knowledge from e classification task much like n like a cat, dog, cow, etc[3]. e classification is a significant on type or situation of the lung que is illustrated which is the cation model, Support Vector us distinct sets of features[4]. verage red, green, blue color, r, and horizontal and vertical ertical correlation, horizontal ntal and vertical homogeneity, IJTSRD41283

Upload: ijtsrd

Post on 28-Jul-2021

2 views

Category:

Education


0 download

DESCRIPTION

The recent coronavirus disease COVID 19 is extending very speedily over the world for the sake of its very infectious nature and is announced nationwide by the world health organization WHO . The COVID 19 is a group of coronavirus that has caused panic all over the world. It enters people through the sneezing and coughing of the infected person and weakens the person and it then slowly infects the affected person’s lungs. In this study, we have classified the chest X Ray images like Covid 19 infected chest images or normal chest images. Classifying the chest X Ray images is hard and time consuming work for human beings. Hence, an automatic Covid 19 infected chest X Ray image or normal chest classification tool is very useful even for experience humans to classify a lot of chest X Ray images. For that, we have proposed a new machine learning technique to automatically classify the chest Covid 19 infected X Ray images or normal chest images. Hence, we have used a Machine learning ML model like Support Vector Machine SVM to classify Covid 19 infected chest images and normal chest images. For this work, at first, we have preprocessed the chest X Ray image. Then we have extracted the distinct features from the chest X Ray images. After that, these features have trained into Machine Learning ML algorithm and finally classify these images into the category. From the experiment, The Support Vector Machine SVM models achieving an accuracy of up to 93.1 . Md. Abdul Matin | Abdur Rahman | S M Abdullah Al Shuaeb | Anwar Hossen "Automatic Covid-19 Infected Chest X-Ray Image Classification using Support Vector Machine" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-5 | Issue-4 , June 2021, URL: https://www.ijtsrd.compapers/ijtsrd41283.pdf Paper URL: https://www.ijtsrd.comcomputer-science/artificial-intelligence/41283/automatic-covid19-infected-chest-xray-image-classification-using-support-vector-machine/md-abdul-matin

TRANSCRIPT

Page 1: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and DevelopmentVolume 5 Issue 4, May-June

@ IJTSRD | Unique Paper ID – IJTSRD41283

Automatic Covid

Classification

Md. Abdul Matin1, Abdur Rahman

1Lecturer (Physics), 2Workshop Super1Begum Rokeaya Girls School and College

2,3Tangail Polytechn4Rabindra

ABSTRACT

The recent coronavirus disease (COVID-19) is extending very speedily over the world for the sake of its very infectious nature and is announced nationwide by the world health organizationgroup of coronavirus that has caused panipeople through the sneezing and coughing of the infected person and weakens the person and it then slowly infects the affected person’s lungs. In this study, we have classified the chest Xinfected chest images or normal chest images. Classifying the chest Ximages is hard and time-consuming work for human beings. Hence, an automatic Covid-19 infected chest Xclassification tool is very useful even for experience humans tof chest X-Ray images. For that, we have proposed a new machine learning technique to automatically classify the chest Covidimages or normal chest images. Hence, we have used a Machine learning(ML) model like Support Vector Machineinfected chest images and normal chest images. For this work, at first, we have preprocessed the chest X-Ray image. Then we have extracted the distinct features from the chest X-Ray images. After that, these featurhave trained into Machine Learning (ML) algorithm and finally classify these images into the category. From the experiment, The Support Vector Machine (SVM) models achieving an accuracy of up to 93.1%.

KEYWORDS: Machine Learning (ML), Support Vector

Confusion Matrix (CM), Covid-19, Chest X-Ray, Image Processing

1. INTRODUCTION

Covid-19 has become a burning issue in today's world. This virus has created a difficult situation all over the world. The outbreak began in late December 2019 in Wan, Hubei Province, China, and has since spread around the world, including Bangladesh. On March 8, 2020, the first case of the virus was identified in the country and ten days later, on March 18, the first person died of the virus, then the rate of infection gradually increased in Bangladesh[1].In the last two to three months of last year, the corona infestation and mortality graph in Bangladesh was very low. But in February and the end of March this year, there was a sudden increase in corona infestation and mortality at a time when people were not as alert. Due to which the number of patients infected with corona is gradually increasing in the big cities of Bangladesh. According to the Department of Health, as of May 11, 2021, the number of patients suffering from compassion in Bangladesh is over 7 lakh 76 thousand and the number of deaths due to compassion is 12005. The human body suffers from various types of damage when it is infected with the Covid-19, most notably the human airways and lungs.

Health experts have already said that these people have been infected with the Covid-19, their lungs have been largely destroyed and they will never fully recover.

Trend in Scientific Research and Development 2021 Available Online: www.ijtsrd.com e-ISSN: 2456

41283 | Volume – 5 | Issue – 4 | May-June 202

c Covid-19 Infected Chest X-Ray Image

Classification using Support Vector Machine

, Abdur Rahman2, S M Abdullah Al Shuaeb3, Anwar

Workshop Super (Mechanical), 3Instructor (Tech), 4Assistant Controller

Begum Rokeaya Girls School and College Gurudaspur, Natore, Bangladesh

Tangail Polytechnic Institute, Tangail, Bangladesh

Rabindra University, Shahjadpur, Bangladesh

19) is extending very speedily over the world for the sake of its very infectious nature and is announced nationwide by the world health organization (WHO). The (COVID-19) is a group of coronavirus that has caused panic all over the world. It enters people through the sneezing and coughing of the infected person and weakens the person and it then slowly infects the affected person’s lungs. In this study, we have classified the chest X-Ray images like Covid-19

hest images or normal chest images. Classifying the chest X-Ray consuming work for human beings. Hence, an

19 infected chest X-Ray image or normal chest classification tool is very useful even for experience humans to classify a lot

Ray images. For that, we have proposed a new machine learning technique to automatically classify the chest Covid-19 infected X-Ray images or normal chest images. Hence, we have used a Machine learning

ctor Machine (SVM) to classify (Covid-19) infected chest images and normal chest images. For this work, at first, we

Ray image. Then we have extracted the Ray images. After that, these features

ML) algorithm and finally classify these images into the category. From the experiment, The Support Vector

SVM) models achieving an accuracy of up to 93.1%.

ML), Support Vector Machine (SVM),

Ray, Image Processing (IP)

How to cite this paper

| Abdur Rahman | S M Abdullah Al Shuaeb | Anwar HossenCovid-19 Infected Chest XClassification using Support Vector Machine" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 24566470, VolumeIssue-4, June 2021, pp.413www.ijtsrd.com/papers/ijtsrd41283.pdf Copyright © 20International Journal Scientific Research and Development Journal. This is an Open Access article distributed under the terms Attribution License(http://creativecommons.org/licenses/by/4.0

19 has become a burning issue in today's world. This virus has created a difficult situation all over the world. The outbreak began in late December 2019 in Wan, Hubei Province, China, and has since spread to 218 regions around the world, including Bangladesh. On March 8, 2020, the first case of the virus was identified in the country and ten days later, on March 18, the first person died of the virus, then the rate of infection gradually

.In the last two to three months f last year, the corona infestation and mortality graph in

Bangladesh was very low. But in February and the end of March this year, there was a sudden increase in corona infestation and mortality at a time when people were not

mber of patients infected with corona is gradually increasing in the big cities of Bangladesh. According to the Department of Health, as of May 11, 2021, the number of patients suffering from compassion in Bangladesh is over 7 lakh 76 thousand and

er of deaths due to compassion is 12005. The human body suffers from various types of damage when it

19, most notably the human

Health experts have already said that these people have 19, their lungs have been

largely destroyed and they will never fully recover.

Covid-19 lungs are severely damaged and the most common symptoms are severe shortness ofand fatigue. An X-ray of an infected person's chest reveals the condition of the person's lungs and how much damage has been done. Over the last year, there has been much research on Covid-19 chest Xamong the research includes Xlung image, tumor classification, blood cell detection, etc. There is currently a lot of research being done on coronavirus infected lung images using machine learning algorithms. In recent years, image processing plimportant role in the part of machine learningprocessing (IP) means fetching necessary knowledge from the image. The X-Ray image classification task much like general image classification like a cat, dog, cow, etcPresently, X-Ray chest image classification is a significant thing to identify lung infection type or situation of the lung and detects their levels.

In this work, a novel technique is iorganization of one classification model,Machine (SVM) with various distinct sets of featuresThe features learning are average red,hue, saturation, values color,contrast, horizontal and vertical correlation, horizontal and vertical energy, horizontal and vertical homogeneity,

Trend in Scientific Research and Development (IJTSRD) ISSN: 2456 – 6470

2021 Page 626

Ray Image

sing Support Vector Machine

, Anwar Hossen4

Assistant Controller (Examination),

Gurudaspur, Natore, Bangladesh

How to cite this paper: Md. Abdul Matin | Abdur Rahman | S M Abdullah Al Shuaeb | Anwar Hossen "Automatic

19 Infected Chest X-Ray Image Classification using Support Vector Machine" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-5 |

4, June 2021, pp.413-418, URL: www.ijtsrd.com/papers/ijtsrd41283.pdf

Copyright © 2021 by author (s) and International Journal of Trend in Scientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) http://creativecommons.org/licenses/by/4.0)

19 lungs are severely damaged and the most common symptoms are severe shortness of breath, cough,

ray of an infected person's chest reveals the condition of the person's lungs and how much damage has been done. Over the last year, there has been much

19 chest X-Ray images in the world ch includes X-Ray image classification,

lung image, tumor classification, blood cell detection, etc. There is currently a lot of research being done on coronavirus infected lung images using machine learning algorithms. In recent years, image processing plays an important role in the part of machine learning[2]. Image

s fetching necessary knowledge from Ray image classification task much like

general image classification like a cat, dog, cow, etc[3]. Ray chest image classification is a significant

thing to identify lung infection type or situation of the lung

In this work, a novel technique is illustrated which is the organization of one classification model, Support Vector

SVM) with various distinct sets of features[4]. average red, green, blue color,

ue, saturation, values color, and horizontal and vertical contrast, horizontal and vertical correlation, horizontal and vertical energy, horizontal and vertical homogeneity,

IJTSRD41283

Page 2: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development

@ IJTSRD | Unique Paper ID – IJTSRD41283

gray-level co-occurrence matrix (GLCM),automatic various features for SVM algorithm convention. These features have complied to learn the machine learning (ML) models for classifying the Xchest image.

In our research work, our image dataset contained 140 XRay images that are categorized into two classes of chests namely normal chest and covid-19 infected chest images.From the experimental result, we have investigated that the SVM algorithm classifies the normal chest image and Covid-19 chest image. From our observation, Vector Machine (SVM) model illustrates the accuracy is(93.9%).

The rest of this paper is as follows. Section 2 describes the literature review. Section 3 represents the dataset and methodology. Section 4 depicts the results Section 5 displays the conclusion.

2. Literature Review

Saurabh Kumar et al. in [5] tried to classify chest Ximages using deep learning. They have scaled all the images of the data set to a uniform size of 512×512. Here they have used 401 images for these classification problems. This dataset contains 401 images out of which 262 images are covid-19 negative and the rest of these images are covid-19 positive and they have achieved a high accuracy result. For a good result, the deep learning model required huge image data but they have us401 images sample for this classification problem. So itwas the limitation of their research work.

The authors in [6] described medical imaging such as Xray and Computed Tomography (CT) associated with the potential of Artificial Intelligence (AI) plays a vital role in siding the medical staff in the diagnosis process. These types of image classification they have used five deep learning algorithm namely (ResNet18, ResNet34, InceptionV3, InceptionResNetV2, and DenseNet161). In this study, they used two public datasets and tdataset was the COVID-19 image data collection, consisting of 236 images of COVID-19, 12 images of COVID-19 and ARDS, 4 images of ARDS, 1 image of Chlamydophila, 1 image of Klebsiella, 2 images of Legionella, 12 images of Pneumocystis, 16 images o13 images of Streptococcus and 5 images without any pathological findings and the second dataset was covidX-Ray images. Here, they have used a deep learning model for classifying the covid-19 positive or negative case. The performance of the Deep Learning Algorithm depends on its data set which means the amount of data needed for

Fig. 3.1: Proposed System Block Diagram

Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com

41283 | Volume – 5 | Issue – 4 | May-June 202

GLCM), and compost algorithm and their

convention. These features have complied to learn the ML) models for classifying the X-Ray

In our research work, our image dataset contained 140 X-are categorized into two classes of chests

19 infected chest images. From the experimental result, we have investigated that the SVM algorithm classifies the normal chest image and

19 chest image. From our observation, the Support SVM) model illustrates the accuracy is

The rest of this paper is as follows. Section 2 describes the literature review. Section 3 represents the dataset and methodology. Section 4 depicts the results Section 5

tried to classify chest X-Ray They have scaled all the

images of the data set to a uniform size of 512×512. Here they have used 401 images for these classification

dataset contains 401 images out of which 19 negative and the rest of these

19 positive and they have achieved a high accuracy result. For a good result, the deep learning model required huge image data but they have used only 401 images sample for this classification problem. So it

described medical imaging such as X-CT) associated with the AI) plays a vital role in

ing the medical staff in the diagnosis process. These types of image classification they have used five deep

ResNet18, ResNet34, InceptionV3, InceptionResNetV2, and DenseNet161). In this study, they used two public datasets and the first

19 image data collection, 19, 12 images of

19 and ARDS, 4 images of ARDS, 1 image of Chlamydophila, 1 image of Klebsiella, 2 images of Legionella, 12 images of Pneumocystis, 16 images of SARS, 13 images of Streptococcus and 5 images without any pathological findings and the second dataset was covid-19

Ray images. Here, they have used a deep learning model 19 positive or negative case. The

ep Learning Algorithm depends on its data set which means the amount of data needed for

good results but here they have used very few images for their work so the algorithm may provide bias results.

Shelke et al. in [7]were describedto classify the X-Ray image. Here, they have used four classes of X-Ray images namely normal, pneumonia, tuberculosis (TB), and COVIDlearning model used for the classification of pneumonia, TB, and normal is VGG16 with an accuracy of 95.9 %. But they don't explain how many images they've used for their research that is the drawback of their work.

Another CXR image classification task was described here[8]. Here, the authors have uNetwork (RESNET-50). In this classification, they have used four types of CXR image cases like healthy individuals, bacterial and viral pneumonia, and COVIDpositives patients. The model performance metrics showed an accuracy of 99%. But a large amount of data are required for the deep learning algorithm for high accuracy but a small number of images were used for these purposes which is the limitation of their research.

The authors in [9] were described the rapid development in the area of Machine LearningHere, they have proposed intelligent systems to classify between Pneumonia and Normal patients. The proposes of the machine learning-based classification of the extractedeep feature using ResNet152 with COVIDPneumonia patients on chest Xused for balancing the imbalanced data points of COVID19 and Normal patients. The model has achieved accuracy up to .97% on Random Forest and 97.4%n usingpredictive classifiers.

3. Methodology and Dataset

In this part, the algorithm and datasets are described. The algorithm is used to classify covidchest X-Ray images. The algorithm includes SVMVector Machine). The chest Xnormal and covid-19 are provided as the dataset in the algorithm.

3.1. Proposed System The proposed system block diagram is shown here. The block diagram is shown in Fig.3.1. The training images are resized, and many pre-processing original images may carry manythe contrast of the images is increased. Many features are extracted and then the machine learning to classify the images. When the traccuracy of the model is calculated using the test images and confusion matrix.

Fig. 3.1: Proposed System Block Diagram

www.ijtsrd.com eISSN: 2456-6470

2021 Page 627

good results but here they have used very few images for their work so the algorithm may provide bias results.

were described the classification model Ray image. Here, they have used four

Ray images namely normal, pneumonia, TB), and COVID-19. They have used a deep

learning model used for the classification of pneumonia, l is VGG16 with an accuracy of 95.9 %. But

they don't explain how many images they've used for their research that is the drawback of their work.

Another CXR image classification task was described . Here, the authors have used the deep Residual

50). In this classification, they have used four types of CXR image cases like healthy individuals, bacterial and viral pneumonia, and COVID-19 positives patients. The model performance metrics

%. But a large amount of data are required for the deep learning algorithm for high accuracy but a small number of images were used for these purposes which is the limitation of their research.

escribed the rapid development in the area of Machine Learning (ML) and Deep Learning. Here, they have proposed intelligent systems to classify between Pneumonia and Normal patients. The proposes of

based classification of the extracted deep feature using ResNet152 with COVID-19 and Pneumonia patients on chest X-ray images. SMOTE was used for balancing the imbalanced data points of COVID-19 and Normal patients. The model has achieved accuracy up to .97% on Random Forest and 97.4%n using XGBoost

Methodology and Dataset

In this part, the algorithm and datasets are described. The is used to classify covid-19 infected and normal

Ray images. The algorithm includes SVM (Support st X-Ray images of two levels of

19 are provided as the dataset in the

The proposed system block diagram is shown here. The block diagram is shown in Fig.3.1. The training images are

processing are executed. So that the carry many noise and errors. Then

the contrast of the images is increased. Many features are extracted and then the machine learning model is applied to classify the images. When the training is finished, the accuracy of the model is calculated using the test images

Page 3: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470

@ IJTSRD | Unique Paper ID – IJTSRD41283 | Volume – 5 | Issue – 4 | May-June 2021 Page 628

The algorithm of the proposed system is illustrated in Algorithm 1. This algorithm represents the steps of the proposed model. Algorithm 1: Covid-19 chest X-Ray image classification 1 Read training images from the dataset 2 Pre-process images 3 Train the model SVM to classify 4 Read test image 5 Apply the trained model to classify the test image 6 Control the classification_error 7 If (False_result> threshold)

Jump to step 1. Else achieve accuracy.

3.2. Dataset Description

In this work, we have collected many chest X-Ray images from different Medical colleges and private Hospitalsof the Mymensingh and Tangail districts in Bangladesh.

Fig 3.2: Two levels Chest X-Ray Images

These chest X-Ray images having two levels were taken from different Medical colleges and private Hospitals of the Mymensingh and Tangail, Dhaka, Natore districts in Bangladesh. The chest X-Ray images are then categorized into two classes based on two levels of covid-19 infected and normal chest depicted in the figure. 3.2. Each class has more than seventy images. Details of each class are shown in Table 3.1. These images are divided randomly into training (70%) and testing (30%) images.

Table 3.1: Details of Image Dataset

Class Name Label No. of image

Covid-19 Infected image 0 75

Normal images 1 79

Total Images 154

3.3. Image Pre-processing

Training images are collected from different places may be of various resolution and with noise. Therefore, image pre-processing is needed for reshaping the images and avoiding the noise. We have used Matlabresize () function to resize the pictures to 350*180 pixels, filter () function for smoothing, sharpening. Here, we have also used the gray2rgb () function for eliminating the hue and saturation information, gray_comatrix () function for using texture analysis of the images.

Tab 3.2: Image Preprocessing Function

3.4. Feature Extraction

Feature learning is the next processing step in image analysis. It can be used for images. Feature extraction is the measurable character of an image or object.

ML Model Description Use the Matlab Functions

SVM

Resize to 350 x 180 pixels resize ()

Filtering for smoothing, sharpening filter ()

The gray2rgb function for eliminating the hue and saturation information of the images.

rgb2gray ()

Graycomatrix function for texture analysis of the images. graycomatrix ()

Page 4: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development

@ IJTSRD | Unique Paper ID – IJTSRD41283

Tab 3.3: Feature Extraction Function of machine learning model

3.5. Chest X-Ray Image Classification or prediction

It classifies the target chest X-Ray class into a predefined input image using a machine learning algorithm. After the finishing of the feature extraction process, the images are first trained through the machine learning SVMMachine) model, and when the finishes the training process, we havethe trained classifier. The testing classifier compares the new testing image with previously trained different image levels.When the testing image is equalized the levels train images the machine learning model classifies the targetimage levels.

3.6. Machine Learning Models

Machine learning (ML) is the data analytical design that instructs computers to do what comes naturally to human study from knowledge. Machine learning (ML) models use the computational process to learn facts immediately from data without depending on a predetermined equation as an algorithmas the number of samples gain able for studying increasesmachine learning algorithms to complete the automatic covid

3.7. Support Vector Machine (SVM) Model

Support vector machine is a supervised Machine Learningregression problems[11]. But it is popularly used for cis to find the hyper plane which divides the two classes of data.

Fig.3.3: Internal Structure of Support Vector Machine

In most cases, a support vector machine is used to classifymaximum distance is called an optimal hyper planeSupport Vector Machine (SVM) algorithm is used for two types of chest XSVM model is a representation of the examples as points in the coordinate system, mapped so that the sample of the two classes are divided by a clear gap that is as wide as possible. Given a training set of two claa hyperplane ������� � 0, xi ϵ Rn and y ϵ {1, −1}, the support vector machine satisWies the following conditions: �������� � � � 1, ���� 1, �������� � � � �1, ���� �1, Or equivalently,

���������� � � � 1, ��� 1,2,3,.. … … N

ML

Model Feature Name

SVM

Average red color

Average green color

Average blue color

Average hue color

Average saturation color

Average values color

Horizontal and Vertical Contrast

Horizontal and Vertical Correlation

Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com

41283 | Volume – 5 | Issue – 4 | May-June 202

Feature Extraction Function of machine learning model

Ray Image Classification or prediction

Ray class into a predefined input image using a machine learning algorithm. After the finishing of the feature extraction process, the images are first trained through the machine learning SVM

and when the finishes the training process, we have examined with a single image that is not training by the trained classifier. The testing classifier compares the new testing image with previously trained different image levels.

equalized the levels train images the machine learning model classifies the target

ML) is the data analytical design that instructs computers to do what comes naturally to human study ML) models use the computational process to learn facts immediately from data

without depending on a predetermined equation as an algorithm[10].The models adaptively progress their achievement able for studying increases. In this work, we have to study Support Vector Machine

machine learning algorithms to complete the automatic covid-19 infected chest image classification work.

SVM) Model

Support vector machine is a supervised Machine Learning (ML) algorithm. It can be used for both classification and . But it is popularly used for classification. The primary goal of the Support Vector Machinewhich divides the two classes of data.

Fig.3.3: Internal Structure of Support Vector Machine (SVM)

In most cases, a support vector machine is used to classify the data. A hyper plane which partitions two class with hyper plane. SVM is very skillful for the supervised classifier. In this work, the

SVM) algorithm is used for two types of chest X-Ray image classification shown inSVM model is a representation of the examples as points in the coordinate system, mapped so that the sample of the two classes are divided by a clear gap that is as wide as possible. Given a training set of two classes, G = {

ϵ Rn and y ϵ {1, −1}, the support vector machine satisWies the following conditions:

Description

The average value of all red pixels in the chest X-Ray image surface The average value of all green pixels in theX-Ray image surface The average value of all blue pixels in the X-Ray image surface The average value of all hue pixels in HSV chest X-Ray image surface The average value of all saturation pixels in HSV the chest X-Ray image surface The average value of all values pixels in HSVchest X-Ray image surface

Contrast Find the local variation of the gray-level cooccurrence matrix

Correlation Find the joint probability occurrence of the specified pixel pairs.

www.ijtsrd.com eISSN: 2456-6470

2021 Page 629

Feature Extraction Function of machine learning model

Ray class into a predefined input image using a machine learning algorithm. After the finishing of the feature extraction process, the images are first trained through the machine learning SVM (Support Vector

examined with a single image that is not training by the trained classifier. The testing classifier compares the new testing image with previously trained different image levels.

equalized the levels train images the machine learning model classifies the target chest X-Ray

ML) is the data analytical design that instructs computers to do what comes naturally to human study ML) models use the computational process to learn facts immediately from data

.The models adaptively progress their achievement Support Vector Machine (SVM)

lassification work.

ML) algorithm. It can be used for both classification and lassification. The primary goal of the Support Vector Machine (SVM)

SVM)

which partitions two class with the supervised classifier. In this work, the

age classification shown in (Fig.3.3). An SVM model is a representation of the examples as points in the coordinate system, mapped so that the sample of the two

sses, G = { (xi, Yi), i = 1 … N} with ϵ Rn and y ϵ {1, −1}, the support vector machine satisWies the following conditions:

(3.5) (3.6)

(3.7)

Matlab

Functions

The average value of all red pixels in the chest Rave=uint8

(mean ())

value of all green pixels in the chest Gave=uint8

(mean ())

chest Bave=uint8

(mean ())

The average value of all hue pixels in HSV the Have=uint8

(mean ())

The average value of all saturation pixels in HSV Save=uint8

(mean ())

The average value of all values pixels in HSV Save=uint8

(mean ())

level co-Contrast ()

Find the joint probability occurrence of the Correlation ()

Page 5: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development

@ IJTSRD | Unique Paper ID – IJTSRD41283

Where � is the function that maps training vector xi to the higher dimensional space when the data points are linearly separable. The distance from a point xi to the �������������

||�||�

From the definition of SVM, the margin is

According to the saddle point of the Lagrange function, the solution of the above equation is,

!" "# ||$||

# �∑ &�'���$������ � � �(�)"

where �� are the nonnegative Lang range multipliers. When the data is not separable, a new slack variable introduced and the optimization equation is

���������� � � � 1 � *�

And the hyper plane equation is- ���� (�

where C is a positive constant parameter used as a penalty parameter for the error term. If the optimization of the support

vector machine uses linear and radial basis function, th

+��� , ��� ,�-,�- .�/0|�� � ��|0#1 , / 2 0

Where γ is the kernel parameter. Figure. 3.3 representsmachine is that it is effective in high dimensional spaces and it also works well with a clear margin of separation. The primary drawback of the support vector machine is that it does not vector machine also low performance, the data set, is rowdy.

4. Result Analysis

In this part, we have discussed the classification performance of the support vector machine for Ray image prediction task. The Confusion Matrix (CM)classification model on a set of testing data for which the true values are acquaintedis comparatively easy to realize for that many researchers use it.

Fig. 4.1: Confusion Matrix of Support Vector Machine

In (Fig.4.1) we see that diagonally shaded boxes display the percent accuracy result of the SVM model. On the other side shaded box illustrated the percent of mistakes for the classification problem. The average accuracy of the support vector machine classifier is depicted for the classification problem is 93.1% that means the average achievement accuracy for the overall classifier with the best value is (93.1%). In common mistake for the overall classifier with the value isthis study, we see that’s the covid-19_infected_chesthas displayed the highest and theNormal_chest illustrated the lowest classification accuracy respectively.

5. Conclusion

In the study, we have proposed a novel technic to classify Chest X-Ray images with two-level using the Machine Learning (ML) model. The raised system is used machine learning models to automatically classify the Covinfected chest X-Ray image and Normal chest XOur proposed system includes three phases: Image preprocessing features learning or extraction, and

Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com

41283 | Volume – 5 | Issue – 4 | May-June 202

is the function that maps training vector xi to the higher dimensional space when the data points are linearly separable. The distance from a point xi to the hyper plane is:

From the definition of SVM, the margin is #

‖�‖ . Hence, the equation of hyper plane is

According to the saddle point of the Lagrange function, the solution of the above equation is,

� 14

range multipliers. When the data is not separable, a new slack variable introduced and the optimization equation is

�, �) = "# ||$||

# � 5 ∑ *�(�)"

where C is a positive constant parameter used as a penalty parameter for the error term. If the optimization of the support

vector machine uses linear and radial basis function, then the equation is: +��� , ��� � �� �6

0

Where γ is the kernel parameter. Figure. 3.3 represents the visualization of SVM. The main advantage of the support vector machine is that it is effective in high dimensional spaces and it also works well with a clear margin of separation. The primary drawback of the support vector machine is that it does not well perform when the data set is large. The support vector machine also low performance, the data set, is rowdy.

classification performance of the support vector machine for onfusion Matrix (CM) is a table that mostly behaves to consider the achievement of a

classification model on a set of testing data for which the true values are acquainted[12]. The Confusion Matrix to realize for that many researchers use it.

Fig. 4.1: Confusion Matrix of Support Vector Machine

Fig.4.1) we see that diagonally shaded boxes display the percent accuracy result of the SVM model. On the other side percent of mistakes for the classification problem. The average accuracy of the support vector

machine classifier is depicted for the classification problem is 93.1% that means the average achievement accuracy for the 93.1%). In common mistake for the overall classifier with the value is

19_infected_chesthas displayed the highest and theNormal_chest illustrated the lowest

In the study, we have proposed a novel technic to classify level using the Machine

. The raised system is used machine learning models to automatically classify the Covid-19

Ray image and Normal chest X-Ray image. Our proposed system includes three phases: Image pre-processing features learning or extraction, and

classification. Image Pre-processing means resizing the image, noise avoiding. Then, we havefeatures like RGB color, HSV color,contrast, etc are extracted. In fine, the classification part can be performed after the feature vectors are propagated for every image. The Support vector machineclassifier is used for the classification problem. Our proposed system has been performed evaluated using

www.ijtsrd.com eISSN: 2456-6470

2021 Page 630

is the function that maps training vector xi to the higher dimensional space when the data points are linearly

(3.8)

���� (�) = "# ||�||#

(3.9) According to the saddle point of the Lagrange function, the solution of the above equation is,

(3.10)

range multipliers. When the data is not separable, a new slack variable �� is

(3.11)

(3.12)

where C is a positive constant parameter used as a penalty parameter for the error term. If the optimization of the support

(3.13)

the visualization of SVM. The main advantage of the support vector machine is that it is effective in high dimensional spaces and it also works well with a clear margin of separation. The

well perform when the data set is large. The support

classification performance of the support vector machine for these two classes chest X-is a table that mostly behaves to consider the achievement of a

. The Confusion Matrix (CM) itself

Fig.4.1) we see that diagonally shaded boxes display the percent accuracy result of the SVM model. On the other side percent of mistakes for the classification problem. The average accuracy of the support vector

machine classifier is depicted for the classification problem is 93.1% that means the average achievement accuracy for the 93.1%). In common mistake for the overall classifier with the value is (6.9%). In

19_infected_chesthas displayed the highest and theNormal_chest illustrated the lowest

processing means resizing the image, noise avoiding. Then, we have extracted distinct features like RGB color, HSV color, horizontal and vertical

etc are extracted. In fine, the classification part can be performed after the feature vectors are propagated for every image. The Support vector machine (SVM)

is used for the classification problem. Our proposed system has been performed evaluated using

Page 6: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470

@ IJTSRD | Unique Paper ID – IJTSRD41283 | Volume – 5 | Issue – 4 | May-June 2021 Page 631

154Chest X-Ray images. From among these images, we have used 70 % images for training and 30% images for testing randomly. From the experimental result, we have achieved accuracy up to 93.1%.

ACKNOWLEDGMENT The authors wish to thank BegumRokeayaGirlsSchool and college Gurudaspur, Natore, Bangladesh. The authors also thank its research lab for their helpful guidance and useful supports.

COMPETING INTERESTS

The authors have declared that no competing interests exist.

References [1] S M Abdullah Al Shuaeb | Md. Kamruzaman |

Mohammad Al-Amin, “COVID 19 Outbreak Prediction and Forecasting in Bangladesh using Machine Learning Algorithm,” Int. J. Trend Sci. Res.

Dev., vol. 5, no. 1, pp. 829–835, 2020.

[2] A. V Galphade and K. H. Walse, “Supervised Learning Approach for Flower Images using Color , Shape and Texture Features,” Int. Res. J. Eng.

Technol., vol. 6, no. 5, pp. 5682–5688, 2019.

[3] C. Chen, Q. Yan, M. Li, and J. Tong, “Classification of blurred flowers using convolutional neural networks,” ACM Int. Conf. Proceeding Ser., pp. 71–74, 2019, doi: 10.1145/3342999.3343006.

[4] I. Patel and S. Patel, “Flower identification and classification using computer vision and machine learning techniques,” Int. J. Eng. Adv. Technol., vol. 8, no. 6, pp. 277–285, 2019, doi: 10.35940/ijeat.E7555.088619.

[5] S. Kumar, S. Mishra, and S. K. Singh, “Deep transfer learning-based COVID-19 prediction using chest X-rays,” medRxiv, no. September 2003, 2020, doi: 10.1101/2020.05.12.20099937.

[6] S. Chatterjee et al., “Exploration of Interpretability Techniques for Deep Covid-19 Classification Using Chest X-Ray Images,” arXiv, 2020.

[7] A. Shelke et al., “Chest X-ray classification using Deep learning for automated COVID-19 screening,” medRxiv, no. December 2019, 2020, doi: 10.1101/2020.06.21.20136598.

[8] Z. Tang et al., “Severity assessment of coronavirus disease 2019 (COVID-19) Using quantitative features from chest CT images,” arXiv, vol. 2019, pp. 1–18, 2020.

[9] R. Kumar et al., “Accurate Prediction of COVID-19 using Chest X-Ray Images through Deep Feature Learning model with SMOTE and Machine Learning Classifiers,” medRxiv, pp. 1–10, 2020, doi: 10.1101/2020.04.13.20063461.

[10] Y. Baştanlar and M. Özuysal, “Introduction to machine learning,” Methods Mol. Biol., vol. 1107, pp. 105–128, 2014, doi: 10.1007/978-1-62703-748-8_7.

[11] H. Bhavsar and M. H. Panchal, “A Review on Support Vector Machine for Data Classification,” Int. J. Adv.

Res. Comput. Eng. Technol., vol. 1, no. 10, pp. 2278–1323, 2012.

[12] D. Houcque, “Introduction To Matlab for Engineering Students,” no. August, 2005.

Page 7: Automatic Covid 19 Infected Chest X Ray Image Classification using Support Vector Machine

International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470

@ IJTSRD | Unique Paper ID – IJTSRD41283 | Volume – 5 | Issue – 4 | May-June 2021 Page 632

Authors Profiles

SN Name and Designation Qualification and Experiences Photo

01 Md. Abdul Matin

Lecturer of Physics

Begum Rokeaya Girls School and

College Gurudaspur, Natore,

Bangladesh Under the Ministry of

Education, Bangladesh.

Email: [email protected]

I am a Lecturer of Physics Department at Begum Rokeaya Girls School and College Gurudaspur, Natore, Bangladesh Under the Ministry of Education, Bangladesh. I have been in a great profession like teaching for about 9 years. I got my bachelor's degree from Rajshahi University (RU)Bangladesh. Even though I studied physics, but, I have a lot of interest in applied Physics and Electronics, computer engineering, especially machine learning, image processing, etc. I want to take my research program a long way

02 Engr. Abdur Rahman

Workshop Superintendent

(Mechanical)

Tangail Polytechnic Institute, Tangail.

Directorate of Technical Education,

Under Technical and Madrasha

Education. Division of Ministry of

Education, Bangladesh.

Email: [email protected]

I am a teacher of the Mechanical Department at Tangail Polytechnic Institute, Tangail, Bangladesh. I have been in a great profession like teaching for about 9 years. I got my bachelor's degree from Dhaka University of Engineering and Technology (DUET), Bangladesh. Although I am a mechanical engineer, I have a lot of interest in computer engineering, especially machine learning, image processing, etc. I want to take my research program a long way.

03 S M Abdullah Al Shuaeb

Instructor(Tech), Computer

Technology,

Tangail Polytechnic Institute, Tangail.

Directorate of Technical Education,

Under Technical and Madrasha

Education Division of Ministry of

Education, Bangladesh.

Email: [email protected]

I am an Instructor (Tech), Computer Technology, Tangail

Polytechnic Institute, Tangail, Bangladesh. I have 8 years of

experience in teaching. I received my B.Sc. Engineering

degree in CSE from the University of Jatiya Kabi Kazi Nazrul

Islam University(JKKNIU), Trishal, Mymensingh, and MS in

CS from Bangladesh Agriculture University(BAU),

Bangladesh respectively. My area of interest for research are

Machine Learning, Computer Vision, Image Processing,

Digital Signal Processing, and Bioinformatics. For the last

three years, I am accelerating my research journey in the

area of machine learning.

04 Anwar Hossen

Assistant Controller of Examinations

Rabindra University, Bangladesh

Shahjadpur, Sirajganj, Bangladesh

Email: [email protected]

I am Assistant Controller of Examinations

Rabindra University, Shahjadpur, Sirajganj, Bangladesh. I

have 5 years of experience in controller examination. I

received my B.Sc. Engineering degree in CSE from the

University of Jatiya Kabi Kazi Nazrul Islam University,

Trishal, Mymensingh,. My area of interest for research are

Machine Learning, Computer Vision, Image Processing,

Digital Signal Processing, and Bioinformatics. For the last

three years, I am accelerating my research journey in the

area of machine learning.