Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.11.08.687405

Lightweight open-source fine-tuning of SAM2 enables domain-specific microscopy segmentation

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

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Bhat, E., Selvan, S., Okekenwa, S., Dechkounian, Z., Lin, V., Nakano, M., Saha, M., Song, Y.. 2025-11-10. Lightweight open-source fine-tuning of SAM2 enables domain-specific microscopy segmentation. https://doi.org/10.1101/2025.11.08.687405

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Sequence context and partner availability specify divergent cell fates from a single transcription factor

Transcription factors drive the gene regulatory networks that control developmental transitions, yet which of their many targets a cell uses remains unresolved. Expressing Cebp, Cebp{beta} or Cebp{delta} identically, alone or with Oct4, Sox2, Klf4 and cMyc, gave four outcomes: adipocyte from fibroblasts and neural stem cells, trophectoderm from embryonic stem cells, and myeloid from B cells. Raising Cebp levels changed how many sites it reached, not which sequence it read: clustered motifs maintained somatic enhancers, while spillover onto low-copy sites created de novo enhancers carrying composites of Cebp and cell-type-restricted partners. In fibroblasts, Cebp also redistributed Oct4, Sox2 and Klf4 from early targets, blocking iPSC formation. Supplying the predicted partners rewrote the output: Spi1 redirected Cebp into parallel adipogenic and myeloid programs, via a transient PpargCD45 state using separate enhancers for each; TFAP2C abolished adipogenic conversion. Motif density and partner composites therefore assemble a factor's instructive output in the receiving cell.

cell biology↗

Tracking the conformational dynamics of single molecules in live cells; GTPase cycling in Cdc42 gradients and microclusters

The Rho family of GTPases play a critical role in many cellular processes by acting as molecular switches relying on conformational changes to transition between active and inactive states. The spatial distribution and kinetics of these conformational changes are complex and vary across the cell. We describe here biosensors based on environment-responsive fluorescent dyes, capable of reporting the conformational changes of individual GTPase molecules as they traffic within living cells (SPARC Cdc42 and SPARC Rac1, 'Single Particle Activation Reporter Constructs'). We use SPARC Cdc42 to determine the rates of different steps in GTPase regulation, activation/inactivation and membrane insertion, that together generate localized gradients of Cdc42 activity driving cell motility. The biosensors also revealed heterogeneously distributed clusters of Cdc42, the mechanisms of their activation, and potential roles in polarized motility.

cell biology↗

High-content screening identifies FDA-approved activators of mitophagy

Mitochondrial diseases are highly heterogeneous disorders caused by defects in oxidative phosphorylation, for which only limited therapeutic options are available. The elimination of dysfunctional mitochondria via mitophagy activation is an attractive strategy to treat several mitochondrial diseases, irrespective of the underlying genetic defect. To identify pharmacological activators of this pathway, we performed a high-content screening of 1,971 FDA-approved compounds using cellular reporters of TFEB nuclear translocation and mitophagy. This screening identified 294 compounds that promoted TFEB translocation, nine of which increased the number of mitolysosomes without compromising cell viability or damaging mitochondria. Among the selected compounds, Meptazinol and Ponatinib emerged as the top-ranked mitophagy inducers in fibroblasts from patients with complex I and IV deficiency, respectively, and were prioritised for further characterisation. However, they did not rescue the bioenergetic defect, suggesting that the stimulation of mitophagy per se is not sufficient to ameliorate the OXPHOS defect in mitochondrial diseases. Overall, our findings establish a scalable platform for the identification of pharmacological activators of TFEB and identify candidate compounds for therapeutic modulation of mitophagy.

cell biology↗