Task-Driven Semantic Filtering for China UAV Edge Target Detection

Unmanned aerial vehicles (UAVs) have become pivotal platforms for modern battlefield situational awareness and precision strikes. However, the onboard systems of these platforms are subject to stringent constraints in size, weight, power consumption, and cost, making it difficult to deploy computationally intensive deep learning models. This creates a core conflict between algorithmic performance and edge computing power. Effective multi-platform collaboration and task optimization are critical. On devices represented by consumer-grade graphics cards, balancing algorithm performance with limited hardware resources remains an urgent engineering challenge.

Existing research often pursues breakthroughs in metrics on general datasets but neglects the actual characteristics of military scenarios, such as data scarcity and long-tail distribution, and overlooks the severe interference of complex battlefield environments on reconnaissance effectiveness. Although current models have been enhanced with few-shot learning techniques to mitigate data imbalance, they still face challenges in feature discrimination under complex scenarios. In the direction of optimizing long-tail distribution data, mainstream methods often employ random resampling or cost-sensitive learning. These strategies do not integrate tactical value with photoelectric detection criteria, often leading to models overfitting to high-frequency background noise during training and resulting in ineffective computational waste. In the direction of task-driven data filtering, existing research mostly focuses on task scheduling and computational resource allocation at the network level, rather than semantic purification of sensor return data, making it difficult to address feature dilution at the source.

This study diverges from the traditional approach of solely pursuing detection accuracy and instead investigates the collaborative optimization of model capacity and military data efficacy under strict resource constraints. We select the most mature YOLOv5 architecture for engineering deployment as our baseline, combining it with state-of-the-art lightweight object detection concepts and intelligent combat system architectures. Our goal is to construct the Pareto optimal boundary between detection accuracy and inference latency. To address the inefficiency of training with full-volume data found in traditional methods, we propose a Task-Driven Semantic Filtering (TDSF) strategy. Unlike existing methods, TDSF introduces the Johnson criteria to quantify the tactical value of targets and actively filters out low-SNR samples, achieving “source distillation” of military data rather than mere sample reordering. Experiments based on real-world imagery from the conflict in Ukraine reveal a performance boundary law where medium-sized models match high-quality data. The resulting hierarchical deployment framework validates the effectiveness of the “less is more” data optimization strategy in tactical edge computing.

For unified terminology and engineering context, we define: the “end side” refers to the UAV’s onboard hardware, while the “edge side” refers to ground-based vehicle or edge nodes.

Our core innovations include: (1) Integrating the Johnson criteria with tactical task priority to propose a semantic filtering strategy that fuses photoelectric detection theory with tactical requirements, achieving source distillation of military data and effectively suppressing background noise interference. (2) Revealing the “model capacity-task complexity” adaptation law for military target detection on the edge side. Through mathematical fitting analysis, we identify the optimal suitability of medium-sized models for typical tactical tasks. (3) Constructing a hierarchical detection deployment architecture that, through collaborative scheduling between the end and edge sides, achieves a Pareto optimum for precision, real-time performance, and power consumption.

Materials and Methods

Data Acquisition

Our experimental data originates from the “mil-det” open-source project on Roboflow, comprising 9,400 real battlefield UAV images. The original scenes cover typical lighting conditions like strong sunlight and cloud cover, as well as high-clutter terrains such as urban ruins and wild vegetation. Targets universally exhibit camouflage and physical occlusion. Before being fed into the network, images were uniformly scaled to a 640×640 resolution. All instances underwent double cross-validation and standardized horizontal bounding box annotation, with a focus on re-checking extremely small and blurry targets to ensure source accuracy. The dataset was randomly split in an approximate 8:1:1 ratio into training (79.89%), validation (10.05%), and test (10.06%) sets. Table I shows the distribution of category instances in the dataset.

Table I. Dataset category instance distribution statistics
Category Training Set Validation Set Test Set Total
Tank 3,330 251 538 4,119
Armored Fighting Vehicle 2,392 545 359 3,296
Trench 528 636 222 1,386
Military Truck 372 157 112 641
Multiple Launch Rocket System 150 6 23 179
Heavy Vehicle 472 0 1 473
Light Vehicle 1 0 11 12

The data shows an extreme long-tail imbalance. To address this, our study adopted a two-phase experimental design: the first round strictly preserved the original distorted distribution to probe the model’s generalization baseline in an extremely imbalanced environment; the second round applied our proposed TDSF strategy, treating very low-frequency samples as low-SNR redundancies for dimensionality reduction and elimination. This strategy aims to avoid overfitting caused by blind amplification and ensure that edge computing power is effectively focused on high-tactical-value targets from the data source.

Definition of the Strategy

To solve the “feature dilution” problem caused by long-tail distribution, we propose the Task-Driven Semantic Filtering (TDSF) strategy. This strategy derives the minimum pixel threshold for target identification based on the Johnson criteria, defining low-SNR samples. Simultaneously, it incorporates a tactical task priority model to actively filter out low-visibility, low-value instances, completing data source purification before training.

Task-Driven Sampling Threshold Derivation

According to the Johnson criteria in photoelectric detection, the pixel threshold required for “identification” of a military target is derived. First, the Ground Sample Distance (GSD) is calculated:

$$GSD = \frac{H \times d}{f}$$

Using typical reconnaissance parameters (operating altitude H = 150 m, focal length f = 24 mm, pixel size d ≈ 2.4 μm), we obtain GSD ≈ 1.5 cm/pixel. Setting the typical target line pair empirical value N = 6.4, and based on the Nyquist sampling theorem, the critical minimum number of pixels Pmin = 2N. To offset the contrast loss and information degradation in tactical environments, an empirical safety margin coefficient k = 1.2 is introduced. The final pixel threshold τ for filtering is determined as:

$$\tau = P_{min} \times k \approx 15 \text{ pixels}$$

This means that targets with pixel dimensions smaller than 15×15 will be judged as unreliable for identification during preprocessing and will be filtered out.

Tactical Value Quantification and Sample Screening

To deepen the task-driven connotation, we construct a Tactical Priority Model (TPM) and define the priority score S as follows:

$$S_i = \omega_1 \cdot V_i + \omega_2 \cdot D_i + \omega_3 \cdot \ln(F_i)$$

Here, Vi is the tactical threat value; Di is the visual detection difficulty; Fi is the sample frequency (smoothed with natural logarithm to represent data support). The weight vector is set as W = [0.4, 0.2, 0.4]. Table II shows the tactical priority scores for military targets.

Table II. Tactical priority scoring table for military targets
Category Tactical Value Detection Difficulty Sample Frequency Overall Score
Tank 0.95 0.80 4,119 3.868
Armored Fighting Vehicle 0.90 0.85 3,296 3.770
Trench 0.85 0.40 1,386 3.314
Military Truck 0.70 0.70 641 3.004
Multiple Launch Rocket System 0.95 0.90 179 2.834
Heavy Vehicle 0.50 0.85 473 2.632
Light Vehicle 0.20 0.90 12 1.254

Based on the distribution of overall scores, we set a tactical priority threshold of S ≥ 3.0 to ensure that edge-side computing power focuses on core critical entities. TDSF is essentially a semantic-level denoising based on prior knowledge. This mechanism effectively reduces the entropy of the training data, allowing the model to concentrate its representation capacity on constructing decision boundaries for key categories, thus alleviating the overfitting problem caused by high-dimensional sparse data without increasing computational cost. The schematic diagram of the TDSF strategy is illustrated in the provided figure.

Model Selection

To assess the impact of model scale on edge detection efficacy, we selected four predefined models of varying complexity within the YOLOv5 framework to cover different tactical application scenarios under various computational constraints. Table III compares the parameter scale and computational complexity of the models.

Table III. Comparison of parameter scale and computational complexity of YOLOv5 series models
Model Name Parameters (M) FLOPs (G)
YOLOv5n (nano) 1.9 4.2
YOLOv5s (small) 7.2 15.8
YOLOv5m (medium) 21.2 47.9
YOLOv5l (large) 46.5 107.8

Experimental Implementation

The experiment was conducted in two phases: In the first round, we trained baseline models using all 7 classes of data. In the second round, we applied the TDSF strategy, screening 4 high-priority categories—Armored Fighting Vehicle, Military Truck, Tank, and Trench—for validation.

Software and Hardware Environment: Intel Core i7-12650H CPU, 16GB RAM, NVIDIA RTX 3060 Laptop GPU (6GB VRAM); operating system Windows 11, using PyTorch 2.4.1 framework. This configuration simulates a typical personal computing device scenario for frontline units.

Model training employed transfer learning by loading COCO pre-trained weights. Hyperparameter configuration: batch size 8, 100 epochs; SGD optimizer (momentum 0.937, weight decay 0.0005), initial learning rate 0.01. Data augmentation techniques such as Mosaic stitching, HSV augmentation, and horizontal flipping were enabled. Throughout the experiment, optimal weights were locked in real-time by monitoring the validation set loss to avoid model overfitting to long-tail background noise and ensure the generalizability of the evaluation results.

Experimental Results

Model Scale and Efficacy Adaptation Assessment

Efficacy Balance Analysis of Accuracy and Speed

To quantify the impact of the TDSF strategy, we compared the efficacy boundaries of YOLOv5 variants across the two training rounds. The results show that after applying the TDSF strategy, the efficacy boundaries of all models generally shifted toward the upper-left direction (i.e., high precision, low latency/low time). Specifically, the TDSF strategy generally reduced training and inference time, with the lightest model (YOLOv5n) showing the most significant inference speedup. In contrast, the medium-sized model (YOLOv5m) achieved a substantial increase in accuracy (+18.6%) and the best balance of computational latency, effectively avoiding the computational inefficiency problem faced by the large model (YOLOv5l). The relationship between detection accuracy and computational cost is illustrated in the figure, with blue and red markers representing the first round (7 classes) and second round (4 classes) of training, respectively. After the second round, the efficiency boundary shifted left and upward, achieving improved accuracy and optimized training time and inference latency (values in the table show the percentage change of the second round relative to the first round).

Performance Comparison of Different Scale Models

An intuitive visualization is provided showing the changes in per-class accuracy before and after applying the TDSF strategy. The data indicates that after TDSF removed redundant backgrounds and simplified task complexity, the performance potential of the lightest YOLOv5n was released. Conversely, the most complex YOLOv5l, due to capacity surplus, overfitted on the limited high-value data, resulting in a decline in overall accuracy across all classes (e.g., the “Trench” class decreased by as much as 34.9%). This profoundly reveals the “model capacity – task complexity” adaptation law in edge detection: in focused tactical tasks targeting core objectives, model capacity must be precisely matched to task requirements. Blindly advocating for large models can instead lead to performance degradation due to capacity redundancy.

Verification of Real-world Target Detection Efficacy

Taking the typical “Tank” target as an example for real-world detection comparison, in the first round of baseline testing, the light model suffered from severe missed detections due to complex terrain texture interference, and the large model also failed due to excessive fitting of environmental noise. After applying TDSF data distillation, the overall detection robustness of the models was significantly enhanced. Among them, YOLOv5m demonstrated the best generalization robustness, achieving full detection of all targets with precise localization (all confidence scores > 0.75). This proves at the real-world level that the TDSF strategy effectively strips away environmental camouflage noise, successfully guiding the medium-sized model to focus on the essential features of the target.

Horizontal Comparison and Mechanism Verification of Optimization Strategies

Based on the previous evaluation, this section uniformly uses YOLOv5m as the base network and conducts a horizontal comparison and mechanism ablation study among the TDSF strategy, a conventional Baseline, Focal Loss, and Random Under-Sampling (RUS).

Comparison of Core Metrics and Optimization Methods

The evaluation focuses on the Miss Rate (MR) and False Alarm Rate (FAR), which are critical in the long-tail background (see Table IV). The data shows that traditional strategies are deeply trapped in performance trade-offs. Both the Baseline and Focal Loss overfit high-frequency background noise, leading to an abnormally high false alarm rate and a significant increase in training time. Although RUS had a short training time, it destroyed the original manifold distribution, causing a substantial drop in global accuracy. In contrast, TDSF achieves “purification from the source,” maintaining stable mAP while significantly suppressing the FAR to 12.5%, effectively solving the dilemma where missed detections and false alarms constrain each other under the long-tail distribution.

Table IV. Comparison of core military detection metrics and data optimization methods
Model Strategy/Method mAP@0.5 Miss Rate (MR) False Alarm Rate (FAR) Training Time (h)
Baseline 0.541 57.5% 36.7% 6.249
Focal Loss 0.528 59.2% 37.7% 20.720
RUS 0.185 80.5% 46.7% 5.105
TDSF (Ours) 0.536 51.9% 12.5% 5.864

Verification of Training Dynamics via Loss Curves

The validation set target loss curves for each strategy corroborate the above conclusions. The Baseline and Focal Loss exhibit divergent validation loss from the early stages, falling into severe noise overfitting. RUS shows violent fluctuations and a high convergence value, revealing the instability caused by blindly discarding samples. Thanks to the deep purification of the data source, the TDSF validation loss displays a smooth and healthy downward convergence trend, effectively blocking ineffective fitting to low-value backgrounds.

Interpretability Analysis of Feature Activation

Deep feature activation heatmaps extracted using Grad-CAM reveal the underlying mechanisms. The response foci of the Baseline and Focal Loss are scattered across background areas, making them highly susceptible to false alarms due to similar textures. RUS exhibits severe degradation of the feature manifold. In contrast, the TDSF strategy demonstrates a strong “fidelity and depurification” feature decoupling capability, precisely locking onto high-dimensional positive samples while deeply suppressing global background noise spots. This provides intuitive visual support for its extremely low false alarm rate.

