Markov random fields and spatial context: The MIT Statistical Models chapter describes Markov random fields (MRFs) — probabilistic models where each variable's distribution depends only on its neighbors. In tissue biology, cells exhibit exactly this Markov-like behavior: a cell's phenotype and function are influenced by its local neighborhood but largely independent of distant cells. Spatial phenotyping quantifies this neighborhood influence by measuring what types of cells share the local context.
Cellular automata as conceptual model: Gardner's Game of Life shows how simple local rules (counting neighbors of each type) produce complex global patterns — still lifes, oscillators, gliders. Tissue architecture similarly emerges from local cell-cell interactions. Spatial phenotyping measures the "rules" — the neighborhood compositions — that generate the observed tissue patterns. A region where tumor cells have many immune neighbors is biologically different from one where they don't, even if the global cell counts are identical.
Spatial point processes: The collection of cell positions forms a spatial point process. A completely random (Poisson) process would show no spatial structure — any cell type would be equally likely at any position. Real tissue shows marked departures: immune cells cluster at the tumor boundary, tumor cells form coherent nests, stromal cells fill the spaces between. Spatial phenotyping characterizes these departures from randomness at the individual-cell level.
The spatial scale matters: Different biological processes operate at different spatial scales. Cell-cell signaling (cytokines, direct contact) operates at 10-50 µm. Microenvironment zones (tumor nests, immune aggregates) operate at 50-200 µm. Tissue architecture (invasive margin, tumor center) operates at 200+ µm. The choice of neighborhood radius determines which scale of spatial organization is captured. Multi-scale analysis — running spatial phenotyping at several radii — can reveal patterns invisible at any single scale.
Tissue biology is inherently spatial — a cell's behavior depends on its neighbors, not just its own markers. Spatial phenotyping quantifies this neighborhood context by measuring what types of cells surround each cell. Different neighborhood radii capture different biological scales: small radii show direct cell-cell contacts, large radii show microenvironment zones. Immune-excluded tumors, immune-inflamed tumors, and immune deserts are all defined by these spatial patterns.