Abstract
Magnetic Resonance Imaging (MRI) scans are crucial role in identifying brain tumors, ensuring accurate clinical diagnosis and effective personalized treatment planning to improve the chances of survival in patients. However, consistent multi-class classification of brain tumours remains a major challenge due to the considerable variability in tumor morphology and the subtle differences among multiple pathological categories. Although there have been tremendous advancements in convolutional neural networks (CNNs) and attention-based deep learning frameworks, challenges remain in achieving robustness performance across multi-class tumor datasets while maintaining interpretability for clinical use. This paper addresses these challenges, by adopting a novel multi-scale deformable attention module (MS-DAM) framework built on ResNet101. The framework is applied on the Kaggle 14-class MRI Brain tumor dataset, to enhance diagnostic accuracy and computational efficiency by capturing the global contextual and local tumor specific features. To improve generalization, hybrid augmentation strategy combined with mixup regularization has been implemented. The explainabiliy of the model is achieved through Grad-CAM and SHAP analyses. The test results of the proposed model are compared with those reported in the existing literature and superior classification accuracy and generalization are observed. The accuracy of the validation and test data set is achieved 96.89% and 99.21% respectively.
Data availability
The implementation code, training pipeline, and evaluation scripts used in this study are publicly available to ensure transparency and reproducibility of the reported results. The complete source code can be accessed through the following GitHub repository: https://github.com/bathinisiddareddy-arch/siddareddy.
References
McFaline-Figueroa, J. R. & Lee, E. Q. Brain tumors. Am. J. Med. 131(8), 874–882. https://doi.org/10.1016/j.amjmed.2017.12.039 (2018).
DeAngelis, L. M. Brain tumors. N. Engl. J. Med. 344 (2), 114–123. https://doi.org/10.1056/NEJM200101113440207 (2001).
Tandel, G. S. et al. A review on a deep learning perspective in brain cancer classification. Cancers 11 (1), 111. https://doi.org/10.3390/cancers11010111 (2019).
Zarenia, E., Far, A. A. & Rezaee, K. Automated multi-class MRI brain tumor classification and segmentation using deformable attention and saliency mapping. Sci. Rep. 15, 8114. https://doi.org/10.1038/s41598-025-92776-1 (2025).
Chinga, A., Bendezu, W. & Angulo, A. Comparative study of CNN architectures for brain tumor classification using MRI: Exploring GradCAM for visualizing CNN focus. Eng. Proc. 83(1), 22. https://doi.org/10.3390/engproc2025083022 (2025).
Khawaldeh, S., Pervaiz, U., Rafiq, A. & Alkhawaldeh, R. S. Noninvasive grading of glioma tumor using magnetic resonance imaging with convolutional neural networks. Appl. Sci. (Basel) 8(1), 27. https://doi.org/10.3390/app8010027 (2018).
Sultan, H. H., Salem, N. M. & Al-Atabany, W. Multi-classification of brain tumor images using deep neural network. IEEE Access 7, 69215–69225. https://doi.org/10.1109/ACCESS.2019.2919122 (2019).
Ayadi, A., Elhamzi, W., Charfi, I. & Atri, M. Deep CNN for brain tumor classification. Neural Process. Lett. 53, 671–700. https://doi.org/10.1007/s11063-020-10398-2 (2021).
Deepak, S. & Ameer, P. M. Brain tumor classification using deep CNN features via transfer learning. Comput. Biol. Med. 111, 103345. https://doi.org/10.1016/j.compbiomed.2019.103345 (2019).
Çinar, A. & Yildirim, M. Detection of tumors on brain MRI images using the hybrid convolutional neural network architecture. Med. Hypotheses 139, 109684. https://doi.org/10.1016/j.mehy.2020.109684 (2020).
Nayak, D. R., Padhy, N., Mallick, P. K., Zymbler, M. & Kumar, S. Brain tumor classification using Dense Efficient-Net. Axioms 11(1), 34. https://doi.org/10.3390/axioms11010034 (2022).
Srinivas, C. et al. Deep transfer learning approaches in performance analysis of brain tumor classification using MRI images. J. Healthc. Eng. 2022, 3264367. https://doi.org/10.1155/2022/3264367 (2022).
Polat, Ö., Dokur, Z. & Ölmez, T. Brain tumor classification by using a novel convolutional neural network structure. Int. J. Imaging Syst. Technol. 32 (5), 1646–1660. https://doi.org/10.1002/ima.22763 (2022).
Huang, Z. et al. Convolutional neural network based on complex networks for brain tumor image classification with a modified activation function. IEEE Access 8, 89281–89290. https://doi.org/10.1109/ACCESS.2020.2993618 (2020).
Mondal, A. & Shrivastava, V. K. A novel parametric Flatten-p Mish activation function based deep CNN model for brain tumor classification. Comput. Biol. Med. 150, 106183. https://doi.org/10.1016/j.compbiomed.2022.106183 (2022).
Khan, M. A. & Auvee, R. B. Z. Comparative analysis of resource-efficient CNN architectures for brain tumor classification. In Proceedings of the 2024 27th International Conference on Computer and Information Technology (ICCIT) (pp. 639–644). IEEE. (2024). https://doi.org/10.1109/ICCIT64611.2024.11021970
Khan, M. A. & Park, H. A convolutional block base architecture for multiclass brain tumor detection using magnetic resonance imaging. Electronics 13(2), 364. https://doi.org/10.3390/electronics13020364 (2024).
Chatterjee, S., Nizamani, F. A., Nürnberger, A. & Speck, O. Classification of brain tumours in MR images using deep spatiospatial models. Sci. Rep. 12, 1505. https://doi.org/10.1038/s41598-022-05572-6 (2022).
Verma, A. & Yadav, A. K. Improved multi-class brain tumor MRI classification with DS-Net: A patch-based deep supervision approach. Multimed. Tools Appl. 84, 36837–36870. https://doi.org/10.1007/s11042-025-20668-7 (2025).
Jia, Q. & Shu, H. BiTr-Unet: A CNN-transformer combined network for MRI brain tumor segmentation. In A. Crimi & S. Bakas (Eds.), Brainlesion: Glioma, multiple sclerosis, stroke and traumatic brain injuries (Lecture Notes in Computer Science, Vol. 12963, pp. 3–14). Springer. (2022). https://doi.org/10.1007/978-3-031-09002-8_1
Karthik, A. et al. Unified approach for accurate brain tumor multi-classification and segmentation through fusion of advanced methodologies. Biomed. Signal Process. Control. 100(Part A), 106872. https://doi.org/10.1016/j.bspc.2024.106872 (2025).
Rastogi, D., Johri, P., Tiwari, V. & Elngar, A. A. Multi-class classification of brain tumour magnetic resonance images using multi-branch network with inception block and five-fold cross validation deep learning framework. Biomed. Signal Process. Control. 88(Part A), 105602. https://doi.org/10.1016/j.bspc.2023.105602 (2024).
Tabatabaei, S., Rezaee, K. & Zhu, M. Attention transformer mechanism and fusion-based deep learning architecture for MRI brain tumor classification system. Biomed. Signal Process. Control. 86(Part A), 105119. https://doi.org/10.1016/j.bspc.2023.105119 (2023).
Tummala, S., Kadry, S., Bukhari, S. A. C. & Rauf, H. T. Classification of brain tumor from magnetic resonance imaging using vision transformers ensembling. Curr. Oncol. 29(10), 7498–7511. https://doi.org/10.3390/curroncol29100590 (2022).
Mao, Y., Kim, J., Podina, L. & Kohandel, M. Dilated SE-DenseNet for brain tumor MRI classification. Sci. Rep. 15, 3596. https://doi.org/10.1038/s41598-025-86752-y (2025).
Akinyelu, A. A., Zaccagna, F., Grist, J. T., Castelli, M. & Rundo, L. Brain tumor diagnosis using machine learning, convolutional neural networks, capsule neural networks and vision transformers, applied to MRI: A survey. J. Imaging. 8(8), 205. https://doi.org/10.3390/jimaging8080205 (2022).
Aamir, M. et al. A deep learning approach for brain tumor classification using MRI images. Comput. Electr. Eng. 101, 108105. https://doi.org/10.1016/j.compeleceng.2022.108105 (2022).
Ghassemi, N., Shoeibi, A. & Rouhani, M. Deep neural network with generative adversarial networks pre-training for brain tumor classification based on MR images. Biomed. Signal Process. Control. 57, 101678. https://doi.org/10.1016/j.bspc.2019.101678 (2020).
Raza, A. et al. A hybrid deep learning-based approach for brain tumor classification. Electronics 11(7), 1146. https://doi.org/10.3390/electronics11071146 (2022).
Asiri, A. A. et al. Optimized brain tumor detection: A dual-module approach for MRI image enhancement and tumor classification. IEEE Access 12, 42868–42887. https://doi.org/10.1109/ACCESS.2024.3379136 (2024).
Anaraki, A. K., Ayati, M. & Kazemi, F. Magnetic resonance imaging-based brain tumor grades classification and grading via convolutional neural networks and genetic algorithms. Biocybern. Biomed. Eng. 39(1), 63–74. https://doi.org/10.1016/j.bbe.2018.10.004 (2019).
Srinivasa Reddy, A. Effective CNN-MSO method for brain tumor detection and segmentation. Mater. Today Proc. 57(Part 5), 1969–1974. https://doi.org/10.1016/j.matpr.2021.10.145 (2022).
Özyurt, F., Sert, E., Avci, E. & Dogantekin, E. Brain tumor detection based on convolutional neural network with neutrosophic expert maximum fuzzy sure entropy. Measurement 147, 106830. https://doi.org/10.1016/j.measurement.2019.07.058 (2019).
Sajjad, M. et al. Multi-grade brain tumor classification using deep CNN with extensive data augmentation. J. Comput. Sci. 30, 174–182. https://doi.org/10.1016/j.jocs.2018.12.003 (2019).
Kaplan, K., Kaya, Y., Kuncan, M. & Ertunç, H. M. Brain tumor classification using modified local binary patterns (LBP) feature extraction methods. Med. Hypotheses. 139, 109696. https://doi.org/10.1016/j.mehy.2020.109696 (2020).
Khalil, H. A., Darwish, S., Ibrahim, Y. M. & Hassan, O. F. 3D-MRI brain tumor detection model using modified version of level set segmentation based on dragonfly algorithm. Symmetry 12(8), 1256. https://doi.org/10.3390/sym12081256 (2020).
Alam, M. S. et al. Automatic human brain tumor detection in MRI image using template-based K means and improved fuzzy C means clustering algorithm. Big Data Cogn. Comput. 3(2), 27. https://doi.org/10.3390/bdcc3020027 (2019).
Rajesh Babu, K., Nagajaneyulu, P. V. & Satya Prasad, K. Brain tumor segmentation of T1w MRI images based on clustering using dimensionality reduction random projection technique. Current Medical Imaging Formerly Current Medical Imaging Reviews 17(3), 331–341. https://doi.org/10.2174/1573405616666200712180521 (2021).
Huang, H., Meng, F., Zhou, S., Jiang, F. & Manogaran, G. Brain image segmentation based on FCM clustering algorithm and rough set. IEEE Access 7, 12386–12396. https://doi.org/10.1109/ACCESS.2019.2893063 (2019).
Nagah Hennes, W. Brain tumor for 14 classes [Data set]. Kaggle. (2023). https://www.kaggle.com/datasets/waseemnagahhenes/brain-tumor-for-14-classes
Sachdeva, J., Kumar, V., Gupta, I., Khandelwal, N. & Ahuja, C. K. Segmentation, feature extraction, and multiclass brain tumor classification. J. Digit. Imaging. 26(6), 1141–1150. https://doi.org/10.1007/s10278-013-9600-0 (2013).
Shyamala, N. & Basha, S. M. Multi-modal deep feature extraction and classifier-level integration for brain tumour classification using CT and MRI image. Artif. Intell. Eng. https://doi.org/10.1049/aie2.70009 (2026).
Acknowledgements
The authors extend their appreciation to the Deanship of Research and Graduate Studies at King Khalid University, Kingdom of Saudi Arabia for funding this work through the Small Research Group Project under the grant number RGP1/21/46.
Author information
Authors and Affiliations
Contributions
B. Sidda Reddy - A, Ranjeet Ranjan Jha - B, Abhishek Dasore - C, Deekshitha Desur - D, Kiran Shahapurkar - E, Vineet Tirth - F, Ali Algahtani - G, Vijayabhaskara Rao Bhaviripudi - H, Gezahgn Gebremaryam - IA.B. conceptualized the work and methodology for the work, C.D. wrote the main manuscript text and formal analysis, E.F. G., V.T. and A.A supervised the work and did the review and editing of the work, H.I. did the investigation.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Reddy, B.S., Jha, R.R., Dasore, A. et al. Multi-class classification of brain tumor using a ResNet101 backbone integrated with multi-scale deformable attention module and advanced data augmentations. Sci Rep (2026). https://doi.org/10.1038/s41598-026-45675-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-45675-y