3DBrainMiner, A tool to generate brain graphs from MR-images

Antoine Bourlier, Élodie Chaillou, Jean-Yves RamelHAL 2023

Abstract: 3DBrainMiner is an open-source Python toolkit designed to transform 3D MRI data into structured graph representations. By converting volumetric images into nodes and edges, the tool enables researchers to apply advanced graph mining and machine learning techniques to comparative neuroanatomy. A key feature of the tool is its ability to create edges between nodes based on spatial proximity thresholds, facilitating the analysis of .nifti imaging data across diverse species.

Introduction

While brain imaging methods are generating a massive influx of morphological and functional data, most existing analysis tools are optimized for humans or common laboratory rodents. Researchers working with "non-conventional" models—such as birds or livestock—often face a lack of specialized databases and automated pipelines.

3DBrainMiner addresses this gap by representing the brain as a graph, where nodes represent anatomical structures and edges represent their connections. This approach provides a mathematically sound framework to explore complex datasets and compare neuronal circuits across different species. The tool aims to provide a unified, interoperable pipeline to automate the transformation from raw MR images to graphs, making it easier to utilize graph matching and machine learning in neuroscientific research.

The 3DBrainMiner Pipeline

The 3DBrainMiner framework consists of four interoperable modules designed to handle the full lifecycle of graph generation and analysis:

The 3DBrainMiner workflow: converting .nifti volumetric data into structured .gxl graph nodes.
  1. Brain Segmentation: The tool processes .nifti images, supporting both manual segmentation and an automated "split and merge" approach to define distinct brain regions.
  2. Features Extractor: This module calculates a variety of metrics for each region. Beyond standard volume and intensity, it introduces novel geometric features such as radial profiles, sphericity, and contact surfaces between structures.
  3. Graph Builder: As the core of the toolkit, this module offers two strategies for edge creation:
  4. Expert Knowledge: Utilizes a predefined adjacency matrix to represent known neuroanatomical relationships.
  5. Data-Driven: Automatically creates edges based on a proximity threshold—if two structures are sufficiently close in 3D space, they are connected.
  6. Graph Miner: The resulting graphs are exported as .gxl files, ready for analysis using graph mining algorithms, graph matching, or Graph Neural Networks (GNNs).

Key Insights and Comparative Neuroanatomy

A primary strength of 3DBrainMiner is its flexibility in connectivity modeling. By allowing researchers to choose between hardcoded adjacency and distance-based thresholds, the tool accommodates both well-mapped species and "dark" species where connectivity is not yet fully understood. Furthermore, by extracting shape-based features like radial profiles, the resulting graphs capture the geometric "personality" of brain regions, which is crucial for training sophisticated machine learning models.

The NECOS initiative supports comparative neuroanatomy across diverse species like sheep and quail.

The project specifically targets the "NECOS" (NeuroCompare) initiative, which investigates comparative neuronal circuits for adaptive behavior across a wide range of animals, including quail and sheep. The tool's modularity ensures that researchers can use the segmenter independently or integrate their own segmented data into the feature extraction and graph-building pipeline.

Conclusion and Future Work

3DBrainMiner successfully demonstrates a functional pipeline that converts raw MRI data into multi-featured graphs across vastly different brain morphologies, from avian to mammalian models. The tool is implemented in Python and hosted on a public Git repository to ensure accessibility and community contribution.

Future work will focus on applying 3DBrainMiner to larger comparative datasets to uncover evolutionary trends in brain structure. Additionally, there is a clear path toward integrating more advanced GNN architectures to automate the classification of brain regions and the detection of anomalies across species, further bridging the gap between raw imaging and high-level neuroanatomical insights.

Summary updated

Abstract

An edge is created between two nodes if the structures are sufficiently close (threshold parameter) .niftii.niftii.niftii
BibTeX
@inproceedings{bourlier2023dbrainminer,
  author = {Antoine Bourlier and Élodie Chaillou and Jean-Yves Ramel},
  title = {{3DBrainMiner, A tool to generate brain graphs from MR-images}},
  booktitle = {HAL},
  year = {2023},
}
Figure