NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Density and entropy of immune cells within the tumor microenvironment of primary tumors and matched brain metastases

Markus Kleinberger, Didem Çifçi, Christina Paiato, Erwin Tomasich, Maximilian J. Mair, Ariane Steindl, Zoltán Spiró, Zunamys I. Carrero, Luzia Berchtold, Johannes A. Hainfellner, Leonhard Müllauer, Gerwin Heller, Matthias Preusser, Jakob Nikolas Kather, Anna S. Berghoff

Introduction

Brain metastases (BM) represent a critical and often terminal stage in the progression of solid tumors, particularly in patients with lung and breast cancer. While the "seed and soil" hypothesis emphasizes the importance of the local microenvironment, there is a significant knowledge gap regarding how the immune landscape evolves as cancer migrates from a primary site to the brain. Clinicians frequently observe a "mixed response" to systemic therapies, where primary tumors respond to immunotherapy while brain metastases continue to proliferate. This study addresses this discrepancy by analyzing matched tissue samples from the same individuals to quantify changes in immune cell density and spatial distribution.

Methods

The researchers conducted a retrospective analysis of 104 patients from the Vienna Brain Metastasis Registry who underwent surgical resection for both a primary tumor and a subsequent brain metastasis between 1990 and 2022. The cohort primarily consisted of non-small cell lung cancer (NSCLC, 75%), followed by breast cancer (17%) and renal cell carcinoma (8%).

Immunohistochemistry and Digital Pathology

Matched formalin-fixed paraffin-embedded (FFPE) tissue blocks were stained for Tumor-Associated Macrophages (TAMs: CD68+, CD163+) and Tumor-Infiltrating Lymphocytes (TILs: CD3+, CD8+, CD45RO+, FOXP3+). Slides were digitized at 40x magnification and analyzed using QuPath software for automated cell detection and heatmap generation.

Spatial Heterogeneity Analysis

A key innovation of this study was the application of Shannon Entropy to quantify the spatial heterogeneity of immune cells. Rather than relying solely on cell counts, entropy measures whether cells are randomly distributed (high entropy) or clustered in specific regions (low entropy).

Shannon Entropy formula for spatial heterogeneity.

Statistical modeling utilized linear mixed models to account for cancer types and treatments, while Cox regression was employed to correlate immune metrics with clinical outcomes, specifically Time-to-Brain Metastasis (TTBM).

Results

The Immune Shift: Lymphocytes vs. Macrophages

The study revealed a stark divergence in the immune composition between primary and metastatic sites. Primary tumors were significantly "hotter" regarding lymphocytes, showing higher densities of CD3+, CD8+, and FOXP3+ TILs ($p < 0.001$). In contrast, brain metastases were dominated by macrophages, with significantly higher densities of CD68+ ($p = 0.025$) and CD163+ TAMs ($p < 0.001$). This suggests that the brain microenvironment actively recruits or promotes pro-tumorigenic macrophages while maintaining a relatively "cold" environment for T-cells.

Spatial Distribution and Entropy

Spatial analysis showed that primary tumors exhibited higher Shannon Entropy for CD3+ ($p < 0.001$) and FOXP3+ ($p = 0.002$) cells compared to brain metastases. This indicates a more heterogeneous or random distribution of lymphocytes in primary tumors, whereas brain metastases exhibit a more clustered or organized immune architecture.

Clinical Correlations and Prognosis

The immune profile of the primary tumor served as a predictor for the speed of metastatic progression:

  • Shorter TTBM: Associated with higher densities of CD3+ TILs and CD163+ TAMs in the primary tumor.
  • Longer TTBM: Associated with a larger difference in CD3+ and CD8+ densities between the primary and BM, as well as higher entropy of FOXP3+ TILs and lower entropy of CD163+ TAMs.

Interestingly, while these immune metrics were prognostic for the timing of metastasis, they did not significantly correlate with Overall Survival (OS) once the brain metastasis had been diagnosed.

Discussion

This study demonstrates that the transition from a primary tumor to a brain metastasis involves a radical transformation of the immune microenvironment. The shift from a lymphocyte-rich primary site to a macrophage-dominated metastatic site provides a biological explanation for why brain metastases often resist Immune Checkpoint Inhibitors (ICIs).

The findings suggest that high-density, active immune environments in primary tumors may paradoxically signal a more aggressive metastatic phenotype. Furthermore, the use of spatial entropy highlights that the arrangement of immune cells is as clinically relevant as their quantity. Future research utilizing high-dimensional spatial analysis, such as spatial transcriptomics, is necessary to further decode the crosstalk between macrophages and cancer cells in the brain.

Summary updated

BibTeX
@inproceedings{kleinberger2025density,
  author = {Markus Kleinberger and Didem Çifçi and Christina Paiato and Erwin Tomasich and Maximilian J. Mair and Ariane Steindl and Zoltán Spiró and Zunamys I. Carrero and Luzia Berchtold and Johannes A. Hainfellner and Leonhard Müllauer and Gerwin Heller and Matthias Preusser and Jakob Nikolas Kather and Anna S. Berghoff},
  title = {{Density and entropy of immune cells within the tumor microenvironment of primary tumors and matched brain metastases}},
  booktitle = {Acta},
  year = {2025},
  doi = {10.1186/s40478-025-01939-8},
}
Figure