An unmanned aerial vehicle small target detection method based on a multi-scale Gaussian difference prior

By employing a multi-scale Gaussian difference prior method in UAV aerial images, the problems of single filtering prior and failure of learnable filters in UAV small target detection are solved, achieving higher detection accuracy and adaptability, reducing network complexity, and making it suitable for UAV small target detection.

CN123182083APending Publication Date: 2026-11-27HENAN UNIV OF SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611590807.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Small target detection in UAV aerial images is difficult to maintain high accuracy in complex backgrounds. Existing methods have limited filtering prior types, learnable filters lose their original filtering properties after training, multi-branch methods lack stable filtering priors, and different branches or priors cannot be adaptively combined, resulting in insufficient identifiability of small target features.

Method used

A multi-scale Gaussian difference prior method is adopted, in which multi-scale Gaussian difference branches and smoothing branches are set in parallel in the feature extraction unit. The input features are processed by Gaussian difference kernels and learnable convolution kernels respectively. Global average pooling is used to generate gating coefficients for complementary weighted fusion, and spatial saliency modulation is performed to enhance feature extraction.

Benefits of technology

It improves the accuracy and adaptability of small target detection, enhances the coverage of targets of different scales, reduces the number of network parameters and computational load, and balances detection accuracy and inference speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182083A_ABST
    Figure CN123182083A_ABST
Patent Text Reader

Abstract

The application discloses a kind of unmanned aerial vehicle small target detection methods based on multiscale Gaussian difference prior, belong to computer vision and image processing field.This method is set in the feature extraction unit of target detection network main stem Prior enhancement unit, parallelly executes multiscale Gaussian difference branch and smooth branch to input feature: Gaussian difference branch is at least two scales, with the Gaussian difference kernel obtained by subtracting the second Gaussian kernel from the first Gaussian kernel to carry out depth convolution, each scale response is normalized after being fused and activated to obtain spot response feature;Smooth branch is initialized with Gaussian kernel, and the depth convolution that can be updated in training obtains smooth response feature;Two-way response is respectively globally averaged, and after splicing, convolution and Sigmoid obtain per-channel gating coefficient, and the fusion prior feature is obtained by complementary weighting fusion according to gating coefficient, then after being added with input feature, enhanced feature is obtained by convolution transformation, and the output after input feature enhancement.This application can effectively improve the performance of small target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer vision and image processing technology, specifically to a method for detecting small targets on unmanned aerial vehicles based on multi-scale Gaussian difference prior. Background Technology

[0002] Drone aerial images typically exhibit characteristics such as large differences in target scale, dense distribution of small targets, and complex backgrounds. Due to the limitations of shooting altitude and imaging resolution, targets such as vehicles and pedestrians often occupy only a small number of pixels. Target detection networks continuously compress the spatial resolution of feature maps during the progressive downsampling process, easily weakening the local details of small targets. When the target is similar to the background or is occluded, the difficulty of classification and localization further increases. Simultaneously, the computing power of drones and their ground-based equipment is limited, requiring the detection network to balance accuracy and computational overhead.

[0003] To enhance the representation of local details of small targets by the backbone network, existing methods mainly fall into the following categories.

[0004] The first type of method introduces analytically defined fixed filtering priors into the feature extraction unit. For example, a fixed Gaussian kernel is used to extract a smoothing prior, or a fixed gradient operator is used to extract an edge prior. One of these is selected according to the network stage, and then the prior features are combined with the input features through attention. This type of method has explicit priors and adds almost no learnable parameters, but each feature extraction unit has only one type and one scale of prior: a single smoothing prior may weaken the response of small targets while suppressing noise, and a single-scale prior is difficult to adapt to targets of different sizes simultaneously; furthermore, it is not possible to select between different priors based on the feature content within the same unit.

[0005] The second type of method initializes the convolution kernel with an analytical filter or sets the filter's scale and other parameters to be learnable, allowing the prior to be adaptively adjusted during training. This type of method is highly flexible, but once the convolution kernel or its scale is updated during training, it no longer guarantees the preservation of the original filtering properties such as zero mean and bandpass, and the constraint of the prior on feature extraction is weakened accordingly.

[0006] The third type of method sets up multiple learnable convolutional branches in parallel within the feature extraction unit, such as branches with different kernel sizes or different dilation rates, to obtain multi-scale receptive fields. The outputs of each branch are then fused using fixed methods such as channel concatenation, element-wise addition, or equal-weighted averaging. This type of method can expand the receptive field, but since each branch is a learnable convolution, it lacks stable filtering priors; and when using fixed fusion methods, the proportion of each branch cannot change with the content of the input features.

