Abstract
Unlike objects (such as cats and dogs) in the ImageNet, the surface defects on chips have a relatively tiny defect areas, yet they contain a large amount of information. The traditional deep learning methods have unsatisfied performance for tiny defects. Therefore, we proposed an object detection network combining attention with YOLOV4 for tiny defect detection, denoted as YOLOV4-SA. The network consists of a feature extraction backbone, a spatial attention module (SAM) and a feature fusion module. The SAM can correct the value of the feature map and highlight the defect areas, which identifies the tiny defects more effectively. To support current and future research, we also constructed a chip-surface-defect dataset, including a real set and a synthetic set. The real set contains non-defective and defective images. The synthetic set was generated by three new defect-generation methods. To the best of our knowledge, this is the first defect dataset in the field of advanced packaging chips. YOLOV4-SA was trained and tested on this dataset. Compared with classical defect detection methods, YOLOV4-SA achieved 78.47 mAP (mean of average precision), which was at least 7% better than other methods. For tiny ink and crack defects, the mAP was improved by 11.92 compared with YOLOV4. Lastly, we also proposed a cascading deployment method which may be useful for industrial applications.
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig1_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig2_HTML.jpg)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig3_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig4_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig5_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig6_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig7_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig8_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig9_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig10_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig11_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig12_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs00170-022-09425-4/MediaObjects/170_2022_9425_Fig13_HTML.png)
Similar content being viewed by others
Availability of data and material
The chip-surface-defect dataset has been uploaded to the BaiDu cloud platform, and can be downloaded via the link https://pan.baidu.com/s/1DsZyyO4ITtsLWqFyGS2KEA.
Code availability
The code cannot be shared at this time due to company secret.
References
Zheng X, Zheng S, Kong Y, Chen J (2021) Recent advances in surface defect inspection of industrial products using deep learning techniques. Int J Adv Manuf Technol 1–24
Tao X, Hou W, Xu D (2020) A survey of surface defect detection methods based on deep learning. Acta Automatica Sinica 1:19
Wang T, Chen Y, Qiao M, Snoussi H (2018) A fast and robust convolutional neural network-based defect detection model in product quality control. Int J Adv Manuf Technol 94:3465–3471
He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. Proc IEEE Conf Comput Vis Pattern Recognit 770–778
He K, Gkioxari G, Dollár P, Girshick R (2017) Mask r-cnn. Proc IEEE Int Conf Comput Vis 2961–2969
Bochkovskiy A, Chien-Yao W, Liao HYM (2020) YOLOv4: optimal speed and accuracy of object detection arXiv. arXiv (USA) 17
Wang CY, Bochkovskiy A, Liao HYM (2021) Scaled-yolov4: Scaling cross stage partial network. Proc IEEE/CVF Conf Computer Vis Pattern Recognit 13029–13038
Woo S, Park J, Lee JY, Kweon IS (2018) Cbam: Convolutional block attention module. Proc Eur Conf Comput Vis (ECCV) 3–19
Kyeong K, Kim H (2018) Classification of mixed-type defect patterns in wafer bin maps using convolutional neural networks. IEEE Trans Semicond Manuf 31:395–402
Xiong XH, Liu FJ, Liu Y, Ma LH, Wang Q, Ieee (2014) Research and outlook of wireless flip chip package technology development. Ieee, New York
Liu Z, Qu B (2021) Machine vision based online detection of PCB defect. Microprocess Microsyst 82:103807
Li C, Lan H-Q, Sun Y-N, Wang J-Q (2021) Detection algorithm of defects on polyethylene gas pipe using image recognition. Int J Press Vessels Pip 191:104381
Zhong F, He S, Li B (2017) Blob analyzation-based template matching algorithm for LED chip localization. Int J Adv Manuf Technol 93:55–63
Wang Q, Yang R, Wu C, Liu Y (2021) An effective defect detection method based on improved Generative Adversarial Networks (iGAN) for machined surfaces. J Manuf Process 65:373–381
Shu YF, Li B, Lin H (2021) Quality safety monitoring of LED chips using deep learning-based vision inspection methods. Measurement 168:10
Dimitriou N, Leontaris L, Vafeiadis T, Ioannidis D, Wotherspoon T, Tinker G, Tzovaras D (2020) A Deep Learning framework for simulation and defect prediction applied in microelectronics. Simul Model Pract Theory 100:9
Wu H, Gao WB, Xu XR (2020) Solder Joint Recognition Using Mask R-CNN Method. IEEE Trans Compon Pack Manuf Technol 10:525–530
Stern ML, Schellenberger M (2021) Fully convolutional networks for chip-wise defect detection employing photoluminescence images Efficient quality control in LED manufacturing. J Intell Manuf 32:113–126
Dung CV (2019) Autonomous concrete crack detection using deep fully convolutional neural network. Autom Constr 99:52–58
Girshick R, Donahue J, Darrell T, Malik J (2014) Rich feature hierarchies for accurate object detection and semantic segmentation. Proc IEEE Conf Comput Vis Pattern Recognit 1:580–587
Cha YJ, Choi W, Suh G, Mahmoudkhani S, Buyukozturk O (2018) Autonomous structural visual inspection using region-based deep learning for detecting multiple damage types. Comput Aided Civil Infrastruct Eng 33:731–747
Tang S, He F, Huang X, Yang J (2019) Online pcb defect detector on a new pcb defect dataset. arXiv preprint arXiv:1902.06197
Su BY, Chen HY, Chen P, Bian GB, Liu K, Liu WP (2021) Deep Learning-Based Solar-Cell Manufacturing Defect Detection With Complementary Attention Network. IEEE Trans Ind Inform 17:4084–4095
Hu J, Shen L, Sun G (2018) Squeeze-and-excitation networks. Proc IEEE Conf Comput Vis Pattern Recognit 7132–7141
Tabernik D, Sela S, Skvarc J, Skocaj D (2020) Segmentation-based deep-learning approach for surface-defect detection. J Intell Manuf 31:759–776
Chen JW, Liu ZG, Wang HR, Nunez A, Han ZW (2018) Automatic defect detection of fasteners on the catenary support device using deep convolutional neural network. IEEE Trans Instrum Meas 67:257–269
Mayr M, Hoffmann M, Maier A, Christlein V (2019) Weakly supervised segmentation of cracks on solar cells using normalized L p norm. IEEE Int Conf Image Process (ICIP) 1885–1889
Niu SL, Li B, Wang XG, Lin H (2020) Defect image sample generation with GAN for improving defect recognition. IEEE Trans Autom Sci Eng 17:1611–1622
Huang Q, Wu Y, Baruch J, Jiang P, Peng Y (2009) A template model for defect simulation for evaluating nondestructive testing in x-radiography. IEEE Trans Syst Man Cybern Part A Syst Hum 39:466–475
Lin H, Li B, Wang XG, Shu YF, Niu SL (2019) Automated defect inspection of LED chip using deep convolutional neural network. J Intell Manuf 30:2525–2534
He K, Zhang X, Ren S, Sun J (2015) Spatial pyramid pooling in deep convolutional networks for visual recognition. IEEE Trans Pattern Anal Mach Intell 37:1904–1916
Liu S, Qi L, Qin H, Shi J, Jia J (2018) Path aggregation network for instance segmentation. Proc IEEE Conf Comput Vis Pattern Recognit 8759–8768
Wang CY, Liao HYM, Wu YH, Chen PY, Hsieh JW, Yeh IH (2020) CSPNet: A new backbone that can enhance learning capability of CNN. Proc IEEE/CVF Conf Comput Vis Pattern Recognit Workshops 390–391
Zheng Z, Wang P, Liu W, Li J, Ye R, Ren D (2020) Distance-IoU loss: Faster and better learning for bounding box regression. Proc AAAI Conf Artif Intell 34:12993–13000
Grady L (2006) Random walks for image segmentation. IEEE Trans Pattern Anal Mach Intell 28:1768–1783
Lin TY, Goyal P, Girshick R, He K, Dollár P (2017) Focal loss for dense object detection. Proc IEEE Int Conf Comput Vis 2980–2988
Acknowledgements
This work was supported by the National Natural Science Foundation of China (Grant No. 61972220) and the Shenzhen Grand Technology Corporation.
Funding
This study was supported by the National Natural Science Foundation of China (Grant No. 61972220) and the Shenzhen Grand Technology Corporation.
Author information
Authors and Affiliations
Contributions
Wang Shuo, Wang Hongyu and Yang Fan designed and implemented the networks. Liu Fei and Zeng Long contributed to the dataset, network design and writing, and also provided meaningful discussion and support.
Corresponding author
Ethics declarations
Ethics approval
The authors declare that this manuscript was not submitted to more than one journal for simultaneous consideration. The submitted work is original and not has been published elsewhere in any form or language.
Consent to participate
The authors declare that they participated in this paper willingly.
Consent for publication
The authors declare to consent to the publication of this paper.
Conflicts of interest/competing interests
The authors declare that they have no conflict of interest.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Wang, S., Wang, H., Yang, F. et al. Attention-based deep learning for chip-surface-defect detection. Int J Adv Manuf Technol 121, 1957–1971 (2022). https://doi.org/10.1007/s00170-022-09425-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00170-022-09425-4