원시데이터 수집 시스템
선정목록으로

Feature Extraction of Laser Machining Data by Using Deep Multi-Task Learning

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(22) POM(폴리아세탈)

기본 정보

저자
  1. Quexuan Zhang — Department of Systems Innovation, School of Engineering, The University of Tokyo, Hongo 7-3-1, Bunkyo-ku, Tokyo 113-8656, Japan
  2. Zexuan Wang — Department of Systems Innovation, School of Engineering, The University of Tokyo, Hongo 7-3-1, Bunkyo-ku, Tokyo 113-8656, Japan
  3. Bin Wang — Department of Systems Innovation, School of Engineering, The University of Tokyo, Hongo 7-3-1, Bunkyo-ku, Tokyo 113-8656, Japan
  4. Yukio Ohsawa — Department of Systems Innovation, School of Engineering, The University of Tokyo, Hongo 7-3-1, Bunkyo-ku, Tokyo 113-8656, Japan
  5. Teruaki Hayashi — Department of Systems Innovation, School of Engineering, The University of Tokyo, Hongo 7-3-1, Bunkyo-ku, Tokyo 113-8656, Japan
DOI
10.3390/info11080378
저널
Information
발행년도
2020
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
14
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/info11080378
토픽
Laser Material Processing Techniques
OpenAlex ID
W3045309533

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(21) 에폭시수지, (22) POM(폴리아세탈)
R&D 측면
분석·모델링
확신도
0.60
근거 용어
Laser machining, Deep Multi-Task Learning, Feature Extraction, in situ monitoring, neural networks
판단 근거
레이저 가공 데이터의 특징 추출을 위한 딥러닝 모델 연구로, 코오롱의 엔지니어링 플라스틱이나 수지 성형 공정 중 레이저 가공/가공 품질 모니터링에 응용 가능한 기술입니다.
R&D 활용 포인트
고분자 소재(EP, 수지 등)의 레이저 가공 공정 중 실시간 품질 모니터링 및 불량 검출을 위한 AI 모델링 기술로 활용 가능합니다.
평가 입력
초록 840자

초록

Laser machining has been widely used for materials processing, while the inherent complex physical process is rather difficult to be modeled and computed with analytical formulations. Through attending a workshop on discovering the value of laser machining data, we are profoundly motivated by the recent work by Tani et al., who proposed in situ monitoring of laser processing assisted by neural networks. In this paper, we propose an application of deep learning in extracting representative features from laser processing images with a multi-task loss that consists of cross-entropy loss and logarithmic smooth L1 loss. In the experiment, AlexNet with multi-task learning proves to be better than deeper models. This framework of deep feature extraction also has tremendous potential to solve more laser machining problems in the future.

본문 28,532자

