Brain Tumor Segmentation Benchmark

Seven U-Net-family architectures trained head-to-head on BraTS2020 MRI slices, with Dice scores compared fairly.

ML / DL2024All work

Fig. 01BraTS2020 MRI slice with predicted tumour segmentation overlay.
BraTS2020 MRI slice with predicted tumour segmentation overlay.

What it is

What it does

A controlled comparison: seven encoder-decoder segmentation networks built from scratch in Keras and trained on identically preprocessed BraTS2020 slices (UNet, CA-CNN, VNet, Attention U-Net, an nnUNet-style variant, a residual-block UNETR-style design and NNFormer), evaluated on Dice, IoU, sensitivity and specificity with per-class breakdowns for necrotic core, edema and enhancing tumour.

Why it exists

Every paper claimed state-of-the-art but trained on different slices, losses, and splits. I wanted one bar: same 368 volumes, same preprocessing, same metrics. So when UNet beats Attention U-Net, it's the architecture, not the setup.

7
Architectures
≈0.97
Best global Dice
368
MRI volumes

Repo Amit-kr26/Multimodal-Deep-Learning-Approach-for-Brain-Tumor-SegmentationStack TensorFlow · Keras · UNet · Attention U-Net · UNETR · NNFormer · BraTS2020

Build5decisions

How it is built

Identical data pipeline

A custom DataGenerator stacks FLAIR/T1/T1ce/T2 as four channels into 240×240 inputs, extracting 100 slices per volume starting at slice 22, with Gaussian blur + Otsu cropping; 368 patients split 312 train / 56 test (seed 42).

Seven builders, one compile

Every model compiles with Adam(lr=0.001) and categorical cross-entropy, sharing MeanIoU, dice, precision, sensitivity, specificity and three per-class Dice coefficients as metrics.

Distinctive architectures

CA-CNN adds anisotropic (3,1)/(1,3) convolutions; VNet decodes with Conv2DTranspose from 16 filters; Attention U-Net implements its own sigmoid attention gate on skips; the UNETR-style net threads residual blocks with 1×1 projection shortcuts.

Headline results

NNFormer reached ≈0.97 global Dice and the UNETR-style model 0.95 after five epochs (~2.85 h/epoch); ReduceLROnPlateau (factor 0.2, patience 2) managed every run.

Review-ready outputs

Inference exports per-class segmentation overlays to multi-page PDFs and animates prediction slices into GIFs for quick qualitative inspection.

How the pieces connect

Data Models BraTS2020 368 patients, 5 vols 312 / 56 split by patient, seed 42 DataGenerator blur + Otsu, 240² One-hot labels 4 classes Train batches 100 slices, b=1 Seven builders UNet → NNFormer One compile Adam 1e-3, cat CE ReduceLROnPlateau factor 0.2, patience 2 7 × .h5 checkpoints Overlay PDFs 6-panel per case seven builders, one compile identical optimiser and metrics