Intelligent Model for Brain Tumor Identification Using Deep Learning

Brain tumors can be a major cause of psychiatric complications such as depression and panic attacks. Quick and timely recognition of a brain tumor is more eﬀective in tumor healing. The processing of medical images plays a crucial role in assisting humans in identifying diﬀerent diseases. The classiﬁcation of brain tumors is a signiﬁcant part that depends on the expertise and knowledge of the physician. An intelligent system for detecting and classifying brain tumors is essential to help physicians. The novel feature of the study is the division of brain tumors into glioma, meningioma, and pituitary using a hierarchical deep learning method. The diagnosis and tumor classiﬁcation are signiﬁcant for the quick and productive cure, and medical image processing using a convolutional neural network (CNN) is giving excellent outcomes in this capacity. CNN uses the image fragments to train the data and classify them into tumor types. Hierarchical Deep Learning-Based Brain Tumor (HDL2BT) classiﬁcation is proposed with the help of CNN for the detection and classiﬁcation of brain tumors. The proposed system categorizes the tumor into four types: glioma, meningioma, pituitary, and no-tumor. The suggested model achieves 92.13% precision and a miss rate of 7.87%, being superior to earlier methods for detecting and segmentation brain tumors. The proposed system will provide clinical assistance in the area of medicine.


Introduction
e brain is a key organ responsible for the central nervous system. e human brain complements the central nervous system by connecting the bone marrow. e brain has the responsibility of controlling the actions of the human body. It receives the information from a different sense and after making decisions, sends the instructions to the body. e brain is the central part of the administration section of the human body that is responsible for all the activities of the human body with the help of neurons.
Malignant and benign are the currently prevalent types of significant brain tumors. e brain tumor is considered deadly cancer in adults and children. A brain tumor occurs when the brain tissues develop unnaturally. e abnormal tissues overgrow compared to the healthy cells, causing the mass of cells that eventually transform tumors [1].
A benign tumor is the least damaging type of tumor and has no tumor cells. Malicious cancer is tumor cells that can be very deadly and deliberate to be deadly. A malignant tumor can affect the entire brain. Common primary tumors found among adults are glioma, meningioma, and pituitary.
Gliomas come from glial cells that exist in the supporting tissue of the brain. Meningiomas are typically benign tumors that grow slowly and come from the outer shells of the brain just beneath the skull. Meningiomas are generally found in the cerebral hemispheres, and they can take several years to be detected. e pituitary gland is situated at the lower part of the brain. Its main function is to produce the hormones to control the various glands of the body, such as thyroid glands. A pituitary tumor may affect the operation of these glands (National Brain Tumor Society).
Quick and timely recognition of a brain tumor is of the utmost importance for curing the tumor. It depends on the expertise and professional skills of the doctor and which method is selected to treat the patient for rapid recovery. It is challenging to determine the correct type of brain tumor in the initial phase, yet vital as it helps the physicians treat the patient accordingly [2].
Gastrointestinal is the most commonly diagnosed type of cancer. It activates the gastrointestinal polyps. e method of diagnosis of gastrointestinal polyps is video endoscopy. A small camera enters the human body and is guided by the gastrointestinal tract to reveal and exclude polyps. However, some polyps are considered undetected and may be malignant tumors at some point. To reduce the polyp misdetection rate, "a computer-aided polyp detection system" should be used [3].
Brain tumors can be a major contributor to psychiatric complications such as depression and panic attacks. Early detection of brain tumors has a significant impression on the success of tumor treatment. Gliomas are significant early brain tumors with an extremely high mortality occurrence ratio. Gliomas can be classified as High-Grade Gliomas (HGG), which are infiltrated and more destructive, or Low-Grade Gliomas (LGG), which are of little harm. It is challenging to detect the tumor because it can appear in any shape, size, and location.
Glioma is considered to be the more common type of brain tumor. MRI scans generally segment glioma in necrotic tissue, active tumor, and surrounding edema (ED). Manually segmenting tumors are a slow and repetitive procedure that requires the help of a human expert. Computerized tools play an essential role in glioma segmentation. Glioma segmentation algorithms can be typically distributed into traditional Machine Learning and Deep Learning algorithms. According to a study, a Deep Learning Algorithm (3D Dense UNet CNN) was proposed to classify the output in the whole tumor (WT), tumor core (TC), and enhancing tumor (ET) [4]. e processing of medical images plays a key role in assisting humans in identifying different diseases. Computer tomography (CT) and Magnetic Resonance Imaging (MRI) are two approaches usually utilized for inspecting the irregularities in brain tissues concerning the size, location, or shape of cells, which can help in detecting the tumor in its initial stages [5].
Robust machine learning systems enhance the accuracy identification that supports clinicians in treatment. It is important to choose an effective algorithm with specific characteristics and classifiers to classify the tumor to achieve maximum efficiency. In contrast to traditional manual classification, algorithms are more efficient and accurate in classification [6].
is article proposes a new machine learning (ML) model to overcome this precise segmentation of brain tumors. e proposed intelligent detection model for identifying brain tumors has been classified into four classes: notumor, glioma, meningioma, and pituitary. A total of 3264 images has been used in the model, including 926, 937, and 901 for glioma, meningioma, and pituitary, respectively, and 500 for the no-tumor class.
Deep learning replicates the brain in data processing, pattern recognition, and decision-making development. Deep neural networks have the competency of unsupervised learning from unstructured data. Convolutional Neural Network (CNN) works exceptionally well in deep learning, especially recognition and classification of images, speech, or text. Convolutional Network typically contains an inserting layer, a resulting layer, and many undiscovered layers. A series of convolutional layers are linked in the undiscovered layers. e starting function comprises the RELU layer, and the Final Convolution embroils the backpropagation [7]. Salçin [8] proposed the mechanism to diagnose brain tumors in early stages. Magnetic resonance imaging (MRI) images have been analyzed to detect the regions containing tumors and classify these regions into different tumor categories. Deep learning provides relatively efficient results for image classification tasks. erefore, the Convolutional Neural Networks method has been utilized and implemented via the TensorFlow library in this study. It has been shown that the faster CNN method can yield an accuracy of 91.66%, which is higher than the related work.

