A robot planar grasping detection method based on semantic-geometric collaborative enhancement

By using a hierarchical Swin Transformer encoder and a semantic-geometric co-enhancement module, combined with progressive dynamic sampling decoding and a heatmap-guided joint loss function, the accuracy and stability issues of existing robot planar grasping detection methods in complex scenarios are solved, achieving more efficient grasping center localization and attitude estimation.

CN123181561APending Publication Date: 2026-11-27ANHUI UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611187270.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-06
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing robot planar grasping detection methods struggle to simultaneously achieve global context modeling, local geometric enhancement, high-resolution prediction and recovery, and effective grasping region focusing supervision in complex scenarios. This results in unstable grasping center localization, inaccurate grasping posture estimation, and inaccurate prediction results.

Method used

A hierarchical Swin Transformer encoder combined with a semantic-geometric co-enhancement module is adopted. Through multi-stage hierarchical encoding, semantic-geometric co-enhancement, progressive dynamic sampling decoding, and high-resolution reconstruction module, the global context and local geometric structure are co-enhanced. End-to-end training is performed through a heatmap-guided joint loss function to improve the accuracy and stability of grasping detection.

Benefits of technology

It enhances the discriminative representation ability of grasping-related features, improves the spatial recovery quality of pixel-level prediction maps, reduces the impact of invalid supervision in the background region, and improves the accuracy and stability of robot planar grasping detection. It is suitable for grasping tasks under complex background and occlusion conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181561A_ABST
    Figure CN123181561A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on semantic-geometric synergistic enhancement's robot plane grabbing detection method, belong to robot vision perception and intelligent grabbing technical field, including pre-processing, multi-scale context feature extraction, semantic-geometric synergistic enhancement, predicted feature map recovery, multi-head prediction structure output etc. steps, when model inference, according to the prediction result obtains the grabbing center under image coordinate system, grabbing direction, gripper opening width and grabbing quality score, and is converted into robot executable grabbing pose in combination with camera internal participation hand-eye calibration relationship.The application can improve the reliability of feature expression, predicted map recovery and effective area supervision in robot plane grabbing detection, so as to improve the accuracy and stability of grabbing center positioning, grabbing direction estimation and gripper width prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot visual perception and intelligent grasping technology, specifically to a robot planar grasping detection method based on semantic-geometric co-enhancement. Background Technology

[0002] Robotic grasping detection is a key technology in vision-guided robot operation. Its main task is to determine the graspable area of ​​a target object based on image information acquired by sensors, and further predict parameters such as the center position, grasping direction, and gripper opening width required for grasping. This provides a basis for subsequent grasping planning, motion control, and robotic arm execution. This technology can be widely applied in intelligent manufacturing, warehouse sorting, service robots, human-robot collaboration, and automated assembly, and is of great significance for improving the autonomous operation capability and adaptability to complex environments of robots.

[0003] Existing robot grasping methods mainly include analytical model-based methods and data-driven methods. Early analytical model-based grasping methods typically relied on prior knowledge such as force closure, shape closure, contact analysis, 3D geometric models, and kinematic constraints. They solved for a grasping pose that met stability requirements by modeling the object's surface shape, contact point distribution, and gripper posture. While these methods offer some physical interpretability, they usually require a relatively accurate object geometric model, comprehensive scene perception information, and high computational overhead. When the target object has an irregular shape, significant posture variations, or when there are occlusions, stacking, or background interference in the scene, analytical model-based methods often struggle to obtain stable and reliable grasping results quickly and efficiently.

[0004] With the development of deep learning technology, data-driven robot planar grasping detection methods have gradually become an important direction in research and application. These methods typically use RGB images, depth images, or RGB-D images as input, extracting visual features through convolutional neural networks, Transformer networks, or hybrid architectures combining both, and outputting predicted results such as grasping quality, grasping angle, and gripper width. Among these, pixel-level generative grasping detection methods can directly generate dense prediction results such as grasping quality heatmaps, angle maps, and width maps, offering advantages such as end-to-end training, fast inference speed, and relatively convenient deployment.

[0005] However, existing robot planar grasping and detection methods still have certain shortcomings in complex application scenarios.

[0006] First, the collaborative modeling capability of global contextual information and local geometric structure information is insufficient. Convolutional neural network-based methods can effectively extract local edge, texture, and contour features, but due to the limited receptive field of convolution, their ability to model long-distance dependencies and the overall scene context is relatively weak. While Transformer-based methods can enhance global relationship modeling capabilities, they tend to weaken local high-frequency geometric details during deep feature representation, resulting in insufficient perception of grasping boundaries, corners, slender structures, and regions with changing orientations. Therefore, under conditions of occlusion, stacking, target scale variations, and complex background interference, existing methods are prone to unstable grasping center localization or inaccurate grasping pose estimation.

[0007] Secondly, the utilization of multi-scale hierarchical features is insufficient. Target objects in robot grasping scenarios typically have different shapes, sizes, and surface textures, and may exhibit local occlusion or overlap. Shallow features usually contain more edge, texture, and spatial location information, while deep features contain stronger semantic information and contextual relationships. Although existing methods often employ skip connections, multi-scale fusion, or attention mechanisms to improve feature representation, some methods still fail to fully distinguish the roles of different feature levels in preserving spatial details and semantic abstraction. This leads to insufficient synergistic utilization between shallow local geometric information and deep global semantic information, thus affecting the stability of grasping boundary recovery, grasping direction estimation, and gripper width prediction.

