Self-supervised learning of cell type specificity from immunohistochemical images

Michael Murphy, Stefanie Jegelka, Ernest Fraenkel

TL;DR

This paper introduces a self-supervised learning approach to predict cell type specificity of proteins from unlabeled immunohistochemistry (IHC) images. By leveraging a novel sampling strategy and combining it with single-cell transcriptomics data, they developed a classifier that outperforms transcriptomic-based methods for identifying protein markers in kidney tissue.

What Problem Does This Paper Address?

Identifying specific cell types within complex tissues is crucial for understanding biological processes and diseases. Immunohistochemistry (IHC) is a powerful technique for visualizing proteins in situ, but selecting the right antibodies to target specific cell types is a major bottleneck. While single-cell transcriptomics can identify potential marker genes, the correlation between gene expression and protein expression isn't always perfect, and antibodies need to be validated in the tissue context. Existing large-scale IHC datasets, like the Human Protein Atlas (HPA), contain millions of images but lack detailed cell-type annotations, making it difficult to automatically determine protein specificity. This paper aims to bridge this gap by learning cell type specificity directly from unlabeled IHC images.

Methods

The core of the method involves training a convolutional neural network (CNN) using a self-supervised learning objective, specifically a contrastive learning framework called SimCLR.

  • Self-Supervised Learning with Novel Sampling: Instead of relying on standard image augmentations (like cropping or color jittering) to create positive pairs, the authors devised a biologically informed sampling strategy. They treat genes as the "observational unit" and create positive pairs from different IHC images that stain for the same gene. This leverages the fact that the HPA dataset contains multiple images for antibodies targeting the same protein. To address biases introduced by donor-specific staining patterns, they also modified the negative sampling strategy to prioritize negative pairs from the same donor, which helps the model learn representations that are invariant to donor identity.
  • Learning Cell Type Specificity from Auxiliary Transcriptomic Labels: Once the self-supervised model generates image embeddings, these embeddings are used to train a linear classifier. Crucially, this classifier is trained using auxiliary labels derived from an independent single-cell transcriptomics dataset of kidney tissue. This avoids the need for human annotation of cell types in the IHC images. The transcriptomic data provides noisy but useful proxies for protein specificity.
  • Evaluation: The model's ability to predict cell type specificity is evaluated by comparing its predictions for known kidney anatomical region markers against transcriptomic-based baselines (T-tests, Wilcoxon tests) and a state-of-the-art method (COMET).

Datasets

  • Training Data: 10,164 high-quality IHC images of human kidney tissue from version 21 of the Human Protein Atlas (HPA). These images were filtered for antibodies with "enhanced" validation, "medium" or "high" staining intensity, and those targeting exactly one gene. Images were downsampled to 512x512 pixels.
  • Auxiliary Transcriptomic Data: Processed single-nucleus RNA sequencing (snRNA-seq) data of human kidney cortex from five donors, as provided by Muto et al. (2021) via the cellxgene portal. This dataset contains 19,985 cells and 22,127 genes, with cells clustered into 13 cell types.
  • Evaluation Benchmark: A set of 126 genes identified by Habuka et al. (2014) as proteomically specific to four anatomical regions in the kidney. These genes were selected from the HPA and had corresponding IHC images and transcriptomic data available.

Key Insights and Ideas

  • Leveraging Gene Identity for Self-Supervision: The core innovation is using the gene identity as a semantic anchor for creating positive pairs in contrastive learning, rather than relying solely on image augmentations. This allows the model to learn biologically meaningful representations from IHC images.
  • Invariance to Donor Identity: The modified negative sampling strategy is critical for making the learned embeddings robust to variations introduced by different tissue donors, a significant challenge in biological imaging.
  • Bridging the Transcriptome- to Proteome Gap: The paper demonstrates a practical way to use transcriptomic data as a noisy label source for training on IHC images, effectively bridging the gap between gene expression and protein localization without direct human annotation of the IHC images.
  • Subcellular Localization as a Byproduct: The self-supervised embeddings not only capture cell type specificity but also show sensitivity to subcellular localization, suggesting that the learned representations are rich in biological information.

Key Results

  • Clustering of Embeddings: UMAP visualization of the learned embeddings shows clear clustering according to cell types and anatomical regions in the kidney, demonstrating that the self-supervised objective successfully captures biological semantics.
  • Superior Classification Performance: The proposed method achieved superior classification accuracy (measured by Area Under the ROC Curve - AAUC) for predicting regional specificity in the kidney compared to transcriptomic-based baselines for proximal tubule (AAUC = 0.061 vs. 0.011), glomerulus (AAUC = 0.191 vs. 0.011), and collecting duct (AAUC = 0.106 vs. -0.011).
  • Donor Invariance: The modified negative sampling reduced the accuracy of predicting donor identity from embeddings from 39.7% to 29.5%, indicating improved invariance.

Limitations and Future Work

  • Image Resolution and Batch Size: The authors had to downsample high-resolution HPA images and use smaller batch sizes due to memory constraints. They anticipate that improvements in memory-efficient contrastive learning and multi-scale attention could allow for higher resolution images and finer distinctions.
  • Antibody Cross-Reactivity: The method is fundamentally limited by antibody cross-reactivity. While they filter for validated antibodies, the approach cannot inherently distinguish off-target binding. Genes showing systematic discrepancies between transcriptomic and IHC specificity across multiple antibodies/tissues are suggested for further biological investigation.
  • Future Directions:
    • Applying the method to other tissues represented in the HPA.
  • Integrating multi-scale attention for finer-scale feature analysis.
  • Developing representations that disentangle cell type specificity from subcellular localization.
  • Leveraging finer-grained cell type annotations from initiatives like the Human Cell Atlas.

Summary updated

BibTeX
@inproceedings{murphy2022self,
  author = {Michael Murphy and Stefanie Jegelka and Ernest Fraenkel},
  title = {{Self-supervised learning of cell type specificity from immunohistochemical images}},
  booktitle = {ISMB},
  year = {2022},
  url = {https://openreview.net/forum?id=XhDxvTJXX8},
}
Figure