Related Experiment Video
Updated: Oct 3, 2026

Visualizing Efficacy of Pesticides Against Disease Vector Mosquitoes in the Field
Published on: March 16, 2019
SpatioFormer: spatial perception enhancement for lightweight agricultural pest and disease detection
Wenbo Ma1, Hao Sun1, Kun Zhou1
1Shandong Facility Horticulture Bioengineering Research Center, Weifang University of Science and Technology, Weifang, Shandong, China.
Introduction:
In precision agriculture, accurate and efficient detection of crop pests and diseases is crucial. However, existing models in complex environments are prone to insufficient spatial perception and attenuation of disease texture features, making it difficult to balance recognition accuracy and lightweighting.
Methods:
To address this, this study proposes a lightweight spatial perception enhancement hybrid architecture, SpatioFormer. First, a Pixel-level Detail Retrieval (PDR) mechanism is designed. This mechanism leverages cross-layer dynamic routing to facilitate the fusion of deep semantic features with shallow texture features, significantly enhancing the capability to capture disease features. Second, we design a Spatially Adaptive Modulation Attention (SA-SHMA) mechanism, which utilizes large-kernel depthwise convolution to capture contextual information and combines dynamic modulation maps for fine-grained focusing, efficiently recovering spatial details, and suppressing background noise. Furthermore, this paper introduces a Context-Guided Asymmetric Gated Linear Unit (CGA-GLU), which utilizes an asymmetric design focusing on the gating branch and incorporates contextual information for guidance, enhancing the inter-channel representation capability with minimal computational overhead.
Results:
Finally, extensive experiments on the PDDD and Tomato-Village datasets validated the effectiveness of the proposed model. The proposed model achieves a Top-1 accuracy of 81.05% on the PDDD dataset and an AP 50 of 61.53% on the Tomato-Village dataset, with testing latency on edge devices being highly competitive among existing models.
Discussion:
Compared to existing lightweight hybrid models, SpatioFormer effectively recovers shallow spatial details and precisely suppresses complex background noise under an extremely low parameter budget. Consequently, it achieves a superior balance between practical disease localization capability and inference latency on resource-constrained edge devices.