Network and target detection method for occluded target detection based on local perception

By combining the local perception module and the query update module, the problem of the detector predicting multiple candidate boxes in occluded target detection is solved, which improves the detection accuracy and Yaka index, and achieves more efficient occluded target recognition.

CN118628730BActive Publication Date: 2026-11-20NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410508220.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2026-11-20
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

Existing object detection algorithms struggle to accurately identify and locate occluded targets when dealing with object occlusion issues, and the detector may predict multiple candidate bounding boxes, leading to inaccurate detection results.

Method used

An occlusion detection network based on local perception is adopted. The local perception module explores multiple local regions and uses a random drop-out strategy to force branches to learn important features. Combined with the query update module, excessive candidate boxes are removed, and the detection accuracy is improved by utilizing the spatial location information of the target.

Benefits of technology

Improved object detection accuracy in occluded scenarios, with an average accuracy improvement of 0.7% on the CrowdHuman dataset, a log-mean gain of 0.6% in the false positive rate per image, and a Yaca exponential gain of 1%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628730B_ABST
    Figure CN118628730B_ABST
Patent Text Reader

Abstract

The application relates to a network and a target detection method based on local perception-based occlusion target detection, a local perception module is proposed at a feature level, a plurality of local regions are explored through a plurality of local perception branches, and a random discarding strategy is used to force other branches to learn important local information in prominent features. Considering the problem that the detector may predict multiple candidate detection boxes, a query updating module is proposed. The module uses the spatial position information of the target to eliminate too many candidate boxes, and improves the accuracy of the detection result. Finally, under the CrowdHuman dataset, the average accuracy index of the algorithm proposed by the research institute is improved by 0.7% compared with RT-DETR, the logarithmic mean of the false positive rate of each image is improved by 0.6%, and the Yakka index is improved by 1%.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image processing and relates to a network and target detection method based on local perception for occluded target detection. Background Technology

[0002] A significant and challenging task in object detection is addressing object occlusion, which involves detecting and locating objects in images or videos that are partially occluded by other objects. Traditional object detection algorithms struggle to accurately identify and locate objects when they are occluded by objects of the same class (intra-class occlusion) or by different types of objects (inter-class occlusion). To address this issue, researchers have proposed various strategies.

[0003] First, some researchers have used Generative Adversarial Networks (GANs) to recover features of occluded targets. For example, the GANLOF method proposed by some researchers utilizes GANs to recover corrupted features. This algorithm proposes a GANLOF network for learning occluded features based on the idea of ​​generative adversarial interaction. This network includes an occluded feature generator and a discriminator. The main task of the occluded feature generator is to recover the features of the occluded target, while the discriminator is responsible for supervising and guiding the accuracy of feature learning. Furthermore, some researchers have proposed detectors that predict the visible and invisible parts of the body, and have proposed training strategies and loss functions based on the proposed prediction of visible and invisible parts. Finally, some studies attempt to emphasize unoccluded regions. For example, some researchers have proposed an improved Local Nonnegative Matrix Factorization (LNMF) algorithm that can learn local features of data, but its performance is not ideal when dealing with noise that does not conform to the Gaussian distribution assumption.

[0004] In summary, while existing research has addressed the issue of target occlusion to some extent, challenges remain regarding insufficient highlighting of unoccluded regions and the possibility of detectors predicting multiple candidate bounding boxes. Therefore, this paper proposes a novel method to address these issues and further improve target detection performance in occluded scenarios. Summary of the Invention

[0005] Technical problems to be solved

[0006] To overcome the shortcomings of existing technologies, this invention proposes a network and method for occluded target detection based on local perception. At the feature level, a local perception module is introduced, which explores multiple local regions through multiple local perception branches and uses a random discarding strategy to force other branches to learn important local information from salient features. Considering the problem that the detector may predict multiple candidate detection boxes, a query update module is proposed. This module utilizes the spatial location information of the target to eliminate excessive candidate boxes, improving the accuracy of the detection results.

[0007] Technical solution

