Vision-Language Interaction via Contrastive Learning for Surface Anomaly Detection in Consumer Electronics Manufacturing
- 18 March 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Consumer Electronics
- Vol. 70 (3) , 6119-6130
Abstract
As the consumer electronics industry develops, surface anomaly detection methods support the identification of anomalous products that have surface flaws and defects to prevent them from entering the commodity market. However, the scarcity and variety of types of anomalous product surfaces pose significant challenges to deep learning models, preventing them from effectively capturing the features associated with surface abnormalities and thus exacerbating the difficulty of surface anomaly detection. To address this problem, we propose a vision-language interaction method via contrastive learning for surface anomaly detection in the consumer electronics manufacturing domain. First, surface images of consumer electronics products are captured from surveillance video during the manufacturing process, and product specifications in the form of texts are collected from production plans and manufacturing requirements. They are encoded as embedding sequences and then transformed into feature vectors via a self-attention mechanism. We use the deep learning model to learn visual information about the appearance of a product from images and language descriptions of its key features, such as its shape, colour, and texture, from texts. Second, a contrastive learning method is used to interact with vision and language information to learn feature representations from images and texts. This approach fuses the text features and then copies these fused features to equal the number of image features for composing feature pairs. The primary objective is to maximize the similarity between these pairs, thereby enhancing the overall performance. Third, a similarity-based classification method is employed to accurately identify anomalous targets by calculating the degree of cosine similarity between each pair of image and text features. If the similarity is greater than the given threshold, the product is assumed to be good; otherwise, it is anomalous. Finally, experiments conducted on public datasets such as CIFAR-10, MNIST, and Fashion-MNIST demonstrate the applicability of the proposed approach in the realm of consumer electronics manufacturing.Keywords
Funding Information
- National Natural Science Foundation of China (92367103)
- National Key Research and Development Program of China (2022YFF0902500)
This publication has 26 references indexed in Scilit:
- Unsupervised Deep Anomaly Detection for Medical Images Using an Improved Adversarial AutoencoderJournal of Digital Imaging, 2022
- One-class anomaly detection via novelty normalizationComputer Vision and Image Understanding, 2021
- OCGAN: One-Class Novelty Detection Using GANs With Constrained Latent Representations2019
- Latent Space Autoregression for Novelty Detection2019
- GANomaly: Semi-supervised Anomaly Detection via Adversarial Training2019
- f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networksMedical Image Analysis, 2019
- CoDetect: Financial Fraud Detection With Anomaly Feature DetectionIEEE Access, 2018
- Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery2017
- A New Local Distance-Based Outlier Detection Approach for Scattered Real-World Data2009
- Fast Outlier Detection in High Dimensional Spaces2002