Transfer learning with ResNet18 to classify brain MRI scans into three tumor types, with Grad-CAM to show where the model looks.

This project uses transfer learning with ResNet18 to classify MRI brain scans into three types of brain cancer: Glioma, Meningioma, and General Tumor. Built with PyTorch and trained on a curated dataset of 6,000+ labeled medical images, the model achieves strong performance and interpretability using Grad-CAM.
Classes:
brain_glioma/brain_menin/brain_tumor/All images resized to 224x224, normalized using ImageNet statistics
| Metric | Score |
|---|---|
| Test Accuracy | ~98% |
| Precision | ~98% |
| Recall | ~98% |
| F1-Score | ~98% |
Model focuses attention on tumor regions, validating spatial learning.
Rahman, Md Mizanur (2024), "Brain Cancer - MRI dataset", Mendeley Data, V1, doi: 10.17632/mk56jw9rns.1
https://medium.com/@stepanulyanin/implementing-grad-cam-in-pytorch-ea0937c31e82