A multi-scale feature unmanned aerial vehicle small target detection method

By using the GM-YOLO model for global information modeling and multi-scale feature fusion, the problems of global modeling, multi-scale fusion, and sample imbalance in UAV small target detection are solved, achieving high-precision, robust, and real-time small target detection, which is suitable for UAV edge devices.

CN123181797APending Publication Date: 2026-11-27THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611080641.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing UAV small target detection methods have shortcomings in global context modeling, multi-scale feature fusion, detection head design, and sample imbalance, resulting in insufficient accuracy and robustness of small target detection, especially in complex aerial photography scenarios.

Method used

The GM-YOLO model is adopted, and the combination of CFC3K2, SPPF-LSKA, BiFPN-SDI and SDEDH modules is used to realize global information modeling and multi-scale feature fusion, dynamically modulate sample loss weights, optimize the detection head design, and improve the detection accuracy and robustness of small targets.

Benefits of technology

It significantly improves the accuracy and robustness of small target detection, reduces the false detection rate and missed detection rate, is compatible with the deployment of UAV edge devices, meets the real-time detection requirements, and is suitable for aerial photography data in multiple scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181797A_ABST
    Figure CN123181797A_ABST
Patent Text Reader

Abstract

The application discloses a kind of multi-scale feature's unmanned plane small target detection method, comprising: step 1, data set preparation and pre-processing;Step 2, construct GM-YOLO model, based on through dynamic gradient modulation strategy to the model training;Step 3, based on the small target detection of trained GM-YOLO model.The GM-YOLO model is based on YOLOv11s architecture, including sequentially connected backbone network, neck network and detection head, replace C3k2 module with CFC3K2 module;Reconstruct traditional SPPF module, introduce large core separable attention (LSKA) mechanism and construct SPPF-LSKA module, replace traditional FPN-PAN structure with BiFPN-SDI module;Replace traditional independent branch convolution detection head with SDEDH module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of small target detection, and more particularly to a method for detecting small targets on unmanned aerial vehicles (UAVs) with multi-scale features. Background Technology

[0002] Drone aerial images present a core challenge for target detection due to their dynamic shooting perspective, complex background environment (dense buildings, vegetation, varied terrain), large differences in target scale, and a high proportion of small targets. They are also susceptible to changes in lighting, shadow occlusion, and high-frequency noise (building edges, cloud interference), leading to the degradation of small target features in deep networks. While existing detection methods have made progress in general scenarios, they still have key limitations in small target detection on drones, specifically as follows:

[0003] 1. Insufficient global context modeling: Mainstream detection algorithms (such as the YOLO series) are based on traditional convolution operations, which makes it difficult to capture long-distance feature dependencies. The semantic information of small targets is gradually lost in deep networks, resulting in feature dilution problems.

[0004] 2. Poor multi-scale feature fusion performance: Traditional Feature Pyramid Network (FPN) adopts a fixed interpolation upsampling + linear fusion strategy, which is prone to loss of edge details of small targets and cannot model non-linear correlations between cross-scale features. Feature confusion is prone to occur in dense target areas.

[0005] 3. Defects in the design of the detection head: Traditional multi-branch independent convolutional detection heads have serious parameter redundancy, low computational efficiency, and lack edge enhancement mechanisms for small targets, resulting in insufficient detail perception capabilities;

[0006] 4. The loss function is not optimized for hard samples: The traditional BCE loss is uniformly weighted for all samples, and the loss is easily dominated by simple samples. Hard samples such as small targets, occluded targets, and low-contrast targets are not trained sufficiently, which exacerbates the problem of sample imbalance.

[0007] 5. Existing improved algorithms have shortcomings: Some algorithms that introduce Transformer (such as DETR) have limited improvement on the performance of UAV small target detection; some improved algorithms that use BiFPN still use a fixed upsampling strategy; and some algorithms that optimize the detection head still have room for improvement in parameter sharing and computational efficiency. A UAV small target detection framework that takes into account accuracy, lightweight and real-time performance has not yet been formed.

