Detection of surface defect on flexible printed circuit via guided box improvement in GA-Faster-RCNN network
간접 관련 필름·전자재료 · (14) 드라이 필름(포토레지스트) (15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.1371/journal.pone.0295400
- 저널
- PLoS ONE
- 발행년도
- 2023
- 발행기관
- Public Library of Science
- 피인용수
- 7
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1371/journal.pone.0295400
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4389334813
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (14) 드라이 필름(포토레지스트)
- 부 분야
- (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- Flexible Printed Circuit (FPC), surface defect detection, GA-Faster-RCNN, deep learning, Automatic Optical Inspection (AOI)
- 판단 근거
- 이 논문은 연성회로기판(FPC)의 표면 결함을 딥러닝(GA-Faster-RCNN)으로 검출하는 알고리즘을 다룹니다. FPC는 코오롱인더스트리의 드라이 필름(14) 및 디스플레이 관련 소재 공정의 품질 관리(AOI)에 응용될 수 있는 기술입니다.
- R&D 활용 포인트
- FPC 및 관련 전자재료(드라이 필름, 디스플레이 패널재료 등) 제조 공정에서 자동 광학 검사(AOI) 시스템의 정확도를 높여 불량률을 낮추는 데 활용 가능합니다.
- 평가 입력
- 본문 36,684자 중 30,032자 발췌
초록
본문 36,684자
본문 펼치기
섹션 본문 44문단 · 23,090자
(제목 없음)
1Industrial defect detection is a critical aspect of production.Traditional industrial inspection algorithms often face challenges with low detection accuracy.In recent years, the adoption of deep learning algorithms, particularly Convolutional Neural Networks (CNNs), has shown remarkable success in the field of computer vision.Our research primarily focused on developing a defect detection algorithm for the surface of Flexible Printed Circuit (FPC) boards.To address the challenges of detecting small objects and objects with extreme aspect ratios in FPC defect detection for surface, we proposed a guided box improvement approach based on the GA-Faster-RCNN network.This approach involves refining bounding box predictions to enhance the precision and efficiency of defect detection in Faster-RCNN network.Through experiments, we verified that our designed GA-Faster-RCNN network achieved an impressive accuracy rate of 91.1%, representing an 8.5% improvement in detection accuracy compared to the baseline model.
Introduction
2With the development of new-generation electronic technologies such as lithography alignment techniques based on Moire ´Fringe [1], 3D printed for silver mesh [2], and the advancement of mathematical principles in electronic engineering [3], there has been a significant focus on the fabrication of Flexible Transparent Electrodes (FTE), which is a critical component in electronic devices [4,5].Another closely related component, FPC, has also garnered extensive attention due to its lightweight, thin profile, and the ability to bend and fold freely.
3In the production of FPC, various defects can arise due to process-related issues.These defects can be categorized into six types, including depressions, protrusions, contamination, discoloration, incomplete penetration, and cutting misalignment, as depicted in Figs 1 and 2. Enhancing the accuracy of circuit board defect detection is of paramount importance in ensuring the quality of products, making it a central focus in the field of FPC defect inspection today.
4In the early stages, defects in PCBs were detected through manual visual inspection.However, this method gradually gave way to Automatic Optical Inspection (AOI) technology.As PCB surface textures become increasingly complex, research on defect detection for PCB surface has been ongoing.However, since FPCs emerged later than regular PCBs, most of the current research is based on regular PCBs, and the algorithms defect detection for surface of FPCs largely rely on those used for regular PCBs.These algorithms primarily consist of two categories: classical image processing algorithms and neural network algorithms.
Research on classical image processing algorithms
5Image processing algorithms are at the core of machine vision algorithms.To address the problem of defect detection for PCB, many researchers have proposed their solutions.Li YF and Li SY, considering the limitations of using a single feature to describe various defects on bare PCB, proposed a defect detection algorithm based on gradient direction information entropy and uniform local binary patterns [6].In addition, Lu ZS et al., pointed out that most detection algorithms rely on comparison methods, which are not effective in extreme cases, and proposed a non-reference comparison framework for defect detection for PCB [7].Tsai DM and Huang CK, focused on defect detection in non-periodic patterns and designed a global Fourier image reconstruction method [8].Cai L and Li JC emphasized image preprocessing algorithms and detection analysis [9].They proposed an image preprocessing and detection algorithm to address the limitations of existing traditional detection methods and demonstrated its good detection performance and high accuracy.
6In general, machine vision approaches using various image processing algorithms and techniques are employed for detecting and locating PCB defects.However, these methods also have limitations, such as low detection accuracy.As a result, many researchers have begun to explore the use of deep learning methods to address this issue.
Research on neural network algorithms
7Currently, in the field of defect detection for surface, machine learning and deep learning algorithms based on neural networks are more popular compared to classical image processing algorithms.Zhang C et al., proposed an algorithm for defect detection for surface of PCB based on deep feature learning [10], which reduces the demand for large-scale datasets while improving detection accuracy.Ran GZ et al., recognized the low robustness issue in defect detection algorithms and proposed a defect detection algorithm for PCB based on the Single Shot Multibox Detector (SSD) framework of convolutional neural networks [11].Hu B and Wang JH, combined the needs of practical PCB production and proposed an improved Faster-RCNN network model [12] based on Faster-RCNN [13].It uses a ResNet-50 network [14] with feature pyramids as the backbone for feature extraction, utilizes GARPN to predict more accurate anchors, and merges residual units of ShuffleNetV2, achieving good detection performance.Zhang H et al., presented the Cost-Sensitive Residual Convolutional Neural Network (CS-ResNet) model [15], which effectively addresses the issue of imbalanced class distribution and misclassification of true and false defects.Adibhatla VA et al., proposed a novel unsupervised learning method that utilizes teacher-student feature pyramid matching as a pre-trained image classification model to learn the distribution of normal images and detect defects in PCB, effectively addressing the problem of requiring a large amount of manual annotation data in models like YOLO [16].Wan YS et al., addressed the issue of small sample labeling in defect detection for PCB and proposed a semi-supervised defect detection method (DE-SSD) based on a data expansion strategy.It achieves good accuracy in defect detection for PCB with fewer labeled samples [17].
8In conclusion, deep learning algorithms have been widely applied in the field of defect detection for surface, Especially Faster-RCNN network, which uses ResNet-50 network with feature pyramids as the backbone for feature extraction, predicts more accurate anchors with the help of GARPN, and merges residual units of ShuffleNetV2.However, there are still significant gaps in detecting small targets and extreme aspect ratio defects in defect detection for surface of FPC.To address this gap, we have designed an improved GA-Faster-RCNN network based on guided bounding boxes to tackle this issue.
Materials and methods
9In FPC surface defects, some types of defects occur randomly in terms of location.For example, defects such as bubbles, inclusions, and indentations that arise from production processes can exhibit random positioning.These defects can be classified into two categories: protrusion defects and depression defects.We created a defect dataset based on existing data, which consists of 3,992 images of protrusion defects and 5,025 images of depression defects.We propose a GA-Faster-RCNN network model for FPC surface defects with small targets, multiple sizes, and extreme aspect ratios.We use the Guided Anchoring (GA) [18] module to replace the RPN network in the original Faster-RCNN, and increase the feature extraction capability of multi-scale defects with the help of the Feature Pyramid Network(FPN) [19] network, and replace the VGG16 [20] in the original Faster-RCNN with ResNet-101 network.The GA-Faster-RCNN network model can solve the above problems well with the help of the FPN network to increase the ability of multi-scale defect extraction, and the VGG16 in the original Faster-RCNN is replaced by the ResNet-101 network, which is experimentally verified to have an accuracy improvement of 8.5 percentage points compared with the Faster-RCNN.
GA-Faster-RCNN network architecture
10The GA-Faster-RCNN network framework is illustrated in Fig 4 .It begins with feature extraction using convolutional layers, where we used the ResNet-101 network known for its powerful feature extraction capabilities.Within the convolutional layers, we introduced the FPN to enhance multi-scale feature extraction.The extracted feature maps from ResNet-101 were then fed into the position prediction branch and shape prediction branch.The position prediction branch predicts which regions should serve as anchor centers, while the shape prediction branch uses Intersection over Union (IoU) to guide the network in learning the optimal length and width given the anchor centers.This approach allows the learned anchors to adapt to extreme cases without being limited by predefined values.The generated anchors, along with the new feature maps, were subsequently fed into Faster-RCNN for classification predictions.Through experimental verification, our improved network exhibits superior accuracy in detecting multi-scale defects, achieving an accuracy rate of 91.1%.
GA algorithm
11The GA module allows for the direct training of sparse and shape-variable anchors.In general, anchors can be represented by four parameters (x, y, w, h), which correspond to the coordinates of the anchor's center point as well as its width and height.The probability distribution of anchors can be decomposed into two conditional probability distributions, described in Eq 1. Location prediction.The objective of the location prediction branch in GA is to predict which regions should be selected as anchor center points.In the location prediction sub-network, the entire feature map is divided into object center regions.peripheral regions, and ignored regions.The region corresponding to the center of the ground truth box on the feature map is marked as the object center region and treated as a positive sample during training.The remaining regions are labeled as ignored or negative samples based on their distance from the center.Through position prediction, a small subset of regions can be selected as candidate anchor center points, significantly reducing the number of anchors.
12Shape prediction.The purpose of the shape prediction branch is to predict the optimal length and width of an anchor given its center point as the size of defects are intricate.IoU is used as the supervision to learn the values of width and height.Since IoU is differentiable, the network can be trained to maximize the IoU value.The matching between anchors and ground truth is represented by the following Eq 2: vIoUða wh ; gtÞ ¼ max w>0;h>0 IoU normal ða wh ; gtÞ ð2Þ a wh represents the width and height of the anchor, and gt represents the ground truth value.
13Because of the large range of w and h when learning them directly, they are transformed using the following Eq 3:
14σ is an empirical scale factor (set to 8), and s is the stride.The shape prediction branch outputs dw and dh, which are then mapped to w and h.Feature adaption.In the RPN, anchors are uniformly distributed across the entire image in a sliding window-like manner, and each anchor is associated with a feature map of the same size.However, in GA, the size of anchors is not fixed, and it is necessary to use features with different receptive fields to leverage the advantages of different anchor sizes.To achieve this, feature adaptation is required, and its formula is Eq 4:
15N T represents a 3 × 3 deformable convolution, and i is the index of each anchor.The shape information generated by the shape prediction sub-network is incorporated into the original feature map through the deformable convolution.Finally, we employ a multi-task loss for endto-end training, with the loss function is Eq 5:
16L cls represents the classification loss, L reg represents the regression loss, L loc represents the location prediction loss, and L shape represents the shape prediction loss.
FPN
17In Faster-RCNN, the RPN is typically applied to the last feature map for candidate box extraction.However, the last feature map, after multiple downsampling operations, may lose some features of small objects.Therefore, even with the integration of the GA module in Faster-RCNN, the missed small objects cannot be detected.To address this issue, we introduce the FPN.The FPN module is a deep neural network designed to handle images of different scales.Its main purpose is to construct a feature pyramid at different scales, combining high-level semantic information (smaller receptive fields) with low-level detailed information (larger receptive fields), to obtain a more comprehensive and rich feature representation.The FPN module consists of two main parts: bottom-up and top-down.We place the FPN module at the end of the ResNet-101 network, using FPN to obtain a feature pyramid with multi-scale feature information.The overall structure is illustrated in Fig 6 .In the bottom-up process, the original image is passed through convolutional layers (Con-v2-Conv5) to generate feature maps (C2, C3, C4, C5).Then, the higher-level feature maps with more abstract and semantically rich information are fused with the lower-level feature maps that contain more details about smaller objects.These newly generated feature maps contain more comprehensive information.In the top-down process, the upper-level feature maps are fused with the lower-level feature maps using 1 × 1 convolutions, and then 3 × 3 convolutions are applied to generate P2-P5.Finally, the feature maps obtained from FPN, which contain multi-scale information, are fed into the GA module for more effective detection of smaller defects.
Experiments
18Our proposed GA-Faster-RCNN replaces the RPN in the original Faster-RCNN with the GA module to generate fewer, but more accurate anchors.To address the issue of poor feature extraction for small targets due to the significant variation in defect sizes, we incorporated the FPN network.To evaluate the performance of the model, we conducted two types of experiments.The first type was ablation experiments, which compared the improved Faster-RCNN with its original version by analyzing the contributions of each module.The second type was comparative experiments, which compared GA-Faster-RCNN with other mainstream defect detection networks.Ultimately, our experimental results demonstrate that our designed network achieved an improvement of more than 8% in accuracy.
Settings
19The experiments were conducted on a machine with the following specifications: Ubuntu 20.04.3 LTS operating system, 64GB RAM, NVIDIA Quadro graphics processor, and Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz 2.29GHz.The implementation of the proposed network model was based on Python 3.8.10 using PyTorch, OpenCV, and CUDA Toolkit.The hyperparameters of the model were determined through training the network.The settings for network training parameters are shown in Table 1:
Evaluation metrics
20In object detection, commonly used evaluation metrics are precision and recall, but there is a slight difference compared to classification tasks caused by the presence of bounding boxes.In object detection, IoU is used to measure the overlap between two regions.IoU is calculated as the ratio of the intersection area of the ground truth and prediction to the union area of the two regions.Eq 6 describes IoU:
IoU ¼ area of overlap area of union ð6Þ
21In this case, precision and recall in object detection are defined by incorporating IoU.When calculating precision and recall, the following parameters are still used: TP (True Positive): Predicted bounding boxes that correctly detect the defect class and have an IoU greater than the threshold.
22FP (False Positive): Predicted bounding boxes that either incorrectly detect the defect class with an IoU below the threshold or detect the wrong defect class.
23FN (False Negative): Predicted bounding boxes that detect the wrong defect class.TN (True Negative): Predicted bounding boxes that detect a different defect class, which is actually the correct defect class.
24The formulas for Precision and Recall are Eqs 7 and 8:
25The precision-recall curve, often referred to as the P-R curve, can be plotted with precision on the y-axis and recall on the x-axis.The area enclosed by this curve and the coordinate axes is called the Average Precision (AP).In object detection, AP is commonly used as a comprehensive evaluation metric for models.It is calculated using the following Eq 9:
26AP is an evaluation metric for the detection results of a specific defect class.It is common to use mean Average Precision (mAP) to evaluate the detection performance across multiple defect classes.Eq 10 describes mAP:
27n is the total number of defect classes, and i is the index of the defect class.
Results
28We proposed an improved GA-Faster-RCNN algorithm based on guided anchoring for the detection of depression and protrusion defects in FPC surface.Additionally, we enhanced the feature extraction capability of the network for small-sized defects by incorporating the FPN network.Finally, through quantitative and qualitative analysis using ablation experiments and cross-validation experiments, we validated the effectiveness of our proposed algorithm.
Ablation experiments
29We conducted ablation experiments to evaluate the improvements made to the original Faster-RCNN.By combining different network models and functional modules, we obtained the experimental results shown in Table 2 and Fig 7.
30Table 2 indicates that the inclusion of FPN and GA led to a significant improvement in the accuracy of Faster-RCNN.When both modules were incorporated, the improvement ranged from 7% to 9% depending on the feature extraction network.Furthermore, removing either module individually resulted in a decrease in accuracy by at least 1%.When the ResNet-101 was chosen as the feature extraction network, the accuracy improvement ranged from 1% to 3% compared to other feature extraction networks under the same conditions.
Cross-validation experiments
31To validate the effectiveness of our proposed model, we conducted comparative experiments with mainstream object detection algorithms currently used in the industry, using different datasets.The experimental results are shown in Table 3 and Fig 8:
32Table 3 shows that our designed GA-Faster-RCNN network achieved a significant improvement in accuracy compared to mainstream object detection algorithms.The average precision reached 91.1%, which is an improvement of 8.5% over the original Faster-RCNN network.The improvement in accuracy was more than 10% compared to typical SSD and YOLOv4 models.However, it should be noted that the GA-Faster-RCNN network had a slight decrease in Frames Per Second (FPS) compared to SSD and YOLOv4.Nonetheless, it still exhibited a slight improvement compared to the original Faster-RCNN network.
Discussion
33The GA-Faster-RCNN network integrates GA, FPN, and ResNet-101 to enhance the ability of the original Faster-RCNN to detect surface defects.It enables the network to predict the location and shape of defects through self-training and uses more comprehensive defect feature representations, which allows previously challenging defects to be recognized by the network.Additionally, in practical industrial production, extreme defects are relatively rare.When using conventional detection algorithms on vast amounts of data, these specific defects may be overlooked because of their lower weights, and prevent the network from learning the detection and recognition capability for these specific defects.However, the self-training approach through the GA module can partially address this issue.The results validate the effectiveness of the proposed GA-Faster-RCNN network model.It mainly addresses the issues of small-sample training and low accuracy in identifying small targets in defect detection tasks, which may reduce the cost of defect detection.The accuracy exceeding 90% and the improvement of more than 8% demonstrate the successful improvements of the GA-Faster-RCNN network model over the original Faster-RCNN.The conducted ablation experiments confirmed the effectiveness of incorporating the FPN module to address the issue of missing small targets.By fusing more abstract feature maps with stronger semantics and feature maps with more small targets, incorporating the information-rich newly generated feature maps, and using effective anchors generated by the GA module for training assistance, both modules play important roles in improving accuracy.
34However, because of the GA-Faster-RCNN network model's reliance on the GA module for self-training to generate effective anchors, which have variable sizes, the network's performance in terms of FPS lags behind conventional algorithms.Nonetheless, compared to the baseline Faster-RCNN, there is still a slight improvement.Considering the significant improvement in accuracy and the specific needs of industrial scenarios, where accuracy is often more critical than FPS, the designed GA-Faster-RCNN network model has great significance for FPC industrial defect detection.
35Although the experiments have demonstrated a significant improvement in accuracy with the proposed GA-Faster-RCNN network model, the FPS indicates that there is still room for improvement.Additionally, the scarcity of FPC industrial datasets may result in discrepancies between the network's performance in experiments and its real-world application.Therefore, future improvements can focus on simplifying the overall network architecture and adopting data generation methods that better align with practical industrial environments.
Conclusion
36We conducted research on the integration of defect detection algorithms and deep learning for defect detection for surface in FPC production.Based on the characteristics of defects in FPC products, we conducted in-depth research on defect detection algorithms for surface.By specifically targeting the detection of small objects and objects with extreme aspect ratios, we improved the algorithms.Through ablation experiments, we demonstrated the effectiveness of our designed GA-Faster-RCNN network, with ResNet101 as the feature extraction network, showing excellent capabilities.Furthermore, through cross-comparison experiments, we validated the reliability of the model, achieving an mAP of 91.1%, which is an 8.5% improvement compared to the original Faster-RCNN.This approach can provide effective assistance in both practical and industrial contexts.
Fig 1 .Fig 2 .
37Fig 1. Depression example.https://doi.org/10.1371/journal.pone.0295400.g001
38Fig 3 presents examples of these two types of defects, where a, b, and c represent protrusion defects, and d, e, and f represent depression defects.
Fig 3 .
39Fig 3. Defect examples.https://doi.org/10.1371/journal.pone.0295400.g003
40pðx; y; w; hjIÞ ¼ pðx; yjIÞpðw; hjx; y; IÞ ð1Þ p(x, y, w, h|I) represents the probability distribution of anchor center points given the feature map, and p(w, h|x, y, I) represents the probability distribution of anchor width and height given the feature map and center point.According to Eq 1, the GA module is designed with two sub-networks: the location prediction sub-network N L and the shape prediction sub-network N S .The structure of the GA module is illustrated in Fig 5.
Fig 4 .Fig 5 .
41Fig 4. GA-Faster-RCNN network architecture.https://doi.org/10.1371/journal.pone.0295400.g004
Fig 6 .
42Fig 6.FPN network structure.https://doi.org/10.1371/journal.pone.0295400.g006
Results for different combinations in ablation experiments.
43https://doi.org/10.1371/journal.pone.0295400.g007
Table 3 . Cross-validation experiments results.
44Fig 8. Cross-validation experiments results.https://doi.org/10.1371/journal.pone.0295400.g008
참고문헌 18건
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Defect detection of bare printed circuit boards based on gradient direction information entropy and uniform local binary patterns Circuit World · Emerald Publishing Limited · 2017 10.1108/cw-06-2017-0028
- Defect detection of PCB based on Bayes feature fusion The Journal of Engineering · Institution of Engineering and Technology · 2018 10.1049/joe.2018.8270
- Improved bare PCB defect detection approach based on deep feature learning The Journal of Engineering · Institution of Engineering and Technology · 2018 10.1049/joe.2018.8275
- Defect Detection in Electronic Surfaces Using Template-Based Fourier Image Reconstruction IEEE Transactions on Components Packaging and Manufacturing Technology · Institute of Electrical and Electronics Engineers · 2018 10.1109/tcpmt.2018.2873744
- Region Proposal by Guided Anchoring 2019 10.1109/cvpr.2019.00308
- Detection of PCB Surface Defects With Improved Faster-RCNN and Feature Pyramid Network IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3001349
- Research on PCB Defect Detection Using Deep Convolutional Nerual Network 2020 5th International Conference on Mechanical, Control and Computer Engineering (ICMCCE) · 2020 10.1109/icmcce51767.2020.00287
- CS-ResNet: Cost-sensitive residual convolutional neural network for PCB cosmetic defect detection Expert Systems with Applications · Elsevier BV · 2021 10.1016/j.eswa.2021.115673
- Unsupervised Anomaly Detection in Printed Circuit Boards through Student–Teacher Feature Pyramid Matching Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics10243177
- 3D Printed High Performance Silver Mesh for Transparent Glass Heaters through Liquid Sacrificial Substrate Electric‐Field‐Driven Jet Small · Wiley · 2022 10.1002/smll.202107811
- Directly Printed Embedded Metal Mesh for Flexible Transparent Electrode via Liquid Substrate Electric‐Field‐Driven Jet Advanced Science · Wiley · 2022 10.1002/advs.202105331
- Semi-Supervised Defect Detection Method with Data-Expanding Strategy for PCB Quality Inspection Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22207971
- PCB defect detection system based on image processing Journal of Physics Conference Series · IOP Publishing · 2022 10.1088/1742-6596/2383/1/012077
- Characteristic Analysis and Circuit Implementation of a Novel Fractional-Order Memristor-Based Clamping Voltage Drift Fractal and Fractional · Multidisciplinary Digital Publishing Institute · 2022 10.3390/fractalfract7010002
- Recent advances in nanofiber-based flexible transparent electrodes International Journal of Extreme Manufacturing · IOP Publishing · 2023 10.1088/2631-7990/acdc66
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031