SAM4EM: Efficient memory-based two stage prompt-free segment anything model adapter for complex 3D neuroscience electron microscopy stacks

Uzair Shah, Marco Agus, Daniya Boges, Vanessa Chiappini, Mahmood Alzubaidi +5 more
4/30/2025
5 citations
cs.CV
transformer-attentionlora-peft-merging

Official code: Uzshah/SAM4EM (5 stars, Python, last commit 2025-06-09).

Abstract

We present SAM4EM, a novel approach for 3D segmentation of complex neural structures in electron microscopy (EM) data by leveraging the Segment Anything Model (SAM) alongside advanced fine-tuning strategies. Our contributions include the development of a prompt-free adapter for SAM using two stage mask decoding to automatically generate prompt embeddings, a dual-stage fine-tuning method based on Low-Rank Adaptation (LoRA) for enhancing segmentation with limited annotated data, and a 3D memory attention mechanism to ensure segmentation consistency across 3D stacks.

Show full abstract

We further release a unique benchmark dataset for the segmentation of astrocytic processes and synapses. We evaluated our method on challenging neuroscience segmentation benchmarks, specifically targeting mitochondria, glia, and synapses, with significant accuracy improvements over state-of-the-art (SOTA) methods, including recent SAM-based adapters developed for the medical domain and other vision transformer-based approaches. Experimental results indicate that our approach outperforms existing solutions in the segmentation of complex processes like glia and post-synaptic densities. Our code and models are available at https://github.com/Uzshah/SAM4EM.

View on arXivView PDF

Code Implementations(1)

Uzshah/SAM4EMOfficial100%

SAM4EM: Efficient memory-based two stage prompt-free segment anything model adapter for complex 3D neuroscience electron microscopy stacks

50Python, CudaApr 29, 20251 years ago

Similar Papers

Cite this paper

@article{shah2025samem,
  title  = {SAM4EM: Efficient memory-based two stage prompt-free segment anything model adapter for complex 3D neuroscience electron microscopy stacks},
  author = {Uzair Shah and Marco Agus and Daniya Boges and Vanessa Chiappini and Mahmood Alzubaidi and Jens Schneider and Markus Hadwiger and Pierre J. Magistretti and Mowafa Househ and Corrado Calı},
  year   = {2025},
  eprint = {2504.21544},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.21544v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.21544.svg)](https://codeofpaper.com/paper/2504.21544)

Discussion