skip to main content
10.1145/3458305.3463377acmconferencesArticle/Chapter ViewAbstractPublication PagesmmsysConference Proceedingsconference-collections
research-article

Towards cloud-edge collaborative online video analytics with fine-grained serverless pipelines

Published: 15 July 2021 Publication History

Abstract

The ever-growing deployment scale of surveillance cameras and the users' increasing appetite for real-time queries have urged online video analytics. Synergizing the virtually unlimited cloud resources with agile edge processing would deliver an ideal online video analytics system; yet, given the complex interaction and dependency within and across video query pipelines, it is easier said than done. This paper starts with a measurement study to acquire a deep understanding of video query pipelines on real-world camera streams. We identify the potentials and practical challenges towards cloud-edge collaborative video analytics. We then argue that the newly emerged serverless computing paradigm is the key to achieve fine-grained resource partitioning with minimum dependency. We accordingly propose CEVAS, a Cloud-Edge collaborative Video Analytics system empowered by fine-grained Serverless pipelines. It builds flexible serverless-based infrastructures to facilitate fine-grained and adaptive partitioning of cloud-edge workloads for multiple concurrent query pipelines. With the optimized design of individual modules and their integration, CEVAS achieves real-time responses to highly dynamic input workloads. We have developed a prototype of CEVAS over Amazon Web Services (AWS) and conducted extensive experiments with real-world video streams and queries. The results show that by judiciously coordinating the fine-grained serverless resources in the cloud and at the edge, CEVAS reduces 86.9% cloud expenditure and 74.4% data transfer overhead of a pure cloud scheme and improves the analysis throughput of a pure edge scheme by up to 20.6%. Thanks to the fine-grained video content-aware forecasting, CEVAS is also more adaptive than the state-of-the-art cloud-edge collaborative scheme.

References

