Multi-cycle holonomy on POPI

Lab book, 19-20 November 2026. Follow-up to ../dvc-holonomy-pilot (that folder is imported read-only and was not modified). One exposed patient, 28 landmarks, ten breathing phases.

Findings in order of weight
  1. Visibility ceiling. 93.1% of the registration error energy is integrable on the 10-phase graph (median landmark 96.4%); independent edge noise would be 20%. Loops cannot see integrable error, so in this setting holonomy can see at most about 7% of the error energy.
  2. Most of the remaining error is shared by two unrelated instruments. The 32-voxel translation window and whole-volume Diffeomorphic Demons have error vectors with per-axis correlation 0.85, 0.81, 0.90 (z, y, x). Shared part: 1.053 mm RMS. Each instrument's own part: 0.572 mm (refined window), 0.272 mm (Demons).
  3. The shared part behaves like annotation jitter. Its phase-to-phase correlation is about -0.13 at every separation, which is what independent per-point noise gives after demeaning (-0.125). 398 of 400 landmark z values sit on the 2 mm slice grid; snapping alone predicts 0.816 mm pair SD in z, and the shared z SD is 0.768 mm.
  4. Inside its window, the loop residual localises. It names the truly worst edge in 4 to 8 of 28 landmarks across the four runs, versus 0 to 1 for the image residual and 0.6 by chance. It also ranks landmarks for a given phase pair better than the image residual (Spearman 0.198 vs 0.088). The declared localisation criterion (within-landmark Spearman above both comparators) was not met: NCC 0.236, loop 0.124.
  5. DIR-Lab known-answer test: FAIL (pre-registered). Reading registrar covariance as annotation noise did not reproduce DIR-Lab's published repeat-observer error: estimates ran 1.3 to 5.2 times the published value, where the prediction was 0.71 times (pooled ratio 0.36 against a band of 0.94 to 2.12; 0 of 9 cases in band) and tracked motion size. On large-motion extreme phases both registrars share a tracking error, so the shared term is not truth noise there. The POPI attribution in items 2 and 3 therefore rests on its own fingerprints, not on a validated estimator.
  6. Visibility ceiling replicates on DIR-Lab: 79.1% of window-instrument error is loop-invisible on 477 six-phase graphs across 10 patients (chance 33%).
  7. Synchronisation does not improve the phase-10 estimates (-3.6% for holonomy-robust sync, CI [-0.071, -0.006] mm). It improves all-pairs TRE by 2 to 3% and triplet max-of-3 by about 5%. Holonomy-robust sync beats residual-weighted sync by 0.014 mm, CI [0.001, 0.028].

1. Question

