基于CLAHE和改进YOLOv8的焊缝冷阴极X光缺陷检测

    Research on Weld Cold Cathode X-ray Defect Detection Based on CLAHE and Improved YOLOv8

    • 摘要: 核电站建设对焊缝质量要求非常严格,使用智能手段替代人工射线评片具有重要意义。然而核电现场拍摄的X光片图像成像质量较低,导致焊缝缺陷智能检测精度低。针对冷阴极X光片图像,将CT值映射为灰度值,然后通过灰度取补以及CLAHE算法优化图像对比度,从而将X光片数据处理成较为清晰的图像。针对焊缝缺陷检测问题,对YOLOv8n模型进行改进,增加小目标检测层、将边界损失函数更换为Wise-IoU以及增加GAM注意力机制来提高网络特征提取能力。实验表明:经过对图像以及模型的两阶段优化处理,改进后的缺陷检测模型相对原始模型将mAP@0.5∶0.95提高了29.8%。在精度与复杂模型YOLOv5x接近的情况下,参数量和浮点运算量仅为后者的4%和6%,且模型大小不到7 MB,利于工业场景中便携式低性能设备的部署使用。

       

      Abstract: Nuclear power plant construction imposes stringent quality requirements on welds, underscoring the significance of utilizing intelligent methods to replace manual radiographic inspection. However, the image quality of X-ray photographs taken at nuclear power sites is generally low, leading to reduced accuracy in intelligent detection of weld defects.In addressing cold cathode X-ray images, this study maps CT values to grayscale values, then employs grayscale inversion and the CLAHE algorithm to enhance image contrast, thus processing X-ray data into clearer images. For weld defect detection,the study modifies the YOLOv8n model by adding a layer for detecting small objects, replacing the boundary loss function with Wise-IoU, and incorporating the GAM attention mechanism to boost the network’s feature extraction capability.Experimental results indicate that, through two-phase optimization of both image and model, the improved defect detection model raised the mAP@0.5 ∶0.95 by 29.8% relative to the original model. With accuracy nearing that of the more complex YOLOv5x model, the parameter count and floating-point operations are only 4% and 6% of the latter, respectively, and the model size is under 7 MB, facilitating deployment on portable, low-performance devices in industrial settings.

       

    /

    返回文章
    返回