Fast Self-Attention Deep Detection Network Based on Weakly Differentiated Plant Nematodes

Jiayan Zhuang, Yangming Liu, Ningyuan Xu, Yi Zhu, Jiangjian Xiao, Jianfeng Gu, Tianyi MaoResearch 2021

Abstract

High-precision, high-speed detection and classification of weakly differentiated targets has always been a difficult problem in the field of image vision. In this paper, the detection of phytopathogenic Bursaphelenchus xylophilus with small size and very weak inter-species differences is taken as an example. We proposed a lightweight Self-Attention network to replace complex manual labeling. To optimize computing power, we used low-resolution images to quickly obtain key feature location coordinates, then obtained high-resolution feature area information based on those coordinates. We adopted an adaptive weight multi-feature joint detection method based on heatmap brightness to further improve accuracy. Using a dataset of over 10,000 images across 24 species, the proposed algorithm improved average training time by more than 50%, reduced model storage size by 65%, and improved detection accuracy by up to 48% for models trained from scratch.

Introduction: The Challenge of Weakly Differentiated Targets

The identification of microscopic plant nematodes, particularly the pathogenic Bursaphelenchus xylophilus (pine wood nematode), is a critical task in agricultural biosecurity. These pests cause over $80 billion in annual global economic losses. The primary difficulty lies in their "weakly differentiated" nature; pathogenic species look nearly identical to harmless ones, requiring experts to identify minute morphological features like tail shape or the position of the anus.

Morphological differences between B. xylophilus and B. mucronatus, highlighting the tail shape and anus position used for identification.

Traditional deep learning models like Faster R-CNN or YOLO struggle in this domain due to the extreme labor required for manual feature labeling and the high computational cost of processing high-resolution microscopic imagery.

Methodology

The researchers developed a lightweight architecture designed for both speed and precision, utilizing three core innovations:

1. Self-Attention Feature Network

Instead of relying on manual bounding boxes, the model employs a self-attention mechanism to automatically generate heatmaps of discriminative regions. These machine-generated heatmaps align closely with the features traditionally used by human experts, such as the head and tail regions, but identify them with higher accuracy.

2. Small-Scale Fast Focus (Scout and Zoom)

Processing full-resolution microscopic images (1388x1040) is computationally expensive. The system first analyzes a down-sampled, low-resolution version of the image to identify coordinates of interest. It then "zooms in" to extract high-resolution 100x100 pixel patches from these specific coordinates for final classification, significantly reducing redundant data processing.

Close-up of the 'Anus Difference' feature, a key morphological marker identified by the network's high-resolution focus.

3. Adaptive Multi-Feature Weighting

The system assigns weights to different identified features based on the brightness (confidence) of the attention heatmap. If a "tail" feature is more distinct than a "head" feature in a specific sample, it is given higher priority in the final classification decision.

Dataset and Experimental Setup

The study utilized a comprehensive dataset of 11,237 high-resolution microscopic images covering 24 nematode species. Images were captured at 40X magnification using a Zeiss Axio Imager Z1. The dataset was split into 9,126 training images and 2,111 testing images, providing a robust baseline for evaluating weakly differentiated target detection.

Key Results

The proposed model demonstrated superior performance across several metrics compared to an "Expert Network" baseline:

  • Accuracy: Achieved 99.5%, significantly outperforming the 93% reached by the expert-labeled baseline.
  • Efficiency: Training time was reduced by over 50% (from 7.5 to 3 hours), and the model size was optimized by 65% (reducing parameters from 44M to 11M).
  • Robustness: In scenarios without ImageNet pre-training, the model improved accuracy by over 48% compared to standard architectures.

Conclusion

This research provides a robust framework for detecting weakly differentiated biological targets. By combining self-attention with a "scout and zoom" approach, the authors achieved high-precision results while drastically reducing the computational and manual labor costs associated with traditional deep learning methods. Future work may involve testing the model's generalization on unknown species and optimizing it for deployment on mobile edge devices for field inspections.

Summary updated

BibTeX
@inproceedings{zhuang2021fast,
  author = {Jiayan Zhuang and Yangming Liu and Ningyuan Xu and Yi Zhu and Jiangjian Xiao and Jianfeng Gu and Tianyi Mao},
  title = {{Fast Self-Attention Deep Detection Network Based on Weakly Differentiated Plant Nematodes}},
  booktitle = {Research},
  year = {2021},
  doi = {10.21203/rs.3.rs-671493/v1},
}
Figure