HIL: Interactive Segmentation & Validation
A Human-in-the-Loop pipeline that leverages a hybrid Watershed-SAM approach to accelerate pixel-level medical annotations and model retraining.

About the Project
Engineering Challenges
01Segmenting Paired Instances
Oysters are typically processed in pairs per slide. Fragmented or touching tissue often confuses standard models, leading to 'merged' or incomplete animal instances.
Solution: Engineered a pre-segmentation 'Instruction' layer. I used a customized Watershed algorithm to perform a first pass, identifying the distinct centroids of each oyster. These coordinates were then passed to SAM as specific point-prompts, ensuring individual, high-fidelity isolation for both instances.
02The Manual Annotation Bottleneck
Standard pixel-level annotation of 1TB+ medical datasets is prohibitively expensive and slow.
Solution: Implemented a validation-centric workflow. By automating the bulk of the segmentation work and providing a clear path for expert verification, the system uses 'corrected' masks as a fresh training signal, creating an iterative improvement cycle that saves months of manual work.