Verification of Fitting Status via Confusion Matrices

The test set confusion matrices reflect the balance of fitting under extremely high noise conditions. The Baseline and Focal Loss misclassify a large number of “backgrounds” as targets (with ratios as high as 0.50 and 0.55), exhibiting typical overfitting. RUS suffers from catastrophic forgetting on long-tail categories (with a missed detection rate of 1.00), falling into underfitting. By filtering out redundant pixels at the source, TDSF alleviates underfitting for small categories while suppressing false alarms from high-frequency backgrounds, achieving an optimal balance of decision boundaries for each tactical category.

Core Parameter Ablation and Edge Hardware Testing

Pixel Filtering Threshold Parameter Ablation Experiment

A quantitative ablation experiment was conducted on the core TDSF parameter τ (see Table V). The results show that when τ = 15, the model reaches an optimal boundary between accuracy and reliability, with the false alarm rate dropping to 12.5%. The experiment confirmed that a too small τ leads to the model being disturbed by low-SNR samples, causing frequent false alarms. Conversely, a too large τ (e.g., 20) filters out high-value targets, causing the Miss Rate (MR) to spike to 62.3%. This validates the necessity of moderate semantic filtering for balancing detection accuracy and reliability.

Table V. Results of ablation experiment on TDSF pixel filtering threshold parameter
Pixel Threshold (τ) mAP@0.5 Miss Rate (MR) False Alarm Rate (FAR)
0 (No filter) 0.541 57.5% 36.7%
10 0.532 54.8% 22.4%
15 0.536 51.9% 12.5%
20 0.492 62.3% 10.8%

Edge Platform Deployment and Efficacy Verification

The optimized YOLOv5m model was deployed on an NVIDIA Jetson Orin NX edge module for real-world testing (environment: JetPack 6.2.1, TensorRT 10.3). Comparing the native (FP32) and quantized (FP16) accelerated models (see Table VI), the FP16 mode saw the frame rate increase to 32.3 FPS, fully meeting the requirements for real-time video stream processing.

Table VI. Comprehensive statistical table of edge platform inference efficacy and accuracy review
Deployment Environment & Precision End-to-End Latency (ms) Frame Rate (FPS) VRAM Usage (MB) Peak Power (W) mAP@0.5 Miss Rate (MR) False Alarm Rate (FAR)
Native Model (FP32) 39.5 ± 0.8 25.3 ± 0.5 359 ± 4 13.49 ± 0.22 0.536 51.9% 12.5%
Accelerated Model (FP16) 31.0 ± 0.4 32.3 ± 0.4 201 ± 2 8.25 ± 0.15 0.530 53.0% 11.3%

Key energy efficiency indicators from Table VI show that FP16 quantization reduced the system’s peak power consumption from 13.49W to 8.25W (a decrease of 38.8%) and compressed VRAM usage by 44%. The accuracy review indicates that while quantization introduced a slight precision loss, the false alarm rate was further optimized to 11.3% due to the numerical smoothing effect. The significant reduction in power consumption is mainly attributed to FP16 reducing memory access frequency (MAF) and improving operator hardware execution efficiency, confirming that the TDSF strategy has an excellent energy efficiency adaptation ratio on edge hardware for China UAV deployments.

Discussion and Recommendations

Data Distillation and SNR Gain Mechanism

To quantify the SNR gain of the TDSF strategy from the feature space, we used t-SNE for dimensionality reduction visualization of deep semantic features. In the baseline model, target features and background noise features are highly interleaved with blurred boundaries, which mechanistically explains its susceptibility to false alarms. After applying TDSF, target features formed highly cohesive independent clusters, achieving a clear separation from background noise.

Quantitative metrics further confirmed the healthy evolution of the feature manifold towards “high cohesion, low coupling”. TDSF reduced the average intra-class Euclidean distance of target features from 11.93 to 10.74 (enhanced internal consistency) while increasing the cosine distance between the target and background class centers from 0.2524 to 0.2840 (greater inter-class separability). This fundamentally proves that the source data distillation of TDSF effectively blocks background interference, achieving a substantive improvement in the feature representation SNR.

Model Capacity and Task Adaptability Analysis

In complex edge reconnaissance, the relationship between model efficacy and parameter count follows an “inverted U-shaped” adaptation law. We define task complexity C, which is jointly determined by the total number of categories N, information entropy H, and visual detection difficulty D. The baseline full-volume data presents extremely high complexity (High C). However, after TDSF source noise reduction, redundancies are suppressed, achieving a substantive dimensionality reduction of the task (Low C).

Based on the bias-variance trade-off theory, detection efficacy reaches its optimum only when the model parameter count P matches the task complexity C. In the logarithmic space, this efficacy adaptation boundary can be fitted by a quadratic polynomial:

$$mAP = a(\ln P)^2 + b(\ln P) + c$$

where a, b, and c are fitting coefficients. According to the extreme value theorem, the theoretical optimal parameter count Popt = e-b/2a. Fitting the data from both training rounds reveals that after TDSF dimensionality reduction, the adaptation curve shows a very significant “shift to the upper left”. Not only is the overall accuracy upper limit greatly exceeded, but by eliminating the need for the model to memorize redundant backgrounds, Popt shifted from 21.7M in the baseline to 13.1M.

On either side of the theoretical optimum point (13.1M) after TDSF optimization, the lightweight models (YOLOv5n/s) suffer from high-bias underfitting due to absolute capacity insufficiency, while the large model (YOLOv5l, 46.5M) falls into high-variance overfitting due to severe parameter surplus. Among the standard model spectrum, the medium-sized model YOLOv5m (21.2M) is closest to 13.1M on the logarithmic scale (i.e., |ln(21.2/13.1)| < |ln(13.1/7.2)|), perfectly capturing the performance dividends of the task dimensionality reduction and achieving a Pareto optimum for accuracy and robustness for the China UAV scenario.

Edge-Side Hierarchical Deployment and Scheduling Mechanism

To ensure the engineering operability of the hierarchical deployment architecture in real tactical environments, the underlying communication and interaction mechanisms can be established as follows: (1) Dedicated network communication link: The early warning layer (end side) and decision-making layer (edge side) interact via a 4G/5G private network tactical data link to maximize the transmission timeliness of bursty high-priority data. (2) Asymmetric lightweight interaction: Full video stream backhaul is abandoned. High-value Regions of Interest (ROI) slices captured by the early warning layer are compressed and transmitted using high-ratio JPEG compression; metadata such as target coordinates and confidence scores are packaged as extremely lightweight JSON messages and pushed synchronously. (3) Millisecond-level real-time closed loop: Thanks to this dual compression of images and text, the communication load is significantly reduced, strictly constraining the end-to-end ground-to-air transmission delay to within 100 ms. This effectively avoids channel congestion in complex electromagnetic environments, establishing a real-time closed loop from perception to decision-making.

Research Limitations and Future Directions

Although the TDSF strategy has achieved significant efficacy balance on the China UAV edge side, limitations remain due to extreme physical environments and hardware ecosystems. These are also the key directions for our future breakthroughs:

(1) Long-tail target feature compensation: For high-value targets with extremely low SNR, such as Multiple Launch Rocket Systems, which are easily mistakenly filtered out, future work will combine few-shot learning and feature transfer mechanisms to compensate for information scarcity in extremely long-tail categories at the feature level.

(2) All-weather multimodal perception: Addressing the limitations of a single visible light band in complex weather conditions (rain, snow, fog), future research will focus on feature-level fusion of multi-source heterogeneous data, including visible light, infrared, and millimeter-wave radar, to enhance model robustness in all-weather, high-adversarial environments.

(3) Cross-heterogeneous hardware generalization deployment: The current efficacy evaluation is primarily based on the Jetson and TensorRT closed ecosystem. Future work will concentrate on network lightweight pruning and underlying operator adaptation technologies to facilitate the migration of the system towards lower-power and more diverse edge architectures, such as NPUs (Neural Processing Units) and MCUs (Microcontrollers).

Conclusion

To address the conflict between the limited computing power of China UAVs and the long-tail distribution of military targets, this paper proposes a Task-Driven Semantic Filtering (TDSF) strategy. Experiments show that by actively filtering out low-SNR samples to achieve data source distillation, this strategy effectively overcomes the dilemma of large models (YOLOv5l) being prone to overfitting to complex backgrounds. The medium-capacity model (YOLOv5m) demonstrates optimal task adaptability, achieving the best balance between the miss rate and false alarm rate. Furthermore, after quantization acceleration, it achieves real-time inference at 32.3 FPS and low-power operation at 8.25 W on the Jetson Orin NX edge hardware. The study confirms that the precise matching of model capacity with tactical requirements is the key to achieving efficient edge detection. The proposed hierarchical deployment framework provides a highly valuable engineering paradigm for resolving the conflict between algorithm performance and hardware constraints.

Scroll to Top