Abstract
Cellular recognition in digital pathology is often hindered by domain shifts—variations in tissue types and staining protocols that degrade model performance. This paper proposes a novel unsupervised domain adaptation (UDA) framework centered on "contextual correspondences." By leveraging the inherent relationships between nuclei and their surrounding tissue, as well as the spatial patterns within nuclear communities, the framework establishes domain-invariant biological rules. Our approach, which incorporates self-supervised surrogate tasks and a dual-branch distillation architecture, significantly outperforms existing state-of-the-art methods on diverse datasets including TCGA and PanNuke.
Introduction
Identifying and segmenting cell nuclei is a foundational task in digital pathology. However, a major hurdle for clinical deployment is the "domain shift" problem: a model trained on breast tissue often fails when applied to thyroid samples or different staining protocols. Most current models focus on instance-level morphology—size, shape, and texture—which are highly sensitive to these shifts. Furthermore, certain cell types, such as neoplastic and epithelial cells, can appear morphologically identical in isolation.
We propose that the missing piece in robust cellular recognition is biological context. Cells do not exist in a vacuum; their identities are intrinsically linked to their surrounding tissue structures and the communities of neighboring cells. By shifting the focus from appearance to contextual correspondence, we can bridge the gap between domains.
Methodology
Our framework exploits two types of correspondences to learn domain-invariant features:
1. Nucleus-Tissue Correspondence
We utilize a "counterfactual masking" strategy where the model must restore the pixel values of masked nuclei based solely on the surrounding background tissue. This surrogate task forces the network to learn the "pathological composition principle"—the domain-invariant rules governing which cells appear in which tissue environments.
2. Nuclear Cluster Correspondence
Recognizing the "community nature" of cells, we use a Vision Transformer (ViT) to predict the features of a masked nucleus based on its neighbors. This captures spatial patterns, such as epithelial cells clustering in rings, which serve as discriminative markers more robust than individual visual attributes.
Self-adaptive Dynamic Distillation (SDD)
To integrate these insights, we employ a dual-branch architecture combining a standard CNN (for local morphology) and a ViT (for global context). The system uses predictive entropy to estimate uncertainty: it relies on the CNN for isolated cells and leans on the ViT's contextual understanding for cells within dense clusters.
Experimental Results
The framework was evaluated on several challenging cross-domain scenarios, including training on Breast tissue and testing on Testis, Thyroid, and Bile-duct samples.
Quantitative Performance
The proposed method achieved a substantial margin over previous state-of-the-art (SOTA) methods like DA-RCNN and BAFA. In the Breast $\rightarrow$ Testis setting, the average F-score improved from 0.409 (source-only) to 0.589, significantly higher than the next best SOTA method (0.514). The model was particularly successful at distinguishing between neoplastic and epithelial cells—two types notoriously difficult to tell apart by morphology alone under domain shifts.
Qualitative Analysis
Qualitative results show that the model produces much cleaner segmentations and more accurate classifications across diverse organs compared to competing methods.
Conclusion
By leveraging contextual correspondences as a domain-invariant anchor, this work provides a robust solution for adaptive cellular recognition. The integration of nucleus-tissue and nuclear cluster relationships allows the model to maintain high performance across varying clinical settings and tissue types. Future work will investigate even more complex scenarios where domain shifts and changes in class distributions occur simultaneously.
Summary updated