1 Introduction

Medical imaging is an enthusiastic field of research from the last few decades contributing to society in a number of ways. There are various imaging modalities in the medical field, such as MRI, CT scan, endoscopy, and so on. These imaging modalities play a vital role in current medical procedures for research studies, diagnosis, and treatment of multifactorial medical diseases. In the current era, medical imaging plays an important role in the performance of any radiology department. Medical images need image processing techniques such as image enhancement and segmentation [34] to find out diagnostic statistics such as detection of disease or its level of severity. Human brain analysis is one of the hottest research areas for biomedical and computer scientists [16]. The brain is the main organ of human body, protected by a bone called a skull. The average weight of a normal brain is 1300–1500 mg with a volume of 1260 cm3. The human brain consists of 86 billion neurons, blood vessels, and glial. It can be divided into the gray, white, and cerebrospinal fluid. The white matter appears as a pinkish white color and it is covered by gray matter due to the absence of myelin sheath. The color of gray matter appears as a light gray and can be easily distinguished from white matter. The brain in the skull is surrounded by cerebrospinal fluid that is also spread throughout the length of spinal cord. Brain tumor/anomaly is an abnormal growth of tissues. The cells in the living organism die and are replaced with new cells, but when a tumor occurs the cells grow and do not die, threatening life. The tumor can be broadly divided into two classes, benign and malignant, i.e., a benign tumor is a non-cancerous tumor and these are smaller in size, slow in growth, and do not spread to the nearby normal cells. However, malignant tumors are cancerous, large in size, and fast growing.

Magnetic resonance (MR) imaging is the most popular and effective modality for brain analysis. It creates 3-dimensional (3D) DICOM images of the soft tissues. MR imaging machines generate volumetric images (T1W, T2W, FLAIR, and proton density), assisting the radiologists to study human organs in detail. Manual analysis of brain MRI is time-consuming and prone to errors due to the nature of complexity and size of MRI data for each patient. In this context, various state-of-the-art segmentation techniques have been presented; each method carries some advantages along with limitations [11, 22, 23]. A majority of the work in current literature has been performed on a single 2D slice of volumetric images. Segmentation in a single slice in comparison of volumetric data is easier, but results are not satisfactory. The segmentation of tumor is carried out for numerous purposes such as volume calculation, 3D visualization, and classification of a brain tumor [17]. Manual thresholding is one of the most popular methods for the segmentation of DICOM volumetric data [25]. Performance of threshold-based segmentation methods depends on the selection of appropriate threshold value.

Manual selection of the best threshold is very challenging and requires extensive expertise [4]. In this regard, Otsu binarization automatically segments different parts of the human brain and tumor by automatically selecting threshold values [3]. Otsu binarization method is easy to implement but it is not robust to noise and suffers during segmenting tumors having a similar texture to other brain parts. Watershed [28] is another segmentation algorithm that is suitable for segmenting overlapping objects, which applies watershed and gradient magnitude to segment tumors or objects of interest. Watershed method’s overall performance is good, but its results for 3D volumetric segmentation are not satisfactory. Clustering is an unsupervised learning technique in machine learning used to group unlabeled objects with similar properties in a cluster [9]. Among clustering algorithms, K-means is a well-known clustering algorithm that can be used for image segmentation and clustering categorical data [2]. Region growing [10] is also a popular image segmentation method that is based on seed points. A seed point is the starting point from where it starts to grow, and a homogeneity criterion is followed to group the neighboring pixels into the same region. Different seed points for the same region can provide different results. Region growing method is a semi-automatic method for segmentation, where selecting a good seed point is a challenging task. Fuzzy C-mean (FCM) [19] is also a widely used clustering algorithm similar to K-means but FCM is computationally more complex than K-means segmentation [13].

