應用生成式 AI 的無監督資料增量與自動化標註技術於表面瑕疵檢測

Application of Generative AI for Unsupervised Data Augmentation and Auto Labeling in Surface Defect Detection

檔案

日期

2026

類型

語言

中文

摘要

瑕疵檢測廣泛應用於製造業,近年來人工智慧(Artificial Intelligence, AI)的興起大
幅提升了檢測準確率。
然而,將 AI 應用於瑕疵檢測的難題在於瑕疵資料極度缺乏,導致物件辨識模型
準確度不高。影像拉伸或旋轉增量的資料多樣性不足,生成式對抗網路(Generative
Adversarial Network, GAN)生成的影像難以控制且容易失真,擴散模型(Diffusion
Model)若沒有其他方法輔助,也有極高機率無法成功生成物件。另外,就算資料蒐集
齊全,大量的資料標註也相當浪費人力。
針對上述這些問題,我們提出了應用生成式 AI 的無監督資料增量與自動化標註技
術於表面瑕疵檢測。人力成本的部分,透過向量量化變分自編碼器(Vector-Quantized
Variational AutoEncoder, VQVAE)與圖像相減模組定位瑕疵位置,再以該位置作為指定
範圍做生成,生成的資料自帶標註,進而達到自動化標註。資料規模不足的部分,我
們透過擴散模型增量資料集,並以注意力機制將瑕疵範例圖像輸入模型,提高生成的
精準度與穩定性。
我們以平均精度均值(Mean Average Precision, mAP)評估增量前後的模型。在量測
生成瑕疵與真實瑕疵分布距離的三項指標上,三個資料集共九個組合中,我們的方法
有六個排名第一、九個全部落在前三名,是所有比較方法中唯一做到的,代表生成品
質不受材質或瑕疵型態影響。在以視覺語言模型逐張評分的全盲比較中,本方法也是
唯一在三個資料集、兩個評分軸都無法與真實影像區分的方法。增量後訓練的模型,
mAP@50 平均提升了 48.06%,mAP@50-95 平均提升了 36.69%。自動標註與人工標註
的 IoU(Intersection over Union)平均為 0.73,證明自動化標註能夠等效人工標註。
Defect detection is widely applied in manufacturing, and AI has significantly improved its
accuracy. A key challenge is the scarcity of defect data, which limits model accuracy. Image
augmentation offers limited diversity, images from Generative Adversarial Networks (GAN) are
hard to control and prone to distortion, and diffusion models without auxiliary techniques often
fail to generate valid objects. Large-scale annotation also remains labor-intensive.
We propose an unsupervised data augmentation and auto labeling framework for surface
defect detection. A Vector-Quantized Variational Autoencoder (VQVAE) and an image subtraction module localize defect regions, used as designated areas for generation; since generated
data includes annotations, labeling is automated. Diffusion models augment the dataset, with an
attention mechanism feeding defect exemplars into the model to improve accuracy and stability.
Experiments on ComfyUI evaluate object recognition models trained before and after augmentation with Mean Average Precision (mAP). Measured by the distributional distance between generated and real defects, our method ranks first in six of nine dataset-metric combinations and stays within the top three in all nine, the only one among the methods compared to do
so, indicating that generation quality does not depend on material or defect type. In a blind evaluation by a vision-language model, it is also the only method whose defects are indistinguishable
from real photographs on all three datasets and both axes. Training on the augmented dataset
yields a 48.06% increase in mAP@50 and a 36.69% increase in mAP@50-95, and automated
annotation reaches an average Intersection over Union (IoU) of 0.73 with manual labels.
顯示完整詮釋資料 統計資料

引用此條目

莊子敬 (2026). 應用生成式 AI 的無監督資料增量與自動化標註技術於表面瑕疵檢測. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/91032

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/91032