3D face anti-counterfeiting system and method based on deep learning

Through the 3D face anti-counterfeiting system based on deep learning, the face shape and texture features are extracted and fused, solving the problem of the face recognition system distinguishing real faces and 3D printed face models, improving the system's anti-counterfeiting capabilities and preventing identity forgery .

CN118366207BActive Publication Date: 2024-09-10HANGZHOU MINGGUANG MICROELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410799074.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-10
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

It is difficult for existing face recognition systems to distinguish between real faces and 3D printed face models, which poses security threats. How to improve the anti-counterfeiting capabilities of face recognition systems.

Method used

A 3D face anti-counterfeiting system based on deep learning is used to collect 3D face images through a depth camera, extract face shape features and texture features, and determine whether the image belongs to a real face or a 3D printed face model based on multi-scale features after fusion.

Benefits of technology

It achieves the distinction between real faces and 3D printed face models, improves the anti-counterfeiting capabilities of the face recognition system and prevents identity forgery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366207B
    Figure CN118366207B
Patent Text Reader

Abstract

Disclosed is a 3D face anti-counterfeiting system and method based on deep learning. First, a 3D face image of an object to be verified is acquired by a depth camera, then the face shape features and face texture features of the 3D face image are extracted, then the face shape features and the face texture features are fused to obtain face multi-scale features, and finally, based on the face multi-scale features, it is determined whether the 3D face image belongs to a real face or a 3D printed face model. In this way, the real face and the 3D printed face model can be distinguished.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of face anti-counterfeiting, and more specifically, to a 3D face anti-counterfeiting system and method based on deep learning. Background Art

[0002] Face recognition is a biometric-based identity authentication technology that is convenient, fast, and accurate. It is widely used in finance, security, transportation, and other fields. However, with the development of 3D printing technology, face recognition systems are facing more and more security threats. Malicious attackers can use 3D printing technology to create highly realistic face models to deceive face recognition systems, thereby obtaining improper benefits or causing serious losses.

[0003] Therefore, how to effectively distinguish between real faces and 3D printed face models and improve the anti-counterfeiting ability of face recognition systems is an important issue that needs to be solved urgently. Summary of the invention

[0004] In view of this, the present application proposes a 3D face anti-counterfeiting system and method based on deep learning, which can distinguish between real faces and 3D printed face models.

[0005] According to one aspect of the present application, a 3D face anti-counterfeiting method based on deep learning is provided, which includes: obtaining a 3D face image of an object to be verified acquired by a depth camera; extracting face shape features and face texture features of the 3D face image; fusing the face shape features and the face texture features to obtain face multi-scale features; and determining, based on the face multi-scale features, that the 3D face image belongs to a real face or a 3D printed face model.

[0006] According to another aspect of the present application, a 3D face anti-counterfeiting system based on deep learning is provided, which includes: a 3D face image acquisition module, used to obtain a 3D face image of an object to be verified acquired by a depth camera; a feature extraction module, used to extract face shape features and face texture features of the 3D face image; a feature fusion module, used to fuse the face shape features and the face texture features to obtain multi-scale face features; and an image analysis module, used to determine, based on the multi-scale face features, that the 3D face image belongs to a real face or a 3D printed face model.

[0007] According to the embodiment of the present application, it first obtains a 3D face image of the object to be verified collected by a depth camera, then extracts the face shape features and face texture features of the 3D face image, then fuses the face shape features and the face texture features to obtain face multi-scale features, and finally, based on the face multi-scale features, determines whether the 3D face image belongs to a real face or a 3D printed face model. In this way, the distinction between a real face and a 3D printed face model can be achieved.

[0008] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.

[0010] Figure 1 A flowchart of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application is shown.

[0011] Figure 2 A schematic diagram of the architecture of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application is shown.

[0012] Figure 3 A flowchart of sub-step S120 of the deep learning-based 3D face anti-counterfeiting method according to an embodiment of the present application is shown.

[0013] Figure 4 A flowchart of sub-step S130 of the deep learning-based 3D face anti-counterfeiting method according to an embodiment of the present application is shown.

[0014] Figure 5 A flowchart of sub-step S140 of the deep learning-based 3D face anti-counterfeiting method according to an embodiment of the present application is shown.

[0015] Figure 6 A block diagram of a 3D face anti-counterfeiting system based on deep learning according to an embodiment of the present application is shown.

[0016] Figure 7 A diagram showing an application scenario of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application.

[0017] Figure 8 A schematic diagram of the face recognition process is shown. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.

[0019] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0020] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0021] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

[0022] In response to the above technical problems, the technical concept of this application is to combine artificial intelligence technology based on deep learning to capture shape features and texture features from 3D face images, thereby realizing the anti-counterfeiting function of the face recognition system. It should be understood that 3D printing technology is difficult to completely replicate the subtle changes and skin texture of real faces. Specifically, real faces have abundant subtle changes, such as wrinkles, moles, scars, hair, etc. These subtle changes are caused by factors such as genetics, environment and individual differences, and are difficult to completely replicate through 3D printing technology. Even if 3D printing technology can achieve fine three-dimensional modeling, it is difficult to accurately reproduce these details on a face model. In addition, the skin texture of a real face is unique and complex, including wrinkles, lines, pores, etc. This texture is formed during the growth and development of the human body and is produced by the combined action of multiple physiological and environmental factors. It is difficult for 3D printing technology to completely simulate these subtle textures because the surface of the printed model is often relatively smooth and cannot accurately reproduce the skin texture characteristics of a real face. In other words, although 3D printing technology can produce realistic face models in appearance, the delicate features and textures are still difficult to replicate. This provides some possibility for facial recognition systems to distinguish between real faces and 3D printed face models.

[0023] Based on this, Figure 1 A flowchart of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application is shown. Figure 2 FIG. 1 is a schematic diagram showing the architecture of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the deep learning-based 3D face anti-counterfeiting method of the embodiment of the present application, the steps include: S110, obtaining a 3D face image of an object to be verified acquired by a depth camera; S120, extracting face shape features and face texture features of the 3D face image; S130, fusing the face shape features and the face texture features to obtain multi-scale face features; and, S140, determining, based on the multi-scale face features, that the 3D face image belongs to a real face or a 3D printed face model.

[0024] Specifically, in the technical solution of the present application, first, a 3D face image of the object to be verified collected by a depth camera is obtained; then, the 3D face image is passed through a face shape feature extractor based on a 3D convolutional neural network model to obtain a face shape feature map; at the same time, the 3D face image is passed through a face texture feature extractor based on a 3D convolutional neural network model to obtain a face texture feature map. Among them, the 3D convolutional neural network model can effectively extract the shape and texture features of the 3D face image, which can use the 3D spatial information to capture the surface details in the face image.

[0025] Accordingly, if Figure 3As shown, extracting the face shape features and face texture features of the 3D face image includes: S121, passing the 3D face image through a face shape feature extractor based on a three-dimensional convolutional neural network model to obtain a face shape feature map; S122, using the face shape feature map as the face shape feature; S123, passing the 3D face image through a face texture feature extractor based on a three-dimensional convolutional neural network model to obtain a face texture feature map; and, S124, using the face texture feature map as the face texture feature. It should be understood that in step S121, the 3D face image is processed using a model based on a three-dimensional convolutional neural network to extract the face shape features, which may include the position, shape and size information of the face contour, eyes, nose, mouth and other parts. In step S122, the extracted face shape feature map is used as the final face shape features, which can be used for face recognition to help identify and analyze the shape information of the face. In step S123, the 3D face image is processed using a model based on a three-dimensional convolutional neural network to extract the texture features of the face. These texture features may include information such as skin color, texture, spots, etc., and can be used for tasks such as face recognition, facial expression analysis, and age estimation. In step S124, the extracted facial texture feature map is used as the final facial texture feature. These texture features can be used for face recognition to help identify and analyze the texture information of the face. In summary, through the above steps, the shape features and texture features of the face can be extracted from the 3D face image, and these features can be used in a variety of application scenarios such as face recognition, expression analysis, and age estimation.

[0026] Among them, in step S121, the 3D face image is passed through a face shape feature extractor based on a three-dimensional convolutional neural network model to obtain a face shape feature map, including: each layer of the face shape feature extractor based on the three-dimensional convolutional neural network model performs three-dimensional convolution processing, pooling processing and non-linear activation processing based on a three-dimensional convolution kernel on the input data in the forward pass of the layer to output the face shape feature map by the last layer of the face shape feature extractor based on the three-dimensional convolutional neural network model.

