Improving Industrial Quality Control: A Transfer Learning Approach to Surface Defect Detection
Abstract
:1. Introduction
2. Related Work
2.1. Illumination Strategies for the Image Acquisition Module
2.2. Transfer Learning for Feature Extraction and Decision-Making
3. Proposed Methodology
3.1. Image Acquisition and Processing
3.1.1. Experimental Setup
3.1.2. Generation of the Sinusoidal Patterns
3.1.3. Dataset Generation
3.2. Feature Extraction and Classification Using Convolutional Neural Networks
3.2.1. Approach 1: Self-Built CNN
3.2.2. Approach 2: Pre-Trained CNNs
3.3. Automation of the Defect Detection Process
4. Results and Discussion
4.1. Dataset Acquisition and Generation
4.2. Performance of the Defect Detection and Classification Models
4.3. Performance of the Automatic Detection and Classification System
5. Conclusions
- The two illumination modes of the image acquisition module significantly widened the type of defects that could be identified with this system, while maintaining its computational complexity by performing multi-modal fusion at the decision level.
- Pre-trained networks performed better than the self-built networks, with ResNet-50 exhibiting the best performance in terms of accuracy (higher than 95%) and speed for all defect categories.
- Decreasing the sinusoidal pattern’s stripe’s width substantially improved ResNet-50’s accuracy and error convergency when applied for dented painted surfaces.
- The entire sequence of the inspection system allowed for a fast (less than 1 s) and correct detection of all defect categories by imposing OK classification on models trained with images derived from both illumination modes: sinusoidal pattern and bright field.
- The overall painted surface information was readily and correctly sent to the MES server, via telegram, which then forwarded it to a GUI.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Imad, M.; Hopkins, C.; Hosseini, A.; Yussefian, N.Z.; Kishawy, H.A. Intelligent Machining: A Review of Trends, Achievements and Current Progress. Int. J. Comput. Integr. Manuf. 2022, 35, 359–387. [Google Scholar] [CrossRef]
- Molina, J.; Solanes, J.E.; Arnal, L.; Tornero, J. On the Detection of Defects on Specular Car Body Surfaces. Robot. Comput. Integr. Manuf. 2017, 48, 263–278. [Google Scholar] [CrossRef]
- Armesto, L.; Tornero, J.; Herraez, A.; Asensio, J. Inspection System Based on Artificial Vision for Paint Defects Detection on Cars Bodies. In Proceedings of the 2011 IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011; pp. 1–4. [Google Scholar]
- Akhtar, S.; Tandiya, A.; Moussa, M.; Tarry, C. An Efficient Automotive Paint Defect Detection System. Adv. Sci. Technol. Eng. Syst. 2019, 4, 171–182. [Google Scholar] [CrossRef]
- Liong, S.T.; Zheng, D.; Huang, Y.C.; Gan, Y.S. Leather Defect Classification and Segmentation Using Deep Learning Architecture. Int. J. Comput. Integr. Manuf. 2020, 33, 1105–1117. [Google Scholar] [CrossRef]
- Chang, F.; Dong, M.; Liu, M.; Wang, L.; Duan, Y. A Lightweight Appearance Quality Assessment System Based on Parallel Deep Learning for Painted Car Body. IEEE Trans. Instrum. Meas. 2020, 69, 5298–5307. [Google Scholar] [CrossRef]
- Guan, J.; Fei, J.; Li, W.; Jiang, X.; Wu, L.; Liu, Y.; Xi, J. Defect Classification for Specular Surfaces Based on Deflectometry and Multi-Modal Fusion Network. Opt. Lasers Eng. 2023, 163, 107488. [Google Scholar] [CrossRef]
- Puente León, F.; Kammel, S. Inspection of Specular and Painted Surfaces with Centralized Fusion Techniques. Measurement 2006, 39, 536–546. [Google Scholar] [CrossRef]
- Zhang, Y.; Sidibé, D.; Morel, O.; Mériaudeau, F. Deep Multimodal Fusion for Semantic Image Segmentation: A Survey. Image Vis. Comput. 2021, 105, 104042. [Google Scholar] [CrossRef]
- Berwo, M.A.; Fang, Y.; Mahmood, J.; Yang, N.; Liu, Z.; Li, Y. FAECCD-CNet: Fast Automotive Engine Components Crack Detection and Classification Using ConvNet on Images. Appl. Sci. 2022, 12, 9713. [Google Scholar] [CrossRef]
- Ma, G.; Yu, L.; Yuan, H.; Xiao, W.; He, Y. A Vision-Based Method for Lap Weld Defects Monitoring of Galvanized Steel Sheets Using Convolutional Neural Network. J. Manuf. Process 2021, 64, 130–139. [Google Scholar] [CrossRef]
- Singh, S.A.; Kumar, A.S.; Desai, K.A. Comparative Assessment of Common Pre-Trained CNNs for Vision-Based Surface Defect Detection of Machined Components. Expert. Syst. Appl. 2023, 218, 119623. [Google Scholar] [CrossRef]
- Venkatesh, S.N.; Sugumaran, V. A Combined Approach of Convolutional Neural Networks and Machine Learning for Visual Fault Classification in Photovoltaic Modules. Proc. Inst. Mech. Eng. O. J. Risk Reliab. 2022, 236, 148–159. [Google Scholar] [CrossRef]
- Trofimov, A.G.; Bogatyreva, A.A. A Method of Choosing a Pre-Trained Convolutional Neural Network for Transfer Learning in Image Classification Problems. In Proceedings of the Advances in Neural Computation, Machine Learning, and Cognitive Research III: Neuroinformatics 2019, Dolgoprudny, Moscow Region, Russia, 7–11 October 2019; pp. 263–270. [Google Scholar]
- Semitela, Â.; Ferreira, A.; Completo, A.; Lau, N.; Santos, J.P. Detecting and Classifying Defects on the Surface of Water Heaters: Development of an Automated System. Proc. Inst. Mech. Eng. Part. E J. Process Mech. Eng. 2024. [Google Scholar] [CrossRef]
- Malamas, E.N.; Petrakis, E.G.M.; Zervakis, M.; Petit, L.; Legat, J.-D. A Survey on Industrial Vision Systems, Applications and Tools. Image Vis. Comput. 2003, 21, 171–188. [Google Scholar] [CrossRef]
- Ren, Z.; Fang, F.; Yan, N.; Wu, Y. State of the Art in Defect Detection Based on Machine Vision. Int. J. Precis. Eng. Manuf. Green Technol. 2022, 9, 661–691. [Google Scholar] [CrossRef]
- Mullany, B.; Savio, E.; Haitjema, H.; Leach, R. The Implication and Evaluation of Geometrical Imperfections on Manufactured Surfaces. CIRP Ann. 2022, 71, 717–739. [Google Scholar] [CrossRef]
- Li, Z.; Yao, Y.; Wen, R.; Liu, Q. Dual-Modal Illumination System for Defect Detection of Aircraft Glass Canopies. Sensors 2024, 24, 6717. [Google Scholar] [CrossRef]
- Peng, X.; Kong, L.; Han, W.; Wang, S. Multi-Sensor Image Fusion Method for Defect Detection in Powder Bed Fusion. Sensors 2022, 22, 8023. [Google Scholar] [CrossRef] [PubMed]
- Hu, Z.; Jing, Y.; Wu, G. Decision-Level Fusion Detection Method of Visible and Infrared Images under Low Light Conditions. EURASIP J. Adv. Signal Process 2023, 2023, 38. [Google Scholar] [CrossRef]
- Cong, T.; Yongshun, L.; Hua, Y.; Xing, Y.; Yuan, L. Decision-Level Fusion Detection for Infrared and Visible Spectra Based on Deep Learning. Infrared Laser Eng. 2019, 48, 626001. [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] [PubMed]
- Zhou, Q.; Chen, R.; Huang, B.; Xu, W.; Yu, J. DeepInspection: Deep Learning Based Hierarchical Network for Specular Surface Inspection. Measurement 2020, 160, 107834. [Google Scholar] [CrossRef]
- Namatēvs, I. Deep Convolutional Neural Networks: Structure, Feature Extraction and Training. Inf. Technol. Manag. Sci. 2018, 20, 40–47. [Google Scholar] [CrossRef]
- Taye, M.M. Theoretical Understanding of Convolutional Neural Network: Concepts, Architectures, Applications, Future Directions. Computation 2023, 11, 52. [Google Scholar] [CrossRef]
- Purwono, P.; Ma’arif, A.; Rahmaniar, W.; Fathurrahman, H.I.K.; Frisky, A.Z.K.; Haq, Q.M. ul Understanding of Convolutional Neural Network (CNN): A Review. Int. J. Robot. Control. Syst. 2023, 2, 739–748. [Google Scholar] [CrossRef]
- Luo, C.; Li, X.; Wang, L.; He, J.; Li, D.; Zhou, J. How Does the Data Set Affect CNN-Based Image Classification Performance? In Proceedings of the 5th International Conference on Systems and Informatics (ICSAI), Nanjing, China, 10–12 November 2018; pp. 361–366. [Google Scholar]
- Le, X.; Mei, J.; Zhang, H.; Zhou, B.; Xi, J. A Learning-Based Approach for Surface Defect Detection Using Small Image Datasets. Neurocomputing 2020, 408, 112–120. [Google Scholar] [CrossRef]
- Yosinski, J.; Clune, J.; Bengio, Y.; Lipson, H. How Transferable Are Features in Deep Neural Networks? In Proceedings of the 28th Annual Conference on Neural Information Processing Systems; Ghahramani, Z., Weinberger, K.Q., Cortes, C., Lawrence, N.D., Welling, M., Eds.; Neural Information Processing Systems Foundation: Montreal, QC, Canada, 2014; pp. 3320–3328. [Google Scholar]
- Safonova, A.; Ghazaryan, G.; Stiller, S.; Main-Knorn, M.; Nendel, C.; Ryo, M. Ten Deep Learning Techniques to Address Small Data Problems with Remote Sensing. Int. J. Appl. Earth Obs. Geoinf. 2023, 125, 103569. [Google Scholar] [CrossRef]
- Weiss, K.; Khoshgoftaar, T.M.; Wang, D. A Survey of Transfer Learning. J. Big Data 2016, 3, 9. [Google Scholar] [CrossRef]
- Tulbure, A.-A.; Tulbure, A.-A.; Dulf, E.-H. A Review on Modern Defect Detection Models Using DCNNs—Deep Convolutional Neural Networks. J. Adv. Res. 2022, 35, 33–48. [Google Scholar] [CrossRef] [PubMed]
- Cong, S.; Zhou, Y. A Review of Convolutional Neural Network Architectures and Their Optimizations. Artif. Intell. Rev. 2023, 56, 1905–1969. [Google Scholar] [CrossRef]
- Alzubaidi, L.; Zhang, J.; Humaidi, A.J.; Al-Dujaili, A.; Duan, Y.; Al-Shamma, O.; Santamaría, J.; Fadhel, M.A.; Al-Amidie, M.; Farhan, L. Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions. J. Big Data 2021, 8, 53. [Google Scholar] [CrossRef] [PubMed]
- Zhang, L.; Bian, Y.; Jiang, P.; Zhang, F. A Transfer Residual Neural Network Based on ResNet-50 for Detection of Steel Surface Defects. Appl. Sci. 2023, 13, 5260. [Google Scholar] [CrossRef]
- EL Ghadoui, M.; Mouchtachi, A.; Majdoul, R. Smart Defect Detection Using Transfer Learning in Injection Molding: A Comparative Exploration Study of Deep Learning Architectures. Int. J. Adv. Manuf. Technol. 2024, 133, 625–639. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 26 June–1 July 2016; IEEE Computer Society: Washington, DC, USA, 2016; pp. 770–778. [Google Scholar]
- Park, H.; Kang, Y.S.; Choi, S.-K.; Park, H.W. Quality Evaluation Modeling of a DED-Processed Metallic Deposition Based on ResNet-50 with Few Training Data. J. Intell. Manuf. 2024. [Google Scholar] [CrossRef]
- Kiran, G.U.; Gajula, S.; Sravanthi, A.; Srilakshmi, V.; Veditha, T.; Reddy, D.V. Inception V3 Model-Based Approach for Detecting Defects on Steel Surfaces. In Proceedings of the 2024 2nd International Conference on Intelligent Data Communication Technologies and Internet of Things (IDCIoT), Bengaluru, India, 4–6 January 2024; pp. 331–335. [Google Scholar]
- Merino, I.; Azpiazu, J.; Remazeilles, A.; Sierra, B. 3D Convolutional Neural Networks Initialized from Pretrained 2D Convolutional Neural Networks for Classification of Industrial Parts. Sensors 2021, 21, 1078. [Google Scholar] [CrossRef] [PubMed]
- Qayyum, W.; Ehtisham, R.; Bahrami, A.; Camp, C.; Mir, J.; Ahmad, A. Assessment of Convolutional Neural Network Pre-Trained Models for Detection and Orientation of Cracks. Materials 2023, 16, 826. [Google Scholar] [CrossRef]
- Victor Ikechukwu, A.; Murali, S.; Deepu, R.; Shivamurthy, R.C. ResNet-50 vs VGG-19 vs Training from Scratch: A Comparative Analysis of the Segmentation and Classification of Pneumonia from Chest X-Ray Images. Glob. Transit. Proc. 2021, 2, 375–381. [Google Scholar] [CrossRef]
- Mao, W.-L.; Chiu, Y.-Y.; Lin, B.-H.; Wang, C.-C.; Wu, Y.-T.; You, C.-Y.; Chien, Y.-R. Integration of Deep Learning Network and Robot Arm System for Rim Defect Inspection Application. Sensors 2022, 22, 3927. [Google Scholar] [CrossRef] [PubMed]
- Wang, X.; Gao, S.; Guo, J.; Wang, C.; Xiong, L.; Zou, Y. Deep Learning-Based Integrated Circuit Surface Defect Detection: Addressing Information Density Imbalance for Industrial Application. Int. J. Comput. Intell. Syst. 2024, 17, 29. [Google Scholar] [CrossRef]
- Singh, S.A.; Desai, K.A. Automated Surface Defect Detection Framework Using Machine Vision and Convolutional Neural Networks. J. Intell. Manuf. 2022, 34, 1995–2011. [Google Scholar] [CrossRef]
- Razavi, M.; Mavaddati, S.; Koohi, H. ResNet Deep Models and Transfer Learning Technique for Classification and Quality Detection of Rice Cultivars. Expert. Syst. Appl. 2024, 247, 123276. [Google Scholar] [CrossRef]
- Macher, J.; Gruber, D.P.; Altenbuchner, T.; Pacher, G.A.; Berger, G.R.; Friesenbichler, W. Detection of Visually Perceptible Sink Marks on High Gloss Injection Molded Parts by Phase Measuring Deflectometry. Polym. Test. 2014, 34, 42–48. [Google Scholar] [CrossRef]
- Liu, J.; Guo, F.; Gao, H.; Li, M.; Zhang, Y.; Zhou, H. Defect Detection of Injection Molding Products on Small Datasets Using Transfer Learning. J. Manuf. Process 2021, 70, 400–413. [Google Scholar] [CrossRef]
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Semitela, Â.; Pereira, M.; Completo, A.; Lau, N.; Santos, J.P. Improving Industrial Quality Control: A Transfer Learning Approach to Surface Defect Detection. Sensors 2025, 25, 527. https://doi.org/10.3390/s25020527
Semitela Â, Pereira M, Completo A, Lau N, Santos JP. Improving Industrial Quality Control: A Transfer Learning Approach to Surface Defect Detection. Sensors. 2025; 25(2):527. https://doi.org/10.3390/s25020527
Chicago/Turabian StyleSemitela, Ângela, Miguel Pereira, António Completo, Nuno Lau, and José P. Santos. 2025. "Improving Industrial Quality Control: A Transfer Learning Approach to Surface Defect Detection" Sensors 25, no. 2: 527. https://doi.org/10.3390/s25020527
APA StyleSemitela, Â., Pereira, M., Completo, A., Lau, N., & Santos, J. P. (2025). Improving Industrial Quality Control: A Transfer Learning Approach to Surface Defect Detection. Sensors, 25(2), 527. https://doi.org/10.3390/s25020527