Improving the Neural Network Algorithm for Assessing the Quality of Facial Images

Nikita Lisin, Alexander Gromov, Vadim Konushin, Anton KonushinProceedings of the 30th International Conference on Computer Graphics and Machine Vision (GraphiCon 2020). Part 2 2020

Abstract

This paper considers the task of obtaining a quality assessment of facial images for usage in various video surveillance systems, video analytics, and biometric identification. The accuracy of person recognition and classification depends on the quality of the input images. We consider an approach to obtaining single face image quality assessment using a neural network model, which is trained on pairs of images that are split into two possible classes: the quality of the first image is better or worse than the quality of the second one. Two modifications of the selected baseline algorithm are proposed: a modified loss function based on face recognition system confidence and the use of image and face quality attributes during training. Experimental studies show that the accuracy of selecting the best and worst frame is increased by 1.3% and 1.9%, respectively.

Introduction

In video surveillance and biometric systems, face recognition algorithms often struggle with "in-the-wild" data where lighting, blur, and head angles vary significantly. Processing every single frame is computationally expensive and often leads to errors. To address this, systems utilize Face Quality Assessment (FQA) to filter out low-quality frames and select the optimal ones for recognition.

The challenge lies in the subjective nature of "quality." Most existing algorithms treat quality as a generic scalar value. This research argues that FQA should be directly tied to the utility of an image for a recognition engine and should explicitly understand the causes of low quality, such as occlusion or extreme poses.

Methodology

The proposed approach builds upon a baseline Siamese network architecture. The model is trained on pairs of images where one is known to be of higher quality than the other. The network learns to output a scalar quality score $Q$ such that $Q_{better} > Q_{worse}$.

Model Architecture

The backbone of the system is a lightweight ResNet-10 architecture, ensuring high performance suitable for real-time video processing.

Architecture of the proposed FQA model based on a ResNet-10 backbone.

Key Modifications

Two primary modifications were introduced to the baseline:

  1. Modified Hinge Loss: Instead of a constant margin in the ranking loss, a dynamic margin is employed based on the output of a Face Recognition (FR) system. If the FR system is highly confident that two images represent the same individual, the quality difference is weighted differently. This forces the model to prioritize features that directly impact recognition performance.
  2. Multi-task Learning: The model is trained to simultaneously predict several facial attributes alongside the quality score. This includes predicting illumination, blur, head pose (pitch, roll, and yaw), and face occlusion across 23 specific regions.
The 23 facial regions used for occlusion detection in the multi-task learning framework.

Datasets and Evaluation

Due to the scarcity of high-quality FQA datasets, a custom dataset was developed. The training set consists of 417,240 image pairs derived from 334,660 unique images. Labels for pose, occlusion, and illumination were generated using a mix of expert markup and specialized teacher models. For evaluation, a test set of 7,070 "tracks" was used, where each track contains a sequence of frames of a single person. Experts identified the best and worst frames in each track to test the model's ability to rank frames in a real-world video sequence.

Results

The combined modifications (Modified Loss + Attributes) outperformed the baseline across all metrics:

  • Best Shot Accuracy: Increased from 0.710 to 0.723 (+1.3%).
  • Worst Shot Accuracy: Increased from 0.703 to 0.722 (+1.9%).
  • Inference Speed: The model achieves a latency of 0.002 seconds per image on a single core of an Intel i5-9400 CPU, making it highly suitable for edge deployment.

The study also demonstrated that filtering out low-quality images significantly improves the True Positive Rate of face recognition systems at fixed False Acceptance Rates.

Conclusion

By shifting from aesthetic to functional quality assessment and incorporating multi-task learning for facial attributes, this research demonstrates significant improvements in FQA accuracy without sacrificing real-time performance. Future work will focus on scaling datasets and exploring the generalizability of the modified loss function across different recognition architectures.

Summary updated

BibTeX
@inproceedings{lisin2020improving,
  author = {Nikita Lisin and Alexander Gromov and Vadim Konushin and Anton Konushin},
  title = {{Improving the Neural Network Algorithm for Assessing the Quality of Facial Images}},
  booktitle = {Proceedings of the 30th International Conference on Computer Graphics and Machine Vision (GraphiCon 2020). Part 2},
  year = {2020},
  doi = {10.51130/graphicon-2020-2-3-28},
}
Figure