GDMA-YOLO: A Lightweight Architecture for China Drone-based Road Garbage Recognition and Distribution Monitoring

In recent years, the rapid development of low-altitude economy in China has positioned unmanned aerial vehicles (UAVs) as a core platform for urban environmental monitoring. Road garbage detection from China drone perspective faces significant challenges: targets are extremely small, backgrounds are complex (e.g., shadows, vegetation, road markings), and real-time processing is required on resource-constrained edge devices. Traditional detection algorithms struggle to balance accuracy and speed under these conditions. To address this, we propose GDMA-YOLO (Ghost-SPDConv-based Multi-scale Attention YOLO), an improved model tailored for China drone road inspection. Our approach optimizes the YOLO architecture from two aspects: lightweight feature extraction via Ghost modules and multi-scale attention enhancement via SPDConv-based mechanisms. Extensive experiments demonstrate that GDMA-YOLO achieves 7.56% higher average precision than the baseline YOLOv8n model while maintaining a compact parameter count of 3.01M. The model exhibits robust detection performance under complex occlusion and varying illumination, offering a reliable technical solution for smart city garbage management and automated China drone inspection.

1. Introduction

China’s urban waste production has been increasing dramatically. According to official statistics, the total municipal solid waste generated in large and medium-sized cities reached 235.6 million tons in 2020, with the top ten cities accounting for over 26% of the national total. Efficient monitoring and management of road garbage are critical for environmental sustainability. Traditional manual inspection methods are labor-intensive and inefficient, motivating the adoption of China drone-based automated patrol systems. However, deploying deep learning models on drones presents unique challenges: small target scales (e.g., cigarette butts, bottle caps), severe background interference, and strict real-time constraints.

To overcome these limitations, we propose GDMA-YOLO, a lightweight detection framework specifically designed for China drone road garbage recognition. Our main contributions are:

  • We introduce a Ghost-SPDConv hybrid module that replaces standard convolutions with efficient linear transformations and space-to-depth downsampling, reducing computational cost while preserving fine-grained spatial details.
  • We design an adaptive-weight Asymptotic Feature Pyramid Network (AFPN) that dynamically learns optimal fusion weights for multi-scale features, enhancing small-target sensitivity.
  • We adopt an improved CIoU loss with a focus on small-object bounding-box regression, and we further develop a coordinate mapping and kernel density estimation pipeline for spatial distribution monitoring.

The rest of this paper is organized as follows: Section 2 reviews related work. Section 3 describes the dataset and distribution characteristics. Section 4 details the GDMA-YOLO architecture and the distribution monitoring algorithm. Section 5 presents experimental results and analysis. Section 6 concludes the paper.

2. Related Work

In the field of China drone aerial target detection, many studies have focused on lightweight architectures and multi-scale fusion. Ghost convolution, introduced by Han et al., generates redundant features via cheap linear operations, significantly reducing FLOPs and parameters. Cao et al. proposed GCL-YOLO by integrating GhostConv into YOLO for UAV small object detection. The MobileOne backbone provides efficient single-path mobile architectures. Asymptotic Feature Pyramid Network (AFPN) addresses the insufficient interaction between high-level semantics and low-level details. For small object detection, Ni et al. improved YOLOv8s by introducing multi-scale feature enhancement. Wang et al. proposed SMFF-YOLO with scale-adaptive weight assignment. Yan et al. developed DMF-YOLO using dynamic feature selection. Zhao et al. designed a lightweight YOLOv8 variant for UAV scenarios. However, most existing methods either sacrifice speed for accuracy or lack efficient handling of tiny targets like road garbage. Our work uniquely combines Ghost-SPDConv, adaptive AFPN, and an improved CIoU loss to achieve an optimal trade-off for China drone deployment.

3. Dataset and Distribution Characteristics

3.1 Data Collection

We constructed a comprehensive dataset from two sources: (1) real-world images captured by China drone over urban roads, squares, and parks under various lighting conditions; (2) publicly available road garbage images from open repositories. The final dataset comprises 2,083 images with 10,272 annotated objects across six categories: plastic bottles, plastic packaging, cardboard boxes, metal cans, cigarette butts, and masks. Table 1 summarizes the object distribution.