[1]
2021. MQTT: The Standard for IoT messaging. https://mqtt.org. [Online; accessed 28-Apr-2021].
[2]
A. Agache, M. Brooker, A. Iordache, A. Liguori, R. Neugebauer, P. Piwonka, and D. Popa. 2020. Firecracker: Lightweight Visualization for Serverless Applications. In Proceeding of the 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI'20). 419--434.
[3]
M. M. Akbar, M S. Rahman, M. Kaykobad, E. G Manning, and G. C Shoja. 2006. Solving the Multidimensional Multiple-choice Knapsack Problem by constructing convex hulls. Computers & operations research 33, 5 (2006), 1259--1273.
[4]
I. E. Akkus, R. Chen, I. Rimac, M. Stein, K. Satzke, A. Beck, P. Aditya, and V. Hilt. 2018. SAND: Towards High-Performance Serverless Computing. In 2018 Usenix Annual Technical Conference (ATC'18).
[5]
Amazon. 2021. Amazon Web Services (AWS) - Cloud Computing Services. https://aws.amazon.com. [Online; accessed 28-Apr-2021].
[6]
Amazon. 2021. AWS Lambda Pricing. https://aws.amazon.com/lambda/pricing/. [Online; accessed 1-Mar-2021].
[7]
L. Ao, L. Izhikevich, G. M. Voelker, and G. Porter. 2018. Sprocket: A Serverless Video Processing Framework. In Proceedings of the ACM Symposium on Cloud Computing (SoCC'18).
[8]
AWS. 2021. AWS IoT Device SDK. https://docs.aws.amazon.com/greengrass/latest/developerguide/what-is-gg.html. [Online; accessed 28-Apr-2021].
[9]
AWS. 2021. AWS IoT Greengrass Core SDK. https://docs.aws.amazon.com/greengrass/latest/developerguide/what-is-gg.html. [Online; accessed 28-Apr-2021].
[10]
AWS. 2021. Lambda quotas. https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html. [Online; accessed 28-Apr-2021].
[11]
D. Becker, M. Schmidt, F. B. da Silva, S. Gül, C. Hellge, O. Sawade, and I. Radusch. 2018. Visual Object Tracking in A Parking Garage Using Compressed Domain Analysis. In Proceedings of the 9th ACM Multimedia Systems Conference (MMSys'18). 513--516.
[12]
A. Bewley, Z. Ge, L. Ott, F. Ramos, and B. Upcroft. 2016. Simple Online and Realtime Tracking. In 2016 IEEE International Conference on Image Processing (ICIP'16). IEEE, 3464--3468.
[13]
C. Canel, T. Kim, G. Zhou, C. Li, H. Lim, D. G. Andersen, M. Kaminsky, and S. R. Dulloor. 2019. Scaling Video Analytics on Constrained Edge Nodes. In Proceedings of the 2nd Conference on Systems and Machine Learning (SysML'19).
[14]
J. Carreira, P. Fonseca, A. Tumanov, A. Zhang, and R. Katz. 2019. Cirrus: A Serverless Framework for End-to-end ML Workflows. In Proceedings of the ACM Symposium on Cloud Computing (SoCC'19). 13--24.
[15]
J. Carreira and A. Zisserman. 2017. Quo vadis, action recognition? a new model and the kinetics dataset. In proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR'17). 6299--6308.
[16]
Z. Chen, K. Fan, S. Wang, L. Duan, W. Lin, and A. Kot. 2019. Lossy Intermediate Deep Learning Feature Compression and Evaluation. In Proceedings of the 27th ACM International Conference on Multimedia (MM'19).
[17]
CNBC. 2019. One billion surveillance cameras will be watching around the world in 2021, a new study says. https://www.cnbc.com/2019/12/06/one-billion-surveillance-cameras-will-be-watching-globally-in-2021.html. [Online; accessed 28-Apr-2021].
[18]
Datadog. 2020. The State of Serverless. https://www.datadoghq.com/state-of-serverless/. [Online; accessed 2-September-2020].
[19]
Amazon Dynamodb. 2021. Fast and flexible NoSQL database service for any scale. https://aws.amazon.com/dynamodb/. [Online; accessed 28-Apr-2021].
[20]
J. Emmons, S. Fouladi, G. Ananthanarayanan, S. Venkataraman, S. Savarese, and K. Winstein. 2019. Cracking open the DNN black-box: Video Analytics with DNNs across the Camera-Cloud Boundary. In ACM HotEdgeVideo.
[21]
Z. Fang, D. Hong, and R. K Gupta. 2019. Serving Deep Neural Networks at the Cloud Edge for Vision Applications on Mobile Platforms. In Proceedings of the 10th ACM Multimedia Systems Conference (MMSys'19). 36--47.
[22]
S. Fouladi, R. S. Wahby, B. Shacklett, K. Balasubramaniam, W. Zeng, et al. 2017. Encoding, Fast and Slow: Low-Latency Video Processing Using Thousands of Tiny Threads. In Proceeding of the 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI'17). 363--376.
[23]
Azure Functions. 2021. More than just event-driven serverless compute. https://azure.microsoft.com/en-us/services/functions/. [Online; accessed 28-Apr-2021].
[24]
S. Ge, S. Zhao, X. Gao, and J. Li. 2019. Fewer-Shots and Lower-Resolutions: Towards Ultrafast Face Recognition in the Wild. In Proceedings of the 27th ACM International Conference on Multimedia (MM'19).
[25]
Google. 2021. Cloud Functions. https://cloud.google.com/functions. [Online; accessed 28-Apr-2021].
[26]
AWS IoT Greengrass. 2021. Bring local compute, messaging, data management, sync, and ML inference capabilities to edge devices. https://aws.amazon.com/lambda/edge/. [Online; accessed 28-Apr-2021].
[27]
M. Hifi, M. Michrafy, and A. Sbihi. 2006. A reactive local search-based algorithm for the multiple-choice multi-dimensional knapsack problem. Computational Optimization and Applications 33, 2-3 (2006), 271--285.
[28]
K. Hsieh, G. Ananthanarayanan, P. Bodik, S. Venkataraman, P. Bahl, M. Philipose, P. B. Gibbons, and O. Mutlu. 2018. Focus: Querying Large Video Datasets with Low Latency and Low Cost. In Proceedings of the 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI'18).
[29]
C. Hu, W. Bao, D. Wang, and F. Liu. 2019. Dynamic Adaptive DNN Surgery for Inference Acceleration on the Edge. In IEEE Conference on Computer Communications (INFOCOM'19). IEEE, 1423--1431.
[30]
C. Hung, G. Ananthanarayanan, P. Bodik, L. Golubchik, M. Yu, P. Bahl, and M. Philipose. 2018. VideoEdge: Processing Camera Streams using Hierarchical Clusters. In Proceedings of the Second ACM/IEEE Symposium on Edge Computing (SEC'18).
[31]
intuVision Retail. 2021. Retail Video Analytics. https://www.intuvisiontech.com/intuvisionVA_solutions/intuvisionVA_retail [Online; accessed 28-Apr-2021].
[32]
S. Jain, G. Ananthanarayanan, J. Jiang, Y. Shu, and J. Gonzalez. 2019. Scaling Video Analytics Systems to Large Camera Deployments. In Proceedings of the 20th International Workshop on Mobile Computing Systems and Applications (HotMobile'19). 9--14.
[33]
A. H. Jiang, D. L-K Wong, C. Canel, L. Tang, I. Misra, M. Kaminsky, M. A. Kozuch, P. Pillai, D. G. Andersen, and G. R. Ganger. 2018. Mainstream: Dynamic Stem-Sharing for Multi-Tenant Video Processing. In 2018 Usenix Annual Technical Conference (ATC'18).
[34]
J. Jiang, G. Ananthanarayanan, P. Bodik, S. Sen, and I. Stoica. 2018. Chameleon: Scalable Adaptation of Video Analytics. In Proceedings of the 2018 Conference of the ACM Special Interest Group on Data Communication (SIGCOMM'18). 253--266.
[35]
J. Jiang, Y. Zhou, G. Ananthanarayanan, Y. Shu, and A. A. Chien. 2019. Networked Cameras Are the New Big Data Clusters. In Proceedings of the 2019 Workshop on Hot Topics in Video Analytics and Intelligent Edges (HotEdgeVideo'19).
[36]
E. Jonas, J. Schleier-Smith, V. Sreekanti, C. Tsai, A. Khandelwal, et al. 2019. Cloud Programming Simplified: A Berkeley View on Serverless Computing. arXiv preprint arXiv:1902.03383 (2019).
[37]
G. Lai, W. Chang, Y. Yang, and H. Liu. 2018. Modeling long-and short-term temporal patterns with deep neural networks. In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval. 95--104.
[38]
AWS Lambda. 2021. Run code without thinking about servers. Pay only for the compute time you consume. https://aws.amazon.com/lambda/. [Online; accessed 28-Apr-2021].
[39]
AWS Lambda. 2021. Run your code closer to your users. https://aws.amazon.com/lambda/edge/. [Online; accessed 28-Apr-2021].
[40]
Gil Levi and Tal Hassner. 2015. Age and Gender Classification Using Convolutional Neural Networks. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops (CVPR'15).
[41]
Y. Matsubara, S. Baidya, D. Callegaro, M. Levorato, and S. Singh. 2019. Distilled Split Deep Neural Networks for Edge-Assisted Real-Time Systems. In Proceedings of the 2019 Workshop on Hot Topics in Video Analytics and Intelligent Edges (HotEdgeVideo'19). 21--26.
[42]
Q. Pu, S. Venkataraman, and I. Stoica. 2019. Shuffling, Fast and Slow: Scalable Analytics on Serverless Infrastructure. In Proceeding of the 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI'19). 193--206.
[43]
X. Ran, H. Chen, X. Zhu, Z. Liu, and J. Chen. 2018. Deepdecision: A mobile Deep Learning Framework for Edge Video Analytics. In IEEE Conference on Computer Communications (INFOCOM'18).
[44]
J. Redmon and A. Farhadi. 2018. YOLOv3: An Incremental Improvement. arXiv preprint arXiv:1804.02767 (2018).
[45]
Research and Markets. 2020. Surveillance Camera Market Outlook and Forecast 2020-2027: Revenues for Dome, Bullet, Box Style, PTZ, Thermal, and Other Cameras. https://www.globenewswire.com/news-release/2020/03/27/2007497/0/en/surveillance-camera-market-outlook-and-forecast-2020-2027-revenues-for-dome-bullet-box-style-ptz-thermal-and-other-cameras.html. [Online; accessed 28-Apr-2021].
[46]
Amazon S3. 2021. Object storage built to store and retrieve any amount of data from anywhere. https://aws.amazon.com/s3/. [Online; accessed 28-Apr-2021].
[47]
SamuiWebcam. 2020. Tropical Murphys Live Stream From Chaweng, Koh Samui, Thailand. https://www.youtube.com/watch?v=sbZNL98Z0GE. [Online; accessed 10-Mar-2020].
[48]
SeeJH.com. 2021. Jackson Hole Wyoming USA Town Square Live Cam. https://www.youtube.com/watch?v=1EiC9bvVGnk. [Online; accessed 28-Apr-2021].
[49]
H. Shojaei, T. Basten, M. Geilen, and A. Davoodi. 2013. A fast and scalable multidimensional multiple-choice knapsack heuristic. ACM Transactions on Design Automation of Electronic Systems (TODAES) 18, 4 (2013), 1--32.
[50]
G. Wang, Y. Wang, H. Zhang, R. Gu, and J. Hwang. 2019. Exploit the connectivity: Multi-object tracking with trackletnet. In Proceedings of the 27th ACM International Conference on Multimedia (MM'19).
[51]
L. Wang, M. Li, Y. Zhang, T. Ristenpart, and M. Swift. 2018. Peeking Behind the Curtains of Serverless Platforms. In 2018 Usenix Annual Technical Conference (ATC'18).
[52]
M. Xu, T. Xu, Y. Liu, X. Liu, G. Huang, and F. X. Lin. 2019. Supporting Video Queries on Zero-Streaming Cameras. arXiv preprint arXiv:1904.12342 (2019).
[53]
Y. Xu, W. Yan, H. Sun, G. Yang, and J. Luo. 2019. CenterFace: Joint Face Detection and Alignment Using Face as Point. In arXiv:1911.03599.
[54]
B. Zhang, X. Jin, S. Ratnasamy, J. Wawrzynek, and E. A Lee. 2018. AWStream: Adaptive Wide-Area Streaming Analytics. In Proceedings of the 2018 Conference of the ACM Special Interest Group on Data Communication (SIGCOMM'18). 236--252.
[55]
H. Zhang, G. Ananthanarayanan, P. Bodik, M. Philipose, P. Bahl, and M. J. Freedman. 2017. Live Video Analytics at Scale with Approximation and Delay-Tolerance. In Proceeding of the 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI'17).
[56]
T. Zhang, A. Chowdhery, P. V. Bahl, K. Jamieson, and S. Banerjee. 2015. The Design and Implementation of a Wireless Video Surveillance System. In Proceedings of the 21st Annual International Conference on Mobile Computing and Networking (MobiCom'15).

Cited By

View all
  • (2024)Data pipeline approaches in serverless computing: a taxonomy, review, and research trendsJournal of Big Data10.1186/s40537-024-00939-011:1Online publication date: 11-Jun-2024
  • (2024)EdgeVision: Towards Collaborative Video Analytics on Distributed Edges for Performance MaximizationIEEE Transactions on Multimedia10.1109/TMM.2024.338567826(9083-9094)Online publication date: 2024
  • (2024)Taming Serverless Cold Start of Cloud Model Inference With Edge ComputingIEEE Transactions on Mobile Computing10.1109/TMC.2023.334816523:8(8111-8128)Online publication date: Aug-2024
  • Show More Cited By

Index Terms

  1. Towards cloud-edge collaborative online video analytics with fine-grained serverless pipelines

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      MMSys '21: Proceedings of the 12th ACM Multimedia Systems Conference
      June 2021
      254 pages
      ISBN:9781450384346
      DOI:10.1145/3458305
      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Sponsors

      In-Cooperation

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 15 July 2021

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. cloud-edge collaboration
      2. serverless computing
      3. video analytics

      Qualifiers

      • Research-article

      Funding Sources

      • Shenzhen Science and Technology Program
      • SJTU Explore-X Research
      • Key Area R&D Program of Guangdong Province

      Conference

      MMSys '21
      Sponsor:
      MMSys '21: 12th ACM Multimedia Systems Conference
      September 28 - October 1, 2021
      Istanbul, Turkey

      Acceptance Rates

      MMSys '21 Paper Acceptance Rate 18 of 55 submissions, 33%;
      Overall Acceptance Rate 176 of 530 submissions, 33%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)132
      • Downloads (Last 6 weeks)15
      Reflects downloads up to 01 Mar 2025

      Other Metrics

      Citations

      Cited By

      View all
      • (2024)Data pipeline approaches in serverless computing: a taxonomy, review, and research trendsJournal of Big Data10.1186/s40537-024-00939-011:1Online publication date: 11-Jun-2024
      • (2024)EdgeVision: Towards Collaborative Video Analytics on Distributed Edges for Performance MaximizationIEEE Transactions on Multimedia10.1109/TMM.2024.338567826(9083-9094)Online publication date: 2024
      • (2024)Taming Serverless Cold Start of Cloud Model Inference With Edge ComputingIEEE Transactions on Mobile Computing10.1109/TMC.2023.334816523:8(8111-8128)Online publication date: Aug-2024
      • (2024)EneX: An Energy-Aware Execution Scheduler for Serverless ComputingIEEE Transactions on Industrial Informatics10.1109/TII.2023.329098520:2(2342-2353)Online publication date: Feb-2024
      • (2024)OVIDA: Orchestrator for Video Analytics on Disaggregated Architecture2024 IEEE/ACM Symposium on Edge Computing (SEC)10.1109/SEC62691.2024.00019(135-148)Online publication date: 4-Dec-2024
      • (2024)Application of Reinforcement Learning Algorithms in Intelligent Sports Training Video Tracking2024 International Conference on IoT Based Control Networks and Intelligent Systems (ICICNIS)10.1109/ICICNIS64247.2024.10823338(948-953)Online publication date: 17-Dec-2024
      • (2024)Tangram: High-Resolution Video Analytics on Serverless Platform with SLO-Aware Batching2024 IEEE 44th International Conference on Distributed Computing Systems (ICDCS)10.1109/ICDCS60910.2024.00066(645-655)Online publication date: 23-Jul-2024
      • (2024)SplitStreamJournal of Network and Computer Applications10.1016/j.jnca.2024.103866225:COnline publication date: 1-May-2024
      • (2024)Evaluating NiFi and MQTT based serverless data pipelines in fog computing environmentsFuture Generation Computer Systems10.1016/j.future.2023.09.014150:C(341-353)Online publication date: 1-Jan-2024
      • (2023)Blockchain-based Collaborative Edge Intelligence for Trustworthy and Real-Time Video SurveillanceIEEE Transactions on Industrial Informatics10.1109/TII.2022.320339719:2(1623-1633)Online publication date: Feb-2023
      • Show More Cited By

      View Options

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Figures

      Tables

      Media

      Share

      Share

      Share this Publication link

      Share on social media