본문 펼치기
Laser machining has been widely used for materials processing, while the inherent complex physical process is rather difficult to be modeled and computed with analytical formulations. Through attending a workshop on discovering the value of laser machining data, we are profoundly motivated by the recent work by Tani et al., who proposed in situ monitoring of laser processing assisted by neural networks. In this paper, we propose an application of deep learning in extracting representative features from laser processing images with a multi-task loss that consists of cross-entropy loss and logarithmic smooth L 1 loss. In the experiment, AlexNet with multi-task learning proves to be better than deeper models. This framework of deep feature extraction also has tremendous potential to solve more laser machining problems in the future. Introduction The application of deep learning methods to physics is gaining increasing attention due to its powerful ability in modeling and predicting. Laser machining has highly reformed the manufacturing industry over recent decades, and it has also become a popular topic in the field of physical studies. However, the complex nonlinear process inherent to laser processing is still a problem which remains. In this paper, we demonstrate an application of deep learning in extracting representative features from laser processing images with a multi-task learning scheme. Laser Machining Laser machining is a physical process of removing material via the interaction between a laser beam and some target material. In laser machining processes, the energy of a photon is transported to the target material in the form of thermal energy or photochemical energy, and then the target material is removed by melting or ablation [1]. Laser machining has been characterized by a lot of advantages such as flexibility, precision, automation, and versatility [2]. It has been widely applied to high-precision materials processing in recent years. The global laser machining market is expected to reach USD 5.7 billion by 2022 due to the increasing need for high-precision and automation in manufacturing [3]. Laser machining is believed to play an important role in Society 5.0 [4]. Laser Machining Nevertheless, it is of great difficulty to strictly control the machining quality due to the inherent complex physical process. Sometimes a slight change in the laser or environmental parameters could lead to a totally different result [5]. Laser Machining Since it is as yet impracticable to simulate this complex process by mathematical or physical methods, deep learning methods as pattern recognition algorithms are drawing more attention recently. Laser Machining Deep learning approaches allow stakeholders to skip obtaining complex prior physical knowledge of laser machining. This also helps users with better mining the value of machining data from another perspective. Purpose and Motivation Although there is huge potential for applying deep learning in physics, the corporation between data science and physics is sometimes hard to achieve due to the lack of cross-disciplinary communication. However, our work is strongly motivated by participating an IMDJ workshop [6] to seek solutions to handle a series of problems in physics, including laser machining. Purpose and Motivation Here, IMDJ is a game-style workshop to discover the value of data and find solutions for some practical problems, in the way of creating new ideas by combining Data Jackets (DJ) and Tool Jackets (TJ) with negotiations. A DJ keeps the digest of a dataset in a structured format so that the dataset could be comprehended in the discussions without showing the actual content [7]. Similarly, a TJ is a summary of a certain technical tool that might be complicated for non-experts in data utilization. Besides, a visualization method called KeyGraph [8] is usually used to reveal the relationships between different DJs and TJs, which could make it easier for the participants to discuss on cross-disciplinary data or techniques and then create new solutions with them. Purpose and Motivation Many influential data scientists and physicists from The University of Tokyo attended the IMDJ workshop in which we participated. This workshop aimed at using methods from data science to solve problems which were still complex in physics. The physicists proposed their datasets and the requirements on them while data scientists introduced data utilization methods for possible solutions. In this way, a cross-disciplinary collaboration could be built without requiring prior knowledge of other fields for all participants. Many latent problems and applications in the fields of physics and data science were deeply discussed in this workshop. From the discussions, we are highly motivated by methods put forward by some physicists of using deep learning on laser machining data. Especially, Tani, Aoyagi, and Kobayashi [9][10][11] recently proposed in situ process monitoring assisted by a deep neural network, which does not require analytical formulation (see also Section 2.1). This gave us the inspiration for this work to apply deep learning methods for the feature extraction of laser machining data. Because it is difficult for humans to extract useful information from the laser machining data where the speckle patterns are captured on the Fourier plane, we considered that deep learning techniques could be fully utilized to reveal more essential in-data information [12,13]. Purpose and Motivation The main contribution of this paper is that we analyze the laser machining data which is still less studied, and then design a deep multi-task learning framework to train a feature-extracting model for the downstream tasks with the help of some known information, such as processing power settings or logarithmic orders of machining stages. Besides, we will demonstrate that AlexNet with multi-task performs better than a deeper model, which could also meet the real-time requirements due to the less computational cost. Laser Machining and Deep Learning Recently there has been some research for applying deep learning methods on laser machining data. The pioneering work proposed by Tani et al. [11] introduced a method to monitor the progress of laser processing using laser speckle patterns without a need for analytical formulation. Deep learning methods were used to extract multiple information such as ablation depth and material type under processing, which could be useful for composite material processing. Their work proved the simplicity, versatility and accuracy of applying deep learning in laser processing. Another deep learning-based method was proposed by Mills et al. [14] as image-based monitoring of femtosecond laser machining. This paper aimed to build a real-time feedback system in laser machining by predicting the type of material, the laser fluence, and the number of pulses at the same time as a classification problem. Laser Machining and Deep Learning The disadvantage of this method is that the environmental parameters were strictly limited since the training set only contains a small number of all possible combinations. Laser Machining and Deep Learning Existing work focuses less on the aspect of feature extraction than just taking deep learning as pattern recognition or regression algorithms. With feature extraction, our results could be extended and used in more potential physical problems of laser machining. Multi-Task Learning The traditional solution to obtain machine learning models for different tasks on the same dataset, or the same task on a different dataset is to train different new models from scratch each time. However, in some real-world applications such as medical image analysis or high precision physical experiments, enough data samples in good quality are often difficult to collect. In this case, training models separately with limited data may lead to a result of several low-accuracy shallow models, which is not desirable in real applications. Multi-Task Learning Multi-task learning (MTL) [15] is inspired by human learning activities when people often tend to apply the knowledge obtained from previous tasks to help with working on a new but related task. It is considered a good solution when there are multiple related tasks and each of which only has limited training samples. Among these learning tasks, all of them are assumed to be related to each other. In this case, it can be found that learning these tasks jointly could lead to a performance improvement compared with learning them separately. MTL has seen a lot of success across many applications of machine learning, such as natural language processing [16], speech recognition [17] and computer vision [18]. Multi-Task Learning Deep MTL [19,20] combines deep learning and MTL where multiple learning tasks will be solved simultaneously by exploring commonalities and differences among all the tasks by leveraging deep neural networks. Recently, deep MTL has started to draw scholars' attention due to its capacity of learning hierarchical features and sharing knowledge from different domains. One of the reasons for the success of deep MTL could be attributed to the inbuilt sharing system, which allows a network to extract features shared across different tasks [21,22]. Multi-Task Learning In this paper, a deep multi-task learning framework will be applied for better mining latent information in the laser machining data through a composed loss function. Dataset In this section, we describe the laser machining image dataset we obtained by negotiating with the physicists in the IMDJ workshop. We introduce the data details and then report an exploratory analysis on a part of the dataset. Details The laser machining dataset adopted in this paper is kindly provided by one of the workshop participants, Kobayashi Lab., Institute for Solid State Physics (ISSP), The University of Tokyo. There are 10 different laser power settings, 105 independent experiments in each power setting, and 250 sequential stages within each experiment so that there are a total of 262,500 images in the dataset. Each image records speckle patterns in the Fourier transform plane with a resolution of 400 × 4080 pixels in grayscale, and all the images have already been labeled with laser powers and stage numbers. For the aim of utilizing machine learning methods and the consideration of experimental reproduction, the total dataset is further divided into three subsets shown in Table 1. Nevertheless, the size of the original images is too large that they exceed the memory limitation of our device, so we use bilinear interpolation to resize the input images from the original 400 × 4080 pixels to a smaller size. We choose 224 × 224 as the new size because it is mostly used by existing CNN models. This preprocessing step also accelerates the training speed. Moreover, each data value in the three sets is normalized by the empirical mean 0.109251 and standard deviation 0.033309 which are observed over the training set. Analysis To understand the laser processing image data, we give a study looking at the training set by using principal component analysis (PCA) [23]. PCA is one of the methods that explore the characteristics of data sets by finding orthogonal components, on which the projection of the data has the most variance. Before performing PCA, the original data is usually processed with mean centering that subtracts each data value from the empirical mean along each variable. Analysis Consider a centered real matrix X of N × M size, where N is the number of samples, M is the number of variables of the data and N ≥ M. PCA performs eigenvalue decomposition on the covariance matrix C = X X/(N − 1) to find eigenvectors as the components with the largest-to-smallest sorted eigenvalues λ [M] (λ 1 ≥ λ 2 ≥ · · · ≥ λ M ). The eigenvectors and the corresponding eigenvalues are used to explain the variance in the data with explained variance ratio r i = λ i / ∑ M j=1 λ j . However, it is hard for us to operate eigenvalue decomposition on our training set directly where N = 175,000 and M = 224 × 224 = 50,176. Therefore, we apply singular value decomposition (SVD) on the centered training set alternatively. SVD gives X = UΣV , where U and V are orthogonal matrices, and Σ is an M × M diagonal matrix of singular values σ [M] . In practice, the computation can drop the matrices U and V , and only store the diagonal matrix Σ as an array with M size. Letting the singular values be in the order σ 1 ≥ σ 2 ≥ · · · ≥ σ M , we can obtain the eigenvalues of C by Analysis To evaluate the amount of variance explained by the components, we use the cumulative explained variance ratio (CEVR) which is defined as Analysis Besides mean centering, we handle the centered training set before performing SVD with normalization that divides the data value by the empirical standard deviation over each variable. The data processed with the combination of centering and normalization are called z-scores, which could improve the performance in some machine learning methods. Then we obtain the singular values of the z-scores with SVD and calculate the CEVRs by Equations (1) Although a 224 × 224 image has a high dimension, we find that we can adopt less than 300 components to recover greater than 99% variance in the training data. This can help us extract features with a low-rank decomposition, e.g., truncated SVD [24], for alleviating the curse of dimensionality. Matrix decomposition is widely used in traditional machine learning methods for high-dimensional data. Method To utilize the speckle pattern image data for the downstream applications such as ablation prediction or laser machining monitoring, extracting features from the original data is the most critical step, as any further applications will be based on the representative features extracted from the images. A good form of image feature representations will increase the accuracy performance of the model and the ability of the model to be applied to more datasets in the future. Method In this paper, we adopt two CNN models for feature extraction and design two corresponding tasks to evaluate the performance of feature extraction on speckle pattern data: Method 1. Power Classification: Input an image, then predict the corresponding laser source power setting when this image was taken, i.e., classify the image to one of the 10 classes of laser power. 2. Shot No. Regression: Input an image, then predict the logarithmic corresponding shot no. of this image, i.e., at which stage during a single experiment this image was taken, the shot no. can be one value in the range of 1-250. Method To handle these two tasks, three steps are designed in our proposed method including image feature extraction with CNN, classification and regression, and MTL ( Figure 2). The details of these steps will be introduced in the following sections. Image Feature Extraction with CNN The first as well as the most important step of our proposed model is to extract the features of images from the original data so that we can use these features to represent images with similar structures, which are more likely to be taken in similar laser source settings or experiment stages. In this step, we adopt two widely used CNN models in the field of computer vision, AlexNet and ResNet, for image feature extraction as our base models: Image Feature Extraction with CNN • AlexNet [25] has five convolutional layers and three fully-connected (FC) layers and uses the rectified linear unit (ReLU) as the activation function instead of the sigmoid function to reduce gradient vanishing and gradient exploding problems. AlexNet also introduces mechanisms such as Dropout and overlapping pooling to avoid overfitting. • ResNet [26] (Deep Residual Network) is designed for networks with great depths by introducing a new neural network layer, Residual Block, to alleviate the problem of training very deep networks. The most widely used variances of ResNet include Res18, which has 17 convolutional layers and one fully-connected layer. Image Feature Extraction with CNN For feature extraction, we drop all the original fully-connected layers at the ends of the two base models, connect the last convolutional layers to parallel average-and maximum-pooling layers, and concatenate the two pooling results to a vector as the extracted features. Furthermore, both pooling layers operate over the neurons on each filter of the last convolutional layer, so that the number of the extracted features is two times the number of the channels of the last convolutional layer. Accordingly, the sizes of deep features extracted by AlexNet and Res18 are 512 and 1024 respectively. We expect that average-pooling could transfer the overall extracted information while maximum-pooling could select significant features. Image Feature Extraction with CNN In general comparison, ResNet has a better performance in accuracy than AlexNet. However, it shows different results on the laser machining data according to the experiments mentioned later. Classification and Regression In this step, we design different loss functions for the models solving the two tasks introduced above. Loss function evaluates the error between real label value and predicted label value output by the model, i.e., a minimized loss value tends to imply that the model fits the dataset well, which is also the goal of the training of a learning model. However, for different tasks conducted on the same dataset, we may focus on different domains of the data, therefore, to fulfill different task requirements, we need to design different loss functions accordingly. Classification and Regression For Power Classification, we can directly use the cross-entropy loss function as this is a classic multi-classification problem, which can be denoted as Classification and Regression where for the i-th input sample (x i , y i ), c i is the labeled laser source power setting of an image x i , and y i,k is the one-hot representation of the sample label where Classification and Regression The probability of the i-th sample will be predicted with label k is p i,k , and there are K labels (in this study, according to the dataset, K = 10) and N samples in total. For Shot No. Regression, we employ smooth L 1 loss [18] to build a regression model on the shot no. of each image. The reason why we use smooth L 1 loss instead of normal L 1 loss or squared L 2 -norm is that it could avoid propagating too large gradients when the absolute loss is greater than 1; also, it could do soft learning when the loss is in the range [−1, 1]. Another modification is that because a shot no. is just a discrete integer in the specified interval, we could then apply a logarithmic function to it to relax this strong constraint. Therefore, the loss can be denoted as Classification and Regression where for the i-th input sample (x i , z i ), z i is the logarithmic real shot no. of image x i , z i is the predicted logarithm, and smooth-L 1 (a) = 0.5a 2 , if |a| ≤ 1 |a| − 0.5, otherwise . Multi-Task Learning For our study, the idea of MTL is adopted as the designed two tasks are considered related and they all serve the same aim to help neural network model to better extract features from the speckle pattern images. Laser ablation shows that depth sequences of laser machining are variant by different power settings, so we believe that speckle patterns in processing stages are relative to the power. By combining the two mentioned losses, we can consider the L s as a regularization term to L p . Furthermore, instead of setting a specific regularization term that encodes the relationship between the two tasks, sharing convolutional layers can reduce the amounts of model parameters for the two tasks. If we encode the relationship between the two tasks, we may increase space and time complexity by the square of the amounts of model parameters, which seems impractical for deep learning methods. We will show that these help us get an overall better performance and generalization than training the two tasks individually by the later experimental results. Multi-Task Learning By sharing the same neural network layers and combining different loss functions at output layers, the overall loss function can be denoted as Multi-Task Learning where 0 ≤ α ≤ 1 is the hyper-parameter to adjust the weight of different loss functions, i.e., the importance of variant tasks. In this study, we fix it to α = 0.5, which means these two tasks are treated equally. Results and Discussions To evaluate the performance of feature extraction on the laser processing data, we introduce several metrics, execute the mentioned deep learning tasks and compare them to the result by neural networks without feature extraction and one of the traditional machine learning methods with generally high performance, support vector machine (SVM) [27]. Metrics and Settings In this paper, we introduce accuracy (ACC), precision (PR), recall (RC), F 1 score into the evaluation of Power Classification, and mean absolute error (MAE), R 2 score into the one of Shot No. Regression. For the evaluation over N samples and K classes, Metrics and Settings where 1(·) is the indicator function, c i indicate the predictive power of i-th sample, and TP k , FP k and FN k are the numbers of true positives, false positives and false negatives for class k respectively; Metrics and Settings ACC, PR, RC, F 1 , and R 2 are the higher the better, while MAE is the lower the better. Because the numbers of samples in each class are the same on our data subsets, ACC = RC. Metrics and Settings In the experiment, we use the PyTorch [28] implementations of AlexNet and ResNet. The concatenated deep features are passed to batch normalization (BN) layer, and 0.25-Dropout for better stability and generalization. In a classification model, there is a 2-hidden-layer fully-connected neural network (FNN) following the deep feature output. Each hidden layer of the FNN is 512-sized and the first one followed by a ReLU, a BN layer and a 0.5-Dropout sequentially. The neural network used for regression is similar to the one for classification, yet we adopt leaky ReLU with a 0.3 negative slope as the first activation. For MTL, we adjoin these two sorts of neural networks to the feature output layer together. To optimize models' parameters, we employ stochastic gradient descent with weight decay 1.0 × 10 −4 . We also apply a triangular cyclic scheduler [29] to adjust the learning rate within the range [1.0 × 10 −3 , 6.0 × 10 −2 ] and the momentum within [0.8, 0.9] by 16.5 epochs for each slope of the triangles. For each epoch, we shuffle the training images with the batch size 256. In addition, we choose the 17 convolutional layers version for ResNet. The models are trained 100 epochs and selected by achieving both the higher accuracy and the lower loss on the validation set. Metrics and Settings To compare with the deep learning methods, we also use two other machine learning methods SVM and simple FNN. SVM maps the data to a high-or infinite-dimensional space so that the data points are separate enough to divide to different targets. SVM is usually used with a linear or nonlinear kernel to help the data mapping, but we find that linear SVM performs extremely better than one with generally used Radial Basis Function on our dataset. According to the result of the analysis in Section 3.2, we transform the data to z-scores and reduce the dimension of each sample to 260 by applying truncated SVD with the top 260 singular values, where R 260 > 0.99. Then we train two SVM models for the two tasks on the dimension-reduced training set and test them on the validation and test sets. Besides, For simple FNN, the architectures are the same as the one followed deep features mentioned above, while an input is a 50176-sized vector by flattening a 2-dimensional speckle pattern image. Results In this section, we first compare the performance of different methods by using the metrics mentioned above. Then, we discuss the benefit of MTL against single-task learning (STL) on the dataset. Results The results in Tables 2 and 3 shows that AlexNet model with MTL outperforms the others for both tasks, especially the traditional SVM method. Even though the decomposed data retain greater than 0.99 variance ratio, the linear spaces still lack enough connection among the variables to discover good divisions for the problems. When introducing CNN for feature extraction, the neural networks perform better than simply flattening the original image data. FNN-only could not extract features well, albeit with MTL. In the CNN-used cases, ResNet has a deeper architecture, however, it performs worse than AlexNet in our experiment settings in not only the evaluation but also the time and space cost. We consider that the Fourier transform in the data of speckle patterns could be treated as a part of feature extraction layers on the top of the whole model. Because the "parameters" of the Fourier transform can not be tuned during training, the deeper the model is, the harder the parameters of the later layers are optimized. Furthermore, we observe that the smooth L 1 loss is usually smaller than the cross-entropy loss in our settings, so that deeper models gain less backward information in the regression task. For Power Classification, we construct confusion matrices for the predictive results of classification (Figure 3). In a confusion matrix, each column denotes an actual class while each row is a predicted class. The values located at the diagonal of the matrix are the numbers of corresponding correct predictions, while the others are the ones of corresponding prediction errors. We find that the concentration of the diagonal with MTL is higher than the one with STL. MTL reduces the numbers of the errors for most of the labels, especially for the samples shot by 1.8 mW power. Despite the decline of the numbers of the corrects for 3.0 mW and 3.5 mW, the errors still locate at the neighborhoods mostly. Additionally, we plot ACC of Power Classification and MAE of Shot No. Regression over each shot no. in Figures 4 and 5. The p-values are given by the one-way ANOVA tests. Noticeably, there are watersheds near the twenty-fifth shots because the volume of speckle patterns is too little to generate enough information on the image at the beginning steps of laser processing. Nevertheless, these results show that MTL helps not only the predictions of the later steps but also the ones of the beginnings. The reason is that MTL could make the optimization concern complementary information of power and shot no. simultaneously, while STL has no reference to other information sources. Results MTL enhances most of the power predictions, but the ones for 3.0 mW and 3.5 mW perform a little badly according to the confusion matrix. Similarly, for Shot No. Regression, the MAE of the shots later than about 200th tends to rise. The reason for that may be the anomalous data (e.g., the material has been cracked by a high power or many time shots) affect the training and the predicting, which is the limit of the discriminative models we used. The self-supervised learning approach [30] is a candidate to help us solve this problem and develop the anomaly detection method in future work. Furthermore, we pass shot no. to training models with MTL, yet the models handle only one image at a time in the prediction procedure. Utilizing the time-series information could be another way for us to improve the methodology. Conclusions In this paper, we present an application of deep learning for the feature extraction of laser machining data, which is inspired by attending the IMDJ workshop and the work of laser processing monitoring. Through the experiment, we find that AlexNet with multi-task learning performs better than ResNet or single-task model. Because the computational cost of AlexNet is less than ResNet, it could be easier used for real-time applications. We can employ this feature extraction framework to enlarge the use of deep learning for other related laser machining problems, e.g., ablation depth prediction on other materials. However, this method is supervised so that it is dependent on the label information. In the future, we will introduce an unsupervised [31] or self-supervised fashion to mine the data features more deeply.

섹션 본문 49문단 · 27,541자

(제목 없음)

1Laser machining has been widely used for materials processing, while the inherent complex physical process is rather difficult to be modeled and computed with analytical formulations. Through attending a workshop on discovering the value of laser machining data, we are profoundly motivated by the recent work by Tani et al., who proposed in situ monitoring of laser processing assisted by neural networks. In this paper, we propose an application of deep learning in extracting representative features from laser processing images with a multi-task loss that consists of cross-entropy loss and logarithmic smooth L 1 loss. In the experiment, AlexNet with multi-task learning proves to be better than deeper models. This framework of deep feature extraction also has tremendous potential to solve more laser machining problems in the future.

Introduction

2The application of deep learning methods to physics is gaining increasing attention due to its powerful ability in modeling and predicting. Laser machining has highly reformed the manufacturing industry over recent decades, and it has also become a popular topic in the field of physical studies. However, the complex nonlinear process inherent to laser processing is still a problem which remains. In this paper, we demonstrate an application of deep learning in extracting representative features from laser processing images with a multi-task learning scheme.

Laser Machining

3Laser machining is a physical process of removing material via the interaction between a laser beam and some target material. In laser machining processes, the energy of a photon is transported to the target material in the form of thermal energy or photochemical energy, and then the target material is removed by melting or ablation [1]. Laser machining has been characterized by a lot of advantages such as flexibility, precision, automation, and versatility [2]. It has been widely applied to high-precision materials processing in recent years. The global laser machining market is expected to reach USD 5.7 billion by 2022 due to the increasing need for high-precision and automation in manufacturing [3]. Laser machining is believed to play an important role in Society 5.0 [4].

