Open Access Article

Title: A case study on vision-based intelligent inspection for surface defect detection in CNC machining using YOLOv7 and transfer learning

Authors: Peng Zhou; Shanshan Kong

Addresses: School of Information Engineering, Shandong Huayu University of Technology, Dezhou, 253034, China ' School of Information Engineering, Shandong Huayu University of Technology, Dezhou, 253034, China

Abstract: This paper introduces vision-based intelligent inspection system to detect surface defects in CNC-machined parts by using a YOLOv7-based transfer learning model. The manual inspection systems used traditionally are laborious, subjective, and prone to mistakes, thus necessitating automated solutions. The suggested YTL-ISDD system takes advantage of the high-resolution images taken under controlled lighting to detect defects, including scratches, cracks, pits, and burrs. The model makes use of pre-trained YOLOv7 weights that improve feature extraction and minimise the training time. The amount of data augmentation, such as rotation, scaling, flipping, and contrast adjustment, is used to enhance robustness and generalisation in different conditions of surfaces. The system can be easily integrated into CNC production environments, and it can detect defects in real-time, accurately, and consistently with minimum human involvement, which enhances the quality of products and efficiency of production.

Keywords: CNC machining; surface defect detection; YOLOv7; transfer learning; intelligent inspection.

DOI: 10.1504/IJICT.2026.153992

International Journal of Information and Communication Technology, 2026 Vol.27 No.62, pp.1 - 26

Received: 07 Nov 2025
Accepted: 01 Dec 2025

Published online: 09 Jun 2026 *