UniSPAC: A Unified Segmentation Framework for Proofreading and Annotation in Connectomics

Juntao Deng, Jiamin Wu, Chen Chang-min, Qihao Zheng, Zhaoxiang Zhang, Jingpeng Wu, Wanli Ouyang, Chunfeng SongbioRxiv 2024

Abstract

Reconstructing dense neuronal connections from volume electron microscopy (vEM) images is a critical challenge in neuroscience. While automated methods have improved, they still suffer from a massive "proofreading" bottleneck and struggle to generalize across species. We present UniSPAC, a unified framework that integrates interactive 2D segmentation with automated 3D tracking. UniSPAC-2D allows for real-time error correction via point-based prompts, while UniSPAC-3D propagates these corrections across volumes. By incorporating an online learning strategy (AGEM), UniSPAC adapts to novel species with high efficiency, achieving 47x better performance than the Segment Anything Model (SAM) and surpassing state-of-the-art cross-species benchmarks.

Introduction

Mapping the intricate wiring of the brain—connectomics—requires imaging at nanometer resolution using volume electron microscopy (vEM). However, the sheer density of these datasets presents a monumental task for reconstruction. Even with modern AI, errors such as "merges" (incorrectly joining two neurons) and "splits" (breaking one neuron into two) are common. Correcting these errors manually is prohibitively slow; for instance, proofreading a single fruit fly brain is estimated to require 33 person-years of labor.

Beyond the labor cost, existing models are often "specialists," trained on specific datasets (e.g., Drosophila) and failing when applied to others (e.g., Zebra Finch). Researchers are currently forced to use fragmented tools for annotation, training, and proofreading. UniSPAC addresses these challenges by unifying these processes into a single, interactive workflow.

The UniSPAC Framework

UniSPAC (Unified Segmentation framework for Proofreading and Annotation in Connectomics) consists of three core innovations designed to streamline the reconstruction pipeline.

UniSPAC-2D: Interactive Segmentation

Unlike general-purpose models like the Segment Anything Model (SAM), which utilizes Vision Transformers (ViT), UniSPAC-2D employs a U-Net architecture optimized for the specific textures of EM data. It processes human "point prompts" by converting them into spatial Prompt Maps. This design allows the model to handle multiple dense neuronal instances simultaneously in a single pass, a task where SAM often struggles due to the high density of vEM images.

UniSPAC-3D: Automated Tracing

To minimize manual intervention, UniSPAC-3D acts as a tracking module. Once a user provides or corrects a 2D segmentation for a "seed" slice, the model automatically propagates that mask across consecutive slices in a 3D block. This significantly reduces the number of clicks required to reconstruct long-range neuronal structures.

Online Learning via AGEM

To tackle the cross-species generalization problem, UniSPAC utilizes an Averaged Gradient Episodic Memory (AGEM) strategy. As researchers proofread and correct errors on a new species, the model learns from those corrections in real-time. This "online learning" allows the model to adapt to new visual patterns without "catastrophic forgetting" of its previous training on other species.

Experimental Results

The framework was evaluated using high-resolution (8nm isotropic) vEM data from Drosophila (Fruit Fly) and Zebra Finch.

Efficiency and Accuracy

UniSPAC-2D demonstrated a massive leap in efficiency. For a standard 2µm Drosophila volume, SAM would require approximately 95 interactions per slice to achieve full segmentation. In contrast, UniSPAC-2D reached the same level of accuracy with just one automatic pass and two interactive corrections—a 47x increase in efficiency.

Cross-Species Generalization

When applied to Zebra Finch data without prior training, UniSPAC-2D* outperformed the previous state-of-the-art model, ACRLSD, in terms of Variation of Information (VOI). Furthermore, the AGEM strategy allowed the model to adapt to the Zebra Finch dataset using only 58.2% of the training time required by standard cumulative learning methods, while maintaining near-identical accuracy.

Key Insights

A critical discovery in the development of UniSPAC was the role of regularization. The authors introduced a specific loss function term that penalizes the model for predicting masks on neuron boundaries (affinities). This addition significantly reduced "merge" errors, which are historically the most time-consuming for humans to fix. By turning proofreading into an "active labeling" process, UniSPAC ensures that every human correction directly improves the underlying model.

Conclusion and Future Work

UniSPAC represents a significant step toward a "foundation model" for connectomics. By unifying segmentation, proofreading, and annotation, it drastically reduces the human labor required for brain mapping. While the framework still requires human-in-the-loop verification, future work aims to integrate automated error detection tools (such as RoboEM) to further minimize manual oversight. Expanding the training data to a wider variety of organisms will continue to improve the framework's out-of-the-box performance across the diverse landscape of neuroscience research.

Summary updated

BibTeX
@misc{deng2024unispac,
  author = {Juntao Deng and Jiamin Wu and Chen Chang-min and Qihao Zheng and Zhaoxiang Zhang and Jingpeng Wu and Wanli Ouyang and Chunfeng Song and Wanli Ouyang and Wanli Ouyang and Chunfeng Song},
  title = {{UniSPAC: A Unified Segmentation Framework for Proofreading and Annotation in Connectomics}},
  year = {2024},
  doi = {10.1101/2024.11.27.625336},
  howpublished = {bioRxiv},
}
Figure