Manuscript Offprint

arXiv:2609.07020

ASTRA: Low-Overhead Runtime Architecture for STReam Adaptation in Video Analytics

Mahshid Ghasemi, Zoran Kostic, Javad Ghaderi, Gil Zussman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mahshid Ghasemi, Zoran Kostic, Javad Ghaderi, and Gil Zussman

Electrical Engineering, Columbia University

{mahshid.ghasemi, zk2172, jghaderi, gil.zussman}@columbia.edu

Abstract—Real-time video analytics is crucial for smart city applications and cloud-connected vehicle control. To improve analytics accuracy, it is desirable to process the video at the highest resolution and frame rate. However, due to limited resources, streaming and processing video at the highest resolution and frame rate from all cameras is not feasible and adversely affects the analytics latency. Intelligent adaptation of cameras' resolutions and frame rates based on network conditions and the video content is crucial in order to optimize the performance. In this paper, we present ASTRA, a low-overhead runtime architecture for online adaptation of live camera analytics at the edge. ASTRA can execute various online algorithms as a black box. We deployed ASTRA in the realistic NSF COSMOS testbed and uniquely assessed its real-time performance using COSMOS' street-level cameras. We further evaluated ASTRA with up to eight emulated cameras by streaming a comprehensive video dataset under real-world network conditions. We used ASTRA's architecture to evaluate the practical performance of several classes of adaptation algorithms, including theoretical and empirical methods. The results indicate that ASTRA can provide system reliability (i.e., the probability of meeting accuracy and latency requirements) of more than 90% while maintaining performance within a deviation of less than 10% from optimal offline performance with average GPU utilization overhead of around 2% per camera.

Index Terms—Video analytics, edge computing, online optimization, testbed evaluation

I. Introduction

Video analytics, powered by Deep Neural Networks (DNNs), has gained importance in a wide range of applications, including smart city infrastructure, traffic signal optimization, and cloud-connected vehicle control [1], [2], [3]. The recent proliferation of traffic cameras, coupled with the availability of advanced edge/cloud computing resources, is expected to facilitate large-scale video analytics.

Consider a system of geo-distributed cameras streaming to edge/cloud servers for real-time object detection. These cameras continuously generate a large volume of data that must be encoded, transmitted, decoded, and processed in real-time while adhering to network and computational capacity constraints. A microcosm of such a system is deployed in the NSF COSMOS wireless edge-cloud testbed in New York City (NYC) (see Fig. 1) [4], [2]. As part of this testbed, several traffic cameras are installed at busy streets and intersections in Manhattan, and their real-time video streams are processed at COSMOS' edge servers

Figure

Figure 1: The NSF COSMOS testbed uses geo-distributed cameras and edge servers. It allows emulating real-world scenarios that require resource allocation for analyzing real-time video streams [5], [2], [4].

to extract traffic- and crowd-related information such as pedestrian and vehicle density.

Two key performance metrics in such systems are accuracy and (end-to-end) latency. Accuracy is determined by evaluating how closely the output of the object detection (i.e., bounding boxes and labels) aligns with manually annotated ground-truth data. Latency comprises encoding latency, network latency, decoding latency and DNN inference latency. Accuracy and latency are significantly impacted by network conditions, computational capacity, and video content.

Network conditions. Network variations can cause lower throughput, increased packet loss, and buffering. Therefore, if in such cases, resolution or frame rate are not reduced, (i) network latency increases, and/or (ii) quality of decoded images degrades which reduces accuracy.

Computational capacity. Real-time processing of video streams using DNNs is computationally demanding. For example, the execution of a conventional object detection model on a single 1K resolution video stream at 30 fps can consume most of the processing capacity of an edge GPU. In such a case, processing additional streams leads to increased inference latency unless the resolution or frame rate of at least one of the video streams or the DNN model size is reduced.

Video content. Depending on the density level and movements in the monitored scene, different resolutions, frame rates, and DNN complexities are required in order to achieve sufficient accuracy. For example, for cameras viewing urban streets, when vehicles are moving slowly (e.g., at a red traffic light or during heavy traffic) the frame rate can be reduced without losing accuracy. Similarly, when the pedestrians' density is low, or they are close to the camera, the resolution can be reduced without

Figure

Figure 2: Deployment of online adaptation in a multi-camera setup connected to edge servers. The adaptation system updates the configuration of the system periodically in response to changes in the environment.