[0008] 6. The closest existing technology is the YOLOv11s algorithm. As a lightweight single-stage detector, it achieves a balance between speed and accuracy through the C3k2 module, SPPF module and decoupled detection head. However, in complex scenes captured by UAVs, it still has not solved the core problems of global modeling, multi-scale fusion, parameter redundancy and sample imbalance. Its mAP@50 is only 39.1%, and it has a high rate of missed detection and false detection for small targets. Summary of the Invention

[0009] Purpose of the invention: The technical problem to be solved by the present invention is to provide a small target detection algorithm for UAVs that integrates global information modeling and multi-scale features, in order to address the shortcomings of the existing technology.

[0010] To address the aforementioned technical problems, this invention discloses a small target detection algorithm for unmanned aerial vehicles (UAVs) that integrates global information modeling and multi-scale features.

[0011] 1) Alleviate the feature dilution problem of small targets in deep networks and enhance the ability to fuse local details with global semantics;

[0012] 2) Optimize the multi-scale feature fusion mechanism to achieve adaptive alignment and nonlinear interaction of cross-layer features, thereby improving the fidelity of small target features;

[0013] 3) Reduce redundancy in detection head parameters, enhance the ability to extract edge features of small targets, and improve the computational efficiency and scale generalization ability of the detection head;

[0014] 4) Dynamically modulate sample loss weights to focus on training on difficult samples and alleviate the sample imbalance problem;

[0015] 5) While ensuring the model is lightweight, it significantly improves the accuracy and robustness of small target detection in complex drone aerial photography scenarios, while also taking into account the real-time detection requirements and adapting to the deployment needs of drone edge devices.

[0016] Includes the following steps:

[0017] Step 1: Dataset preparation and preprocessing;

[0018] Step 2: Construct the GM-YOLO model and train it using a dynamic gradient modulation strategy;

[0019] Step 3: Perform small object detection based on the trained GM-YOLO model.

[0020] The GM-YOLO model is based on the YOLOv11s architecture and includes a backbone network, a neck network, and a detection head connected in sequence. The C3k2 module is replaced by the CFC3K2 module. The traditional SPPF module is reconstructed, and the SPPF-LSKA module is constructed by introducing the Large Kernel Separable Attention (LSKA) mechanism. The traditional FPN-PAN structure is replaced by the BiFPN-SDI module. The traditional independent branch convolutional detection head is replaced by the SDEDH module.

[0021] The C3k2 module is composed of MetaFormerBlock and integrates depthwise separable convolution (SepConv), multilayer perceptron (MLP), normalization layer, DropPath regularization, ResScale / LayerScale scaling mechanism and residual connection.

[0022] Specifically, it includes:

[0023] Step 2-1-1: The Conv layer downsamples to generate a multi-scale feature map of {P2,P3,P4,P5}. The input features are rearranged into (B,H,W,C). After unbiased LayerNorm normalization, a Token Mixer is constructed through SepConv to realize dynamic interaction between local and global features.

[0024] Step 2-1-2: After DropPath regularization (dropout rate 0.1), intermediate features are output by combining ResScale residual connections;

[0025] Step 2-1-3: After the intermediate features are normalized again, channel dimension feature calibration is completed through MLP (hidden layer channels are 4 times the input, GELU activation);

[0026] Step 2-1-4: After DropPath regularization again, combined with the LayerScale residual connection output, the features are finally rearranged into (B, C, H, W) for use by subsequent networks.

[0027] The SPPF-LSKA module specifically includes:

[0028] Step 2-2-1: After the input features are reduced in dimensionality by 1×1 convolution, multi-scale features are extracted and concatenated through three-level max pooling to generate a multi-scale feature tensor;

[0029] Step 2-2-2: Concatenate the tensor input LSKA submodule, and extract features through horizontal / vertical SepConv and 5×5 dilated convolution;

