Multi-object tracking (MOT) is the task of locating every object of interest in a video and assigning each one a persistent identity across frames, so that the output is a set of trajectories rather than a set of independent detections. In computer vision, also called multiple object tracking, it sits between per-frame object detection and higher-level reasoning such as counting, behavior analysis and motion forecasting.
Unlike single-object tracking, where a user marks one target and the tracker follows it, MOT must discover objects automatically, handle objects entering and leaving the scene, and keep identities apart when targets cross, occlude each other or look alike. These requirements make it one of the most demanding perception problems in applied artificial intelligence.
How multi-object tracking links detections over time
Most modern systems follow the tracking-by-detection paradigm: a detector proposes bounding boxes in each frame, and an association step matches those boxes to existing tracks. The tracker maintains a state for each track, typically position, size and velocity, and uses a motion model such as a constant-velocity Kalman filter to predict where each object should appear next.
Association is usually formulated as a bipartite matching problem. A cost matrix compares every prediction with every new detection, using spatial overlap (intersection over union), appearance similarity from a re-identification embedding, or a weighted mix of both. The Hungarian algorithm then finds the assignment with the lowest total cost, and pairs whose cost exceeds a gating threshold are rejected.
The steps of a typical online tracker are summarized below, in the order they run for every incoming frame.
| Stage | What happens | Typical method |
|---|---|---|
| Detection | Find candidate objects in the frame | YOLO, Faster R-CNN, DETR |
| Prediction | Project each track forward in time | Kalman filter, optical flow |
| Association | Match detections to predicted tracks | Hungarian algorithm on IoU or embeddings |
| Track management | Create, confirm and delete tracks | Birth after n hits, death after k misses |
| Update | Correct track state with matched detection | Kalman update, embedding averaging |
Main families of tracking algorithms
Tracking methods differ mainly in how much context they use when making association decisions. Online trackers decide using only past and current frames, which suits live video, while offline or batch trackers can look at the whole sequence and solve a global optimization, often reaching higher accuracy at the cost of latency.
The following comparison lists the most influential families and the situations in which each one is a reasonable choice.
| Approach | Association cue | Strength | Weakness |
|---|---|---|---|
| SORT | Kalman prediction and IoU | Very fast, simple | Frequent identity switches |
| DeepSORT | Motion plus appearance embedding | Recovers after short occlusions | Needs a re-identification model |
| ByteTrack | Two-stage IoU matching incl. low-score boxes | Keeps partly occluded objects | Weak appearance modeling |
| Joint detection and embedding | Shared network for boxes and features | One forward pass | Harder to train and tune |
| Transformer trackers | Learned track queries | End-to-end learning | High compute, data hungry |
| Graph-based offline | Global min-cost flow over all frames | High accuracy | Not suitable for real time |
In practice, detection quality dominates tracking quality. A strong detector paired with a simple association rule frequently outperforms a sophisticated tracker running on noisy detections, which is why many current systems invest most of their effort in the detector.
How MOT performance is measured
Tracking evaluation must capture both detection errors and identity errors, so several complementary metrics are used. Benchmarks such as MOT17, MOT20 and DanceTrack report them side by side because each metric rewards a different behavior.
| Metric | What it measures | Main sensitivity |
|---|---|---|
| MOTA | Combined misses, false positives and identity switches | Dominated by detection errors |
| IDF1 | Share of correctly identified detections | Identity consistency over time |
| HOTA | Geometric mean of detection and association accuracy | Balanced view of both tasks |
| ID switches | Count of identity changes on a true object | Association failures |
| Mostly tracked ratio | Share of objects followed for 80% or more of their life | Track continuity |
A frequent misreading is to compare trackers by MOTA alone. Because MOTA is driven largely by missed and false detections, two trackers can have similar MOTA while one produces several times more identity switches. HOTA was introduced to balance detection and association, and it is now the preferred summary metric on most benchmarks.
Multi-object tracking compared with related tasks
MOT is easily confused with neighboring computer vision tasks because they share components. The distinction lies in what is given as input and what must stay consistent across frames.
| Task | Input given | Output |
|---|---|---|
| Object detection | Single image | Boxes and classes, no identities |
| Single-object tracking | Video plus one initial box | One trajectory |
| Multi-object tracking | Video only | Many trajectories with identities |
| Person re-identification | Crops from different cameras | Matching identities across views |
| Video object segmentation | Video, often a first-frame mask | Pixel masks per object over time |
Multi-camera tracking extends MOT by combining per-camera trajectories with cross-camera re-identification, which adds calibration, timing and privacy requirements that single-camera trackers do not face.
Limitations and common failure modes
Even state-of-the-art trackers fail in predictable ways, and recognizing these patterns is essential when tuning thresholds or diagnosing a deployment.
- Long occlusions exceed the track buffer, so an object returns with a new identity.
- Similar appearance, such as identical uniforms, defeats appearance embeddings.
- Nonlinear motion, for example dancers or athletes, breaks constant-velocity prediction.
- Camera motion shifts every object at once unless compensated with frame alignment.
- Low frame rates enlarge displacements and weaken IoU-based matching.
- Crowded scenes produce merged or missing detections that cascade into identity errors.
Tracking people also raises privacy and governance questions. Persistent identities enable movement profiling, so responsible deployments limit retention, avoid linking tracks to facial recognition without a legal basis and document the intended purpose before collecting data.
In plain words
Imagine watching a busy crossing and giving every pedestrian a name tag. Each time the picture changes, you check who moved where. You keep the same tag on the same person. That is what multi-object tracking does for a computer.
The hard part is not spotting people. It is keeping the tags straight when people walk behind a bus, cross paths or wear similar coats. A good tracker guesses where each person will go next. It also remembers what each one looks like.
A real-world example
A regional transit authority wants to understand how passengers move through a station concourse at rush hour. Engineers mount four ceiling cameras recording at 25 frames per second and run a detector on each stream, followed by a ByteTrack-style tracker that keeps tracks alive for about two seconds of missed detections.
The trajectories are converted into anonymous flow counts per corridor every five minutes, and no images or identities are stored after processing. After tuning the confirmation threshold to three consecutive hits, the team reduces identity switches by roughly a third on a manually labeled validation clip. The resulting flow maps show a bottleneck near one stairway, and the authority reroutes signage and opens an extra gate, shortening peak crossing times on the concourse.