The proposed work is the extension of our MRI analysis methods: prioritization of brain MRI and anisotropic diffusion based brain MRI segmentation [22]. In current work, K-means is used to cluster the region of different tissues containing in DICOM volumetric images, where the value of K represents the number of different brain tissues: tumor skull, white matter, gray matter, and cerebrospinal. Before applying K-means, intensity values of volumetric images are first converted into a one-dimensional array as a pre-processing step. After segmenting the brain into different tissues, classification is performed to analyze the category of each tissue as to whether is infected or not. In our case, the purpose of classification is to develop an efficient system to categorize tumor across different pathological types. BoW features extraction method was originally used for the classification of object category and usually does not give satisfactory results over the images containing geometrical transformation inconsiderable amount, e.g., rotation and translation. MR images contain geometrical transformation in large amount. Thus in the proposed work, BoW is amplified by SURF features for effective classification of a brain tumor for which training images of benign and malignant tumors were obtained along with their ground truth. After segmentation and classification, the volume of the brain is calculated using the information obtained from the DICOM header. Further, the area of the segmented brain and tumor is calculated using the regional properties. In computer graphics volume rendering is a technique of creating 3D models from a series of 2D images. In the proposed framework, marching cube algorithm is used [20] for volume rendering of segmented brain and tumor images as it helps us to visualize the location, shape, and size of the tumor in the brain. The key contributions of the proposed framework are summarized as follows:

  1. 1.

    An efficient framework for region of interest (ROI) segmentation, classification, and visualization is proposed, where features extraction for training and classification is an offline process and can be replaced by any efficient features extraction and classification technique. In addition, the segmentation method can be easily added or removed and ROI can be visualized using any efficient visualization technique replacing marching cube algorithm.

  2. 2.

    A semi-automated, interactive technique is proposed for MR image segmentation which selects the optimum threshold values.

  3. 3.

    The volume of brain and tumor is calculated by retrieving the information of pixel spacing and slice thickness from the DICOM header, the regional properties of the segmented brain and tumor help us to calculate the number of voxels.

  4. 4.

    The BoW feature extraction method is amplified via SURF incorporating its procedure of interest point selection, and then the labelled features are classified into benign or malignant using SVM classifier.

The rest of the paper is organized as follows: Section 2 summarizes the literature review; Section 3 introduces the proposed framework; Section 4 describes the experimental setup and performance evaluation; Section 5 concludes the paper.

2 Literature review

In this section, the literature is covered from a different perspective, i.e., segmentation, classification, and visualization so that readers can easily grip the concepts behind the proposed work. Segmentation techniques with some pre-processing operations are described, followed by classification. The reason is that segmenting ROI on which classification is carried out, is prerequisite not only for classification but also for visualization. Lastly, visualization is briefly presented taking some valuable work from the literature.

In [25], authors presented a very basic and helpful framework for MRI enhancement and segmentation. In a pre-processing step, the image is enhanced using histogram equalization and morphological operations are applied to remove unwanted blobs. The median filter is also applied to remove noise from MRI images. Finally, threshold-based segmentation is applied to detect the tumor. This technique provided better results than semi-automatic and automatic segmentation, however, it is computationally expensive due to manual selection of an appropriate threshold. Zhang et al. presented a concise survey of existing techniques related to brain MRI analysis along with discussing various segmentation algorithms for brain tumor segmentation [34]. There are various threshold-based segmentation methods ranging from manual to automatic thresholding, each having its own pros and cons. For example, Otsu thresholding is a segmentation technique that automatically selects the best threshold value using intra-class variance between foreground pixels and background pixels. Region growing is another well-known segmentation algorithm based on seed point selection. The growth of the seed point is based on homogeneity criteria. This algorithm provides good results, but it is very sensitive to noise, contrast variation, and selection of suitable seed point. Khotanlou et al., [19] proposed fuzzy clustering algorithm for segmenting 3D MR data, which is similar to K-means. Fuzzy segmentation method divides voxel into two classes incorporating a finite number of fuzzy levels for each class. The complexity of fuzzy segmentation method is more than K-means and other segmentation algorithms, making it computationally expensive compared to other methods.

In [10], authors presented brain tumor segmentation scheme that uses region growing algorithm along with gradient and variance, overcoming the challenges of manual thresholding. In this method, the information of edges are preserved, then the mean-variance of the boundary curve is calculated. These two descriptors are used for automatic selection of threshold value, which in turn is by the region grow segmentation algorithm. According to authors, better results for tumor segmentation were achieved using this approach. In [31], authors presented an automatic method that is more accurate in the segmentation of white matter, gray matter, and CSF from 3D MRI images. This method consists of three steps: first histogram based segmentation is performed, then texture features are extracted, and finally, SVM is used for classification. In [29], authors claimed a fully automatic brain tumor segmentation framework for 3D T1W MRI data. They, first normalized Gaussian mixture method to model normal brain and then a 2D fluid vector flow (FVF) algorithm is extended to 3D FVF. This method is tested on a local dataset with satisfactory experimental results for brain tumor segmentation.

In [18], an automatic segmentation technique based on a statistical approach using tissue probability maps is presented that automatically recognizes the class of tumors. The method is tested on two standard brain tumor datasets (i.e., BRATS 2013 and LeaderboardFootnote 1). In [32], the tumor is classified by extracting shape features (that is, eccentricity, solidity, difference area-hull-rectangular, difference area-mass-rectangular, cross-correlation left, and cross-correlation right) along with texture features of the extracted ROI. SVM is trained over features extracted from training images in the previous phase and a class label is assigned to new data (i.e., benign or malignant) while testing it over the previously trained SVM. Authors have claimed 95% accuracy. In [30], the author presented a wavelet-energy based approach for automated classification of MR brain images as normal or abnormal. SVM was used as the classifier, and biogeography-based optimization (BBO) was introduced to optimize the weights of the SVM. The results based on a 5 fold cross-validation showed the performance of the proposed BBO-KSVM was superior to BP-NN, KSVM, and PSO-KSVM in terms of sensitivity and accuracy. Classification performance depends on the selection of suitable features such as GLCM [33], Gabor filter [16], and wavelet transform [2]. SVM is widely used to identify normal and abnormal brain MRI [33]. BoW features extraction method for tumor classification and medical image retrieval [10, 27] provide more robust results. The bow is also very efficient for the organ classification in X-Rays images [10] and for classification of breast tissues in mammogram images [19].

Y. Chen in [7], proposed a technique for performing segmentation and rendering of both the brain and tumor regions. A 3D Bayesian level set method is used to segment brain and tumor from its 3D data. Segmented slices are used by the ray casting algorithm to render 3D models of the brain and tumor. In [8], the author presented a new 3D volume rendering technique, computing volume of brain and tumor from MR and CT images. 3D widgets and volume clipping are combined with volume rendering. 3D widgets are used to calculate the area, distance, and angle of the objects. M. Bozorgi and F. Lindseth in [6] developed a GPU based ray casting volume rendering algorithm in VTK. CPU based ray casting algorithm can produce high-quality 3D images from 2D series, but such algorithms are constrained by time complexity. Rendering time can be reduced using GPU based ray casting algorithm developed in VTK library.Footnote 2 This method is platform independent and can be run over different GPUs. In [1], a GPU based Fourier volume rendering method was presented, which is widely used for 3D reconstruction of medical data. This GPU based Fourier volume rendering technique is faster than spatial domain based rendering algorithms, achieving a speed of 117× faster than CPU.

3 Methodology

The proposed framework consists of four steps: 1) estimation of an efficient threshold for segmentation of brain tissues, 2) volume calculation of the segmented regions of interest, 3) classification of segmented tumor into benign or malignant using SVM classifier over SURF inspired BoW features, and 4) 3D visualization of ROI using marching cube algorithm. For robust segmentation, a semi-automated threshold selection method is presented, producing optimal results for segmenting brain DICOM data. In feature extraction phase, BoW is adopted to extract interest points from images using SURF descriptor and to make a dictionary of the SURF points. SVM is trained for classification. The volume of brain and tumor are calculated, considering the Meta information provided in DICOM header (pixel spacing and slice thickness etc.). The regional properties of the segmented brain and tumor allow calculating the total number of the voxel, which helps in measuring the volume of the brain and tumor. It is important to mention that voxel is a primitive 3D element in MRI and it is calculated in mm3. The last module of the proposed work is 3D visualization. Segmentation is the prerequisite of visualization, hence segmented regions of brain and tumor are imported by the marching cube algorithm to render a 3D model from series of 2D segmented DICOM slices. The overall view of the proposed framework is shown in Fig. 1.

