» Articles » PMID: 39872197

An Improved U-net and Attention Mechanism-based Model for Sugar Beet and Weed Segmentation

Overview
Journal Front Plant Sci
Date 2025 Jan 28
PMID 39872197
Authors
Affiliations
Soon will be listed here.
Abstract

Introduction: Weeds are a major factor affecting crop yield and quality. Accurate identification and localization of crops and weeds are essential for achieving automated weed management in precision agriculture, especially given the challenges in recognition accuracy and real-time processing in complex field environments. To address this issue, this paper proposes an efficient crop-weed segmentation model based on an improved UNet architecture and attention mechanisms to enhance both recognition accuracy and processing speed.

Methods: The model adopts the encoder-decoder structure of UNet, utilizing MaxViT (Multi-Axis Vision Transformer) as the encoder to capture both global and local features within images. Additionally, CBAM (Convolutional Block Attention Module) is incorporated into the decoder as a multi-scale feature fusion module, adaptively adjusting feature map weights to enable the model to focus more accurately on the edges and textures of crops and weeds.

Results And Discussion: Experimental results show that the proposed model achieved 84.28% mIoU and 88.59% mPA on the sugar beet dataset, representing improvements of 3.08% and 3.15% over the baseline UNet model, respectively, and outperforming mainstream models such as FCN, PSPNet, SegFormer, DeepLabv3+, and HRNet. Moreover, the model's inference time is only 0.0559 seconds, reducing computational overhead while maintaining high accuracy. Its performance on a sunflower dataset further verifies the model's generalizability and robustness. This study, therefore, provides an efficient and accurate solution for crop-weed segmentation, laying a foundation for future research on automated crop and weed identification.

References
1.
Zivkovic M, Tair M, K V, Bacanin N, Hubalovsky S, Trojovsky P . Novel hybrid firefly algorithm: an application to enhance XGBoost tuning for intrusion detection classification. PeerJ Comput Sci. 2022; 8:e956. PMC: 9137854. DOI: 10.7717/peerj-cs.956. View

2.
Deng J, Lv X, Yang L, Zhao B, Zhou C, Yang Z . Assessing Macro Disease Index of Wheat Stripe Rust Based on Segformer with Complex Background in the Field. Sensors (Basel). 2022; 22(15). PMC: 9371240. DOI: 10.3390/s22155676. View

3.
Shelhamer E, Long J, Darrell T . Fully Convolutional Networks for Semantic Segmentation. IEEE Trans Pattern Anal Mach Intell. 2016; 39(4):640-651. DOI: 10.1109/TPAMI.2016.2572683. View

4.
Dobrojevic M, Zivkovic M, Chhabra A, Sani N, Bacanin N, Mohd Amin M . Addressing Internet of Things security by enhanced sine cosine metaheuristics tuned hybrid machine learning model and results interpretation based on SHAP approach. PeerJ Comput Sci. 2023; 9:e1405. PMC: 10319270. DOI: 10.7717/peerj-cs.1405. View

5.
Han K, Wang Y, Chen H, Chen X, Guo J, Liu Z . A Survey on Vision Transformer. IEEE Trans Pattern Anal Mach Intell. 2022; 45(1):87-110. DOI: 10.1109/TPAMI.2022.3152247. View