{"title":"Adaptive Dual-Attention DenseNet for Object-Aware Two-Stage Industrial Defect Detection.","authors":"Jiandong Liu, Lina Qi","doi":"10.3791/73920","DOIUrl":null,"url":null,"abstract":"<p><p>Industrial visual anomaly detection is crucial in intelligent manufacturing to achieve automated quality inspection with low dependency on manual inspection. Nevertheless, traditional single-stage deep learning methods struggle to detect both object classes and fine-grained anomalies across various industrial products. Furthermore, most existing channel attention mechanisms rely on a single attention type, limiting their ability to capture both global contextual information and local channel dependencies. In this paper, we present an Adaptive Dual-Attention Network (ADA-Net) for high-shot, two-stage, supervised industrial anomaly detection. The framework has a hierarchical architecture of two consecutive stages - Stage I for multi-class object classification and Stage II for binary object anomaly detection. The backbone network for feature extraction in both stages is pretrained DenseNet121. We provide an Adaptive Dual-Attention (ADA) module that uses a globally learned scalar fusion coefficient to combine Efficient Channel Attention (ECA) and Squeeze-and-Excitation (SE) representations for improved feature representation. ADA-Net is tested on the VisA dataset using the conventional 2cls_highshot supervised setup. It employs the weighted cross-entropy loss function, adaptive learning-rate scheduling, and early stopping in training. Experiment results show that our proposed ADA-Net can reach 100% Accuracy, Recall, Precision, ROC-AUC, F1-score, Cohen's Kappa, and MCC in Stage I, and Stage II results include 97.11% Accuracy, 92.84% Precision, 92.45% Recall, 92.64% F1-score, 98.00% ROC-AUC, 0.8529 MCC, and 0.8529 Cohen's Kappa. Ablation experiments and qualitative Grad-CAM analysis support the validity and explainability of the suggested framework on the evaluated VisA benchmark.</p>","PeriodicalId":48787,"journal":{"name":"Jove-Journal of Visualized Experiments","volume":" 236","pages":""},"PeriodicalIF":1.2000,"publicationDate":"2026-10-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Jove-Journal of Visualized Experiments","FirstCategoryId":"103","ListUrlMain":"https://doi.org/10.3791/73920","RegionNum":4,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Industrial visual anomaly detection is crucial in intelligent manufacturing to achieve automated quality inspection with low dependency on manual inspection. Nevertheless, traditional single-stage deep learning methods struggle to detect both object classes and fine-grained anomalies across various industrial products. Furthermore, most existing channel attention mechanisms rely on a single attention type, limiting their ability to capture both global contextual information and local channel dependencies. In this paper, we present an Adaptive Dual-Attention Network (ADA-Net) for high-shot, two-stage, supervised industrial anomaly detection. The framework has a hierarchical architecture of two consecutive stages - Stage I for multi-class object classification and Stage II for binary object anomaly detection. The backbone network for feature extraction in both stages is pretrained DenseNet121. We provide an Adaptive Dual-Attention (ADA) module that uses a globally learned scalar fusion coefficient to combine Efficient Channel Attention (ECA) and Squeeze-and-Excitation (SE) representations for improved feature representation. ADA-Net is tested on the VisA dataset using the conventional 2cls_highshot supervised setup. It employs the weighted cross-entropy loss function, adaptive learning-rate scheduling, and early stopping in training. Experiment results show that our proposed ADA-Net can reach 100% Accuracy, Recall, Precision, ROC-AUC, F1-score, Cohen's Kappa, and MCC in Stage I, and Stage II results include 97.11% Accuracy, 92.84% Precision, 92.45% Recall, 92.64% F1-score, 98.00% ROC-AUC, 0.8529 MCC, and 0.8529 Cohen's Kappa. Ablation experiments and qualitative Grad-CAM analysis support the validity and explainability of the suggested framework on the evaluated VisA benchmark.
期刊介绍:
JoVE, the Journal of Visualized Experiments, is the world''s first peer reviewed scientific video journal. Established in 2006, JoVE is devoted to publishing scientific research in a visual format to help researchers overcome two of the biggest challenges facing the scientific research community today; poor reproducibility and the time and labor intensive nature of learning new experimental techniques.