[0008] Third, the quality of high-resolution prediction and reconstruction still needs improvement. Robot planar grasping and detection is a pixel-level dense prediction task, and the spatial reconstruction quality of the final prediction image directly affects the estimation results of the grasping center, grasping direction, and gripper width. Existing methods typically use fixed interpolation, transposed convolution, or conventional upsampling to recover spatial resolution during the decoding stage. These methods mostly amplify features according to fixed rules, lacking adaptive perception capabilities for image content, target boundaries, and gripper contact areas. This easily leads to problems such as blurred boundaries in the grasping quality heatmap, local discontinuities in the angle map, and spatial distortion in the width map, thus affecting the geometric rationality of the predicted grasping rectangle.

[0009] Fourth, the supervised constraints do not adequately focus on the effective grasping region. In pixel-level grasping detection tasks, the truly effective grasping region usually only occupies a small portion of the entire image, while the background and invalid regions account for a higher proportion. If the grasping angle and gripper width regression constraints are uniformly applied across the entire image, it is easy to introduce a large number of invalid gradients from the background region, weakening the model's ability to learn the truly graspable region. Especially under complex backgrounds, target occlusion, multi-target stacking, and non-ideal imaging conditions, this problem can further lead to false detections, grasping direction deviations, or unstable gripper width estimation.

[0010] In summary, existing technologies lack a robot planar grasping and detection method that can simultaneously achieve global context modeling, local geometric enhancement, high-resolution prediction and restoration, and effective grasping region focusing supervision within a unified framework, in order to meet the requirements of robot grasping and detection for accuracy, stability, and engineering applicability. Summary of the Invention

[0011] The technical problem to be solved by this invention is: how to simultaneously take into account global context modeling, local geometric enhancement, high-resolution prediction and recovery, and effective grasping region focusing supervision under a unified framework, so as to meet the requirements of robot grasping detection for accuracy, stability and engineering applicability. This invention provides a robot planar grasping detection method based on semantic-geometric co-enhancement.

[0012] The present invention solves the above-mentioned technical problems through the following technical solution, and the present invention includes the following steps: S1: Acquire RGB-D image data of the robot grasping scene, and preprocess the RGB-D image data to obtain the input image; S2: Input the input image into a hierarchical feature encoder, and obtain multi-scale contextual features, including deep features and shallow features, through multi-stage hierarchical encoding; S3: Input the deep features into the semantic-geometric co-enhancement module, perform semantic enhancement and geometric enhancement on the deep features through the higher-order semantic enhancement branch and the local geometric enhancement branch respectively, and fuse the two enhanced features; S4: The fused enhanced features are input into the progressive dynamic sampling decoder, which introduces shallow features of the corresponding scale through skip connections and restores the spatial resolution step by step through dynamic sampling. S5: Input the decoding features output by the progressive dynamic sampling decoder into the high-resolution reconstruction module, and continuously refine the feature map through multi-level dynamic sampling reconstruction to obtain a high-resolution decoding feature map; S6: Input the high-resolution decoded feature map into the multi-head prediction structure and output pixel-level grasping quality heatmap, grasping angle cosine map, grasping angle sine map and gripper width map; S7: Based on the heatmap-guided joint loss function, perform end-to-end training on the models corresponding to steps S2 to S6; S8: After the model training is completed, input the RGB-D image to be detected into the trained model to obtain the grasping center position, grasping direction, gripper opening width and grasping quality score in the image coordinate system, and convert them into robot grasping pose according to the hand-eye calibration relationship in the camera.

[0013] Furthermore, in step S1, the RGB-D image data includes an RGB image and a depth image; the RGB image and the depth image are registered to the same image coordinate system, and then subjected to size unification, normalization processing, and channel stitching to form a four-channel input image.

[0014] Furthermore, in step S2, the hierarchical feature encoder adopts a Swing Transformer structure, including an image patch segmentation module, a linear embedding module, multiple hierarchical encoding stages, and an image patch merging module connected in sequence. The image patch segmentation module is used to convert the input image into non-overlapping image patches, the linear embedding module is used to map the image patches to token features, the hierarchical encoding stages are used to extract contextual features at different spatial scales, and the image patch merging module is used to reduce spatial resolution and expand channel dimension between each hierarchical encoding stage. Each hierarchical encoding stage alternately uses window multi-head self-attention and shift window multi-head self-attention. Window multi-head self-attention extracts texture, edge, and local structural relationships within a local window, and shift window multi-head self-attention establishes contextual interaction relationships between adjacent windows, thereby obtaining multi-scale contextual features that progressively advance from shallow spatial details to deep semantic information.

[0015] Furthermore, in step S3, the semantic-geometric co-enhancement module includes a parallel high-order semantic enhancement branch and a local geometric enhancement branch. The semantic enhancement branch adopts a StarBlock structure, generates activation maps and numerical maps through parallel mapping, and performs element-wise multiplicative coupling on the activation maps and numerical maps to obtain the first enhanced feature. The local geometric enhancement branch adopts a large kernel selection convolution structure, extracts multi-scale local responses through large kernel depth convolution with different receptive fields, and dynamically weights and fuses the multi-scale local responses according to the spatial selection weights generated by average pooling and max pooling to obtain the second enhanced feature. The two enhanced features are fused and used as the input features of the progressive dynamic sampling decoder.

[0016] Furthermore, in step S4, the progressive dynamic sampling decoder includes a sampling point generator and a multi-level decoding unit; in each level decoding unit, the current decoding feature is fused with the shallow features of the corresponding encoding stage through skip connections, and the sampling offset is predicted by the sampling point generator, and the content adaptive upsampling is performed on the current decoding feature based on the sampling offset.

[0017] Furthermore, in step S5, the high-resolution reconstruction module includes at least two levels of dynamic sampling reconstruction units. The first level of dynamic sampling reconstruction unit is used to complete the initial spatial resolution recovery, and the second level of dynamic sampling reconstruction unit is used to further refine the local spatial position and boundary response, and finally output a high-resolution decoded feature map.

