EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

Lightweight Transformer-Enhanced YOLOv11 for Real-Time Fabric Defect Detection: A Systematic Comparison with DETR-Based Architectures

Makara Mao, Min Hong

Electronics · 2026-07-23 · 15 (15) · 3244

DOI: 10.3390/electronics15153244 ↗

At a glance

Journal article in Electronics, published online on 2026-07-23. Written by Makara Mao and 1 co-authors. 35 references. The full text is freely available (open access, CC BY 4.0). Funded by: National Research Foundation of Korea, Ministry of Education, BK21 FOUR.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Fabric defect detection is a critical task in automated textile quality inspection, where both high localization accuracy and fast inference are required, especially for small and irregular defects. Although recent YOLO-based detectors offer a favorable balance of speed and accuracy, their convolutional architectures primarily capture local features and are less effective at detecting defects that require broader contextual understanding. Transformer-based detectors improve global context modeling but typically introduce higher computational complexity. To balance this trade-off, this study proposes a lightweight hybrid detector, YOLOv11-Transformer, which integrates multi-head self-attention (MHSA) modules into the backbone and neck of YOLOv11. The model was evaluated on a fabric defect dataset of 4375 images covering four defect categories: holes, cuts, thread errors, and metallic contamination. Comparative experiments were conducted against YOLOv5, YOLOv8, YOLOv9, YOLOv10, YOLOv11, YOLOv11-DETR, and RT-DETR under unified training conditions, with additional efficiency benchmarks against YOLOv6 and YOLOv7-Tiny. The proposed model achieved the best mAP50-95 of 94.50%, outperforming the baseline YOLOv11 by 2.40 percentage points, while maintaining efficient inference at 14.2 ms per image (approximately 70 FPS) on an NVIDIA RTX 4060 GPU. These results indicate that lightweight attention integration can improve fine-grained defect localization while preserving a practical accuracy-efficiency trade-off for automated textile inspection.

Funding

  • National Research Foundation of Korea
  • Ministry of Education
  • BK21 FOUR
  • Soonchunhyang University Research Fund

Cite

APA

Mao, M., & Hong, M. (2026). Lightweight Transformer-Enhanced YOLOv11 for Real-Time Fabric Defect Detection: A Systematic Comparison with DETR-Based Architectures. Electronics, 15(15), 3244. https://doi.org/10.3390/electronics15153244

Vancouver

Mao M, Hong M. Lightweight Transformer-Enhanced YOLOv11 for Real-Time Fabric Defect Detection: A Systematic Comparison with DETR-Based Architectures. Electronics. 2026;15(15):3244. doi:10.3390/electronics15153244

BibTeX
@article{Mao2026,
  author = {Mao, Makara and Hong, Min},
  title = {Lightweight Transformer-Enhanced YOLOv11 for Real-Time Fabric Defect Detection: A Systematic Comparison with DETR-Based Architectures},
  journal = {Electronics},
  year = {2026},
  volume = {15},
  number = {15},
  pages = {3244},
  doi = {10.3390/electronics15153244}
}
Start for free →