Deciphering Spatial Domains by Integrating Histopathological Image and Transcriptomics via Contrastive Learning

Yuansong Zeng, Rui Yin, Mai Luo, Jianing Chen, Zixiang Pan, Yutong Lu, Weijiang Yu, Yuedong YangbioRxiv 2022

TL;DR

This paper introduces ConGI, a novel deep learning framework that integrates histopathological images and gene expression data from spatial transcriptomics to more accurately identify distinct tissue regions (spatial domains). By employing contrastive learning, ConGI effectively learns shared representations between the two modalities, overcoming limitations of previous methods that either treated modalities separately or simply concatenated their features. This improved representation leads to better spatial domain identification and enhances downstream analyses like trajectory inference.

What Problem Does This Paper Address?

Spatial transcriptomics (ST) technologies allow us to map gene expression patterns within intact tissue samples, providing a richer understanding of biological processes. A crucial step in analyzing ST data is identifying "spatial domains" – distinct regions within the tissue characterized by specific cellular compositions and gene expression profiles. This is important for understanding tissue organization, disease progression, and cellular interactions.

Existing methods often struggle with the inherent noise in gene expression data. While some approaches try to leverage histopathological images (the visual representation of the tissue) to improve gene expression analysis, they have limitations. They might use image information only to define static relationships between tissue spots without adapting during training, or they might simply combine image and gene expression features into a single vector, failing to capture the unique characteristics of each modality and potentially introducing more noise. This paper aims to bridge this gap by proposing a method that effectively integrates both data types in a more sophisticated way.

Methods

The core of ConGI is a deep learning architecture that uses two independent encoders: a Convolutional Neural Network (CNN) for processing histopathological image patches and a Multi-Layer Perceptron (MLP) for gene expression data.

The novelty lies in the contrastive learning approach. Instead of just combining features, ConGI learns to align representations from both modalities. This is achieved through three contrastive loss functions:

  • Gene expression to gene expression (Lg2g): Encourages similar gene expression patterns within the same spot to be represented closely.
  • Image to image (Lizi): Does the same for image features.
  • Image to gene expression (Lg2i): This is the key cross-modal loss, pulling together representations from the image and gene expression of the same spot, while pushing apart representations from different spots.

This contrastive learning strategy helps ConGI learn common semantic representations across both modalities while simultaneously filtering out modality-specific noise. After training, the learned representations from both encoders are combined and then used for clustering to identify spatial domains.

Datasets

The authors evaluated ConGI on four publicly available spatial transcriptomics datasets:

  • Human HER2-positive breast tumor dataset (HER2+)
  • Human dorsolateral prefrontal cortex dataset (spatialLIBD)
  • Human epidermal growth factor receptor (HER)2-amplified (HER+) invasive ductal carcinoma (IDC) sample
  • Mouse brain dataset

These datasets provide paired histopathological images, gene expression data at spatial spots, and corresponding spatial coordinates.

Key Insights and Ideas

  • Contrastive learning is powerful for multi-modal integration: By forcing representations of paired image and gene expression data to align, ConGI effectively learns shared biological signals while discarding modality-specific noise.
  • Image data is crucial for robust spatial domain identification: Methods that incorporate histopathological images generally outperform those relying solely on gene expression, especially when gene expression data is noisy.
  • Adaptive learning of image features improves performance: Unlike previous methods that used image features statically, ConGI's approach of learning from images within the contrastive framework leads to better results.
  • Learned representations are versatile: The integrated representations learned by ConGI are not only good for spatial domain identification but also improve performance on downstream tasks like trajectory inference and visualization.

Key Results

ConGI consistently outperformed existing methods across multiple datasets and evaluation metrics (ARI, NMI, CA).

  • On the HER2+ breast tumor dataset, ConGI achieved an average ARI 11.2% higher than the second-best method, Giotto.
  • For the IDC dataset, ConGI achieved the best ARI of 0.448, a 9.8% improvement over BayesSpace.
  • In the human dorsolateral prefrontal cortex dataset, ConGI showed an average ARI 4.82% higher than STAGATE.
  • Qualitative results showed that ConGI's predicted spatial domains more closely matched manual annotations and biologically relevant features (e.g., spatially variable genes) compared to other methods.
  • UMAP visualizations and PAGA graphs demonstrated that ConGI's learned representations better separated distinct tissue regions and revealed more coherent developmental trajectories.

Limitations and Future Work

  • Ablation study highlights importance of components: An ablation study showed that removing the contrastive loss between modalities (Lg2i) significantly degraded performance, emphasizing its critical role. Removing within-modality contrastive losses also reduced performance, though to a lesser extent.
  • Future work could involve larger pre-trained models: The authors suggest that using larger models pre-trained specifically on histopathological images could further enhance feature extraction.
  • Addressing the "black-box" nature: While ConGI excels at identifying domains, further analysis (like identifying spatially variable genes) is needed to interpret the biological meaning of these domains, a common challenge with deep learning models.

Summary updated

BibTeX
@misc{zeng2022deciphering,
  author = {Yuansong Zeng and Rui Yin and Mai Luo and Jianing Chen and Zixiang Pan and Yutong Lu and Weijiang Yu and Yuedong Yang},
  title = {{Deciphering Spatial Domains by Integrating Histopathological Image and Transcriptomics via Contrastive Learning}},
  year = {2022},
  doi = {10.1101/2022.09.30.510297},
  howpublished = {bioRxiv},
}
Figure