dc.description.abstract | 隨著科技的進步,各種電子產品已經成為人們生活中不可或缺的物品,而印刷電路板 (printed circuit board, PCB) 是各種電子產品不可或缺的基本元件,因此印刷電路板的品質攸關所有電子產品的品質。各種電子元件的製造總會出現小量異常,要找出印刷電路板中異常的部位,才能保有優良的電子產品。過去數十年,印刷電路板的異常偵測都是透過傳統自動光學檢測 (automated optical inspection, AOI) 技術來完成;但傳統技術
總難同時降低瑕疵的漏檢率 (mission rate) 與過殺率 (overkill rate)。如今隨著深度學習 (deep learning) 技術的進步,廠商開始將深度學習技術導入自動光學檢測中,以同時提升瑕疵的檢出率與篩除率。
近幾年來,許多持續學習 (continual learning) 方法被應用在分類任務,希望在保有神經網路分類能力的同時,降低模型訓練的成本。因此在本研究中,我們使用持續學習的方法,在每次得到新資料時,不需要將所有的
舊資料與新資料整合後再重新訓練模型,只需要讓模型接著訓練新資料即可,如此訓練資料不會隨著時間不斷累積。我們減少了訓練資料,同時希望網路能夠用少量資料就達到很好的訓練效果,因此我們使用對比學習 (contrastive learning) 方法來訓練模型。我們將訓練資料進行資料擴增以得到更多的正樣本與負樣本,並使用對比損失函數進行模型的訓練。讓
同類別的訓練資料在特徵空間中靠近,不同類別的訓練資料在特徵空間中遠離,以此來增強網路模型的分類能力。
在本研究中,我們的系統架構改自於 Mai 等人的對比學習技術,主要修改內容包含:i. 在測試階段使用最近類別均值分類器 (nearest class
mean, NCM) 時不移除映射層,得到更好的分類效果;ii. 設計一個全連接分類器與一個卷積分類器並達到比 Mai 等人方法中的 NCM 分類器還好
的分類效果。
在實驗中,我們共收集了 115,692 張印刷電路板影像,分成瑕疵與正常兩種類別。訓練集共有 93,178 張,其中有 38,413 張的瑕疵影像與54,765張的正常影像;測試集共有 22,514 張,其中有 9,325 張的瑕疵影像與13,189 張的正常影像。實驗結果顯示,Mai 等人的原始架構之測試資料準確率 (accuracy) 為 94.70%,召回率 (recall) 為 89.89%,精密度 (precision) 為 97.14%;經過本研究修改與設計架構後,最終取得最好的測試資料準確率為 98.51%,召回率為 98.06%,精密度為 98.35% 的成果。 | zh_TW |
dc.description.abstract | With the advancement of technology, various electronic products have become indispensable items in people’s lives. Printed circuit board (PCB) is a basic component that is essential for all electronic products. Therefore, the quality of PCB is crucial to the quality of all electronic products. Small anomalies always occur during the manufacturing of various electronic components. To maintain high-quality electronic products, it is necessary to
identify the abnormal parts in the PCB. In the past few decades, the abnormal detection of PCB has been completed through traditional automated optical inspection (AOI) technology; however, traditional technology always has
difficulty in reducing both the defect mission rate and overkill rate at the same time. Nowadays, with the advancement of deep learning technology, manufacturers have begun to introduce deep learning technology into AOI to
simultaneously improve the detection rate and precision of defects.
In recent years, many continual learning methods have been applied to classification tasks, hoping to reduce the cost of model training while maintaining the classification ability of neural networks. Therefore, in this study, we used a continual learning method that does not require all old data to be integrated with new data and retrained the model each time new data is obtained. Instead, we simply let the model continue training on new data so that the training data does not accumulate over time. We reduced the amount of
training data and hoped that the network could achieve good training results with a small amount of data. Therefore, we used contrastive learning method to train the model. We perform data augmentation on the training data to obtain
more positive and negative samples and use the contrastive loss function to train the model. This allows training data of the same class to be close together in feature space and training data of different classes to be far apart in feature space, thereby enhancing the network model’s classification ability.
In this study, the architecture of the proposed system is modified from the model of Mai et al. The main modification includes: i. retaining the mapping layer with the NCM (nearest class mean) classifier in the testing phase to
improve the classification performance; ii. designing a fully connected classifier and a convolutional classifier, they all achieve better classification performance than the NCM classifier in Mai’s model.
In the experiment, we collected a total of 115,692 images of PCB, divided into two categories: defective and normal. The training set consisted of 93,178 images, of which 38,413 were defective images and 54,765 were normal images; the testing set consisted of 22,514 images, of which 9,325 were
defective images and 13,189 were normal images. The experimental results show that the accuracy of the testing set of the original Mai’s model is 94.70%, the recall is 89.89%, and the precision is 97.14%. After modifying and
designing the architecture in this study, the best accuracy of the testing set is 98.51%, the recall is 98.06%, and the precision is 98.35%. | en_US |