A small target detection method and system for capturing images by a UAV based on YOLO

By constructing a multi-level feature aggregation center module and a refined feature detection head, the challenge of small target detection in UAV images was solved, the integrity of target information was enhanced, and the detection performance was improved.

CN117935085BActive Publication Date: 2026-11-24HENAN UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410019500.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2026-11-24
Estimated Expiration
2044-01-05

AI Technical Summary

Technical Problem

Due to the blurred target outlines, small number of pixels, and insignificant features, existing target detection models struggle to achieve ideal results in UAV images.

Method used

A multi-level feature aggregation center module and a refined feature detection head are constructed to enhance the integrity of target information through efficient information fusion, avoid feature information loss or degradation, and improve the detection performance of small targets.

Benefits of technology

It improves the detection performance of small targets in UAV images and achieves better detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117935085B_ABST
    Figure CN117935085B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for small target detection in UAV-captured images based on YOLO. The method includes: downloading an image target detection dataset from the VisDrone 2019 challenge and preprocessing the dataset; constructing a baseline model and loading its pre-trained weights; adding a multi-level feature aggregation center module to the neck of the baseline network model, the multi-level feature aggregation center module including high-level feature aggregation branches, mid-level feature aggregation branches, and low-level feature aggregation branches, each branch containing a feature alignment module, a weighted feature fusion module, and a global information extraction module; adding a refined feature detection head to improve the model's performance in detecting small targets; using the training set as input to train the improved network model, and performing small target detection based on the trained improved model. This invention has achieved good results in the task of small target detection in UAV-captured images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of target detection technology, and in particular to a method and system for detecting small targets in images captured by a UAV based on YOLO. Background Technology

[0002] Object detection is a fundamental task in computer vision and the basis for some advanced computer vision tasks, such as video understanding and object tracking. Small object detection in drone-captured images, as a subtask of object detection, is also a challenging research direction. After years of development, deep learning-based object detection methods have seen widespread application in various fields, including wildlife conservation, geographic information exploration, agriculture, and disaster relief.

[0003] In recent years, object detection algorithms based on deep convolutional neural networks have seen vigorous development. Object detectors can be categorized based on whether they generate proposals: one-stage detectors, such as the YOLO series and SSD (Reference 1: Liu, Wei, et al. "Ssd: Single shot multibox detector." Computer Vision–ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11–14, 2016, Proceedings, Part I 14. Springer International Publishing, 2016.), and two-stage detectors, represented by the Faster R-CNN series (Reference 2: Ren S, He K, Girshick R, et al. Faster r-cnn: Towards real-time object detection with region proposal networks[J]. Advances in neural information processing systems, 2015, 28.).Based on whether the predicted bounding box is obtained through anchor box regression, the model is further classified as an anchor-based detector, such as RetinaNet and YOLO v5 (Reference 3: Lin, Tsung-Yi, et al. "Focal loss for dense object detection." Proceedings of the IEEE international conference on computer vision. 2017.), and anchor-free detectors represented by FCOS and CenterNet (Reference 4: Tian, ​​Zhi, et al. "FCOS: Fully convolutional one-stage object detection." Proceedings of the IEEE / CVF international conference on computer vision. 2019.) (Reference 5: Duan, Kaiwen, et al. "Centernet: Keypoint triplets for object detection." Proceedings of the IEEE / CVF international conference on computer vision. 2019.). With the emergence of the transformer, the transformer-based detectors DETR and Deformable DETR have abandoned the complex post-processing operations of previous models, and have completely realized end-to-end object detection (Reference 6: Carion, Nicolas, et al. "End-to-end object detection with transformers." European conference on computer vision. Cham: Springer International Publishing, 2020.) (Reference 7: Zhu X, Su W, Lu L, et al. Deformable DETR: Deformable transformers for end-to-end object detection[J]. arXiv preprint arXiv:2010.04159,2020.).Structurally, object detection models basically consist of three parts: a convolutional neural network (CNN) as the backbone to extract feature information; a feature pyramid that fuses features from multiple stages to act as the neck network, improving the ability to detect multi-scale objects; and a detection head for classification and bounding box coordinate regression. While the aforementioned object detection models have solved the object detection task to some extent, since most models are designed for natural scene images, directly applying these models to small object detection tasks on images captured by drones is unlikely to achieve ideal results. Summary of the Invention

