Beyond the section plane: Robust 3D reconstruction of multiplex immunofluorescence exposes limitations of 2D spatial cell statistics

Junming Ma, Olle Edgren Schüllerqvist, Hui Yu, Carina Strell, Patrick Micke, Joakim Lindblad, Artur Mezheyeuski, Nataša SladojearXiv 2026

TL;DR

Studying tumours using standard, razor-thin 2D microscope slides is a bit like trying to understand the social dynamics of an apartment building by looking at a single floor plan—you can count the residents, but you miss who lives right above whom. By digitally stitching serial 2D tissue slices into high-precision 3D volumes, the authors show that while 2D slides accurately capture cell counts, they drastically underestimate how close cells are, how often they touch, and how diverse their neighbourhoods truly are.

What Problem Does This Paper Address?

The tumour microenvironment (TME) is a bustling 3D ecosystem of cancer, immune, and structural cells. How these cells spatially interact often dictates whether a patient responds to therapy. To map this, researchers commonly use multiplex immunofluorescence (mIF)—a technique that lights up dozens of protein markers on a slice of tissue just 3 to 5 micrometres ($\mu\text{m}$) thick.

Because true 3D imaging is slow and expensive, almost everyone relies on single 2D slices, assuming they represent the whole tissue. The catch? A human cell is roughly the same size as the slice thickness, meaning 2D views inevitably miss neighbours sitting just above or below the cut. Reconstructing 3D volumes from consecutive slices is a natural workaround, but physically slicing paraffin-embedded clinical tissue stretches, tears, and warps it. Aligning these slices accurately enough to track individual cells from one slice to the next remains a tough computational puzzle.

Methods

To turn a stack of warped 2D slices back into a coherent 3D tissue block, the authors built a two-part pipeline:

  • Two-Step Image Registration: Starting from the middle slice and working outward, adjacent slices undergo a standard coarse alignment (using AKAZE keypoints and MAGSAC) to fix rotation and scale. The novel twist comes next: dense deformable refinement using RoMa v2, a state-of-the-art computer vision matcher never before tested on histopathology. Because RoMa v2 expects standard RGB photos rather than 8-channel fluorescence data, the authors contrast-enhance, tint, and fuse the nuclear (DAPI) and tumour (PanCK) channels into a synthetic RGB image to guide the fine, pixel-level unwarping.
  • Graph-Based 3D Cell Linking: Because slices are $4\ \mu\text{m}$ thick (8x coarser than the $0.5\ \mu\text{m}$ pixel width), off-the-shelf 3D cell segmentation struggles. Instead, the authors segment cell nuclei in 2D using Cellpose, then build a mathematical graph connecting overlapping masks across adjacent slices. Edges are weighted by spatial overlap (IoU) and penalized if elongated nuclei suddenly twist in orientation—splitting apart distinct cells that happen to sit on top of each other. Finally, cells are assigned types (e.g., T cell, Macrophage, Tumour) via an area-weighted majority vote across their linked 2D slices.

Datasets

The pipeline was evaluated on an in-house tissue microarray dataset from Uppsala University. Starting with 30 formalin-fixed paraffin-embedded (FFPE) patient cores (2 mm diameter) of breast and lung tumours, the team filtered out heavily damaged samples to curate 24 cores, each comprising 15 to 20 consecutive $4\ \mu\text{m}$ sections. Every slice was stained with a seven-colour panel capturing nuclei, blood vessels, nerves, T cells, macrophages, and tumour cells. To benchmark alignment accuracy at the cellular level, a domain expert manually placed 284 corresponding landmark pairs across four cores.

Key Insights and Ideas

  • 2D gets the "census" right, but the "sociology" wrong: If you just want to know what percentage of a tumour is made of T cells, a single 2D slice is remarkably reliable. However, relational metrics—who touches whom, and how far apart cells sit—are systematically skewed in 2D because interactions happening out-of-plane are invisible.
  • Geometry defeats simple math fixes: Why does distance shrink so much more for blood vessels (endothelial cells) than for tumour cells in 3D? Because vessels snake through tissue like continuous pipes across slices, whereas tumour cells form dense clumps. Because the 2D bias depends on the local 3D geometry of each specific cell type, you cannot fix 2D spatial stats with a universal mathematical correction factor—nor by simply averaging more 2D slices together.
Fig. 1: Median nearest-neighbour distances (top) and mean contacts per cell (bottom) in 3D vs. 2D for each source (columns) and target (rows) cell type across 24 cores.

Key Results

  • Sub-cellular Alignment: The RoMa v2 pipeline achieved a median Target Registration Error (TRE) of $1.79\ \mu\text{m}$ (~3.5 pixels), well below the size of a cell nucleus ($\sim 7\ \mu\text{m}$). While its median error matched the established VALIS baseline ($1.81\ \mu\text{m}$), the new pipeline suffered fewer severe alignment failures, lowering the 90th-percentile error from $5.49\ \mu\text{m}$ to $4.27\ \mu\text{m}$.
Table 1: Target registration error (TRE) over 284 expert- annotated landmark pairs across four annotated cores: before registration (Raw), after affine alignment, after both affine and deformable alignment (Our) and using VALIS [11].
  • Linking Cells: Across ~4.79 million 2D nuclear masks, 45.9% were linked across multiple slices, spanning an average of 2.62 slices—closely matching theoretical expectations for $7\ \mu\text{m}$ nuclei cut into $4\ \mu\text{m}$ slices.
  • 2D vs. 3D Spatial Statistics:
  • Proportions hold steady: 2D and 3D cell-type proportions correlated almost perfectly (Pearson $r \ge 0.99$), differing by at most 1.2 percentage points.
  • Neighbours are much closer: Nearest-neighbour distances were shorter in 3D for every cell-type pair—shrinking up to 3.8x for endothelial-to-endothelial pairs (a 3D/2D distance ratio of 0.26).
  • Richer, denser neighbourhoods: Moving from 2D discs to 3D spheres increased neighbourhood cell-type diversity (Shannon entropy) by 12.6% to 18.7% across every core, and revealed 1.6 to 4.0 times more physical cell-to-cell contacts.

Limitations and Future Work

First, cell-typing consistency drops as cells span more slices—falling from 81.3% unanimous agreement across 2 slices down to 58.8% across 5 slices, likely due to subtle linking errors, staining batch effects, or genuine biological variation across a cell's body. Second, 15–20 slices only yield a stack depth of 60 to $80\ \mu\text{m}$. This shallow depth cuts off 3D neighbourhoods along the Z-axis and likely overestimates 3D distances to rare cells—meaning the true gap between 2D and 3D is probably even larger than reported here. Future work aims to reconstruct deeper volumes, validate against true volumetric imaging ground truth, and explore tailored correction models for 2D statistics.

Summary updated

Abstract

Spatial analysis of the tumour microenvironment with multiplex immunofluorescence (mIF) typically relies on single thin tissue sections, which misrepresent the 3D tissue organisation and bias spatial cell statistics in ways that remain largely unquantified. We reconstruct 24 breast and lung tumour tissue microarray cores in 3D, each from 15-20 serial mIF sections, and compare spatial cell statistics in 3D with those from individual sections. Our pipeline combines affine pre-alignment with dense deformable refinement using RoMa v2, achieving a median target registration error of 1.79 $μ$m, well below nuclear size, which allows nuclei to be linked across sections. While cell-type proportions are preserved in 2D (Pearson corr. $r \geq 0.99$), 3D analysis reveals up to 3.8 times shorter nearest-neighbour distances, 13-19% higher neighbourhood entropy, and 2-4 times more contacts per cell. Tissue composition can thus be reliably estimated from individual sections, whereas cell-cell interactions require volumetric analysis.
BibTeX
@misc{ma2026beyond,
  author = {Junming Ma and Olle Edgren Schüllerqvist and Hui Yu and Carina Strell and Patrick Micke and Joakim Lindblad and Artur Mezheyeuski and Nataša Sladoje},
  title = {{Beyond the section plane: Robust 3D reconstruction of multiplex immunofluorescence exposes limitations of 2D spatial cell statistics}},
  year = {2026},
  eprint = {2611.28905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28905},
}

Loading related content...

Figure