Introduction

Our brain is a complex integrative network where information is continuously processed and shared between structurally and functionally interconnected regions. Functional magnetic resonance imaging (fMRI) indirectly measures such brain activities by detecting relative alterations in blood oxygen level. For the past three decades, most studies have been carried out focusing on localization of neural activities associated with a variety of cognitive, sensory and motor tasks. Recent developments in functional neuro imaging have shifted the research focus to investigating and interpreting functional interactions between different brain regions [1,2,3].

Meningioma is the most common and aggressive primary malignant central nervous system (CNS) tumors. Initially termed multiform, meningioma belongs to a group of heterogeneous tumors because of their significant morphological, cytological and molecular variability. Because of their frequency and severity, meningioma’s are a major therapeutic issue for neurosurgeons, neuro-oncologists, and radiation therapists. The diagnosis of a meningioma is a sensitive operation where the error can lead to critical results. CT,PET and MRI images are medical imaging modalities used by doctors and researchers to acquire a best visualization for soft tissues anatomy. The naming of the Meningioma Tumors is based on the location it occupies in the brain. The growth rate of Meningioma Tumors are veryslow and therefore often people suffering from Meningioma Tumors are unaware that they are having the tumor in the brain [4,5,6].

In many cases patients come to know about it due to sudden critical seizure and numbness in their hands or legs. Depending on the position of the tumor in the brain certain parts of the body are affected. For example, a person having Parasagittal Meningioma tumor in the left side of the brain will find difficulty on their right hand and right leg movement. They will feel numbness, shivering on their right side and will also find difficult in seeing. When tumor exist on the left side of the brain, part of the brain controlling emotions are also strained [7]. Anatomical magnetic resonance imaging is today the most suitable non-invasive method for fine-resolution observation of biological tissues, and in particular brain tissue. Its sensitivity to small tissue changes is in fact a valuable and powerful ally in the diagnosis of brain tumors. MRI provides digital images that provide the information needed to implement treatment and analysis algorithms to help diagnose brain tumors [8,9,10]. This challenge consists in precisely detecting the tumor zone. Brain tumor segmentation is a major and difficult task in surgical and treatment planning. Segmentation plays a relevant role in the process of medical image analysis and diagnostic assistance. The need to design an automatic segmentation algorithm is indisputable but remains a persistent challenge. In brain imaging, the difficulty of segmentation insists, given the structural complexity of MRI images and the often-insufficient contrast to extract the structure of interest, without any prior knowledge of its shape and location. Segmentation must naturally be reproducible, accurate and reliable.

The segmentation task becomes more complex, the extraction of useful features is a demanding task due to the complex structures of different tissues such as WM, GM and CSF and volume segmentation techniques operates in the spatial domain by classifying voxels. This is done directly instead of applying an intermediate transfer function to their data values. In principle it has a chance to replace the classification step. They are generally either too time-consuming for routine use because they require a massive amount of user interaction, e. g., iterating over all slices and marking the desired structure with high precision, mostly, they do not yield accurate results for volumes with low signal-to-noise ratio [11,12,13].

Brain tumor classification system

Segmentation plays a relevant role in the process of medical image analysis and diagnostic assistance. The need to design an automatic segmentation algorithm is indisputable but remains a persistent challenge. In brain imaging, the difficulty of segmentation insists, given the structural complexity of MRI images and the often-insufficient contrast to extract the structure of interest, without any prior knowledge of its shape and location. Segmentation must naturally be reproducible, accurate and reliable.

Pre-processing

Data preprocessing is a crucial concern in machine learning research. It is performed before the construction of learning models to prepare reliable input data sets. In this work, the experimental images pass through the filter to eliminate the noise then only doing the segmentation and classification. Usually, the background of an image does not contribute any fruitful information at the same time increases the processing time. Hence to improve the processing speed and decrease memory usage, remove background, eyes, scalp, skull, and structures that are not the regions of interest. The Brain Surface Extractor (BSE) algorithm which is used only for MR images can be used for skull removal [15]. The images are filtered using BSE removing irregularities, performing morphological erosions, detecting edges and isolating brain. It also does image masking and surface clean up. In our system, anisotropic filter is used for removing the noise; it eliminated the noise pixel without affect the edge pixel of the image. In this work, skull removed is done by using skull stripping and tumor regions are identified in region props algorithm. Mathematical morphology from the initial processing of binaryimages, and gradually developed to deal with grayscale image. The skull striping processing is given in Eq. (1)

