Decentralized Smart Surveillance through Microservices Platform

Seyed Yahya Nikouei, Ronghua Xu, Yu Chen, Alex Aved, Erik Blasch

TL;DR

This paper introduces the Lightweight IoT based Smart Public Safety (LISPS) framework, a decentralized system for real-time surveillance using microservices. LISPS addresses the challenges of edge computing for public safety by enabling efficient on-site processing of video data, reducing latency and network load, and enhancing security through a private blockchain.

What Problem Does This Paper Address?

Modern cities are increasingly reliant on surveillance systems to ensure public safety. However, traditional cloud-based surveillance systems face significant challenges:

  • Latency and Network Load: Streaming vast amounts of video data to a central cloud for processing introduces significant communication delays and strains network bandwidth, especially with the ever-growing number of cameras.
  • Limited Edge Computing Power: While edge computing offers a solution by processing data closer to the source, current edge devices often lack the computational power for complex, real-time analysis.
  • Security Concerns: Transmitting raw video data over networks without robust security measures makes it vulnerable to interception, theft, and malicious attacks like frame duplication.

The paper aims to bridge this gap by proposing a decentralized framework that leverages microservices and edge computing to perform sophisticated surveillance tasks efficiently and securely.

Methods

The LISPS framework is built upon a microservices architecture, which breaks down complex functionalities into smaller, independent services. This approach offers:

  • Decentralization: Functions are distributed across edge, fog, and cloud layers, allowing for flexible deployment and scalability.
  • Loose Coupling: Services can be updated or added without disrupting the entire system, enhancing maintainability and agility.
  • Edge Processing: Key tasks like object detection and feature extraction are performed directly on edge devices (e.g., cameras or nearby single-board computers).
  • Lightweight Convolutional Neural Network (L-CNN): Used for efficient online object detection at the edge.
  • Kerman Algorithm: Employed for real-time object tracking on the edge.
  • Fuzzy Logic: Implemented at the fog layer for sophisticated decision-making and suspicious behavior detection based on contextualized features.
  • Private Blockchain Network: Integrated for enhanced security, ensuring data integrity, access control, and secure communication among microservices. This includes using smart contracts for managing access and securing data hashes.
  • Docker Containers: Used to package and deploy microservices, facilitating ease of distribution and scalability.

Datasets

Not discussed in the paper. The paper focuses on a real-world public safety monitoring scenario and uses self-generated data for experimental evaluation.

Key Insights and Ideas

  • Microservices as a Foundation for Edge Surveillance: The paper demonstrates that a microservices architecture is well-suited for building flexible, scalable, and maintainable decentralized surveillance systems at the edge.
  • Balancing Edge Capabilities and Computational Demands: By offloading initial processing (feature extraction) to the edge and more complex analysis (decision making) to the fog, LISPS effectively manages the computational limitations of edge devices.
  • Blockchain for Trust and Security in Decentralized Systems: The integration of a private blockchain provides a robust mechanism for securing data and access control in a distributed environment, addressing critical security concerns in public safety applications.
  • Real-time Suspicious Activity Detection: The combination of edge-based object tracking and fog-based fuzzy logic decision-making enables timely identification of potentially risky behaviors.

Key Results

  • Feasibility Demonstrated: The experimental results show that the LISPS prototype is capable of detecting and tracking human objects and identifying suspicious activities in real-time.
  • Performance Metrics:
    • Edge units (Raspberry Pi and Tinker Board) achieved an average of 4-5.5 Frames Per Second (FPS) for feature extraction, which is considered sufficient for real-time public safety applications.
  • The fog node processed frames with an average latency of less than 0.5 seconds for detection and message sending, meeting real-time requirements.
  • The system can handle up to five objects in a frame before noticeable delays occur.
  • Modularity Trade-off: A slight decrease in FPS (around 1.9 FPS for Tinkerboard) was observed due to the overhead of microservices within Docker containers, highlighting a trade-off for modularity.
  • CPU Usage: Edge units operated with CPU usage below 80%, and the fog node utilized one CPU core at nearly 90% for processing streams from a single edge node.

Limitations and Future Work

  • Limitations:
    • The current system's performance may degrade with a larger number of objects in the scene.
  • A slight performance overhead is incurred due to the microservices architecture and Docker containerization.
  • The paper mentions that "some parts of the code is inseparable which makes a bigger service," indicating that not all functionalities can be perfectly granular.
  • Future Work:
    • Enhance detection capabilities by incorporating more features.
  • Implement an encrypted channel for data transmission to ensure confidentiality and prevent unauthorized access to raw video or feature data.
  • Further explore hardware advancements for edge devices to improve performance.
  • Investigate strategies for optimizing container deployment on fog nodes to avoid performance degradation when the number of containers approaches the number of CPU threads.

Summary updated

Abstract

Connected societies require reliable measures to assure the safety, privacy, and security of members. Public safety technology has made fundamental improvements since the first generation of surveillance cameras were introduced, which aims to reduce the role of observer agents so that no abnormality goes unnoticed. While the edge computing paradigm promises solutions to address the shortcomings of cloud computing, e.g., the extra communication delay and network security issues, it also introduces new challenges. One of the main concerns is the limited computing power at the edge to meet the on-site dynamic data processing. In this paper, a Lightweight IoT (Internet of Things) based Smart Public Safety (LISPS) framework is proposed on top of microservices architecture. As a computing hierarchy at the edge, the LISPS system possesses high flexibility in the design process, loose coupling to add new services or update existing functions without interrupting the normal operations, and efficient power balancing. A real-world public safety monitoring scenario is selected to verify the effectiveness of LISPS, which detects, tracks human objects and identify suspicious activities. The experimental results demonstrate the feasibility of the approach.
BibTeX
@misc{nikouei2019decentralized,
  author = {Seyed Yahya Nikouei and Ronghua Xu and Yu Chen and Alex Aved and Erik Blasch},
  title = {{Decentralized Smart Surveillance through Microservices Platform}},
  year = {2019},
  eprint = {1903.04563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.04563},
}
Figure