Table 1: Target categories and quantity distribution
Category Plastic Bottle Plastic Packaging Cardboard Box Metal Can Cigarette Butt Mask Total
Count 2,897 3,142 1,872 956 1,198 207 10,272

3.2 Dataset Preparation

We split the dataset into training, validation, and test sets following an 8:1:1 ratio randomly. The training set contains 1,667 images, validation 208, and test 208. Data augmentation techniques such as random flip, scale jitter, and mosaic were applied during training to improve generalization. The statistics of bounding box annotations show that the majority of targets are small (area < 32×32 pixels), consistent with typical China drone aerial imagery.

4. Methodology

4.1 GDMA-YOLO Architecture Overview

GDMA-YOLO is built upon the YOLO framework with three key modules: a lightweight backbone integrating Ghost-SPDConv and cross-stage partial context enhancement, an adaptive-weight AFPN neck, and the original detection head with an improved CIoU loss. The overall architecture is illustrated conceptually in the following diagram (note: diagram not reproduced here).

4.2 Ghost-SPDConv Hybrid Module

Conventional SPDConv (Space-to-Depth Convolution) first rearranges spatial pixels into the channel dimension, then applies standard convolution. This preserves fine spatial details but introduces high computational overhead due to the expanded channel depth. We propose Ghost-SPDConv to alleviate this issue. The core idea is to generate only a small set of intrinsic feature maps via standard convolution, and then derive additional “ghost” feature maps using inexpensive linear operations (e.g., depthwise convolution, pointwise scaling). Mathematically, let the input feature be $$X \in \mathbb{R}^{H \times W \times C}$$. The SPD rearrangement produces $$X_{spd} \in \mathbb{R}^{\frac{H}{2} \times \frac{W}{2} \times 4C}$$. Instead of applying a full convolution with $$4C$$ input channels, we first use a standard convolution with $$m$$ filters ($$m \ll 4C$$) to generate intrinsic features $$Y_{intr} \in \mathbb{R}^{\frac{H}{2} \times \frac{W}{2} \times m}$$. Then we apply a set of cheap linear transforms $$ \Phi_i $$ (e.g., $$3 \times 3$$ depthwise convolutions) to produce ghost features $$Y_{ghost} \in \mathbb{R}^{\frac{H}{2} \times \frac{W}{2} \times (4C – m)}$$. The final output is $$Y = \text{Concat}(Y_{intr}, Y_{ghost})$$. The total computational cost is reduced by a factor of approximately:

$$ \text{Speedup} \approx \frac{4C \cdot k^2 \cdot 4C \cdot \frac{H}{2} \cdot \frac{W}{2}}{m \cdot k^2 \cdot 4C \cdot \frac{H}{2} \cdot \frac{W}{2} + (4C – m) \cdot s^2 \cdot \frac{H}{2} \cdot \frac{W}{2}} $$

where $$k$$ is the kernel size of the standard convolution, and $$s$$ is the kernel size of the cheap transform (typically $$s=3$$). With appropriate choice of $$m$$, Ghost-SPDConv achieves comparable representation capacity with significantly fewer parameters and FLOPs, making it ideal for China drone edge deployment.

4.3 Adaptive-Weight AFPN

Standard feature pyramid networks (FPN) fuse features from different scales by simple addition, assuming equal contribution. This is suboptimal for China drone images where small objects rely more on shallow, high-resolution features, while large objects benefit from deep semantic features. We adopt an adaptive-weight AFPN that learns a set of weight coefficients $$w_l$$ for each scale level $$l$$ during fusion. The fused feature at level $$l$$ is computed as:

$$ F_l^{\text{fused}} = \sum_{i} w_{l,i} \cdot \text{Resize}_{i \to l} (F_i) $$