4Nevertheless, it is of great difficulty to strictly control the machining quality due to the inherent complex physical process. Sometimes a slight change in the laser or environmental parameters could lead to a totally different result [5].

5Since it is as yet impracticable to simulate this complex process by mathematical or physical methods, deep learning methods as pattern recognition algorithms are drawing more attention recently.

6Deep learning approaches allow stakeholders to skip obtaining complex prior physical knowledge of laser machining. This also helps users with better mining the value of machining data from another perspective.

Purpose and Motivation

7Although there is huge potential for applying deep learning in physics, the corporation between data science and physics is sometimes hard to achieve due to the lack of cross-disciplinary communication. However, our work is strongly motivated by participating an IMDJ workshop [6] to seek solutions to handle a series of problems in physics, including laser machining.

8Here, IMDJ is a game-style workshop to discover the value of data and find solutions for some practical problems, in the way of creating new ideas by combining Data Jackets (DJ) and Tool Jackets (TJ) with negotiations. A DJ keeps the digest of a dataset in a structured format so that the dataset could be comprehended in the discussions without showing the actual content [7]. Similarly, a TJ is a summary of a certain technical tool that might be complicated for non-experts in data utilization. Besides, a visualization method called KeyGraph [8] is usually used to reveal the relationships between different DJs and TJs, which could make it easier for the participants to discuss on cross-disciplinary data or techniques and then create new solutions with them.

