SWNet: A Cross-Spectral Network for Camouflaged Weed Detection

arXiv cs.CV / 4/20/2026

📰 NewsDeveloper Stack & InfrastructureModels & Research

Key Points

  • SWNet is introduced as a bimodal, end-to-end cross-spectral neural network designed specifically to detect camouflaged weeds in dense agricultural settings.
  • The method uses a Pyramid Vision Transformer v2 backbone to model long-range dependencies and a Bimodal Gated Fusion Module to dynamically combine Visible and Near-Infrared (NIR) signals.
  • It leverages physiological differences revealed in chlorophyll reflectance in the NIR spectrum to distinguish weed targets that appear similar to crops in visible images.
  • An Edge-Aware Refinement module is added to sharpen object boundaries and reduce structural ambiguity for more accurate segmentation.
  • Experiments on the Weeds-Banana dataset show SWNet outperforms ten state-of-the-art approaches, and the authors provide code on GitHub.

Abstract

This paper presents SWNet, a bimodal end-to-end cross-spectral network specifically engineered for the detection of camouflaged weeds in dense agricultural environments. Plant camouflage, characterized by homochromatic blending where invasive species mimic the phenotypic traits of primary crops, poses a significant challenge for traditional computer vision systems. To overcome these limitations, SWNet utilizes a Pyramid Vision Transformer v2 backbone to capture long-range dependencies and a Bimodal Gated Fusion Module to dynamically integrate Visible and Near-Infrared information. By leveraging the physiological differences in chlorophyll reflectance captured in the NIR spectrum, the proposed architecture effectively discriminates targets that are otherwise indistinguishable in the visible range. Furthermore, an Edge-Aware Refinement module is employed to produce sharper object boundaries and reduce structural ambiguity. Experimental results on the Weeds-Banana dataset indicate that SWNet outperforms ten state-of-the-art methods. The study demonstrates that the integration of cross-spectral data and boundary-guided refinement is essential for high segmentation accuracy in complex crop canopies. The code is available on GitHub: https://cod-espol.github.io/SWNet/