Brain Tumor Classification in Magnetic Resonance Imaging Using Machine Learning Techniques
DOI:
https://doi.org/10.5753/reic.2026.7814Keywords:
Brain tumors, Magnetic resonance imaging, Machine learning, Random Forest, Medical image classificationAbstract
This study investigated the application of machine learning techniques for the automatic classification of brain tumors from magnetic resonance imaging (MRI) scans to support medical diagnosis. The images underwent preprocessing, including data augmentation (rotations, flips, and brightness adjustments), feature extraction and normalization, as well as dimensionality reduction to retain the most relevant information. Two machine learning algorithms, Random Forest and Support Vector Machine (SVM), were evaluated and compared under different experimental scenarios. Random Forest achieved the best overall performance, reaching approximately 98% classification accuracy while producing fewer false negatives, a critical aspect in clinical applications. SVM also demonstrated satisfactory performance, with an accuracy of approximately 94%, although it was more sensitive to data variations. Overall, the findings highlight the potential of machine learning as a valuable tool for supporting medical image analysis and improving the diagnosis of brain tumors.
Downloads
References
Abdusalomov, A. B., Mukhiddinov, M., and Whangbo, T. K. (2023). Brain tumor detection based on deep learning approaches and magnetic resonance imaging. Cancers, 15(16):4172. DOI: 10.3390/cancers15164172.
Ali, A., Li, X., Mashwani, W. K., Abiad, M., Karim, F. K., and Mostafa, S. M. (2025). Multi-class brain tumor MRI segmentation and classification using deep learning and machine learning approaches. Cancer Imaging, 25(1):131. DOI: 10.1186/s40644-025-00953-2.
Allahem, H., Abd El-Ghany, A. A. S. A. E.-A., Aldughayfiq, B., Alshammeri, M., and Alamri, M. (2025). A hybrid model of feature extraction and dimensionality reduction using vit, pca, and random forest for multi-classification of brain cancer. Diagnostics, 15(11). DOI: 10.3390/diagnostics15111392.
Alzubaidi, L., Zhang, J., Humaidi, A. J., Al-Dujaili, A., Duan, Y., Al-Shamma, O., Santamaría, J., Fadhel, M. A., Al-Amidie, M., and Farhan, L. (2021). Review of deep learning: concepts, CNN architectures, challenges, applications, future directions. Journal of Big Data, 8(1):53. DOI: 10.1186/s40537-021-00444-8.
Begum, D. J. and Chokkalingam, S. P. (2025). Mri-based brain tumour detection and classification using random forest algorithm. In Smart Innovation, Systems and Technologies, volume 417. DOI: 10.1007/978-981-97-8355-7_7.
Bishop, C. M. (2006). Pattern Recognition and Machine Learning. Springer.
Breiman, L. (2001). Random forests. Machine Learning, 45(1):5–32. DOI: 10.1023/A:1010933404324.
Cervantes, J., García-Lamont, F., Rodríguez, L., and Lopez-Chau, A. (2020). A comprehensive survey on support vector machine classification: Applications, challenges and trends. Neurocomputing, 408:189–215. DOI: 10.1016/j.neucom.2019.10.118.
Cortes, C. and Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3):273–297. DOI: 10.1007/BF00994018.
Dorfner, F. J., Patel, J. B., Kalpathy-Cramer, J., Gerstner, E. R., and Bridge, C. P. (2025). A review of deep learning for brain tumor analysis in MRI. npj Precision Oncology, 9(1):2. DOI: 10.1038/s41698-024-00789-2.
Faradibah, A., Widyawati, D., Syahar, A. U., and Jabir, S. (2023). Comparison analysis of random forest classifier, support vector machine, and artificial neural network performance in multiclass brain tumor classification. Indonesian Journal of Data and Science, 4:54–63. DOI: 10.56705/ijodas.v4i2.73.
Godoi, B. B., Ramos Junior, S. P., Machado Filho, G. d. M., Gomes, L. F. M., Martins, C. F. C., Costa, H. S., Figueiredo, P. H. S., and Gusmão, S. N. S. (2022). Brain tumors epidemiology in a low-income health region of brazil. Jornal Brasileiro de Neurocirurgia, 33(2):165–171. Available at: [link] Accessed: 2026-07-31.
Guido, R., Ferrisi, S., Lofaro, D., and Conforti, D. (2024). An overview on the advancements of support vector machine models in healthcare applications: A review. Information, 15(4). DOI: 10.3390/info15040235.
Hastie, T., Tibshirani, R., and Friedman, J. (2009a). The Elements of Statistical Learning: Data Mining, Inference, and Prediction, volume 2. Springer, New York, 2 edition.
Hastie, T., Tibshirani, R., and Friedman, J. (2009b). The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Springer, 2 edition.
Heckel, R., Jacob, M., Chaudhari, A., Perlman, O., and Shimron, E. (2024). Deep learning for accelerated and robust mri reconstruction. Magnetic Resonance Materials in Physics, Biology and Medicine, 37:335–368. DOI: 10.1007/s10334-024-01173-8.
International Agency for Research on Cancer (2024). Gco cancer tomorrow. Available at: [link] Accessed: 2026-01-25.
James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013). An Introduction to Statistical Learning with Applications in R. Springer.
Jolliffe, I. T. (2002). Principal Component Analysis. Springer, 2 edition.
Khan, M. K. H., Guo, W., Liu, J., Dong, F., Li, Z., Patterson, T. A., and Hong, H. (2023). Machine learning and deep learning for brain tumor mri image segmentation. Experimental Biology and Medicine, 248(21):1974–1992. DOI: 10.1177/15353702231214259.
Kheirollahi, M., Dashti, S., Khalaj, Z., Nazemroaia, F., and Mahzouni, P. (2015). Brain tumors: Special characters for research and banking. Advanced Biomedical Research, 4:4. DOI: 10.4103/2277-9175.148261.
Kumar, K. and Jyoti, K. (2024). Machine learning for brain tumor classification: Evaluating feature extraction and algorithm efficiency. Discover Artificial Intelligence, 4:112. DOI: 10.1007/s44163-024-00214-4.
Kusuma, P. V. and Reddy, S. C. M. (2025). Brain tumor segmentation and classification using mri: Modified segnet model and hybrid deep learning architecture with improved texture features. Computational Biology and Chemistry, 117. DOI: 10.1016/j.compbiolchem.2025.108381.
LeCun, Y., Bengio, Y., and Hinton, G. (2015). Deep learning. Nature, 521:436–444. DOI: 10.1038/nature14539.
Litjens, G., Kooi, T., Bejnordi, B. E., Setio, A. A. A., Ciompi, F., Ghafoorian, M., van der Laak, J. A., van Ginneken, B., and Sánchez, C. I. (2017). A survey on deep learning in medical image analysis. Medical Image Analysis, 42:60–88. DOI: 10.1016/j.media.2017.07.005.
Louis, D. N., Perry, A., Wesseling, P., Brat, D. J., Cree, I. A., Figarella-Branger, D., Hawkins, C., Ng, H.-K., Pfister, S. M., Reifenberger, G., Soffietti, R., von Deimling, A., and Ellison, D. W. (2021). The 2021 who classification of tumors of the central nervous system: a summary. Neuro-Oncology, 23(8):1231–1251. DOI: 10.1093/neuonc/noab106.
Martínez-Del-Río-Ortega, R., Civit-Masot, J., Luna-Perejón, F., and Domínguez-Morales, M. (2024). Brain tumor detection using magnetic resonance imaging and convolutional neural networks. Big Data and Cognitive Computing, 8(9):123. DOI: 10.3390/bdcc8090123.
Murtozalikhon, M. (2024). Brain tumor multimodal image (ct and mri). Kaggle Datasets. Available at: [link] Accessed: 2025-11-09.
Musthafa, N., Memon, Q. A., and Masud, M. M. (2025). Advancing brain tumor analysis: Current trends, key challenges, and perspectives in deep learning-based brain mri tumor diagnosis. Eng, 6(5):82. DOI: 10.3390/eng6050082.
Pearson, K. (1901). On lines and planes of closest fit to systems of points in space. Philosophical Magazine, 2(11):559–572. DOI: 10.1080/14786440109462720.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Müller, A., Nothman, J., Louppe, G., Prettenhofer, P., Weiss, R., Dubourg, V., VanderPlas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., and Duchesnay, (2011). Scikit-learn: Machine learning in python. Journal of Machine Learning Research, 12:2825–2830. DOI: 10.48550/arXiv.1201.0490.
Perez, L. and Wang, J. (2017). The effectiveness of data augmentation in image classification using deep learning. arXiv preprint. Available at: [link].
Powers, D. M. W. (2011). Evaluation: From precision, recall and f-measure to roc, informedness, markedness and correlation. Journal of Machine Learning Technologies, 2(1):37–63. DOI: 10.48550/arXiv.2010.16061.
Rahman, A., Hayat, M., Iqbal, N., Alarfaj, F. K., Alkhalaf, S., and Alturise, F. (2025). Enhanced MRI brain tumor detection using deep learning in conjunction with explainable AI SHAP based diverse and multi feature analysis. Scientific Reports, 15(1):29411. DOI: 10.1038/s41598-025-14901-4.
Salman, H., Kalakech, A., and Steiti, A. (2024). Random forest algorithm overview. Babylonian Journal of Machine Learning, 2024:69–79. DOI: 10.58496/BJML/2024/007.
Shorten, C. and Khoshgoftaar, T. M. (2019). A survey on image data augmentation for deep learning. Journal of Big Data, 6(1):60. DOI: 10.1186/s40537-019-0197-0.
Sisay, A. B., Sultan, F., Abdu, M. E., and Olalekan, S. A. (2023). Magnetic resonance imaging-based brain tumor image classification performance enhancement. Scientific African, 22. DOI: 10.1016/j.sciaf.2023.e01963.
Steinwart, I. and Christmann, A. (2008). Support Vector Machines. Springer.
Tandel, G. S., Balestrieri, A., Jujaray, T., Khanna, N. N., Saba, L., and Suri, J. S. (2020). Multiclass magnetic resonance imaging brain tumor classification using artificial intelligence paradigm. Computers in Biology and Medicine, 122:103804. DOI: 10.1016/j.compbiomed.2020.103804.
Vankdothu, R. and Hameed, M. A. (2022). Brain tumor segmentation of mr images using svm and fuzzy classifier in machine learning. Measurement: Sensors, 24:100440. DOI: 10.1016/j.measen.2022.100440.
Wang, S. and Li, M. (2025). Comparative analysis of machine learning techniques on the brats dataset for brain tumor classification. Frontiers in Oncology, 15. DOI: 10.3389/fonc.2025.1596718.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The authors

This work is licensed under a Creative Commons Attribution 4.0 International License.
