Erik Meijering PhD FIEEE

Cell Segmentation in Microscopy Images Using a SAM-Based U-Net Architecture and a Novel Dataset

M. S. Alam, M. Jackson, M. S. Lord, E. Meijering

Computer Methods and Programs in Biomedicine, vol. 285, October 2026, p. 109470

DOI

Background: Accurate cell instance segmentation is essential for analyzing morphology, phenotypes, and dynamics in biomedical research. Challenges such as dense cell populations, blurred boundaries, and overlapping structures hinder reliable segmentation, and deep learning models remain constrained by the scarcity of fully annotated datasets.

Methods: We present mCellSeg, a dataset of 200 expert-annotated microscopy images containing approximately 16,000 cells from HEK-293T and HUVEC lines, covering diverse morphologies and confluency levels. Utilizing this dataset, we developed mSAMUNet, a hybrid neural network that integrates the Segment Anything Model (SAM) with a multiscale U-Net-inspired encoder. This architecture combines the global context modeling of Transformers with the local detail extraction of CNNs, while multiscale branches enhance performance on cells of varying sizes. We benchmarked mSAMUNet against U-Net, StarDist, SAM, and microSAM across four datasets using five-fold cross-validation.

Results: mSAMUNet achieved superior performance across all datasets and metrics, including F1 score, SA50, SA75, and mean SA. On the mCellSeg dataset with dense and blurred cell boundaries, mSAMUNet outperformed microSAM with an F1 score of 0.7071 versus 0.6994. On the NeurIPS22 dataset, it achieved an F1 score of 0.8675 compared to 0.8483 for microSAM. U-Net and StarDist performed moderately, while SAM was the weakest overall. These results underscore the effectiveness of combining CNN-based multiscale encoders with Transformer-based models for biomedical image segmentation.

Conclusion: mSAMUNet provides a robust and accurate solution for microscopy cell instance segmentation, surpassing state-of-the-art methods across multiple datasets. Together with the mCellSeg dataset, this work delivers valuable resources for advancing automated cell analysis with applications in drug discovery, disease modeling, and high-throughput biomedical research.


Copyright © 2026 the authors. Published version © 2026 Elsevier. Personal use of this material is permitted. However, permission to reprint or republish this material for advertising or promotional purposes or for creating new collective works for resale or redistribution to servers or lists, or to reuse any copyrighted component of this work in other works, must be obtained from the copyright holder.