[0004] Compared to natural scene images, drone-captured images often exhibit blurred target outlines due to the rapid movement of the drone. Furthermore, drones capture images from a bird's-eye view, resulting in a limited number of pixels for most targets, and the top of the target in the bird's-eye view provides limited information and lacks significant distinguishing features. These issues make small target detection in drone-captured images extremely challenging. To address these problems, this invention proposes a YOLO-based method and system for small target detection in drone-captured images. Specifically, it constructs a multi-level feature aggregation center module for small target detection in drone images. Through efficient information fusion, it avoids the loss or degradation of detailed feature information. This module fuses multi-level features and injects captured global information into higher levels, achieving the capture and aggregation of small target features to enhance the completeness of target information. In addition, to address the issue of low pixel count and insufficient feature significance of small targets in drone images, a refined feature detection head is constructed specifically for detecting small targets in images. By refining and enhancing the symmetry information between layers before injecting it into the detection layer, the target features become more significant.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] This invention proposes a small target detection method based on YOLO-captured images from drones, comprising:

[0007] Step 1: Obtain the UAV-captured image dataset and preprocess the dataset, including converting the format of the annotation files and applying data augmentation strategies to the images;

[0008] Step 2: Construct a baseline network model. Use the drone-captured images processed in Step 1 as input to the network model, adjust the image size, load the pre-trained weights, and then train the baseline network model.

[0009] Step 3: Construct a multi-level feature aggregation center module. Add a multi-level feature aggregation center module to the neck of the baseline network model. The multi-level feature aggregation center module includes a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch contains three sub-modules: feature alignment module, weighted feature fusion module, and global information extraction module.

[0010] Step 4: Based on the addition of the multi-level feature aggregation center module, add a refined feature detection head to capture the symmetry information between layers;

[0011] Step 5: Use the drone-captured images processed in Step 1 as input to train the improved network model, and save the parameters of the trained improved network model.

[0012] Step 6: Perform small target detection on the UAV-captured images based on the trained and improved network model. Further, the input data for the multi-level feature aggregation center module is:

[0013] X5 = Conv 3×3 (F5)

[0014] X4 = Conv 3×3 (C3(Cat([Resize(X5), F4])))

[0015] X3 = Conv 3×3 (C3(Cat([Resize(X4), F3])))

[0016] F3, F4, and F5 are partial feature layers of the multi-scale feature maps in the backbone network of the baseline network model; Resize() represents upsampling the feature maps; Cat() concatenates the feature maps along the channel dimension; Conv 3×3 () indicates a convolution with a kernel size of 3; C3() indicates C3 module processing; X3, X4, and X5 are the inputs to the multi-level feature aggregation center.

[0017] Furthermore, for the high-level feature aggregation branch, the feature alignment module unifies X3 and X4 to the same size as X5, and then concatenates the three feature maps along the channel dimension. In the weighted feature fusion module, the output of the feature alignment module is subjected to channel dimensionality reduction using a convolution with a kernel size of 1, and then processed with an activation function to obtain a feature map with 3 channels. Then, the feature map with 3 channels is divided into 3 feature maps with 1 channel along the channel dimension, and the 3 feature maps with 1 channel are multiplied by the aligned input features respectively, and the results are added together. Finally, the output of the weighted feature fusion module is fed into the global information extraction module containing multiple transformer blocks for calculation.

[0018] Furthermore, the output of the high-level feature aggregation branch is:

[0019]

[0020]

[0021] B1, B2, B3=Split(Sigmoid(Conv 1×1 (P Top_FAM )))

[0022]

[0023] P Top_FFB =Transformer_Block(P Top_WFF )

[0024] Where CBR() represents Conv-BN-ReLU; Resize() represents Avgpool downsampling operation; These represent the results after spatial scale alignment for X5, X4, and X3, respectively; P Top_FAM Indicates will The result after concatenation along the channel dimension; Cat() represents the concatenation of feature maps along the channel dimension; B1, B2, and B3 indicate that P Top_FAM Passing through Conv in sequence 1×1 The result after processing by (), Sigmoid(), and Split(); Conv 1×1 () represents a convolution with a kernel size of 1; Split() represents splitting the feature map along the channel dimension; Sigmoid() represents the Sigmoid function; Add() represents adding the feature map element by element; P Top_WFF The output of the high-level weighted feature fusion module; Transformer_Block() represents the global information extraction module containing L transformer encoders; P Top_FFB This is the output of the high-level feature aggregation branch.

[0025] Furthermore, for the mid-level feature aggregation branch, the feature alignment module unifies X3 and X5 to the same size as X4, and the functions of the weighted feature fusion module and the global information extraction module are consistent with those in the high-level feature aggregation branch.

[0026] Furthermore, for the lower-level feature aggregation branch, the feature alignment module unifies X4 and X5 to the same size as X3, and the functions of the weighted feature fusion module and the global information extraction module are consistent with those in the higher-level feature aggregation branch.

[0027] Furthermore, the processing steps in the refined feature detection head include:

[0028] X 4_resize =Resize(X4)

[0029]

[0030]

[0031]

[0032]

[0033] P = Sigmoid(Conv) 3×3 (P cat ))

[0034] X out =Cat([Resize(CBR(P*X)) 4_resize )), X2])

[0035] Where X 4_resize The feature map is upsampled from X4. `AdaptiveAvgPool2d()` represents the `AdaptiveAvgPool2d` function. Indicates that X 4_resize The results calculated sequentially by CBR() and AdaptiveAvgPool2d(), RC1() and RC2() represent The two channel conversion operations, X 4_out express The result after channel transformation and processing with the sigmoid activation function. Representing X3 and X 4_out The result of weighted multiplication followed by CBR() calculation, P max () and P avg () represent max pooling and average pooling operations, respectively. cat () represents the result concatenated along the channel dimension after the pooling operation, and X2 represents the low-level features from the backbone network of the baseline network model. out This is the final output feature map.

[0036] Furthermore, the baseline network model adopted is YOLOv5m.

[0037] Another aspect of this invention proposes a small target detection system based on YOLO-captured images from a drone, comprising:

[0038] The data preprocessing unit is used to acquire the image dataset captured by the UAV and preprocess the dataset, including converting the format of the annotation files and applying data augmentation strategies to the images.

[0039] The baseline network model pre-training unit is used to build the baseline network model. It uses the drone-captured images processed by the data preprocessing unit as the input to the network model, adjusts the image size, loads the pre-training weights, and then trains the baseline network model.

[0040] The first model improvement unit is used to construct a multi-level feature aggregation center module. A multi-level feature aggregation center module is added to the neck of the baseline network model. The multi-level feature aggregation center module includes a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch contains three sub-modules: a feature alignment module, a weighted feature fusion module, and a global information extraction module.

[0041] The second model improvement unit is used to add a refined feature detection head to capture the symmetry information between layers, based on the addition of a multi-level feature aggregation center module.

[0042] The improved network model training unit is used to train the improved network model by taking the UAV captured images processed by the data preprocessing unit as input and saving the parameters of the trained improved network model.

[0043] The small target detection unit is used for small target detection in drone-captured images based on a trained and improved network model.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] This invention uses an improved YOLOv5m network structure to detect small targets in images captured by UAVs. Based on the original YOLOv5m network structure, a multi-level feature aggregation center module and a refined feature detection head are constructed. This avoids the loss or degradation of feature information, thereby enhancing the integrity of target information. Simultaneously, it improves the model's detection performance for small targets with a limited number of pixels. Experimental results show that, compared with benchmark models and other mainstream models, this invention exhibits better performance in detecting small targets in UAV images and can effectively complete the task of small target detection in UAV images. Attached Figure Description

