Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

24 December 2025

24 Pages

Binary Classification of Brain MR Images for Meningioma Detection

and
Department of Electrical and Electronics Engineering, Faculty of Engineering and Natural Sciences, Hitit University, Çorum 19030, Türkiye
*
Author to whom correspondence should be addressed.
This article belongs to the Section Biomedical Engineering

Abstract

Meningiomas are the most common primary brain tumors in the central nervous system. Although numerous studies in the literature have addressed multiclass brain tumor classification that includes the meningioma class, the method proposed in this study aims to improve meningioma detection performance by employing binary classification instead of multiclass classification. The proposed method enhances classification performance by implementing a three-step classification process. This study utilizes the Nickparvar dataset, which contains brain Magnetic Resonance (MR) images of meningioma, other tumor types, and tumor-free cases. We employ k-means clustering for tumor segmentation, GLCM and contour features for feature extraction, and CatBoost for classification (meningioma vs. non-meningioma). The performance of the proposed method is evaluated using accuracy, precision, recall, negative predictive value, F1-score, and specificity, achieving values of 0.96, 0.93, 0.89, 0.97, 0.91, and 0.98, respectively. Although deep learning methods demonstrate high performance, machine learning approaches require less training data and computational resources. Therefore, machine learning methods represent a more suitable choice for clinical environments with limited hardware capabilities. The results are comparable to those of recent deep learning studies, indicating that the proposed method achieves performance close to deep learning approaches while retaining the advantages of machine learning for meningioma detection.

1. Introduction

Meningiomas are the most common intracranial tumors and constitute more than one-third of all primary central nervous system (CNS) tumors [1]. Although generally considered benign, these dural-based tumors can present with a variety of non-specific, location-related symptoms that may lead to morbidity [1]. Because meningiomas are slow-growing, they may remain asymptomatic until they reach a certain size and compress adjacent tissues, or their mild symptoms may result in misdiagnosis as another condition. Treatment for meningioma tumors involves surgery, radiation therapy, or patient follow-up. An accurate preoperative diagnosis is essential to ensure the most appropriate treatment strategy. However, meningioma tumors may resemble some pituitary tumors and gliomas. For these reasons, accurate diagnosis of meningiomas is crucial. Treatment with early and accurate diagnosis of brain tumors offers patients a better quality of life and prevents tumor-related deaths. Machine learning and its variant, deep learning, are key enablers of artificial intelligence, enabling discriminative feature extraction that turns images into useful information [2]. To help physicians diagnose brain tumors, there are many studies in the literature that have been developed using machine learning and deep learning methods to segment and classify tumors from brain Magnetic Resonance (MR) images.
Deep learning methods demonstrated remarkable performance in the classification of brain tumors. Reyes and Sánchez [3] classified tumors in brain MR images using various Convolutional Neural Network (CNN) architectures.
Aamir et al. [4] improved the diagnostic accuracy of brain tumors by optimizing CNN’s fine-tuning parameters in their proposed model.
Özkaraca et al. [5] classified brain MR images as meningioma, glioma, pituitary, and tumor-free by using a dataset that included a large number of images in the training phase. In their study, they developed a CNN-based model with a relatively deep architecture. When they compared their proposed deep learning model with well-known transfer learning methods, they achieved superior performance. However, the most significant disadvantage of their approach is the long processing time.
Das et al. [6] proposed an image segmentation method using a very deep transfer learning CNN model (VGG-16) with Compute Unified Device Architecture (CUDA) optimization for real-time meningioma tumor diagnosis in brain MR images. Their approach achieved a remarkably high accuracy. In their study, they used 264 3D FLAIR sMR images belonging to three classes: meningioma, tuberculoma, and normal. Fourteen images were used for training, and the remaining ones were allocated for testing. The limited number of images used in the study is attributed to the high computational cost of VGGNet, which requires several days of training even on an NVIDIA GPU.
Qureshi et al. [7] aimed to classify brain tumors in real time with high accuracy and minimal time. They proposed an Ultra-Lightweight deep learning framework for feature extraction. Their proposed hybrid feature space achieved high prediction accuracy and a low false-negative rate, resulting in classification using a Support Vector Machine (SVM). However, a drawback of this study is the need for a general clinical trial.
Nassar et al. [8] classified T1W-CE brain MR images of meningioma, glioma, and pituitary tumors with a high accuracy rate of 99.31% by using minimal preprocessing and applying the concept of majority voting to the prediction outputs of five different CNN models. A limitation of this study is that meningioma had the fewest images in the dataset, indicating that this class requires substantially more patient data.
Deep learning methods, despite their high performance, have several disadvantages. In contrast, machine learning approaches offer advantages in certain scenarios, as they typically require less computational hardware, involve fewer parameters to tune, and have a simpler structure for output interpretation [9].
Conventional methods, such as thresholding and region growing, are commonly used for tumor segmentation in brain MR imaging. In addition, supervised methods such as SVM, K-Nearest Neighbors (KNN), Random Forests (RF), and Artificial Neural Networks (ANN); clustering-based methods such as k-means and Fuzzy C-Means (FCM); and unsupervised methods such as active contour models have also been widely employed.
Shaker et al. [10] conducted the first study in the literature that applied bag of features (BOF) and Histogram of Oriented Gradients (HOG) approaches for the classification of MR brain tumor images using machine learning methods. In their study, cubic SVM, fine KNN, fine Decision Tree, and kernel Naive Bayes classifiers were employed. Among the classifiers using the HOG feature extraction method, the fine KNN achieved the highest accuracy. The fine Decision Tree, on the other hand, yielded the shortest computation time.
There are several studies in the literature that compare the performance of machine learning methods such as SVM, KNN, Decision Tree, Naive Bayes, and Random Forest for brain tumor classification.
Gupta et al. [11] achieved accurate and rapid diagnosis of cerebral tumors using Fluid-Attenuated Inversion Recovery (FLAIR) weighting. They performed feature extraction using Discrete Wavelet Transform (DWT) and feature selection using Principal Component Analysis (PCA). The images were classified using SVM, k-NN, Classification and Regression Tree (CART), and RF. A limitation of this study was its inability to accurately classify tumors located very close to the scalp.
Jha et al. [12] used the eXtreme Gradient Boosting (XGBoost) method to classify brain MR images as normal, glioma, meningioma, and pituitary tumors. The training images in the dataset were augmented using the conditional Generative Adversarial Network (cGAN). They classified the test images using the XGBoost method by extracting deep features based on two-dimensional fractional Fourier transform (2D-FrFT) and geometric features from the training images.
Shilaskar et al. [13] extracted the features from brain MR images using the HOG method after noise elimination in the preprocessing stage of their proposed tumor detection and classification approach. They evaluated the classification performance of five machine learning methods: SVM, Gradient Boost, XGBoost, KNN, and Logistic Regression. Among the methods, they observed that XGBoost achieved the highest classification performance with the highest accuracy rate.
Ayadi et al. [14] proposed a technique based on multiclass classification to distinguish glioma, pituitary, and meningioma tumors. First, the brain MR images were enhanced through normalization, and then DSURF and HOG features were extracted. The final classification was performed using the linear kernel SVM.
Kang et al. [15] used deep features obtained from pre-trained deep convolutional neural networks and employed machine learning classifiers to classify brain MR images as normal and tumorous, and further as normal, glioma, meningioma, and pituitary tumors. They demonstrated that the RBF kernel SVM outperformed the other machine learning classifiers in most cases. Although the proposed method achieved high performance, its size needs to be reduced for application in real-time diagnostic systems.
Srinivasa Reddy and Chenna Reddy [16] proposed an approach for the detection and classification of brain tumors by performing manual skull stripping and noise removal using a median filter in the preprocessing phase, followed by segmentation with a modified region magnification method. They selected the best features from Gray-Level Co-Occurrence Matrix (GLCM)-based tissue features with the Grasshopper Optimization Algorithm (GOA) and classified tumor types with the Adaptive Support Vector Machine (ASVM).
Recent studies have demonstrated the continued relevance of classical machine learning and hybrid approaches in brain tumor classification from MR imaging, particularly in situations where computational efficiency, interpretability, and data limitations are critical. Adamu et al. [17] proposed a hybrid framework that combines MobileNetV2 for feature extraction with an SVM classifier. While deep feature extraction was employed, the use of a classical classifier allowed for lower computational cost and greater interpretability, achieving high diagnostic accuracy for multiple tumor types, including meningiomas. Santana et al. [18] systematically reviewed machine learning approaches for brain tumor classification, emphasizing that texture-based and classical methods consistently achieve high performance and can complement deep learning pipelines, especially in datasets with limited sample sizes.
Furthermore, recent analyses have highlighted that classical and hybrid methods often outperform deep learning models in terms of computational efficiency, model transparency, and robustness to small or imbalanced datasets [19]. Multi-class MR imaging classification studies have shown that integrating deep features with classical classifiers can improve predictive performance without incurring the heavy computational costs typically associated with fully deep learning-based frameworks [20]. These findings underscore the rationale for adopting classical machine learning methods in this study, particularly for the detection of meningioma tumors, where rapid, interpretable, and reliable classification is crucial for clinical workflows.
In our study, we develop a method to detect tumors belonging to the meningioma class from brain MR images containing tumors of various classes using a three-step binary classification. Publicly available datasets suffer from class imbalance; moreover, the number of images is limited, and the images are not comprehensive. Some studies in the literature have applied image augmentation techniques to overcome these issues. In this study, we augment the GLCM features obtained before segmentation, and the GLCM and contour features obtained after segmentation, using BorderlineSMOTE. Combining the features of images from the three classes, excluding meningioma, into a single class yields more data than using a single class. Furthermore, collecting the image features from all three classes in a single file results in a more diverse dataset. Conversely, the minority features of the meningioma class are also augmented with BorderlineSMOTE. This explains our goal of binary classification rather than multiple classification. In routine neuroradiology practice, rapidly determining whether a brain MR image contains a meningioma is a clinically relevant question. Our binary classifier categorizes MR images as “meningioma” or “non-meningioma,” which can help prioritize suspected cases and support less experienced radiologists. This may accelerate workflow in high-volume centers and potentially reduce the risk of missing tumors. However, these findings are preliminary and limited by the current dataset and methodological constraints. Therefore, the potential clinical applicability should be interpreted cautiously, and further validation on larger and more diverse datasets is required before clinical deployment.

