Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/316908079

Classification of tumors and it stages in brain MRI using support vector


machine and artificial neural network

Conference Paper · February 2017


DOI: 10.1109/ECACE.2017.7912909

CITATIONS READS

14 237

4 authors, including:

Rasel Ahmmed
Bangabandhu Sheikh Mujibur Rahman Science & Technology University
8 PUBLICATIONS   38 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

M.Sc Thesis View project

About the application of Machine learning in Signal processing View project

All content following this page was uploaded by Rasel Ahmmed on 27 March 2018.

The user has requested enhancement of the downloaded file.


International Conference on Electrical, Computer and Communication Engineering (ECCE), February 16-18, 2017, Cox’s Bazar, Bangladesh

Classification of Tumors and It Stages in Brain MRI


Using Support Vector Machine and Artificial Neural
Network
Rasel Ahmmed1, Anirban Sen Swakshar2, Md. Foisal Hossain3, and Md. Abdur Rafiq4
1,3
Department of Electronics and Communication Engineering and 2,4Department of Electrical and Electronic Engineering
1
East West University, Dhaka, Bangladesh and 2,3,4Khulna University of Engineering & Technology Khulna, Bangladesh
rsa@ewubd.edu, swaksharsen@yahoo.com, foisalkuet@yahoo.com and mdabdurrafiq2003@yahoo.com

Abstract— Cell is the smallest unit of tissues, whose abnormal categories the region growing algorithm introduced in [3].
growth causes tumor in Brain. Support Vector Machine (SVM) The results are acquired based on some predefined criteria i.e.
and Artificial Neural Network (ANN) based tumor and its stages intensity information and/or edges, the connected region of an
classification in brain MRI images is presented in this research image is extracted. The primary limitation of this method is
work. This work is started with the enhancement of the brain that its seed points are found through manual interaction. The
MRI images which are obtained from oncology department of principal component analysis (PCA) algorithm with K-means
University of Maryland Medical Center. The integration of discussed in [4] is to defining the tumor class based on some
Temper based K-means and modified Fuzzy C-means (TKFCM) correlated pixel of the MRI image. The increase number of
clustering algorithm used to segment the MRI images based on
feature and sample causes time consumption and inaccuracy in
gray level intensity in small portion of brain image. The values of
K in Temper based K-means algorithm more than the
results [5]. The classification with K-means clustering which
conventional K-means again, automatically updated membership is announced for CT-Liver image along with experimental
of FCM eradicates the contouring problem of detecting the application in Brain MRI explained that proper segmentation
tumor region. Then, from the segmented images the first order can be possible with exact thresholding [6]. Again the K-value
statistic and region property based features are extracted. The does not exceed greater than 3 if there is any gray level
first kind of features is used to detect and isolate tumor from intensity more than that. Deng et al in [7] has presented a
normal brain MRI images with SVM. There is second kind which masking algorithm for the classification with the aid of any
is used to classify the tumors into benign and four malignant classifier algorithm. It is effective in finding automatic seed
stages tumor with ANN. The accuracy of classifying normal and point and neighbors but the dimension of mask is to change
tumor brain this proposed method is up to 97.37% with Bit manually for different brain MRI images [7]. The Fuzzy C-
Error Rate (BER) of 0.0294 which is better than other methods. means algorithm is introduced in [8]-[10] has accomplished
segmentation, and then introduces an expert system with
Keywords-Magnetic resonance imaging (MRI); template based defined membership and clustered centroid to locate a
k-means and modified fuzzy c-means clustering (TKFCM); support landmark tissue by matching them with a prior model. FCM of
vector machines; artificial neural network; feature extraction Kannana et al [8] has limitation of noise sensitivity and
imperfection to the abnormality of brain e.g. tumor, edema,
I. INTRODUCTION and cyst. The most used technique for classification of brain
MRI image is Artificial Neural Network (ANN). An ANN
A brain tumor or intracranial neoplasm occurs when techniques offered by Lugina et al [11] has shown good results
abnormal cells form within the brain. There are several ways with large data with the changing of some characteristics
to diagnose brain tumors, for example use MRI images. In parameter for training and test of the network. This process
MRI technique, brain is imaged on the basis of density of requires a perfect pixel classifier, training data and huge time
water in soft tissue which is higher compared to other tissues to proceed which cause a vulnerable conditions for the critical
such as bone [1]. Through the MRI images, the radiologist can patients.
see the brain anatomy without performing surgery. However,
this process is still done manually and could lead to From the above discussion, it can be said that, there is no
misdiagnose. In addition, the different complex characteristics such technique which is perfect. But to get optimum results in
of brain tumor make diagnosis more difficult [2]. Therefore, this field we have to minimize the limitation of the individual
system of Computer Aided Diagnostic (CAD) is indispensable methods describes here.
that will help radiologist in identifying and classifying brain A new incorporation of SVM and ANN for tumor
tumors. classification is introduced in this research. Brain MRI images
In Medical diagnosis, through Magnetic Resonance with normal and abnormal behavior is firstly enhanced
Images, robustness and accuracy of the prediction through some filter and preprocessing steps. Therefore, for the
algorithms are very important, because the result is crucial detection and classification of the tumor in the brain there be
for treatment of Patients. The statistical test data for the brain incorporated segmentation processes namely temper based K-
MRI image is used for the classification of any brain tumor means and modified Fuzzy C-means (TKFCM) clustering

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