[0007] The fourth type of method, based on the multi-branch structure, uses global average pooling to generate weights from the common input of each branch, and then weights and fuses the outputs of each branch. This type of method can adjust the proportion of each branch according to the input, but its branches are still all learnable convolutions, and there is no bandpass prior that remains unchanged during training; at the same time, the fused weights are generated from the common input of the branches, and do not directly utilize the statistical information of the output of each branch itself.

[0008] In published patent literature, CN121962830A discloses a feature extraction module that inputs intermediate features into a high-frequency branch and a low-frequency branch respectively, and performs global average pooling on the intermediate features to generate fusion weights, then weights the two feature streams for fusion. Both branches are learnable convolutions, and the fusion weights are generated from the common input of the branches. Therefore, after training, neither branch maintains stable bandpass or low-pass filtering properties, and the adjustment of the fusion ratio cannot directly utilize the statistical information output by the two branches themselves. CN121256726A discloses a method for constructing a Gaussian difference space saliency response from the feature tensor output by the pre-module and modulating features accordingly. This scheme does not involve setting fixed filtering priors and learnable filtering priors in parallel within the same feature extraction unit, nor does it involve adaptive combinations between different priors.

[0009] Therefore, a new feature enhancement method is needed to simultaneously provide multi-scale, stable bandpass priors and learnable smooth priors within the feature extraction unit of the detection backbone, and adaptively combine the two according to the feature content to improve the small target detection performance in complex aerial photography scenarios. Summary of the Invention

[0010] The purpose of this invention is to provide a method for detecting small targets in UAVs based on multi-scale Gaussian difference priors, which solves the problems of insufficient identifiability of small target features in existing feature extraction units, such as the single type and scale of filtering priors, the loss of original filtering properties of learnable filters after training, the lack of stable filtering priors in multi-branch systems, and the inability of different branches or priors to adaptively combine according to feature content.

[0011] To achieve the above objectives, the technical solution adopted by this invention is: a method for detecting small targets on unmanned aerial vehicles based on multi-scale Gaussian difference priors, comprising the following steps: S1. Acquire aerial images taken by the UAV and input them into the target detection network. The backbone network of the target detection network includes a feature extraction unit, and the feature extraction unit includes at least one prior enhancement unit. S2. In the prior enhancement unit, multi-scale Gaussian difference branch and smoothing branch are performed in parallel on the input features: In the multi-scale Gaussian difference branch, for each of at least two preset scales, the input features are depthwise convolved with a Gaussian difference kernel obtained by subtracting the second Gaussian kernel from the first Gaussian kernel. The standard deviation of the second Gaussian kernel is twice that of the first Gaussian kernel. The first and second Gaussian kernels are normalized within the same discrete grid so that the sum of the coefficients of the Gaussian difference kernel is zero. The coefficients of the Gaussian difference kernel remain unchanged during training. The convolutional responses at each scale are normalized, fused between scales, and then activated to obtain speckle response features. The smoothing branch convolves the input features with a Gaussian kernel-initialized, depthwise convolution that can be updated during training, and then normalizes and activates them to obtain smooth response features. S3. Perform global average pooling on the speckle response features and the smooth response features respectively, and after concatenation, obtain channel-wise gating coefficients through convolution and the Sigmoid function. Perform complementary weighted fusion on the speckle response features and the smooth response features according to the gating coefficients to obtain fused prior features. S4. The fused prior features are added to the input features and then subjected to convolution transformation to obtain enhanced features. The enhanced features are used to enhance the input features to obtain the output of the prior enhancement unit. S5. The features output from multiple stages in the backbone network are fed into the encoder and decoder of the detection network to output the target category and bounding box, thus obtaining the small target detection result.

[0012] Furthermore, in step S2, the number of preset scales is 2, and the standard deviations of the first Gaussian kernels corresponding to the two scales are respectively... and , No. The convolution kernel side length corresponding to each scale is: , This represents the standard deviation of the first Gaussian kernel at this scale. This indicates rounding up to the nearest integer.

[0013] Furthermore, in step S2, the fusion between scales can be performed by taking the maximum value of each element, taking the average value of each element, or summing each element, and the fusion result is used to obtain the speckle response features through the SiLU activation function.

[0014] Furthermore, in step S3, the convolution that generates the gating coefficients is a 1×1 convolution, with its weights and biases initialized to zero, so that the gating coefficients are 0.5 at the start of training.

[0015] Further, in step S4, the fused prior features are added to the input features and then subjected to a convolutional transformation to obtain the enhanced features, represented as:

[0016] in, As input features, To integrate prior features, To enhance features, The convolution transformation consists of 1×1 convolution, 3×3 convolution, and 1×1 convolution in sequence. The first two layers include batch normalization and SiLU activation, and the last layer includes batch normalization.

[0017] Furthermore, after obtaining the enhanced features Subsequently, spatial saliency modulation is performed: the mean and maximum values ​​of the speckle response features are calculated along the channel dimension, concatenated, and then subjected to convolution and a sigmoid function to obtain the spatial saliency map. ,according to Enhanced features Modulation is performed, in which The input features are learned coefficients for each channel and initialized to zero; the enhanced features are replaced by modulated enhanced features to enhance the input features.

[0018] Further, in step S4, the input features are enhanced using the enhanced features, including: The input feature is multiplied element-wise with the enhanced feature and then added back to the input feature. The intermediate feature is obtained by performing 3×3 convolution, batch normalization, and SiLU activation. Based on the global average pooling result of the intermediate features, channel weights are generated through one-dimensional convolution and the Sigmoid function. The intermediate features are then weighted, added to the input features, and normalized to obtain normalized features. The normalized features are processed through two layers of 1×1 convolution and multilayer perceptual transformation, and then added to the input feature residuals to obtain the output of the prior enhancement unit.

[0019] Further, in step S4, the output of the prior enhancement unit is expressed as:

[0020] in, As input features, To map the C channels to a 1×1 convolution with 2C channels, To map the 2C channels to a 1×1 convolution of the C channels, For batch normalization, For activation function, This is a random depth-drop operation with a drop rate of 0.1 and it only takes effect during training.

[0021] Further, in step S1, the feature extraction unit is a cross-stage split-cascaded feature extraction unit. After performing a 1×1 convolution on the input, it splits into two components along the channel dimension. One component is passed through a bypass, and the other component passes through n cascaded prior enhancement units in sequence. The two components and the outputs of each prior enhancement unit are concatenated along the channel dimension and then output by a 1×1 convolution.

[0022] Furthermore, the backbone network includes four feature extraction stages, each stage including a 3×3 convolution with a stride of 2 and a cross-stage split-cascaded feature extraction unit; the latter three stages output features at three scales, P3, P4, and P5, respectively. The P5 feature is fed into an attention-based intra-scale feature interaction module, and the outputs of P3, P4, and the intra-scale feature interaction module are fed into a cross-scale feature fusion module. The fused multi-scale features are fed into a Transformer decoder, which outputs the target category and bounding box.

[0023] The beneficial effects of the above technical solution are as follows: (1) This invention provides bandpass priors of multiple scales in parallel within the same feature extraction unit through multi-scale Gaussian difference branching. Since the coefficients of the Gaussian difference kernel remain unchanged during training, its bandpass properties do not change with training. It can maintain a low response to local constant regions and a high response to local feature change regions with a scale comparable to the kernel, thereby providing a stable basis for enhancing small targets with low pixel coverage.

[0024] (2) This invention normalizes the responses at multiple scales separately before fusing them, enabling the feature extraction unit to simultaneously cover targets of different sizes. Compared with schemes that only use single-scale Gaussian difference priors, the multi-scale fusion method has better adaptability in aerial photography scenarios with large differences in target scale.

[0025] (3) The Gaussian difference branch and the learnable smooth branch are arranged in parallel within the same unit, and their proportions are allocated to each channel according to the feature content through complementary channel gating. The Gaussian difference branch provides a stable bandpass prior, and the learnable smooth branch provides a local response that is complementary to the Gaussian difference branch. Its filtering characteristics are adaptively determined by the training process. The gating coefficients are obtained by concatenating the outputs of the two branches after global average pooling, which can directly identify the differences in feature content between the two branches and realize that each channel adaptively allocates weights between the two types of responses according to its own feature situation.

[0026] (4) After obtaining the enhanced features, the present invention further performs spatial saliency modulation and uses the modulation coefficient to weight the enhanced features. The modulation coefficient is initially set to zero. In the initial stage of training, the enhanced features after modulation are consistent with the original enhanced features and will not destroy the original basic performance of the network. During the training iteration, the modulation coefficient is gradually updated, which can specifically enhance the effective features of small and medium targets, and further improve the detection and recognition capabilities of small and medium targets.