[0046] Figure 1 This is a flowchart of a small target detection method based on YOLO in UAV captured images, according to an embodiment of the present invention.

[0047] Figure 2 This is a schematic diagram of the improved YOLOv5m network structure according to an embodiment of the present invention;

[0048] Figure 3 This is a schematic diagram of the multi-level feature aggregation center module structure constructed according to an embodiment of the present invention;

[0049] Figure 4 This is a schematic diagram of the C3 module structure;

[0050] Figure 5 A schematic diagram of the refined feature detection head structure constructed according to an embodiment of the present invention;

[0051] Figure 6 This is a schematic diagram of the architecture of a small target detection system based on YOLO for UAV-captured images, according to an embodiment of the present invention. Detailed Implementation

[0052] The present invention will be further explained below with reference to the accompanying drawings and specific embodiments:

[0053] like Figure 1 As shown, a small target detection method based on YOLO-captured images from a drone includes:

[0054] Step S101: Download the image object detection dataset from the VisDrone 2019 challenge. It contains 6471 training images, 548 validation images, and 1610 test images, representing 10 object categories. Convert the image annotations to the input format for the YOLOv5 network.

[0055] Step S102: Construct the YOLOv5m network model. Select the YOLOv5m version of YOLOv5 as the baseline model. Adjust the size of the training set images to 640×640 as the input to the network model, and expand the dataset using data augmentation strategies such as random flipping, random cropping, and Mosaic. Furthermore, load pre-trained weights to train the network model.

[0056] Step S103: The improved network structure is as follows Figure 2 As shown, specifically, a multi-level feature aggregation center module is added to the neck of the baseline network model. The multi-level feature aggregation center mainly consists of three parts: a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch has roughly the same content, containing three modules: a feature alignment module, a weighted feature fusion module, and a global information extraction module. The implementation details of the multi-level feature aggregation center module are as follows... Figure 3 As shown.

[0057] Step S103.1: Extract multi-scale feature maps from the backbone network, process them, and use them as input to the multi-level feature clustering center module. Select a portion of the feature layers F. i(i = 3, 4, 5) are used as inputs to subsequent networks, where the spatial resolution of the feature maps can be expressed as... Feature F i X was obtained after calculation. i (i = 3, 4, 5), X i The space size still follows X i The calculation process is described by the following formula:

[0058] X5 = Conv 3×3 (F5) (1)

[0059] X4 = Conv 3×3 (C3(Cat([Resize(X5),F4]))) (2)

[0060] X3 = Conv 3×3 (C3(Cat([Resize(X4),F3]))) (3)

[0061] Here, `Resize()` represents upsampling the feature map. `Cat()` concatenates the feature maps along the channel dimension. `C3()` indicates processing using the C3 module, a component of the YOLOv5m network model, whose structure is as follows: Figure 4 As shown. Conv 3×3 () indicates a convolution with a kernel size of 3. The X obtained here... i (i = 3, 4, 5) will be used as the input to the multi-level feature aggregation center.

[0062] Step S103.2: In the high-level feature aggregation branch, use the calculated X i (i = 3, 4, 5) are used as the input for the branch. For example... Figure 3 As shown. In the feature alignment module, X3 and X4 are unified to the same size as X5, and then the three feature maps are concatenated along the channel dimension. In the weighted feature fusion module, the output of the feature alignment module is subjected to channel dimensionality reduction using a convolution with a kernel size of 1, and then processed with an activation function to obtain a feature map with 3 channels. Then, the feature map with 3 channels is divided into 3 feature maps with 1 channel along the channel dimension. The 3 feature maps with 1 channel are multiplied by the aligned input features respectively, and the results are added together. Finally, the output of the weighted feature fusion module is fed into the global information extraction module containing multiple transformer blocks for calculation. The final output of the high-level feature aggregation branch is obtained. The formula is as follows:

[0063]

[0064]

[0065] B1, B2, B3=Split(Sigmoid(Conv 1×1 (P Top_FAM ))) (6)

[0066]

