Small target detection method based on full pipeline improvement

By performing feature purification, label assignment and classification regression in the upstream, midstream and downstream stages of the small target detection pipeline, combined with multi-index and frequency decoupling technology, the problem of insufficient features and noise interference in small target detection is solved, significantly improving Detection performance.

CN118229964BActive Publication Date: 2024-10-08XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410652793.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-10-08
Estimated Expiration
2044-05-24

Smart Images

  • Figure CN118229964B_ABST
    Figure CN118229964B_ABST
Patent Text Reader

Abstract

The invention discloses a small target detection method based on full pipeline improvement, which is improved in three stages of the target detection pipeline and comprehensively improves the detection performance of small targets. The method comprises the following steps: preprocessing a to-be-detected picture, and then sending the preprocessed to-be-detected picture and its corresponding label into a neural network; the neural network extracts and fuses features on the to-be-detected picture at the upstream of the detection pipeline and performs purification operations to obtain a feature map; in the middle of the detection pipeline, IoU, position offset index and size constraint index are used to jointly score candidate frames of the feature map and assign positive labels and negative labels; in the downstream of the detection pipeline, the training samples with assigned labels and the feature map are sent together to a frequency decoupling detection head for classification and regression, and the probability value of each category of the to-be-detected target in the to-be-detected picture and the corresponding position information are output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a small target detection method based on full pipeline improvement. Background Art

[0002] Object detection is a widely studied task that aims to locate and classify objects of interest. As an important extension of object detection, small object detection is of considerable significance, spanning the fields of theoretical research and practical application. On the one hand, in general detection scenarios, the objects to be detected often cover various scales. Improving the detection performance of small objects is conducive to overcoming the detection bottleneck and greatly improving the overall detection performance; on the other hand, in some specific detection scenarios, such as remote sensing, disaster relief, intelligent transportation, medical applications, etc., the number of small objects is dominant, and enhancing the performance of small object detection will greatly promote the progress of these fields.

[0003] The current small object detection process is similar to a factory assembly line and can be divided into three main stages: upstream, midstream, and downstream. When an image enters the pipeline, the upstream stage uses a pre-trained model to extract and fuse features to form an initial feature map; subsequently, the feature map is sent to the midstream together with the candidate samples, where the allocator acts as a worker to evaluate the quality of the samples and assign positive or negative labels based on their evaluations; finally, the training samples and feature maps enter the downstream detection stage, where the detection head performs classification and regression tasks to generate detection results. The main reason why small object detection is still a challenging task is that the features in the detection process are insufficient and of low quality. In the three key stages of the pipeline, small object features are easily lost, and low-quality small object features limit information utilization, resulting in a significant decrease in small object detection performance. Specifically, we found the following three problems in the widely used small object detection framework:

[0004] (1) The noisy low-frequency information at the bottom of the FPN (Feature Pyramid Network) overwhelms the high-frequency information necessary for detecting small objects. We attribute this phenomenon to the influence of feature fusion in FPN, where the top-down fusion of FPN continuously fuses semantic information from the top layer with detailed information, which inadvertently obscures the information of small objects.

[0005] (2) Single-standard label assignment greatly limits the number of positive samples for small objects. Many mainstream object detectors rely solely on the widely used IoU-based label assignment. The single standard leads to limited evaluation of sample quality, thereby ignoring the diversity of training samples. IoU (intersection over union) is essentially the Jaccard coefficient in mathematics, which has an inherent flaw: it is sensitive to the size of the set. This problem is particularly evident in small object detection, leading to various problems such as bias and size.

[0006] (3) Using shared features and structures for classification and regression tasks is not conducive to small object detection. Small objects are inherently susceptible to interference from background and noise. Directly classifying and regressing these features simultaneously will confuse the detector's judgment. In addition, standard detection heads usually use the same structure for different classification and regression. However, it would make more sense to design different structures for different tasks.

[0007] As an important branch of target detection, many mainstream detectors have proposed some corresponding mechanisms to enhance the perception of small targets in order to take into account the detection performance of small targets. For example, for anchor-based detectors, they usually use feature pyramid networks (FPN) in the feature fusion stage. Due to the divide-and-conquer strategy of FPN, the underlying high-resolution feature maps contain a lot of detailed information, so small targets can be better detected from the underlying features. For anchor-free detectors, they use dense prior points to increase the coverage of small targets and improve the recall rate of model detection. Although these methods have adopted some mechanisms to detect small targets, the general detectors themselves are more concerned with improving the overall detection performance, and the attention to small targets is still insufficient.

[0008] Small object detection methods generally revolve around obtaining higher quality small object features. Common methods include data enhancement, feature fusion, super-resolution, contextual relationship modeling, etc. Recently, researchers have explored ways to introduce Gaussian probability models in model learning to enhance small object detection. Yang et al. proposed GWD (Xue Yang, Junchi Yan, QiMing, Wentao Wang, Xiaopeng Zhang, Qi Tian: "Rethinking Rotated Object Detection with Gaussian Wasserstein Distance Loss" in InternationalConference on Machine Learning, 2021.) and KLD (Xue Yang, Xiaojiang Yang, JiruiYang, Qi Ming, Wentao Wang, Qi Tian, ​​Junchi Yan: "Learning High Precision Bounding Box for Rotated Object Detection via Kullback-leibler Divergence" Advances in Neural Information Processing Systems 34, 2021). These methods use a priori Gaussian distribution modeling to detect objects, providing a new perspective for small object detection. Based on this, Xu et al. (Xu, C., Wang, J., Yang, W., Yu, H., Yu, L., Xia, GS: Rfla: Gaussian Receptive Field Based Label Assignment for Tiny Object Detection. In: European Conference on Computer Vision. pp. 526–543. Springer 2022) designed a label assignment method for small targets based on Gaussian modeling.Subsequently, Xu et al. (Chang Xu, Jian Ding, Jinwang Wang, Wen Yang, Huai Yu, Lei Yu, Gui-Song Xia: "Dynamic Coarse-to fine Learning for Oriented Tiny Object Detection" in Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition, 2023) proposed a coarse-to-fine label assignment strategy DCFL, which further refined the selection process of high-quality positive samples. The latest progress in small object detection is CFINet proposed by Yuan et al. (Xiang Yuan, Gong Cheng, Kebing Yan, Qinghua Zeng, Junwei Han, "SmallObject Detection via Coarse-to-fine Proposal Generation and Imitation Learning" in Proceedings of the IEEE / CVF International Conference on Computer Vision, 2023), which improves the region proposal network and detection head of the two-stage detector, and achieves a relatively high recall rate by adopting a coarse-to-fine process, ensuring a sufficient number of high-quality proposal boxes. In addition, it also combines contrastive learning methods to enhance the quality of small target features. In summary, although small target detection has made some progress, the existing methods for small target detection are still limited to improving specific stages of the detection pipeline. This barrel effect still limits the improvement of the overall performance. Summary of the invention

[0009] The purpose of the present invention is to provide a small target detection method based on full pipeline improvement to solve the problems existing in the prior art. Improvements are made in the three stages of the target detection pipeline to comprehensively improve the detection performance of small targets.

[0010] In order to achieve the above object, the solution of the present invention is:

[0011] A small target detection method based on full pipeline improvement includes a hierarchical feature purification module, a multi-index label allocation module and a frequency decoupling detection head, and performs the following steps:

[0012] Step 1. Preprocess the image to be detected, and then send the preprocessed image to be detected and its corresponding label into the neural network;

[0013] Step 2. The neural network extracts and fuses features of the image to be detected in the upstream of the detection pipeline, and purifies the features in the hierarchical feature purification module to obtain feature maps, which are then sent to the multi-indicator label assignment module;

[0014] Step 3. In the middle of the detection pipeline, the feature map contains a large number of pre-generated candidate boxes and labels of real samples. The labels of real samples contain information about the real boxes. The multi-index label assignment module uses IoU, position offset index and size constraint index to score the candidate boxes, and assigns positive and negative labels to the candidate boxes according to the scoring results. All candidate boxes with assigned labels together constitute the training samples.

[0015] Step 4. Downstream of the detection pipeline, assign labeled training samples and features Figure 1 It is sent to the frequency decoupled detection head for classification and regression, and the probability value of each category of the target to be detected in the image to be detected and the corresponding position information are output; if it is a training process, the loss is calculated based on the results obtained in this stage and the true label, and then the gradient is back-transferred to update the model parameters; if it is a testing process, the coordinates, category, and confidence score of the predicted box in the image to be detected are directly output.

