Skip to content

Hidden partners: pairs over time, the single/merged decision, brightness agreement (2026-11-29)

Result in one paragraph (idea 2, the neighbour flow prior, is in section 7). The idea "find hidden partners among the leftover blobs, from two camera views confirmed over three frames" (a residual pool, from the retired branches feat/merged-blob-split and feat/unified+merged-blob) does not pay off: even in a favourable oracle setting it adds only 1 to 4 points of the missed particles (0.5 to 3.5 points of total yield) on top of today's births. It stays a negative result and is not built. Two things came out of it that are kept: (1) the single-or-merged decision belongs to the hypothesis, not to the blob, and its strongest cue is that a particle has the same brightness in all its views; (2) an opt-in option, track.holistic_birth_bright, that drops births whose views disagree in brightness: on the truth benchmarks it cuts velocity error by 4 to 11 % (2 to 4 points of yield less), on real wp2 the effect is marginal.

Older material: 2026-11-20-holistic-ptv.md (births, signatures), 2026-11-21-holistic-next-phase.md (next steps N1 to N6), docs/merged_blob_brainstorm.md. Scripts: scripts/study_hidden_partners/ (commands at the end).

1. The idea and what was already in main

The branches built a "blob ownership" loop: link with two_phase, estimate each track's brightness, subtract the known particles' light from every shared blob, and match the leftover (virtual de-blended targets plus free blobs) to find the partners nobody has found. Main already does exactly this as births (merge_post.birth_targets, birth_points, in the holistic loop), measured in 2026-11-20-holistic-ptv.md. The branches never produced numbers (their own plan lists "unit tests, benchmarks" as not done), so they were dropped; the tips are the tags archive/merged-blob-split and archive/unified-merged-blob.

What remains open is dense data: at 4 times the benchmark density two_phase finds 22.5 % of the particles (ceiling about 85 %). The question tested here: can two views, confirmed over three frames, replace the three views in one frame that births need, and so reach the particles that have few clean views?

2. Method and three pitfalls

Truth benchmark L1 (scripts/synth_bench.py), real blob centres and noise, two_phase as the baseline (which particles are "missed"). Oracle leftover targets: for every blob that holds at least one missed particle, the known (found) occupants are subtracted with their true positions and brightness, the rest is a leftover target at (sum(amp) c - sum_known amp_q p_q) / amp_unknown. Every epipolar-consistent combination is a hypothesis, labelled true if all its views come from one particle. A pure ghost is a false hypothesis more than 0.5 mm from any missed particle.

Pitfalls found on the way (worth knowing for any later work):

  1. L1 leaks the multiplicity. In synth_bench._target_rows the blob size is built from the true count: n = 9 * count, nx = ny = 2 + count. Shape cues cannot be tested on L1 (they would look perfect). Use the rendered case L2 for shape.
  2. The matcher's pair mode returns only unambiguous pairs. consistent_pair_matching keeps a target only if it has exactly one candidate in the other camera. At 4 times density that is about 740 pairs per frame, against about 55,000 consistent pairs. paired_births (pair mode) therefore adds little in dense data, by construction. All results below use the full pair list (edges.py, every edge of the candidate table).
  3. Oracle knowledge of "single occupant" is optimistic. See section 4.

3. Results: pairs over time