[0067] P Top_FFB =Transformer_Block(P Top_WFF (8)

[0068] Here, CBR() stands for Conv-BN-ReLU, and Resize() represents the Avgpool downsampling operation. These represent the results after spatial scale alignment for X5, X4, and X3, respectively. Top_FAM Indicates will The result after concatenation along the channel dimension. Cat() concatenates feature maps along the channel dimension. B1, B2, and B3 represent the concatenation of P... Top_FAM Passing through Conv in sequence 1×1 The result after processing by (), Sigmoid(), and Split(). Conv 1×1 () represents a convolution with a kernel size of 1. `Split()` represents splitting the feature map along the channel dimension, and `Sigmoid()` represents the Sigmoid function. `Add()` represents adding the feature map element by element. Top_WFF This is the output of the high-level weighted feature fusion module. `Transformer_Block()` represents a global information extraction module containing L transformer encoders (L defaults to 2). P Top_FF This is the output of the high-level feature aggregation branch.

[0069] Step S103.3: The internal details of the mid-level feature aggregation branch, low-level feature aggregation branch, and high-level feature aggregation branch are largely the same. In the feature alignment module of the high-level feature aggregation branch, the spatial scales of X5, X4, and X3 are aligned to match the dimension of feature map X5. The difference is that in the other two branch structures, the spatial scales of X5, X4, and X3 are aligned to match X4 and X3, respectively. Then, the calculations in step S103.2 are repeated for these two branches to obtain the results. Finally, the outputs of the three branches are all aggregated into the subsequent network.

[0070] Step S104: Add a refined feature detection head. This captures and enhances the symmetry information between layers before injecting it into the detection layer, improving the detection head's performance for small targets. Detailed information about the refined feature detection head is as follows... Figure 5 As shown.

[0071] Step S104.1: Using X4 as a reference feature, fully exploit the symmetric information among feature maps X4, X3, and X2 (low-level features from the backbone network), and inject this symmetric information into X2. Specifically, feature map X4 ∈ R C×H×W Upsampled to feature map X3∈R C×2H×2W The dimensions are consistent, and the intermediate features are calculated using the AdaptiveAvgPool2d function after passing through a CBR() module. After channel transformation The sigmoid activation function is used. The above process can be represented as:

[0072] X 4_resize =Resize(X4) (9)

[0073]

[0074]

[0075] Among them, X 4_resize This is the feature map after X4 upsampling. Indicates that X 4_resize The results calculated sequentially by CBR() and AdaptiveAvgPool2d(), RC1() and RC2() represent The two channel conversion operations, X 4_out This indicates the final result of the above process.

[0076] Step S104.2: For feature map X3, first compare X3 with feature map X 4out The multiplication is performed with channel weighting. The weighted features are then processed through a CBR() module, followed by max pooling and average pooling operations along the channel dimension of the feature map. The results from the two branches are then concatenated along the channel dimension. Next, a 3×3 convolution reduces the number of channels in the feature map to 1. Finally, the feature map with 1 channel is processed by a sigmoid activation function and then multiplied by X. 4_resize Weighted multiplication is performed. Finally, the feature maps are scale-aligned and concatenated with X2 along the channel dimension. The result is the result after symmetric information injection, and this final feature is used as an enhanced detection layer to improve recognition performance. The calculation process is described by the following formula:

[0077]

[0078]

[0079] P = Sigmoid(Conv) 3×3 (Pcat (14)

[0080] X out =Cat([Resize(CBR(P*X)) 4_resize )), X2]) (15)

[0081] in, Representing X3 and X 4_out The result after weighted multiplication and CBR() calculation. P max () and P avg () represent max pooling and average pooling operations, respectively. cat () represents the result of concatenating along the channel dimension after the pooling operation. X out This is the final output feature map.

[0082] Step S105: Resize the training set images to 640×640 and input them into the improved network model for training. During training, load pre-trained weights and employ data augmentation strategies. Save the training results and evaluate the performance of the improved model.

[0083] To evaluate the performance of the improved model, a comparative experiment was conducted, and the results are shown in Table 1.

