4 → 3
MRI modalities in, tumour regions out
Computer Vision · Medical Imaging · 2026
NeuroSeg: Brain Tumour Segmentation from MRI
- Problem
- Outlining brain tumour regions in MRI by hand is slow, and the regions overlap (the enhancing tumour sits inside the tumour core).
- Role
- Designed and built it end to end: model architecture, data pipeline, training loop, and interactive demo.
- Outcome
- A complete training and inference pipeline with per-region Dice/IoU metrics and an interactive demo. Research and demonstration only, not a diagnostic tool.
See the process
- 01Multi-task Attention U-Net in PyTorch: a shared encoder, 3 sigmoid heads for the BraTS regions, plus a per-slice tumour classifier.
- 02Group norm for small batches, Dice + BCE loss, mixed precision, a cosine schedule, and checkpoints chosen by best validation Dice.
- 03Train/val split by patient, not by slice, so leakage doesn't inflate Dice.
- 04Gradio demo ready for Hugging Face Spaces, with a synthetic phantom fallback so it runs without any data.
- PyTorch
- Attention U-Net
- BraTS
- Gradio
- Hugging Face

