Lightweight open-source fine-tuning of SAM2 enables domain-specific microscopy segmentation
preprint
OA: closed
Abstract
Quantitation of structures is a critical step in analyzing images. Automated segmentation of biological samples remains a central challenge in microscopy, where variations in signal/noise, intensity, texture, and edges hinder accurate delineation of cellular and tissue structures. Adaptations of foundation models such as Segment Anything Model (SAM) remain computationally intensive and require large training datasets. Here, we introduce a lightweight, open-source Google Colab pipeline that enables efficient fine-tuning of SAM2 on domain-specific datasets without additional architectural layers or specialized hardware. By coupling mask-decoder fine-tuning with biologically informed post-processing, our framework achieves robust segmentation across diverse imaging modalities. Applied to hippocampal segmentation in brain images and single-cell segmentation in cell images, fine-tuned SAM2 demonstrates substantial gains of accuracy relative to basic SAM2 and matches leading tools. This work establishes a scalable and accessible paradigm for domain-specific adaptations of SAM2 in microscopy, lowering computational and data barriers to advanced image segmentation. Highlights Lightweight fine-tuning with no added architectural complexity. High segmentation accuracy (Dice/Jaccard scores) achieved with small datasets. Cross-domain generalization across tissue and cell imaging with biologically informed post-processing. Comparable or superior performance to widely used tools (Cellpose, Imaris, ilastik) at substantially lower computational cost. Open-source and executable in a single Colab notebook , ensuring reproducibility and accessibility for non-computational users. Turnkey adaptability , allowing researchers to transform raw microscopy data into fine-tuned SAM2 models with minimal input.
My notes (saved in your browser only)
Funding
- funders
- [{'doi': None, 'name': None, 'awards': ['AG072516']}, {'doi': None, 'name': 'Jack Satter Award', 'awards': []}, {'doi': None, 'name': None, 'awards': ['AARG']}, {'doi': None, 'name': None, 'awards': []}, {'doi': None, 'name': 'Healey Center ALS Young Scholar Award', 'awards': []}, {'doi': None, 'name': 'Mass General Hospital Mussallem Transformative Scholar Award in ALS Research', 'awards': []}]
Citation neighborhood (sparse)
Too few in-corpus citations on either side for a chart; here are the lists.
Cites (1)
References (22)
- CellSAM: A Foundation Model for Cell Segmentation via crossref
- doi:10.1007/978-1-60761-847-8 via crossref
- doi:10.1002/path.1658 via crossref
- doi:10.1093/ilar/ily007 via crossref
- doi:10.1177/03009858211040484 via crossref
- doi:10.3390/electronics12051199 via crossref
- doi:10.1038/nmeth.2019 via crossref
- doi:10.1016/j.neuroimage.2006.01.015 via crossref
- doi:10.1109/embc.2016.7591443 via crossref
- doi:10.1093/bioinformatics/btu302 via crossref
- doi:10.1093/bioinformatics/btn346 via crossref
- doi:10.1038/s41592-025-02595-5 via crossref
- doi:10.1038/s41592-020-01018-x via crossref
- doi:10.1038/s41592-019-0582-9 via crossref
- doi:10.1186/gb-2006-7-10-r100 via crossref
- doi:10.1038/s41592-025-02745-9 via crossref
- doi:10.1086/284927 via crossref
- doi:10.2307/1932409 via crossref
- doi:10.1038/s41592-020-0733-z via crossref
- doi:10.1007/978-3-319-67558-9_28 via crossref
- doi:10.1109/msp.2012.2204190 via crossref
- doi:10.30534/ijatcse/2020/175942020 via crossref
Source provenance
- crossref
- last seen: 2026-06-03T07:24:07.361903+00:00
- europepmc
- last seen: 2026-05-20T01:45:00.602351+00:00
- unpaywall
- last seen: 2026-07-13T06:45:44.122212+00:00