1. Introduction
With the rapid development of drone technology, a large amount of aerial images with subsurface information are produced. By leveraging advanced image-processing techniques, real-time monitoring of ground vehicles and other potential obstacles can be achieved, thereby providing critical support for urban planning, security surveillance, and environmental protection, among other areas. Despite the increasing prevalence of real-time detection applications for drones, achieving accuracy and real-time performance remains a challenge.
Object detection in aerial images is of paramount importance. However, it presents considerable challenges. Aerial images frequently present intricate features, such as diminutive target sizes and occlusions among objects, intensifying the difficulty of object detection. Moreover, practical applications necessitate rapid detection capabilities. In aviation, notably in-flight monitoring and navigation, there exists a demand for object-detection systems characterized by real-time performance. These systems must promptly and precisely discern targets amidst swiftly evolving environments to guarantee navigation accuracy.
Traditional object detection in aerial images primarily relies on manual visual inspection and traditional machine vision methods. However, both approaches have inherent limitations. Manual visual inspection is subjective and lacks real-time capability, while traditional machine vision methods often depend on handcrafted feature extractors, requiring adjustment and optimization based on domain expertise and experience. In recent years, deep learning has garnered significant attention and has been successfully applied across various domains. Deep learning detection methods have emerged as increasingly popular alternatives, offering advantages such as real-time capability, high accuracy, and robustness.
Detailed information is paramount in object detection within aerial images. Given the abundance of intricate details present in aerial images, this detailed information is indispensable for precise object detection and localization. Sensitivity to details assists models in comprehending target features within the image, consequently bolstering detection accuracy and robustness. Notably, object-detection methodologies in aerial images frequently leverage multi-scale feature-fusion techniques to enhance the model’s perceptual acuity toward details.
Initially, SSD [
1] endeavored to leverage features from various levels of the backbone for object detection, yielding commendable results. Subsequently, FPN [
2] effectively mitigates the deficiency of low-level convolutional features and weak semantic information by establishing a top-down lateral pathway. This optimization enhances the multi-scale detection performance by transmitting high-level semantic features from the top to the bottom layers. However, FPN is not without its limitations: signal transmission is unidirectional and does not convey detailed location information to the upper layers. PANet [
3] builds another bottom-up pathway on top of the top-down pathway, transmitting detailed location information to the upper layers. Wang et al. [
4] proposed the Adaptive Recursive Feature Pyramid (ARFP), comprising a recursive structure, an Efficient Global Context (EGC) bottleneck module, and a Discriminative Feature-Fusion (DFF) module. Zhang et al. [
5] proposed a Laplacian feature pyramid network (LFPN), integrating high-frequency information into the multi-scale pyramid feature representation, thus enhancing the accuracy of object detection. Additionally, some researchers integrate novel feature-fusion modules [
6], attention mechanisms [
7], or dilated convolutional layers [
8] into FPN to acquire more discriminative multi-scale feature representations. While this approach can enhance the detection accuracy of multi-scale targets to some extent, improving the detection capability of small-sized targets under complex background interference remains challenging due to the abundance of small-sized targets and the presence of abundant interfering features in aerial images.
Considering the constraints posed by prior enhancement methodologies and the imperative of refraining from incorporating supplementary modules that could considerably impede inference speed, the primary objective of this study is to augment the detection accuracy of aerial images through a heightened utilization of detail-sensitive multi-scale feature fusion, while the secondary objective is to maintain real-time detection capabilities alongside high precision. In this paper, we initially employ the Cross Stage Partial Reparam Dilation-wise Residual Module (CSP-RDRM) to acquire more comprehensive multi-scale contextual information and facilitate efficient feature extraction. Subsequently, the Detail-Sensitive Pyramid Network (DSPN) integrates Parallel Upsample, Parallel Downsample, and the Cross-Parallel Atrous Fusion Module (CPAFM) to extract multi-scale feature forces, thereby enhancing the perception and comprehension of the image details. Following this, the Dynamic Scale Sequence Feature-Fusion Module (DSSFFM) enables the network to comprehensively exploit multi-scale information. Lastly, we introduce NMPDIoU as the bounding box regression loss to enhance the model’s localization ability for small targets.
We propose a novel CSP-RDRM, which enhances the model’s feature-extraction capability while maintaining a real-time performance through reparameterized dilation-wise residual expansion.
For the detection of small objects in aerial images, we propose the DSPN, which exhibits heightened sensitivity to local features and detailed information, thereby mitigating information loss during the process of feature fusion.
We propose a novel and practical plug-and-play DSSFFM. By dynamically fusing high-level and low-level features and dynamically weighting them based on the importance of different components, as well as integrating them with the encoder’s output, this module enhances the model’s sensitivity to details.
We optimize the MPDIoU for bounding box regression loss using a normalized Wasserstein distance, thereby accelerating the convergence speed of the model and enhancing the detection accuracy of aerial images.
2. Related Work
The evolution of object detection in aerial images can be broadly categorized into three stages: manual visual inspection, traditional machine vision methods, and deep learning detection methods. Deep learning object detection in aerial images offers superior accuracy, robustness, end-to-end training, and adaptability. Consequently, deep learning object detection is gaining increasing popularity. Deep learning object detection is primarily divided into two or one stages.
Two-stage object detection divides the task into two distinct phases: region proposal generation and object classification. Common two-stage object-detection methods include Faster R-CNN [
9], Cascade R-CNN [
10], and others. While achieving high accuracy, they also encounter a series of challenges such as complex structures, high computational complexity, and inaccurate region proposals, which restrict their application and dissemination in certain scenarios.
Single-stage object detection offers several advantages: end-to-end design and efficient performance and enabling the direct prediction of object categories and positions from images. Common single-stage object-detection methods include the YOLO series, SSD [
1], RetinaNet [
11], and DETR series. The YOLO series is primarily utilized for real-time, efficient, and accurate applications, featuring typical algorithms such as YOLO [
12], YOLOv3 [
13], YOLOv5 [
14], YOLOv7 [
15], YOLOv8 [
16], and YOLOv9 [
17]. However, the YOLO series is limited by the design of anchor boxes and the necessity to generate candidate regions prior to object classification and position regression, thus not achieving true end-to-end object detection. DETR [
18], as the first Transformer-based detector, streamlines the entire process without the requirement for complex candidate box generation and matching in traditional object-detection algorithms, thereby achieving genuine end-to-end design. However, it is accompanied by challenges such as training difficulty, ambiguous semantics of query vectors, complex model structure, high computational complexity, and inferior performance in detecting small objects. RT-DETR [
19] addresses issues such as slow inference time and training difficulty by designing an Efficient Hybrid Encoder and efficiently processing multi-scale features through decoupled intra-scale interactions and cross-scale fusion. Overall, compared to two-stage detectors, single-stage detectors strike a better balance between accuracy and speed, rendering them more practical for real-world applications.
Object detection in aerial images has become a challenging task in the field of computer vision in recent years, with significant hurdles including large-scale variations in object sizes and mutual occlusions among objects. The development of datasets such as AI-TOD [
20], VisDrone2019 [
21], and NWPU VHR-10 [
22] has driven progress in aerial images’ object detection. Li et al. [
23] proposed the Few-Shot Airborne Object-Detection method (FsCIT) based on confidence-IoU collaborative proposal filtering and small object constraint loss. This method integrates the confidence-IoU collaborative proposal filtering scheme into the Region Proposal Network (RPN) to rescue more foreground proposals from the RPN, aiming to address newly introduced categories. However, the main limitation of this method is the lack of a dedicated few-shot object-detection strategy, which affects the detection accuracy of objects in airborne images. In contrast, Ma et al. [
24] proposed the Scale Decoupling Module (SDM) that emphasizes small object features by removing large object features in shallow layers, addressing the problem of object scale disparity. The SDM method has made significant progress in enhancing the small-object-detection capability, but its handling of large object features could limit its performance in comprehensive scenarios. Chen et al. [
25] introduced the Coupled Global–Local (CGL) network, which can be seamlessly integrated into traditional detection models to effectively capture additional information from airborne images. The CGL network enhances detection accuracy through multi-scale feature fusion and adaptive convolution methods. However, these techniques increase the model’s complexity and computational overhead, which impacts its practical application in resource-constrained environments. Deng et al. [
26] proposed the Hierarchical Adaptive Alignment Network (HAA-Net) with a design that includes the Region Refinement Module (RRM), Feature Alignment Module (FAM), and Potential Label Assignment Module (PLAM), addressing misalignment issues at the region, feature, and label levels, respectively. Although HAA-Net performs excellently in resolving misalignment issues, its model typically contains millions of parameters, posing challenges for deployment on resource-limited embedded devices.
The end-to-end aerial images’ object-detection algorithm based on Transformer networks is an emerging approach in the field of object detection, showing potential advantages in aerial images. YOLOS [
27] introduces a novel design for object detection by integrating the encoder–decoder architecture of DETR with the encoder backbone of ViT. While this approach offers a fresh perspective, its detection performance is still suboptimal, and there is considerable room for improvement in the pretrained representations. Hu et al. [
28] proposed Efficient-Matching-Oriented Object Detection with Transformers (EMO2-DETR), which excels in handling objects of varying scales and orientations, thereby enhancing accuracy in aerial images. Despite these advantages, the model struggles with achieving end-to-end comparability with DETR-like methods and exhibits a convergence speed significantly slower than that of CNN-based approaches. Dai et al. introduced the Arbitrary-Oriented Object DEtection TRansformer (AO2-DETR) framework, designed to explicitly generate orientation queries. This framework improves positional priors for feature aggregation and enhances cross-attention in the Transformer decoder. However, AO2-DETR faces challenges such as convergence difficulties and high computational costs. Li et al. [
29] developed TransUNetCD, an end-to-end hybrid Transformer model that combines the strengths of Transformers and UNet. This model addresses issues related to redundant information extraction from low-level features in the UNet framework and aims to optimize feature-difference representations while improving inter-layer relationship modeling. Wang et al. [
30] proposed the Vision Transformer Detector (ViTDet), which extracts multi-scale features for aerial image detection and can be integrated into various detector architectures. However, in practical applications, particularly in real-time target-detection scenarios, ViTDet’s inference speed can be relatively slow.
3. RT-DETR
RT-DETR is the first real-time end-to-end object detector released by Baidu in 2023, which outperforms the state-of-the-art YOLO detector and DETR series detectors in both speed and accuracy. RT-DETR mainly consists of a backbone network, encoder, and decoder. Its major contribution is the adoption of a novel and Efficient Hybrid Encoder that processes multi-scale features by decoupling intra-scale interactions and cross-scale fusion. Although RT-DETR demonstrates a strong overall performance, its efficacy in aerial image detection is limited, primarily due to the following two shortcomings:
Despite using a traditional ResNet as the backbone network, the resolution of feature maps gradually decreases with the increase in network depth, making it challenging to capture the features of small objects.
In the structure of the Efficient Hybrid Encoder, although deep features are fused with shallow features from ResNet, multiple convolution and upsampling operations result in the loss of local details and positional information in the feature maps, which is detrimental to the detection of small objects. While shallow features in the backbone network contain rich positional information, the Efficient Hybrid Encoder fails to fully leverage this characteristic.
4. DFS-DETR
4.1. Overall Framework
This paper proposes an aerial image real-time object detector based on a Transformer, and its overall framework is shown in
Figure 1. DFS-DETR has four main contributions. Firstly, the CSP-RDRM enhances the feature-extraction capability of the backbone network. Secondly, the DSPN utilizes Parallel Upsample and Parallel Downsample techniques to employ multiple pathways for feature extraction, thereby enriching the diversity of feature representation. Additionally, it integrates a Cross-Parallel Atrous Fusion Module, which improves the network’s feature-extraction capabilities while preserving feature resolution. Next, the DSSFFM allows the network to fully leverage multi-scale information by dynamically fusing detailed features from the backbone with higher-order features. The introduction of Multi-Attention Add incorporates distinct attention mechanisms to process the input, merging their outputs to enrich the model’s understanding and representation of the input. Finally, the optimization of the loss function with NMPDIoU enables a more precise quantification of the similarity between target and predicted bounding boxes, facilitating the model’s acquisition of more reliable object-detection boundaries.
4.2. CSP-RDRM
The core of the CSP-RDRM is the reparameterized dilated residual module (RDRM), which adopts an efficient method for obtaining multi-scale contextual information. It is primarily designed using a residual approach, as shown in
Figure 2.
The design concept and structure of the RDRM: within the module, a two-step method is used to efficiently draw multi-scale contextual information, followed by the fusion of feature maps generated from multi-scale receptive fields.
First step: The initial step involves generating relevant residual features from the input features, resulting in a series of concise feature maps with different region sizes. This step primarily involves a convolution, followed by batch normalization (BN) and ReLU layers. The convolution is used for initial feature extraction, while the ReLU activation function plays a crucial role in activating region features and making them concise.
Second step: The reparameterized dilated block (DRB) [
31] is employed to enhance the morphological filtering of features from different region sizes using the reparameterization concept. By learning the required concise regional feature maps and reverse matching the receptive field based on its size, the DRB effectively achieves this operation. To accomplish this, the regional feature maps are divided into several groups, and then different groups undergo reparameterized dilated blocks. The schematic diagram of the reparameterized dilated block is shown in
Figure 2, where an expanded small kernel transformation layer is used to enhance the unexpanded large kernel layer. Through the use of structural reparameterization, after training, the BN layer is merged into the convolution layer so that the small kernel convolution can be effectively merged into the large kernel convolution during inference.
Through the aforementioned two steps, the reparameterized dilated block can efficiently obtain multi-scale contextual information. After drawing multi-scale contextual information, aggregation is performed on multiple outputs. Specifically, all feature maps are concatenated together, followed by batch normalization and pointwise convolution for feature merging, ultimately forming the RDRM.
The CSP-RDRM is an improvement of the CSP structure, where we replace the bottleneck in the CSP structure with the reparameterized dilated residual module (RDRM), as depicted in
Figure 2. By replacing Conv 5_x of ResNet 18 with the CSP-RDRM, more multi-scale contextual information and efficient feature extraction can be obtained.
4.3. Detail-Sensitive Pyramid Network (DSPN)
4.3.1. The Intuition and Motivation Behind the Design of the DSPN
In RT-DETR, the Efficient Hybrid Encoder utilizes the cross-scale feature-fusion module for multi-scale feature fusion, which significantly impacts the final detection task. Improving the Efficient Hybrid Encoder is an effective approach to enhance the detection performance of RT-DETR and serves as the primary focus of this study.
The key to improving RT-DETR’s detection capability for small objects lies in enhancing its sensitivity to detail. As the network depth increases, the positional information of detail gradually diminishes. Furthermore, the cross-scale feature-fusion module in the Efficient Hybrid Encoder is located at a deeper position in the model. Therefore, enhancing the Efficient Hybrid Encoder’s detection accuracy for small objects will be crucial for boosting the overall detection performance of RT-DETR.
In previous works, enhancing the detail-sensitive aspect was mainly achieved through attention mechanisms. These mechanisms assist the network in focusing its attention on crucial details, thus improving the model’s perceptual capabilities regarding these details. By introducing attention mechanisms, the network can more effectively learn and utilize details, enhancing its ability to recognize small-scale objects or subtle structures, thereby improving the overall performance. Poorly designed attention mechanisms may result in an excessive focus on local information while neglecting global context, leading to a decrease in the model generalization ability or an insufficient perception of overall features.
How to enhance sensitivity to details within the cross-scale feature-fusion module is a question that needs to be addressed. To improve the detection of small objects across multiple scales, there is a need to develop a novel Pyramid Attention Network that can increase sensitivity to details.
4.3.2. The Architecture of the DSPN
The DSPN adopts a Parallel Upsample and Parallel Downsample, providing multiple feature-extraction pathways for the network. Additionally, the CPAFM efficiently extracts features at different scales by employing parallel dilated convolutions with different dilation rates. In this section, we introduce the architecture of the developed DSPN and discuss its characteristics. The proposed DSPN structure is illustrated in
Figure 3.
4.3.3. Parallel Upsample and Parallel Downsample
RT-DETR employs a traditional Upsample and Downsample, primarily used to adjust the resolution of images. This traditional approach facilitates the network in acquiring feature information across multiple scales and extracting features at various levels. However, it performs poorly in prioritizing important features and optimizing feature representation, often resulting in a significant loss of detailed information. Therefore, we propose Parallel Upsample and Parallel Downsample, whose structural diagram is illustrated in
Figure 4.
We illustrate the Parallel Upsample process. In Path one, the input feature map undergoes upsampling using Nearest Neighbor interpolation, effectively doubling its height and width. Subsequently, the feature map’s channels are halved through CBS. Path two entails reducing the size and dimensions of the feature layer via Transpose. Path three involves passing the input feature map through an AdaptiveAvgPool layer, resulting in a feature map with dimensions of
. Following this, it traverses a CBS layer and is finally activated using the
hardsigmoid activation function, thereby normalizing the feature map. It is important to note that different applications may necessitate various activation functions, and selecting the appropriate one is pivotal in neural network training and testing. The
hardsigmoid function is mathematically defined as follows: the path three result is considered as the learned weights for dynamically adjusting the concatenation results of paths one and two. This approach enhances sensitivity to subtle features.
In summary, Parallel Upsample and Parallel Downsample provide multiple pathways for feature extraction, enriching the diversity of feature representation. Path three is then utilized to perform feature selection on the sampled features, enhancing more meaningful features while suppressing redundant or irrelevant ones, thereby improving the effectiveness of feature representation.
4.4. Cross-Parallel Atrous Fusion Module (CPAFM)
Atrous convolution is a commonly used technique in CNNs, which enlarges the receptive field by introducing holes between convolutional kernel elements. This enables the network to effectively capture information over a wider range. A larger receptive field plays a crucial role in detecting small objects, making atrous convolution more effective compared to regular convolution.
In atrous convolution, the dilation rate determines the sampling interval of the convolutional kernel in the atrous convolution. Different dilation rates can achieve different scales of receptive fields. Our improved Parallel Atrous Convolution (PAC) utilizes atrous convolutions with dilation rates of 1, 2, and 3 simultaneously to obtain feature representations at multiple scales, as shown in
Figure 5. This parallel operation enables the neural network to better capture both local and global information in the data, thereby enhancing the network’s ability to represent complex patterns.
Through Parallel Atrous Convolutions, neural networks can acquire feature representations simultaneously across multiple scales. These representations effectively capture intricate details and the overarching structures of target objects across various scales. The integration of multi-scale information significantly enhances the network’s capacity for object recognition and precise localization, thereby improving its generalization performance and robustness. In contrast to traditional single-scale convolutions, Parallel Atrous Convolutions mitigate the loss of feature resolution, thereby further augmenting the network’s performance.
In summary, PAC employs Parallel Atrous Convolutions with diverse dilation rates to proficiently extract features across multiple scales. This facilitates the network in capturing both local details and contextual information, thereby augmenting its capability to represent intricate patterns.
We integrated the refined Parallel Atrous Convolution into the CSP architecture, yielding the Cross-Parallel Atrous Fusion Module (CPAFM), and the structure is illustrated in
Figure 5. In comparison to RT-DETR’s RepC3, the CPAFM facilitates superior feature information acquisition across diverse scales. This enhancement bolsters the network’s feature-extraction prowess while circumventing any compromise in feature resolution, thereby elevating its generalization performance and robustness.
4.5. Dynamic Scale Sequence Feature-Fusion Module (DSSFFM)
4.5.1. The Structure of DSSFFM
We employ the Dynamic Scale Sequence Feature-Fusion Module (DSSFFM) to augment the network’s capability to detect small objects by integrating high-level and low-level features. During the Image-Downsample process, the size of shallow feature maps varies, while the scale-invariant features remain consistent. S2 represents the high-resolution feature level, encompassing a significant portion of crucial information for object detection. The DSSFFM is devised based on the S2 level. Initially, a two-dimensional Gaussian filter is applied to smoothen the input image, yielding an output image with identical resolution but varying scales, yielding
where
represents the two-dimensional input image with width
w and height
h.
is generated by smoothing through a series of convolutions using the two-dimensional Gaussian filter
.
is the scaling parameter for the standard deviation of the two-dimensional Gaussian filter used for convolution. Below outlines the design rationale of the DSSFFM:
Utilize pointwise convolution to uniformly adjust the channel dimensions of three feature maps from the shallow layer to a predetermined number of channels.
Employ dysample for dynamic upsampling of the two larger-sized feature maps from the preceding step, ensuring uniformity in size across all three feature maps.
Implement the unsqueeze operation to append an extra dimension to the original three-dimensional tensor, transitioning it from a three-dimensional tensor (height, width, and channel) to a four-dimensional tensor (depth, height, width, and channel).
Concatenate the 4D feature maps along the depth dimension to generate a unified 3D feature map.
Conclude by employing 3D convolution, batch normalization, and the SiLU activation function to execute sequence feature extraction effectively.
4.5.2. Multi-Attention Add (MAA)
To integrate the detailed features of the DSSFFM into the results of the encoder, we use Multi-Attention Add (MAA) to add the output of the DSSFFM to the encoder results with the same channels through attention mechanisms. It undergoes both channel attention and local attention sequentially. The structure is illustrated in
Figure 6.
Channel attention, known as Efficient Channel Attention [
32], is designed to model the channel dimension effectively, thereby enhancing the model’s efficiency in utilizing channel features. ECA captures channel correlations, amplifies crucial features, and reduces computational costs. It implements channel attention weighting in a straightforward and efficient manner, consequently enhancing the model’s efficiency and inference speed.
Local attention combines the output features of Efficient Channel Attention with those of the DSSFFM to seamlessly integrate detailed multi-scale feature information. Merging the output of channel attention with the DSSFFM features not only provides complementary insights but also facilitates the extraction of crucial positional information from each unit through local attention. In comparison to channel attention, local attention initially partitions the input feature map based on its width and height, subsequently processing them independently along the horizontal axis (pw) and vertical axis (ph) for feature encoding. Eventually, these encoded features undergo pooling along the axes to retain the spatial structural information of the feature map and are ultimately merged to yield the output.
In summary, channel attention and local attention within Multi-Attention Add utilize distinct attention mechanisms to process the input, with their outputs subsequently merged to enrich the model’s comprehension and representation of the input. Unlike simple addition operations (e.g., x = input1 + input2), Multi-Attention Add offers the advantage of discerning the significance of various input components and accordingly adjusting their weighting. Through this adaptive approach, the model gains greater flexibility in handling inputs and effectively captures crucial information, thereby enhancing its performance and generalization capabilities.
4.6. Improvement of Loss Function
The loss function of RT-DETR includes bounding box regression loss and classification loss. The initial model uses GIoU loss as the bounding box regression loss function. The definition of GIoU loss is as follows: suppose we have the coordinates of the predicted box and the ground truth box, denoted as
and
:
where
represents the area of
and
represents the area of
, calculated as
and
, respectively.
represents the area of the smallest bounding box that contains both
and
. GIoU loss cannot be optimized when the predicted box has the same aspect ratio as the ground truth box but with completely different width and height values. However, this situation is common in object detection, so we introduce the more effective MPDIoU to overcome this limitation. MPDIoU is a loss based on the minimum point distance, which can achieve a faster convergence speed and more accurate regression results. The corresponding formulas are shown in (
7) and (
8):
where
,
, and
.
w and
h represent the width and height of the input image, respectively.
MPDIoU [
33] accelerates the convergence speed and improves the accuracy compared to GIoU. However, for a large number of small objects in aerial images, MPDIoU shows some limitations. Therefore, a normalized Wasserstein-distance-based NWD position regression loss function [
34] is introduced to optimize MPDIoU, resulting in the NWD-MPDIoU (NMPDIoU) loss function. NWD is insensitive to scale transformations, making it more suitable for calculating the similarity between predicted boxes and ground truth boxes of small objects in aerial images. NWD uses a two-dimensional Gaussian distribution to calculate the similarity between predicted boxes and ground truth boxes and calculates their normalized Wasserstein distance according to Formula (
10). Finally, the calculated Wasserstein distance is combined with MPDIoU to obtain the final loss, as shown in Formula (
11). The parameter ‘a’ can be flexibly adjusted based on the number of small objects in aerial images to achieve the best performance:
5. Experimental Results and Analysis
5.1. Dataset
VisDrone2019 Dataset: Collected by the AISKYYE team from Tianjin University’s Machine Learning and Data Mining Laboratory. It was captured using drones from multiple angles and scenes in various cities across China. The VisDrone2019 dataset has several characteristics: large scale, rich diversity, high resolution, and multitasking. It provides strong support for drone-application research and is widely used in academia and industry. The VisDrone2019 dataset consists of images and their corresponding annotation files, including 6471 training set images, 548 validation set images, and 1610 test set images. The image sizes range from 2000 × 1500 to 480 × 360, and each image contains a large number of detected objects, with 2.6 million labeled boxes. There are instances of occlusion and overlap between objects. The dataset contains 10 categories: pedestrian (C1), people (C2), bicycle (C3), car (C4), van (C5), truck (C6), tricycle (C7), awning tricycle (C8), bus (C9), and motorbike (C10). The images were captured from drone flights conducted at altitudes ranging from several hundred meters to several thousand meters, utilizing optical systems primarily from DJI’s Mavic and Phantom series (3, 3a, 3SE, 3P, 4, 4a, and 4P).
AI-TOD Dataset: This dataset is designed for small object detection in aerial images and includes 28,036 images with a total of 700,621 instance objects across eight categories. Each original image is sized at 800 × 800 pixels, with an average target size of 12.8 pixels. The dataset uses 11,214 images for training, 2804 images for validation, and 14,018 images for testing. The dataset includes eight categories: airplane (Al), bridge (BR), storage tank (ST), ship (SH), swimming pool (SP), vehicle (VE), person (PE), and windmill (WM).
NWPU VHR-10 Dataset: This dataset includes 715 color images obtained from Google Earth, with spatial resolutions ranging from 0.5 m to 2 m. Additionally, it contains 85 full-resolution color infrared (CIR) images from the Vaihingen dataset, with a spatial resolution of 0.08 m. The Vaihingen data are provided by the German Society for Photogrammetry, Remote Sensing, and Geoinformation (DGPF). The dataset encapsulates a spectrum of target categories, encompassing airplanes (c1), ships (c2), oil tanks (c3), baseball diamonds (c4), tennis courts (c5), basketball courts (c6), ground track fields (c7), harbors (c8), bridges (c9), and vehicles (c10), thereby encompassing a total of 10 distinct classes. We partitioned the NWPU VHR-10 dataset into 640 images for training and 160 images for validation, respectively.
5.2. Experimental Environment and Parameter Configuration
In the experiment, the flight altitude of the UAV ranges from several hundred meters to several thousand meters, and the primary platform used is the DJI Mavic, Phantom series (3, 3a, 3SE, 3P, 4, 4a, and 4P). We used Win11 as the operating system and PyTorch 2.0.1, CUDA 11.8, and cuDNN 11.8 as the desktop computing software environment. The experiment utilized an NVIDIA GeForce RTX 4080 graphics card as the hardware. Consistent hyperparameters were maintained during the training, testing, and experimental validation processes. The optimizer used was AdamW. The RT-DETR dependency library, ultralytics, version 8.0.157 was employed, and the main training parameters are listed in
Table 1.
To comprehensively evaluate the model’s accuracy, this paper adopts
recall (R),
precision (P), average precision (AP), and mean average precision (mAP) as the main evaluation metrics. Precision represents the proportion of true positive samples among all samples predicted as positive by the model, while recall indicates the proportion of true positive samples detected by the model among all actual positive samples. The formulas are as follows:
where
denotes positive samples correctly predicted as positive,
denotes negative samples incorrectly predicted as positive,
denotes negative samples correctly predicted as negative, and
denotes positive samples incorrectly predicted as negative. AP represents the precision–recall curve of the model across various confidence thresholds, calculated by integrating the area under the PR curve. mAP is a composite metric obtained by averaging the AP values, expressed by the following formula:
where
p represents precision,
r represents recall, and
N is the number of classes. mAP50 denotes the average precision calculated at an Intersection over Union (IOU) threshold of 0.5. mAP represents the mean average precision calculated as the average precision over the range of IOU thresholds from 0.5 to 0.95. In addition, we classify objects into three categories based on their area: objects with an area ranging from 0 to 32 square pixels are designated as “small”, objects with an area between 32 and 96 square pixels are categorized as “medium”, and objects with an area exceeding 96 square pixels are classified as “large”.
To evaluate the complexity of the model, parameter size and FPS are used as evaluation metrics.
5.3. Selection of Baseline Detection Framework
Under the same experimental hardware and environment, we evaluated the RT-DETR models of different sizes based on their accuracy (P, R, mAP50, and mAP), frames per second (FPS), and Params. From
Table 2, it can be observed that the detection performance of RT-DETR-R101 is the best, but it has 56.5M more Params than RT-DETR-R18 (76.6 vs. 20.1). The mAP50 and mAP of RT-DETR-R18 are lower compared to other model sizes, but its Params and FPS are better than those of other models. As real-time detection is required for aerial images, we chose the RT-DETR-R18 model due to its more prominent Params and FPS.
5.4. Comparison Experiment of Loss Functions
To validate the superiority of NMPDIoU, we conducted comparative experiments using NMPDIoU and several mainstream loss functions on RT-DETR-R18 under the same experimental hardware and environment, as shown in
Table 3. From the table, it can be observed that when the improved NMPDIoU is used as the bounding box regression loss, the model exhibits a better performance, surpassing MPDIoU and other IoU metrics. The use of the enhanced NMPDIoU results in a 0.6% higher mAP compared to the original GIoU model, as well as a 0.8% higher mAP50, indicating the effectiveness of the improvement.
5.5. Ablation Experiment
We conducted meticulous ablation experiments utilizing RT-DETR-R18 as the foundational detection framework, as depicted in
Table 4. The substitution of our developed CSP-RDRM for the baseline backbone notably enhanced the network’s detection precision. Furthermore, replacing the original CCFM with MAPN resulted in a noteworthy 1.7% augmentation in mAP50 and Params also being appropriately reduced. This enhancement stemmed from MAPN’s heightened sensitivity to local features and detailed information, thereby mitigating information loss during the process of feature fusion. Subsequent integration of the DSSFFM into the model yielded a further improvement of 0.8% in mAP50, showcasing an amplified capacity for the dynamic fusion of both high-level and low-level features, while concurrently bolstering sensitivity toward nuanced details. Lastly, the incorporation of NMPDIoU into the model culminated in a refined performance enhancement.
5.6. Comparison between DFS-DETR and RT-DETR-R18
To delve deeper into understanding the efficacy of DFS-DETR and the baseline model RT-DETR-R18 in aerial image object detection, we present the PR curves of both approaches in
Figure 7. Here, the x-axis of the PR curve denotes recall, while the y-axis represents precision, and the area under the curve corresponds to the mAP. Notably, the area encompassed by DFS-DETR surpasses that of RT-DETR-R18. On the VisDrone2019 dataset, the overall
[email protected] stands at 0.47%, exhibiting a 3.4 percentage points improvement over RT-DETR-R18. It is pivotal to underscore that within the VisDrone2019 dataset, the categories characterized by small objects encompass bicycle, van, tricycle, awning tricycle, and motor. Noteworthy from the PR curve analysis is the conspicuous enlargement of enclosed areas by DFS-DETR in detecting these five categories of defects when compared to RT-DETR-R18.
To provide a more vivid comparison of the detection accuracy between the two models, we introduced
Figure 8. In the figure, different colors of boxes represent different detection outcomes: true positive (TP) are depicted by green boxes, false positive (FP) by blue boxes, and false negative (FN) by red boxes. In this visual representation, green boxes indicate objects accurately detected by the model. By observing
Figure 8, it is evident that DFS-DETR exhibits a superior detection performance compared to RT-DETR-R18.
In order to visually compare the background-suppression capabilities of DFS-DETR and RT-DETR-R18, we introduced GradCAM, as shown in
Figure 9. GradCAM provides an intuitive and easy way to visualize which regions of the feature map the model is focusing on. The darker the gradient color in the feature map, the more attention the model pays to that region, while lighter gradient colors indicate less sensitivity. From the figure, it can be observed that DFS-DETR performs better than RT-DETR-R18, with more focus on the detected objects and higher confidence scores assigned to the corresponding bounding boxes.
5.7. Comparative Experiments
To demonstrate the advantages of DFS-DETR in aerial image detection, we compared it with two-stage object detectors (Cascade R-CNN) and one-stage object detectors (RetinaNet, CornerNet, YOLOv5, YOLOv7, YOLOv8, MS-YOLO, DETR, DAB-DETR, DINO, and RT-DETR) that converged on the VisDrone2019 training set and were evaluated on the VisDrone2019 test set, as shown in
Table 5. The categories C1–C10 in the table represent the following specific meanings: pedestrian, people, bicycle, car, van, truck, tricycle, awning tricycle, bus, and motor. We categorize algorithms into two main groups: one primarily for real-time object detection, namely the YOLO series, and the other focusing on accuracy while disregarding the Params and FPS. From the table, it can be observed that DFS-DETR exhibits an excellent performance in terms of detection accuracy, with superior AP values across all categories and a higher overall mAP compared to most models. Particularly noteworthy is its outstanding performance in detecting C2 (people), C4 (car), and C10 (motor). Regarding the real-time performance, we exclusively compare DFS-DETR with real-time object-detection models based on the Params and FPS. It can be seen from the table that DFS-DETR has fewer Params than the baseline model RT-DETR-R18 and slightly lower FPS, yet it still meets the requirements for real-time detection. To visually illustrate the detection performance of DFS-DETR, we randomly selected four images from the VisDrone2019 test set for visualization, as shown in
Figure 10. DFS-DETR outperforms the other three detectors in detecting small objects and objects with occlusions.
5.8. Generalization to Other Aerial Datasets
5.8.1. Comparison to the AI-TOD Dataset
To demonstrate the generalization ability of DFS-DETR to other aerial datasets, we tested it on the AI-TOD dataset. All algorithms were trained to convergence on the AI-TOD training set and evaluated on the test set, as shown in
Table 6. From the table, DFS-DETR performs remarkably well across all categories, with its mAP surpassing that of the baseline model RT-DETR-R18. Additionally, when compared to the latest object-detection algorithm YOLOv8m, DFS-DETR demonstrates a superior performance across various categories. This indicates that DFS-DETR exhibits a high accuracy and generalization ability in object-detection tasks.
The visual detection results of YOLO methods and DFS-DETR under diverse scenes with the same parameter quantity are compared, as shown in
Figure 11. It can be observed that DFS-DETR accurately detects objects that were either undetected or misclassified as other categories or uncertain in YOLOv5m, YOLOv8s, and RT-DETR-R18. Objects at small scales in the images are often challenging to detect. DFS-DETR outperforms YOLO methods in this task, demonstrating a superior performance.
5.8.2. Comparison to the NWPU VHR-10 Dataset
To verify the performance of DFS-DETR on targets of different scales, we conducted experiments on the NWPU VHR-10 dataset.
Table 7 presents a comparison of different algorithms under the same conditions. It is evident from the table that the improved DFS-DETR achieves an outstanding performance in terms of mAP and also obtains satisfactory results in AP across various categories. For visual representations of the difference in accuracy, we conducted visualization operations, as shown in
Figure 12. From the figure, it is evident that DFS-DETR has lower false positives and false negatives compared to the baseline model and other object detectors.
6. Conclusions
This paper aims to address prominent challenges in object detection in aerial images. To tackle these challenges, we propose the DFS-DETR network based on RT-DETR-R18. Firstly, we introduce the CSP-RDRM, which adeptly captures complex details in aerial images, thereby enhancing the backbone’s feature-extraction capabilities. Secondly, the DSPN module is employed to boost sensitivity to local features, thereby minimizing information loss during the fusion process. Subsequently, the DSSFFM module improves the dynamic fusion of high-level and low-level features, while MAA is utilized to refine feature processing, thereby enhancing the model’s ability to understand and represent information more effectively. Finally, the enhanced NMPDIoU accelerates the model’s convergence rate and improves the detection accuracy for aerial images. We apply these improvements to RT-DETR-R18, enhancing the performance of object detection in aerial images. The experimental results show that DFS-DETR achieves mAP values of 24.1%, 24.0%, and 65.0% on the VisDrone2019, AI-TOD, and NWPU VHR-10 datasets, respectively, outperforming RT-DETR-R18 by 2.3%, 4.8%, and 7.0%, and other models of similar scale.
Regarding inference speed, our model does not exhibit significant advantages among all the tested models. However, simulation results indicate that the model can meet the requirements of real-time industrial detection. In the future, we will delve into optimizing the model’s complexity and researching issues related to training on small datasets. Additionally, we will explore the use of techniques from other domains to enhance the model performance, such as diffusion models and Neural Architecture Search (NAS) technology to reduce network overhead.