Problemcore
Data association
Also called measurement-to-track assignment.
Decide which measurement in a frame comes from which existing track, which is a new track and which is clutter.
- Time
- O((n + m)³) worst
- Where
- m = the number of measurements in the frame; n = the number of tracks
- Model
- Real RAM
Data association is the problem of deciding, for the measurements of one frame, which one comes from which existing track, which one starts a new track, and which one is clutter, a false measurement. A measurement here is a detection, a radar return or a feature point, and a track is a running estimate of one object, usually kept by a Kalman filter that predicts where its next measurement should fall. Each track gives rise to at most one measurement and each measurement comes from at most one object, so an answer is a partial one-to-one matching between tracks and measurements. Data association is the central subproblem of multi-object tracking, which also includes detecting the objects and managing the tracks. Tracking by detection is the design that runs a detector and then solves data association in every frame. SORT, DeepSORT and ByteTrack are complete trackers that each solve this problem one frame at a time with an assignment and add their own rules for starting and ending tracks. The same name is used in robotics for data association in SLAM, where the measurements are matched to fixed landmarks of a map. There the landmarks do not move, the main danger is an error that corrupts the map, and pairings are tested for joint consistency. In tracking the objects move, are born and die, and clutter is part of the model.
In plain words
A lighthouse keeper writes down the boats he knows and where each should be by now. Then the radar shows some blips. He must say which blip is which boat. Some boats may not show on the radar this time. Some blips are waves, not boats. A blip far from every known boat may be a new boat. If two boats are close, a blip between them could be either one, and a wrong guess gives one boat the other's path. The keeper wants the explanation that makes the most sense for all the boats and blips together, not one boat at a time.
Definition
One frame. There are tracks, and track predicts its measurement as a Gaussian with mean and covariance . There are measurements . An association is a set of pairs in which no track and no measurement appears twice. The tracks in no pair are missed, and the measurements in no pair are new tracks or clutter. A pair is allowed only if falls inside the gate of track , that is, if the squared Mahalanobis distance is at most a threshold .
There are two kinds of output.
- A hard decision. One association of least cost, where the cost is the sum of the costs of the pairs, often or the negative log-likelihood, plus a cost for each missed track and each leftover measurement.
- Soft weights. For each pair, the probability that it is in the true association, under a model of detection probability, measurement noise and clutter.
Several frames. The measurements of frames are given at once, and the answer is a set of tracks, each taking at most one measurement per frame, with no measurement in two tracks. The cost of a track can depend on all its measurements.
Variants
- Single-scan and multi-scan. One frame at a time, as in GNN and JPDA, or several frames, as in MHT and network flow tracking.
- Hard and soft. One best association, or weights over all of them.
- Known and unknown number of objects. JPDA keeps a fixed set of tracks. GNN, MHT and network flows also decide births and deaths.
- Motion and appearance. In vision, the cost can add a distance between appearance features, as in DeepSORT, or use the overlap of boxes, as in SORT.
- No association. The PHD filter updates a density of targets with all measurements and never forms pairs.
- Static landmarks. Data association in SLAM matches measurements to map features, often with the joint compatibility test.
Examples
Greedy against global. Two tracks and and two measurements have the costs
| 1 | 4 | |
| 2 | 8 |
Taking the cheapest pair first gives - for 1, and then must take for 8, a total of 9. The association -, - costs . A rule that looks at one track at a time misses it, and solving the assignment problem finds it.
Gating and leftovers. Let the gate be , the 99 percent point of the chi-square distribution with 2 degrees of freedom, and let a missed track or a leftover measurement cost . Leaving a track and a measurement both unpaired then costs . A pair with is inside the gate and costs less than that, so a track and a measurement that have no better partners are paired. A pair with is outside the gate, so the measurement starts a new track or is clutter.
Counting hypotheses. If every measurement is in every gate, the number of associations is . For this is 34, and for it is 234,662,231.
Known algorithms
| Algorithm | Output | Frames | Cost |
|---|---|---|---|
| Nearest neighbor (greedy) | one association, not optimal | one | |
| Global nearest neighbor | one association of least cost | one | |
| JPDA | soft weights | one | exponential in the cluster size |
| Multiple hypothesis tracking | the most likely associations, kept over frames | several | grows with the hypotheses kept |
| Network flow tracking | all tracks of a video | all | for tracks and links |
The assignment inside GNN and MHT can be solved by the Hungarian algorithm, the Jonker-Volgenant algorithm or the auction algorithm. Gating removes the pairs that are too far apart before any of them run.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Global nearest neighbor association | O(n p³ + n m p² + (n + m)³) worst · average | Θ((n + m)²) extra | deterministicexactnot iterativenot localonline | 1 language |
| Joint probabilistic data association | O(E n + n m p² + n (p³ + d³)) worst · average · best | O(n m + n d²) extra | deterministicnot exactnot iterativenot localonline | 1 language |
| Multiple hypothesis tracking | O(M² m³ (n + m) + M n d³) worst · average · best | O(M (n d² + m (n + m))) extra | deterministicnot exactnot iterativenot localonline | 1 language |
| Network flow data association | O(K n (n + L)) worst · average | O(n + L) extra | deterministicexactiterativenot localoffline | 1 language |
Bounds
- One frame, hard decision. Add one dummy column per track for a miss and one dummy row per measurement for a leftover. The result is an assignment problem of size , solved in time, the bound in the front matter. The proof is on the GNN page.
- One frame, unit costs. If every allowed pair costs the same, the best association is a maximum bipartite matching of the gate graph.
- Three or more frames. Data association over three frames, with a cost for each track of three measurements, is NP-hard. It contains three-dimensional matching. The reduction is in the proof on the MHT page. So multi-scan methods prune, limit the window or accept approximate answers.
- Pairwise costs over many frames. If the cost of a track is a sum over consecutive pairs, the problem over all frames is a min-cost flow problem and is solved in polynomial time.
- Soft weights. With detection probability 1, and every pair allowed, the normalizing sum of JPDA is the permanent of the likelihood matrix divided by , so exact weights are #P-hard. The proof is on the JPDA page.
Reductions
- To the assignment problem. One frame with a hard decision, as above.
- To min-cost flow. All frames with pairwise costs.
- From three-dimensional matching. This shows the hardness of three or more frames.
- To the permanent. The JPDA weights with every pair allowed.
- From multi-object tracking. Each frame of an online tracker poses one instance of data association.
Applications
- The association step of radar, sonar and air traffic trackers.
- The linking step of tracking-by-detection in video, for people, vehicles and cells.
- Feature correspondence between frames for motion estimation.
- Matching measurements to landmarks in mapping, in its SLAM form.
- Linking particle detections into trajectories in physics and biology.
References
- Yaakov Bar-Shalom and Thomas E. Fortmann, Tracking and Data Association, Academic Press, 1988, the whole book (validation gates, nearest neighbor and probabilistic data association, track initiation)
- Samuel S. Blackman and Robert Popoli, Design and Analysis of Modern Tracking Systems, Artech House, 1999, the chapters on gating and on data association
- Ingemar J. Cox, A review of statistical data association techniques for motion correspondence, International Journal of Computer Vision 10(1), 1993, 53 to 66, the whole paper (nearest neighbor, PDA, JPDA and MHT, presented for motion correspondence in vision)
- Donald B. Reid, An algorithm for tracking multiple targets, IEEE Transactions on Automatic Control 24(6), 1979, 843 to 854, the whole paper (association hypotheses with new targets and false alarms, and their probabilities)
- Thomas E. Fortmann, Yaakov Bar-Shalom and Molly Scheffe, Sonar tracking of multiple targets using joint probabilistic data association, IEEE Journal of Oceanic Engineering 8(3), 1983, 173 to 184, the whole paper (joint association events and their probabilities)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag GXDF6Q Edit this page History Report an error Markdown