Lightweight open-source fine-tuning of SAM2 enables domain-specific microscopy segmentation
Etash Bhat, Sharvaa Selvan, Sonia Okekenwa, Zareh Dechkounian, Vivian LiniD, Mariko Nakano-MiyatakeiD, Mitul SahaiD, Yuyu SongiD
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. HighlightsO_LILightweight fine-tuning with no added architectural complexity. C_LIO_LIHigh segmentation accuracy (Dice/Jaccard scores) achieved with small datasets. C_LIO_LICross-domain generalization across tissue and cell imaging with biologically informed post-processing. C_LIO_LIComparable or superior performance to widely used tools (Cellpose, Imaris, ilastik) at substantially lower computational cost. C_LIO_LIOpen-source and executable in a single Colab notebook, ensuring reproducibility and accessibility for non-computational users. C_LIO_LITurnkey adaptability, allowing researchers to transform raw microscopy data into fine-tuned SAM2 models with minimal input. C_LI
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- CellSAM: A Foundation Model for Cell Segmentation
Uriah Israel, Markus Marks, … David Van Valen·bioRxiv·Nov 17, 2023
- Segment Anything for Microscopy
Anwai Archit, Luca Freckmann, … Constantin Pape·Nature MethodsPeer-reviewed·Feb 12, 2025
- SAMCell: Generalized Label-Free Biological Cell Segmentation with Segment Anything
Alexandra D. VandeLoo, Nathan J. Malta, … Craig R. Forest·PLoS ONEPeer-reviewed·Sep 8, 2025
- Cellpose-SAM: superhuman generalization for cellular segmentation
Marius Pachitariu, Michael Rariden, Carsen Stringer·bioRxiv·Apr 28, 2025
- DINOSim: Zero-Shot Object Detection and Semantic Segmentation on Microscopy Images
Aitor González-Marfil, Estibaliz Gómez‐de‐Mariscal, Ignacio Arganda‐Carreras·Microscopy Research and TechniquePeer-reviewed·Oct 28, 2026
- Cellpose: a generalist algorithm for cellular segmentation
Carsen Stringer, Tim Wang, … Marius Pachitariu·Nature MethodsPeer-reviewed·Dec 14, 2020