Optics and Precision Engineering, Volume. 32, Issue 21, 3222(2024)

YOLOv8 model-based additive manufacturing micro porosity defect detection and its dimension measurement

Yindi CAI*, Dianpeng ZHANG, Zimeng SUN, Yuxuan WANG, Xianglong ZHU, and Renke KANG
Author Affiliations
  • College of Mechanical Engineering, Dalian University of Technology, Dalian116024, China
  • show less

    To address challenges related to low detection accuracy and poor dimensional measurement precision of small defects on metal additive manufacturing surfaces, this study proposes a novel defect detection method based on the You Only Look Once (YOLO) v8 model. The Efficient Channel Attention (ECA) module is integrated into the detection head of the YOLOv8 framework, and the Complete Intersection Over Union (CIoU) loss function is replaced with the Wise Intersection Over Union (WIoU) loss function, effectively mitigating the impact of low-quality samples and enhancing detection performance. To overcome difficulties associated with training on high-resolution image datasets, which often lead to overfitting, local features containing target defects are cropped during the training phase to generate the training dataset. During inference, high-resolution test images are divided into smaller sub-images using a sliding window approach for defect prediction. Detected defect sub-images are marked as regions of interest, and precise defect size measurement is achieved through edge detection techniques in computer vision. Experimental results demonstrate that the improved model achieves a detection accuracy of 94.3%, a recall rate of 93.4%, and an mAP50 of 97.3%, significantly outperforming traditional methods. Furthermore, the dimensional measurement accuracy for small defects reaches 40 μm, highlighting the effectiveness of the proposed approach.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Yindi CAI, Dianpeng ZHANG, Zimeng SUN, Yuxuan WANG, Xianglong ZHU, Renke KANG. YOLOv8 model-based additive manufacturing micro porosity defect detection and its dimension measurement[J]. Optics and Precision Engineering, 2024, 32(21): 3222

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category:

    Received: Jul. 10, 2024

    Accepted: --

    Published Online: Jan. 24, 2025

    The Author Email: Yindi CAI (caiyd@dlut.edu.cn)

    DOI:10.37188/OPE.20243221.3222

    Topics