9Many influential data scientists and physicists from The University of Tokyo attended the IMDJ workshop in which we participated. This workshop aimed at using methods from data science to solve problems which were still complex in physics. The physicists proposed their datasets and the requirements on them while data scientists introduced data utilization methods for possible solutions. In this way, a cross-disciplinary collaboration could be built without requiring prior knowledge of other fields for all participants. Many latent problems and applications in the fields of physics and data science were deeply discussed in this workshop. From the discussions, we are highly motivated by methods put forward by some physicists of using deep learning on laser machining data. Especially, Tani, Aoyagi, and Kobayashi [9][10][11] recently proposed in situ process monitoring assisted by a deep neural network, which does not require analytical formulation (see also Section 2.1). This gave us the inspiration for this work to apply deep learning methods for the feature extraction of laser machining data. Because it is difficult for humans to extract useful information from the laser machining data where the speckle patterns are captured on the Fourier plane, we considered that deep learning techniques could be fully utilized to reveal more essential in-data information [12,13].

10The main contribution of this paper is that we analyze the laser machining data which is still less studied, and then design a deep multi-task learning framework to train a feature-extracting model for the downstream tasks with the help of some known information, such as processing power settings or logarithmic orders of machining stages. Besides, we will demonstrate that AlexNet with multi-task performs better than a deeper model, which could also meet the real-time requirements due to the less computational cost.

Laser Machining and Deep Learning

11Recently there has been some research for applying deep learning methods on laser machining data. The pioneering work proposed by Tani et al. [11] introduced a method to monitor the progress of laser processing using laser speckle patterns without a need for analytical formulation. Deep learning methods were used to extract multiple information such as ablation depth and material type under processing, which could be useful for composite material processing. Their work proved the simplicity, versatility and accuracy of applying deep learning in laser processing. Another deep learning-based method was proposed by Mills et al. [14] as image-based monitoring of femtosecond laser machining. This paper aimed to build a real-time feedback system in laser machining by predicting the type of material, the laser fluence, and the number of pulses at the same time as a classification problem.

12The disadvantage of this method is that the environmental parameters were strictly limited since the training set only contains a small number of all possible combinations.

13Existing work focuses less on the aspect of feature extraction than just taking deep learning as pattern recognition or regression algorithms. With feature extraction, our results could be extended and used in more potential physical problems of laser machining.

Multi-Task Learning

14The traditional solution to obtain machine learning models for different tasks on the same dataset, or the same task on a different dataset is to train different new models from scratch each time. However, in some real-world applications such as medical image analysis or high precision physical experiments, enough data samples in good quality are often difficult to collect. In this case, training models separately with limited data may lead to a result of several low-accuracy shallow models, which is not desirable in real applications.

15Multi-task learning (MTL) [15] is inspired by human learning activities when people often tend to apply the knowledge obtained from previous tasks to help with working on a new but related task. It is considered a good solution when there are multiple related tasks and each of which only has limited training samples. Among these learning tasks, all of them are assumed to be related to each other. In this case, it can be found that learning these tasks jointly could lead to a performance improvement compared with learning them separately. MTL has seen a lot of success across many applications of machine learning, such as natural language processing [16], speech recognition [17] and computer vision [18].

16Deep MTL [19,20] combines deep learning and MTL where multiple learning tasks will be solved simultaneously by exploring commonalities and differences among all the tasks by leveraging deep neural networks. Recently, deep MTL has started to draw scholars' attention due to its capacity of learning hierarchical features and sharing knowledge from different domains. One of the reasons for the success of deep MTL could be attributed to the inbuilt sharing system, which allows a network to extract features shared across different tasks [21,22].

