Explainable Brain Tumor Classification Using EfficientNet-B2 and Grad-CAM on MRI Dataset
DOI:
10.29303/jppipa.v12i3.14179Published:
2026-03-31Downloads
Abstract
Brain tumors are life-threatening central nervous system disorders requiring early and accurate diagnosis for effective clinical management. Although MRI is the standard modality for detection, manual interpretation remains prone to inconsistency, particularly for complex cases such as glioma. This study proposes an explainable deep learning framework integrating EfficientNet-B2 with a threshold-based two-stage classification scheme and Grad-CAM interpretability analysis. In the first stage, a one-versus-rest binary classifier with an optimized threshold (τ = 0.20) performs glioma detection; the second stage classifies remaining cases into meningioma, pituitary tumor, or normal. The dataset comprises 7,023 MRI images across four classes from a public Kaggle repository. Preprocessing includes CLAHE contrast enhancement, normalization, and augmentation. EfficientNet-B0 serves as the baseline. EfficientNet-B2 achieves 97.9% overall accuracy, outperforming the baseline (96.7%), with a glioma F1-score of 0.988 at the optimal threshold. Grad-CAM visualizations confirm the model focuses on anatomically relevant regions, enhancing transparency and clinical trustworthiness. The proposed framework demonstrates that combining architectural capacity, threshold-based inference, and explainability yields a reliable system for computer-aided brain tumor diagnosis.
Keywords:
Brain Tumor Deep Learning EfficientNet-B2 Grad-CAM MRIReferences
Agrawal, A., & Chaki, J. (2025). CerebralNet meets Explainable AI: Brain tumor detection and classification with probabilistic augmentation and a deep learning approach. Biomedical Signal Processing and Control, 110, 108210. https://doi.org/10.1016/j.bspc.2025.108210 DOI: https://doi.org/10.1016/j.bspc.2025.108210
Ahmad, P., Qamar, S., & Rizvi, S. S. (2024). Grad-CAM++ based interpretability for brain tumor detection in MRI using deep convolutional neural networks. Journal of Digital Imaging, 37(1), 88–104. https://doi.org/10.1007/s10278-023-00912-x
Ahmed, M., Khalifa, F., Moustafa, H. E. D., Saleh, G. A., & AbdElhalim, E. (2022). A deep learning based system for accurate diagnosis of brain tumors using T1-w MRI. Indonesian Journal of Electrical Engineering and Computer Science, 28(2), 1192–1202. https://doi.org/10.11591/ijeecs.v28.i2.pp1192-1202 DOI: https://doi.org/10.11591/ijeecs.v28.i2.pp1192-1202
Alanazi, M. F., Ali, M. U., Khan, S. J., & Zafar, A. (2023). EfficientNetV2-S for brain tumor classification using MRI: A transfer learning approach. IEEE Access, 11, 24561–24575. https://doi.org/10.1109/ACCESS.2023.3254125
Arlis, S., Putra, M. R., & Yanto, M. (2024). Effectiveness of VGG19 in deep learning for brain tumor detection. Indonesian Journal of Electrical Engineering and Computer Science, 35(2), 1210–1218. https://doi.org/10.11591/ijeecs.v35.i2.pp1210-1218 DOI: https://doi.org/10.11591/ijeecs.v35.i2.pp1210-1218
Babu Vimala, B., Srinivasan, S., Mathivanan, S. K., Mahalakshmi, Jayagopal, P., & Dalu, G. T. (2023). Detection and classification of brain tumor using hybrid deep learning models. Scientific Reports, 13(1), 1–17. https://doi.org/10.1038/s41598-023-50505-6 DOI: https://doi.org/10.1038/s41598-023-50505-6
Benzorgat, N., Xia, K., & Benzorgat, M. N. E. (2024). Enhancing brain tumor MRI classification with an ensemble of deep learning models and transformer integration. PeerJ Computer Science, 10, e2425. https://doi.org/10.7717/peerj-cs.2425 DOI: https://doi.org/10.7717/peerj-cs.2425
Findia Jiven, F., & Rumini, R. (2025). MRI classification of brain tumors using EfficientNetB0 feature extraction and machine learning methods. Journal of Applied Informatics and Computing (JAIC), 9(1), 45–53. https://jurnal.polibatam.ac.id/index.php/JAIC/article/view/10363 DOI: https://doi.org/10.30871/jaic.v9i6.10363
Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press. https://www.deeplearningbook.org
Gottipati, S. B., & Thumbur, G. (2024). Multi-modal fusion deep transfer learning for accurate brain tumor classification using magnetic resonance imaging images. Indonesian Journal of Electrical Engineering and Computer Science, 34(2), 825–834. https://doi.org/10.11591/ijeecs.v34.i2.pp825-834 DOI: https://doi.org/10.11591/ijeecs.v34.i2.pp825-834
Haque, R., Islam, M. S., & Islam, M. R. (2025). Explainable deep stacking ensemble model for accurate and transparent brain tumor diagnosis. Computers in Biology and Medicine, 191, 110166. https://doi.org/10.1016/j.compbiomed.2025.110166 DOI: https://doi.org/10.1016/j.compbiomed.2025.110166
Hassan, M., & Al-Zahrani, A. (2024). Unfolding Explainable AI for brain tumor segmentation. Neurocomputing, 599, 128058. https://doi.org/10.1016/j.neucom.2024.128058 DOI: https://doi.org/10.1016/j.neucom.2024.128058
Havaei, M., Davy, A., Varley, david wade, Biard, A., Courville, A., Bengio, Y., Pal, C., Jodoin, P. mac, & Larochelle, H. (2017). Brain Tumor Segmentation with Deep Neural Networks. Medical Image Analysis, 35, 18–31. https://doi.org/10.1016/j.media.2016.05.004 DOI: https://doi.org/10.1016/j.media.2016.05.004
Iftikhar, S. (2025). Explainable CNN for brain tumor detection and classification through XAI based key features identification. Brain Informatics, 12(1), 10. https://doi.org/10.1186/s40708-025-00257-y DOI: https://doi.org/10.1186/s40708-025-00257-y
Iqbal, A., Jaffar, M. A., & Jahangir, R. (2024). Enhancing Brain Tumour Multi-Classification Using Efficient-Net B0-Based Intelligent Diagnosis for Internet of Medical Things (IoMT) Applications. Information MDPI (Switzerland), 15(8). https://doi.org/10.3390/info15080489 DOI: https://doi.org/10.3390/info15080489
Islam, M. M., Talukder, M. A., & Hasan, M. K. (2024). BrainNet: Precision brain tumor classification with optimized EfficientNet architecture. International Journal of Intelligent Systems, 2024(1), 3583612. https://doi.org/10.1155/2024/3583612 DOI: https://doi.org/10.1155/2024/3583612
Kakon, S. C., Sazid, Z. Al, Begum, I. A., Samad, A., & Hosen, A. S. M. S. (2025). Explainable Deep Ensemble Meta-Learning Framework for Brain Tumor Classification Using MRI Images. 1–29. https://doi.org/10.3390/cancers17172853 DOI: https://doi.org/10.3390/cancers17172853
Kar, S., & Singh, P. K. (2025). MBTC-Net: Multimodal brain tumor classification from CT and MRI scans using deep neural network with multi-head attention mechanism. Medicine in Novel Technology and Devices, 27, 100382. https://doi.org/https://doi.org/10.1016/j.medntd.2025.100382 DOI: https://doi.org/10.1016/j.medntd.2025.100382
Linda Bi, W., Hosny, A., B, M. schabath, & L, M. (2019). Artificial Intelligence in Cancer Imaging: Clinical Challenges and Applications. CA: A Cancer Journal for Clinicians, 69(2), 127–157. https://doi.org/10.3322/caac.21552 DOI: https://doi.org/10.3322/caac.21552
Litjens, G., Kooi, T., Bejnordi, B. E., Setio, A. A. A., & Francesco Ciompi. (2017). A Survey on Deep Learning in Medical Image Analysis. Medical Image Analysis, 42, 60–88. https://doi.org/10.1016/j.media.2017.07.005 DOI: https://doi.org/10.1016/j.media.2017.07.005
Lundervold, A. S., & Lundervold, A. (2019). An Overview of Deep Learning in Medical Imaging Focusing on MRI. Zeitschrift Für Medizinische Physik, 29(2), 102–127. https://doi.org/10.1016/j.zemedi.2018.11.002 DOI: https://doi.org/10.1016/j.zemedi.2018.11.002
Menze, B. H., Jakab, A., Bauer, S., Kalpathy-Cramer, J., Farahani, K., & Kirby, J. (2015). The Multimodal Brain Tumor Image Segmentation Benchmark (BRATS). IEEE Transactions on Medical Imaging, 34(10), 1993–2024. https://doi.org/10.1109/TMI.2014.2377694 DOI: https://doi.org/10.1109/TMI.2014.2377694
Musa, M. N. (2024). MRI-Based Brain Tumor Classification using ResNet-50 and Optimized Softmax Regression. Jurnal Infotel, 16(3), 598–614. https://doi.org/10.20895/infotel.v16i3.1175 DOI: https://doi.org/10.20895/infotel.v16i3.1175
Pacal, I., Celik, O., Bayram, B., & Cunha, A. (2024). Enhancing EfficientNetv2 with global and efficient channel attention mechanisms for accurate MRI-Based brain tumor classification. Cluster Computing, 27(8), 11187–11212. https://doi.org/10.1007/s10586-024-04532-1 DOI: https://doi.org/10.1007/s10586-024-04532-1
Rachmawanto, E. H., Sari, C. A., & Isinkaye, F. O. (2024). A good result of brain tumor classification based on simple convolutional neural network architecture. Telkomnika (Telecommunication Computing Electronics and Control), 22(3), 711–719. https://doi.org/10.12928/TELKOMNIKA.v22i3.25863 DOI: https://doi.org/10.12928/telkomnika.v22i3.25863
Radiological Society of North America (RSNA), & American College of Radiology (ACR). (2024). Magnetic Resonance Imaging (MRI). https://www.radiologyinfo.org/en/info/mri
Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. Medical Image Computing and Computer-Assisted Intervention (MICCAI 2015), 234–241. https://doi.org/10.1007/978-3-319-24574-4_28 DOI: https://doi.org/10.1007/978-3-319-24574-4_28
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. Proceedings of the IEEE International Conference on Computer Vision, 618–626. https://doi.org/10.1109/ICCV.2017.74 DOI: https://doi.org/10.1109/ICCV.2017.74
Sharma, V. K., & Ameta, G. K. (2025). Hybrid 3D CNN–transformer model for early brain tumor detection with multi-modal magnetic resonance imaging. Bulletin of Electrical Engineering and Informatics, 14(5), 3923–3934. https://doi.org/10.11591/eei.v14i5.11082 DOI: https://doi.org/10.11591/eei.v14i5.11082
Shen, D., Wu, G., & Suk, H.-I. (2017). Deep Learning in Medical Image Analysis. Annual Review of Biomedical Engineering, 19, 221–248. https://doi.org/10.1146/annurev-bioeng-071516-044442 DOI: https://doi.org/10.1146/annurev-bioeng-071516-044442
World Health Organization. (2023). Global Cancer Observatory: Brain and Central Nervous System Cancer Statistics. https://gco.iarc.who.int/media/globocan/factsheets/cancers/31-brain-central-nervous-system-fact-sheet.pdf%7D
Yan, F., Chen, Y., Xia, Y., Wang, Z., & Xiao, R. (2023). An Explainable Brain Tumor Detection Framework for MRI Analysis. Applied Sciences MDPI (Switzerland), 13(6), 3438. https://doi.org/10.3390/app13063438 DOI: https://doi.org/10.3390/app13063438
License
Copyright (c) 2026 Tino Saputra, Wahyu Purnama Magribi, Vitri Tundjungsari

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with Jurnal Penelitian Pendidikan IPA, agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution 4.0 International License (CC-BY License). This license allows authors to use all articles, data sets, graphics, and appendices in data mining applications, search engines, web sites, blogs, and other platforms by providing an appropriate reference. The journal allows the author(s) to hold the copyright without restrictions and will retain publishing rights without restrictions.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in Jurnal Penelitian Pendidikan IPA.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).






