{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,7]],"date-time":"2026-07-07T11:14:02Z","timestamp":1783422842830,"version":"3.54.6"},"reference-count":37,"publisher":"MDPI AG","issue":"18","license":[{"start":{"date-parts":[[2023,9,8]],"date-time":"2023-09-08T00:00:00Z","timestamp":1694131200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62274123"],"award-info":[{"award-number":["62274123"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Due to the impact of the production environment, there may be quality issues on the surface of printed circuit boards (PCBs), which could result in significant economic losses during the application process. As a result, PCB surface defect detection has become an essential step for managing PCB production quality. With the continuous advancement of PCB production technology, defects on PCBs now exhibit characteristics such as small areas and diverse styles. Utilizing global information plays a crucial role in detecting these small and variable defects. To address this challenge, we propose a novel defect detection framework named Defect Detection TRansformer (DDTR), which combines convolutional neural networks (CNNs) and transformer architectures. In the backbone, we employ the Residual Swin Transformer (ResSwinT) to extract both local detail information using ResNet and global dependency information through the Swin Transformer. This approach allows us to capture multi-scale features and enhance feature expression capabilities.In the neck of the network, we introduce spatial and channel multi-head self-attention (SCSA), enabling the network to focus on advantageous features in different dimensions. Moving to the head, we employ multiple cascaded detectors and classifiers to further improve defect detection accuracy. We conducted extensive experiments on the PKU-Market-PCB and DeepPCB datasets. Comparing our proposed DDTR framework with existing common methods, we achieved the highest F1-score and produced the most informative visualization results. Lastly, ablation experiments were performed to demonstrate the feasibility of individual modules within the DDTR framework. These experiments confirmed the effectiveness and contributions of our approach.<\/jats:p>","DOI":"10.3390\/s23187755","type":"journal-article","created":{"date-parts":[[2023,9,8]],"date-time":"2023-09-08T08:01:30Z","timestamp":1694160090000},"page":"7755","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":28,"title":["PCB Defect Detection via Local Detail and Global Dependency Information"],"prefix":"10.3390","volume":"23","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6954-694X","authenticated-orcid":false,"given":"Bixian","family":"Feng","sequence":"first","affiliation":[{"name":"Xidian University, Xi\u2019an 710126, China"},{"name":"Wide Band Gap Semiconductor Technology State Key Laboratory, Xidian University, Xi\u2019an 710071, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jueping","family":"Cai","sequence":"additional","affiliation":[{"name":"Xidian University, Xi\u2019an 710126, China"},{"name":"Wide Band Gap Semiconductor Technology State Key Laboratory, Xidian University, Xi\u2019an 710071, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,9,8]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"915","DOI":"10.1007\/s10845-014-0924-5","article-title":"Automatic optical inspection system for IC molding surface","volume":"27","author":"Chen","year":"2016","journal-title":"J. Intell. Manuf."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"277","DOI":"10.1007\/s10044-017-0640-9","article-title":"An efficient similarity measure approach for pcb surface defect detection","volume":"21","author":"Gaidhane","year":"2017","journal-title":"Pattern Anal. Appl."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Kaur, B., Kaur, G., and Kaur, A. (2014, January 6\u20138). Detection and classification of printed circuit board defects using image subtraction method. Proceedings of the Recent Advances in Engineering and Computational Sciences (RAECS), Chandigarh, India.","DOI":"10.1109\/RAECS.2014.6799537"},{"key":"ref_4","first-page":"40","article-title":"PCB defect detection, classification and localization using mathematical morphology and image processing tools","volume":"87","author":"Malge","year":"2014","journal-title":"Int. J. Comput. Appl."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Girshick, B.R. (2015). Fast R-CNN. arXiv.","DOI":"10.1109\/ICCV.2015.169"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"2980","DOI":"10.1109\/TPAMI.2018.2858826","article-title":"Focal Loss for Dense Object Detection","volume":"42","author":"Lin","year":"2020","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2015). You Only Look Once: Unified, Real-Time Object Detection. arXiv.","DOI":"10.1109\/CVPR.2016.91"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"2278","DOI":"10.1109\/5.726791","article-title":"Gradient-based learning applied to document recognition","volume":"86","author":"Lecun","year":"1998","journal-title":"Proc. IEEE"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27\u201330). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_10","unstructured":"Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, \u0141., and Polosukhin, I. (2017, January 4\u20139). Attention is all you need. Proceedings of the Advances in Neural Information Processing Systems 30 (NIPS 2017), Long Beach, CA, USA."},{"key":"ref_11","unstructured":"Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. (2020). European Conference on Computer Vision, Springer International Publishing."},{"key":"ref_12","doi-asserted-by":"crossref","unstructured":"Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11\u201317). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. Proceedings of the IEEE\/CVF International Conference on Computer Vision, Virtual Conference.","DOI":"10.1109\/ICCV48922.2021.00986"},{"key":"ref_13","unstructured":"Tang, S., He, F., Huang, X., and Yang, J. (2019). Online PCB Defect Detector On A New PCB Defect Dataset. arXiv."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"110","DOI":"10.1049\/trit.2019.0019","article-title":"TDD-net: A tiny defect detection network for printed circuit boards","volume":"4","author":"Ding","year":"2019","journal-title":"CAAI Trans. Intell. Technol."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Kim, J., Ko, J., Choi, H., and Kim, H. (2021). Printed Circuit Board Defect Detection Using Deep Learning via A Skip-Connected Convolutional Autoencoder. Sensors, 21.","DOI":"10.3390\/s21154968"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Liao, X., Lv, S., Li, D., Luo, Y., Zhu, Z., and Jiang, C. (2021). YOLOv4-MN3 for PCB Surface Defect Detection. Appl. Sci., 11.","DOI":"10.3390\/app112411701"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"23390","DOI":"10.1109\/JSEN.2021.3106057","article-title":"Multisensor Image Fusion for Automated Detection of Defects\u201d, in Printed Circuit Boards","volume":"21","author":"Li","year":"2021","journal-title":"IEEE Sensors J."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"110393","DOI":"10.1016\/j.knosys.2023.110393","article-title":"BTS-ST: Swin transformer network for segmentation and classification of multimodality breast cancer images","volume":"267","author":"Ahmed","year":"2023","journal-title":"Knowl.-Based Syst."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Wang, Z., Zhang, W., and Zhang, M.L. (2023). Transformer-based Multi-Instance Learning for Weakly Supervised Object Detection. arXiv.","DOI":"10.3390\/s22197525"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Lin, F., Ma, Y., and Tian, S.W. (2023, January 4\u20139). Exploring vision transformer layer choosing for semantic segmentation. Proceedings of the ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece.","DOI":"10.1109\/ICASSP49357.2023.10096645"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Ru, L., Zheng, H., Zhan, Y., and Du, B. (2023). Token Contrast for Weakly-Supervised Semantic Segmentation. arXiv.","DOI":"10.1109\/CVPR52729.2023.00302"},{"key":"ref_22","unstructured":"Xu, Y., Zhang, J., Zhang, Q., and Tao, D. (2022). ViTPose+: Vision Transformer Foundation Model for Generic Body Pose Estimation. arXiv."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"2077","DOI":"10.1109\/TIP.2023.3263113","article-title":"AFT: Adaptive Fusion Transformer for Visible and Infrared Images","volume":"32","author":"Chang","year":"2023","journal-title":"IEEE Trans. Image Process."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"454","DOI":"10.1016\/j.inffus.2023.02.021","article-title":"Semantic-Relation Transformer for Visible and Infrared Fused Image Quality Assessment","volume":"95","author":"Chang","year":"2023","journal-title":"Inf. Fusion"},{"key":"ref_25","unstructured":"Regmi, S., Subedi, A., Bagci, U., and Jha, D. (2023). Vision Transformer for Efficient Chest X-ray and Gastrointestinal Image Classification. arXiv."},{"key":"ref_26","unstructured":"Zhu, L., Li, Y., Fang, J., Liu, Y., Xin, H., Liu, W., and Wang, X. (2023). WeakTr: Exploring Plain Vision Transformer for Weakly-supervised Semantic Segmentation. arXiv."},{"key":"ref_27","unstructured":"Lu, C., Zhu, H., and Koniusz, P. (2023). From Saliency to DINO: Saliency-guided Vision Transformer for Few-shot Keypoint Detection. arXiv."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Cai, Z., and Vasconcelos, N. (2017, January 21\u201326). Cascade R-CNN: Delving into High Quality Object Detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2018.00644"},{"key":"ref_29","unstructured":"Ioffe, S., and Szegedy, C. (2015, January 6\u201311). Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. Proceedings of the 32nd International Conference on Machine Learning, Lille, France."},{"key":"ref_30","first-page":"315","article-title":"Deep Sparse Rectifier Neural Networks","volume":"15","author":"Glorot","year":"2011","journal-title":"J. Mach. Learn. Res."},{"key":"ref_31","unstructured":"Ba, J.L., Kiros, J.R., and Hinton, G.E. (2016). Layer Normalization. arXiv."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Lin, T.Y., Doll\u00e1r, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017, January 21\u201326). Feature Pyramid Networks for Object Detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.106"},{"key":"ref_33","unstructured":"Huang, W., and Wei, P. (2019). A PCB Dataset for Defects Detection and Classification. arXiv."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"21","DOI":"10.1007\/978-3-319-46448-0_2","article-title":"SSD: Single Shot MultiBox Detector","volume":"Volume 9905","author":"Leibe","year":"2016","journal-title":"Computer Vision\u2014ECCV 2016"},{"key":"ref_35","first-page":"1","article-title":"An insulator defect detection model in aerial images based on multiscale feature pyramid network","volume":"71","author":"Hao","year":"2022","journal-title":"IEEE Trans. Instrum. Meas."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"3525713","DOI":"10.1109\/TIM.2023.3300421","article-title":"KD-LightNet: A Lightweight Network Based on Knowledge Distillation for Industrial Defect Detection","volume":"72","author":"Liu","year":"2023","journal-title":"IEEE Trans. Instrum. Meas."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"1137","DOI":"10.1109\/TPAMI.2016.2577031","article-title":"Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks","volume":"39","author":"Ren","year":"2017","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/18\/7755\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T20:47:27Z","timestamp":1760129247000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/23\/18\/7755"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,9,8]]},"references-count":37,"journal-issue":{"issue":"18","published-online":{"date-parts":[[2023,9]]}},"alternative-id":["s23187755"],"URL":"https:\/\/doi.org\/10.3390\/s23187755","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,9,8]]}}}