HEST-1k: A Dataset For Spatial Transcriptomics and Histology Image Analysis

Guillaume Jaume, Paul Doucet, Andrew H. Song, Ming Yang Lu, Cristina Almagro-Pérez, Sophia J. Wagner, Anurag Vaidya, Richard J. Chen, Drew F. K. Williamson, Ahrong Kim, Faisal Mahmood

Introduction

Spatial Transcriptomics (ST) is a revolutionary technology that allows researchers to see which genes are active at specific locations within a tissue sample. However, the field faces significant hurdles. ST is expensive, leading to small, fragmented datasets that are difficult to use for training deep learning models. Furthermore, data formats vary wildly between technologies (like 10x Visium vs. Xenium) and labs, making large-scale integration a nightmare. Finally, while pathologists rely on H&E-stained images to diagnose disease, ST studies often overlook the rich structural information in these images.

We know that tissue shape (morphology) and gene expression are linked, but the computational pathology community has lacked the standardized datasets to model this relationship at scale. HEST-1k addresses this by providing a massive new resource: 1,229 paired spatial transcriptomics profiles and histology images across 26 organs. By standardizing these multimodal data through a new Python library and benchmarking 11 state-of-the-art foundation models, the authors provide a roadmap for predicting molecular signatures directly from tissue morphology.

Overview of the HEST ecosystem, including the HEST-1k dataset distribution, HEST-Library processing pipeline, and downstream applications like benchmarking and multimodal learning.

Methods: The HEST Ecosystem

The authors introduced a three-part ecosystem to tackle the challenges of multimodal spatial transcriptomics:

  1. HEST-1k Dataset: The team curated and unified data from 153 different cohorts, resulting in 1,229 samples. This massive collection includes 2.1 million "expression–morphology pairs" (where a specific image patch is linked to a local gene expression profile) and over 76 million segmented nuclei.
  2. HEST-Library: A dedicated Python package designed to handle the complex preprocessing of ST data. It includes automated alignment tools—such as using YOLOv8 to find fiducial markers on slides—to ensure that gene expression "spots" perfectly overlap with the correct pixels in the histology image.
  3. Multimodal Training: The authors demonstrated how to fine-tune a vision foundation model (CONCH) using a contrastive learning objective. By teaching the model to align the visual features of a tissue patch with its molecular features (gene expression), they created a more specialized "pathology expert" model.
The HEST-Library pipeline handles missing file imputation, automatic alignment of spatial transcriptomics spots with whole-slide images, and tissue processing tasks like segmentation and patching.

Datasets and Benchmarks

The primary contribution, HEST-1k, aggregates data from public repositories (10x Genomics, NCBI, Mendeley, Zenodo, Human Cell Atlas) and proprietary internal cohorts from Mass General Brigham. The dataset is highly diverse, covering 26 organs, two species (Homo sapiens and Mus musculus), and 367 cancer samples across 25 subtypes.

To evaluate model performance on this data, the authors introduced the HEST-Benchmark, a set of nine tasks where models must predict the expression of the top 50 most variable genes relying entirely on H&E image patches.

Key Insights and Results

  • The Scaling Law of Pathology: The authors found a strong logarithmic correlation (R=0.81) between a model's parameter count and its performance on gene expression prediction. While bigger models generally perform better, they begin to show diminishing returns.
  • Data Quality vs. Quantity: Interestingly, the number of patches used for pretraining correlated less strongly with performance than model size. This suggests that morphological diversity and data "cleanliness" might be more critical than raw volume in ST analysis.
  • Morphology as a Biomarker: The paper provides a proof-of-concept showing that gene expression (such as the prognostic marker GATA3 in breast cancer) correlates significantly with human-interpretable features like nuclear area and shape. This validates the idea that deep learning can "see" molecular changes through the lens of cell structure.
  • Benchmark King: Among 11 evaluated foundation models, H-Optimus-0 (a 1.1B parameter ViT-giant) achieved the best average performance across the benchmark tasks.
  • Fine-tuning Wins: A model fine-tuned on HEST-1k (CONCH-FT) outperformed its base version in predicting clinical statuses (ER, PR, and HER2) in breast cancer, proving that "molecularly-aware" vision models are superior for diagnostic tasks.
  • Standardization: The HEST-Library successfully unified disparate data into the AnnData format—a standard in single-cell analysis—making it accessible to a much broader range of bioinformaticians.

Limitations and Future Work

The authors acknowledge several ongoing challenges in the field. ST data is notoriously noisy due to "dropout" events (where genes aren't detected even if present) and "spillover" between adjacent spots. Additionally, data from different labs or technologies still exhibit significant batch effects that are difficult to fully erase.

Because ST is a rapidly evolving technology, the HEST-Library will require constant updates to support emerging sub-cellular resolution platforms. In the future, the team plans to expand the dataset as more public cohorts become available and to explore more complex multimodal architectures capable of handling the 3D nature of tissue samples.

Summary updated

BibTeX
@inproceedings{jaume2024hest,
  author = {Guillaume Jaume and Paul Doucet and Andrew H. Song and Ming Yang Lu and Cristina Almagro-Pérez and Sophia J. Wagner and Anurag Vaidya and Richard J. Chen and Drew F. K. Williamson and Ahrong Kim and Faisal Mahmood},
  title = {{HEST-1k: A Dataset For Spatial Transcriptomics and Histology Image Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure