Performance Analysis of Printed Circuit Board Defect Detection with Hybrid CNN Module Image Feature Extraction and Clustering
Abstract
1. Introduction
2. Related Work
2.1. Image Feature Extraction
- (1)
- Preprocessing: Enhancing raw images through noise reduction, contrast adjustment, and geometric correction to improve quality and reduce artifacts.
- (2)
- Segmentation: The image is partitioned into meaningful regions or objects for focused analysis.
- (3)
- Feature Extraction: Computing numerical or symbolic descriptors that represent key attributes (e.g., shape, color, texture, position) of the segmented regions.
- (4)
- Feature Selection: Identifying the most discriminative and relevant features to reduce the dimensionality and computational load.
- (5)
- Feature Matching: Comparing extracted features against reference templates or models to determine object identity or defect status.
- (1)
- Color-based methods: Leveraging color differences between components and circuits via RGB/HSV color spaces or gray-level histograms.
- (2)
- Shape-based methods: Utilize geometric characteristics via edge detection, contour tracing, or Hough transforms.
- (3)
- Texture-based methods: Analysing surface patterns via gray-level co-occurrence matrices (GLCMs), wavelet transforms, or Gabor filters.
- (4)
- Deep Learning-Based Techniques: Employing artificial neural networks (ANNs) and CNNs to acquire feature representations autonomously from PCB components and circuits for tasks such as image classification and object detection. Strategies such as leveraging large datasets, utilizing pretrained networks, and fine-tuning are commonly employed to optimize performance [4].
2.2. PCB Defect Detection
2.3. Deep Learning
- (1)
- CNN-based methods: CNNs, with their hierarchical structure of convolutional and pooling layers, effectively extract local and global features while maintaining translation and scale invariance. CNNs are widely used for PCB defect image classification [14] and bounding box regression for defect localization [15].
- (2)
- Region Proposal Network (RPN)-based Methods: RPNs, integrated within object detection frameworks, simultaneously generate candidate object regions and corresponding scores. These are refined by subsequent classifiers or regressors for precise localization, making them suitable for proposing and localizing defect regions in PCB images [16].
- (3)
- Fully Convolutional Network (FCN)-Based Methods: FCNs perform pixelwise semantic segmentation, assigning each pixel to a specific category. This fine-grained approach excels in tasks requiring detailed defect analysis, such as semantic segmentation and classification of PCB defect images [17].
2.4. Identified Research Gap
3. Hybrid-Convolutional Neural Network Feature Extraction and Dimension Reduction Classifier Design
3.1. Transfer Learning with Progressive Neural Networks
- (1)
- Images training patterns:
- (2)
- Pretrained CNN model:
- (3)
- Main feature extraction:
- (4)
- PCB clustering:
- (5)
- Evaluation cycle:
- (6)
- Image distribution:
- (7)
- Image reconstruction:
- (8)
- Final image representations:
3.2. Main Feature Extraction Process
- (1)
- Conditional probability calculation: First, we compute the conditional probability in the high-dimensional space, given an input data point x, and calculate the probability that it would pick another data point y as its neighbor if neighbors were chosen proportionally to their density under a Gaussian centered at x.
- (2)
- Low-dimensional space initialization: Next, we randomly initialize the joint probability in the low-dimensional space.
- (3)
- Minimizing the difference: Our goal is to minimize the difference between these probabilities and update the data positions in the low-dimensional space, and we measure this difference via an information-theoretic quantity called KL divergence, which reflects the dissimilarity between two probability distributions.
- (4)
- Gradient descent optimization: To achieve this minimization, we use gradient descent, an optimization technique that adjusts positions on the basis of partial derivatives of the difference with respect to each data point position, and we continue this process until reaching a local minimum or convergence.
- (5)
- Similarity calculation: The t-SNE algorithm computes the similarity between each pair of data points in the high-dimensional space and converts it into conditional probabilities.
- (6)
- Perplexity control: The similarity is defined on the basis of the Euclidean distance and variance of a Gaussian distribution, and perplexity, a parameter ranging from 5 to 50, controls the number of neighbors for each data point in the high-dimensional space.
3.3. Image Cataloging via K-Means or KNN Algorithms
4. Experiment Description and Result Analysis
4.1. Experiment
4.2. Performance Comparisons
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Quach, B.M.; Dinh, V.C.; Pham, N.; Huynh, D.; Nguyen, B.T. Leaf Recognition Using Convolutional Neural Networks Based Features. Multimed. Tools Appl. 2023, 82, 777–801. [Google Scholar] [CrossRef]
- Verdonck, T.; Baesens, B.; Óskarsdóttir, M.; Vanden Broucke, S. Special Issue on Feature Engineering Editorial. Mach. Learn. 2024, 113, 3917–3928. [Google Scholar] [CrossRef]
- Wu, F.; Zhang, X.; Kuan, Y.; He, Z. An AOI Algorithm for PCB Based on Feature Extraction. In Proceedings of the 2008 7th World Congress on Intelligent Control and Automation, Chongqing, China, 25–27 June 2008; IEEE: New York, NY, USA, 2008; pp. 240–247. [Google Scholar] [CrossRef]
- Soomro, I.A.; Ahmad, A.; Raza, R.H. Printed Circuit Board Identification Using Deep Convolutional Neural Networks to Facilitate Recycling. Resour. Conserv. Recycl. 2022, 177, 105963. [Google Scholar] [CrossRef]
- Wei, P.; Liu, C.; Liu, M.; Gao, Y.; Liu, H. CNN-based Reference Comparison Method for Classifying Bare PCB Defects. J. Eng. 2018, 2018, 1528–1533. [Google Scholar] [CrossRef]
- Ling, Q.; Isa, N.A.M. Printed Circuit Board Defect Detection Methods Based on Image Processing, Machine Learning and Deep Learning: A Survey. IEEE Access 2023, 11, 15921–15944. [Google Scholar] [CrossRef]
- Lim, J.; Lim, J.; Baskaran, V.M.; Wang, X. A Deep Context Learning Based PCB Defect Detection Model with Anomalous Trend Alarming System. Results Eng. 2023, 17, 100968. [Google Scholar] [CrossRef]
- Zheng, J.; Sun, X.; Zhou, H.; Tian, C.; Qiang, H. Printed Circuit Boards Defect Detection Method Based on Improved Fully Convolutional Networks. IEEE Access 2022, 10, 109908–109918. [Google Scholar] [CrossRef]
- Althubiti, S.A.; Alenezi, F.; Shitharth, S.; Sangeetha, K.; Reddy, C.V.S. Circuit Manufacturing Defect Detection Using VGG16 Convolutional Neural Networks. Wirel. Commun. Mob. Comput. 2022, 2022, 1070405. [Google Scholar] [CrossRef]
- Pratticò, D.; Carlo, D.D.; Silipo, G.; Laganà, F. Hybrid FEM-AI Approach for Thermographic Monitoring of Biomedical Electronic Devices. Computers 2025, 14, 344. [Google Scholar] [CrossRef]
- Meena, G.; Mohbey, K.K.; Indian, A.; Khan, M.Z.; Kumar, S. Identifying Emotions from Facial Expressions Using a Deep Convolutional Neural Network-Based Approach. Multimed. Tools Appl. 2023, 83, 15711–15732. [Google Scholar] [CrossRef]
- L, S.; V, S.; Ravi, V.; E.A, G.; K.P, S. Deep Learning-Based Approach for Multi-Stage Diagnosis of Alzheimer’s Disease. Multimed. Tools Appl. 2023, 83, 16799–16822. [Google Scholar] [CrossRef]
- Lu, Y.; Tao, X.; Jiang, F.; Du, J.; Li, G.; Liu, Y. Image Recognition of Rice Leaf Diseases Using Atrous Convolutional Neural Network and Improved Transfer Learning Algorithm. Multimed. Tools Appl. 2023, 83, 12799–12817. [Google Scholar] [CrossRef]
- Wu, X.; Ge, Y.; Zhang, Q.; Zhang, D. PCB Defect Detection Using Deep Learning Methods. In Proceedings of the 2021 IEEE 24th International Conference on Computer Supported Cooperative Work in Design (CSCWD), Dalian, China, 5–7 May 2021; IEEE: New York, NY, USA, 2021; pp. 873–876. [Google Scholar] [CrossRef]
- You, S. PCB Defect Detection Based on Generative Adversarial Network. In Proceedings of the 2022 2nd International Conference on Consumer Electronics and Computer Engineering (ICCECE), Guangzhou, China, 14–16 January 2022; IEEE: New York, NY, USA, 2022; pp. 557–560. [Google Scholar] [CrossRef]
- Kim, J.; Ko, J.; Choi, H.; Kim, H. Printed Circuit Board Defect Detection Using Deep Learning via A Skip-Connected Convolutional Autoencoder. Sensors 2021, 21, 4968. [Google Scholar] [CrossRef]
- Chen, I.-C.; Hwang, R.-C.; Huang, H.-C. PCB Defect Detection Based on Deep Learning Algorithm. Processes 2023, 11, 775. [Google Scholar] [CrossRef]
- Adibhatla, V.A.; Chih, H.-C.; Hsu, C.-C.; Cheng, J.; Abbod, M.F.; Shieh, J.-S. Applying Deep Learning to Defect Detection in Printed Circuit Boards via a Newest Model of You-Only-Look-Once. MBE 2021, 18, 4411–4428. [Google Scholar] [CrossRef]
- Sheraz, N.; Yasir, S. Enhanced Network Intrusion Detection Using Deep Convolutional Neural Networks. KSII TIIS 2018, 12, 5159–5178. [Google Scholar] [CrossRef]
- Tripathi, M. Analysis of Convolutional Neural Network Based Image Classification Techniques. J. Innov. Image Process. 2021, 3, 100–117. [Google Scholar] [CrossRef]
- Prasetyo, H.; Prayuda, A.W.H.; Hsia, C.H.; Wisnu, M.A. Integrating Companding and Deep Learning on Bandwidth-Limited Image Transmission. J. Internet Technol. 2022, 23, 467–473. [Google Scholar] [CrossRef]
- Hsia, C.-H.; Liu, C.-H. New Hierarchical Finger-Vein Feature Extraction Method for iVehicles. IEEE Sens. J. 2022, 22, 13612–13621. [Google Scholar] [CrossRef]
- He, P.; Ma, S.; Li, W. Efficient Barrage Video Recommendation Algorithm Based on Convolutional and Recursive Neural Network. J. Internet Technol. 2021, 22, 1241–1251. [Google Scholar] [CrossRef]
- Kordík, P.; Černý, J.; Frýda, T. Discovering Predictive Ensembles for Transfer Learning and Meta-Learning. Mach. Learn. 2018, 107, 177–207. [Google Scholar] [CrossRef]
- Shi, L.; Zhang, S.; Arshad, A.; Hu, Y.; He, Y.; Yan, Y. Thermo-Physical Properties Prediction of Carbon-Based Magnetic Nanofluids Based on an Artificial Neural Network. Renew. Sustain. Energy Rev. 2021, 149, 111341. [Google Scholar] [CrossRef]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet Classification with Deep Convolutional Neural Networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
- Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going Deeper with Convolutions. In Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 7–12 June 2015; IEEE: New York, NY, USA, 2015; pp. 1–9. [Google Scholar] [CrossRef]
- Babu, H.; Venkatram, N. An Efficient Image Dahazing Using Googlenet Based Convolution Neural Networks. Multimed. Tools Appl. 2022, 81, 43897–43917. [Google Scholar] [CrossRef]
- Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, T.; Andreetto, M.; Adam, H. MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv 2017. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; IEEE: New York, NY, USA, 2016; pp. 770–778. [Google Scholar] [CrossRef]
- Rawat, W.; Wang, Z. Deep Convolutional Neural Networks for Image Classification: A Comprehensive Review. Neural Comput. 2017, 29, 2352–2449. [Google Scholar] [CrossRef]
- Niedzwiecki, M.; Rzecki, K.; Marek, M.; Homola, P.; Smelcerz, K.; Castillo, D.A.; Smolek, K.; Hnatyk, B.; Zamora-Saa, J.; Mozgova, A.; et al. Recognition and Classification of the Cosmic-Ray Events in Images Captured by CMOS/CCD Cameras. arXiv 2019, arXiv:1909.01929. [Google Scholar] [CrossRef]
- Gao, L.; Gu, D.; Zhuang, L.; Ren, J.; Yang, D.; Zhang, B. Combining T-Distributed Stochastic Neighbor Embedding with Convolutional Neural Networks for Hyperspectral Image Classification. IEEE Geosci. Remote Sens. Lett. 2020, 17, 1368–1372. [Google Scholar] [CrossRef]
- Ma, L.; Liu, Y.; Zhang, X.; Ye, Y.; Yin, G.; Johnson, B.A. Deep Learning in Remote Sensing Applications: A Meta-Analysis and Review. ISPRS J. Photogramm. Remote Sens. 2019, 152, 166–177. [Google Scholar] [CrossRef]
- Maaten, L.; Hinton, G.E. Visualizing Data Using T-SNE. J. Mach. Learn. Res. 2008, 9, 2579–2605. [Google Scholar]
- Yang, G.; Kothalil Gopalakrishnan, A. Network Traffic Threat Feature Recognition Based on a Convolutional Neural Network. In Proceedings of the 2019 11th International Conference on Knowledge and Smart Technology (KST), Phuket, Thailand, 23–26 January 2019; IEEE: New York, NY, USA, 2019; pp. 170–174. [Google Scholar] [CrossRef]
- Abdalla, H.I.; Amer, A.A. Towards Highly-Efficient k-Nearest Neighbor Algorithm for Big Data Classification. In Proceedings of the 2022 5th International Conference on Networking, Information Systems and Security: Envisage Intelligent Systems in 5g//6G-based Interconnected Digital Worlds (NISS), Bandung, Indonesia, 30–31 March 2022; IEEE: New York, NY, USA, 2022; pp. 1–5. [Google Scholar] [CrossRef]










