Three-dimensional face defect complementing method based on multi-modal deep learning
Through multi-modal deep learning technology, combined with point cloud and image features, the three-dimensional face target reference data is automatically constructed, solving the problems of manual dependence and cross-midline defect repair in the existing technology, and realizing efficient and personalized facial prostheses. The design promotes clinical application in grassroots oral cavity.
Patent Information
- Application Number
- CN202410612497.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-16
AI Technical Summary
The existing digital design method of facial prosthesis relies on manual adjustment, is highly professional, is difficult to generalize to the grassroots level, and cannot effectively repair cross-midline defects. It relies on a database method with a higher quality face database.
A three-dimensional facial defect completion method based on multi-modal deep learning is adopted, including a point cloud feature encoder, an image feature encoder, a multi-modal feature fusion device and a three-dimensional face repair decoder. Through multi-modal feature fusion and differentiable rendering The discriminator automatically constructs personalized three-dimensional face target reference data to solve the problem of repairing cross-midline defects.
Without manual adjustment, it can automatically generate three-dimensional face target reference data that conforms to personalized facial features, which improves the efficiency and quality of facial prosthesis design and promotes grassroots promotion and dental clinical application.
Smart Images

Figure CN118657910A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of facial defect completion, and in particular relates to a three-dimensional facial defect completion method based on multimodal deep learning. Background Art
[0002] Oral and maxillofacial defects are commonly seen in oral clinics due to congenital defects, trauma, tumor resection, etc. They can be divided into jaw defects, facial defects, soft palate defects, and tongue defects according to the different defect locations. The incidence rate is as high as 2.4‰, which seriously affects the patient's physical and mental health and quality of life. Among oral and maxillofacial defects, facial defects often manifest as defects or absences of facial organs such as ears, nose, eyes, and orbits, causing facial deformities in patients. The face is known as the scenic area of the human body. Facial tissue defects often cause more severe physical and psychological trauma to patients than other parts, which can easily cause patients to have serious psychological disorders, making it difficult for them to work and socialize normally, and even causing them to lose confidence in life. Therefore, the main purpose of facial defect repair in oral clinics is to restore the normal appearance of the patient's face as much as possible.
[0003] At present, there are two main methods for repairing facial defects: surgical repair and prosthesis repair. Surgical repair uses the patient's own tissue transplantation method, which is good for restoring tissue structure and function. However, there are still quite a few facial defects, such as defects of the eyes, ears, and nose, for which surgical methods cannot achieve satisfactory repair effects. Oral clinics often use prostheses for repair. Compared with surgical methods, prosthesis repair has the advantages of relatively low cost and risk, no restrictions on donor tissue, and no secondary surgical trauma. However, the traditional prosthesis production process is complicated, involving more than ten steps of impression making, wax model making, and prosthesis processing. In particular, wax model making emphasizes the simulation effect of prosthesis, which requires prosthesis doctors and technicians to have not only sufficient medical knowledge and experience, but also high aesthetic literacy and sculpture skills, which makes the prosthesis production experience-dependent, long production cycle, and high production failure rate, making it difficult to promote and popularize at the grassroots level.
[0004] In recent years, with the development of digital technology, CAD (Computer aided design, CAD) and CAM (Computer aided manufacturing, CAM) have been widely used in stomatology for the design and production of facial prostheses and have been successfully applied in oral clinics, bringing new ways to the production of prostheses. At present, domestic and foreign research on the digital design of facial prostheses mainly uses the mirror method and database method to construct target reference data for different types of facial defects, but these methods require a lot of manual adjustments based on the topological structure of point cloud data to solve the three-dimensional matching problem between the target reference data and the patient's personalized facial features. Existing digital technology has not yet solved the key problem of automatically constructing the optimal three-dimensional target reference data for facial defect repair. Summary of the invention
[0005] The purpose of the present invention is to provide a three-dimensional facial defect completion method based on multimodal deep learning, which solves the problem that the existing method relies on manual adjustment, requires relatively professional oral medical knowledge and practical experience, and is difficult to promote to the grassroots level. At the same time, the two existing digital designs of facial prostheses cannot repair cross-midline defects well. The facial method cannot repair cross-midline defects, and the database method is heavily dependent on the quality of the collected face database for cross-midline defects.
[0006] To achieve the above object, the present invention provides a 3D facial defect completion method based on multimodal deep learning, comprising a point cloud feature encoder, an image feature encoder, a multimodal feature fusion device, a 3D facial restoration decoder and a discriminator based on differentiable rendering, comprising the following steps:
[0007] Step 1: Use a point cloud feature encoder to extract three-dimensional point cloud features of patients with facial defects;
[0008] Step 2: using an image feature encoder to extract two-dimensional image features of the patient with facial defect;
[0009] Step 3: Use a multimodal feature fuser to fuse the three-dimensional point cloud features and two-dimensional image features extracted in steps 1 and 2;
[0010] Step 4: Use the collected 3D face meshes to construct a 3DMM model through principal component analysis, use the 3D facial restoration decoder to predict the 3DMM coefficients based on the features output by the multimodal feature fusion device, and generate the restored 3D face mesh;
[0011] Step 5: Use 3D supervised loss to capture global shape information. At the same time, the discriminator based on differentiable rendering renders the predicted 3D face mesh and the real 3D face mesh into images during training and introduces supervised loss of 2D images to capture local detail information, thus completing the completion of 3D facial defects.
[0012] Preferably, the point cloud feature encoder includes a point cloud Transformer module and an attention-based point cloud downsampling module; the attention-based point cloud downsampling module performs weighted aggregation on the features by calculating the contribution of the neighboring points of the center point to the center point features. The specific formula of weighted aggregation is as follows:
[0013]
[0014] Among them, X dp is the final downsampled point cloud, softmax is the Softmax activation function, k and v are the key and value of the local point set respectively, q c is the center point of the local point set, T is the transposition operation, and d is the number of channels queried.
[0015] Preferably, the image feature encoder includes a residual module and a multi-scale fusion module of ResNet; the specific formula of the multi-scale fusion module is as follows:
[0016]
[0017]
[0018] Δ,M=Conv 3*3 (F)
[0019]
[0020]
[0021] Unsample represents the upsampling operation, Concat represents the merging operation, and Conv k*k represents a convolution with a kernel size of k*k, Δ represents the offset of the deformable convolution, M represents the mask of the deformable convolution, DCN represents the deformable convolution, F i represents the output features of ResNet stage i, represents the upsampled features of the output features of the i-th stage, It represents the feature obtained by deformable convolution of the output feature of the i-1th stage. Represents the output features of the multi-scale fusion module.
[0022] Preferably, the specific formula of the multimodal feature fusion device is as follows:
[0023]
[0024]
[0025] Among them, q i represents the query of the i-th modality, i=1, k i Indicates the key of the i-th mode, i = 1, 2, v i Represents the value of the i-th mode, i=1, M i represents the i-th modal feature, i=1, represents the refined modality 1 query features, Represents the features of modality 1 after feature fusion.
[0026] Preferably, the formula of the 3DMM model constructed in step 4 is as follows:
[0027]
[0028] Among them, V represents the coordinates of all vertices on the three-dimensional face mesh, α i represents the i-th 3DMM coefficient, S i Represents the basis of the i-th 3DMM model.
[0029] Preferably, the three-dimensional monitoring loss L 3d and the supervised loss L for 2D images 2d The total loss L total , the specific expression of the total loss is as follows:
[0030] L total =L 3d (V pred ,V gt )+L 2d (Img pred ,Img gt )
[0031] Among them, V pred and V gt They are the point cloud coordinates on the restored 3D face mesh and the point cloud coordinates on the real 3D face mesh, Img pred and Img gt They are the images obtained by differentiable rendering operations on the restored 3D face mesh and the real 3D face mesh.
[0032] Therefore, the present invention adopts the above-mentioned three-dimensional facial defect completion method based on multimodal deep learning, which has the following beneficial effects:
[0033] (1) A 3DMM model with face prior knowledge is constructed using the collected 3D face meshes. This model can cover most of the morphological changes of the face and can be used to generate the restored 3D face.
[0034] (2) A new multimodal 3D face restoration network is proposed. By combining the 3D point cloud information of the face and the 2D image information of the face to jointly predict the 3D face after restoration, the model can generate the optimal 3D face target reference data that meets the personalized facial features of patients with facial defects.
[0035] (3) Without manual adjustment, personalized three-dimensional facial target reference data can be automatically generated for patients with facial defects.
[0036] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is an overall flow chart of a three-dimensional facial defect completion method based on multimodal deep learning of the present invention;
[0038] Figure 2 It is the overall architecture diagram of the point cloud feature encoder of the present invention;
[0039] Figure 3 It is the architecture diagram of the attention-based point cloud downsampling module of the present invention;
[0040] Figure 4 It is the overall architecture diagram of the image feature encoder of the present invention;
[0041] Figure 5 It is the overall architecture diagram of the multimodal feature fuser of the present invention;
[0042] Figure 6 is a general architecture diagram of a 3D facial restoration decoder of the present invention;
[0043] Figure 7 is a diagram of the cross-attention mechanism architecture in the 3D facial restoration decoder of the present invention;
[0044] Figure 8 It is an operation interface diagram of the present invention. DETAILED DESCRIPTION
[0045] The following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] See also Figure 1-8A 3D facial defect completion method based on multimodal deep learning includes a point cloud feature encoder, an image feature encoder, a multimodal feature fusion device, a 3D facial repair decoder, and a discriminator based on differentiable rendering, specifically including the following steps:
[0047] Step 1: Use the point cloud feature encoder to extract the three-dimensional point cloud features of patients with facial defects; the point cloud feature encoder includes a point cloud Transformer module and an attention-based point cloud downsampling module; the attention-based point cloud downsampling module performs weighted aggregation on the features by calculating the contribution of the neighboring points of the center point to the center point features. The specific formula for weighted aggregation is as follows:
[0048]
[0049] Among them, X dp is the final downsampled point cloud, softmax is the Softmax activation function, k and v are the key and value of the local point set respectively, q c is the center point of the local point set, T is the transposition operation, and d is the number of channels queried;
[0050] Step 2: Use an image feature encoder to extract the two-dimensional image features of patients with facial defects; the image feature encoder includes a residual module and a multi-scale fusion module of ResNet; the specific formula of the multi-scale fusion module is as follows:
[0051]
[0052]
[0053] Δ,M=Conv 3*3 (F)
[0054]
[0055]
[0056] Unsample represents the upsampling operation, Concat represents the merging operation, and Conv k*k represents a convolution with a kernel size of k*k, Δ represents the offset of the deformable convolution, M represents the mask of the deformable convolution, DCN represents the deformable convolution, F i represents the output features of ResNet stage i, represents the upsampled features of the output features of the i-th stage, It represents the feature obtained by deformable convolution of the output feature of the i-1th stage. Represents the output features of the multi-scale fusion module;
[0057] Step 3: Use a multimodal feature fuser to fuse the three-dimensional point cloud features and two-dimensional image features extracted in steps 1 and 2. The specific formula of the multimodal feature fuser is as follows:
[0058]
[0059]
[0060] Among them, q i represents the query of the i-th modality, i=1, k i Indicates the key of the i-th mode, i = 1, 2, v i Represents the value of the i-th mode, i=1, M i represents the i-th modal feature, i=1, represents the refined modality 1 query features, Represents the features of modality 1 after feature fusion;
[0061] Step 4: Use the collected 3D face meshes to construct a 3DMM model through principal component analysis, use the 3D face restoration decoder to predict the 3DMM coefficients based on the features output by the multimodal feature fusion, and generate the restored 3D face mesh; the formula of the constructed 3DMM model is as follows:
[0062]
[0063] Among them, V represents the coordinates of all vertices on the three-dimensional face mesh, α i represents the i-th 3DMM coefficient, S i Represents the basis of the i-th 3DMM model.
[0064] Step 5: Use the 3D supervised loss to capture the global shape information. At the same time, the discriminator based on differentiable rendering renders the predicted 3D face mesh and the real face 3D mesh into images during training and introduces the supervised loss of the 2D image to capture the local detail information, thus completing the 3D facial defect completion. 3d and the supervised loss L for 2D images 2d The total loss L total , the specific expression of the total loss is as follows:
[0065] L total =L 3d (V pred ,V gt )+L 2d (Img pred ,Img gt )
[0066] Among them, V pred and V gtThey are the point cloud coordinates on the restored 3D face mesh and the point cloud coordinates on the real 3D face mesh, Img pred and Img gt They are the images obtained by differentiable rendering operations on the restored 3D face mesh and the real 3D face mesh.
[0067] Example
[0068] The collected 3D point cloud information of the patient with facial defect is input into the point cloud feature encoder to obtain the 3D facial features. The structure of the point cloud feature encoder is as follows: Figure 2 As shown in FIG, in order to avoid the information loss caused by simply using the maximum pooling operation in the point cloud downsampling, the present invention proposes a point cloud downsampling method based on attention, such as Figure 3 As shown in the figure, the features are weighted aggregated by calculating the contribution of the center point's neighbor points to the center point features. The specific formula for weighted aggregation is as follows:
[0069]
[0070] Among them, X dp is the final downsampled point cloud, softmax is the Softmax activation function, k and v are the key and value of the local point set respectively, q c is the center point of the local point set, T is the transposition operation, and d is the number of channels queried.
[0071] The previous two-dimensional image information of the patient with facial defect is input into the image feature encoder to obtain the two-dimensional facial features. The main body of the present invention adopts ResNet (Residual network, ResNet). In order to better utilize the coarse to fine features of the image, such as Figure 4 As shown, the present invention proposes a new multi-scale fusion module, which upsamples the deep features rich in semantic information, and then predicts the offset and mask of the deformable convolution together with the shallow features rich in detail information, so as to perform feature alignment when the image features are fused, and finally applies the predicted deformable convolution to the shallow features and adds them to the deep features to obtain multi-scale image features. The specific formula of the multi-scale fusion module is as follows:
[0072]
[0073]
[0074] Δ,M=Conv 3*3 (F)
[0075]
[0076]
[0077] Unsample represents the upsampling operation, Concat represents the merging operation, and Conv k*k represents a convolution with a kernel size of k*k, Δ represents the offset of the deformable convolution, M represents the mask of the deformable convolution, DCN represents the deformable convolution, F i represents the output features of ResNet stage i, represents the upsampled features of the output features of the i-th stage, It represents the feature obtained by deformable convolution of the output feature of the i-1th stage. Represents the output features of the multi-scale fusion module.
[0078] Compared with single modality features, multimodal feature fusion can use the rich facial detail information in the image as auxiliary information of the three-dimensional facial information, reducing the possible solution space, such as Figure 5 As shown in the figure, this paper proposes a new multimodal feature fuser for feature-level fusion, which aims to combine the image features encoded by the image feature encoder with the point cloud features encoded by the point cloud feature encoder to provide a better feature representation for the 3D face restoration decoder, thereby improving the accuracy of the 3D face restoration task. The specific formula of the multimodal feature fuser is as follows:
[0079]
[0080]
[0081] Among them, q i represents the query of the i-th modality, i=1, k i Indicates the key of the i-th mode, i = 1, 2, v i Represents the value of the i-th mode, i=1, M i represents the i-th modal feature, i=1, represents the refined modality 1 query features, Represents the features of modality 1 after feature fusion.
[0082] Most of the existing point cloud completion decoders use the global features output by the point cloud feature encoder to directly predict the complete sparse point cloud through a multi-layer perceptron, and then use the folding mechanism to amplify the local points by a certain multiple to form a complete dense point cloud after final completion. This method does not take into account the relationship constraints between the various parts of the face, so that the repaired face surface is rough and has a small number of outliers. At the same time, it is difficult to restore the face shape when the defect area is large. In response to the above problems, the present invention introduces a parameterized face model into the three-dimensional face restoration task, and changes the problem of predicting the point cloud position into the problem of predicting the identity parameters in the parameterized face model, thereby introducing facial statistical priors for the three-dimensional face restoration task. The present invention first constructs a 3DMM model with facial prior knowledge for the collected three-dimensional face meshes through principal component analysis, and then uses the following method to perform face restoration. Figure 6 and Figure 7 The 3D face restoration decoder shown predicts the coefficients of the 3DMM and generates a restored 3D face mesh. The constructed 3DMM model formula is as follows:
[0083]
[0084] Among them, V represents the coordinates of all vertices on the three-dimensional face mesh, α i represents the i-th 3DMM coefficient, S i Represents the basis of the i-th 3DMM model.
[0085] Since supervised learning using only the 3D loss function of the point cloud on the 3D face mesh repaired by the 3D face repair decoder and the point cloud on the real 3D face mesh will cause the model to fail to capture local details, the present invention introduces a discriminator based on differentiable rendering in the training stage, performs differentiable rendering on the repaired 3D face mesh and the real 3D face mesh, and supervises the rendered images of the two at the 2D pixel level and the perception level. This module can be discarded in the inference stage. The total training loss function is as follows:
[0086] L total =L 3d (V pred ,V gt )+L 2d (Img pred ,Img gt )
[0087] Among them, V pred and V gt They are the point cloud coordinates on the restored 3D face mesh and the point cloud coordinates on the real 3D face mesh, Img pred and Img gt They are the images obtained by differentiable rendering operations on the restored 3D face mesh and the real 3D face mesh.
[0088] The final operation interface is as follows Figure 8 As shown, the left side is for model parameter selection and data preprocessing settings, the middle is the network input, including 3D defective facial point cloud and 2D face image, and the right side shows the network output, that is, the repaired 3D face.
[0089] Therefore, the present invention adopts the above-mentioned three-dimensional facial defect completion method based on multimodal deep learning, which does not require manual adjustment and can automatically and individually predict the prosthesis morphology of the facial defect area according to the morphological characteristics of the defective face, effectively improving the efficiency and quality of digital design and production of oral clinical facial prostheses, promoting the grassroots promotion of digital facial defect repair technology, and improving the prosthesis design level of grassroots doctors. On the other hand, it can also provide oral experts with an efficient and convenient prosthetic three-dimensional morphology design reference scheme, which has significant scientific research significance and clinical application value.
[0090] 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 3D facial defect completion method based on multimodal deep learning, comprising a point cloud feature encoder, an image feature encoder, a multimodal feature fusion device, a 3D facial restoration decoder, and a discriminator based on differentiable rendering, characterized in that: The following steps are involved: Step 1: Use a point cloud feature encoder to extract three-dimensional point cloud features of patients with facial defects; Step 2, using an image feature encoder to extract two-dimensional image features of the patient with facial defect; Step 3: Use a multimodal feature fuser to fuse the three-dimensional point cloud features and two-dimensional image features extracted in steps 1 and 2; Step 4: Use the collected 3D face meshes to construct a 3DMM model through principal component analysis, use the 3D facial restoration decoder to predict the 3DMM coefficients based on the features output by the multimodal feature fusion device, and generate the restored 3D face mesh; Step 5: Use 3D supervised loss to capture global shape information. At the same time, the discriminator based on differentiable rendering renders the predicted 3D face mesh and the real 3D face mesh into images during training and introduces supervised loss of 2D images to capture local detail information, thus completing the completion of 3D facial defects.
2. The method for three-dimensional facial defect completion based on multimodal deep learning according to claim 1, characterized in that: The point cloud feature encoder includes a point cloud Transformer module and an attention-based point cloud downsampling module. The attention-based point cloud downsampling module performs weighted aggregation of features by calculating the contribution of the center point’s neighbor points to the center point’s features. The specific formula for weighted aggregation is as follows: Among them, X dp is the final downsampled point cloud, softmax is the Softmax activation function, k and v are the key and value of the local point set respectively, q c is the center point of the local point set, T is the transposition operation, and d is the number of channels queried.
3. The method for three-dimensional facial defect completion based on multimodal deep learning according to claim 2, characterized in that: The image feature encoder includes the residual module and multi-scale fusion module of ResNet; the specific formula of the multi-scale fusion module is as follows: Δ,M=Conv 3*3 (F) Unsample represents the upsampling operation, Concat represents the merging operation, and Conv k*k represents a convolution with a kernel size of k*k, Δ represents the offset of the deformable convolution, M represents the mask of the deformable convolution, DCN represents the deformable convolution, F i represents the output features of ResNet stage i, represents the upsampled features of the output features of the i-th stage, It represents the feature obtained by deformable convolution of the output feature of the i-1th stage. Represents the output features of the multi-scale fusion module.
4. The method for three-dimensional facial defect completion based on multimodal deep learning according to claim 3, characterized in that: The specific formula of the multimodal feature fusion is as follows: Among them, q i represents the query of the i-th modality, i=1, k i Indicates the key of the i-th mode, i = 1, 2, v i Represents the value of the i-th mode, i=1, M i represents the i-th modal feature, i=1, represents the refined modality 1 query features, Represents the features of modality 1 after feature fusion.
5. The method for three-dimensional facial defect completion based on multimodal deep learning according to claim 4, characterized in that: The formula of the 3DMM model constructed in step 4 is as follows: Among them, V represents the coordinates of all vertices on the three-dimensional face mesh, α i represents the i-th 3DMM coefficient, S i Represents the basis of the i-th 3DMM model.
6. The method for three-dimensional facial defect completion based on multimodal deep learning according to claim 5, characterized in that: 3D supervision loss 3d and the supervised loss L for 2D images 2d The total loss L total , the specific expression of the total loss is as follows: L total =L 3d (V pred ,V gt )+L 2d (Img pred ,Img gt ) Among them, V pred and V gt They are the point cloud coordinates on the restored 3D face mesh and the point cloud coordinates on the real 3D face mesh, Img pred and Img gt They are the images obtained by differentiable rendering operations on the restored 3D face mesh and the real 3D face mesh.
Citation Information
Patent Citations
Face incompleteness scanning completion method and device based on deep learning
CN113674161A
Face image restoration method, system and device and storage medium
CN115439371A
Cross-modal three-dimensional point cloud completion system and method
CN116740323A
Multi-modal guided face image editing method
CN117830474A
Method and apparatus for three-dimensional reconstruction of a human head for rendering a human image
US20230154111A1
Cited By
Missing information supplementary modeling method based on multi-modal fusion
CN120279191A