17In this paper, a deep multi-task learning framework will be applied for better mining latent information in the laser machining data through a composed loss function.

Dataset

18In this section, we describe the laser machining image dataset we obtained by negotiating with the physicists in the IMDJ workshop. We introduce the data details and then report an exploratory analysis on a part of the dataset.

Details

19The laser machining dataset adopted in this paper is kindly provided by one of the workshop participants, Kobayashi Lab., Institute for Solid State Physics (ISSP), The University of Tokyo. There are 10 different laser power settings, 105 independent experiments in each power setting, and 250 sequential stages within each experiment so that there are a total of 262,500 images in the dataset. Each image records speckle patterns in the Fourier transform plane with a resolution of 400 × 4080 pixels in grayscale, and all the images have already been labeled with laser powers and stage numbers. For the aim of utilizing machine learning methods and the consideration of experimental reproduction, the total dataset is further divided into three subsets shown in Table 1. Nevertheless, the size of the original images is too large that they exceed the memory limitation of our device, so we use bilinear interpolation to resize the input images from the original 400 × 4080 pixels to a smaller size. We choose 224 × 224 as the new size because it is mostly used by existing CNN models. This preprocessing step also accelerates the training speed. Moreover, each data value in the three sets is normalized by the empirical mean 0.109251 and standard deviation 0.033309 which are observed over the training set.

Analysis

20To understand the laser processing image data, we give a study looking at the training set by using principal component analysis (PCA) [23]. PCA is one of the methods that explore the characteristics of data sets by finding orthogonal components, on which the projection of the data has the most variance. Before performing PCA, the original data is usually processed with mean centering that subtracts each data value from the empirical mean along each variable.

21Consider a centered real matrix X of N × M size, where N is the number of samples, M is the number of variables of the data and N ≥ M. PCA performs eigenvalue decomposition on the covariance matrix C = X X/(N − 1) to find eigenvectors as the components with the largest-to-smallest sorted eigenvalues λ [M] (λ 1 ≥ λ 2 ≥ · · · ≥ λ M ). The eigenvectors and the corresponding eigenvalues are used to explain the variance in the data with explained variance ratio r i = λ i / ∑ M j=1 λ j . However, it is hard for us to operate eigenvalue decomposition on our training set directly where N = 175,000 and M = 224 × 224 = 50,176. Therefore, we apply singular value decomposition (SVD) on the centered training set alternatively. SVD gives X = UΣV , where U and V are orthogonal matrices, and Σ is an M × M diagonal matrix of singular values σ [M] . In practice, the computation can drop the matrices U and V , and only store the diagonal matrix Σ as an array with M size. Letting the singular values be in the order σ 1 ≥ σ 2 ≥ · · · ≥ σ M , we can obtain the eigenvalues of C by

22To evaluate the amount of variance explained by the components, we use the cumulative explained variance ratio (CEVR) which is defined as

23Besides mean centering, we handle the centered training set before performing SVD with normalization that divides the data value by the empirical standard deviation over each variable. The data processed with the combination of centering and normalization are called z-scores, which could improve the performance in some machine learning methods. Then we obtain the singular values of the z-scores with SVD and calculate the CEVRs by Equations (1) Although a 224 × 224 image has a high dimension, we find that we can adopt less than 300 components to recover greater than 99% variance in the training data. This can help us extract features with a low-rank decomposition, e.g., truncated SVD [24], for alleviating the curse of dimensionality. Matrix decomposition is widely used in traditional machine learning methods for high-dimensional data.

Method

24To utilize the speckle pattern image data for the downstream applications such as ablation prediction or laser machining monitoring, extracting features from the original data is the most critical step, as any further applications will be based on the representative features extracted from the images. A good form of image feature representations will increase the accuracy performance of the model and the ability of the model to be applied to more datasets in the future.

25In this paper, we adopt two CNN models for feature extraction and design two corresponding tasks to evaluate the performance of feature extraction on speckle pattern data:

261. Power Classification: Input an image, then predict the corresponding laser source power setting when this image was taken, i.e., classify the image to one of the 10 classes of laser power. 2. Shot No. Regression: Input an image, then predict the logarithmic corresponding shot no. of this image, i.e., at which stage during a single experiment this image was taken, the shot no. can be one value in the range of 1-250.

27To handle these two tasks, three steps are designed in our proposed method including image feature extraction with CNN, classification and regression, and MTL ( Figure 2). The details of these steps will be introduced in the following sections.

Image Feature Extraction with CNN

28The first as well as the most important step of our proposed model is to extract the features of images from the original data so that we can use these features to represent images with similar structures, which are more likely to be taken in similar laser source settings or experiment stages. In this step, we adopt two widely used CNN models in the field of computer vision, AlexNet and ResNet, for image feature extraction as our base models:

29• AlexNet [25] has five convolutional layers and three fully-connected (FC) layers and uses the rectified linear unit (ReLU) as the activation function instead of the sigmoid function to reduce gradient vanishing and gradient exploding problems. AlexNet also introduces mechanisms such as Dropout and overlapping pooling to avoid overfitting. • ResNet [26] (Deep Residual Network) is designed for networks with great depths by introducing a new neural network layer, Residual Block, to alleviate the problem of training very deep networks. The most widely used variances of ResNet include Res18, which has 17 convolutional layers and one fully-connected layer.

30For feature extraction, we drop all the original fully-connected layers at the ends of the two base models, connect the last convolutional layers to parallel average-and maximum-pooling layers, and concatenate the two pooling results to a vector as the extracted features. Furthermore, both pooling layers operate over the neurons on each filter of the last convolutional layer, so that the number of the extracted features is two times the number of the channels of the last convolutional layer. Accordingly, the sizes of deep features extracted by AlexNet and Res18 are 512 and 1024 respectively. We expect that average-pooling could transfer the overall extracted information while maximum-pooling could select significant features.

31In general comparison, ResNet has a better performance in accuracy than AlexNet. However, it shows different results on the laser machining data according to the experiments mentioned later.

Classification and Regression

32In this step, we design different loss functions for the models solving the two tasks introduced above. Loss function evaluates the error between real label value and predicted label value output by the model, i.e., a minimized loss value tends to imply that the model fits the dataset well, which is also the goal of the training of a learning model. However, for different tasks conducted on the same dataset, we may focus on different domains of the data, therefore, to fulfill different task requirements, we need to design different loss functions accordingly.

