Cluster-Guided Semi-Supervised Domain Adaptation for Imbalanced Medical Image Classification

Shota Harada, Ryoma Bise, Kengo Araki, Akihiko Yoshizawa, Kazuhiro Terada, Mariyo Kurata, Naoki Nakajima, Hiroyuki Abe, Tetsuo Ushiku, Seiichi Uchida

TL;DR

This paper introduces a cluster-guided semi-supervised domain adaptation (SSDA) framework designed specifically for the heavy class imbalances common in medical imaging. By using a novel "weakly-supervised clustering" pipeline to create high-purity clusters in the target domain, the method effectively bridges the gap between different clinical environments (e.g., different hospitals) even when labeled data is extremely scarce.

What Problem Does This Paper Address?

In medical AI, a model trained at one hospital (the source domain) often performs poorly at another (the target domain) due to differences in equipment, staining protocols, and patient demographics—a phenomenon known as "domain shift."

Semi-supervised domain adaptation (SSDA) attempts to fix this by using a large amount of unlabeled data and a tiny amount of labeled data from the target hospital. However, medical datasets are notoriously class-imbalanced; for instance, healthy tissue samples often vastly outnumber cancerous ones. Existing SSDA methods tend to fail here because they inadvertently bias their predictions toward the majority class, leading to poor performance on the critical, rarer classes.

Methods

The authors propose a multi-step pipeline that uses the few labeled target samples as "anchors" to organize the unlabeled target data. The process is iterative and consists of two main phases:

1. Weakly-Supervised Clustering

To ensure that clusters contain only one type of tissue (high purity), the authors go beyond standard k-means:

  • Initial Clustering: A standard k-means pass on all target samples.
  • Soft-Constrained Refinement: The algorithm uses the few available labels to create "must-link" (samples with the same label should be together) and "cannot-link" (samples with different labels must be separated) constraints. They use a "soft" approach to allow for some flexibility, preventing distant samples from forcing low-purity clusters.
  • Proportion-based Splitting: If a cluster is significantly larger than what the known class proportions would suggest, it is split into smaller, potentially purer clusters.

2. Cluster-Guided Adaptation

Once high-purity clusters are established, the model is trained using a specialized objective function. This loss function acts like a magnet: it pulls unlabeled samples toward labeled samples within the same cluster while pushing them away from samples in different clusters. This helps the model learn a representation that is robust to the differences between hospitals.

Fig. 1. The proposed semi-supervised domain adaptation method. This figure assumes a two-class task (◦and ×) for simplicity, although the method can deal with a C-class task (C ≥2). (a) Initial sample distribution in semi-supervised domain adaptation scenario. (b) Weakly-supervised clustering of target domain samples. Two refinement steps are essential to increase cluster purity. (c)-(d) The main domain adaptation steps using the clustering result. The steps (b)-(d) are repeated until convergence.

Datasets

The researchers evaluated their method on two distinct types of data:

  • Digits Datasets: MNIST, USPS, and SVHN. To simulate medical conditions, they undersampled these datasets according to a Pareto distribution to create artificial class imbalance.
  • Cervical Cancer WSI Dataset: Real-world clinical data consisting of Whole Slide Images (WSIs) from two different hospitals. The dataset is naturally and severely imbalanced, categorized into three stages: Non-Neoplasm (146,524 samples), LSIL (5,646 samples), and HSIL (11,707 samples).

Key Insights and Ideas

  • Purity is Paramount: In imbalanced scenarios, "naive" clustering often lumps minority class samples into majority class clusters. The paper’s core insight is that domain adaptation only works if you can first guarantee that your clusters are "pure."
  • Labels as Anchors: Rather than trying to guess labels for all data (pseudo-labeling), the method uses the few ground-truth labels in the target domain as fixed points to guide the representation of the surrounding unlabeled data.
  • Robustness to "Bias toward Majority": By splitting clusters based on class proportions, the method prevents the majority class from "swallowing" the features of minority classes during the adaptation process.

Key Results

The proposed method achieved state-of-the-art (SOTA) results across both synthetic and real-world benchmarks:

  • Digits: The method outperformed existing SSDA techniques like MME and CDAC, particularly in the average mean Dice-coefficient (mDice) across different domain pairs.
  • Cervical Cancer Classification: On the real-world WSI dataset, the proposed method achieved an mDice of 0.5897, significantly higher than the baseline S+T (0.5617) and other adaptation methods like DANN (0.5128).
  • Minority Class Performance: Crucially, the method excelled at identifying the rare LSIL class (MiDice), reaching 0.1937 compared to just 0.0980 for CDAC.
Qualitative comparison showing how the proposed method (right) correctly identifies tissue types compared to the Ground Truth (GT) and competing MME method.

Limitations and Future Work

The authors identify one primary limitation: the method assumes that the class proportions in the small labeled target set are representative of the entire unlabeled target domain. If the labeled samples are accidentally biased (e.g., if the few labeled samples only represent a specific subtype of a disease), the proportion-based splitting might fail.

Future work will focus on developing strategies to automatically select labeled samples that better cover the full variation of the target domain, further increasing robustness.

Summary updated

BibTeX
@inproceedings{harada2023cluster,
  author = {Shota Harada and Ryoma Bise and Kengo Araki and Akihiko Yoshizawa and Kazuhiro Terada and Mariyo Kurata and Naoki Nakajima and Hiroyuki Abe and Tetsuo Ushiku and Seiichi Uchida},
  title = {{Cluster-Guided Semi-Supervised Domain Adaptation for Imbalanced Medical Image Classification}},
  booktitle = {ISBI},
  year = {2023},
}
Figure