This project implements an end-to-end instance segmentation pipeline using Mask R-CNN in PyTorch.
The objective is pixel-level localization of structured regions within complex image data.
The workflow demonstrates practical experience in scientific image processing, transfer learning, and reproducible ML experimentation.
Although applied here to MRI data, the pipeline design is adaptable to other domains such as:
- Satellite imagery
- Radar data
- Environmental monitoring
- Geospatial image analysis
Design a robust instance segmentation system capable of:
- Detecting regions of interest
- Generating pixel-level masks
- Adapting pretrained deep learning models to domain-specific image distributions
This mirrors challenges commonly found in large-scale scientific and environmental datasets.
- Framework: PyTorch
- Model: Mask R-CNN
- Backbone: ResNet-FPN
- Transfer learning from COCO pretrained weights
- Custom adaptation of classification and mask heads
The architecture supports multi-scale feature extraction and precise spatial localization.
The project includes a structured data workflow:
- Image preprocessing (resizing, normalization)
- Mask generation and annotation formatting
- Train/validation split
- Batch loading using PyTorch Dataset & DataLoader
- Reproducible experimentation setup
Pipeline designed for scalability and modular reuse.
- Fine-tuning pretrained backbone
- Hyperparameter tuning
- Monitoring training stability
- GPU-compatible implementation
- Structured experiment reproducibility
Performance assessed using:
- Intersection over Union (IoU)
- Qualitative mask overlay visualization
- Loss monitoring across epochs
Focus on both quantitative and visual validation.
- Python
- PyTorch / Torchvision
- NumPy
- Matplotlib
- Jupyter Notebook
- Linux-based execution environment
- End-to-end deep learning workflow
- Domain adaptation using transfer learning
- Structured dataset handling
- Modular design for extension to other image domains
- Reproducible scientific ML experimentation
The pipeline can be extended to:
- Satellite cloud segmentation
- Weather radar echo segmentation
- Precipitation region detection
- Multi-class environmental feature extraction
Hakimeh Khojasteh
Machine Learning Engineer | Scientific ML