English  |  正體中文  |  简体中文  |  全文筆數/總筆數 : 96218/96218 (100%)
造訪人次 : 93570868      線上人數 : 11477
RC Version 7.0 © Powered By DSPACE, MIT. Enhanced by NTU Library IR team.
搜尋範圍 查詢小技巧:
  • 您可在西文檢索詞彙前後加上"雙引號",以獲取較精準的檢索結果
  • 若欲以作者姓名搜尋,建議至進階搜尋限定作者欄位,可獲得較完整資料
  • 進階搜尋


    請使用永久網址來引用或連結此文件: https://ir.lib.ncu.edu.tw/handle/987654321/110274


    題名: 基於本體論約束與可配置架構的Transformer 分類器應用於咖啡豆細粒度瑕疵檢測;Ontology-Constrained and Configurable Based Transformer for Fine-Grained Coffee Bean Defect Inspection
    作者: 張哲愷;CHANG, CHE-KAI
    貢獻者: 機械工程學系光機電工程研究所
    關鍵詞: 咖啡豆瑕疵檢測;約束感知推論;階層式多標籤分類;ViT;本體論約束;Coffee Bean Defect Detection;Constrain-Aware Inference;Hierarchical Multi-Label Classification;ViT;Ontology Constraints
    日期: 2026-06-30
    上傳時間: 2026-10-20 15:28:56 (UTC+8)
    出版者: 國立中央大學
    摘要: 咖啡是全球交易量極大的農產品,其中精品咖啡對品質的要求最為嚴苛。然而,現有的瑕疵檢測高度仰賴人工篩選,不僅效率低落且標準不一。儘管過往研究試圖導入深度學習進行視覺辨識,但多數方法僅採用粗糙的二元分類,或缺乏語意結構的扁平化 (Flat) 多標籤分類,難以滿足工業界對細粒度瑕疵描述的需求。

    針對上述挑戰,本論文提出一種以 Vision Transformer(ViT)為骨幹的**階層式條件分類頭(Hierarchical Conditional Classification Head, HCCH)**架構,將標籤的本體論約束(Ontology Constraints)以群組化輸出結構與閘門機制明確編碼於模型設計中,並搭配可配置化的訓練管線,使標籤體系可在不修改模型結構的前提下靈活調整。

    實驗結果顯示,本研究共評估 30 種主流視覺骨幹架構,最佳模型(Swin-B,86.8M 參數)達到 0.711 的逐樣本完全匹配率(Subset Accuracy,多標籤任務最嚴格的整體指標)與 0.808 的 Macro F1;效率最優方案(ViT-Small,21.7M 參數)在單張 NVIDIA RTX 3060(12GB)上以不足 10 分鐘的訓練時間達到 Subset Accuracy 0.636 與 Macro F1 0.785。若以較寬鬆的逐標籤正確率(per-label Accuracy,即 1 − Hamming Loss)衡量,兩者分別為 95.2% 與 94.0%。對照實驗進一步證明,相較於僅以 sigmoid 輸出各標籤機率的扁平化基線模型,本架構透過訓練期間的階層式損失函數設計與「約束感知推論引擎 (Constraint-Aware Inference Engine)」的後處理機制,將邏輯違規率由基線的 2.8% 降至 0%;此邏輯一致性保障伴隨可量化的取捨:HCCH 的 Subset Accuracy 較扁平化基線低 0.055(0.636 vs 0.691),逐標籤正確率低 0.60 個百分點。結果證實,本方法在輸出邏輯一致性上具有決定性優勢,為產業提供了一個具備語意理解、高度可配置且邏輯嚴謹的自動化檢測方案。;Coffee is one of the most globally traded agricultural commodities, with the specialty coffee sector imposing the most stringent quality standards. However, current defect inspection processes rely heavily on manual selection, suffering from low efficiency and inconsistent standards. Although previous studies have attempted to incorporate deep learning for visual recognition, most approaches employ coarse binary classification or flat multi-label classification lacking semantic structure, thereby failing to meet industrial demands for fine-grained defect characterization.

    To address these challenges, this thesis proposes a Vision Transformer (ViT)-based Hierarchical Conditional Classification Head (HCCH) architecture, which explicitly encodes ontology constraints into the model design through grouped output structures and gating mechanisms, paired with a configurable training pipeline that allows the label taxonomy to be adjusted without modifying the model architecture.

    Experimental results, based on evaluating 30 mainstream backbone architectures, demonstrate that the best-performing model (Swin-B, 86.8M parameters) achieves a Subset Accuracy (the strictest exact-match metric for multi-label tasks) of 0.711 and a Macro F1 of 0.808, while the efficiency-optimized variant (ViT-Small, 21.7M parameters) attains a Subset Accuracy of 0.636 and a Macro F1 of 0.785 within 10 minutes of training on a single NVIDIA RTX 3060 (12GB); under the more lenient per-label accuracy (defined as 1 − Hamming Loss), the two models reach 95.2% and 94.0%, respectively. A controlled comparison further shows that, relative to a flat baseline model that outputs label probabilities directly via sigmoid, the proposed architecture—combining hierarchical loss functions during training with the post-processing mechanism of the "Constraint-Aware Inference Engine"—reduces the logical violation rate from 2.8% to 0%; this guarantee of logical consistency comes with a measurable trade-off, as HCCH trails the flat baseline by 0.055 in Subset Accuracy (0.636 vs. 0.691) and by 0.60 percentage points in per-label accuracy. These results confirm that the proposed method provides a decisive advantage in output logical consistency, offering the industry an automated inspection solution that is semantically aware, highly configurable, and logically rigorous.
    顯示於類別:[光機電工程研究所 ] 博碩士論文

    文件中的檔案:

    檔案 描述 大小格式瀏覽次數
    index.html0KbHTML3檢視/開啟


    在NCUIR中所有的資料項目都受到原著作權保護.

    社群 sharing

    ::: Copyright National Central University. | 國立中央大學圖書館版權所有 | 收藏本站 | 設為首頁 | 最佳瀏覽畫面: 1024*768 | 建站日期:8-24-2009 :::
    DSpace Software Copyright © 2002-2004  MIT &  Hewlett-Packard  /   Enhanced by   NTU Library IR team Copyright ©   - 隱私權政策聲明