2. Materials and Methods

In this study, the RGB training images are converted to gray-level and resized, then GLCM features are extracted and used to train a CatBoost classifier. First, NLM filter is applied to the training images belonging to the meningioma class; then, the images are segmented using the k-means clustering method, and the cluster numbers that provide the tumor borders and the clusters in which the tumors are located are determined. New images are created from the regions in the cluster where the tumor is located, and the features of these images are extracted using the GLCM method. These data are trained using the CatBoost method. In addition, features are obtained from the coordinates of the segmented regions and the contours of the head. These data are trained with the CatBoost method. Test images are converted from RGB to gray level and resized. Then, GLCM features are extracted from the image and classified using CatBoost. If the prediction result is one, the NLM filter is first applied to the image, and the image is then segmented using k-means clustering. According to the classification steps in the proposed method, the features of the test images are classified as meningioma or non-meningioma using the CatBoost algorithm until the tumor is found.

2.1. Dataset Overview

First, the public Nickparvar dataset [21], which combines the Figshare, Sartaj, and Br35H datasets, is obtained from Kaggle. This dataset consists of 7023 brain MR images (axial, sagittal, coronal), all in .jpg format. Among these, 1645 images belong to the meningioma class, as illustrated in Figure 1, while the remaining 5378 images correspond to other tumor types or non-tumor cases, as shown in Figure 2. Additionally, the dataset is divided into two subsets: training and test. Among the 1645 meningioma images, 1339 are allocated to the training set and 306 to the test set. Similarly, of the 5378 non-meningioma images, 4373 are assigned to the training set and 1005 to the test set.
Figure 1. MR images of the brain with meningioma tumor [21].
Figure 2. MR images of the brain with non-meningioma tumors [21].

