cs.CVSep 10, 2026

Variational Template Matching with Statistical Fusion for Anomaly Detection in Patterned Structures

Authors: Qinwu Xu, Yifan Jiang

Abstract

Anomaly detection in structured images is challenging in small-data settings where deep learning approaches are costly or impractical. Classical template matching is simple and interpretable but lacks robustness to geometric variations such as scale, rotation, and perspective. We propose a variational template matching framework that represents anomaly templates as a family of transformed instances and performs detection via normalized cross-correlation over this transformation space. To further improve robustness, we introduce a density-based statistical anomaly score derived from local intensity distributions using kernel density estimation (KDE). This produces a smooth representation that captures distributional concentration and tail behavior more robustly than histogram-based methods. The structural and statistical signals are integrated through a unified fusion formulation, enabling complementary modeling of geometric similarity and distributional deviation. Experiments on biological cell images demonstrate that the proposed method outperforms classical baselines and achieves competitive performance with ResNet-50 under a fully training-free setting, while providing explicit localization. The approach offers an efficient, interpretable, and practical solution for anomaly detection in structured image domains.

Figures & tables

Explore similar work

CardsList
  1. MATCH: Flow Matching for Multi-View Anomaly Detection

    Jun 23, 2026Mathis Kruse, Melissa Schween, Bodo RosenhahnIndustrial Anomaly DetectionAnomaly Localization

  2. HiMatch-AD: DINOv3-driven Hierarchical Matching for Training-free Medical Anomaly Detection

    Jun 21, 2026Jiayu Huo, Jingyuan Hong, Meng Zhou +2Medical Image Anomaly Detection

  3. StructCore: Structure-Aware Image-Level Scoring for Training-Free Unsupervised Anomaly Detection

    Feb 19, 2026Joongwon Chae, Lihui Luo, Yang Liu +8Unsupervised Anomaly DetectionAnomaly Detection