Stage A, ceiling (truth only; share of the missed particles that have the views, a view counting if the particle is at least a third of its blob's brightness):

1x 4x
found by two_phase 68.1 % 22.5 %
usable in 3 or more views, one frame (today's births) 24.9 % 25.5 %
usable in 2 or more views, one frame 44.7 % 54.3 %
2 views confirmed over 3 frames in a row 40.8 % 46.8 %

Stage B and C, can the three-frame check tell true pairs from false ones? (full pair list; pure ghosts per frame)

1x found / ghosts 2x 4x
today's births (3+ views, one frame) 29.9 % / 27 25.7 % / 512 8.5 % / 4,054
all pairs, one frame 47.1 % / 716 52.3 % / 8,762 30.3 % / 48,686
pairs, constant velocity over 3 frames (0.2 mm) 27.9 % / 106 32.0 % / 1,506 18.7 % / 12,770
pairs, neighbour-flow prediction (0.1 mm) 21.1 % / 32 22.5 % / 328 11.1 % / 3,086
  • The surviving ghosts are not families of neighbouring particles moving together: the two parents are a median 9 to 10 mm apart, against a nearest-neighbour spacing of 1.3 to 3 mm. They are crossings of distant particles that happen to move smoothly. At 4x, 68 % of them involve a merged leftover (a blob with two or more unknown particles, whose centre is no particle's position).
  • Predicting the next position from the tracked neighbours (their true displacement here) is the strongest cheap filter (the intersection of two lines of sight moves differently from the flow), but it is not enough at 4x.

With the oracle "exactly one unknown particle in the blob" (resolvable leftovers only) the picture changes: at 1x the births are 98.8 % true (4 ghosts per frame), flow-confirmed pairs 95 % true, and adding exclusivity (a target belongs to at most one particle) and brightness agreement between the two views brings the ghosts to about 1 per frame at 33 % found. At 4x the same pool still gives 25 % ghosts at 10 % found.

Without any oracle (the bottom line; today's births alone against births plus the new filtered pairs):

missed found: births + new pairs gain gain in total yield ghosts per frame: births + pairs
1x 29.9 % 32.6 % +2.7 +0.9 pts 27 31
2x 25.7 % 31.6 % +5.9 +2.9 pts 512 562
4x 8.5 % 13.0 % +4.5 +3.5 pts 4,054 4,475

(pairs: neighbour-flow prediction 0.1 mm, exclusivity, brightness agreement within 0.6 ln; the multiplicity is decided per hypothesis, not per blob.) With a blob-level guess of "single" from the leftover's brightness the gain is smaller (+1.7, +3.5, +2.9), because it rejects true single particles that are simply bright. With noise of 0.2 px on the known neighbours' positions the gains are +2.1, +3.4, +2.9. Conclusion: not built. The gain is at most a few points of yield, in the setting most favourable to it, and the cost is a new loop.

Not tested: mass consistency over time, chains longer than 3 frames, and per-camera 2D identity of the targets over time. The arithmetic of the ceilings says they cannot change the verdict at 1x and 2x; at 4x they might raise precision, with 10 to 13 % of the missed as the most they could reach.

4. The single-or-merged decision

What does a blob-level classifier get? Rendered case L2 (native density, blobs from the real image pipeline), 12 frames, 63,697 targets, labels from projecting the true particles onto the targets: 14.5 % false targets, 71.6 % single, 11.7 % two, 2.2 % three or more (merged share among real targets 16.3 %). AUC of merged against single:

cue AUC
ln grey sum (mass) 0.751
pixel count n (also nx, ny) 0.793 (0.775, 0.773)
shape against mass (n relative to a single of the same mass) 0.674
local blob density (r = 20 px, 40 px) 0.601, 0.615
logistic regression: mass / + shape / + density / all 0.752 / 0.815 / 0.780 / 0.842
cross-camera brightness excess (truth links) 0.845, with the static cues 0.913
temporal mass jump (truth links) 0.573, with the static cues 0.915

Reading: from the blob table alone about 0.84 is the limit. The cue that matters is the brightness of the same particle in its other cameras, which needs the association first. Time adds almost nothing. Pixel-level cues (two maxima, second moments) were not measured and are the obvious next step if a blob-level decision is needed.

What is the decision worth? Today's births (3+ views, one frame), ghosts per frame (found barely changes, 29.9 / 25.7 / 8.5 %):

1x 2x 4x
unfiltered 27 512 4,054
oracle: every view a single occupant 4 136 712
learned single/merged model (mass, density; P > 0.5) 12 131 512
views agree in brightness (within 0.6 ln), no model 6 65 323

So the decision is worth a factor of 5 in ghosts, and the hypothesis-level brightness agreement beats a blob classifier, even the oracle one: it removes ghosts built from different single particles too.

5. Brightness agreement for births (track.holistic_birth_bright, opt-in)

merge_post.birth_points(..., brightness_width=w) drops a birth whose views differ in ln(grey sum / camera median) by more than w (largest minus smallest). A particle has one brightness in all cameras once each camera's typical brightness is divided out. The spread of real 4-camera points is close to the benchmark's, so the width is not tuned to it:

4-camera points median spread within 0.6 within 0.9
synthetic L1 0.43 74.1 % 89.1 %
rendered L2 0.20 84.7 % 93.3 %
real wp2 (linked points) 0.36 76.1 % 91.0 %

The real births step (birth_targets + birth_points, 60 or 40 frames), wrong births per frame and the share of the particles missing from the old cloud that the births recover:

as is within 1.2 within 0.9 within 0.6
1x wrong / recovered 21 / 18.0 % 11 / 17.4 % 9 / 16.5 % 6 / 13.5 %
2x 84 / 16.7 % 46 / 15.2 % 34 / 13.8 % 20 / 10.6 %
4x 324 / 5.6 % 116 / 4.5 % 75 / 3.9 % 38 / 2.7 %

End to end (joint_bounds.py h3 --joint-sig --partner-min-len 10 --fallback --min-resid 0.25 [--birth-bright w], scored by synth_bench.py eval, two_phase on the augmented points; velocity error, yield, ghost share):

case as is within 1.2 within 0.9 within 0.6
L1 1x (200 frames) 0.1581, 0.738, 3.55 % 0.1546, 0.736, 3.44 % 0.1521, 0.733, 3.38 % not run
L1 2x (150 frames) 0.2637, 0.576, 3.62 % 0.2547, 0.572, 3.50 % 0.2471, 0.568, 3.41 % 0.2399, 0.555, 3.31 %
L1 4x (60 frames) 0.4142, 0.257, 5.69 % 0.4043, 0.254, 5.46 % 0.3930, 0.252, 5.32 % 0.3790, 0.245, 5.11 %
L2 rendered 1x 0.1413, 0.737, 3.65 % 0.1405, 0.736, 3.56 % 0.1349, 0.734, 3.51 % 0.1258, 0.727, 3.48 %

On L2 the acceleration error falls from 8.97 to 7.87 at 0.6. Each cell is one run, but the trend is monotone in the width and in the density, and the ghost share and the acceleration error move the same way.

Real wp2 (scripts/holistic_real.py, first 120 frames, two rounds, no truth):

mean track length tracks of 50+ frames jump share depth jitter jitter z p90 (mm)
two_phase 18.2 607 1.44 % 0.039 0.0788
holistic, as is 25.5 874 0.47 % 0.029 0.0572
+ within 1.2 25.5 856 0.44 % 0.029 0.0571
+ within 0.9 25.3 853 0.42 % 0.029 0.0563
+ within 0.6 24.5 826 0.39 % 0.029 0.0551

At native real density the effect is marginal (jump share -6 to -17 %, depth jitter about 1 %, 2 to 5 % fewer long tracks). Recommendation: leave it off by default. Try holistic_birth_bright: 0.9 for dense seeding (where wrong births are most of the births); at 0.6 the yield falls by 1 to 2 points.

6. What this changes, and what is next

  • Do not build the pairs-over-time births. The ceiling is real information (47 % of the missed at 4x have two usable views in three frames) but the combinatorics at that density make the pairs ambiguous, and the single-or-merged question is what limits them.
  • A better hypothesis-level multiplicity likelihood (brightness agreement across views, shape against mass, local density as a prior) is the lever; the same brightness agreement could weight the observations of shared blobs.
  • The neighbour flow prior (idea 2, N2 in 2026-11-21-holistic-next-phase.md) was the strongest cheap filter here and is already in the tracker as the spatial consensus (vfc_*); section 7 measures it. It cannot start tracks that never started, because it only removes candidates.
  • Pixel-level residuals (the image, not the blob table) remain the high-effort option for dense data.

Caveats. Everything is synthetic except wp2 and still partly ideal (exact known neighbours except where noise is added; the velocity prior is the true displacement of the found neighbours); 6 to 12 scored frames per case; settings untuned (velocity gate 0.5 mm, at most 150 neighbours per query); real-data gains are measured only by track statistics.

7. Idea 2: the neighbour flow prior in the tracker (vfc_*, the spatial consensus of two_phase)

N2 (2026-11-21-holistic-next-phase.md) tested the prior as a stage next to the births: the prior itself is accurate (median error 0.026 mm against a 0.093 mm step) but does not separate true candidates from ghosts (72.5 % real at best), and it was concluded that it belongs inside an acceptance rule. Inside the tracker it is track.vfc_mode (a gate before the assignment, pre, and a filter after it, post), vfc_gate (mm per frame), vfc_bootstrap and vfc_affine (docs/two-phase-spatial-consensus.md), all off by default. Its documentation measures shear flows; here it is on the truth benchmark (synth_bench.py track --tracker "two_phase+vfc_mode=pre+vfc_gate=0.3"; velocity error, link recall, yield, time):

1x (200 fr.) 2x (150 fr.) 4x (60 fr.)
two_phase 0.1825, 0.957, 0.680, 3.8 s 0.3111, 0.907, 0.504, 4.1 s 0.4326, 0.834, 0.227, 1.9 s
vfc_mode=post 0.1798, 0.956, 0.680, 8.3 s 0.3052, 0.905, 0.503, 10.5 s 0.4231, 0.830, 0.227, 4.3 s
vfc_mode=pre, gate 0.3 0.1758, 0.947, 0.679, 8.9 s 0.2957, 0.893, 0.499, 12.0 s 0.3981, 0.818, 0.223, 5.5 s
both + bootstrap 0.1753, 0.947, 0.679, 26.1 s 0.2948, 0.893, 0.499, 37.8 s 0.3921, 0.815, 0.223, 15.8 s
  • A trade, not a gain in yield. Velocity error falls 4 % at 1x, 5 % at 2x and 8 to 9 % at 4x; link precision and the ghost share improve (4x ghost share 6.8 to 6.1 %). Link recall falls 1 to 2 points and yield up to 0.5 points, and the tracker is 3 to 8 times slower (the bootstrap and affine cost the most, for 1 % more).
  • It does not start tracks. It removes candidates, so the track-start problem of dense data (points that were never built) is untouched: the yield does not rise.
  • It stacks with the holistic loop (holistic_rounds: 2, pre, gate 0.3; velocity error, yield, time per run):
2x 4x
holistic 0.2343, 0.571, 69 s 0.3821, 0.252, 41 s
+ spatial consensus 0.2075 (-11.4 %), 0.562, 111 s 0.3376 (-11.6 %), 0.246, 57 s
+ brightness check 0.9 only 0.2248 (-4.1 %), 0.560 0.3743 (-2.0 %), 0.248
+ both 0.2043 (-12.8 %), - 0.3376 (-11.6 %), -

Real data (holistic_real.py --set vfc_mode=pre --set vfc_gate=G, truth-free scores; wp2 and wp1 first 120 frames, gate 0.3; lv_multi wp5 20 frames, gate 0.2). Plain tracker, then holistic:

jump share depth jitter p90 (mm) tracks of 50+ frames mean length time
wp2 two_phase 1.44 % 0.0788 607 18.2 3 s
wp2 + consensus 1.06 % 0.0734 557 17.3 6 s
wp2 holistic 0.47 % 0.0572 874 25.5 38 s
wp2 holistic + consensus 0.32 % 0.0537 840 25.1 50 s
wp1 two_phase / + consensus 1.41 / 1.03 % 0.0774 / 0.0715 624 / 590 18.2 / 17.5 3 / 6 s
wp1 holistic / + consensus 0.45 / 0.30 % 0.0579 / 0.0546 904 / 864 25.8 / 25.2 40 / 53 s
lv5 two_phase / + consensus 2.61 / 0.26 % 0.0845 / 0.0611 - 9.27 / 8.26 0.4 / 0.6 s
lv5 holistic / + consensus 1.25 / 0.11 % 0.0701 / 0.0503 - 10.3 / 9.4 7.8 / 8.7 s

The brightness check for births on top changes nothing measurable here. The effect is much larger on the noisier recording, whose link deviations have a heavy tail (99th percentile 0.37 mm per frame against 0.29 on wp2).

Where is the headroom? Repairing two_phase's own tracks with truth (scripts/study_hidden_partners/headroom_repair.py, benchmark common-set velocity error, 1x / 2x / 4x):

repair 1x 2x 4x
cut every wrong link -3.5 % -3.9 % -6.9 %
+ remove the ghost points -12.5 % -10.1 % -10.1 %
+ join the pieces of every particle (perfect recall of the kept points) -33.4 % -24.8 % -14.3 %
perfect linker on the input points -32 % -24 % -16 %
spatial consensus, gate 0.3 -2.3 % -3.0 % -6.5 %

So the consensus attacks the smallest piece. At 1x and 2x most of the room is in broken tracks (about 20 points of 33): the particle is there in the point cloud but its track is in pieces, so every piece is smoothed with a short window.

Gate. Tighter is stronger and costs recall (2x, velocity error / yield): gate 0.2: -7.6 % / -1.7 points; 0.3: -5.0 % / -0.5; 0.5: -1.6 % / -0.1; 0.75: 0 (the 6 to 8 times the noise of the older advice does nothing on this benchmark, noise 0.094 mm). scripts/vfc_gate_advice.py reads the deviations of the links from their neighbours: the 98th percentile (0.22 to 0.25 on the benchmark, 0.26 on wp2, 0.28 on lv5) lies in the useful range.

Cost. Profile at 2x: the extra 8 s of 17 s are in compute_local_consensus_field (per-frame argsort, masked-array indexing, padded neighbour lists), i.e. Python and NumPy overhead, not the idea; a vectorised neighbour search should cut it several times. vfc_bootstrap and vfc_affine double the time for about 1 % more error reduction.

Conclusion. Nothing new to build for idea 2: the prior is already in the tracker, and the combination holistic + spatial consensus (+ the brightness check for births at 2x) is the best accuracy setting measured on dense benchmark data. It buys accuracy with yield and speed. The next hypothesis is bridging gaps with the neighbour prior: across a gap the own velocity extrapolates badly, the neighbours' flow does not, so the prior may join pieces that the tracker leaves apart. How to use it: recipe.

Reproduce

export SYNTH_BENCH_WORK=<benchmark folder>        # cases/, runs/ (see scripts/synth_bench.py)
S=scripts/study_hidden_partners
uv run python $S/pairs_over_time.py L1_d4_c0_k1_n150_s0.08_a0.18_f0.05 70 8      # sections 3 and 4 (births table)
uv run python $S/blob_multiplicity.py L2_d1_c0_k1_n200 50 12                     # section 4, AUC table
uv run python $S/view_brightness_spread.py $SYNTH_BENCH_WORK/cases/<case>/res/run.zarr 50 10
uv run python $S/births_brightness.py L1_d2_c0_k1_n150_s0.08_a0.18_f0.05 40      # section 5, real births step
uv run python scripts/joint_bounds.py h3 --case <case> --joint-sig --partner-min-len 10 --fallback --min-resid 0.25 --birth-bright 0.9 --suffix w0.9
HOLISTIC_REAL_RUNS=<folder> uv run python scripts/holistic_real.py LABEL 120 --rounds 2 --birth-bright 0.9