Self-Supervised Representation Learning using Visual Field Expansion on Digital Pathology

Joseph Boyd, Mykola Liashuha, Eric Deutsch, Nikos Paragios, Stergios Christodoulidis, Maria Vakalopoulou

Introduction

Analyzing Whole Slide Images (WSIs) in digital pathology presents a significant computational challenge. These gigapixel files are too large for standard neural networks, necessitating their division into smaller "tiles." However, training effective models on these tiles typically requires extensive manual annotation by expert pathologists—a process that is both costly and time-consuming.

While transfer learning from ImageNet is a common shortcut, natural image features (e.g., dogs, cars) often fail to capture the complex, repetitive textures and "morphological grammar" inherent in human tissue. This paper proposes a novel self-supervised learning (SSL) strategy that enables models to learn the essence of tissue structure by performing Visual Field Expansion: predicting the surrounding context of a small central tissue crop.

Methodology

The authors implement a generative framework based on an Adversarial Autoencoder (AAE). The architecture is designed to map a central $112 \times 112$ pixel crop to a latent representation and then reconstruct an expanded $224 \times 224$ tile.

Overview of the Adversarial Autoencoder (AAE) architecture for visual field expansion.

The Generative Framework

As illustrated in Figure 1, the system consists of several key components:

  1. Encoder ($enc$): A ResNet-18 backbone that compresses the input crop into a latent vector ($z$).
  2. Latent Regularization ($D_Z$): A discriminator ensures the latent space follows a Gaussian distribution, preventing overfitting and ensuring the learned features are generalizable.
  3. Progressive Decoder ($dec$): The decoder generates the expanded tile. To achieve high-fidelity results, the authors employ Progressive Growing, where the model starts by generating low-resolution images and gradually introduces higher-resolution details during training.
  4. Image Discriminator ($D_Y$): This component evaluates the realism of the generated expansion, forcing the decoder to produce biologically plausible details such as continuous cell membranes and vessel walls.
Comparison between central input crops (a) and the corresponding generated expansions (b).

By learning to "outpaint" the surrounding tissue (as shown in Figure 2), the encoder is forced to understand the spatial continuity and structural patterns of the pathology domain. Once training is complete, the decoder is discarded, and the encoder is used as a feature extractor for clinical classification tasks.

Experimental Results

The model was evaluated on two major public benchmarks to test its ability to detect cancer and distinguish between tissue types.

CAMELYON17 (Breast Cancer Metastasis)

In the binary classification task of detecting metastasis in lymph node sections, the Visual Field Expansion model achieved 85.69% accuracy. This outperformed standard SSL methods like SimCLR (84.61%) and ImageNet pre-training (84.08%), narrowing the gap toward fully supervised performance (90.88%).

Colorectal Cancer (CRC) Dataset

On a multi-class dataset of 100,000 tiles representing nine tissue types, the model achieved a balanced accuracy of 85.11%. This significantly outperformed both SimCLR (76.29%) and ImageNet (79.00%), demonstrating that the generative pretext task is particularly effective for distinguishing complex biological textures.

Qualitative and Quantitative Realism

Beyond classification accuracy, the model's generative quality was measured using the Fréchet Inception Distance (FID). The expanded tiles achieved an FID of 20.76 on CAMELYON17, indicating that the generated tissue is significantly more realistic than tiles sampled from noise.

Discussion and Conclusion

This research highlights a critical insight: for the high-texture, low-object environment of digital pathology, a generative approach can be more effective than the contrastive approaches (like SimCLR) currently popular in computer vision. By forcing the model to reconstruct unseen pixels, it develops a deeper understanding of biological continuity.

While the current model uses a fixed central spatial prior and requires significant computational resources (approx. 36 hours on a Tesla V100), it represents a major step toward reducing the reliance on expert annotations in medical AI. Future work may explore more flexible outpainting from arbitrary edges and the use of Variational Autoencoders (VAEs) to further refine the latent distribution.

Summary updated

BibTeX
@misc{boyd2021self,
  author = {Joseph Boyd and Mykola Liashuha and Eric Deutsch and Nikos Paragios and Stergios Christodoulidis and Maria Vakalopoulou},
  title = {{Self-Supervised Representation Learning using Visual Field Expansion on Digital Pathology}},
  year = {2021},
  eprint = {2109.03299},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.03299},
}
Figure