[0018] Furthermore, in step S6, the multi-head prediction structure includes four parallel prediction heads, which are respectively used to output a grasping quality heatmap, a grasping angle cosine graph, a grasping angle sine graph, and a gripper width graph; wherein, the grasping quality heatmap is used to represent the confidence of each pixel position as a grasping center, and is used to determine candidate grasping centers and their corresponding grasping quality scores; the gripper width graph is used to represent the gripper opening width required when performing grasping at each pixel position, and is used to combine the candidate grasping center and the grasping direction angle to generate a planar grasping result in the image coordinate system; the grasping angle is jointly determined by the grasping angle cosine graph and the grasping angle sine graph.

[0019] Furthermore, in step S7, the heatmap-guided joint loss function is specifically as follows: ; in, To capture the quality prediction loss, a constraint is used to capture the quality heatmap. To effectively capture the angle regression loss within the region, a constraint is imposed to determine the difference between the predicted angle components and the true angle components. To effectively capture the gripper width regression loss within the gripping area, a constraint is imposed to determine the difference between the predicted width and the true width. To surrogate the IoU geometric consistency loss, it is used to jointly constrain the gripping direction, gripper opening width, and predict the geometric matching relationship of the gripping rectangle; , , The weighting coefficients for the grab angle regression loss, gripper width regression loss, and surrogate IoU geometric consistency loss are calculated. The effective grab area generates a spatial mask based on the actual grab quality heatmap, and the grab angle regression loss and gripper width regression loss are calculated only within the foreground grab area corresponding to the spatial mask.

[0020] Furthermore, capture quality prediction loss The calculation formula is as follows: ; In this context, p represents the pixel position, and N represents the number of pixels involved in the calculation. This represents the predicted capture quality score at pixel location p. This indicates the corresponding actual crawl quality label. This represents the positive and negative sample balance coefficient. Represents the modulation coefficients of the hard sample; Grab Angle Regression Loss The calculation formula is as follows: ; Gripper width regression loss The calculation formula is as follows: ; in, and Let these represent the cosine and sine components of the predicted grasping angle at pixel position p, respectively. and These represent the corresponding cosine and sine labels for the actual capture angle, respectively. Represents the SmoothL1 loss function; Proxy IoU geometric consistency loss The calculation formula is as follows: ; in, This represents the predicted gripper width at pixel position p. This indicates the corresponding actual gripper width. These represent the predicted grasping direction angle and the actual grasping direction angle, respectively. This represents a constant term to prevent the denominator from being zero.

[0021] Furthermore, in step S8, the model determines candidate grasping centers based on the grasping quality heatmap, and generates planar grasping results in the image coordinate system based on the corresponding grasping angle cosine diagram, grasping angle sine diagram, and gripper width diagram. The planar grasping results are represented as follows: ; in, These are the gripping center position, gripping direction, gripper opening width, and gripping quality fraction; Subsequently, by combining depth information, camera intrinsic parameters, and hand-eye calibration, the planar grasping results in the image coordinate system are converted into grasping poses in the robot coordinate system.

[0022] The present invention has the following advantages over the prior art: 1. Enhance the ability to discriminate and express relevant features. This invention incorporates a semantic-geometric co-enhancement module on top of a hierarchical Swing Transformer encoder. This allows the encoder's deep features to not only retain information about the target and scene context, but also supplement structural information such as grasping boundaries, corners, gripper contact areas, and local orientation changes. Compared to methods that rely solely on convolutional features or single-path Transformer features, this invention improves the feature discriminativeness of grasping-related regions, which is beneficial for the stable prediction of subsequent grasping centers and grasping postures.

[0023] 2. Improve the spatial recovery quality of pixel-level prediction maps This invention employs a progressive dynamic sampling decoder in the decoding stage and sets up a high-resolution reconstruction module at the decoding output. This recovery method no longer relies entirely on fixed interpolation or conventional deconvolution, but instead performs content adaptive recovery of features through learnable sampling positions. This alleviates problems such as blurred prediction map boundaries, local structural distortion, and discontinuous angular distribution, improving the spatial representation quality of the grasping heatmap, grasping angle map, and gripper width map.

[0024] 3. Reduce the impact of ineffective background supervision on the training process. This invention utilizes a real grasping quality heatmap to generate an effective grasping region mask, and limits the calculation of grasping angle regression loss and gripper width regression loss to the effective grasping region. Compared with uniformly applying pose parameter regression constraints across the entire image, this method reduces invalid gradients generated in the background region, allowing model training to focus more on the real graspable region, thereby improving the effectiveness of grasping parameter prediction and training stability.

[0025] 4. Improve the usability of robot planar grasping and detection results This invention outputs a planar five-dimensional grasping representation in the image coordinate system, which can be combined with depth information, camera intrinsic parameters, and hand-eye calibration to convert it into an executable grasping pose in the robot coordinate system. This method improves the accuracy and stability of grasping center localization, grasping direction estimation, and gripper opening width prediction, and enhances the reliability of grasping prediction results under conditions of background texture interference, local occlusion, and changes in image quality. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of the network structure used in the robot planar grasping and detection method based on semantic-geometric co-enhancement and heatmap-guided dynamic recovery in this embodiment of the invention. Figure 2 This is a schematic diagram of the StarBlock structure in the higher-order semantic enhancement branch of this invention. Figure 3 This is a schematic diagram of the structure of the large kernel selection convolution module in the local geometry enhancement branch in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of the dynamic sampling unit in an embodiment of the present invention; Figure 5 This is a visualization diagram of the planar grasping detection results and multi-head prediction graph in an embodiment of the present invention; Figure 6 This is a schematic diagram comparing the crawling and detection results of the method of this invention with existing methods on the Cornell dataset; Figure 7 This is a schematic diagram comparing the crawling and detection results of the method of the present invention and existing methods on the Jacquard_V2 dataset; Figure 8 This is a schematic diagram of the overall process of the method of the present invention. Detailed Implementation

