基於少資料之不平衡長寬比影像表面瑕疵檢測方法
Imbalanced Aspect Ratio of Surface Defect Detection Using Small Data
摘要
隨著影像辨識與深度學習的技術進步,基於神經網路的瑕疵檢測模型被廣泛應用在表面貼焊技術(Surface Mount Technology,SMT)產線上來優化自動光學檢測(Automated Optical Inspection,AOI),降低其極高的錯誤發現率(False Discovery Rate,FDR)。若要建立一個可靠的深度學習瑕疵檢測模型,蒐集足夠的瑕疵資料為必備條件之一,但在大量生產的產線中,往往要求極高良率,進而導致標註的瑕疵資料非常稀有。
為了解決此問題,我們提出漸進式資料擴增方法(Progressive Data Augmentation),不同於以往依照領域知識(Domain Know-how)選擇資料擴增策略,改以瑕疵檢測效能來漸進選擇擴增方法,得以減少不必要的學習。另外,我們發現當輸入影像長寬比不平衡,導致不滿足模型輸入尺寸時,影像進行縮放或填補將損失影像的長寬比資訊,進而無法準確判斷瑕疵位置。
因此,本文提出多補丁瑕疵檢測模型(Multi-Patch Defect Detection,MPDD),藉由設計補丁訓練與測試方法,保留長寬比資訊並準確自動標示瑕疵,在實驗中將原先FDR從98%大幅下降至 21.8%,接著在漸進式資料擴增實驗中,進一步將FDR下降至14.23%,同時真陽率(True Positive Rate,TPR)高達98.25%,並滿足工業檢測上時間複雜度的要求。
為了解決此問題,我們提出漸進式資料擴增方法(Progressive Data Augmentation),不同於以往依照領域知識(Domain Know-how)選擇資料擴增策略,改以瑕疵檢測效能來漸進選擇擴增方法,得以減少不必要的學習。另外,我們發現當輸入影像長寬比不平衡,導致不滿足模型輸入尺寸時,影像進行縮放或填補將損失影像的長寬比資訊,進而無法準確判斷瑕疵位置。
因此,本文提出多補丁瑕疵檢測模型(Multi-Patch Defect Detection,MPDD),藉由設計補丁訓練與測試方法,保留長寬比資訊並準確自動標示瑕疵,在實驗中將原先FDR從98%大幅下降至 21.8%,接著在漸進式資料擴增實驗中,進一步將FDR下降至14.23%,同時真陽率(True Positive Rate,TPR)高達98.25%,並滿足工業檢測上時間複雜度的要求。
With the advancement of deep learning technology, deep learning-based defect detection model is widely used in the surface mount technology to reduce the high false discovery rate (FDR) of automatic optical inspection system. To build a reliable defect detection model, sufficient defect data are necessary. However, in reality, labeled defect data are scarce due to the high-yield production lines.
In order to solve this problem, we propose a progressive method of increasing data, which is different from the general strategy of data augmentation based on expert knowledge. We select the data augmentation from the detection result to reduce unnecessary learning. Additionally, when an image's aspect ratio is imbalanced, the image needs to be resized to satisfy the input size of model, which will cause information loss and reduce the model performance.
Therefore, we further propose a Multi-Patch Defect Detection (MPDD) model to preserve aspect ratio information and frame defect position. With this framework, the FDR decreased from 98% to 14.23% with 98.25% of the true positive rate.
In order to solve this problem, we propose a progressive method of increasing data, which is different from the general strategy of data augmentation based on expert knowledge. We select the data augmentation from the detection result to reduce unnecessary learning. Additionally, when an image's aspect ratio is imbalanced, the image needs to be resized to satisfy the input size of model, which will cause information loss and reduce the model performance.
Therefore, we further propose a Multi-Patch Defect Detection (MPDD) model to preserve aspect ratio information and frame defect position. With this framework, the FDR decreased from 98% to 14.23% with 98.25% of the true positive rate.