Weed Identification in Maize Fields Based on Improved Swin-Unet

Autor: Jiaheng Zhang, Jinliang Gong, Yanfei Zhang, Kazi Mostafa, Guangyao Yuan
Jazyk: angličtina
Rok vydání: 2023
Předmět:
Zdroj: Agronomy, Vol 13, Iss 7, p 1846 (2023)
Druh dokumentu: article
ISSN: 2073-4395
DOI: 10.3390/agronomy13071846
Popis: The maize field environment is complex. Weeds and maize have similar colors and may overlap, and lighting and weather conditions vary. Thus, many methods for the automated differentiation of maize and weeds achieve poor segmentation or cannot be used in real time. In this paper, a weed recognition model based on improved Swin-Unet is proposed. The model first performs semantic segmentation of maize seedlings and uses the resulting mask to identify weeds. U-Net acts as the semantic segmentation framework, and a Swin transformer module is introduced to improve performance. DropBlock regularization, which randomly hides some blocks in crop feature maps, is applied to enhance the generalization ability of the model. Finally, weed areas are identified and segmented with the aid of an improved morphological processing algorithm. The DeepLabv3+, PSANet, Mask R-CNN, original Swin-Unet, and proposed models are trained on a dataset of maize seedling images. The proposed Swin-Unet model outperforms the others, achieving a mean intersection over union of 92.75%, mean pixel accuracy of 95.57%, and inference speed of 15.1 FPS. Our model could be used for accurate, real-time segmentation of crops and weeds and as a reference for the development of intelligent agricultural equipment.
Databáze: Directory of Open Access Journals
Nepřihlášeným uživatelům se plný text nezobrazuje