SEIDEN: Revisiting Query Processing in Video Database Systems

Jaeho Bang, Gaurav Tarlok Kakkar, Pramod Chunduri, Subrata Mitra, Joy ArulrajPVLDB 2023

TL;DR

This paper introduces SEIDEN, a novel video database system that ditches traditional proxy models for faster, more accurate "lightweight" oracle models. By directly using these advanced models on sampled frames and leveraging temporal continuity, SEIDEN achieves significant speedups (up to 6.6x) for video analytics queries without sacrificing accuracy.

What Problem Does This Paper Address?

Video database management systems (VDBMSs) traditionally rely on a two-tiered approach for querying video data. They use a fast but less accurate "proxy model" to quickly process most frames and a slower, more accurate "oracle model" only when necessary. This strategy hinges on the assumption that proxy models are orders of magnitude faster than oracle models. However, recent advancements in computer vision have blurred this line, with new oracle models like YOLOv5 being as fast or even faster than older proxy models, while offering superior accuracy. This shift invalidates the core assumption of existing VDBMSs, necessitating a re-evaluation of how video queries are processed. The paper addresses this by proposing a new system, SEIDEN, that capitalizes on the speed and accuracy of modern lightweight oracle models.

Methods

SEIDEN's approach is built around two main phases:

  • Index Construction: Instead of training a proxy model, SEIDEN directly applies the lightweight oracle model (e.g., YOLOv5) to a subset of I-frames (independently decodable frames) from the video. These I-frames act as "anchors," and their oracle labels form a query-agnostic index. This phase is performed only once per video.
  • Query Execution: When a query arrives, SEIDEN uses a novel "exploration-exploitation" strategy based on a multi-armed bandit (MAB) algorithm. It intelligently samples additional frames, prioritizing segments that are likely to be informative for the specific query. The oracle model is run on these sampled frames. Crucially, SEIDEN then leverages the temporal continuity of the video to "propagate" the oracle labels from the sampled frames to all other unsampled frames, effectively creating proxy labels for the entire video. These proxy labels are then fed into standard Approximate Query Processing (AQP) algorithms (like those in BLAZEIT and SUPG) to generate the final query result.

Datasets

The paper evaluates SEIDEN on four real-world traffic surveillance datasets:

  • Cherry: A one-hour video from Seattle with 100K frames.
  • UA-DETRAC: A dataset consisting of numerous short traffic camera videos, concatenated to form a longer video with 84K frames.
  • Dashcam: A 52-minute video recorded from a dashcam.
  • Jackson: A 2-hour 46-minute video with 300K frames, collected at nighttime.

Key Insights and Ideas

  • The Oracle is Now the Proxy: The most significant insight is that modern lightweight object detection models (like YOLOv5) are fast enough to be used directly as "oracle" models for processing video frames, rendering the traditional proxy model approach obsolete.
  • Temporal Continuity is Key: SEIDEN effectively leverages the inherent temporal continuity in videos. By sampling a few frames and then interpolating labels to others, it avoids processing every single frame with the oracle model.
  • Exploration vs. Exploitation for Video: The paper frames query processing as a multi-armed bandit problem, where "arms" are video segments. This allows SEIDEN to intelligently balance exploring new segments for potentially valuable information with exploiting segments that have already shown promise for the current query.
  • Query-Agnostic Indexing: The initial index built using I-frames is query-agnostic, meaning it can be reused for various types of queries on the same video, amortizing the index construction cost.

Key Results

  • Speedup: SEIDEN is on average 6.6x faster than state-of-the-art VDBMSs across diverse queries and datasets. In some cases, the speedup is as high as 84.8x compared to running the oracle model on all frames.
  • Accuracy: SEIDEN achieves comparable or slightly better accuracy than existing methods, particularly for recall queries. For precision queries, it consistently outperforms SVM and RESNET-18 baselines.
  • Index Construction: SEIDEN's index construction is significantly faster (e.g., 87x faster than TASTI-PT) because it only processes a subset of I-frames with the oracle model, whereas baselines like TASTI-PT process all frames with a proxy model.
  • Label Interpolation: Temporal linear interpolation for label propagation is shown to be both fast and effective, outperforming other methods like pixel or deep feature distance-based interpolation in terms of efficiency without significant accuracy loss.

Limitations and Future Work

  • Anchor Sampling Ratio (α): The optimal value of α (balancing index construction vs. query execution sampling) varies by query type. For aggregate queries, higher α (favoring exploration) is better, while for precision queries, a balance is needed. This suggests that tuning α might be necessary for optimal performance.
  • MAB Parameter (c): The MAB parameter 'c' also influences the exploration-exploitation balance. Similar to α, its optimal value depends on the query type, with aggregate queries benefiting from higher 'c' (more exploration).
  • Oracle Label Reuse: The paper demonstrates that SEIDEN can effectively reuse oracle labels from previous queries, improving efficiency for subsequent related queries. This hints at potential for more sophisticated caching and reuse strategies.
  • Future Work: The authors suggest exploring more advanced sampling strategies and investigating how to best leverage the learned temporal continuity for more complex video analytics tasks. They also highlight the need for VDBMSs to adapt to the evolving landscape of computer vision models.

Summary updated

BibTeX
@article{bang2023seiden,
  author = {Jaeho Bang and Gaurav Tarlok Kakkar and Pramod Chunduri and Subrata Mitra and Joy Arulraj},
  title = {{SEIDEN: Revisiting Query Processing in Video Database Systems}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  url = {https://openreview.net/forum?id=vxirESBJYMZ},
}

Loading related content...

Figure