[0084] Table 1 compares the results with other detectors on the VisDrone2019 dataset.

[0085]

[0086] Step S106: Detect small targets in the drone-captured images based on the trained and improved network model.

[0087] Based on the above embodiments, such as Figure 6 As shown, this invention also proposes a small target detection system based on YOLO-captured images from a UAV, comprising:

[0088] The data preprocessing unit is used to acquire the image dataset captured by the UAV and preprocess the dataset, including converting the format of the annotation files and applying data augmentation strategies to the images.

[0089] The baseline network model pre-training unit is used to build the baseline network model. It uses the drone-captured images processed by the data preprocessing unit as the input to the network model, adjusts the image size, loads the pre-training weights, and then trains the baseline network model.

[0090] The first model improvement unit is used to construct a multi-level feature aggregation center module. A multi-level feature aggregation center module is added to the neck of the baseline network model. The multi-level feature aggregation center module includes a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch contains three sub-modules: a feature alignment module, a weighted feature fusion module, and a global information extraction module.

[0091] The second model improvement unit is used to add a refined feature detection head to capture the symmetry information between layers, based on the addition of a multi-level feature aggregation center module.

[0092] The improved network model training unit is used to train the improved network model by taking the UAV captured images processed by the data preprocessing unit as input and saving the parameters of the trained improved network model.

[0093] The small target detection unit is used for small target detection in drone-captured images based on a trained and improved network model.

[0094] In summary, this invention uses an improved YOLOv5m network structure to detect small targets in images captured by UAVs. Based on the original YOLOv5m network structure, a multi-level feature aggregation center module and a refined feature detection head are constructed. This avoids the loss or degradation of feature information, thereby enhancing the integrity of target information. Simultaneously, it improves the model's detection performance for small targets with a limited number of pixels. Experimental results show that, compared with benchmark models and other mainstream models, this invention exhibits better performance in detecting small targets in UAV images and can effectively complete the task of small target detection in UAV images.

[0095] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for small target detection in UAV-captured images based on YOLO, characterized in that, include: Step 1: Obtain the UAV-captured image dataset and preprocess the dataset, including converting the format of the annotation files and applying data augmentation strategies to the images; Step 2: Construct a baseline network model. Use the drone-captured images processed in Step 1 as input to the network model, adjust the image size, load the pre-trained weights, and then train the baseline network model. Step 3: Construct a multi-level feature aggregation center module. Add a multi-level feature aggregation center module to the neck of the baseline network model. The multi-level feature aggregation center module includes a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch contains three sub-modules: feature alignment module, weighted feature fusion module, and global information extraction module. Step 4: Based on the addition of the multi-level feature aggregation center module, add a refined feature detection head to capture the symmetry information between layers; Step 5: Use the drone-captured images processed in Step 1 as input to train the improved network model, and save the parameters of the trained improved network model. Step 6: Perform small target detection on the drone-captured images based on the trained and improved network model; The input data for the multi-level feature aggregation center module is: in , , This refers to a partial feature layer of the multi-scale feature map in the backbone network of the baseline network model. This represents upsampling the feature map; The feature maps are stitched together along the channel dimension; This represents a convolution with a kernel size of 3; Indicates to proceed Module processing; , , As input to the multi-level feature aggregation center; The processing steps in the refined feature detection head include: in for Upsampled feature map This refers to the AdaptiveAvgPool2d function. express Passing through in sequence and The calculated result and represent The two channel conversion operations, Indicates will The result after channel transformation and processing with the sigmoid activation function. represent and After weighted multiplication The calculated result and These represent max pooling and average pooling operations, respectively. This is the result of concatenating along the channel dimension after the pooling operation. This represents low-level features derived from the backbone network of the baseline network model. The final output feature map, This indicates Conv-BN-Relu.