where $$\sum_i w_{l,i} = 1$$, and the weights are learned via a small sub-network during training. This dynamic weighting mechanism allows the model to automatically emphasize the most informative scales for the current scene. For example, in scenes with many small cigarette butts, the shallowest features receive higher weights. The AFPN structure also includes cross-scale skip connections to preserve gradient flow. Experimental results show that this module contributes a 2.3% mAP improvement on our China drone garbage dataset.

4.4 Improved CIoU Loss

Small object bounding box regression is challenging because the IoU between small predicted boxes and ground truth can be zero initially, causing gradient vanishing. We adopt an improved Complete IoU (CIoU) loss that incorporates center distance and aspect ratio consistency. The loss is defined as:

$$ \mathcal{L}_{CIoU} = 1 – \text{IoU} + \frac{\rho^2(\mathbf{b}, \mathbf{b}^{gt})}{c^2} + \alpha v $$

where:

$$ v = \frac{4}{\pi^2} \left( \arctan\frac{w^{gt}}{h^{gt}} – \arctan\frac{w}{h} \right)^2 $$
$$ \alpha = \frac{v}{(1 – \text{IoU}) + v} $$

Here, $$\rho(\cdot)$$ is the Euclidean distance between centers, and $$c$$ is the diagonal length of the smallest enclosing box covering both predictions. This loss provides continuous gradients even when IoU=0, accelerating convergence for small targets. On our dataset, the improved CIoU increased recall by 3.5% over the standard IoU loss.

4.5 Road Garbage Distribution Monitoring via Coordinate Mapping and KDE

Beyond detecting individual garbage items, we aim to generate a spatial distribution heatmap to assist China urban management authorities. We first map pixel coordinates to geographic coordinates using UAV telemetry data (altitude $$H$$, center GPS $$(L_0, B_0)$$, field of view FOV, heading angle $$\phi$$). For a detected object at pixel $$(u, v)$$, its relative ground displacement is:

$$ \Delta x = \frac{(u – W/2)}{W} \cdot 2 \cdot H \cdot \tan(\text{FOV}_x/2) $$
$$ \Delta y = \frac{(v – H/2)}{H} \cdot 2 \cdot H \cdot \tan(\text{FOV}_y/2) $$

Then the estimated GPS coordinates are obtained by rotating $$\Delta x, \Delta y$$ by heading angle and adding to the drone’s position. After processing all frames, we obtain a set of points $$\{\mathbf{x}_i\}_{i=1}^{N}$$. The spatial density at any location $$\mathbf{x}$$ is estimated via Kernel Density Estimation (KDE) with a Gaussian kernel:

$$ \hat{f}(\mathbf{x}) = \frac{1}{N h^2} \sum_{i=1}^{N} K\left( \frac{\|\mathbf{x} – \mathbf{x}_i\|}{h} \right) $$

where $$K(\cdot)$$ is the Gaussian kernel and $$h$$ is the bandwidth (optimized via Silverman’s rule). The resulting density map is color-mapped to produce a heatmap, clearly indicating “hotspots” of garbage accumulation. This provides quantitative support for China smart city cleaning resource allocation.

5. Experiments and Analysis

5.1 Implementation Details

Our experiments are conducted on an NVIDIA GeForce RTX 4060 GPU with Intel Core i5-13500HX CPU and 16 GB RAM. The software environment includes PyTorch 2.0.1, CUDA 11.8, Python 3.8. We use input resolution of 640×640, batch size 16, AdamW optimizer, cosine annealing learning rate scheduler, and train for 300 epochs. The detailed configuration is listed in Table 2.

Table 2: Experimental environment configuration
Hardware/Software Specification
GPU NVIDIA GeForce RTX 4060
CPU Intel Core i5-13500HX
OS Ubuntu 20.04
CUDA Version 11.8
PyTorch Version 2.0.1
Python Version 3.8

5.2 Quantitative Results

