A self-supervised 3D point cloud completion method for underwater objects

Through the self-supervised 3D point cloud completion method, using the cross-attention mechanism and CLIP loss, a multi-modal constrained neural network is constructed, which solves the problem of missing and noisy underwater 3D point cloud data and improves the integrity of the point cloud data. and precision.

CN118470515BActive Publication Date: 2024-09-03OCEAN UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917487.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-03
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Underwater 3D point cloud data is missing and noisy in complex environments, and it is difficult for existing technologies to effectively restore semantic structure information. In particular, there is a lack of sufficient supervision signals in single-view self-supervised point cloud completion.

Method used

A self-supervised 3D point cloud completion method is used to construct a point cloud block set through the farthest point sampling algorithm and the nearest neighbor sampling algorithm. It combines the point cloud feature encoder, shape feature encoder and text feature encoder to introduce a cross-attention mechanism and CLIP loss is used to construct a multi-modal constrained self-supervised completion neural network model to perform self-supervised completion of point clouds.

Benefits of technology

It significantly improves the integrity and accuracy of the three-dimensional point cloud data of underwater targets, solves the problem of lack of supervision signals in single-view self-supervised point cloud completion, and obtains better completion results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470515B
    Figure CN118470515B
Patent Text Reader

Abstract

The present invention proposes a self-supervised three-dimensional point cloud completion method for underwater targets, which belongs to the field of computer vision technology. The present invention includes: collecting underwater three-dimensional point cloud data, and dividing the residual point cloud into training data and test data; using the farthest point sampling algorithm to extract the point cloud contour set, and constructing the point cloud block set through the nearest neighbor sampling algorithm; constructing a point cloud feature encoder module, a point cloud feature decoder module, a shape feature encoder module, a text feature encoder module and a shape-text feature matching module, and introducing a cross-attention mechanism to enhance feature fusion; constructing a self-supervised completion neural network model through multimodal constraints, and training it with training data; using the trained model to complete the residual point cloud. The present invention combines multimodal information and self-supervised learning technology to significantly improve the integrity and accuracy of three-dimensional point cloud data of underwater targets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a self-supervised three-dimensional point cloud completion method for an underwater target object, and belongs to the technical field of computer vision. Background Art

[0002] Point cloud completion technology is crucial for 3D scanning, virtual reality, augmented reality and other fields. It can fill in the gaps in point cloud data and improve its completeness and accuracy. Since objects in the real world are often blocked or damaged, especially in the more complex underwater environment, which leads to incomplete point cloud data, it is very necessary to develop point cloud completion technology.

[0003] Point cloud completion aims to reconstruct the incomplete surface of point clouds captured from sensors such as LiDAR or generated from 3D reconstruction algorithms, and is an important research topic in 3D reconstruction. Point cloud completion is crucial in 3D vision applications, such as underwater modeling, underwater target detection, semantic segmentation, smart buildings, and autonomous driving; the key to the successful application of 3D vision lies in the understanding of 3D objects, and complete 3D shapes can effectively improve the robustness of visual understanding. However, the disorder and sparsity of the captured point clouds and the incomplete structural information hinder the application of point clouds in 3D vision.

[0004] Underwater 3D reconstruction stems from the need for accurate modeling of underwater environments. Due to the particularities of underwater environments such as light attenuation and water turbidity, traditional visual and optical measurement technologies are limited. Therefore, underwater 3D reconstruction technology uses advanced means to obtain 3D information of underwater targets. In this process, point cloud data is an important form of data, but it often has missing and noisy data due to the complexity of the environment. Point cloud completion technology can supplement missing data, improve data quality, and support more accurate 3D modeling and complex tasks. Therefore, point cloud completion is a key link in underwater 3D reconstruction.

[0005] The difficulty of point cloud completion technology lies in restoring the missing semantic structure information of the original point cloud while preserving the global shape of the point cloud. However, due to the inherent disorder and unstructured nature of point clouds, the reconstruction of a complete point cloud is challenging. The existing point cloud completion methods can be divided into two methods according to whether large-scale data training is required: traditional shape completion methods and deep learning point cloud completion methods. Traditional point cloud completion methods can be further classified into two categories: completion methods based on geometric priors and completion methods based on template matching. However, these methods lack robustness, generalization, and have difficulty dealing with noise and new objects.

