Back to Projects

Brain Tumor Diagnosis System Using CNN

Illustration of Brain Tumor Diagnosis System Using CNN CNN

a deep learning model that looks at brain mri scans and classifies them as glioma, meningioma, pituitary or no tumor, with a flask web app where you upload a scan and get a prediction.

it’s transfer learning on vgg16 in tensorflow. i froze most of the layers to keep what it already knows and fine-tuned the top ones for mri scans. the dataset was small, so brightness and contrast augmentation runs during training to help it generalise.

live on render. it’s trained on a small dataset, so treat it as a demo, not a medical tool.

Architecture

Training
MRI datasettrain and test folders, 4 classes
Model · TensorFlow / Keras
VGG16 baseImageNet weights, most layers frozen, top layers fine-tuned
Flatten
Dropout 0.5
Dense 256ReLU
Dropout 0.5
Dense 4softmax
Evaluationclassification report, confusion matrix, ROC / AUC
Prediction
Flask appupload an MRI scan · gunicorn on Render
Trained model
Glioma
Meningioma
Pituitary
No tumor

Other Projects

All projects