33For Power Classification, we can directly use the cross-entropy loss function as this is a classic multi-classification problem, which can be denoted as

34where for the i-th input sample (x i , y i ), c i is the labeled laser source power setting of an image x i , and y i,k is the one-hot representation of the sample label where

35The probability of the i-th sample will be predicted with label k is p i,k , and there are K labels (in this study, according to the dataset, K = 10) and N samples in total. For Shot No. Regression, we employ smooth L 1 loss [18] to build a regression model on the shot no. of each image. The reason why we use smooth L 1 loss instead of normal L 1 loss or squared L 2 -norm is that it could avoid propagating too large gradients when the absolute loss is greater than 1; also, it could do soft learning when the loss is in the range [−1, 1]. Another modification is that because a shot no. is just a discrete integer in the specified interval, we could then apply a logarithmic function to it to relax this strong constraint. Therefore, the loss can be denoted as

36where for the i-th input sample (x i , z i ), z i is the logarithmic real shot no. of image x i , z i is the predicted logarithm, and smooth-L 1 (a) = 0.5a 2 , if |a| ≤ 1 |a| − 0.5, otherwise .

Multi-Task Learning

37For our study, the idea of MTL is adopted as the designed two tasks are considered related and they all serve the same aim to help neural network model to better extract features from the speckle pattern images. Laser ablation shows that depth sequences of laser machining are variant by different power settings, so we believe that speckle patterns in processing stages are relative to the power. By combining the two mentioned losses, we can consider the L s as a regularization term to L p . Furthermore, instead of setting a specific regularization term that encodes the relationship between the two tasks, sharing convolutional layers can reduce the amounts of model parameters for the two tasks. If we encode the relationship between the two tasks, we may increase space and time complexity by the square of the amounts of model parameters, which seems impractical for deep learning methods. We will show that these help us get an overall better performance and generalization than training the two tasks individually by the later experimental results.

38By sharing the same neural network layers and combining different loss functions at output layers, the overall loss function can be denoted as

39where 0 ≤ α ≤ 1 is the hyper-parameter to adjust the weight of different loss functions, i.e., the importance of variant tasks. In this study, we fix it to α = 0.5, which means these two tasks are treated equally.

Results and Discussions

40To evaluate the performance of feature extraction on the laser processing data, we introduce several metrics, execute the mentioned deep learning tasks and compare them to the result by neural networks without feature extraction and one of the traditional machine learning methods with generally high performance, support vector machine (SVM) [27].

Metrics and Settings

41In this paper, we introduce accuracy (ACC), precision (PR), recall (RC), F 1 score into the evaluation of Power Classification, and mean absolute error (MAE), R 2 score into the one of Shot No. Regression. For the evaluation over N samples and K classes,

42where 1(·) is the indicator function, c i indicate the predictive power of i-th sample, and TP k , FP k and FN k are the numbers of true positives, false positives and false negatives for class k respectively;

43ACC, PR, RC, F 1 , and R 2 are the higher the better, while MAE is the lower the better. Because the numbers of samples in each class are the same on our data subsets, ACC = RC.

44In the experiment, we use the PyTorch [28] implementations of AlexNet and ResNet. The concatenated deep features are passed to batch normalization (BN) layer, and 0.25-Dropout for better stability and generalization. In a classification model, there is a 2-hidden-layer fully-connected neural network (FNN) following the deep feature output. Each hidden layer of the FNN is 512-sized and the first one followed by a ReLU, a BN layer and a 0.5-Dropout sequentially. The neural network used for regression is similar to the one for classification, yet we adopt leaky ReLU with a 0.3 negative slope as the first activation. For MTL, we adjoin these two sorts of neural networks to the feature output layer together. To optimize models' parameters, we employ stochastic gradient descent with weight decay 1.0 × 10 −4 . We also apply a triangular cyclic scheduler [29] to adjust the learning rate within the range [1.0 × 10 −3 , 6.0 × 10 −2 ] and the momentum within [0.8, 0.9] by 16.5 epochs for each slope of the triangles. For each epoch, we shuffle the training images with the batch size 256. In addition, we choose the 17 convolutional layers version for ResNet. The models are trained 100 epochs and selected by achieving both the higher accuracy and the lower loss on the validation set.

45To compare with the deep learning methods, we also use two other machine learning methods SVM and simple FNN. SVM maps the data to a high-or infinite-dimensional space so that the data points are separate enough to divide to different targets. SVM is usually used with a linear or nonlinear kernel to help the data mapping, but we find that linear SVM performs extremely better than one with generally used Radial Basis Function on our dataset. According to the result of the analysis in Section 3.2, we transform the data to z-scores and reduce the dimension of each sample to 260 by applying truncated SVD with the top 260 singular values, where R 260 > 0.99. Then we train two SVM models for the two tasks on the dimension-reduced training set and test them on the validation and test sets. Besides, For simple FNN, the architectures are the same as the one followed deep features mentioned above, while an input is a 50176-sized vector by flattening a 2-dimensional speckle pattern image.

Results

46In this section, we first compare the performance of different methods by using the metrics mentioned above. Then, we discuss the benefit of MTL against single-task learning (STL) on the dataset.

