工業4.0(Industry 4.0)智慧製造(Smart Manufacturing)是近來很熱門的議題。現今全球製造業致力於藉由工業物聯網、大數據分析、虛實融合系統(Cyber Physical System, CPS)等技術實現智慧製造(Smart Manufacturing),以便能夠在節省生產時間與成本的情況下,提高生產品效能與產品品質。本論文探討虛擬量測(Virtual Metrology, VM)研究,在生產過程尚未完成前或完成後,在不需要或無法實際量測產品的情況下預測產品品質。具體的說,本論文聚焦於線切割放電加工機台加工產品表面粗糙度(Surface Roughness)預測,利用2次回歸方程及深度神經網路方法,在產品加工前透過生產參數預測產品表面粗糙度。另外,本論文利用馬可夫鏈(Markov Chain)配合深度神經網路(Deep Neural Network, DNN)方法,在產品加工完成後,透過生產參數及生產過程機台狀態時序性資料預測產品表面粗糙度。為了處理長度不同的時序性資料,本論文利用馬可夫鏈提取特徵以此將長度歸一化,再透過神經網路來預測產品品質。我們透過全因子實驗方法進行實驗數據蒐集以驗證所提方法的預測準確度,實驗結果顯示,本論文所提預測方法具有良好的平均絕對誤差及誤差率。;Industry 4.0 Smart Manufacturing is a hot topic recently. Today′s global manufacturing industry is committed to smart manufacturing through industrial Internet of Things, big data analytics, and Cyber Physical System (CPS) technologies to improve product performance and product quality by saving production time and cost. This paper explores Virtual Metrology (VM) research to predict product quality before or after the production process has not been completed, without the need of product measurement. Specifically, this paper focuses on the Surface Roughness prediction of wire-cut EDM machines, and uses the 2nd order regression and the deep neural network method to predict the surface roughness of the product through production parameters before product processing. In addition, this thesis uses Markov Chain and Deep Neural Network (DNN) method to predict the surface roughness of the product through production parameters and time series data of the production process after the product is processed. In order to deal with the time series data with different lengths, this paper uses the Markov chain extraction feature to normalize the length and then predict the product quality through the neural network. We use the full factor experimental method to collect experimental data to verify the prediction accuracy of the proposed method. The experimental results show that the proposed prediction method has good mean absolute error and error rate.