中大機構典藏-NCU Institutional Repository-提供博碩士論文、考古題、期刊論文、研究計畫等下載:Item 987654321/86567
English  |  正體中文  |  简体中文  |  全文笔数/总笔数 : 80990/80990 (100%)
造访人次 : 41648743      在线人数 : 1526
RC Version 7.0 © Powered By DSPACE, MIT. Enhanced by NTU Library IR team.
搜寻范围 查询小技巧:
  • 您可在西文检索词汇前后加上"双引号",以获取较精准的检索结果
  • 若欲以作者姓名搜寻,建议至进阶搜寻限定作者字段,可获得较完整数据
  • 进阶搜寻


    jsp.display-item.identifier=請使用永久網址來引用或連結此文件: http://ir.lib.ncu.edu.tw/handle/987654321/86567


    题名: 深度學習的印刷電路板上之電子元件相似度比對;Similarity Comparison for Electronic Components on Printed Circuit Boards using Deep Learning
    作者: 吳怡萱;Wu, I-Hsuan
    贡献者: 資訊工程學系
    关键词: 深度學習;相似度比對;deep learning;similarity comparison
    日期: 2021-07-28
    上传时间: 2021-12-07 12:58:42 (UTC+8)
    出版者: 國立中央大學
    摘要: 台灣印刷電路板 (printed circuit board, PCB) 產業在國際上極具競爭力;其應用相當廣泛,幾乎所有電子元件都會用到印刷電路板作為基材,組成插件後的插件印刷電路板 (printed circuit board assembly, PCBA)。相關產業競爭極為激烈,因此要保有產品的優勢,產品的品管就十分重要,為了避免產出瑕疵的產品交到消費者手中,插件印刷電路板的瑕疵檢測就成為重要的議題。
    在過去的傳統檢測方法中,要獲得較優良的檢測效果,常需要針對特定元件設計出特定的演算法,雖然檢測速度非常快,但缺點是泛用性(generalization) 很低;若出現沒見過的新元件就必須設計新的演算法。近年來深度學習 (deep learning) 技術蓬勃發展,可以有效地提升瑕疵檢測的效果。在本研究中,我們使用深度學習技術比對待測電子元件影像與母版中沒有瑕疵的電子元件影像之相似度,來判斷待測電子元件是否有瑕疵。其困難點在於瑕疵與非瑕疵的界線很難定義;例如,元件錯置、顏色不同、大旋轉、大位移才是瑕疵,明暗變化、顏色微變、背景變異、小旋轉、小位移等都不是瑕疵。雖然不易以傳統觀念來定義判斷界線,但藉由樣本的學習來獲得準確的判斷準則是相當可行的方法。
    在本研究中,我們修改雙胞胎網路 (Siamese network) 架構來做為我們的比對網路,主要修改內容為:i. 特徵擷取子網路使用殘差網路(ResNet-18),ii. 修改 ResNet-18 成先激發 (pre-activation) 模組,iii. 加入注意力模組 (attention modules),以提高網路的學習效果,iv. 依特定需求,使用與位置相關的特徵比對相似度,v. 提出新的損失函數,配合新特徵的比對度量。另外,在訓練中,我們還加入影像前處理、影像擴增、學習率策略、及影像隨機位移等附加處置。在實驗中,我們共收集了 3,528 對印刷電路板上的元件影像樣本,其中 1,697 對為相似影像,1,831 對為不相似影像。相似影像分為訓練樣本1,547 對,驗證樣本 150 對;不相似影像分為訓練樣本 1,681 對,驗證樣本 150 對。使用影像擴增方法將訓練集的樣本總數提高至 16,140 對,驗證集的樣本總數提高至 1,500 對。
    實驗結果顯示,特徵擷取子網路使用原始 ResNet-18 的訓練集精密度 (precision) 為 78.88%,召回率 (recall) 為 62.70%,驗證集精密度為84.32%,召回率為 64.53%;在使用新的損失函數,配合新特徵的比對度量和加入影像前處理、影像擴增、學習率策略、及隨機位移影像的環境下,使用經過修改和添加模組後的神經網路架構,其訓練集最終的精密度達到 100.00%,召回率達到 100.00%,驗證集最終的精密度達到 100.00%, 召回率達到 99.33%。;The printed circuit board (PCB) industry of Taiwan is extremely competitive in the world. The PCB’s applications are quite extensive; almost all electronic components are soldered on the PCBs to work. A soldered PCB is called a printed circuit board assembly (PCBA). The market of PCBA products is very fierce; in order to keep the product advantages, product quality control is very important. To prevent defective products being delivered to consumers, defect detection of PCBAs has become an important issue.
    In the traditional detection methods, we always need to design specific algorithms for special components to obtain better detection results. Although the detection speed is very fast, the disadvantage is that the generalization is very low. If unobserved components are appeared, algorithms must be redesigned. In recent years, deep learning techniques have been developed vigorously and have revealed that they can effectively improve the performance of variant applications. In this study, we use the deep learning technique to compare the similarity between the electronic components on a test PCB and the related master PCB to find defect components on the test PCB. The similarity criterion is hard to define; for example, different components, different color, large rotation, and large shift are defects; little change on brightness, color, rotation, shift, and background change are not defect. Although the criterion is hard to define from the traditional concept, using learning methodology from training samples to generate the criterion is very practical.
    In this study, we modified the Siamese network to produce our comparison network; the main modification includes: i. the feature extraction subnet was changed to ResNet-18; ii. ResNet-18 was re-organized as a pre-activation architecture; iii. adding attention modules to improve the learning effect; iv. based on the special requirements, location-related features are defined and used to compare the similarity; v. a new loss function is proposed to match the special features. Moreover, extra processes such as contrast enhancement, data augmentation, learning rate strategies, and random shift are made in training.
    In the experiments, we collected 3,528 pairs of electronic component images on PCBs as samples; in which, 1,697 pairs are similar images and 1,831 pairs are dissimilar images. Among them, 1,547- and 150-pair similar images are respectively for training and verification; 1,681- and 150-pair dissimilar images are respectively for training and verification. All images were augmented into 5 times to generate totally 16,140 training pairs and 1,500 validation pairs.
    The experimental results show that the precision of the training set of the feature extraction subnet using the original ResNet-18 is 78.88%, the recall is 62.70%, and the precision of the validation set is 84.32%, the recall is 64.53%. In the environment of using a new loss function with a new feature comparison metric and adding image pre-processing, data augmentation, learning rate strategies, and random displacement images. After the neural network architecture was modified and modules were added, the final precision of the training set reached 100.00%, the recall reached 100.00%, and the final precision of the verification set reached 100.00%, the recall reached 99.33%.
    显示于类别:[資訊工程研究所] 博碩士論文

    文件中的档案:

    档案 描述 大小格式浏览次数
    index.html0KbHTML56检视/开启


    在NCUIR中所有的数据项都受到原著作权保护.

    社群 sharing

    ::: Copyright National Central University. | 國立中央大學圖書館版權所有 | 收藏本站 | 設為首頁 | 最佳瀏覽畫面: 1024*768 | 建站日期:8-24-2009 :::
    DSpace Software Copyright © 2002-2004  MIT &  Hewlett-Packard  /   Enhanced by   NTU Library IR team Copyright ©   - 隱私權政策聲明