Brain Tumor Detection CNN
A deep learning application that analyzes MRI scans to instantly detect and classify brain tumors (Glioma, Meningioma, Pituitary Tumor, or No Tumor) with 86.25% test accuracy.

Tech stack
Impact
Problem Statement
Brain tumor diagnosis requires careful analysis of MRI scans by radiologists. The goal was to build an automated, accessible tool to assist in detecting and classifying tumor types quickly and accurately.
Dataset
A comprehensive dataset of 7,200 MRI images categorized into four classes: Glioma, Meningioma, Pituitary Tumor, and No Tumor.
Architecture
A custom Convolutional Neural Network (CNN) built with TensorFlow/Keras, featuring multiple convolutional layers for feature extraction, followed by dense layers for classification. The frontend provides a seamless upload and prediction experience.
Model Selection
A CNN architecture was chosen due to its superior performance in image recognition tasks, specifically in identifying spatial hierarchies and patterns in medical imaging compared to traditional ML models.
Training Process
Trained on 7,200 MRI images using data augmentation techniques to prevent overfitting. The model was optimized using categorical crossentropy and the Adam optimizer.
Evaluation Metrics
Results
A live web application that allows users to upload MRI scans and receive instant predictions across four categories with high confidence.
Key Learnings
- 1Data augmentation is crucial for medical imaging datasets to improve model generalization.
- 2A clean, intuitive UI is essential for medical AI tools to be accessible to end-users.
- 3Bridging a deep learning model with a modern web frontend creates a powerful, deployable product.
Want to dig deeper?
Explore the code, or get in touch if you'd like to talk through the approach.