Tracking Large Variable Numbers of Objects in Clutter

Margrit Betke, Diane E. Hirsh, Angshuman Bagchi, Nickolay I. Hristov, Nicholas C. Makris, Thomas H. KunzCVPR 2007

Abstract: Tracking massive groups of similar objects in cluttered environments presents a significant computational challenge. This paper introduces a scalable framework for tracking hundreds of thousands of individual objects—specifically bats in flight—using infrared video. By replacing computationally expensive global optimization with localized, cluster-based data association, the system achieves near real-time performance with remarkably low error rates (under 1%) compared to manual counts.

Introduction

Tracking a few people walking down a street is a largely solved problem in computer vision. However, tracking a "cloud" of thousands of bats emerging from a cave is a significant challenge. Traditional multi-target tracking algorithms, such as the Multiple Hypothesis Filter or the Hungarian algorithm, face an "explosion" of complexity as the number of objects ($N$) increases. Matching costs typically grow exponentially or cubically ($O(N^3)$), making real-time tracking of massive groups impossible.

Wildlife tracking presents unique difficulties:

  • Variable Numbers: Objects appear and disappear constantly.
  • Clutter: Moving tree limbs or warm rocks can mimic targets.
  • Similarity: All bats look nearly identical in thermal infrared, precluding appearance-based re-identification.
  • Occlusion: In dense formations, bats frequently overlap and obscure one another.

Methodology

The authors propose a multi-stage pipeline designed for speed and scalability, moving from raw video input to scientific behavioral analysis.

The proposed multi-stage tracking pipeline, from object detection to data association and behavior analysis.
  1. Detection: The system uses background subtraction based on a sliding-window Gaussian model. To separate bats from clutter, it employs spatial analysis (identifying the intensity peak of a warm thorax) and temporal analysis.
  2. Recursive Filtering: Each bat is tracked using an $\alpha-\beta$ filter, a computationally light version of a Kalman filter that focuses on 2D position and velocity.
  3. Data Association (The Core Innovation): Instead of solving the matching problem for the entire frame simultaneously, the system uses Gating to create small, localized clusters of potential matches.
  4. Cluster-based Method: This identifies "conflict situations" where multiple detections could belong to multiple tracks and applies the Hungarian algorithm only within these small clusters. This keeps complexity linear relative to the total number of objects, achieving a 140x speedup over traditional Global Nearest Neighbor (GNN) approaches.
  5. Greedy Method: This prioritizes matching for "persistent" tracks with the longest history, offering even greater speed at a slight cost to robustness.
  6. Event Analysis: A sliding window logic determines if a track is "persistent" (real), "active" (currently visible), or "clutter" (to be deleted).

Experimental Results

The system was validated using high-resolution thermal video of Brazilian free-tailed bats (Tadarida brasiliensis).

Visual representation of the tracking process: thermal detection (left), dense tracking during peak emergence (center), and sparse tracking (right).
  • Accuracy: On a small colony dataset, the system tracked 7,056 bats compared to a manual count of 7,007—an error of only 0.78%.
  • Scalability: During a four-minute peak emergence, the system estimated 91,790 persistent objects, maintaining over 800 active trackers simultaneously.
  • Speed: The Cluster-based method ran at 7.10 Hz, whereas traditional GNN approaches crawled at 0.05 Hz on the same hardware.
  • Ecological Impact: The automated system provided a rigorous assessment of roughly 9 million bats, a stark contrast to 1950s "guesstimates" of 150 million, demonstrating the critical role of computer vision in modern ecology.

Conclusion and Future Work

While highly effective, the system requires sufficient resolution (targets must be several pixels wide) and can struggle with long-term occlusions. Future improvements may include incorporating more complex object properties, such as wing-beat periodicity, to enhance tracking in ultra-dense clouds and developing more robust methods for stitching together fragmented tracks separated by long periods of invisibility.

Summary updated

BibTeX
@inproceedings{betke2007tracking,
  author = {Margrit Betke and Diane E. Hirsh and Angshuman Bagchi and Nickolay I. Hristov and Nicholas C. Makris and Thomas H. Kunz},
  title = {{Tracking Large Variable Numbers of Objects in Clutter}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2007},
  doi = {10.1109/cvpr.2007.382994},
}
Figure