229
algorithm [12] is used. In this techniques the K-values varies added along with the conventional K-means, which is
from 1 to 8 which was limited to only 1 to 3 in conventional identified by the temper or gray level intensity in the brain
K-means and the automatically updated membership function image. Besides, the Fuzzy c-means membership and Euclidian
eradicates limitation of FCM. Then, two kinds of features are distance is modified by the image features.
extracted from these segmented images between these one
kind is used to detect the tumor with SVM as it is easy to Here, the coarse image B ( xi , y j ) which is marked in
classify two kinds and other is used to classify tumor with describing desired temper for the K-means could be found
ANN into five categories along with four malignant stages. through convolution of gray level based temper and image
This paper is organized as follows. In section II shown in below equation (1):
methodology is described step by step .The results and M +n N +n
discussion is shown throughout in section III and finally the B §¨ x i , y j ·¸ = ¦ ¦ P ( x i , y j ) ⊕ T M N ( r esize ) (1)
© ¹ i = n +1 j = n +1
whole work is concluded in section IV.
Temper based window is selected by TMN which is given
II. METHODOLOGY as:
A. Image data collection M −n N −n
Image data of brain MRI is taken from internet public
repository. The image of normal brain and tumor brain with
TMN = ¦ ¦
i = n +1 j = n +1
P ( xi , y j ) (2)
Lower Grade Glioma or Glioblastoma Multiforme is collected
from [13]-[15]. The number of the used data for each MRI In the equation (2), there is an temper based image matrix
image for classification of normal and tumor brain through with number of gray level intensity, G and number of bins,
SVM is of 39 images. There are 37 images for the S which is used to detect the temper of the image P ( xi , y j ) .
classification of benign and malignant tumor stages.
Where the n is defined as n = ( winsize − 1) / 2 . With exact
B. Image processing value of the temper, row and column, the desired temper is
obtained.
The transform the MRI brain image to make it more
suitable for the next process is concerned through some steps Separately Temper based K-means and modified Fuzzy c-
which are like following steps. means clustering algorithm for segmentation can be written in
equation as below:
1) The conversion of Image to JPG and Image
Orientation Setting: The image is converted from C K

.mha format and .dicom format into .jpg by using J k = ¦¦ B( xi , y j ) || xi − c j ||2 (3)
i =1 j =1
MATLAB conversion Tools application. After the
conversion, the size and direction resetting is N K
conducted in order to have the same size and J m = ¦¦ (U ij ) m (dij ) 2 (4)
direction. The process is done manually by using j =1 i =1
Photoshop CS5 application with 256 × 256 pixels.
Then, from the equation (3) and (4) the contour through
2) Image Enhancement: The obtained images firstly are which the exact location of and tumor portion in any image
converted to L*a*b* image for better view and can be find is
quality. That is why the values of luminosity can
span a range from 0 to 100 which should be scaled to J km = v³ ( J k , J m ) (5)
[0 1] range (appropriate for MATLAB(R) intensity c
images of class double) before applying the three
contrast enhancement techniques like adjusted, Where, M and N are the row and column of B( xi , y j ) a
adaptive thresholded, and histogram imaging using binary coarse image matrix. The centroid of the cluster,
both weiner2 and median2 filter. number of data points in clusters and number of cluster is
defined by N , C and K respectively. In the equation (5)
C. TKFCM based segmentation: which shows a contour integral of Temper based K-means
In this segmentation process K-means algorithm is used to image and updated membership based FCM image, where c is
segment MRI images on the basis of gray level. This gray the contour value. The last portion of equation (5) is defined
level is selected depending on the temper of the image. Then as modified Fuzzy C-means whose Euclidian distance is
the modified Fuzzy c-means algorithm which depends on the depended on the image features and the first portion is used as
updated membership is applied to segment the temper based the conventional K-means algorithm, which is defined by the
K-means segmented image. The membership of modified distance from each point to cluster center. the
Fuzzy c-means is updated with the cluster distances from
centroid defining by the features of the tumor MRI image. D. Feature Extraction:
The system will extract the first and second order statistic.
The TKFCM algorithm [12] is integration of the K-means
The first order statistic feature is used to detect exact tumor
and Fuzzy c-means with some modification. The temper is

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

230
and it position in the brain MRI image and second order III. RESULTS AND DISCUSSIONS
region based statistic feature is required for distinguishing the For Magnetic Resonance Imaging (MRI), it is quite
malignant tumor and benign tumor. Those are the parameters difficult to classify the tumor since, MRI image rarely color
that will be taken as first order; contrast, correlation, entropy, image. MRI imaging technique has good contrast value over
energy and Homogeneity. The region properties of the different technique and gold accepted technique of imaging.
segmented MRI image provide area, eccentricity, and The image of normal brain and tumor brain is collected from
perimeter. These values are used as the input of the Fuzzy [13]-[15]. The number of the used data for each MRI image of
Inference System (FIS) and provide desired defuzzified value normal brain, malignant tumor, and benign tumor is obtained
for classification. from 39 images.
E. Support Vector Machine The preprocessing steps include filtration, increase of
luminosity and adjust of contrast. Then the images are goes
The key concept of SVM is the use of hyper planes to
through the TKFCM based segmentation process which can be
define decision boundaries separating between data points of
shown in Fig 2. The figure describes that the input image
different classes. SVMs are to handle simple, linear,
firstly processed and segmented through TK-segmentation and
classification tasks, as well as more complex i.e. nonlinear,
modified FCM. Finally the extracted tumors are acquired
classification problems. Both separable and nonseparable
which is used to determine the region property based statistical
problems are handled by SVMs in the linear and nonlinear
features.
case. In this research there are two classified data of normal
and abnormal (Tumor) brain images. The hyper planes for From the segmented image, the two kinds of features are
SVMs is used to separate these classified data as normal data extracted one is statistical features and other is region property
and tumor data based features. The first kind of statistical features i.e.
contrast, correlation, entropy, homogeneity, energy are used to
F. Artificial Neural Network Backpropagation classify whether there is any normal brain or tumorous brain
Artificial Neural Network Backpropagation is one of using SVM. In this method the two kinds of data of normal
artificial neural networks with supervised learning [11]. This and abnormal brain are presented for the classification shown
ANN uses propagation algorithm to reduce the error value. in Fig.3(c). There are 46 images are used between them, the
The error value is beneficial for setting the weights of each classified tumor images are 37, normal brain images are 8 and
neuron in backward propagation process; started from the 1 misclassified. The accuracy of this SVM method is 97.44%.
output layer to the input layer. The purpose of this setting is to The other kind region property based features i.e. area,
make the ANN to be able to recognize and adjust the resolving eccentricity, perimeter, orientation are used to differentiate the
problem. After attaining the information from MRI tumor tumor and different malignant stages of I to IV. Our features
brain, the next process is the classification process which uses are used to present input vector and five output vectors which
ANN-BP. The input towards the ANN is the information of represent benign, malignant stages I-IV for the training. There
feature extraction; the first and second order statistic. Then, is accuracy of 97.3% which is shown in Fig.3(d) in the
the ANN will generate the output in terms of classification confusion matrix. This describes that there are 9 benign, 17
result on MRI brain image which has been categorized as malignant I, 6 malignant II, 3 malignant II, and 1 malignant IV
malignant or benign tumors. stage tumor brain MRI images.
The whole method is described by the following flow (a) (b) (c)
chart.