[0027] (5) Comparing the overall network of this invention with the baseline detection network, the detection accuracy is improved, while the number of network parameters and computational cost are reduced. Under the premise that the other structures of the backbone network remain unchanged, replacing the original local feature enhancement units with the MDPE units of this invention can improve the overall detection accuracy and small target detection effect, and only brings a small increase in the number of parameters and computational cost. When there are high requirements for inference speed, MDPE units can be configured only in some stages of the network to balance detection accuracy and inference speed. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the overall structure of the target detection network in an embodiment of the present invention; Figure 2 A schematic diagram of the cross-stage split-cascaded feature extraction unit and the MDPE unit; Figure 3 This is a schematic diagram of the multi-scale prior gating module in the MDPE unit. Figure 4 This is a schematic diagram of the Gaussian difference convolution kernel used in this embodiment. Detailed Implementation

[0029] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0030] It should be noted that, unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0031] This embodiment uses a Real-Time Detection Transformer (RT-DETR) as the detection framework, and its overall structure is as follows: Figure 1As shown, the object detection network consists of a backbone network, a hybrid encoder, and a Transformer decoder. The backbone network comprises a downsampled convolution and four feature extraction stages. Each stage includes a downsampled convolution and a cross-stage split-cascaded feature extraction unit. Multi-scale Gaussian difference prior (MDPE) units are cascaded within each feature extraction unit. The latter three stages output features at scales P3, P4, and P5, respectively. The P5 feature is fed into the attention-based intra-scale feature interaction module AIFI. The outputs of P3, P4, and AIFI are fed into the cross-scale feature fusion module CCFM. The fused multi-scale features are then fed into the Transformer decoder, which outputs the object category and bounding box.

[0032] 1. Cross-stage cascaded feature extraction unit like Figure 2 As shown in (a), let the input of the feature extraction unit be... The number of output channels is number of internal channels This unit performs a 1×1 convolution on the input F and then splits it into two components along the channel dimension. One component is passed through a bypass, and the other component is passed sequentially through n cascaded MDPE units. The two components and the outputs of each MDPE unit are concatenated along the channel dimension and then output after a 1×1 convolution; the specific representation is as follows: (1) (2) (3) Among them, in equations (1) and (3) This represents a combination of operations consisting of unbiased convolution, batch normalization, and SiLU activation, in sequence; in equations (9), (12), (14), and (17) This indicates the convolution operation itself; normalization and activation are performed in the order explicitly given in the formula.

[0033] It directly participates in the splicing via a bypass. Passing through in sequence One MDPE unit, The number of channels after concatenation is a positive integer. .

[0034] 2. Overall structure of MDPE unit like Figure 2 As shown in (b), the MDPE unit includes a multi-scale prior gating module, a local feature enhancement attention structure, and a multi-layer perceptual transformation structure. The MDPE unit processes input features... Multi-scale prior gating fusion and local feature enhancement attention processing are performed sequentially, followed by multi-layer perceptual transformation and integration with input features. The residuals are summed to obtain the unit output. .

[0035] like Figure 3 As shown, the multi-scale prior gating module includes multi-scale Gaussian difference branching, smoothing branching, complementary channel gating fusion, and spatial saliency modulation. The convolution kernel coefficients remain unchanged during training.

[0036] 3. Multi-scale Gaussian difference branch like Figure 3 As shown, let the input characteristics of the MDPE unit be... Size is ,in , The spatial dimensions of the feature map. Gaussian kernel. In discrete grid The normalized form of the above is: (4) in, The integer coordinates are those with the kernel center as the origin. , That is, the edge length of the nucleus The standard deviation is calculated as follows: and Both Gaussian kernels are on the same grid. Normalize the data separately without expanding the mesh. Use a Gaussian difference kernel. As a depthwise convolution kernel for input features For depthwise convolution, the Gaussian difference kernel is represented as: (5) in, , To normalize Gaussian kernels within the same discrete grid, The standard deviation is Twice that. The two Gaussian kernels are normalized within the same discrete grid, therefore... The sum of the coefficients is zero; The coefficients are determined by the difference between the first Gaussian kernel and the second Gaussian kernel, remain unchanged during training, and do not participate in parameter updates during backpropagation.

[0037] Without considering boundary filling, with Depthwise convolution results in a zero response to locally constant input regions, but a stronger response to locally varying regions with a size comparable to the kernel size. This property applies to the convolution response before batch normalization in equation (6). The output after batch normalization, activation, and feature fusion no longer strictly possesses this property.

[0038] Will Copy to Each channel serves as the kernel for a depthwise convolution (groups = C). Gradient updates of the kernel coefficients are disabled and remain unchanged during training; the parameters of the batch normalized layers are still learned normally. The convolutional responses for each scale are: (6) (7) in, For the first The scale response features output after depthwise convolution and batch normalization at each scale. This represents a depthwise convolution operation. To find the maximum value element by element across scales, For activation function, This represents the speckle response characteristics of the final output of the Gaussian difference branch.

