Automated segmentation pipeline for AFM T-cell images — fine-tuned Cellpose with probe-aware selection logic, achieving 0.889 mean Dice across 216 labeled frames with zero empty outputs.
Solo Researcher (Undergraduate) · Fall 2025 · Team of 1
Result
Global mean Dice 0.889, global mean IoU 0.813, pred-empty frames 0/216. 7 of 8 subsets cluster at Dice 0.88–0.91.
Result
Probe-aware logic eliminated wrong-cell picks that baseline largest-cell selection failed on across crowded DN2–DN4 frames. Zero pred-empty frames. All fallback-triggered frames are flagged and logged.
Result
100% of frames produce reviewable overlay and mask. Worst-scoring stems identifiable from aggregated logs without re-running inference. DN2-rate outlier identified and root cause documented.
| From | To | Type | Description |
|---|---|---|---|
| Raw AFM frame (.tif) | Preprocessing module | data | Grayscale load + percentile [2,98] intensity normalization; optional contrast normalization and morphological closing per subset config |
| Preprocessing module | Cellpose model | data | Full AFM frame passed without cropping; per-subset cellprob_threshold and flow_threshold overrides applied at inference time |
| Cellpose model | Probe-aware selection logic | software | Multi-instance integer label map passed to geometry rule; probe coordinates sourced from auto-detector or PROBE_MAP fallback |
| Probe-aware selection logic | QC artifact writer | software | Single binary tip-cell mask + selected instance metadata; path taken (normal, retry, fallback) logged per frame to JSON |

6-panel grid showing ground truth vs predicted masks across three qualitative performance classes

5-panel strip showing each stage: raw AFM frame → detected cantilever tip → Cellpose multi-instance masks → geometry-aware selection → final tip-cell mask
Limitations
Lessons & Next Steps