2. The method for small target detection in UAV-captured images based on YOLO according to claim 1, characterized in that, For the high-level feature aggregation branch, the feature alignment module will... , Unify to Using the same dimensions, the three feature maps are then concatenated along the channel dimension. In the weighted feature fusion module, a convolution with a kernel size of 1 is used to reduce the channel dimension of the output of the feature alignment module, and then an activation function is applied to obtain a feature map with 3 channels. The feature map with 3 channels is then divided into three feature maps with 1 channel along the channel dimension. Each of the three feature maps with 1 channel is multiplied by the aligned input feature, and the results are summed. Finally, the output of the weighted feature fusion module is fed into the global information extraction module, which contains multiple transformer blocks, for computation.

3. The method for small target detection in UAV-captured images based on YOLO according to claim 2, characterized in that, The output of the high-level feature aggregation branch is: in This indicates the Avgpool downsampling operation; , , Represent , , The result after spatial scale alignment; Indicates will , , The result after stitching along the channel dimension; The feature maps are stitched together along the channel dimension; Indicates will Passing through in sequence , , The result after processing; This is a convolution with a kernel size of 1; This represents segmentation of the feature map along the channel dimension; express function; This means adding the feature maps element by element; This is the output of the high-level weighted feature fusion module; This represents a global information extraction module containing L transformer encoders; This is the output of the high-level feature aggregation branch.

4. The method for small target detection in UAV-captured images based on YOLO according to claim 2, characterized in that, For the mid-level feature aggregation branch, the feature alignment module will... , Unify to With the same dimensions, the functions of the weighted feature fusion module and the global information extraction module are consistent with those in the high-level feature aggregation branch.

5. A method for small target detection in UAV-captured images based on YOLO according to claim 2, characterized in that, For the low-level feature aggregation branch, the feature alignment module will... , Unify to With the same dimensions, the functions of the weighted feature fusion module and the global information extraction module are consistent with those in the high-level feature aggregation branch.

6. A small target detection system based on YOLO-captured images from a UAV, characterized in that, include: The data preprocessing unit is used to acquire the image dataset captured by the UAV and preprocess the dataset, including converting the format of the annotation files and applying data augmentation strategies to the images. The baseline network model pre-training unit is used to build the baseline network model. It uses the drone-captured images processed by the data preprocessing unit as the input to the network model, adjusts the image size, loads the pre-training weights, and then trains the baseline network model. The first model improvement unit is used to construct a multi-level feature aggregation center module. A multi-level feature aggregation center module is added to the neck of the baseline network model. The multi-level feature aggregation center module includes a high-level feature aggregation branch, a mid-level feature aggregation branch, and a low-level feature aggregation branch. Each branch contains three sub-modules: a feature alignment module, a weighted feature fusion module, and a global information extraction module. The second model improvement unit is used to add a refined feature detection head to capture the symmetry information between layers, based on the addition of a multi-level feature aggregation center module. The improved network model training unit is used to train the improved network model by taking the UAV captured images processed by the data preprocessing unit as input and saving the parameters of the trained improved network model. The small target detection unit is used to detect small targets in drone-captured images based on a trained and improved network model. The input data for the multi-level feature aggregation center module is: in , , This refers to a partial feature layer of the multi-scale feature map in the backbone network of the baseline network model. This represents upsampling the feature map; The feature maps are stitched together along the channel dimension; This represents a convolution with a kernel size of 3; Indicates to proceed Module processing; , , As input to the multi-level feature aggregation center; The processing steps in the refined feature detection head include: in for Upsampled feature map This refers to the AdaptiveAvgPool2d function. express Passing through in sequence and The calculated result and represent The two channel conversion operations, Indicates will The result after channel transformation and processing with the sigmoid activation function. represent and After weighted multiplication The calculated result and These represent max pooling and average pooling operations, respectively. This is the result of concatenating along the channel dimension after the pooling operation. This represents low-level features derived from the backbone network of the baseline network model. The final output feature map, This indicates Conv-BN-Relu.

Citation Information

Patent Citations

  • Method for detecting small target in aerial image of unmanned aerial vehicle

    CN118762168A

  • Unmanned aerial vehicle image small target detection method based on space-frequency combination and semantic alignment

    CN122116005A