[go: up one dir, main page]

TWI840303B - Training method and system of model used for predicting characteristics of workpiece - Google Patents

Training method and system of model used for predicting characteristics of workpiece Download PDF

Info

Publication number
TWI840303B
TWI840303B TW112133946A TW112133946A TWI840303B TW I840303 B TWI840303 B TW I840303B TW 112133946 A TW112133946 A TW 112133946A TW 112133946 A TW112133946 A TW 112133946A TW I840303 B TWI840303 B TW I840303B
Authority
TW
Taiwan
Prior art keywords
workpiece
gray
model
level
matrix
Prior art date
Application number
TW112133946A
Other languages
Chinese (zh)
Other versions
TW202511982A (en
Inventor
蔡明祺
李榮茂
洪昌鈺
林敬智
陳日昇
黃治程
張廉楷
Original Assignee
國立成功大學
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 國立成功大學 filed Critical 國立成功大學
Priority to TW112133946A priority Critical patent/TWI840303B/en
Application granted granted Critical
Publication of TWI840303B publication Critical patent/TWI840303B/en
Publication of TW202511982A publication Critical patent/TW202511982A/en

Links

Landscapes

  • Image Analysis (AREA)
  • General Factory Administration (AREA)
  • Image Processing (AREA)

Abstract

A training method and a system of model used for predicting characteristics of workpiece are provided. The training method comprises an image capture step, a conversion step, a formation step, a model building step, and an evaluation step. By recording various data of a workpiece during the manufacturing process and utilizing image processing to extract multiple feature values from the workpiece's images, these are integrated into a production record. This production record is used to predict the final characteristics of the workpiece, thereby enhancing the effectiveness of quality management for the workpiece.

Description

用於預測工件特性之模型的訓練方法及系統Method and system for training a model for predicting workpiece characteristics

本發明係關於一種訓練方法及系統,特別是關於一種用於預測工件特性之模型的訓練方法及系統。The present invention relates to a training method and system, and more particularly to a training method and system for a model for predicting workpiece characteristics.

選擇性雷射熔融(Selective Laser Melting)是利用高功率雷射透過光學聚焦於金屬粉末表面,使金屬粉末瞬間融化後瞬間固化,形成各式特殊形狀,其為金屬積層製造製程中的關鍵技術,在製程良率控制也扮演重要的角色。Selective Laser Melting uses high-power lasers to focus on the surface of metal powders through optics, causing the metal powders to melt instantly and then solidify instantly to form various special shapes. It is a key technology in the metal layer manufacturing process and also plays an important role in process yield control.

然而,金屬粉末在形成各式特殊形狀的過程中,由於金屬粉末的表面是熔融狀態,中心部以過冷液體狀態在基材表面上碰撞,使得熔融後的金屬粉從熔池(melt pool)噴濺到周圍的區域,產生的薄薄擴散的飛濺狀部分的濺點疊層,進而影響成品之品質。在傳統的製程中,若想得知成品之品質好壞,則需要等到成品印製完畢,再經由特殊儀器量測,才會得知成品之品質。這樣的方法不僅耗時也耗材,同時,如果需要使用破壞性檢測,也會導致成品的損壞。However, in the process of forming various special shapes of metal powder, the surface of the metal powder is in a molten state, and the center collides on the surface of the substrate in a supercooled liquid state, causing the molten metal powder to splash from the melt pool to the surrounding area, producing a thin diffuse splash-like part of the splash point overlap, which in turn affects the quality of the finished product. In the traditional process, if you want to know the quality of the finished product, you need to wait until the finished product is printed and then measure it with special instruments to know the quality of the finished product. This method is not only time-consuming and consumable, but also, if destructive testing is required, it will also cause damage to the finished product.

因此,為克服現有技術中的缺點和不足,本發明有必要提供改良的一種用於預測工件特性之模型的訓練方法,以解決上述習用技術所存在的問題。Therefore, in order to overcome the shortcomings and deficiencies in the prior art, the present invention is necessary to provide an improved training method for a model for predicting workpiece characteristics to solve the problems existing in the above-mentioned conventional technology.

本發明之主要目的在於提供一種用於預測工件特性之模型的訓練方法及系統,透過記錄工件在製造過程中的各項數據以及利用影像處理從工件的影像中取得多個特徵值來整合成一產品履歷,以預測該工件的成品之特性,藉此提升該工件之品質管理的效果。The main purpose of the present invention is to provide a training method and system for a model for predicting workpiece characteristics, by recording various data of the workpiece during the manufacturing process and using image processing to obtain multiple feature values from the image of the workpiece to integrate them into a product history, so as to predict the characteristics of the finished product of the workpiece, thereby improving the quality management effect of the workpiece.

為達上述之目的,本發明提供一種用於預測工件特性之模型的訓練方法,該訓練方法一影像擷取步驟、一特徵值轉換步驟、一履歷形成步驟、一模型建立步驟及一評估步驟,在該影像擷取步驟中,在透過一機台形成一工件的一列印過程中,利用一感光耦合元件取得該工件的多個逐層影像;在該特徵值轉換步驟中,利用一轉換模組透過一灰階共生矩陣來進行計算,以獲得該等逐層影像的多個特徵值,該灰階共生矩陣之方程式為: To achieve the above-mentioned purpose, the present invention provides a training method for a model for predicting workpiece characteristics. The training method includes an image capture step, an eigenvalue conversion step, a history formation step, a model building step, and an evaluation step. In the image capture step, a plurality of layer-by-layer images of the workpiece are obtained by using a photosensitive coupling element in a printing process of forming a workpiece through a machine. In the eigenvalue conversion step, a conversion module is used to perform calculations through a gray-level co-occurrence matrix to obtain a plurality of eigenvalues of the layer-by-layer images. The gray-level co-occurrence matrix is formulated as follows:

其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為列位移, 為該灰階共生矩陣之行, 為行位移(請確認參數名稱是否正確);在該履歷形成步驟中,利用一整合模組將該等特徵值以及該工件在該列印過程中的多個製程參數整合在一起,以形成該工件的一產品履歷;在該模型建立步驟中,利用一機器學習模組對該工件的該產品履歷進行處理,以產生一訓練模型;在該評估步驟中,利用一評估模組透過一模型評估指標來評估該訓練模型是否為一最佳模型,若是,則回報一結果,若否,則重新執行上述步驟。 in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column shift, is the row of the gray-level symbiosis matrix, is row displacement (please confirm whether the parameter name is correct); in the history forming step, an integration module is used to integrate the feature values and multiple process parameters of the workpiece in the printing process to form a product history of the workpiece; in the model building step, a machine learning module is used to process the product history of the workpiece to generate a training model; in the evaluation step, an evaluation module is used to evaluate whether the training model is an optimal model through a model evaluation index. If so, a result is reported, if not, the above steps are re-executed.

在本發明之一實施例中,在該特徵值轉換步驟中,該灰階共生矩陣的一影像灰階值設定為256,該灰階共生矩陣的像素相對位置為全方向,該灰階共生矩陣的像素之間距離為1。In an embodiment of the present invention, in the eigenvalue conversion step, an image grayscale value of the grayscale co-occurrence matrix is set to 256, the relative position of the pixels of the grayscale co-occurrence matrix is omnidirectional, and the distance between the pixels of the grayscale co-occurrence matrix is 1.

在本發明之一實施例中,在該特徵值轉換步驟中,以該灰階共生矩陣的中心為圓心,該全方向包含該圓心的 方向、該圓心的 方向、該圓心的 方向及該圓心的 方向。 In one embodiment of the present invention, in the eigenvalue conversion step, the center of the gray level co-occurrence matrix is taken as the center of the circle, and the omnidirectional direction, the center of the circle direction, the center of the circle Direction and center of the circle direction.

在本發明之一實施例中,在該特徵值轉換步驟中,該灰階共生矩陣的該等特徵值包含:計算該灰階共生矩陣之 方向及 方向的一影像灰階平均;計算該灰階共生矩陣之 方向及 方向的一影像灰階變異數;計算該灰階共生矩陣之 方向及 方向的一影像灰階標準差;該灰階共生矩陣之紋理特徵值的一均勻性;該灰階共生矩陣之紋理特徵值的一隨機及變化性;該灰階共生矩陣之影像的一對比度;該灰階共生矩陣之紋理特徵值的一細緻及粗糙程度;該灰階共生矩陣之影像局部的一變化強度;及該灰階共生矩陣之紋理特徵值的一同質性。 In one embodiment of the present invention, in the eigenvalue conversion step, the eigenvalues of the gray-level symbiosis matrix include: calculating the gray-level symbiosis matrix Direction and direction of an image gray level average; calculate the gray level co-occurrence matrix Direction and direction; calculate the gray-level co-occurrence matrix of the image Direction and a gray level standard deviation of an image in a direction; a uniformity of a texture feature value of the gray level symbiosis matrix; a randomness and variability of the texture feature value of the gray level symbiosis matrix; a contrast of the image of the gray level symbiosis matrix; a fineness and coarseness of the texture feature value of the gray level symbiosis matrix; a variation intensity of a local part of the image of the gray level symbiosis matrix; and a homogeneity of the texture feature value of the gray level symbiosis matrix.

在本發明之一實施例中,在該模型建立步驟之前,該方法另包含一資料預處理步驟,在該資料預處理步驟中,透過該機器學習模組移除該工件的該產品履歷的極端值。In one embodiment of the present invention, before the model building step, the method further includes a data preprocessing step, in which the extreme values of the product history of the workpiece are removed through the machine learning module.

在本發明之一實施例中,在該資料預處理步驟中,該機器學習模組利用一相互資訊對該工件的該產品履歷進行特徵選擇,以獲得最優特徵子集,其中該相互資訊的方程式為: In one embodiment of the present invention, in the data preprocessing step, the machine learning module uses a mutual information to perform feature selection on the product history of the workpiece to obtain the optimal feature subset, wherein the equation of the mutual information is:

其中 為隨機變數, 分別表示 的邊際機率質量函數, 表示 的聯合機率質量函數。 in and is a random variable, and Respectively indicate and The marginal probability mass function of express and The joint probability mass function of .

在本發明之一實施例中,在該資料預處理步驟中,設定該機器學習模組的一超參數範圍。In one embodiment of the present invention, in the data preprocessing step, a hyperparameter range of the machine learning module is set.

在本發明之一實施例中,在該影像擷取步驟中,該等逐層影像的工件包含多個拉伸試驗棒及多個環狀試片,該拉伸試驗棒用於檢測一拉伸強度,該環狀試片用於檢測一導磁率及一鐵損。In one embodiment of the present invention, in the image capturing step, the workpieces of the layer-by-layer images include a plurality of tensile test bars and a plurality of annular test pieces, the tensile test bars are used to detect a tensile strength, and the annular test pieces are used to detect a magnetic permeability and an iron loss.

在本發明之一實施例中,在該模型建立步驟中,該機器學習模組是採用梯度提升決策樹進行演算。In one embodiment of the present invention, in the model building step, the machine learning module uses a gradient boosting decision tree for calculation.

為達上述之目的,本發明提供一種用於預測工件特性之模型的訓練系統,該訓練系統包括一感光耦合元件、一轉換模組、一整合模組、一機器學習模組及一評估模組,其中該感光耦合元件配置為在透過一機台形成一工件的一列印過程中取得該工件的多個逐層影像;該轉換模組配置為透過一灰階共生矩陣來進行計算,以獲得該等逐層影像的多個特徵值,該灰階共生矩陣之方程式為: To achieve the above-mentioned purpose, the present invention provides a training system for a model for predicting workpiece characteristics, the training system includes a photosensitive coupling element, a conversion module, an integration module, a machine learning module and an evaluation module, wherein the photosensitive coupling element is configured to obtain multiple layer-by-layer images of a workpiece in a printing process of forming a workpiece through a machine; the conversion module is configured to calculate through a gray-level co-occurrence matrix to obtain multiple eigenvalues of the layer-by-layer images, and the equation of the gray-level co-occurrence matrix is:

其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為列位移, 為該灰階共生矩陣之行, 為行位移;該整合模組配置為將該等特徵值以及該工件在該列印過程中的多個製程參數整合在一起,以形成該工件的一產品履歷;該機器學習模組配置為對該工件的該產品履歷進行處理,以產生一訓練模型;該評估模組配置為透過一模型評估指標來評估該訓練模型是否為一最佳模型,並回報一結果。 in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column shift, is the row of the gray-level symbiosis matrix, The integration module is configured to integrate the feature values and multiple process parameters of the workpiece in the printing process to form a product history of the workpiece; the machine learning module is configured to process the product history of the workpiece to generate a training model; the evaluation module is configured to evaluate whether the training model is an optimal model through a model evaluation indicator and report a result.

如上所述,本發明用於預測工件特性之模型的訓練方法及系統著重於預測該工件在製程中的品質,主要透過記錄該工件在製造過程中的各項數據以及利用影像處理從該工件的影像中取得多個特徵值來整合成該產品履歷,接著使用機器學習利用該等特徵值,預測該工件的成品之特性,藉此在製程階段就可以預測該工件的材料特性,以提早汰換不合格的工件,節省時間成本,也可以減少金屬粉末的使用量,且可以避免破壞性檢測的使用,維持成品的完整性。As described above, the training method and system of the model for predicting workpiece characteristics of the present invention focuses on predicting the quality of the workpiece in the manufacturing process, mainly by recording various data of the workpiece in the manufacturing process and using image processing to obtain multiple feature values from the image of the workpiece to integrate into the product history, and then using machine learning to use these feature values to predict the characteristics of the finished product of the workpiece. In this way, the material properties of the workpiece can be predicted in the process stage, so that unqualified workpieces can be replaced early, saving time and cost, and reducing the use of metal powder. It can also avoid the use of destructive testing and maintain the integrity of the finished product.

為了讓本發明之上述及其他目的、特徵、優點能更明顯易懂,下文將特舉本發明實施例,並配合所附圖式,作詳細說明如下。再者,本發明所提到的方向用語,例如上、下、頂、底、前、後、左、右、內、外、側面、周圍、中央、水平、橫向、垂直、縱向、軸向、徑向、最上層或最下層等,僅是參考附加圖式的方向。因此,使用的方向用語是用以說明及理解本發明,而非用以限制本發明。In order to make the above and other purposes, features, and advantages of the present invention more clearly understood, the following will specifically cite the present invention and provide a detailed description with reference to the attached drawings. Furthermore, the directional terms mentioned in the present invention, such as up, down, top, bottom, front, back, left, right, inside, outside, side, periphery, center, horizontal, transverse, vertical, longitudinal, axial, radial, topmost or bottommost, etc., are only for reference to the directions of the attached drawings. Therefore, the directional terms used are used to explain and understand the present invention, but not to limit the present invention.

請參照圖1所示,為根據本發明一實施例的一種用於預測工件特性之模型的訓練系統,該訓練系統包括一感光耦合元件2、一轉換模組3、一整合模組4、一機器學習模組5及一評估模組6,其中利用金屬積層製造之一機台來形成至少一工件,本發明將於下文詳細說明各元件的細部構造、組裝關係及其運作原理。Please refer to FIG. 1 , which is a training system for a model for predicting workpiece characteristics according to an embodiment of the present invention. The training system includes a photosensitive coupling element 2, a conversion module 3, an integration module 4, a machine learning module 5 and an evaluation module 6, wherein a metal lamination manufacturing machine is used to form at least one workpiece. The present invention will describe in detail the detailed structure, assembly relationship and operation principle of each component below.

請參照圖1及圖3所示,該感光耦合元件2安裝在該機台上,而且該感光耦合元件2配置為在透過該機台形成該工件的一列印過程中取得該工件的多個逐層影像101,該等逐層影像101為該列印過程中列印該工件之每一層的影像。在本實施例中,該等逐層影像101的工件包含多個拉伸試驗棒102及多個環狀試片103,其中該拉伸試驗棒102用於檢測一拉伸強度,該環狀試片103用於檢測一導磁率及一鐵損。1 and 3, the photosensitive coupling element 2 is mounted on the machine, and the photosensitive coupling element 2 is configured to obtain a plurality of layer-by-layer images 101 of the workpiece during a printing process of the workpiece formed by the machine, wherein the layer-by-layer images 101 are images of each layer of the workpiece printed during the printing process. In this embodiment, the workpieces of the layer-by-layer images 101 include a plurality of tensile test bars 102 and a plurality of ring-shaped test pieces 103, wherein the tensile test bars 102 are used to detect a tensile strength, and the ring-shaped test pieces 103 are used to detect a magnetic permeability and a iron loss.

續參照圖1及圖3所示,該轉換模組3電性連接該感光耦合元件2,而且該轉換模組3配置為透過一灰階共生矩陣來進行計算,以獲得該等逐層影像101的多個特徵值,該灰階共生矩陣之方程式為: 1 and 3 , the conversion module 3 is electrically connected to the photosensitive coupling element 2 , and the conversion module 3 is configured to calculate through a grayscale symbiosis matrix to obtain multiple eigenvalues of the layer-by-layer images 101 . The grayscale symbiosis matrix is:

其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為像素之間列方向位移, 為該灰階共生矩陣之行, 為像素之間行方向位移。 in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column-wise displacement between pixels, is the row of the gray-level symbiosis matrix, is the row-wise displacement between pixels.

請參照圖1及圖3所示,該整合模組4電性連接該轉換模組3,而且該整合模組4配置為接收該等逐層影像101的該等特徵值,並且將該等特徵值以及該工件在該列印過程中的多個製程參數(例如氧濃度、雷射功率、雷射掃描速度、線間距及能量密度)整合在一起,以形成該工件的一產品履歷。Please refer to Figures 1 and 3. The integration module 4 is electrically connected to the conversion module 3, and the integration module 4 is configured to receive the feature values of the layer-by-layer images 101, and integrate the feature values and multiple process parameters of the workpiece in the printing process (such as oxygen concentration, laser power, laser scanning speed, line spacing and energy density) to form a product history of the workpiece.

請參照圖1所示,該機器學習模組5電性連接該整合模組4,該機器學習模組5配置為接收該工件的該產品履歷,並且對該工件的該產品履歷進行處理,以產生一訓練模型。Please refer to FIG. 1 , the machine learning module 5 is electrically connected to the integration module 4 , and the machine learning module 5 is configured to receive the product history of the workpiece and process the product history of the workpiece to generate a training model.

續參照圖1所示,該評估模組6電性連接該機器學習模組5,該評估模組6配置為透過一模型評估指標來評估該訓練模型是否為一最佳模型,並回報一結果。Continuing with reference to FIG. 1 , the evaluation module 6 is electrically connected to the machine learning module 5 . The evaluation module 6 is configured to evaluate whether the training model is an optimal model through a model evaluation indicator and report a result.

依據上述的設計,本發明用於預測工件特性之模型的訓練系統透過該整合模組4來形成該工件的該產品履歷,以紀錄及描述積層製造該工件之製程中的各項數據,其中所述各項數據由多個製程參數及製程中的該等逐層影像101的特徵值組合而成,該等製程參數主要是輸入到該機台的參數設定,該等特徵值則是在該機台中安裝該感光耦合元件2進行製程中的該等逐層影像101擷取,並且透過影像處理產生一系列影像的特徵值,藉此用來描述該工件的紋理特徵。接著使用該機器學習模組5針對該工件的產品履歷對其材料特性進行預測,使該工件可以在積層製造的製程階段即可獲知該工件的材料特性,以達到提升該工件之品質管理的效果。According to the above-mentioned design, the training system of the model for predicting the characteristics of the workpiece of the present invention forms the product history of the workpiece through the integrated module 4 to record and describe various data in the process of layer-by-layer manufacturing of the workpiece, wherein the various data are composed of a plurality of process parameters and the characteristic values of the layer-by-layer images 101 in the process. The process parameters are mainly input into the parameter settings of the machine, and the characteristic values are captured by installing the photosensitive coupling element 2 in the machine to capture the layer-by-layer images 101 in the process, and a series of image characteristic values are generated through image processing to describe the texture characteristics of the workpiece. Then, the machine learning module 5 is used to predict the material properties of the workpiece according to its product history, so that the material properties of the workpiece can be known during the process stage of multilayer manufacturing, thereby achieving the effect of improving the quality management of the workpiece.

如上所述,本發明用於預測工件特性之模型的訓練系統著重於提升該工件在製程過程中的預測品質(例如拉伸強度、導磁率及鐵損),主要透過記錄該工件在製造過程中的各項數據以及利用影像處理從該工件的影像中取得多個特徵值來整合成該產品履歷,接著使用機器學習利用該等特徵值,預測該工件的成品之特性,藉此在製程階段就可以預測該工件的材料特性,以提早汰換不合格的工件,節省時間成本,也可以減少金屬粉末的使用量,且可以避免破壞性檢測的使用,維持成品的完整性。As described above, the training system of the model for predicting workpiece characteristics of the present invention focuses on improving the prediction quality of the workpiece during the manufacturing process (such as tensile strength, magnetic permeability and iron loss), mainly by recording various data of the workpiece during the manufacturing process and using image processing to obtain multiple feature values from the image of the workpiece to integrate into the product history, and then using machine learning to use these feature values to predict the characteristics of the finished product of the workpiece. In this way, the material properties of the workpiece can be predicted at the process stage, so that unqualified workpieces can be replaced early, saving time and cost, and reducing the use of metal powder. It can also avoid the use of destructive testing and maintain the integrity of the finished product.

請參照圖2並配合圖1及圖3所示,為依據本發明一實施例的一種用於預測工件特性之模型的訓練方法,該訓練方法是依據上述實施例的訓練系統進行操作,其中該訓練方法包括一影像擷取步驟S201、一特徵值轉換步驟S202、一履歷形成步驟S203、一資料預處理步驟S204、一模型建立步驟S205及一評估步驟S206。本發明將於下文詳細說明各步驟的關係及其運作原理。Please refer to FIG. 2 in conjunction with FIG. 1 and FIG. 3, which is a training method for a model for predicting workpiece characteristics according to an embodiment of the present invention. The training method is operated according to the training system of the above embodiment, wherein the training method includes an image capture step S201, a feature value conversion step S202, a history formation step S203, a data preprocessing step S204, a model building step S205 and an evaluation step S206. The present invention will explain in detail the relationship between each step and its operating principle below.

續參照圖2並配合圖1及圖3所示,在該影像擷取步驟S201中,在透過一機台形成一工件的一列印過程中,利用一感光耦合元件2取得該工件的多個逐層影像101。在本實施例中,該等逐層影像101的工件包含多個拉伸試驗棒102及多個環狀試片103,其中該拉伸試驗棒102用於檢測一拉伸強度,該環狀試片103用於檢測一導磁率及一鐵損。Continuing to refer to FIG. 2 in conjunction with FIG. 1 and FIG. 3, in the image capturing step S201, in a printing process of forming a workpiece by a machine, a plurality of layer-by-layer images 101 of the workpiece are obtained by using a photosensitive coupling element 2. In this embodiment, the workpiece of the layer-by-layer images 101 includes a plurality of tensile test bars 102 and a plurality of annular test pieces 103, wherein the tensile test bars 102 are used to detect a tensile strength, and the annular test pieces 103 are used to detect a magnetic permeability and a iron loss.

續參照圖2並配合圖1及圖2所示,在該特徵值轉換步驟S202中,利用一轉換模組3透過一灰階共生矩陣來進行計算,以獲得該等逐層影像101的多個特徵值,該灰階共生矩陣之方程式為: Continuing to refer to FIG. 2 and FIG. 1 and FIG. 2 , in the eigenvalue conversion step S202, a conversion module 3 is used to calculate through a gray-level co-occurrence matrix to obtain multiple eigenvalues of the layer-by-layer images 101. The gray-level co-occurrence matrix is:

其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為像素之間列方向位移, 為該灰階共生矩陣之行, 為像素之間行方向位移。 in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column-wise displacement between pixels, is the row of the gray-level symbiosis matrix, is the row-wise displacement between pixels.

在本實施例中,該灰階共生矩陣的一影像灰階值設定為256,或0至255,該灰階共生矩陣的像素相對位置為全方向,該灰階共生矩陣的像素之間距離為1。示例地,以該灰階共生矩陣的中心為圓心,該全方向包含該圓心的 方向( )、該圓心的 方向( )、該圓心的 方向( )及該圓心的 方向( )。 In this embodiment, an image gray value of the gray-level symbiosis matrix is set to 256, or 0 to 255, the relative position of the pixels of the gray-level symbiosis matrix is omnidirectional, and the distance between the pixels of the gray-level symbiosis matrix is 1. For example, with the center of the gray-level symbiosis matrix as the center of the circle, the omnidirectional includes the center of the circle. direction( ), the center of the circle direction( ), the center of the circle direction( ) and the center of the circle direction( ).

具體來說,該灰階共生矩陣的該等特徵值包含:Specifically, the eigenvalues of the gray-level co-occurrence matrix include:

(1)計算該灰階共生矩陣之 方向的一水平影像灰階平均 方向的一垂直影像灰階平均 為計算灰階共生矩陣時使用的灰階大小,其中該水平影像灰階平均 及該垂直影像灰階平均 的方程式為: (1) Calculate the gray-level symbiosis matrix The average gray level of a horizontal image in the direction and Vertical image gray level average , is the grayscale size used in calculating the grayscale co-occurrence matrix, where the average grayscale value of the horizontal image is And the vertical image gray level average The equation for is:

(2)計算該灰階共生矩陣之 方向的一水平影像灰階變異數 方向的一垂直影像灰階變異數 ,其中該水平影像灰階變異數 及該垂直影像灰階變異數 的方程式為: (2) Calculate the gray-level symbiosis matrix The grayscale variance of a horizontal image in the direction and A vertical image grayscale variance in the direction , where the grayscale variance of the horizontal image is and the vertical image grayscale variance The equation for is:

(3)計算該灰階共生矩陣之 方向的一水平影像灰階標準差 方向的一垂直影像灰階標準差 ,其中該水平影像灰階標準差 及該垂直影像灰階標準差 的方程式為: (3) Calculate the gray-level symbiosis matrix The standard deviation of the gray level of a horizontal image in the direction and The vertical image grayscale standard deviation , where the grayscale standard deviation of the horizontal image is And the vertical image grayscale standard deviation The equation for is:

(4)該灰階共生矩陣之紋理特徵值的能量 ,即均勻性(homogeneous patterns),其中該能量 的方程式為: (4) The energy of the texture eigenvalue of the gray-level symbiosis matrix , i.e. homogeneous patterns, where the energy The equation for is:

(5)該灰階共生矩陣之紋理特徵值的熵 ,即隨機(randomness)及變化性(variability),其中該熵 的方程式為: (5) Entropy of the texture eigenvalue of the gray-level symbiosis matrix , i.e., randomness and variability, where the entropy The equation for is:

(6)該灰階共生矩陣之影像的對比度 ,其中該對比度 的方程式為: (6) The contrast of the image in the gray-level co-occurrence matrix , where the contrast The equation for is:

(7)該灰階共生矩陣之紋理特徵值的自相關 ,即細緻(fineness)及粗糙(coarseness)程度,其中該自相關 的方程式為: (7) Autocorrelation of the texture eigenvalues of the gray-level co-occurrence matrix , i.e., the degree of fineness and coarseness, where the autocorrelation The equation for is:

(8)該灰階共生矩陣之影像局部的相關性 及相異性 ,即變化強度,該相關性 及相異性 的方程式為: (8) The local correlation of the gray-level co-occurrence matrix and heterogeneity , i.e. the intensity of change, the correlation and heterogeneity The equation for is:

(9)該灰階共生矩陣之紋理特徵值的一同質性 ,其中該同質性 的方程式為: (9) Homogeneity of the texture eigenvalues of the gray-level co-occurrence matrix , where the homogeneity The equation for is:

續參照圖2並配合圖1所示,在該履歷形成步驟S203中,利用一整合模組4將該等特徵值以及該工件在該列印過程中的多個製程參數整合在一起,以形成該工件的一產品履歷,其中該產品履歷的格式如下所示,將所有的製程參數 及紋理特徵 放置輸入的矩陣中,並且每一組的製程參數及紋理特徵會對應至一個成品特性 Continuing to refer to FIG. 2 and FIG. 1 , in the resume forming step S203, an integration module 4 is used to integrate the feature values and multiple process parameters of the workpiece during the printing process to form a product resume of the workpiece, wherein the format of the product resume is as follows, all the process parameters are integrated into one product resume. and texture features Place the input matrix, and each set of process parameters and texture features will correspond to a finished product feature .

續參照圖2並配合圖1所示,在該資料預處理步驟S204中,透過一機器學習模組5移除該工件的該產品履歷的極端值,以保留最相關的特徵值。在本實施例中,該機器學習模組5利用一相互資訊對該工件的該產品履歷進行特徵選擇,以獲得最優特徵子集,也就是最相關的前 k 種特徵值, k 的範圍為 5 至 18。最後,只保留最相關的特徵值,其餘的都會被移除。該相互資訊的方程式為: Continuing to refer to FIG. 2 and FIG. 1 , in the data preprocessing step S204, the extreme values of the product history of the workpiece are removed by a machine learning module 5 to retain the most relevant feature values. In this embodiment, the machine learning module 5 uses a mutual information to perform feature selection on the product history of the workpiece to obtain the best feature subset, that is, the most relevant first k feature values, where k ranges from 5 to 18. Finally, only the most relevant feature values are retained, and the rest are removed. The equation for the mutual information is:

其中 為隨機變數, 分別表示 的邊際機率質量函數, 表示 的聯合機率質量函數。 in and is a random variable, and Respectively indicate and The marginal probability mass function of express and The joint probability mass function of .

另外,設定該機器學習模組5的一超參數範圍。在本實施例中,該機器學習模組5使用隨機搜索(Random Search)來尋找最佳超參數,隨機搜索是一種超參數優化方法,也是一種替代網格搜索的方法。不同於網格搜索,隨機搜索不是對所有可能的超參數組合進行搜索,而是從超參數的取值範圍中隨機選取一些組合進行模型訓練和評估,最終選擇性能最好的超參數組合作為最佳組合,隨機搜索的搜尋範圍為:學習速率: [0.1, 0.15, 0.2, 0.25, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5];決策樹最大深度:[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];節點數:[100, 500, 1000];及特徵值數量:5~18。In addition, a hyperparameter range of the machine learning module 5 is set. In this embodiment, the machine learning module 5 uses random search to find the best hyperparameter. Random search is a hyperparameter optimization method and also a method to replace grid search. Unlike grid search, random search does not search for all possible hyperparameter combinations. Instead, it randomly selects some combinations from the range of hyperparameter values for model training and evaluation, and finally selects the hyperparameter combination with the best performance as the best combination. The search range of random search is: learning rate: [0.1, 0.15, 0.2, 0.25, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5]; maximum decision tree depth: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; number of nodes: [100, 500, 1000]; and number of eigenvalues: 5~18.

續參照圖2並配合圖1所示,在該模型建立步S205驟中,利用該機器學習模組5對該工件的該產品履歷進行處理,以產生一訓練模型;在本實施例中,該機器學習模組5是採用梯度提升決策樹進行演算。2 and in conjunction with FIG. 1 , in the model building step S205 , the machine learning module 5 is used to process the product history of the workpiece to generate a training model; in this embodiment, the machine learning module 5 uses a gradient boosting decision tree for calculation.

進一步來說,利用該特徵選擇,從該工件的產品履歷的資料中挑選和成品特性最相關的前 k 個特徵值,作為該訓練模型的訓練資料集,接著對該模型進行訓練的部分則是透過 XGBoost 模型,可以分別預測該等拉伸試驗棒102的拉伸強度以及該等環狀試片103的磁導率及鐵損。Furthermore, by utilizing the feature selection, the first k feature values that are most relevant to the finished product characteristics are selected from the product history data of the workpiece as the training data set for the training model. The model is then trained using the XGBoost model, which can predict the tensile strength of the tensile test bars 102 and the magnetic permeability and iron loss of the annular test pieces 103, respectively.

續參照圖2並配合圖1所示,在該評估步驟S206中,利用一評估模組6透過一模型評估指標來評估該訓練模型是否為一最佳模型,若是,則回報一結果,若否,則重新執行上述步驟。2 and in conjunction with FIG. 1 , in the evaluation step S206 , an evaluation module 6 is used to evaluate whether the training model is an optimal model through a model evaluation index. If so, a result is reported; if not, the above steps are executed again.

進一步來說,該評估模組6評估該訓練模型是透過決定係數 ( )、均方誤差(MSE)及平均絕對誤差(MAE)作為判斷該訓練模型之準度的依據。最後可以發現,對於該工件的成品特性,透過本發明的訓練方法所產生預測工件特性之模型所得到的結果都很精準,該工件之成品特性的誤差都可以約在 10% 以內。 Furthermore, the evaluation module 6 evaluates the training model through the determination coefficient ( ), mean square error (MSE) and mean absolute error (MAE) are used as the basis for judging the accuracy of the training model. Finally, it can be found that for the finished product characteristics of the workpiece, the results obtained by the model for predicting the workpiece characteristics generated by the training method of the present invention are very accurate, and the error of the finished product characteristics of the workpiece can be within about 10%.

依據上述的內容,本發明用於預測工件特性之模型的訓練方法透過該整合模組4來形成該工件的該產品履歷,以紀錄及描述積層製造該工件之製程中的各項數據,其中所述各項數據由多個製程參數及製程中的該等逐層影像101的特徵值組合而成,該等製程參數主要是輸入到該機台的參數設定,該等特徵值則是在該機台中安裝該感光耦合元件2進行製程中的該等逐層影像101擷取,並且透過影像處理產生一系列影像的特徵值,藉此用來描述該工件的紋理特徵。接著使用該機器學習模組5針對該工件的產品履歷對其材料特性進行預測,使該工件可以在積層製造的製程階段即可獲知該工件的材料特性,以達到提升該工件之品質管理的效果。According to the above content, the training method of the model for predicting the characteristics of the workpiece of the present invention forms the product history of the workpiece through the integrated module 4 to record and describe various data in the process of layer-by-layer manufacturing of the workpiece, wherein the various data are composed of a plurality of process parameters and the characteristic values of the layer-by-layer images 101 in the process. The process parameters are mainly input into the parameter settings of the machine, and the characteristic values are captured by installing the photosensitive coupling element 2 in the machine to capture the layer-by-layer images 101 in the process, and a series of image characteristic values are generated through image processing to describe the texture characteristics of the workpiece. Then, the machine learning module 5 is used to predict the material properties of the workpiece according to its product history, so that the material properties of the workpiece can be known during the process stage of multilayer manufacturing, thereby achieving the effect of improving the quality management of the workpiece.

如上所述,本發明用於預測工件特性之模型的訓練方法著重於提升該工件在製程過程中的預測品質(例如拉伸強度、導磁率及鐵損),主要透過記錄該工件在製造過程中的各項數據以及利用影像處理從該工件的影像中取得多個特徵值來整合成該產品履歷,接著使用機器學習利用該等特徵值,預測該工件的成品之特性,藉此在製程階段就可以預測該工件的材料特性,以提早汰換不合格的工件,節省時間成本,也可以減少金屬粉末的使用量,且可以避免破壞性檢測的使用,維持成品的完整性。As described above, the training method of the model for predicting workpiece characteristics of the present invention focuses on improving the prediction quality of the workpiece during the manufacturing process (such as tensile strength, magnetic permeability and iron loss), mainly by recording various data of the workpiece during the manufacturing process and using image processing to obtain multiple feature values from the image of the workpiece to integrate into the product history, and then using machine learning to use these feature values to predict the characteristics of the finished product of the workpiece. In this way, the material properties of the workpiece can be predicted in the process stage, so that unqualified workpieces can be replaced early, saving time and cost, and reducing the use of metal powder. It can also avoid the use of destructive testing and maintain the integrity of the finished product.

儘管已經在系統的上下文中描述了一些態樣,但是應當理解的是,所述方面也表示對應方法的描述,因此,系統的方塊或結構元件也應被理解為相應的方法步驟或方法步驟的特徵。以此類推,已經在方法步驟的上下文中或作為方法步驟描述的方面也表示對相應設備的相應方塊或細節或特徵的描述。一些或所有的方法步驟可以在使用如微處理器、可編程電腦或電子電路的硬體設備時執行。在一些實施例中,一些或幾個最重要的方法步驟可以由這樣的設備來執行。Although some aspects have been described in the context of a system, it should be understood that the aspects also represent a description of a corresponding method, and therefore, a block or structural element of the system should also be understood as a corresponding method step or a feature of a method step. By analogy, aspects that have been described in the context of a method step or as a method step also represent a description of a corresponding block or detail or feature of a corresponding device. Some or all of the method steps can be performed when using a hardware device such as a microprocessor, a programmable computer or an electronic circuit. In some embodiments, some or several of the most important method steps can be performed by such a device.

根據具體的實現需求,本發明的實施例可以用硬體實現,也可以用軟體實現。可以在使用數位儲存介質時實現實施,例如軟碟機、DVD、藍光磁碟機、CD、ROM、PROM、EPROM、EEPROM或FLASH儲存器、硬碟或任何其他磁或光學儲存器,其具有儲存在其中的電子可讀控制訊號,其可以與可編程電腦系統合作,或協作,使得相應的方法被執行。這就是為什麼數位儲存介質可以是電腦可讀的。因此,根據本發明的一些實施例包括數據載體,其包括能夠與可編程電腦系統協作,以便執行本文描述的任何方法的電子可讀控制訊號。通常,本發明的實施例可以實現為具有程序代碼的電腦程式產品,當電腦程式產品在電腦上運行時,程式代碼可有效執行任何方法。例如,程式代碼也可以儲存在機器可讀的載體上。其他實施例包括用於執行本文所述的任何方法的電腦程式,該電腦程式儲存在機器可讀載體上。換句話說,本發明方法的一個實施例是一種電腦程式,其具有用於執行本文描述的任何方法的程式代碼,當電腦程式在電腦上運行時。因此,本發明方法的另一個實施例是一種數據載體(或數位儲存介質或電腦可讀介質),其中記錄了用於執行此處描述的任何方法的電腦程式。數據載體、數位儲存介質或記錄介質通常是有形的或非易失性的。因此,本發明方法的另一個實施例是數據流或訊號序列,表示用於執行此處描述的任何方法的電腦程式。數據流或訊號序列可以被配置為例如經由數據通信鏈路傳輸,例如經由網路傳輸。進一步的實施例包括處理單元,例如電腦或可編程邏輯設備,配置為或適於執行本文描述的任何方法。進一步的實施例包括電腦,在電腦上安裝了用於執行本文描述的任何方法的電腦程式。Depending on the specific implementation requirements, the embodiments of the present invention can be implemented in hardware or in software. The implementation can be implemented when using a digital storage medium, such as a floppy disk drive, DVD, Blu-ray disk drive, CD, ROM, PROM, EPROM, EEPROM or FLASH memory, a hard disk or any other magnetic or optical storage device, which has an electronically readable control signal stored therein, which can cooperate with a programmable computer system, or collaborate, so that the corresponding method is executed. This is why the digital storage medium can be computer readable. Therefore, some embodiments according to the present invention include a data carrier, which includes an electronically readable control signal that can cooperate with a programmable computer system to execute any method described herein. Generally, embodiments of the present invention can be implemented as a computer program product with program code, and when the computer program product is run on a computer, the program code can effectively execute any method. For example, the program code can also be stored on a machine-readable carrier. Other embodiments include a computer program for executing any method described herein, which is stored on a machine-readable carrier. In other words, one embodiment of the method of the present invention is a computer program having a program code for executing any method described herein, when the computer program is run on a computer. Therefore, another embodiment of the method of the present invention is a data carrier (or digital storage medium or computer-readable medium) in which a computer program for executing any method described herein is recorded. The data carrier, digital storage medium or recording medium is generally tangible or non-volatile. Therefore, another embodiment of the method of the present invention is a data stream or a signal sequence representing a computer program for executing any method described herein. The data stream or signal sequence can be configured to be transmitted, for example, via a data communication link, such as via a network. Further embodiments include a processing unit, such as a computer or a programmable logic device, configured to or suitable for executing any method described herein. Further embodiments include a computer on which a computer program for executing any method described herein is installed.

根據本發明的另一實施例包括一種裝置或系統,該裝置或系統被配置成將用於執行這裡描述的方法中的至少一個的電腦程式傳輸到接收器。例如,傳輸可以是電學的或光學的。例如,接收器可以是電腦、移動裝置、儲存裝置或類似裝置。例如,裝置或系統可以包括用於將電腦程序傳輸到接收器的文件伺服器。在一些實施例中,可編程邏輯裝置(例如現場可編程門陣列,FPGA)可以用於執行本文描述的方法的一些或所有功能。在一些實施例中,現場可編程門陣列可以與微處理器協作以執行本文描述的任何方法。通常,在一些實施例中,這些方法由任何硬體設備執行。所述硬體設備可以是電腦處理器(CPU)等任何通用的硬體,也可以是ASIC等方法專用的硬體。Another embodiment according to the present invention includes a device or system configured to transmit a computer program for performing at least one of the methods described herein to a receiver. For example, the transmission can be electrical or optical. For example, the receiver can be a computer, a mobile device, a storage device, or a similar device. For example, the device or system can include a file server for transmitting the computer program to the receiver. In some embodiments, a programmable logic device (e.g., a field programmable gate array, FPGA) can be used to perform some or all functions of the methods described herein. In some embodiments, the field programmable gate array can cooperate with a microprocessor to perform any method described herein. Generally, in some embodiments, these methods are performed by any hardware device. The hardware device can be any general hardware such as a computer processor (CPU), or method-specific hardware such as an ASIC.

雖然本發明已以實施例揭露,然其並非用以限制本發明,任何熟習此項技藝之人士,在不脫離本發明之精神和範圍內,當可作各種更動與修飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed by way of embodiments, they are not intended to limit the present invention. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of the attached patent application.

101:逐層影像 102:拉伸試驗棒 103:環狀試片 2:感光耦合元件 3:轉換模組 4:整合模組 5:機器學習模組 6:評估模組 S201:影像擷取步驟 S202:特徵值轉換步驟 S203:履歷形成步驟 S204:資料預處理步驟 S205:模型建立步驟 S206:評估步驟101: Layer-by-layer image 102: Tensile test rod 103: Ring specimen 2: Photosensitive coupling element 3: Conversion module 4: Integration module 5: Machine learning module 6: Evaluation module S201: Image acquisition step S202: Eigenvalue conversion step S203: Resume formation step S204: Data preprocessing step S205: Model building step S206: Evaluation step

圖1是依據本發明一實施例的一種用於預測工件特性之模型的訓練系統的示意圖。 圖2是依據本發明一實施例的一種用於預測工件特性之模型的訓練方法的流程圖。 圖3是依據本發明一實施例的一種用於預測工件特性之模型的訓練方法的逐層影像的示意圖。 FIG1 is a schematic diagram of a training system for a model for predicting workpiece characteristics according to an embodiment of the present invention. FIG2 is a flow chart of a training method for a model for predicting workpiece characteristics according to an embodiment of the present invention. FIG3 is a schematic diagram of layer-by-layer images of a training method for a model for predicting workpiece characteristics according to an embodiment of the present invention.

S201:影像擷取步驟 S201: Image capture step

S202:特徵值轉換步驟 S202: Eigenvalue conversion step

S203:履歷形成步驟 S203: Resume formation step

S204:資料預處理步驟 S204: Data preprocessing step

S205:模型建立步驟 S205: Model building step

S206:評估步驟 S206: Evaluation step

Claims (10)

一種用於預測工件特性之模型的訓練方法,該訓練方法包括: 一影像擷取步驟,在透過一機台形成一工件的一列印過程中,利用一感光耦合元件取得該工件的多個逐層影像; 一特徵值轉換步驟,利用一轉換模組透過一灰階共生矩陣來進行計算,以獲得該等逐層影像的多個特徵值,該灰階共生矩陣之方程式為: 其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為列位移, 為該灰階共生矩陣之行, 為行位移; 一履歷形成步驟,利用一整合模組將該等特徵值以及該工件在該列印過程中的多個製程參數整合在一起,以形成該工件的一產品履歷; 一模型建立步驟,利用一機器學習模組對該工件的該產品履歷進行處理,以產生一訓練模型;及 一評估步驟,利用一評估模組透過一模型評估指標來評估該訓練模型是否為一最佳模型,若是,則回報一結果,若否,則重新執行上述步驟。 A training method for a model for predicting workpiece characteristics includes: an image capture step, in which a plurality of layer-by-layer images of a workpiece are obtained by using a photosensitive coupling element during a printing process of forming a workpiece by a machine; an eigenvalue conversion step, in which a conversion module is used to calculate through a gray-level co-occurrence matrix to obtain a plurality of eigenvalues of the layer-by-layer images, wherein the gray-level co-occurrence matrix is: in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column shift, is the row of the gray-level symbiosis matrix, for row displacement; a history forming step, utilizing an integration module to integrate the feature values and a plurality of process parameters of the workpiece in the printing process to form a product history of the workpiece; a model building step, utilizing a machine learning module to process the product history of the workpiece to generate a training model; and an evaluation step, utilizing an evaluation module to evaluate whether the training model is an optimal model through a model evaluation indicator, and if so, reporting a result, and if not, re-executing the above steps. 如請求項1所述之用於預測工件特性之模型的訓練方法,在該特徵值轉換步驟中,該灰階共生矩陣的一影像灰階值設定為256,該灰階共生矩陣的像素相對位置為全方向,該灰階共生矩陣的像素之間距離為1。In the training method of the model for predicting workpiece characteristics as described in claim 1, in the eigenvalue conversion step, an image grayscale value of the grayscale co-occurrence matrix is set to 256, the relative position of the pixels of the grayscale co-occurrence matrix is omnidirectional, and the distance between the pixels of the grayscale co-occurrence matrix is 1. 如請求項2所述之用於預測工件特性之模型的訓練方法,在該特徵值轉換步驟中,以該灰階共生矩陣的中心為圓心,該全方向包含該圓心的 方向、該圓心的 方向、該圓心的 方向及該圓心的 方向。 In the training method for predicting workpiece characteristics as described in claim 2, in the eigenvalue conversion step, the center of the gray-level co-occurrence matrix is taken as the center of the circle, and the omnidirectional direction, the center of the circle direction, the center of the circle Direction and center of the circle direction. 如請求項1所述之用於預測工件特性之模型的訓練方法,在該特徵值轉換步驟中,該灰階共生矩陣的該等特徵值包含: 計算該灰階共生矩陣之 方向及 方向的一影像灰階平均; 計算該灰階共生矩陣之 方向及 方向的一影像灰階變異數; 計算該灰階共生矩陣之 方向及 方向的一影像灰階標準差; 該灰階共生矩陣之紋理特徵值的一均勻性; 該灰階共生矩陣之紋理特徵值的一隨機及變化性; 該灰階共生矩陣之影像的一對比度; 該灰階共生矩陣之紋理特徵值的一細緻及粗糙程度; 該灰階共生矩陣之影像局部的一變化強度;及 該灰階共生矩陣之紋理特徵值的一同質性。 In the training method for predicting workpiece characteristics of claim 1, in the eigenvalue conversion step, the eigenvalues of the gray-level symbiosis matrix include: calculating the gray-level symbiosis matrix Direction and The gray level average of an image in the direction; Calculate the gray level co-occurrence matrix Direction and The gray-level variance of an image in the direction of Direction and a grayscale standard deviation of an image in a direction; a uniformity of the texture eigenvalues of the grayscale symbiosis matrix; a randomness and variability of the texture eigenvalues of the grayscale symbiosis matrix; a contrast of the image of the grayscale symbiosis matrix; a fineness and coarseness of the texture eigenvalues of the grayscale symbiosis matrix; a variation intensity of a local part of the image of the grayscale symbiosis matrix; and a homogeneity of the texture eigenvalues of the grayscale symbiosis matrix. 如請求項1所述之用於預測工件特性之模型的訓練方法,在該模型建立步驟之前,該方法另包含一資料預處理步驟,在該資料預處理步驟中,透過該機器學習模組移除該工件的該產品履歷的極端值。The method for training a model for predicting workpiece characteristics as described in claim 1 further includes a data preprocessing step before the model building step, in which the extreme values of the product history of the workpiece are removed through the machine learning module. 如請求項5所述之用於預測工件特性之模型的訓練方法,在該資料預處理步驟中,該機器學習模組利用一相互資訊對該工件的該產品履歷進行特徵選擇,以獲得最優特徵子集,其中該相互資訊的方程式為: 其中 為隨機變數, 分別表示 的邊際機率質量函數, 表示 的聯合機率質量函數。 In the training method for a model for predicting workpiece characteristics as described in claim 5, in the data preprocessing step, the machine learning module uses a mutual information to perform feature selection on the product history of the workpiece to obtain the optimal feature subset, wherein the equation of the mutual information is: in and is a random variable, and Respectively indicate and The marginal probability mass function of express and The joint probability mass function of . 如請求項4所述之用於預測工件特性之模型的訓練方法,在該資料預處理步驟中,設定該機器學習模組的一超參數範圍。In the method for training a model for predicting workpiece characteristics as described in claim 4, in the data preprocessing step, a hyperparameter range of the machine learning module is set. 如請求項1所述之用於預測工件特性之模型的訓練方法,在該影像擷取步驟中,該等逐層影像的工件包含多個拉伸試驗棒及多個環狀試片,該拉伸試驗棒用於檢測一拉伸強度,該環狀試片用於檢測一導磁率及一鐵損。As described in claim 1, the training method of a model for predicting workpiece characteristics, in the image capture step, the workpiece of the layer-by-layer images includes a plurality of tensile test bars and a plurality of annular test pieces, the tensile test bars are used to detect a tensile strength, and the annular test pieces are used to detect a magnetic permeability and an iron loss. 如請求項1所述之用於預測工件特性之模型的訓練方法,在該模型建立步驟中,該機器學習模組是採用梯度提升決策樹進行演算。In the method for training a model for predicting workpiece characteristics as described in claim 1, in the model building step, the machine learning module uses a gradient boosting decision tree for calculation. 一種用於預測工件特性之模型的訓練系統,該訓練系統包括: 一感光耦合元件,配置為在透過一機台形成一工件的一列印過程中取得該工件的多個逐層影像; 一轉換模組,配置為透過一灰階共生矩陣來進行計算,以獲得該等逐層影像的多個特徵值,該灰階共生矩陣之方程式為: 其中 為灰階共生矩陣, 為參考像素的灰階值, 為相鄰像素的灰階值,每一逐層影像 的大小為 為該灰階共生矩陣之列, 為列位移, 為該灰階共生矩陣之行, 為行位移; 一整合模組,配置為將該等特徵值以及該工件在該列印過程中的多個製程參數整合在一起,以形成該工件的一產品履歷; 一機器學習模組,配置為對該工件的該產品履歷進行處理,以產生一訓練模型;及 一評估模組,配置為透過一模型評估指標來評估該訓練模型是否為一最佳模型,並回報一結果。 A training system for a model for predicting workpiece characteristics, the training system comprising: a photosensitive coupling element, configured to obtain multiple layer-by-layer images of a workpiece during a printing process of forming a workpiece through a machine; a conversion module, configured to calculate through a gray-level co-occurrence matrix to obtain multiple eigenvalues of the layer-by-layer images, the gray-level co-occurrence matrix having the equation: in is the gray-level symbiosis matrix, is the grayscale value of the reference pixel, is the grayscale value of the adjacent pixels, each layer of image The size is , is a column of the gray-level symbiosis matrix. is the column shift, is the row of the gray-level symbiosis matrix, for row displacement; an integration module configured to integrate the feature values and multiple process parameters of the workpiece in the printing process to form a product history of the workpiece; a machine learning module configured to process the product history of the workpiece to generate a training model; and an evaluation module configured to evaluate whether the training model is an optimal model through a model evaluation indicator and report a result.
TW112133946A 2023-09-06 2023-09-06 Training method and system of model used for predicting characteristics of workpiece TWI840303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112133946A TWI840303B (en) 2023-09-06 2023-09-06 Training method and system of model used for predicting characteristics of workpiece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112133946A TWI840303B (en) 2023-09-06 2023-09-06 Training method and system of model used for predicting characteristics of workpiece

Publications (2)

Publication Number Publication Date
TWI840303B true TWI840303B (en) 2024-04-21
TW202511982A TW202511982A (en) 2025-03-16

Family

ID=91618856

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112133946A TWI840303B (en) 2023-09-06 2023-09-06 Training method and system of model used for predicting characteristics of workpiece

Country Status (1)

Country Link
TW (1) TWI840303B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578092B (en) * 2015-08-06 2017-04-11 國立成功大學 Mouth examination device
TWM604988U (en) * 2020-08-10 2020-12-01 固德科技股份有限公司 Intelligent monitoring system applied to dynamic image
CN113711587A (en) * 2019-02-07 2021-11-26 奇跃公司 Lightweight cross-display device with passive depth extraction
EP3933528A1 (en) * 2020-06-30 2022-01-05 Atos Spain S.A. Predicting system in additive manufacturing process by machine learning algorithms

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578092B (en) * 2015-08-06 2017-04-11 國立成功大學 Mouth examination device
CN113711587A (en) * 2019-02-07 2021-11-26 奇跃公司 Lightweight cross-display device with passive depth extraction
EP3933528A1 (en) * 2020-06-30 2022-01-05 Atos Spain S.A. Predicting system in additive manufacturing process by machine learning algorithms
TWM604988U (en) * 2020-08-10 2020-12-01 固德科技股份有限公司 Intelligent monitoring system applied to dynamic image

Also Published As

Publication number Publication date
TW202511982A (en) 2025-03-16

Similar Documents

Publication Publication Date Title
Yuan et al. Machine‐learning‐based monitoring of laser powder bed fusion
O’Byrne et al. Texture analysis based damage detection of ageing infrastructural elements
CN109544555B (en) Tiny crack segmentation method based on generation type countermeasure network
JP7102941B2 (en) Information processing methods, information processing devices, and programs
CN116740051A (en) Steel surface defect detection method based on improved YOLO model
JP2019012037A (en) Material characteristic estimation device and material characteristic estimation method
CN114742800B (en) Reinforced learning electric smelting magnesium furnace working condition identification method based on improved converter
CN113421334B (en) Multi-focus image three-dimensional reconstruction method based on deep learning
CN119295465B (en) Bridge construction quality inspection method, system and platform supported by machine vision
CN118644466A (en) A real-time detection method for weld quality defects based on deep learning
TWI840303B (en) Training method and system of model used for predicting characteristics of workpiece
Xia et al. Enhanced multiscale attentional feature fusion model for defect detection on steel surfaces
Xue et al. Detection of Various Types of Metal Surface Defects Based on Image Processing.
JP2021086382A (en) Learning apparatus, detection apparatus, learning method, and learning program
CN120411056B (en) A multimodal fusion learning system for alloy fracture surfaces
Busheska et al. Machine Learning and Thermography Applied to the Detection and Classification of Cracks in Buildings
Guo et al. Segment anything model-based crack segmentation using low-rank adaption fine-tuning
Jency et al. Deepcrack: A Deep Learning Approach for Image-Based Crack Prediction using MobileNet And Transfer Learning
CN117474915B (en) Abnormality detection method, electronic equipment and storage medium
CN116188838B (en) Interference determination method of external damage potential point based on artificial intelligence
CN117670858B (en) CFLOW-AD model-based metal strip surface defect detection method
Qiu et al. Improved CNN prediction based reversible data hiding
CN116787017B (en) Control method and system for hydraulic turbine seat ring welding robot
Parmar et al. CNN-based weld defect detection on X-ray images
CN117115604B (en) Image detection methods, modules, computer equipment, and computer-readable storage media