Techniquecore
Gating
Also called validation gate, ellipsoidal gating.
Consider for each track only the measurements within a Mahalanobis distance threshold of its predicted position, which prunes the association problem.
Gating is the step of a tracker that decides, before any association, which measurements a track may take at all. Each track predicts its next measurement as a Gaussian with mean and covariance , the innovation covariance of a Kalman filter. A measurement passes the gate of the track if its squared Mahalanobis distance is at most a threshold . The set of such is an ellipse, or an ellipsoid in more dimensions, around the prediction, stretched in the directions where the track is uncertain. If the track is right and the model holds, of the true measurement follows the chi-square distribution with degrees of freedom, where is the dimension of a measurement. So is chosen as a quantile of that distribution, and the gate keeps the true measurement with a known probability . Pairs outside the gate are dropped, which makes the data association problem smaller and splits it into independent clusters.
In plain words
A track says: my object should show up about here, and I am more sure in some directions than in others. Gating draws an oval around that spot, long where the track is unsure and narrow where it is sure. Only the measurements inside the oval are candidates for the track. The size of the oval is set so that the true measurement lands inside it, say, 99 times out of 100. Everything outside is ignored for this track, so the later steps have far fewer choices to compare.
When it applies
The setting is a tracker with a predicted measurement and a covariance for each track, such as a Kalman filter, an extended Kalman filter or a particle filter with a Gaussian summary. It applies when:
- the prediction is close to Gaussian. Then is close to chi-square and the threshold has its stated meaning. For other shapes the gate is still useful but its probability is not known;
- the covariance is honest. The gate is only as good as . A filter that is too sure of itself gives gates that are too small;
- there are many tracks or measurements. With tracks and measurements, association methods cost at least and often far more. Gating with a search structure avoids even the tests.
Common thresholds for the ellipsoidal gate are:
| Degrees of freedom | ||
|---|---|---|
| 2 | 5.991 | 9.210 |
| 4 | 9.488 | 13.277 |
For the distribution is exponential, so and . DeepSORT gates its 4-dimensional box measurement at 9.4877.
The template
GATE(the tracks, the measurements z_1..z_m, γ)- 1
for each track i: compute ẑ_i, S_i and S_i⁻¹ from the prediction - 2
for each track i: B_i ← the box |ν_k| ≤ sqrt(γ (S_i)_kk) for each coordinate k - 3
C_i ← COARSE-SEARCH(B_i, the measurements) ▷ all of them, a grid, or a kd-tree - 4
for each j in C_i: d²_ij ← (z_j - ẑ_i)ᵀ S_i⁻¹ (z_j - ẑ_i) - 5
if d²_ij ≤ γ: add the pair (i, j) to the gate graph - 6
return the gate graph and its connected components, the clusters
The holes are the threshold , from the table above or tuned, and COARSE-SEARCH, which must return every measurement in the box and may return more. The box is safe: the largest value of a coordinate on the ellipse is , so the ellipse lies inside the box. Line L6 matters for JPDA and MHT: tracks in different clusters share no measurement, so each cluster is solved alone.
A worked gate. Let and . The box is , . A measurement at offset has and passes. A measurement at offset is closer in plain distance, 2.79 against 3.16, but it fails the box test and has . The track is sure of its coordinate, so a miss in counts more. The area of the gate is , and with a clutter density the gate holds on average false measurements.
Classic examples
- Global nearest neighbor. Pairs outside the gate get an infinite cost in the assignment, and the cost of a miss is set from .
- JPDA. Only gated measurements enter the joint events, and the gate probability appears in the weight of a missed track.
- Multiple hypothesis tracking. Gating limits the children of each hypothesis to the measurements a track can explain.
- DeepSORT. The motion gate at 9.4877 removes pairs before the appearance distance decides among the rest.
- Network flow tracking. Links between detections are added only if they pass a gate, which keeps the graph sparse.
- Data association in SLAM. The individual compatibility test is a chi-square gate between a measurement and a landmark, and joint compatibility gates sets of pairs.
Variations
- Rectangular gates. Only the box test of line L2, cheaper and used as a first stage.
- Search trees. Collins and Uhlmann (1992) used search trees to find the candidates of each gate without testing every pair. A kd-tree over the measurements, queried with the box of each track, is one such structure.
- Overlap gates. Trackers of boxes, such as SORT, reject pairs whose intersection over union is below a threshold.
- Appearance gates. A pair is dropped if the distance between appearance features is too large.
- Maneuver gates. A track that may turn gets a larger , or a gate from a second motion model.
- Gates that grow. A track that has not been seen for some frames has a larger , so its gate grows by itself.
Pitfalls
- The wrong degrees of freedom. The threshold depends on the dimension of the measurement. Using 5.991, the 2-dimensional value, for a 4-dimensional measurement keeps only about 80 percent of the true measurements, since there.
- Using in place of . The gate must use the covariance of the predicted measurement, , which includes the measurement noise .
- An overconfident filter. If the process noise is too small, is too small, the true measurement falls outside the gate, and the track is lost for good.
- A gate that is too large. It admits clutter and other targets. The cost of JPDA and MHT grows quickly with the size of the clusters.
- Mixed units. If the coordinates have different units, Euclidean gates are meaningless. The Mahalanobis distance fixes this through .
- Forgetting . Probabilistic methods must account for the true measurements that fall outside the gate, or their weights are slightly wrong.
Exercises
- Show that for the gate probability is , and find for .
- Prove that the largest value of on the ellipse is .
- The volume of the gate in dimensions is with the volume of the unit ball. Compute it for and , and explain why the expected number of clutter points in the gate is the volume times .
- For tracks and measurements spread over a large area, estimate how many pairs a kd-tree search examines compared with testing all pairs.
- Two tracks have overlapping gates that share one measurement. Write down the clusters of line L6, and show how adding a third track can merge two clusters into one.
References
- Yaakov Bar-Shalom and Thomas E. Fortmann, Tracking and Data Association, Academic Press, 1988, the chapters on validation gates and on probabilistic data association (the gate probability and the volume of the gate)
- Samuel S. Blackman and Robert Popoli, Design and Analysis of Modern Tracking Systems, Artech House, 1999, the chapter on gating (rectangular and ellipsoidal gates and the choice of the threshold)
- Joseph B. Collins and Jeffrey K. Uhlmann, Efficient gating in data association with multivariate Gaussian distributed states, IEEE Transactions on Aerospace and Electronic Systems 28(3), 1992, 909 to 916, the whole paper (gating with search trees, so that not every pair of a track and a measurement is tested)
- Nicolai Wojke, Alex Bewley and Dietrich Paulus, Simple online and realtime tracking with a deep association metric, IEEE International Conference on Image Processing (ICIP), 2017, 3645 to 3649, the association step (the Mahalanobis gate at the 95 percent point of the chi-square distribution with 4 degrees of freedom, 9.4877)
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 | W3 standard |
|
Tag 1N0W1F Edit this page History Report an error Markdown