Abstract
Lens blemish detection is an important link in camera module production. Automatic blemish detection for camera module Lens is a challenging task, owing to sparse defect data, fast product update and low contrast between blemish and background. In this paper, A types of lens blemish detection models of camera module, named SA-LensNet, is developed using global average pooling (GAP) and Self-attention Mechanism, based on neural network visualization. The models developed are based on convolutional neural networks (CNN), and a class activation map (CAM) technique is applied to localize blemish regions without using region-level human annotations based on CNN classification network. The model has accuracy of 99% and recall of 98.7% in the module lenses classification (with and without blemish), localizing exact defect regions of blemish as well. Comparative experiments of several methods show that the proposed model has strong robustness and generalization ability for the detection of blemish.
Similar content being viewed by others
References
Aghdam HH, Heravi EJ (2017) Guide to convolutional neural networks: a practical application to traffic-sign detection and classification. Springer
Alexey Bochkovskiy (2020) Darknet: Open Source Neural Networks in Python, Available online: https://github.com/AlexeyAB/darknet
Bang HT, Park S, Jeon H (2020) Defect identification in composite materials via thermography and deep learning techniques. Compos Struct 246:112405
Bochkovskiy A, Wang CY, Liao H (2020) YOLOv4: Optimal Speed and Accuracy of Object Detection. In: Conference Record of the 2020 IEEE Conference on Computer Vision and Pattern Recognition, USA
Cao Y, Xu J, Lin S et al (2019) GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond, arXiv:1904.11492v1 [cs.CV] 25 Apr 2019
Cha YJ, Choi W, Suh G et al (2018) Autonomous structural visual inspection using region-based deep learning for detecting multiple damage types. Comp Aided Civ Infrastruct Eng 33(9):731–747
Chang F, Liu M, Dong M et al (2019) A mobile vision inspection system for tiny defect detection on smooth car-body surfaces based on deep ensemble learning. Meas Sci Technol 125905:1–10
Chang F, Liu M, Dong M et al (2019) A mobile vision inspection system for tiny defect detection of smooth car-body surface based on deep ensemble learning. Meas Sci Technol. https://doi.org/10.1088/1361-6501/ab1467
Chen S, Hu T, Liu G, Pu Z, Li M et al (2008) Defect classification algorithm for IC photomask based on PCA and SVM. In: 2008 Congress on Image and Signal Processing. IEEE Press, Sanya, 1: 491–496
Chen QL, Wang DX, Lin JG et al (2020) Surface defect detection of stamping and grinding flat parts. Forg Stamp Technol 6:168–174
Chen SH, Kang CH, Perng CB (2020) Detecting and measuring defects in wafer die using GAN and YOLOv3. Appl Sci 10(8725):8725
Chu M, Liu X, Gong R et al (2018) Multi-class classification method using twin support vector machines with multi-information for steel surface defects. Chemom Intell Lab Syst 176:108–118
Di H, Ke X, Peng Z et al (2019) Surface defect classification of steels with a new semi-supervised learning method. Opt Lasers Eng 117:40–48
Fu XW (2014) Research of the Key Technology on Detection System of Lens Defect Based on Image Recognition, Dissertation, Shenyang Ligong University
Fu J, Liu J, Tian H (2019) Dual Attention Network for Scene Segmentation. arXiv:1809.02983v4 [cs.CV] 21 Apr 2019
Gao Y, Gao L, Li X et al (2020) A semi-supervised convolutional neural network-based method for steel surface defect recognition. Robot Comput Integr Manuf 61:101825
Girshick R (2015) Fast R-CNN. In: Conference Record of the 2015 IEEE International Conference on Computer Vision. Santiago, Chile
Global CMOS Image Sensor Market Report 2018, http://www.chlueresearch.com/global-cmos-image-sensor-market-report-2018/
He K, Zhang X, Ren S et al (2014) Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition. IEEE Trans Pattern Anal Mach Intell 37(9):1904–1916
Huang JX, Li D, Ye F et al (2010) Detection of surface defection of solder on flexible printed circuit. Guangxue Jingmi Gongcheng/Opt Precis Eng 18(11):2443–2453
Ketkar N (2017) Convolutional Neural Networks. In: Deep Learning with Python. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2766-4_5
Kingam DP, Ba L (2015) Adam: a method for stochastic optimization[C]//Published as a conference paper at the 3rd International Conference for Learning Representations. San Diego
Krizhevsky A, Sutskever I, Hinton G (2012) ImageNet classification with deep convolutional neural networks. In NIPS’2012
Li A, Yang T, Zhang Y (2007) Preliminary research of surface defect recognition based on machine vision. J Chongqing Univ Posts Telecommun (Nat Sci) 19(4):442–445
Lin H, Li B, Wang X et al (2018) Automated defect inspection of LED chip using deep convolutional neural network. J Intell Manuf 30(6):2525–2534
Liu W, Anguelov D, Erhan D, et al (2016) SSD: single shot multibox detector[M]//Computer Vision-ECCV 2016. Cham: 21–37
Long J, Shelhamer E, Darrell T (2014) Fully convolutional networks for semantic segmentation. IEEE Trans Pattern Anal Mach Intell 39(4):640–651
Modhej M, Bastanfard A, Teshnehlab M et al (2020) Pattern Separation Network Based on the Hippocampus Activity for Handwritten Recognition. IEEE Access 8:212803–212817
Napoletano P, Piccoli F, Schettini R (2018) Anomaly detection in nanofibrous materials by CNN-based self-similarity. Sensors 18(1):209
Pan SJ, Yang Q (2010) A survey on transfer learning. IEEE Trans Knowl Data Eng 22(10):1345–1359
Park JK, Kwon BK, Park JH et al (2016) Machine learning-based imaging system for surface defect inspection. Int J Precis Eng Manuf Green Technol 3(3):303–310
Peng C, Zhang X, Yu G et al (2017) Large Kernel Matters-Improve Semantic Segmentation by Global Convolutional Network, arXiv:1703.02719v1 [cs.CV] 8 Mar 2017
Perkins WA (1986) INSPECTOR: a computer vision system which learn to inspect part. IEEE Trans PAMI 8(5):584–592
Pierre S, David E, Zhang X et al (2014) OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks. arXiv:1312.6229v4 [cs.CV] 24 Feb 2014
Redmon J, Farhadi A (2018) YOLOv3: An Incremental Improvement. In: Conference Record of the 2018 IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City, UT, USA
Redmon J, Divvala S, Girshick R et al (2016) You Only Look Once: Unified, Real-Time Object Detection. In: Conference Record of the 2016 IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas, NV, USA. 779–788
Ren S, He K, Girshick R et al (2017) Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans Pattern Anal Mach Intell 39(6):1137–1149
Shi XK, Hua M, Cheung EHM et al (2004) Automatic recognition and evaluation of micro-contaminant particles on ultra-smooth optical substrates using image analysis method. Opt Lasers Eng 41(6):901–917
Sun J, Wang P, Luo YK et al (2019) Surface Defects Detection Based on Adaptive Multiscale Image Collection and Convolutional Neural Networks. IEEE Trans Instrum Meas 68(12):4787–4797
Szegedy C, Ioffe S, Vanhoucke V (2017) Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning. In: Conference Record of the Thirty-First AAAI Conference on Artificial Intelligence (AAAI-2017). San Francisco
Wang Z, Zhu D (2019) An accurate detection method for surface defects of complex components based on support vector machine and spreading algorithm. Measurement 147(8):1–10
Wang H, Zhang Y, Shen HH et al (2017) Review of image enhancement algorithms. Chin J Opt 10(4):438–448
Wang T, Chen Y, Qiao M et al (2018) A fast and robust convolutional neural network-based defect detection model in product quality control. Int J Adv Manuf Technol 94:3465–3471
Wang Y, Wu ZH, Duan XY et al (2018) Design of Gear Defect Detection System Based on Machine Vision. IOP Conf Ser Earth Environ Sci 108:022025
Xi J, Shentu L, Hu J et al (2017) Automated surface inspection for steel products using computer vision approach. Appl Opt 56(2):184
Xu GS (2013) Fabric defect automated detection technology. Appl Mech Mater 325–326:1431–1434
Yu J, Lu X (2016) Wafer map defect detection and recognition using joint local and nonlocal linear discriminant analysis. IEEE Trans Semicond Manuf 29(1):33–43
Yu Z, Wu X, Gu X (2017) Fully convolutional networks for surface defect inspection in industrial environment, ICVS 2017. LNCS 10528:417–426
Yun JP, Kim D, Kim KH et al (2017) Vision-based surface defect inspection for thick steel plates. Opt Eng 56(5):053108
Zhai D, Ding YN, Li T (2014) An Overview of Non-local Image Denoising. Electro Sci Technol 27(1):160–162
Zhang N, Donahue J, Girshick R et al (2014) Part-based R-CNNs for fine-grained category detection. Eur Conf Comput Vis 8689(1):834–849
Zhou X, Wang YN, Zhu Q et al (2016) Research on defect detection method for bottle mouth based on machine vision. J Electron Meas Inst 30(5):702–713
Zhou X, Wang Y, Zhu Q et al (2019) A surface defect detection framework for glass bottle bottom using visual attention model and wavelet transform. IEEE Trans Ind Inf 16(4):2189–2201
Zeiler MD, Fergus R (2014) Visualizing and Understanding Convolutional Networks [OL]. Computer Vision-ECCV 2014. arxiv:1311.2901
Zhou B, Khosla A, Lapedriza A, Oliva A, Torralba A (2016) Learning deep features for discriminative localization. IEEE Conf Comput Vis Pattern Recogn 2016:2921–2929. https://doi.org/10.1109/CVPR.2016.319
Acknowledgements
The authors gratefully acknowledge the support of this research by the Science and Technology Research Program of Chongqing Municipal Education Commission (No. KJQN201801213), and the Science and Technology Research Program of Chongqing Municipal Education Commission (Grant No. KJZD-M201901201).
Author information
Authors and Affiliations
Corresponding author
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
Yang, M., Wu, J. & Niu, X. Camera module Lens blemish detection based on neural network interpretability. Multimed Tools Appl 81, 5373–5388 (2022). https://doi.org/10.1007/s11042-021-11716-z
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-021-11716-z