[0008] A network for occluded target detection based on local perception, characterized by comprising a prediction head consisting of a backbone network, a local perception module, a hybrid encoder, an IoU-aware query selection module, a decoder, and a query update module, connected in sequence; wherein:

[0009] The backbone network uses ResNet50;

[0010] The local perception module is connected to the output of the backbone network and includes N parallel local perception branches, connected to a random dropout module and a maximum value module; the attention set generated by the N local perception branches is [M1, M2, ..., M]. N After passing through the random discard module, connect to the maximum value module. The output and input of the maximum value module are connected via point operations.

[0011] The hybrid encoder connects to the output of the local perception module, including an attention-based intra-scale feature interaction (AIFI) module and a neural network-based cross-scale feature fusion (CCFM) module. The input signal of the local perception module is divided into two paths: one path is directly input to the CCFM module, and the other path is input to the CCFM module after passing through the AIFI module. The output of the CCFM module is the input information of the next module.

[0012] The IoU-aware query selection module consists of a multilayer perceptron, including a prediction box filtering module, a relationship information extraction module, and a query update module, which is used to select features with high classification scores to initialize the query vector.

[0013] The decoder is stacked with six decoding layers, and the basic structure of each decoding layer includes a self-attention module and a multi-scale variable cross-attention module.

[0014] The query update module uses the spatial location information of the target to remove excessive candidate boxes.

[0015] The ResNet50 module of the backbone network consists of two stacked modules: the Conv Block module and the Identity Block module; the backbone network is used to extract image features.

[0016] Each local perception branch contains two 1×1 convolutional layers. The first convolutional layer reduces the original number of channels in the feature map to c / r, where r represents the scaling factor of the feature dimension. The second convolutional layer reduces the channel dimension of the feature map to 1 and obtains an attention map through a sigmoid activation function. This module allows the network to explore multiple discriminative local regions simultaneously.

[0017] The hybrid encoder includes an AIFI module structure and a CCFM module. The AIFI module consists of the self-attention mechanism in Transformer, and the CCFM module consists of multiple fusion blocks. Each fusion block contains N RepBlock modules, and each RepBlock module consists of a convolutional layer and an Identity Block module. In this process, the outputs of two different paths are connected together by element-wise addition, thereby realizing feature fusion and interaction.

[0018] The decoder includes a self-attention module and a multi-scale deformable cross-attention module. The self-attention module uses content queries and location queries as inputs to calculate the self-attention mechanism, and the cross-attention module uses the outputs of the self-attention module and the outputs of the backbone network to calculate the cross-attention mechanism.

[0019] The query update module uses a prediction head, which includes prediction box filtering, relationship information extraction, and query update. Prediction box filtering is used to select prediction boxes with high confidence, while relationship information extraction and query update are used to eliminate redundant prediction boxes.

[0020] A method for target detection using the aforementioned network based on local perception for occlusion detection, characterized by the following steps:

[0021] Step 1: After the image is input, it undergoes convolution processing through the backbone network to output a feature map X∈R. h*w*c , where h, w, and c represent the height, width, and number of channels of the feature map, respectively;

[0022] Step 2: Input feature map X∈R h*w*c To the local perception module, the attention set graph generated in the local perception module is [M1, M2, ..., M]. N Each feature map has a size of M. i ∈R h* w *1 ;

[0023] The remaining attention maps are obtained by randomly discarding points. Then, the maximum value of each point in the remaining attention maps is taken to generate the final maximum attention map, which is then output as the next network.

[0024] M out (x,y)=max{M1(x,y),M2(x,y),...,M N (x,y)}

[0025] Where x and y represent the coordinates of the attention map;

[0026] Simultaneously, the final attention map is multiplied by the input feature map X and used as the output of this step;

[0027] Step 3: Perform hybrid encoding on the output of Step 2, decompose the interaction of multi-scale features into two levels of processes, namely intra-scale interaction and cross-scale fusion, integrate the feature information of adjacent levels and generate a new feature map.

[0028] Step 4: Perform IoU-aware query selection on the output of Step 3, and use a classification function to select the top k features from the encoder to initialize the query vector;

[0029] IoU-aware query selection detector optimization formula:

[0030]

[0031] in, y represents the predicted value and the true value, respectively. c and b are the classification and target bounding boxes, respectively;

[0032] Step 5: Use the top K features with the highest IoU-aware query prediction scores to initialize the location query, and decode the output of Step 4;

[0033] Using the three-layer multi-scale features of the encoder as the source of keys and values ​​in the Transformer, let... The multi-scale feature map output by the encoder, where Given the normalized coordinates of each query reference point, the multi-scale variability attention calculation formula is as follows:

[0034]

[0035] Where m represents the number of multi-head attention heads, l represents the layer output of the encoder from which the feature comes, k represents the number of sampling points, and A mlqk This represents the attention weights of the k-th sampling point in the l-th layer feature and the m-th attention head. The sum of all attention weights is 1, Δp. mlqk Indicates the sampling offset. The function's purpose is to scale and normalize the coordinates to correspond to the feature map of the l-th layer;

[0036] Step 6: Query and update the output of Step 5;

[0037] The method for selecting predicted boxes is as follows: predicted boxes with high confidence are considered acceptable, while the rest are considered noisy. The formula for selecting acceptable predicted boxes is:

[0038]

[0039] Where t represents the stage in the decoder. D t-1 This represents the prediction result generated by the decoder in stage t-1. These represent acceptable and noisy prediction boxes, respectively. i s i This represents the predicted bounding box and the confidence score;

[0040] The relation information extractor and query update process eliminates some noisy query boxes. These noisy query boxes predict targets that are already included in acceptable prediction boxes. The relation information extractor is responsible for eliminating some noisy prediction boxes, as shown in the following formula:

[0041]

[0042] Where: b i For the noisy prediction box, b j For adjacent acceptable prediction boxes, (b i N(b) i H(b) represents a space-dependent object. i ) represents the geometric feature relationship, N(·) represents the function for finding similar acceptable query boxes, O(·) represents the function for completing the IoU calculation, θ is the pre-set prediction box overlap threshold, ε(·,·) represents the sine and cosine spatial position encoding functions, and u(·,·) function is used to generate the geometric feature relationship;

[0043] Step 7: Use the prediction head to predict the output of Step 6 and generate prediction boxes.

[0044] The random discarding method is as follows: randomly set the attention map of a certain branch to 0 and discard the output of that branch; then, by maximizing the pixel value, aggregate the remaining N-1 attention maps together to obtain the final attention map M. out (x, y).

[0045] The specific process of automatically learning and generating prediction results using the prediction head in step 7 is as follows:

[0046] Step 7.1: Perform mean subtraction preprocessing on the original image. Specifically, the mean subtraction preprocessing involves obtaining the image...

[0047] The mean pixel value of all pixels is calculated by subtracting the mean value from the mean value of all pixels in the image. The result of this subtraction is used for training.

[0048] Step 7.2: The network training method is fine-tuned. After the image is processed by subtracting the mean, the image is input into the network for training. The training loss in the fine-tuning process is defined as the target confidence loss, the category confidence loss, and the coordinate regression loss.

[0049] Step 7.3: Perform several iterations of training on each image, and judge the convergence of the model by the change of the loss function value until the model reaches the convergence state.

[0050] A computer program product characterized by comprising computer-executable instructions, which, when executed, are used to implement the method described.

[0051] Beneficial effects

[0052] This invention proposes a network and object detection method based on local perception for occluded object detection. At the feature level, a local perception module is introduced, which explores multiple local regions through multiple local perception branches and uses a random discarding strategy to force other branches to learn important local information from salient features. Considering the problem that the detector may predict multiple candidate detection boxes, a query update module is proposed. This module utilizes the spatial location information of the target to remove excessive candidate boxes, improving the accuracy of the detection results. Finally, on the CrowdHuman dataset, the proposed algorithm achieves a 0.7% improvement in average accuracy compared to RT-DETR, a 0.6% gain in the log-mean false positive rate per image, and a 1% gain in the Yaca index.

