Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jan 7:15:1503033.
doi: 10.3389/fpls.2024.1503033. eCollection 2024.

YOLOv7-DWS: tea bud recognition and detection network in multi-density environment via improved YOLOv7

Affiliations

YOLOv7-DWS: tea bud recognition and detection network in multi-density environment via improved YOLOv7

Xiaoming Wang et al. Front Plant Sci. .

Abstract

Introduction: Accurate detection and recognition of tea bud images can drive advances in intelligent harvesting machinery for tea gardens and technology for tea bud pests and diseases. In order to realize the recognition and grading of tea buds in a complex multi-density tea garden environment.

Methods: This paper proposes an improved YOLOv7 object detection algorithm, called YOLOv7-DWS, which focuses on improving the accuracy of tea recognition. First, we make a series of improvements to the YOLOv7 algorithm, including decouple head to replace the head of YOLOv7, to enhance the feature extraction ability of the model and optimize the class decision logic. The problem of simultaneous detection and classification of one-bud-one-leaf and one-bud-two-leaves of tea was solved. Secondly, a new loss function WiseIoU is proposed for the loss function in YOLOv7, which improves the accuracy of the model. Finally, we evaluate different attention mechanisms to enhance the model's focus on key features.

Results and discussion: The experimental results show that the improved YOLOv7 algorithm has significantly improved over the original algorithm in all evaluation indexes, especially in the R Tea (+6.2%) and mAP@0.5 (+7.7%). From the results, the algorithm in this paper helps to provide a new perspective and possibility for the field of tea image recognition.

Keywords: YOLOv7; deep learning; images recognition; multi-density; object detection; tea buds.

PubMed Disclaimer

Conflict of interest statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 1
Figure 1
Diagram of different types of picking Yinghong No. 9 tea leaves. (A) one-bud-one-leaf; (B) one-bud-two-leaves.
Figure 2
Figure 2
Multi-density images of a partial tea dataset.
Figure 3
Figure 3
Network structure of YOLOv7-DWS model.
Figure 4
Figure 4
Decoupled head structure schematic.
Figure 5
Figure 5
A PyTorch way of implementing SimAM.
Figure 6
Figure 6
Visual validation of different attention mechanisms.
Figure 7
Figure 7
Visual validation of different attention mechanisms.
Figure 8
Figure 8
Visual verification of tea detection at different densities.

Similar articles

References

    1. Ali L., Alnajjar F., Parambil M. M. A., Younes M. I., Abdelhalim Z. I., Aljassmi H. (2022). Development of YOLOv5-based real-time smart monitoring system for increasing lab safety awareness in educational institutions. Sensors 22, 8820. doi: 10.3390/s22228820 - DOI - PMC - PubMed
    1. Bai X., Zhang L., Kang C., Quan B., Zheng Y., Zhang X., et al. . (2022). Near-infrared spectroscopy and machine learning-based technique to predict quality-related parameters in instant tea. Sci. Rep-UK 12, 3833. doi: 10.1038/s41598-022-07652-z - DOI - PMC - PubMed
    1. Bojie Z., Dong W., Weizhong S., Yu L., Ke W. (2019). Research on tea bud identification technology based on HSI/HSV color transformation[C]//2019 6th International Conference on Information Science and Control Engineering (ICISCE) (Shanghai, China: IEEE; ), 511–515.
    1. Fang C., Zhuang X., Zheng H., Yang J., Zhang T. (2024). The posture detection method of caged chickens based on computer vision. Animals 14, 3059. doi: 10.3390/ani14213059 - DOI - PMC - PubMed
    1. Guo P., Xue Z., Jeronimo J., Gage J. C., Desai K. T., Befano B., et al. . (2021). Network visualization and pyramidal feature comparison for ablative treatability classification using digitized cervix images. J. Clin. Med. 10, 953. doi: 10.3390/jcm10050953 - DOI - PMC - PubMed

LinkOut - more resources