You are on page 1of 5

Brain Tumor Detection Using Deep Neural Network

And Machine Learning Algorithms


Fahad Siddique Faisal Md. Farhad Hossain
Dept of Electronics and Telecommunications Engineering Dept of Electronics and Telecommunications Engineering
Chittagong University of Engineering and Technology Chittagong University of Engineering and Technology
Chittagong, Bangladesh Chittagong, Bangladesh
u1808046@student.cuet.ac.bd farhad.hossain@cuet.ac.bd

Md. Azad Hossain


Dept of Electronics and Telecommunications Engineering
Chittagong University of Engineering and Technology
Chittagong, Bangladesh
azadhossain@gmail.com

Abstract—Brain tumors can be divided into two types, namely be difficult because it is challenging to accurately measure the
benign and malignant, and the timely detection and treatment size and resolution of the tumor[2].
of the disease can improve the quality of life and life expectancy
If a brain tumor is diagnosed and treated early in its for-
of patients. Deep Neural Network (DNN) is a useful method
for achieving this goal, and in this study, a Convolutional mation process, the patient’s chances of successful treatment
Neural Network (CNN) was used to detect brain tumors from are high, highlighting the importance of timely diagnosis.
Magnetic Resonance Imaging (MRI) images. The CNN was able Diagnosis is usually performed through medical examination,
to accurately classify the images with an accuracy of 98.67 computer tomography, or magnetic imaging, with MRI being
percentage using the Softmax Fully Connected layer, while the
one of the most accurate and commonly used methods for
Radial Basis Function (RBF) classifier achieved an accuracy of
97.34 percentage and the Decision Tree (DT) classifier achieved an evaluating the brain. MRI imaging is particularly useful in
accuracy of 94.24 percentage. In addition to accuracy, Sensitivity, medical detection systems due to its high contrast in soft
Specificity and Precision were used as benchmarks to evaluate tissue.[3]
the performance of the network. Based on the results obtained The proposed technique in this study utilized CNN to
from the categorizers, the Softmax classifier was found to be
the most accurate method for the CNN. This novel method identify and categorize brain tumors from images. One key
combines feature extraction techniques with the CNN for brain advantage of the neural network used in this study is its
tumor detection, and was able to achieve an accuracy of 99.12 ability to automatically extract features from each image,
percentage on the test data. The accuracy of doctors in diagnosing allowing for more accurate detection of tumors. Additionally,
and treating tumors is also crucial in ensuring positive outcomes a clustering algorithm was used for feature extraction to
for patients.
Index Terms—Brain tumor, deep neural network, Convolu-
improve the accuracy of the CNN in identifying tumors. By
tional neural network, magnetic resonance imaging extracting features before applying the CNN, the proposed
method was successful in increasing network accuracy and
reducing medical errors that can occur due to misinterpretation
I. I NTRODUCTION
of fatty masses as tumors, or vice versa.[4]
There are two main types of brain tumors: benign tumors,
which are non-cancerous and do not spread to other parts of II. R ELATED W ORK
the brain, and malignant tumors, which are cancerous and
can quickly spread to other tissues, worsening the patient’s In reference [7], a Super Pixel Technique-based automated
condition[1]. Normally, old or damaged cells in the brain are method is utilized to categorize MRI images by classifying
eliminated and replaced by new cells. However, if the old or each Super Pixel as tumor or normal. The performance of
damaged cells are not eliminated, new cells may continue to the method using the Extremely Randomized Trees (ERT)
be produced and can accumulate to form a mass of tissue, classifier is compared with SVM, and two datasets of MRI
which is known as a tumor or growth. FLAIR images and BRATS 2012 are used to demonstrate good
Detecting brain tumors is a challenging and complex task, performance.
as the size, shape, location, and type of tumor in the brain In reference [8], a CNN with 3 × 3 small kernels is used
can make it difficult to diagnose. Additionally, diagnosing for an automatic classification method to identify a tumor,
brain tumors in the early stages of tumor development can achieving the first position in dice similarity coefficient metric
for complete, core, and enhancing regions at the BRATS
Identify applicable funding agency here. If none, delete this. Challenge 2013.
In reference [9], the Alexnet model CNN is used to si- layers used, the size and quantity of pictures, as well as the
multaneously diagnose MS and normal tumors, with 98.67 kind of activation functions used, are all varied in CNN. The
percentage accuracy in classifying images into three classes. CNNs’ parameters are selected empirically, using trial and
In reference [10], a multi-stage Fuzzy C-Means (FCM) error. The Convolutional layer and the Sub-sampling layer,
framework is proposed to segment brain tumors from MRI which have been introduced in the following sections, are the
images. two main layers that make up each CNN.
In reference, a CNN-based method is proposed for classifi- 1) Convolution layer: Insofar as statistics are a component
cation and segmentation using Image-Net to extract features, of the image in the same way as the other components,
achieving 97.5 percentage accuracy for classification and 84 natural squirrels have fixed properties. This implies that
percentage accuracy for segmentation. acquired skills If one area of the image can be applied
In reference , deep learning structures are compared to to further areas, and related elements are employed in all
base neural networks for tumor grading using multi-phase image parts. once the the characteristics of the Convolu-
MRI images, and the results show that the sensitivity and tional layer are acquired used to classify pictures.
specificity of CNN improve by 18 percentage compared to 2) Sub-Sampling layer: The size of the supplied image is
neural networks. reduced through operations in this layer. At the conclu-
In reference, a deep learning-based supervised method is sion of the CNN, this layer provides us with a vector of
introduced for detecting changes in synthetic aperture radar points. The mean pooling or maximum pooling is done
(SAR) images. The method trains a DBN using input images using the aggregation or sub-sampling technique.
and images obtained from applying morphological operators,
and the results demonstrate the suitability of deep learning V. METHODOLOGY
algorithms for change detection problems. A. Dataset
Finally, reference proposes a completely automated brain The 153 individuals with brain tumors and those with
tumor classification method based on DNN, utilizing a new normal brain function who were referred to imaging centers
cascading architecture of CNN’s to be used for both low-grade due to headaches are represented in the data set images used
and high glioblastoma disease images. in this work. 80 healthy people’ brain scans were among the
images gathered after the doctor had examined and diagnosed
III. FEATURE EXTRACTION
the patients. Contains 1321 photos, of which 515 images are
In the fields of machine learning and image processing, used for train data and 56 images are used for testing data.
it is common to create features from the original dataset to 73 tumors in patients Contains 571 photos, including 170 for
facilitate the learning process. When the input data is too large, test data and 1151 for train data. The age range of the patients
it can be simplified into a smaller set of features through with brain tumor disease ranged from 8 to 66 years old, with
a process called feature extraction. The selected features 86 women and 68 males making up the total. 1892 pictures
include relevant information from the input data, allowing for a of 153 patients were acquired in total, including 1666 photos
reduced representation of the agent rather than the full initial for train data and 226 images for whose initial size of 512 ×
dataset. Feature extraction is especially important in image 512.
processing, where it is used to distinguish desired segments
or the shape (features) of a digital image or video stream. B. Simulation
The ability of the doctor to make the most accurate diagno-
IV. DEEP LEARNING
sis is entirely dependent on their training. Occasionally, some
One of the most modern and practical varieties of machine areas of fat in the images are wrongly identified as tumors, or
learning is deep learning. In other terms, education is referred the doctor may not be able to notice the tumors. In this study,
to as ingrained architecture. In reality, these architectures use brain scans were used to detect tumors using CNN. The images
the same old nerve networks that have evolved into DNN. acquired from the imaging centers have additional margins.
These networks are data-driven, and feature engineering is To stop the photographs’ noise, these margins were trimmed.
carried out automatically without our intervention. This is In order to improve the accuracy of the network, one of the
exactly how they achieve their high levels of accuracy and key motivations for applying the feature extraction technique
performance across a variety of domains. In actuality, it is and combining it with CNN is to retrieve the picture feature
a deep learning of a number of nerve-based algorithms that extraction. CNN’s findings on the early photos suggest that in
automatically learns features from our own input data. order to strengthen the network. Here the clustering algo for
the sake of feature extraction is given.
A. Convolution Neural Network
The CNN are a unique class of DNN whose design was C. Feature extraction method
motivated by the biology of the cat’s visual cortex . The A clustering technique is central clustering. This technique
CNN is organized in layers and has a hierarchical structure. contains a duplicate procedure that attempts to get points
Input, output, convolutional, pooling, normalizing, and fully as cluster centers—which are actually the same mean points
connected layers are also included in CNN. The number of belonging to each cluster—iteratively for a fixed number of
clusters. Also, assign each sample of data to a cluster that According to the results obtained from the categorizers,
has a minimum distance between it and its center. In the the Softmax classifier has the best accuracy in the CNN.
straightforward version of this procedure, the cluster centers After reviewing the results obtained from different categorizers
are first chosen at random. New clusters are created by in the CNN, the SoftMax classification has been used in
allocating points to cluster centers based on how similar they the proposed method. Initially, the dataset were given to the
are to one another. The first-order clustering approach has traditional CNN.
been utilized in this paper to feature extract the The image The CNN classifier with the best accuracy is the Softmax
produced after the clustering technique was applied to the classifier, per the results from the categorizers. The proposed
image is shown in Fig. 1. method makes use of the SoftMax categorization after examin-
ing the CNN findings from various categorizers. The standard
CNN was initially given the dataset.
On the test images in Fig. 5, the network accuracy process
diagram is also visible. The network accuracy process, which
is the estimated outcome of the data, is depicted in the
following graph. This method determines how closely the data
resembles the real value.
The test photos in Fig. 6 also display the network loss
process diagram.
VI. A PPLICATION AND I NTERFACE
This software application, a brain tumor detector web app,
Fig. 1. Applying the clustering algorithm to the image.
analyzes medical pictures like MRI or CT scans to find the
existence of brain tumors. It does this by using cutting-
D. Convolutional neural method edge algorithms and machine learning approaches. Medical
The photos were initially put to CNN without using any professionals can quickly upload medical photos to this web
feature extraction techniques. The submitted photos are ini- application and get quick, precise results because of its user-
tially 227227 in size. The photos were recognized and clas- friendly interface.
sified using the Alexnet design, which has five convolutional Compared to conventional methods of brain tumor detec-
layers, three layers of sub-sampling, normalization, and fully tion, the brain tumor detector online application has a number
connected layers, and one layer for classification. There are of advantages. It takes less human effort and is quicker and
4096 neurons in the completely linked layers. At this layer, more accurate. This web-app enables medical practitioners
there are two classes: patients with brain tumors and healthy to immediately identify the presence of brain tumors and
patients (see figure 2). promptly treat patients, increasing the likelihood of a full
recovery.
Additionally, because this web-app is available from any-
where, medical practitioners can use it remotely to diagnose
patients in need with speed and accuracy. This function makes
it easier for those who need medical treatment to get it, which
is especially helpful in locations with constrained medical
resources.
Medical practitioners’ burden has also been lessened as a
result, freeing them up to concentrate on other crucial facets
of patient care.
In conclusion, the web-based brain tumor detector software
is a potent tool that has completely changed how doctors find
Fig. 2. Proposed CNN to gender detection using MRI images

E. SIMULATION RESULTS AND DISCUSSION


With a precision of 98.67%, CNN was able to classify the
images into tumor patient and normal patient tumors. Based
to the CNN’s analysis of the original images, a combination
of CNN and the Clustering algorithm for feature extraction is
employed to enhance network performance. The effectiveness
of the suggested method has been assessed using additional
classifiers such the Softmax Fully Connected layer classifier,
RBF classifier, and DT classifier in the CNN architecture.
and identify brain tumors. It is a useful and efficient method
for locating brain tumors and giving patients prompt treatment
due to its sophisticated algorithms and user-friendly interface.

Fig. 3. Images by the CNN are mistakenly classified

Fig. 7. Basic interface of the Brain Tumor Detector

Here the outlook of the functionality of the Brain Tumor


Detector:

Fig. 4. Images that are wrongly categorized by the proposed method

Fig. 8. Webapp in action

VII. CONCLUSIONS
This study develops a low-cost, portable, robust, and reliable
brain tumor detector. The system’s conception, development,
implementation, and testing all function as intended. The
project is thus a huge success. Several things can still be done
with minute progress in terms of future enhancements.
R EFERENCES
[1] M. Karuna and A. Joshi, Automatic detection and severity analysis of
Fig. 5. Network accuracy process
brain tumors using gui in matlab, International Journal of Research in
Engineering and Technology, 10, pp. 586-594, 2013.
[2] KS. Aboody, A. Brown, et al, Neural stem cells display extensive
tropism for pathology in adult brain Evidence from intracranial gliomas,
Proceedings of the National Academy of Sciences, 97 (23), pp. 12846-
12851, 2000.
[3] A. joshi, D. H. Shah, et al, Survey of brain tumor detection techniques
through MRI images, International Journal of Research in Engineering
and Technology, 10, pp. 586-594, 2013.
[4] JP. Poonam, Review of image processing techniques for automatic
detection of tumor in human brain, International Journal of Computer
Science and Mobile Computing, 2(11), pp. 117-122, 2013.
[5] H. Cecotti and A. Graeser, Convolutional neural network with embed-
ded Fourier transform for EEG classification, Pattern Recognition,19th
International Conference on. IEEE, ICPR, pp. 1-14, 2008.
[6] R. Bayot and T. Gonalves, A survey on object classification using
convolutional neural networks, 2015.
[7] M. Soltaninejad, et al, Automated brain tumour detection and segmenta-
tion using superpixel-based extremely randomized trees in FLAIR MRI,
Fig. 6. Network loss process
International journal of computer assisted radiology and surgery, 12(2),
pp. 183-203, 2017.
[8] S. Pereira, et al, Brain tumor segmentation using convolutional neural
networks in MRI images, IEEE transactions on medical imaging, 35(5),
pp. 1240-1251, 2016.
[9] Halimeh Siar, Mohammad Teshnehlab, Diagnosing and Classification
Tumors and MS Simultaneous of Magnetic Resonance Images Using
Convolution Neural Network, 7th Iranian Joint Congress on Fuzzy and
Intelligent Systems (CFIS), 2019.
[10] L. Szilagyi, et al, Automatic brain tumor segmentation in multispectral
MRI volumes using a fuzzy c-means cascade algorithm, In 2015 12th
international conference on fuzzy systems and knowledge discovery
(FSKD), IEEE, pp. 285-291, 2015.
[11] The working webapp link : https://jacksparrow1770-brain-tumor-
detector-new-brain-hofkus.streamlit.app/
[12] The dataset : https://www.kaggle.com/navoneel/brain-mri-images-for-
brain-tumor-detection

You might also like