On the Transferability of Agricultural Weed Detection Under Cross-Field Distribution Shift
Organizations: The University of Texas at Dallas · The University of Texas at Tyler · Air Force Research Lab
Abstract
Accurate agricultural weed detection in real-world field conditions is essential for precision agriculture, enabling targeted intervention and reducing yield loss. Recent work has reported strong detection performance from UAV-based imagery across a range of crops, yet existing approaches evaluate within a single crop and field, leaving practitioners with little evidence that a model trained on one crop will generalize to a new field or crop type. In this work, we characterize where cross-dataset weed-localization performance degrades and which modeling choices recover it, reducing the need to relabel every new deployment field. We introduce a newly collected and annotated UAV image dataset for agricultural weed detection in cotton fields and use it alongside an existing soybean dataset collected under a similar protocol. Using these datasets, we evaluate the performance of several strategies for transferring a detector trained on one crop to another, comparing unsupervised domain adaptive object detection (DAOD) against pretraining on a domain-adjacent source dataset followed by few-shot fine-tuning on the target dataset. Our analysis spans target-domain label budgets from zero to the full target dataset, characterizing the trade-off between adaptation strategy and annotation effort. We find that few-shot fine-tuning with as few as 25 labeled target examples outperforms unsupervised DAOD in our cross-crop comparison, suggesting that source domain selection combined with modest target supervision is more productive than algorithmic sophistication in adaptation.
Figures & tables
| Source Target | In-Domain | Source-only | Distill ( ) | Align ( ) |
|---|---|---|---|---|
| Target: soybean | ||||
| cotton soybean | 76.8 | 57.8 | (5) | (5) |
| cofly soybean | 76.8 | 4.1 | (3) | div. † |
| cwdet12 soybean | 76.8 | 6.0 | (3) | 6.5 (1) |
| Target: cotton | ||||
| soybean cotton | 37.4 | 7.5 | (4) | (5) |
| Transfer | Source | DAOD | Full FT | In-Domain | |||
|---|---|---|---|---|---|---|---|
| C S | 57.8 | 50.3 | (3) | 76.8 | |||
| S C | 7.5 | 8.3 | (3) | 37.4 | |||
| CW S | 6.0 | 9.6 | (5) | 76.8 | |||
| CW C | 1.5 | 3.9 | (5) | 37.4 | |||
| CF S | 4.1 | 16.7 | (3) | 76.8 | |||
| CF C | 1.3 | 1.6 | (3) | 37.4 |
Weed Detection
Weed detection uses computer vision to locate and identify weeds in crops for targeted monitoring and control.
See all 13 papers