Fig. 1. The flowchart of proposed algorithm


Fig. 2. (a) Input images for TKFCM, (b) Detected brain tumor images
using TKFCM, and (c) Extracted tumor through TKFCM

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

231
The network by which the performance of this technique is to measure through Neural Network is shown below Fig.3(a). The
network consists of 4 input vector layers, one hidden layer with 17 neurons, and 5 output vector layers. Usually the network is
consists of three layers like input layer, hidden layer, and output layer.
The performance curve shown in Fig.3(b) of the trained data, for number of iterations 60, increment number 0.05,
performance goal or minimum error 0.5e-02, minimum gradient 1e-10, and maximum validation check failure 6. The performance
goal is achieved between 8 and 9 iterations. Best validation performance is 0.17479 at iteration 2. The test data meets along with
validation at its best values.

(a) (b)

(c) (d)

Fig. 3. (a) The network architecture for the proposed method, (b) The performance curves for the proposed method, (c) The classified normal and tumor brain
data in 2D plot for SVM classifier and (d) The confusion matrix for benign and malignant stages I-IV using ANN classifier.

TABLE I. COMPARISON AMONG PROPOSED ALGORITHM AND CONVENTIONAL METHOD


Algorithms Sensitivity (%) Specificity (%) Accuracy (%) BER Computational time
Thresholding 85 80 81.3 0.175 ~3 min
Region Growing 88.46 75 86.47 0.182 ~6 min
ANN 95.42 100 95.07 0.022 ~8 min
FCM 86.95 85.7 86.4 0.136 ~5 min
SVM 96.2 66.67 90.44 0.0234 ~4 min
K-means 75 92.85 83.7 0.160 ~160-170 sec
TKFCM [12] 88.9 100 91.89 0.055 ~100 sec
Proposed SVM+ANN 98 100 97.37 0.0294 ~ 2 min
Method
a.
Image size=256x256, Software=MATLAB2014a, Processor= Core2duo, RAM=2GB,
windows=7

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

232
There is some error rate on the basis of identifying or not identifying any abnormal tissue in all brain tumor MRI image. This
can be calculated depending on the value of true positive, false positive, true negative, and false negative [17].The performance
parameters can be calculated for the 37 brain tumor images through following
TP
Sensitivity = × 100 (6)
(TP + FN )
TN
Specificity = ×100 (7)
(TN + FP )
(TP + TN )
Accuracy = ×100 (8)
(TP + TN + FN + FP )
1 § ( FN ) ( FP ) ·
BER = ¨¨ + ¸¸ (9)
2 © (TP + FN ) ( FP + TN ) ¹
Where, TP=True Positive, TN=True Negative, FP= False Positive, FN= False Negative
In TABLE I, a comparison chart is prepared among conventional brain tumor classification process and proposed method. The
performance analysis is comprehended through True Positive (TP), True Negative (TN), False Positive (FP), and False Negative
(FN). In this proposed technique, there are 37 brain tumor images are taken and from the equation (6), (7), (8) and (9) the
sensitivity of 98%, 100% specificity, accuracy of 97.37%, and BER 0.0294, which are obtained by combining ANN and SVM.
The results show that the proposed method is better than the conventional methods like thresholding, region growing, SVM,
ANN, FCM, TKFCM and K-means. Though the conventional ANN comprehends the value of accuracy of 95.07%, but the
computational time is so high. But the proposed technique shows less computational time with better accuracy than conventional
ANN. So, it can be useful for both detecting tumor and classifying tumor stages of brain MRI images for experts.

Classification of Brain MRI”, International Journal on Information