Fig. 1
figure 1

An overview of the proposed computerized decision support system for the analysis and 3D visualization of brain MRI

3.1 Brain and tumor regions segmentation

Segmentation is the process of partitioning a digital image into multiple segments (sets of pixels, also known as super-pixels). The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze. In segmentation, optimal threshold selection is the vital parameter, which is the most challenging and usually time-consuming task. In the proposed method, the input brain MR slice is displayed via GUI component to the user, making five random clicks over both tumor region and non-tumor region. The pixel values of the clicked points are saved in a vector and are utilized to estimate the darkest and brightest threshold of the corresponding tissue (brain or tumor) incorporating minimum and maximum intensities, respectively. However, it is not guaranteed that users’ selected points belong to darkest or brightest regions. To overcome this problem, a tolerance rate is used and its value is added to the maximum threshold value which in turn is then subtracted from the minimum threshold value. Tolerance is an intensity dependent parameter, which is sensitive to the input MR image. It has been observed that tolerance value of ten is the most suitable value for 8-bit MR images (with 0–255 intensity range). Tolerance value increases while dealing with higher intensities ranges and vice versa. However, it can be adjusted according to the underlying intensity levels. For example, tolerance value can be approximately 2000 while working on a 16-bit MR image having intensity in the range 0 to 65,535. In the current scenario, we are mainly focusing on 8-bit MR images, thus the tolerance value is ten. The proposed segmentation method is applied to volumetric DICOM data as shown in Fig. 2.

Fig. 2
figure 2

Semi-automatic intensity-driven and interactive threshold selection method

After segmentation, morphological operations (erosion/opening) are used as post-processing steps to remove irrelevant and noisy objects from segmented brain and tumor as shown in Fig. 3. Morphological operations are based on structuring element (SE). Each voxel value is matched with SE by incrementing the voxel location for the purpose hitting the voxel at the center of SE. 2D SEs are either a square grid of eight neighbor pixels of square shape or a square grid of six neighboring pixels forming a cross shape. 3D SE is similar to 2D with an additional Z-plane as given in Fig. 4. In 2D SE, the center pixel has 4 or 8 neighboring pixels while in 3D, the center voxel may have 6, 18 or 26 neighboring voxels. For instance, if we create a 3D cube filter of ones (3 3 3), the first 3 refers to the number of voxels in X-axis, the second 3 is the number of voxels in Y-axis, and the remaining is for a number of slices in the volumetric data.

Fig. 3
figure 3

a Morphological eroded brain. b Morphological eroded tumor

Fig. 4
figure 4

a 2D structuring elements. b 3D structuring elements

3.2 Segmented object size calculation

Brain and tumor volume can be calculated by computing the tumor area using regional properties of the objects. In order to measure the size of a tumor from MR volumetric data, we need to compute the area of the tumor and brain followed by calculating their volume. In our case, the number of voxels of an object indicates its area. Tumor volume calculation is one of the most important information for radiologists and surgeons. We first calculate brain and tumor area, followed by voxel size calculation as shown in Figs. 5 and 6. Voxel size is calculated in cubic millimeter obtaining pixel spacing in millimeter and slice thickness in millimeter from the DICOM header. Voxel size V, the area of brain VB, and tumor VT are calculated as follows:

$$ {\boldsymbol{V}}_{\boldsymbol{i},\boldsymbol{j},\boldsymbol{k}}= mmPerPixelX\ast mmPerPixelY\ast mmPerPixelZ $$
(1)
$$ {\boldsymbol{V}}_{\boldsymbol{B}}={A}_B\ast {V}_{i,j,k} $$
(2)
$$ {\boldsymbol{V}}_{\boldsymbol{T}}={A}_T\ast {V}_{i,j,k} $$
(3)
Fig. 5
figure 5

Voxel with pixel spacing and slice thickness

Fig. 6
figure 6

Volume calculation of brain and tumor from volumetric data

Where mmPerPixelX, mmPerPixelY and mmPerPixelZ represent millimeter per pixels in X, Y and Z direction, respectively in 3D voxel as shown in Fig. 5.

