D-LMBmapX: Generalised Deep Learning Pipeline for 5D Whole-brain Circuitry Profiling

Zhongyu Li, Peiqi Li, Hong Pan, A. Adams, Zhibin Huang, He Liu, Jinjiang Li, Yaoyu Su, B. Zhong, Liam Bray, Robyn N. Sturgess, Jihua Zhu, Junwei Han, Shaoting Zhang, Jing RenbioRxiv 2025

Introduction

Understanding the development of whole-brain circuitry is fundamental to uncovering the origins of neurological disorders linked to abnormal neural wiring. However, mapping the "connectome" across developmental stages presents a monumental challenge. The brain undergoes massive structural shifts and rapid morphological changes in axons from birth through weaning. Existing computational tools often struggle with three primary gaps: a scarcity of high-resolution reference atlases for intermediate developmental stages, the difficulty of segmenting dynamic axonal structures, and the inability to align disparate imaging modalities into a unified 3D framework.

To address these challenges, we present D-LMBmapX, an end-to-end deep learning pipeline designed to automate the mapping of neural circuits across the rapidly changing landscape of the developing mouse brain. By integrating high-resolution 3D atlases with a novel neuron foundation model, D-LMBmapX enables quantitative mesoscale developmental connectomics at arbitrary time points.

The D-LMBmapX Framework

7-Stage 3D Atlas and the "Flanking" Strategy

One of the core innovations of D-LMBmapX is the construction of high-resolution (10 μm) average templates for seven postnatal stages: P0, P4, P7, P10, P14, P21, and P28. These were generated using Light-Sheet Fluorescence Microscopy (LSFM) from 30–40 half-brains per stage.

Rather than requiring a unique atlas for every single day of development, the pipeline employs an adaptive "flanking" strategy. When an experimental brain falls between established stages (e.g., a P12 brain), D-LMBmapX registers the sample to its two nearest "anchor" stages (P10 and P14). This sample-inferred approach allows for accurate interpolation and registration at any developmental time point, effectively filling the "dark zones" of brain development.

2.5D Non-Rigid Registration

To manage the high variability of developing brains without the prohibitive computational costs of full 3D deep learning, the pipeline utilizes a 2.5D registration approach. By performing non-rigid registration on orthogonal 2D slices and subsequently reconstructing the 3D volume, the system achieves high accuracy and efficiency, maintaining structural integrity across the volume.

The Neuron Foundation Model

Automated segmentation of axons in the developing brain is notoriously difficult because their morphology differs significantly from adult structures. D-LMBmapX introduces a Neuron Foundation Model based on a Vision Transformer (ViT) masked autoencoder.

HOG: The Secret Sauce

While standard self-supervised learning often focuses on pixel-level reconstruction, D-LMBmapX's foundation model is trained to reconstruct both raw pixels and the Histogram of Oriented Gradients (HOG). By forcing the model to prioritize edges and orientations, it becomes significantly more adept at recognizing the tree-like, topological structures of axons. This dual-target strategy allows the model to "see" thin, spindly structures that traditional automated tools often miss.

Few-Shot Learning and Generalization

Pre-trained on over 100,000 3D brain cubes, the foundation model exhibits remarkable generalization. It can be fine-tuned for specific tasks—such as new staining methods or different brain regions—using only a handful of annotated samples. This few-shot learning capability makes high-end circuitry profiling accessible to laboratories without dedicated AI expertise.

Cross-Modality and Cross-Dimensional Integration

A significant hurdle in neuroimaging is the "modality mismatch" between 2D histological slices and 3D reference volumes. D-LMBmapX addresses this through a diffusion-based style transfer model. By implementing brain-edge constraints, the model can transform 2D slices (such as In Situ Hybridization data) to match the appearance of 3D LSFM scans, ensuring precise alignment and localization within the 3D atlas. This breakthrough reduces the labor-intensive nature of manual 2D-to-3D registration and minimizes human error.

Key Results and Biological Discovery

The pipeline's performance was validated against gold-standard benchmarks, including the Allen Mouse Brain CCFv3 and KimDevCCF, achieving high Dice scores across various developmental stages. Beyond technical validation, the authors demonstrated the utility of D-LMBmapX by profiling the spatial-temporal development of catecholaminergic (specifically dopaminergic) projections. This provided a first-of-its-kind quantitative look at how these critical circuits mature during the first month of postnatal life.

Limitations and Future Directions

While D-LMBmapX represents a significant leap forward, it currently focuses on postnatal development (P0–P28). Extending the pipeline to embryonic stages remains a challenge due to even more radical morphological shifts. Additionally, while style transfer mitigates some differences, the primary atlases are optimized for iDISCO+ cleared brains; performance may vary with other clearing protocols. Finally, while the 2.5D registration is efficient, the initial pre-training of the foundation model requires substantial hardware (e.g., 8x NVIDIA A100 GPUs), though the authors have mitigated this by making pre-trained weights publicly available.

Conclusion

D-LMBmapX offers a generalized strategy for the 5D analysis of diverse biomedical spatial datasets. By combining robust registration, a specialized neuron foundation model, and cross-modality flexibility, it provides a powerful toolkit for the next generation of developmental neuroscience research.

Summary updated

Abstract

SUMMARY Understanding whole-brain circuitry development is essential for uncovering the origins of disorders linked to abnormal neural wiring, yet progress has been limited by the lack of tools for accurate, comprehensive analysis. Brain development is highly dynamic and region-specific, with pronounced inter-individual variability during early stages, and no existing method achieves whole-brain profiling at arbitrary stages. The rapidly changing morphology of developing axons further complicates segmentation. Here, we present D-LMBmapX, a deep learning pipeline for automated whole-brain circuitry profiling across postnatal development. D-LMBmapX constructs sample-inferred atlases from flanking anchor stages, enabling accurate registration at any time point. By developing a foundation model for generalised axon and soma segmentation, it supports quantitative mesoscale developmental connectomics, demonstrated through spatial-temporal profiling of catecholaminergic projections. D-LMBmapX also enables robust cross-modality and cross-dimensional registration, including precise alignment of single 2D slices to 3D references, and offers generalizable strategies for 5D analysis of diverse biomedical spatial datasets.
BibTeX
@misc{li2025d,
  author = {Zhongyu Li and Peiqi Li and Hong Pan and A. Adams and Zhibin Huang and He Liu and Jinjiang Li and Yaoyu Su and B. Zhong and Liam Bray and Robyn N. Sturgess and Jihua Zhu and Junwei Han and Shaoting Zhang and Jing Ren and Shaoting Zhang and Jing Ren},
  title = {{D-LMBmapX: Generalised Deep Learning Pipeline for 5D Whole-brain Circuitry Profiling}},
  year = {2025},
  doi = {10.1101/2025.02.25.639766},
  howpublished = {bioRxiv},
}
Figure