MRI Brain Tumor Detection & Segmentation
Multimodal MRI classification and segmentation model trained on BraTS dataset with shared encoder, achieving 91.3% accuracy and 97.1% sensitivity.
Overview
Built a production-ready multimodal MRI classification and segmentation pipeline trained on the BraTS dataset. The model uses a shared encoder architecture for both tumor classification and pixel-level segmentation, achieving strong performance across both tasks simultaneously.
Results
| Metric | Score |
|---|---|
| Classification Accuracy | 91.3% |
| Sensitivity | 97.1% |
| Dice Score (Segmentation) | 76.5% |
| Model Parameters | 31.7M |
| Inference Speedup | ~40% faster vs separate models |
Key Features
- Shared Encoder Architecture: Single backbone for both classification and segmentation reduces parameter count and inference time
- Conditional Segmentation: Segmentation head activates only when tumor is detected, optimizing inference
- One-Command Pipeline: Productized training-to-demo pipeline with automation across 6 stages, 4 smart prompts, and 25/25 passing tests
- API Endpoints: 11 FastAPI endpoints for model inference, health checks, and data management
Inference Pipeline
flowchart LR
A[MRI Input] --> B[Preprocessing]
B --> C[Shared Encoder]
C --> D{Tumor?}
D -->|Yes| E[Segmentation Head]
D -->|No| F[No Tumor]
E --> G[Pixel Mask]
C --> H[Classification Head]
H --> D Conditional segmentation activates only when tumor is detected, avoiding unnecessary compute on negative cases.
Tech Stack
- ML: PyTorch, torchvision, BraTS dataset
- API: FastAPI, Uvicorn, Pydantic
- Testing: pytest with 25/25 test coverage
- Optimization: Conditional inference, shared encoder, mixed precision
Related Projects
AI-Driven Image-to-Alt-Text CI Automation
Hugging Face transformer-powered image alt-text compliance system at CVS Health. Won 1st Prize at the CVS GenAI Hackathon (Aug 2023), then productionized for enterprise rollout — boosted accessibility conformance by 35% and reduced downstream defects by 15%.
ML / AICVS GenAI Hackathon — Alt-Text Compliance
Awarded 1st Prize at the CVS GenAI Hackathon (Aug 2023) for a proof-of-concept ML transformer application that generates and compares image alt-text and tests it for accessibility compliance. Productionized into the CVS image-to-alt-text CI pipeline.