Neuron Reconstruction
Develop AI models that reconstruct individual neurons from 3D electron microscopy images, preserving their branching structures while avoiding incorrect splits and merges.
-
EM volume

Begin at a seed location in a stack of brain tissue images.
-
Trace across slices

Follow a neuron through neighboring 2D sections.
-
Reconstructed neurons
- Neuron instances
- A label for each reconstructed neuron

- 3D continuity
- A branch should stay connected across adjacent slices.
Results
Score breakdown
The Task
What is Neuron Reconstruction?
Neurons are nerve cells with long, branching structures that connect to other neurons. Mapping these structures is essential for understanding how neural circuits are organized.
Electron microscopy (EM) captures detailed grayscale images of brain tissue. Images from successive depths form a 3D volume through which neuron reconstruction traces individual neurons.
A 3D EM volume is made up of voxels, the three-dimensional equivalent of pixels. Each neuron extends across many voxels and may branch or pass close to neighboring neurons.
From electron microscopy to neuron segmentation


Both images show the same MaleCNS tissue slice. Colors identify predicted neurons, and unassigned voxels appear in grayscale. Each panel shows a 2D slice of a 3D volume.
The task is to assign voxels to individual neurons.
Here, I is the grayscale EM image, and is the reconstructed segmentation. Each nonzero integer identifies a neuron, while zero represents unassigned voxels.
The main challenge is preserving each neuron’s continuous branches without accidentally connecting different neurons.
What the Agent Develops
The agent trains three neural networks in a fixed PATHFINDER-style pipeline[2]. It can improve the training data, objectives, and learned weights. The model architectures and reconstruction protocol are fixed.
1. FFN — Grow neuron fragments
FFN starts at a seed voxel and repeatedly updates its mask to grow an individual neuron fragment.
- Input
- A 3D EM crop I and the current neuron mask M.
- Output
- An updated mask M′ for voxels belonging to the neuron.
2. SENSE — Propose connections
SENSE predicts where fragment A could extend. Overlap with another fragment produces a candidate connection.
- Input
- A 3D EM crop I and the mask of fragment A.
- Output
- A predicted continuation mask .
3. SHAPE — Validate merges
SHAPE checks whether two fragments could form one neuron. Pairs that meet the fixed acceptance threshold are merged.
- Input
- Sampled points from the combined geometry of fragments A and B.
- Output
- A probability p that the combined shape represents a single neuron.
Data & Prediction Tasks
The benchmark uses the MaleCNS v1.0 dataset[1], which provides 3D electron microscopy images and reference neuron reconstructions of the adult male fruit fly’s central nervous system.
The images are sampled at 16 nm per voxel. Training, validation, and test data use separate spatial regions, with shared neuron identities excluded where specified[3].
Prediction and Evaluation Regions
The model reconstructs neurons from 3D EM images. Evaluation focuses on a 512 × 512 × 512 voxel region, but the reconstruction uses a larger surrounding volume to capture neurons extending beyond this region.
| Region | Size | Purpose |
|---|---|---|
| Scoring region | voxels | Compare predicted neuron identities against reference neuron skeletons |
| Reconstruction volume | voxels | Provide surrounding context for tracing neurons and evaluating fragment connections |
Only the central scoring region determines the final reconstruction score. The surrounding volume provides the spatial context required by the fixed reconstruction pipeline.
Evaluation
Neuron Reconstruction Accuracy
The evaluator uses reference neuron skeletons, which represent known neurons as connected 3D points. For each skeleton point , it reads the predicted neuron ID from the segmentation volume.
The evaluator identifies reconstruction errors by comparing these predicted IDs along and across reference skeletons.
| Error | How it is detected |
|---|---|
| Split | Connected points on the same reference neuron receive different predicted IDs. |
| Merge | Points from different reference neurons share the same predicted neuron ID. |
| Omission | A reference skeleton point receives ID 0 (unassigned). |
The evaluator uses these skeleton-level correspondences to measure reconstruction continuity and compute nERL. Scoring also accounts for path lengths and error-filtering rules.
Overall Scoring
The primary metric is Normalized Expected Run Length (nERL), which measures how far a neuron can be traced correctly before encountering a reconstruction error.
Here, measures the expected length of correctly reconstructed neuron segments, while is the expected length under a perfect reconstruction of the same reference skeletons.
The score ranges from 0 to 1, with higher values indicating longer, more accurate neuron reconstructions. Splits, merges, and omissions reduce the score.
References
- [1] FlyEM collaboration. MaleCNS connectome dataset, v1.0. CC BY 4.0.
- [2] Januszewski, M., Templier, T., Hayworth, K. J., Peale, D. and Hess, H. Accelerating Neuron Reconstruction with PATHFINDER. bioRxiv (2025).
- [3] Fruit Fly Neuron Reconstruction benchmark dataset. Hugging Face.