[0006] With the increasing application of deep learning in the field of 3D vision, point cloud completion methods based on deep learning have also begun to emerge. A key issue for deep learning methods is to choose an appropriate supervision method to maximize the completeness of point clouds. Fully supervised learning methods use basic facts to guide the completion process, but it is difficult to create a dataset that pairs incomplete samples with ground truth, especially because incomplete point clouds are usually captured by devices such as LiDAR, and there is no complete point cloud to naturally pair with them. Therefore, in point cloud completion, incomplete point clouds are usually generated by cropping the complete point cloud dataset, so that the incomplete samples are paired with their complete samples to form a simulated dataset. However, this will lead to different data distributions between simulated data and real-world data, which limits the effectiveness of such methods for real-world data. To solve the problem of difficulty in obtaining basic facts, many weakly supervised and unpaired methods have been proposed as alternatives. The former constructs supervision by observing the same object from multiple angles. However, it is difficult to collect point clouds from multiple angles, and the simultaneous input of multiple viewpoint clouds also increases the computational complexity of the network. The latter method facilitates network training by incorporating complete but unpaired point clouds into the dataset. While this approach avoids the need for a paired dataset, collecting large complete datasets is still difficult. Single-part point cloud completion is a self-supervised completion method that aims to construct self-supervised point cloud completion using only a single residual point cloud. It eliminates the need for a basic truth point cloud and relies only on one unknown incomplete observation of each object, thereby significantly expanding the scope of training data and making it available even in real-world scenarios with a single view. Although single-part point cloud completion solves the problem of missing data to some extent, it only relies on incomplete point clouds as guidance and lacks sufficient supervisory signals, so it cannot recover the missing structural information well. Summary of the invention

[0007] In order to solve the problem of residual three-dimensional point cloud data of underwater objects and lack of supervision signals in single-view self-supervised point cloud completion, the present invention provides a self-supervised three-dimensional point cloud completion method for underwater targets to make up for the shortcomings of the prior art.

[0008] In order to achieve the above-mentioned invention object, the specific technical scheme adopted by the present invention is as follows:

[0009] A self-supervised three-dimensional point cloud completion method for underwater objects comprises the following steps:

[0010] S1: Collect underwater 3D point cloud data, separate the residual point cloud of the object to be completed; divide the residual point cloud into training data and test data;

[0011] S2: The farthest point sampling algorithm is used to extract the point cloud contour set from the residual point cloud, and then the nearest neighbor sampling algorithm is used to construct the point cloud block set with each point in the contour set as the center;

[0012] S3: build a basic model, which includes a point cloud feature encoder module, a point cloud feature decoder module, a shape feature encoder module, a text feature encoder module, and a shape-text feature matching module;

[0013] S4: The cross-attention mechanism is introduced into the basic model to perform cross-attention feature fusion on the features of the shape feature encoder module of the point cloud and the features of the feature encoder of the point cloud;

[0014] S5: constructing the objective function in the basic model, and finally obtaining a multimodal constrained self-supervised completion neural network model;

[0015] S6: Use the training data to train the self-supervised completion neural network model, and then use the trained self-supervised completion neural network model to complete the residual defect cloud according to the existing residual defect cloud data.

[0016] Furthermore, in S1: the object to be completed is separated from the scene-level point cloud using a point cloud segmentation algorithm, and To represent a scene, use Represents all objects in the scene, To represent an object, such as a shell, coral, fish, etc., use Represents the residual defect cloud input to the network.

[0017] Furthermore, the S2 is specifically:

[0018] (1) Constructing point cloud contour set:

[0019] Input point cloud The shape is [N, 3], and a point is randomly selected from it As a starting point, add it to the sampling result set and marked as selected. For each selected point , calculate its distance to the unselected points, and select the point with the farthest distance Add the sampling result set and mark it as selected, repeat this step until the point cloud contour set P contains n points;

[0020] (2) Constructing point cloud block set:

[0021] Select any point in the sampling result ,calculate The distance from all sample points in the training set, and then select the K points closest to the unknown sample; these K points form a point cloud block ; Iterate all points in the point cloud contour set to obtain the point cloud block set ; The point cloud block set is divided into three parts: , , .

[0022] Furthermore, in S3:

[0023] The point cloud block Input the point cloud feature encoder module and the point cloud feature decoder module to let the network learn to complete its complete shape to obtain the predicted point cloud , as shown in the following formula:

[0024] ;

[0025] ;

[0026] After obtaining the predicted point cloud, the point cloud is input into the frozen shape feature encoder module to extract its shape information features. , and then input the text prompt corresponding to the point cloud into the frozen text feature encoder module to obtain the text feature , then and The input shape-text feature matching module obtains the matching degree between the point cloud shape and the text prompt.

[0027] Furthermore, in S3:

[0028] (1) Point cloud feature encoder module:

[0029] In order to extract the global shape features of the input residual point cloud and preserve its spatial structure information, a point cloud feature encoder module is designed, which consists of two spatial convolution operations, each of which is constructed according to the following rules:

[0030] ;

[0031] ;

[0032] in Indicates the last feature, represents the input convolution in a spatial convolution, Represents the output convolution in a spatial convolution, Re represents the Relu activation function, and BN represents batch normalization. Represents the global features of the i-th spatial convolutional layer;

[0033] Through two spatial convolution operations, the input point cloud is transformed from a point space with a feature dimension of three to a feature space. In order to ensure that the network is independent of the number of input point clouds, a maximum pooling operation is performed on the extracted point cloud features in the dimension of the number of points. In this process, the global features of the point cloud are extracted.

[0034] (2) Point cloud feature decoder module:

[0035] In order to convert the point cloud from the feature dimension space to the point dimension space and learn the complete knowledge in the process, a point cloud feature decoder module is designed, which consists of a multi-layer perceptron. After several linear connection layers, the feature dimension is expanded and the point cloud features are restored to the point dimension space, which is given by the following formula:

[0036] ;

[0037] in represents the linear layer, Re represents the Relu activation function, Indicates characteristics, Represents the predicted point cloud.

[0038] (3) Shape feature encoder module:

[0039] In order to extract the shape features of the predicted point cloud, a pre-trained shape encoder based on Point Transformer is introduced; it can better extract the feature information in the point cloud through pre-training on the ShapeNet dataset; the shape feature encoder contains multiple vector-based self-attention point transformer layers, which use a subtraction relationship and add the position encoding δ to the attention vector γ and the transformed feature α:

[0040] ;

[0041] Here is a subset yes A collection of points in a local neighborhood of , which adopts the recent practice of self-attention networks for image analysis, applying self-attention locally in the local neighborhood around each data point; is the output feature, is a point-wise feature transformation, such as a linear projection or MLP. ρ is a normalization function, such as softmax, and the mapping function γ is an MLP with two linear layers and a ReLU nonlinearity;

[0042] The position encoding function δ is defined as follows:

[0043] ;

[0044] here and are the 3D point coordinates of points i and j, and the encoding function θ is an MLP with two linear layers and a ReLU nonlinearity;

[0045] (4) Shape-text feature matching module:

[0046] Separate feature encoders are used for point clouds and text to derive shape features denoted as and text features, denoted as ; In order to enhance the shape features with text representation, project them into a common embedding space and calculate the feature similarity between them, a batch optimization strategy with batch size B is adopted to construct a logit potential matrix M with shape [B, B]; formally:

[0047] ;

[0048] in represents the learnable scale parameter, Represents the shape characteristics of the point cloud, Features representing the textual hints corresponding to the point cloud, is the logit latent matrix.

[0049] Furthermore, in S4: the present invention proposes a shape-aware cross-attention mechanism to enhance the feature extraction capability of the point cloud encoder, which extracts the shape features from the point cloud through a dedicated point cloud shape feature encoder. The shape information is extracted from the point cloud and then the shape information is enriched.

[0050] The point cloud is input into the frozen shape feature encoder module to extract its shape information features , which is input into a multi-layer perceptron to obtain Make it The dimensions match, then As the query in the multi-head attention mechanism, As the key value in the multi-head attention mechanism, the fusion feature is obtained after cross-attention ,Will and Add element by element to get , and finally After being sent to the activation function for activation, it is added element by element as the residual. The final output is obtained in ; A consistency loss is applied to penalize and The difference between:

[0051] ;

[0052] ;

[0053] ;

[0054] in Represent the QKV matrix in the attention mechanism, Re stands for the multi-head attention mechanism, and Re represents the Relu activation function.