2.2. K-Means Clustering

The k-means clustering is one of the most widely used methods for segmenting suspected brain tumor regions in MR images [22]. It is an unsupervised machine learning method used to split data into k clusters. The general steps of the k-means clustering method are as follows:
  • The number of clusters (k) is determined.
  • k cluster centers are randomly selected.
  • The distances of the data to be clustered to the cluster centers are calculated.
  • Each data point is assigned to the cluster of the nearest center.
  • In each cluster, the new center of data is calculated.
  • Steps 3, 4, and 5 are repeated until the maximum number of iterations is reached, or until the cluster assignments do not change.
In this study, in step 2, instead of randomly selecting the cluster centers, the k-means++ method is used. Because the selected starting points must be far apart, clustering may fail when the points are close to each other. Randomly selected center points cannot be controlled; therefore, the k-means++ method is preferred.
  • The first center is chosen randomly.
  • The Euclidean distances between this center and the data to be clustered are calculated. The point farthest from the first center point becomes the second center point.
  • Each data point is associated with the nearest center point, and clusters are created.
  • The point farthest from its own cluster center becomes the next cluster center.
  • Steps 3 and 4 are repeated until the k center is found.

2.3. GLCM

GLCM [23] is a texture-based feature extraction method. As shown in Figure 3a, in a gray level image, a matrix is constructed by counting how many times the intensity value of a pixel co-occurs with the intensity value of its neighboring pixels at a certain distance and at a certain angle (0, π/4, π/2, 3π/4), as illustrated in Figure 3b. Then, the values in Equations (1)–(6) are computed from this matrix.
C o n t r a s t = ∑ i = 0 N − 1 ∑ j = 0 N − 1 i − j 2 P ( i , j )
H o m o g e n e i t y = ∑ i = 0 N − 1 ∑ j = 0 N − 1 P i , j 1 + i − j 2
D i s s i m i l a r i t y = ∑ i = 0 N − 1 ∑ j = 0 N − 1 P i , j   i − j
A S M = ∑ i = 0 N − 1 ∑ j = 0 N − 1 P i , j 2
E n e r g y = ∑ i = 0 N − 1 ∑ j = 0 N − 1 P i , j 2
C o r r e l a t i o n = ∑ i = 0 N − 1 ∑ j = 0 N − 1 i − μ i j − μ j P i , j ( σ i ) ( σ j )
where i   and j   denote co-occurrence indices. P i , j represents the element of the co-occurrence matrix at position i , j . μ i and μ j are the average row and column weights of the co-occurrence matrix, respectively, while σ i and σ j denote their corresponding standard deviations.
Figure 3. GLCM: (a) construction of a GLCM from a gray-level image, (b) angle values used [24].

2.4. NLM Filter

MR images are adversely affected by noise originating from the human body and the MR system. Rician noise is unique to MR imaging, and researchers have developed several filtering algorithms to reduce this noise. Pal et al. [25] proposed a moment-based Rician noise reduction algorithm in anisotropic diffusion filtering for MR images. Chaudhari and Kulkarni [26] developed a Bayesian filtering-based restoration method for removing Rician noise from MR images. Akar [27], and Riji et al. [28] used the Bilateral Filter algorithm in their study.
Singh and Kaur [29], Yang et al. [30], and Chen et al. [31] developed various Non Local Means (NLM) algorithms to reduce Rician noise in brain MR images. Altıok and Güngör [32] objectively and subjectively evaluated the performance of BF and NLM filters for filtering brain MR images affected by Rician noise and showed that the NLM filter is more effective than BF in reducing Rician noise, whereas BF is more advantageous than the NLM filter in terms of processing time.
The working principle of the NLM filter [33] is illustrated in Figure 4. The red square represents the search window. The blue squares denote the similarity windows, while the orange and green regions within these blue patches are pixels. Similarity between patches is measured using the weighted Euclidean distance. Weights are computed for each pixel based on the similarity between the patches, and the pixel intensities are averaged using these weights.
Figure 4. Working principle of the NLM filter.

2.5. CatBoost

CatBoost [34] is an ensemble learning method based on the gradient boosting method that operates on decision trees. It is a high-performance classification algorithm.
After the first decision tree is trained with the data, the errors between the predicted and the actual values are calculated. A second decision tree is then constructed to correct the errors made by training on the errors of the first tree. This process continues until the predefined number of iterations is reached.

2.6. Borderline SMOTE

In machine learning, an imbalanced dataset occurs when the number of data points in one class is significantly greater than that in the other class. This imbalance can lead to misclassification problems. SMOTE [35] generates synthetic data from the minority class, making the number of data in the minority class equal to that in the majority class. However, minority class samples located near the border between the majority and minority classes are difficult to classify. Borderline SMOTE is developed to address this issue. Borderline SMOTE identifies minority class samples near the border and finds their nearest neighbors. It generates synthetic data by interpolating between the minority samples at the border and their nearest neighbors.

2.7. Feature Extraction from Training Images

