CNN-Based Brain Tumor Detection Model Using Local Binary Pattern and Multilayered SVM Classifier

In this paper, an autonomous brain tumor segmentation and detection model is developed utilizing a convolutional neural network technique that included a local binary pattern and a multilayered support vector machine. The detection and classification of brain tumors are a key feature in order to aid physicians; an intelligent system must be designed with less manual work and more automated operations in mind. The collected images are then processed using image filtering techniques, followed by image intensity normalization, before proceeding to the patch extraction stage, which results in patch extracted images. During feature extraction, the RGB image is converted to a binary image by grayscale conversion via the colormap process, and this process is then completed by the local binary pattern (LBP). To extract feature information, a convolutional network can be utilized, while to detect objects, a multilayered support vector machine (ML-SVM) can be employed. CNN is a popular deep learning algorithm that is utilized in a wide variety of engineering applications. Finally, the classification approach used in this work aids in determining the presence or absence of a brain tumor. To conduct the comparison, the entire work is tested against existing procedures and the proposed approach using critical metrics such as dice similarity coefficient (DSC), Jaccard similarity index (JSI), sensitivity (SE), accuracy (ACC), specificity (SP), and precision (PR).


Introduction
Brain tumors develop as a result of unregulated and fast cell proliferation. It can be fatal if not addressed in the early stages. Machine learning techniques are used to assist clinicians in detecting brain tumors and making judgments. e progression in the deep learning procedures involving the best classifiers impacted a significant advance in medical image processing in recent years. A brain tumor develops when brain tissues develop abnormally. e malignant tissues outgrow the healthy cells, resulting in a mass of cells that eventually transform into tumors [1]. Magnetic resonance imaging (MRI) has been the gold standard for noninvasive brain tumor identification in the last few decades due to its improved soft tissue contrast [2,3]. MRIs have a considerable impact on medical image processing and analysis due to their ability to provide high-resolution information about brain structure and abnormalities [4][5][6]. A malignant brain tumor grows significantly more quickly than a benign tumor and is more prone to spread to other parts of the brain. Primary malignant brain tumors have poor prognoses and greatly affect cognitive abilities as well as quality of life [7]. e analysis of medical images is critical in assisting people in diagnosing various disorders. e advanced medical imaging modalities are commonly used methods for analyzing anomalies in brain tissues, which can aid in the detection of tumors in their early stages [8]. e data are initially extracted from dataset, which contains MR pictures of the brain. e first stage of the work receives image data from various sources and forwards it to the next layer for preprocessing using linear filters. Further normalization and patch extraction are important procedures performed in the preprocessing layer to prepare the image for use by CNN. Convolution is considered as a mathematical and engineering tool which is involved in the next phase of CNN where the process feature extraction is conducted on the input image combined with multilayered support vector machine (ML-SVM) to provide optimal outcomes in the work.

Related Works
Numerous medical imaging techniques are utilized to obtain information regarding tumors (tumor type, shape, size, location, and so on) that is required for diagnosis [9]. e Fuzzy C-Mean (FCM) method was developed by the authors of [10,11]. As a means of avoiding the difficulty of determining the number of clusters in an FCM, this technique was devised to pick the pixel intensities and cluster them into two groups. System sensitivity, specificity, and accuracy are all measured to determine how well it works. SVM and FCM techniques were used to generate a hybrid approach for brain MRI categorization by the researchers in [12]. In the early stages of the technique, MRI scan quality is improved using image enhancement technologies such as contrast augmentation and midrange stretch. ere are 71 features constructed using the intensity profile, the obtained cooccurrence matrix with new values, and also the Gabor functions after the tumor contour is obtained using a semiautomatic approach in [13,14]. Because of limitations such as parameter selection or the need for prior knowledge of the images as well as significant calculation times, skull stripping is a common preparation stage in classical discriminative approaches [15]. Deep learning was utilized to construct a classification method for multigrade brain tumors, according to the authors of [16,17]. e CNN model is used to segment the tumor in this strategy, although the results are limited in accuracy and sensitivity because of the limitations of the CNN model [18]. According to the findings of another study [19,20], brain tumors can be detected using both hand-created and deep learner features. e authors of [21][22][23] did a comparison of naive Bayes, J48 decision tree, and neural network; the downside of this strategy is that it is a conventional approach. e use of machine learning to categorize brain tumors, on the other hand, was proposed by [24,25]. KNN and SVM were used in this comparison, and the model was found to be 0.95 percent accurate. Because of the automated intelligent system outcomes, the accuracy of this model is higher, but the sensitivity is lower. By integrating support vector machine (SVM) and artificial neural network (ANN), the authors [26,27] proposed a technique for better precise identification and division of mental tumors; however, despite the high accuracy, the precision was not completely satisfactory [28,29].

