WS-DINO: A DINOv2-Based Weed Segmentation Method with Feature Priors and Spatial Fusion
Open Access
- 18 May 2026
- journal article
- research article
- Published by MDPI AG in Agriculture
- Vol. 16 (10) , 1105
Abstract
Weed segmentation is a fundamental task in precision agriculture, essential for targeted intervention and sustainable farming. However, achieving accurate segmentation remains challenging due to the high visual similarity between weeds and crops, as well as the ambiguous, fine-grained boundaries often present in complex field environments. To address this, we present WS-DINO, a novel weed segmentation network built upon the DINOv2 vision foundation model. Our framework introduces two key innovations: (1) a Feature Prior Module that leverages a Canny-guided refinement process to extract and inject fine-grained cues related to weed texture, morphology, and boundaries into specific blocks of the Vision Transformer; and (2) a Spatial Feature Fusion Module that leverages convolutional layers to generate multi-scale spatial features, which are then fused with the semantically rich token features from DINOv2, effectively compensating for the Transformer’s limitations in capturing local spatial details. Comprehensive evaluation on the public PhenoBench dataset shows that WS-DINO achieves an mIoU of 88.67% and outperforms the evaluated benchmark methods. Moreover, on the challenging MotionBlurred dataset, WS-DINO reaches 88.75% mIoU, showing stable performance under motion blur and degraded visual conditions.Keywords
Funding Information
- Key Research and Development and Achievement Transformation Project of Inner Mongolia Autonomous Region (2025YFHH0278)
- Sub-Project of the National Key Research and Development Program of China (2023YFD1600702-04)
- Natural Science Foundation Project of Inner Mongolia Autonomous Region (2025MS06054)
- Natural Science Foundation Project of Inner Mongolia Autonomous Region (2025MS06046)
- Natural Science Foundation Project of Inner Mongolia Autonomous Region (2025MS06020)
- Scientific Research Start-up Project for Excellent Doctoral Talents Introduction (NDYB2023-32)
- Innovation Start-up Support Program for Returned Overseas Students in Inner Mongolia Autonomous Region (202223)
This publication has 35 references indexed in Scilit:
- Foundation vision models in agriculture: DINOv2, LoRA and knowledge distillation for disease and weed identificationComputers and Electronics in Agriculture, 2025
- Weed detection based on deep learning from UAV imagery: A reviewSmart Agricultural Technology, 2025
- Weed instance segmentation from UAV Orthomosaic Images based on Deep LearningSmart Agricultural Technology, 2025
- A Comprehensive review on technological breakthroughs in precision agriculture: IoT and emerging data analyticsEuropean Journal of Agronomy, 2024
- A hybrid CNN-transformer network: Accurate and efficient semantic segmentation of crops and weeds on resource-constrained embedded devicesCrop Protection, 2024
- Weed detection in precision agriculture: leveraging encoder-decoder models for semantic segmentationJournal of Ambient Intelligence and Humanized Computing, 2024
- SC-Net: A new strip convolutional network model for rice seedling and weed segmentation in paddy fieldComputers and Electronics in Agriculture, 2024
- Multi-level feature re-weighted fusion for the semantic segmentation of crops and weedsJournal of King Saud University Computer and Information Sciences, 2023
- BG-Net: boundary-guidance network for object consistency maintaining in semantic segmentationThe Visual Computer, 2023
- Deep learning-based early weed segmentation using motion blurred UAV images of sorghum fieldsComputers and Electronics in Agriculture, 2022