Enhancing PatchCore with Dynamic Scaling and Vision-Language Models for Explainable Industrial Defect Inspection

dc.contributor.authorErgin, Oguz
dc.contributor.authorGuclu, Emre
dc.contributor.authorAydin, Ilhan
dc.contributor.authorAkin, Erhan
dc.date.accessioned2026-09-08T07:11:53Z
dc.date.issued2026
dc.departmentFırat Üniveristesi
dc.description.abstractAlthough unsupervised anomaly detection has shown promising performance in industrial visual inspection, many architectures still struggle with variable input resolutions, and anomaly scores are often difficult for end users to interpret. This study proposes a multi-stage hybrid workflow for pixel-level defect localization and structured reporting in bolt head images. The proposed SA-PatchCore framework customizes PatchCore by extracting multi-scale representations from a frozen deep feature extractor and supporting resolution-adaptive anomaly-map reconstruction through dynamic feature-map sizing. After anomaly detection, a Qwen3-VL-32B-based reporting module, adapted with GRPO, uses both the original image and the anomaly overlay as visual evidence. It generates structured JSON outputs containing defect presence, a 3 & times; 3 location label, and a concise textual description. On the industrial bolt dataset, SA-PatchCore achieved 98.69% pixel-level AUROC, 29.73% Pixel-AP, and 39.24% oracle Pixel-F1max. Compared with PatchCore, PaDiM, DR AE M, and CS-Flow, the method delivered strong results, especially in Pixel-AUROC. In the reporting stage, defect presence/absence accuracy improved from 76.63% to 96.41%, while defective-sample recall increased from 74.23% to 96.14% over the baseline Qwen3-VL-32B. Exact location match rose from 28.15% to 53.78%, and mean partial location score improved from 32.29% to 65.34%. Overall, the framework combines accurate anomaly localization with structured reporting, improving interpretability and usability.
dc.description.sponsorshipFimath;rat University [FUBAP-MF.25.53] -- This study was financially supported by F & imath;rat University with FUBAP-MF.25.53.
dc.identifier.doi10.3390/app16147096
dc.identifier.issn2076-3417
dc.identifier.issue14
dc.identifier.scopus2-s2.0-105045979241
dc.identifier.scopusqualityQ1
dc.identifier.urihttps://doi.org/10.3390/app16147096
dc.identifier.urihttps://hdl.handle.net/11508/65204
dc.identifier.volume16
dc.identifier.wosWOS:001831547900001
dc.identifier.wosqualityQ2
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherMdpi
dc.relation.ispartofApplied Sciences-Basel
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/openAccess
dc.snmzKA_WOS_20250903
dc.subjectIndustrial Quality Control
dc.subjectUnsupervised Anomaly Detection
dc.subjectDefect Localization
dc.subjectAnomaly Map
dc.subjectVision-Language Model
dc.subjectGrpo
dc.titleEnhancing PatchCore with Dynamic Scaling and Vision-Language Models for Explainable Industrial Defect Inspection
dc.typeArticle

Dosyalar