Deployment of Customized Deep Learning based Video Analytics On Surveillance Cameras

Pratik Dubal, Rohan Mahadev, Suraj Kothawade, Kunal Dargan, Rishabh K. IyerarXiv 2018

Abstract

This paper addresses the critical challenges of deploying high-performance deep learning models on resource-constrained edge devices, such as surveillance cameras and on-premise CPUs. While deep learning has revolutionized computer vision, standard models often struggle with the "generalization gap" when applied to specific surveillance environments. The authors propose a practical roadmap for model customization using intelligent data selection via submodular optimization and fine-tuning of lightweight architectures. Experimental results demonstrate that customized models, such as Tiny-YOLO, can significantly outperform massive generic models while maintaining real-time performance on standard hardware.

Introduction

Despite the advancements in computer vision, commercial surveillance remains a challenging domain for deep learning due to three primary hurdles. First, the Generalization Gap occurs when models trained on generic datasets (e.g., COCO or ImageNet) fail to perform in specific, fixed-angle environments like warehouses or classrooms. Second, Hardware Constraints often limit deployments to edge devices or CPUs, making power-hungry GPU-based models impractical. Finally, Data Redundancy in video feeds makes manual annotation of training data highly inefficient. This paper presents a methodology to overcome these barriers through site-specific model customization.

System Architecture

The proposed system utilizes a modular AI engine designed to process video feeds and extract actionable insights through a structured pipeline.

Overview of the Customized AI Engine and Business Logic Layer.

As shown in the architecture above, the system categorizes analytics into four primary domains: Persons (actions and apparel), Vehicles (type and color), Faces (recognition and demographics), and Objects (animals and baggage). These outputs are processed by a Business Logic Layer, which filters and analyzes the data before presenting it to a human operator or triggering alerts.

Methodology

The core of the authors' approach is Model Customization, which involves several key components:

  • Intelligent Frame Selection: To combat data redundancy, the researchers employ submodular functions (diversity models) to automatically select the most informative frames for labeling. This ensures that the training set captures maximum variance with minimal human effort.
  • Architecture Selection: The system prioritizes "single-pass" detectors like YOLO, Tiny-YOLO, and SSD. These architectures are optimized for speed, making them suitable for CPU-based inference compared to slower, multi-stage detectors like Faster R-CNN.
  • Transfer Learning and Fine-Tuning: The paper evaluates the trade-offs between using pre-trained models as fixed feature extractors (Transfer Learning) and updating all weights (Fine-Tuning). Fine-tuning was found to provide superior accuracy when sufficient site-specific data is available.
  • Tracking: The SORT (Simple Online and Realtime Tracking) algorithm is integrated to maintain object identities across frames, enabling advanced analytics such as dwell time and heat mapping.

Experimental Results

The study utilized a mix of standard benchmarks and four domain-specific datasets, including a Classroom Dataset (736 images), a Community Center Dataset (5,336 images), and a Multi-Scenario Surveillance (MSS) Dataset (8,191 images).

Key findings include:

  • The Power of Context: On the Classroom dataset, a generic YOLO model achieved a dismal 9.04 mAP. After customization on site-specific data, accuracy surged to 66.16 mAP.
  • Efficiency vs. Accuracy: Tiny-YOLO was approximately 5x faster than standard YOLO on a CPU. Crucially, a custom-trained Tiny-YOLO often outperformed a generic full-sized YOLO, proving that context is more important than model scale.
  • Face and Attribute Analytics: The ResNet-SSD face detector achieved 97.81% precision, significantly outperforming traditional methods like Haar Cascades. Fine-tuning AlexNet for attribute recognition (age, gender, apparel) also showed high efficacy, particularly for gender recognition (83.8% accuracy).

Conclusion

The research concludes that for effective surveillance, the goal should not be achieving the highest possible mAP on a GPU, but rather the highest accuracy at a playable frame rate on a CPU. By focusing on "diverse" data rather than "big" data and utilizing site-specific customization, high-performance video analytics can be successfully deployed on the edge. Future work will focus on automating the customization pipeline and addressing multi-camera re-identification.

Summary updated

BibTeX
@misc{dubal2018deployment,
  author = {Pratik Dubal and Rohan Mahadev and Suraj Kothawade and Kunal Dargan and Rishabh K. Iyer},
  title = {{Deployment of Customized Deep Learning based Video Analytics On Surveillance Cameras}},
  year = {2018},
  eprint = {1805.10604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.10604},
}
Figure