The Gray Mold Spore Detection of Cucumber Based on Microscopic Image and Deep Learning

Plant Phenomics. 2023:5:0011. doi: 10.34133/plantphenomics.0011. Epub 2023 Jan 10.

Abstract

Rapid and accurate detection of pathogen spores is an important step to achieve early diagnosis of diseases in precision agriculture. Traditional detection methods are time-consuming, laborious, and subjective, and image processing methods mainly rely on manually designed features that are difficult to cope with pathogen spore detection in complex scenes. Therefore, an MG-YOLO detection algorithm (Multi-head self-attention and Ghost-optimized YOLO) is proposed to detect gray mold spores rapidly. Firstly, Multi-head self-attention is introduced in the backbone to capture the global information of the pathogen spores. Secondly, we combine weighted Bidirectional Feature Pyramid Network (BiFPN) to fuse multiscale features of different layers. Then, a lightweight network is used to construct GhostCSP to optimize the neck part. Cucumber gray mold spores are used as the study object. The experimental results show that the improved MG-YOLO model achieves an accuracy of 0.983 for detecting gray mold spores and takes 0.009 s per image, which is significantly better than the state-of-the-art model. The visualization of the detection results shows that MG-YOLO effectively solves the detection of spores in blurred, small targets, multimorphology, and high-density scenes. Meanwhile, compared with the YOLOv5 model, the detection accuracy of the improved model is improved by 6.8%. It can meet the demand for high-precision detection of spores and provides a novel method to enhance the objectivity of pathogen spore detection.