Segmentation Matters: Recognizing the Cell Segmentation Challenge in Spatial Transcriptomics

Published on July 29, 2026

Probe-based in situ hybridization spatial transcriptomics has emerged as a state-of-the-art for neuroscience research. Accurate segmentation of neurons and non-neuronal cells, a critical step for downstream analysis, remains a big challenge. Using human sensory ganglia neurons as an example, we systematically explore this problem. We evaluated multiple automatic segmentation approaches using quantitative performance metrics and downstream results. We show that careful parameter tuning is essential for achieving accurate segmentation; however, even with optimized parameters, different models still yield distinct classes of errors. To mitigate these errors, we propose a manual quality check, which can validate and refine automated segmentation results. As a future direction, integrating multi-modal imaging data with tailored neural networks may further improve segmentation accuracy. In summary, our results argue that each automated segmentation method has distinct strengths, weaknesses, and characteristic error patterns; and that a manual review is necessary.


Author Contributions Statement

H.Yu, M.L., and W.L., conceptualized the project. N.W. worked on dataset curation, development of the Baysor model, and creation of the conversion pipeline. H.Yan developed the DBSCAN model and optimization. A.C. developed the YOLO model, the Combination Model, merged images, and manual correction pipeline, as well as completing manual segmentation of TG1 and performing manual correction. K.S. developed the Cellpose model, model evaluation pipeline, and stitching pipeline. H.Yu generated the Xenium data, performed downstream analyses, and worked closely with N.W., H.Yan, A.C., and K.S. to develop and optimize each model. H.Yu, A.C., K.S., N.W. and H.Yan wrote the manuscript draft. W.L. and M.Y. reviewed the manuscript.

PMCID: PMC12407710  PMID: 40909538
 
Yu H, Carroll AY, Shen K, Wu N, Yan H, Xiong J, Mercado MF, Kaiser EA, Gautam M, Li M, Luo W; Penn High Precision Pain Center. Segmentation Matters: Recognizing the Cell Segmentation Challenge in Spatial Transcriptomics. bioRxiv [Preprint]. 2025 Aug 29:2025.08.25.672145. doi: 10.1101/2025.08.25.672145.