Scientific Reports (Jun 2024)

YOLOv8-CML: a lightweight target detection method for color-changing melon ripening in intelligent agriculture

  • Guojun Chen,
  • Yongjie Hou,
  • Tao Cui,
  • Huihui Li,
  • Fengyang Shangguan,
  • Lei Cao

DOI
https://doi.org/10.1038/s41598-024-65293-w
Journal volume & issue
Vol. 14, no. 1
pp. 1 – 16

Abstract

Read online

Abstract Color-changing melon is an ornamental and edible fruit. Aiming at the problems of slow detection speed and high deployment cost for Color-changing melon in intelligent agriculture equipment, this study proposes a lightweight detection model YOLOv8-CML.Firstly, a lightweight Faster-Block is introduced to reduce the number of memory accesses while reducing redundant computation, and a lighter C2f structure is obtained. Then, the lightweight C2f module fusing EMA module is constructed in Backbone to collect multi-scale spatial information more efficiently and reduce the interference of complex background on the recognition effect. Next, the idea of shared parameters is utilized to redesign the detection head to simplify the model further. Finally, the α-IoU loss function is adopted better to measure the overlap between the predicted and real frames using the α hyperparameter, improving the recognition accuracy. The experimental results show that compared to the YOLOv8n model, the parametric and computational ratios of the improved YOLOv8-CML model decreased by 42.9% and 51.8%, respectively. In addition, the model size is only 3.7 MB, and the inference speed is improved by 6.9%, while [email protected], accuracy, and FPS are also improved. Our proposed model provides a vital reference for deploying Color-changing melon picking robots.

Keywords