$$ A\circ B=\left( A\varTheta B\right)\oplus B $$
(1)

ROI segmentation

In the past decade, level set method is too cumbersome in computational complexity, it still has a unique advantage: first of all, the coordinate system for the level set method of the given PDE is fixed, so it is a no parameter method, secondly, a topology change may occurs for the curve during the evolution process, for the level set method, the whole curve movement is embedded in the high-dimensional surface motion, so the curve on the topology changes are same embedded in the high-dimensional surface motion, thirdly, the segmentation accuracy of the level set can reach sub-pixel, and the medical images require a class of high precision, so the level set has a wide range of applications [14,15,16].The segmentation results of proposed method is given in Fig. 1.

Fig. 1
figure 1

a Brain Images b Skull Stripped images c WM d GM e CSF

Feature extraction using modified multi-trend structure descriptor

Feature extraction can be defined as the process of transforming or converting an image into its group of features. The different methods employed for feature extraction includes texture features, co-occurrence matrix, Gabor features, wavelet transform based features, decision boundary feature extraction, minimum noise fraction transform, nonparametric weighted feature extraction and spectral mixture analysis. For feature reduction principal component analysis, linear discriminate analysis and independent component analysis are used. Integration of the feature extraction with the feature reduction algorithms leads to accurate systems that use less number of features that can be extracted with less computational cost [17]. The tumor type and grade are the two main factors that decide the features used for brain tumor segmentation. This is because diverse types and grades of tumor exhibit variations in appearance that may be shape, location, regularity, contrast uptake etc. The commonly used features are the image intensities assuming that different tissues have varying gray levels [18,19,20].

First order intensity statistics are also referred to as voxel intensity based features. First order statistical features express the distribution of grey levels within selected regions of interest (ROI), represented by supervoxels in our case. We use 16 features including the average, standard deviation, variance, mean of the absolute deviation, median absolute deviation, coefficient of variance, skewness, kurtosis, maximum, minimum, median and mode of the intensity values, central moments, range, inter quartile range and entropy. Due to the complexity and heterogeneity of tumour tissue, first order intensity features are generally not sufficient for an accurate segmentation. In the proposed algorithm, The texton mask 2 × 2 is move the image from left to right and top to bottom for identify the texton pattern of entire image. Texton mask are labeled as T1, T2, T3, T4, T5, and T6, respectively, the proposed 2 × 2 grid as shown in Fig. 2 and texton calculation process is given in Fig. 3, it is defined as per Eq. (2)

