Instance-Aware Pseudo-Labeling and Class-Focused Contrastive Learning for Weakly Supervised Domain Adaptive Segmentation of Electron Microscopy

Shan Xiong, Jiabao Chen, Ye Wang, Jialin Peng

TL;DR

This paper introduces a novel Weakly Supervised Domain Adaptation (WDA) framework for segmenting mitochondria in electron microscopy (EM) images. By leveraging sparse point annotations (which require 95% less effort than pixel-wise labels) and a multitask learning approach that combines instance-aware pseudo-labeling with class-focused contrastive learning, the authors achieve performance nearly identical to fully supervised models while significantly outperforming existing unsupervised methods.

What Problem Does This Paper Address?

Segmenting subcellular structures like mitochondria is essential for neuroscience, but it faces two major hurdles:

  1. The Annotation Bottleneck: Creating pixel-perfect masks for thousands of mitochondria is prohibitively expensive and requires expert knowledge.
  2. Domain Shift: A model trained on one type of tissue or microscope (the "source domain") often fails when applied to another (the "target domain") due to variations in image style, noise, and biological morphology.

While Unsupervised Domain Adaptation (UDA) tries to fix this without any labels in the new domain, its accuracy is often too low for high-stakes biological research. This paper tackles Weakly Supervised Domain Adaptation (WDA), specifically using "point labels" (clicking the center of a few mitochondria) to bridge the performance gap with minimal human effort.

Methods

The authors propose a multitask framework that performs both segmentation and center detection simultaneously. The core innovations include:

  • Instance-Aware Pseudo-Labeling (IPL): Traditional methods filter "pseudo-labels" (the model's own guesses) pixel-by-pixel based on confidence scores. This often leads to fragmented or biased results. Instead, this paper uses the detection head to identify reliable "instance centers" and then selects the corresponding connected regions in the segmentation map. This ensures the pseudo-labels are semantically meaningful and diverse.
  • Class-Focused Contrastive Learning: The model learns to map features into a space where mitochondria look similar across different domains, while remaining distinct from the background. Crucially, they focus on "foreground prototypes"—since mitochondria look relatively similar across datasets, but "background" (everything else in a cell) varies wildly and can confuse the model.
  • Cross-Task Teaching: The detection task provides high-level guidance (where the objects are) to the segmentation task, while the segmentation task provides structural details back to the detection head.

Datasets

The researchers evaluated their method on three widely used 3D EM datasets:

  • EPFL Hippocampus: Mouse brain tissue captured via FIB-SEM.
  • MitoEM-R (Rat Cortex): Large-scale SEM data from a rat's primary visual cortex.
  • MitoEM-H (Human Temporal Lobe): SEM data from human brain tissue.

They tested several "transfer" scenarios, such as training on mouse data and adapting to human data (MitoEM-R $\to$ MitoEM-H).

Key Insights and Ideas

  • Points > Pixels for Efficiency: Annotating a center point reduces the time required for labeling by over 95% compared to drawing boundaries, yet provides enough "anchor" information to stabilize domain adaptation.
  • The Background is the Enemy: In EM images, the "background" contains various other organelles that look different in every dataset. By focusing contrastive learning specifically on the foreground (mitochondria), the model avoids getting distracted by domain-specific background noise.
  • Detection as a Filter: Using a detection head to validate segmentation guesses (IPL) acts as a powerful "sanity check," preventing the model from reinforcing its own errors during self-training.

Key Results

The proposed method significantly narrowed the gap between weakly supervised and fully supervised (the "Oracle") performance:

  • Near-Oracle Performance: On the EPFL $\to$ MitoEM-R task, the method achieved a 92.6% Dice score, trailing the fully supervised upper bound (93.6%) by only 1%.
  • Superiority over UDA: It outperformed the best unsupervised methods (like DA-ISC and CAFA) by a wide margin (e.g., +4% to +10% in Dice score).
  • Robustness: The model remained effective even when the provided point labels were slightly off-center (noises up to 15 pixels), proving it doesn't require "perfect" human clicks to succeed.

Limitations and Future Work

  • Dependency on Source Data: The current framework still requires a fully labeled "source" dataset to start with. In many medical contexts, sharing raw data between institutions is difficult due to privacy.
  • Future Direction: The authors suggest exploring Source-Free Domain Adaptation, where the model adapts to a new domain using only a pre-trained model and weak target labels, without needing access to the original source images.

Summary updated

BibTeX
@article{xiong2026instance,
  author = {Shan Xiong and Jiabao Chen and Ye Wang and Jialin Peng},
  title = {{Instance-Aware Pseudo-Labeling and Class-Focused Contrastive Learning for Weakly Supervised Domain Adaptive Segmentation of Electron Microscopy}},
  journal = {Neuroinformatics},
  year = {2026},
  doi = {10.1007/s12021-026-09786-1},
}
Figure