DCSA-YOLO: 優化YOLO11的鋼鐵表面缺陷檢測模型
DCSA-YOLO : Steel Surface Defect Detection Model Based on Improved YOLO11
摘要
在工業領域中鋼鐵製造業佔有非常重要的地位,鋼鐵缺陷檢測是工業中提升產品質量與生產力的重要步驟儘管人工智慧與相關技術發展迅速,提出了許多新穎的模型取代傳統檢測方式,但在檢測的實時性與準確度之間進行權衡時,仍存在一定侷限性。本研究提出一種基於YOLO11的DCSA-YOLO模型,能勝任要求實時性與準確度的工業缺陷檢測任務。本模型不同於其他模型著重於單一特徵提取模組的強化,DCSA-YOLO整合了多分支擴張係數的DW Conv和注意力機制,並採用Focal-EIoU損失函數解決樣本不平衡問題,進一步提升模型對多樣化缺陷和複雜背景的適應能力,新增預處理模塊,對資料集的高變化亮度及對比度進行自適應調整,藉此強化模型特徵提取能力,以及新增特徵融合模塊,透過雙注意力機制增強模型識別重要特徵的能力。依據以上的新穎點,DCSA-YOLO可以同時保有傑出的偵測性能與高檢測速度的能力。實驗結果顯示,DCSA-YOLO在NEU-DET資料集上mAP@50達到了83.6%且FPS達到了149.3與Transformer和YOLOv5結合的MSFT-YOLO相比,DCSA-YOLO的 mAP@50提升了16.4%,FPS提升了46.4%。此外與基礎模型YOLO11相比,DCSA-YOLO的mAP@50提升了3.2%而FPS僅減少1.4%。本研究主要貢獻是提出能夠同時保有優秀的偵測性能與實時的檢測速度的DCSA-YOLO,是能在鋼鐵缺陷檢測任務中十分出色的檢測器。
Defect Steel defect detection is essential for maintaining product quality and optimizing manufacturing efficiency. Despite advances in deep learning, balancing accuracy and real-time performance in defect detection remains a challenge.
This study proposes DCSA-YOLO, a YOLO11-based model designed to enhance both precision and speed. It integrates multi-branch dilated depthwise convolutions and attention mechanisms to improve feature extraction while leveraging an adaptive preprocessing module for robustness to lighting and contrast variations. Additionally, a dual-attention mechanism enhances feature fusion, improving defect localization, and the Focal-EIoU loss function mitigates sample imbalance.
Experimental results on the NEU-DET dataset show that DCSA-YOLO achieves 83.6% mAP and 149.3 FPS, Compared to MSFT-YOLO it improves accuracy by 16.4% and increase speed by 46.4%. Compared to YOLO11, it improves accuracy by 3.2% with only a 1.4% speed reduction. These results demonstrate DCSA-YOLO’s effectiveness in real-time defect detection, offering a balance of speed and accuracy for industrial deployment.
This study proposes DCSA-YOLO, a YOLO11-based model designed to enhance both precision and speed. It integrates multi-branch dilated depthwise convolutions and attention mechanisms to improve feature extraction while leveraging an adaptive preprocessing module for robustness to lighting and contrast variations. Additionally, a dual-attention mechanism enhances feature fusion, improving defect localization, and the Focal-EIoU loss function mitigates sample imbalance.
Experimental results on the NEU-DET dataset show that DCSA-YOLO achieves 83.6% mAP and 149.3 FPS, Compared to MSFT-YOLO it improves accuracy by 16.4% and increase speed by 46.4%. Compared to YOLO11, it improves accuracy by 3.2% with only a 1.4% speed reduction. These results demonstrate DCSA-YOLO’s effectiveness in real-time defect detection, offering a balance of speed and accuracy for industrial deployment.