Local perception-based occlusion target detection network and target detection method

By introducing the local perception module and query update module into the target detection network, the problem of difficulty in identification and positioning of the target detection algorithm in occlusion scenes is solved, and the detection performance is improved, especially the accuracy and efficiency in processing occlusion scenes.

CN118628730AActive Publication Date: 2024-09-10NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 3 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When existing target detection algorithms deal with target occlusion problems, it is difficult to accurately identify and locate targets that are occluded by similar or other types of objects, especially when the unoccluded areas are not fully highlighted and the detector may predict multiple candidate detection frames. , there are challenges.

Method used

An occlusion target detection network based on local perception is proposed, which includes a local perception module and a query update module. The local perception module explores multiple local areas through multiple local perception branches and uses a random discarding strategy to force the branches to learn important features, while the query update module uses the spatial location information of the target to eliminate excessive candidate boxes.

Benefits of technology

The target detection performance in occlusion scenes has been improved. The average accuracy index under the CrowdHuman data set has increased by 0.7%, the logarithmic average of the false positive rate of each image has achieved a gain of 0.6%, and the Jacquard index has increased by 1%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628730A
    Figure CN118628730A
Patent Text Reader

Abstract

The invention relates to an occluded target detection network based on local sensing and a target detection method, and provides a local sensing module at a feature level, a plurality of local areas are explored through a plurality of local sensing branches, and other branches are forced to learn important local information in highlighted features by using a random discarding strategy. In view of the problem that a detector may predict a plurality of candidate detection boxes, a query updating module is provided. The module uses the spatial position information of the target to eliminate excessive candidate frames, and the accuracy of the detection result is improved. Finally, under a CrowdHuman data set, compared with RT-DETR, the average accuracy index of the algorithm provided by the research is improved by 0.7%, the gain of 0.6% is achieved on the logarithmic mean value of the false positive rate of each image, and the gain of 1% is achieved on the Yaka index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] An important and challenging task in the field of object detection is to deal with the object occlusion problem, which involves detecting and locating objects that are partially occluded by other objects in an image or video. When the object is occluded by objects of the same type (i.e., intra-class occlusion) or the object is occluded by other types of objects (i.e., inter-class occlusion), it is difficult to accurately identify and locate the object using traditional object detection algorithms. In this regard, scholars have proposed a variety of strategies to solve this problem.

[0003] First, some scholars use generative adversarial networks (GAN) to restore occluded target features. For example, the GANLOF method proposed by some researchers uses GAN to restore the damaged features. Based on the idea of ​​generative adversarial networks, this algorithm proposes a generative adversarial network GANLOF for occluded feature learning. This network includes an occluded feature generator and a discriminator. Among them, the main task of the occluded feature generator is to restore the features of the occluded target, while the discriminator is responsible for supervising and guiding the accuracy of feature learning. In addition, some researchers have proposed that the detector predicts the visible and invisible parts of the body, and proposed training strategies and loss functions based on the starting point of predicting the visible and invisible parts. Finally, some studies have tried to emphasize the unoccluded areas. For example, the improved local non-negative matrix factorization (LNMF) algorithm proposed by some researchers can learn the local features of the data, but the effect is not ideal when dealing with noise that does not conform to the Gaussian distribution assumption.

[0004] In general, although existing research has solved the problem of object occlusion to a certain extent, there are still challenges in that the unoccluded area is not fully highlighted and the detector may predict multiple candidate detection boxes. Therefore, this paper will propose a new method to solve these problems and further improve the object detection performance in occluded scenes. Summary of the invention

[0005] Technical issues to be solved

[0006] In order to avoid the shortcomings of the prior art, the present invention proposes a network and target detection method for occluded target detection based on local perception. A local perception module is proposed at the feature level. Multiple local regions are explored through multiple local perception branches, and a random discarding strategy is used to force other branches to learn important local information in the prominent features. Considering that the detector may predict multiple candidate detection frames, a query update module is proposed. This module uses the spatial position information of the target to eliminate excessive candidate frames and improve the accuracy of the detection results.

[0007] Technical Solution

[0008] A network for occluded object detection based on local perception, characterized by comprising a prediction head of 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; wherein:

[0009] The backbone network adopts ResNet50;

[0010] The local perception module is connected to the output of the backbone network, including N local perception branches in parallel, connected to the random discard module and the maximum value module; the attention set generated by the N local perception branches is [M1, M2, ..., M N ] After passing the random discard module, connect to the maximum value module, and the output and input of the maximum value module are operated by points;

[0011] The hybrid encoder is connected 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 module CCFM; the input signal of the local perception module is divided into two paths, one path is directly input into the CCFM module, and the other path is input into the CCFM module after passing through the AIFI module, and the output of the CCFM module is the input information of the next module;

[0012] The IoU-aware query selection module is composed of a multi-layer perceptron, including a prediction box screening 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 stacks six decoding layers, and the basic structure of each decoding layer includes a self-attention module and a cross-attention module with multi-scale variability;

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

[0015] The ResNet50 module of the backbone network includes two stacked modules: a Conv Block module and an 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 of 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; this module enables the network to explore multiple discriminative local areas at the same time.

[0017] The hybrid encoder includes an AIFI module structure and a CCFM module. The AIFI module is composed of the self-attention mechanism in the Transformer, and the CCFM module is composed of multiple fusion blocks. Each fusion block contains N RepBlock modules, and each RepBlock module is composed of a convolutional layer and an Identity Block module. In this process, the outputs of two different paths are connected together by element-by-element 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 query and position query as input to calculate the self-attention mechanism, and the cross-attention module uses the output of the self-attention module and the output of the backbone network to calculate the cross-attention mechanism.

[0019] The query update module adopts a prediction head, including prediction box screening, relationship information extraction and query update; the prediction box screening is used to select prediction boxes with high confidence, and the relationship information extraction and query update are used to eliminate redundant prediction boxes.

[0020] A method for implementing target detection using the network for occluded target detection based on local perception is characterized by the following steps:

[0021] Step 1: After the image is input, it is convolved through the backbone network to output the 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 is 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 ], the size of each feature map is M i ∈R h* w *1 ;

[0023] The random discard method is used to obtain the remaining attention map, and then the maximum value of each point in the remaining attention map is taken to generate the final maximum attention map output to the next network:

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

[0025] Among them, x and y represent the coordinates of the attention map;

[0026] At the same time, the final attention map is multiplied with the feature map X at the input end as the output of this step;

[0027] Step 3: Perform hybrid encoding on the output of step 2, decomposing the interaction of multi-scale features into two levels of processes, namely, intra-scale interaction and cross-scale fusion, integrating the feature information of adjacent levels and generating a new feature map;

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

[0029] Detector optimization formula for IoU-aware query selection:

[0030]

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

[0032] Step 5: Initialize the location query using the top K features with the highest IoU-aware query prediction scores and decode the output of step 4.

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

[0034]

[0035] Among them, m represents the number of multi-head attention heads, l represents which layer of the encoder output the feature comes from, k represents the number of sampling points, and A mlqk represents the attention weight of the k-th sampling point on the l-th layer feature and the m-th attention head. The sum of all attention weights is 1. Δp mlqk represents the sampling offset, The function is to scale the normalized coordinates to correspond to the feature map of the lth layer;

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

[0037] The prediction box screening method is: the prediction box with high confidence is regarded as an acceptable prediction box, and the remaining prediction boxes are regarded as noisy prediction boxes. The formula for selecting acceptable prediction boxes is:

[0038]

[0039] Where t represents the decoder stage. t-1 Represents the prediction result generated by the decoder at stage t-1. Represent acceptable prediction boxes and noisy prediction boxes respectively. b i 、s i Represents the prediction box and confidence score;

[0040] Relation Information Extractor & Query Update: Eliminate some noisy query boxes. These query boxes predict targets that are already included in acceptable prediction boxes. The relation information extractor takes on the task of eliminating some noisy prediction boxes. The formula is as follows:

[0041]

[0042] Where: b i is the prediction box with noise, b j is the adjacent acceptable prediction box, (b i ,N(b i )) is a spatially related object, H(b i ) is the geometric feature relationship, N(·) represents the function of finding a similar acceptable query box, O(·) represents the function of completing the IoU calculation, θ is the pre-set prediction box overlap threshold, ε(·,·) represents the sine and cosine spatial position encoding function, 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 a prediction box.

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

[0045] The specific process of using the prediction head to automatically learn and generate prediction results in step 7 is:

[0046] Step 7.1: Perform mean subtraction preprocessing on the original image. The mean subtraction preprocessing is as follows: obtain the image

[0047] The pixel value mean of all pixels is subtracted from the obtained mean value for all pixels in the image, and the result after subtraction is used for training.

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

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

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

[0051] Beneficial Effects

[0052] The present invention proposes a network and target detection method for occluded target detection based on local perception. A local perception module is proposed at the feature level. Multiple local areas are explored through multiple local perception branches and a random discarding strategy is used to force other branches to learn important local information in the prominent features. Considering the problem that the detector may predict multiple candidate detection frames, a query update module is proposed. This module uses the spatial position information of the target to eliminate excessive candidate frames and improve the accuracy of the detection results. Finally, under the CrowdHuman dataset, the average accuracy index of the algorithm proposed in this study is improved by 0.7% compared with RT-DETR, the logarithmic mean of the false positive rate of each image has achieved a gain of 0.6%, and the Yaka index has achieved a gain of 1%.

[0053] The present invention adopts an occluded target detection method based on local perception. Aiming at the problems that the existing methods do not fully highlight the unoccluded areas and the detector may predict multiple candidate detection boxes, the local perception module and the query update module are innovatively introduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is an algorithm framework for occluded target detection based on local perception

[0055] Figure 2 Diagram of the backbone network

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

[0057] Figure 4 Schematic diagram of the hybrid encoder structure

[0058] Figure 5 AIFI structure diagram

[0059] Figure 6 Schematic diagram of CCFM structure

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

[0061] Figure 8 This is the structure diagram of the Conv Block module and the Identity Block module

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

[0063] Fig. 9 This is an example of the CrowdHuman dataset.

[0064] Fig. 9 (a) is a schematic diagram of RT-DETR results. Fig. 9 (b) Schematic diagram of the algorithm results proposed in this study DETAILED DESCRIPTION

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

[0066] The present invention proposes a method for detecting occluded objects based on local perception, and its network structure is as follows: Figure 1 As shown, the following steps are included:

[0067] Step 1: Build the backbone network

[0068] The backbone network of this study uses ResNet50, which first performs convolution on the input, then includes multiple residual modules, and finally performs a full connection operation to complete the classification task. The network structure diagram is shown in the figure: Figure 2 shown.

[0069] In the embodiment: ResNet50 is a deep neural network model, which consists of two core residual modules, namely Conv Block module and Identity Block module. Conv Block module is responsible for adjusting the size of the network. The input and output sizes of Identity Block module are the same, which is used to deepen the network. The structure of Conv Block module and IdentityBlock module is as follows Figure 8 .

[0070] Step 2: Build a local perception module

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

[0072] The local perception module structure is as follows Figure 3 As shown. Assume that the input feature map is 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 N local perception branches, each of which contains two 1×1 convolutional layers. The first convolutional layer reduces the original number of channels of 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 attention set generated by the N local perception branches is [M1, M2,…, M N ], the size of each feature map is M i ∈R h*w*1 . In order to force each local perception branch to explore local features that are beneficial to the target detection task, this module also adds a random discarding method. Specifically, N local perception branches can obtain N attention maps. For the obtained N attention maps, the attention map of a branch will be randomly set to 0, so as to discard the output of the branch. For the remaining N-1 attention maps, this paper will aggregate the remaining N-1 attention maps together through the operation of maximizing the pixel value, as shown in formula (1):

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

