Three-dimensional directional target segmentation method based on space perception network
By adopting an end-to-end method based on a spatially perceptual network in three-dimensional directed target segmentation, combining text-driven positioning modules and rule-oriented weak supervision strategies, the problem of low segmentation accuracy caused by the lack of position information in the prior art is solved. This realizes modeling and precise positioning of all entity spatial relationships in the text, significantly improving the model's inference and direction accuracy.
Patent Information
- Application Number
- CN202410796369.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The lack of position information in the existing three-dimensional directive target segmentation method results in low segmentation accuracy and the inability to effectively model the spatial relationship between all entities in the text.
Using an end-to-end method based on spatial perception network, combined with text-driven positioning modules and rule-oriented weak supervision strategies, features are extracted through sparse 3D U-Net and MPNet, and the cross-attention mechanism and Fourier absolute position coding are used for positioning. And improve the model's reasoning ability through rule-oriented weak supervision strategies.
It significantly improves the inference and direction accuracy of the model in three-dimensional directive target segmentation, and improves the average cross-border ratio (mIoU) by 5.1 percentage points, which is better than the previous pure 3D-RES end-to-end reference method, and is of considerable inference speed. In the case, the ability to handle spatial ambiguity in text is significantly improved.
Smart Images

Figure CN118365659B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional directional target segmentation, innovatively introduces a position information and rule-guided weak supervision strategy, and particularly refers to a three-dimensional directional target segmentation method based on a space perception network. Background Art
[0002] 3D Referring Expression Segmentation (3D-RES) is an emerging field for segmenting 3D objects in 3D point cloud scenes according to a given directional expression. In recent years, 3D-RES has gained wide attention in autonomous robots, human-computer interaction, and autonomous driving systems. Compared to the task of locating the target object by bounding box (3D-REC), 3D-RES requires a deeper understanding of the scene. In other words, 3D-RES needs to recognize instances and provide accurate 3D masks. ScanRefer provides a dataset based on ScanNetv2 for referencing 3D instance localization tasks.
[0003] Early 3D-RES methods adopted a two-stage paradigm to generate instance proposals from an independent text-independent segmentation model, and then associated these proposals with text descriptions. This paradigm separates segmentation and matching, which is suboptimal in performance and efficiency. Recent explorations have shifted to an end-to-end paradigm. For example, 3D-STMN achieves efficient segmentation by directly matching superpoints to text, while 3DRefTR integrates 3D-RES and 3D-REC into a unified framework using a multi-task approach, enhancing reasoning for both tasks. Despite these advances, limitations still exist, mainly due to over-reliance on text reasoning and insufficient modeling of spatial relationships between instances.
[0004] To address this problem, the core aims to help text reasoning by modeling the spatial relations of core instances. However, while accurate location information is crucial to ensure accurate modeling of spatial relations, accurately predicting instance locations from text information is far from a simple task. In addition, the location information available to us is limited to the target instance, which leaves us without supervisory signals for other instances in the text. Summary of the invention
[0005] The purpose of the present invention is to provide a three-dimensional directional target segmentation method based on a spatial perception network, so as to solve the problem of low segmentation accuracy caused by the lack of position information in the existing 3D-RES method, and to utilize the spatial information of the target instance for supervision, so that the network can accurately perceive the spatial relationship between all entities described in the text, thereby significantly improving the reasoning and pointing capabilities of the model.
[0006] In order to achieve the above object, the solution of the present invention is:
[0007] A three-dimensional directional target segmentation method based on spatial perception network is proposed. A rule-guided spatial perception network for end-to-end three-dimensional directional target segmentation is proposed. RG-SAN includes a text-driven positioning module and a rule-guided weak supervision strategy, and specifically performs the following steps:
[0008] Step 1: Feature extraction
[0009] For a given point cloud data , first use a segmenter to segment the super points, and use average pooling to get the super point position , and then use the pre-trained sparse 3D U-Net and super-point pooling layer to obtain super-point features ; For the target object description text, use the pre-trained MPNet to extract word features , where the subscript Indicates the number of layers;
[0010] Step 2: Text-driven positioning module
[0011] For layer 0, first Project to Super point features enhanced in the same dimension , and enhance the word features of layer 0 through dependency-driven interactions Enhanced word features ; Then use the cross attention mechanism to and calculate The spatial probability distribution of each entity in ; then use To update , and get the initial position of each word ;
[0012] For Layer, according to the word in Text position of the layer and super point position , get the Fourier absolute position encoding of the word Used for Self-attention operation on word features to obtain implicit relative position encoding Used for cross attention operation of super point features and word features; finally, the word features of the next round of input are obtained through residual connection and normalization ,at the same time After a fully connected layer, the position offset of the word is obtained and compared with Add up to get the word position of the next round of input ;
[0013] Step 3: Rule-guided weak supervision strategy
[0014] The target word in the target object description text is located by using the text dependency and preset rules. During training, the prediction position corresponding to the target word is supervised with the only target position information. Perform matrix multiplication to obtain the response map of the target word prediction and its corresponding instance mask;
[0015] Step 4: Training loss
[0016] Given a true binary mask , first obtain the corresponding superpoint mask by superpoint average pooling ; The final training loss function Four parts are considered - applying the binary cross entropy loss function and the Dice loss function on the final response map to obtain and , the L1 loss function is applied to the target word location under the rule-guided weak supervision strategy to obtain , and add auxiliary score loss Supervised score prediction of mask quality.
[0017] The step 1 comprises:
[0018] Step 1.1 Given a Point cloud data of , and then use the pre-trained sparse 3D U-Net to extract Point-level features of ,in represents the real number space, represents the dimension of the auxiliary feature; then After segmentation, we get Superpoint segmentation results ; Finally, and Directly send it to the super point pooling layer to obtain super point features ;
[0019] Step 1.2 Given a Words The target object description text is extracted using the pre-trained MPNet Word features of dimension .
[0020] Preferably, the step 2 comprises:
[0021] Step 2.1 At layer 0, first Project to Super point features enhanced in the same dimension , and enhanced through dependency-driven interactions Enhanced word features , and its calculation formula is expressed as:
[0022] ;
[0023] in Represents dependency-driven interactions, and Both represent learnable parameters, express and The characteristic dimension of
[0024] Afterwards, a cross-attention mechanism is used to estimate The spatial probability distribution of each entity in :
[0025] ;
[0026] in and All represent learnable parameters, and the superscript Represents matrix transpose;
[0027] Then, use To update , and get the initial position of each word , and its calculation formula is expressed as:
[0028] ;
[0029] ;
[0030] in represents a learnable parameter;
[0031] Step 2.2 In Layer, use the absolute position encoding operation to obtain the Fourier absolute position encoding , and its calculation formula is expressed as:
[0032] ;
[0033] in Indicates absolute position encoding operation;
[0034] Encode the absolute position For the Layer word features Self-attention operation:
[0035] ;
[0036] in represents the self-attention operation; Represents the word features updated after self-attention;
[0037] Quantify the calculated relative position and use it in the positional encoding table Find the corresponding entry in , and its calculation formula is expressed as:
[0038] ;
[0039] ;
[0040] ;
[0041] in, represents the hyperparameter used for discretization, Indicates a round-down operation. Position code table , which is used to offset discrete values to positive numbers, Relative position encoding. , and Represented in three dimensions xyz exist The index in ;
[0042] The relative position encoding interacts with the features in the cross-attention as the position bias in the attention weight, which is calculated as:
[0043] ;
[0044] ;
[0045] ;
[0046] in represents the position bias of the attention weight, Represents the matrix Line List, Indicates OK, Represents the query in the cross attention, which is specifically the word feature here. Represents the key in the cross attention, which is the super point feature here. represents the attention weight, represents a learnable parameter;
[0047] Finally, a multi-layer perceptron is used from Prediction position offset , and calculate the word position of the next round of input , and its calculation formula is expressed as:
[0048] ;
[0049] ;
[0050] in Represents a multilayer perceptron.
[0051] Preferably, in step 3, after obtaining the word index corresponding to the target instance in the target object description text, the word feature of the target word is extracted. and text position , and then use and Perform matrix multiplication to obtain the response map and instance mask of the target word. The calculation formula is expressed as:
[0052] ;
[0053] ;
[0054] in and Represent the response map of the target word prediction and its corresponding instance mask, respectively. represents the sigmoid function, express The transpose of .
[0055] Preferably, in step 4, for a given real binary mask , first obtain the corresponding superpoint mask by superpoint average pooling , and then in the final response graph The binary cross entropy loss function is applied, and its calculation formula is expressed as:
[0056] ;
[0057] ;
[0058] in Indicates that when the mask value is greater than 50%, the value is 1, otherwise it is 0. represents the super-point average pooling operation, Indicates Super Point The binary mask value of represents the binary cross entropy loss, represents the binary cross entropy loss function;
[0059] In the final response graph The Dice loss function is applied, and its calculation formula is expressed as:
[0060] ;
[0061] in represents the Dice loss, represents the Dice loss function;
[0062] To monitor the location , using the superpoint center of the target instance calculate , and its calculation formula is expressed as:
[0063] ;
[0064] Added settable auxiliary score loss for mask quality score prediction , the final training loss function It is expressed as:
[0065] ;
[0066] in , , and They are the coefficients of the four losses, which are set to 1, 1, 0.05 and 0.5 respectively.
[0067] After adopting the above technical solution, the present invention has the following technical effects:
[0068] The present invention proposes a novel end-to-end framework RG-SAN, which can model the spatial relationship between all entities in the text and improve the inference and pointing accuracy of the model in 3D-RES. Among them, a text-driven localization module (TLM) is designed to accurately locate all instances mentioned in the text, while a rule-guided weak supervision strategy (RWS) only uses the position of the target instance to supervise the spatial positioning of all instances. The present invention is significantly better than the previous pure 3D-RES end-to-end benchmark method in the ScanRefer benchmark test, and the average intersection over union (mIoU) is improved by 5.1 percentage points with comparable inference speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A flow chart of a rule-guided spatial perception network of the present invention;
[0070] Figure 2 The pseudo code of the rule-guided algorithm for locating target words of the present invention;
[0071] Figure 3 Visualization of the prediction results and attention maps of RG-SAN and 3D-STMN of the present invention;
[0072] Figure 4 Visualize the prediction results of RG-SAN and 3D-STMN of the present invention for other instances in the text;
[0073] Figure 5 It is a comparison chart of the RG-SAN of the present invention and other existing methods. DETAILED DESCRIPTION
[0074] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.
[0075] In view of the fact that the position of the superpoint is known and the essence of the task of the present invention is the cross-modal alignment of the superpoint features with the text features, a text-driven localization module (TLM) is proposed; at the same time, a rule-guided weak supervision (RWS) strategy is designed to accurately supervise the localization of the target instance and select the most appropriate word features to obtain the final target mask. Here, the present invention discloses a three-dimensional directional target segmentation method based on a spatial perception network, and proposes a rule-guided spatial perception network (RG-SAN) for end-to-end three-dimensional directional target segmentation. The RG-SAN consists of two main components: the TLM and the RWS strategy: the TLM locates all instances and iteratively improves their positions to ensure continuous improvement in position accuracy; the RWS strategy uses the dependency tree rule to accurately guide the positioning of the core instances. This centralized supervision significantly improves the ability to handle spatial ambiguity in text. See Figure 1 , the present invention comprises the following steps:
[0076] Step 1: Feature extraction
[0077] For a given point cloud data , first use a segmenter to segment the super points, and use average pooling to get the super point position , and then use the pre-trained sparse 3D U-Net and super-point pooling layer to obtain super-point features ; For the target object description text, use the pre-trained MPNet to extract word features , where the subscript Indicates the number of layers;
[0078] Step 2: Text-driven positioning module (TLM module)
[0079] TLM is designed as a multi-round refinement process - for layer 0, first Project to Super point features enhanced in the same dimension , and enhance the word features of layer 0 through dependency-driven interactions Enhanced word features ; Then use the cross attention mechanism to and calculate The spatial probability distribution of each entity in ; then use To update , and get the initial position of each word For the Layer, according to the word in Text position of the layer and super point position , get the Fourier absolute position encoding of the word Used for Self-attention operation on word features to obtain implicit relative position encoding Used for cross attention operation of super point features and word features; finally, the word features of the next round of input are obtained through residual connection and normalization ,at the same time After a fully connected layer, the position offset of the word is obtained and compared with Add up to get the word position of the next round of input ;
[0080] Step 3: Rule-guided weak supervision strategy (RWS strategy)
[0081] The RWS strategy uses the text dependency and preset rules to locate the target word (with superscript ) in the target object description text. In order to distinguish, the only target position information is used to supervise the predicted position of the target word during training; at the same time, the word features corresponding to the target word are compared with Perform matrix multiplication to obtain the response map of the target word prediction and its corresponding instance mask;
[0082] Step 4: Training loss
[0083] Given a true binary mask , first obtain the corresponding superpoint mask by superpoint average pooling ; The final training loss function Four parts are considered - applying the binary cross entropy (BCE) loss function and the Dice loss function on the final response map to obtain and , the L1 loss function is applied to the target word positioning under the RWS strategy to obtain , and add auxiliary score loss Supervised score prediction of mask quality.
[0084] Through the above scheme, the present invention proposes a novel end-to-end framework RG-SAN, which can model the spatial relationship between all entities in the text and improve the inference and pointing accuracy of the model in 3D-RES; wherein, a text-driven localization module (TLM) is designed to accurately locate all instances mentioned in the text, while a rule-guided weak supervision strategy (RWS) only uses the position of the target instance to supervise the spatial positioning of all instances; the present invention is significantly better than the previous pure 3D-RES end-to-end benchmark method in the ScanRefer benchmark test, and the average intersection over union (mIoU) is improved by 5.1 percentage points when the inference speed is comparable.
[0085] Specific embodiments of the present invention are shown below.
[0086] The above step 1 includes:
[0087] Step 1.1 Given a Point cloud data of , each point has 3D coordinates and a feature including RGB, normal vector, etc. dimensional auxiliary features, and then use the pre-trained sparse 3D U-Net to extract Point-level features of ,in represents the real number space, represents the dimension of the auxiliary feature; then After segmentation, we get Superpoint segmentation results ; Finally, and Directly send it to the super point pooling layer to obtain super point features ;
[0088] Step 1.2 Given a Words The target object description text is extracted using the pre-trained MPNet Word features of dimension .
[0089] Furthermore, the above step 2 includes:
[0090] Step 2.1 At layer 0, first Project to Super point features enhanced in the same dimension , and enhanced through dependency-driven interaction (DDI) Enhanced word features , and its calculation formula is expressed as:
[0091] ;
[0092] in Represents dependency-driven interactions, and Both represent learnable parameters, express and The characteristic dimension of
[0093] Afterwards, a cross-attention mechanism is used to estimate The spatial probability distribution of each entity in :
[0094] ;
[0095] in and All represent learnable parameters, and the superscript Represents matrix transpose;
[0096] Then, use To update , and get the initial position of each word , and its calculation formula is expressed as:
[0097] ;
[0098] ;
[0099] in represents a learnable parameter;
[0100] Step 2.2 After completing the above initialization steps, Layer, the present invention encodes the position of words and superpoints - using the absolute position encoding operation (APE) to obtain the Fourier absolute position encoding , and its calculation formula is expressed as:
[0101] ;
[0102] in Indicates absolute position encoding operation;
[0103] Encode the absolute position For the Layer word features Self-attention operation:
[0104] ;
[0105] in represents the self-attention operation; Represents the word features updated after self-attention;
[0106] For the interaction with super-point features, the present invention uses table-based relative position encoding to enhance the cross-attention process, which involves quantizing the calculated relative positions and use it in the positional encoding table Find the corresponding entry in , and its calculation formula is expressed as:
[0107] ;
[0108] ;
[0109] ;
[0110] in, represents the hyperparameter used for discretization, Indicates a round-down operation. Position code table , which is used to offset discrete values to positive numbers, Relative position encoding. , and Represented in three dimensions xyz exist The index in ;
[0111] The relative position encoding interacts with the features in the cross-attention as the position bias in the attention weight, which is calculated as:
[0112] ;
[0113] ;
[0114] ;
[0115] in represents the position bias of the attention weight, Represents the matrix Line List, Indicates OK, Represents the query in the cross attention, which is specifically the word feature here. Represents the key in the cross attention, which is the super point feature here. represents the attention weight, represents a learnable parameter;
[0116] Finally, a multi-layer perceptron (MLP) is used to Prediction position offset , and calculate the word position of the next round of input , and its calculation formula is expressed as:
[0117] ;
[0118] ;
[0119] in Represents a multilayer perceptron.
[0120] Secondly, given that we only have the location information of the target instance, in order to better supervise the location module, we must accurately locate the target word in the target object description text; to solve this problem, we use a preprocessed dependency tree to accurately locate the core noun (usually the subject of the sentence). Based on a more general dependency tree, this paper develops a set of manual rules to enhance the recognition process. The specific process of the algorithm can be found in Figure 2 In step 3 above, after obtaining the word index corresponding to the target instance in the target object description text, the word feature of the target word is extracted. and text position , and then use and Perform matrix multiplication to obtain the response map and instance mask of the target word. The calculation formula is expressed as:
[0121] ;
[0122] ;
[0123] in and Represent the response map of the target word prediction and its corresponding instance mask, respectively. represents the sigmoid function, express The transpose of .
[0124] Furthermore, in step 4 above, for a given real binary mask , first obtain the corresponding superpoint mask by superpoint average pooling , and then in the final response graph The binary cross entropy (BCE) loss function is applied, and its calculation formula is expressed as:
[0125] ;
[0126] ;
[0127] in Indicates that when the mask value is greater than 50%, the value is 1, otherwise it is 0. represents the super-point average pooling operation, Indicates Super Point The binary mask value of represents the binary cross entropy loss, represents the binary cross entropy loss function;
[0128] In order to solve the problem of foreground-background sample imbalance, in the final response map The Dice loss function is applied, and its calculation formula is expressed as:
[0129] ;
[0130] in represents the Dice loss, represents the Dice loss function;
[0131] To monitor the location , using the superpoint center of the target instance calculate , and its calculation formula is expressed as:
[0132] ;
[0133] Additionally, a configurable auxiliary score loss was added for mask quality score prediction , the final training loss function It is expressed as:
[0134] ;
[0135] in , , and They are the coefficients of the four losses, which are set to 1, 1, 0.05 and 0.5 respectively.
[0136] The following are the specific experimental results:
[0137] The invention is trained and tested on the 3D reference dataset ScanRefer, which contains 51,583 natural language expressions involving 11,046 objects in 800 ScanNet scenes. All experiments are implemented in PyTorch and trained on a single NVIDIA Tesla A100 GPU.
[0138] The present invention adopts the average intersection over union (mIoU) and the intersection over union (IoU) ratio. Accuracy (Acc@ IoU) is used as the evaluation indicator, where the intersection over union ratio exceeds The accuracy rate indicates that the IoU of the overlap between the predicted mask and the true annotation is greater than The proportion of description text, .
[0139] See also Figure 5 , the proposed RG-SAN increases mIoU by 5.1% and Acc@0.25 by 7.1% compared to the state-of-the-art single-task model 3DSTMN, which highlights the inference capability of RG-SAN. More detailed tests show that most of these improvements occur in scenarios with multiple interfering instances, where RG-SAN achieves a significant increase of 6.3 points in mIoU. In this setting, the target instances are other instances of the same type, requiring discriminative reasoning of the model. In this case, the significant performance improvement of RG-SAN validates the directional capability enhanced by spatial reasoning in the proposed method.
[0140] It is also important to note that our model performance is compared to multi-task models, which generally benefit from more annotated data. Nonetheless, RG-SAN leads the pack on most metrics for the 3D-RES task, even against the state-of-the-art 3DRefTR-HR. Furthermore, our analysis also includes a comparison of inference time, showing that RG-SAN is only slightly slower (12ms) than the efficient end-to-end 3D-STMN model and faster than all other models, further emphasizing the robustness of RG-SAN in improving performance with minimal computational overhead.
[0141] This paper also conducts a qualitative analysis on the ScanRefer validation set and compares RG-SAN with 3D-STMN, which shows the excellent discrimination ability of RG-SAN. Figure 3 , demonstrating the superior performance of RG-SAN in accurately locating target objects, especially in challenging scenarios that require understanding complex positional relationships described in text. Figure 3 Part (b) in Figure 3 illustrates a scene with a large number of distractors and a complex text description, where 3D-STMN fails, resulting in over-segmentation. In contrast, RG-SAN is able to accurately identify and localize the target object during distractions, achieving higher quality segmentation.
[0142] See also Figure 4Further visualization in shows that the model of the present invention can accurately segment not only the target object, but also other nouns mentioned in the text. 3D-STMN incorrectly classifies all nouns as one target, while RG-SAN can clearly identify and locate each noun. Figure 4 In part (c), our model successfully identifies the target chair by relative positioning even when there are similar objects in the scene, and accurately identifies the coat as a supporting element. This capability extends to Figure 4 In parts (a) and (b) of Figure 1, RG-SAN correctly segments multiple auxiliary nouns into corresponding instances, demonstrating its robust generalization to complex texts and accurate localization of multiple entities. This not only demonstrates RG-SAN’s advanced understanding of relative positional relationships, but also its enhanced ability to handle texts with complex descriptions of such relationships.
[0143] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A three-dimensional directional target segmentation method based on a spatial perception network, characterized in that A rule-guided spatial perception network for end-to-end 3D directional target segmentation is proposed. RG-SAN includes a text-driven localization module and a rule-guided weak supervision strategy, and specifically performs the following steps: Step 1: Feature extraction For a given point cloud data , first use a segmenter to segment the super points, and use average pooling to get the super point position , and then use the pre-trained sparse 3D U-Net and super-point pooling layer to obtain super-point features ; For the target object description text, use the pre-trained MPNet to extract word features , where the subscript Indicates the number of layers; Step 2: Text-driven positioning module For layer 0, first Project to Super point features enhanced in the same dimension , and enhance the word features of layer 0 through dependency-driven interactions Enhanced word features ; Then use the cross attention mechanism to and calculate The spatial probability distribution of each entity in ; then use To update , and get the initial position of each word ; For Layer, according to the word in Text position of the layer and super point position , get the Fourier absolute position encoding of the word Used for Self-attention operation on word features to obtain implicit relative position encoding Used for cross attention operation of super point features and word features; finally, the word features of the next round of input are obtained through residual connection and normalization ,at the same time After a fully connected layer, the position offset of the word is obtained and compared with Add up to get the word position of the next round of input ; Step 3: Rule-guided weak supervision strategy The target word in the target object description text is located by using the text dependency and preset rules. During training, the prediction position corresponding to the target word is supervised with the only target position information. Perform matrix multiplication to obtain the response map of the target word prediction and its corresponding instance mask; Step 4: Training loss Given a real binary mask , first obtain the corresponding superpoint mask by superpoint average pooling ; The final training loss function Four parts are considered - applying the binary cross entropy loss function and the Dice loss function on the final response map to obtain and , the L1 loss function is applied to the target word location under the rule-guided weak supervision strategy to obtain , and add auxiliary score loss Supervise the score prediction of mask quality; The step 1 comprises: Step 1.1 Given a Point cloud data of , and then use the pre-trained sparse 3D U-Net to extract Point-level features of ,in represents the real number space, represents the dimension of the auxiliary feature; then After segmentation, we get Superpoint segmentation results ; Finally, and Directly send it to the super point pooling layer to obtain super point features ; Step 1.2 Given a Words The target object description text is extracted using the pre-trained MPNet Word features of dimension ; The step 2 comprises: Step 2.1 At layer 0, first Project to Super point features enhanced in the same dimension , and enhanced through dependency-driven interactions Enhanced word features , and its calculation formula is expressed as: ; in Represents dependency-driven interactions, and Both represent learnable parameters, express and The characteristic dimension of Afterwards, a cross-attention mechanism is used to estimate The spatial probability distribution of each entity in : ; in and All represent learnable parameters, and the superscript Represents matrix transpose; Then, use To update , and get the initial position of each word , and its calculation formula is expressed as: ; ; in represents a learnable parameter; Step 2.2 In Layer, use the absolute position encoding operation to obtain the Fourier absolute position encoding , and its calculation formula is expressed as: ; in Indicates absolute position encoding operation; Encode the absolute position For the Layer word features Self-attention operation: ; in represents the self-attention operation; Represents the word features updated after self-attention; Quantify the calculated relative position and use it in the positional encoding table Find the corresponding entry in , and its calculation formula is expressed as: ; ; ; in, represents the hyperparameter used for discretization, Indicates a round-down operation. Position code table , which is used to offset discrete values to positive numbers, Relative position encoding. , and Represented in three dimensions xyz exist The index in ; The relative position encoding interacts with the features in the cross-attention as the position bias in the attention weight, which is calculated as: ; ; ; in represents the position bias of the attention weight, Represents the matrix Line List, Indicates OK, represents the query in the cross attention, represents the key in the cross attention, represents the attention weight, represents a learnable parameter; Finally, a multi-layer perceptron is used from Prediction position offset , and calculate the word position of the next round of input , and its calculation formula is expressed as: ; ; in Represents a multilayer perceptron.
2. The three-dimensional directional target segmentation method based on a spatial perception network as claimed in claim 1, characterized in that: In step 3, after obtaining the word index corresponding to the target instance in the target object description text, the word feature of the target word is extracted. and text position , and then use and Perform matrix multiplication to obtain the response map and instance mask of the target word. The calculation formula is expressed as: ; ; in and Represent the response map of the target word prediction and its corresponding instance mask, respectively. represents the sigmoid function, express The transpose of .
3. The three-dimensional directional target segmentation method based on a space perception network as claimed in claim 2, characterized in that: In step 4, for a given real binary mask , first obtain the corresponding superpoint mask by superpoint average pooling , and then in the final response graph The binary cross entropy loss function is applied, and its calculation formula is expressed as: ; ; in Indicates that when the mask value is greater than 50%, the value is 1, otherwise it is 0. represents the super-point average pooling operation, Indicates Super Point The binary mask value of represents the binary cross entropy loss, represents the binary cross entropy loss function; In the final response graph The Dice loss function is applied, and its calculation formula is expressed as: ; in represents the Dice loss, represents the Dice loss function; To monitor the location , using the superpoint center of the target instance calculate , and its calculation formula is expressed as: ; Added settable auxiliary score loss for mask quality score prediction , the final training loss function It is expressed as: ; in , , and They are the coefficients of the four losses, which are set to 1, 1, 0.05 and 0.5 respectively.
