Sha Ruibo, Zhang Zhifeng, Cui Xiao, Mu Qingzheng
Software Engineering College, Zhengzhou University of Light Industry, Zhengzhou, Henan, China.
PLoS One. 2025 Aug 21;20(8):e0330677. doi: 10.1371/journal.pone.0330677. eCollection 2025.
Sewer pipeline defect detection is a critical task for ensuring the normal operation of urban infrastructure. However, the sewer environment often presents challenges such as multi-scale defects, complex backgrounds, lighting changes, and diverse defect morphologies. To address these issues, this paper proposes a lightweight cross-scale feature fusion model based on YOLOv8. First, the C2f module in the backbone network is replaced with the C2f-FAM module to enhance multi-scale feature extraction capabilities. Second, the HS-BiFPN module is adopted to replace the original structure, leveraging cross-layer semantic fusion and feature re-weighting mechanisms to improve the model's ability to distinguish complex backgrounds and diverse defect morphologies. Finally, DySample is introduced to replace traditional sampling operations, enhancing the model's ability to capture details in complex environments. This study uses the Sewer-ML dataset to train and evaluate the model, selecting 1,158 images containing six types of typical defects (CK, PL, SG, SL, TL, ZW), and expanding the dataset to 1,952 images through data augmentation. Experimental results show that compared to the YOLOv8n model, the improved model achieves a 3.8% increase in mAP, while reducing the number of parameters by 35%, floating-point operations by 21%, and model size by 33%. By improving detection accuracy while achieving model lightweighting, the model demonstrates potential for application in pipeline defect detection.
下水道管道缺陷检测是确保城市基础设施正常运行的一项关键任务。然而,下水道环境常常带来多尺度缺陷、复杂背景、光照变化以及多样的缺陷形态等挑战。为解决这些问题,本文提出了一种基于YOLOv8的轻量级跨尺度特征融合模型。首先,将主干网络中的C2f模块替换为C2f-FAM模块,以增强多尺度特征提取能力。其次,采用HS-BiFPN模块替换原结构,利用跨层语义融合和特征重加权机制来提高模型区分复杂背景和多样缺陷形态的能力。最后,引入DySample来替换传统采样操作,增强模型在复杂环境中捕捉细节的能力。本研究使用Sewer-ML数据集对模型进行训练和评估,选取包含六种典型缺陷(CK、PL、SG、SL、TL、ZW)的1158张图像,并通过数据增强将数据集扩展至1952张图像。实验结果表明,与YOLOv8n模型相比,改进后的模型mAP提高了3.8%,同时参数数量减少了35%,浮点运算减少了21%,模型大小减少了33%。该模型在提高检测精度的同时实现了模型轻量化,展现了在管道缺陷检测中的应用潜力。