Methodology and Algorithm
is study describes a convolutional neural network (CNN) integrated with a multilayered support vector machine (ML-SVM) algorithm. In this system, there are mainly five distinct blocks: Image Acquisition, Preprocessing, Patch Extraction, Feature Extraction, and CNN Classification and ML-SVM Classifier, as shown in Figure 1. Here, the procedure is explained along with each block and also the successive results.
In this process, images are imported from a dataset. is imported image is MRI scan, which is to be from the glioma region of the brain, and this acquired image is processed to detect tumors. e brain scan images are obtained from the Kaggle medical image database, which is the most preferred and standard database in the field of research. e acquired images are then processed by image filtering techniques followed by image intensity normalization as provided in the proposed block diagram. e input images acquired by the medical imaging modalities consist of artifacts due to inherent properties of modalities. ese images must be processed at first hand to remove disturbances that have been added and also normalized. Here, the image is subjected to linear filtering action which is accomplished through a neighborhood operation via weight adjustment procedures.
is filtered image is normalized for uniform intensity. Image normalization is carried out by means of contrast adjustment of the pixel values via histogram processing. e filtered image is then subjected to the patch extraction stage as shown in the proposed block diagram, to provide  2 Computational Intelligence and Neuroscience patch extracted images, where the image is subdivided to obtain separation between channels; in this process, the image is followed through patches attainment which again subdivides each separated channel based on RGB values for red, green, and blue channels, respectively. In feature extraction, the RGB image is converted to a binary image through grayscale conversion via the colormap process, and later, this process is done by local binary pattern (LBP). A convolutional network can be used to extract feature information, while a multilayered support vector machine (SVM) can be used to recognize objects. CNN is one of the most extensively used deep learning processes in a wide range of engineering applications. As compared to typical feedforward neural networks, CNN contains fewer parameters and connections, which makes training more straightforward. In order to give superior outcomes, this includes the training and testing of the required dataset as the primary process. Because it is an iterative method, it is only stopped when the optimal results are achieved.
is model was discovered to be capable of extracting characteristics from raw pictures as well as performing classification tasks on its own. e initial phase, as shown in the proposed block diagram, is to train CNN and multilayered SVM models. e second stage is to run the models through their paces and yield the final segmentation results (Algorithm 1).

Experimental Investigations
e graphical user interface (GUI) to perform the proposed method in order to segment and detect brain tumor with necessary stages involved is shown in Figure 2.
It displays the stages such as image acquisition to import input images from dataset, preprocessing stage to filter the images to remove any unwanted artifacts, patch extraction stage to achieve the patches with respect to channels of RGB, feature extraction stage to carryout color mapping and LBP process to attain the binary image, and CNN classification stage which involves multilayered SVM and later CNN procedures to predict the final output. e imported input image is MRI scan, as shown in Figure 3, which is to be from the glioma region of the brain, and this acquired image is processed to detect tumors. e imported image is further fed to the filtering process to attain the filtered output image, as shown in Figure 4. A two-stage filtering procedure is used in this case: first, linear filtering is used, in which the Gaussian filter kernel is employed since it has all of the characteristics of other filters due to the structural organization of its density function; and then, nonlinear filtering is used. It returns a rotationally symmetric Gaussian lowpass filter with a 2D Gaussian smoothing kernel and a positive standard deviation value, resulting in a reduction of artefacts as a result of this filtering. e resulting image is then subjected to a normalizing process via histogram processing. An operation called mapping is carried out in this scenario to map the intensity values in the resulting grayscale image to new values. e outcome is that normalizing saturates the lowest and highest one percent of all possible pixel values by increasing the contrast values in the resulting image, resulting in the normalized image displayed in Figure 5. e normalized image is fed into the patch extraction phase, which yields the patch extracted image depicted in Step 1: import MRI from medical database Step 2: linear filter via Gaussian filter Step 3: normalization using histogram processing Step 4: initiate patch extraction process (i) Patches obtained (ii) RGB channel separation Step 5: initiate feature extraction process (i) Color mapping and obtaining threshold value (ii) LBP process to attain binary image (a) Image is converted to a grayscale representation. (b) For each pixel (gp) in the image, select the P neighbouring pixels. gp's coordinates are specified by (c) Set the pixel in the centre (gc) as the threshold for its P neighbours. (d) Set to 1 if the adjacent pixel's value is larger than or equal to the centre pixel's value, and 0 otherwise. (e) Compute the LBP value now. First, write a binary number comprising digits next to the centre pixel in a counterclockwise direction. is binary integer (or its decimal counterpart) is referred to as the LBP-central pixel code and is employed as a distinctive local texture. Computational Intelligence and Neuroscience Figure 6. Obtaining the patches while keeping the size of each patch in mind is necessary in order to preserve equilibrium. An image patch is a collection of pixels in a photograph that, as the name implies, is a collection of pixels. Patches are divided into groups based on their energy level, with those with a high degree of energy being retained through the use of thresholds. ese patches are divided into red, green, and blue channelized images, as shown in Figures 7-9. In contrast to grayscale images, RGB images include three channels. Each pixel is composed of three channels, each representing a different color. It is necessary to analyze the components of each image's primary colors using the RGB channel separation (which is composed of the three colors: red, green, and blue). A mathematical analysis of the image will be performed, and the results will be presented in gray levels for each color, ranging from black to white and from no color to pure color.
is channel split image is then subjected to the gray thresholding technique, which performs a basic conversion operation. e LBP process is then launched on the resulting image, with LBP being a form of visual descriptor that is utilized for classification purposes in this context.
is simple yet efficient texturing operator labels pixels in an image by thresholding the pixels in their immediate vicinity and treating the result as a binary integer. Local binary pattern (LBP) is one of the most often used texturing operators because of its simplicity and effectiveness. At this point, the output image is a binary transformed image, as illustrated in Figure 10.           Computational Intelligence and Neuroscience 5 Figure 11 depicts the appearance of the obtained test features on the constructed GUI. ey are crucial and will be utilized in multilayered SVM and CNN classifiers, among other applications. Supervised machine learning (SVM) is a machine learning technique that can be used to aid in the classification or regression of issues. In order to find the optimal potential boundary between the various outputs, this algorithm is used. Using SVM's most basic version, linear separation, the goal is to find a line that optimizes the separation between two classes of 2-dimensional space points in a two-class dataset.
In its most simple type, SVM does not support multilayered classification natively. Multilayered SVMs are usually implemented by combining several two-class SVMs. erefore, it is a natural step to go from the standard singlelayer SVM to the multilayer SVM.
Later, the classified findings will be appropriately labelled using convolutional neural network (CNN) classifiers.
CNN is a deep neural network that is commonly used in image classification and machine vision scenarios. Convolutional neural networks (CNN) are complicated feed forward neural networks used in machine learning. Because of its great accuracy, CNNs are employed for image categorization and recognition. Finally, the console shows a simple message indicating whether or not a tumor is present. Figure 12 depicts the console output when a tumor is found.
A final result display of the entire work interface of brain tumor segmentation displaying the stages involved with final outputs for a tumor affected stage and also for a nontumor stage is provided in Figures 13 and 14, respectively. e entire work is evaluated for existing procedures as well as the proposed process, and the parameters of importance such as dice similarity coefficient (DSC) and Jaccard similarity index (JSI) are shown in Table 1. e graphical representation of the DSC and JSI comparison is also provided in Figure 15.   In this case, the parameter dice similarity coefficient (DSC) is used to determine the exact amount of ratio of the available real tumor and available nontumor pixels to the anticipated tumor and nontumor pixels and is computed using equation (1), and the Jaccard similarity index (JSI) is used to calculate the percentage of the similarity amid actual tumor pixels in the region of interest and the number of anticipated tumor pixels and is computed as per the standard equation (2).
When the model accurately predicts the positive class, the outcome is known as a "true positive" (TP) in these equations. To denote a result that the model predicted to be positive, the acronym FP stands for false positive, while TN stands for true negative, signifying a result that the model   Computational Intelligence and Neuroscience 7 predicted to be negative. When the model inaccurately predicts the negative class, the term "false negative" is used.
Dice similarity coefficient (DSC) � (2TP) (FP + 2TP + FN) X100, (1) Jaccard similarity index (JSI) � (TP) (TP + FN + FP) X100. (2) It is obvious from the table and graphical representation that the proposed method has a leading edge with respect to DSC value being 96.21%, whereas JSI value is 94.32% when compared to previous methods in brain tumor detection and classification. Dice similarity coefficient (DSC) values achieved by the proposed multilayered SVM with CNN are clearly superior to those achieved by earlier approaches.
Similarly, the parameters such as sensitivity, accuracy, specificity, and precision are provided in Table 2.
e graphical representation for the comparison of the parameters such as sensitivity, accuracy, specificity, and precision is also provided in Figure 16.
In this case, the accuracy (ACC) parameter which is of significance is used to calculate the percentage value of the correct tumor region of interest classification rate, which is represented in equation (3), whereas sensitivity (SE) is used to estimate the exact percentage value of how sensitive the method is to compute the corresponding value of the tumor identification rate, and its equation is provided in equation (4).
Also, the parameters specificity (SP) and precision (PR) are evaluated, where specificity (SP) discusses the rate value obtained between true negative (TN) values and true positive (TP) values represented as per the formulated equation (5) and further precision (PR) designates about the number of digits in terms of percentage that are used to present a value, and its equation to compute is shown in equation (6).
It is obvious from the table and graphical representation that the proposed method has a leading edge with respect to accuracy by 99.23%, sensitivity by 95.73%, specificity by 97.12%, and precision by 97.34% when compared to previous methods in brain tumor detection and classification.

Conclusion and Summary
Various schemes for detecting and classifying brain tumors have been proposed and investigated in the literature in order to broaden therapy options and patient endurance.
Brain tumor segmentation and detection have been processed in steps such as preprocessing, training, testing, and classification in this research work. e dataset's input images are first filtered and normalized for intensity values. Patch extraction, along with feature extraction, has been viewed as an intermediary stage in this work. After the characteristics were extracted, they were trained and tested in a CNN environment before being given to a multiple layer SVM classifier to display the tumor state in the MR scans. e fundamental advantage of CNN over its predecessors is that it automatically discovers significant features without the need for human intervention. For prior and proposed approaches, critical metrics such as dice similarity coefficient (DSC), Jaccard similarity index (JSI), sensitivity (SE), accuracy (ACC), specificity (SP), and precision (PR) are computed and compared. e proposed strategy proved to be an ideal solution with an accuracy of 99.23 percent. e methods such as gray-level co-occurrence matrix can also be employed in future along with the proposed methodology other than splitting to resolve the issues of losing any small details.
e performance and evaluation of the proposed CNN involving multilayered SVM can be improved in the future by undertaking additional research and researching various deep networks. As a future scope, other deep networks can also be investigated for better classification rather than patches losing the details.
Data Availability e processed data are available upon request from the corresponding author.