[0030] Step 2-2-3: Calculate the attention weight map A (Sigmoid activation) through 1×1 convolution, and multiply A element-wise with the output of the basic convolution + dilated convolution to obtain the enhanced multi-scale fusion feature.

[0031] Step 2-3-1: Adaptive scale alignment: High-level features are upsampled using bilinear interpolation to preserve edge continuity, low-level features are downsampled using adaptive average pooling to suppress noise, and mid-level features maintain resolution;

[0032] Step 2-3-2: Feature Refinement: Features at each scale are refined using the improved GSConv module;

[0033] Step 2-3-3: Nonlinear Fusion: Perform element-wise multiplication on the refined multi-scale features to model cross-scale nonlinear correlations;

[0034] Step 2-3-4: Perform cross-scale feature orthogonal decoupling on the features after nonlinear product fusion in step 3-3 to obtain orthogonalized feature vectors;

[0035] Steps 2-3-5: Bidirectional aggregation: Through BiFPN multi-level recursive paths and cross-layer residual connections, feature reuse and deep fusion are achieved, and enhanced features {P3', P4', P5'} are output.

[0036] Steps 2-3-4 specifically involve constructing a matrix along the channel dimension from the features obtained after nonlinear product fusion in step 3-3. Among them, each feature Compressed by global average pooling The feature matrix is ​​formed by combining dimensional vectors. For the matrix Perform Gram-Schmidt orthogonalization to obtain the orthogonalized matrix. Its column vectors satisfy The orthogonalized feature vectors are reconstructed into feature maps of the same size as the original features through inverse projection, and then input into the subsequent bidirectional aggregation path.

[0037] The SDEDH module is specifically:

[0038] Step 4-1: After the multi-scale input features are normalized by Conv-GN, the channels are compressed uniformly through 1×1 convolution;

[0039] Step 4-2: Enhance the edge features of small targets using the DEConv-GN module;

[0040] Step 4-3: Enhance the input of features {P3', P4', P5'} into the shared DEConv-GN module to achieve scale-invariant feature representation;

[0041] Step 4-4: Generate regression offset and classification probability through independent 1×1 convolutional layers, introduce dynamic scaling factors [8,16,32] to adapt to features with different resolutions, and adjust the regression output range.

[0042] The DEConv-GN module consists of: depthwise convolution to extract spatial details and pointwise convolution to achieve channel interaction, and element-wise summation and fusion.

[0043] The GM-YOLO model training process includes:

[0044] Step 3-1: Assign weights to samples with different confidence levels using a dynamic gradient modulation strategy, and dynamically adjust the sample loss weights using the SlideLoss function;

[0045] Step 3-2: Optimize model parameters by combining SGD optimizer with cosine annealing learning rate strategy, and use non-maximum suppression to filter detection results.

[0046] Step 3-1 specifically includes: dynamically dividing sample confidence intervals based on predicted IoU, differentially allocating loss weights, focusing on training on difficult samples, and assigning weights to samples with different confidence levels through a dynamic gradient modulation strategy. The corresponding weight allocation rules are as follows:

[0047] Where α is the initial threshold, τ is the upper confidence boundary, λ is the scaling factor, and γ is the lower weighting factor;

[0048] Loss calculation: , where ℓ(y,p) is the BCEWithLogits base loss, y is the true label, and p is the predicted value;

[0049] Training constraints: The initial threshold α is adaptively adjusted based on the model's convergence to avoid excessive weight fluctuations during the initial training phase.

[0050] Beneficial effects:

[0051] 1. Significantly improved core detection accuracy. Experiments show that this invention can effectively improve the detection accuracy of typical small targets such as pedestrians, tricycles, and bicycles, and effectively solve the problems of feature dilution and missed detection of small targets.

[0052] 2. The model's lightweightness is significantly improved. The model parameters of this invention are only 7.9 million, which is 16% less than YOLOv11s (9.41 million). Through parameter sharing and lightweight convolution design, the model compression is achieved while improving accuracy, making it more suitable for deployment on resource-constrained platforms such as drones and edge computing devices.

[0053] 3. Significantly enhanced robustness in complex scene detection. For challenging scenarios such as nighttime low-light scenes, complex backgrounds, densely packed small targets, target occlusion, and complex lighting conditions encountered in UAV aerial photography, this invention reduces the false negative rate by over 10% and the false positive rate by over 8%. It can detect hidden targets in low-light areas, targets occluded by buildings / vegetation, and ultra-small targets with a pixel area <50×50, significantly improving feature differentiation and noise suppression capabilities.

[0054] 4. Cross-scale feature decoupling significantly reduces feature redundancy and improves classification accuracy in dense scenes. This invention introduces Gram-Schmidt orthogonalization constraints after cross-scale nonlinear product fusion, making features of different scales approximately orthogonal in the projection direction within the channel space. This effectively weakens the channel correlation between shallow detail features and deep semantic features. This mechanism solves the problem of high correlation and representational redundancy among features of different scales in traditional product fusion, allowing high-resolution features to focus on spatial details and low-resolution features to focus on semantic information. In dense target overlap scenes, this orthogonal decoupling mechanism additionally improves mAP@50 by approximately 0.7%, especially effectively reducing classification errors of easily confused categories and enhancing detection discriminative power in dense scenes.

[0055] 5. Real-time detection is balanced to meet engineering requirements. The floating-point operation (FLOPs) of this invention is 27.3G, which is only slightly higher than YOLOv11s (21.3G) and far lower than similar UAV detection algorithms (Drone-YOLO 39.4G, RT-DETR 58G). It ensures high accuracy while maintaining detection speed, meeting the real-time detection needs of UAVs in agricultural monitoring, disaster relief, and other applications.

[0056] 6. Strong generalization ability, adaptable to aerial photography data in multiple scenarios. On the DOTAv2 large-scale aerial photography dataset (18 target categories, including satellite / high-altitude aerial images), the present invention achieves mAP@50 of 38.8%, which is 5.3% higher than YOLOv11s, proving that the model can be adapted to aerial image detection of different shooting platforms, different terrains, and different target scales, and has a wide range of applications. Attached Figure Description

[0057] Figure 1 This is a diagram of the overall structure of the GM-YOLO network of this invention.

[0058] Figure 2 This is a structural diagram of the CFC3K2 module of the present invention.

[0059] Figure 3 This is a structural diagram of the SPPF-LSKA module of the present invention.

[0060] Figure 4 This is a structural diagram of the LSKA submodule of the present invention.

[0061] Figure 5 This is a diagram of the BiFPN-SDI architecture of the present invention.

[0062] Figure 6 This is a structural diagram of the SDI submodule of the present invention.

[0063] Figure 7 This is a structural diagram of the SDEDH detection head of the present invention.

[0064] Figure 8 shows the target detection results of the present invention. Detailed Implementation

[0065] like Figure 1 This paper demonstrates the model construction architecture of the present invention: the overall connectivity of the backbone network, neck network, and head detection head, and labels the positions and feature flow directions of the core modules CFC3K2, SPPF-LSKA, BiFPN-SDI, and SDEDH, illustrating the entire process of multi-scale feature extraction-aggregation-fusion-detection. The following are key steps explained:

[0066] Step 1: Dataset Preparation and Preprocessing

[0067] The VisDrone2019 / DOTAv2 dataset was divided into training / validation / test sets. Images were normalized and data augmented to generate 640×640 training samples. Labels were converted to YOLO format. A data loader was built and multi-threaded reading was used (num_workers=8).

[0068] Step 2: Model backbone network construction

[0069] A GM-YOLO model is built based on the PyTorch framework, constructing the backbone network. The CFC3K2 module replaces the C3k2 module in the YOLOv11s model, integrating the local feature extraction capabilities of CNNs and the global semantic modeling capabilities of Transformers to alleviate the feature dilution problem for small objects. Based on the MetaFormer concept, it is reconstructed into MetaFormerBlocks, integrating depthwise separable convolutions (SepConv), multilayer perceptrons (MLP), normalization layers, DropPath regularization, ResScale / LayerScale scaling mechanisms, and residual connections.

[0070] like Figure 2 As shown:

[0071] Step 2-1: The Backbone network generates multi-scale feature maps {P2, P3, P4, P5} through multi-layer Conv downsampling. Its feature tensors (i.e., {P2, P3, P4, P5}) are rearranged into (B, H, W, C) format and input into the corresponding CFC3K2 modules. After unbiased LayerNorm normalization, a Token Mixer is constructed using SepConv to achieve dynamic interaction between local and global features.

[0072] Step 2-2: After DropPath regularization (dropout rate 0.1), intermediate features are output by combining ResScale residual connections;

[0073] Steps 2-3: After normalizing the intermediate features again, channel dimension feature calibration is completed through MLP (hidden layer channels are 4 times the input, GELU activation);

[0074] Steps 2-4: After DropPath regularization again, combined with the LayerScale residual connection output, the features are finally rearranged into (B, C, H, W) for use by subsequent networks;

[0075] like Figure 3 and Figure 4 As shown:

[0076] The traditional SPPF module is reconstructed, and a large kernel separable attention (LSKA) mechanism is introduced to construct the SPPF-LSKA module, which expands the effective receptive field, preserves fine-grained spatial details of small targets, and reduces high-frequency noise interference.

[0077] Steps 2-5: After the input features are reduced in dimensionality by 1×1 convolution, multi-scale features are extracted and concatenated through three-level max pooling to generate a concatenated tensor of multi-scale features;

[0078] Steps 2-6: Concatenate the tensor input LSKA submodule, and extract features through horizontal / vertical SepConv and 5×5 dilated convolution (dilation rate 2, no additional parameters);

[0079] Steps 2-7: Calculate the attention weight map A (Sigmoid activation) through 1×1 convolution, and multiply A element-wise with the output of the basic convolution + dilated convolution to obtain the enhanced multi-scale fusion feature.

[0080] Step 3: Model neck network construction

[0081] The traditional FPN-PAN structure is replaced by a BiFPN-SDI module (the SDI module marked in the figure) to achieve adaptive scale alignment and nonlinear fusion of cross-layer features, enhancing the robustness of cross-scale feature interactions and improving the fidelity of small target features. Combining the efficient bidirectional path aggregation and scale-dependent interaction (SDI) module of BiFPN, the SDI sub-module includes an adaptive scale alignment unit, an improved GSConv convolution unit, and a nonlinear product fusion unit. After nonlinear product fusion, a cross-scale feature orthogonal decoupling unit is introduced. Gram-Schmidt orthogonalization transformation weakens the channel correlation between cross-scale features, making the feature representations at different scales more discriminative.

[0082] like Figure 5 and Figure 6 As shown:

[0083] Step 3-1: Adaptive scale alignment: High-level features (P5) are upsampled using bilinear interpolation (scaling factor 2) to preserve edge continuity, low-level features (P2) are downsampled using adaptive average pooling (2×2 kernel, stride 2) to suppress noise, and mid-level features (P3 / P4) maintain resolution.

[0084] Step 3-2: Feature Refinement: Features at each scale are refined using the improved GSConv module (standard convolution + depthwise convolution concatenation, channel shuffling to enhance information flow).

[0085] Step 3-3: Nonlinear fusion: Element-wise multiplication is performed on the refined multi-scale features to model cross-scale nonlinear correlations.

[0086] Step 3-4: Cross-scale feature orthogonal decoupling: Construct a matrix along the channel dimension for the features fused by nonlinear product in Step 3-3. , among which Compressed by global average pooling The feature matrix is ​​formed by combining dimensional vectors. For the matrix Perform Gram-Schmidt orthogonalization to obtain the orthogonalized matrix. Its column vectors satisfy This process ensures that features from different scales are orthogonal to each other along the channel projection direction, weakening the high correlation between cross-scale features, reducing information redundancy, and promoting functional decoupling of features at different scales. Shallow high-resolution features focus on spatial details such as edges and textures, while deep low-resolution features focus on higher-order information such as categories and semantics. The orthogonalized feature vectors are reconstructed into feature maps of the same size as the original features through inverse projection, and then input into the subsequent bidirectional aggregation path.

[0087] Steps 3-5: Bidirectional aggregation: Through BiFPN multi-level recursive paths and cross-layer residual connections, feature reuse and deep fusion are achieved, and enhanced features {P3', P4', P5'} are output.

[0088] Step 4: Target Detection Processing

[0089] like Figure 7 As shown:

[0090] The traditional independent branch convolutional detection head is replaced with SDEDH. Through parameter sharing and detail enhancement convolution, parameter redundancy is reduced and the ability to extract edge / texture features of small targets is enhanced. It consists of Conv-GN (convolution + group normalization) compression units, DEConv-GN (detail enhancement convolution + group normalization) feature extraction units, shared convolutional layers, independent regression / classification layers, and dynamic scaling factors.

[0091] Step 4-1: After the multi-scale input features are normalized by Conv-GN (channels are divided into 16 groups), they are uniformly compressed to 256 channels through 1×1 convolution to reduce computational complexity;

[0092] Step 4-2: Enhance the edge features of small targets using the DEConv-GN module (3×3 depthwise convolution to extract spatial details + 1×1 pointwise convolution to achieve channel interaction, element-wise summation and fusion);

[0093] Step 4-3: Enhanced features P3' / P4' / P5' share DEConv-GN convolutional layers to achieve scale-invariant feature representation;

[0094] Step 4-4: Generate regression offset and classification probability through independent 1×1 convolutional layers, introduce dynamic scaling factors [8,16,32] to adapt to features with different resolutions, and adjust the regression output range.

[0095] Step 5: Model Training Process

[0096] Replacing the traditional BCE loss, this method dynamically divides sample confidence intervals based on predicted IoU, differentially assigns loss weights, focuses on training on difficult samples, and alleviates the sample imbalance problem. A dynamic gradient modulation strategy is used to assign weights to samples with different confidence levels. The core formula and implementation are as follows:

[0097] Weighting rules (initial threshold α=0.5, upper confidence bound τ=0.7, scaling factor λ=2, lower weighting factor γ=0.5):

[0098] Loss calculation: , where ℓ(y,p) is the BCEWithLogits base loss, y is the true label, and p is the predicted value;

[0099] Training constraints: The initial threshold α is adaptively adjusted according to the model convergence, with a constraint range of [0.4, 0.6], to avoid excessive weight fluctuations during the initial training phase.

[0100] Step 5-1: Assign weights to samples with different confidence levels using a dynamic gradient modulation strategy, and dynamically adjust the sample loss weights using the SlideLoss function;

[0101] Step 5-2: Optimize model parameters by combining SGD optimizer with cosine annealing learning rate strategy, and use non-maximum suppression (NMS, threshold 0.5) to filter detection results.

[0102] To verify the detection effectiveness of the present invention in actual UAV aerial photography scenarios, a representative complex scene from the VisDrone2019 dataset was selected for visual comparative analysis, as shown in Figure 8.

[0103] Figure 8(a) shows the original image, Figure 8(b) shows the detection results of the baseline model YOLOv11s, and Figure 8(c) shows the detection results of the GM-YOLO model proposed in this invention. In scenes with dense small targets, the baseline model struggles to identify pedestrian targets with a pixel area smaller than 50×50. The model of this invention significantly improves the edge response accuracy of small targets through nonlinear product fusion and adaptive scale alignment. The above visualization results fully demonstrate that the GM-YOLO model proposed in this invention can achieve high-precision and robust small target detection in various complex UAV aerial photography environments, and has good prospects for engineering applications.

[0104] Figure 2 The internal structure of MetaFormerBlock in the CFC3K2 module is shown, including the component relationships and feature processing flow of Token Mixer, MLP, LayerNorm, DropPath, ResScale / LayerScale, and residual connections.

[0105] Figure 3 The composition of the PPF-LSKA module is shown, including 1×1 convolution, three-level cascaded max pooling, and the connection relationship of LSKA sub-modules, demonstrating the multi-scale feature extraction and attention calibration process.

[0106] Figure 4 The internal structure of the LSKA submodule is shown, including the processing steps of SepConv, dilated convolution, attention weight calculation unit, and element-wise multiplication fusion unit.

[0107] Figure 5 The bidirectional path aggregation structure of BiFPN-SDI is demonstrated, and the upsampling, downsampling, and fusion nodes of features at each scale of P2 / P3 / P4 / P5 are labeled, reflecting the recursive interaction process of cross-layer features.

[0108] Figure 6 The internal structure of the SDI module, including adaptive scale alignment, improved GSConv, and nonlinear product fusion, as well as the processing flow of features at each scale, is demonstrated.

[0109] Figure 7 The connection relationships of the Conv-GN compression unit, DEConv-GN detail enhancement unit, shared convolutional layer, and independent regression / classification layer of the SDEDH detection head are shown, demonstrating the shared processing and detection output of multi-scale features.

[0110] Figure 8 shows a comparison of the detection results of the present invention and the baseline model YOLOv11s in a typical UAV aerial photography scenario.

[0111] This invention provides a hierarchical focusing algorithm for small target detection in unmanned aerial vehicles (UAVs). Many methods and approaches exist for implementing this technical solution; the above description is merely a preferred embodiment. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention. All components not explicitly stated in this embodiment can be implemented using existing technologies.

Claims

1. A method for detecting small targets on a UAV with multi-scale features, characterized in that, Includes the following steps: Step 1: Dataset preparation and preprocessing; Step 2: Construct the GM-YOLO model and train it using a dynamic gradient modulation strategy; Step 3: Perform small object detection based on the trained GM-YOLO model.

2. The method for detecting small targets in a UAV with multi-scale features according to claim 1, characterized in that, The GM-YOLO model is based on the YOLOv11s architecture and includes a backbone network, a neck network, and a detection head connected in sequence. The C3k2 module is replaced by the CFC3K2 module. The traditional SPPF module is reconstructed, and the SPPF-LSKA module is constructed by introducing the Large Kernel Separable Attention (LSKA) mechanism. The traditional FPN-PAN structure is replaced by the BiFPN-SDI module. The traditional independent branch convolutional detection head is replaced by the SDEDH module.

3. The method for detecting small targets in a UAV with multi-scale features according to claim 2, characterized in that, The C3k2 module is composed of MetaFormerBlock, which integrates depthwise separable convolution, multilayer perceptron, normalization layer, DropPath regularization, ResScale / LayerScale scaling mechanism and residual connection. Specifically, it includes: Step 2-1-1: The Conv layer downsamples to generate a multi-scale feature map of {P2,P3,P4,P5}. The input features are rearranged into (B, H,W, C). After unbiased LayerNorm normalization, a Token Mixer is constructed through SepConv to realize dynamic interaction between local and global features. Step 2-1-2: After DropPath regularization, combine with ResScale residual connections to output intermediate features; Step 2-1-3: After the intermediate features are normalized again, channel dimension feature calibration is completed through MLP; Step 2-1-4: After DropPath regularization again, combined with the LayerScale residual connection output, the features are finally rearranged into (B, C, H, W) for use by subsequent networks.

4. The method for detecting small targets in a UAV with multi-scale features according to claim 2, characterized in that, The SPPF-LSKA module specifically includes: Step 2-2-1: After the input features are reduced in dimensionality by 1×1 convolution, multi-scale features are extracted and concatenated through three-level max pooling to generate a multi-scale feature tensor; Step 2-2-2: Concatenate the tensor input LSKA submodule, and extract features through horizontal / vertical SepConv and 5×5 dilated convolution; Step 2-2-3: Calculate the attention weight map A through 1×1 convolution, and multiply A element-wise with the output of the basic convolution + dilated convolution to obtain the enhanced multi-scale fusion feature.

5. The method for detecting small targets in a UAV with multi-scale features according to claim 2, characterized in that, Step 2-3-1: Adaptive scale alignment: High-level features are upsampled using bilinear interpolation to preserve edge continuity, low-level features are downsampled using adaptive average pooling to suppress noise, and mid-level features maintain resolution; Step 2-3-2: Feature Refinement: Features at each scale are refined using the improved GSConv module; Step 2-3-3: Nonlinear Fusion: Perform element-wise multiplication on the refined multi-scale features to model cross-scale nonlinear correlations; Step 2-3-4: Perform cross-scale feature orthogonal decoupling on the features after nonlinear product fusion in step 3-3 to obtain orthogonalized feature vectors; Steps 2-3-5: Bidirectional aggregation: Through BiFPN multi-level recursive paths and cross-layer residual connections, feature reuse and deep fusion are achieved, and enhanced features {P3', P4', P5'} are output.

6. The method for detecting small targets in a UAV with multi-scale features according to claim 5, characterized in that, Steps 2-3-4 specifically involve constructing a matrix along the channel dimension from the features obtained after nonlinear product fusion in step 3-3. Among them, each feature Compressed by global average pooling The feature matrix is ​​formed by combining dimensional vectors. For the matrix Perform Gram-Schmidt orthogonalization to obtain the orthogonalized matrix. Its column vectors satisfy The orthogonalized feature vectors are reconstructed into feature maps of the same size as the original features through inverse projection, and then input into the subsequent bidirectional aggregation path.

7. The method for detecting small targets in a UAV with multi-scale features according to claim 5, characterized in that, The SDEDH module is specifically: Step 4-1: After the multi-scale input features are normalized by Conv-GN, the channels are compressed uniformly through 1×1 convolution; Step 4-2: Enhance the edge features of small targets using the DEConv-GN module; Step 4-3: Enhance the input of features {P3', P4', P5'} into the shared DEConv-GN module to achieve scale-invariant feature representation; Step 4-4: Generate regression offset and classification probability through independent 1×1 convolutional layers, introduce dynamic scaling factors to adapt to features with different resolutions, and adjust the regression output range.

8. The method for detecting small targets in a UAV with multi-scale features according to claim 7, characterized in that, The DEConv-GN module consists of: depthwise convolution to extract spatial details and pointwise convolution to achieve channel interaction, and element-wise summation and fusion.

9. The method for detecting small targets in a UAV with multi-scale features according to claim 1, characterized in that, The GM-YOLO model training process includes: Step 3-1: Assign weights to samples with different confidence levels using a dynamic gradient modulation strategy, and dynamically adjust the sample loss weights using the SlideLoss function; Step 3-2: Optimize model parameters by combining SGD optimizer with cosine annealing learning rate strategy, and use non-maximum suppression to filter detection results.

10. The method for detecting small targets in a UAV with multi-scale features according to claim 9, characterized in that, Step 3-1 specifically includes: dynamically dividing sample confidence intervals based on predicted IoU, differentially allocating loss weights, focusing on training on difficult samples, and assigning weights to samples with different confidence levels through a dynamic gradient modulation strategy. The corresponding weight allocation rules are as follows: Where α is the initial threshold, τ is the upper confidence boundary, λ is the scaling factor, and γ is the lower weighting factor; Loss calculation: , where ℓ(y,p) is the BCEWithLogits base loss, y is the true label, and p is the predicted value; Training constraints: The initial threshold α is adaptively adjusted based on the model's convergence to avoid excessive weight fluctuations during the initial training phase.