A prototype-aligned multi-scale attention network for few-shot industrial surface defect detection.
Rubing Huang, Lianyi Zhao
School of Computer and Information Technology, Anhui Vocational and Technical College, Hefei, Anhui, China. · School of Electrical and Mechanical Engineering, Anhui Water Conservancy and Hydropower Vocational and Technical College, Hefei, Anhui, China.
Key points
From the paper's conclusion- The results support region-level prototype alignment for limited-label metallic surface inspection under the evaluated datasets and two-stage configuration.
Abstract
Few-shot industrial surface defect detection remains challenging because annotated defect images are scarce, defect scales vary considerably, and textured backgrounds can cause false responses. This study proposes a Prototype-Aligned Multi-Scale Attention Network (PA-MSAN) that integrates multi-receptive-field feature extraction, spatial-channel attention, and region of interest (RoI)-level prototype matching within a two-stage detector. Experiments are conducted on NEU-DET under 1-shot, 3-shot, and 5-shot episode settings, with 5-shot cross-domain evaluation on GC10-DET using target-domain support prototypes. Multi-scale feature-pyramid fusion represents local textures and broader defect morphology, while attention weighting enhances defect-sensitive regions and channels before region proposal network (RPN) proposal generation and RoI Align. Few-shot classification is performed by cosine similarity between RoI features and class prototypes, and training jointly optimizes detection classification, bounding-box regression, region proposal, and Prototype Alignment Loss (PAL). Under the 5-shot NEU-DET setting, PA-MSAN achieves 92.2 ± 0.4% mean average precision (mAP)@0.5, 88.7 ± 0.4% small-object average precision (APsmall), 0.89 ± 0.01 average intersection over union (IoU), and a 4.1 ± 0.2% background false response rate, with 23.4 ms detection time and 18.7 × 10⁶ parameters. Compared with Faster R-CNN, PA-MSAN improves mAP@0.5 by 2.9 percentage points and APsmall by 3.9 percentage points while reducing the background false response rate by 1.7 percentage points. Under the 5-shot target-domain support setting, PA-MSAN achieves 86.4 ± 0.4% mAP@0.5 on GC10-DET, 5.8 percentage points (6.3%) below the corresponding NEU-DET result. The results support region-level prototype alignment for limited-label metallic surface inspection under the evaluated datasets and two-stage configuration.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Attention-guided few-shot learning for metal surface defect classificationMultimedia Systems · 2025
- DFANet: A Lightweight Dual-Branch Feature-Aggregation Network for Metal Surface Defect Detection.Journal of imaging · 2026
- Few-shot defect detection in industrial scenarios: a comprehensive review of challenges, advances, and frontier trendsInternational Journal of Metrology and Quality Engineering · 2026
- MGF-DETR: a DETR-based network with multi-granularity convolution and high-frequency feature enhancement for industrial defect detectionEngineering Research Express · 2026
- S3DNet: Support-Driven Spatial–Semantic Decoupling for Few-Shot Strip-Steel Surface Defect SegmentationMathematics · 2026
- Edge-guided multi-scale transformer detection for robust steel surface defect inspectionMeasurement Science and Technology · 2026