combined_sample_hash string | source_archive_sample_hash string | source_archive string | sample_type string | same_neuron bool | task_routing list | false_split_correction_label float64 | false_merge_identification_label float64 | split string | species string | has_em bool | has_after_mask bool | present_slots list | metadata string | geometry unknown | em_xy_before image | em_xz_before image | em_yz_before image | em_best_before image | split_mask_front image | split_mask_side image | split_mask_top image |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81c5a636674e76552ed428d6c3f1148c | 88cda73850c3 | unified_fly | merge_edit | true | [
"false_split_correction"
] | 1 | null | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | {"adjacent_root": null, "after_root_ids": ["720575940637082736"], "base_root": null, "before_root_ids": ["720575940615095369", "720575940629936119"], "cutout_timestamp": null, "edit_point_nm": [331008.0, 306424.0, 251800.0], "image_types": ["geometry", "em_xy_before", "em_xz_before", "em_yz_before", "em_best_before"], ... | [
80,
75,
3,
4,
45,
0,
0,
0,
8,
0,
0,
0,
33,
0,
120,
194,
142,
45,
255,
255,
255,
255,
255,
255,
255,
255,
9,
0,
20,
0,
97,
114,
114,
95,
48,
46,
110,
112,
121,
1,
0,
16,
0,
128,
40,
32,
0,
0,
0,
0,
0,
22,
52,
1,... | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
8b8301f8499a8c916ea4586aaca884de | 60a789906f67 | unified_controls_fly | junction_control | true | [
"false_merge_identification"
] | null | 0 | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"ach\": null, \"cleft_score\": null, \"connection_score\": null, \"cutout_timestamp\": 1778960736(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQBg1jm7//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAAhPEBAAAAAADsnQl8VNXZ/6NmsQq4NIv(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
f68dc81a0a77a76a2943da4839464cc9 | a8c0215dbc61 | unified_mouse | split_edit | false | [
"false_merge_identification",
"split_mask_generation"
] | null | 1 | train | mouse | true | true | ["em_best_before","em_xy_before","em_xz_before","em_yz_before","geometry","split_mask_front","split_(...TRUNCATED) | "{\"adjacent_root\": null, \"after_root_ids\": [\"864691136195774028\", \"864691135701852539\"], \"b(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQBY0eLk//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAAFY4BAAAAAADsnQd8FMfZ/+VYJXEocSJ(...TRUNCATED) | |||||||
33d61489c3965bce0890d9f5a1af76be | 15fc2ee581e7 | unified_mouse | split_edit | false | [
"false_merge_identification",
"split_mask_generation"
] | null | 1 | train | mouse | true | true | ["em_best_before","em_xy_before","em_xz_before","em_yz_before","geometry","split_mask_front","split_(...TRUNCATED) | "{\"adjacent_root\": null, \"after_root_ids\": [\"864691135571633445\", \"864691136065917592\"], \"b(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQB5yArs//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAAuLYAAAAAAADs3Al81Hed//HoAvEgoJW(...TRUNCATED) | |||||||
ca5b3cedb5f5abb9af734b66d4628b28 | e18bee5ff260 | unified_controls_fly | junction_control | true | [
"false_merge_identification"
] | null | 0 | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"ach\": null, \"cleft_score\": null, \"connection_score\": null, \"cutout_timestamp\": 1778960736(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQD2fMfU//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAApPEEAAAAAADsnQV8FEcbxoNbcSnQ4g6(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
5cbf55b84d810d2c6e1e0fcc847edc2e | 1f102dfa1e6f | unified_fly | adjacent_control | false | [
"false_split_correction"
] | 0 | null | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"adjacent_root\": \"720575940599812524\", \"after_root_ids\": null, \"base_root\": \"720575940634(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQCXKnqj//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAANAQFAAAAAADsnQWcFdX7xpfu7t66XXP(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
d61ab3d8dd6bbf5e55a8c51e13d247b9 | a460da64c995 | unified_controls_mouse | junction_control | true | [
"false_merge_identification"
] | null | 0 | train | mouse | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"cutout_timestamp\": 1778960736, \"degree\": 3.0, \"image_types\": [\"geometry\", \"em_xy_before\(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQDMDRw4//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAArjEDAAAAAADsnQWYE9fXxhd3d1hg0WU(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
2626ce210fb90e503c03964349848183 | 06d649c6a2aa | unified_controls_fly | junction_control | true | [
"false_merge_identification"
] | null | 0 | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"ach\": null, \"cleft_score\": null, \"connection_score\": null, \"cutout_timestamp\": 1778960736(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQDlpWqM//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAAtSYCAAAAAADsnQd8VGX29yOm6Aq4agB(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet | ||||
c96b48b99532de5b8af8852462964455 | a396121924a2 | unified_mouse | split_edit | false | [
"false_merge_identification",
"split_mask_generation"
] | null | 1 | train | mouse | true | true | ["em_best_before","em_xy_before","em_xz_before","em_yz_before","geometry","split_mask_front","split_(...TRUNCATED) | "{\"adjacent_root\": null, \"after_root_ids\": [\"864691135583341933\", \"864691135465118789\"], \"b(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQAMh4Ge//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAA9zYAAAAAAADt3Qm8leV+H3qS45CmoE0(...TRUNCATED) | |||||||
3f4580f3355646caebbfbe45a3939163 | 18bb74a7a04f | unified_fly | adjacent_control | false | [
"false_split_correction"
] | 0 | null | train | fly | true | false | [
"em_best_before",
"em_xy_before",
"em_xz_before",
"em_yz_before",
"geometry"
] | "{\"adjacent_root\": \"720575940627479725\", \"after_root_ids\": null, \"base_root\": \"720575940610(...TRUNCATED) | "UEsDBC0AAAAIAAAAIQCSlq51//////////8JABQAYXJyXzAubnB5AQAQAIAoIAAAAAAA7vEAAAAAAADsvQl0lVe5+I2aoWqgDiT(...TRUNCATED) | Not supported with pagination yet | Not supported with pagination yet | Not supported with pagination yet |
ConnectomeBench2
ConnectomeBench2 is a unified benchmark for automated proofreading of connectomic neural-segmentation data. 716,485 samples across 4 species (mouse, fly, human, zebrafish) and 5 sample types (real merge edits, real split edits, synthetic adjacent / junction / synapse controls), with the associated mesh geometry and electron-microscopy (EM) renderings.
Downstream trainers should treat this dataset as the single source of truth for sample identity, labels, train/validation/test split, and which task(s) a row is valid for.
v2 (June 2026) β major schema refresh. The prior
v1-may06release (401,170 rows) is preserved as a git tag; load it viaload_dataset("jeffbbrown2/ConnectomeBench2", revision="v1-may06"). Breaking changes vs v1 are summarized in "Changelog" at the bottom.
Context: Connectomic Proofreading
Connectomics scans and automatically segments neurons to create large-scale brain maps at cellular resolution. Two types of segmentation errors can occur in this process, which need to be corrected (= proofreading):
- False Splits β corrected via merge corrections
- False Merges β corrected via split corrections
Merge corrections (of false splits) are applied to multiple segments that need to be correctly merged together. Split corrections (of false merges) are applied to single segments that need to be correctly split apart.
For this reason, this dataset contains renderings of both single-segment (pre-split or post-merge) and dual-segment (post-split or pre-merge) mesh geometry. Each row carries one geometry render whose dual-vs-single semantics is determined by the row's sample_type. EM data is provided in dual format only β segmentation on imaging level is contiguous, so the single-version can be derived from the union of the dual.
Renderings (geometry and EM imaging data)
(top: synapse merge-pair β both masks populated; bottom: junction control β single-mask only, mask B / seg B empty)
Geometry files (the geometry column) are compressed .npz payloads that decode to (3, 7, 224, 224) float16 arrays β three 2D views (front, side, top) Γ seven channels:
| ch | content |
|---|---|
| 0 | silhouette |
| 1 | depth |
| 2 | normal_x |
| 3 | normal_y |
| 4 | normal_z |
| 5 | mask A |
| 6 | mask B (empty in single-segment renders) |
The geometry column is dual-segment when sample_type β {merge_edit, adjacent_control, synapse_control} and single-segment when sample_type β {split_edit, junction_control}. The two flavors differ not only in mask channels but also subtly in all other channels, due to slight differences in mesh geometry from merging/splitting. See the per-row metadata.is_merge field (or equivalently, sample_type) to disambiguate.
Free split-mask labels. For split_edit rows, three additional PNG columns β split_mask_front, split_mask_side, split_mask_top β provide per-view, pixel-level ground truth for the post-split (dual) state, view-aligned with the single-segment geometry render. Split-mask-generation tasks consume these directly without extra labeling. Coverage: 127,445 / 145,338 split_edits (87.7%); the rest had no after-state available.
EM imaging files (em_xy_before / em_xz_before / em_yz_before / em_best_before columns) are PNG-encoded 3-channel slices of the before-edit state:
| ch | content |
|---|---|
| 0 | raw EM intensity |
| 1 | segment A mask |
| 2 | segment B mask |
Four imaging views per sample: three cardinal slices (xy, xz, yz) + a best slice at an oblique angle that maximizes the visible area of both segments (sum of their logs). The _before suffix is to be explicit that these reflect the pre-edit segmentation; no _after EM is rendered.
For single-segment tasks, segment A and B should be merged (and B zeroed). The best view may leak some dual-label information (it takes both labels into account); we advise against testing single-segment tasks on em_best_before.
Loading
from datasets import load_dataset
ds = load_dataset("jeffbbrown2/ConnectomeBench2", split="train")
sample = ds[0]
# sample["em_xy_before"] is a PIL Image (HF auto-decodes)
# sample["geometry"] is bytes β decode with:
import io, numpy as np
geom = np.load(io.BytesIO(sample["geometry"]))["arr_0"] # shape (3, 7, 224, 224) float16
Or with raw pyarrow:
import pyarrow.parquet as pq
import numpy as np, io
df = pq.read_table("train/train-00000.parquet").to_pandas()
geom = np.load(io.BytesIO(df.iloc[0]["geometry"]))["arr_0"]
The metadata/{train,val,test}.parquet sidecars contain identifier/label/modality columns only (no image bytes) β useful for fast filtering or inspection.
Columns
Identifiers
combined_sample_hashβ primary key (md5 hex 32-char off"{source_archive}|{source_archive_sample_hash}"); guaranteed unique across the dataset.source_archive_sample_hashβ legacy 12-char hex hash from upstream; kept for traceability, not unique alone.source_archiveβ name of the originating render archive (e.g.unified_mouse,unified_controls_fly). 8 distinct values (unified_{sp}for ops/adj,unified_controls_{sp}for junction+synapse, Γ 4 species).
Sample identity
sample_type: strβ single source of truth for what kind of sample this row is. Five values:merge_editβ positive merge-correction editsplit_editβ positive split-correction editadjacent_controlβ synthetic negative for merge-correction (segments adjacent to genuine correction)junction_controlβ putative junction in proofread neuron (negative merge-error-id sample)synapse_controlβ synapse pair across neurons (negative merge-correction)
same_neuron: boolβ derived from sample_type:Trueformerge_edit,junction_controlFalseforsplit_edit,adjacent_control,synapse_control
species: strβfly/mouse/human/zebrafish.
Image content
geometryβ bytes; compressed npz (key"arr_0") decoding to(3, 7, 224, 224) float16. Always present in v2. Dual-segment whensample_type β {merge_edit, adj_ctrl, syn_ctrl}, single-segment whensample_type β {split_edit, junction_ctrl}.em_xy_before/em_xz_before/em_yz_before/em_best_beforeβ PIL Images (3-channel PNG,(224, 224, 3) uint8). Always present in v2.split_mask_front/split_mask_side/split_mask_topβ PIL Images, per-view after-state split GT forsplit_editrows. Null for other sample types. ~87.7% coverage on split_edits.has_em: boolβ true if anyem_*_beforecolumn is non-null. True for every row in v2.has_after_mask: boolβ true iff the threesplit_mask_*columns are populated. Only ever true forsample_type == split_edit.present_slots: list[str]β modality tags actually present (e.g.["em_best_before", "em_xy_before", "em_xz_before", "em_yz_before", "geometry"]or with+ "split_mask_*"for split_edits with after-mask).
Task routing & labels
task_routing: list[str]β which downstream task(s) this row can serve as training data for. Computed fromsample_type+has_after_mask:false_split_correctionβ merge-correction task. Fires forsample_type β {merge_edit, synapse_control, adjacent_control}.false_merge_identificationβ merge-error binary classification. Fires forsample_type β {split_edit, junction_control}.split_mask_generationβ pixel-level split prediction. Fires forsample_type == split_editANDhas_after_mask.
false_split_correction_label: int | nullβ1formerge_edit,0forsynapse_control/adjacent_control, null for split_edit / junction_control. Trainers filter bytask_routing(or check for non-null label).false_merge_identification_label: int | nullβ1forsplit_edit,0forjunction_control, null for the other three. Same filtering rule.
Usage note. Downstream training scripts must load the appropriate geometry flavor per task:
- Merge Correction of false splits should use dual-segment
geometry(rows wheresample_type β {merge_edit, adj_ctrl, syn_ctrl}) - Split Correction of false merges should use single-segment
geometry(rows wheresample_type β {split_edit, junction_ctrl})- Furthermore, fuse A/B channels of EM images and discard
em_best_before(it sees both labels at oblique angle and can leak ground truth)
- Furthermore, fuse A/B channels of EM images and discard
Otherwise, ground-truth task or label information may leak to the model and bias performance.
Train/val/test split
split: strβtrain/validation/test. Target ratios 75/12.5/12.5; observed ~74.2/11.6/14.2 (slight hash-based per-cube assignment noise at the scale of one volume). Assigned by spatial location of the proofreading sample βedit_point_nmfor operations and adjacent controls,interface_point_nmfor junction controls,synapse_ctr_pt_nmfor synapse controls β bucketed into 80Β΅m cubes. Cube extent is the canonical segmentation-volume bbox per species (queried from CloudVolume), not the min/max of observed bank points.
Other
metadata: strβ JSON-stringified original metadata struct. Parse withjson.loads. Useful keys:operation_id,source_operation_id,strategy,image_types,interface_point_nm,edit_point_nm,before_root_ids,after_root_ids,is_merge,species, β¦
Counts
- 716,485 rows total Β· ~74/12/14 train (531,734) / validation (82,822) / test (101,929)
- All rows have
geometry+ 4 EM views; 127,445 split_edits additionally have 3 split-mask views - ~5.1M model-level samples counting per-modality views (3 geom views + 4 EM views) Γ 716,485 + 3 split-mask views Γ 127,445
- 903 parquet shards (~250 MB each) β 669 train / 105 val / 129 test
Layout
README.md
shards.csv metadata across shards (path, sha256, n_samples, size)
train/train-*.parquet WebDataset-style parquet shards with image bytes
val/val-*.parquet
test/test-*.parquet
metadata/ sidecar parquets with identifiers + labels (no bytes)
train.parquet
val.parquet
test.parquet
demo.parquet stratified mini-shard (one-line preview)
figures/
channel_decomposition.png
Sources & License
Derived from the following upstream connectomic proofreading datasets:
- MICrONS (mouse cortex)
- FlyWire (Drosophila brain)
- H01 (human cortex)
- Zebrafish larval connectome
License = other; users must comply with upstream licenses (which may differ across species/sources). Final outbound license will be set after upstream license review.
Citation
If you use ConnectomeBench2, please cite:
Brown, J., Farkas, T., Razgar, G., Boyden, E. S.
ConnectomeBench2: A unified benchmark for automated connectomic proofreading.
(2026, in submission). Brown J. and Farkas T. contributed equally as first authors.
Please also cite the upstream connectome sources used by this dataset:
- MICrONS (mouse cortex): https://www.microns-explorer.org/cortical-mm3
- FlyWire (Drosophila): https://flywire.ai/
- H01 (human cortex): https://h01-release.storage.googleapis.com/landing.html
- Zebrafish (fish1): https://fish1-release.storage.googleapis.com/index.html
Changelog
v2 (June 2026)
- Row count: 401,170 β 716,485
- EM coverage: now 100% across all sample types (was partial in v1)
geometry_singlecolumn removed: onlygeometryexists now; its dual-vs-single semantics derive fromsample_type/metadata.is_merge- EM column renamed:
em_{xy,xz,yz,best}βem_{xy,xz,yz,best}_before(no_afterEM exists; suffix makes the before-edit state explicit) - Split-mask columns added:
split_mask_{front,side,top}PNG per-view labels forsplit_editrows - Flags reworked:
has_single_mask,has_dual_maskβhas_after_mask. Usemetadata.is_merge(orsample_type) to distinguish dual-vs-single geometry render. - Label semantics nullable:
false_split_correction_label/false_merge_identification_labelare now non-null only for relevant sample types (was always populated in v1, derived fromsame_neuron) - Split assignment: 80/10/10 β 75/12.5/12.5; 50Β΅m β 80Β΅m cubes; bbox now from CloudVolume (canonical) instead of bank min/max; per-sample-type coord choice (
edit_point_nmfor ops/adj,interface_point_nmfor junction_ctrl,synapse_ctr_pt_nmfor synapse_ctrl) - Source archives: 10 β 8 (
unified_{sp}andunified_controls_{sp}Γ 4 species)
To load the old version: load_dataset("jeffbbrown2/ConnectomeBench2", revision="v1-may06").
- Downloads last month
- 669