IV. CONCLUSION Technology and Computer Science, pp. 44-53, 2013.
[4] Richika et al, “A Novel Approach for Brain Tumor Detection Using
The abnormality of the tissues is needed to be identified or Support Vector Machine, K-Means and PCA Algorithm” International
classified for the betterment of the human body. In this paper, Journal of Computer Science and Mobile Computing, vol.4, issue.8, pp.
the incorporated SVM and ANN based classification 457-474, August- 2015.
technique is proposed. The processed brain MRI images are [5] D. L. Pham, C. Xu, and J. L. Prince, “Current Methods in Medical
firstly segmented using TKFCM algorithm. In which the k Image Segmentation,” Annual review on Biomedical E ngineering, vol.
2, pp. 315-337, 2000.
value and updated membership are different from
[6] W. Narkbuakaew, H. Nagahashi, K. Aoki, and Y. Kubota, “Integration
conventional process. There are two kind of features have of Modified K-Means Clustering and Morphological Operations for
been extracted from segmented images for the purpose of Multi-Organ Segmentation in CT Liver-Images,” Recent Advances in
isolating and classifying tumor. The first kind of statistical Biomedical & Chemical Engineering and Materials Science, pp.34-
39,March.2014.
features are used for the classifying normal and abnormal
[7] G. Deng, “A Generalized Unsharp Masking Algorithm”, IEEE
brain MRI image using SVM. The tumor categories and Transactions on Image Processing, vol. 20, no. 5, pp. 1249-1261, May
malignant tumor stages are classified through ANN back 2011.
propagation algorithm. The results show that this method is [8] S. R. Kannana, S. Ramathilagam, R. Devi, and E. Hines, “Strong Fuzzy
better than others like region growing, thresholding, and FCM C-Means in Medical Image Data Analysis,” Article in The Journal of
in point of every parameter of comparison. But in point of Systems and Software, vol. 85, pp. 2425– 2438, December, 2011.
accuracy and computational time the proposed method is [9] V. Harati, R. Khayati, and A. R. Farzan, “Fully Automated Tumor
Segmentation Based on Improved Fuzzy Connectedness Algorithm In
better than ANN, SVM, and TKFCM also. Brain MR Images,” Article in Computers in Biology and Medicine, vol.
41, pp. 483–492, April, 2011.
[10] H. R. Shally, and K. Chitharanjan, “Tumor volume calculation of
brain from MRI slices”, International Journal of Computer Science &
REFERENCES Engineering Technology (IJCSET), vol. 4, no. 8, pp. 1126-1132, 2013.
[11] M. Lugina, N. D. Retno, and R. Rita, “Brain Tumor Detection and
Classification in Magnetic Resonance Imaging (MRI) using Region
[1] R. Rana, H. S. Bhadauria, and A. Singh, “Study of various methods
Growing, Fuzzy Symmetric Measure, and Artificial Neural Network
for brain tumor segmentation from MRI images”, International Journal
Back propagation”, International Journal on ICT, vol. 1, pp. 20-28,
of Emerging Technology and Advanced Engineering, vol. 3, no. 2, pp. December, 2015.
338-342, 2013.
[12] R. Ahmmed and M. F. Hossain, “Tumor stages detection in brain MRI
[2] J. Joshi, et. al., “Feature Extraction and Texture Classification in MRI”
image using Temperbased K-means and Fuzzy C-means Clustering
In Special Issue of IJCCT, pp. 130-136, 2010.
Algorithm”, Proceeding of 11th Global Engineering, Science and
[3] A. Ahirwar, “Study of Techniques used for Medical Image Technology Conference, pp. 1-10, 18 – 19 December, 2015, BIAM
Segmentation and Computation of Statistical Test for Region Foundation, Dhaka.

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

233
[13] (2015) PE- Brain tumor website. [Online]. Available: http:// [16] J. Selvakumar, A. Lakshmi, and T. Arivoli, “Brain tumor segmentation
www.mayfieldclinic.com / and its area calculation in brain MR images using K-mean clustering and
[14] University of Maryland Medical Center (2015) homepage. Primary brain fuzzy C-mean algorithm,” International Conference on Advances in
tumor [Online]. Available: Engineering, Science and Management (ICAESM), pp.186-190, 30-31
http://umm.edu/health/medical/reports/articles/brain-tumors-primary March, 2012.
[15] Oncology (2015) homepage. Tumor type [Online]. Available: [17] X. Descombes, F. Kruggel, G. Wollny, and H. J. Gertz, “An object-
http://www.oncolink.org/types/article.cfm?c=52&aid=247&id=9534 based approach for detecting small brain lesions: Application to
Virchow-robin spaces”, IEEE Transaction on Medical Imaging, vol.23,
no.2, pp.246–255, 2004.

978-1-5090-5627-9/17/$31.00 ©2017 IEEE

234
View publication stats

You might also like