Attention-guided few-shot learning for metal surface defect classification

Abstract In the era of industrial transformation and intelligent manufacturing, ensuring the surface quality of metal materials is crucial for maintaining component performance and system reliability. Although deep learning-based visual inspection has shown promise in automating defect detection, existing methods heavily rely on large-scale labeled data, which are often scarce and costly to obtain in industrial settings. Furthermore, the high inter-class similarity and variability of metal surface textures pose additional challenges to robust defect classification under low-data regimes. To address these issues, we propose an attention-guided few-shot learning framework specifically tailored for metal surface defect classification. Our method comprises two key components. First, we design a Dual-Branch Attention Module to enhance feature extraction by explicitly modeling both channel-wise dependencies and spatial saliency. This module leverages lightweight convolutional operations to highlight discriminative regions and mitigate feature degradation due to limited training data. Second, we introduce a Cross-Set Guided Attention mechanism to improve semantic alignment between support and query samples. By employing scaled dot-product attention, the model dynamically adjusts feature representations based on cross-sample correlations, thereby enabling fine-grained discrimination of visually similar defect types. Extensive experiments conducted on benchmark metal defect datasets demonstrate that our framework significantly outperforms existing few-shot learning baselines in both classification accuracy and generalization capability. The proposed method provides a practical and efficient solution for real-time industrial quality inspection in data-scarce scenarios.

Authors

Institutions

Publication Details

Journal
Multimedia Systems
Published
2025-10-17
DOI
https://doi.org/10.1007/s00530-025-02030-x
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Attention-guided few-shot learning for metal surface defect classification

Zhenglin Li, Yue Zhang, Xiaoyu Liu, Xu Chen et al.
Multimedia Systems
Industrial Vision Systems and Defect Detection
article

Attention-guided few-shot learning for metal surface defect classification

Zhenglin Li, Yue Zhang, Xiaoyu Liu, Xu Chen, Qin Wang
article en

Abstract

Abstract In the era of industrial transformation and intelligent manufacturing, ensuring the surface quality of metal materials is crucial for maintaining component performance and system reliability. Although deep learning-based visual inspection has shown promise in automating defect detection, existing methods heavily rely on large-scale labeled data, which are often scarce and costly to obtain in industrial settings. Furthermore, the high inter-class similarity and variability of metal surface textures pose additional challenges to robust defect classification under low-data regimes. To address these issues, we propose an attention-guided few-shot learning framework specifically tailored for metal surface defect classification. Our method comprises two key components. First, we design a Dual-Branch Attention Module to enhance feature extraction by explicitly modeling both channel-wise dependencies and spatial saliency. This module leverages lightweight convolutional operations to highlight discriminative regions and mitigate feature degradation due to limited training data. Second, we introduce a Cross-Set Guided Attention mechanism to improve semantic alignment between support and query samples. By employing scaled dot-product attention, the model dynamically adjusts feature representations based on cross-sample correlations, thereby enabling fine-grained discrimination of visually similar defect types. Extensive experiments conducted on benchmark metal defect datasets demonstrate that our framework significantly outperforms existing few-shot learning baselines in both classification accuracy and generalization capability. The proposed method provides a practical and efficient solution for real-time industrial quality inspection in data-scarce scenarios.

Multimedia SystemsVol. 31(6)
Peking University (CN), UNSW Sydney (AU), Monash University (AU), University of Birmingham (GB), Texas A&M University (US)
Openalex Percentile: Top 58%
Industrial Vision Systems and Defect Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.