Skip to main content
QUICK REVIEW

[Paper Review] Embedded Implementation of a Deep Learning Smile Detector

Pedram Ghazi, Antti P. Happonen|arXiv (Cornell University)|Jul 10, 2018
Speech and Audio ProcessingComputer Science4 citations
TL;DR

This paper presents a real-time embedded deep learning smile detector implemented on the NVIDIA Jetson TX2 platform using asynchronous multithreading to parallelize the processing pipeline. It demonstrates that lightweight MobileNet architectures achieve near-state-of-the-art accuracy (93.6% on GENKI-4K) with significantly lower computational cost—processing at 27.3 FPS—outperforming heavier models like VGG16 in speed/accuracy trade-offs for edge deployment.

ABSTRACT

In this paper we study the real time deployment of deep learning algorithms in low resource computational environments. As the use case, we compare the accuracy and speed of neural networks for smile detection using different neural network architectures and their system level implementation on NVidia Jetson embedded platform. We also propose an asynchronous multithreading scheme for parallelizing the pipeline. Within this framework, we experimentally compare thirteen widely used network topologies. The experiments show that low complexity architectures can achieve almost equal performance as larger ones, with a fraction of computation required.

Motivation & Objective

  • To enable real-time deployment of deep learning-based smile detection on low-resource embedded platforms.
  • To evaluate the speed-accuracy trade-off of 13 deep neural network architectures in a system-level context on the Jetson TX2 platform.
  • To design and implement an asynchronous multithreading software architecture that enables efficient pipeline parallelization for streaming image data.
  • To compare system-level performance across CPU, GPU, and embedded GPU (Jetson TX2) for end-to-end smile detection pipelines.
  • To demonstrate that lightweight models like MobileNet can achieve near-state-of-the-art accuracy with drastically reduced computational load, enabling real-time operation on edge devices.

Proposed method

  • The system uses an asynchronous multithreading architecture with dedicated threads for frame grabbing, face localization (via Viola-Jones), smile detection (using pre-trained CNNs), and visualization.
  • Thirteen widely used deep neural network architectures—including VGG16, MobileNet, and ShuffleNet—were evaluated for smile detection on the GENKI-4K and CelebA datasets.
  • The smile detection pipeline integrates a Viola-Jones face detector on the CPU and a deep CNN on the GPU, with data flow managed through thread-safe queues.
  • Performance was measured in terms of frames per second (FPS), inference time, model size, and floating-point operations (FLOPs), with accuracy assessed using accuracy (ACC) and AUC.
  • The software stack was deployed on NVIDIA Jetson TX2, a heterogeneous embedded platform with 6 ARM CPU cores and a 256-CUDA-core GPU, and compared against desktop CPU and GPU systems.
  • The system leverages the Jetson platform’s GPU for parallel inference and employs a modular design to allow integration of additional detection tasks (e.g., age, gender).

Experimental results

Research questions

  • RQ1Can lightweight deep neural network architectures achieve comparable smile detection accuracy to larger models like VGG16 while operating in real time on embedded platforms?
  • RQ2What is the system-level performance (speed, accuracy, memory usage) of different CNN architectures when deployed on the NVIDIA Jetson TX2 platform for real-time smile detection?
  • RQ3How does the proposed asynchronous multithreading pipeline architecture improve throughput and latency in a streaming image processing system compared to synchronous or monolithic designs?
  • RQ4To what extent do model complexity and FLOP count correlate with inference speed and accuracy in embedded smile detection systems?
  • RQ5Can a system-level implementation using lightweight models outperform state-of-the-art detectors in terms of processing speed while maintaining acceptable accuracy?

Key findings

  • The MobileNet architecture with α=1, ρ=1 achieved 93.6% accuracy on the GENKI-4K dataset, closely matching the state-of-the-art SmileNet (95.76%) while requiring significantly less computation.
  • The proposed system achieved an average processing speed of 27.3 frames per second on the Jetson TX2 platform, meeting real-time performance requirements for video streams.
  • VGG16 required approximately 750 times more floating-point operations per frame than MobileNet, yet delivered only marginally better accuracy, making it impractical for embedded deployment.
  • The system-level pipeline on a desktop GPU achieved 40–60 FPS, outperforming the reported 21.15 FPS of SmileNet on the same dataset, despite using a simpler face detector.
  • The integration of the Viola-Jones face detector with the CNN-based smile detector on Jetson TX2 enabled real-time operation, with the smile detection component being the primary performance bottleneck.
  • The study confirms that for embedded systems, MobileNet-based models offer the best trade-off between accuracy and computational efficiency, while larger models like VGG16 are unsuitable due to memory and latency constraints.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.