[0055] Furthermore, the objective function in S5 is:

[0056] In order to allow the completion network to restore the complete point cloud shape while retaining the global features of the input point cloud as much as possible, the objective function is introduced Forced prediction point cloud With the original input Alignment, while forcing and Alignment allows the network to learn the features of point cloud blocks that are not input into the network; at the same time Input the encoder again to get the features , in the feature space and Alignment; Represents the sum of the three loss functions, in the following form:

[0057] ;

[0058] In order to further standardize the completion, vector consistency constraints are introduced to improve surface continuity; specifically, given a point cloud , where P represents a point cloud, P i represents the i-th point in the point cloud, then P i The total least squares estimate of the normal direction of the tangent plane centered on is obtained by The covariance matrix of The eigenvalue decomposition of is obtained and is defined as:

[0059] ;

[0060] where q j P i The jth nearest neighbor of , k represents the kth nearest neighbor, j represents the jth nearest neighbor, represents the average value of its k nearest neighbors; the eigenvector corresponding to the minimum eigenvalue is the estimated normal direction , Normalized to ; Point P i The normal consistency of is defined as:

[0061] ;

[0062] The dot product between two normal directions is used as a similarity measure, yes and The average value of similarity between The value of represents the variance of the normal similarity, estimating the local surface curvature, and the vector consistency constraint is expressed as:

[0063] ;

[0064] In order to maximize the completeness of the point cloud and the similarity between the text description, thereby achieving alignment between text and shape-aware features, the CLIP loss is introduced. , to supervise a batch containing B point cloud-text pairs:

[0065] ;

[0066] in, Describes the consistency loss of point cloud text pairs in terms of matching completeness and text consistency. and Respectively represent the corresponding point cloud shape representation and text feature encoding; represents a learnable scale parameter; B is the batch size, exp represents a set of regularization functions, log is the logarithmic function, i and j represent the i-th batch and the j-th batch respectively;

[0067] In order to better enhance the ability to obtain the shape of point clouds, we adopt the principles of several self-supervised related works to transform shape attributes and incomplete point clouds into the same latent feature space. We enrich shape attributes from the original point cloud information through multi-head attention. We apply shape consistency loss to supervise the alignment between the global features and shape features of the incomplete point cloud:

[0068] ;

[0069] , E represent shape encoder and encoder respectively.

[0070] Furthermore, in S6, the incomplete defect cloud is inferred and completed according to the following calculation method based on the final learned deep learning network:

[0071] ;

[0072] Where D represents the decoder, E represents the encoder, is the predicted point cloud, is the input point cloud.

[0073] Compared with the prior art, the present invention has the following beneficial effects:

[0074] The present invention introduces CLIP to replace human advanced prior knowledge as a supervisor to guide the completion of point clouds during the self-supervised completion of point clouds; and introduces a shape-aware cross-attention mechanism, which greatly improves the feature extraction capability of the completion network encoder. The present invention solves the problem of residual three-dimensional point cloud data of underwater objects and lack of supervisory signals in single-view self-supervised point cloud completion; after actual verification, compared with existing methods, the present invention has better completion results in underwater target object completion. The present invention combines multimodal information and self-supervised learning technology to significantly improve the integrity and accuracy of three-dimensional point cloud data of underwater targets. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 Schematic diagram of a self-supervised completion method; wherein (a) is a schematic diagram of an existing self-supervised method, and (b) is a schematic diagram of the self-supervised method of the present invention.

[0076] Figure 2 It is the overall framework diagram of the present invention.

[0077] Figure 3 This is a diagram that visualizes how the logit matrix works.

[0078] Figure 4 This is a schematic diagram of the shape-aware cross-attention mechanism.

[0079] Figure 5 This is the experimental result of Example 3. DETAILED DESCRIPTION

[0080] The present invention is further described below through specific embodiments in conjunction with the accompanying drawings.

[0081] The present invention uses multimodal text information to guide the process of point cloud self-supervision completion. The schematic diagram of the method is as follows: Figure 1 As shown in Figure 2, self-supervised point cloud completion methods usually build supervision between the input residual point cloud and the predicted complete point cloud; however, relying solely on input samples as supervision will lead to an imbalance problem in the predicted point cloud, namely the problem of sparse true missing parts and dense non-missing parts.

