Virtual reality-empowered deep-learning analysis of brain cells

Doris Kaltenecker, Rami Al-Maskari, Moritz Negwer, Luciano Hoeher, Florian Kofler, Shan Zhao, Mihail Ivilinov Todorov, Zhouyi Rong, Johannes C. Paetzold, Benedikt Wiestler, Marie Piraud, Daniel Rueckert, Julia Geppert, Pauline Morigny, Maria Rohm, Bjoern Menze, Stephan Herzig, Mauricio Berriel Díaz, Ali ErtürkNature Methods 2024

Abstract

Automated detection of specific cells in three-dimensional datasets such as whole-brain light-sheet image stacks is challenging. Here, we present DELiVR, a virtual reality-trained deep-learning pipeline for detecting c-Fos<sup>+</sup> cells as markers for neuronal activity in cleared mouse brains. Virtual reality annotation substantially accelerated training data generation, enabling DELiVR to outperform state-of-the-art cell-segmenting approaches. Our pipeline is available in a user-friendly Docker container that runs with a standalone Fiji plugin. DELiVR features a comprehensive toolkit for data visualization and can be customized to other cell types of interest, as we did here for microglia somata, using Fiji for dataset-specific training. We applied DELiVR to investigate cancer-related brain activity, unveiling an activation pattern that distinguishes weight-stable cancer from cancers associated with weight loss. Overall, DELiVR is a robust deep-learning tool that does not require advanced coding skills to analyze whole-brain imaging data in health and disease.

Introduction

Mapping neuronal activity across the entire brain is essential for understanding how diseases affect behavior and physiology. Researchers typically use markers like c-Fos to identify active neurons in "cleared" (transparent) mouse brains imaged with light-sheet microscopy. However, these 3D datasets are massive, complex, and noisy. Traditional automated methods rely on manual thresholding and rigid filters, which often miss cells or require expert coding skills to fine-tune. Deep learning offers a more robust solution, but it is "data-hungry"—it requires thousands of accurately labeled examples to work well. Annotating these examples in 2D, slice by slice, is agonizingly slow and prone to errors because the annotator cannot see the full 3D shape of a cell at once.

The DELiVR Pipeline

The authors developed DELiVR (Deep-learning and Virtual reality mesoscale annotation pipeline) to bridge this gap. The core innovation is the use of VR-aided annotation. Using VR headsets, researchers can "step inside" the volumetric brain data to label cells in 3D, which is both faster and more intuitive than looking at flat screens.

Annotation of cells using VR allows for immersive 3D labeling and faster ground-truth generation.

The technical pipeline includes a 3D BasicUNet architecture optimized for volumetric segmentation, automated pre-processing to mask out brain ventricles, and atlas alignment using mBrainAligner. To ensure accessibility, the entire tool is packaged in a Docker container with a user-friendly Fiji plugin, making it accessible to biologists without advanced coding expertise.

Performance and Generalizability

Annotating in VR was roughly 5 times faster than traditional 2D methods and resulted in higher-quality training data. DELiVR achieved an F1 score of 0.7918, a massive improvement over existing tools like ClearMap2 (+89%) and the optimized version of ClearMap (+31%). Unlike traditional filters that struggle with uneven signal-to-noise ratios, the deep-learning model learns to handle local variances, capturing up to 84 times more true positive cells than previous state-of-the-art tools without over-segmenting.

Comparison of F1 scores showing the superior performance of VR-trained models (black bar) compared to traditional methods.

The model also demonstrated impressive generalizability. When adapted for microglia somata, the model reached an F1 score of 0.92, proving it can be customized for various cell types beyond neuronal activity markers.

The team applied DELiVR to whole-brain scans from three groups of mice: healthy controls, weight-stable cancer (NC26), and cancer with weight loss/cachexia (C26). The most striking biological finding was a "hyperactivation" pattern in the brains of mice with weight-stable cancer. This activation was lost in mice suffering from cachexia, suggesting that specific brain regions related to sensory processing and foraging might play a role in maintaining body weight during cancer. The team identified 19 brain areas with significantly different activation patterns, particularly in the cortical plate and lateral septal complex.

Conclusion

DELiVR represents a major step forward in mesoscale brain analysis. By combining the intuitive nature of virtual reality with the power of deep learning, it allows researchers to generate high-quality training data rapidly. While hardware requirements for VR and GPUs remain a consideration, the tool's accessibility via Fiji and Docker makes it a robust resource for the neuroscience community to study brain-wide activity in health and disease.

Summary updated

BibTeX
@inproceedings{kaltenecker2024virtual,
  author = {Doris Kaltenecker and Rami Al-Maskari and Moritz Negwer and Luciano Hoeher and Florian Kofler and Shan Zhao and Mihail Ivilinov Todorov and Zhouyi Rong and Johannes C. Paetzold and Benedikt Wiestler and Marie Piraud and Daniel Rueckert and Julia Geppert and Pauline Morigny and Maria Rohm and Bjoern Menze and Stephan Herzig and Mauricio Berriel Díaz and Ali Ertürk},
  title = {{Virtual reality-empowered deep-learning analysis of brain cells}},
  booktitle = {Nature Methods},
  year = {2024},
  doi = {10.1038/s41592-024-02245-2},
}
Figure