International Journal of Science, Engineering and Information Technology
Vol 10, No 2: IJSEIT volume 10 Issue 2 July 2026

PatchCore-Based Roof Anomaly Detection for Automotive Manufacturing Quality Inspection

Muhammad Najib (Universitas Bahaudin Mudhary Madura)



Article Info

Publish Date
11 Jun 2026

Abstract

Visual inspection plays an important role in maintaining product quality in automotive manufacturing. In roof inspection, abnormalities may occur across different vehicle types and require consistent inspection of both right and left sides. This study investigates the application of a PatchCore-based anomaly detection approach for roof abnormality inspection in an automotive manufacturing environment. The proposed system utilizes two cameras to capture the right and left roof areas, while the inspection result is classified as normal or abnormal through an AI-based model. PatchCore, implemented using the Anomalib library, was selected as the anomaly detection model. The dataset was determined based on production volume and defect information, resulting in 823 normal data and 44 synthetically generated anomaly images for model development and evaluation. Image preprocessing consisted of background removal and calibration, cropping, resizing to 256 pixels, and grayscale conversion. Before model development, outlier data such as blurred images, incorrect capture positions, wrong vehicle types, hand occlusion, and lighting issues were identified and excluded from training. The model was evaluated using prediction score distributions, AUROC, and recall, followed by miss-prediction analysis and iterative improvement of the training data and preprocessing process. The analysis showed that variations in brightness, capture position, and preprocessing could affect the separation between normal and anomalous data and could cause certain anomalies to be missed when anomaly-related regions were removed during preprocessing. Based on the final evaluation, the practical detection level of this AI model reached 95% for Vehicle Model_A and 86% for Vehicle Model_B, determined using recall values. Based on the observed prediction score distributions in this study, an operational uncertainty range between 0.4 and 0.6 was defined for additional human verification. The results demonstrate that PatchCore can support roof abnormality inspection while highlighting the importance of data quality, preprocessing consistency, and iterative model analysis for practical implementation in automotive manufacturing.

Copyrights © 2026






Journal Info

Abbrev

ijseit

Publisher

Subject

Civil Engineering, Building, Construction & Architecture Computer Science & IT Electrical & Electronics Engineering Industrial & Manufacturing Engineering Mechanical Engineering

Description

International journal of science, engineering and information techology (IJSEIT) is open access and peer-reviewed journal, published by Universitas Trunojoyo Madura which. We escalate both theoretical and experimental papers of permanent interest, not previously published in a journal that aims to ...