affecting the accuracy.

Therefore, optimizing parameters such as resolution and frame rate when feasible, can significantly save on bandwidth and computational power.

Iterative adaptation algorithm. In this paper, the objective is to dynamically identify video streams' resolutions and frame rates that maximize the overall performance (a function of accuracy and end-to-end latency), while meeting application-specific constraints on minimum accuracy and maximum end-to-end latency. We refer to a specific combination of resolution and frame rate for a stream as a configuration.

Our measurements, consistent with prior research [6], [7], [8], [9], indicate that accuracy and latency are time-varying and unknown functions of the configuration. The characteristics of these functions depend on dynamic variables such as video content, available network and computing resources, and DNN models. Identifying an optimal configuration through deterministic or offline optimization with empirical modeling cannot capture the unknown and time-varying nature of the problem and often leads to poor performance. This necessitates iterative online adaptation in such unpredictable settings, where configurations can be evaluated only when deployed and processing real video streams, without knowledge of the future or an explicit model for the accuracy or latency functions. At each iteration, such algorithms select a configuration to evaluate based on previously observed performance. We refer to such algorithms as iterative algorithms.

Key idea. The primary goal of online adaptation is to maximize performance under constrained resources. Achieving this requires that: (i) the adaptation runtime architecture incurs minimal overhead when executing the iterative algorithm, and (ii) given the rapid evolution of online adaptation algorithms, it is crucial that the architecture allows for easy integration of new algorithms, requiring only minimal changes. To meet these requirements, we introduce ASTRA, a low-overhead runtime Architecture for STREAM Adaptation in real-time video analytics that enables execution of existing and future iterative algorithms as a black-box (as shown in Fig. 2). A patent based on ASTRA is pending [10].

Prior studies. Significant work has been done on exploring

online video analytics adaptation approaches. However, most previous studies focus solely on developing adaptation algorithms (the “content” of the black-box in Fig. 2) and are evaluated using recorded videos, not within an end-to-end real-time system [8], [6], [11], [12], [13]. Despite the growing number of online adaptation algorithms for video analytics, there remains a significant gap in understanding the system-level overheads and practical feasibility of deploying such algorithms within an edge/cloud network and operating them in real-time. ASTRA is designed to close this gap. To our knowledge, ASTRA is the first to provide a detailed architectural design and practical implementation for executing iterative adaptation algorithms in a real-time video analytics pipeline.