The training images are converted from RGB to gray level and uniformly resized to 512 × 512. Then, the features of the images are extracted using the GLCM algorithm. The angle values used in the GLCM algorithm are 0, π/4, π/2, 3π/4, and the distance values range from 1 to 150. A total of 3600 features are obtained by extracting six features, namely, contrast, homogeneity, dissimilarity, angular second moment (ASM), energy, and correlation, for each distance and angle value, and a CSV file (csv1) is created with these features. The features of training images with meningioma tumors are labeled as 1, whereas those of non-meningioma training images are labeled as 0.
The gray-level training images of the meningioma class are first filtered using the NLM filter. The NLM filter parameters are set as follows: h = 0.6 × sigma_est, sigma = sigma_est, fast_mode = True, patch_size = 5, patch_distance = 6. Here, sigma_est represents the noise following the Gaussian distribution in the image, and h controls the decay in patch weights depending on the distance between patches. Then, for each image, one of the clusters (k) 3, 4, 5, 6, 7, 8 that best reveals the boundaries of the tumor is selected, and the image is divided by k-means clustering. For example, when the NLM filter is applied to the gray-level brain MR image of the meningioma class in Figure 5, the image in Figure 6 is obtained. When the image in Figure 6 is divided by k-means clustering, the images in Figure 7 are obtained.
Figure 5. Gray-level MR image with meningioma tumor.
Figure 6. NLM-filtered image.
Figure 7. Segmentation results of the image belonging to the meningioma class with different cluster numbers (k) using k-means clustering: (a) k = 3; (b) k = 4; (c) k = 5; (d) k = 6; (e) k = 7; (f) k = 8.
As shown in Figure 7, the tumor boundaries for the image in Figure 5 are obtained when the number of clusters is 4. The cluster centers are then computed and ordered from smallest to largest to determine the cluster in which the tumor is located. In Figure 7b, the cluster center values are 0.00737431, 0.27774024, 0.35764148, and 0.54814455. The tumor corresponds to the cluster with a center value of 0.35764148 (the third cluster), and all pixels in the regions shown in green in the image have this value. Table 1 shows the number of clusters into which the meningioma training images are divided and indicates the cluster in which the tumor is located when the cluster centers are ordered from smallest to largest.
Table 1. Number of clusters used in k-means clustering and the corresponding cluster containing the tumor.
To filter the cluster of the tumor from the images segmented by k-means clustering, thresholding is applied to the segmented image, as shown in Equation (7).
g x , y = 1 ,               f ( x , y ) = T 0 ,               o t h e r w i s e
where T is the center value of the cluster in which the tumor is located, f is the segmented image, and g is the thresholded segmented image. When the image in Figure 7b is thresholded, the image in Figure 8 is obtained. In this image, white regions correspond to pixels with a value of 1, whereas black regions correspond to pixels with a value of 0. Subsequently, each white region in Figure 8 is labeled with a number, resulting in the image shown in Figure 9. The pixel values for each region in this image are equal to the number it is labeled with.
Figure 8. Thresholded segmented image.
Figure 9. Labeled image.
The mask image in Figure 10, which is the same size as the gray level input image and has all zero pixels, is created, and each region in Figure 9 is filtered with the mask image as described in Equation (8) to obtain the images in Figure 11.
t x , y = 1 ,               l ( x , y ) = j 0 ,               o t h e r w i s e
where l is the labeled image, t is the thresholded label region image, and j is the label number (0 < j ≤ label number).
Figure 10. Mask image.
Figure 11. Thresholded label region images: (a) Region 1; (b) Region 2.
The labeled image in Figure 9 has six regions, and when each region is filtered, six images are obtained, as illustrated in Figure 11a,b.
The thresholded label region images in Figure 11 are filled to obtain the filled images in Figure 12.
Figure 12. Filled images: (a) Region 1; (b) Region 2.
Then, the filled images in Figure 12 are multiplied pixel by pixel with the gray-level input image in Figure 5, as shown in Equation (9), to obtain the output images in Figure 13.
o x , y = d x , y ∗ i x , y
where d is the filled image, i is the gray-level input image, and o is the output image.
Figure 13. Output images: (a) Region 1; (b) Region 2.
Then, the features of the output images are extracted using the GLCM algorithm. The angle values used in the GLCM algorithm are 0, π/4, π/2, and 3π/4, and the distance values range from 1 to 10. A total of 240 features are obtained by extracting six features, namely, contrast, homogeneity, dissimilarity, ASM, energy and correlation, for each distance and angle value, and a single csv13 file is created for the cluster values listed in Table 1. Features of meningioma tumor output images are labeled with 1, and features of non-meningioma output images are labeled with 0.
In addition to the features extracted by the GLCM algorithm, new features are created from the coordinates of the meningioma tumor location in the brain MR image and the distances between these coordinates. For this purpose, the image in Figure 14a is obtained by selecting the number of clusters 2 for the gray-level image in Figure 5 and applying thresholding using k-means clustering. Then, as shown in Figure 14b, the largest contour is found in the image in Figure 14a, i.e., the circumference of the head, and the largest contour is found for each of the thresholded label region images in Figure 11. Subsequently, as illustrated in Figure 14c, the flat bounding rectangles of the maximum contours are drawn, and the corner coordinates of the rectangles are found, as shown in Figure 14d. Features are then obtained from these coordinates and from the distances between them. These features are X, X + W, Y, Y + H, x, x + w, y, y + h, x − X, X + W − x, x + w − X, X + W − x − w, y − Y, Y + H − y, y + h − Y, and Y + H − y − h.
Figure 14. Obtaining contour features from images: (a) Thresholded gray level image; (b) Finding maximum contours; (c) Drawing flat bounding rectangles of maximum contours; (d) Finding the coordinates of flat bounding rectangles.
The process of extracting features from training images is shown in Figure 15.
Figure 15. Extracting features from training images.

2.8. Training

In this study, for use in the first classification stage, the csv1 file, created using GLCM features extracted from gray-level training images, is trained using the CatBoost algorithm. For use in the second classification stage, the CatBoost algorithm is used to train the csv2 to csv12 files, which are generated from contour features extracted from the output images obtained after segmenting the meningioma training images. For use in the third classification stage, the CatBoost algorithm is used to train the csv13 file, which is generated from GLCM features extracted from the output images obtained after segmenting the meningioma training images. As shown in Figure 16, the hyperparameter tuning of all CatBoost classifiers is performed using the FLAML AutoML algorithm, and as a result of the hyperparameter tuning, the parameters shown in Table 2 are obtained for all CatBoost classifiers. As shown in Figure 16, BorderlineSMOTE is applied to all training data prior to both the hyperparameter tuning of the CatBoost classifiers and the training phase, as illustrated in Figure 17, since all csv files contain imbalanced data, with fewer data labeled as 1 than as 0. Table 3 shows the data counts before and after BorderlineSMOTE is applied to the training data in the csv files. BorderlineSMOTE is applied exclusively to the training data after the train-test split. The test set is kept completely untouched and is not subjected to any form of oversampling or data augmentation.
Figure 16. Applying Borderline SMOTE to imbalanced training data before hyperparameter tuning.
Table 2. CatBoost hyperparameters for all csv files.
Figure 17. Applying Borderline SMOTE to the imbalanced training data before training.
Table 3. Applying Borderline SMOTE to imbalanced training data.