3.3 Features extraction and brain tumor classification

The World Health Organization (WHO) has made a new tumor classification system in 2016 which is used by most of the medical institutions around the world [21]. This classification of WHO is based on the locality of (body parts) tumor (where it resides) and rate of its growth. According to this classification, there are 120 types of brain tumors either belonging to the benign or malignant category. A benign tumor grows slowly and does not spread to other parts, having very clear edges with a very little effect on the human body. Such types of tumors can be serious if they are located in the brain. Malignant tumors have different structures than benign and are also known as brain cancer. The common symptoms of tumors are hearing loss, dizziness, walking, and balancing problem. Classification is the process to assign a class label to the testing data. The first phase of classification problem is to train the model. The accuracy of a trained model depends on quantity and heterogeneity of training data, features used for classification, and classifier’s kernel function. In our current scenario, classification is performed on segmented tumor regions. Tumor volume is saved into its 2D image slices and used for features extraction and classification purposes. For classification, SURF enhanced BoW features are extracted. The working mechanism of SURF features are similar to SIFT but are faster and robust than SIFT.

SURF algorithm is implemented in three phases. In the first phase, points of interests (PoIs) are selected for which hessian matrix is adopted. In the second phase, local neighborhood descriptors are used to describe pixel intensity distribution in the neighborhood of the PoIs. In the third phase, different features are compared that are obtained from different images and matching pairs. PoIs selection is done using a grid with 8 × 8 spacing. A vector consisting of 32 pixels is created, where each element of the vector corresponds to a square block from where SURF features are extracted. Multiple square blocks are used to extract multi-scale features. PoIs are stored in feature vectors and these features are quantized using k-mean clustering algorithm. By default, the number of clusters used by a bag of feature is five hundred that can be increased or decreased. Visual words are the centers of the clusters and vocabulary is the combination of all visual words. Features in vocabulary are categorized and a visual word is used to represent the category as shown in Fig. 7. An encoding method is used for counting visual words occurrences in an image and a histogram of the image is created.

Fig. 7
figure 7

Feature extraction using BoW

The proposed method uses SVM to classify tumor into benign or malignant. SVM is trained using the error correcting output codes framework and a bag of features are utilized to encode images from the training set into a histogram of visual words. These histograms are then used to train the classifier. Each image from the training dataset is encoded using the encoding scheme of bag of features algorithm. Features from each image are detected, extracted and then a feature-histogram for each training image is created with the help of an approximate nearest neighbor clustering algorithm. The length of the histogram is dependent on the number of visual words and the feature vector created from the histogram. The overall view of the proposed tumor classification is shown in Fig. 8. In this work, SVM selects a hyperplane between two classes of the training data that has maximum margin. Many hyperplanes can be drawn to separate the two classes and SVM selects the optimal hyperplane, which can be defined as follows:

$$ Wx+\mathrm{b}=0 $$
(4)
Fig. 8
figure 8

The proposed brain tumor classification framework

Herein, x is a point on the hyperplane, representing normal to the hyperplane and b is the bias. ||W|| is the mean of the Euclidean. Hyperplane for separating two classes in case of linear separability can be defined as follows:

$$ {wx}_i+\mathrm{b}\ge +1,{\mathrm{y}}_{\mathrm{i}}\kern0.75em =+1 $$
(5)
$$ {wx}_i+\mathrm{b}\le -1,{\mathrm{y}}_{\mathrm{i}}\kern0.75em =-1 $$
(6)
$$ {y}_i\ \left({wx}_i+\mathrm{b}\right)-1\ge 0 $$
(7)

The error correcting output code framework is a multi-class model that reduces three or more classes to binary class. The proposed method uses a coding design known as one vs one. To avoid cluttering, readers are referred to [5, 24] for further details on the binary classification via multi-class model using error correcting output.

3.4 3D reconstruction of brain tumor

