A non-contact human-object interaction detection method based on TED-Net
Through the TED-Net method, the convolutional neural network and self-attention mechanism are used to focus on the internal and external information of people and objects, which solves the problem of low accuracy of the existing HOI model in non-contact interaction detection and achieves more efficient interaction category judgment. Applicable to human-machine products.
Patent Information
- Application Number
- CN202310375040.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing HOI models ignore the information around people and objects when detecting human-object interactions, resulting in low precision in relationship analysis of non-contact interaction images, especially in the case of IoU=0, which is difficult to accurately judge.
A non-contact human-object interaction detection method based on TED-Net is proposed. Through the three-stream enhanced encoder-decoder dispersion network (TED-Net), the convolutional neural network and the self-attention mechanism are used to extract features, combined with the Dispersal Decoder and Interaction Decoder, which pays attention to the internal and external information of people and objects, and introduces auxiliary mechanisms to improve the accuracy of interaction category judgment.
Significantly improves the accuracy and efficiency of HOI detection, especially in non-contact interaction scenarios, improves detection performance and is suitable for human-machine product applications.
Smart Images

Figure CN116563605B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of human-object interaction detection, relates to the fields of human-computer interaction and artificial intelligence, and specifically relates to a non-contact human-object interaction detection method based on TED-Net. Background Art
[0002] Human Object Interaction (HOI) detection not only detects the position of people and objects in the input image, but also determines the type of interaction between the two, and finally outputs a series of triplets (<human,object,interaction> HOI is an emerging direction in the field of computer vision. It plays an important role in understanding high-level semantic information in images, specifically involving the fields of human-computer interaction and artificial intelligence. It can be widely used in many scenarios such as video surveillance, smart cabins, smart cities, etc., and can also support higher-level visual content processing.
[0003] Neural network-based HOI is mainly divided into two-stage detection and one-stage detection. The two-stage method divides the HOI task into two stages: person-object detection and interaction discrimination. Chao et al. constructed a new HOI detection dataset (HICO-Det) based on the COCO dataset, and then designed a standard two-stage HOI network, namely HO-RCNN. HO-RCNN was the first to use off-the-shelf detectors to generate bounding boxes associated with person-object pairs. On the other hand, FCM-Net, PDNet, GTNet, and ConsNet use text information to further improve detection performance. Xu et al. (Kunlun Xu, Zhimin Li, Zhijun Zhang, Leizhen Dong, Wen-hui Xu, Luxin Yan, Sheng Zhong, and Xu Zou. Effective actor-centric human-object interaction detection. Image and Vision Computing, 121:104422, 2022.) designed a human-centric interactive reasoning framework to make full use of the contextual information of instances. GPNN uses nodes and edges to identify instances and interactions, respectively, and proposes corresponding adjacency matrices to construct relationship structures. SG2HOI embeds scene graph information as important context clues to further improve the modeling capabilities of human-object interaction networks. The two-stage model is relatively simple and easy to understand, but in the interaction discrimination stage, it will pair the people and objects detected in the first stage one by one, so it runs slowly and has low efficiency.
[0004] Unlike the two-stage method, the single-stage method directly outputs the human-object interaction triplet in the image. PPDM regards the midpoint of the person and the object as the relationship center point, redefines the human-object interaction relationship triplet, and predicts the pairing information from the relationship point through relationship matching, which improves the speed and detection accuracy. Query-based transformers are applied to HOI detection, such as HOITrans and QPIC, which query the region of interest through query embedding to obtain the output of the decoder. However, the above methods all ignore the position and size of instances at different scales. QAHOI uses a deformable transformer to extract features of different scales and combines anchor points to improve detection performance.
[0005] Currently, existing HOI models mainly focus on detecting the corresponding bounding boxes of people and objects, while ignoring the information around people and objects, which leads to inaccurate inference of instance interactions. Using existing technologies to parse person relationships in non-contact interaction images (IoU=0) remains a challenging problem. Summary of the invention
[0006] The purpose of the present invention is to propose a contactless human-object interaction detection method based on TED-Net, which decodes the human, object and instance interaction types respectively, and finally decouples the interaction relationship between instances. At the same time, an additional auxiliary mechanism is proposed to improve the recognition ability of the instance interaction decoding stream. The three-stream enhanced encoder-decoder decentralized network (TED-Net) can focus on the internal and external information of people and objects ignored by previous detection technologies, and use this additional information to effectively model the relationship between objects in the image.
[0007] The present invention is achieved by at least one of the following technical solutions.
[0008] A non-contact human-object interaction detection method based on TED-Net, comprising the following steps:
[0009] a. Perform data enhancement on the input human interaction images;
[0010] b. Input the data-enhanced image into the convolutional neural network, extract visual features through the convolutional neural network, and obtain the visual features of people and objects;
[0011] c. Compressing the visual features of people and objects through image compression to obtain the compression features of the feature map;
[0012] d. Further encode the compressed feature map through the encoder to obtain the global feature encoding based on the encoder;
[0013] e. Obtain three query vectors through the query matrix to represent people, objects, and interaction relationships, respectively, and introduce pairing information;
[0014] f. The fused encoded features are used to construct a three-stream decoder to obtain the location information of people, objects, object categories, and interaction categories to achieve human interaction detection.
[0015] Furthermore, the convolutional neural network is a ResNet-50 pre-trained on the target detection dataset, and the feature map obtained is in, represents the matrix dimension, H r , W r , C r Respectively represent the height, width, and number of channels of the image.
[0016] Furthermore, the ResNet-50 includes a 7×7 convolution kernel, a 3×3 pooling layer, and a feature extraction backbone network consisting of four residual groups, wherein the first residual group has a total of 3 residual blocks, each residual block has 3 layers of convolution kernels of 1×1×64, 3×3×64, and 1×1×256; the second residual group has a total of 4 residual blocks, each residual block has 3 layers of convolution kernels of 1×1×128 The third residual group has 6 residual blocks, each of which has 3 layers of convolution kernels: 1×1×256, 3×3×256, and 1×1×1024; the fourth residual group has 3 residual blocks, each of which has 3 layers of convolution kernels: 1×1×512, 3×3×512, and 1×1×2048.
[0017] Furthermore, the encoder includes N stacked sub-encoder layers, each of which includes two sub-layers, the first sub-layer includes a multi-head attention layer and a normalization layer, and the second sub-layer includes a feedforward neural network layer and a normalization layer.
[0018] Furthermore, the multi-head attention layer uses a set of linear transformation layers to perform linear transformation and multi-head attention calculation on the vector to obtain context information.
[0019] Furthermore, the normalization layer performs numerical normalization on the vector.
[0020] Furthermore, the feedforward neural network layer includes a fully connected layer and an activation function.
[0021] Furthermore, in step e, the query matrix generates three query matrices, representing people, objects and interactions respectively, and pairs person queries, object queries and interaction queries one by one.
[0022] Furthermore, the three-stream decoder includes an interactive decoder and a character dispersed decoder and an object dispersed decoder using a Dispersal Decoder architecture, wherein the character dispersed decoder and the object dispersed decoder have different inputs;
[0023] The Dispersal Decoder is a dual-path design, where the upper path is responsible for predicting the person-object frame and focusing on the frame information; the lower path is responsible for focusing on the person-object's own and external information and sending it to the interactive decoder.
[0024] Furthermore, the interactive decoder has three inputs: the query vector Q a , the sum of the outputs of the character scatter decoder and the object scatter decoder H o And the global feature encoding X after encoder encoding E ,The interaction decoder uses additional auxiliary mechanisms to assist in judging the category of human-object interaction;
[0025] The additional auxiliary mechanism uses the relative position between people and objects, the interaction ratio of people-object frames, and the area ratio of people-object frames to assist in determining the interaction category between people and objects.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] 1) For the problem that the existing HOI model mainly focuses on detecting the human-object bounding box, resulting in inaccurate interaction category judgment, the present invention proposes a three-stream enhanced encoder-decoder decentralized network (TED-Net) to better decouple the person relationship and capture the non-contact interaction information around the person-object.
[0028] 2) The Auxiliary discrimination mechanism of the present invention utilizes the output of the knowledge-assisted interaction category task predicted by Human Dispersal Decoder and Object Dispersal Decoder. Experimental results show that the present invention is significantly better than the existing detection model, further improves the detection performance (mAP) of the existing model, and is more suitable for human-machine products. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is an overall network framework diagram of a non-contact human-object interaction detection method based on TED-Net according to an embodiment of the present invention;
[0030] Figure 2 This is a diagram of the Encoder architecture of an embodiment of the present invention;
[0031] Figure 3 This is a diagram of the Dispersal decoder architecture of an embodiment of the present invention;
[0032] Figure 4 This is a diagram of the interaction decoder architecture of an embodiment of the present invention;
[0033] Figure 5 This is a diagram of an HOI instance interaction in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to more clearly explain the purpose, technical solutions and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.
[0035] A non-contact human-object interaction detection method based on TED-Net in this embodiment includes the following 6 steps:
[0036] Step 1: Perform data enhancement on the input human interaction image;
[0037] The data enhancement in step 1 includes: randomly flipping the input image, randomly adjusting the brightness, contrast, saturation and hue of the image, randomly adjusting the size, randomly cropping, normalizing and other operations.
[0038] Step 2: Input the result image of step 1 into the convolutional neural network, extract visual features through the convolutional neural network, and obtain the visual features of people and objects;
[0039] The convolutional neural network can be composed of a residual network (ResNet). Following the ResNet-based detector, a pre-trained ResNet-50 is used as a feature extractor, such as Figure 1 Backbone network in . Given an input image Among them, H i , W i , C i Respectively represent the height, width and channel of the input image, and obtain the feature map after ResNet-50 extraction ResNet-50 performs 32-fold downsampling through multi-layer convolution and obtains a feature map with an output channel of 2048. At this time, H r =1 / 32 i , W r =1 / 32 i , C r =2048.
[0040] As a preferred embodiment, the specific parameter settings of ResNet-50 are shown in Table 1, including a 7×7 convolution kernel, a 3×3 convolution kernel and a feature extraction backbone network consisting of 4 residual groups. The first residual group has 3 residual blocks, each of which has 3 layers of convolution kernels of 1×1×64, 3×3×64, and 1×1×256, for a total of 9 layers; the second residual group has 4 residual blocks, each of which has 3 layers of convolution kernels of 1×1×128, 3×3×128, and 1×1×512, for a total of 12 layers; the third residual group has 6 residual blocks, each of which has 3 layers of convolution kernels of 1×1×256, 3×3×256, and 1×1×1024, for a total of 18 layers; the fourth residual group has 3 residual blocks, each of which has 3 layers of convolution kernels of 1×1×512, 3×3×512, and 1×1×2048, for a total of 9 layers.
[0041] Table 1 ResNet-50 parameter settings
[0042]
[0043]
[0044] Step 3: compress the result of step 2 by using image compression technology to obtain the compression features of the feature map;
[0045] The image compression technology refers to using 1×1 convolution to compress the channels of the feature map to reduce memory usage. At this time C c =256.
[0046] Step 4: Encode the compressed feature map F C (x) Further encoding to obtain the global feature encoding X based on Encoder E ;
[0047] like Figure 2As shown, the encoder architecture is the same as the architecture used in target detection based on the self-attention model (Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In Proceedings of the European Conference on Computer Vision (ECCV), pages 213–229. Springer, 2020.), which is composed of N sub-encoder layers with exactly the same structure stacked (as a preferred embodiment, N is 6), each sub-encoder layer is composed of two sub-layers, the first sub-layer is composed of a multi-head attention layer (Multi-Head self-attention) and a normalization layer (Add&Normalize), and the second sub-layer includes a feedforward neural network layer (Feed Forward Network) and a normalization layer (Add&Normalize).
[0048] The Multi-Head self-attention uses a set of linear transformation layers to perform linear transformation and multi-head attention calculation on the vector (token) to obtain rich context information. The Feed Forward Network consists of a fully connected layer and an activation function. Add&Normalize normalizes the vector values to make their feature values within a reasonable range, avoiding the situation where the parameters after multi-layer calculation may be too large or too small.
[0049] The specific encoding process of step 4 is: the compressed feature map F c (x) Expand at the pixel level to obtain the sequence Among them, H r , W r , C c Indicates the height, width, and number of channels of the image; X e Indicated by H r ×W r The length is C c Then X e and Send it to the Encoder and describe it using formula (1):
[0050] X E =ncoder(X e , P e),#(1)
[0051] P in the formula e Represents the positional encoding vector (Positional Encoding), at this time X E Represents the word vector (token) after merging the position vector.
[0052] In the above formula (1), the encoder first multiplies the input vector (token) by W to further learn multiple meaning expressions. q , W k , W v Then, linear mapping is performed, and finally three matrices Q, K, and V are obtained, which are expressed by formulas (2)-(4):
[0053] Q=Liner((X e , P e )* q ),#(2)
[0054] K=Liner((X e , P e )* k ),#(3)
[0055] V=Liner(X e * V ),#(4)
[0056] W in the formula q , W k , W v , representing three spatial variation matrices of query Q, key K, and value V.
[0057] Then perform attention calculation and output the attention feature map A. The calculation formula of A is as follows:
[0058]
[0059] Where QK T represents the attention matrix, d k Represents the dimension of the K vector, which can make the gradient more stable during training. Softmax is used to activate the attention matrix, and then the attention matrix is used to weight V, making the subsequent results more stable.
[0060] Furthermore, by connecting the attention feature map A with the sequence X E, and the result is sent to the normalization layer to obtain the normalized value, so as to prevent the gradient from disappearing, speed up the training speed, and accelerate the convergence, which is specifically expressed by formulas (6)-(7). Afterwards, in the feedforward neural network (Feed Forward Network), the token is activated by the activation function, see formula (8), where Activate represents the activation function, such as ReLu. Finally, the result of the previous normalization layer (the result of formula (7)) is added to the result in the Feed Forward Network (the result of formula (8)) and continues to be sent to the normalization layer.
[0061] A=+X E ,#(6)
[0062] A=ayerNorm(A),#(7)
[0063] A=Activate(Liner(A)).#(8)
[0064] Step 5: Obtain three query vectors through the public query matrix (query) to represent "person", "object", and "interaction relationship" respectively, and introduce pairing information;
[0065] The common query matrix refers to query. The three-stream decoder needs three query vectors Q to represent people, objects, and interactions respectively, and also needs to pair person queries, object queries, and interaction queries one by one.
[0066] Specifically, the Triple stream Enhanced encoder-decoder Dispersal Network (TED-Net) generates three query matrices, representing people, objects, and interactions, respectively:
[0067] Q s =uery×W s , s∈h,o,a,#(9)
[0068] query represents the initially generated query matrix, W s represents the query transformation matrix, and the value range of s is (h, o, a), where h, o, and a represent people, objects, and interactions, respectively. represents the character query matrix, represents the object query matrix, Represents the interactive query matrix. q represents the number of query vectors, C q Represents the dimension of the query vector. At this time, TED-Net can predict N q Individuals, objects, and interaction categories, namely Nq HOI relationship pairs.
[0069] Step 6: Fusion-encoded features are used to construct a three-stream decoder to obtain the location information of people, objects, object categories, and interaction categories to achieve human interaction detection.
[0070] like Figure 1 As shown, the three-stream decoding described in step 6 includes a human dispersal decoder (Human Dispersal Decoder), an object dispersal decoder (Object Dispersal Decoder) and an interaction decoder (Interaction Decoder), wherein both the Human Dispersal Decoder and the Object Dispersal Decoder adopt the Dispersal Decoder architecture, but have different inputs.
[0071] As a preferred embodiment, Figure 3 As shown, in order to make the network pay attention to the internal and external information of people and objects, the Dispersal Decoder follows a dual-path design. The upper path is responsible for predicting the human-object frame, mainly focusing on the border information; the lower path is responsible for paying attention to the internal and external information of the human-object and sending it to the Interaction Decoder.
[0072] Specifically, the Dispersal Decoder consists of a dual-branch diffusion decoder designed to enhance attention to the surrounding information of the instance. The upper branch of the Dispersal Decoder focuses on the person-object boundary information to detect the bounding box of the person-object, while the lower branch covers the person-object surrounding information for human-object interaction detection. For ease of reading, Figure 3 B ↑ and B ↓ Represent the upper branch and the lower branch respectively.
[0073] Take Human Dispersal Decoder as an example. ↑ In the attention feature map A ↑ Generated by formula (5), then output B ↑ However, at this time, the upper road only focuses on the position information of the character frame. In order to make the network focus on the information around and inside the person-object, the feature map before the Softmax of the upper road is dispersed;
[0074] The dispersion operation means: first use The activation function will generate the feature map a i (i=0,1,…,Nq ) activation, so that the unimportant parts of the original feature map become 0; secondly, the two-dimensional Gaussian distribution Constructed convolution kernel The characteristic graph a generated by acting on the lower road i , where n represents the size of the convolution kernel to expand the area, and in the Gaussian kernel μ1=0, μ2=0, ρ=0, see formula (10) for details:
[0075]
[0076] in represents the normal (Gaussian) distribution, μ1 and μ2 represent the means of the two-dimensional Gaussian distribution, σ1 and σ2 represent the standard deviations of the two-dimensional Gaussian distribution, ρ represents the correlation coefficient, Represents the generated Gaussian kernel, where x and y represent coordinate indices.
[0077] In addition, an additional normalization operation is performed using formula (11) to ensure that the subsequent eigenvalues are not too large.
[0078]
[0079] Among them, a ij represents the pixel value in feature map a, H and W represent the height and width of the input feature map respectively. In this way, we get the diffused feature map a i , and then get B ↓ At this time, the feature map not only focuses on the position information of the character frame, but also focuses on the information inside and outside the character, making up for the shortcomings of the previous network. ↓ It will be sent to the Interaction Decoder as the key information of human-object interaction to further determine the category of human-object interaction.
[0080] like Figure 4 As shown, the Interaction Decoder has three inputs: query vector Q a , the sum of the outputs of HumanDispersal Decoder and ObjectDispersal Decoder H o And the feature map X after Encoder encoding E , H O Calculated by formula (12), where + represents the addition of the corresponding elements of the two. Finally, the auxiliary discrimination mechanism is used to determine the human-object interaction category:
[0081]
[0082] Where H D Represents the result of Human Dispersal Decoder, O D Represents the output result of Object Dispersal Decoder.
[0083] The Auxiliary discrimination mechanism described above considers the following two interactive examples: <person riding a bicycle> and <person throwing a frisbee>, such as Figure 5 As shown in the figure. The interaction information described by the former <person riding a bike> is "the person is above the bike", and the interaction ratio (IoU) between the person and the bike is greater than 0. <person throwing a frisbee>, at this time, the IoU between the person and the frisbee is 0. Therefore, for the latter, there is no direct contact between the girl and the frisbee, and the area of the person frame is larger than the area of the frisbee. Therefore, the auxiliary discrimination mechanism uses the relative position between the person and the object, the interaction ratio of the person-object frame, the area ratio of the person-object frame, and other information to assist in determining the interaction category between the person and the object.
[0084] Specifically, the Auxiliary discrimination mechanism calculation process is as follows:
[0085] The output of Human Dispersal Decoder is:
[0086]
[0087] in Respectively represent the center point coordinates of the person detection frame, Respectively represent the height and width of the person detection frame.
[0088] Output definition of Object Dispersal Decoder and Among them box represents the object detection box, and Represents the center coordinates of the object detection box, and Indicates the height and width of the object detection box, o score Represents the prediction score of each category, N o +1 indicates the number of object categories (one of which represents the background category).
[0089] Specifically, the relative position r p , the direction from the object to the person d o,h , iou of person-object bounding box h,o , the area ratio of the person-object bounding box arearatio And object category information class Calculated by formulas (14)-(18) respectively:
[0090]
[0091] o class =ne_hot(o score ).#(18)
[0092] In the formula, ε represents a very small value, ensuring that the denominator is not 0, one_h(o score ) indicates o score Perform one-hot encoding.
[0093] In order to obtain the optimal network model, the Hungarian algorithm is used to assign a unique prediction to each true label so that the network input corresponds to the true label. The calculation formula is shown in (19)-(20):
[0094]
[0095] In formula (19), g represents the ground truth. is the interaction relationship pair predicted by the network, g i represents the i-th true label, In formula (20), p, q, and r represent candidate scenes for classification, regression, and intersection-over-union, respectively, and h, o, and a represent people, objects, and actions, respectively. represents the classification loss, represents the regression loss of the location box, represents the IoU loss of the person’s bounding box; in addition, β1, β2, β3, α p , α q , α r are all hyperparameters of matching loss (which can be set by yourself) to balance the losses. After the matching is completed, the overall loss is calculated using formula (21):
[0096]
[0097] In the formula Represents the distillation loss of the model.
[0098] In order to further verify the technical effect of the present invention and fill the gap in the current market for contactless interaction datasets, the present invention selects images in which people and objects are not in contact from the existing HICO-Det and V-COCO datasets to form two datasets, HICO-Det-NC and V-COCO-NC (interaction IoU=0 between contactless instances), to demonstrate the practicality and effectiveness of TED-Net.
[0099] The present invention is compared with the prior art based on the benchmark datasets HICO-Det and V-COCO. HICO-Det has a total of 47,776 images (38,118 images for training and 9,658 images for testing), and V-COCO contains 10,326 images from the COO dataset, including 5,400 training images and 4,964 test images. In addition, two non-contact datasets named HICO-DET-NT and V-COCO-NT were constructed based on the HICO-DET and V-COCO datasets, respectively.
[0100] Mean Average Precision (mAP) is used as the evaluation metric. The result of HOI triplet prediction is correct when the following conditions are met: 1) the IoU of the predicted person and object bounding box is > 0.5; 2) the predicted category is correct. For the V-COCO dataset, there are two mAP indicators: S1 for 29 action categories including 4 body actions, and S2 for 25 action categories excluding the no-object HOI category.
[0101] Table 2 Comparison results of the present invention with other algorithms on the HICO-Det dataset
[0102]
[0103]
[0104] Table 3 Comparison results of the present invention with other algorithms on the VCOCO dataset
[0105]
[0106]
[0107] Table 4 Comparison results of the present invention with other algorithms on the HICO-Det-NC dataset
[0108]
[0109] Table 5 Comparison results of the present invention with other algorithms on the V-COCO-NC dataset
[0110]
[0111]
[0112] Tables 2-5 show the comparison results between the method of the present invention and other methods. It can be seen from the table that the method of the present invention (TED-Net) is closer to the real label than other methods, which shows that the method of the present invention is superior to other methods.
[0113] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A non-contact human-object interaction detection method based on TED-Net, characterized in that: The following steps are involved: a. Perform data enhancement on the input human interaction images; b. Input the data-enhanced image into the convolutional neural network, extract visual features through the convolutional neural network, and obtain the visual features of people and objects; c. Compressing the visual features of people and objects through image compression to obtain the compression features of the feature map; d. Further encode the compressed feature map through the encoder to obtain the global feature encoding based on the encoder; The encoder consists of N stacked sub-encoder layers, each of which consists of two sub-layers. The first sub-layer includes a multi-head attention layer and a normalization layer, and the second sub-layer includes a feedforward neural network layer and a normalization layer. e. Obtain three query vectors through the query matrix to represent people, objects, and interaction relationships, respectively, and introduce pairing information; f. Fusion of encoded features to construct a three-stream decoder to obtain the location information of people, objects, object categories, and interaction categories, to achieve human interaction detection; The three-stream decoder includes an interactive decoder and a character dispersed decoder and an object dispersed decoder using a Dispersal Decoder architecture, wherein the character dispersed decoder and the object dispersed decoder have different inputs; The Dispersal Decoder is a dual-path design. The upper path is responsible for predicting the human-object frame and focusing on the frame information; the lower path is responsible for focusing on the human-object's own and external information and sending it to the interactive decoder. The interactive decoder has three inputs: the query vector Q a , the sum of the outputs of the character scatter decoder and the object scatter decoder H O And the global feature encoding X after encoder encoding E ,The interaction decoder uses additional auxiliary mechanisms to assist in determining the category of human-object interaction; The additional auxiliary mechanism uses the relative position between people and objects, the interaction ratio of people-object frames, and the area ratio of people-object frames to assist in determining the interaction category between people and objects.
2. The non-contact human-object interaction detection method based on TED-Net according to claim 1 is characterized in that convolution The neural network is ResNet-50 pre-trained on the target detection dataset, and the feature map obtained is in, represents the matrix dimension, H r , W r , C r Respectively represent the height, width, and number of channels of the image.
3. The non-contact human-object interaction detection method based on TED-Net according to claim 2 is characterized in that: The ResNet-50 includes a 7×7 convolution kernel, a 3×3 pooling layer, and a feature extraction backbone network consisting of four residual groups. The first residual group has three residual blocks, each of which has three layers of convolution kernels of 1×1×64, 3×3×64, and 1×1×256; the second residual group has four residual blocks, each of which has three layers of convolution kernels of 1×1×128, 3×3×64, and 1×1×256. ×3×128 convolution kernel, and 1×1×512 convolution kernel; the third residual group has 6 residual blocks, each residual block has 3 layers of convolution kernels of 1×1×256, 3×3×256, and 1×1×1024; the fourth residual group has 3 residual blocks, each residual block has 3 layers of convolution kernels of 1×1×512, 3×3×512, and 1×1×2048.
4. The non-contact human-object interaction detection method based on TED-Net according to claim 1 is characterized in that: The multi-head attention layer uses a set of linear transformation layers to perform linear transformation and multi-head attention calculation on the vector to obtain context information.
5. The non-contact human-object interaction detection method based on TED-Net according to claim 1 is characterized in that: The normalization layer normalizes the values of the vectors.
6. The non-contact human-object interaction detection method based on TED-Net according to claim 1 is characterized in that: The feedforward neural network layer includes a fully connected layer and an activation function.
7. The non-contact human-object interaction detection method based on TED-Net according to claim 1 is characterized in that: In step e, the query matrix generates three query matrices, representing people, objects and interactions respectively, and matches person queries, object queries and interaction queries one by one.