[0053] This invention employs a local perception-based occluded target detection method. To address the issues of existing methods failing to adequately highlight unoccluded regions and the detector potentially predicting multiple candidate detection boxes, it innovatively introduces a local perception module and a query update module. Attached Figure Description

[0054] Figure 1 This is a framework for occluded target detection algorithms based on local perception.

[0055] Figure 2 Backbone network diagram

[0056] Figure 3 Schematic diagram of the local sensing module

[0057] Figure 4 Schematic diagram of hybrid encoder structure

[0058] Figure 5 AIFI structure diagram

[0059] Figure 6 A schematic diagram of the CCFM structure

[0060] Figure 7 Schematic diagram of the fusion block structure

[0061] Figure 8 Structure diagram of Conv Block module and Identity Block module

[0062] Figure 8 (a) is the Conv Block module structure. Figure 8 (b) shows the Identity Block module structure.

[0063] Figure 9 Example graph for the CrowdHuman dataset

[0064] Figure 9 (a) is a schematic diagram of the RT-DETR results. Figure 9 (b) is a schematic diagram of the algorithm results proposed in this study. Detailed Implementation

[0065] The present invention will now be further described in conjunction with the embodiments and accompanying drawings:

[0066] This invention proposes an occlusion target detection method based on local perception, the network structure of which is as follows: Figure 1 As shown, it includes the following steps:

[0067] Step 1: Construct the backbone network

[0068] The backbone network of this study uses ResNet50. First, the input is convolutionally processed, then multiple residual modules are included, and finally a fully connected operation is performed to complete the classification task. A schematic diagram of the network structure is shown below. Figure 2 As shown.

[0069] In this embodiment: ResNet50 is a deep neural network model consisting of two core residual modules: the Conv Block module and the Identity Block module. The Conv Block module is responsible for adjusting the network size. The Identity Block module has the same input and output size and is used to deepen the network. The structures of the Conv Block module and the Identity Block module are as follows: Figure 8 .

[0070] Step 2: Construct a local sensing module

[0071] Through the backbone network, this study can extract three effective features, which we refer to as S3, S4, and S5. The input to the local perception module is the feature map S5 extracted by the feature extraction network, and the output is E5.

[0072] The structure of the local sensing module is as follows: Figure 3 As shown. Let the input feature map be X∈R. h*w*c Where h, w, and c represent the height, width, and number of channels of the input feature map, respectively. This module sets up N local perception branches, each containing two 1×1 convolutional layers. The first convolutional layer reduces the original number of channels in the feature map to c / r, where r represents the scaling factor of the feature dimension. The second convolutional layer reduces the channel dimension of the feature map to 1 and obtains an attention map through the sigmoid activation function. The attention set generated by the N local perception branches is [M1, M2, ..., M]. N Each feature map has a size of M. i ∈R h*w*1 To force each local perception branch to explore local features beneficial to the object detection task, this module also incorporates a random discarding method. Specifically, N local perception branches result in N attention maps. For the obtained N attention maps, the attention map of one branch is randomly set to 0, thus discarding the output of that branch. For the remaining N-1 attention maps, this paper will aggregate the remaining N-1 attention maps together by maximizing pixel values, as shown in formula (1):

[0073] M out (x,y)=max{M1(x,y),M2(x,y),...,M N (x,y)} (1)

[0074] Here, x and y represent the coordinates of the attention map. After obtaining the final attention map, it is multiplied by the original feature map X, thereby giving more attention to useful local information while suppressing some unimportant regions.

[0075] Step 3: Construct the hybrid encoder

[0076] The hybrid encoder decomposes the interaction of multi-scale features into two levels: intra-scale interaction and cross-scale fusion, structured as follows: Figure 4 As shown, the proposed encoder consists of two modules: an attention-based intra-scale feature interaction (AIFI) module and a neural network-based cross-scale feature fusion (CCFM) module. The AIFI module structure is as follows: Figure 5 As shown, the CCFM module inserts multiple fusion blocks (Fusion) consisting of convolutional layers into the fusion path. The specific structure of CCFM is as follows. Figure 6 As shown in the diagram, these fusion blocks can integrate feature information from adjacent layers and generate a new feature map, thereby improving the richness and expressive power of the features. The specific fusion block structure is as follows: Figure 7As shown.