2.9. Test

As shown in Figure 18 and Figure 19, the test set consisting of 306 meningioma and 1005 non-meningioma tumor images is evaluated using the interface developed in Python 3.11. On this designed screen, the system is first trained with the “Train” button. The desired test image is selected from the file on the computer with the “Select Test Image” button and segmentation and classification algorithms are applied to the test image with the “Classification” button. If the result is predicted as meningioma, a rectangle is drawn around the tumor and displayed on the screen as the “Output Image”. If the result is not predicted as meningioma, the test image is displayed on the screen as the “Output Image”.
Figure 18. Classification of the meningioma test image.
Figure 19. Classification of the non-meningioma test image.
The algorithm illustrated in the flowchart in Figure 20 is employed to test the images. First, the desired test image is selected from the file on the computer, and the image is converted from RGB to grayscale and resized. The features of the image are then extracted using the GLCM algorithm, and the image is tested on the system, which is previously trained using the csv1 file and CatBoost. If the result is 0, the image is classified as non-meningioma. If the result is 1, the next step is to determine whether the image truly corresponds to a meningioma. The NLM filter is first applied to the image, thereby reducing the number of parts to be classified when the image is segmented. This shortens the detection time of the tumor. To divide the tumor, the number of image clusters (k) is first set to 3. The cluster center values are then sorted from smallest to largest, and the third cluster (c = 3) is selected. The center value of the third cluster is accepted as the threshold, and the image is thresholded and the cluster assumed to contain the tumor is separated from the other clusters. The regions in the image are labeled, and a new image is created for each label region. Then, the contour features of these images are found and tested with the CatBoost classifier, which was previously trained with a csv2 file. If the result is 0, it is concluded that the segmented area is not a meningioma. Result 1 is that the GLCM features of the image of this region are extracted and tested with the CatBoost classifier previously trained with the csv13 file. If the result is 1, the region is classified as a meningioma tumor. If the result is 0, all possible cluster numbers (k) are re-evaluated by returning to the cluster selection stage. If the result remains 0 after trying all cluster options, the segmented region is determined to be non-meningioma.
Figure 20. Testing process of the images.

2.10. Evaluation Metrics

The performance of the proposed method is evaluated using the metrics in Equations (10)–(15), which are computed based on the values obtained from the confusion matrix shown in Figure 21.
A c c u r a c y = T P + T N T P + T N + F P + F N
P r e c i s i o n = T P T P + F P
R e c a l l   ( S e n s i t i v i t y ) = T P T P + F N
N e g a t i v e   P r e d i c t i v e   V a l u e = T N T N + F N
F 1   S c o r e = 2 P r e c i s i o n ∗ R e c a l l P r e c i s i o n + R e c a l l
S p e c i f i c i t y = T N T N + F P
where
TP = Actual meningioma, predicted as meningioma.
FP = Actual non-meningioma, predicted as meningioma.
TN = Actual non-meningioma, predicted as non-meningioma.
FN = Actual meningioma, predicted as non-meningioma.
Figure 21. Confusion matrix.

3. Results

In this study, a machine learning-based three-step classification method is developed to detect meningioma tumors using binary classification. The 306 meningioma and 1005 non-meningioma test images are tested with the developed method. In the first classification step, the test images are converted to gray-level and resized. Texture features are extracted using the GLCM algorithm, and classification is performed with CatBoost. The purpose of the first classification step is to eliminate images that are not actually meningiomas before proceeding to the segmentation stage and to reduce testing time.
In the first classification step, most non-meningioma images are correctly classified as non-meningioma, while some are incorrectly predicted as meningioma. The aim of our second and third classification steps is both to reduce the number of these incorrectly predicted images and to identify the tumor location in images that are actually meningiomas. In the second testing stage, after segmentation using k-means clustering, the contour features of the segments in the cluster where the tumor is likely to be present, as shown in Table 1, are extracted and classified using CatBoost. Thus, meningioma regions in the image are predicted, and segments unlikely to represent meningiomas are discarded.
In the third classification stage, the GLCM features of the regions identified as meningioma as a result of the second classification step are extracted, and the results are achieved by classification using CatBoost. Figure 22 shows the confusion matrix for the proposed method. We compare our method with two recent deep learning methods, both evaluated on the same dataset used in this study. One of these studies, Aamir et al. [4], proposed a fine-tuned CNN hyperparametric method to improve brain tumor diagnosis accuracy by optimizing the fine-tuning parameters of the CNN model. The limitation of this method is that its complexity and the need to tailor hyperparameters to the dataset may lead to overfitting and failure on independent medical imaging datasets. Figure 23 shows the confusion matrix for the method proposed in [4]. The other study, by Kaya et al. [36], proposed the Fusion-Brain-Net method for brain tumor classification, which consists of preprocessing and data augmentation, combining deep feature extractions, fine-tuning, and classification stages. Instead of building a CNN from scratch, they used pre-trained models and achieved high accuracy results. In this model, combining models with different capabilities creates training challenges. Combining different models and fine-tuning can increase trainable parameters and lead to long training times. Figure 24 shows the confusion matrix for the method proposed in [36]. Additionally, we compare the proposed method with the two deep learning methods described above using evaluation metrics shown in Equations (10)–(15); the comparative results are reported in Table 4. Although deep learning methods show high performance, they have some disadvantages. As mentioned earlier, the deep learning methods require more parameter tuning and have a complex structure in understanding the output than conventional machine learning methods. Therefore, it is important to improve the performance of the machine learning method, which performs lower than the deep learning method.
Figure 22. Confusion matrix of the proposed method.
Figure 23. Confusion matrix for the method by Aamir et al. [4].
Figure 24. Confusion matrix for the method by Kaya et al. [36].
Table 4. Performance comparison with the two deep learning methods.
As shown in Table 4, all three methods yield identical results in terms of precision and specificity. With respect to accuracy and negative predictive value, the three methods exhibit very similar performance. Only in recall (and thus the F1-score) does our method underperform the other two deep learning methods. This underperformance is due to our method yielding a higher FN value than the other two methods, as shown in Figure 22, Figure 23 and Figure 24. Taken together, these findings indicate that, despite some decline in recall (and thus the F1-score), the proposed method achieves overall performance that is nearly on par with the two deep learning methods. In future work, we aim to improve recall, particularly by reducing the FN value.
In addition to its high performance, our method also has other advantages. In the literature, methods such as skull stripping have been conducted to separate brain regions from the head during the preprocessing phase before segmenting and classifying brain MR images. Algorithms such as morphological operations are typically used for this purpose. However, delimiting the brain region is a difficult and time-consuming process. In our proposed method, after segmenting the images using k-means clustering, new images are generated from the segmented segments, and an attempt is made to determine whether these segments represent tumors. The classified segment can be located within or outside the brain region. This eliminates the need for complex preprocessing operations such as skull stripping. The results indicate that the number of tumor-like segments outside the brain region is small, and the study can be considered successful in this respect.
Meningiomas may not present symptoms until they reach a certain size and compress other tissues, or mild patient symptoms may lead to physicians misdiagnosing the disease. As Figure 25 demonstrates, the proposed method detects both small and large meningiomas, underscoring its potential utility in real-world clinical workflows.
Figure 25. Prediction of images that are actually meningiomas as meningiomas: (a) large meningioma tumor in axial image; (b) small meningioma tumor in axial image; (c) large meningioma tumor in coronal image; (d) small meningioma tumor in coronal image; (e) large meningioma tumor in saggital image; (f) small meningioma tumor in saggital image.

4. Discussion

In this study, we develop a method for meningioma detection. The literature includes machine learning and deep learning studies that classify brain tumors—including meningiomas—using multiclass approaches. While deep learning models often achieve strong performance, they typically require more parameter tuning and have a complex structure in understanding the output. Our proposed three-stage, binary classification, machine learning approach mitigates these drawbacks while achieving performance comparable to high-performing deep learning algorithms. We compare the method with two recent deep learning methods and find largely comparable results; only recall—and consequently the F1 score—is lower. In future work, we aim to improve recall.
The dataset used is a combination of three different datasets and contains a total of 7023 images. However, since multiple images may originate from the same patient and patient-level identifiers are not available, data splitting is performed at the slice level, allowing slices from the same patient to appear in both training and test sets. This slice-level overlap may inflate performance estimates; therefore, the reported results should be interpreted as a slice-level performance rather than patient-level generalizability. Despite the large number of images, the number of patients is relatively small, which may further limit generalizability. The dataset does not include tumor masks, and we do not have the opportunity to collaborate with radiologists. Consequently, quantitative evaluation of segmentation accuracy is not possible. Future work should focus on testing the method on multicenter datasets, extending it to three-dimensional volumes, and performing comparative evaluations with radiologists to enhance clinical validity and reliability.
A single train-test split is used in this study, following the configuration of the original datasets and to ensure comparability with prior work. We acknowledge that using a single split may limit the ability to fully assess the variability and stability of the reported results. Future work should consider multiple splits or cross-validation approaches to provide uncertainty estimates and better characterize the robustness of the method. Until such analyses are performed, the reported performance should be interpreted with caution, as it reflects slice-level results for the chosen split.
At the early stage, texture features are extracted from the entire image slice, which may introduce the influence of global image characteristics that are not directly related to the lesion. This can be considered a potential confounding factor, as the classifier may partially rely on non-lesion-specific contextual information. Although this global representation can provide additional context, it may also affect the learned decision patterns. This limitation should be taken into account when interpreting the results of the early-stage classification.
Our study demonstrates the effectiveness of machine learning-based methods in classifying brain MRI images into meningioma and non-meningioma cases. This approach can accelerate the diagnostic process, make it more objective, reduce the workload of radiologists, and contribute to early and accurate treatment planning. Moreover, our study can be considered within the broader context of artificial intelligence and machine learning applications in medicine. CNN- and machine learning–based methods have shown high accuracy in lesion diagnosis in dermatology [37,38], diagnosis and risk classification in cardiology [39,40], and surgical planning and guidance [41,42]. Similarly, our study demonstrates the applicability and performance of these approaches for meningioma classification in neuro-oncology, thereby expanding the evidence for the potential of AI-based methods to support clinical decision-making across different medical disciplines.
In addition, in the literature, low computational cost approaches are increasingly important in medical imaging. The DMD-based neural operator model presented by Sakovich et al. [43] is an example of modern trends aiming to reduce computational load and improve interpretability. Although this study focuses on a different problem domain than MRI classification, it points to the general research line of developing resource-efficient algorithms. Our CatBoost-based method similarly offers advantages for clinical applications due to its lightweight, fast-training, and interpretable decision structure.

Author Contributions