3D reconstruction is the transformation of 2D images to a 3D brain view. Quality of the 3D model depends on the number of slices in DICOM series as shown in Fig. 9. For 3D visualization, marching cube algorithm is incorporated using divide and conquer approach for the creation of 3D high-resolution surface. Cubes are created between two adjacent slices [20], where each cube consists of 8 vertices, hence there are 256 ways that a surface can intersect a cube. These 256 cases are reduced to 14 patterns [25] as mentioned in Fig. 10. These 14 patterns are used to calculate the surface intersection x with cube edges. The gradient of cube vertex (i,j,k) can be estimated as follows:

$$ {G}_x\left(i,j,k\right)=\frac{D\left(i+1,j,k\right)-D\left(i-1,j,k\right)}{\Delta x} $$
(8)
$$ {G}_y\left(i,j,k\right)=\frac{D\left(i,j+1,k\right)-D\left(i,j-1,k\right)}{\Delta y} $$
(9)
$$ {G}_z\left(i,j,k\right)=\frac{D\left(i,j,k+1\right)-D\left(i,j,k-1\right)}{\Delta z} $$
(10)
Fig. 9
figure 9

3D visualization flowchart

Fig. 10
figure 10

a A cube and b its two adjacent slices

4 Experimental results and discussion

In order to evaluate the efficiency of the proposed framework, numerous experiments were carried out on different MRI datasets. All the simulations for segmentation, classification, and visualization are implemented using MATLAB 2015. Various standard evaluation metrics were used to analyze the performance of the proposed framework. This section consists of the evaluation of four major parts of the proposed framework, comprehensively assessing each module of the framework.

4.1 Dataset and MRI characteristics

Dataset is obtained from the department of radiology, Lady Reading Hospital PeshawarFootnote 3 (LRH), Pakistan. Images were acquired through TOSHIBA 1.5 Tesla machine with resolution 640 × 640 × 19 with a bit-depth of 8. The variance in a number of slices, pixel spacing and slice thickness provided by TOSHIBA 1.5 Tesla machine is illustrated in Table 1. Radiologists select appropriate values for parameters mentioned in Table 1, considering the nature of disease under diagnosis. To evaluate the proposed framework, 1100 scans having 0.3875 × 0.3875 × 6 mm3 pixels spacing (width and height) and slice thickness, respectively, as mentioned in the first row in Table 1.

Table 1 Example brain and tumor volume statistics and voxel information

4.2 Evaluation of the proposed 3d segmentation method

A subjective performance evaluation of the proposed segmentation method is performed using sensitivity, specificity, and F-measure as given:

$$ \mathrm{Sensitivity}=\frac{TP}{TP+ FN\ } $$
(11)
$$ \mathrm{Specificity}=\frac{TN}{TN+ FN\ } $$
(12)
$$ \mathrm{FNR}=\frac{\mathrm{FN}\kern0.5em }{TP+ FN\ } $$
(13)
$$ \mathrm{FPR}=\frac{FP\ }{TN+ FP\ } $$
(14)
$$ \mathrm{F}\hbox{-} \mathrm{Measure}={2}^{\ast}\frac{FPR\ast FNR\kern0.5em }{FPR+ FNR\kern0.5em } $$
(15)

Herein, true positive (TP) is the number of voxels in the MR image correctly identified as a tumor voxel and false positive (FP) is the number of non-interesting region voxels that are incorrectly recognized as tumor voxels. True negative (TN) presents the number of non-interested voxels which are considered correct as non-interesting voxels. False negative (FN) is the number of voxels that are incorrectly identified as non-interesting ROI voxels. F-Measure is the weighted harmonic mean of false positive rate (FPR) and false negative rate (FNR) which provides a better understanding of the segmentation results. Table 2 shows that F-measure of the proposed segmentation technique is 98%. This indicates that the proposed segmentation results are accurate, and closer to manually segmented brain tumors in MR images. The proposed 3D segmentation algorithm creates a set of solutions over the single result to overcome the trap of local optimum. Figure 11 shows visual results of the proposed 3D segmentation technique.

Table 2 Performance comparison of the proposed segmentation method with other three state-of-art techniques using a baseline (ground truth) provided by radiologists
Fig. 11
figure 11

Visual results of the proposed brain and tumor segmentation method on a sequence of MR scans, showing brain and tumor regions detected from slice to slice

4.3 Analysis of tumor volume calculation