[0027] It is worth mentioning that the 3D Convolutional Neural Network is a deep learning model for processing 3D data. 3D Convolutional Neural Network extracts features by performing convolution operations in three dimensions (width, height, and depth). Similar to 2D convolution, 3D convolution operations use filters (also called convolution kernels) to perform local perception at different locations of the input data and generate feature maps. In this way, the network can automatically learn feature representations in 3D space to better capture the spatial and temporal characteristics of the data. 3D Convolutional Neural Networks are usually composed of multiple convolutional layers, pooling layers, and fully connected layers. During the forward pass, the input data is extracted through the convolutional layer, and the convolutional layer uses a 3D convolution kernel to perform convolution operations on the input data to extract local features. Next, the feature map is downsampled through the pooling layer to reduce the number of parameters and retain important features. Finally, the features are mapped to the final output through the fully connected layer. In the face shape feature extractor based on 3D convolutional neural network, the network model is designed to extract the shape features of the face from 3D face images. By performing three-dimensional convolution, pooling, and nonlinear activation processing in the forward pass of each layer, a face shape feature map is finally obtained to characterize the shape information of the face. Such a network structure can effectively learn and extract the shape features of the face, providing useful feature representation for subsequent face anti-counterfeiting tasks.

[0028] Next, the face shape feature map and the face texture feature map are fused to obtain a face multi-scale feature map. That is, the face shape features and face texture features are comprehensively utilized to reflect the different attributes and characteristics of the face image, so that the face multi-scale feature map obtained after fusion has a more outstanding feature expression ability.

[0029] Accordingly, if Figure 4As shown, the face shape feature and the face texture feature are fused to obtain the face multi-scale feature, including: S131, fusion of the face shape feature map and the face texture feature map to obtain the face multi-scale feature map; and, S132, using the face multi-scale feature map as the face multi-scale feature. It should be understood that in step S131, fusion of the face shape feature map and the face texture feature map to obtain the face multi-scale feature map plays an important role in the 3D face anti-counterfeiting method based on deep learning, and its main uses are as follows: 1. Comprehensive shape and texture information: The face shape feature map contains shape information such as the contour and key point position of the face, while the face texture feature map contains texture information such as skin color and texture details. By fusing these two feature maps, shape and texture information can be comprehensively utilized to more comprehensively describe and characterize the features of the face. 2. Improve the ability to distinguish features: Shape and texture features play an important role in tasks such as face recognition and authenticity verification. By fusing these two feature maps, the discriminative features of shape and texture can be combined to improve the discriminative ability of features. This helps to enhance the ability of face recognition systems to distinguish between real faces and forgeries such as 3D printed face models. 3. Multi-scale feature representation: Fusion of face shape feature map and face texture feature map can obtain a multi-scale feature map of the face, which contains feature information at different scales. Multi-scale feature representation can provide richer feature information and capture details and contextual relationships at different scales. This is beneficial for tasks such as face recognition and expression analysis, and can improve the accuracy and robustness of the system for faces. By fusing face shape feature map and face texture feature map, shape and texture information can be comprehensively utilized, and multi-scale feature representation can be provided. Such feature representation plays an important role in face recognition, authenticity verification and other face-related tasks, and can improve the performance and robustness of the system.

[0030] Further, the multi-scale feature map of the face is passed through a channel attention layer to obtain a channel-explicit face multi-scale feature map. Here, the channel attention layer can make important channel features explicit and suppress redundant channel features. That is, make full use of different channel features to strengthen the distribution of important facial features. Then, the channel-explicit face multi-scale feature map is passed through a classifier to obtain a classification result, and the classification result is used to indicate that the 3D face image belongs to a real face or a 3D printed face model.

[0031] Accordingly, if Figure 5As shown, based on the multi-scale features of the face, determining that the 3D face image belongs to a real face or a 3D printed face model includes: S141, passing the multi-scale feature map of the face through a channel attention layer to obtain a channel-manifested multi-scale feature map of the face; and, S142, passing the channel-manifested multi-scale feature map of the face through a classifier to obtain a classification result, the classification result is used to indicate that the 3D face image belongs to a real face or a 3D printed face model. It should be understood that in step S141, the multi-scale feature map of the face is processed using the channel attention layer to highlight important feature channels. The channel attention layer can weight the features of different channels according to the importance of each channel, thereby improving the perception of key features. Through the processing of the channel attention layer, a channel-manifested multi-scale feature map of the face can be obtained, in which important feature channels are enhanced, which is helpful for subsequent classification tasks. In step S142, a classifier is used to classify the channel-manifested multi-scale feature map of the face to determine whether the 3D face image belongs to a real face or a 3D printed face model. The classifier can classify and judge the image based on the feature pattern and statistical information in the feature map. The classification result can represent the authenticity of the 3D face image, that is, to determine whether the image is collected by a real face or generated by a 3D printed face model. In summary, through the above steps, the multi-scale features of the face and the channel attention layer can be used to classify the 3D face image to determine whether it belongs to a real face or a 3D printed face model. This helps to improve the robustness of the face recognition system and prevent identity forgery using deceptive means such as 3D printed face models.

[0032] It is worth mentioning that the channel attention layer is a mechanism used to enhance the importance of feature channels in deep learning models. It is mainly used to adaptively learn the weight of each channel to highlight important feature channels and suppress unimportant feature channels. The channel attention layer usually consists of the following steps: 1. Feature mapping: First, the input feature map is mapped through a convolution operation to transform the channel dimension into a lower dimension to reduce the amount of calculation. 2. Feature statistics: The mapped feature map is statistically analyzed to calculate the statistical features of each channel, such as the average or maximum value. These statistical features are used to measure the importance of each channel. 3. Channel weight calculation: Using statistical features, the weight of each channel is calculated through a series of fully connected layers or convolutional layers. These weights represent the contribution of each channel to the final feature. 4. Feature weighting: The calculated channel weight is applied to the original feature map, and the weighted feature map is obtained by weighted summing the features of each channel. The role of the channel attention layer is to enable the network to automatically focus on the feature channels that are more important to the current task by learning the weight of each channel, thereby improving the performance and generalization ability of the model. In image processing tasks, channel attention layers are often used to enhance the feature representation capabilities of images and extract more discriminative and important features.

[0033] Among them, in step S141, the multi-scale feature map of the face is passed through a channel attention layer to obtain a channel-explicit multi-scale feature map of the face, including: using the channel attention layer to perform explicit spatial encoding on the multi-scale feature map of the face to obtain a multi-scale associated feature map of the face; calculating the global mean of each feature matrix along the channel dimension of the multi-scale associated feature map of the face to obtain a channel feature vector; inputting the channel feature vector into a Sigmoid activation function to obtain a channel attention weighted feature vector; based on the autocovariance matrix of the channel attention weighted feature vector, correcting the eigenvalues ​​of each position in the channel attention weighted feature vector to obtain an optimized channel attention weighted feature vector; and, using the eigenvalues ​​of each position in the optimized channel attention weighted feature vector as weights to weight each feature matrix along the channel dimension of the multi-scale associated feature map of the face to obtain the channel-explicit multi-scale feature map of the face.

[0034] Among them, in step S142, the channel-manifested face multi-scale feature map is passed through a classifier to obtain a classification result, and the classification result is used to indicate that the 3D face image belongs to a real face or a 3D printed face model, including: expanding the channel-manifested face multi-scale feature map into a classification feature vector according to a row vector or a column vector; using the fully connected layer of the classifier to fully connect encode the classification feature vector to obtain an encoded classification feature vector; and inputting the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.

[0035] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression, SVM, etc. are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification, but this is prone to errors and inefficient. Commonly used multi-classification methods include the Softmax classification function.

[0036] Further, in the technical solution of the present application, the 3D face anti-counterfeiting method based on deep learning also includes a training step: training the face shape feature extractor based on the three-dimensional convolutional neural network model, the face texture feature extractor based on the three-dimensional convolutional neural network model, the channel attention layer and the classifier. It should be understood that the training step plays a key role in the 3D face anti-counterfeiting method based on deep learning, and its main uses are as follows: 1. Training face shape feature extractor: By training the face shape feature extractor based on the three-dimensional convolutional neural network model, the model can learn to extract accurate and discriminative shape features from the 3D face image. These shape features may include information such as the contour of the face, the position of key points, and the geometric structure, which are used to characterize the shape of the face. 2. Training face texture feature extractor: By training the face texture feature extractor based on the three-dimensional convolutional neural network model, the model can learn to extract accurate and discriminative texture features from the 3D face image. These texture features may include skin color, texture details, lighting information, etc., which are used to characterize the texture of the face. 3. Train the channel attention layer: By training the channel attention layer, the model can learn to adaptively adjust the weight of each feature channel to highlight important feature channels. This helps improve the model's perception of key features, thereby improving the accuracy of classification tasks. 4. Train the classifier: By training the classifier, the model can learn to distinguish the channel-manifested feature map from real faces and 3D printed face models. The classifier can make classification judgments based on the feature patterns and statistical information in the feature map to determine the authenticity of the 3D face image. Through the training steps, the model can learn to extract discriminative shape and texture features from 3D face images and make classification judgments through channel attention and classifiers. In this way, the model is able to verify the authenticity of 3D face images, thereby improving the robustness of the face recognition system and preventing identity forgery using deceptive means such as 3D printed face models.

[0037] In one example, the training step includes: obtaining training data, the training data including a training 3D face image of the object to be verified acquired by a depth camera, and the training 3D face image is a real value of a real face or a 3D printed face model; passing the training 3D face image through the face shape feature extractor based on the three-dimensional convolutional neural network model to obtain a training face shape feature map; passing the training 3D face image through the face texture feature extractor based on the three-dimensional convolutional neural network model to obtain a training face texture feature map; fusing the training face shape feature map and the training face texture feature map To obtain a multi-scale feature map of a training face; pass the multi-scale feature map of the training face through the channel attention layer to obtain a multi-scale feature map of a training channel explicit face; optimize the multi-scale feature map of the training channel explicit face to obtain an optimized multi-scale feature map of the training channel explicit face; pass the optimized multi-scale feature map of the training channel explicit face through a classifier to obtain a classification loss function value; and, train the face shape feature extractor based on the three-dimensional convolutional neural network model, the face texture feature extractor based on the three-dimensional convolutional neural network model, the channel attention layer and the classifier with the classification loss function value.

[0038] In the technical solution of the present application, each feature matrix of the training face multi-scale feature map expresses the three-dimensional face shape and face texture image semantic features of the training 3D face image respectively, and each feature matrix follows the channel distribution of the three-dimensional convolutional neural network model, so that after passing through the channel attention layer, the overall spatial distribution of the image semantic features under the local channel dimension can be further strengthened, thereby strengthening the expression effect of the training channel explicit face multi-scale feature map. However, at the same time, the training channel explicit face multi-scale feature map as a whole may have an imbalanced channel association expression based on three-dimensional feature extraction for the three-dimensional face shape and face texture image semantic features of the training 3D face image, and the present application further finds that this imbalance is largely related to the feature expression scale, that is, the image semantic association feature expression scale on the spatial dimension of the feature matrix, and the channel feature association scale on the channel dimension between each feature matrix. For example, it can be understood that relative to the predetermined image semantic spatial distribution scale and channel association distribution scale, the more unbalanced the distribution of the feature value in the corresponding dimension is relative to the corresponding scale distribution, the more unbalanced the overall expression of the feature map is. In this way, when the multi-scale feature map of the face manifested by the training channel passes through the classifier, the image semantic distribution knowledge will also be offset relative to the semantic distribution of the source image, thereby causing uncertainty in the distribution of its image semantic features relative to the class probability understanding of the classifier, reducing the speed of classification training and the accuracy of classification results. Based on this, the present application optimizes the multi-scale feature map of the face manifested by the training channel when passing the multi-scale feature map of the face manifested by the training channel through the classifier for classification training.

[0039] Specifically, the multi-scale feature map of the explicit face of the training channel is optimized to obtain an optimized multi-scale feature map of the explicit face of the training channel, including the steps of: determining the class probability value obtained by the classifier of the multi-scale feature map of the explicit face of the training channel, and subtracting the class probability value from one to obtain an inverse class probability value; calculating each eigenvalue of the multi-scale feature map of the explicit face of the training channel as a power function with the class probability value as an exponent, and dot-multiplying it with the class probability value and the inverse class probability value to obtain a first intermediate feature map and a second intermediate feature map; calculating each eigenvalue of the multi-scale feature map of the explicit face of the training channel as a power function with the inverse class probability value as an exponent, and dot-multiplying it with the class probability value to obtain a third intermediate feature map; after dot-multiplying the second intermediate feature map with the third intermediate feature map, further dot-adding it with the first intermediate feature map to obtain an optimized multi-scale feature map of the explicit face of the training channel.

[0040] Based on this, when the multi-scale feature map of the explicit face of the training channel is classified through a classifier, in order to achieve unsupervised domain adaptation of the feature distribution domain of the multi-scale feature map of the explicit face of the training channel to the probability distribution domain of the classification probability, the class probability value and the inverse class probability value obtained by the multi-scale feature map of the explicit face of the training channel through the classifier are used as domain proxies, and the moving average of the probability distribution of the multi-scale feature map of the explicit face of the training channel is performed through the interaction of the class distribution of the power function as an exponent, and the knowledge transfer from the unlabeled classification features to the labeled probability distribution is achieved by superimposing the feature domain probability distribution knowledge of the multi-scale feature map of the explicit face of the training channel itself, thereby promoting the classification operation of the multi-scale feature map of the explicit face of the training channel through the classifier, that is, improving the speed of classification training and the accuracy of classification results.

[0041] In summary, the deep learning-based 3D face anti-counterfeiting method according to the embodiment of the present application can distinguish between real faces and 3D printed face models.

[0042] Figure 6 FIG. 1 is a block diagram of a 3D face anti-counterfeiting system 100 based on deep learning according to an embodiment of the present application. Figure 6 As shown, according to the deep learning-based 3D face anti-counterfeiting system 100 according to the embodiment of the present application, it includes: a 3D face image acquisition module 110, used to obtain a 3D face image of an object to be verified acquired by a depth camera; a feature extraction module 120, used to extract face shape features and face texture features of the 3D face image; a feature fusion module 130, used to fuse the face shape features and the face texture features to obtain multi-scale face features; and, an image analysis module 140, used to determine whether the 3D face image belongs to a real face or a 3D printed face model based on the multi-scale face features.

[0043] In one possible implementation, the feature extraction module 120 includes: a face shape feature extraction unit, used to pass the 3D face image through a face shape feature extractor based on a three-dimensional convolutional neural network model to obtain a face shape feature map; a face shape feature acquisition unit, used to use the face shape feature map as the face shape feature; a face texture feature extraction unit, used to pass the 3D face image through a face texture feature extractor based on a three-dimensional convolutional neural network model to obtain a face texture feature map; and a face texture feature acquisition unit, used to use the face texture feature map as the face texture feature.

[0044] In one possible implementation, the facial shape feature extraction unit is used to: perform three-dimensional convolution processing, pooling processing and nonlinear activation processing based on a three-dimensional convolution kernel on the input data in the forward pass of each layer of the facial shape feature extractor based on the three-dimensional convolutional neural network model, so as to output the facial shape feature map by the last layer of the facial shape feature extractor based on the three-dimensional convolutional neural network model.

[0045] Here, those skilled in the art can understand that the specific functions and operations of each unit and module in the above-mentioned deep learning-based 3D face anti-counterfeiting system 100 have been referred to above. Figures 1 to 5 The description of the deep learning-based 3D face anti-counterfeiting method has been introduced in detail, and therefore, its repeated description will be omitted.

[0046] As described above, the 3D face anti-counterfeiting system 100 based on deep learning according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a 3D face anti-counterfeiting algorithm based on deep learning. In one possible implementation, the 3D face anti-counterfeiting system 100 based on deep learning according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the 3D face anti-counterfeiting system 100 based on deep learning can be a software module in the operating system of the wireless terminal, or it can be an application developed for the wireless terminal; of course, the 3D face anti-counterfeiting system 100 based on deep learning can also be one of the many hardware modules of the wireless terminal.

[0047] Alternatively, in another example, the deep learning-based 3D face anti-counterfeiting system 100 and the wireless terminal may also be separate devices, and the deep learning-based 3D face anti-counterfeiting system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0048] Figure 7 FIG. 1 shows an application scenario diagram of a 3D face anti-counterfeiting method based on deep learning according to an embodiment of the present application. Figure 7 As shown, in this application scenario, first, the depth camera (for example, Figure 7 C) shown in the figure, a 3D face image of the object to be verified (for example, Figure 7 Then, the 3D face image is input into a server that is deployed with a 3D face anti-counterfeiting algorithm based on deep learning (for example, Figure 7S), wherein the server is capable of using the deep learning-based 3D face anti-counterfeiting algorithm to process the 3D face image to obtain a classification result indicating that the 3D face image belongs to a real face or a 3D printed face model.

[0049] Furthermore, the depth camera described in this application is suitable for face recognition, which can use an infrared camera with a wavelength of 850nm, with a vertical FOV of 70º and a horizontal FOV of 51º. Accordingly, the average power consumption is 1W at 5V, the average current is 200mA, the recognition speed is 0.5s, and the total time from powering on the depth camera to completing the recognition is about 1.3s (including the initialization time of each AI module algorithm), the recognition distance is about 0.4M-1.1M, the preferred distance is 0.5M-0.6M, and the maximum recognition height range is 1.2M-2.2M at a distance of 1 meter.

[0050] Further, Figure 8 The figure shows the process flow of face recognition. The face needs to complete the sensor configuration first, and the appropriate exposure can be adjusted to see a clear face image. Then, based on the clear face image, run the face algorithm library, first detect the image, get the number of faces in the image and the rectangular coordinates of each face, in order to facilitate the distinction, the face closer to the sensor is currently used as the basis for recognition, and the face quality judgment and liveness judgment are completed after the current face key points are extracted. Then, the key feature value information of the face is extracted, and this information can be saved for comparison with the information extracted each time the face is recognized. If it is higher than a certain threshold, it is considered to be the same face.

[0051] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can also be executed in the opposite order sometimes, depending on the function involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs the function or action of the specification, or can be realized by a combination of special-purpose hardware and computer instructions.

[0052] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A 3D face anti-counterfeiting method based on deep learning, characterized in that: include: Acquire a 3D face image of the object to be verified captured by a depth camera; extract face shape features and face texture features of the 3D face image; fusing the face shape feature and the face texture feature to obtain a face multi-scale feature; and determining, based on the face multi-scale feature, that the 3D face image belongs to a real face or a 3D printed face model; Among them, it also includes a training step: training a face shape feature extractor based on a three-dimensional convolutional neural network model, a face texture feature extractor based on a three-dimensional convolutional neural network model, a channel attention layer and a classifier; wherein the training step includes: obtaining training data, the training data including a training 3D face image of the object to be verified acquired by a depth camera, and the training 3D face image belongs to a real face or a real value of a 3D printed face model; passing the training 3D face image through the face shape feature extractor based on the three-dimensional convolutional neural network model to obtain a training face shape feature map; passing the training 3D face image through the face texture feature extractor based on the three-dimensional convolutional neural network model to obtain a training training face texture feature map; fusing the training face shape feature map and the training face texture feature map to obtain a training face multi-scale feature map; passing the training face multi-scale feature map through the channel attention layer to obtain a training channel explicit face multi-scale feature map; optimizing the training channel explicit face multi-scale feature map to obtain an optimized training channel explicit face multi-scale feature map; passing the optimized training channel explicit face multi-scale feature map through a classifier to obtain a classification loss function value; and training the face shape feature extractor based on the three-dimensional convolutional neural network model, the face texture feature extractor based on the three-dimensional convolutional neural network model, the channel attention layer and the classifier with the classification loss function value; Among them, the multi-scale feature map of the explicit face of the training channel is optimized to obtain an optimized multi-scale feature map of the explicit face of the training channel, including the steps of: determining the class probability value obtained by the multi-scale feature map of the explicit face of the training channel through the classifier, and subtracting the class probability value from one to obtain an inverse class probability value; calculating each eigenvalue of the multi-scale feature map of the explicit face of the training channel as a power function with the class probability value as an exponent, and dot-multiplying it with the class probability value and the inverse class probability value respectively to obtain a first intermediate feature map and a second intermediate feature map; calculating each eigenvalue of the multi-scale feature map of the explicit face of the training channel as a power function with the inverse class probability value as an exponent, and dot-multiplying it with the class probability value to obtain a third intermediate feature map; after dot-multiplying the second intermediate feature map with the third intermediate feature map, further dot-adding it with the first intermediate feature map to obtain an optimized multi-scale feature map of the explicit face of the training channel.

2. The 3D face anti-counterfeiting method based on deep learning according to claim 1, characterized in that: Extracting facial shape features and facial texture features of the 3D facial image, including: passing the 3D facial image through a facial shape feature extractor based on a three-dimensional convolutional neural network model to obtain a facial shape feature map; using the facial shape feature map as the facial shape feature; passing the 3D facial image through a facial texture feature extractor based on a three-dimensional convolutional neural network model to obtain a facial texture feature map; and using the facial texture feature map as the facial texture feature.

3. The 3D face anti-counterfeiting method based on deep learning according to claim 2, characterized in that: The 3D face image is passed through a face shape feature extractor based on a three-dimensional convolutional neural network model to obtain a face shape feature map, including: performing three-dimensional convolution processing based on a three-dimensional convolution kernel, pooling processing and non-linear activation processing on input data in the forward transmission of each layer of the face shape feature extractor based on the three-dimensional convolutional neural network model, so that the face shape feature map is output by the last layer of the face shape feature extractor based on the three-dimensional convolutional neural network model.

4. The 3D face anti-counterfeiting method based on deep learning according to claim 3 is characterized in that: The face shape feature and the face texture feature are fused to obtain a face multi-scale feature, comprising: fusing the face shape feature map and the face texture feature map to obtain a face multi-scale feature map; and using the face multi-scale feature map as the face multi-scale feature.

5. The 3D face anti-counterfeiting method based on deep learning according to claim 4, characterized in that: Based on the multi-scale features of the face, determining that the 3D face image belongs to a real face or a 3D printed face model includes: passing the multi-scale feature map of the face through a channel attention layer to obtain a channel-manifested face multi-scale feature map; and passing the channel-manifested face multi-scale feature map through a classifier to obtain a classification result, wherein the classification result is used to indicate that the 3D face image belongs to a real face or a 3D printed face model.

6. The 3D face anti-counterfeiting method based on deep learning according to claim 5, characterized in that: The multi-scale feature map of the face is passed through a channel attention layer to obtain a channel-explicit multi-scale feature map of the face, including: using the channel attention layer to perform explicit spatial encoding on the multi-scale feature map of the face to obtain a multi-scale associated feature map of the face; calculating the global mean of each feature matrix along the channel dimension of the multi-scale associated feature map of the face to obtain a channel feature vector; inputting the channel feature vector into a Sigmoid activation function to obtain a channel attention weighted feature vector; based on the autocovariance matrix of the channel attention weighted feature vector, correcting the eigenvalues ​​of each position in the channel attention weighted feature vector to obtain an optimized channel attention weighted feature vector; and using the eigenvalues ​​of each position in the optimized channel attention weighted feature vector as weights to weight each feature matrix along the channel dimension of the multi-scale associated feature map of the face to obtain the channel-explicit multi-scale feature map of the face.

7. A 3D face anti-counterfeiting system based on deep learning according to the 3D face anti-counterfeiting method based on deep learning according to any one of claims 1 to 6, characterized in that: include: A 3D face image acquisition module is used to acquire a 3D face image of the object to be verified acquired by a depth camera; A feature extraction module, used to extract face shape features and face texture features of the 3D face image; A feature fusion module, used for fusing the face shape feature and the face texture feature to obtain a face multi-scale feature; and an image analysis module, for determining, based on the multi-scale features of the face, whether the 3D face image belongs to a real face or a 3D printed face model.

8. The 3D face anti-counterfeiting system based on deep learning according to claim 7, characterized in that: The feature extraction module includes: a face shape feature extraction unit, used to pass the 3D face image through a face shape feature extractor based on a three-dimensional convolutional neural network model to obtain a face shape feature map; a face shape feature acquisition unit, used to use the face shape feature map as the face shape feature; a face texture feature extraction unit, used to pass the 3D face image through a face texture feature extractor based on a three-dimensional convolutional neural network model to obtain a face texture feature map; and a face texture feature acquisition unit, used to use the face texture feature map as the face texture feature.

9. The 3D face anti-counterfeiting system based on deep learning according to claim 8, characterized in that: The facial shape feature extraction unit is used to: perform three-dimensional convolution processing, pooling processing and nonlinear activation processing based on a three-dimensional convolution kernel on the input data in the forward transmission of each layer of the facial shape feature extractor based on the three-dimensional convolutional neural network model, so as to output the facial shape feature map from the last layer of the facial shape feature extractor based on the three-dimensional convolutional neural network model.