[0077] In this embodiment: Three effective features can be obtained through the backbone network and local sensing modules, which are named S3, S4, and E5 in this study. First, only the E5 layer is used to obtain features such as... Figure 5 The Transformer structure shown performs self-attention, which reduces computational redundancy in the encoder. E5 generates F5 features after passing through the self-attention module, and then F5, S4, and S3 are fed into the CCFM module for information fusion of features at different levels.

[0078] Step 4: IoU-aware query selection

[0079] This study uses a query-based decoder, which requires generating object query vectors for the decoder. The IoU-aware query module performs this task. During training, the algorithm is constrained by assigning high classification scores to features with high overlap and low classification scores to features with low overlap. This strategy yields features with both high classification scores and high IoU scores.

[0080] In the embodiment: the detector optimization formula in this paper can be rewritten as formula (4).

[0081]

[0082] in, y represents the predicted value and the true value, respectively. c and b represent the classification and the target bounding box, respectively. This optimization formula ensures consistency between classification and localization, preventing a situation where classification is pre-trained and perfected while localization continues to be optimized.

[0083] Step 5: Decoder

[0084] The decoder consists of six stacked decoding layers. Each layer's basic structure includes a self-attention module and a multi-scale variable cross-attention module. Each decoding layer requires an embedded query vector as input. For query vector generation, this study employs a hybrid query approach, where the query vector comprises both location and content queries. The content query, derived from the encoder's input, is not initialized, while the location query is initialized; both are learnable and updatable query vectors. Content and location queries are updated layer by layer, ultimately inputting more refined feature content and a more refined target location. This study uses the top K features with the highest IoU-aware query prediction scores to initialize the location query, thus avoiding ambiguity and misleading the decoder due to unselected features.

[0085] In this embodiment: In the computation of the cross-attention module for multi-scale variability, this study uses the output of the self-attention module as the query, and the three-layer multi-scale features from the encoder as the source of keys and values ​​in the Transformer. Let... The multi-scale feature map output by the encoder, where Given the normalized coordinates of each query reference point, the multi-scale variable attention calculation formula is shown in (5):

[0086]

[0087] Where m represents the number of multi-head attention heads, l represents the layer output of the encoder from which the feature comes, and k represents the number of sampling points. A mlqk This represents the attention weights of the k-th sampling point in the l-th layer feature and the m-th attention head; the sum of all attention weights is 1. Δp mlqk This represents the sampling offset. In this calculation, normalized coordinates were chosen, with (0,0) representing the top left corner of the image and (1,1) representing the bottom right corner. The function scales and normalizes the coordinates to correspond to the l-th layer feature map. The multi-scale variable cross-attention mechanism is essentially the same as the single-scale one, except that multi-scale variable attention samples LK points from the multi-scale feature map, while single-scale variable attention samples only K points from a single feature map. When the number of sampling points traverses all positions in the feature map, the variable attention mechanism becomes identical to the original Transformer attention. Using multi-scale deformable attention extracts image features near the reference point; therefore, the reference point is chosen as the bounding box center to predict the offset relative to the reference point to predict the bounding box coordinates, which further reduces the optimization difficulty.

[0088] Step 6: Query for updates

[0089] This module comprises three parts: prediction box filtering, relationship information extraction and query update.

[0090] Predicted Box Screening: In this study, predicted boxes with high confidence levels are considered acceptable, while the remaining predicted boxes are considered noisy, meaning they are more likely to contain incorrect predictions. The formula for selecting acceptable predicted boxes is shown in (2):

[0091]

[0092] Where t represents the stage in the decoder. D t-1 This represents the prediction result generated by the decoder in stage t-1. These represent acceptable and noisy prediction boxes, respectively. i s i This indicates the confidence level of the predicted bounding box and the size of the predicted bounding box.

[0093] The relation information extractor and query update are based on the idea of ​​minimizing and suppressing redundant boxes. If a target is included in a high-confidence prediction box, it is no longer necessary to use a noisy prediction box to predict the target. Therefore, it is necessary to eliminate some noisy query boxes that predict targets already included in acceptable prediction boxes. The relation information extractor in this study undertakes the task of eliminating some noisy prediction boxes. This can be expressed by formula (3).

[0094]

[0095] For the noisy prediction box b i First, calculate the acceptable prediction box b adjacent to it. j This is used to establish space-related objects (b) i N(b) i Next, the overlap rate between the noisy predicted box and its adjacent acceptable predicted box is calculated, and this overlap rate is fed into a compact network to obtain the geometric feature relationship H(b). i For each noisy predicted bounding box, the number of its neighboring acceptable predicted bounding boxes is not predetermined; therefore, an aggregation function will be used to aggregate the geometric feature relationships H(b). i The geometric features are compressed to a defined feature dimension. Max pooling is used for feature compression in this study. The compressed geometric features are then further aggregated with the transformed query features. The aggregated features are then processed through a non-linear activation layer. The aggregated query features are used for the next step of calculating local multi-head attention. In the formula, N(·) represents the function for finding adjacent acceptable query boxes, O(·) represents the function for calculating IoU, and θ is a pre-set threshold for predicted box overlap. If the overlap of the predicted boxes is higher than the pre-set threshold, an acceptable predicted box adjacent to the noisy predicted box is considered to have been found. ε(·,·) represents the sine and cosine spatial location encoding functions. The u(·,·) function is used to generate the geometric features and consists of two linear layers.

[0096] The specific process of automatically learning and generating prediction results using the prediction head in step 7 is as follows:

[0097] Step 7.1: Perform mean subtraction preprocessing on the original image. Specifically, the mean subtraction preprocessing involves obtaining the image...

[0098] The mean pixel value of all pixels is calculated by subtracting the mean value from the mean value of all pixels in the image. The result of this subtraction is used for training.

[0099] Step 7.2: The network training method is fine-tuned. After the image is processed by subtracting the mean, the image is input into the network for training. The training loss in the fine-tuning process is defined as the target confidence loss, the category confidence loss, and the coordinate regression loss.

[0100] Step 7.3: Perform several iterations of training on each image, and judge the convergence of the model by the change of the loss function value until the model reaches the convergence state.

[0101] Experimental results and analysis:

[0102] (1) Overall Results Comparison

[0103] To evaluate the effectiveness of this study, we compared the proposed occlusion target detection model based on local perception with mainstream target detectors on the CrowdHuman validation set, as shown in Table 1:

[0104] Table 1. Results of different algorithms on the CrowdHuman dataset.

[0105]

[0106] As shown in Table 1, the method proposed in this study outperforms these well-established detectors, achieving significant performance improvements, which demonstrates the effectiveness of the proposed method in handling occluded scenes.

[0107] As can be seen from the table data, the algorithm with the best accuracy performance is the one presented in this study. Specifically, our method achieves a 1% gain in average accuracy compared to the MIP method, which is specifically designed for occluded scenarios. Furthermore, our algorithm also demonstrates significant advantages over other Transformer-based detection algorithms, D-DETR and DETR.

[0108] Figure 9 The results of this study are shown in a comparison chart between the proposed method and RT-DETR. Figure 9 (a) shows the detection results of RT-DETR. Figure 9 (b) shows the detection results of the method proposed in this study. The detection results are marked with rectangular boxes. Through comparison... Figure 9 The first and second images show that RT-DETR misses some human detections in occluded environments. (Comparison) Figure 9 As can be observed in the third and fourth images, RT-DETR exhibits false positives for people in occluded environments. In contrast, the algorithm proposed in this study detects most people even in occluded conditions. This further validates the superiority of the locally perceptive-based occluded image target detection algorithm proposed in this study.

[0109] (2) Evaluation of the local sensing module

[0110] To verify the effectiveness of the proposed local sensing module, a comparative experiment was designed. This study added local sensing modules with different structures to the RT-DETR network and query update strategy. In the table, RT-QU represents adding a query update module to RT-DETR, RT-QU-SINGLE represents adding both a query update module and a local sensing module to RT-DETR, and RT-QU-MULTI represents adding both a query update module and a multi-scale local sensing module to RT-DETR. The results are shown in Table 2.

[0111] Table 2 shows the results of adding local sensing modules with different structures on the CrowdHuman dataset.

[0112]

[0113] The data in the table shows that the local sensing module proposed in this study yields the best results. Compared with the network without the local sensing module, adding the local sensing module achieves a 0.3% gain in average accuracy and a 0.6% gain in the Yaca index. The detection results are similar to those with the multi-scale local sensing module, but the local sensing module proposed in this study is based on a single scale, has fewer parameters, and a superior network structure.

[0114] (3) Evaluation of the query update module

[0115] To verify the effectiveness of the proposed query update module, a comparative experiment was designed. This study added local sensing modules with different structures to the RT-DETR network. In the table, RT represents the RT-DETR network, and RT-QU represents the addition of a query update module to RT-DETR. The results are shown in Table 3.

[0116] Table 3 shows the results of the comparative experiment of the query update module on the CrowdHuman dataset.

[0117]

[0118] The data in the table shows that the query update module proposed in this chapter is effective. Compared with the network without the query update module, adding the query update module achieved a 0.4% gain in average accuracy, a 0.6% gain in the log-mean gain in false positive rate per image, and a 0.4% gain in the Yaca index.

Claims

1. A method for target detection using a network based on local perception for occluded target detection, wherein the network comprises a sequentially connected backbone network, a local perception module, a hybrid encoder, an IoU-aware query selection module, a decoder, and a query update module; characterized in that... The steps are as follows: Step 1: After the image is input, it undergoes convolution processing through the backbone network to output a feature map. , where h, w, and c represent the height, width, and number of channels of the feature map, respectively; Step 2: Input feature map as To the local perception module, the attention set graph generated in the local perception module is as follows: The size of each feature map is ; The local perception module is connected to the output of the backbone network and includes N parallel local perception branches, connected to a random dropout module and a maximum value module; the attention set generated by the N local perception branches is... After passing through the random discard module, connect to the maximum value module. The output and input of the maximum value module are connected via point operations. Each local perception branch contains two 1×1 convolutional layers. The first convolutional layer reduces the original number of channels in the feature map to c / r, where r represents the scaling ratio of the feature dimension. The second convolutional layer reduces the channel dimension of the feature map to 1 and obtains an attention map through the Sigmoid activation function. The remaining attention maps are obtained by randomly discarding points. Then, the maximum value of each point in the remaining attention maps is taken to generate the final maximum attention map, which is then output as the next network. Where x and y represent the coordinates of the attention map; Simultaneously, the final attention map is multiplied by the input feature map X and used as the output of this step; Step 3: Perform hybrid encoding on the output of Step 2, decompose the interaction of multi-scale features into two levels of processes, namely intra-scale interaction and cross-scale fusion, integrate the feature information of adjacent levels and generate a new feature map. Step 4: Perform IoU-aware query selection on the output of Step 3, and use a classification function to select the top k features from the encoder to initialize the query vector; IoU-aware query selection detector optimization formula: in, y and y represent the predicted value and the true value, respectively. y={c,b}; c and b are the classification and target bounding boxes, respectively; Step 5: Use the top K features with the highest IoU-aware query prediction scores to initialize the location query, and decode the output of Step 4; Using the three-layer multi-scale features of the encoder as the source of keys and values ​​in the Transformer, let... The multi-scale feature map output by the encoder, where , Given the normalized coordinates of each query reference point, the multi-scale attention calculation formula is as follows: Where m represents the number of multi-head attention heads, l represents the layer output of the encoder from which the feature comes, and k represents the number of sampling points. This represents the attention weights of the k-th sampling point in the l-th layer features and the m-th attention head; the sum of all attention weights is 1. Indicates the sampling offset. The function's purpose is to scale and normalize the coordinates to correspond to the feature map of the l-th layer; Step 6: Query and update the output of Step 5; The method for selecting predicted boxes is as follows: predicted boxes with high confidence are considered acceptable, while the rest are considered noisy. The formula for selecting acceptable predicted boxes is: Where t represents the stage in the decoder. This represents the prediction result generated by the decoder in stage t-1. , These represent acceptable predicted boxes and noisy predicted boxes, respectively. , This represents the predicted bounding box and the confidence score; The relation information extractor and query update process eliminates some noisy query boxes. These noisy query boxes predict targets that are already included in acceptable prediction boxes. The relation information extractor is responsible for eliminating some noisy prediction boxes, as shown in the following formula: in: For noisy prediction boxes, Adjacent acceptable prediction boxes, ( , ) Space-related objects, Geometric feature relationships, where N(•) represents the function for finding similar acceptable query boxes, O(•) represents the function for calculating IoU, and θ is a pre-set threshold for predicted box overlap. This represents the sine and cosine spatial location encoding functions. The function is used to generate geometric feature relationships; Step 7: Use the prediction head to predict the output of Step 6 and generate prediction boxes.

