TL;DR
This paper introduces EagleEye, a novel real-time face detector optimized for resource-constrained embedded devices. By combining five key strategies, including convolution factorization and a context module, EagleEye achieves a strong balance between high accuracy and low computational cost, outperforming existing methods on embedded platforms.
What Problem Does This Paper Address?
Face detection is a fundamental component in many computer vision applications, but deploying these systems on embedded devices like smartphones or IoT devices presents a significant challenge. These devices have limited computational power and memory, making it difficult to run complex, high-accuracy face detectors in real-time. Existing state-of-the-art face detectors often achieve high accuracy by employing large, computationally expensive models, which are unsuitable for embedded environments. This paper aims to bridge this gap by developing a face detector that is both efficient enough for embedded systems and accurate enough for practical use.
Methods
The authors propose a five-pronged approach to create their EagleEye face detector:
- Convolution Factorization: Traditional convolutional layers are replaced with a combination of depth-wise and point-wise convolutions. This significantly reduces the number of parameters and computations while maintaining network capacity.
- Successive Downsampling Convolutions: Instead of using pooling layers (which can lose information critical for small faces), the authors employ strided convolutions for downsampling. They strategically remove some stride-1 layers in the early stages of the network to reduce computation without sacrificing too much capacity.
- Context Module: To compensate for the reduced capacity of a lightweight network, a context module is introduced. This module uses dilated depth-wise convolutions to capture multi-scale contextual information (e.g., head-shoulder relationships) that aids in face detection.
- Information Preserving Activation Function: The standard ReLU activation function can lead to "dead neurons." To mitigate this and increase network capacity, the authors opt for PReLU (Parametric Rectified Linear Unit), which has learnable parameters and avoids the dead region issue.
- Focal Loss: To address the class imbalance problem inherent in face detection (many more background anchors than face anchors), the authors incorporate Focal Loss during training. This helps the model focus on harder-to-classify samples.
Datasets
- Wider Face: Used for training and ablation studies. This dataset is noted for its diversity in scales, poses, occlusions, and illuminations.
- FDDB (Face Detection Data Set and Benchmark): Used for evaluating runtime efficiency and comparing performance against other methods.
- PASCAL Face Dataset: Used for further comparison with state-of-the-art methods.
Key Insights and Ideas
- The trade-off is critical: Achieving real-time performance on embedded devices isn't just about making a model smaller; it's about intelligently designing the architecture to maintain accuracy while drastically reducing computational load.
- Depth-wise convolutions are a game-changer for efficiency: By decoupling spatial and channel-wise operations, depth-wise convolutions offer a significant speedup with minimal accuracy loss, especially when paired with point-wise convolutions.
- Context matters, even for lightweight models: The proposed context module demonstrates that incorporating relevant contextual information can boost accuracy without a prohibitive computational cost, especially when designed efficiently (e.g., using dilated depth-wise convolutions).
- Activation functions can impact capacity: Moving beyond standard ReLU to PReLU can subtly but effectively increase a network's ability to learn, which is crucial for lightweight models.
- Training strategies are as important as architecture: Focal loss is highlighted as a key technique for improving accuracy by better handling the inherent class imbalance in face detection datasets.
Key Results
- Runtime Efficiency: EagleEye achieves 21 FPS on a Raspberry Pi 3b+ (ARM Cortex-A53) with VGA resolution input, significantly outperforming other methods like MTCNN and Faceboxes on the same embedded device.
- Accuracy: EagleEye achieves 84.1% mAP (easy subset) on the Wider Face dataset, and 96.1% mAP on the FDDB dataset.
- Computational Cost: EagleEye has a remarkably low FLOPS count (75.3 M) compared to methods like Faceboxes (1796 M), demonstrating its efficiency.
- Memory Footprint: EagleEye has the lowest memory complexity among the compared methods, with only 0.23 M parameters and 0.952 MB model size.
- Ablation Studies: The paper shows that the combination of all five strategies leads to the best performance, with the first two strategies (convolution factorization and successive downsampling) significantly reducing FLOPS, and the latter three improving accuracy.
Limitations and Future Work
- Limitations: The paper acknowledges that while EagleEye achieves good performance, its accuracy is still slightly lower than the baseline detector before applying the accuracy-boosting strategies. The authors also note that fully exploiting EagleEye's efficiency requires proper implementation in inference libraries, particularly for depth-wise convolutions.
- Future Work: The authors suggest that further optimization of the depth-wise convolutional layer in inference frameworks could lead to even better runtime efficiency. They also implicitly suggest that their five strategies can be applied to other lightweight face detection architectures.
Summary updated