References (86)

  • Demo: Real-time camera analytics for enhancing traffic intersection safety
  • Real-time multi-camera analytics for traffic information extraction and visualization
  • Real-time video analytics for urban safety: Deployment over edge and end devices
  • Challenge: COSMOS: A city-scale programmable testbed for experimentation with advanced wireless
  • Hardware: Cameras
  • Casva: Configuration-adaptive streaming for live video analytics
  • RECL: Responsive resource-efficient continuous learning for video analytics
  • Chameleon: Scalable adaptation of video analytics
  • Automl for video analytics with edge computing
  • Systems and methods for adaptive streaming for real-time video analytics (ASTRA)
  • Jellyfish: timely inference serving for dynamic edge networks
  • Ekya: Continuous learning of video analytics models on edge compute servers
  • VideoJam: Self-balancing architecture for live video analytics
  • Constrained efficient global optimization of expensive black-box functions
  • COSMOS smart intersection: Edge compute and communications for bird’s eye object tracking
  • RFC3550: RTP: A transport protocol for real-time applications
  • Gstreamer application development manual (1.2.3)
  • Oneadapt: Fast adaptation for deep learning applications via backpropagation
  • MadEye: Boosting live video analytics accuracy with adaptive camera configurations
  • Starstream: Live video analytics over space networking
  • Shoggoth: towards efficient edge-cloud collaborative real-time video inference via adaptive online learning
  • Responsive DNN adaptation for video analytics against environment shift via hierarchical mobile-cloud collaborations
  • Edge-assisted on-device model update for video analytics in adverse environments
  • Soudain: Online adaptive profile configuration for real-time video analytics
  • Awwstream: Adaptive wide-area streaming analytics
  • Lightweight online profiling-based configuration adaptation for video analytics system in edge computing
  • Joint configuration adaptation and bandwidth allocation for edge-based real-time video analytics
  • Towards end-to-end latency guarantee in MEC live video analytics with App-RAN mutual awareness
  • Logan: Loss-tolerant live video analytics system
  • RIVA: Communication-efficient streaming control for real-time industrial video analytics
  • OAVS: Efficient online learning of streaming policies for drone-sourced live video analytics
  • The OODA loop of cloudlet-based autonomous drones
  • Neural networks meet physical networks: Distributed inference between edge devices and the cloud
  • Deepthings: Distributed adaptive deep learning inference on resource-constrained IoT edge clusters
  • Oakestra: A lightweight hierarchical orchestration framework for edge computing
  • nextGSIM: Towards simulating network resource management for beyond 5G networks
  • Split computing video analytics performance enhancement with auction-based resource management
  • Edgesp: Scalable multi-device parallel DNN inference on heterogeneous edge clusters
  • JAVP: Joint-aware video processing with edge-cloud collaboration for DNN inference
  • Sniper: Cloud-edge collaborative inference scheduling with neural network similarity modeling
  • DAO: Dynamic adaptive offloading for video analytics
  • NN-stretch: Automatic neural network branching for parallel inference on heterogeneous multi-processors
  • ViEdge: Video analytics on distributed edge
  • Codi: Efficient CPU-GPU co-execution for deep learning inference on mobile devices
  • BlastNet: Exploiting Duo-Blocks for cross-processor real-time DNN inference
  • Does accurate real-time AI need edge offload?
  • PIB: Prioritized information bottleneck framework for collaborative edge video analytics
  • Optimal task offloading and trajectory planning algorithms for collaborative video analytics with UAV-assisted edge in disaster rescue
  • MIRIS: Fast object track queries in video
  • Exsample: Efficient searches on video repositories through adaptive sampling
  • Reducto: On-camera filtering for resource-efficient real-time video analytics
  • Aqua: Analytical quality assessment for optimizing video analytics systems
  • VaBUS: Edge-cloud real-time video analytics via background understanding and subtraction
  • SVQ: Streaming video queries
  • Frugal following: Power thrifty object detection and tracking for mobile augmented reality
  • Edge-assisted real-time object detection for mobile augmented reality
  • CrossRoI: Cross-camera region of interest optimization for efficient real-time video analytics at scale
  • Adamask: Enabling machine-centric video streaming with adaptive frame masking for DNN inference offloading
  • Elf: accelerate high-resolution mobile deep vision with content-aware parallel offloading
  • Server-driven video streaming for deep learning inference
  • Accmpeg: Optimizing video encoding for accurate video analytics
  • ENTRO: Tackling the encoding and networking trade-off in offloaded video analytics
  • Turbo: Opportunistic enhancement for edge video analytics
  • Region-based content enhancement for efficient video analytics at the edge
  • JIGSAW: Edge-based streaming perception over spatially overlapped multi-camera deployments
  • Noscope: Optimizing neural network queries over video at scale (opens arXiv in a new tab)
  • Live video analytics at scale with approximation and delay-tolerance
  • ILCAS: Imitation learning-based configuration-adaptive streaming for live video analytics with cross-camera collaboration
  • Speed scaling in fork-join queues: a comparative study
  • Understanding and overcoming parallelism bottlenecks in forkjoin applications
  • UPC++: A high-performance communication framework for asynchronous computation
  • A fine-grained asynchronous bulk synchronous parallelism model for PGAS applications
  • Internet time synchronization: the network time protocol
  • Assessment of an NTP service calibration over a local area network
  • Research on TDOA multiple stations time synchronization based on RTL-SDR
  • An analysis of delay in live $360^{\circ}$ video streaming systems
  • Dissecting latency in 360 video camera sensing systems
  • EAIS: Energy-aware adaptive scheduling for CNN inference on high-performance GPUs
  • Improving GPU cache hierarchy performance with a fetch and replacement cache
  • Maximizing performance through memory hierarchy-driven data layout transformations
  • Gaussian process optimization in the bandit setting: No regret and experimental design (opens arXiv in a new tab)
  • A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS
  • YOLOv4: Optimal Speed and Accuracy of Object Detection
  • From cloud to edge: a first look at public edge platforms
  • Cloudy with a chance of short RTTs: Analyzing cloud connectivity in the internet
  • Internet performance from facebook’s edge