Detection method of defective coffee beans based on YOLOv5
CSTR:
Author:
Affiliation:

(1. Faculty of Mechanical and Electrical Engineering, Yunnan Agriculture University, Kunming, Yunnan 650201, China; 2. The Key Laboratory for Crop Production and Smart Agriculture of Yunnan Province, Kunming, Yunnan 650201, China)

Clc Number:

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    Objective: To realize the defect detection of coffee beans. Methods: An improved YOLOv5s network was proposed to embed different attention mechanism modules and activation functions with YOLOv5s as the baseline network. Results: The mean accuracy of the CBAM module and the activation function Hardswish improved by 5.3% and 2.9%, respectively, compared with the baseline network. After 200 iterations of training, the model accuracy was 99.5%, the average accuracy was 97.6%, the recall was 0.98, the recognition rate was 64 amplitude/s, and the model size was 15 M. Conclusion: Compared with Faster RCNN, SSD, YOLOv3, YOLOv4 and YOLOv5s, the test algorithm has higher recognition accuracy, more lightweight model and better recognition effect for coffee defective beans.

    Reference
    Related
    Cited by
Get Citation

张成尧,张艳诚,张宇乾,等.基于YOLOv5的咖啡瑕疵豆检测方法[J].食品与机械英文版,2023,39(2):50-56,175.

Copy
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:July 03,2022
  • Revised:
  • Adopted:
  • Online: April 25,2023
  • Published:
Article QR Code