Optimal Detection to Track Association With Gating and Births
Last updated: November 29, 2026
Quick Overview
Given predicted track positions and new detections, assign each track to at most one detection within a gate distance so that the total of match distances, missed-track penalties and new-track birth penalties is minimized.
Zoox
November 29, 20260
0
0 solved
Given predicted track positions and new detections, assign each track to at most one detection within a gate distance so that the total of match distances, missed-track penalties and new-track birth penalties is minimized.
Multi-object tracking sits between Zoox perception and prediction, and a bad association turns one pedestrian into two or swaps identities between cyclists. The interviewer wants a candidate who sees why greedy nearest-neighbor fails, can write an exact solver for small sets, and knows when to switch to the Hungarian algorithm.
What the Interviewer Expects
- Shows a concrete case where greedy nearest-neighbor matching is suboptimal
- Formulates costs for matches, misses and births and explains the gate
- Implements an exact search (bitmask DP or Hungarian) correctly
- Returns the assignment, not only the cost
- States complexity and when the approach stops scaling
- Mentions Mahalanobis distance with track covariance as a better gate
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- How would you pad the cost matrix so the Hungarian algorithm handles misses and births?
- How would you split the problem into independent clusters to keep it fast?
- What changes if you keep several association hypotheses over time (MHT)?
- How would you replace Euclidean distance with a learned affinity?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Inputs: tracks (predicted positions at the current timestamp), dets (new detections), gate, miss_cost, birth_cost. Each track either matches one detection with distance at most gate (cost ...
High-Level Design
Greedy fails: tracks at x=0 and x=2, detections at x=1.6 and x=-1.9, gate 2, miss and birth cost 10. Processing tracks in order, track 0 grabs its nearest detection 1.6 (distance 1.6); track 1 then ha...