Simultaneous Clustering and Tracklet Linking for Multi-face Tracking in Videos

Baoyuan Wu, Siwei Lyu, Bao-Gang Hu, Qiang Ji

Abstract

Face tracking and identity clustering in unconstrained video environments are traditionally treated as sequential tasks, which often leads to error propagation. This paper introduces a unified framework that performs tracking and clustering simultaneously using a Hidden Markov Random Field (HMRF). By modeling the joint dependencies between tracklet linking and identity labels, the proposed method allows each task to mutually inform and improve the other. Experimental results on challenging datasets, including The Big Bang Theory, demonstrate that this simultaneous approach significantly enhances both clustering accuracy and tracking robustness compared to traditional decoupled methods.

Introduction

Tracking faces in "wild" video content—such as television shows, movies, or home videos—is a complex challenge characterized by rapid movement, frequent occlusions, and significant variations in lighting and camera angles. Conventional computer vision pipelines typically address this problem in two distinct, sequential stages:

  1. Face Tracking: Associating face detections across consecutive frames to generate short, reliable sequences known as "tracklets."
  2. Face Clustering: Grouping these tracklets into clusters, where each cluster corresponds to a unique individual.

The primary drawback of this decoupled approach is the "chicken-and-egg" dependency between the two tasks. Errors in the tracking stage (e.g., incorrectly linking two different people) inevitably degrade clustering performance. Conversely, without identity information, it is difficult for a tracker to decide whether two spatially distant tracklets should be linked into a single long-term trajectory. This paper proposes a simultaneous optimization framework to break this cycle.

Methodology: The HMRF Framework

The authors propose a unified model based on a Hidden Markov Random Field (HMRF). This probabilistic model represents the joint distribution of cluster labels ($y$), which identify the person in a tracklet, and linking associations ($O$), which determine if two tracklets should be connected.

Iterative Optimization

The model is optimized using a coordinate-descent algorithm that alternates between two key steps:

  • Constrained Clustering: With the current tracking links fixed, the model updates identity labels. This step incorporates "must-link" constraints (tracklets in the same track must share an identity) and "cannot-link" constraints (tracklets overlapping in time cannot be the same person).
  • Optimal Tracklet Matching: With identity labels fixed, the model updates tracking links using the Hungarian algorithm. The cost of linking two tracklets is increased if they have different identity labels, effectively preventing identity switches.
Overview of the simultaneous tracking and clustering process. The framework uses temporal and appearance constraints to link tracklets (indicated by colored lines) and assign consistent identity labels (indicated by numbers) across diverse video scenes.

Soft Constraints and Propagation

A key innovation of this framework is the use of "soft" constraints rather than rigid "hard" constraints. This allows the system to remain robust against occasional errors in initial face detection or tracklet generation. Furthermore, the model employs similarity-based propagation: if two tracklets are highly similar in appearance, the model propagates a soft "must-link" constraint between them, enhancing global identity consistency.

Experimental Evaluation

The method was evaluated on three publicly available datasets:

  • Frontal: A stable 51-second clip with 4 individuals.
  • Turning: A 40-second clip featuring frequent profile views and occlusions, making tracking particularly difficult.
  • BBT01: A full 23-minute episode of The Big Bang Theory, presenting a large-scale challenge with 5 main characters and over 11,000 face detections.

Key Results

The simultaneous approach demonstrated substantial performance gains:

  • Clustering Accuracy: On the "Turning" dataset, tracklet-level clustering accuracy improved from 68.40% to 90.00% compared to a standard HMRF approach.
  • Tracking Performance: On the "BBT01" dataset, the method reduced ID Switches (IDS) from 9 to 4. It also showed a marked increase in "Mostly Tracked" (MT) trajectories, indicating better long-term identity maintenance.

Conclusion

By integrating face tracking and clustering into a single optimization loop, the proposed HMRF framework effectively leverages the synergy between these two tasks. While the model currently assumes a known number of individuals and relies on the quality of initial face detections, it represents a significant step toward robust, automated video analysis in unconstrained environments. Future research directions include the automatic discovery of the number of clusters and the integration of more sophisticated pose estimation to handle extreme viewpoints.

Summary updated

BibTeX
@inproceedings{wu2013simultaneous,
  author = {Baoyuan Wu and Siwei Lyu and Bao-Gang Hu and Qiang Ji},
  title = {{Simultaneous Clustering and Tracklet Linking for Multi-face Tracking in Videos}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.355},
}
Figure