快速適應分類器:克服智能製造缺陷分類挑戰的 AI 模型訓 練框架
Fast Adaption Classifier: A Framework for Overcoming Challenges in AI Model Training for Smart Manufacturing Defect Classification
摘要
在智慧製造的背景下,基於機器學習的自動異常檢測變得越來越重要,特別是對於少量、多樣化的訂單。然而,同時需要解決幾個挑戰。隨著製造技術的進步,由於產品多樣化和生產週期較短所導致的「類別間樣本不平衡」問題,所有類別收集足夠的瑕疵樣本變得具有挑戰性。在「細粒度問題」中,具有相似特徵但不同製程順序下產生的瑕疵必須被區分為不同的類別。此外,在生產過程中,可能會出現新的瑕疵類別,導致「開放集」問題。模型必須能夠區分這些新的類別,以便進行後續的分析和修復。
目前的研究方法都是針對單一問題提出解決方法無法同時解決這三個問題,為了同時能克服這些挑戰,我們提出了「快速適應分類器」(Fast Adaption Classifier,FAC)框架,該框架結合了少樣本學習(Few-shot Learning,FSL)和自監督學習技術,以提高檢測模型的整體準確性。
FAC框架由一個主模型和多個少樣本模型組成。在FAC中,我們使用DCL作為預訓練模型,使模型能夠區分細粒度類別,並使用SKD的訓練技術來預測類別和旋轉角度在有限的訓練樣本下模型學習更多特徵。最後我們使用「快速適應分類器」來訓練分類器,避免微調模型時可能出現的underfitting或overfitting的問題。在推理階段,我們使用z-score機制來防止少樣本模型在分類過程中相互干擾,並使用閾值機制幫助模型區分開放集類別。
根據實驗結果,FAC框架解決類別間樣本不平衡、細粒度和開放集問題上取得了出色的模型準確性。與最先進的HCTransformer相比, 在mini-Imagenet少樣本數據集上提升了8.65,在CUB-200細粒度數據集上達到了98.44 ,並在FC100低分辨率細粒度數據集上提升了11.72。此外,當應用於專有光電面板瑕疵影像A19數據集時,FAC在同時應對數據集中的三個挑戰上表現良好相比於SOTA HCtransformer高出了49.03。我們相信我們提出的FAC框架有潛力顯著提高智慧製造中的瑕疵檢測,使行業能夠滿足對少量、多樣化訂單的不斷增長需求。
目前的研究方法都是針對單一問題提出解決方法無法同時解決這三個問題,為了同時能克服這些挑戰,我們提出了「快速適應分類器」(Fast Adaption Classifier,FAC)框架,該框架結合了少樣本學習(Few-shot Learning,FSL)和自監督學習技術,以提高檢測模型的整體準確性。
FAC框架由一個主模型和多個少樣本模型組成。在FAC中,我們使用DCL作為預訓練模型,使模型能夠區分細粒度類別,並使用SKD的訓練技術來預測類別和旋轉角度在有限的訓練樣本下模型學習更多特徵。最後我們使用「快速適應分類器」來訓練分類器,避免微調模型時可能出現的underfitting或overfitting的問題。在推理階段,我們使用z-score機制來防止少樣本模型在分類過程中相互干擾,並使用閾值機制幫助模型區分開放集類別。
根據實驗結果,FAC框架解決類別間樣本不平衡、細粒度和開放集問題上取得了出色的模型準確性。與最先進的HCTransformer相比, 在mini-Imagenet少樣本數據集上提升了8.65,在CUB-200細粒度數據集上達到了98.44 ,並在FC100低分辨率細粒度數據集上提升了11.72。此外,當應用於專有光電面板瑕疵影像A19數據集時,FAC在同時應對數據集中的三個挑戰上表現良好相比於SOTA HCtransformer高出了49.03。我們相信我們提出的FAC框架有潛力顯著提高智慧製造中的瑕疵檢測,使行業能夠滿足對少量、多樣化訂單的不斷增長需求。
In the context of smart manufacturing, machine learning-based automated anomaly detection has become increasingly important, especially for small quantity, wide variety orders. However, several challenges need to be addressed simultaneously. With advancements in manufacturing technology, the problem of "class-imbalance" becomes challenging due to product diversification and shorter production cycles, making it difficult to collect sufficient defective samples for all categories. In the "fine-grained" defects with similar features but different process sequences must be distinguished into different categories. Additionally, new defect categories may emerge during the production process, leading to the "open-set" problem. Models must be able to differentiate these new categories for subsequent analysis and repair.
Current research methods propose solutions for individual problems and cannot simultaneously address these three challenges. To overcome these challenges, we propose the "Fast Adaptation Classifier" (FAC) framework, which combines few-shot learning (FSL) and self-supervised learning techniques to improve the overall accuracy of the detection model.
The FAC framework consists of a main model and multiple few-shot models. In FAC, we use DCL as the pretraining model, enabling the model to differentiate fine-grained classes. We employ the SKD training technique to predict categories and rotation angles, allowing the model to learn more features with limited training samples. Finally, we use the "Fast Adaptation Classifier" to train the classifier, avoiding potential underfitting or overfitting issues during model fine-tuning. During the inference stage, we use the z-score mechanism to prevent interference among few-shot models during the classification process and employ a threshold mechanism to help the model distinguish open-set categories.
According to experimental results, the FAC framework achieves outstanding model accuracy in addressing the challenges of inter-class sample imbalance, fine-grained categorization, and open-set problems. Compared to the state-of-the-art HCTransformer, it achieves an improvement of 8.65 on the mini-Imagenet few-shot dataset, reaches 98.44 on the CUB-200 fine-grained dataset, and improves by 11.72 on the FC100 low-resolution fine-grained dataset. Furthermore, when applied to the proprietary A19 dataset of optical panel defect images, FAC performs well in simultaneously addressing all three challenges in the dataset, outperforming the SOTA HCtransformer by 49.03. We believe that the FAC framework we propose has the potential to significantly enhance defect detection in smart manufacturing, enabling the industry to meet the growing demand for small quantity, wide variety orders.
Current research methods propose solutions for individual problems and cannot simultaneously address these three challenges. To overcome these challenges, we propose the "Fast Adaptation Classifier" (FAC) framework, which combines few-shot learning (FSL) and self-supervised learning techniques to improve the overall accuracy of the detection model.
The FAC framework consists of a main model and multiple few-shot models. In FAC, we use DCL as the pretraining model, enabling the model to differentiate fine-grained classes. We employ the SKD training technique to predict categories and rotation angles, allowing the model to learn more features with limited training samples. Finally, we use the "Fast Adaptation Classifier" to train the classifier, avoiding potential underfitting or overfitting issues during model fine-tuning. During the inference stage, we use the z-score mechanism to prevent interference among few-shot models during the classification process and employ a threshold mechanism to help the model distinguish open-set categories.
According to experimental results, the FAC framework achieves outstanding model accuracy in addressing the challenges of inter-class sample imbalance, fine-grained categorization, and open-set problems. Compared to the state-of-the-art HCTransformer, it achieves an improvement of 8.65 on the mini-Imagenet few-shot dataset, reaches 98.44 on the CUB-200 fine-grained dataset, and improves by 11.72 on the FC100 low-resolution fine-grained dataset. Furthermore, when applied to the proprietary A19 dataset of optical panel defect images, FAC performs well in simultaneously addressing all three challenges in the dataset, outperforming the SOTA HCtransformer by 49.03. We believe that the FAC framework we propose has the potential to significantly enhance defect detection in smart manufacturing, enabling the industry to meet the growing demand for small quantity, wide variety orders.
所屬典藏
智慧與綠能產學研究所引用此條目
Chang, H.-Y. (2023). Fast Adaption Classifier: A Framework for Overcoming Challenges in AI Model Training for Smart Manufacturing Defect Classification. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83015
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83015