2. The method according to claim 1, characterized in that: The random discarding method is as follows: randomly set the attention map of a certain branch to 0 and discard the output of that branch; then, aggregate the remaining N-1 attention maps together by maximizing pixel values ​​to obtain the final attention map. .

3. The method according to claim 1, characterized in that, The specific process of automatically learning and generating prediction results using the prediction head in step 7 is as follows: Step 7.1: Perform mean subtraction preprocessing on the original image. Specifically, the mean subtraction preprocessing involves obtaining the image... The mean pixel value of all pixels is calculated by subtracting the mean value from the mean value of all pixels in the image. The result of the subtraction is used for training. Step 7.2: The network training method is fine-tuned. After the image is processed by subtracting the mean, the image is input into the network for training. The training loss in the fine-tuning process is defined as target confidence loss, class confidence loss and coordinate regression loss. Step 7.3: Perform several iterations of training on each image, and judge the convergence of the model by the change of the loss function value until the model reaches the convergence state.

4. The method according to claim 1, characterized in that: The backbone network uses ResNet50; The hybrid encoder connects to the output of the local perception module, including an attention-based intra-scale feature interaction (AIFI) module and a neural network-based cross-scale feature fusion (CCFM) module. The input signal of the local perception module is divided into two paths: one path is directly input to the CCFM module, and the other path is input to the CCFM module after passing through the AIFI module. The output of the CCFM module is the input information of the next module. The IoU-aware query selection module consists of a multilayer perceptron, including a prediction box filtering module, a relationship information extraction module, and a query update module, which is used to select features with high classification scores to initialize the query vector. The decoder is stacked with six decoding layers. The basic structure of each decoding layer includes a self-attention module and a multi-scale variable cross-attention module. The query update module uses the spatial location information of the target to remove excessive candidate boxes.

5. The method according to claim 4, characterized in that: The ResNet50 module of the backbone network consists of two stacked modules: the ConvBlock module and the Identity Block module; the backbone network is used to extract image features.

6. The method according to claim 4, characterized in that: The hybrid encoder includes an AIFI module structure and a CCFM module. The AIFI module consists of the self-attention mechanism in Transformer, and the CCFM module consists of multiple fusion blocks. Each fusion block contains N RepBlock modules, and each RepBlock module consists of a convolutional layer and an Identity Block module. In this process, the outputs of two different paths are connected together by element-wise addition, thereby realizing feature fusion and interaction.

7. The method according to claim 4, characterized in that: The decoder includes a self-attention module and a multi-scale deformable cross-attention module. The self-attention module uses content queries and location queries as inputs to calculate the self-attention mechanism, and the cross-attention module uses the outputs of the self-attention module and the outputs of the backbone network to calculate the cross-attention mechanism.

8. The method according to claim 4, characterized in that: The query update module uses a prediction head, which includes prediction box filtering, relationship information extraction, and query update. Prediction box filtering is used to select prediction boxes with high confidence, while relationship information extraction and query update are used to eliminate redundant prediction boxes.

9. A computer program product, characterized in that... It includes computer-executable instructions, which, when executed, are used to implement the method described in any one of claims 1 to 8.