[0027] The embodiments of the present invention are described in detail below. These embodiments are implemented based on the technical solution of the present invention, and provide detailed implementation methods and specific operation processes. However, the scope of protection of the present invention is not limited to the following embodiments.

[0028] Example 1 This embodiment provides a technical solution: a visual perception network for robot planar grasping detection. The network takes an RGB-D image as input and outputs pixel-level predictions of grasping quality, grasping direction, and gripper opening width. The overall structure is as follows... Figure 1 As shown, the model includes a hierarchical Swin Transformer-based Encoder, a semantic-geometric co-enhancement module (ASGE Neck), a progressive dynamic sampling decoder (PDS Decoder), a high-resolution reconstruction module (HRR Module), a multi-head prediction structure, and a heatmap-guided joint training module (ComputeLoss). These modules are connected in the order of encoding, enhancement, reconstruction, prediction, and training constraints to form an end-to-end robot planar grasping and detection model.

[0029] In this embodiment, the RGB-D input image consists of an RGB image and a depth image. The RGB image provides the target's appearance, texture, and edge information, while the depth image provides the target's contour, spatial structure, and distance information. The two images are concatenated via channels to form the network input. in, Represents a three-channel RGB image. I represents a single-channel depth image, H represents the stitched four-channel RGB-D input image, and H and W represent the height and width of the input image, respectively.

[0030] In this embodiment, the hierarchical Swin Transformer encoder includes an image block partitioning module ( Figure 1 Patch Partition and linear embedding module (in Figure 1 Linear Embedding in (multi-level coding stages) Figure 1 Stage 0, Stage 1, Stage 2, and Stage 3) and the image patch merging module ( Figure 1The Patch Merging module in the image is used to convert the input image into non-overlapping image patches. The linear embedding module is used to map image patches to token features. The hierarchical encoding stage is used to extract context features at different spatial scales. The image patch merging module is used to reduce spatial resolution and expand channel dimensions between stages.

[0031] In this embodiment, window multi-head self-attention is used alternately within each level of the encoding stage. Figure 1 W-MSA within the middle SwinTransformer Block and multi-head self-attention of shift windows ( Figure 1 The Swin TransformerBlock internals utilize SW-MSA. Multi-head self-attention within a window is used to model texture, edge, and local structural relationships within a local window; shifted-window multi-head self-attention is used to establish information interaction between adjacent local windows, enabling local window features to acquire cross-regional contextual information. The hierarchical Swin Transformer encoder outputs multi-level features at different encoding stages. Shallow features primarily preserve details such as edges, textures, and spatial locations, while deep features primarily represent the target structure and scene contextual information. Subsequent decoding stages introduce shallow features of corresponding scales through skip connections to supplement spatial details and improve the quality of predicted map reconstruction.

[0032] In this embodiment, the semantic-geometric co-enhancement module is positioned between the encoder and the decoder, such as... Figure 1 As shown in the ASGE Neck diagram, this module further enhances the deep features output by the encoder. The token features output by the encoder are first converted into two-dimensional feature maps through Reshape and Permute operations, and then input into StarNetPath and LSKNet Path respectively. StarNet Path is used to enhance the deep semantic response, and LSKNet Path is used to supplement local geometric structure information. The two outputs are fused and then sent to the subsequent decoder.

[0033] In this embodiment, the fusion process of the semantic-geometric co-enhancement module is represented as follows: in, These are the outputs of the StarNet Path and the LSKNet Path, respectively. This represents the fusion mapping process consisting of linear mapping, activation, and normalization. This indicates a splicing operation.

[0034] In this embodiment, as Figure 2As shown, the StarNet Path comprises at least one StarBlock. In a preferred embodiment, the StarNet Path comprises two StarBlocks connected in series. Each StarBlock includes a depthwise convolutional unit (...). Figure 2 The DwConvBN 7×7 and DwConv2 7×7 in the middle), parallel 1×1 mapping unit ( Figure 2 The two Conv 1×1), multiplicative modulation unit ( Figure 2 The ReLU6, Act Map, Value Map, and Star Operation in the output mapping unit ( Figure 2 ConvBN 1×1) and residual connection unit ( Figure 2 The structure consists of a residual branch connected to the input node and an adder node. A deep convolutional unit extracts the local response of the input features; a parallel 1×1 mapping unit generates the Act Map and Value Map; a multiplicative modulation unit performs element-wise multiplication on the Act Map and Value Map; an output mapping unit performs channel reshaping on the modulated features; and a residual connection unit maintains stable transmission of input information. Through this structure, StarBlock can enhance the nonlinear semantic response of the target subject region with relatively low parameter overhead.

[0035] In this embodiment, as Figure 3 As shown, the LSKNet Path employs a large kernel selection convolutional structure, including multi-scale large kernel depthwise convolutional units ( Figure 3 In the DwConv 5×5 and DwConv 7×7, dilation=3), spatial selection description generation unit ( Figure 3 The Conv 1×1, Concat, Channel AvgPool, Channel MaxPool, and dynamic gating fusion unit (in the context of the Conv 1×1, Concat, Channel AvgPool, and Channel MaxPool) Figure 3 The Conv_squeeze 7×7, Sig1, Sig2 and Gated Fusion and the self-gated output unit ( Figure 3 The network consists of Conv 1×1, Self-Gating, and terminal multiplicative modulation nodes. The multi-scale large-kernel deep convolutional unit includes 5×5 deep convolutions and 7×7 deep convolutions with a dilation rate of 3, used to capture local responses under different receptive fields. The spatial selection description generation unit extracts spatial selection information through average pooling and max pooling. The dynamic gating fusion unit generates weights based on the spatial selection information and performs weighted fusion of responses at different scales. The self-gated output unit gates and combines the fused local geometric responses with the input features. Through this branch, the network can enhance its ability to capture the representation of boundaries, corners, elongated structures, and regions with changing orientations.

[0036] In this embodiment, as Figure 1 As shown, the progressive dynamic sampling decoder includes multiple decoding stages. Each decoding stage receives the decoded features output from the previous stage and introduces shallow features of the corresponding scale from the encoder through skip connections. After introducing shallow features, the current decoded features contain deep semantic information and shallow spatial detail information, which are then processed by the Swin decoding unit (…). Figure 1 The Swing Decoder Layers 1-3 and the dynamic sampling unit (in the text) Figure 1 The feature recovery is completed using DySample.

[0037] In this embodiment, as Figure 4 As shown, the dynamic sampling unit includes a sampling point generator ( Figure 4 The sampling point generator and dynamic offset generator are mentioned. Figure 4 The sampling point generator (Dynamic generation) and sampling set construction unit ( Figure 4 The Sampling set and Grid Sample cell (in the text) Figure 4 (Grid Sample). The sampling point generator generates samples according to a preset upsampling ratio. Uniformly generate around each spatial location of the input feature map 1 initial sub-sampling point, as the initial sampling position of the rule. Dynamic offset generator predicts sampling offset The sampling set construction unit superimposes the predicted offset with the regular sampling position to obtain the dynamic sampling set. The Grid Sampl unit performs feature resampling based on the dynamic sampling set. The dynamic sampling position can be represented as... .

[0038] In this embodiment, the high-resolution reconstruction module is positioned after the progressive dynamic sampling decoder (here, "high" refers to a higher resolution than the lower resolution decoding features output by the PDS Decoder), such as... Figure 1 The HRR Module is shown in the diagram. This module includes at least two levels of dynamic sampling and reconstruction units for continuously refining the final decoded features. The first level of dynamic sampling and reconstruction unit is used to complete the initial spatial reconstruction, and the second level of dynamic sampling and reconstruction unit is used to further refine the local spatial location and boundary response.

[0039] In this embodiment, the dynamic sampling reconstruction unit in the high-resolution reconstruction module adopts the same as... Figure 4The core structures of the dynamic sampling units shown are the same, but their positions and functions differ. The dynamic sampling unit in the PDS decoder is used for progressive resolution recovery between adjacent decoding stages, while the dynamic sampling reconstruction unit in the HRR module is located after the PDS decoder. Through two consecutive stages of 2x dynamic upsampling, it further refines the final decoded features and restores them to the input image resolution.

[0040] In this embodiment, the multi-head prediction structure is positioned after the high-resolution reconstruction module and includes four parallel prediction heads, corresponding to grasping quality prediction, grasping angle cosine prediction, grasping angle sine prediction, and gripper width prediction, respectively. The heatmap-guided joint training module is used for end-to-end optimization of the model (a visual perception network for robot planar grasping detection). Figure 1 As shown in the Compute Loss section, this module includes grab quality prediction loss, grab angle regression loss, gripper width regression loss, and surrogate IoU geometric consistency loss. The total loss function is expressed as: in, To capture the quality prediction loss, a constraint is used to capture the quality heatmap. To effectively capture the angle regression loss within the region, a constraint is imposed to determine the difference between the predicted angle components and the true angle components. To effectively capture the gripper width regression loss within the gripping area, a constraint is imposed to determine the difference between the predicted width and the true width. To surrogate the IoU geometric consistency loss, it is used to jointly constrain the gripping direction, gripper opening width, and predict the geometric matching relationship of the gripping rectangle; , , The weighting coefficients for the grasping angle regression loss, gripper width regression loss, and surrogate IoU geometric consistency loss can be preset according to the relative importance of each loss term in grasping center localization, grasping direction estimation, gripper width prediction, and geometric consistency constraints, and can be adjusted according to the training data distribution, model convergence status, and actual application requirements.

[0041] In this embodiment, the heatmap-guided joint training module generates an effective crawling region mask based on the actual crawling quality heatmap: ,in Indicates pixel position, This represents a heatmap showing the actual captured quality. This represents the foreground threshold, ensuring that the grasping angle regression loss and gripper width regression loss are calculated only within the effective grasping area. The multi-head prediction results during the model inference phase are as follows: Figure 5 As shown.

[0042] In this embodiment, after the model training is completed, the robot's planar grasping detection model determines candidate grasping centers based on the grasping quality heatmap. Specifically, in the grasping quality heatmap... The location with the highest response value or the location with a response value greater than a preset threshold is selected as the candidate crawling center. And read the cosine value of the grab angle corresponding to that position. Grasping angle sine value and gripper width prediction value .

[0043] The gripping direction angle is expressed as: The capture quality score is expressed as: The gripper opening width is expressed as: When the gripper width map is output in a normalized form, it will be based on the preset maximum gripper width or image scale. Restore the pixel width to the image coordinate system or the actual opening width of the robot gripper.

[0044] Therefore, the planar grasping result in the image coordinate system is represented as a quintuple: in, and This represents the horizontal and vertical pixel coordinates of the capture center in the image coordinate system. Indicates the grab direction. Indicates the width of the gripper opening. This represents the quality score of the captured data. Equivalently, it can also be represented as... ,in .

[0045] Subsequently, by combining depth information, camera intrinsic parameters, and hand-eye calibration, the planar grasping result in the image coordinate system is converted into an executable grasping pose in the robot coordinate system. Specifically, the grasping center is read from the depth map. The depth value Z at that location is determined using camera intrinsics. By back-projecting the pixel coordinates onto the camera coordinate system, we obtain the 3D points in the camera coordinate system: Let the extrinsic transformation matrix from the camera coordinate system obtained by hand-eye calibration to the robot base coordinate system be: Then the position of the grasping center in the robot's base coordinate system is represented as: Simultaneously, based on the rotational relationship between the camera coordinate system and the robot base coordinate system, the grasping direction in the image coordinate system is determined. This is converted into the grasping posture of the robot's end effector and combined with the predicted gripper opening width. and capture quality score Generate an executable grasping pose in the robot coordinate system.

[0046] Example 2 This embodiment provides a robot planar grasping detection method based on semantic-geometric co-enhancement and heatmap-guided dynamic recovery. This method is designed for planar grasping detection tasks under RGB-D image input conditions, aiming to predict grasping quality, grasping direction, and gripper opening width from the input image, and further generate a planar grasping configuration in the image coordinate system.

[0047] This embodiment uses two publicly available robot grasping datasets to independently validate the method: the Cornell dataset and the Jacquard_V2 grasping dataset. The Cornell dataset contains 1,035 RGB-D images and 8,019 grasping labels from real-world scenes; the Jacquard_V2 dataset contains a large number of RGB-D grasping samples generated from a simulation environment, including approximately 54,000 RGB-D images and over 1.1 million grasping annotations. Its scenes and targets are more complex, and its sample size is larger, making it suitable for evaluating the model's training effectiveness and detection performance in large-scale pixel-level grasping detection tasks. The two datasets are trained and tested independently without sample mixing to ensure the independence and comparability of the evaluation results.

[0048] In this embodiment, the model training, supervised label construction, inference process, and evaluation method are illustrated using the Jacquard_V2 dataset as an example. First, the RGB and depth images from the Jacquard_V2 dataset are used as model inputs. The gripping rectangle annotations provided in the dataset are converted into a gripping quality heatmap, a gripping angle cosine graph, a gripping angle sine graph, and a gripper width graph. The gripping rectangle annotations are not object detection boxes in object detection tasks, but rather rotated rectangle annotations describing the gripping configuration in the parallel gripper plane, including information such as the gripping center position, gripping direction angle, gripper opening width, and rectangle height.

[0049] The specific transformation process is as follows: For the first Each rectangle is labeled for grabbing, and its center is denoted as . ( This represents the coordinates of the crawl center during the supervised label construction phase; during the model inference phase, the candidate crawl center is uniformly denoted as... The grabbing direction angle is The gripper opening width is The corresponding effective crawling area is Based on the center of the grab rectangle Or capture the valid area inside the rectangle Generate a realistic heatmap of crawl quality This results in a higher response from the capture center and its neighborhood, while the background area has a lower or zero response.

[0050] Within the effective capture area Internally, the grasping direction angle is encoded into a cosine graph and a sine graph of the actual grasping angle: Where p represents the pixel position, using and This characterizes the gripping direction to reduce periodic ambiguity in the gripping direction of parallel grippers. Simultaneously, the gripper opening width is incorporated into the actual gripper width map. When the width tag is normalized, Write after normalization according to the preset maximum gripper width or image scale. For background pixels that do not belong to the valid grasping area, their grasping quality label is set to low response or zero response, and the grasping angle label and gripper width label are not included in the regression loss calculation. When the same pixel is covered by multiple grasping rectangles, the grasping rectangle with higher grasping quality response or closer to the grasping center is preferred for generating supervision labels.

[0051] During training, the network outputs a corresponding pixel-level grasping prediction map based on the input RGB-D image, and uses a heatmap to guide the end-to-end optimization of the joint objective function. After model training is complete, the grasping detection accuracy is calculated using a rectangular grasping evaluation metric on the Jacquard_V2 test set.

[0052] Specifically, during the construction of the supervision labels, each capture rectangle label is converted into a four-class supervision graph corresponding to the network output, which can be represented as: in, A heatmap representing the actual capture quality is used to mark locations in the image that can serve as capture centers. These represent the cosine graph and sine graph of the actual gripping angle, respectively, used to describe the gripping direction of the gripper; This diagram shows the actual gripper width, used to describe the required gripper opening width at the corresponding position. Because the parallel gripper gripping direction has... Symmetry is utilized by employing both sine and cosine components to represent the grasping angle, which reduces the discontinuity at periodic boundaries when directly regressing angle values. During model training, the input RGB-D image is forward-propagated through the network to obtain the prediction result, which is then compared with the supervision label. The corresponding loss is calculated, and the network parameters are updated through backpropagation.

[0053] In this embodiment, the model is trained using a heatmap-guided joint objective function. The joint objective function includes a grasp quality prediction loss, a grasp angle regression loss, a gripper width regression loss, and a geometric consistency loss, and its overall form is as follows: The crawling quality prediction loss is used to constrain the crawling quality heatmap, ensuring the model produces a higher response in truly crawlable areas and a lower response in non-crawling areas. This loss can be expressed in a hard-sample weighted form as follows: Where p represents the pixel position and N represents the number of pixels involved in the calculation. This represents the predicted capture quality score at pixel location p. This indicates the corresponding actual crawl quality label. This represents the positive and negative sample balance coefficient. This represents the modulation coefficients of the hard samples. To reduce interference from the background region on the regression of the grasping angle and gripper width, this embodiment generates an effective grasping region mask based on the actual grasping quality heatmap.

[0054] It should be noted that "hard samples" refer to pixel samples whose current model predictions differ significantly from the actual crawling quality labels, or which are easily misclassified as crawlable or non-crawling regions. Conversely, "easy samples" refer to pixel samples that the model has been able to predict correctly with high confidence. By introducing modulation coefficients to reduce the loss contribution of easy samples, the relative contribution of hard samples to the overall loss is increased, thereby guiding the model to pay more attention to pixel samples that are difficult to distinguish, and making the model focus more on learning to distinguish between the actual crawlable regions and their neighboring regions.

[0055] The gripping angle regression loss is used to constrain the difference between the predicted angle component and the true angle component; the gripper width regression loss is used to constrain the difference between the predicted width and the true width. Both are calculated within the effective gripping area.

[0056] The regression loss for the capture angle is expressed as: The gripper width regression loss is expressed as: in, and Let these represent the cosine and sine components of the predicted grasping angle at pixel position p, respectively. and These represent the corresponding cosine and sine labels for the actual capture angle, respectively. This represents the SmoothL1 loss function.

[0057] Furthermore, the surrogate IoU geometric consistency loss is used to jointly constrain the geometric matching relationship between the gripping direction, the gripper opening width, and the predicted gripping rectangle. Unlike calculating only the angle regression loss and width regression loss separately, this loss simultaneously considers the closeness between the predicted gripper width and the actual gripper width, as well as the consistency between the predicted gripping direction and the actual gripping direction within the effective gripping area, thereby approximately constraining the overlap relationship between the predicted gripping rectangle and the actual gripping rectangle. It can be expressed as: in, This represents the predicted gripper width at pixel position p. This indicates the corresponding actual gripper width. These represent the predicted grasping direction angle and the actual grasping direction angle, respectively. This represents a constant term to prevent the denominator from being zero. Through this loss, the model not only optimizes the direction and width separately during training, but also further constrains their overall coordination within the predicted grasping rectangle.

[0058] After model training is complete, RGB-D images from the test set are input into the trained model to obtain a grasping quality heatmap, a grasping angle cosine graph, a grasping angle sine graph, and a gripper width graph. During inference, the location with the highest response value or above a preset threshold is first selected as a candidate grasping center based on the grasping quality heatmap; then, the angle component and width prediction value corresponding to that location are read; finally, the results are combined to obtain the planar grasping result in the image coordinate system.

[0059] To verify the effectiveness of the method of this invention, this embodiment uses a rectangular grasping evaluation metric to statistically measure the grasping detection accuracy, and selects existing robot planar grasping detection methods based on convolutional networks, attention mechanisms, Transformers, and hybrid architectures as comparison objects. The Cornell grasping dataset is used to evaluate the model's grasping detection performance under real-world image acquisition conditions, and the Jacquard_V2 dataset is used to evaluate the model's detection performance on large-scale RGB-D grasping samples. Experimental results are shown in Tables 1 and 2, and the visualization results of single-sample multi-head prediction are shown in Tables 1 and 2. Figure 5 As shown, the grabbing detection results and grabbing quality heatmaps of different methods are compared. Figure 6 and Figure 7As shown in the figure, the predicted grab rectangle and grab quality heatmap are displayed simultaneously. The grab quality heatmap is used to indicate the feasibility of each pixel location as a grab center, and the high-response region corresponds to the candidate grab center region predicted by the model. Tables 1 and 2 show that the method of this invention achieves good grab detection accuracy on both publicly available grab datasets; Figure 6 and Figure 7 As can be seen, compared with existing methods, the grabbing quality heatmap generated by the method of the present invention has a more concentrated high response distribution in the target grabbable area, and the predicted grabbing rectangle has good consistency with the target local structure and the high response area of ​​the heatmap, indicating that the method of the present invention can generate the prediction results of grabbing center, grabbing direction and gripper opening width relatively stably.

[0060] To evaluate the capture detection results of the method of the present invention, this embodiment uses a rectangular capture evaluation index to statistically analyze the capture detection accuracy. Let the predicted capture rectangular region be... The actual captured rectangular area is When the intersection-over-union (IoU) ratio between the predicted and actual grasped rectangles is greater than a preset IoU threshold, and the angular deviation between their grasping directions is less than a preset angular threshold, the predicted grasped rectangle is determined to be a valid grasp. The IoU ratio can be expressed as: in, This represents the area of ​​the intersection region between the two. This represents the area of ​​the union region of the two. In the preferred embodiment, the preset intersection-union ratio threshold is 25%, and the preset angle threshold is 30°.

[0061] Table 1. Performance comparison of the proposed method with existing methods on the Cornell dataset for crawling detection. In Table 1 above, IW represents the image-level segmentation accuracy, and OW represents the object-level segmentation accuracy.

[0062] Table 2. Comparison of crawling and detection performance between the method of the present invention and existing methods on the Jacquard_V2 dataset. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A robot planar grasping and detection method based on semantic-geometric co-enhancement, characterized in that, Includes the following steps: S1: Acquire RGB-D image data of the robot grasping scene, and preprocess the RGB-D image data to obtain the input image; S2: Input the input image into a hierarchical feature encoder, and obtain multi-scale contextual features, including deep features and shallow features, through multi-stage hierarchical encoding; S3: Input the deep features into the semantic-geometric co-enhancement module, perform semantic enhancement and geometric enhancement on the deep features through the higher-order semantic enhancement branch and the local geometric enhancement branch respectively, and fuse the two enhanced features; S4: The fused enhanced features are input into the progressive dynamic sampling decoder, which introduces shallow features of the corresponding scale through skip connections and restores the spatial resolution step by step through dynamic sampling. S5: Input the decoding features output by the progressive dynamic sampling decoder into the high-resolution reconstruction module, and continuously refine the feature map through multi-level dynamic sampling reconstruction to obtain a high-resolution decoding feature map; S6: Input the high-resolution decoded feature map into the multi-head prediction structure and output pixel-level grasping quality heatmap, grasping angle cosine map, grasping angle sine map and gripper width map; S7: Based on the heatmap-guided joint loss function, perform end-to-end training on the models corresponding to steps S2 to S6; S8: After the model training is completed, input the RGB-D image to be detected into the trained model to obtain the grasping center position, grasping direction, gripper opening width and grasping quality score in the image coordinate system, and convert them into robot grasping pose according to the hand-eye calibration relationship in the camera.

2. The robot planar grasping and detection method based on semantic-geometric co-enhancement as described in claim 1, characterized in that, In step S1, the RGB-D image data includes an RGB image and a depth image; the RGB image and the depth image are registered to the same image coordinate system, and then subjected to size unification, normalization processing and channel stitching to form a four-channel input image.

3. The robot planar grasping and detection method based on semantic-geometric co-enhancement as described in claim 1, characterized in that, In step S2, the hierarchical feature encoder adopts a Swing Transformer structure, including an image patch segmentation module, a linear embedding module, multiple hierarchical encoding stages, and an image patch merging module connected in sequence. The image patch segmentation module is used to convert the input image into non-overlapping image patches, the linear embedding module is used to map the image patches to token features, the hierarchical encoding stages are used to extract contextual features at different spatial scales, and the image patch merging module is used to reduce spatial resolution and expand channel dimension between each hierarchical encoding stage. Each hierarchical encoding stage alternately uses window multi-head self-attention and shift window multi-head self-attention. Window multi-head self-attention extracts texture, edge, and local structural relationships within a local window, and shift window multi-head self-attention establishes contextual interaction relationships between adjacent windows, thereby obtaining multi-scale contextual features that progressively advance from shallow spatial details to deep semantic information.

4. The robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 3, characterized in that, In step S3, the semantic-geometric co-enhancement module includes a parallel high-order semantic enhancement branch and a local geometric enhancement branch. The semantic enhancement branch adopts a StarBlock structure, generates activation maps and numerical maps through parallel mapping, and performs element-wise multiplicative coupling on the activation maps and numerical maps to obtain the first enhanced feature. The local geometric enhancement branch adopts a large kernel selection convolution structure, extracts multi-scale local responses through large kernel depth convolution with different receptive fields, and dynamically weights and fuses the multi-scale local responses according to the spatial selection weights generated by average pooling and max pooling to obtain the second enhancement feature. The two enhanced features are fused and used as input features for the progressive dynamic sampling decoder.

5. The robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 4, characterized in that, In step S4, the progressive dynamic sampling decoder includes a sampling point generator and a multi-level decoding unit. In each level of the decoding unit, the current decoding feature is fused with the shallow features of the corresponding encoding stage through a skip connection, and the sampling offset is predicted by the sampling point generator. Based on the sampling offset, the current decoding feature is adaptively upsampled.

6. The robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 5, characterized in that, In step S5, the high-resolution reconstruction module includes at least two levels of dynamic sampling reconstruction units. The first level of dynamic sampling reconstruction unit is used to complete the initial spatial resolution recovery, and the second level of dynamic sampling reconstruction unit is used to further refine the local spatial position and boundary response, and finally output a high-resolution decoded feature map.

7. The robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 6, characterized in that, In step S6, the multi-head prediction structure includes four parallel prediction heads, which are used to output a grasping quality heatmap, a grasping angle cosine graph, a grasping angle sine graph, and a gripper width graph, respectively. The grasping quality heatmap represents the confidence level of each pixel location as a grasping center and is used to determine candidate grasping centers and their corresponding grasping quality scores. The gripper width graph represents the gripper opening width required for grasping at each pixel location and is used to combine the candidate grasping centers and the grasping direction angle to generate a planar grasping result in the image coordinate system. The grasping angle is determined jointly by the grasping angle cosine graph and the grasping angle sine graph.

8. A robot planar grasping and detection method based on semantic-geometric co-enhancement as described in claim 1 or 7, characterized in that, In step S7, the heatmap-guided joint loss function is as follows: ; in, To capture the quality prediction loss, a constraint is used to capture the quality heatmap. To effectively capture the angle regression loss within the region, a constraint is imposed to determine the difference between the predicted angle components and the true angle components. To effectively capture the gripper width regression loss within the gripping area, a constraint is imposed to determine the difference between the predicted width and the true width. To surrogate the IoU geometric consistency loss, it is used to jointly constrain the gripping direction, gripper opening width, and predict the geometric matching relationship of the gripping rectangle; , , The weighting coefficients for the grab angle regression loss, gripper width regression loss, and surrogate IoU geometric consistency loss are calculated. The effective grab area generates a spatial mask based on the actual grab quality heatmap, and the grab angle regression loss and gripper width regression loss are calculated only within the foreground grab area corresponding to the spatial mask.

9. A robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 8, characterized in that, Capture quality prediction loss The calculation formula is as follows: ; In this context, p represents the pixel position, and N represents the number of pixels involved in the calculation. This represents the predicted capture quality score at pixel location p. This indicates the corresponding actual crawl quality label. This represents the positive and negative sample balance coefficient. Represents the modulation coefficients of the hard sample; Grab Angle Regression Loss The calculation formula is as follows: ; Grip width regression loss The calculation formula is as follows: ; in, and Let these represent the cosine and sine components of the predicted grasping angle at pixel position p, respectively. and These represent the corresponding cosine and sine labels for the actual capture angle, respectively. Represents the Smooth L1 loss function; Proxy IoU geometric consistency loss The calculation formula is as follows: ; in, This represents the predicted gripper width at pixel position p. This indicates the corresponding actual gripper width. These represent the predicted grasping direction angle and the actual grasping direction angle, respectively. This represents a constant term to prevent the denominator from being zero.

10. A robot planar grasping and detection method based on semantic-geometric co-enhancement according to claim 9, characterized in that, In step S8, the model determines candidate grasping centers based on the grasping quality heatmap, and generates planar grasping results in the image coordinate system based on the corresponding grasping angle cosine diagram, grasping angle sine diagram, and gripper width diagram. The planar grasping results are represented as follows: ; in, These are the gripping center position, gripping direction, gripper opening width, and gripping quality fraction; Subsequently, by combining depth information, camera intrinsic parameters, and hand-eye calibration, the planar grasping results in the image coordinate system are converted into grasping poses in the robot coordinate system.