A generative AI model called LUNA reconstructs the spatial arrangement of millions of cells from gene expression data alone, accurately mapping brain architecture and flagging disease-related changes in a mouse model of Parkinson’s disease.
Published this week in Nature Methods, the study introduces a diffusion-based model that learns the rules of cellular organization directly from spatially resolved transcriptomics data, then predicts where cells sit in a tissue using only their gene activity.
Trained on 2.85 million mouse brain cells from the Allen Brain Cell Atlas, LUNA rebuilt slices from a second mouse containing more than 1.2 million cells across 11 major brain regions — and placed cell types it had never seen during training.
How LUNA learns tissue architecture
Single-cell RNA sequencing reveals which genes are active in each cell but requires dissociating tissue, destroying spatial context. Methods that preserve location, such as MERFISH or Slide-tags, cost more and historically measure fewer genes. LUNA bridges the gap: it learns spatial priors from existing spatial datasets and applies them to dissociated data at inference.
The model belongs to the family of diffusion models — the same class that powers AI image generators. During training, researchers took datasets where both gene expression and cell coordinates were known, progressively added noise to the coordinates to scramble the tissue structure, and taught the model to reverse the process.

An attention-based mechanism lets each cell “attend” to others, according to their relevance to its own location and molecular features. A pairwise loss function preserves the relative distances between cells, making predictions resistant to rotations or translations of the tissue slice.
Zero-shot generalization to unseen cell types
LUNA’s most striking result came when it was asked to reconstruct a mouse brain from the MERFISH atlas after training on a different mouse. It accurately placed NP-CT-L6b glutamatergic neurons — 69,641 excluded during training and 29,262 evaluated — in the isocortex, cortical subplate, and hippocampal formation while preserving known expression patterns of Tshz2 and Syt6. It similarly generalized to 198,550 unseen vascular cells and HY GABA neurons through shared expression patterns.
Detecting Parkinson’s pathology without disease training data
The team tested LUNA on brain tissue from a mouse model of Parkinson’s disease, even though the model had been trained only on healthy tissue. LUNA identified regions exhibiting changes in gene expression associated with the disease. Independent laboratory experiments then confirmed that these regions contained higher accumulations of alpha-synuclein, a protein implicated in Parkinson’s.
Enriches spatial datasets by inferring missing cells and gene expression
LUNA can enrich sparse spatial datasets by inferring missing cell positions and gene expression.

Built for accessibility and scale
An important design goal was robustness across measurement technologies, including less expensive ones. The project was funded by the Swiss National Science Foundation, the Swiss Cancer League, and the Swiss AI Initiative.
ORBIS tackles 3D reconstruction using shared spatial state and dynamic windows
LUNA currently predicts cellular organization within two-dimensional tissue slices. Three-dimensional reconstruction remains an active challenge.
A separate generative framework called ORBIS, described in a bioRxiv preprint from the same research group, tackles 3D reconstruction directly. At inference, a shared spatial state is iteratively updated through dynamically regrouped windows, enabling generation of millions of cell positions without independently reconstructing and stitching regions.
DIRAC: a complementary tool for multi-omic spatial analysis
While LUNA and ORBIS focus on generative reconstruction from gene expression, a different computational tool named DIRAC addresses a related problem: integrating multiple types of molecular measurements that each capture only part of the spatial picture.
Developed by researchers at the National University of Singapore in collaboration with Harbin Medical University, DIRAC combines different molecular information while accounting for cell location and neighborhood context, and draws on existing cell atlases to annotate cell types in new samples.
The study demonstrates how combining complementary molecular information can provide a clearer understanding of tissue organisation. DIRAC can also efficiently analyse datasets containing millions of cells, making it suitable for increasingly large biological studies. Dr Chang XU
By enabling researchers to examine cellular identity, location and interactions together, DIRAC offers a valuable tool for investigating how tissues function in health and how their organisation changes with disease. Prof Liu
The LUNA study appears in Nature Methods (DOI: 10.1038/s41592-026-03332-2), marking a step toward generative tissue reconstruction as a general approach for overcoming technological limits in spatial biology.