Comparative Study of Deep Learning Architectures for Brain Tumour Classification
Organizations: Amrita School of Artificial Intelligence, Amrita Vishwa Vidyapeetham, Coimbatore, India · Department of Computer Science, Jaypee University of Information Technology, Solan, Himachal Pradesh, India
Abstract
Accurate and early classification of brain tumours from magnetic resonance imaging (MRI) is essential for treatment planning, yet many published deep learning studies are trained and tested on small, single-source datasets, reporting accuracies that may not hold outside these datasets. This study compares six deep learning architectures for four-class classification (healthy, meningioma, glioma and pituitary tumour): a baseline convolutional neural network (CNN), an attention-based CNN, ShuffleNet, and EfficientNet-B0, ResNet-50 and Xception augmented with the Convolutional Block Attention Module (CBAM). The models were trained on a corpus assembled from four publicly available MRI datasets. Because these datasets carry no patient identifiers, a leakage-aware pipeline was developed that removes exact duplicates using MD5 hashing (550 images) and near-duplicates using perceptual hashing (8,024 images), and assigns visually similar images to the same fold during 5-fold group cross-validation. A leave-one-dataset-out (LODO) test on a fully held-out dataset was used to measure cross-dataset generalisation. Under a conventional random split, ShuffleNet achieved 97.1% accuracy with 1.2M parameters. Under leakage-aware group K-fold cross-validation, ShuffleNetV2 (98.41%) and EfficientNet-B0 (98.23%) were statistically indistinguishable (paired t-test, p = 0.19), and both significantly outperformed the custom CNNs. On the held-out dataset, accuracy dropped for every model: EfficientNet-B0 generalised best (78.4%), while ShuffleNetV2 fell to 66.2%. Glioma-meningioma confusion was the dominant error mode, and Grad-CAM maps showed that predictions were driven by tumour regions. These results indicate that in-distribution accuracy alone overstates real-world performance and that leakage-aware and cross-dataset evaluation should be reported alongside it.
Figures & tables
| Model | Stages | Channel progression | Spatial reduction | Enhancement |
| Baseline CNN | 3 | 32 64 128 | 224 112 56 28 | None |
| Attention CNN | 4 | 32 64 128 256 | 224 112 56 28 14 | Batch normalization, self-attention |
| Parameter | Value | Description |
| Random seed | 42 | For reproducibility across all experiments |
| Early stopping patience | 3–10 epochs | Model-specific (see Table 3 ) |
| Batch normalization | Applied | All models except the baseline CNN |
| Gradient clipping | 0.5 | ShuffleNet only |
| Validation split | 20% | Consistent across all models |
| Model | Learning rate | Optimizer | Loss function | Dropout rates | Early stopping | Training phases |
| EfficientNet-B0 | Adam | Focal loss ( ) | 0.5, 0.3 | 3–5 epochs | Single-phase | |
| ResNet-50 | Adam | Categorical cross-entropy | 0.3, 0.2 | 5 epochs | Two-phase | |
| Xception | Adam | Focal loss ( ) | 0.3, 0.2 | 7 epochs | Single-phase | |
| Baseline CNN | Adam | Sparse categorical cross-entropy | 0.5 | 7 epochs | Single-phase | |
| Attention CNN | Adam | Sparse categorical cross-entropy | 0.5, 0.3 | 10 epochs | Single-phase | |
| ShuffleNet | Adam | Weighted cross-entropy | Progressive ∗ | 10 epochs | Cosine scheduling |
| Model | Overall accuracy (%) | Precision | Recall | F1-score | AUC | Parameters (M) | Training epochs |
| ShuffleNet | 97.1 | 0.971 | 0.971 | 0.971 | 0.999 | 1.2 | 35 |
| Attention CNN | 95.1 | 0.953 | 0.951 | 0.951 | 0.995 | 2.8 | 40 |
| Baseline CNN | 91.2 | 0.912 | 0.912 | 0.912 | 0.989 | 1.5 | 25 |
| Xception | 91.0 | 0.913 | 0.910 | 0.910 | 0.980 | 22.9 | 25 |
| EfficientNet-B0 | 88.5 | 0.885 | 0.885 | 0.875 | 0.950 | 5.3 | 20 |
| ResNet-50 | 84.2 | 0.810 | 0.823 | 0.815 | 0.950 | 25.6 | 30 |
| Model | Tumor type | Precision | Recall | F1-score | Support |
| EfficientNet-B0 | Meningioma | 0.80 | 0.83 | 0.81 | 930 |
| Glioma | 0.94 | 0.80 | 0.87 | 1208 | |
| Pituitary | 0.88 | 0.96 | 0.92 | 992 | |
| Healthy | 0.92 | 0.97 | 0.92 | 992 | |
| ResNet-50 | Meningioma | 0.72 | 0.64 | 0.68 | 930 |
| Glioma | 0.81 | 0.78 | 0.79 | 1208 |
| Model | Mean acc. | Std | Min acc. | Max acc. | Mean F1 | Std F1 |
| ShuffleNetV2 | 0.9841 | 0.0016 | 0.9818 | 0.9864 | 0.9841 | 0.0016 |
| EfficientNet-B0 | 0.9823 | 0.0021 | 0.9796 | 0.9849 | 0.9824 | 0.0021 |
| Xception | 0.9741 | 0.0031 | 0.9691 | 0.9784 | 0.9742 | 0.0031 |
| ResNet-50 | 0.9521 | 0.0033 | 0.9469 | 0.9561 | 0.9523 | 0.0033 |
| Baseline CNN | 0.8950 | 0.0070 | 0.8830 | 0.9036 | 0.8946 | 0.0074 |
| Attention CNN | 0.8071 | 0.0099 | 0.7943 | 0.8233 | 0.8068 | 0.0102 |
| Model | LODO accuracy | LODO F1-score |
| EfficientNet-B0 | 0.784 | 0.782 |
| Xception | 0.766 | 0.764 |
| ResNet-50 | 0.717 | 0.709 |
| ShuffleNetV2 | 0.662 | 0.635 |
| Baseline CNN | 0.653 | 0.636 |
| Attention CNN | 0.565 | 0.542 |
| Model 1 | Model 2 | Mean diff. | t-statistic | p-value | Significant ( ) |
| EfficientNet-B0 | Attention CNN | 0.1752 | 43.38 | Yes | |
| ShuffleNetV2 | Attention CNN | 0.1770 | 36.68 | Yes | |
| Xception | Attention CNN | 0.1670 | 35.04 | Yes | |
| EfficientNet-B0 | Baseline CNN | 0.0873 | 31.79 | Yes | |
| ShuffleNetV2 | Baseline CNN | 0.0891 | 27.92 | Yes | |
| ResNet-50 | ShuffleNetV2 | Yes |
| Model | K-fold acc. | K-fold F1 | Std acc. | LODO acc. | LODO F1 |
| ShuffleNetV2 | 0.984 | 0.984 | 0.0016 | 0.662 | 0.635 |
| EfficientNet-B0 | 0.982 | 0.982 | 0.0021 | 0.784 | 0.782 |
| Xception | 0.974 | 0.974 | 0.0031 | 0.766 | 0.764 |
| ResNet-50 | 0.952 | 0.952 | 0.0033 | 0.717 | 0.709 |
| Baseline CNN | 0.895 | 0.895 | 0.0070 | 0.653 | 0.636 |
| Attention CNN | 0.807 | 0.807 | 0.0099 | 0.565 | 0.542 |
| Model | No tumor | Meningioma | Glioma | Pituitary |
| ShuffleNetV2 | 0.995 | 0.968 | 0.985 | 0.989 |
| EfficientNet-B0 | 0.996 | 0.964 | 0.982 | 0.989 |
| Xception | 0.992 | 0.948 | 0.976 | 0.981 |
| True class | Predicted class | Error count | Error rate |
| Glioma | Meningioma | 259 | 0.0182 |
| Meningioma | Glioma | 114 | 0.0129 |
| Meningioma | Pituitary | 106 | 0.0120 |
| Pituitary | Meningioma | 57 | 0.0062 |
| Meningioma | No tumor | 29 | 0.0033 |
| Glioma | Pituitary | 21 | 0.0015 |
Brain Tumor Classification
Brain tumor classification uses medical images and molecular data to identify tumor types, grades, and subtypes for diagnosis and treatment planning.
See all 60 papers