Domain Adaptation for Ulcerative Colitis Severity Estimation Using Patient-Level Diagnoses

Takamasa Yamaguchi, Brian Kenji Iwana, Ryoma Bise, Shota Harada, Takumi Okuo, Kiyohito Tanaka, Kaito Shiku

Introduction

Accurate estimation of Ulcerative Colitis (UC) severity is a cornerstone of clinical gastroenterology, dictating treatment pathways and monitoring disease progression. While deep learning models have shown promise in automating endoscopic image analysis, two significant hurdles prevent their widespread clinical deployment: domain shift and the annotation bottleneck. Domain shift occurs when models trained on data from one hospital (the source domain) fail to generalize to another (the target domain) due to variations in camera hardware, lighting, and clinical protocols.

Furthermore, the annotation bottleneck arises because a standard UC examination generates dozens of images per patient, yet clinical records typically only reflect the "max severity" score—a patient-level diagnosis. Manually labeling every individual image for AI training is prohibitively expensive and time-consuming for medical experts. This research introduces a novel "Weakly Supervised Domain Adaptation" (WSDA) method that leverages these existing patient-level diagnoses to bridge the gap between clinical environments without requiring exhaustive image-level annotations in the target domain.

Methodology

The researchers framed the severity estimation task as a Multi-Instance Learning (MIL) problem. In this framework, a "bag" (representing a patient) contains multiple "instances" (individual endoscopic images). The proposed approach operates in two distinct stages:

1. Pre-training with Aggregation Tokens

The model is initially trained on a source dataset where both image-level and patient-level labels are available. During this phase, the architecture learns "Aggregation Tokens." These are specialized components designed to identify and extract features corresponding to specific UC severity levels (ranging from 0 to 3). These tokens serve as a foundational knowledge base for what each disease stage looks like.

2. Domain Adaptation via Max-Severity Triplet Loss

When adapting to a target hospital where only patient-level labels are available, the researchers employed two strategic mechanisms:

  • Shared Aggregation Tokens: By freezing the tokens learned from the source hospital and forcing the target hospital's feature extractor to interact with them, the model maintains a consistent global alignment of disease classes.
  • Max-Severity Triplet Loss: This novel loss function exploits the clinical definition of UC diagnosis. Because a patient's score represents the most severe lesion found, any image in a patient's set predicted to have a higher severity than the patient's recorded diagnosis is mathematically impossible. The triplet loss penalizes these erroneous predictions, pushing the features of target images closer to the correct class prototypes established in the source data.

Experimental Setup and Datasets

The study validated the method using two primary datasets:

  • LIMUC: A public dataset comprising 11,276 images from 564 patients.
  • Private Dataset: A collection from an independent clinical site containing patient-specific max-severity labels recorded during routine care.

The experiments focused on cross-domain performance, testing the model's ability to adapt from LIMUC to the Private dataset and vice versa.

Results and Discussion

The proposed WSDA method demonstrated significant improvements over existing benchmarks. In the LIMUC-to-Private adaptation test, the model achieved an accuracy of 71.4%, a substantial increase over standard Unsupervised Domain Adaptation (UDA) methods like ADDA, which reached only 52.1%.

Notably, the method also outperformed semi-supervised models that were provided with manual image-level labels for 5% of the target dataset. This suggests that leveraging the inherent structure of clinical reporting (the max-severity constraint) is more effective than providing a small amount of high-quality manual labels. Visualization using Principal Component Analysis (PCA) further confirmed that the method successfully clustered different severity levels in the target domain, whereas baseline methods resulted in overlapping, disorganized feature clusters.

Conclusion and Future Directions

This research demonstrates that "free" data—the patient-level diagnoses already stored in medical databases—can be a powerful tool for AI model adaptation. By utilizing the ordinal nature of UC and the max-severity reporting convention, the authors have created a framework that reduces the need for manual expert annotation.

While the current model relies on the sequential nature of UC severity (0 < 1 < 2 < 3), future work could adapt this framework for other medical conditions where patient-level reports are common but image-level labels are scarce, such as CT or MRI interpretations. The success of the Max-Severity Triplet Loss highlights the potential of incorporating clinical logic directly into the loss functions of deep learning models.

Summary updated

BibTeX
@inproceedings{yamaguchi2025domain,
  author = {Takamasa Yamaguchi and Brian Kenji Iwana and Ryoma Bise and Shota Harada and Takumi Okuo and Kiyohito Tanaka and Kaito Shiku},
  title = {{Domain Adaptation for Ulcerative Colitis Severity Estimation Using Patient-Level Diagnoses}},
  booktitle = {MLMI @ MICCAI},
  year = {2025},
  doi = {10.1007/978-3-032-09513-8\_33},
}
Figure