Registration landing#
Group maps reach this brain through a volume registration. Registration landing measures how well that registration places fine structures, and sets a rule for what a small structure may take from a registered map. The MNI152NLin2009cAsym template was reconstructed and segmented exactly like this brain; each of its own NextBrain structures is carried through the published coordinate field and compared with this brain’s structure of the same label. The result is published in Provenance under Registered group maps, beside each registered map’s own registration check.
Data#
Input |
Content |
Pinned by |
|---|---|---|
Template reconstruction |
TemplateFlow |
|
Template structures |
|
|
Registration |
|
|
This brain’s structures |
|
|
The same reconstruction is published as a second brain, the MNI template. The benchmark reads its NextBrain volume, not the published meshes. As the benchmark’s reference, the template has no landing record of its own: its striatal networks give a structure under the floor no shares and name nothing round it.
Method#
Carrying the template’s structures#
landing.carry takes every labelled voxel of the template’s NextBrain volume. Its position in template millimetres is its scanner position divided by 0.90 (the header scale). coordinate_spaces.map_points maps it through the published field to this brain’s surface RAS, trilinear between the field’s 1.5 mm nodes, and the voxel’s label is painted on this brain’s NextBrain grid at the nearest voxel. A voxel the field does not cover is counted and left out.
Scoring#
For each label present in both brains, landing.score gives:
Dice between the painted structure and this brain’s own, on the 0.4 mm grid;
centre miss, the distance between the mean landing point of the template’s voxels and the centroid of this brain’s structure.
landing.summarise reports the median and 90th percentile of the centre miss, the median Dice, and the median Dice in five classes of the structure’s volume on this brain (under 20, 100, 500 and 2,000 mm³, and above).
What the score bounds#
The two structures come from two separate NextBrain runs, so the score includes their disagreement as well as registration error. It is an upper bound on registration error, not an estimate of it.
The small-structure rule#
A structure under 100 mm³ (SMALL_MM3) takes no voxel shares from a registered map. Below that volume the median Dice is under 0.4: most of the structure’s own voxels hold whatever the map says beside it, not on it.
Such a structure names what the map holds round it instead. landing.neighbourhood_counts takes the map’s 1 mm voxels within the landing radius of the structure (Euclidean distance from the voxels the structure occupies), and landing.near lists every value holding at least 1% of the labelled neighbourhood, largest first. The landing radius is the 90th percentile of the centre miss, rounded up to 0.1 mm. One name means the map agrees everywhere within that distance; several mean a border passes that close, and the map cannot say on which side the structure lies.
The rule applies to arterial territories (territories_near) and striatal networks (striatal_networks_near). Stroke cases and published coordinates report only FreeSurfer’s deep structures and cortical parcels, all above the floor. landing.validate fails the build if any structure under the floor carries territories, striatal_networks or cerebellar_functions.
The floor and the radius were set after the measurement was seen, from its own classes; they are not a prediction that was then tested.
A change must beat the record#
scripts/measure_landing.py --record refuses to replace the record with a result whose 90th-percentile centre miss is larger or whose median Dice is lower. A different registration, or a different person, is adopted only if it lands at least as well by this measurement. The record names the field and both segmentations by checksum, so a changed input has to be measured again.
A refinement that was tested and not adopted#
Because both brains hold the same NextBrain structures, a second registration can be driven by them. One was tested on 2026-11-21: after the registered field, a residual ANTs SyN registration (antspyx 0.6.3; MeanSquares on three label-contrast images in which each label has the same random intensity in both brains; 100 × 70 × 40 iterations) on this brain’s 0.4 mm NextBrain grid. A registration cannot be scored on the labels that drove it, so every structure under 2,000 mm³ was hidden from one of two extra fits, its voxels given to the nearest visible label in both images, and scored by that fit.
Measure |
Registered field |
With the refinement |
|---|---|---|
Hidden structures, median Dice: under 20 / 20–100 / 100–500 / 500–2,000 mm³ (442 structures) |
0.12 / 0.36 / 0.54 / 0.69 |
0.30 / 0.54 / 0.71 / 0.76 |
Hidden structures, centre miss: median / 90th percentile |
1.07 / 2.71 mm |
0.70 / 2.29 mm |
FreeSurfer’s deep structures, median Dice (independent of NextBrain) |
0.881 |
0.884 |
FreeSurfer’s cerebral cortex, Dice |
0.687 |
0.752 |
Left amygdala against FreeSurfer, Dice |
0.863 |
0.819 |
This brain’s cortical points the template’s cortex does not reach (198,492 mid-thickness vertices) |
23.5% |
15.1% |
Same Schaefer-400 parcel as this brain’s own, over all points / where reached |
51.9% / 67.8% |
57.6% / 67.8% |
The refinement lands structures and the cortical ribbon better, and names cortical areas no better once a point is in the cortex. It was not adopted, because the field it gives is not safe to publish on the 1.5 mm node grid the viewer reads:
one grid cell folds (Jacobian determinant −0.08) and 160 cells are squeezed below 0.1; the registered field’s lowest is 0.121 and none folds;
the viewer’s own inversion of the field, which overlays depend on, does not converge at 23 nodes;
smoothing the residual to the grid (Gaussian σ of 0.75 mm, then 1.5 mm) removes the fold but leaves the lowest determinant at 0.079 and 0.093, under the floor of 0.1 set before the smoothed fields were measured.
The gain is real but comes with deformation too sharp for a coordinate field. These measurements were made with scripts that are not in the repository and are not recorded by validation.
Display#
Provenance › Registered group maps (registeredMaps, web/src/lib/core/panels/provenance.ts) leads with the benchmark: the number of structures, the median and 90th-percentile centre miss, the median Dice by volume class, and the rule. Each registered map follows with the check its own registration was scored by.
In a region’s sheet, a small structure’s Typical arterial supply (SupplySection.svelte) and striatal networks (NetworkSection.svelte) list names without bars or percentages, and say whether one value surrounds the structure or a border passes within the radius. Under the arterial colour, a small structure drawn whole takes a territory’s colour only when one territory surrounds it (majorityTerritoryColor).
Validation#
Test |
Criterion |
Result |
|---|---|---|
|
reported |
510 structures in both brains; centre miss median 1.16 mm, 90th percentile 2.93 mm; median Dice 0.37; landing radius 3.0 mm |
Median Dice by volume |
reported |
under 20 mm³ 0.12 (191 structures); 20–100 mm³ 0.36 (130); 100–500 mm³ 0.53 (83); 500–2,000 mm³ 0.67 (40); above 0.64 (66, held down by cortical parcels and cerebellar layers carried as volumes) |
|
record’s summary recomputes from its rows; no structure under 100 mm³ carries registered shares |
holds |
Small structures named |
reported |
345 by arterial territory (82 by one territory, 263 by two to five); 3 by striatal network |
|
a structure carried onto itself scores 1 and a shifted one its overlap; uncovered voxels are counted, not painted; classes by volume, an empty class refused; a wider miss or lower overlap is worse; a neighbourhood stops at its radius; slivers under 1% and unlabelled tissue are not named; a small structure with shares fails validation |
pass |
|
the row’s text from the published numbers, in both languages |
pass |
Limitations#
The benchmark measures one registration (MNI152NLin2009cAsym, SynthMorph). The arterial atlas, the striatal atlas, the cerebellar atlas and the stroke lesions each use their own SynthMorph registration from another template; none of those templates has fine structures of its own to carry, so their landing on fine structures is not measured. The radius is applied to them as the same method’s measured error, and each map’s own check is published beside it.
Dice punishes a small structure for a miss that a large one absorbs: a 1.2 mm miss is most of a 20 mm³ structure’s width. The classes describe overlap, not a different registration quality by size.
A name without shares is weaker than shares, on purpose. It does not say how much of the structure a territory supplies.
The landing radius covers nine structures in ten. One in ten lands further off than the neighbourhood that was read.
Cortical parcels carried as volumes overlap at 0.4–0.6; cortical layers reach this brain through surface registration instead (cortical atlases), which this benchmark does not measure.
Code availability#
- Source
brain_model/layers/landing.py(carry, score, summary, neighbourhood, rule),scripts/measure_landing.py(record),web/src/lib/core/panels/provenance.ts(display)- Reproduce
uv run python scripts/measure_landing.py # prints the result beside the record uv run python scripts/measure_landing.py --record # writes data/cdmd/coordinate-landing.json uv run pytest tests/test_landing.py