Shi Zhaoyao, Fang Yiming, Song Huixu
Beijing Engineering Research Center of Precision Measurement Technology and Instruments, College of Mechanical & Energy Engineering, Beijing University of Technology, Beijing 100124, China.
Sensors (Basel). 2024 Jul 18;24(14):4660. doi: 10.3390/s24144660.
After injection molding, plastic gears often exhibit surface defects, including those on end faces and tooth surfaces. These defects encompass a wide range of types and possess complex characteristics, which pose challenges for inspection. Current visual inspection systems for plastic gears suffer from limitations such as single-category defect inspection and low accuracy. There is an urgent industry need for a comprehensive and accurate method and system for inspecting defects on plastic gears, with improved inspection capability and higher accuracy. This paper presents an intelligent inspection algorithm network for plastic gear defects (PGD-net), which effectively captures subtle defect features at arbitrary locations on the surface compared to other models. An adaptive sample weighting method is proposed and integrated into an improved Focal-IoU loss function to address the issue of low inspection accuracy caused by imbalanced defect dataset distributions, thus enhancing the regression accuracy for difficult defect categories. CoordConv layers are incorporated into each inspection head to improve the model's generalization capability. Furthermore, a dataset of plastic gear surface defects comprising 16 types of defects is constructed, and our algorithm is trained and tested on this dataset. The PGD-net achieves a comprehensive mean average precision (mAP) value of 95.6% for the 16 defect types. Additionally, an online inspection system is developed based on the PGD-net algorithm, which can be integrated with plastic gear production lines to achieve online full inspection and automatic sorting of plastic gear defects. The entire system has been successfully applied in plastic gear production lines, conducting daily inspections of over 60,000 gears.
注塑成型后,塑料齿轮常常会出现表面缺陷,包括端面上和齿面上的缺陷。这些缺陷类型繁多,特征复杂,给检测带来了挑战。目前用于塑料齿轮的视觉检测系统存在诸如单类别缺陷检测和精度低等局限性。行业迫切需要一种用于检测塑料齿轮缺陷的全面且准确的方法和系统,以提高检测能力和精度。本文提出了一种用于塑料齿轮缺陷的智能检测算法网络(PGD-net),与其他模型相比,它能有效捕捉表面任意位置的细微缺陷特征。提出了一种自适应样本加权方法,并将其集成到改进的Focal-IoU损失函数中,以解决缺陷数据集分布不均衡导致的检测精度低的问题,从而提高对困难缺陷类别的回归精度。在每个检测头中加入CoordConv层以提高模型的泛化能力。此外,构建了一个包含16种缺陷类型的塑料齿轮表面缺陷数据集,并在该数据集上对我们的算法进行训练和测试。PGD-net对这16种缺陷类型的综合平均精度(mAP)值达到了95.6%。此外,基于PGD-net算法开发了一个在线检测系统,该系统可与塑料齿轮生产线集成,以实现塑料齿轮缺陷的在线全检和自动分选。整个系统已成功应用于塑料齿轮生产线,每天检测超过60000个齿轮。