[0039] In this embodiment, , , , , The corresponding kernel sizes are 9×9 and 15×15, respectively, such as Figure 4 As shown. Figure 4 (a) is The corresponding convolution kernel diagram, Figure 4 (b) is The corresponding convolution kernel diagram, Figure 4 In diagram (c), the central row profiles of the two convolutional kernels are shown. The central row profiles of the two sets of Gaussian difference convolutional kernels simultaneously contain both positive and negative coefficients, demonstrating the bandpass filtering characteristics. This convolutional kernel is obtained by subtracting two sets of Gaussian kernels, and theoretically, the sum of all kernel coefficients is zero.

[0040] In other embodiments, the element-wise maximum value in equation (7) can be replaced by the element-wise average value or the element-wise summation. It should be noted that the maximum value applied to the batch-normalized calibrated response at each scale is not equivalent to the physically optimal scale selection.

[0041] 4. Smooth branches like Figure 3 As shown in (b), the unit input features are simultaneously applied. Perform a smoothing branch. Apply a depthwise convolution initialized with a Gaussian kernel to the input features. Perform convolution, the kernel of which can be updated during training, and obtain smooth response features after batch normalization and activation function. In this embodiment, the depthwise convolution kernel size of the smooth branch is 5×5, and the activation function is SiLU.

[0042] (8) in, The convolution kernel is 5×5 in depth and initialized to... The normalized Gaussian kernel is updated during training with the detection loss, so after training is complete, the convolution kernel no longer necessarily maintains strict low-pass filtering characteristics.

[0043] The smoothing branch provides a local response that complements the difference-of-Gaussian (DAG) branch, and its filtering properties are determined by training. The DAG branch is responsible for extracting speckled feature variations, while the smoothing branch is responsible for suppressing noise and preserving information in smooth regions; both operate in parallel within the same unit.

[0044] 5. Complementary channel gating and prior injection like Figure 3 As shown in (c), the speckle response features are respectively and smooth response characteristics Global average pooling is performed, and the concatenation is done along the channel dimension, followed by 1×1 convolution and a sigmoid function to obtain the channel-wise gating coefficients g. The gating coefficients g are expressed as: (9) (10) (11) in, For global average pooling, To stitch along the channel dimension, the 1×1 convolution in equation (9) will... Channel mapping as aisle, Number of channels; This indicates element-wise multiplication.

[0045] The weights and biases of the 1×1 convolution that generates the gating coefficients are initialized to zero at the start of training. ; The size is , The batch size varies with the input samples and is broadcast spatially. The gating coefficients are generated by concatenating the outputs of the two branches after global average pooling. This allows for direct perception of the differences in the feature content of the two prior channels, enabling each channel to adaptively allocate proportions between the two types of responses according to the feature content.

[0046] , , , , All dimensions are . The convolution transformation consists of 1×1 convolution (C→64), 3×3 convolution (64→64), and 1×1 convolution (64→C) in sequence. The first two layers contain batch normalization and SiLU activation, and the last layer contains batch normalization.

[0047] 6. Spatial saliency modulation like Figure 3 As shown in (d), after obtaining the enhanced features Spatial saliency modulation can then be performed. This relates to speckle response characteristics. The mean and maximum values ​​are calculated along the channel dimension, concatenated, and then subjected to a 7×7 convolution and a sigmoid function to obtain the spatial saliency map. : (12) Enhancement features based on modulation coefficient Modulation is performed to obtain the enhanced features after modulation. : (13) in, and The mean and maximum values ​​are calculated along the channel dimension, and their outputs are compared with the spatial saliency plot. All dimensions are , Broadcast along the channel dimension; For length is The channel-wise learnable coefficients (stored as 1×C×1×1 in the implementation) are initialized to zero and broadcast in the batch and spatial dimensions.

[0048] Training begins This will not affect the original performance. As training progresses, this step further improves the performance metrics for small and medium targets. Without performing this step, the performance will be... .

[0049] 7. Enhanced attention and unit output based on local features like Figure 2 As shown in (b), the enhanced features after modulation As prior features, for unit input features Local feature enhancement attention processing is performed. First, the input features are... With enhanced features Multiply element by element and then combine with the input features The intermediate features are obtained by summing the results, followed by 3×3 convolution, batch normalization, and SiLU activation. : (14) in, It is a 3×3 convolution, BN is batch normalization, and SiLU is the activation function.

[0050] Based on intermediate features The global average pooling result is then used to generate channel weights via one-dimensional convolution and the Sigmoid function. : (15) in, For global average pooling, For a one-dimensional convolution, which is performed along the channel sequence and has no bias: Let , When the number is odd, the core length is... ,otherwise Fill with In this embodiment, the number of internal channels is 64, 128, and 192, corresponding to core lengths of 3, 5, and 5, respectively.

[0051] For intermediate features Weighted and input features Add them together and normalize to obtain the normalized features. : (16) Normalized features After two layers of 1×1 convolution and multilayer perceptual transformation, the output of the prior enhancement unit is obtained by adding it to the residual of the input feature X. : (17) in, To map the C channels to a 1×1 convolution with 2C channels, To map the 2C channels to a 1×1 convolution of the C channels, This is a random depth-drop operation with a drop rate of 0.1 and only takes effect during training. For the output of the MDPE unit, the size is the same as same.

[0052] 8. Training and Reasoning The stride of the two-dimensional convolutions within the MDPE unit is 1, and zero padding is used to preserve spatial dimensions. The Gaussian difference convolutions are 4 and 7 respectively, the smoothing branch is 2, and the 7×7 convolution with spatial saliency modulation is 3. Except for the gated 1×1 convolution and the spatial saliency map generation convolution which contain bias, the other convolutions do not contain bias. The activation function is not set directly after the last layer and the second layer of the multilayer perceptual transformation.

[0053] During training, the MDPE unit participates in forward computation along with the rest of the detection network, and its parameters are jointly updated via backpropagation based on the detection loss. The convolution kernel coefficients of the multi-scale Gaussian difference branch are not updated. During inference, the trained parameters are used directly.

[0054] Experimental verification and beneficial effects Using the VisDrone2019 dataset, AP, AP50, AP75, APs, APm, and APl were calculated on the test set using the COCO evaluation protocol. The overall network parameter count, GFLOPs, and FPS were compared. The experimental platform was a Linux server with a single RTX 4090D graphics card, Python 3.10, PyTorch 2.3.0, and CUDA 12.1; the optimizer was AdamW, and the learning rate was... (The first 2000 iterations are used for warm-up; after warm-up, the value remains the same.) ), weight decay Batch size 8, training 200 epochs, input resolution 640×640, no pre-trained weights loaded, no mixed precision training or Mosaic data augmentation used.

[0055] Table 1 shows a comparison of detection accuracy. After introducing MDPE, AP, AP50, and AP75 improved by 1.6, 2.2, and 1.7 percentage points, respectively. The small target detection index APs increased from 11.1% to 12.4%, an increase of 1.3 percentage points, with a relative increase of approximately 11.7%. APm increased from 29.3% to 31.5%, and APl increased from 39.0% to 40.9%.

[0056] Table 1 Comparison of Detection Accuracy (%)

[0057] Table 2 compares model size and inference efficiency. After introducing MDPE, the overall number of network parameters decreased from 19.88M to 15.60M, a reduction of approximately 21.5%; the computational cost decreased from 57.0 GFLOPS to 54.9 GFLOPS, a reduction of approximately 3.7%. The decrease in parameter size and computational cost is mainly due to the difference in the backbone network structure.

[0058] With the rest of the backbone network structure remaining the same, replacing the original local feature enhancement units with MDPE units increases the number of parameters in the entire detection network by approximately 0.64M and the computational cost by approximately 1.9 GFLOPS. In terms of inference speed, the overall network speed decreases from 50.9 FPS to 43.0 FPS; with the rest of the backbone network structure remaining the same, the speed decreases from 44.7 FPS to 43.0 FPS. This speed reduction is related to the large-size 9×9 and 15×15 deep convolutions and the multi-branch structure. In applications requiring high inference speed, MDPE units can be used only in certain stages to strike a balance between accuracy and speed.

[0059] Table 2 Comparison of Model Size and Inference Efficiency

[0060] The FPS data in Table 2 were measured on an RTX 4090D graphics card under the following conditions: batch size 1, input resolution 640×640, FP32 precision, and average speed of 500 forward inferences after 100 warm-ups, excluding pre-processing and post-processing. The parameter count and computational cost are based on 10 classes, and are statistical values ​​obtained by fusing convolution and batch normalization during the validation phase. The parameter count includes the Gaussian difference convolution kernels that are not updated during training.

[0061] Table 3 compares the detection accuracy of different models on VisDrone 2019. As shown in Table 3, compared with models such as Faster R-CNN, RetinaNet, YOLOv5m, YOLOv8m, YOLO11m, Deformable-DETR, and RT-DETR, the RT-DETR+MDPE method of this invention has a significant advantage in detection accuracy, with an AP of 21.7%, AP50 of 37.5%, and AP75 of 21.7%, all higher than the compared models. In terms of small target detection metrics (APs), RT-DETR+MDPE achieves 12.4%, also outperforming the aforementioned models, indicating that the method of this invention has stronger detection capabilities for small targets. Regarding model size, RT-DETR+MDPE has 15.60M parameters and a computational cost of 54.9 GFLOPs, both lower than the aforementioned models. As can be seen, the method of the present invention improves detection accuracy and small target detection index without increasing the number of model parameters and computational load. The overall network is actually lighter, which is beneficial for deployment on UAVs and ground-based equipment with limited computing power.

[0062] Table 3 Comparison of different detection models on VisDrone 2019

[0063] Table 4 is a comparison table of ablation experiments. All internal ablation experiments were compared using the "complete protocol (excluding spatially significant modulation)" as the benchmark. Except for the changes listed, the rest of the structure remained consistent with the training settings; the last row is used to compare the results after adding spatially significant modulation.

[0064] Table 4 Ablation Experiment (%)

[0065] As can be seen from Table 4: (1) All coefficients of the Gaussian difference kernel are updated during training, or the analytical form is maintained and only the scale is learned. When the AP decreased by 1.0 percentage point, it indicates that keeping the Gaussian difference convolution kernel unchanged during training is effective.

[0066] (2) When only a single scale is retained, only retain The AP at 0.8 was 20.8%, a decrease of 0.6 percentage points from the 21.4% of the two-scale model; only the retained The accuracy (AP) at a scale of 1.6 was 21.1%, a decrease of 0.3 percentage points compared to the dual-scale setup. This indicates that the multi-scale setup is effective, with each scale covering targets of different sizes; the absence of either scale would lead to a decrease in detection accuracy.

[0067] (3) When the smooth branch and gating are removed, or the gating is fixed at 0.5, the AP decreases by 0.4 percentage points, indicating that the combination of learnable smooth branch and adaptive complementary gating is effective.

[0068] (4) When the scale fusion adopts element-wise averaging or summation, the AP is 21.2% and 21.3% respectively, which is close to the maximum value of element-wise fusion. All fusion methods can be implemented.

[0069] (5) Based on the complete scheme (excluding spatial saliency modulation), spatial saliency modulation is added, and AP increases from 21.4% to 21.7%, AP50 increases from 37.0% to 37.5%, APs increases from 12.2% to 12.4%, APm increases from 31.0% to 31.5%, and APl decreases from 43.6% to 40.9%; this step further improves the indicators of small and medium targets.

[0070] The working mechanism of each technical feature: The sum of the coefficients of the Gaussian difference convolution kernel is zero, which has bandpass properties. When the input is constant in the convolution support domain and is not affected by boundary padding, the convolution response before batch normalization is low under ideal arithmetic, but the response is strong in the local feature response change region with a scale comparable to the kernel, which can provide enhancement cues for low-pixel coverage targets; the responses at each scale are numerically scaled separately and then fused; the learnable branch initialized by Gaussian provides local responses that are complementary to the Gaussian difference branch, and its filtering properties are determined by training; the complementary channel gating allocates the proportion of each channel between the two types of responses according to the feature content based on the output of the two branches; the Gaussian difference convolution kernel remains unchanged during training, thus maintaining the bandpass filtering properties of the convolution kernel.

[0071] Finally, it should be noted that any parts of this invention not described in detail are prior art. Those skilled in the art will understand that the above descriptions are merely preferred embodiments of the invention and are not intended to limit the invention. Although the invention has been described in detail with reference to the foregoing examples, those skilled in the art can still modify the technical solutions described in the foregoing examples or make equivalent substitutions for some of the technical features. All modifications and equivalent substitutions made within the spirit and principles of the invention should be included within the scope of protection of the invention.

Claims

1. A method for detecting small targets on a UAV based on multi-scale Gaussian difference prior, characterized in that, Includes the following steps: S1. Acquire aerial images taken by the UAV and input them into the target detection network. The backbone network of the target detection network includes a feature extraction unit, and the feature extraction unit includes at least one prior enhancement unit. S2. In the prior enhancement unit, multi-scale Gaussian difference branch and smoothing branch are performed in parallel on the input features: In the multi-scale Gaussian difference branch, for each of at least two preset scales, the input features are depthwise convolved with a Gaussian difference kernel obtained by subtracting the second Gaussian kernel from the first Gaussian kernel. The standard deviation of the second Gaussian kernel is twice that of the first Gaussian kernel. The first and second Gaussian kernels are normalized within the same discrete grid so that the sum of the coefficients of the Gaussian difference kernel is zero. The coefficients of the Gaussian difference kernel remain unchanged during training. The convolutional responses at each scale are normalized, fused between scales, and then activated to obtain speckle response features. The smoothing branch convolves the input features with a Gaussian kernel-initialized, depthwise convolution that can be updated during training, and then normalizes and activates them to obtain smooth response features. S3. Perform global average pooling on the speckle response features and the smooth response features respectively, and after concatenation, obtain channel-wise gating coefficients through convolution and the Sigmoid function. Perform complementary weighted fusion on the speckle response features and the smooth response features according to the gating coefficients to obtain fused prior features. S4. The fused prior features are added to the input features and then subjected to convolution transformation to obtain enhanced features. The enhanced features are used to enhance the input features to obtain the output of the prior enhancement unit. S5. The features output from multiple stages in the backbone network are fed into the encoder and decoder of the detection network to output the target category and bounding box, thus obtaining the small target detection result.

2. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S2, the number of preset scales is 2, and the standard deviations of the first Gaussian kernels corresponding to the two scales are respectively... and , No. The convolution kernel side length corresponding to each scale is: , This represents the standard deviation of the first Gaussian kernel at this scale. This indicates rounding up to the nearest integer.

3. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S2, the fusion between scales can be performed by taking the maximum value of each element, taking the average value of each element, or summing each element. The fusion result is then processed by the SiLU activation function to obtain the speckle response features.

4. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S3, the convolution that generates the gating coefficients is a 1×1 convolution, and its weights and biases are initialized to zero, so that the gating coefficients are 0.5 at the beginning of training.

5. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S4, the fused prior features are added to the input features and then subjected to a convolutional transformation to obtain the enhanced features, which are represented as follows: in, As input features, To integrate prior features, To enhance features, The convolution transformation consists of 1×1 convolution, 3×3 convolution, and 1×1 convolution in sequence. The first two layers include batch normalization and SiLU activation, and the last layer includes batch normalization.

6. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 5, characterized in that, After obtaining the enhanced features Subsequently, spatial saliency modulation is performed: the mean and maximum values ​​of the speckle response features are calculated along the channel dimension, concatenated, and then subjected to convolution and a sigmoid function to obtain the spatial saliency map. ,according to Enhanced features Modulation is performed, in which The input features are learned coefficients for each channel and initialized to zero; the enhanced features are replaced by modulated enhanced features to enhance the input features.

7. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S4, the input features are enhanced using the enhanced features, including: The input feature is multiplied element-wise with the enhanced feature and then added back to the input feature. The intermediate feature is obtained by performing 3×3 convolution, batch normalization, and SiLU activation. Based on the global average pooling result of the intermediate features, channel weights are generated through one-dimensional convolution and the Sigmoid function. The intermediate features are then weighted, added to the input features, and normalized to obtain normalized features. The normalized features are processed through two layers of 1×1 convolution and multilayer perceptual transformation, and then added to the input feature residuals to obtain the output of the prior enhancement unit.

8. The method for detecting small targets in unmanned aerial vehicles based on multi-scale Gaussian difference priors according to claim 1, characterized in that, In step S4, the output of the prior enhancement unit is expressed as: in, As input features, To map the C channels to a 1×1 convolution with 2C channels, To map the 2C channels to a 1×1 convolution of the C channels, For batch normalization, For activation function, This is a random depth-drop operation with a drop rate of 0.1 and it only takes effect during training.

9. The method for detecting small targets on a UAV based on multi-scale Gaussian difference prior as described in claim 1, characterized in that, In step S1, the feature extraction unit is a cross-stage split-cascaded feature extraction unit. After performing a 1×1 convolution on the input, it splits the input into two components along the channel dimension. One component is passed through a bypass, and the other component passes through n cascaded prior enhancement units in sequence. The two components and the outputs of each prior enhancement unit are concatenated along the channel dimension and then output by a 1×1 convolution.

10. The method for detecting small targets in unmanned aerial vehicles based on multi-scale Gaussian difference priors according to claim 9, characterized in that, The backbone network includes four feature extraction stages, each stage including a 3×3 convolution with a stride of 2 and a cross-stage split-cascaded feature extraction unit; The last three stages output features at three scales, P3, P4, and P5, respectively. The P5 feature is fed into an attention-based intra-scale feature interaction module. The outputs of P3, P4, and the intra-scale feature interaction module are fed into a cross-scale feature fusion module. The fused multi-scale features are fed into a Transformer decoder, which outputs the target category and bounding box.

Citation Information

Patent Citations

  • Dam micro-change response identification method and system based on multi-scale information reconstruction

    CN121256726A