[Paper Review] PNI : Industrial Anomaly Detection using Position and Neighborhood Information
PNI proposes a novel industrial anomaly detection and localization method that models normal feature distributions using conditional probabilities based on position and neighborhood information via a multi-layer perceptron, while refining anomaly maps with a separate network trained on synthetic anomalies. It achieves state-of-the-art performance with 99.56% AUROC in anomaly detection and 98.98% in localization on the MVTec AD benchmark.
Because anomalous samples cannot be used for training, many anomaly detection and localization methods use pre-trained networks and non-parametric modeling to estimate encoded feature distribution. However, these methods neglect the impact of position and neighborhood information on the distribution of normal features. To overcome this, we propose a new algorithm, extbf{PNI}, which estimates the normal distribution using conditional probability given neighborhood features, modeled with a multi-layer perceptron network. Moreover, position information is utilized by creating a histogram of representative features at each position. Instead of simply resizing the anomaly map, the proposed method employs an additional refine network trained on synthetic anomaly images to better interpolate and account for the shape and edge of the input image. We conducted experiments on the MVTec AD benchmark dataset and achieved state-of-the-art performance, with extbf{99.56\%} and extbf{98.98\%} AUROC scores in anomaly detection and localization, respectively.
Motivation & Objective
- To address the limitation of existing methods that ignore positional and neighborhood correlations in normal feature distributions during anomaly detection.
- To improve localization accuracy by modeling conditional normal feature distributions based on spatial context and neighboring features.
- To reduce false positive and false negative rates in industrial inspection by refining anomaly maps using synthetic data.
- To enable high-precision defect localization without relying on real abnormal training samples.
Proposed method
- Position information is modeled by constructing a histogram of normal features at each spatial position across all training images.
- Neighborhood feature dependencies are captured using a multi-layer perceptron (MLP) that conditions the normal feature distribution on the concatenation of neighboring features.
- Anomaly scores are computed by combining the conditional probability from neighborhood modeling with the positional histogram-based distribution.
- A separate refinement network is trained exclusively on synthetic anomaly images to enhance the spatial fidelity of the anomaly map, improving edge and shape accuracy.
- The refinement network is not used for feature encoding or score estimation but only to refine the final anomaly map post-inference.
- The method is compatible with any representation-based approach using pre-trained networks and non-parametric feature modeling.
Experimental results
Research questions
- RQ1Can incorporating position and neighborhood information in the normal feature distribution modeling improve anomaly detection and localization performance?
- RQ2How does modeling conditional probability over neighboring features affect the detection of subtle structural anomalies?
- RQ3To what extent can a refinement network trained on synthetic data improve the spatial precision of anomaly maps?
- RQ4Does the integration of positional and neighborhood modeling reduce false positive and false negative rates in industrial inspection?
Key findings
- PNI achieves a 99.56% AUROC in anomaly detection and 98.98% in localization on the MVTec AD benchmark, outperforming prior state-of-the-art methods.
- The inclusion of neighborhood information alone improves anomaly detection AUROC from 98.92% to 99.44%, reducing error by approximately 48.1%.
- Position information provides notable gains in object subcategories but minimal improvement in texture subcategories, as expected.
- Pixel-wise refinement reduces the false negative rate from 10.7% (PatchCore) to 9.5% and the false positive rate from 3.4% to 2.0% on the metal nut subcategory.
- The method reduces total misclassification errors from 42 (PatchCore) to 19 across 1,725 test images, with 7 false positives and 12 false negatives compared to 19 and 23, respectively.
- On the BTAD dataset, PNI achieves a 97.8% average P-AUROC, outperforming all compared state-of-the-art methods across all product categories.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.