Related Work
Sarkar et al. [9] proposed a model to detect the type of brain tumor using MRI scans. A 2D Convolutional Neural Network (CNN) was designed for classification, which propelled an overall accuracy of 91.3% for detecting meningioma, glioma, and pituitary tumors, respectively. e dataset used in the study contained the data of the three most commonly diagnosed brain tumors.
Ranjbarzadeh et al. [10] recommended a flexible and effective brain tumor segmentation system. is method decreases computing time and overcomes the overfitting problems in a Cascade Deep Learning model. is CNN model mines both local and global features in two different routes. Also, the brain tumor segmentation accuracy is improved compared with the state-of-the-art models. e proposed method achieves a mean WT, enhancing tumor, and tumour core dice scores of 0.9203, 0.9113, and 0.8726, respectively.
Kokila et al. [11] built a model to diagnose brain tumors using Magnetic Resonance Imaging (MRI). It involves detecting the tumor, classifying the tumor in terms of grade, type, and identification of tumor location. is method has utilized one model for organizing brain MRI on different classification tasks rather than an individual model for each classification task.
e Convolutional Neural Network (CNN)-based multitask classification is equipped to classify and detect tumors. Identifying brain tumor location is also done using a CNN-based model by achieving 92% accuracy of segmenting the brain tumor. Gumaei et al. [12] implemented the brain tumor division by combining the Regularized Extreme Learning Machine (RELM). e method first preprocessed images so that the system can read them with ease. For preprocessing, the system used the min-max approach.
e min-max preprocessing process was very beneficial in increasing the contrast of input images.
Kaplan et al. [13] instigated mind tumor detection and division by combining both methods. e first suggested method was the Local Binary Pattern (LBP) based on the neighbour distance relation called nLBP, and the second method focused on the angle between the neighbours called αLBP. ese two approaches were used to preprocess the MRIs of the most communal categories of brain tumor, namely, glioma, meningioma, and pituitary. e histograms of the preprocessed images were used for characters evolving. is reformed model performed better than the traditional feature extraction techniques.
Yin et al. [14] suggested a Multilayer Perceptron (MLP) neural network-based classification approach to improving Whale Optimization Algorithm (WOA). e hybrid model provided an enhanced version of WOA for better characters evolving and division. In an advanced implementation, noise removal from the images was done using the Median Filter. Feature selection from the extracted features was made using the improved WOA.
e MLP-IWOA-based classifier was used for tumor classification showing better results than some existing methods.
Reference [15] combined statistical features with neural network algorithms to develop a method for the division of mind tumors. e framework focused on the Region of Interest (ROI) where the tumor existed. en, the features were from that input image using the 2D Discrete Wavelet Transform (DWT), 2D Gabor Filter, and statistical features. ese statistical features were combined to develop the feature set for further classification. After the feature extraction, brain tumor classification was done using Backpropagation Neural Network (BPNN). A large dataset of tumor images was used for this purpose.
ejaswini et al. [16] recommended a system for enhanced accurate spotting and division of mind tumors by combining Support Vector Machine (SVM) along with Artificial Neural Network (ANN). e strategy suggested for segmentation of the input images was Adaptive Regularized Kernel-based Fuzzy CMeans Clustering (ARKFCM). After character evolving, SVM was applied for tumor detection, and then ANN was utilized for classifying the brain tumors.
e SVM classifier was used to distinguish between tumor and no-tumor images, while ANN backpropagation organized the image into a benign or malignant tumor.
Reference [17] applied Intensity-based Segmentation by using Gray Level Cooccurrence Matrix (GLCM). GLCM works on the grey level image pixels and extracts 13 properties used in classification later. SVM works by creating a hyperplane, and the selection of a hyperplane depends on the kernel. e proposed model consisted of three classes for classification: expected, benign, and malignant, respectively. A genetic algorithm (GA) was used for making the performance of classification better through SVM. GA increased the learning capacity and decision-making of SVM. GA-SVM performed better in the classification of MRIs of the brain.
Sekaran et al. [18] studied that pancreatic cancer is the most dangerous cancer and is supposed to be untreatable. e pancreas malignancy created in the pancreas tissues, which helps in assimilation, is situated behind the lower part of the stomach. e treatment of this cancer depends on the level of its development. e detection of the tumor is done by directly diagnosing the infected portion from the CT scan image. It predicts the image or area of tumor considered using the Gaussian Mixture Model with Expectation-Maximization algorithm and Deep Learning Convolution Neural Network (CNN). "FISHMAN" is a deep learning project used to proceed with millions of images and foretells pancreas cancer at an early stage. It also helps the patients for better treatment for cure. e dataset used for experimenting with this model is e Cancer Imaging Archive (TCIA). is dataset consists of approximately 19,000 images with a size of 10.2 GB. is dataset consists of 82 abdominal CT scan images. e CT scans collected 512 × 512-pixel resolutions with differences in slice thickness between 1.5 and 2.5 mm, which were collected using Philips and Siemens MDCT Scanners. It considered multiple sets of images and diagnosed them concerning the threshold parameters and features obtained using GMM with EM Algorithm stage at training phase. e results of the prediction of cancer for the threshold parameters fed to deep learning are presented by identifying the tumor rate of spread in the head section of the pancreas; after diagnosing and treatment, the spread of tumor size has been decreased. It helped patients to get cured compared to the traditional process of analyzing.
Ito et al. [19] proposed a semisupervised learning method for brain tumor segmentation using MRIs. e researcher suggested a probabilistic approach to eradicate the problem of Label Propagation in the registration-based process.
e Expectation-Maximization (EM) algorithm helped the researchers to compute the valid label of a latent image, knowing the probability distribution controlling those latent images before applying the algorithm. e DNN model was combined with the EM algorithm for training this probabilistic model. e model was aimed to recuperate the erroneous labels attached to the initially unlabeled images in the EM algorithm. e method was verified on the two datasets: open benchmark human MR images registered at the Internet Brain Segmentation Repository (IBSR) and the marmoset brain image dataset.
Nadeem et al. [20] recommended a hierarchical framework of SVM and CNN for brain tumor segmentation. e suggested model comprised two segments: confidence surface modality (CSM) generation and brain tumor segmentation using CNN. In the second phase, the proposed CNN architecture took the input of 2D extracted regions from the first phase. e CNN model recommended by the researcher comprises three other pathways (TP) to retrieve a Applied Computational Intelligence and Soft Computing different level of features at every step. Each track processed the 2D image extracted from the respective modality, and then the feature maps were combined. Dice Similarity Score was applied to calculate the system's accuracy and the BRATS-2015 dataset was used. e novel TP-CNN model achieved 0.81 on the complete tumor, 0.76 on the core tumor, and 0.73 on enhancing tumor.

