Agriculture (Jul 2024)

Recognition Method of Cabbage Heads at Harvest Stage under Complex Background Based on Improved YOLOv8n

  • Yongqiang Tian,
  • Chunjiang Zhao,
  • Taihong Zhang,
  • Huarui Wu,
  • Yunjie Zhao

DOI
https://doi.org/10.3390/agriculture14071125
Journal volume & issue
Vol. 14, no. 7
p. 1125

Abstract

Read online

To address the problems of low recognition accuracy and slow processing speed when identifying harvest-stage cabbage heads in complex environments, this study proposes a lightweight harvesting period cabbage head recognition algorithm that improves upon YOLOv8n. We propose a YOLOv8n-Cabbage model, integrating an enhanced backbone network, the DyHead (Dynamic Head) module insertion, loss function optimization, and model light-weighting. To assess the proposed method, a comparison with extant mainstream object detection models is conducted. The experimental results indicate that the improved cabbage head recognition model proposed in this study can adapt cabbage head recognition under different lighting conditions and complex backgrounds. With a compact size of 4.8 MB, this model achieves 91% precision, 87.2% recall, and a mAP@50 of 94.5%—the model volume has been reduced while the evaluation metrics have all been improved over the baseline model. The results demonstrate that this model can be applied to the real-time recognition of harvest-stage cabbage heads under complex field environments.

Keywords