Abstract & Overview
In intelligent assembly, screw holes localisation is susceptible to environmental disturbances and hardware limitations, leading to screw misalignment and increased development costs. To address this, an improved instance segmentation model, YOLOv8-SM-Seg, is proposed for precise screw hole localisation. A digital twin system integrating the robot operating system (ROS) with Unity is constructed to enable virtual debugging and cost reduction. YOLOv8-SM-Seg incorporates ShuffleNetV2 for model lightweighting and a multi-scale dilated attention (MSDA) module for enhanced robustness. A combined dataset is created from the WEEE screw disassembly dataset and a custom circuit board dataset. The proposed model achieves a mAP of 96.4%, improving upon YOLOv8-Seg while reducing parameters and computational cost by 30% and 22%, respectively. Compared with models from the past two years, including YOLOv11-Seg, YOLOv8-RFA, YOLOv8-duidie, and YOLOv8-lanslide, YOLOv8-SM-Seg achieves a competitive recall of 92.7%, only 0.2% lower than YOLOv8-duidie, but with 2.9% and 1.5% improvements in precision and mAP. It also outperforms YOLOv11-Seg in precision by 0.9% while maintaining a similar mAP. Screw hole localisation is mapped to world coordinates via YOLOv8-SM-Seg and homography calibration, and ArUco markers enable real-time pose tracking. The proposed approach demonstrates high accuracy and efficiency for digital twin-based intelligent assembly.