← Back to Projects ML/AI Projects

Brain Tumor Detection with Augmentation and Transfer Learning

Built a deep learning system that classifies MRI brain scans and highlights tumor regions using a combination of CNNs, data augmentation pipelines, and transfer learning methods. Designed for reliability across multiple datasets and MRI formats, achieving strong F1-scores and stable learning dynamics.

View project report

Quick Insights:

Introduction

This project focused on building a reliable MRI-based brain tumor classifier using supervised deep learning. Instead of relying on a single dataset, we combined four MRI datasets to improve model diversity and reduce overfitting. Augmentation played a key role in simulating clinical variations such as rotation, zoom shifts, brightness changes, and spatial distortions.

After evaluating a custom CNN built from scratch, we transitioned to transfer learning (EfficientNetB4) which delivered significantly better generalization on unseen MRI scans.

Baseline Model: Custom CNN

The baseline CNN served as a controlled experiment to understand the dataset’s complexity. It was intentionally simple, using two convolution layers and dense classifiers. The architecture below summarizes the layer progression:

While effective for initial exploration, the model plateaued in performance when exposed to more diverse MRI scans, motivating the use of transfer learning.

Transfer Learning Approach

To achieve higher performance and generalization, we adopted EfficientNetB4 pre-trained on ImageNet and fine-tuned it for binary tumor classification. Transfer learning helped retain low-level features like gradients and textures while adapting high-level layers to MRI patterns.

This approach reduced training time, stabilized gradients, and consistently outperformed custom CNN results. Below are the updated final results using Transfer Learning.

Key Outcomes & Learnings