A 3D face recognition method based on point cloud
Generating data through 3DMM and constructing the KPConv network, combined with the improved central loss function and data enhancement algorithm, solves the problem of low recognition accuracy under large posture changes in 3D face recognition, improves the recognition rate, optimizes efficiency, and saves costs.
Patent Information
- Application Number
- CN202410451210.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-15
AI Technical Summary
Existing 3D face recognition technology has low recognition accuracy when dealing with large posture changes, and the efficiency is inconsistent with the training data, resulting in low recognition efficiency.
3DMM is used to generate 3D face data, a face point cloud recognition network based on KPConv is constructed, an improved center loss function is used for network optimization, data diversity is improved through a data enhancement algorithm, and cosine similarity is used as the feature matching score.
It improves the recognition rate of point cloud three-dimensional faces, finds the optimal relationship between recognition efficiency and training data, saves time and computing costs, and significantly improves recognition accuracy.
Smart Images

Figure CN118172820B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional face recognition, and in particular to a three-dimensional face recognition method applied to point cloud. Background Art
[0002] Compared with 2D face recognition, 3D face recognition has the advantages of being robust to illumination and less affected by factors such as posture and expression. Therefore, after the rapid development of 3D data acquisition technology and the great improvement of the quality and accuracy of 3D data, many researchers have focused their research on this field. Among them, the Chinese invention patent application No. 201010256907.6 published on December 29, 2010 proposed a method of using the relevant features of 3D bending invariants to describe facial features. However, since the extraction of variable-related features requires complex calculations, the efficiency of this method is limited, which limits its further application.
[0003] The Chinese invention patent application No. 200910197378.4 published on May 4, 2011 proposed a method for fully automatic three-dimensional face detection and posture correction. After proposing the nasal root area features based on the distance information of the face surface to detect the position of the nasal root, a face coordinate system was established, and the face posture correction application was automatically performed based on this. The purpose of this method is to estimate the posture of three-dimensional face data, which belongs to the data preprocessing stage of the three-dimensional face recognition system. However, the above method is often prone to the problem of inconsistent relationship between recognition efficiency and training data due to different postures, resulting in low recognition accuracy of faces with large posture changes. Summary of the invention
[0004] The purpose of the present invention is to provide a three-dimensional face recognition method applied to point clouds, which improves the recognition rate of three-dimensional faces in point clouds, finds the optimal relationship between recognition efficiency and training data, saves time and computing costs, and highlights the effectiveness and potential of the method.
[0005] To achieve the above object, the present invention provides a three-dimensional face recognition method applied to point cloud, comprising the following steps:
[0006] S1. Use 3DMM to generate 3D face data;
[0007] S2, build a face point cloud recognition network structure based on KPConv;
[0008] S3. Use the improved central loss function to optimize the network.
[0009] Preferably, in step S1, in generating 3D face data, shape, texture, and expression attribute features that follow Gaussian distribution are learned based on PCA, as shown below:
[0010]
[0011] Among them, S represents the generated face, p represents a specific shape, which is composed of a linear combination of the mean vector and each principal component, i.e., the eigenvector; is the average of all shape vectors, α s is the principal component coefficient, U s is the eigenvector matrix, U e is the noise eigenvector matrix, α e is the noise figure.
[0012] Preferably, a data enhancement algorithm is introduced to improve the diversity of data, that is, the noise in formula (1) is expressed as changes in facial expressions and facial postures, as shown below:
[0013]
[0014] Where p represents the principal component eigenvector, is the average face, U s α is the principal component shape feature matrix, U e is the PCA basis function, β is the expression coefficient; R is the rotation matrix, which indicates the rotation of the face; M is the scaling matrix, which indicates the scaling of the face; L is the displacement matrix, which indicates the displacement of the face; G is the parameterized function of the face posture, which rotates, scales and displaces the face by controlling the posture parameter γ.
[0015] Preferably, when generating a face, a β is randomly selected from β and γ. i and γ i , we get β i With γ i , as shown below:
[0016] β i =λβ-(1-λ)μ1 (3)
[0017] γ i =λγ-(1-λ)μ2 (4)
[0018] Among them, λ is (0,1); μ is Random values between , following a normal distribution.
[0019] Preferably, in step S2, in constructing the face point cloud recognition network structure, given a set of facial point clouds (P1, P2), an end-to-end network is designed that directly inputs the point cloud coordinates to ensure the rotational invariance and transformation invariance of the three-dimensional data, and to verify whether it belongs to the same identity. The network outputs a feature vector, and the cosine similarity is used to reflect the probability that the two input face feature vectors belong to the same subject capture.
[0020] Preferably, based on the KPConv network architecture, a learnable convolution kernel is introduced to calculate the features of each point, perform convolution operations on the set of neighborhoods around each point i, and calculate a weight for each point j in the neighborhood represents the influence of point j on point i; then, the feature vectors of the points in these neighborhoods are weighted and summed according to the corresponding weights to obtain the feature vector θ of point i, as shown below:
[0021]
[0022] Among them, x i represents the i-th point, f θ (x i ) represents the feature of the i-th point, s j represents the position of the jth point, θ represents the eigenvector, is the weight parameter of the convolution kernel, Ν(x i ) is the neighborhood set of the i-th point.
[0023] Preferably, in the network optimization in step S3, when calculating the distance between each point cloud feature vector and the center of its category, the cosine similarity between feature embeddings is used as a classifier of the matching score to make a correct judgment on face feature vectors of different lengths, as shown below:
[0024]
[0025] Among them, L c represents the loss function, x i ' represents the updated point, N is the total number of point clouds, and d represents the calculation of the cosine distance between two vectors. Indicates the category y to which the i-th sample belongs i The category center; m represents the total number of categories, c j represents the category center of the jth category, and λ represents the regularization coefficient.
[0026] Therefore, the present invention adopts the above-mentioned three-dimensional face recognition method applied to point clouds, improves the recognition rate of point cloud three-dimensional faces, finds the optimal relationship between recognition efficiency and training data, saves time and computing costs, and highlights the effectiveness and potential of the method.
[0027] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a three-dimensional face point cloud recognition framework diagram of a three-dimensional face recognition method applied to point cloud in the present invention;
[0029] Figure 2It is a three-dimensional face recognition network architecture diagram based on kpconv of a three-dimensional face recognition method applied to point cloud of the present invention;
[0030] Figure 3 It is a graph of association between a convolution kernel of a three-dimensional face recognition method applied to a point cloud and each point on the point cloud of the present invention;
[0031] Figure 4 The present invention is a comparison of a three-dimensional face recognition method applied to point cloud based on different training amounts. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages disclosed in the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention and are not used to limit the embodiments of the present invention.
[0033] like Figure 1 As shown, the present invention proposes a 3D face recognition method applied to point cloud. First, synthetic data for training is prepared, then the network architecture is introduced, and then the training details are discussed. The specific steps are as follows:
[0034] S1. Use 3DMM to generate 3D face data;
[0035] S2, build a face point cloud recognition network structure based on KPConv;
[0036] S3. Use the improved central loss function to optimize the network.
[0037] Example 1
[0038] S1. Use 3DMM to generate 3D face data;
[0039] In order to solve the problems of poor facial detail expression and low flexibility of 3DMM, we decided to use 3DMM with stronger deformation expression ability to generate 3D face data, and learn the shape, texture, expression and other attribute features that follow Gaussian distribution based on PCA, as shown below:
[0040]
[0041] Among them, S represents the generated face, p represents a specific shape, which is composed of a linear combination of the mean vector and each principal component, i.e., the eigenvector; is the average of all shape vectors, α s is the principal component coefficient, U s is the eigenvector matrix, U e is the noise eigenvector matrix, α e is the noise figure.
[0042] According to the above characteristics, a data enhancement algorithm (facial expression changes, face posture changes) is added to deal with posture and noise problems in practical applications, solve the problem of few samples of existing 3D face data, and improve the diversity of data. That is, the noise in formula (1) is expressed as facial expression changes and face posture changes, as shown below:
[0043]
[0044] Where p represents the principal component eigenvector, is the average face, U s α is the principal component shape feature matrix, U e is the PCA basis function, β is the expression coefficient; R is the rotation matrix, which indicates the rotation of the face; M is the scaling matrix, which indicates the scaling of the face; L is the displacement matrix, which indicates the displacement of the face; G is the parameterized function of the face posture, which rotates, scales and displaces the face by controlling the posture parameter γ.
[0045] Under the assumption that the training samples are normally distributed and the mean is estimated correctly, the coefficients α and β are independently normally distributed with unit variance. By drawing random samples from this distribution, a random 3D face mesh with a unique shape α and expression β is generated.
[0046] In order to make the training data closer to the real data, a method of using the real data as the principal component coefficient to generate training data is proposed. The expression coefficient β and posture parameter γ of each face are calculated in the real face dataset FRGCv2.0 subset. When generating a face, a β is randomly selected from β and γ. i and γ i , we get β i With γ i , as follows:
[0047] β i =λβ-(1-λ)μ1 (3)
[0048] γ i =λγ-(1-λ)μ2 (4)
[0049] Among them, λ is (0,1); μ is Random values between , following a normal distribution.
[0050] Substituting (3) and (4) into (2) to generate faces, the generated faces can cover more expressions similar to real faces in the dataset. Experiments show that this strategy can significantly improve the recognition rate of faces with expressions.
[0051] Finally, a total of 10,000 independent α were generated for unique identities, 2,000 β were generated for expressions, and 50 γ were generated for postures. The difference between face point cloud data and other point cloud data (chairs, tables) is that the most obvious feature changes of the face are concentrated in local areas such as eyes, nose, and mouth, and these areas will change according to changes in posture and expression. Based on this feature, a KPConv-based network structure is proposed to extract 3D facial features.
[0052] S2, build a face point cloud recognition network structure based on KPConv;
[0053] Different from the traditional learning-based 3D face recognition method, the present invention is to design an end-to-end network that directly inputs the point cloud coordinates given a set of facial point clouds (P1, P2), and verify whether it belongs to the same identity while ensuring the advantages of rotation invariance and transformation invariance of 3D data. The output of the network is a feature vector, and the cosine similarity is used to reflect the probability that the two input face feature vectors belong to the same subject capture, such as Figure 2 shown.
[0054] By utilizing the KPConv-based network architecture, the accuracy of face recognition tasks is improved. Figure 3 As shown in Figure 1, KPConv introduces a learnable convolution kernel, represented as a kernel point, which is similar to a spherical area with an adjustable radius. The kernel is used to calculate the features of each point. The convolution operation is performed on the set of areas around each point i, and a weight is calculated for each point j in the neighborhood. Represents the influence of point j on point i. Then, the feature vectors of the points in these neighborhoods are weighted and summed according to the corresponding weights to obtain the feature vector θ of point i, as shown below:
[0055]
[0056] Among them, x i represents the i-th point, f θ (x i ) represents the feature of the i-th point, s j represents the position of the jth point, θ represents the eigenvector, is the weight parameter of the convolution kernel, Ν(x i ) is the neighborhood set of the i-th point.
[0057] S3, use the improved central loss function to optimize the network;
[0058] Since face data has high intra-class similarity and inter-class differences, the improved center loss function is used for network optimization, as follows:
[0059]
[0060] Among them, L c represents the loss function, x i ' represents the updated point, N is the total number of point clouds, and d represents the calculation of the cosine distance between two vectors. Indicates the category y to which the i-th sample belongs i The category center; m represents the total number of categories, c j represents the category center of the jth category, and λ represents the regularization coefficient.
[0061] When calculating the distance between each point cloud feature vector and the center of its category, cosine similarity is used to replace the original Euclidean distance. The purpose is to use cosine to calculate the angle between two feature vectors, pay more attention to the direction of face data, and make correct judgments for face feature vectors of different lengths, which is more effective for face learning.
[0062] Example 2
[0063] 1. Dataset Collection
[0064] In an embodiment, two publicly available datasets (FRGCv2 dataset and Bosphorus dataset) are used to test the proposed 3D face recognition network, using Rank-1 Identification Rate.
[0065] First, FRGCv2 (Face Recognition Grand Challenge version 2.0) is a facial recognition dataset containing approximately 1,432 facial images of each of 466 people taken under different lighting and expressions, including single static images, video sequences, and 3D reconstruction models, as well as gender, race, and age information.
[0066] The dataset consists of two parts: Gallery and Probe. The Gallery part contains a set of frontal static images (1-4 images) of each subject, and the Probe part contains several query images, each of which is a frontal image. These query images come from different image groups and have no overlap with the images in the Gallery. The task of each query image is to find the most similar image in the Gallery part and measure the retrieval performance in the Gallery part.
[0067] In the experiment, a part of the FRGCv2 dataset is used as real data to train the network. Specifically, 530 faces are randomly selected as real data bootstrap, and another 473 faces are used as real data validation set.
[0068] Bosphorus is a dataset jointly developed by the Department of Computer Engineering and the Department of Electronic Engineering of Bogazici University in Turkey. It collects facial expressions and morphological information of individuals of different races, ages, and genders for 3D face modeling and analysis. It contains facial information of 105 individuals, each of whom was photographed with 2 to 4 facial expressions and morphological information including smile, open mouth, closed mouth, open eyes, closed eyes, etc., and contains a total of 4,665 images. The 3D facial model collected by the dataset has high resolution and rich facial detail information, which can provide more accurate and detailed facial analysis.
[0069] 2. Data Preprocessing
[0070] In 3D face recognition applications, the nose tip is often regarded as the origin and normalized accordingly. First, the position of the nose tip is detected in the 2D image domain using the face detection and key point location algorithm by Zhang et al., and its pixel coordinates on the image are determined. Next, the 2D pixel coordinates of the nose tip are converted to coordinates in 3D space by aligning them with the depth image or 3D point cloud. Then, the coordinates of the nose tip are transformed by setting the coordinates of the nose tip as the coordinate origin of the 3D point cloud data, and the coordinates of the nose tip are set to the origin (0,0,0).
[0071] In order to solve the possible interference of non-facial areas, a sphere with a radius of 90mm is established based on the tip of the nose, and the points outside the sphere are removed to ensure that only point cloud data related to the face is retained. Finally, the threshold of the nearest neighbor is set to remove possible outliers or noise, and exclude points that are too far away or do not conform to the shape of the face. Through these preprocessing steps, the tip of the nose can be used as the coordinate origin to process non-facial areas and outliers in the 3D face point cloud data, and obtain a more accurate and consistent data representation.
[0072] 3. Ablation study
[0073] For the ablation investigation, the evaluation focuses on the accuracy on the Bosphorus dataset, with an emphasis on a subset of neutral scans from the Bosphorus dataset identified by the file name convention “N_N_0”. This approach allows for fast and efficient comparisons.
[0074] (1) Effectiveness of DFaceNet network architecture
[0075] An ablation study was conducted on the Bosphorus dataset, and the quantitative results of the experiment were divided into those without and with the face point cloud recognition network, as shown in Table 1. The "Rank-1 recognition rate" refers to the recognition rate of the matching items returned by the recognition algorithm that rank first among all possible matching items after comparing the query image with all items in the database.
[0076] On the Bosphorus dataset, the rank-1 recognition rate is improved by 1.68, indicating the significant effectiveness of using the point cloud recognition network.
[0077] Table 1. Ablation study added to 3DFaceNet
[0078]
[0079]
[0080] (2) Effectiveness of the amount of training data
[0081] Although training data can be generated infinitely depending on the situation, too much data will lead to a waste of time resources and low recognition efficiency, so the optimal relationship between recognition efficiency and training data should be found. After a large number of experiments, 8,000 training samples were determined, each containing 150 expressions, and the rank-1 recognition rate on the Bosphorus dataset reached an optimal ratio of 99.33%, as shown in Figure 4 As shown in Figure 2. It can be seen that if a larger amount of data is used, a slightly higher recognition rate may be obtained, but this usually costs exponentially more time, which is considered unnecessary.
[0082] (3) Comparison with other methods
[0083] According to the above ablation study, the 3DFaceNet network architecture is adopted, and the point+Normal input mode is used as the final model. In the embodiment, the final model is used to compare with other methods on the public 3D face datasets Bosphorus and FRGC v2.
[0084] As shown in Table 2, the proposed method is compared with other face recognition algorithms using the FRGC v2.0 dataset.
[0085] Table 2 Rank-1 recognition rate (RR1) of FRGC v2.0 dataset
[0086]
[0087]
[0088] The presented tables illustrate some of the advances in deep learning based methods that have shown impressive recognition rates. A rank-1 recognition rate of 99.37% was achieved on the FRGC v2.0 dataset.
[0089] Compared to methods that require larger datasets to achieve marginal gains in recognition rate, our method performs well using only 967 faces from the FRGC v2.0 sample in training. Despite limited real-world data, our method outperforms some specific methods, highlighting its effectiveness and potential.
[0090] As shown in Table 3, the proposed method is compared with other face recognition algorithms using the Bosphorus dataset. Additional experiments are conducted on the Bosphorus dataset to verify the effectiveness of the proposed method. The recognition rates are reported for the same subset of the Bosphorus dataset to ensure fair and consistent evaluation.
[0091] Table 3 Rank-1 recognition rate (RR1) of Bosphorus dataset
[0092] Method Rank-1 identification rate(%) Huang et al. 97.00 Liu et al. 95.63 Berretti et al. 95.67 Lei et al. 98.90 Gilani et al. 98.50 Zhang et al. 99.68 Yuetal. 99.33 Ours 99.72
[0093] It is noteworthy that a rank-1 recognition rate of 99.72% is achieved. The key difference is that the proposed method uses the cosine similarity between feature embeddings as a classifier for the matching score.
[0094] Therefore, the present invention adopts the above-mentioned three-dimensional face recognition method applied to point clouds, improves the recognition rate of point cloud three-dimensional faces, finds the optimal relationship between recognition efficiency and training data, saves time and computing costs, and highlights the effectiveness and potential of the method.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A three-dimensional face recognition method applied to point cloud, characterized in that: The following steps are involved: S1. Use 3DMM to generate 3D face data; S2, build a face point cloud recognition network structure based on KPConv; S3. Based on the fact that face data has high intra-class similarity and inter-class difference, the improved center loss function is used for network optimization. When calculating the distance between each point cloud feature vector and the center of its category, the cosine similarity is used to replace the original Euclidean distance. The purpose is to use cosine to calculate the angle between two feature vectors, pay more attention to the direction of face data, and make correct judgments for face feature vectors of different lengths. In the network optimization of step S3, when calculating the distance between each point cloud feature vector and the center of its category, the cosine similarity between feature embeddings is used as the classifier of the matching score to make correct judgments on face feature vectors of different lengths, as shown below: (6) in, L c represents the loss function, x i ' represents the updated point, N is the total number of point clouds, d It means to calculate the cosine distance between two vectors. Indicates i The samples belong to the category Category center of m represents the total number of categories, Indicates j The category center of each category, represents the regularization term coefficient.
2. A three-dimensional face recognition method applied to point cloud according to claim 1, characterized in that: In step S1, when generating 3D face data, PCA is used as the basis to learn the shape, texture, and expression attribute features that follow the Gaussian distribution, as shown below: (1) in, S represents the generated face, p Represents a specific shape, which is composed of a linear combination of the mean vector and each principal component, i.e., the eigenvector; is the average of all shape vectors, is the principal component coefficient, is the eigenvector matrix, is the noise eigenvector matrix, is the noise figure.
3. The three-dimensional face recognition method applied to point cloud according to claim 2, characterized in that: The data enhancement algorithm is introduced to improve the diversity of data. That is, the noise in formula (1) is represented by changes in facial expressions and facial postures, as shown below: (2) in, p represents the principal component eigenvector, is the average face, The principal component shape feature matrix, is the PCA basis function, is the expression coefficient; R is the rotation matrix, which represents the rotation of the face; M The scaling matrix represents the scaling of the face; L is the displacement matrix, which represents the displacement of the face; G It is a parameterized function for face pose, by controlling the pose parameters , rotate, scale and translate the face.
4. The three-dimensional face recognition method applied to point cloud according to claim 3, characterized in that: When generating faces, β and Randomly select one and ,get and , as shown below: (3) (4) in, λ is (0,1); for , Random values between , following a normal distribution.
5. The three-dimensional face recognition method applied to point cloud according to claim 1, characterized in that: In step S2, constructing the face point cloud recognition network structure, given a set of facial point clouds ,Design an end-to-end network that directly inputs point cloud coordinates,ensures the rotation invariance and transformation invariance of 3D data,and verifies whether it belongs to the same identity.,The output of the network is a feature vector, and the cosine similarity is used to reflect the,probability that two input face feature vectors belong to the same subject capture.
6. The three-dimensional face recognition method applied to point cloud according to claim 5, characterized in that: Based on the KPConv network architecture, a learnable convolution kernel is introduced to calculate the features of each point. i The convolution operation is performed on the surrounding area set, and the points in each neighborhood are j Calculate a weight , indicating a point j Point i The impact of Then, the feature vectors of the points in these neighborhoods are weighted and summed according to the corresponding weights to obtain the point i The eigenvector of , as shown below: (5) in, x i Indicates i Points, Indicates i The characteristics of a point, Indicates j The location of the point, represents the feature vector, is the weight parameter of the convolution kernel, It is i The neighborhood set of a point.
