Skip to content
Open access

Relative Position Encoding-Enhanced Vision Transformer for Image-Level Defect Classification in Manufacturing Textured-Surface Inspection

Sep 2026 · ICST Transactions on Scalable Information Systems · Vol 13 · 0 citations · 23 references

TL;DR

The ViT-RPE method provides a compact image-level pre-screening solution for automated product inspection in manufacturing lines, especially where repetitive texture, material appearance consistency, and rapid quality sorting are required.

Abstract

INTRODUCTION: In textile and textured-surface manufacturing, visual defects in woven fabrics, leather-like materials, tiles, and grid products directly influence product grading, downstream cutting, assembly reliability, after-sales repair, and supply-chain delivery stability. Weak defects embedded in repetitive textures are still difficult for manual inspection and conventional handcrafted vision methods.

Objectives

This study constructs an image-level defective/non-defective classification model for manufacturing quality inspection by enhancing Vision Transformer with relative spatial modeling, so that subtle texture disruption can be identified before products enter subsequent processing or distribution stages.

Methods

A ViT-Small backbone was combined with learnable relative position encoding. Input images were resized, normalized, divided into 16 × 16 patches, and transformed into token embeddings. Relative spatial bias was inserted into multi-head self-attention to encode patch-to-patch displacement while retaining absolute positional information. The model was evaluated with precision, accuracy, recall, F1-score, and AUROC on a supervised MVTec-derived texture subset.

Results

ViT-RPE outperformed ResNet-18, an activation-embedded CNN, EfficientFormer-L1, Swin-Tiny, and the baseline ViT under the same supervised image-level classification protocol. It achieved an accuracy of 0.954 ± 0.004 and an AUROC of 0.977 ± 0.003 on DAGM, and an accuracy of 0.939 ± 0.005 and an AUROC of 0.969 ± 0.004 on the MVTec-derived subset. Ablation results showed that combining absolute and relative positional information produced the best performance, with limited additional computational cost.

Conclusion

The method provides a compact image-level pre-screening solution for automated product inspection in manufacturing lines, especially where repetitive texture, material appearance consistency, and rapid quality sorting are required.

Read PDF

Similar papers

Conference Sep 2026

Optimizing Machine Vision System Using Machine Learning for Defect Detection in a Furniture Production Line

Furniture manufacturing industry in Malaysia has been heavily relaying on manual visual inspection for defect detection such as surface defects, scratches and dents. This approach is easily prone to human error leading to inconsistent quality control and intensive labour. In this study, a dual-stage machine learning fr...

Thing Thing Goh, Yogitha Dantuluri, Gee-Chia Chen et al. · 0 citations
Open access Sep 2026

TDRPFormer: Texture-Debiased Reliable Prototype Transformer for Pixel-Level Steel Surface Defect Segmentation

Steel surface defect segmentation is a critical task in industrial visual inspection, with direct implications for quality assessment, process control, and in-service safety. However, complex steel-surface images often contain strong background textures, local reflections, machining traces, and low-contrast defects, wh...

Ming-Xiang Zhu, Zhi-Zhen Li, Hong-Yan Sun et al. · 0 citations
Conference Open access Sep 2026

Object Surface Defect Segmentation using Vision Transformers and Hybrid Models

An empirical comparison between three deep learning frameworks for pixel-based surface defect detection: a baseline CNN architecture known as U-Net, Vision Transformer (ViT) based on patch-wise attention mechanism, and TransUNet that combines CNN and transformer architecture.

Santhya C, VS Sneha Chowdary, Beaulah Jeyavathana · 0 citations
Sep 2026

Machine vision-based surface defect testing of industrial materials using a lightweight multiscale attention fusion network

A method named global attention mechanism for deeply separable YOLO (simply denoted as GMD-YOLO) network that integrates global context and local information in a multi-scale attention fusion module to improve the recognition of small defects, and an enhanced depth separable convolution to reduce computational cost.

Fu-Min Wang, Jia-Hao Jiang, Kuan Zhang et al. · 0 citations
Preprint Sep 2026

TEEP-RCNN: Texture-Enhanced Edge-aware Perception for Steel Surface Defect Detection via Improved Convolutional Block Attention in Faster R-CNN

Steel surface defect detection is critical for automated industrial quality control but remains challenging due to subtle inter-class texture differences and pronounced class imbalance. We introduce TEEP-RCNN (Texture-Enhanced Edge-aware Perception Region-based CNN), a two-stage detector built on Faster R-CNN with a Fe...

K. Rajesh · 0 citations
Conference Aug 2026

Multi-Stage Machine Vision Inspection Algorithm for Injection-Molding Quality of USB Cable Connectors

The injection molding of USB cable connectors requires preventive process control before molding and reliable appearance inspection after molding. This paper presents a multi-stage machine vision algorithm for injection-molding quality inspection of USB cable connectors. The inspection procedure is decomposed into thre...

Jin-Feng Li, Jin-Qiang Peng, Jian-Wen Huang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.