47The results in Tables 2 and 3 shows that AlexNet model with MTL outperforms the others for both tasks, especially the traditional SVM method. Even though the decomposed data retain greater than 0.99 variance ratio, the linear spaces still lack enough connection among the variables to discover good divisions for the problems. When introducing CNN for feature extraction, the neural networks perform better than simply flattening the original image data. FNN-only could not extract features well, albeit with MTL. In the CNN-used cases, ResNet has a deeper architecture, however, it performs worse than AlexNet in our experiment settings in not only the evaluation but also the time and space cost. We consider that the Fourier transform in the data of speckle patterns could be treated as a part of feature extraction layers on the top of the whole model. Because the "parameters" of the Fourier transform can not be tuned during training, the deeper the model is, the harder the parameters of the later layers are optimized. Furthermore, we observe that the smooth L 1 loss is usually smaller than the cross-entropy loss in our settings, so that deeper models gain less backward information in the regression task. For Power Classification, we construct confusion matrices for the predictive results of classification (Figure 3). In a confusion matrix, each column denotes an actual class while each row is a predicted class. The values located at the diagonal of the matrix are the numbers of corresponding correct predictions, while the others are the ones of corresponding prediction errors. We find that the concentration of the diagonal with MTL is higher than the one with STL. MTL reduces the numbers of the errors for most of the labels, especially for the samples shot by 1.8 mW power. Despite the decline of the numbers of the corrects for 3.0 mW and 3.5 mW, the errors still locate at the neighborhoods mostly. Additionally, we plot ACC of Power Classification and MAE of Shot No. Regression over each shot no. in Figures 4 and 5. The p-values are given by the one-way ANOVA tests. Noticeably, there are watersheds near the twenty-fifth shots because the volume of speckle patterns is too little to generate enough information on the image at the beginning steps of laser processing. Nevertheless, these results show that MTL helps not only the predictions of the later steps but also the ones of the beginnings. The reason is that MTL could make the optimization concern complementary information of power and shot no. simultaneously, while STL has no reference to other information sources.

48MTL enhances most of the power predictions, but the ones for 3.0 mW and 3.5 mW perform a little badly according to the confusion matrix. Similarly, for Shot No. Regression, the MAE of the shots later than about 200th tends to rise. The reason for that may be the anomalous data (e.g., the material has been cracked by a high power or many time shots) affect the training and the predicting, which is the limit of the discriminative models we used. The self-supervised learning approach [30] is a candidate to help us solve this problem and develop the anomaly detection method in future work. Furthermore, we pass shot no. to training models with MTL, yet the models handle only one image at a time in the prediction procedure. Utilizing the time-series information could be another way for us to improve the methodology.

Conclusions

49In this paper, we present an application of deep learning for the feature extraction of laser machining data, which is inspired by attending the IMDJ workshop and the work of laser processing monitoring. Through the experiment, we find that AlexNet with multi-task learning performs better than ResNet or single-task model. Because the computational cost of AlexNet is less than ResNet, it could be easier used for real-time applications. We can employ this feature extraction framework to enlarge the use of deep learning for other related laser machining problems, e.g., ablation depth prediction on other materials. However, this method is supervised so that it is dependent on the label information. In the future, we will introduce an unsupervised [31] or self-supervised fashion to mine the data features more deeply.

참고문헌 34건

  1. Process of Laser Machining Springer eBooks · Springer Nature · 2013 10.1007/978-1-4471-4976-7_74-2
  2. KeyGraph: automatic indexing by co-occurrence graph based on building construction metaphor 2002 10.1109/adl.1998.670375
  3. The truncatedSVD as a method for regularization BIT Numerical Mathematics · Springer Science+Business Media · 1987 10.1007/bf01937276
  4. New types of deep neural network learning for speech recognition and related applications: an overview IEEE International Conference on Acoustics Speech and Signal Processing · 2013 10.1109/icassp.2013.6639344
  5. A unified architecture for natural language processing 2008 10.1145/1390156.1390177
  6. Regularized multi--task learning 2004 10.1145/1014052.1014067
  7. Representation Learning: A Review and New Perspectives IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2013 10.1109/tpami.2013.50
  8. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  9. LIII. <i>On lines and planes of closest fit to systems of points in space</i> The London Edinburgh and Dublin Philosophical Magazine and Journal of Science · Taylor & Francis · 1901 10.1080/14786440109462720
  10. Cross-stitch Networks for Multi-task Learning arXiv (Cornell University) · Cornell University · 2016
  11. Image Style Transfer Using Convolutional Neural Networks 2016 10.1109/cvpr.2016.265
  12. Data Jackets for Synthesizing Values in the Market of Data Procedia Computer Science · Elsevier BV · 2013 10.1016/j.procs.2013.09.152
  13. An Overview of Multi-Task Learning in Deep Neural Networks arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1706.05098
  14. Additive manufacturing: scientific and technological challenges, market uptake and opportunities Materials Today · Elsevier BV · 2017 10.1016/j.mattod.2017.07.001
  15. A Survey on Multi-Task Learning arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1707.08114
  16. Pulse-by-pulse measurement of ablation volume with deep learning 2017
  17. An overview of multi-task learning National Science Review · Oxford University Press · 2017 10.1093/nsr/nwx105
  18. Society 5.0: Industry of the Future, Technologies, Methods and Tools 2018
  19. Image-based monitoring of femtosecond laser machining via a neural network Journal of Physics Photonics · IOP Publishing · 2018 10.1088/2515-7647/aad5a0
  20. Convolutional Neural Networks Using Fourier Transform Spectrogram to Classify the Severity of Gear Tooth Breakage 2017 International Conference on Sensing, Diagnostics, Prognostics, and Control (SDPC) · 2018 10.1109/sdpc.2018.8664985
  21. Multi-Task Learning as Multi-Objective Optimization arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1810.04650
  22. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal\n Networks arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1506.01497
  23. Cross-Stitch Networks for Multi-task Learning 2016 10.1109/cvpr.2016.433
  24. Cyclical Learning Rates for Training Neural Networks 2017 10.1109/wacv.2017.58
  25. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019
  26. Using Self-Supervised Learning Can Improve Model Robustness and Uncertainty Neural Information Processing Systems · 2019
  27. Neural-network-assisted in situ processing monitoring by speckle pattern observation arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.11351
  28. Neural-network-assisted in situ processing monitoring by speckle pattern observation Optics Express · Optica Publishing Group · 2020 10.1364/oe.400785
  29. Automated data acquisition and deep learning in a laser processing 2018
  30. Innovators Marketplace on Data Jackets, for Valuating, Sharing, and Synthesizing Data Smart innovation, systems and technologies · Springer Nature · 2015 10.1007/978-3-319-13545-8_6
  31. Handbook of Manufacturing Engineering and Technology Springer eBooks · Springer Nature · 2013 10.1007/978-1-4471-4976-7
  32. Support-vector networks Machine Learning · Springer Science+Business Media · 1995 10.1007/bf00994018
  33. The Impact of Fiber Laser Technology on the World Wide Material Processing Market 2013 10.1364/cleo_si.2013.af2j.1
  34. Society 5.0 2018 10.1002/9781119507314