Efficient Query Processing using the Earth's Mover Distance in Video Databases

Merih Seran Uysal, Christian Beecks, Daniel Sabinasz, Jochen Schmücking, Thomas Seidl

Searching through massive video databases requires more than keyword matching; it demands a robust measure of visual similarity. Whether the goal is near-duplicate detection for copyright enforcement or locating a specific subclip within a feature-length film, the distance metric must align with human perception. The Earth Mover’s Distance (EMD) is widely considered the gold standard for this task, yet its computational complexity—typically $O(N^3)$—has long hindered its application at scale.

Researchers from RWTH Aachen University have addressed this bottleneck by introducing IM-Sig*, a novel lower-bounding filter that accelerates EMD-based video queries by up to two orders of magnitude without sacrificing accuracy.

A significant challenge in video retrieval is the "part-of" query, where a user searches for a short clip within a larger video. Traditional EMD-based methods often rely on relative signatures, where feature weights are normalized to sum to one. While normalization simplifies some calculations, it destroys scale information essential for partial matching.

Comparison of absolute and relative signatures for partial similarity search. Normalization makes a sub-part (lemon) appear different from the original image (fruit bowl), whereas absolute signatures preserve the match.

As shown in the figure above, when using absolute signatures, the features of a sub-part (like a lemon in a fruit bowl) remain consistent with the source. Normalization, however, scales the sub-part's features to fill the entire distribution, making it "not found" when compared to the original. IM-Sig is uniquely designed to handle these absolute signatures*, enabling efficient subclip detection that previous high-performance filters could not support.

Representing Video: Time as a Dimension

To compare videos effectively, the authors propose a compact representation called a Video Signature (vis). Instead of treating video as a sequence of independent frames, they treat time as an additional dimension in the feature space, alongside spatial coordinates (X, Y) and visual features like color or texture.

Video signatures represent clips and subclips as clusters in a 3D space (X, Y, T), allowing EMD to capture temporal flow implicitly.

By embedding the timestamp directly into the signature, the model captures temporal ordering implicitly. If two videos contain the same visual elements but in a different order, the "work" required to move features across the time dimension increases the EMD, correctly identifying them as less similar. This approach avoids the complexity of explicit sequence matching while maintaining high discriminative power.

The IM-Sig* Algorithm: Faster "Earth Moving"

The core innovation of this research is IM-Sig (Independent Minimization for Signatures ), a mathematical lower bound for EMD. In a typical "filter-and-refine" architecture, a cheap lower-bound distance is used to prune the vast majority of non-matching candidates, leaving only a few for the expensive exact EMD calculation.

IM-Sig* achieves high efficiency by relaxing the global constraints of the standard EMD. It solves a series of local optimization problems for each feature and then applies a global cap based on the total weight of the signatures. This results in a distance function that is:

  • Computationally Efficient: Utilizing a simple min-heap approach.
  • Mathematically Sound: Guaranteed never to exceed the true EMD, ensuring no false dismissals.
  • Versatile: Compatible with both normalized and unnormalized (absolute) signatures.

Experimental Results and Impact

The authors evaluated IM-Sig on real-world datasets, including NDVINE (350,000 videos) and PUBVID* (250,000 videos). The results demonstrate a dramatic leap in performance:

  • Efficiency: On the PUBVID dataset, the IM-Sig variant (Fmax) outperformed previous state-of-the-art filters (such as Rubner or Pemd) by up to two orders of magnitude* in query time.
  • Selectivity: The filter pruned 99.9% of the database when using absolute signatures, requiring 432 times fewer exact EMD computations than the next best competitor.
  • Accuracy: The temporal video signature model (vis_t) significantly improved near-duplicate detection accuracy compared to standard video triplets or trajectories.

Conclusion

By overcoming the limitations of relative signatures and the computational cost of EMD, IM-Sig* provides a scalable solution for complex video search tasks. Its ability to perform efficient partial similarity searches using absolute signatures opens new possibilities for large-scale video forensics and content management. Future work aims to integrate these approximations directly into relational database systems, bringing human-centric visual search closer to standard SQL-like querying.

Summary updated

BibTeX
@inproceedings{uysal2016efficient,
  author = {Merih Seran Uysal and Christian Beecks and Daniel Sabinasz and Jochen Schmücking and Thomas Seidl},
  title = {{Efficient Query Processing using the Earth's Mover Distance in Video Databases}},
  booktitle = {EDBT},
  year = {2016},
  doi = {10.5441/002/edbt.2016.36},
}
Figure