A face liveness detection method based on multi-view feature learning

Through the multi-view feature learning method, combined with feature extraction from different views and binary classification models, the problem of performance decline of existing face liveness detection methods after expanding attack types is solved, and the accuracy and defense capabilities of face liveness detection are improved.

CN114092994BActive Publication Date: 2024-09-24BEIJING UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111192064.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2024-09-24
Estimated Expiration
2041-10-13

Smart Images

  • Figure CN114092994B
    Figure CN114092994B
Patent Text Reader

Abstract

This invention proposes a face liveness detection method based on multi-view feature learning. It performs group-level classification from multiple perspectives, such as "real + mask" and "real + video," and trains multiple feature extraction models from different perspectives to extract discriminative detection features. These features are then fused using a binary classification model for real / fake detection classification. This invention alleviates the performance degradation of existing face liveness detection methods when expanding attack types, enhances attack defense capabilities, and thus improves the accuracy of face liveness detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of human face liveness detection and relates to a human face liveness detection method based on multi-view feature learning. Background Art

[0002] In recent years, with the widespread application of face recognition technology in financial payment, access control and unlocking and other identity authentication systems, there are more and more fake face attacks against it. Attackers can easily deceive face recognition systems by using identity recognition methods such as photo printing, video playback, and 3D masks, thus posing a serious threat to users' private property and even social public security. Face liveness detection technology is born.

[0003] However, existing methods generally regard the face liveness detection problem as a binary classification problem between real faces and forged faces. In the training phase, they only classify from the perspective of "real vs. all attack types", ignoring the differences between different attack types and their commonalities with real faces. In fact, different attack types present different forgery features, and forgery features that can well detect one attack type (features that this attack type has but real faces do not have) may not exist in another attack type. Trying to find some universal forgery features that can detect multiple attack types may only result in a compromise of features of different attack types, rather than the best choice for each attack type. On the other hand, from different perspectives, there are common features between attack types and real faces. For example, real faces and masks have depth information, while photos and videos do not; real faces and videos have dynamic information, while photos and masks do not.

[0004] Therefore, existing methods will experience significant performance degradation after expanding the attack types. For example, a model that can achieve good performance when considering only two attack types with similar forgery cues, photo and video, will experience significant performance degradation after introducing mask attacks with forgery cues that are significantly different from those of photo and video attacks. Summary of the invention

[0005] In order to solve the above problems, the present invention provides a face liveness detection method based on multi-view feature learning, which uses multiple "real + given attack type vs. other attack types" perspectives to perform group-level classification training models and extract features, and then integrate and realize the identification of real and fake faces. The present invention takes into account the differences between different attack types and their commonalities with real faces, which can alleviate the problem of reduced identification performance of existing face liveness detection methods after expanding attack types, enhance the ability to defend against attacks, and thus improve the accuracy of face liveness detection.

[0006] The specific steps of the present invention are as follows:

[0007] (1) Select and label training samples: Collect non-live face samples for training, such as photos, videos, masks, etc., and label them according to attack type; collect live face samples and label them as real face classes;

[0008] (2) Group-level classification training based on the perspective of “real + given attack type vs. other attack types”: Use real face samples and a given type of attack sample as the positive sample group, and other types of attack samples as the negative sample group, and perform group-level classification training to obtain a feature extraction model based on this “real + given attack type” perspective;

[0009] (3) Feature extraction based on multiple perspectives: Based on the group-level classification training method in step (2), multiple different perspectives are selected for training and corresponding feature extraction models are obtained to extract detection features of the corresponding perspectives;

[0010] (4) Binary classification model training: The multiple detection features based on different viewpoints obtained in step (3) are used as the input of the binary classification model, and the binary classification model is trained using real faces as positive samples and all non-living faces as negative samples;

[0011] (5) Face liveness detection based on multi-view feature learning: Take the face image to be detected, and pass it through each model obtained in step (3) to obtain multiple detection features based on different viewpoints, and then input them into the binary classification model obtained in step (4) to classify the true and false faces.

[0012] Furthermore, in step (1), the non-living face samples collected for training include three attack types: photos, videos, and masks.

[0013] Furthermore, this method includes two forms of specific model design:

[0014] 1) In step (3), only the feature extraction models of the two perspectives “real+mask” and “real+video” are selected;

[0015] 2) The following steps are added between step (2) and step (3): classification training is performed using real face samples as positive samples and all types of attack samples as negative samples to obtain a feature extraction model from the perspective of "real vs. all attack types"; in step (3), feature extraction models from the three perspectives of "real + mask", "real + video", and "real vs. all attack types" are selected.

[0016] Furthermore, the feature extraction model based on the two perspectives of "real + mask" and "real vs. all attack types" in this method adopts the CDCN model designed by Zitong Yu et al. in 2020 as the backbone network; the feature extraction model based on the "real + video" perspective adopts the 3D-CDCN model designed by Yaowen Xu et al. in 2021 as the backbone network; the binary classification model is a separately designed three-layer convolutional network with a convolution kernel size of 3*3, a stride of 1, and a padding of 1. The first two layers are each followed by a BatchNorm layer and a Relu layer, and the third layer is only followed by a Relu layer.

[0017] Furthermore, in step (5), the judgment method for face liveness detection is: take the output of the binary classification model as the score map, and the mean of all its elements as the classification score. If the score is greater than the classification threshold, the face image to be tested is determined to be a live face.

[0018] The present invention has the following advantages:

[0019] 1) A multi-view feature learning strategy is adopted, focusing on the differences between different attack types and their commonalities with real faces, avoiding the degradation of feature recognition caused by simultaneously identifying multiple attacks.

[0020] 2) The feature extraction model of two perspectives, "real + mask" and "real + video", takes into account the depth and dynamic information of real faces, describes real faces more comprehensively and meticulously, and enhances the discernment of face liveness detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of the model framework of the present invention.

[0022] Figure 2 Schematic diagram of group-level classification from multiple perspectives. DETAILED DESCRIPTION

[0023] The present invention proposes a method for face liveness detection based on multi-view feature learning. The specific implementation steps of the present invention are described below with reference to specific examples.

[0024] See also Figure 1 In this example, photos, videos, and mask attacks are selected as non-living face samples, and the two perspectives of "real + mask" and "real + video" are selected for feature extraction. The specific steps are as follows:

[0025] (1) Select and label training samples: Collect non-living face samples for training, including photos, videos, and masks, and label them according to the attack type. Collect live face samples and mark them as real face class I R; The samples taken are all image sequences with a length of eight frames.

[0026] (2) Group-level classification training based on the perspective of “real + given attack type vs. other attack types”: Take real face samples and a given type of attack samples as the positive sample group, and other types of attack samples as the negative sample group, and perform group-level classification training to obtain a feature extraction model based on the perspective of “real + given attack type”; for example, take “real + mask” as the perspective, then is a positive sample, is a negative sample; from the perspective of “real + video”, I R , is a positive sample, is a negative sample;

[0027] (3) Feature extraction model training based on multiple perspectives: Based on the group-level classification training method in step (2), the feature extraction model E of the two perspectives of “real + mask” and “real + video” is trained and obtained. rm and E rv , used to extract detection features P based on the two perspectives of “real + mask” and “real + video” rm and P rv ;

[0028] like Figure 2 As shown in Figure 2, the previous methods only use the perspective of “real vs. all attack types” for classification, while the present invention uses additional perspectives such as “real + mask” and “real + video”. rm The CDCN model designed by Zitong Yu et al. in 2020 is used as the backbone network. Its output form and supervision method are consistent with CDCN. The output of the second-to-last layer of the model is additionally taken as P rm ; E rv The 3D-CDCN model designed by Yaowen Xu et al. in 2021 is used as the backbone network. Its output form and supervision method are consistent with 3D-CDCN. The output of the penultimate layer of the model is averaged in time sequence and downsampled to the same value as P. rm The same shape as P rv That is, P rm and P rv The shape of E is 64*32*32. rm The input is the first frame of an eight-frame image sequence, E rv The input is a sequence of eight frames.

[0029] (4) Binary classification model training: The detection features P based on the two perspectives of “real + mask” and “real + video” obtained in step (3) are used. rm and P rvAs the input of the binary classification model F, and the real face class I R Positive sample, non-living face Train a binary classification model F for negative samples;

[0030] (5) Face liveness detection based on multi-view feature learning: Take a sequence of eight frames of face images to be detected and input them into the two models E obtained in step (3) respectively. rm and E rv , we get two detection features P based on different perspectives rm and P rv , and then input the binary classification model F obtained in step (4) to obtain the binary classification output P f Used for true and false face classification.

[0031] Among them, the binary classification model F is a three-layer convolution structure, the convolution kernel size is 3*3, the stride is 1, the padding is 1, the first two layers are each followed by a BatchNorm layer and a Relu layer, and the third layer is only followed by a Relu layer. f The shape of is 32*32, and the mean of all its elements is taken as the classification score. If the score is greater than the classification threshold, the face image to be tested is determined to be a living face.

