Journal of Computer Applications ›› 2025, Vol. 45 ›› Issue (2): 647-654.DOI: 10.11772/j.issn.1001-9081.2024020198

• Multimedia computing and computer simulation • Previous Articles    

Lightweight large-format tile defect detection algorithm based on improved YOLOv8

Songsen YU(), Zhifan LIN, Guopeng XUE, Jianyu XU   

  1. School of Software,South China Normal University,Foshan Guangdong 528225,China
  • Received:2024-02-28 Revised:2024-06-08 Accepted:2024-06-17 Online:2024-07-19 Published:2025-02-10
  • Contact: Songsen YU
  • About author:LIN Zhifan, born in 2001, M. S. candidate. His research interests include computer vision.
    XUE Guopeng, born in 1999, M. S. candidate. His research interests include computer vision.
    XU Jianyu, born in 2001, M. S. candidate. His research interests include computer vision.
  • Supported by:
    Regional Joint Fund for Basic and Applied Basic Research Fund of Guangdong Province (Key Project)(2020B1515120089)

基于改进YOLOv8的轻量级大幅面瓷砖缺陷检测算法

余松森(), 林智凡, 薛国鹏, 徐建宇   

  1. 华南师范大学 软件学院,广东 佛山 528225
  • 通讯作者: 余松森
  • 作者简介:林智凡(2001—),男,广东汕尾人,硕士研究生,主要研究方向:计算机视觉
    薛国鹏(1999—),男,江西赣州人,硕士研究生,主要研究方向:计算机视觉
    徐建宇(2001—),男,江西上饶人,硕士研究生,主要研究方向:计算机视觉。
  • 基金资助:
    广东省基础与应用基础研究基金省市联合基金重点项目(2020B1515120089)

Abstract:

In view of the problems of current tile defect detection mainly relying on manual detection, such as strong subjectivity, low efficiency, and high labor intensity, an improved lightweight algorithm for detecting small defects in large-format ceramic tile images based on YOLOv8 was proposed. Firstly, the high-resolution large-format image was cropped, and HorBlock was introduced into the backbone network to enhance model’s capture capability. Secondly, Large Separable Kernel Attention (LSKA) was incorporated to improve C2f for improving the detection performance of the model and model’s feature extraction capability was enhanced by introducing SA (Shuffle Attention). Finally, Omni-Dimensional Dynamic Convolution (ODConv) was introduced to further enhance model’s capability to handle with small defects. Experimental results on Alibaba Tianchi tile defect detection dataset show that the improved model not only has lower parameters than the original YOLOv8n, but also has an increase of 8.2 percentage points in mAP@0.5 and an increase of 7 percentage points in F1 score compared to the original YOLOv8n. It can be seen that the improved model can identify and process small surface defects of large-format tiles more accurately, and improve the detection effect significantly while maintaining lightweight.

Key words: tile defect detection, small object detection, YOLOv8, deep learning, lightweight

摘要:

针对当前瓷砖缺陷检测主要依靠人工检测导致的主观性强、效率低、劳动强度大等问题,提出一种基于改进YOLOv8的轻量级大幅面瓷砖图像微小缺陷检测算法。首先,对高分辨率大幅面图像进行裁切处理,并在骨干网络中引入HorBlock增强模型的捕捉能力;其次,融入大型可分离内核注意力(LSKA)改进C2f提高模型的检测性能,并通过引入SA(Shuffle Attention)增强模型的特征提取能力;最后,引入全维度动态卷积(ODConv)进一步增强模型对微小缺陷的处理能力。在阿里天池瓷砖瑕疵检测数据集上的实验结果表明:改进后的模型不仅参数量比原始YOLOv8n低,而且mAP@0.5提升了8.2个百分点,F1分数提升了7个百分点。可见,改进后的模型能更精确地识别和处理大幅面瓷砖的微小表面缺陷,且能在保持轻量级的同时,显著提升检测效果。

关键词: 瓷砖缺陷检测, 小目标检测, YOLOv8, 深度学习, 轻量级

CLC Number: