Multimodal contrastive learning for spatial gene expression prediction using histology images
Wenwen Min, Zhiceng Shi, Jun Zhang, Jun Wan, Changmiao Wang
TL;DR
This work tackles the cost barrier of spatial transcriptomics by predicting spatial gene expression from readily available H&E histology images. It introduces mclSTExp, a multimodal framework that uses a Transformer-based spot encoder to capture spatial context and a contrastive learning module to fuse image features with spot features, producing a shared embedding space aligned by a CLIP-like objective. The method achieves superior prediction accuracy across three cancer datasets, enables interpretation of cancer- and immune-related genes, and supports spatial domain detection, highlighting its potential for scalable, clinically relevant spatial transcriptomics analysis. Overall, mclSTExp provides a cost-effective, accurate approach for inferring spatial gene expression from histology, with practical implications for cancer biology and pathology.
Abstract
In recent years, the advent of spatial transcriptomics (ST) technology has unlocked unprecedented opportunities for delving into the complexities of gene expression patterns within intricate biological systems. Despite its transformative potential, the prohibitive cost of ST technology remains a significant barrier to its widespread adoption in large-scale studies. An alternative, more cost-effective strategy involves employing artificial intelligence to predict gene expression levels using readily accessible whole-slide images (WSIs) stained with Hematoxylin and Eosin (H\&E). However, existing methods have yet to fully capitalize on multimodal information provided by H&E images and ST data with spatial location. In this paper, we propose \textbf{mclSTExp}, a multimodal contrastive learning with Transformer and Densenet-121 encoder for Spatial Transcriptomics Expression prediction. We conceptualize each spot as a "word", integrating its intrinsic features with spatial context through the self-attention mechanism of a Transformer encoder. This integration is further enriched by incorporating image features via contrastive learning, thereby enhancing the predictive capability of our model. Our extensive evaluation of \textbf{mclSTExp} on two breast cancer datasets and a skin squamous cell carcinoma dataset demonstrates its superior performance in predicting spatial gene expression. Moreover, mclSTExp has shown promise in interpreting cancer-specific overexpressed genes, elucidating immune-related genes, and identifying specialized spatial domains annotated by pathologists. Our source code is available at https://github.com/shizhiceng/mclSTExp.
