Agriculture (Aug 2024)

DGS-YOLOv8: A Method for Ginseng Appearance Quality Detection

  • Lijuan Zhang,
  • Haohai You,
  • Zhanchen Wei,
  • Zhiyi Li,
  • Haojie Jia,
  • Shengpeng Yu,
  • Chunxi Zhao,
  • Yan Lv,
  • Dongming Li

DOI
https://doi.org/10.3390/agriculture14081353
Journal volume & issue
Vol. 14, no. 8
p. 1353

Abstract

Read online

In recent years, the research and application of ginseng, a famous and valuable medicinal herb, has received extensive attention at home and abroad. However, with the gradual increase in the demand for ginseng, discrepancies are inevitable when using the traditional manual method for grading the appearance and quality of ginseng. Addressing these challenges was the primary focus of this study. This study obtained a batch of ginseng samples and enhanced the dataset by data augmentation, based on which we refined the YOLOv8 network in three key dimensions: firstly, we used the C2f-DCNv2 module and the SimAM attention mechanism to augment the model’s effectiveness in recognizing ginseng appearance features, followed by the use of the Slim-Neck combination (GSConv + VoVGSCSP) to lighten the model These improvements constitute our proposed DGS-YOLOv8 model, which achieved an impressive mAP50 of 95.3% for ginseng appearance quality detection. The improved model not only has a reduced number of parameters and smaller size but also improves 6.86%, 2.73%, and 3.82% in precision, mAP50, and mAP50-95 over the YOLOv8n model, which comprehensively outperforms the other related models. With its potential demonstrated in this experiment, this technology can be deployed in large-scale production lines to benefit the food and traditional Chinese medicine industries. In summary, the DGS-YOLOv8 model has the advantages of high detection accuracy, small model space occupation, easy deployment, and robustness.

Keywords