Sub topic 14
Benchmarks and Datasets for Multi-Object Tracking
Assume you know Python, NumPy, bounding boxes, object detection, and the basic ideas behind MOTA, IDF1, and HOTA. This chapter focuses on choosing a tracking benchmark, reading its annotations, and avoiding invalid comparisons.
What a tracking benchmark contains
A multi-object tracking benchmark contains videos, object annotations, and an evaluation protocol. Each annotated object usually has:
- A frame number.
- A persistent identity number.
- A bounding box.
- A class label, such as person or car.
- An optional visibility or confidence field.
The identity number is the important difference from an object-detection dataset. Detection labels say what appears in one frame. Tracking labels also say which detection belongs to the same object in another frame.
Most benchmarks divide their data into training and test sets. Training annotations let you tune thresholds and train appearance models. Test annotations remain hidden. You submit tracker predictions to an evaluation server, which returns scores.
MOTChallenge and common alternatives
MOTChallenge is a widely used family of pedestrian-tracking benchmarks. MOT17 includes several detector outputs for the same video sequences, so it can test how a tracker behaves with different detection quality. MOT20 contains crowded scenes with severe overlap and frequent occlusion.
Other datasets target different conditions:
| Dataset | Main setting | Useful for testing |
|---|---|---|
| MOT17 | Pedestrians in varied scenes | General tracking-by-detection systems |
| MOT20 | Very crowded pedestrian scenes | Occlusion handling and identity stability |
| DanceTrack | People with similar appearance and complex motion | Motion modeling and association |
| KITTI Tracking | Road scenes from a moving vehicle | Vehicle tracking and camera motion |
| BDD100K Tracking | Diverse driving videos | Detection and tracking in varied road conditions |
A benchmark's object classes, frame rate, camera movement, and crowd density affect the difficulty. A tracker that performs well on MOT17 may fail on DanceTrack because nearby people often look similar and move unpredictably.
Reading an annotation format
MOTChallenge commonly represents a row as:
frame, identity, left, top, width, height, confidence, class, visibilityCoordinates describe the upper-left corner and the box size. Convert them to the format used by your tracker, such as [x1, y1, x2, y2]:
from pathlib import Path
def read_mot_file(path):
rows = []
for line in Path(path).read_text().splitlines():
if not line.strip():
continue
fields = line.split(",")
frame = int(fields[0])
identity = int(fields[1])
left, top, width, height = map(float, fields[2:6])
rows.append({
"frame": frame,
"id": identity,
"box": [left, top, left + width, top + height],
})
return rows
records = read_mot_file("gt.txt")
print(records[0])Check the dataset documentation before using every field. A confidence value can mean detector confidence in one file and annotation validity in another. Filtering labels without understanding the protocol can change the task.
Making fair comparisons
Record the conditions alongside every score:
- Dataset version and sequence list.
- Detector or detection files.
- Confidence thresholds and matching gates.
- Whether camera-motion compensation is enabled.
- Runtime hardware and processing speed.
- Metrics and evaluation-tool version.
Compare trackers with the same detections when you want to study association. If each tracker uses a different detector, the result measures the combined detector-tracker system instead.
A single metric is rarely enough. IDF1 and HOTA reveal identity quality and association more directly than MOTA, while a qualitative review can expose long occlusion failures that an aggregate score hides.
Choosing a benchmark
Use MOT17 for a broad baseline, MOT20 for crowded pedestrian scenes, DanceTrack for difficult motion and appearance ambiguity, and KITTI or BDD100K for driving applications. Select a benchmark whose camera and object distribution resemble deployment. Report results on more than one dataset when your system must generalize across conditions.
Exercise
You want to compare two association methods while keeping detection quality constant. What should you hold fixed?
Show answer
Use the same video sequences and the same per-frame detection files for both methods. Change only the association or tracking components, then evaluate both outputs with the same protocol.