Introduction
In the field of medical artificial intelligence, domain shift remains a significant barrier to the deployment of robust diagnostic tools. Domain shift occurs when a model trained on data from one source (the source domain) fails to generalize to a new environment (the target domain) due to differences in equipment, lighting, or patient demographics. For instance, a model trained on endoscopic images from one hospital may struggle when applied to images from a different facility using different camera hardware.
While Unsupervised Domain Adaptation (UDA) aims to bridge this gap without target labels, it often falters when class proportions differ between domains. If a source dataset is balanced but the target dataset is heavily skewed toward a specific disease stage, standard UDA techniques tend to misclassify target samples to match the source distribution. Semi-Supervised Domain Adaptation (SSDA) can mitigate this, but it requires expensive manual annotation of target data. This paper proposes a novel alternative: using known class proportions as a form of weak supervision to guide the adaptation process.
Methodology: Proportion-Constrained Pseudo-Labeling
The authors introduce a two-stage pipeline designed to leverage statistical metadata—specifically, the expected distribution of classes in the target domain—to improve model accuracy.
1. Source Pre-training
The process begins with standard supervised training. A feature extractor and a classifier are trained on the labeled source domain to establish a baseline representation of the data.
2. Global Constrained Assignment
The core innovation lies in how pseudo-labels are assigned to the target dataset. Traditional methods often use a "greedy" approach, assigning labels based on the model's highest confidence for individual images. This frequently leads to biased results if the model is systematically uncertain about specific classes.
Instead, the authors frame pseudo-labeling as a global optimization problem. They assign labels to the entire target set simultaneously by minimizing the distance between target features and source class centroids, subject to a strict constraint: the final distribution of assigned labels must match the pre-defined target proportions.
Mathematically, while this resembles a complex integer programming problem, the authors demonstrate that the constraint matrix is "totally unimodular." This allows the problem to be relaxed into a Linear Programming (LP) task, which can be solved efficiently even for large datasets.
Experimental Evaluation
The method was evaluated using two primary endoscopic datasets focused on Ulcerative Colitis (UC) severity, graded on the Mayo scale (0 to 3):
- LIMUC: A public dataset containing 11,276 images.
- Private Dataset: A collection of 10,265 images from a separate institution.
These datasets presented a significant challenge due to their differing class distributions; for example, Mayo 3 (severe) cases accounted for 7.7% of the LIMUC dataset but only 1.9% of the Private dataset. Preliminary experiments were also conducted on the SVHN and MNIST datasets to validate the approach on standard benchmarks.
Key Insights and Results
Superiority Over Semi-Supervised Methods
The proposed weakly-supervised method consistently outperformed state-of-the-art SSDA techniques. In the "LIMUC to Private" adaptation task, the method achieved an Accuracy of 0.714. This surpassed the best semi-supervised competitor (0.668), despite the latter having access to manual labels for 5% of the target data (approximately 400 images).
Robustness to Imbalance and Noise
Because medical datasets are often imbalanced, the authors prioritized Macro-F1 scores. Their method showed substantial improvements over standard adversarial adaptation (such as ADDA), which often fails to account for class mismatches. Furthermore, the researchers found the model to be surprisingly robust to "noisy" proportions. Even when the provided class distribution estimates were slightly inaccurate, the method maintained its performance advantage over traditional UDA and SSDA approaches.
Feature Alignment
Visual analysis via t-SNE embeddings confirmed that the proportion-constrained approach effectively pulls source and target distributions together. While initial pre-training leaves the two domains in distinct clusters, the global optimization step aligns the target features with the appropriate source centroids based on the statistical "recipe" provided by the class proportions.
Conclusion and Future Work
This research demonstrates that "weak" statistical information—such as the prevalence of a disease in a specific region—can be a more effective supervisory signal than a small number of "strong" individual labels. By treating domain adaptation as a constrained optimization problem, the authors provide a scalable and efficient solution for medical imaging tasks where labels are scarce but population statistics are known.
Future research directions include modeling the potential noise in provided proportions to further increase robustness and integrating this constrained labeling approach into broader self-supervised learning frameworks.
Summary updated