[0074] Among them, x and y represent the coordinates of the attention map. After obtaining the final attention map, it is multiplied with the original feature map X to give more attention to useful local information while suppressing some unimportant areas.

[0075] Step 3: Construct the hybrid encoder

[0076] The hybrid encoder decomposes the interaction of multi-scale features into two levels of processes, namely, intra-scale interaction and cross-scale fusion. Figure 4 As shown in Figure 2, 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 module (CCFM). The AIFI module structure is shown in Figure 2. Figure 5 The CCFM module inserts multiple fusion blocks (Fusion) composed of convolutional layers into the fusion path. The specific structure of CCFM is as follows Figure 6 These fusion blocks can integrate the feature information of adjacent levels and generate a new feature map, thereby improving the richness and expression ability of the features. The specific fusion block structure is shown in Figure 7shown.

[0077] In the embodiment: three effective features can be obtained through the backbone network and the local perception module, which are named S3, S4 and E5 in this study. First, only the E5 layer is used as follows Figure 5 The Transformer structure shown in the figure performs self-attention operation, which can reduce the computational redundancy of the encoder. E5 generates F5 features after passing through the self-attention module, and then sends F5, S4 and S3 to the CCFM module to perform information fusion of features at different levels.

[0078] Step 4: IoU-aware query selection

[0079] The decoder used in this study is a query-based decoder, so it is necessary to generate the object query vector required by the decoder. The IoU-aware query is the module that completes this task. During training, the algorithm is restricted to give high classification scores to features with high overlap and low classification scores to features with low overlap. This strategy can be used to obtain features with high classification scores and high IoU scores.

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

[0081]

[0082] in, y represents the predicted value and the true value respectively. c, b are the classification and target bounding box respectively. Through this optimization formula, the consistency constraint of classification and positioning can be achieved, avoiding the situation where the classification is trained and perfected in advance while the positioning is still being optimized.

[0083] Step 5: Decoder

[0084] The decoder stacks six decoding layers, and the basic structure of each decoding layer includes a self-attention module and a cross-attention module with multi-scale variability. For each decoding layer, it requires an embedded query vector as input. For the generation of query vectors, this study adopts a hybrid query method, that is, the query vector consists of a location query and a content query. The content query is input from the encoder and will not be initialized, while the location query will be initialized. Both are learnable and updateable query vectors. The content query and the location query are updated layer by layer, and finally more refined feature content and more refined target location are input. This study will use the top K features with the highest IoU-aware query prediction scores to initialize the location query, so as to avoid ambiguity and misleading of the decoder by unselected features.

[0085] In the calculation of the cross-attention module with 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. is the multi-scale feature map output by the encoder, where For the normalized coordinates of each query reference point, the multi-scale variability attention calculation formula is shown in (5):

[0086]

[0087] Among them, m represents the number of multi-head attention heads, l represents which layer of the encoder output the feature comes from, and k represents the number of sampling points. mlqk Represents the attention weight of the k-th sampling point on 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. In this calculation, the normalized coordinates are selected, and the normalized coordinates (0,0) represent the upper left corner of the image and (1,1) represent the lower right corner of the image. The function is to scale the normalized coordinates to correspond to the feature map of the lth layer. The multi-scale variability cross attention mechanism is basically the same as the single-scale idea, except that the multi-scale variability attention samples LK points from the multi-scale feature map, while the single-scale variability attention only samples K points from a single feature map. When the number of sampled points traverses all positions of the feature map, the variability attention mechanism is no different from the original Transformer attention. Using multi-scale deformable attention will extract image features near the reference point, so the reference point is chosen as the center of the bounding box to predict the offset relative to the reference point to predict the bounding box coordinates, which can further reduce the difficulty of optimization.

[0088] Step 6: Check for updates

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

[0090] Prediction box screening In this study, prediction boxes with high confidence are considered acceptable prediction boxes, and the remaining prediction boxes are considered noisy prediction boxes, that is, these prediction boxes may have a higher probability of containing wrong predictions. The formula for selecting acceptable prediction boxes is shown in (2):

[0091]

[0092] Where t represents the decoder stage. t-1 Represents the prediction result generated by the decoder at stage t-1. Represent acceptable prediction boxes and noisy prediction boxes respectively. b i 、s i Indicates the confidence of the prediction box and the size of the prediction box.

[0093] Relation Information Extractor & Query Update Based on the idea of ​​maximizing suppression to remove redundant boxes, if a target is included in a prediction box with high confidence, it is no longer necessary to use a noisy prediction box to predict the target. Therefore, it is necessary to eliminate part of the noisy query boxes, which predict the target already included in the acceptable prediction box. The relation information extractor in this study undertakes the task of eliminating some noisy prediction boxes. It 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 , in order to establish space-related objects (b i ,N(b i )). Next, the overlap ratio between the noisy prediction box and its adjacent acceptable prediction box is calculated and sent to a compact network to obtain the geometric feature relationship H(b i ). For each noisy prediction box, the number of acceptable neighboring prediction boxes is not predetermined, so an aggregation function is used to aggregate the geometric feature relationship H(b i ) is compressed to a certain feature dimension. This study uses maximum pooling to complete feature compression. The compressed geometric feature relationship will be further aggregated with the transformed query features, and the aggregated features will pass through a nonlinear function activation layer. The query features after aggregating the geometric feature information will be used for the next step of local multi-head attention calculation. In the formula, N(·) represents the function of finding similar acceptable query boxes, O(·) represents the function of completing IoU calculation, and θ is the pre-set prediction box overlap threshold. If the overlap of the prediction box is higher than the pre-set threshold, it is considered that an acceptable prediction box adjacent to the noisy prediction box has been found. ε(·,·) represents the sine and cosine spatial position encoding functions. The u(·,·) function is used to generate geometric feature relationships and consists of two linear layers.

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

[0097] Step 7.1: Perform mean subtraction preprocessing on the original image. The mean subtraction preprocessing is as follows: obtain the image

[0098] The pixel value mean of all pixels is subtracted from the obtained mean value for all pixels in the image, and the result after subtraction is used for training.

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

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

[0101] Experimental results and analysis:

[0102] (1) Overall results comparison

[0103] In order to measure the effectiveness of this study, this study compares the results of the proposed local perception-based occluded object detection model and the mainstream object detector 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 and achieves significant performance improvements, which illustrates the effectiveness of the method proposed in this study in dealing with occluded scenes.

[0107] As can be seen from the table data, the algorithm with the best accuracy test effect is the method in this study. Specifically, the method in this paper achieves a 1% average accuracy index gain over the MIP method, and the MIP algorithm is specifically used to deal with occluded scenes. At the same time, compared with the Transformer-based detection algorithms D-DETR and DETR, the algorithm in this study also shows obvious advantages.

[0108] Fig. 9 The comparison chart of the results between the method proposed in this study and RT-DETR is shown. Fig. 9 (a) shows the detection result of RT-DETR. Fig. 9 (b) is the test result of the method proposed in this study. The test results are marked with a rectangular box. Fig. 9 From the first and second pictures, we can see that RT-DETR misses human detection in an occluded environment. Fig. 9 From the third and fourth images of the image, we can see that in an occluded environment, RT-DETR has misdetected people. However, the algorithm proposed in this study detects most people in an occluded environment. This further verifies the superiority of the occluded image target detection algorithm based on local perception proposed in this study.

[0109] (2) Evaluation of local perception module

[0110] In order to verify the effectiveness of the proposed local perception module, a comparative experiment was designed. This study adds local perception modules of different structures on the basis of the RT-DETR network and query update strategy. In the table, RT-QU means adding a query update module on RT-DETR, RT-QU-SINGLE means adding a query update module and a local perception module on RT-DETR, and RT-QU-MULTI means adding a query update module and a multi-scale local perception module on RT-DETR. The results are shown in Table 2:

