Abstract Contrastive learning, which aims to capture general representation from unlabeled images to initialize the medical analysis models, has been proven effective in alleviating the high demand for expensive annotations. Current methods mainly focus on instance-wise comparisons to learn the global discriminative features, however, pretermitting the local details to distinguish tiny anatomical structures, lesions, and tissues. To address this challenge, in this paper, we propose a general unsupervised representation learning framework, named local discrimination (LD), to learn local discriminative features for medical images by closely embedding semantically similar pixels and identifying regions of similar structures across different images. Specifically, this model is equipped with an embedding module for pixel-wise embedding and a clustering module for generating segmentation. And these two modules are unified through optimizing our novel region discrimination loss function in a mutually beneficial mechanism, which enables our model to reflect structure information as well as measure pixel-wise and region-wise similarity. Furthermore, based on LD, we propose a center-sensitive one-shot landmark localization algorithm and a shape-guided cross-modality segmentation model to foster the generalizability of our model. When transferred to downstream tasks, the learned representation by our method shows a better generalization, outperforming representation from 18 state-of-the-art (SOTA) methods and winning 9 out of all 12 downstream tasks. Especially for the challenging lesion segmentation tasks, the proposed method achieves significantly better performances.
Introduction
Deep learning in medicine is notoriously "data-hungry," requiring vast amounts of expert-annotated images for tasks like vessel segmentation or tumor identification. While self-supervised contrastive learning has emerged as a way to pre-train models on unlabeled data, most current methods are instance-wise. They treat an entire image as a single class, which helps the model learn global features but ignores the tiny, local details—like lesions or specific tissues—that are critical for medical diagnosis.
Existing "local" methods often rely on image registration, which fails when patients have different anatomy or severe deformations. The proposed Local Discrimination (LD) framework seeks to learn these local details automatically across different patients and even different imaging modalities (e.g., X-rays vs. Fundus photos) without needing manual labels or perfect alignment.
The Local Discrimination (LD) Framework
The LD framework employs an "evolutionary" training strategy to capture fine-grained medical features:
- Patch Discrimination (Warm-up): The model starts by treating small image patches as individual classes. It uses Hypersphere Mixup—interpolating between real patches to create "virtual" ones—to ensure the feature space is smooth and generalizes well.
- Region Discrimination (Refinement): Once the model understands patches, it moves to clustering. It identifies semantically similar pixels across different images and groups them into regions. A novel Region Discrimination Loss unifies an embedding module (mapping pixels to vectors) and a clustering module (generating segmentations) in a mutually beneficial loop.
Additionally, the framework incorporates Center-Sensitive Pooling for landmark localization, forcing the model to focus on the center of a patch to avoid distraction from nearby edges. It also supports Shape-Guided Transfer, allowing the model to transfer structural knowledge (like vessel shapes) across different imaging modalities.
Experimental Evaluation
The researchers evaluated LD using massive public datasets, including Kaggle DR (35k fundus images) and ChestX-ray8 (112k X-ray images) for pre-training. Downstream evaluations spanned 12 tasks across fundus and X-ray modalities, including vessel, lung, heart, and lesion segmentation.
Key Results
- Superior Generalization: The LD-trained representation outperformed 18 state-of-the-art (SOTA) methods on 9 out of 12 downstream tasks.
- Quantitative Gains: Compared to training from scratch, LD improved the mean Dice Similarity Coefficient (DSC) by 5.79% for fundus tasks and 3.68% for chest X-ray tasks.
- Lesion Detection: The method showed significant improvements in challenging tasks like segmenting hard exudates (+1.16%) and pneumothorax (+2.17%), where local detail is paramount.
- Data Efficiency: The model achieved better results with only 40-60% of the training data compared to models trained from scratch on 100% of the data.
Conclusion
Local Discrimination (LD) addresses a critical gap in medical self-supervised learning by shifting focus from global instances to local anatomical structures. By exploiting intra-modality consistency and employing an evolutionary training strategy, the model learns robust features that excel in one-shot landmark localization and complex segmentation tasks. Future work will explore adaptive hyperparameter tuning and meta-learning to further enhance flexibility across diverse clinical environments.
Summary updated