Hemg/brain-tumor-classification-mri
Viewer • Updated • 3.26k • 121
A medical image classification model for detecting brain tumors from MRI scans, built with MobileNetV2 transfer learning and Grad-CAM explainability visualizations.
| Metric | Value |
|---|---|
| Best Validation Accuracy | 93.57% |
| Macro F1-Score | 0.94 |
| Architecture | MobileNetV2 (ImageNet V2 pretrained) |
| Dataset | Hemg/brain-tumor-classification-mri |
| Classes | glioma, meningioma, no tumor, pituitary |
| Training Epochs | 8 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| Glioma Tumor | 0.95 | 0.89 | 0.92 |
| Meningioma Tumor | 0.90 | 0.92 | 0.91 |
| No Tumor | 0.92 | 0.97 | 0.94 |
| Pituitary Tumor | 0.96 | 0.97 | 0.97 |
Based on published medical imaging research:
Visualizations show which brain regions the model focuses on when making predictions. Target layer: (last convolutional block of MobileNetV2).
Shows Original MRI, Grad-CAM activation, and Overlay for 3 samples per class:

best_model.pth - PyTorch model weightsconfig.json - Model configurationtraining_history.json - Per-epoch training metricsconfusion_matrix.png - Test confusion matrixtraining_history.png - Loss/accuracy/LR curvesheatmaps/ - All Grad-CAM visualizations