In a series of DICOM images, total voxels consist of the brain, tumor, vessels, skulls, and background voxels of the volumetric data. Mean intensity is the average voxel intensity of each volumetric data. The pixel spacing is the length of a voxel in X-axis and Y-axis in millimeter while the slice thickness is the length of Z-axis of the voxel. The voxel information and volume statistics for MR scan with resolution 640 × 640 × 19 (8 bit-depths) are given in Table 3.

Table 3 Brain and tumor volume calculation

4.4 Comparative analysis of the proposed classifier

Performance of the proposed classifier is measured in terms of confusion matrix, sensitivity, specificity, accuracy, and mean squared error. It can be seen from Table 4 that SVM classifier achieves a minimum mean squared error of 0.09 in comparison with other classification models. It also possesses the highest level of accuracy, proving its effectiveness and reliability. The BoW features amplified via SURF with SVM classifier achieves an accuracy of 99% for the entire test set. For the evaluation of the proposed classifier, we considered the same dataset that is used for the brain and tumor segmentation evaluation. The proposed feature extraction method enhances the performance of SVM classifier which is the most feasible learning model for feature selection over a higher dimension space. Table 4 shows the performance analysis which highlights that the proposed approach achieves better accuracy in comparison with other classifiers [12, 15, 26]. The experimental results show that SVM combined with BoW features yields higher performance in feature selection, optimization, and tumor classification.

Table 4 Performance analysis of the proposed method in comparison with three other state-of-the-art classifiers, BPN [15], KNN [12], and Hybrid RGSA [26]

Under the supervision of the radiologists, underlying brain MR images dataset was manually labeled as malignant and benign. This ground truth is used for the training of SVM classifier and classification performance is evaluated using the testing dataset which consists of images with a coronal, sagittal, and axial view. Each MR series is confirmed by obtaining the biopsy reports. Cases obtained without biopsy reports were not included in the training dataset. The training dataset was divided into training and testing using cross-validation of 70% training and 30% for testing as given in Table 5. As the proposed system is based on k-mean clustering with SVM classification followed by volume rendering based 3D visualization. The computational complexities of these approaches are O (kn), O (n^3) and O (n^2) respectively. Where k represents number of clusters and n represented number of samples or instances. The overall complexity of the proposed system will be a linear combination of all the aforementioned complexities.

Table 5 Performance results with different ranges of cross-validation for the proposed classification method

4.5 Quantitative evaluation of the brain tumor 3D visualization

3D visualization model of the brain tumor rendered from MR images is constructed from [14, 20]. Five sample cases mentioned in Table 6. These models were evaluated by five radiologists from different hospitals, having an average experience of more than 10 years in their respective fields. Prior to evaluation, radiologists were briefed about the system and were asked to rate the quality of visualization in percentage, where low percentage means low quality and vice versa. During analysis and discussion with radiologists, we reached to the conclusion that high-resolution (that is, number of voxels per mm) and number of slices are directly proportional to the quality of 3D-visualization in terms of clear structural view and volume of the tumor in the brain. The intuition taken from the analysis and rating of the radiologists are given in Table 7. The 3D visualization models of the proposed brain tumor were shown in Fig. 12. Each case was rated by five different radiologists. The average rating for case-1, case-2, case-3, case-4, and case-5 are 97.40, 94.40, 81.8, 98.4, and 88.4%, respectively, which are also shown in Table 8.

Table 6 Brain tumor statistics and 3D visualization accuracy
Table 7 Radiologist list
Fig. 12
figure 12

Sample views of the proposed 3D visualization model for five different patients

Table 8 Radiologist and their rating for visualization

4.6 Case study: a clinical evaluation of the proposed system

Accurate detection and measurement of tumor size and its changes over time are of crucial importance for diagnosis, treatment planning, and monitoring of response to oncologic therapy for brain tumors. Brain MRI analysis is time-consuming and prone to errors due to increased measurement variability of tumor size, sensitivity to MR imaging quality, and difficulties in assessing complex and irregularly shaped brain lesions. In this context, the proposed diagnostic framework is evaluated on various patients, constituting a possible solution to the conventional MR analysis issues. In this study, tumor segmentation, volume estimation, and interactive 3D visualization results of the proposed framework were compared with manually acquired ground truth data of two expert raters for a glioblastoma (GBM) patient. GBM, also known as Grade IV Astrocytoma, is the most common and most aggressive malignant primary brain tumor in humans.