[0032] Among them, the classification threshold selection method is: take the prosthetic face classification error rate (APCER) and the living face classification error rate (BPCER) described in the standard document ISO / IEC30107-3 for biometrics anti-prosthetic attacks as performance evaluation indicators, search the threshold from 0 to 1, and take the threshold when APCER and BPCER are equal in the validation set (or training set) as the classification threshold used in the test phase. This threshold is determined by the specific experimental scenario. From the analysis of experimental experience, 0.5 can be selected as the general classification threshold. Compared with the performance when the optimal threshold is selected, the classification error rate increases by less than 2%.

[0033] In order to prove the effectiveness of the present invention, experiments were conducted on a commonly used test data set, and the results showed that the present method can achieve good detection performance.

[0034] In addition to the conventional performance evaluation experiments, we conducted a set of additional comparative experiments: introducing new attack type samples into the existing method for retraining, and found that its classification performance has significantly decreased; optimizing the above method with the idea of ​​multi-view learning, without changing the model structure, only modifying the group-level classification labels, its performance degradation has been significantly alleviated. The comparative experiments show that this method can effectively alleviate the problem of the existing face liveness detection method's identification performance degradation after expanding the attack type, enhance the ability to defend against attacks, and improve the accuracy of face liveness detection.

Claims

1. A method for face liveness detection based on multi-view feature learning, characterized in that: The steps include: (1) Select and label training samples: Collect non-live face samples for training and label them according to attack type; collect live face samples and label them as real face types; (2) Group-level classification training based on the perspective of "real + given attack type vs. other attack types": Use real face samples and a given type of attack samples as the positive sample group, and other types of attack samples as the negative sample group, and perform group-level classification training to obtain a feature extraction model based on this "real + given attack type" perspective; (3) Feature extraction based on multiple perspectives: Based on the group-level classification training method in step (2), multiple different perspectives are selected for training and corresponding feature extraction models are obtained to extract detection features of the corresponding perspectives; (4) Binary classification model training: The multiple detection features based on different viewpoints obtained in step (3) are used as the input of the binary classification model, and the binary classification model is trained using real faces as positive samples and all non-living faces as negative samples; (5) Face liveness detection based on multi-view feature learning: Take the face image to be detected, and pass it through each model obtained in step (3) to obtain multiple detection features based on different viewpoints, and then input them into the binary classification model obtained in step (4) to classify the true and false faces.

2. The method for face liveness detection based on multi-view feature learning according to claim 1, characterized in that: In step (1), non-living face samples collected for training include three attack types: photos, videos, and masks.

3. The method for face liveness detection based on multi-view feature learning according to claim 1, characterized in that: In step (3), only the feature extraction models of the two perspectives "real + mask" and "real + video" are selected.

4. The method for face liveness detection based on multi-view feature learning according to claim 1, characterized in that: The following steps are added between step (2) and step (3): classification training is performed using real face samples as positive samples and all types of attack samples as negative samples to obtain a feature extraction model from the perspective of "real vs. all types of attacks"; In step (3), feature extraction models from three perspectives are selected: "Real + Mask", "Real + Video", and "Real vs. All Attack Types".

5. The method for face liveness detection based on multi-view feature learning according to claim 3, characterized in that: In step (2), the feature extraction model based on the “real + mask” perspective training uses the CDCN model as the backbone network; the feature extraction model based on the “real + video” perspective uses the 3D-CDCN model as the backbone network.

6. The method for face liveness detection based on multi-view feature learning according to claim 1, characterized in that: In step (4), the binary classification model is a separately designed three-layer convolutional network with a convolution kernel size of 3*3, a stride of 1, and a padding of 1. The first two layers are each followed by a BatchNorm layer and a Relu layer, and the third layer is followed by only a Relu layer.

7. The method for face liveness detection based on multi-view feature learning according to claim 1, characterized in that: In step (5), the judgment method for face liveness detection is: take the output of the binary classification model as the score map, and the mean of all its elements as the classification score. If the score is greater than the classification threshold, 0.5 is selected as the classification threshold, and the face image to be tested is judged to be a live face.

8. The method for face liveness detection based on multi-view feature learning according to claim 4, characterized in that: In step (2), the feature extraction model trained based on the "real vs. all attack types" perspective uses the CDCN model as the backbone network.