Quiz: from detections to tracks

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. What is the difference between optical flow and tracking? Give one question only tracking can answer.

Which of the two knows about objects?

Optical flow gives a velocity for every pixel, without objects. Tracking follows objects and keeps their identity over time. Only tracking answers questions like “how far did this cell travel?” or “when did this cell divide, and what happened to its daughters?”


Q2. Name the three ways nearest-neighbour linking fails.

Think of two objects close together, and of an object with no true successor.

  1. Conflict: two detections choose the same successor. (2) Crossing: two objects pass close to each other and their identities swap. (3) A newcomer steals: the true successor is missing (missed, or the object left), and a new object nearby gets the link.

Q3. Particles move with an rms displacement of 0.3 µm per frame, and their mean nearest-neighbour spacing is 1.5 µm. Is this easy or hard? What if you halve the frame interval?

For random motion the rms displacement grows as √Δt.

Ratio 0.3/1.5 = 0.2: easy, every method works. Halving Δt divides the displacement by √2: ratio 0.14, even easier. (For directed motion the displacement halves.)


Q4. Why is the squared distance a natural cost for linking randomly moving objects?

What is the probability of a random step of length r?

For random motion the probability of a step of length r is proportional to e^{-r^2/4D\Delta t}. Its minus logarithm is r^2/4D\Delta t plus a constant: the squared distance. Minimising the sum of squared distances therefore picks the most probable set of links (for independent objects).


Q5. Detections A(0, 0) and B(4, 0) at frame t; P(3, 0) and Q(8, 0) at frame t+1. Cost = squared distance. What do greedy and global assignment choose, and what are their totals?

Costs: A–P 9, A–Q 64, B–P 1, B–Q 16.

Greedy takes the cheapest pair first, B–P (1), and then A–Q (64): total 65. Global compares the two complete assignments: A–P + B–Q = 9 + 16 = 25 and A–Q + B–P = 65, and takes A–P + B–Q (25).


Q6. What does a gate do? What goes wrong if it is too small, and if it is too large?

A gate removes candidate pairs.

A gate forbids links longer than a maximum distance: such pairs are not candidates at all. This keeps the problem small and stops absurd links. Too small: fast objects cannot be linked and their tracks break. Too large: wrong links can compete with the right ones (and the problem gets slower).


Q7. Ending a track costs b and starting one costs b. A candidate link costs 30. For which b is it taken (if nothing else competes)?

Compare the link with “end one track and start another”.

The link replaces one end and one start, which together cost 2b. It is taken if 30 < 2b, i.e. b > 15. At b = 15 both are equally good.


Q8. A tracker gets 3 % of links wrong. How likely is a 40-frame track (39 links) to be completely right?

Every link must be right.

0.97^{39} \approx 0.30: only about 30 % of such tracks are perfect. Errors compound, so long tracks need very low per-link error rates.


Q9. (math) Show that for random positions at density n and a 2D random-walk step with E[r^2] = 4D\Delta t, the nearest-neighbour error rate is a/(1+a) with a = 4\pi nD\Delta t.

The chance that no other point lies in a disc of radius r is e^{-\pi n r^2}; r^2 is exponential.

Given r, the link is right if no other object lies within r: probability e^{-\pi n r^2}. With r^2 exponential of mean \mu = 4D\Delta t: E[e^{-\pi n r^2}] = \int_0^\infty \frac{1}{\mu}e^{-s/\mu}e^{-\pi n s}\,ds = \frac{1}{1 + \pi n\mu} = \frac{1}{1+a}. The error rate is 1 - \frac{1}{1+a} = \frac{a}{1+a}.