Tumor Detection and Classification
Tumor Detection and Classification
net/publication/358397341
CITATIONS READS
0 3,576
2 authors:
All content following this page was uploaded by Ahmet Safa Karakoç on 06 February 2022.
Abstract— In this article, classification of two types of brain Gray level co-occurrence matrix (GLCM) was used to the
tumors explained. In the method of the research, image filtering, extract the second order statistical texture features for motion
segmentation, enhancement is used in image processing part and estimation of images which are introduced in [3]. In that
support vector machine is used in machine learning part. As a project, Angular second moment, Correlation, Inverse
result of this research, test images are classified into two classes
with minimum 62% accuracy rate.
difference moment and Entropy features are extracted by
using Vivado FPGA. These features have high classification
Keywords— Brain tumor, GLCM, SVM, image processing, accuracy and require less extraction time that means they
machine learning have some advantages. To conclude; GLCM is one of the
most efficient feature extraction methods.
I. INTRODUCTION
Brain tumors are one of the most dangerous illnesses that IBkLG classifier has been used to classification of normal,
can be seen all people in every age. The reason brain tumors benign and malignant tumors in brain MRI images by
are highly dangerous is that they are located in the nervous developing an automated method [4]. The IBkLG method is
system. Each year; approximately 12000 people are one of the successful methods that reach approximately 100%
diagnosed by this disease. According to Davies [1], between classification accuracy because of handling real valued
the 20-44 age, while the rate of survival is 50%, after 65 years features. In this proposed method; the system has ability to
old the survival rate decreases to 5%. Because of the get rid of noisy images by using median filtering. For the
importance of brain tumors, diagnosing earlier will help to preprocessing, the filtered image is converted gray to RGB
intervene rapidly. In addition, by using machine learning and and to l*a*b color space. After these steps; the image has
image processing methods, the missed diagnoses cases can be transferred to color-based segmentation process that make the
detected truly. Brain tumor detection is possible by images ready to feature extraction. For the feature extraction,
transferring MRI images to digital software. Transferred GLCM, Histogram of oriented gradients and canny edge
images can be classified according to tumor size and its detection has been used. The extracted features’ mean,
location. standard deviation, skewness, Root mean square value, and
median absolute values are calculated. From this values a
In this project; We will detect the brain images in our dataset table has been created to use in IBkLG
selected dataset using image processing and classify the classifier.IBkLG classifier has reached 86.6% classification
diagnosed tumors with machine learning techniques by using accuracy.
MATLAB. In literature review part; there are studies about
brain tumor detection and classification methods which were DWT+PCA+SVM is a developed model to detect and
useful for this project classify the normal and abnormal MR images of brain. [5].
DWT stands for discrete wavelet transform that extract the
information of the brain images without any loss. This
II. LITERATURE REVIEW method has advantages that can able to keep both frequency
K-means clustering is one of the pixel-based segmentation and location information. PCA stands for principal
methods that is introduced in [2]. This method is applied on component analysis. PCA is used the reduce the dimensions
two different data sets which taken from the gray feature of the images which will cause the worsened classification
vectors of the original MR brain images and the converted accuracy and heavy computation burden. For the SVM
RGB features to detect the tumor objects in magnetic section, kernel SVMs types has been tried for classification.
resonance (MR) images. Color translation, K-means Among them, GRB SVM has reached the most accurate
clustering and histogram clustering are the applications that method for the classification. As a conclusion,
combined in this method. Because of the not causing extra DWT+PCA+SVM method’s accuracy level is 99.38%.
overhead of the color space translation, this method is easy to
applying and is efficient. Skull stripping is one of the preprocessing methods for the
MRI brain images [6]. This method is the process of the brain
tissue segmentation from surrounding region that are the skull
Figure 1 Figure 2
Figure 3
Dataset has been separated by 2 files that are training
images and test images. In training image file, there are 841
different images with different types. In testing image file,
there are 156 different images. For our project we did not use
all images. Because the shooting angle of the images are
different and to use these images together will decrease the
Autocorrelation, Contrast, Correlation, Correlation,
Cluster Prominence, Cluster Shade, Dissimilarity, Energy,
Entropy, Homogeneity, Homogeneity, Maximum
probability, Sum of squares, Sum average, Sum variance,
Sum entropy, Difference variance, Difference entropy,
Information measure of correlation1, Information measure of
correlation2, Inverse difference (INV), Inverse difference
normalized (INN), Inverse difference moment normalized.
c. Classification (SVM)
There are many options for classification in Machine
learning. To select the best option for this project, we used
classification learner app in MATLAB. We trained our
dataset via this application. The highest accuracy has reached
Figure 8 with Kernel SVM. To train and cross validate fitcsvm
function has been used. The common syntax is;
b. Feature Extraction (GLCM Texture)
When the image processing part is completed, to extract
the features from the images GLCM Texture has been used. SVMModel=fitcsvm(X,Y,'KernelFunction','rbf',
Gray level cooccurrence matrix is a statistical method that ...'Standardize',true,'ClassNames',{'negClas
examines the texture by considering the spatial relationship s','posClass'});
of pixels.[6] The GLCMs are stored in a three-dimensional
matrix that (i x j x n). n represents the number of GLCM’s In our SVM model Gaussian RBF (Radial Basis
calculated where n is the number of GLCMs calculated. Function) is used. RBF is stands for Radial Based Function.
RBF kernel is a function whose value depends on the distance
from the origin or from some point.[10]
Figure 12 Spreading of Entropy vs [8] Avinash Uppuluri (2021). GLCM texture features
(https://www.mathworks.com/matlabcentral/fileexchange/22
Correlation
187-glcm-texture-features), MATLAB Central File
In order to increase the accuracy rate, MATLAB’s own Exchange. Retrieved June 9, 2021.
algorithm that generated from ‘Classification Learner’ can be
[9] https://www.mathworks.com/help/images/texture-
used. Even though the accuracy rate of Support Vector
analysis-using-the-gray-level-co-occurrence-matrix-
Machine algorithm is more and more high, the results of our glcm.html
SVM algorithm gave less accuracy rate. Further, the number
of GLCM texture features can be rearranged to obtain more [10] https://towardsdatascience.com/support-vector-
accurate results. machines-svm-c9ef22815589
[11]
https://www.mathworks.com/help/images/morphological-
VI. CONCLUSION
dilation-and-erosion.html
As a conclusion; different types of brain tumor images
have been detected and classified successfully by using image
processing and machine learning techniques. Firstly, image
processing techniques has been applied to make the image
suitable for the classification. Secondly, GLCM Texture
Features method has been used to extract the characteristic
features of the brain images. Finally, RBF Kernel SVM
provides us to classify the brain images. To testing the
machine learning algorithm, 200 training examples of each
two group were used and algorithm was trained. The accuracy
rate obtained as minimum 62%.