Unsupervised Learning of Local Discriminative Representation for Medical Images

Huai Chen, Jieyu Li, Renzhen Wang, Yijie Huang, Fanrui Meng, Deyu Meng, Qing Peng, Lisheng Wang

TL;DR

This paper introduces a novel unsupervised framework that learns local discriminative representations for medical images, moving beyond standard methods that only focus on global, image-level features. By combining pixel-wise embedding with a clustering branch guided by topological priors (like the expected shape of a lung or a blood vessel), the model achieves state-of-the-art performance on downstream segmentation and detection tasks without requiring massive labeled datasets.

What Problem Does This Paper Address?

Supervised learning is the "gold standard" for medical image analysis, but it is notoriously data-hungry and expensive due to the need for expert annotations. To bypass this, researchers often use unsupervised representation learning, specifically "instance discrimination."

However, standard instance discrimination (like MoCo or SimCLR) treats an entire image as a single point in a feature space. While this works for classifying a whole image (e.g., "Is this a cat?"), it fails in medical imaging where the most important information is local—such as the specific branch of a retinal vessel or the boundary of a lesion. Global features wash out these details. The authors aim to bridge this gap by learning features that are discriminative at the pixel level, allowing the model to understand the "context" of local regions.

Methods

The authors propose a dual-branch architecture following a U-Net-style backbone:

  1. Embedding Branch: Projects every pixel into a low-dimensional hypersphere. The goal here is "dispersion": dissimilar pixels (based on their context) should be pushed far apart, while similar pixels should cluster together.
  2. Clustering Branch: Generates "pseudo-segmentations" by classifying pixels into $M$ clusters.

The Innovation: Mutual Benefit & Priors These two branches are trained simultaneously. The embedding branch helps the clustering branch find distinct regions, while the clustering branch provides a structure that organizes the embedding space.

To ensure these clusters correspond to actual anatomical structures (and aren't just random noise), the authors introduce Prior-guided Anatomical Structure Clustering. They use adversarial learning (a discriminator) to force the pseudo-segmentations to match "topological priors." These priors can be:

  • Simulated masks: Simple geometric shapes (like ellipses for the optic disk).
  • Cross-modality masks: Using vessel annotations from one imaging type (like OCTA) to guide another (like Fundus).
  • Real data: Using a small set of existing labels as a structural template.

The network is initialized using Patch Discrimination, an improvement over instance discrimination that forces the model to recognize local patches under various augmentations and "mixup" interpolations.

Datasets

The model was pre-trained and evaluated across several diverse medical imaging datasets:

  • Pre-training: Kaggle Diabetic Retinopathy (35k fundus images) and ChestX-ray8 (112k X-ray images).
  • Downstream Tasks (Fundus):
    • Vessel Segmentation: DRIVE, STARE, CHASE_DB1.
  • Optic Disk/Cup: Drishti-GS, IDRID.
  • Lesion Detection: Haemorrhages and Hard Exudates from IDRID.
  • Downstream Tasks (X-ray): Lung segmentation using the NLM dataset.

Key Insights and Ideas

  • Local > Global: For tasks like segmentation, learning that "this pixel looks like a vessel" is far more valuable than learning "this image is a retina." The local approach captures the fine-grained texture and geometry essential for clinical tasks.
  • Topological Priors as Weak Supervision: You don't need a pixel-perfect label for every training image. If the model knows that a "lung" generally looks like two large lobes, it can use that topological "hint" to organize its unsupervised clusters into meaningful anatomical structures.
  • Adversarial Refinement: By using a GAN-like discriminator to compare pseudo-masks to priors, the model learns the style and shape of anatomy without needing a direct 1-to-1 mapping for every training instance.

Key Results

The proposed "LD" (Local Discrimination) method consistently outperformed both "Random" initialization and existing state-of-the-art unsupervised methods (Wu et al. and Ye et al.):

  • Generalization: On 9 different downstream tasks, the LD-initialized models showed significant gains in Dice-Sørensen Coefficient (DSC). For example, it improved Optic Cup segmentation by 11.54% over training from scratch.
  • Beating Supervised Pre-training: In several cases (like retinal vessel segmentation on DRIVE and STARE), the unsupervised LD method actually outperformed standard supervised pre-training. This suggests that local unsupervised features are more "transferable" than features learned for a specific global classification task.
  • Zero-Shot Clustering: Using only topological priors and no labels for the target images, the model successfully clustered the fovea (mean distance error of 7.63 pixels) and lungs (81.20% DSC).

Limitations and Future Work

  • Initialization Sensitivity: The authors note that it is difficult to train the clustering and embedding branches from scratch simultaneously. They require a "patch discrimination" pre-training phase to provide a stable starting point.
  • Prior Dependency: The quality of the anatomical clustering depends on the relevance of the topological prior. If the prior is too simple or inaccurate, the clustering may struggle with complex pathologies.
  • Future Directions: The authors suggest that this framework could be extended to 3D medical data (like CT or MRI) where local context and topological priors (like the shape of an organ) are even more structured.

Summary updated

Abstract

Local discriminative representation is needed in many medical image analysis tasks such as identifying sub-types of lesion or segmenting detailed components of anatomical structures. However, the commonly applied supervised representation learning methods require a large amount of annotated data, and unsupervised discriminative representation learning distinguishes different images by learning a global feature, both of which are not suitable for localized medical image analysis tasks. In order to avoid the limitations of these two methods, we introduce local discrimination into unsupervised representation learning in this work. The model contains two branches: one is an embedding branch which learns an embedding function to disperse dissimilar pixels over a low-dimensional hypersphere; and the other is a clustering branch which learns a clustering function to classify similar pixels into the same cluster. These two branches are trained simultaneously in a mutually beneficial pattern, and the learnt local discriminative representations are able to well measure the similarity of local image regions. These representations can be transferred to enhance various downstream tasks. Meanwhile, they can also be applied to cluster anatomical structures from unlabeled medical images under the guidance of topological priors from simulation or other structures with similar topological characteristics. The effectiveness and usefulness of the proposed method are demonstrated by enhancing various downstream tasks and clustering anatomical structures in retinal images and chest X-ray images.
BibTeX
@inproceedings{chen2021unsupervised,
  author = {Huai Chen and Jieyu Li and Renzhen Wang and Yijie Huang and Fanrui Meng and Deyu Meng and Qing Peng and Lisheng Wang},
  title = {{Unsupervised Learning of Local Discriminative Representation for Medical Images}},
  booktitle = {IPMI},
  year = {2021},
  doi = {10.1007/978-3-030-78191-0\_29},
}
Figure