Data Science & Modeling Concepts¶
Welcome to the data science and evaluation reference section for industrial anomaly detection. In visual anomaly detection (AD) systems, the core challenges lie in learning continuous normal manifolds from highly constrained clean datasets and identifying subtle, local variations without producing costly false alarms.
This section compiles the theoretical foundations, benchmark datasets, and advanced statistical evaluation frameworks used to validate model quality and robustness.
Core Data Science Chapters¶
In this section, you will find:
- MVTec AD Dataset: A detailed review of the standard, high-resolution industrial anomaly detection benchmark, its categories, target complexity, baseline architectures, and experimental findings.
- Anomaly Detection Metrics: A deep mathematical dive into standard pixel-level classification (AUROC), per-region overlap metrics (AUPRO), and the state-of-the-art normal-validated per-image overlap metric (AUPIMO) and operational factory thresholds (\(T_{AUPIMO}^{min}\)).
- Patchcore Baseline & Leakage: Documentation covering our ResNet18 Anomalib implementation of Patchcore, and how we solved the framework data leakage problem by enforcing strict normal-data thresholding.
- Keras CAE Architecture: Deep dive into the convolutional autoencoder architecture, AdamW optimizer, and combined SSIM+MSE loss.
- Keras CAE Preprocessing: Data augmentation, image loading, and Otsu+Canny foreground extraction (BGRP-G).
- Keras CAE Inference & Evaluation: Top-K pooling, adaptive thresholds (Quantile/Mahalanobis), Precision-Recall curves, and strict industrial FPR (\(10^{-5}\)) validation.
- Keras CAE Explainability: Reconstruction error heatmaps, sliding window overlap stitching, robust quantile clamping, and side-by-side ground truth validation.
- Fair PatchCore and CAE Evaluation Protocol: Scientific implementation plan, required tests, and acceptance criteria for the shared 85/15 zero-leakage comparison protocol.
- DINO Vision Transformer Baselines: Patch nearest-neighbour baselines using frozen foundation models (DINOv2/DINOv3) with foreground PCA masking and spatial density adaptations.
- Hardware Device Selection: Dynamic CPU/GPU hardware negotiation, VRAM thresholding, and AVX2 multi-threading optimizations.
- Exploratory Data Analysis Plan: Comprehensive analysis of class imbalance, pixel distribution, cross-category variance, and spatial anomaly morphology.