人工蜂群演算法於作業排程之XAI可視化研究
Visualization XAI techniques for ABC applications in job scheduling
摘要
本研究以彈性零工式生產排程問題(FJSP)為研究對象,探討人工蜂群演算法(ABC)於排程決策中的應用,並結合可解釋人工智慧(XAI)技術,以提升演算法在實務應用中的可理解性與決策透明度。
在方法設計上,本研究首先將ABC進行離散化,以建立離散人工蜂群演算法(DABC),透過兩段式編碼以同時描述工序排序與機台指派決策,基於鄰域操作與貪婪更新機制進行排程解之搜尋。實驗結果顯示,DABC能有效產生高品質排程解,並具備穩定之收斂行為。
為進一步解析演算法之決策機制,本研究從兩個層面進行可解釋性分析。第一,於搜尋過程層級,利用規則式決策樹整理ABC在食源選擇、鄰域操作與停滯處理等過程中的判斷邏輯,使原本不易理解之搜尋行為轉化為具體之規則;接著,於排程結果層級,建立人工神經網路(ANN)代理模型,以學習排程特徵與最大完工時間之關係,並透過SHAP分析量化各特徵對排程績效之影響。
再者,本研究比較僅使用機台指派(MA-only)與同時包含工序位置與機台指派(POS+MA)等表示方式之效果。分析結果顯示,機台指派特徵在不同模型下皆能辨識出關鍵工序;加入工序位置資訊之後,能更完整反映排程結構對完工時間之影響,並有助於強化對瓶頸工序之辨識能力。
在方法設計上,本研究首先將ABC進行離散化,以建立離散人工蜂群演算法(DABC),透過兩段式編碼以同時描述工序排序與機台指派決策,基於鄰域操作與貪婪更新機制進行排程解之搜尋。實驗結果顯示,DABC能有效產生高品質排程解,並具備穩定之收斂行為。
為進一步解析演算法之決策機制,本研究從兩個層面進行可解釋性分析。第一,於搜尋過程層級,利用規則式決策樹整理ABC在食源選擇、鄰域操作與停滯處理等過程中的判斷邏輯,使原本不易理解之搜尋行為轉化為具體之規則;接著,於排程結果層級,建立人工神經網路(ANN)代理模型,以學習排程特徵與最大完工時間之關係,並透過SHAP分析量化各特徵對排程績效之影響。
再者,本研究比較僅使用機台指派(MA-only)與同時包含工序位置與機台指派(POS+MA)等表示方式之效果。分析結果顯示,機台指派特徵在不同模型下皆能辨識出關鍵工序;加入工序位置資訊之後,能更完整反映排程結構對完工時間之影響,並有助於強化對瓶頸工序之辨識能力。
This study focuses on flexible job shop scheduling problems (FJSP) and investigates the application of artificial bee colony (ABC) algorithm in scheduling decision-making. Explainable artificial intelligence (XAI) is further incorporated to improve the interpretability and transparency of the model.
In method design, ABC is discretized to develop a discrete artificial bee colony (DABC) approach. A two-layer encoding scheme is then adopted to represent operation sequencing and machine assignment decisions, and the search for scheduling solutions is performed through neighborhood operations and a greedy update mechanism. The results showed that DABC can effectively generate high-quality solutions with stable convergence behavior.
To analyze the decision-making mechanism, explainability is studied from two perspectives. At the search process level, rule-based decision trees are used to organize the search behavior in the processes of food source selection, neighborhood operations, and stagnation handling, into explicit rules. At the solution level, an artificial neural network (ANN) surrogate model is constructed to learn the relationship between scheduling features and makespan, and SHAP analysis is applied to quantify feature contributions.
Furthermore, two feature representations are compared: machine assignment only (MA-only) and a combined representation of operation position and machine assignment (POS+MA). The results showed that machine assignment features can identify critical operations across different models, while incorporating position information provides a more complete view of scheduling structure and thereby improving the identification of bottleneck operations.
In method design, ABC is discretized to develop a discrete artificial bee colony (DABC) approach. A two-layer encoding scheme is then adopted to represent operation sequencing and machine assignment decisions, and the search for scheduling solutions is performed through neighborhood operations and a greedy update mechanism. The results showed that DABC can effectively generate high-quality solutions with stable convergence behavior.
To analyze the decision-making mechanism, explainability is studied from two perspectives. At the search process level, rule-based decision trees are used to organize the search behavior in the processes of food source selection, neighborhood operations, and stagnation handling, into explicit rules. At the solution level, an artificial neural network (ANN) surrogate model is constructed to learn the relationship between scheduling features and makespan, and SHAP analysis is applied to quantify feature contributions.
Furthermore, two feature representations are compared: machine assignment only (MA-only) and a combined representation of operation position and machine assignment (POS+MA). The results showed that machine assignment features can identify critical operations across different models, while incorporating position information provides a more complete view of scheduling structure and thereby improving the identification of bottleneck operations.