Multi-scale feature enhancement for defect detection in deep and dark-colored fabrics
Small defects on deep and dark-colored fabrics are difficult to distinguish from repetitive weave patterns. We develop a YOLOv12n-based detector that preserves defect features across scales and refines their localization. A Softplus-weighted BiFPN-style neck (SP-BiFPN) and residual-gated channel prior convolutional attention (RG-CPCA) shortcuts improve feature transfer, while quality-guided local differentiable non-maximum suppression (QL-DNMS) refines candidate boxes and scale-based dynamic loss (SD Loss) conditions regression on target area. On Tianchi, the detector achieved 69.2% mAP50 and 49.2% mAP50-95, improving on YOLOv12n by 1.7 and 1.9 percentage points. Five-fold cross-validation on our DarkFabric-350 dataset yielded 76.3 ± 1.6% mAP50 and 55.3 ± 1.4% mAP50-95 (mean ± sample standard deviation), with gains of 2.4 and 3.5 points over the baseline. Mean recall increased from 68.7% to 72.6%. The model used 2.82 million parameters and 6.4 GFLOPs and reached 89.8 FPS. These results support improved defect coverage and localization with practical inference speed in the evaluated fabric inspection settings.
Authors
- W. Wang (ORCID: https://orcid.org/0009-0001-4006-774X)
- Yuan Fang (ORCID: https://orcid.org/0000-0003-3502-0792)
- Xuanzhen Zhang
- Huaxu Li (ORCID: https://orcid.org/0009-0006-3602-9034)
- Ting Wang
- Fengyi Tang
- Zishuai Wang
- Wenbo Wu
Institutions
- Dalian Polytechnic University (CN)
Publication Details
- Journal
- Journal of the Textile Institute
- Published
- 2026-11-29
- DOI
- https://doi.org/10.1080/00405000.2026.2768175
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00