[0111] Table 2 Results of adding local perception modules with different structures on the CrowdHuman dataset

[0112]

[0113] From the data in the table, it can be seen that the local perception module proposed in this study has the best results. Compared with the network without adding the local perception module, adding the local perception module achieves a 0.3% average accuracy index gain and a 0.6% Yaka index index gain. The detection results are similar to those of adding a multi-scale local perception module, but the local perception module proposed in this study is based on a single scale, has fewer parameters, and has a better network structure.

[0114] (3) Query the evaluation of the update module

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

[0116] Table 3 Results of the query update module comparison experiment on the CrowdHuman dataset

[0117]

[0118] From the data in the table, it can be seen that the query update module proposed in this section is effective. Compared with the network without adding the query update module, adding the query update module achieves a 0.4% average accuracy indicator gain, a 0.6% per-image false positive rate logarithmic mean indicator gain, and a 0.4% Yaka index indicator gain.

Claims

1. A network for occluded target detection based on local perception, characterized in that It includes 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; wherein: The backbone network adopts ResNet50; The local perception module is connected to the output of the backbone network, including N local perception branches in parallel, connected to the random discard module and the maximum value module; the attention set generated by the N local perception branches is [M1, M2, ..., M N ] After passing the random discard module, connect to the maximum value module, and the output and input of the maximum value module are operated by points; The hybrid encoder is connected 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 module CCFM; the input signal of the local perception module is divided into two paths, one path is directly input into the CCFM module, and the other path is input into the CCFM module after passing through the AIFI module, and the output of the CCFM module is the input information of the next module; The IoU-aware query selection module is composed of a multi-layer perceptron, including a prediction box screening 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 stacks six decoding layers, and the basic structure of each decoding layer includes a self-attention module and a cross-attention module with multi-scale variability; The query update module uses the spatial position information of the target to eliminate excessive candidate boxes.

2. The network for occluded target detection based on local perception according to claim 1, characterized in that: The ResNet50 module of the backbone network includes two stacked modules: a Conv Block module and an Identity Block module; the backbone network is used to extract image features.

3. The network for occluded target detection based on local perception according to claim 1, characterized in that: Each local perception branch contains two 1×1 convolutional layers. The first convolutional layer reduces the original number of channels of 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. This module enables the network to explore multiple discriminative local areas at the same time.

4. The network for occluded target detection based on local perception according to claim 1, characterized in that: The hybrid encoder includes an AIFI module structure and a CCFM module. The AIFI module is composed of the self-attention mechanism in the Transformer, and the CCFM module is composed of multiple fusion blocks. Each fusion block contains N RepBlock modules, and each RepBlock module is composed of a convolutional layer and an Identity Block module. In this process, the outputs of two different paths are connected together by element-by-element addition, thereby realizing feature fusion and interaction.

5. The network for occluded target detection based on local perception according to claim 1, characterized in that: The decoder includes a self-attention module and a multi-scale deformable cross-attention module. The self-attention module uses content query and position query as input to calculate the self-attention mechanism, and the cross-attention module uses the output of the self-attention module and the output of the backbone network to calculate the cross-attention mechanism.

6. The network for occluded target detection based on local perception according to claim 1, characterized in that: The query update module adopts a prediction head, including prediction box screening, relationship information extraction and query update; the prediction box screening is used to select prediction boxes with high confidence, and the relationship information extraction and query update are used to eliminate redundant prediction boxes.

7. A method for implementing target detection using the network for occluded target detection based on local perception according to claims 1 to 6, characterized in that Here are the steps: Step 1: After the image is input, it is convolved through the backbone network to output the 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; Step 2: Input feature map is 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 ], the size of each feature map is M i ∈R h*w*1 ; The random discard method is used to obtain the remaining attention map, and then the maximum value of each point in the remaining attention map is taken to generate the final maximum attention map output to the next network: M out (x,y)=max{M1(x,y),M2(x,y),...,M N (x,y)} in, x and y represent the coordinates of the attention map; At the same time, the final attention map is multiplied with the feature map X at the input end as the output of this step; Step 3: Perform hybrid encoding on the output of step 2, decomposing the interaction of multi-scale features into two levels of processes, namely, intra-scale interaction and cross-scale fusion, integrating the feature information of adjacent levels and generating a new feature map; Step 4: Perform IoU-aware query selection on the output of step 3, and use the classification function to select the top k features from the encoder to initialize the query vector; Detector optimization formula for IoU-aware query selection: in, y represents the predicted value and the true value respectively. y = {c, b}; c, b are the classification and target bounding box respectively; Step 5: Initialize the location query using the top K features with the highest IoU-aware query prediction scores and decode the output of step 4. The encoder's three-layer multi-scale features are used as the source of keys and values ​​in Transformer. is the multi-scale feature map output by the encoder, where For the normalized coordinates of each query reference point, the multi-scale variability attention calculation formula is: Among them, m represents the number of multi-head attention heads, l represents which layer of the encoder output the feature comes from, k represents the number of sampling points, and A mlqk represents the attention weight of the k-th sampling point on the l-th layer feature and the m-th attention head. The sum of all attention weights is 1. Δp mlqk represents the sampling offset, The function is to scale the normalized coordinates to correspond to the feature map of the lth layer; Step 6: Query and update the output of step 5; The prediction box screening method is: the prediction box with high confidence is regarded as an acceptable prediction box, and the remaining prediction boxes are regarded as noisy prediction boxes. The formula for selecting acceptable prediction boxes is: Among them, t represents the stage of the decoder, D t-1 represents the prediction result generated by the decoder in stage t-1, They represent acceptable prediction boxes and noisy prediction boxes, respectively, and b i 、s i Represents the prediction box and confidence score; Relation Information Extractor & Query Update: Eliminate some noisy query boxes. These query boxes predict targets that are already included in acceptable prediction boxes. The relation information extractor takes on the task of eliminating some noisy prediction boxes. The formula is as follows: Where: b i is the prediction box with noise, b j is the adjacent acceptable prediction box, (b i ,N(b i )) is a spatially related object, H(b i ) is the geometric feature relationship, N(·) represents the function of finding a similar acceptable query box, O(·) represents the function of completing the IoU calculation, θ is the pre-set prediction box overlap threshold, ε(·,·) represents the sine and cosine spatial position encoding function, and u(·,·) function is used to generate the geometric feature relationship; Step 7: Use the prediction head to predict the output of step 6 and generate a prediction box.

8. The method according to claim 7, characterized in that: The random discarding method is: randomly set the attention map of a branch to 0, discard the output of the branch; aggregate the remaining N-1 attention maps together through the operation of maximizing the pixel value to obtain the final attention map M out (x,y).

9. The method according to claim 8, characterized in that The specific process of using the prediction head to automatically learn and generate prediction results in step 7 is: Step 7.1: Perform mean subtraction preprocessing on the original image. The mean subtraction preprocessing is as follows: obtain the image The mean pixel value of all pixels in the image is subtracted from the obtained mean value, and the result of the subtraction is used for training; Step 7.2: Use fine-tuning network training method. After image mean subtraction processing, the image is input into the network for training. The training loss in the fine-tuning process is defined as target confidence loss, category confidence loss and coordinate regression loss. Step 7.3: Perform several iterations of training for each image, and judge the model convergence by the change in the loss function value until the model reaches a convergence state.

10. A computer program product, characterized in that The invention comprises computer executable instructions, which are used to implement the methods of claims 7 to 9 when being executed.

Citation Information

Cited By

  • Data denoising and enhancement collaborative representation learning method

    CN119723099A

  • Data denoising and enhancement collaborative representation learning method

    CN119723099B

  • Prefabricated tunnel segment embedded sleeve detection method based on target detection algorithm

    CN119963804A