Finding Frequent Entities in Continuous Data

Ferran Alet, Rohan Chitnis, Leslie Pack Kaelbling, Tomás Lozano-Pérez

Abstract

Traditional machine learning tools often struggle to identify recurring "main characters" in messy, high-dimensional, continuous data streams. This paper argues for a shift from global clustering to a "heavy hitters" approach. We introduce HAC (Hop And Count), an online algorithm that identifies frequent entities by treating the task as a local density estimation problem. HAC is robust to noise, scales to high dimensions, and effectively tracks non-stationary objects.

Introduction: Beyond Clustering

In real-world scenarios—such as tracking objects in a household or identifying recurring faces in video—we seek a small set of "entities" that appear frequently. Standard clustering algorithms like k-means or DBSCAN are often ill-suited for this task because they attempt to account for every data point, including outliers and background noise.

Conceptual comparison between traditional clustering and entity finding.

As shown above, clustering can be distracted by noise or mistakenly merge similar-looking entities. By contrast, the "Heavy Hitters" perspective focuses exclusively on the most common elements, ignoring the "long tail" of noise.

The HAC (Hop And Count) Algorithm

The core contribution of this work is the HAC algorithm, designed for streaming, continuous data. HAC operates through four primary mechanisms:

  1. Reservoir Sampling (The "Hop"): HAC maintains a fixed memory of samples. New data points replace existing samples with a probability determined by reservoir sampling.
  2. Local Density Counting (The "Count"): For each sample, the algorithm tracks how many subsequent data points fall within a radius $r$.
  3. Thresholding: A sample is identified as an entity only if its local counter exceeds a frequency threshold $f$.
  4. Exponential Decay: To handle moving objects, HAC uses time-scaling to "forget" older observations, allowing it to adapt to non-stationary data.
Impact of the frequency threshold $f$ on identifying dense entity regions.

The threshold $f$ is critical; as seen in the figure above, adjusting $f$ allows the system to filter out sparse noise while maintaining high precision on dense entity clusters.

Experimental Evaluation

The authors evaluated HAC across two distinct domains:

  • Media Analysis: Processing a full season of House M.D. to identify the main cast from 128-dimensional face embeddings. HAC achieved near-perfect precision, whereas k-means often failed by selecting blurry misdetections as cluster centers.
  • Object Localization: A new dataset involving humans moving objects between locations. HAC successfully tracked objects and even differentiated between identical twins by focusing on the densest peaks of the feature distribution.

Key Insights

  • Locality: By defining entities as locally dense regions, HAC remains unaffected by global noise levels.
  • High-Dimensional Geometry: HAC exploits the "thin shell" property of high-dimensional distributions, providing stronger theoretical guarantees in 128-D or 2048-D spaces than in 2-D.
  • Continuous Heavy Hitters: This work successfully generalizes the discrete "Heavy Hitters" problem (e.g., top search queries) to continuous mathematical spaces.

Conclusion

HAC offers a robust, memory-efficient alternative to clustering for entity identification. While it requires tuning parameters like radius $r$ and threshold $f$, its local focus and theoretical grounding make it a powerful tool for real-time, high-dimensional data streams.

Summary updated

BibTeX
@inproceedings{alet2018finding,
  author = {Ferran Alet and Rohan Chitnis and Leslie Pack Kaelbling and Tomás Lozano-Pérez},
  title = {{Finding Frequent Entities in Continuous Data}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/275},
}
Figure