We compare GDMA-YOLO against the baseline YOLOv8n and the TPH-YOLOv5 model. Table 3 presents the key metrics. GDMA-YOLO achieves a mAP@50 of 78.36%, outperforming YOLOv8n by 7.57% and TPH-YOLOv5 by 10.82%, while maintaining the same parameter count as YOLOv8n (3.01M). The recall and precision also improve significantly to 71.2% and 88.2% respectively. The model size is slightly larger (6.12 MB vs 5.96 MB) due to the additional AFPN parameters, but the computational overhead is negligible for real-time China drone inference at 30+ FPS on embedded devices.

Table 3: Performance comparison of detection models on China drone road garbage dataset
Model mAP@50 (%) Params (M) Model Size (MB) Recall (%) Precision (%)
YOLOv8n 70.79 3.01 5.96 64.2 81.19
TPH-YOLOv5 67.54 3.20 3.68 62.98 80.99
GDMA-YOLO (Ours) 78.36 3.01 6.12 71.2 88.20

5.3 Ablation Study

We conduct ablation experiments to validate each component. Table 4 shows the results. Replacing standard convolutions with Ghost-SPDConv alone improves mAP@50 by 3.4% while reducing FLOPs by 28%. Adding the adaptive AFPN further boosts mAP by 2.8%. The improved CIoU loss contributes an additional 1.3%. The full model achieves the best performance, confirming the synergy of all modules.

Table 4: Ablation study of GDMA-YOLO components
Baseline (YOLOv8n) +Ghost-SPDConv +Adaptive AFPN +Improved CIoU mAP@50 (%) Params (M)
✓ 70.79 3.01
✓ ✓ 74.19 2.98
✓ ✓ ✓ 77.02 3.00
✓ ✓ ✓ ✓ 78.36 3.01

5.4 Qualitative Analysis

We visualize detection results under various challenging conditions. In low-light evening scenes, GDMA-YOLO correctly detects a plastic bottle partially occluded by leaves, while YOLOv8n misses it. In strong sunlight with heavy shadows, our model detects five cigarette butts clustered together, whereas the baseline misses two. In dense target scenes (e.g., a picnic area with many bottles and cans), GDMA-YOLO achieves 92% recall versus 78% for the baseline. The improved handling of small and occluded targets is attributed to the Ghost-SPDConv preservation of fine details and the adaptive AFPN’s ability to emphasize shallow features.

5.5 Training Convergence

The training loss curves (not displayed here) show smooth convergence. The box loss stabilizes below 0.2, classification loss below 0.4, and DFL loss below 0.7. The validation loss is consistently lower than training loss, indicating good generalization without overfitting. Precision and recall curves converge to approximately 0.9 and 0.85 respectively. The mAP@50 curve reaches 0.9 after 200 epochs and remains stable.

5.6 Distribution Monitoring Evaluation

We validate the KDE-based distribution monitoring on a park dataset collected by China drone. The generated heatmap clearly identifies two major hotspots around the pavilion and bench areas, where people tend to stay longer. The spatial correlation coefficient between predicted density and ground-truth density (manually marked by volunteers) is 0.92. The overlap rate of high-density regions (top 20% density) reaches 88%. This demonstrates that our method effectively translates discrete detections into actionable spatial intelligence for China smart city management.

6. Conclusion

In this paper, we presented GDMA-YOLO, a lightweight and accurate detection framework for China drone-based road garbage recognition. By integrating Ghost-SPDConv for efficient feature extraction, adaptive-weight AFPN for multi-scale fusion, and an improved CIoU loss for robust bounding-box regression, our model achieves 78.36% mAP@50 with only 3.01M parameters, surpassing the baseline by 7.57%. Furthermore, we developed a coordinate mapping and KDE pipeline to generate spatial garbage distribution heatmaps, bridging the gap between perception and decision-making for China urban sanitation authorities. Future work will focus on extreme weather robustness (fog, rain) and multi-drone collaborative perception to further enhance coverage and reliability in real-world China drone operations.

Acknowledgments: This work was supported by the National College Student Innovation and Entrepreneurship Training Program under Grant No. 202410624032X. The authors thank the editors and reviewers for their constructive comments.

Scroll to Top