计算机与现代化 ›› 2025, Vol. 0 ›› Issue (01): 100-106.doi: 10.3969/j.issn.1006-2475.2025.01.016

• 算法设计与分析 • 上一篇    下一篇

基于改进YOLOv8s的金属齿轮表面瑕疵检测算法 



  

  1. (武汉科技大学冶金装备及其控制教育部重点实验室,湖北 武汉 430081)
  • 出版日期:2025-01-27 发布日期:2025-01-27
  • 基金资助:
    国家自然科学基金面上项目(52375061)

Metal Gear Surface Defect Detection Algorithm Based on Improved YOLOv8s

  1. (Key Laboratory of Metallurgical Equipment and Control, Ministry of Education, Wuhan University of Science and Technology, Wuhan 430081, China)
  • Online:2025-01-27 Published:2025-01-27

摘要: 针对现有金属齿轮表面瑕疵实时检测存在识别精度低、检测速度慢、难以部署等问题,为提高检测的工作效率及准确率,保障产品质量,提出一种金属齿轮瑕疵检测算法YOLO-GEAR。首先,在特征提取层中设计轻量化的模块C2f-Faster,大幅减少模型的参数量和计算量,提高模型检测速度;其次,添加EMA注意力模块,提高特征提取的效率和准确性;最后,引入双向特征融合结构BiFPN,增强特征融合能力。实验结果表明,本文算法在测试集上平均精确率与改进前相比提升了3.2%,检测速度达到153.8 FPS,网络模型所占内存仅为6.2 MB,验证了该算法具有识别精度高、检测速度快、模型内存占比小等优势,有助于实现工业部署。

关键词: 金属齿轮瑕疵检测, 轻量化, EMA注意力, BiFPN

Abstract:  Aiming at the existing problems such as low identification accuracy, slow detection speed and difficult deployment in real-time detection of metal gear surface defects, a metal gear defect detection algorithm YOLO-GEAR is proposed to improve the efficiency and accuracy of detection and ensure product quality. Firstly, the lightweight module C2f-Faster is designed in the feature extraction layer, which greatly reduces the number of parameters and calculation amount of the model, so as to improve the model detection speed. Secondly, EMA attention module is added to improve the efficiency and accuracy of feature extraction. Finally, the bidirectional feature fusion structure BiFPN is introduced to enhance the feature fusion capability. The experimental results show that the average accuracy of the proposed algorithm on the test set is increased by 3.2% compared with the improvement before, the detection speed reaches 153.8 FPS, and the memory of the network model is only 6.2 MB. It is verified that the algorithm has the advantages of high recognition accuracy, fast detection speed, and small model memory ratio, which is helpful for the realization of industrial deployment.

Key words:  , metal gear defect detection, lightweight, EMA attention, BiFPN

中图分类号: