基于改进 Mask R-CNN 的光学元件划痕缺陷检测研究
DOI:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TN98

基金项目:


Research on scratch defect detection of optical elements based on improved Mask R-CNN
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    光学元件缺陷会直接影响整个光学系统的性能,在光学元件缺陷检测中,划痕缺陷无疑是检测的难点,划痕缺陷存在着 尺寸小,长宽比却比较大,易受杂质影响的问题,本文将深度学习算法应用到光学元件缺陷检测,并根据划痕缺陷的特点,对 Mask R-CNN 网络模型进行了改进,使算法对划痕缺陷也有了更好的检测效果。 首先,将原有的 ResNet 更换为本文提出的 CSPRepResNet,并添加 ESE 注意力机制,提高了特征提取的能力并减少了计算量;其次,利用 K-means 算法重新聚类 anchor boxes 的长宽比例;再次,将目标检测的损失函数由 Cross Entropy 改为梯度均衡化的 Focal Loss,解决了正负样本不平衡问题的 同时,更有利于对困难样本的检测,还可以消除离群点的影响。 总体来说,检测的 mAP@ . 5 由原来的 52. 1%提高到 57. 3%,提 高了 5. 2%,且推理速度几乎不变,可见,改进后 Mask R-CNN 对光学元件划痕缺陷有更好的检测效果。

    Abstract:

    Optical element defects will directly affect the performance of the entire optical system. In the detection of optical element defects, scratch defects are undoubtedly the difficulty of detection. The scratch defects have the problems of small size, large aspect ratio, and easy to be affected by impurities. In this paper, depth learning algorithm is applied to optical element defect detection, and according to the characteristics of scratch defects, the Mask R-CNN network model is improved. The algorithm also has a better detection effect on scratch defects. First, the original ResNet is replaced by CSPRepResNet proposed in this paper, and ESE attention mechanism is added to improve the ability of feature extraction and reduce the amount of computation. Secondly, K-means algorithm is used to recluster the length width ratio of anchor boxes. Thirdly, the loss function of target detection is changed from Cross Entropy to gradient balanced Focal Loss, which solves the problem of imbalance between positive and negative samples, is more conducive to the detection of difficult samples, and can also eliminate the influence of outliers. In general, the tested mAP@ . 5 The original 52. 1% is increased to 57. 3%, an increase of 5. 2%, and the reasoning speed is almost unchanged. It can be seen that the improved Mask R-CNN has a better detection effect on optical element scratch defects.

    参考文献
    相似文献
    引证文献
引用本文

马志程,李 丹,张宝龙.基于改进 Mask R-CNN 的光学元件划痕缺陷检测研究[J].电子测量与仪器学报,2023,37(4):231-239

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2023-06-28
  • 出版日期: