Method for predicting container interaction component attributes based on neural network
By using deformable convolution layers, decoupled detection heads and Wise-IoU loss functions in neural networks, combined with rich robot perspective data sets, the shortcomings of convolution kernels and detection heads and data set defects in the existing technology are solved. It achieves accurate identification and efficient detection of attributes of container interactive components.
Patent Information
- Application Number
- CN202410721372.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, conventional convolution kernels perform poorly in scenes with dramatic changes in target shape. Coupled detection heads lead to slower convergence and reduced detection accuracy. The limitation of low-quality bounding boxes by the CIoU loss function may lead to reduced detection effects. Moreover, existing data sets fail to provide complete information required for robot operation, resulting in poor practical application results.
Use deformable convolutional layers, decoupled detection heads and Wise-IoU loss functions to improve the gradient gain of the network through the attention mechanism and dynamic focusing mechanism, reduce the impact of high-quality and low-quality bounding boxes on network optimization, and create robots that contain A dataset of perspective-acquired images that provides information on interactive parts and motion types.
It achieves accurate identification of the attributes of container interactive components, improves detection accuracy and success rate, and enhances the generalization and practical application effect of the model.
Smart Images

Figure CN118586451A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to a method for predicting properties of container interaction components based on a neural network. Background Art
[0002] As artificial intelligence enters the field of housekeeping services, robots need to be able to identify interactive parts of containers, such as handles and switches. In the existing technology, YOLOv7 can be used to identify interactive parts. However, the following defects exist in the process of using YOLOv7's conventional convolution kernel, coupled detection head, and CIoU loss function to build a neural network for intelligent recognition:
[0003] Conventional convolution kernel: Conventional rectangular convolution kernels perform poorly in scenes where the target shape changes dramatically, resulting in poor network detection results;
[0004] Coupled detection head: YOLOv7 uses the same module to complete bounding box regression and category classification tasks. The coupling of the two not only slows down the convergence speed, but also reduces the detection accuracy.
[0005] CIoU loss function: CIoU is used in YOLOv7 to measure overlap loss, which limits the difference in the center point and aspect ratio between the predicted bounding box and the true bounding box, thereby improving the accuracy of the prediction. However, the dataset often contains low-quality bounding boxes. If the predicted bounding box is forcibly restricted to be close to the low-quality bounding box, the detection effect of the model may decrease;
[0006] Datasets of openable containers: Existing relevant datasets fail to provide complete information required for robot operation, which requires additional planning when operating the robot. At the same time, the datasets do not contain images obtained from the robot's perspective, and the actual application effect of the networks trained using these datasets is poor. Summary of the invention
[0007] In order to solve the shortcomings of the prior art and achieve the purpose of accurately identifying the properties of container interaction components, the present invention adopts the following technical solutions:
[0008] A method for predicting the properties of container interactive components based on a neural network, wherein the neural network includes a backbone network and a head network, wherein the backbone network is used for feature extraction, and the head network fuses the features extracted at each stage and predicts the bounding box and category through the detection head, and includes the following steps:
[0009] Step S1, setting the convolution layers of the backbone network and the head network as deformable convolution layers, learning an offset for the convolution kernel of each pixel at each position, so that different feature maps use different convolution kernels to automatically adjust the receptive field so that it has the ability to sense objects of different scales;
[0010] Step S2: using a decoupled detection head to separate the prediction of the bounding box and the category prediction, thereby achieving decoupling and improving the success rate of the domestic service robot in predicting the interactive attributes of the openable container;
[0011] Step S3, constructing a loss function to train a neural network, wherein the loss function Wise-IoU that dynamically focuses on the normal quality bounding box is used to measure the overlap loss, and the gradient gain of the normal quality bounding box on the network is jointly improved through the attention mechanism and the dynamic focusing mechanism, and the influence of the high quality bounding box and the low quality bounding box on the network optimization is reduced;
[0012] Step S4: Create an openable container interactive attribute perception data set for neural network training, and use the trained neural network to predict the attributes of the container interactive components.
[0013] Furthermore, in step S1, the calculation formula of the deformable convolution is:
[0014]
[0015] Among them, y(p0) represents the value of the output feature map at position p0, w(p n ) indicates that the convolution kernel is at position p n The weight of x(p0+p n +Δp n ) indicates that the input feature map is at position p0+p n +Δp n The value of n Adjusted sampling position.
[0016] Furthermore, while increasing the perception of objects of different shapes, the offset module will also introduce too many irrelevant features, affecting the detection accuracy of the model. Therefore, it is necessary to evaluate the importance of different sampling positions in the feature extraction process and reduce the impact of irrelevant pixels on the final result. A weight coefficient Δm is learned for each position of the convolution kernel of the deformable convolution, Δm∈[0,1]. The calculation formula of the deformable convolution is:
[0017]
[0018] Furthermore, in step S2, the input features first pass through a CBS module with a convolution kernel of 1×1, and then are passed into the two branches. The features passed into branch one first pass through a convolution module with a convolution kernel of 3×3 to extract features, and then a CBM module is used to predict the category. The features passed into branch two first pass through a convolution module with a convolution kernel of 3×3 to extract features, and then a CBM module is used to predict the bounding box and target confidence respectively.
[0019] Furthermore, in step S3, a loss function L of a two-layer attention mechanism is constructed. WIoUv1 , the formula is as follows:
[0020] L WIoUv1 =R WIoU L IoU
[0021]
[0022] Among them, x and y represent the center coordinates of the predicted bounding box, x gt ,y gt Represents the true center coordinates of the bounding box, W g , H g Represents the width and height of the intersection of the predicted and true bounding boxes, R WIoU ∈[1,e) represents the range of weighted parameters, which can enlarge the L on the normal quality bounding box IOU value, e represents the base of natural logarithm, L IoU ∈[0,1] represents the loss function of the overlap between the predicted bounding box and the true bounding box, which can reduce the R of the high-quality bounding box. WIoU , and when the predicted bounding box and the true bounding box have a high overlap, the focus on the distance between the two center points is reduced. While reducing the penalty for distance errors in low-quality samples, the penalty for situations where the predicted bounding box and the true bounding box have a good overlap is also weakened.
[0023] Furthermore, in step S3, a non-monotonic focusing mechanism is used to improve the attention paid to common samples, and the outlier degree is used to describe the quality of the bounding box. The outlier degree is defined as:
[0024]
[0025] in, Represents the optimized IoU value, It represents a sliding average weighted by the momentum parameter m. A small outlier corresponds to a high bounding box quality, and a small gradient gain is assigned to it, so that the neural network focuses on regressing bounding boxes of normal quality. A large outlier corresponds to a low bounding box quality, and a low gradient gain is assigned to it, which can prevent low-quality samples from generating large harmful gradients.
[0026] Furthermore, the outlier degree β is used to construct a non-monotonic focusing coefficient r and is combined with the loss function L WIoUv1 Combined, we get the loss function L of the new attention mechanism WIoUv2 :
[0027]
[0028] L WIoUv2 =rLWIoUv1
[0029] Among them, α and δ represent hyperparameters. Only when the outlier degree of the bounding box β = C, C is a constant, and the gradient gain of the bounding box is the largest. During the training process, the evaluation index of the bounding box quality increases with Dynamically changes and dynamically allocates gradient gains according to the quality of the bounding box.
[0030] Furthermore, the interactive attribute perception dataset of the openable container in step S4 includes information on interactive components and motion type information of movable components required for the operation of the domestic robot;
[0031] Classification of movable parts based on motion type: In addition to marking the interactive parts, the movable parts are divided into translational parts and rotational parts according to the motion type; there are differences in the appearance characteristics of translational parts and rotational parts, and these differences can be used to determine the motion type of the movable parts. In this way, the target detection method can be used to directly detect the interactive parts and movable parts in the image, and the motion type of the movable parts can be obtained to meet the interactive attribute perception needs of robot operation.
[0032] Furthermore, in addition to labeling the interactive parts in the image, category-based labeling and motion characteristic-based labeling are provided for the movable parts. The category-based labeling is to label all movable parts as door types, and the motion characteristic-based labeling is to label the doors in the image as translational doors or revolving doors according to the motion type.
[0033] Furthermore, the interactive attribute perception dataset of the openable container in step S4 includes an image dataset of the openable container acquired from the robot perspective, enriching the dataset content. Images of indoor openable containers are selected from the Door-Detect dataset and the OPD dataset, and images of unconventional openable containers and images with significantly unreasonable shooting perspectives are deleted; in addition, image data of indoor scenes are collected using a mobile robot platform, and some images containing complete door structures and handle structures are extracted and added to the dataset.
[0034] The advantages and beneficial effects of the present invention are:
[0035] The method of the present invention uses a deformable convolution layer, a decoupling detection head, and a Wise-IoU loss function to improve the YOLOv7 network and accurately identify the attributes of the interactive components of the container. The deformable convolution layer enables different feature maps to use different convolution kernels and has the ability to sense objects of different scales. The decoupling detection head separates the prediction of the bounding box and the category prediction to achieve decoupling. The Wise-IoU loss function jointly improves the gradient gain of the ordinary quality bounding box on the network through an attention mechanism and a dynamic focusing mechanism, and reduces the influence of the high-quality bounding box and the low-quality bounding box on the network optimization. The data set contains the interactive component information required for the operation of the domestic robot, the motion type information of the movable component, and the image information obtained from the robot's perspective, so that the target detection method directly detects the interactive components and movable components in the image, and obtains the motion type of the movable component, which meets the interactive attribute perception requirements of the robot operation. At the same time, the data set content is enriched and the generalization of the training model is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the YOLOv7 network structure in the prior art.
[0037] Figure 2 This is a schematic diagram of feature points used by a conventional 3×3 convolution kernel in the prior art.
[0038] Figure 3 It is a schematic diagram of the coupling detection head structure of YOLOv7 in the prior art.
[0039] Figure 4 It is a structural diagram of the overlap degree IoU in the prior art.
[0040] Figure 5 It is a flow chart of a method for predicting properties of container interaction components based on a neural network in an embodiment of the present invention.
[0041] Figure 6a It is one of the characteristic point schematic diagrams of the deformable convolution kernel in an embodiment of the present invention.
[0042] Figure 6b This is the second schematic diagram of feature points of the deformable convolution kernel in an embodiment of the present invention.
[0043] Figure 6c This is the third schematic diagram of feature points of the deformable convolution kernel in an embodiment of the present invention.
[0044] Figure 7 Schematic diagram of the structure of the decoupling detection head in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0046] The network structure of the YOLOv7 network is as follows Figure 1 As shown. In order to improve the detection effect of features of different scales, it uses a multi-scale prediction module. The detection head uses feature maps of three sizes for target detection, and different receptive fields are conducive to detecting objects of different sizes. A structure similar to the Path Aggregation Network (PAN) is used to improve the extraction effect of deep and shallow features. The PAN structure transfers features from the deep network to the shallow network, and uses the semantic information in the deep network to assist in the extraction of shallow features; at the same time, it transfers features from the shallow network to the deep network, and uses the positioning information in the shallow network to assist in the extraction of deep features. The entire network structure has the following modules.
[0047] Combination of convolutional layer, batch normalization layer and SiLU activation function (Conv, BatchNorm, SiLU, CBS), Combination of convolutional layer, batch normalization layer and Sigmoid activation function (Conv, BatchNorm, Sigmoid, CBM) module: It is a composite structure consisting of a convolutional layer, a batch normalization layer and an activation function.
[0048] Re-parameterizable VGG (REP) module: RepVGG module, which consists of a training module and an inference module. The training module has three branches, including a 3×3 convolution module for feature extraction, a 1×1 convolution module for smoothing features, and a residual connection module. Finally, the three branches are added together. The inference module is a 3×3 convolution module with a stride of one. In the inference stage, it uses the reparameterization technology to superimpose the three branches of the training stage into one branch to reduce the amount of inference calculation.
[0049] MaxPool (MP) module: The MP module consists of two branches. Branch 1 first uses max pooling to downsample the input data, and then uses a CBS module with a convolution kernel of 1×1 to change the number of channels. Branch 2 first uses a CBS module with a convolution kernel of 1×1 to change the number of channels, and then uses a CBS module with a convolution kernel of 3×3 and a stride of 2 to downsample. Finally, the outputs of the two branches are added to get the downsampled result.
[0050] Efficient Layer Aggregation Networks (ELAN) module: The ELAN module has two branches. Branch 1 uses a 1×1 CBS module to change the number of channels. In branch 2, a CBS module with a convolution kernel of 1×1 is first used to change the number of channels, and then four CBS modules with a convolution kernel of 3×3 are used to extract features. Finally, the features at four different positions are superimposed to obtain the output features. By controlling the shortest and longest gradient paths in the network, it can improve the network's ability to learn features and has better robustness.
[0051] Efficient Layer Aggregation Networks with Wider features (ELAN-W) module: The ELAN-W module is similar to the ELAN module, except for the number of features output in the second branch.
[0052] Spatial Pyramid Pooling Cross Stage Partial Connections (SPPCSPC) module: The SPPCSPC module draws on the idea of CSPNet. It divides the input features into two equal parts. One of the features is processed using a CBS module with a convolution kernel of 1×1 to change the number of channels; the other feature is processed using a network containing an SPP structure. Then, the two output features are merged. This can reduce the amount of calculation by half and increase the calculation speed. There are four pooling branches of different sizes in the SPP structure, and their receptive fields are different, which can better distinguish small targets from large targets.
[0053] Loss function: The loss function of YOLOv7 consists of the confidence loss function of the target in the bounding box, the coordinate loss function of the bounding box, and the classification loss function of the object in the bounding box. The classification loss function makes the predicted target category consistent with the category of the real target, while the coordinate loss function of the bounding box and the target confidence loss function limit the predicted bounding box to be close to the real bounding box.
[0054] YOLOv7 also uses anchor boxes of predefined sizes, positive sample matching strategies, Mosaic data enhancement and other technologies to jointly improve the precision and recall rate of the YOLOv7 target detection algorithm.
[0055] Conventional convolution kernels: Conventional rectangular convolution kernels perform poorly in scenes where the shape of the target changes dramatically. Conventional convolution kernels are sampled at fixed positions on the feature map, and the network has the same receptive field size when processing different positions in the image. However, there may be target objects of different sizes at different positions in the image, resulting in poor detection results for the network. Figure 2As shown in the figure, the feature points used by the conventional 3×3 convolution kernel, the calculation process of ordinary convolution has the following two steps:
[0056] (1) Sample features on the input feature map. The sampling position of a 3×3 convolution kernel is
[0057] P={(-1,-1),(0,-1),(1,-1),(-1,0),(0,0),(1,0),(-1,1),(0,1),(1,1)}.
[0058] (2) Perform a convolution operation on the sampled result to obtain the result of the convolution transformation
[0059]
[0060] Among them, y(p0) represents the value of the output feature map at position p0, w(p n ) is the convolution kernel at position p n The weight of x(p0+p n ) is the input feature map at position p0+p n The value of .
[0061] Coupled detection head: Figure 3 As shown in the figure, YOLOv7 uses the same module to complete the bounding box regression task and the category classification task. The coupling of the two not only slows down the convergence speed, but also reduces the detection accuracy.
[0062] CIoU loss function: Intersection over Union (IoU) is calculated as follows Figure 4 As shown, the predicted bounding box is denoted as B = [x, y, w, h], where x and y are the center coordinates of the bounding box, ω and h are the width and height of the bounding box, and the true bounding box is B gt =[x gt ,y gt ,w gt ,h gt ], the union of the predicted value and the true value is recorded as:
[0063] S u =wh+w gt h gt -W i H i
[0064] Among them, W i and H i are the width and height of the intersection respectively.
[0065] L is used to measure the overlap between the predicted bounding box and the true bounding box. IOU The loss is defined as:
[0066]
[0067] CIoU is used in YOLOv7 to measure overlap loss, which limits the difference in the center point and aspect ratio between the predicted bounding box and the true bounding box, thereby improving the accuracy of the prediction. However, the dataset often contains low-quality bounding boxes. If the predicted bounding box is forcibly restricted to be close to the low-quality bounding box, the detection effect of the model may decrease.
[0068] Existing datasets: Public datasets related to the task include Door-Detect dataset, DeepDoors2 dataset, OPD dataset, etc. These datasets are related to the task of detecting movable parts in robot scenes, but their specific application scenarios and annotation forms are different.
[0069] The Door-Detect dataset is a dataset for detecting indoor doors and handles. The dataset contains 1,213 RGB images obtained from various scenes. There are four types of target objects: door refers to doors of various rooms, refrigerator door refers to refrigerator doors, cabinet door refers to doors of various containers except refrigerator doors, and handle refers to various types of door handles. The images in this dataset are shot from various perspectives, and the types of doors and handles are also relatively rich, but the image quality is uneven, and there is a lack of images obtained from a robot perspective.
[0070] The DeepDoors2 dataset is a dataset for detecting the open state of indoor room doors. It contains 1206 RGB-D images acquired from real scenes using a depth camera, but only contains semantic annotations of door and door frame pixels.
[0071] The OPD dataset is a dataset for detecting movable parts of openable containers and predicting their motion types. It consists of two parts: synthetic data and real data. The synthetic data is an RGB-D image synthesized by three-dimensional model rendering, and the real data is an RGB-D image of an openable container in an indoor scene captured by a camera. The dataset provides semantic masks, motion directions, and motion type annotations for each movable part. The dataset contains a large amount of image data, and the shooting angles are also relatively rich. However, the images in the dataset are all images with good lighting conditions and movable parts located in prominent positions in the image. In addition, the dataset is mainly constructed for indoor object layout planning tasks, and no scene interaction component annotation information is provided.
[0072] In summary, although there are some datasets for door detection tasks in robot scenarios, they still face the following problems when dealing with interactive attribute perception tasks of indoor openable containers for robot operation:
[0073] (1) Failure to provide complete information required for robot operation, resulting in the need for additional planning during robot operation. For example, the Door-Detect dataset does not provide information on the motion type of movable parts, and the motion type needs to be determined through operation; the OPD dataset does not provide information on interactive parts, and the robot cannot use its detection information to directly perform operations; the DeepDoors2 dataset only provides annotation information for movable doors.
[0074] (2) The dataset does not contain images acquired from the robot’s perspective, and the actual application effect of the network trained using these datasets is not good. The images in the Door-Detect dataset are mostly from the Internet, with varying quality, which is quite different from the robot operation scenes. The images in the OPD dataset have high imaging quality, but the positions of the movable parts in the images are relatively simple, which is quite different from ordinary indoor scenes.
[0075] A method for predicting properties of container interaction components based on a neural network of the present invention, such as Figure 5 As shown, the following improvements are made based on the above prior art:
[0076] Step S1, set the deformable convolution layer: The deformable convolution layer is a method that can automatically adjust the receptive field. It learns an offset for each position of the convolution kernel of each pixel, so that different feature maps use different convolution kernels and have the ability to sense objects of different scales. Figures 6a to 6c As shown in the figure, there are several forms of deformable convolution kernels, where the black dots are new feature points and the arrows are the direction of deformation displacement. In the deformable convolution, an offset Δp is also learned for each position of the convolution kernel of each pixel on the feature map. n , where {Δp n |n=1,2,...,N}. In this way, the calculation formula of deformable convolution is:
[0077]
[0078] Among them, y(p0) represents the value of the output feature map at position p0, w(p n ) indicates that the convolution kernel is at position p n The weight of x(p0+p n +Δp n ) is the input feature map at position p0+p n +Δp n The value of n Adjusted sampling position.
[0079] While increasing the ability to perceive objects of different shapes, the offset module will also introduce too many irrelevant features, affecting the detection accuracy of the model. Therefore, it is necessary to evaluate the importance of different sampling positions in the feature extraction process and reduce the impact of irrelevant pixels on the final result. Deformable convolution learns a weight coefficient Δm for each position of the convolution kernel, Δm∈[0,1], so the calculation formula of deformable convolution changes to:
[0080]
[0081] Step S2: using a decoupling detection head: Figure 7 As shown, the present invention uses a decoupled detection head structure to separate the prediction of the bounding box and the category prediction, achieve decoupling, and improve the success rate of the domestic service robot in predicting the interactive attributes of the openable container. The detection head in this article completes the bounding box prediction task and the category classification task in different branches. The input features first pass through a CBS module with a convolution kernel of 1×1, and then pass into the two branches. The features passed into branch one are first extracted through a convolution module with a convolution kernel of 3×3, and then a CBM module is used to predict the category. The features passed into branch two are first extracted through a convolution module with a convolution kernel of 3×3, and then a CBM module is used to predict the bounding box and target confidence respectively.
[0082] Step S3, construct Wise-IoU loss function: This paper uses the loss function Wise-IoU that dynamically focuses on the normal quality bounding box to measure the overlap loss. Wise-IoU uses the attention mechanism and dynamic focusing mechanism to jointly improve the gradient gain of the normal quality bounding box on the network and reduce the impact of high-quality bounding boxes and low-quality bounding boxes on network optimization.
[0083] This method constructs a loss function L with a two-layer attention mechanism WIoUv1 , as shown in the formula:
[0084] L WIoUv1 =R WIoU L IoU
[0085]
[0086] Among them, R WIoU ∈[1,e) can enlarge the normal quality bounding box L IOU Value; L IoU ∈[0,1] can reduce the R of the high-quality bounding box WIoU , and reduce the focus on the distance between the two center points when the predicted bounding box and the true bounding box overlap well. While reducing the penalty for distance errors in low-quality samples, it also weakens the penalty for situations where the predicted bounding box and the true bounding box overlap well.
[0087] In addition, a non-monotonic focusing mechanism is designed in this method to improve the attention to common samples. The outlier degree is used to describe the quality of the bounding box, and the outlier degree is defined as:
[0088]
[0089] in, is a sliding average weighted by the momentum parameter m. Small outliers correspond to higher bounding box quality, and assigning smaller gradient gains to them allows the network to focus on regressing bounding boxes of normal quality. Large outliers correspond to lower bounding box quality, and assigning lower gradient gains to them can prevent low-quality samples from generating large harmful gradients. They used β to construct a non-monotonic focusing coefficient r and combined it with L WIoUv1 Combined with:
[0090]
[0091] L WIoUv2 =rL WIoUv1
[0092] Among them, α and δ are the hyperparameters used. Only when the outlier degree of the bounding box β = C (C is a constant), the gradient gain of the bounding box is the largest. During the training process, It changes dynamically, and the evaluation index of the bounding box quality will also change dynamically, realizing the dynamic allocation of gradient gain according to the quality of the bounding box.
[0093] Step S4: Create an openable container interactive attribute perception dataset in the following way:
[0094] The present invention provides a data set including information on interactive components required for the operation of a domestic robot, information on the movement types of movable components, and image information acquired from the robot's perspective.
[0095] (1) A movable parts classification method based on motion type is proposed. In addition to marking the interactive parts, the movable parts are divided into translational parts and rotational parts according to the motion type. There are differences in the appearance characteristics of translational parts and rotational parts, and these differences can be used to determine the motion type of the movable parts. In this way, the target detection method can be used to directly detect the interactive parts and movable parts in the image, and the motion type of the movable parts can be obtained, which meets the interactive attribute perception requirements of robot operation.
[0096] (2) Select high-quality images from existing datasets and add images of indoor openable containers collected by mobile robots to enrich the dataset content. Select images of indoor openable containers from the Door-Detect dataset and the OPD dataset, and delete images of unconventional openable containers and images with significantly unreasonable shooting angles. In addition, a mobile robot platform is used to collect image data of indoor scenes, and some images containing complete door structures and handle structures are extracted and added to the dataset.
[0097] In addition to annotating the interactive parts in the image, two types of annotations are provided for the movable parts: (1) Category-based annotation: all movable parts are labeled as door types; (2) Motion characteristic-based annotation: doors in the image are labeled as translational doors or rotational doors according to the motion type.
[0098] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for predicting the properties of container interactive components based on a neural network, wherein the neural network includes a backbone network and a head network, wherein the backbone network is used for feature extraction, and the head network fuses the features extracted at each stage and predicts the bounding box and category through the detection head, wherein the method is characterized in that The steps include: Step S1, setting the convolution layers of the backbone network and the head network as deformable convolution layers, learning an offset for the convolution kernel of each pixel at each position, so that different feature maps use different convolution kernels to automatically adjust the receptive field; Step S2: using a decoupled detection head to separate the prediction of the bounding box and the prediction of the category; Step S3, constructing a loss function to train a neural network, wherein a loss function that dynamically focuses on a common quality bounding box is used to measure the overlap loss; Step S4: Create an openable container interactive attribute perception data set for neural network training, and use the trained neural network to predict the attributes of the container interactive components.
2. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: In step S1, the calculation formula of the deformable convolution is: Among them, represents the value of the output feature map at position, represents the weight of the convolution kernel at position, Represents the value of the input feature map at position, the sampling position after adjustment by the offset.
3. The method for predicting the properties of container interaction components based on a neural network according to claim 2, characterized in that: A weight coefficient Δm is learned for each position of the convolution kernel for deformable convolution, Δm∈[0,1], and the calculation formula of deformable convolution is:
4. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: In step S2, the input features first pass through the CBS module and then are passed into the two branches. The features passed into branch one are first extracted by the convolution module, and then a CBM module is used to predict the category. The features passed into branch two are first extracted by the convolution module, and then the CBM modules are used to predict the bounding box and the target confidence respectively.
5. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: In step S3, the loss function L of the two-layer attention mechanism is constructed WIoUv1 , the formula is as follows: L WIoUv1 =R WIoU L IoU Among them, x and y represent the center coordinates of the predicted bounding box, x gt ,y gt Represents the true center coordinates of the bounding box, W g , H g Represents the width and height of the intersection of the predicted and true bounding boxes, R WIoU ∈[1,e) represents the range of weighted parameters, which can enlarge the L on the normal quality bounding box IOU value, e represents the base of natural logarithm, L IoU ∈[0,1] represents the loss function of the overlap between the predicted bounding box and the true bounding box, which can reduce the R of the high-quality bounding box. WIoU , and when the predicted bounding box has a high overlap with the true bounding box, reduce the attention paid to the distance between the two center points.
6. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: In step S3, a non-monotonic focusing mechanism is used to improve the attention paid to common samples, and the outlier degree is used to describe the quality of the bounding box. The outlier degree is defined as: in, Represents the optimized IoU value, It represents a sliding average weighted by the momentum parameter m. A small outlier corresponds to a high bounding box quality, to which a small gradient gain is assigned. A large outlier corresponds to a low bounding box quality, to which a low gradient gain is assigned.
7. The method for predicting the properties of container interaction components based on a neural network according to claim 6, characterized in that: The non-monotonic focusing coefficient r is constructed using the outlier degree β and compared with the loss function L WIoUv1 Combined, we get the loss function L of the new attention mechanism WIoUv2 : L WIoUv2 =rL WIoUv1 Among them, α and δ represent hyperparameters. Only when the outlier degree β of the bounding box is equal to C, C is a constant, and the gradient gain of the bounding box is the largest.
8. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: The interactive attribute perception dataset of the openable container in step S4 includes information on interactive components and motion types of movable components required for the operation of the domestic robot; Classification of movable parts based on motion type: In addition to marking interactive parts, movable parts are divided into translational parts and rotational parts according to the motion type.
9. The method for predicting the properties of container interaction components based on a neural network according to claim 8, characterized in that: In addition to annotating the interactive parts in the image, category-based annotation and motion characteristic-based annotation are also provided for the movable parts. Category-based annotation is to annotate all movable parts as door types, and motion characteristic-based annotation is to annotate the doors in the image as translational doors or revolving doors according to the motion type.
10. The method for predicting the properties of container interaction components based on a neural network according to claim 1, characterized in that: The interactive attribute perception dataset of the openable container in step S4 includes an image dataset of the openable container acquired from the perspective of the robot.
