OpenTME: An Open Dataset of AI-powered H&E Tumor Microenvironment Profiles from TCGA

Maaike Galama, Nina Kozar-Gillan, Christina Embacher, Todd Dembo, Cornelius Böhm, Evelyn Ramberger, Julika Ribbat-Idel, Rosemarie Krupar, Verena Aumiller, Miriam Hägele, Kai Standvoss, Gerrit Erdmann, Blanca Pablos, Ari Angelo, Simon Schallenberg, Andrew Norgan, Viktor Matyas, Klaus-Robert Müller, Maximilian Alber, Lukas Ruff, Frederick KlauschenarXiv 2026

TL;DR

OpenTME is a newly released, open-access dataset providing pre-computed, single-cell resolution tumor microenvironment (TME) profiles for 3,634 H&E-stained whole-slide images from The Cancer Genome Atlas (TCGA). By offloading the massive computational burden of running advanced AI pathology pipelines, OpenTME democratizes access to over 4,500 quantitative spatial features per slide across five major cancer types.

What Problem Does This Paper Address?

The tumor microenvironment (TME)—the complex ecosystem of cancer cells, immune infiltrates, blood vessels, and structural stroma surrounding a tumor—is critical to understanding cancer progression and predicting how a patient will respond to treatment. Standard hematoxylin and eosin (H&E) histopathology slides are packed with this morphological data and are widely available.

However, extracting quantitative, cell-level spatial insights from these images at scale is incredibly difficult. It requires specialized deep learning infrastructure, massive computational power, and extensive domain expertise to train and run pipelines. Consequently, many researchers who want to correlate spatial biology with clinical or genomic data face a steep barrier to entry. OpenTME bridges this gap by providing the community with high-quality, ready-to-use, pre-computed TME features.

Methods

The profiles in OpenTME were generated using Atlas H&E-TME, an AI application built on top of the Atlas family of pathology foundation models. The underlying architecture relies on a Vision Transformer (ViT) pre-trained via self-supervised learning (DINO framework) on diverse histopathology datasets.

The pipeline processes each whole-slide image (WSI) through a sequential four-stage workflow:

  1. Tissue Quality Control (QC): Filters out artifacts, pen marks, and out-of-focus areas using pixel-wise classification on image patches.
  2. Tissue Segmentation: Classifies valid tissue into seven distinct zones: carcinoma, normal epithelial tissue, stroma, necrosis, blood, vessels, and other.
  3. Cell Detection and Classification: Uses a custom StarDist-based nucleus segmentation model to find individual cells, followed by a classification head fine-tuned with Low-Rank Adaptation (LoRA) to categorize cells into nine distinct types (e.g., fibroblasts, lymphocytes, macrophages, carcinoma cells).
  4. Readout Generation: Computes slide-level and region-stratified metrics, alongside a spatial neighborhood analysis that evaluates cell co-occurrence and densities within 20 µm and 40 µm radii.
Figure 1: Two TCGA examples from the OpenTME dataset with Atlas H&E-TME Tissue QC, Tissue Segmen- tation, and Cell Classification model outputs. Model outputs are integrated to derive over 4,500 quantitative readouts per slide at cell-level resolution, including spatial neighborhood features.

Datasets

The dataset is derived entirely from diagnostic formalin-fixed paraffin-embedded (FFPE) slides sourced from the NCI Genomic Data Commons (GDC).

  • Final Cohort: 3,634 slides (filtered down from an initial 3,686 due to quality control or missing metadata).
  • Scope: Covers 5 cancer types across 8 TCGA projects: Bladder (TCGA-BLCA), Breast (TCGA-BRCA), Colorectal (TCGA-COAD, TCGA-READ), Liver (TCGA-LIHC, TCGA-CHOL), and Lung (TCGA-LUAD, TCGA-LUSC).

Key Insights and Ideas

  • Moving Beyond Patch-Level Analysis: Unlike historical efforts that mapped tumor-infiltrating lymphocytes (TILs) at a coarse patch level, OpenTME offers true single-cell resolution across nine distinct cell types.
  • The Power of Foundation Models: By leveraging a foundation model backbone (Atlas) and adapting it via LoRA, the pipeline achieves highly robust pan-cancer cell classification without needing entirely separate architectures for different organs.
  • Immediate Multi-Omic Integration: Because these features map directly to well-studied TCGA cases, researchers can immediately pair OpenTME's spatial metrics with existing public genomic, transcriptomic, and clinical survival data.

Key Results

OpenTME delivers over 4,500 quantitative readouts per slide in a clean CSV format. The features are broadly categorized into:

  • Tissue QC metrics: Absolute and relative area coverage.
  • Tissue segmentation metrics: Area, count, and polygon morphology descriptors (e.g., roundness, eccentricity) for the 7 tissue types.
  • Cell metrics: Total counts, percentages, densities, and nuclear morphology per cell type, both globally and stratified by tissue compartment.
  • Spatial neighborhood metrics: Local densities and cell-to-cell ratio statistics.

To make the data actionable, the authors also released TME Studio, a companion repository of interactive Python notebooks (built with marimo) that guides users through tasks like immune infiltrate classification and Kaplan–Meier survival analysis.

Limitations and Future Work

While highly comprehensive, the initial release of OpenTME has a few limitations:

  • Cancer Type Coverage: It currently covers five common solid tumor indications, leaving out many other malignancies tracked by TCGA.
  • Data Aggregation: To keep the public dataset manageable and protect proprietary pipeline geometries, the public Hugging Face dataset provides slide-level and region-aggregated statistics rather than raw, individual cell coordinates (though academic researchers can request full spatial coordinates through a dedicated Research Access Program).
  • Model Dependencies: As an AI-derived dataset, the features inherently reflect the performance boundaries and biases of the underlying Atlas models.

The authors plan to treat OpenTME as a living resource, expanding cancer type coverage and integrating finer-grained readouts in future iterations.

Summary updated

BibTeX
@misc{galama2026opentme,
  author = {Maaike Galama and Nina Kozar-Gillan and Christina Embacher and Todd Dembo and Cornelius Böhm and Evelyn Ramberger and Julika Ribbat-Idel and Rosemarie Krupar and Verena Aumiller and Miriam Hägele and Kai Standvoss and Gerrit Erdmann and Blanca Pablos and Ari Angelo and Simon Schallenberg and Andrew Norgan and Viktor Matyas and Klaus-Robert Müller and Maximilian Alber and Lukas Ruff and Frederick Klauschen},
  title = {{OpenTME: An Open Dataset of AI-powered H\&E Tumor Microenvironment Profiles from TCGA}},
  year = {2026},
  eprint = {2604.12075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12075},
}
Figure