[0082] Embodiment 1:

[0083] A self-supervised repair and completion method for incomplete 3D point clouds of underwater targets, such as Figure 2 As shown, the specific steps are as follows:

[0084] Step 1: Use the point cloud segmentation algorithm to separate the objects to be completed from the scene-level point cloud, and use S i To represent a scene, use Represents all objects in the scene, such as shells, corals, fish, etc., using Represents the residual defect cloud input to the network.

[0085] Step 2, such as Figure 2 As shown, first construct a point cloud contour set; input point cloud The shape is [N, 3], and a point is randomly selected from it As the starting point, add it to the sampling result set and mark it as selected. For each selected point , calculate its distance to the unselected points, and select the point with the farthest distance Add the sampling result set and mark it as selected. Repeat this step until the point cloud contour set P contains n points. Then build the point cloud block set; select any point in the sampling result ,calculate The distance from all sample points in the training set is calculated, and then the K points closest to the unknown sample are selected. These K points are combined into a point cloud block. ; Iterate all points in the point cloud contour set to obtain the point cloud block set ; The point cloud block set is divided into three parts: , , .

[0086] Step 3, such as Figure 2 As shown in the figure, the point cloud block Input the point cloud feature encoder module and the point cloud feature decoder module to let the network learn to complete its complete shape to obtain the predicted point cloud , as shown in the following formula:

[0087] ;

[0088] ;

[0089] Get the predicted point cloud After that, Input frozen shape feature encoder module to extract its shape information features , and then input the text prompt corresponding to the point cloud into the frozen text feature encoder module to obtain the text feature , then and The input shape-text feature matching module obtains the matching degree between the point cloud shape and the text prompt.

[0090] Specifically, we first construct a point cloud feature encoder module. In order to extract the global shape features of the input residual point cloud and retain its spatial structure information, we design a point cloud feature encoder module, which consists of two spatial convolution operations, each of which is constructed according to the following rules:

[0091] ;

[0092] ;

[0093] in Indicates the last feature, represents the input convolution in a spatial convolution, Represents the output convolution in a spatial convolution, Re represents the Relu activation function, and BN represents batch normalization. Represents the global features of the i-th spatial convolutional layer. Through two spatial convolution operations, the input point cloud is transformed from a point space with a feature dimension of three to a feature space; in order to ensure that the network is independent of the number of input point clouds, we perform a maximum pooling operation on the extracted point cloud features in the dimension of the number of points; and extract the global features of the point cloud in this process.

[0094] Then, a point cloud feature decoder module is constructed. In order to transform the point cloud from the feature dimension space to the point dimension space and learn the complete knowledge in the process, a point cloud feature decoder module is designed, which consists of a multi-layer perceptron. After several linear connection layers, the feature dimension is expanded and the point cloud features are restored to the point dimension space, which is given by the following formula:

[0095] ;

[0096] Then, the shape feature encoder module is constructed. In order to extract the shape features of the predicted point cloud, a pre-trained shape encoder based on Point Transformer is introduced. It can better extract the feature information in the point cloud through pre-training on the ShapeNet dataset. The shape feature encoder contains multiple vector self-attention point transformer layers. It uses a subtraction relationship and adds the position encoding δ to the attention vector γ and the transformed feature α:

[0097] ;

[0098] Here is a subset yes A collection of points in a local neighborhood of , which adopts the recent practice of self-attention networks for image analysis, applying self-attention locally in the local neighborhood around each data point; is the output feature, is a point-wise feature transformation, such as a linear projection or MLP. ρ is a normalization function, such as softmax, and the mapping function γ is an MLP with two linear layers and a ReLU nonlinearity;

[0099] The position encoding function δ is defined as follows:

[0100] ;

[0101] here and are the 3D point coordinates of points i and j. The encoding function θ is an MLP with two linear layers and a ReLU nonlinearity.

[0102] Then build a shape-text feature matching module; Figure 3 As shown, separate feature encoders are used for point clouds and text to derive shape features denoted as and text features, denoted as . In order to enhance the shape features with text representation, we project and enter a common embedding space and calculate the feature similarity between them. Using a batch optimization strategy with a batch size of B, we construct a logit latent matrix M of shape [B, B]. Formally:

[0103] ;