[0016] In the step 1, when the image to be detected is preprocessed, the image to be detected is first standardized, then scaled to a size of 256×256, and finally randomly cropped to a size of 224×224.

[0017] Preferably, in step 2, a backbone feature extraction network is used for feature extraction, and a feature pyramid network is used in combination with a hierarchical feature purification module for feature fusion; and the following steps are performed:

[0018] Step 2-1. Select the first Feature maps below the layer , for the feature map Perform fast Fourier transform to generate spectrum ;

[0019] Step 2-2. Generate a mask , which is applied to the spectrogram Perform high-pass filtering to obtain the filtered spectrum , the specific generation method is as follows:

[0020] ;

[0021] in and Mask The horizontal and vertical coordinates of the upper point; intermediate parameters The calculation formula is ; It is a feature map The level at which you are located; and are the height and width of the feature map respectively; is the filtering strength, and It is also an adjustable hyperparameter; Indicates the operation of taking absolute value;

[0022] Step 2-3. Filter the spectrum Perform inverse fast Fourier transform to obtain a new feature map that emphasizes detail information ;

[0023] Step 2-4. Use the residual structure to fuse the feature maps And the new feature map Information from the purified feature map For subsequent testing, the process is expressed as follows:

[0024] ;

[0025] in represents the inverse fast Fourier transform, represents fast Fourier transform; Represents an element-wise product operation; is the weight parameter of the residual structure.

[0026] Preferably, in step 3, the multi-index label allocation module performs the following steps:

[0027] Step 3-1. The multi-index label assignment module is based on the center coordinates of all real boxes. He Kuan ,high , each row vector of the matrix is ​​composed of the center coordinates and width and height of each real box, expressed as The four-tuple form of the real frame is obtained ,in is the number of ground-truth boxes, subscript It is the abbreviation of the real box groundtruth; at the same time, the multi-index label assignment module is based on the center coordinates of all candidate boxes He Kuan ,high , each row vector of the matrix is ​​formed by the center coordinates and width and height of each candidate box, expressed as The four-tuple form of the candidate box is obtained ,in is the number of candidate boxes, subscript It is the abbreviation of candidate box proposal;

[0028] Step 3-2. The multi-index label assignment module decouples the position and shape of the true box and the candidate box, and calculates their mean square error:

[0029] ;

[0030] ;

[0031] in, It represents the mathematical 2-norm calculation. is the square of the 2-norm; and before the comma Indicates selecting all values ​​of the first dimension in the previous matrix. After the comma The comma after the comma selects the first two values ​​of the second dimension in the previous matrix. It means to select the third and subsequent values ​​of the second dimension in the previous matrix;

[0032] Will Normalization:

[0033] ;

[0034] Step 3-3. The multi-metric label assignment module calculates the IoU score , Position shift score and shape constraint score These three evaluation indicators determine the score of the candidate box; among them, Following the calculation method of existing technology, and The calculation formula is as follows:

[0035] ;

[0036] ;

[0037] in, and Represent the real box and the candidate box respectively;

[0038] Step 3-4. Score the obtained IoU , Position shift standard score , Shape Constraint Standard Score Weighted to get a final score :

[0039] ;

[0040] in, , and They are the IoU scores , Position shift standard score , Shape Constraint Standard Score The weight parameter of

[0041] Step 3-5. According to the pre-set positive and negative sample thresholds, and the final score Compare; if the final score If the final score is higher than the positive sample threshold, the candidate box is assigned a positive label and classified as a positive sample. If the value is lower than the negative sample threshold, the candidate box is assigned a negative label and classified as a negative sample; the remaining candidate boxes are classified as ignored samples.

[0042] Preferably, in step 4, the frequency decoupling detection head includes two branches for classification and regression, and performs the following steps:

[0043] Step 4-1. Feature map generated from RoIAlign First, use FFT filter to extract low-frequency characteristic components , which mainly contains semantic information and high-frequency feature components that capture detailed contour information , these two feature components pass through two BR layers respectively:

[0044] ;

[0045] ;

[0046] in It is a feature map The number of channels; and Respectively represent the strength of low-pass filtering and high-pass filtering, which are two adjustable hyperparameters;

[0047] Step 4-2. In the classification branch, low-frequency feature components After two fully connected layers and , get the feature vector for classification , the process is expressed by the formula as follows:

[0048] ;

[0049] Step 4-3. In the regression branch, high-frequency feature components The dimension is increased through a convolution layer, and then through multiple convolution blocks, and finally global average pooling is performed. , obtain the feature vector for regression , the process is expressed by the formula as follows:

[0050]

[0051] in, are the learnable parameters within the convolutional layer;

[0052] Step 4-4. Finally, and The classification and regression results are obtained through independent linear layers, and the gradient backpropagation is performed to update the parameters in the training phase, and the detection results are output in the testing phase.

[0053] After adopting the above technical solution, the present invention has the following technical effects:

[0054] (1) Ability to jointly optimize the upstream, midstream, and downstream stages of the detection pipeline;

[0055] (2) It alleviates the existing problems in small target detection from three perspectives: feature extraction, label assignment, and classification regression. This enables the detector to have clearer small target features, provide more high-quality positive samples for small-sized targets, and have stronger classification and regression capabilities.

[0056] (3) The three proposed modules are plug-and-play and can be seamlessly integrated into the benchmark algorithm, thereby significantly improving the detection performance, especially the detection performance of small objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a structural schematic diagram of a specific embodiment of the present invention;

[0058] Figure 2 This is a comparison chart of the detection results of the present invention and other existing technologies on the SODA-D data set;

[0059] Figure 3 The figure is a comparison chart of the detection results of the present invention and other existing technologies on the AI-TOD dataset. DETAILED DESCRIPTION

[0060] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.

[0061] refer to Figure 1 As shown, the present invention discloses a small target detection method based on full pipeline improvement, including a hierarchical feature purification module (HFP), a multi-index label allocation module (MCLA) and a frequency decoupling detection head, and performs the following steps:

[0062] Step 1. Preprocess the image to be detected, and then send the preprocessed image to be detected and its corresponding label into the neural network;

[0063] Step 2. The neural network extracts and fuses features of the image to be detected in the upstream of the detection pipeline, and purifies the features in the hierarchical feature purification module to obtain feature maps, which are then sent to the multi-indicator label assignment module;

[0064] Step 3. In the middle of the detection pipeline, the feature map contains a large number of pre-generated candidate boxes and labels of real samples. The labels of real samples contain information about the real boxes. The multi-index label assignment module uses IoU, position offset index and size constraint index to score the candidate boxes, and assigns positive and negative labels to the candidate boxes according to the scoring results. All candidate boxes with assigned labels together constitute the training samples.

[0065] Step 4. Downstream of the detection pipeline, assign labeled training samples and features Figure 1 It is sent to the frequency decoupled detection head for classification and regression, and the probability value of each category of the target to be detected in the image to be detected and the corresponding position information are output; if it is a training process, the loss is calculated based on the results obtained in this stage and the true label, and then the gradient is back-transferred to update the model parameters; if it is a testing process, the coordinates, category, and confidence score of the predicted box in the image to be detected are directly output.

[0066] Through the above scheme, compared with the prior art, the present invention has the following outstanding advantages:

[0067] (1) Ability to jointly optimize the upstream, midstream, and downstream stages of the detection pipeline;

[0068] (2) It alleviates the existing problems in small target detection from three perspectives: feature extraction, label assignment, and classification regression. This enables the detector to have clearer small target features, provide more high-quality positive samples for small-sized targets, and have stronger classification and regression capabilities.

[0069] (3) The three proposed modules are plug-and-play and can be seamlessly integrated into the benchmark algorithm, thereby significantly improving the detection performance, especially the detection performance of small objects.

[0070] Specific embodiments of the present invention are shown below.

[0071] In the above step 1, when preprocessing the image to be detected, the image to be detected is first standardized, then scaled to 256×256, and finally randomly cropped to 224×224.

[0072] In step 2 above, the backbone feature extraction network (ResNet50) is used for feature extraction, and the feature pyramid network (FPN) is used with the hierarchical feature purification module for feature fusion; and the following steps are performed:

[0073] Step 2-1. Select the first Feature maps below the layer , for the feature map Perform a fast Fourier transform (FFT) to generate a spectrum ;

[0074] Step 2-2. Generate a mask , which is applied to the spectrogram Perform high-pass filtering to obtain the filtered spectrum ;pass The purity of the high-frequency information retained can be controlled, and the specific generation method is as follows:

[0075] ;

[0076] in and Mask The horizontal and vertical coordinates of the upper point; intermediate parameters The calculation formula is ; It is a feature map The level at which you are located; and are the height and width of the feature map respectively; is the filtering strength, and It is also an adjustable hyperparameter; Indicates the operation of taking absolute value;

[0077] Step 2-3. Filter the spectrum Perform an inverse fast Fourier transform (IFFT) to obtain a new feature map that emphasizes detail information ;

[0078] Step 2-4. Use the residual structure to fuse the feature maps And the new feature map Information from the purified feature map For subsequent testing, the process is expressed as follows:

[0079] ;

[0080] in represents the inverse fast Fourier transform, represents fast Fourier transform; Represents an element-wise product operation; is the weight parameter of the residual structure.

[0081] In the above step 3, the multi-indicator label assignment module performs the following steps:

[0082] Step 3-1. The multi-index label assignment module is based on the center coordinates of all real boxes. He Kuan ,high , each row vector of the matrix is ​​composed of the center coordinates and width and height of each real box, expressed as The four-tuple form of the real frame is obtained ,in is the number of ground-truth boxes, subscript It is the abbreviation of the real box groundtruth; at the same time, the multi-index label assignment module is based on the center coordinates of all candidate boxes He Kuan ,high , each row vector of the matrix is ​​formed by the center coordinates and width and height of each candidate box, expressed as The four-tuple form of the candidate box is obtained ,in is the number of candidate boxes, subscript It is the abbreviation of candidate box proposal;

[0083] Step 3-2 The multi-index label assignment module decouples the position and shape of the real box and the candidate box, and calculates their mean square error:

[0084] ;

[0085] ;

[0086] in, It represents the mathematical 2-norm calculation. is the square of the 2-norm; and before the comma Indicates selecting all values ​​of the first dimension in the previous matrix. After the comma The comma after the comma selects the first two values ​​of the second dimension in the previous matrix. It means to select the third and subsequent values ​​of the second dimension in the previous matrix;

[0087] Will Normalization:

[0088] ;

[0089] Step 3-3. The multi-metric label assignment module calculates the IoU score , Position shift score and shape constraint score These three evaluation indicators are used to determine the score of the candidate box, which comprehensively reflects the similarity between the candidate box and each real box; among them, Following the calculation method of existing technology, and The calculation formula is as follows:

[0090] ;

[0091] ;

[0092] in, and They represent the real box and the candidate box respectively;

[0093] Step 3-4. Score the obtained IoU , Position shift standard score , Shape Constraint Standard Score Weighted to get a final score :

[0094] ;

[0095] in, , and They are the IoU scores , Position shift standard score , Shape Constraint Standard Score The weight parameter of

[0096] Final score Since many factors of the candidate box are examined, the quality of each candidate box can be comprehensively reflected;

[0097] Step 3-5. According to the pre-set positive and negative sample thresholds, and the final score Compare; if the final score If the final score is higher than the positive sample threshold, the candidate box is assigned a positive label and classified as a positive sample. If the value is lower than the negative sample threshold, the candidate box is assigned a negative label and classified as a negative sample; the remaining candidate boxes are classified as ignored samples.

[0098] In step 4 above, the frequency decoupled detection head contains two branches for classification and regression, and performs the following steps:

[0099] Step 4-1. Feature map generated from RoIAlign First, use FFT filter to extract low-frequency characteristic components , which mainly contains semantic information and high-frequency feature components that capture detailed contour information , these two feature components pass through two BN-ReLU (BR) layers respectively:

[0100] ;

[0101] ;

[0102] in It is a feature map The number of channels; and Respectively represent the strength of low-pass filtering and high-pass filtering, which are two adjustable hyperparameters;

[0103] Step 4-2. In the classification branch, low-frequency feature components After two fully connected layers and , get the feature vector for classification , the process is expressed by the formula as follows:

[0104] ;

[0105] Step 4-3. In the regression branch, high-frequency feature components The dimension is increased through a convolution layer, and then through multiple convolution blocks, and finally global average pooling is performed. , obtain the feature vector for regression , the process is expressed by the formula as follows:

[0106] ;

[0107] in, are the learnable parameters within the convolutional layer;

[0108] Step 4-4. Finally, and The classification and regression results are obtained through independent linear layers, and the gradient backpropagation is performed to update the parameters in the training phase, and the detection results are output in the testing phase.

[0109] As mentioned above, the hierarchical feature purification module designed by the present invention classifies the features and purifies the underlying features after classification, filters out redundant semantic information and removes harmful noise, thereby retaining detail information and solving the problem of dilution of underlying detail information in small target detection. Secondly, the multi-index label assignment module effectively alleviates the problem that the single evaluation index of IoU is unfair to small targets. It introduces two completely decoupled evaluation indexes, the position offset index and the size constraint index, based on the original IoU index. The position offset index uses the center distance between the two frames as the standard to clearly score the distance between the target and the detection frame, and this score is independent of the size of the object, which is an indicator that is fair to different scales. The size constraint index evaluates from the size of the frame, which is an evaluation method that is completely decoupled from the position offset index. On the one hand, it considers the problem of whether the shape is similar, and on the other hand, it also constrains the size of the sample. These two indicators are designed based on the mean square error, and are mathematically complementary to the Jaccard coefficient, thereby making up for the problem that the original label assignment method does not pay enough attention to small targets. Finally, the frequency decoupled detection head used in the downstream detection uses the prior information of frequency to reduce the interference of noisy information, and extracts the semantic component and detail component of the feature for better classification and regression respectively. The structure of the detection head is also decoupled. The classification branch uses a fully connected layer to establish a complex mapping relationship for multiple categories, while the regression branch uses a convolutional layer because convolution has characteristics such as translation invariance, which is more advantageous for regression tasks.

[0110] The technical effect of the present invention is further illustrated by the following simulation experiments.

[0111] ①Simulation conditions

[0112] The present invention is developed on the Ubuntu platform, and the developed deep learning framework is based on Pytorch, and the main language used is Python.

[0113] ②Simulation content

[0114] Using two well-known small target datasets, SODA-D and AI-TOD, the network is trained according to the above steps and tested using the test set. Figure 2 and Figure 3 The results of the present invention and other methods on two data sets are shown respectively. It can be found that the present invention consistently improves the performance of the baseline algorithm, and compared with other methods, the present invention achieves the best results. Among them, PLUSNet corresponds to the results of the present invention. Indicates a very small target, Relatively small goals, Indicates general small goals, represents a normal size target. These indicators can intuitively reflect the detection performance of small targets, while the evaluation indicators , , It represents the average detection performance of the algorithm for various targets. The detection performance of this method on the SODA-D dataset reaches 32.0% (ResNet50), and the detection performance on the AI-TOD dataset reaches 24.8% (ResNet50), which is higher than other methods, proving that the present invention has better effect in small target detection.

[0115] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.

Claims

1. A small target detection method based on full pipeline improvement, characterized in that: It includes a hierarchical feature purification module, a multi-index label assignment module, and a frequency decoupling detection head, and performs the following steps: Step 1. Preprocess the image to be detected, and then send the preprocessed image to be detected and its corresponding label into the neural network; Step 2. The neural network extracts and fuses features of the image to be detected in the upstream of the detection pipeline, and purifies the features in the hierarchical feature purification module to obtain feature maps, which are then sent to the multi-indicator label assignment module; Step 3. In the middle of the detection pipeline, the feature map contains a large number of pre-generated candidate boxes and labels of real samples, and the labels of real samples contain information about the real boxes; the multi-index label assignment module uses IoU, position offset index and size constraint index to score the candidate boxes, and assigns positive labels and negative labels to the candidate boxes according to the scoring results. All candidate boxes with assigned labels together constitute training samples; wherein the size constraint index includes size constraint and shape constraint; Step 4. In the downstream of the detection pipeline, the labeled training samples and feature maps are sent to the frequency decoupling detection head for classification and regression, and the probability value of each category of the target to be detected in the image to be detected and the corresponding position information are output; if it is a training process, the loss is calculated based on the results obtained in this stage and the true label, and then the gradient is back-transferred to update the model parameters; if it is a testing process, the coordinates, category, and confidence score of the predicted box in the image to be detected are directly output; In the step 1, when the image to be detected is preprocessed, the image to be detected is first standardized, then scaled to a size of 256×256, and finally randomly cropped to a size of 224×224; In step 2, a backbone feature extraction network is used to extract features, and a feature pyramid network is used in combination with a hierarchical feature purification module to perform feature fusion; and the following steps are performed: Step 2-1. Select the first Feature maps below the layer , for the feature map Perform fast Fourier transform to generate spectrum ; Step 2-2. Generate a mask , which is applied to the spectrogram Perform high-pass filtering to obtain the filtered spectrum , the specific generation method is as follows: ; in and Mask The horizontal and vertical coordinates of the upper point; intermediate parameters The calculation formula is ; It is a feature map The level at which you are located; and are the height and width of the feature map respectively; is the filtering strength, and It is also an adjustable hyperparameter; Indicates the operation of taking absolute value; Step 2-3. Filter the spectrum Perform inverse fast Fourier transform to obtain a new feature map that emphasizes detail information ; Step 2-4. Use the residual structure to fuse the feature maps And the new feature map Information from the purified feature map For subsequent testing, the process is expressed as follows: ; in represents the inverse fast Fourier transform, represents fast Fourier transform; Represents an element-wise product operation; is the weight parameter of the residual structure.

2. The small target detection method based on full pipeline improvement as claimed in claim 1, characterized in that: In step 3, the multi-index label allocation module performs the following steps: Step 3-1. The multi-index label assignment module is based on the center coordinates of all real boxes. He Kuan ,high , each row vector of the matrix is ​​composed of the center coordinates and width and height of each real box, expressed as The four-tuple form of the real frame is obtained ,in is the number of ground-truth boxes, subscript It is the abbreviation of the real box ground truth; at the same time, the multi-index label assignment module is based on the center coordinates of all candidate boxes He Kuan ,high , each row vector of the matrix is ​​formed by the center coordinates and width and height of each candidate box, expressed as The four-tuple form of the candidate box is obtained ,in is the number of candidate boxes, subscript It is the abbreviation of candidate box proposal; Step 3-2. The multi-index label assignment module decouples the position and shape of the true box and the candidate box, and calculates their mean square error: ; ; in, It represents the mathematical 2-norm calculation. is the square of the 2-norm; and before the comma Indicates selecting all values ​​of the first dimension in the previous matrix. After the comma The comma after the comma selects the first two values ​​of the second dimension in the previous matrix. It means to select all the third and subsequent values ​​in the second dimension of the previous matrix; Will Normalization: ; Step 3-3. The multi-metric label assignment module calculates the IoU score , Position shift score and shape constraint standard score These three evaluation indicators determine the score of the candidate box; among them, Following the calculation method of existing technology, and The calculation formula is as follows: ; ; in, and Represent the real box and the candidate box respectively; Step 3-4. Score the obtained IoU , Position shift standard score , Shape Constraint Standard Score Weighted to get a final score : ; in, , and They are the IoU scores , Position shift standard score , Shape Constraint Standard Score The weight parameter of Step 3-5. According to the pre-set positive and negative sample thresholds, and the final score Compare; if the final score If the final score is higher than the positive sample threshold, the candidate box is assigned a positive label and classified as a positive sample. If the value is lower than the negative sample threshold, the candidate box is assigned a negative label and classified as a negative sample; the remaining candidate boxes are classified as ignored samples.

3. The small target detection method based on full pipeline improvement as claimed in claim 2, characterized in that: In step 4, the frequency decoupling detection head includes two branches for classification and regression, and performs the following steps: Step 4-1. Feature map generated from RoIAlign First, use FFT filter to extract low-frequency feature components containing semantic information and high-frequency characteristic components containing detailed contour information , these two feature components are obtained through two BR layers respectively: ; ; in It is a feature map The number of channels; and Respectively represent the strength of low-pass filtering and high-pass filtering, which are two adjustable hyperparameters; Step 4-2. In the classification branch, low-frequency feature components After two fully connected layers and , get the feature vector for classification , the process is expressed by the formula as follows: ; Step 4-3. In the regression branch, high-frequency feature components The dimension is increased through a convolution layer, and then through multiple convolution blocks, and finally global average pooling is performed. , obtain the feature vector for regression , the process is expressed by the formula as follows: ; in, are the learnable parameters within the convolutional layer; Step 4-4. Finally, and The classification and regression results are obtained through independent linear layers, and the gradient backpropagation is performed to update the parameters in the training phase, and the detection results are output in the testing phase.