$$ H\left({w}_0\right)=\Big\{\frac{N\left\{T\left({P}_0\right){w}_0\hat{\mkern6mu} T\left({P}_1\right)={w}_i\Big\Vert {P}_i-{P}_0|=1\right\}}{8\overline{N}\left(T\left({P}_0\right)={w}_0\right)} $$
(2)
Fig. 2
figure 2

Texton Mask is a 2 × 2 grid. T1, T2, T3, T4, T5, T6 are Texton elements used to detect Textons in an image

Fig. 3
figure 3

Texton detection using the texton mask

In block counting, the texton image is converted into a number of grids by drawing an imaginary line of equal space and the imaginary lines were drawn horizontally and vertically over the image. The grids are formed to make accurate measurements. Based on the requirement, number of grids can be made. The number of grids commonly made includes 4, 18 and 24 grids. Then count the number of block of the texton image of each intensity value 1 to 255. Also the original image is converted into number of grids, count number of block of the origin image of each intensity value 1 to 255. The original and orientation image block count values are used for tumor classification.

Feature classification

Classification of MR images is an essential process in resolving the human tissues, especially at the time of clinical analysis. The Brain is explicitly complex and mainly it consists of three healthy tissues named as WM, GM and CSF which can be detected using segmentation of the brain MR image and are very important in surgical planning and in diagnosing neurological diseases [21,22,23].

In non linear data, the input space X can be mapped into higher dimensional space ψ to make the feature space become linearly separable. The mapping function ψ should be in accordance with the Mercer’s theorem. It is given in Eq. (3)

$$ K\left(X,{X}_i\right)=\psi {(X)}^t\psi \left({X}_i\right) $$
(3)

Kernel functions can be chosen from the following functions, it is given in Eq. (4),

$$ {\displaystyle \begin{array}{l}\mathrm{Linear}\kern0.17em \mathrm{network}\kern0.17em \mathrm{kernel}\kern0.17em \mathrm{function}\;K\left(X,{X}_i\right)={X}^T{X}_i\\ {}\mathrm{Polynomial}\kern0.17em \mathrm{learning}\kern0.17em \mathrm{machine}\kern0.17em \mathrm{keernel}\kern0.17em \mathrm{function}\;K\left(X,{X}_i\right)={\left(X.{X}_i+1\right)}^h,i=1,2,\dots n\\ {}\mathrm{Radial}\kern0.17em \mathrm{basis}\kern0.17em \mathrm{function}:K\left(X,{X}_i\right)=\exp {\left(-\frac{X-{X}_i}{2{\sigma}^2}\right)}^2,i=1,2,\dots n\end{array}} $$
(4)

Let K1(X, Xi) and K2(X, Xi) be RBF kernels over Ξ × Ξ, Ξ ⊆ Rp, and K3(X, Xi) be a kernel over Rp × Rp.The proposed pair of RBF kernels are designed in Eq. (5)

$$ {\displaystyle \begin{array}{l}K\left(X,{X}_i\right)={K}_1\left(X,{X}_i\right)+{K}_2\left(X,{X}_i\right)=\mathrm{is}\;\mathrm{a}\;\mathrm{kernel}\\ {}K\left(X,{X}_i\right)=\lambda {K}_1\left(X,{X}_i\right)\mathrm{is}\;\mathrm{a}\;\mathrm{kernel},\lambda >0\\ {}K\left(X,{X}_i\right)={K}_1\left(X,{X}_i\right).{K}_2\left(X,{X}_i\right)\mathrm{is}\;\mathrm{a}\;\mathrm{kernel}\end{array}} $$
(5)

Experimental results

For performance evaluation of the proposed algorithm, the experimental data set contains 100 meningioma tumor images and 40 normal images. These images are obtained from a hospital. In this case, 50 normal samples and 80 tumor samples are used as the training set. Success of the MRI image identification is measured due to its sensitivity, specificity, accuracy and coverage which can be explained as per Eq. (6)

$$ {\displaystyle \begin{array}{c} Sensitivity=\frac{Number\kern0.17em of\; TP}{Number\kern0.17em of\; TP+ Number\kern0.17em of\; FN}\\ {} Specificity=\frac{Number\kern0.17em of\; TN}{Number\kern0.17em of\; TP+ Number\kern0.17em of\; FP}\\ {} Accuracy=\frac{Number\kern0.17em of\; TN\; pixels+ Number\kern0.17em of\; TP\; pixels}{Total\kern0.17em Number\kern0.17em of\kern0.17em pixels}\end{array}} $$
(6)

The sensitivity, specificity and accuracy results of various tumor classification methods are shown in Table 1.The investigational results using k-fold cross validation method of sensitivity, specificity and accuracy are given in Figs. 4, 5 and 6. The overall results of feature extraction with different classifiers are shown in Table 2.

Table 1 Sensitivity, specificity and accuracy results of various tumor classification methods
Fig. 4
figure 4

K-fold cross validation results of sensitivity using various methods

Fig. 5
figure 5

K-fold cross validation results of specificity using various methods

Fig. 6
figure 6

K-fold cross validation results of accuracy using various methods

Table 2 Overall results of different classifiers using k-fold method

Conclusion

This paper proposed an excellent and innovative classification of brain image is vital in identifying disorders and treatment planning in the field of medicine. The proposed method consists of four stages. In the first stage, with respect to the cells’ boundary, it is necessary to further processing, which ensures the boundary of some cells is a discrete region. Mathematical Morphology brings a fancy result during the discrete processing. Secondly, the brain MRI is segmented into white matter (WM), gray matter (GM), Cerebrospinal fluid (CSF) and outliers by ordering of observations. In classification, novel hybrid Fuzzy SVM is designed in the classification stage meningioma brain tumor. The proposed method is validated using k-fold cross validation method. The classification accuracy of MM with SVM (MMSVM) is 74.24%, MM with FSVM is 82.67% and MM with RBF is 62.71% and our proposed method MM with Hybrid SVM is 91.64%.