Face Recognition Based on MTCNN and Convolutional Neural Network

Hongchang Ku, Dong WeiFrontiers in Signal Processing 2019

Abstract

MTCNN is a face detection method based on deep learning, which is more robust to light, angle and facial expression changes in natural environment, and has better face detection effect. At the same time, the memory consumption is small, and real-time face detection can be realized. Therefore, a method based on MTCNN and improved convolution neural network is proposed in this paper. Firstly, MTCNN is used to detect and align faces. Then, the output image is used as the input data of the improved convolution network, and multi-level convolution training is carried out. Finally, the accuracy of the model is tested.

Introduction

In real-world "unrestricted" environments, face recognition remains a significant challenge due to variations in lighting, facial expressions, and camera angles. While traditional neural networks struggle with high intra-class variation and inter-class similarity, high-performance models like FaceNet often demand substantial computational resources. This paper introduces a streamlined pipeline that pairs Multi-task Cascaded Convolutional Networks (MTCNN) for robust detection with an optimized VGGNet for efficient recognition. The resulting system achieves a high accuracy of 98.53% on the LFW benchmark with a remarkably low inference speed of just 6ms.

Proposed Methodology

The proposed approach follows a two-stage pipeline: detection/alignment followed by feature extraction/recognition.

1. Detection and Alignment (MTCNN)

The MTCNN framework employs three cascaded stages to ensure high-quality face detection:

  • P-Net (Proposal Network): Rapidly generates candidate windows.
  • R-Net (Refine Network): Filters candidate windows to reduce false positives.
  • O-Net (Output Network): Finalizes the bounding box and identifies five key facial landmarks (eyes, nose, and mouth corners) for precise alignment.

2. Feature Extraction (Improved CNN)

The recognition backbone is an optimized version of the VGGNet architecture. Key modifications include:

  • Architecture Optimization: Replacing the standard final max-pooling layer with a 7x7 average (mean) pooling layer. This change significantly reduces the parameter count and memory footprint while preserving critical semantic features.
  • Hybrid Loss Function: To improve discriminative power, the authors combine SoftMax Loss with Center Loss. While SoftMax ensures class separation, Center Loss minimizes intra-class variance by pulling features toward a learned class center, creating more compact and distinguishable clusters.
Architecture of the improved convolutional neural network featuring average pooling and hybrid loss.

Experimental Results

The model was trained on the CASIA-WebFace dataset (~500,000 images) and evaluated on the Labeled Faces in the Wild (LFW) dataset, which represents challenging real-world conditions.

The proposed method demonstrates a superior balance between accuracy and computational efficiency compared to established benchmarks.

Performance comparison of the proposed method against DeepFace, FaceNet, and DeepID2+.

As shown in the table above, the method achieves an accuracy of 98.53%, outperforming DeepFace (97.35%). Crucially, it delivers an inference speed of 6ms, which is significantly faster than FaceNet (30ms) and DeepID2+ (35ms). By utilizing a single network instead of a complex ensemble, the system remains lean and highly suitable for real-time deployment.

Conclusion

By integrating MTCNN with an optimized CNN architecture utilizing mean pooling and a hybrid loss function, this research provides a highly efficient solution for face recognition in unrestricted environments. While a slight accuracy gap remains compared to the most resource-intensive models, the significant gains in speed and reduced complexity make this approach ideal for practical, real-time applications. Future work will explore further refinements to the loss function and even more efficient backbones to push the boundaries of speed and precision.

Summary updated

BibTeX
@inproceedings{ku2019face,
  author = {Hongchang Ku and Dong Wei},
  title = {{Face Recognition Based on MTCNN and Convolutional Neural Network}},
  booktitle = {Frontiers in Signal Processing},
  year = {2019},
  doi = {10.22606/fsp.2020.41006},
}
Figure