Acta Agriculturae Zhejiangensis ›› 2023, Vol. 35 ›› Issue (11): 2731-2741.DOI: 10.3969/j.issn.1004-1524.20221445

• Biosystems Engineering • Previous Articles     Next Articles

Semantic segmentation method of apple leaf disease based on improved U-Net network

WANG Yingyun1,2,3(), LONG Yan1,2,3,*(), YANG Zhiyou1,2, HUANG Lyuwen2,3,4   

  1. 1. College of Mechanical and Electronic Engineering, Northwest A & F University, Yangling 712100, Shaanxi, China
    2. Key Laboratory of Agricultural Internet of Things, Ministry of Agriculture and Rural Affairs, Yangling 712100, Shaanxi, China
    3. Shaanxi Key Laboratory of Agricultural Information Perception and Intelligent Service, Yangling 712100, Shaanxi, China
    4. College of Information Engineering, Northwest A&F University, Yangling 712100, Shaanxi, China
  • Received:2022-10-09 Online:2023-11-25 Published:2023-12-04

Abstract:

Aiming at the problem of poor segmentation and recognition of apple leaf spots under natural conditions, this paper proposed a semantic segmentation model for apple leaf diseases that incorporated conditional random fields and convolutional block attention modules to achieve accurate segmentation and recognition of spots of apple leaf rust, brown spot, gray spot and Alternaria leaf spot disease. In this paper, based on the U-Net model, ResNet50 was used as the backbone network to prevent the gradient vanishing problem, and the convolutional block attention module was added to the jump-connected branch and the up-sampling layer respectively, to reduce the loss of segmentation accuracy during the training process, and the fusion of dice loss and the cross-entropy loss function to reduce the loss fluctuation, and finally, the segmentation results were optimized using the conditional random field to obtain the diseased spot mask image, which was used to realize the accurate segmentation and recognition of apple leaf rust, brown spot, grey spot and Alternaria leaf spot disease so as to realize semantic segmentation of apple leaf diseases. In this study, we conducted experiments on the homemade apple leaf disease dataset, and analyzed the effects of light, shadow and water droplets on the segmentation results. The experimental results showed that the semantic segmentation model constructed in this paper improved the average segmentation accuracy mIoU by 8.24 percentage points, the average classification accuracy mPrecision by 11 percentage points, and the average pixel accuracy of category mPA by 6.09 percentage points compared with the traditional U-Net model, and was less affected by uneven illumination and raindrops, and had better robustness and reliability.

Key words: disease segmentation, attention mechanism, conditional random field, deep semantic segmentation

CLC Number: