Lightweight open-source fine-tuning of SAM2 enables domain-specific microscopy segmentation
Bhat, E.; Selvan, S.; Okekenwa, S.; Dechkounian, Z.; Lin, V.; Nakano, M.; Saha, M.; Song, Y.
Show 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
Matching journals
The top 5 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- STAIG: Spatial Transcriptomics Analysis via Image-Aided Graph Contrastive Learning for Domain Exploration and Alignment-Free Integration 95%
- Robust phenotyping of highly multiplexed tissue imaging data using pixel-level clustering 95%
- Topaz-Denoise: general deep denoising models for cryoEM and cryoET 95%
Similar papers in this journal
Similar papers in this journal
- Deep neural network automated segmentation of cellular structures in volume electron microscopy 96%
- CLEMSite, a software for automated phenotypic screens using light microscopy and FIB-SEM 94%
- Implicit Laplacian of Enhanced Edge: An Unguided Algorithm for Accurate and Automated Quantitative Analysis of Cytoskeletal Images 92%
Similar papers in this journal
- NucVerse3D: Generalizable 3D nuclear instance segmentation across heterogeneous microscopy modalities 95%
- Test-time augmentation for deep learning-based cell segmentation on microscopy images 95%
- Pomegranate: 2D segmentation and 3D reconstruction for fission yeast and other radially symmetric cells 95%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.