Every chapter of the pilot used three observations per query: one independent loop. One loop can flag an inconsistency but cannot say which edge is wrong. POPI has ten phases. The complete graph on ten phases has 45 edges and 36 independent cycles per axis, so the Hodge solver can both synchronise (replace the 45 edges with their integrable part) and localise (each edge's cyclic remainder). This was untested.

2. Method

Instrument unchanged and imported from the pilot: tapered FFT translation on the canonical 32-voxel normalised window, Powell NCC refinement as the secondary variant, the interior/texture guards, and the pilot's dh.hodge.decompose. Same integer centre (the phase-10 landmark) in all ten phases, as in chapter 13. All 45 directed edges i<j measured for each of the 28 eligible landmarks (the same 28 as chapter 13; of the other 12, 9 fail the frozen interior guard in at least one phase and 3 fail the texture check). Measurement never reads target landmarks.

Order of record: PLAN.json and measure.py hashed at 2026-11-19T23:13:06Z; evaluate.py and the measurements hashed at 2026-11-19T23:14:45Z, before its first run; the Lagrangian addendum hashed at 2026-11-19T23:19:59Z, before its run. diagnose.py and shared_error.py are post-hoc, written after the declared results were seen. POPI was already exposed by the pilot, so everything here is exploratory.

Continuity check: the direct edges reproduce chapter 13's FFT triplet figure (1.591 mm) on all 140 records, max difference 3.8e-14 mm. Hodge orthogonality error at most 5.8e-16.

3. Declared results

Accuracy, FFT edges

EstimatorPhase-10 TRE, mmvs directPaired gain CI, mmAll-45 TRE, mmAll-45 gain CITriplet max-of-3, mmEdges >2 mm (of 1260)
Direct phase-10 edges1.0740.0%-1.383-1.591237
Least-squares sync (all loops)1.124-4.6%[-0.079, -0.021]1.364[0.001, 0.046]1.522243
Holonomy-robust sync1.113-3.6%[-0.071, -0.006]1.358[0.003, 0.053]1.514233
Residual-weighted sync (conventional)1.127-4.9%[-0.085, -0.021]1.370[-0.007, 0.040]1.521247
Combined1.115-3.8%[-0.069, -0.014]1.357[0.002, 0.054]1.506243

Accuracy, refined edges

EstimatorPhase-10 TRE, mmvs directPaired gain CI, mmAll-45 TRE, mmAll-45 gain CITriplet max-of-3, mmEdges >2 mm (of 1260)
Direct phase-10 edges1.0520.0%-1.345-1.532212
Least-squares sync (all loops)1.082-2.8%[-0.061, -0.005]1.313[0.013, 0.061]1.478218
Holonomy-robust sync1.073-2.0%[-0.049, 0.003]1.304[0.021, 0.067]1.463214
Residual-weighted sync (conventional)1.082-2.9%[-0.061, -0.003]1.316[0.009, 0.057]1.480219
Combined1.073-2.0%[-0.048, 0.002]1.307[0.019, 0.060]1.465214

No-registration baseline on the same 28 landmarks: 3.686 mm phase-10 TRE, 3.544 mm all-45. Confidence intervals: 4000 landmark-cluster resamples, paired, conditional on one patient.

Localisation, FFT edges

Predictor of true edge errorWithin-landmark Spearman [CI]Same pair, across landmarksAUROC >2 mmAUROC >1 mmFinds worst edge (top-1)
Loop (cyclic) remainder0.124 [0.052, 0.202]0.1980.6270.5984 / 28
NCC image residual0.236 [0.142, 0.324]0.0880.6180.5941 / 28
Measured shift size0.073 [-0.006, 0.150]0.0740.5440.5641 / 28

Chance top-1 is 0.62 of 28. Loop minus NCC top-1, landmark bootstrap CI: [-1.0, 7.0].

Localisation, refined edges

Predictor of true edge errorWithin-landmark Spearman [CI]Same pair, across landmarksAUROC >2 mmAUROC >1 mmFinds worst edge (top-1)
Loop (cyclic) remainder0.082 [0.018, 0.150]0.1580.5910.5847 / 28
NCC image residual0.226 [0.139, 0.308]0.0680.6070.5781 / 28
Measured shift size0.083 [0.016, 0.149]0.1000.5380.5781 / 28

Chance top-1 is 0.62 of 28. Loop minus NCC top-1, landmark bootstrap CI: [1.0, 11.0].

4. Why the loops see so little (post-hoc)

Truth is a set of node positions, so it is exactly integrable. The cyclic part of a measurement is therefore exactly the cyclic part of its error. Hodge-splitting the true error gives the share no loop can see.

Chance (iid edge noise on K10)Chance (iid edge noise on K10): 20.0%20.0%Eulerian, FFTEulerian, FFT: 93.1%93.1%Eulerian, refinedEulerian, refined: 92.9%92.9%0%25%50%75%100%

Per edge, the median gross edge (>2 mm) has 0.7% of its error in the cyclic part; 4 of 237 gross edges are mostly cyclic. The worst edge per landmark averages 3.612 mm with a median cyclic share of 1.1%. The top-1 hits in section 3 come from those rare isolated failures.

Estimator shrinkage, truth-free. Integer-voxel crop offsets of the phase-10 volume give exact known shifts (308 tests on the 28 landmark windows). Measured/applied gain z, y, x: FFT 0.955, 0.897, 0.899; refined 0.980, 0.922, 0.925. Refinement recovers small shifts exactly and falls back to FFT beyond its 4-voxel support. Against landmarks, the node-error gain is lower (FFT 0.91, 0.66, 0.58), and a per-axis gain explains only 30.9% of node-error energy. Estimator shrinkage is a small part of the integrable error.

5. Lagrangian re-centring (declared before its run)

Hypothesis: in the Eulerian design an edge such as 50 to 60 is measured on whatever tissue sits at the phase-10 position, not on the landmark. Each edge (i, j) was re-measured with both windows centred at the estimated landmark position in phase i (from the direct FFT star). All 1260 edges were re-centred.

EstimatorPhase-10 TRE, mmvs directPaired gain CI, mmAll-45 TRE, mmAll-45 gain CITriplet max-of-3, mmEdges >2 mm (of 1260)
Direct phase-10 edges1.0740.0%-1.378-1.589237
Least-squares sync (all loops)1.120-4.2%[-0.074, -0.017]1.359[0.001, 0.048]1.516243
Holonomy-robust sync1.107-3.0%[-0.064, 0.005]1.349[0.006, 0.061]1.503233
Residual-weighted sync (conventional)1.127-4.9%[-0.088, -0.018]1.364[-0.008, 0.044]1.518245
Combined1.122-4.5%[-0.091, -0.007]1.357[-0.005, 0.051]1.509237

All-45 TRE moves from 1.383 to 1.378 mm; the integrable share stays at about 93%. The wrong-tissue effect is minor. The declared alternative reading holds: the integrable error is mostly window-versus-landmark tracking difference plus annotation noise.

6. Shared error between two unrelated instruments (post-hoc)

Instrument 2 is the pilot's chapter-15 whole-volume Diffeomorphic Demons (stored 2 mm-level predictions, not refitted). Comparison on the 252 phase-10 star edges.

Quantityzyx
Error correlation, refined window vs Demons0.8470.8100.900
Shared SD, mm0.7680.5040.515
Refined window own SD, mm0.4480.3310.128
Demons own SD, mm0.1390.1170.202

Mean TRE: refined window 1.052, Demons 0.987, average of the two 0.989 mm. Averaging two instruments whose error vectors have mean cosine 0.839 recovers almost nothing.

Structure across the breathing cycle. After removing each landmark's mean over phases (which also removes the phase-10 annotation term), the shared error's correlation between phases sits near -0.125 at every separation, the value independent per-point noise gives. The difference between the instruments is smooth and periodic, as a tracking difference would be.

-0.50-0.25+0.00+0.25+0.5012345phase separation (steps of 10% of the breathing cycle)independentjitter, -0.125shared error, separation 1: -0.127shared error, separation 2: -0.094shared error, separation 3: -0.065shared error, separation 4: -0.178shared error, separation 5: -0.169shared errorinstrument difference, separation 1: +0.221instrument difference, separation 2: -0.078instrument difference, separation 3: -0.264instrument difference, separation 4: -0.314instrument difference, separation 5: -0.319instrument difference
Phase separation12345
Shared error-0.127-0.094-0.065-0.178-0.169
Instrument difference+0.221-0.078-0.264-0.314-0.319

The shared error's size correlates with the image residual (Spearman 0.301) and with true motion (0.250), so part of it is image ambiguity that both registrars inherit. In z, its size matches slice snapping of the annotations: 398 of 400 z coordinates are on the 2 mm grid, predicting 0.816 mm pair SD; observed shared z SD 0.768 mm.

6b. DIR-Lab known-answer test (pre-registered)

Question: does the covariance of two registrars' errors estimate a benchmark's annotation noise? DIR-Lab 4DCT publishes, per case, the repeat-registration error of three observers, which is an independent known answer. dirlab/PREREG.json was frozen at 2026-11-20T00:02:09Z with no DIR-Lab data on the machine. Predicted ratio published/estimate = 1.41; PASS if at least 7 cases and the pooled ratio fall in [0.94, 2.12]. AMENDMENT_1.json was recorded after unpacking and before measurement: conventions (1-based integer voxel landmarks, no flip, stored = HU + 1024), the frozen guard leaving case 1 with one landmark (not estimable), and a declared sensitivity set S1 without the body-envelope margin. Measurements were sealed at 2026-11-20T00:41:24Z before any T50 landmark was read; the scorer was frozen before the seal.

Primary

CasenEstimate, mmPublished observer, mmRatioIn bandWindow TRE, mmDemons TRE, mm
11not estimable
2350.930.700.75no1.051.30
3261.630.770.47no1.862.35
4562.241.130.50no2.414.76
5541.620.920.57no1.931.57
61411.590.970.61no8.105.18
7884.220.810.19no6.369.52
81314.291.030.24no5.605.31
9651.530.750.49no2.721.78
10724.280.860.20no6.974.21

0 of 9 estimable cases in band; pooled ratio 0.356; Spearman of estimate with published observer error 0.57, with case displacement 0.57. Verdict: FAIL.

All variants

VariantCases in bandPooled ratioSpearman with displacementVerdict
Primary (frozen guard), refined window0 / 90.3560.57FAIL
Frozen guard, FFT window0 / 90.3540.48FAIL
Frozen guard, drop |A-B| > 3 mm1 / 90.4570.20FAIL
S1 (no envelope margin), refined0 / 100.3300.88FAIL
S1, drop |A-B| > 3 mm0 / 100.4970.76FAIL

Reading: the estimate exceeds the published observer error everywhere except case 4 in the two frozen-guard drop-3 mm variants, and in S1 it follows case displacement (Spearman 0.88). Both registrars run well above state-of-the-art accuracy on these extreme-phase pairs (window TRE up to about 8 mm, Demons up to about 10 mm), and the shared part sits mainly in z. That matches the first and third falsifiers named in advance: shared image-driven error and motion-driven registration failure. Dropping landmarks where the instruments disagree by more than 3 mm brings 9 of 10 cases (S1) to 0.9 to 1.9 mm and leaves case 7 at 5.3 mm; still outside the band overall.

Operating window this maps: registrar covariance reads as truth noise only where both registrars' own errors are small and their biases differ. These two registrars on DIR-Lab extreme phases are outside that window. The phase-independence secondary was not run (Demons was fitted T00 to T50 only, and the T10 to T40 points are model-propagated).

Demons on all 15 pairs (ADDENDUM_2, 2b): whole-volume Diffeomorphic Demons fitted independently on every phase pair of all 10 cases (150 fits, all with positive interior Jacobians; resumed after an out-of-memory crash with a declared memory-lean script). Invisible share 93.1% over 750 landmarks (case-clustered 95% 90.3 to 96.2%), 91.2% after the pessimistic annotation-noise allowance; mean edge error 1.99 mm. Write-up: paper/visibility_ceiling.html.

Visibility ceiling, replicated: on the 75-landmark six-phase graphs (K6, 15 edges, chance integrable share 33%), 79.1% of the refined window's error energy is integrable (82.1% for FFT), over 477 landmarks in 10 patients.

7. Reading the pilot chapters against these measurements

8. Operating window

The loop residual measures edge-specific inconsistency. Measured here: it finds isolated single-edge failures (top-1 worst edge several times above image residual and chance) and ranks landmarks within a phase pair. It carries no information about error shared by all edges of a node: window-versus-landmark tracking difference, estimator gain, or truth noise. On POPI that shared class is about 93% of the error energy, and about 1 mm RMS of it is common to two unrelated registrars.

9. Limits

10. Files

PLAN.json, measure.py, evaluate.py, FREEZE_*.json; diagnose.py, shared_error.py (post-hoc); lagrangian/ (addendum, measurement, summary); results/ (measurements, summary, per-landmark, diagnosis, shared error, localisation). Rebuild this page with python3 build_labbook.py.