Conceptualization, M.A.G.; methodology, Ö.A.; software, Ö.A.; formal analysis, Ö.A.; writing—review and editing, M.A.G. and Ö.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data used in this study are publicly available on Kaggle as the Brain Tumor MR images Dataset (Nickparvar) at https://www.kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset (accessed on 17 November 2023).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ogasawara, C.; Philbrick, B.D.; Adamson, D.C. Meningioma: A Review of Epidemiology, Pathology, Diagnosis, Treatment, and Future Directions. Biomedicines 2021, 9, 319. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Qureshi, S.A.; Hussain, L.; Ibrar, U.; Alabdulkreem, E.; Nour, M.K.; Alqahtani, M.S.; Duong, T.Q. Radiogenomic Classification for MGMT Promoter Methylation Status Using Multi-Omics Fused Feature Space for Least Invasive Diagnosis through mpMRI Scans. Sci. Rep. 2023, 13, 3291. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Reyes, D.; Sánchez, J. Performance of Convolutional Neural Networks for the Classification of Brain Tumors Using Magnetic Resonance Imaging. Heliyon 2024, 10, e13928. [Google Scholar] [CrossRef] [Scilit]
  4. Aamir, M.; Namoun, A.; Munir, S.; Aljohani, N.; Alanazi, M.H.; Alsahafi, Y.; Alotibi, F. Brain Tumor Detection and Classification Using an Optimized Convolutional Neural Network. Diagnostics 2024, 14, 1714. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Özkaraca, O.; Bağrıaçık, O.İ.; Gürüler, H.; Khan, F.; Hussain, J.; Khan, J.; Laila, U.E. Multiple Brain Tumor Classification with Dense CNN Architecture Using Brain MRI Images. Life 2023, 13, 349. [Google Scholar] [CrossRef] [Scilit]
  6. Das, D.; Sarkar, C.; Das, B. Real-Time Detection of Meningiomas by Image Segmentation: A Very Deep Transfer Learning Convolutional Neural Network Approach. Tomography 2025, 11, 50. [Google Scholar] [CrossRef] [Scilit]
  7. Qureshi, S.A.; Raza, S.E.A.; Hussain, L.; Malibari, A.A.; Nour, M.K.; Rehman, A.U.; Hilal, A.M. Intelligent Ultra-Light Deep Learning Model for Multi-Class Brain Tumor Detection. Appl. Sci. 2022, 12, 3715. [Google Scholar] [CrossRef] [Scilit]
  8. Nassar, S.E.; Yasser, I.; Amer, H.M.; Mohamed, M.A. A Robust MRI-Based Brain Tumor Classification via a Hybrid Deep Learning Technique. J. Supercomput. 2024, 80, 2403–2427. [Google Scholar] [CrossRef] [Scilit]
  9. Vadhnani, S.; Singh, N. Brain Tumor Segmentation and Classification in MRI Using SVM and Its Variants: A Survey. Multimed. Tools Appl. 2022, 81, 31631–31656. [Google Scholar] [CrossRef] [Scilit]
  10. Shaker, E.A.; El-Hossiny, A.S.; Kandil, A.H.; Elbialy, A.; Afify, H.M. Advanced Imaging System for Brain Tumor Automatic Classification from MRI Images Using HOG and BoF Feature Extraction Approaches. Int. J. Imaging Syst. Technol. 2023, 33, 1661–1671. [Google Scholar] [CrossRef] [Scilit]
  11. Gupta, T.; Gandhi, T.K.; Gupta, R.K.; Panigrahi, B.K. Classification of Patients with Tumor Using MR FLAIR Images. Pattern Recognit. Lett. 2020, 139, 112–117. [Google Scholar] [CrossRef] [Scilit]
  12. Jha, M.; Gupta, R.; Saxena, R. A Framework for In-Vivo Human Brain Tumor Detection Using Image Augmentation and Hybrid Features. Health Inf. Sci. Syst. 2022, 10, 23. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Shilaskar, S.; Mahajan, T.; Bhatlawande, S.; Chaudhari, S.; Mahajan, R.; Junnare, K. Machine Learning Based Brain Tumor Detection and Classification Using HOG Feature Descriptor. In Proceedings of the 2023 International Conference on Sustainable Computing and Smart Systems (ICSCSS), Pune, India, 16–18 June 2023; pp. 67–75. [Google Scholar]
  14. Ayadi, W.; Charfi, I.; Elhamzi, W.; Atri, M. Brain Tumor Classification Based on Hybrid Approach. Vis. Comput. 2022, 38, 107–117. [Google Scholar] [CrossRef] [Scilit]
  15. Kang, J.; Ullah, Z.; Gwak, J. MRI-Based Brain Tumor Classification Using Ensemble of Deep Features and Machine Learning Classifiers. Sensors 2021, 21, 2222. [Google Scholar] [CrossRef] [Scilit]
  16. Srinivasa Reddy, A.; Chenna Reddy, P. MRI Brain Tumor Segmentation and Prediction Using Modified Region Growing and Adaptive SVM. Soft Comput. 2021, 25, 4135–4148. [Google Scholar] [CrossRef] [Scilit]
  17. Adamu, M.J.; Kawuwa, H.B.; Qiang, L.; Nyatega, C.O.; Younis, A.; Fahad, M.; Dauya, S.S. Efficient and Accurate Brain Tumor Classification Using Hybrid MobileNetV2–Support Vector Machine for Magnetic Resonance Imaging Diagnostics in Neoplasms. Brain Sci. 2024, 14, 1178. [Google Scholar] [CrossRef] [Scilit]
  18. Santana, L.S.; Diniz, J.B.C.; Gasparri, L.M.G.; Canto, A.B.; Dos Reis, S.B.; Ribeiro, I.S.N.; Telles, J.P.M. Application of Machine Learning for Classification of Brain Tumors: A Systematic Review and Meta-Analysis. World Neurosurg. 2024, 186, 204–218. [Google Scholar] [CrossRef] [Scilit]
  19. Missaoui, R.; Hechkel, W.; Saadaoui, W.; Helali, A.; Leo, M. Advanced Deep Learning and Machine Learning Techniques for MRI Brain Tumor Analysis: A Review. Sensors 2025, 25, 2746. [Google Scholar] [CrossRef] [Scilit]
  20. Ali, A.; Li, X.; Mashwani, W.K.; Abiad, M.; Karim, F.K.; Mostafa, S.M. Multi-Class Brain Tumor MRI Segmentation and Classification Using Deep Learning and Machine Learning Approaches. Cancer Imaging 2025, 25, 131. [Google Scholar] [CrossRef] [Scilit]
  21. Nickparvar, M. Brain Tumor MRI Dataset. Kaggle. 2023. Available online: https://www.kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset (accessed on 17 November 2023).
  22. Uvaneshwari, M.; Baskar, M. Machine Learning for Brain Tumour Detection: A Systematic Review of Segmentation and Classification Methods. In Proceedings of the 2023 Intelligent Computing and Control for Engineering and Business Systems (ICCEBS), Chennai, India, 10–12 February 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 1–7. [Google Scholar]
  23. Haralick, R.M.; Shanmugam, K.; Dinstein, I.H. Textural Features for Image Classification. IEEE Trans. Syst. Man Cybern. 1973, SMC-3, 610–621. [Google Scholar] [CrossRef] [Scilit]
  24. Gomede, E. Gray-Level Co-Occurrence Matrix (GLCM): A Comprehensive Analysis. Medium. 2024. Available online: https://medium.com/aimonks/gray-level-co-occurrence-matrix-glcm-a-comprehensive-analysis-a58bbc49c0f6 (accessed on 24 May 2025).
  25. Pal, C.; Das, P.; Chakrabarti, A.; Ghosh, R. Rician Noise Removal in Magnitude MRI Images Using Efficient Anisotropic Diffusion Filtering. Int. J. Imaging Syst. Technol. 2017, 27, 248–264. [Google Scholar] [CrossRef] [Scilit]
  26. Chaudhari, A.; Kulkarni, J. Adaptive Bayesian Filtering Based Restoration of MR Images. Biomed. Signal Process. Control 2021, 68, 102620. [Google Scholar] [CrossRef] [Scilit]
  27. Akar, S.A. Determination of Optimal Parameters for Bilateral Filter in Brain MR Image Denoising. Appl. Soft Comput. 2016, 43, 87–96. [Google Scholar] [CrossRef] [Scilit]
  28. Riji, R.; Rajan, J.; Sijbers, J.; Nair, M.S. Iterative Bilateral Filter for Rician Noise Reduction in MR Images. Signal Image Video Process. 2015, 9, 1543–1548. [Google Scholar] [CrossRef] [Scilit]
  29. Singh, D.; Kaur, A. Fuzzy Based Fast Non Local Mean Filter to Denoise Rician Noise. Mater. Today Proc. 2021, 46, 6445–6452. [Google Scholar] [CrossRef] [Scilit]
  30. Yang, J.; Fan, J.; Ai, D.; Zhou, S.; Tang, S.; Wang, Y. Brain MR Image Denoising for Rician Noise Using Pre-Smooth Non-Local Means Filter. Biomed. Eng. Online 2015, 14, 2. [Google Scholar] [CrossRef] [Scilit]
  31. Chen, K.; Lin, X.; Hu, X.; Wang, J.; Zhong, H.; Jiang, L. An Enhanced Adaptive Non-Local Means Algorithm for Rician Noise Reduction in Magnetic Resonance Brain Images. BMC Med. Imaging 2020, 20, 2. [Google Scholar] [CrossRef] [Scilit]
  32. Altıok, Ö.; Güngör, M.A. Comparison of Denoising Filters for Brain Magnetic Resonance Images. In Proceedings of the 11th International Congress of Academic Research (ICAR), Online, 1–3 July 2023; pp. 363–370. [Google Scholar]
  33. Buades, A.; Coll, B.; Morel, J.M. A Non-Local Algorithm for Image Denoising. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), San Diego, CA, USA, 20–25 June 2005; IEEE: Piscataway, NJ, USA, 2005; Volume 2, pp. 60–65. [Google Scholar]
  34. Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. CatBoost: Unbiased Boosting with Categorical Features. In Proceedings of the 32nd Conference on Neural Information Processing Systems (NeurIPS 2018), Montréal, QC, Canada, 3–8 December 2018; Volume 31. [Google Scholar]
  35. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-Sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef] [Scilit]
  36. Kaya, Y.; Akat, E.; Yıldırım, S. Fusion-Brain-Net: A Novel Deep Fusion Model for Brain Tumor Classification. Brain Behav. 2025, 15, e70520. [Google Scholar] [CrossRef] [Scilit]
  37. Tschandl, P.; Rinner, C.; Apalla, Z.; Argenziano, G.; Codella, N.; Halpern, A.; Kittler, H. Human–Computer Collaboration for Skin Cancer Recognition. Nat. Med. 2020, 26, 1229–1234. [Google Scholar] [CrossRef] [Scilit]
  38. Esteva, A.; Kuprel, B.; Novoa, R.A.; Ko, J.; Swetter, S.M.; Blau, H.M.; Thrun, S. Dermatologist-Level Classification of Skin Cancer with Deep Neural Networks. Nature 2017, 542, 115–118. [Google Scholar] [CrossRef] [Scilit]
  39. Rajpurkar, P.; Hannun, A.Y.; Haghpanahi, M.; Bourn, C.; Ng, A.Y. Cardiologist-Level Arrhythmia Detection with Convolutional Neural Networks. arXiv 2017, arXiv:1707.01836. [Google Scholar] [CrossRef] [Scilit]
  40. Howard, J.P.; Francis, D.P. Machine Learning with Convolutional Neural Networks for Clinical Cardiologists. Heart 2021, 107, 973–981. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Wang, Z.; Majewicz Fey, A. Deep Learning with Convolutional Neural Network for Objective Skill Evaluation in Robot-Assisted Surgery. Int. J. Comput. Assist. Radiol. Surg. 2018, 13, 1959–1970. [Google Scholar] [CrossRef] [Scilit]
  42. Funke, I.; Mees, S.T.; Weitz, J.; Speidel, S. Video-Based Surgical Skill Assessment Using 3D Convolutional Neural Networks. Int. J. Comput. Assist. Radiol. Surg. 2019, 14, 1217–1225. [Google Scholar] [CrossRef] [Scilit]
  43. Sakovich, N.; Aksenov, D.; Pleshakova, E.; Gataullin, S. A Neural Operator Using Dynamic Mode Decomposition Analysis to Approximate Partial Differential Equations. AIMS Math. 2025, 10, 22432–22444. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.