A total of 256 different MRI images for each patient were analyzed. A comparison was performed between the proposed framework, two state-of-the-art MRI analysis tools including ITK-SNAPFootnote 4 and 3D-Doctor,Footnote 5 and manual MRI analysis for evaluating the pros and cons of the proposed method for segmentation, classification, volume estimation, and 3D visualization. An overview of the questionnaires asked during the case study is presented in Tables 9 and 10. The studies were approved by the Local Research Ethics Commission and all methods were carried out in accordance with the approved guidelines. All patients provided written informed consent. Both raters adhered to a predefined segmentation protocol. The radiologists were given the questionnaire and different features of the proposed system were explained to them. The radiologists used the proposed system 3~4 time prior to the case study. At the start of each session, they were given one case, having 200~300 MR scans. Cases were selected to evaluate the abilities of the proposed system and to point out its weakness.

Table 9 Clinical comparative analysis of the proposed computerized decision support system with two state-of-the-art tools for brain MRI analysis
Table 10 Usability testing questionnaire for the overall subjective evaluation of the proposed MRI analysis system

In Table 9, we examined four features of the proposed system: classification, segmentation, volume estimation, and visualization; these are important factors that affect the radiologists’ ability to diagnose brain cancer. We collected radiologist responses that how a certain feature of the proposed system would facilitate medical specialist in diagnosis and treatment planning. Table 9 summarizes the two radiologists’ ratings of the proposed system, ITK-SNAP, and 3D-Doctor in different perspectives. It has been observed that the proposed framework performs tumor detection, its volume estimation, and 3D visualization accurately with highly similar scores as achieved by other two MRI analysis tools. Moreover, the proposed method provides two advantages: 1) facilitates radiologist for automatic classification of huge MRI data into positive or negative cancer cases, 2) provides an open-source platform for MRI analysis where researchers can contribute in further enhancing the current framework, making it freely available for underdeveloped countries.

Software applications in the computer industry routinely undergo some type of formal usability testing. This evaluation proves important, particularly in medicine where it is applied directly to humans, making it more sensitive and highly concerned for different stakeholders. Table 10 provides usability testing questionnaire, findings, and ratings of two radiologists for the underlying proposed framework. This usability test is performed to discover the good and bad aspects of the proposed system for the purposes of design refinement and validation. It can be seen from Table 10 that the responses to the questionnaire gave positive findings and high rating scores in the perspective of usability. These studies on numerous patients found a good agreement between manual and the proposed system generated results, improving accuracy in therapy response assessment as well as reducing diagnosis time.

5 Conclusion

In this paper, an efficient framework for analysis and visualization of brain MRI is presented. Initially, a semi-automated interactive 3D segmentation method is presented which efficiently segments brain and tumor regions from underlying MR slices. This segmentation method is accurate and computationally efficient in selecting an optimal threshold value for segmentation of brain and tumor. The bow is used to extract diagnostically relevant SURF features from images and SVM is used for classification. The proposed classification model achieves high accuracy for the classification of a malignant and benign tumor as compared to other state-of-the-art methods. Finally, segmented regions are rendered using marching cube volume rendering algorithm. The marching cube method provides better rendering results and it is fast in comparison with ray casting rendering algorithm. The proposed framework efficiently performs all the important processing (with minor user intervention) that is applied to biomedical imaging and have potential applications in the field of neuroimaging. Each feature of the proposed system is rigorously tested both quantitatively and qualitatively. Experimental analysis validates the efficiency of the underlying system.

The proposed framework will be extended for further classification of malignant and benign brain tumors into sub-categories, ranging from Grade I (Pilocytic Astrocytoma) to Grade IV (Glioblastoma). This will help radiologists to analyze the brain MRI in a more deep level, helping accurate diagnosis and medication. One of the possible solutions in this context could be the adoption of multi-class ensemble classifiers.