Extract-Transform-Load for Video Streams

Ferdinand Kossmann, Ziniu Wu, Eugenie Lai, Nesime Tatbul, Lei Cao, Tim Kraska, Sam MaddenPVLDB 2023 · DOI

TL;DR

Processing massive video streams for insights is prohibitively expensive. This paper introduces Skyscraper, a novel system that treats video analytics as a data warehousing problem (V-ETL). Skyscraper adaptively tunes video processing parameters to drastically reduce costs while maintaining throughput and quality, making large-scale video analysis practical.

What Problem Does This Paper Address?

The explosion of video data from sources like social media, self-driving cars, and surveillance cameras presents a massive opportunity for insights. However, the sheer volume of this data makes traditional storage and analysis incredibly expensive. Storing just one month of data from 1000 traffic cameras can cost $60,000 annually, and processing it with state-of-the-art computer vision models can take months. Existing systems struggle to balance the need for continuous, real-time processing (throughput guarantees) with cost reduction, especially when dealing with the highly variable nature of video content. The authors define this challenge as Video Extract-Transform-Load (V-ETL), aiming to extract valuable information from video streams efficiently and affordably.

Methods

Skyscraper tackles the V-ETL problem through a combination of adaptive knob tuning, buffering, and cloud bursting.

  • Content-Adaptive Knob Tuning: Skyscraper dynamically adjusts parameters inherent to computer vision workloads (e.g., frame rate, resolution, object detection frequency) based on the video content. It achieves this by:
  • Offline Learning: Profiling knob configurations and task placements, clustering video content into categories based on how different knobs perform on them, and training a forecasting model to predict future content category distributions.
  • Online Ingestion: Using a knob planner to predict future content and assign optimal knob configurations to content categories, and a knob switcher that reactively selects knob configurations based on the current content and the knob plan, ensuring buffer and cloud resource utilization is managed.
  • Buffering and Cloud Bursting: Skyscraper uses a local buffer to store frames when processing demand exceeds local compute capacity. If the buffer fills up, it "bursts" to the cloud for additional compute resources, managing costs by only using cloud resources when necessary.
  • Predictive and Reactive Control: The system combines predictive planning (forecasting content trends) with reactive execution (adapting to immediate content changes) to optimize resource usage and avoid buffer overflows.

Datasets

The paper evaluates Skyscraper on three real-world and synthetic workloads:

  • COVID-19 safety measures (COVID): Uses an 8-day video stream of a busy shopping street in Tokyo.
  • Multi-object tracking (MOT): Uses an 8-day video stream of a traffic intersection in Shibuya, Tokyo.
  • Multi-modal opinion sentiment and emotion intensity (MOSEI): A synthetic workload simulating Twitch streams, using the CMU-MOSEI dataset for training and evaluation.

Key Insights and Ideas

  • Video Analytics as Data Warehousing: Framing video processing as a V-ETL problem is a powerful paradigm shift, allowing for the application of data warehousing principles to manage and query video data efficiently.
  • Content is King (for Tuning): The variability of video content, not just its volume, is the primary driver for adaptive tuning. Skyscraper's success hinges on accurately predicting and reacting to these content shifts.
  • Buffering and Cloud Bursting are Complementary: These two techniques work together to smooth out workload peaks. Buffering handles short-term fluctuations, while cloud bursting addresses longer or more intense spikes, with their combined effect being greater than the sum of their individual contributions.
  • Quality Metrics are User-Defined: Skyscraper's ability to generalize across diverse workloads is enabled by allowing users to define their own quality metrics, which are then used for adaptive tuning.
  • Low Overhead is Crucial: For adaptive systems to be practical, the overhead of decision-making (knob tuning) must be minimal. Skyscraper achieves this by relying on user-defined quality metrics that are already extracted during processing.

Key Results

  • Significant Cost Reductions: Skyscraper achieves substantial cost savings, up to 8.7x cheaper than a static baseline on the MOT workload at comparable quality. It also outperforms an adapted Chameleon baseline by 3.7x at better quality.
  • Robustness and Throughput Guarantees: Skyscraper provides throughput guarantees, ensuring continuous ingestion, which is a critical limitation of prior adaptive systems like Chameleon.
  • Effective Resource Management: The combination of buffering and cloud bursting allows Skyscraper to achieve high quality at significantly reduced costs, even for challenging workloads with frequent content changes. For example, it can reach peak quality at 1.5x less cost than using only buffering or only cloud bursting.
  • Negligible Overhead: The knob switcher operates in under 0.5 ms, and the knob planner's overhead is under 1 second, making the adaptive tuning practical for real-time ingestion.
  • Forecasting Accuracy: Skyscraper's forecasting model performs well for planned intervals of 1-4 days, with minimal impact on end-to-end performance compared to using ground truth.

Limitations and Future Work

  • Forecasting Horizon: While Skyscraper performs well for 1-4 day forecasts, performance degrades for longer horizons (8 days), indicating challenges in predicting distant future content dynamics.
  • Content Category Changes: The system assumes that content category changes are smooth. If entirely new content categories emerge that were not present in the training data, the content categories might need to be recomputed.
  • Hyperparameter Tuning: While Skyscraper offers default values, users might need to tune hyperparameters for highly specialized workloads.
  • Future Work: The authors suggest that more sophisticated network architectures might be required for the forecasting model in certain workloads. They also highlight the potential for further enhancements to address Type-A and Type-B errors in knob switching. The paper also briefly touches upon extending Skyscraper to multi-stream scenarios.

Summary updated

BibTeX
@article{kossmann2023extract,
  author = {Ferdinand Kossmann and Ziniu Wu and Eugenie Lai and Nesime Tatbul and Lei Cao and Tim Kraska and Sam Madden},
  title = {{Extract-Transform-Load for Video Streams}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  doi = {10.14778/3598581.3598600},
}
Figure