Biomedical Image Registration, Domain Generalisation and Out-of-Distribution Analysis

Frauke Wilm, Christian Marzahl, Katharina Breininger, Marc AubrevilleLecture Notes in Computer Science 2022 · DOI · OpenAlex

Abstract

In clinical pathology, the accurate quantification of mitotic figures is a cornerstone of tumor grading and prognosis. However, the deployment of deep learning models for this task is hindered by domain shift—performance degradation when models encounter images from scanners or laboratories not seen during training. This paper presents a reference algorithm for the MItosis DOmain Generalization (MIDOG) challenge. By integrating a domain adversarial branch into a standard RetinaNet architecture, the authors develop a model capable of learning scanner-invariant features. The resulting system achieves a robust $F_1$ score of 0.7183 on the challenge test set, demonstrating significant improvements in generalization to unseen hardware.

Introduction: The Challenge of Domain Shift

Automating the detection of mitotic figures (cells in the process of division) is a critical objective for digital pathology. While deep learning models have reached high levels of accuracy in controlled settings, they often lack robustness. Histopathology images vary significantly based on staining protocols and, more importantly, the specific hardware used for digitization.

Visual comparison of tissue patches across four different digital scanners, highlighting variations in color, contrast, and illumination.

A model trained on images from a Hamamatsu scanner may fail when applied to images from a Leica or Aperio scanner due to these visual discrepancies. This lack of domain generalization prevents the reliable cross-institutional use of AI tools. The authors address this by building a baseline model designed to remain accurate even when faced with images from scanners it has never encountered.

Methodology: Domain Adversarial Training

The proposed solution is built upon RetinaNet, a one-stage object detection framework, utilizing a ResNet18 backbone. To mitigate domain shift, the authors implement Domain Adversarial Training.

The proposed architecture featuring a ResNet encoder, Feature Pyramid Network (FPN), and a domain discriminator branch with a Gradient Reversal Layer (GRL).

Key Technical Components

  • Domain Discriminator: A sub-network is attached to the encoder's bottleneck. Its primary objective is to identify which scanner produced the input image.
  • Gradient Reversal Layer (GRL): This component is central to the adversarial approach. During backpropagation, the GRL flips the sign of the gradients coming from the domain discriminator. This forces the encoder to learn features that make it impossible for the discriminator to distinguish between scanners, effectively filtering out scanner-specific "noise" while preserving biological signals.
  • Strategic Patch Sampling: Because mitotic figures are rare, the authors sampled 50% of training patches from areas centered on known mitotic figures to ensure the model was not overwhelmed by healthy tissue.
  • Loss Function: The model optimizes a multi-part loss function combining focal loss for classification, smooth L1 loss for bounding box regression, and a domain classification loss.

Datasets and Experimental Setup

The study utilized the MIDOG 2021 challenge dataset, which consists of 200 Whole Slide Images (WSIs) of human breast cancer. These were digitized using four scanners: Hamamatsu XR, Hamamatsu S360, Aperio CS2, and Leica GT450.

Notably, the Leica GT450 images were provided without labels to encourage unsupervised domain adaptation. The test set included 20 additional WSIs from both seen scanners and two entirely unseen scanners (3DHISTECH PANNORAMIC 1000 and Hamamatsu RS) to evaluate true out-of-distribution generalization.

Key Insights and Results

The adversarial approach provided a significant performance boost, particularly on unseen domains. For the PANNORAMIC 1000 scanner, the $F_1$ score increased from 0.6463 (in a strong baseline without adversarial training) to 0.7339.

Performance Summary

  • Overall Accuracy: The reference approach achieved a final $F_1$ score of 0.7183.
  • Recall Improvement: The primary benefit of adversarial training was a marked increase in recall; the model overlooked fewer mitotic figures than the baseline versions.
  • Robustness to Illumination: On the Leica GT450, which featured high illumination and low contrast, the adversarial model remained stable ($F_1$ of 0.6968) while the weak baseline failed ($F_1$ of 0.4264).

Dimensionality reduction (UMAP) confirmed that while baseline features clustered by scanner brand, the adversarial model's features collapsed into a single mass, proving the successful extraction of domain-invariant biological features.

Conclusion and Future Work

While this reference approach demonstrates the power of domain adversarial training, it remains a baseline. The model still faces challenges with extreme staining intensities, suggesting that more diverse data augmentation or advanced stain normalization could further improve results. Future research will explore the optimal placement of the domain discriminator within the network architecture to further refine feature extraction for clinical deployment.

Summary updated

BibTeX
@inproceedings{wilm2022biomedical,
  author = {Frauke Wilm and Christian Marzahl and Katharina Breininger and Marc Aubreville},
  title = {{Biomedical Image Registration, Domain Generalisation and Out-of-Distribution Analysis}},
  booktitle = {Lecture Notes in Computer Science},
  year = {2022},
  doi = {10.1007/978-3-030-97281-3},
}

Loading related content...

Figure