This project addresses the challenge of detecting defects in images with highly textured backgrounds, common in industrial manufacturing. By leveraging graph Fourier analysis (Sandryhaila & Moura, 2014), the approach identifies defective images and crucial graph Fourier coefficients that highlight defects. Our 1D-CNN architecture achieves 99.4% classification accuracy with SHAP values (Lundberg & Lee, 2017) providing interpretable insights into spectral coefficient importance.
-
Clone the repository:
git clone https://github.com/ganatma/GFT-based-Anomaly-Localization.git cd GFT-based-Anomaly-Localization -
Install requirements:
pip install -r requirements.txt
The MVTec AD dataset (Bergmann et al., 2019) is used for evaluation. To download:
- Visit MVTec AD dataset portal
- Complete the academic license agreement
- Use provided download scripts
Preprocess with dataset_creation.ipynb to generate patched datasets.
| Class | Mean Pixel-wise AUROC (%) |
|---|---|
| Wood | 90.79 |
| Tile | 93.50 |
| Leather | 98.40 |
| Carpet | 93.20 |
| Grid | 93.20 |
If you use this work in your research, please cite:
@article{nakkina2024learning,
title={Learning graph-Fourier spectra of textured surface images for defect localization},
author={Nakkina, Tapan Ganatma and Karthikeyan, Adithyaa and Eksin, Ceyhun and Bukkapatnam, Satish TS},
journal={Manufacturing Letters},
volume={41},
pages={1568--1578},
year={2024},
publisher={Elsevier}
}- Bergmann, P., et al. (2019). MVTec AD -- A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection. CVPR.
- Kiranyaz, S., et al. (2021). 1D Convolutional Neural Networks for Signal Processing Applications. IEEE TII.
- Lundberg, S. M., & Lee, S.-I. (2017). A Unified Approach to Interpreting Model Predictions. NeurIPS.
- Nakkina, T. G., et al. (2024). Learning graph-Fourier spectra of textured surface images for defect localization. Manufacturing Letters, 41, 1568-1578.
- Sandryhaila, A., & Moura, J. M. (2014). Discrete Signal Processing on Graphs. IEEE TSP.
This project adheres to the Contributor Covenant. Please see CONTRIBUTING.md for details.
MIT License - See LICENSE for full text.