Proposed Model
Internet of medical things (IoMT) aids the health of individuals by mounting the worth of human welfare and life along with shrinking medical expenditures. In IoMT, input components are used for data acquisition, and then users use the input to deliver the preeminent healthcare facility in an effective and protected manner. e proposed brain tumor identification system revolved around three essential layers: data acquisition, preprocessing, and application. In the first layer, data acquisition, the layer collects the data in raw form. is natural material was then run out to the second layer (preprocessing layer), managed, moved, and normalized. e consistent data will be sent to the prediction layer, the third layer where CNN was applied. e data acquisition layer consisted of variables as input and output. e last layer, the performance evaluation layer, computes the precision and miss rate of the problem. In the decisive area, the conclusion was drawn about brain tumor development. e detailed flow of the proposed model of Hierarchical Deep Learning-Based Brain Tumor Classifier (HDL2B-TUMOR-CLASSIFIER) is explained in Figure 1. It describes the complete architecture of the system suggested in the study. e model has two phases: training and validation, respectively. e data are first retrieved from IoMT devices, which are the MR images of the brain. e data acquisition layer processes the data coming from different IoMT devices and passes it to the next layer for preprocessing. Normalization and resizing are the significant steps done in the preprocessing layer to get the given image ready to hand to CNN.
Convolution is the next step of CNN in which the feature extraction is performed on the input image. Convolution is a linear operation as the images are often nonlinear, so ReLU layer is used to increase disconnection in the network. In CNN, characteristics are evolved by the preprocessed image using the convolutional and pooling layers.
Convolutional Neural Network is a multilevel neural network proficient in identifying visual patterns through learning mechanisms. CNN specifies that the network implies a mathematical operation called convolution. Convolutional Neural networks are limited, which utilize convolution in one of the multiple layers of the network rather than the widely known multiplication matrix. CNN uses fewer parameters and connections than the conventional feedforward neural networks, making the training easier. Feature extraction and detection in CNN are not spatially dependent, and higher-level features are acquired as the input travels to the deeper layers. e conventional neural network typically comprises the input layer, hidden layers, and output layer. It consists of a single or multiple convolution layers and subsampling layers, following one or more utterly interlinked folding and a resulting folding. CNN has multiple layers: parametric layers, pooling, and nonlinearity layers are convolutional and fully connected, taking the input matrix as input, processing it, and classifying it into different output classes. ese four possible classes are no-tumor, glioma, meningioma, and pituitary. e evaluation layer assesses the working of classification by inspecting the accuracy and miss rate. e model retrains itself if it does not fulfill the required learning criteria. After meeting the criteria, the Softmax Transformation Function is used to convert the number vectors into probabilities as defined in the following equation: In the above equation, c i denotes the logits vector; various logit vectors will be converted into probabilities via Softmax transformation.
(2) c l interrelated weights are calculated with the ϰ j essential learning criteria; the trained network model is stored on the cloud server. e validation phase consists of the same data acquisition and preprocessing phase. After the preprocessing layer, the tumor classifier network is imported from the cloud, and the input image is tested to validate the model outcome. e model will classify the input image into the four classes mentioned earlier.
where η c is the number of classes depending on the application. e mathematical model of the proposed system is comprised of backpropagation by differentiating equation (1) concerning the weights zE/zω and bias zE/zβ.
Here, we find loss (E) by taking derivate of E with respect to weights (ω) that consist of two summations as mentioned in equation (4). e first summation initiates from j � 1 to η out and the second one starts from l � 1 to η c . en, these two derivatives are multiplied together. After applying the chain rule, it can be written as follows: In equation (1), λ i is related to c i as expressed in the following expression:

Applied Computational Intelligence and Soft Computing
c l � η out j�1 (ω jl * ϰ j ) is given as c i � c l . Two cases are discussed and solved, first where I � l, and second, i ≠ l when i � nth unit, where n is the particular neuron focus point in Softmax output where n has the highest values, and the surrounding neurons have values near to zero.

Case 1. (i � l)
Quotient rule is applied to take the derivative of equation (3): Taking common e c i / η c κ�1 e c κ from equation (6), we get By taking Anti-LCM, we acquire From equation (3), λ i � (e c i / n j�1 e c φ ), so the equation can be modified as follows: In the above equation, i! � n th unit, where the probability value is deficient and n is the focal point of Softmax output neurons.

Case 2. (i ≠ l)
Applying quotient rules to take the derivative of equation (4) with respect to c l , By simplifying, and λ l � (e c l / η c κ�1 e c φ ), we put these values in the following equation: By summarizing equations (9) and (12), where (zc l /zω j,l ) � ϰ j represent the input weights. e differentiation of loss (E) concerning weights (ω) for the fully connected layer is formulated in equation (21).

Result and Simulations
MATLAB 2020a is utilized for the outcomes of the hierarchical deep learning model for intelligent detection of brain tumors and their types using a Convolutional Neural Network. CNNbased smart healthcare system is planned for accurate recognition and classification of brain tumors. e dataset was collected from Kaggle [21], which comprised four classes, including one no-tumor and three tumor types. A total of 3264 images have been used in the model, including 926, 937, and 901 for the glioma, meningioma, and pituitary classes, respectively, and 500 for the no-tumor class. e proposed hierarchical deep learning model is split into two phases: the training and validation phases. In the training phase, 87% of input images are picked from each class, and 13% are used in the validation phase. Accuracy (ACC) and miss rate (MR) to assess the efficiency of the model are as follows: e proposed smart detection model for brain tumor identification has been classified into four classes. no-tumor, glioma, meningioma, and pituitary. Table 1 shows the input matrix for the proposed HDL2B-TUMOR-CLASSIFIER. A total of 3264 images are used for training and validation purposes. In total, 2870 images, 87% of the total input, are used for the training phase, and the remaining 13%, i.e., 394 images, are utilized in the validation phase. e input samples are further divided into 926, 937, 500, and 901, representing the glioma, meningioma, notumor, and pituitary.
In the following mathematical results of HDL2B-TU-MOR-CLASSIFIER, the symbols used to represent the input and output parameters are as follows:  Figure 2 shows the performance of the proposed HDL2B-TUMOR-CLASSIFIER in the training phase. e accuracy is 94%, 95%, 95%, and 95% and MR is 6%, 5%, 5%, and 5% of predicting glioma, meningioma, no-tumor, and pituitary, respectively. Table 3 indicates the prediction results of the suggested HDL2B-TUMOR-CLASSIFIER for the validation phase. A total of 394 input images are used, which are further divided into 100, 115, 105, and 74, representing the glioma, meningioma, no-tumor, and pituitary classes, respectively. For glioma, 100 samples are taken, in which 92 samples are correctly anticipated and 8 are mispredicted as meningioma. For meningioma, a total of 115 images are used, in which 106 samples are acceptably projected, and 7 and 2 samples are erroneously projected as glioma and no-tumor, respectively. For no-tumor, a total of 105 images are used, in which 94 samples are acceptably projected, and 9 and 22 samples are erroneously predicted as meningioma and pituitary, respectively. In contrast, 74 samples are taken, in which 71 samples are adequately estimated and 3 are erroneously estimated as no-tumor. Figure 3 shows the performance of the proposed HDL2B-TUMOR-CLASSIFIER in the validation phase. e accuracy is 92%, 92%, 90%, and 96% and MR is 8%, 8%, 10%, and 4% of predicting the glioma, meningioma, no-tumor, and pituitary, respectively. Figure 4 illustrates the overall efficiency of the proposed HDL2B-TUMOR-CLASSIFIER. e accuracy of all the classes in the training phase is 94.84%, and MR is 5.16%. And the accuracy in the validation phase is 92.13%, and the MR in the validation phase is 7.87%. Figure 5 represents the proposed HDL2B-TUMOR-CLASSIFIER performance with other state-of-the-art algorithms showing the improved and enhanced accuracy. e accuracy values of Salçin [8], Sarkar et al. [9], Kokila et al. [11], and Ranjbarzadeh et al. [10] are 91.66, 91.3, 92.00, and 92.03, respectively, and the proposed HDL2B-TUMOR-CLASSIFIER in this study showed 92.13% accuracy.

Conclusion
e brain tumor is considered to be fatal cancer in adults and children. e common types of primary tumors found in adults are glioma, meningioma, and pituitary. Numerous methods have been suggested and inspected in the literature for detection and classification of the brain tumor to expand the possibilities of treatment and endurance of the patients. A Hierarchical Deep Learning-Based Brain Tumor Classifier is proposed using CNN in the present study. e model classified the input into four classes: glioma, meningioma, pituitary, and no-tumor. e proposed model accomplished 92.13% accuracy, and MR was 7.87%, superior to existing brain tumor detection and segmentation methods. e system also classifies the tumor into different classes after tumor recognition. e proposed system will provide clinical support in the medical field.
Data Availability e data used in this article are available from the corresponding author upon request.    Applied Computational Intelligence and Soft Computing 9