[0104] in represents a learnable scale parameter. Represents the shape characteristics of point cloud. Features representing the textual hint corresponding to the point cloud. is the logit latent matrix.

[0105] Step 4: Supervised point cloud completion methods always emphasize the design of complex decoder sets. Previous supervised methods designed in a coarse-to-fine mode tend to design a sophisticated multi-layer decoder; this is because it can make the point cloud as dense as possible while preserving global feature information. However, the focus of self-supervised point cloud completion methods is to optimize the encoder to capture global features while learning from incomplete parts. Therefore, we propose a shape-aware cross-attention mechanism to enhance the feature extraction ability of the point cloud encoder, such as Figure 4 shown.

[0106] This mechanism extracts shape information from the point cloud through a dedicated point cloud shape feature encoder, and then enriches the shape information of the point cloud. Input frozen shape feature encoder module to extract its shape information features , which is input into a multi-layer perceptron to obtain Make it The dimensions match, then As the query in the multi-head attention mechanism, As the key value in the multi-head attention mechanism, the fusion feature is obtained after cross-attention ,Will and Add element by element to get , and finally After being sent to the activation function for activation, it is added element by element as the residual. The final output is obtained in . A consistency loss is applied to penalize and The difference between:

[0107] ;

[0108] ;

[0109] ;

[0110] in Represent the QKV matrix in the attention mechanism, Re stands for the multi-head attention mechanism, and Re represents the Relu activation function.

[0111] Step 5: In order to restore the complete point cloud shape while retaining the global features of the input point cloud as much as possible, the objective function is introduced. Forced prediction point cloud With the original input Alignment, while forcing and Alignment allows the network to learn the features of point cloud blocks that are not input into the network; at the same time Input the encoder again to get the features , in the feature space and Alignment; Represents the sum of three loss functions, formally:

[0112] ;

[0113] To further standardize the completion, vector consistency constraints are introduced to improve surface continuity. Specifically, given a point cloud , then P i The total least squares estimate of the normal direction of the tangent plane centered on The eigenvalue decomposition of the covariance matrix Cov is obtained and is defined as:

[0114] ;

[0115] The eigenvector corresponding to the minimum eigenvalue of Cov is the estimated normal direction v i , v i Normalized to . Set point P i The normal consistency of is defined as:

[0116] ;

[0117] The dot product between two normal directions is used as a similarity measure, Yes i and v j The average similarity between . The value of represents the variance of the normal similarity, estimating the local surface curvature, and the vector consistency constraint is expressed as:

[0118] ;

[0119] In order to maximize the completeness of the point cloud and the similarity between the text description, thereby achieving alignment between text and shape-aware features, the CLIP loss is introduced. , to supervise a batch containing B point cloud-text pairs. Formally:

[0120] ;

[0121] in, The consistency loss of point cloud-text pairs in terms of matching completeness and text consistency is described. and They represent the corresponding point cloud shape representation and text feature encoding respectively. represents a learnable scale parameter.

[0122] In order to better enhance the ability to obtain the shape of point clouds, several principles of self-supervised related work are adopted. Shape attributes and incomplete point clouds are converted to the same latent feature space. Shape attributes are enriched from the original point cloud information through multi-head attention. Shape consistency loss is applied to supervise the alignment between the global features and shape features of the incomplete point cloud. Formally:

[0123] ;

[0124] , E represent shape encoder and encoder respectively.

[0125] In step 6, we use the following calculation method to infer and complete the incomplete defect cloud based on the final learned deep learning network:

[0126] .

[0127] Example 2: Verification experiment:

[0128] The results of underwater shellfish biocomplementation based on the method proposed in Example 1.

[0129] This embodiment uses a shell data set collected underwater; a total of 55 samples are collected, shells numbered 1-45 are used as training sets, shells numbered 45-49 are used as test sets, and shells numbered 50-55 are used as validation sets; Euclidean distance is used for evaluation. As shown in Table 1, the present invention obtains a smaller Euclidean distance metric when completing underwater shellfish residual cloud, and has a better completion result.

[0130] Table 1 Results of the present invention on underwater shell residue cloud dataset:

[0131] .

[0132] Example 3: Verification experiment:

[0133] A comparative experiment based on the method proposed in Example 1 and the baseline results in the non-underwater dataset "3D-EPN".

[0134] Table 2 Results of the present invention on the “3D-EPN” residual cloud dataset:

[0135] .

[0136] The evaluation standard is the Euclidean distance L2 norm CD×10 3 The results are shown in Table 2 and Figure 5 As shown, it is explained that the present invention not only has a good completion result in the completion of underwater shellfish, but also has a good effect in the completion of other objects.

[0137] On the basis of the above embodiments, the present invention continues to describe in detail the technical features involved therein and the functions and roles played by the technical features in the present invention, so as to help technicians in this field fully understand the technical solution of the present invention and reproduce it.

[0138] Finally, although this specification is described according to implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.

Claims

1. A self-supervised three-dimensional point cloud completion method for underwater objects, characterized in that: The steps include: S1: Collect underwater 3D point cloud data, separate the residual point cloud of the object to be completed; divide the residual point cloud into training data and test data; S2: The farthest point sampling algorithm is used to extract the point cloud contour set from the residual point cloud, and then the nearest neighbor sampling algorithm is used to construct the point cloud block set with each point in the contour set as the center; S3: Build a basic model, which includes a point cloud feature encoder module, a point cloud feature decoder module, a shape feature encoder module, a text feature encoder module, and a shape-text feature matching module; wherein: (1) Point cloud feature encoder module: The point cloud feature encoder module consists of two spatial convolution operations, each of which is constructed according to the following rules: Fj=Conv out (Re(BN(Conv in (F j-1 )))); F i global =MaxPooing(F i ); where F j-1 Represents the last feature, Conv in Represents the input convolution in a spatial convolution, Conv out represents the output convolution in a spatial convolution, Re represents the Relu activation function, BN represents batch normalization, and F i global Represents the global features of the i-th spatial convolutional layer; Through two spatial convolution operations, the input point cloud is transformed from a point space with a feature dimension of three to a feature space. In order to ensure that the network is independent of the number of input point clouds, a maximum pooling operation is performed on the extracted point cloud features in the dimension of the number of points. In this process, the global features of the point cloud are extracted. (2) Point cloud feature decoder module: The point cloud feature decoder module consists of a multi-layer perceptron, which expands the feature dimension through several linear connection layers and restores the point cloud features to the point dimension space, which is given by the following formula: P c =Linear3(Re(Linear2(Re(Linear1(Re(Linear0(F))))))); Linear i represents the linear layer, Re represents the Relu activation function, and F j-1 Represents the characteristics, P c represents the predicted point cloud; (3) Shape feature encoder module: The introduction of the Point Transformer-based pre-trained shape encoder contains multiple vector-based self-attention point transformer layers, which use a subtraction relationship and add the position encoding δ to the attention vector γ and the transformed feature α: Subset is x i The set of points in the local neighborhood of y, where self-attention is applied locally in the local neighborhood around each data point; i is the output feature, is a point-wise feature transformation, ρ is a normalization function, and the mapping function γ is an MLP with two linear layers and a ReLU nonlinearity; The position encoding function δ is defined as follows: δ=θ(p i -p j ); p i and p j are the 3D point coordinates of points i and j, and the encoding function θ is an MLP with two linear layers and a ReLU nonlinearity; (4) Shape-text feature matching module: Separate feature encoders are used for point clouds and text to derive shape features denoted as f shape and text features, denoted as f text ; Using a batch optimization strategy with a batch size of B, a logit potential matrix M with a shape of [B,B] is constructed; formally: M st =τ s f shape ·f text ; where τ s represents the learnable scale parameter, f shape Represents the shape characteristics of the point cloud, f text represents the text prompt feature corresponding to the point cloud, M st is the logit latent matrix; The point cloud block G com Input the point cloud feature encoder module and the point cloud feature decoder module, and let the network learn to complete its complete shape to obtain the predicted point cloud P c , as shown in the following formula: f p =Encoder(G com ); P c =Decoder(f p ); Get the predicted point cloud P c After that, P c Input the frozen shape feature encoder module to extract its shape information feature f shape , and then input the text prompt corresponding to the point cloud into the frozen text feature encoder module to obtain the text feature f text , then f shape and f text Input the shape-text feature matching module to obtain the matching degree between the point cloud shape and the text prompt; S4: The cross-attention mechanism is introduced into the basic model to fuse the shape feature encoder module features of the point cloud with the feature encoder features of the point cloud through cross-attention features; the shape-aware cross-attention mechanism obtains the shape feature from the point cloud P through the point cloud shape feature encoder. c Extract shape information from P c Input the frozen shape feature encoder module to extract its shape information feature f shape , input it into a multi-layer perceptron to obtain f' shape So that it is p The dimensions match, and then f' shape As the query in the multi-head attention mechanism, f p As the key value in the multi-head attention mechanism, the fusion feature f is obtained after cross-attention mix , f mix With f' shape Add element by element to get f mix2 Finally, f mix2 After being sent to the activation function for activation, it is added element by element to f again as a residual. mix2 The final output f is obtained att ; A consistency loss is applied to penalize f p and f att The difference between: Q=f shape ·W Q ,K=fp·W K ,V=f p ·W V ; f mix =MH-Attention(Q,K,V); Where W Q , W K , W V They represent the QKV matrix in the attention mechanism, MH-Attention represents the multi-head attention mechanism, and Re represents the Relu activation function; S5: construct the objective function in the basic model, and finally obtain a multimodal constrained self-supervised completion neural network model; the objective function is: Introducing the objective function Force the predicted point cloud to be consistent with the original input G rec Alignment, while forcing P c With G com Align, P c Input the encoder again to obtain feature f c , let f p and f c Alignment; Represents the sum of the three loss functions as follows: Given a point cloud Where P represents a point cloud, p i represents the i-th point in the point cloud, then p i The total least squares estimate of the normal direction of the tangent plane centered on is obtained by The covariance matrix C ov The eigenvalue decomposition of is obtained and is defined as: Among them C ov is the covariance matrix, q j For p i The jth nearest neighbor of , k represents the kth nearest neighbor, j represents the jth nearest neighbor, represents the average value of its k nearest neighbors; the eigenvector corresponding to the minimum eigenvalue is the estimated normal direction v i , v i Normalized to |v i |=1; point p i The normal consistency of is defined as: The dot product between two normal directions is used as a similarity measure, Yes i and v j The value of nc(·) represents the variance of the normal similarity, estimating the local surface curvature. The vector consistency constraint is expressed as: Introduced CLIP loss To supervise a batch containing B point cloud-text pairs: in, Describes the consistency loss of point cloud text pairs in terms of matching completeness and text consistency. and They represent the corresponding point cloud shape representation and text feature encoding respectively; τ represents the learnable scale parameter; B is the batch size, exp represents a set of regularization functions, log is the logarithmic function, i and j represent the i-th batch and the j-th batch respectively; Apply shape consistency loss to supervise the alignment between global features and shape features of incomplete point clouds: E shape , E represent shape encoder and encoder respectively; S6: Use the training data to train the self-supervised completion neural network model, and then use the trained self-supervised completion neural network model to complete the residual defect cloud according to the existing residual defect cloud data.

2. The self-supervised three-dimensional point cloud completion method according to claim 1, characterized in that: In S1: the object to be completed is separated from the scene-level point cloud using a point cloud segmentation algorithm, and S i To represent a scene, use Represents all objects in the scene, To represent an object, use Represents the residual defect cloud input to the network.

3. The self-supervised three-dimensional point cloud completion method according to claim 1, characterized in that: The S2 is specifically: (1) Constructing point cloud contour set: Input point cloud The shape is [N,3], and a point P is randomly selected from it i As the starting point, add it to the sampling result set P = {p1, p2, ..., p n } and marked as selected. For each selected point P i , calculate its distance to the unselected points, and select the point P with the farthest distance farest Add the sampling result set and mark it as selected, repeat this step until the point cloud contour set P contains n points; (2) Constructing point cloud block set: Select the sampling result P = {p1, p2, ..., p n Any point P in j , calculate p j The distance from all sample points in the training set, and then select K points based on the distance from the unknown samples; these K points form a point cloud block N i ; Iterate all points in the point cloud contour set to obtain a point cloud block set The obtained point cloud block set is divided into three parts: G rec , G com , G latent .

4. The self-supervised three-dimensional point cloud completion method according to claim 1, characterized in that: In S6, the final learned deep learning network is used to infer and complete the incomplete defect cloud in the following calculation method: P predict =D(E(P partial )); Where D represents the decoder, E represents the encoder, and P predict is the predicted point cloud, P partial is the input point cloud.