DOI: https://doi.org/10.1109/tii.2024.3523574
تاريخ النشر: 2025-01-16
المؤلف: Yunkang Cao وآخرون
الموضوع الرئيسي: تقنيات الكشف عن الشذوذ وتطبيقاتها
نظرة عامة
تقدم هذه الورقة VarAD، وهو نهج جديد لاكتشاف الشذوذ في الصور عالية الدقة (HRIAD)، والذي يتناول التحديات التي تطرحها المتطلبات الحسابية المتزايدة والحاجة إلى تحسين التقاط المعلومات العالمية في السياقات عالية الدقة. يعيد VarAD صياغة مهمة اكتشاف الشذوذ كمشكلة توقع رموز بصرية، مستفيدًا من نموذج متقدم يسمى Mamba لنمذجة الانحدار الذاتي البصري. تتضمن الطريقة استخراج تسلسلات رموز بصرية متعددة المستويات ومتعددة الاتجاهات، مما يسمح لـ VarAD باستخدام المعلومات من الرموز السابقة لتوقع الرمز المستهدف. يتم تقييم الشذوذ بناءً على الفروق بين الرموز المتوقعة والأصلية.
تظهر التجارب الواسعة التي أجريت على أربعة مجموعات بيانات متاحة للجمهور، بالإضافة إلى مجموعة بيانات تفتيش الأزرار في العالم الحقيقي، أن VarAD يتفوق على الطرق الحالية في اكتشاف الشذوذ في الصور عالية الدقة مع الحفاظ على بنية خفيفة الوزن. تشير النتائج إلى أن VarAD هو حل واعد لـ HRIAD. تشمل اتجاهات البحث المستقبلية توسيع VarAD لتمكين اكتشاف الشذوذ في وقت واحد عبر فئات متعددة وتعزيز أدائه على مستوى الصورة. الشيفرة الخاصة بـ VarAD متاحة للجمهور على الرابط المقدم في GitHub.
مقدمة
في مقدمة ورقة البحث، يقدم المؤلفون تحليلًا مقارنًا لطريقتهم المقترحة، VarAD، مقابل البدائل الحالية في إعداد اكتشاف الشذوذ في الصور عالية الدقة (HRIAD). تكشف النتائج، الملخصة في الجدول II، أنه بينما تؤدي الطرق المعتمدة مثل PatchCore و RD4AD بشكل جيد في السيناريوهات منخفضة الدقة، فإن فعاليتها تتناقص بشكل كبير في السياقات عالية الدقة. على العكس من ذلك، يظهر CDO أداءً قويًا بفضل هيكله الأساسي HRNet، مما يبرز أهمية المعلومات العالمية في HRIAD. ومن الجدير بالذكر أنه على الرغم من استخدام المحولات البصرية، فإن AMI-Net و PNPT تؤديان بشكل أقل مقارنة بالطرق الأخرى. ومع ذلك، يتفوق VarAD عبر جميع مجموعات البيانات، محققًا درجات AUROC مثيرة للإعجاب تبلغ 97.7%، 98.5%، 97.8%، و 98.8%، ويتفوق بشكل كبير على CDO بنسبة 6.5% و 5.0% في درجات max-F1 على BTAD و DTD-Synthetic، على التوالي.
بالإضافة إلى ذلك، تشير نتائج اكتشاف الشذوذ على مستوى الصورة، المقدمة في الجدول III، إلى انخفاض عام في الأداء لجميع الطرق عند الانتقال من الدقة المنخفضة إلى HRIAD. على سبيل المثال، تنخفض AUROC الخاصة بـ PatchCore من 99.1% إلى 93.1% على MVTec AD. بينما تظهر MSFlow و CDO نتائج تنافسية على MVTec AD و VisA، يحقق VarAD أعلى أداء على BTAD و DTD-Synthetic، متجاوزًا أقرب منافسيه بنسبة 0.2% و 0.4% في AUROC، على التوالي. تؤكد هذه النتائج فعالية VarAD في التقاط السياق العالمي وتعزيز اكتشاف الشذوذ في الصور عالية الدقة.
طرق
تعالج منهجية VarAD مهمة اكتشاف الشذوذ في الصور عالية الدقة (HRIAD)، والتي يتم تأطيرها ضمن نموذج اكتشاف الشذوذ غير الخاضع للإشراف. تتكون مجموعة بيانات التدريب، المشار إليها بـ \( T_{\text{train}} \)، من صور عالية الدقة (1024×1024 بكسل) تمثل حالات طبيعية لفئة منتج معينة. الهدف الأساسي هو إنشاء نموذج يمكنه اكتشاف الشذوذ في الصور غير المرئية من نفس الفئة وإنتاج خريطة شذوذ \( A \in \mathbb{R}^{H \times W} \)، حيث \( H \) و \( W \) يت correspond to the image dimensions. في هذه الخريطة، تشير القيم الأعلى إلى احتمال أكبر للشذوذ عند إحداثيات معينة، مع انعكاس الدرجة القصوى للشذوذ العام للصورة.
لتقييم فعالية طريقة VarAD المقترحة، يتم إجراء تحليل مقارن ضد عدة تقنيات مثبتة لاكتشاف الشذوذ. يشمل ذلك كل من الطرق المعتمدة على CNN مثل PFM و RD4AD و PatchCore و CDO و PyramidFlow و MSFlow، بالإضافة إلى الأساليب المعتمدة على المحولات مثل AMI-Net و PNPT. تستخدم الدراسة تنفيذات متاحة للجمهور لهذه الطرق، مع تعديل دقة الإدخال لضمان تقييم عادل لأدائها في اكتشاف الشذوذ في الصور عالية الدقة.
نقاش
في هذا القسم، يناقش المؤلفون التحديات والتقدم في اكتشاف الشذوذ في الصور عالية الدقة (HRIAD)، مؤكدين على قيود الطرق التقليدية منخفضة الدقة. يبرزون أن اكتشاف الشذوذات الصغيرة (حوالي 1mm²) في الصور عالية الدقة (1024 × 1024) أكثر فعالية بشكل ملحوظ من الصور منخفضة الدقة (256 × 256)، حيث تشغل هذه الشذوذات بكسلات قليلة فقط. تقدم الدراسة VarAD، وهو نموذج جديد يعيد صياغة اكتشاف الشذوذ كمهمة توقع رموز باستخدام نمذجة الانحدار الذاتي البصري. تهدف هذه الطريقة إلى التقاط المعلومات العالمية مع الحفاظ على الكفاءة الحسابية، مع معالجة قيود الطرق الحالية التي تعتمد إما على المعلومات المحلية أو تعاني من تكاليف حسابية عالية بسبب الهياكل المعتمدة على المحولات.
يستخدم VarAD طريقة استخراج تسلسل رموز بصرية متعددة المستويات ومتعددة الاتجاهات، مستفيدًا من نموذج رؤية مدرب مسبقًا (DINO) للتجزئة. يتوقع النموذج الرموز المستقبلية بناءً على الرموز السابقة، مستفيدًا من نموذج Mamba الانحداري الذاتي لتقليل التعقيد إلى مقياس خطي. يقدم المؤلفون نتائج تجريبية تظهر الأداء المتفوق لـ VarAD عبر أربع مجموعات بيانات عامة، متفوقًا على الطرق الحالية في كل من مقاييس مستوى البكسل ومستوى الصورة. تسهم الدراسة في هذا المجال من خلال توفير معيار شامل لـ HRIAD واقتراح نموذج خفيف الوزن يلتقط المعلومات العالمية بفعالية، مما يعزز التطبيق العملي لاكتشاف الشذوذ في السياقات الصناعية.
DOI: https://doi.org/10.1109/tii.2024.3523574
Publication Date: 2025-01-16
Author(s): Yunkang Cao et al.
Primary Topic: Anomaly Detection Techniques and Applications
Overview
This paper introduces VarAD, a novel approach for High-Resolution Image Anomaly Detection (HRIAD), which addresses the challenges posed by the increased computational demands and the need for enhanced global information capture in high-resolution contexts. VarAD reformulates the anomaly detection task as a visual token prediction problem, leveraging an advanced model called Mamba for visual autoregressive modeling. The method involves extracting multi-hierarchy and multi-directional visual token sequences, allowing VarAD to utilize information from preceding tokens to predict the target token. Anomalies are scored based on the discrepancies between predicted and original tokens.
Extensive experiments conducted on four publicly available datasets, along with a real-world button inspection dataset, demonstrate that VarAD outperforms existing methods in high-resolution image anomaly detection while maintaining a lightweight architecture. The findings suggest that VarAD is a promising solution for HRIAD. Future research directions include extending VarAD to enable simultaneous anomaly detection across multiple categories and enhancing its performance at the image level. Code for VarAD is publicly available at the provided GitHub link.
Introduction
In the introduction of the research paper, the authors present a comparative analysis of their proposed method, VarAD, against existing alternatives in the high-resolution image anomaly detection (HRIAD) setting. The findings, summarized in Table II, reveal that while established methods like PatchCore and RD4AD perform well in low-resolution scenarios, their effectiveness diminishes significantly in high-resolution contexts. Conversely, CDO demonstrates strong performance due to its HRNet backbone, highlighting the importance of global information in HRIAD. Notably, despite employing vision transformers, AMI-Net and PNPT underperform relative to other methods. VarAD, however, excels across all datasets, achieving impressive AUROC scores of 97.7%, 98.5%, 97.8%, and 98.8%, and significantly outperforms CDO by 6.5% and 5.0% in max-F1 scores on BTAD and DTD-Synthetic, respectively.
Additionally, the image-level anomaly detection results, presented in Table III, indicate a general decline in performance for all methods when transitioning from low-resolution to HRIAD. For example, PatchCore’s AUROC drops from 99.1% to 93.1% on MVTec AD. While MSFlow and CDO show competitive results on MVTec AD and VisA, VarAD achieves the highest performance on BTAD and DTD-Synthetic, surpassing its closest competitors by 0.2% and 0.4% in AUROC, respectively. These results underscore the effectiveness of VarAD in capturing global context and enhancing anomaly detection in high-resolution images.
Methods
The VarAD methodology addresses the High-Resolution Image Anomaly Detection (HRIAD) task, which is framed within an unsupervised anomaly detection paradigm. The training dataset, denoted as \( T_{\text{train}} \), comprises high-resolution images (1024×1024 pixels) that represent normal instances of a specific product category. The primary goal is to create a model that can detect anomalies in unseen images from the same category and produce an anomaly map \( A \in \mathbb{R}^{H \times W} \), where \( H \) and \( W \) correspond to the image dimensions. In this map, higher values indicate a greater likelihood of abnormality at specific coordinates, with the maximum score reflecting the overall anomaly degree of the image.
To evaluate the effectiveness of the proposed VarAD method, a comparative analysis is conducted against several established anomaly detection techniques. This includes both CNN-based methods such as PFM, RD4AD, PatchCore, CDO, PyramidFlow, and MSFlow, as well as transformer-based approaches like AMI-Net and PNPT. The study utilizes publicly available implementations of these methods, adjusting input resolutions to ensure a fair assessment of their performance in detecting anomalies in high-resolution images.
Discussion
In this section, the authors discuss the challenges and advancements in high-resolution image anomaly detection (HRIAD), emphasizing the limitations of traditional low-resolution methods. They highlight that detecting small anomalies (approximately 1mm²) in high-resolution images (1024 × 1024) is significantly more effective than in low-resolution images (256 × 256), where such anomalies occupy only a few pixels. The study introduces VarAD, a novel model that reformulates anomaly detection as a token prediction task using visual autoregressive modeling. This approach aims to capture global information while maintaining computational efficiency, addressing the limitations of existing methods that either rely on local information or suffer from high computational costs due to transformer-based architectures.
VarAD employs a multi-hierarchy and multi-directional visual token sequence extraction method, utilizing a pre-trained vision model (DINO) for tokenization. The model predicts future tokens based on preceding ones, leveraging the Mamba autoregressive model to reduce complexity to a linear scale. The authors present experimental results demonstrating VarAD’s superior performance across four public datasets, outperforming existing methods in both pixel-level and image-level metrics. The study contributes to the field by providing a comprehensive benchmark for HRIAD and proposing a lightweight model that effectively captures global information, thus advancing the practical application of anomaly detection in industrial contexts.
