Cells, brains & medicine

Neuron Reconstruction

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

Trace neurons through a 3D electron microscopy volume
  1. EM volume

    Begin at a seed location in a stack of brain tissue images.

  2. Trace across slices

    Follow a neuron through neighboring 2D sections.

  3. 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

Input · Grayscale EM image
MaleCNS electron microscopy slice through the center of the scoring region
Output · FFN baseline segmentation overlay[1]
Predicted neuron identities overlaid on the same electron microscopy slice

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.

I∈ℝD×H×W ⟶Y^∈ {0,1,…,K}D×H×W

Here, I is the grayscale EM image, and Y^ 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.
Grayscale EM crop
Same EM crop with a blue neuron fragment mask
Example seed voxel → grown fragment
(I,M)⏟ 2×333 ⟶FFN M′⏟ 333

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 MA of fragment A.
Output
A predicted continuation mask M^A.
EM image with existing blue fragment and nearby purple fragment
Predicted green continuation between blue and purple fragments
Example fragments → proposed continuation
(I,MA) ⏟ 2×1283 ⟶Sense M^A ⏟ 1283

3. SHAPE — Validate merges

SHAPE checks whether two fragments could form one neuron. Pairs that meet the fixed acceptance threshold are merged.

Input
Sampled (x,y,z) points from the combined geometry of fragments A and B.
Output
A probability p that the combined shape represents a single neuron.
Blue and lavender neuron fragments separated by a small gap on the left, and the same pair joined at their tips on the right.
Illustration of an accepted fragment merge
PA∪B ⏟ 8192×3 ⟶Shape p⏟ [0,1]

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.

RegionSizePurpose
Scoring region5123 voxelsCompare predicted neuron identities against reference neuron skeletons
Reconstruction volume17623 voxelsProvide 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 pi, it reads the predicted neuron ID from the segmentation volume.

z^i= Y^[pi]

The evaluator identifies reconstruction errors by comparing these predicted IDs along and across reference skeletons.

ErrorHow it is detected
SplitConnected points on the same reference neuron receive different predicted IDs.
MergePoints from different reference neurons share the same predicted neuron ID.
OmissionA 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.

nERL= ERLpredicted ERLideal

Here, ERLpredicted measures the expected length of correctly reconstructed neuron segments, while ERLideal 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. [1] FlyEM collaboration. MaleCNS connectome dataset, v1.0. CC BY 4.0.
  2. [2] Januszewski, M., Templier, T., Hayworth, K. J., Peale, D. and Hess, H. Accelerating Neuron Reconstruction with PATHFINDER. bioRxiv (2025).
  3. [3] Fruit Fly Neuron Reconstruction benchmark dataset. Hugging Face.