Nasiri, AOmid, MTaheri-Garavand, AJafari, A2022-06-272022-05-272022-092022-05-212210-5379https://hdl.handle.net/10182/15104Weeds are among the major factors adversely affecting crop yield. Therefore, weed control with minimal environmental damage is a global concern. Traditional weed control methods are not cost-effective. Hence, precision agriculture proposes variable flow herbicide technology through regional weed management to distinguish weed and crop. In the present study, we employed the U-Net architecture, as a deep encoder-decoder convolutional neural network (CNN) for pixel-wise semantic segmentation of sugar beet, weed, and soil. We trained the U-Net architecture with ResNet50 as the encoder block using 1385 RGB images collected under different conditions and various heights. We utilized the combination of the dice and focal losses as a custom linear loss function to overcome imbalanced data and small area segmentation challenges. The structure of the dataset for the training process and using the custom loss function led to a model with the accuracy and intersection over union (IoU) score of 0.9606 and 0.8423, respectively. The results showed that using the image dataset with proper distribution and custom loss function can improve segmentation accuracy, especially in small regions. Furthermore, in an autonomous weed control robot, CNN-based automatic weed detection can be integrated into selective herbicide applications.11 pages© 2022 Elsevier Inc. All rights reserved.sugar beetweed detectionsemantic segmentationdeep learningDeep learning-based precision agriculture through weed recognition in sugar beet fieldsJournal Article10.1016/j.suscom.2022.1007592022-06-16