Vision-Language Semantic Grounding for Multi-Domain Crop-Weed Segmentation
Organizations: Department of Bioresource Engineering, McGill University, Sainte-Anne-de-Bellevue, QC, Canada · Department of Plant Science, McGill University, Sainte-Anne-de-Bellevue, QC, Canada
Abstract
Fine-grained crop-weed segmentation is essential for enabling targeted herbicide application in precision agriculture. However, existing deep learning models struggle to generalize across heterogeneous agricultural environments due to reliance on dataset-specific visual features. We propose Vision-Language Weed Segmentation (VL-WS), a novel framework that addresses this limitation by grounding pixel-level segmentation in semantically aligned, domain-invariant representations. Our architecture employs a dual-encoder design, where frozen Contrastive Language-Image Pretraining (CLIP) embeddings and task-specific spatial features are fused and modulated via Feature-wise Linear Modulation (FiLM) layers conditioned on natural language captions. This design enables image level textual descriptions to guide channel-wise feature refinement while preserving fine-grained spatial localization. Unlike prior works restricted to training and evaluation on single-source datasets, VL-WS is trained on a unified corpus that includes close-range ground imagery (robotic platforms) and high-altitude UAV imagery, covering diverse crop types, weed species, growth stages, and sensing conditions. Experimental results across four benchmark datasets demonstrate the effectiveness of our framework, with VL-WS achieving a mean Dice score of 91.64% and outperforming the CNN baseline by 4.98%. The largest gains occur on the most challenging weed class, where VL-WS attains 80.45% Dice score compared to 65.03% for the best baseline, representing a 15.42% improvement. VL-WS further maintains stable weed segmentation performance under limited target-domain supervision, indicating improved generalization and data efficiency. These findings highlight the potential of vision-language alignment to enable scalable, label-efficient segmentation models deployable across diverse real-world agricultural domains.
Figures & tables
| Method | Weed | Crop | Bg | Avg |
| UNet | 61.45 | 95.73 | 99.56 | 85.58 |
| PSPNet | 63.47 | 93.04 | 99.08 | 85.19 |
| DeepLabv3+ | 65.03 | 95.48 | 99.47 | 86.66 |
| VL-WS | 80.45 | 95.23 | 99.24 | 91.64 |
| Method | UAV Soybean | PhenoBench | GrowingSoy | ROSE | ||||||||
| Weed | Crop | Bg | Weed | Crop | Bg | Weed | Crop | Bg | Weed | Crop | Bg | |
| UNet | 79.02 | 98.12 | 96.73 | 58.27 | 96.57 | 99.70 | 75.84 | 92.62 | 98.80 | 43.97 | 88.25 | 97.11 |
| PSPNet | 69.34 | 97.28 | 93.98 | 59.07 | 93.29 | 99.22 | 76.42 | 91.22 | 98.35 | 62.53 | 90.69 | 96.75 |
| Deeplabv3+ | 74.48 | 98.12 | 95.53 | 60.33 | 96.10 | 99.62 | 75.30 | 92.51 | 98.65 | 65.19 | 90.92 | 96.85 |
| VL-WS | 80.40 | 98.21 | 96.47 | 77.57 | 95.84 | 99.49 | 86.09 | 92.98 | 98.66 | 75.66 | 92.49 | 97.30 |
| Target Dataset | Source Datasets | Class | Target-Domain Training Data | |||
| 10% | 20% | 50% | 100% | |||
| UAV Soybean | PhenoBench + GrowingSoy + ROSE | Weed | 68.63 | 74.63 | 79.95 | 80.40 |
| Crop | 96.92 | 97.31 | 98.06 | 98.21 | ||
| Background | 94.80 | 95.95 | 96.37 | 96.47 | ||
| Mean | 86.78 | 89.29 | 91.46 | 91.69 | ||
| PhenoBench | UAV Soybean + GrowingSoy + ROSE | Weed | 69.94 | 73.66 | 75.71 | 77.57 |
| Weed | Crop | Bg | Average | |
| 0.01 | 79.93 | 95.11 | 99.22 | 91.42 |
| 0.02 | 80.45 | 95.23 | 99.24 | 91.64 |
| 0.03 | 80.00 | 95.23 | 99.25 | 91.49 |
| 0.05 | 80.41 | 95.33 | 99.25 | 91.66 |
| 0.10 | 80.16 | 95.26 | 99.25 | 91.55 |