Brain Tumor Classification in MRI Scans Using Edge Computing and a Shallow Attention-Guided CNN
Open Access
- 21 October 2025
- journal article
- research article
- Published by MDPI AG in Biomedicines
- Vol. 13 (10) , 2571
Abstract
Background/Objectives: Brain tumors arise from abnormal, uncontrolled cell growth due to changes in the DNA. Magnetic Resonance Imaging (MRI) is vital for early diagnosis and treatment planning. Artificial intelligence (AI), especially deep learning, has shown strong potential in assisting radiologists with MRI analysis. However, many brain tumor classification models achieve high accuracy at the cost of large model sizes and slow inference, limiting their practicality for medical edge computing. In this work we introduce a new attention-guided classification model and explore how model parameters can be reduced without significantly impacting accuracy. Methods: We develop a shallow attention-guided convolutional neural network (ANSA_Ensemble) and evaluate its effectiveness using Monte Carlo simulations, ablation studies, cross-dataset generalization, and Grad-CAM-generated heatmaps. Several state-of-the-art model compression techniques are also applied to improve the efficiency of our classification pipeline. The model is evaluated on three open-source brain tumor datasets. Results: The proposed ANSA_Ensemble model achieves a best accuracy of 98.04% and an average accuracy of 96.69 ± 0.64% on the Cheng dataset, 95.16 ± 0.33% on the Bhuvaji dataset, and 95.20 ± 0.40% on the Sherif dataset. Conclusions: The performance of the proposed model is comparable to state-of-the-art methods. We find that the best tradeoff between accuracy and speed-up factor is consistently achieved using depthwise separable convolutions. The ablation study confirms the effectiveness of the introduced attention blocks and shows that model accuracy improves as the number of attention blocks increases. Our code is made publicly available.Keywords
Funding Information
- National Science Foundation (Award 2107439)
This publication has 46 references indexed in Scilit:
- Ensemble Deep Learning Approach for Brain Tumor Classification Using Vision Transformer and Convolutional Neural NetworkAdvanced Intelligent Systems, 2025
- NeXtBrain: Combining local and global feature learning for brain tumor classificationBrain Research, 2025
- A comprehensive review of model compression techniques in machine learningApplied Intelligence, 2024
- GT-Net: global transformer network for multiclass brain tumor classification using MR imagesBiomedical Engineering Letters, 2024
- Medtransnet: advanced gating transformer network for medical image classificationMachine Vision and Applications, 2024
- Advancing brain tumor classification accuracy through deep learning: harnessing radimagenet pre-trained convolutional neural networks, ensemble learning, and machine learning classifiers on MRI brain imagesMultimedia Tools and Applications, 2024
- Feature-enhanced deep learning technique with soft attention for MRI-based brain tumor classificationInternational Journal of Information Technology, 2024
- ARM-Net: Attention-guided residual multiscale CNN for multiclass brain tumor classification using MR imagesBiomedical Signal Processing and Control, 2023
- A robust MRI-based brain tumor classification via a hybrid deep learning techniqueThe Journal of Supercomputing, 2023
- End-to-end predictive intelligence diagnosis in brain tumor using lightweight neural networkApplied Soft Computing, 2021