A Serverless Cloud-Fog Platform for DNN-Based Video Analytics with Incremental Learning

Huaizheng Zhang, Meng Shen, Yizheng Huang, Yonggang Wen, Yong Luo, Guanyu Gao, Kyle GuanarXiv 2021

Introduction

Modern video analytics applications, such as smart city monitoring and automated retail, increasingly rely on deep neural networks (DNNs) to achieve high accuracy. However, the computational demands of these models often exceed the capabilities of edge devices, necessitating video streaming to the cloud. This approach introduces significant bottlenecks, including high bandwidth consumption and round-trip time (RTT) latency. Existing "client-driven" or "cloud-driven" solutions often compromise either accuracy or cost-efficiency.

To address these challenges, we present VPaaS (Video-Platform-as-a-Service), a serverless cloud-fog platform designed to optimize DNN-based video analytics. VPaaS reduces bandwidth and latency while maintaining high accuracy through a novel hierarchical processing protocol and human-in-the-loop incremental learning.

System Architecture and Processing Protocol

VPaaS is built atop a serverless architecture that abstracts infrastructure management, orchestrating workloads across client devices, local fog nodes, and the cloud.

Overview of the VPaaS infrastructure and supported video applications.

The platform employs a High and Low Video Streaming Protocol to balance resource usage and performance:

  1. Cloud-Side Localization: The client sends high-quality video to a local fog node, which compresses it into a low-quality version for the cloud. The cloud runs a heavy object detection model (e.g., FasterRCNN) specifically to identify bounding box coordinates.
  2. Fog-Side Classification: These coordinates are sent back to the fog node. The fog then crops the original high-quality frames based on the bounding boxes and runs a lightweight classification model. This approach leverages the insight that heavy models can locate objects even in blurry video, while lightweight models excel at classifying high-quality crops.

Human-in-the-Loop Incremental Learning

To mitigate "data drift"—where model accuracy degrades due to changing real-world conditions—VPaaS incorporates Human-in-the-Loop (HITL) Incremental Learning. The system identifies uncertain object crops and flags them for human annotation via a dashboard. These labels are used to incrementally update the final layers of the fog-side classification models in real-time using stochastic gradient descent, ensuring the system adapts to its specific environment.

Experimental Evaluation

The system was evaluated using three diverse real-world datasets: DashCam (~46,000 objects), Drone (~54,000 objects), and Traffic (~69,000 objects).

Key Results

  • Efficiency: VPaaS reduced bandwidth usage by up to 21% compared to state-of-the-art systems like DDS and CloudSeg.
  • Performance: The system achieved a 62.5% reduction in RTT, representing a 2.5x speedup in median latency.
  • Cost: By eliminating the need for expensive cloud-side super-resolution or multi-round queries, VPaaS reduced cloud monetary costs by up to 50%.
  • Reliability: During simulated cloud outages, fog nodes maintained operations by falling back to local detection models (e.g., YOLOv3), ensuring pipeline continuity.

Discussion and Future Work

A key insight from this work is that cropping objects from high-quality frames at the fog level can actually improve accuracy by removing misleading background pixels. However, current limitations include potential overfitting during rapid incremental learning and the lack of automated updates for cloud-side heavy models.

Future research will focus on network topology-aware scheduling, privacy-preserving techniques, and more robust regularization for incremental learning. The authors intend to open-source the VPaaS platform to support the broader research community.

Summary updated

BibTeX
@misc{zhang2021serverless,
  author = {Huaizheng Zhang and Meng Shen and Yizheng Huang and Yonggang Wen and Yong Luo and Guanyu Gao and Kyle Guan},
  title = {{A Serverless Cloud-Fog Platform for DNN-Based Video Analytics with Incremental Learning}},
  year = {2021},
  eprint = {2102.03012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.03012},
}
Figure