![]() Missing hole | ![]() Mouse bite | ![]() Open circuit |
![]() Short circuit | ![]() Spur | ![]() Spurious copper |
| Characteristic | Description/Value |
|---|---|
| Dataset source | Peking University Open Lab (Publicly available benchmark) |
| Original purpose | PCB defect detection |
| Total original images | 693 |
| Number of defect classes | 6 |
| Defect class names | missing hole, mouse bite, open circuit, short circuit, spur, spurious copper |
| Image format | RGB |
| Augmentation techniques | Random cropping, scaling, splicing |
| Dataset split | training set: 70%, validation set:20%, testing set: 10% |
| CNN Type | AlexNet | GoogleNet | ||||||
|---|---|---|---|---|---|---|---|---|
| Clustering Way | KNN | K-means | KNN | K-means | ||||
| Reduction Way | t-SNE | PCA | t-SNE | PCA | t-SNE | PCA | t-SNE | PCA |
| Accuracy | 0.8917 | 0.84 | 0.9083 | 0.8433 | 0.89 | 0.8267 | 0.94 | 0.245 |
| Cost Time(s) | 34.84 | 41.13 | 35.67 | 52.14 | 49.37 | 52.88 | 44.56 | 44.35 |
| CNN Type | MobileNet | ResNet50 | ||||||
| Clustering Way | KNN | K-means | KNN | K-means | ||||
| Reduction Way | t-SNE | PCA | t-SNE | PCA | t-SNE | PCA | t-SNE | PCA |
| Accuracy | 0.8383 | 0.8017 | 0.955 | 0.2283 | 0.8633 | 0.6817 | 0.9733 | 0.665 |
| Cost Time(s) | 53.65 | 55.28 | 47.26 | 46.5 | 63.29 | 70.23 | 58.94 | 62.74 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Jiang, F.; Chen, H.; Wei, S.; Chen, C. Performance Analysis of Printed Circuit Board Defect Detection with Hybrid CNN Module Image Feature Extraction and Clustering. Eng 2026, 7, 41. https://doi.org/10.3390/eng7010041
Jiang F, Chen H, Wei S, Chen C. Performance Analysis of Printed Circuit Board Defect Detection with Hybrid CNN Module Image Feature Extraction and Clustering. Eng. 2026; 7(1):41. https://doi.org/10.3390/eng7010041
Chicago/Turabian StyleJiang, Fan, Huaching Chen, Songlin Wei, and Chengying Chen. 2026. "Performance Analysis of Printed Circuit Board Defect Detection with Hybrid CNN Module Image Feature Extraction and Clustering" Eng 7, no. 1: 41. https://doi.org/10.3390/eng7010041
APA StyleJiang, F., Chen, H., Wei, S., & Chen, C. (2026). Performance Analysis of Printed Circuit Board Defect Detection with Hybrid CNN Module Image Feature Extraction and Clustering. Eng, 7(1), 41. https://doi.org/10.3390/eng7010041













