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

A GAN-BPNN-Based Surface Roughness Measurement Method for Robotic Grinding

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Guojun Zhang — Department of State Key Laboratory of Robotics and System, Harbin Institute of Technology, Harbin 150001, China
  2. Changyuan Liu — Department of State Key Laboratory of Robotics and System, Harbin Institute of Technology, Harbin 150001, China
  3. Kang Min — Department of State Key Laboratory of Robotics and System, Harbin Institute of Technology, Harbin 150001, China
  4. Hong Liu — Department of State Key Laboratory of Robotics and System, Harbin Institute of Technology, Harbin 150001, China
  5. Fenglei Ni — Department of State Key Laboratory of Robotics and System, Harbin Institute of Technology, Harbin 150001, China
DOI
10.3390/machines10111026
저널
Machines
발행년도
2022
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/machines10111026
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4308329681

평가 내용

관련도
관련
사업분야
필름·전자재료 · (14) 드라이 필름(포토레지스트)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Existing machine vision-based roughness measurement methods cannot accurately measure the roughness of free-form surfaces (with large curvature variations). To overcome this problem, this paper proposes a roughness measurement method based on a generative adversarial network (GAN) and a BP neural network. Firstly, this method takes images and curvature of free-form surfaces as training samples. Then, GAN is trained for roughness measurement through each game between generator and discriminant network by using real samples and pseudosamples (from generator). Finally, the BP neural network maps the image discriminant value of GAN and radius of curvature into roughness value (Ra). Our proposed method automatically learns the features in the image by GAN, omitting the independent feature extraction step, and improves the measurement accuracy by BP neural network. The experiments show that the accuracy of the proposed roughness measurement method can measure free-form surfaces with a minimum roughness of 0.2 μm, and measurement results have a margin of 10%.

본문 36,586자

본문 펼치기
Introduction Grinding is a widespread but essential process in manufacturing products. It is widely used in aerospace, automobile manufacturing, rail transit and other industries [1]. Traditionally, grinding is done by manual operation or multi-axis CNC machine tools. The former is time-consuming and labor-intensive, while the latter is limited by operating space. Recently, robotic belt grinding has become an alternative due to its low cost, efficiency and large operating space [2]. For small workpiece, the robot generally uses appropriate contact force to ensure the stability of the workpiece [3]. The robot holds the workpiece to complete the grinding operation and uses its dexterity to move to the best inspection position on the surface of the workpiece [4]. Multiple sampling points are planned according to the curvature of the workpiece surface, and the robot moves to each sampling point in turn to complete the surface image sampling. Introduction As an important indicator of the quality of machined surfaces, surface roughness has a significant impact on product life and reliability [5]. The traditional probe-based measurement method [6][7][8][9] uses a probe that slides over the surface of the workpiece for measurement. This method has been proven to be highly reliable and highly accurate. However, it has several limitations, such as long measurement times, high environmental requirements and complex steps. Introduction With the development of optical technology, a variety of noncontact measurement methods has been developed to address the limitations of the contact measurement method. For example, optical microscopy, confocal laser scanning microscopy and white light interferometry are used to measure surface roughness, but these methods are mainly used in laboratories, because their high cost and complicated operation are not suitable for real industrial production. Currently, the most popular noncontact measurement method feature extraction step. Finally, the BP neural network represents the correlation between the GAN discriminant value and the roughness (Ra). Generative Adversarial Network A GAN consists of two parts: the generative and discriminative networks, which use an adversarial game between generators and discriminators to achieve self-supervised learning. The main difference from the traditional network model is that the data training process contains both consistent and adversarial data. The generators and discriminators each optimize in different directions and form a competitive relationship with each other, but they also depend on each other to form a unified whole. In the adversarial training mode, the generator no longer learns directly from the training dataset, but learns iteratively in an indirect way through the optimization directions output by the discriminator, generating pseudosamples to mix the spurious with the genuine. A GAN computes faster and has greater expansion flexibility than a traditional network. In this paper, we propose using a GAN to discriminate the roughness of the surface of workpieces using the structure shown in Figure 1. Generative Adversarial Network network play with each other to automatically learn the features in the image the feature extraction step. Finally, the BP neural network represents the corr tween the GAN discriminant value and the roughness (Ra). Generative Adversarial Network A GAN consists of two parts: the generative and discriminative networks, an adversarial game between generators and discriminators to achieve self-s learning. The main difference from the traditional network model is that the da process contains both consistent and adversarial data. The generators and disc each optimize in different directions and form a competitive relationship with but they also depend on each other to form a unified whole. In the adversari mode, the generator no longer learns directly from the training dataset, but le tively in an indirect way through the optimization directions output by the disc generating pseudosamples to mix the spurious with the genuine. A GAN comp and has greater expansion flexibility than a traditional network. In this paper, w using a GAN to discriminate the roughness of the surface of workpieces using ture shown in Figure 1. Roughness Ra Discriminator Roughness Pseudo images Roughness In other words, the loss function of GAN is as follows: Roughness The disadvantages of GAN: Roughness (1) GAN training is unstable, and the training degree of generator and dis should be carefully balanced. Roughness (2) When the generator learns that some features of the real data successfu the discriminator, it will not update. As a result, the generated samples lack div a collapse mode occurs in GAN. Roughness (3) When the overlap between the real and generated distributions is neg JS divergence between the real and generated distributions is minimized to log2. When the discriminator is optimal, the loss of the minimized generator is to log2, and G is no longer updated, resulting in the disappearance of the gen dient. p z (z) represented a prior on input noise variables, G(z) was generator of GAN, and D(x) represented the probability that x comes from real images. GAN's goal is training D(x) to maximize the probability of assigning the correct label to both training real samples and pseudosamples from G(z), at the same time training G(z) to minimize log(1 − D(G(z))). In other words, the loss function of GAN is as follows: Roughness The disadvantages of GAN: Roughness (1) GAN training is unstable, and the training degree of generator and discriminator should be carefully balanced. Roughness (2) When the generator learns that some features of the real data successfully deceive the discriminator, it will not update. As a result, the generated samples lack diversity, and a collapse mode occurs in GAN. Roughness (3) When the overlap between the real and generated distributions is negligible, the JS divergence between the real and generated distributions is minimized to a constant log2. When the discriminator is optimal, the loss of the minimized generator is also closer to log2, and G is no longer updated, resulting in the disappearance of the generator gradient. Roughness In order to overcome the above shortcomings, the generator and discriminator network structures of the original GAN network are redesigned. In this paper, a deep convolutional neural network is used as the network structure of the generator and discriminator: Roughness The structure of the generative network is shown in Figure 2, and the corresponding discriminator network structure is shown in Figure 3. Roughness Machines 2022, 10, x FOR PEER REVIEW 4 of convolutional neural network is used as the network structure of the generator and di criminator: Roughness The structure of the generative network is shown in Figure 2, and the correspondin discriminator network structure is shown in Figure 3. From Equation (1), it can be seen that the objective of the discriminator is to obta the maximum value of ( ) , V G D . Then, it is necessary to maximize ( ) D x , which mea maximizing the probability that real samples and generated samples will be assigned th correct label. At the same time, the generator Roughness which means minimizing the difference between the generated samples and the true sam ples. Therefore, the value function of GAN can be decomposed into two optimizatio problems: Roughness (1) Fix the generator G , train the discriminator D , so that it can maximize the corre determination of whether the sample is from the real sample or from the sample generate by G . The objective function of D is, Roughness Finding the derivative of Equation (2) with respect to ( ) D x , such that its derivativ 0 gives, (3), the optimal discriminator is obtained as follows: convolutional neural network is used as the network structure of the generator and dis criminator: Roughness The structure of the generative network is shown in Figure 2, and the correspondin discriminator network structure is shown in Figure 3. From Equation (1), it can be seen that the objective of the discriminator is to obtai the maximum value of ( ) , V G D . Then, it is necessary to maximize ( ) D x , which mean maximizing the probability that real samples and generated samples will be assigned th correct label. At the same time, the generator Roughness which means minimizing the difference between the generated samples and the true sam ples. Therefore, the value function of GAN can be decomposed into two optimizatio problems: Roughness (1) Fix the generator G , train the discriminator D , so that it can maximize the correc determination of whether the sample is from the real sample or from the sample generate by G . The objective function of D is, Roughness Finding the derivative of Equation (2) with respect to ( ) D x , such that its derivativ 0 gives, (3 Rewriting Equation (3), the optimal discriminator is obtained as follows: From Equation (1), it can be seen that the objective of the discriminator is to obtain the maximum value of V(G, D). Then, it is necessary to maximize D(x), which means maximizing the probability that real samples and generated samples will be assigned the correct label. At the same time, the generator G is trained to minimize log(1 − D(G(z))), which means minimizing the difference between the generated samples and the true samples. Roughness Therefore, the value function of GAN can be decomposed into two optimization problems: Roughness (1) Fix the generator G, train the discriminator D, so that it can maximize the correct determination of whether the sample is from the real sample or from the sample generated by G. The objective function of D is, Roughness Finding the derivative of Equation (2) with respect to D(x), such that its derivative 0 gives, Roughness Rewriting Equation (3), the optimal discriminator is obtained as follows: Roughness (2) Fix the discriminator D and train the generator G, such that L = max Roughness minimizes the difference between the generated samples and the real samples. The objective function of G is given by, Roughness Substituting Equation (4) into Equations (2) and (5), we obtain, Roughness Machines 2022, 10, 1026 of 17 Introducing two important similarity metrics KL divergence (Kullback-Leibler divergence) and JS divergence (Jensen-Shannon divergence), Equation (6) is rewritten as, of 17 From Equation (7), it can be seen that fixing the discriminator, the goal of training the generator is to have a JS dispersion of 0 between P g and P data , i.e., P g = P data . At this point, the discriminator D * (G) = 1 2 . Thus, the equilibrium between generator and discriminator is realized by reciprocally training the GAN. Measurement of Surface Roughness of Workpieces In this method, a neural network is used to discriminate the surface roughness of a grinded workpiece. A small number of data images are used to train a generative adversarial network (GAN) to generate the required large dataset for training the discriminative network, which outputs the surface roughness measurements of the workpiece. Image Acquisition and Data Preprocessing Methods Subsection The radius of the curvature and roughness of the workpiece surface directly determine the refractive index of light, a factor which affects the imaging effect of the workpiece surface. Image Acquisition and Data Preprocessing Methods Subsection Therefore, 72 images of workpieces with different curvature radii and roughness were collected in this study. The 12 images with the roughest and smoothest surfaces were selected as the original training dataset for the GAN generator, with 6 smooth and 6 rough images, as shown in Figure 4. However, the amount of data in the original dataset of 12 images was too small to be used directly for training the GAN discriminator, which would lead to severe overfitting of the discriminator. Therefore, the original images were first rotated and panned to generate a sufficient number of derived images (32,000 images were generated in the experiment). (2) and (5), we obtain, Substituting Equation (4) into Equations Introducing two important similarity metrics KL divergence (Kullback-Leibler divergence) and JS divergence (Jensen-Shannon divergence), Equation (6) Substituting Equation (4) into Equations From Equation (7), it can be seen that fixing the discriminator, the goal of training the generator is to have a JS dispersion of 0 between g P and data P , i.e., DG= . Thus, the equilibrium between generator and discriminator is realized by reciprocally training the GAN. Measurement of Surface Roughness of Workpieces In this method, a neural network is used to discriminate the surface roughness of a grinded workpiece. A small number of data images are used to train a generative adversarial network (GAN) to generate the required large dataset for training the discriminative network, which outputs the surface roughness measurements of the workpiece. Image Acquisition and Data Preprocessing Methods Subsection The radius of the curvature and roughness of the workpiece surface directly determine the refractive index of light, a factor which affects the imaging effect of the workpiece surface. Image Acquisition and Data Preprocessing Methods Subsection Therefore, 72 images of workpieces with different curvature radii and roughness were collected in this study. The 12 images with the roughest and smoothest surfaces were selected as the original training dataset for the GAN generator, with 6 smooth and 6 rough images, as shown in Figure 4. However, the amount of data in the original dataset of 12 images was too small to be used directly for training the GAN discriminator, which would lead to severe overfitting of the discriminator. Therefore, the original images were first rotated and panned to generate a sufficient number of derived images (32,000 images were generated in the experiment). GAN-Based Surface Roughness Discrimination Method The generative network attempts to create images that the discriminant network cannot distinguish from real images during the training process, while the discriminant network is equivalent to a binary classification network to distinguish between the real training images and the images created by the generator. In this way, the model parameters are continuously optimized by the adversarial training between the two networks. Over multiple iterations, the images created by the generative network become closer to the real images, and the discriminant network increasingly understands the meaning of the roughness represented by the images, and finally gives the roughness value. GAN-Based Surface Roughness Discrimination Method The process of training the GAN is shown in Figure 5. GAN-Based Surface Roughness Discrimination Method The generative network attempts to create images that the discriminant network cannot distinguish from real images during the training process, while the discriminant network is equivalent to a binary classification network to distinguish between the real training images and the images created by the generator. In this way, the model parameters are continuously optimized by the adversarial training between the two networks. Over multiple iterations, the images created by the generative network become closer to the real images, and the discriminant network increasingly understands the meaning of the roughness represented by the images, and finally gives the roughness value. GAN-Based Surface Roughness Discrimination Method The process of training the GAN is shown in Figure 5. GAN-Based Surface Roughness Discrimination Method Step 1: The original datasets (surface roughness images) are classified in a binary fashion and labeled as "smooth" and "rough" according to a certain threshold. GAN-Based Surface Roughness Discrimination Method Step 2: Real surface roughness images marked by the classification in step 1 are rotated and panned to expand datasets. GAN-Based Surface Roughness Discrimination Method Step 3: The GAN is trained using the "rough" category data in the dataset in Step 2. GAN-Based Surface Roughness Discrimination Method Step 4: The GAN is trained using the "smooth" category data in the dataset in Step 2. GAN-Based Surface Roughness Discrimination Method Step 5: The image data is generated from the generation network trained in steps 3 and 4 to complete the data set expansion. GAN-Based Surface Roughness Discrimination Method Step 6: The discriminative network is retrained for the expanded smooth and rough datasets generated by the generative network in step 5 to obtain the final roughness recognition network model. Step 1: The original datasets (surface roughness images) are classified in fashion and labeled as "smooth" and "rough" according to a certain threshold. GAN-Based Surface Roughness Discrimination Method Step 2: Real surface roughness images marked by the classification in step tated and panned to expand datasets. GAN-Based Surface Roughness Discrimination Method Step 3: The GAN is trained using the "rough" category data in the dataset in GAN-Based Surface Roughness Discrimination Method Step 4: The GAN is trained using the "smooth" category data in the dataset i GAN-Based Surface Roughness Discrimination Method Step 5: The image data is generated from the generation network trained in and 4 to complete the data set expansion. GAN-Based Surface Roughness Discrimination Method Step 6: The discriminative network is retrained for the expanded smooth an datasets generated by the generative network in step 5 to obtain the final roughnes nition network model. Training Results To teach the GAN the meaning of "rough," real smooth images are added data to train the discriminator along with the output of the generator, as shown i 6a. Figure 6b shows examples of the surface roughness of workpieces generated GAN. Training Results To teach the GAN the meaning of "rough," real smooth images are added as fake data to train the discriminator along with the output of the generator, as shown in Figure 6a. Figure 6b shows examples of the surface roughness of workpieces generated by the GAN. Step 1: The original datasets (surface roughness images) are classified in a binary fashion and labeled as "smooth" and "rough" according to a certain threshold. Training Results Step 2: Real surface roughness images marked by the classification in step 1 are rotated and panned to expand datasets. Training Results Step 3: The GAN is trained using the "rough" category data in the dataset in Step 2. Training Results Step 4: The GAN is trained using the "smooth" category data in the dataset in Step 2. Training Results Step 5: The image data is generated from the generation network trained in steps 3 and 4 to complete the data set expansion. Training Results Step 6: The discriminative network is retrained for the expanded smooth and rough datasets generated by the generative network in step 5 to obtain the final roughness recognition network model. Training Results To teach the GAN the meaning of "rough," real smooth images are added as fake data to train the discriminator along with the output of the generator, as shown in Figure 6a. Figure 6b shows examples of the surface roughness of workpieces generated by the GAN. The GAN is trained using the expanded datasets, and then the GAN is able to generate a series of smooth and rough images as the training set. The problem is treated as a binary classification problem using the sigmoid function as the output activation function and the binary cross-entropy as the loss function for training, with the rough images labeled '1' and the smooth images labeled '0'. In this method, the same network structure of the classifier with the discriminator of the GAN is used, as shown in Table 1. In the method described above, a dataset with only roughness Ra of 0.2, 0.4, 3.2, 6.3 and radius of curvature R of 50, 1000, and infinity are used as the training set. However, the dataset in the actual test contains more cases of roughness and radius of curvatures. A qualified classifier should be able to accurately distinguish the cases which are not encountered in the training set. Some of the actual test results are shown in Table 2, which visually reflects the classifier's scoring of images with different roughness levels. The smaller score means the smoother surface. The test results show that the method can accurately determine the untrained intermediate roughness (0.8 and 1.6 are the untrained cases), which indicates that the network can understand the concept of "roughness." Discriminating Method of Workpiece Surface Roughness Roughness (Ra) is a small-distance (usually less than 1 mm) peak-valley that forms from a microgeometric shape error of the surface of the part. As shown above, the real surface image can obtain a discriminant value, nonlinearly related to roughness Ra through the trained GAN. In order to establish a mapping relationship between the discrimination value of GAN and surface roughness Ra, this paper proposes a surface roughness Ra discrimination method based on the BP neural network, which is shown in Figure 7. Discriminating Method of Workpiece Surface Roughness Roughness (Ra) is a small-distance (usually less than 1 mm) peak-valley that forms from a microgeometric shape error of the surface of the part. As shown above, the rea surface image can obtain a discriminant value, nonlinearly related to roughness Ra through the trained GAN. In order to establish a mapping relationship between the discrimination value of GAN and surface roughness Ra, this paper proposes a surface rough ness Ra discrimination method based on the BP neural network, which is shown in Figure 7. The input layer of the BP neural network for image discriminant value and radius of curvature is denoted as x i (i = 1, 2), and the output surface roughness is denoted as z. The number of neurons in the hidden layer is s, denoted as y i (1, 2, · · · , s). The bias value of the hidden layer is γ, and the bias of the output layer is θ. w denotes the connection weights from the input layer to the hidden layer, v denotes the connection weights from the hidden layer to the output layer, while f y and f z are the activation functions of the hidden and output layers, respectively. The forward propagation process of the BP neural network is expressed as: Discriminating Method of Workpiece Surface Roughness Equation (8) completes the mapping from x i (i = 1, 2) to z. α denotes the target value of the output, and the error of the BP neural network is: Discriminating Method of Workpiece Surface Roughness The error back-propagation process of the BP neural network is implemented by minimizing the objective function by Equation (9). The weights and biases of each layer are adjusted for each propagation as follows: Discriminating Method of Workpiece Surface Roughness From Equation (8), it can be seen that the data transfer process between the layers is transformed and connected by the activation function. Meanwhile, in the error backpropagation process in the BP neural network in Equation (10), the derivatives of the activation function adjust the connection weights of each layer to reduce the error to the desired range. Considering the requirement that the activation function be continuously differentiable, the sigmoid function is chosen as the output layer activation function, and the tanh function is chosen as the output layer activation function. To ensure accuracy of roughness estimation, this study determines the number of neurons in the hidden layer according to the Hecht-Nelson method [29] because the hidden layer affects the stability of the network. The number of input layer neurons is n, while the number of hidden layer neurons is 2n + 1. That is, the number of hidden layer neurons in the network is 5. Networks with different numbers of neurons have also been tested, as shown in Table 3. After determining that there should be one hidden layer for the BP neural network model, the number of neurons in the hidden layer must be determined. For each neural network model in Table 3, the average error between the actual and predicted values were recorded in 10 training sessions. It is clear from Table 3 that as the number of neurons in the hidden layer increases, the accuracy does not necessarily follow. When the number of hidden layer neurons increases from 3 to 5, the average error decreases from 12.42% to 6.24%. However, as the number of hidden layer neurons continues to increase to 7, the average error increases from 6.24% to 14.63%. The 2-5-1 neural network structure has the smallest error, and so this network structure is used in the real-time surface roughness model in this study. Experiments In this study, a robot is used to hold the workpiece while grinding a complex, curved item. The robotic grinding platform is built as shown in Figure 8, consisting of a belt grinder, a lightweight robot with seven degrees of freedom and a camera. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. The narrow-angle Balser ace 2 industrial camera meets the needs of this method for surface roughness measurement of curved workpieces. Its detailed parameters are shown in Table 4. Table 4. Parameters of Balser ace 2 narrow angle camera. Resolution ratio 2.3 MP Figure 9. Surface roughness measurement system based on vision. Resolution ratio The narrow-angle Balser ace 2 industrial camera meets the needs of this method for surface roughness measurement of curved workpieces. Its detailed parameters are shown in Table 4. Balser ACE 2 samples images of standard grinding surface roughness contrasts as shown in Figure 10a, and images of standard milled surface roughness contrasts as shown in Figure 10b. There is no significant difference between images Ra 0.2 and Ra 0.1. The camera can distinguish surfaces with surface roughness Ra greater than 0.2. The image samples in Figure 10 are added to the training set of the proposed GAN to enrich the samples and increase the measurement accuracy of the model. Balser ACE 2 samples images of standard grinding surface roughness contrasts as shown in Figure 10a, and images of standard milled surface roughness contrasts as shown in Figure 10b. There is no significant difference between images Ra 0.2 and Ra 0.1. The camera can distinguish surfaces with surface roughness Ra greater than 0.2. The image samples in Figure 10 are added to the training set of the proposed GAN to enrich the samples and increase the measurement accuracy of the model. The blade-grinding process is divided into three processing stages according to the requirements of the grinding process: rough grinding, semi-finishing grinding and finishing grinding. The rough grinding stage removes a large amount of the material using the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 120 and contact force 15 N. The semi-finishing stage removes a small amount of material with the grinding parameters of belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320 and contact force 10 N. The finishing stage is mainly for finishing the surface of the workpiece with the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320, and contact force 5 N. After each grinding stage, the surface roughness is measured and analyzed. Resolution ratio In this study, an industrial camera was used to take pictures of the workpiece surface under a specific light environment to measure the surface roughness conditions, as shown in Figure 11. In order to compare the measurement accuracy of different learning algorithms, ANN and CNN are added to train the surface roughness measurement model in this paper. The GAN-BPNN, ANN, CNN were used to judge the smoothness of the polished processing surface in Figure 11, as shown in Table 5. The proposed GAN-BPNN has The blade-grinding process is divided into three processing stages according to the requirements of the grinding process: rough grinding, semi-finishing grinding and finishing grinding. The rough grinding stage removes a large amount of the material using the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 120 and contact force 15 N. The semi-finishing stage removes a small amount of material with the grinding parameters of belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320 and contact force 10 N. The finishing stage is mainly for finishing the surface of the workpiece with the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320, and contact force 5 N. After each grinding stage, the surface roughness is measured and analyzed. Resolution ratio In this study, an industrial camera was used to take pictures of the workpiece surface under a specific light environment to measure the surface roughness conditions, as shown in Figure 11. In order to compare the measurement accuracy of different learning algorithms, ANN and CNN are added to train the surface roughness measurement model in this paper. The GAN-BPNN, ANN, CNN were used to judge the smoothness of the polished processing surface in Figure 11, as shown in Table 5. The proposed GAN-BPNN has a margin of error of 10%. However, the prediction error of ANN and CNN were more than 10%. a margin of error of 10%. However, the prediction error of ANN and CNN were more than 10%. Figure 11. Roughness measurement based on machine vision. In order to measure blade surface roughness more accurately, this paper designs a sampling point distribution method based on constant chord height. The method realizes a dense distribution of sampling points in the region with a large curvature variation and a sparse distribution in the region with a small curvature variation, as shown in Figure 12. Resolution ratio (1) Set a chord height  . Resolution ratio (2) The baseline AE was obtained by connecting the end points of the curve. Resolution ratio (3) Determine whether there exists a point on the curve AE whose distance to the datum line is greater than  . If there is a point on AE , whose distance from the datum line AE is the farthest point is In order to measure blade surface roughness more accurately, this paper designs a sampling point distribution method based on constant chord height. The method realizes a dense distribution of sampling points in the region with a large curvature variation and a sparse distribution in the region with a small curvature variation, as shown in Figure 12. (1) Set a chord height ε. Resolution ratio (2) The baseline AE was obtained by connecting the end points of the curve. Resolution ratio (3) Determine whether there exists a point on the curve AE whose distance to the datum line is greater than ε. If there is a point on AE, whose distance from the datum line AE is the farthest point is n 0 , then delete the original datum line AE. Resolution ratio (4) Set n 0 to B and connect the AB and BE as the new datum line. Resolution ratio (5) Determine whether there exists a point on the curve AB whose distance to the datum line is greater than ε, and if there is a point on AB whose distance from the datum line AB is the farthest point is n 1 . Similarly, point n 2 on curve AB is obtained. Rewrite A, n 1 , B, n 2 , E as A, B, C, D, E. Repeat the above process until all points on the curve to the datum line position are less than the threshold ε. In this paper, five sampling points (A, . . . , E) marked in the figure were taken as examples to compare the roughness changes of blades before and after grinding, as shown in Figure 13. The robot planed the motion trajectory according to the position and curvature of the sampling points (20 mm × 20 mm area centered on this point), collecting images of the five sampling points in turn at the best angle, as shown in Figure 14. Repeat the above process until all points on the curve to the datum line posi less than the threshold  . In this paper, five sampling points (A,…, E) marked in th were taken as examples to compare the roughness changes of blades before an grinding, as shown in Figure 13. The robot planed the motion trajectory accordin position and curvature of the sampling points (20 mm × 20 mm area centered point), collecting images of the five sampling points in turn at the best angle, as sh Figure 14. The image data of the sampling points before and after polishing can obtain responding predicted value by the roughness discrimination model of the GAN + ral network, as shown in Table 6. It can be seen that the relative error between t dicted roughness and the real roughness (measured by SJ-210) has a margin of 10%, which meets the needs of industrial detection. The image data of the sampling points before and after polishing can obtain the corresponding predicted value by the roughness discrimination model of the GAN + BP neural network, as shown in Table 6. It can be seen that the relative error between the predicted roughness and the real roughness (measured by SJ-210) has a margin of error of 10%, which meets the needs of industrial detection. Conclusions In this paper, we propose a roughness evaluation method combining generative an adversarial network (GAN) and a BP neural network, which avoids the influence of surface image differences with different curvatures on the accuracy of roughness Conclusions In this paper, we propose a roughness evaluation method combining generative an adversarial network (GAN) and a BP neural network, which avoids the influence of surface image differences with different curvatures on the accuracy of roughness measurements. The method automatically learns features in the image by generators playing with discriminators, eliminating the independent feature extraction step. This does not merely shorten the prediction time but reduces the complexity of model training as well. Experiments show that the proposed method can measure a free-form surface with a minimum roughness of 0.2 µm, and measurement results have a margin of error of 10%. Since the proposed method does not require the operator to have the field knowledge of feature recognition, the method is easier to apply in a factory. However, the proposed roughness evaluation method using GAN takes a long time for model training due to its convolution process and depth structure characteristics. To overcome this problem, the adaptive model can be considered in future research to automatically adjust the hyperparameters. Conclusions Author Contributions: G.Z. was responsible for methodology and manuscript writing. C.L. was responsible for software. K.M. was responsible for experiments. F.N. was responsible for reviewing papers and providing funding support. H.L. provided resources. All authors have read and agreed to the published version of the manuscript. Conclusions Funding: This work is supported by Self-Planned Task (NO.SKLRS202204B) of State Key Laboratory of Robotics and System (HIT).

섹션 본문 90문단 · 34,239자

Introduction

2Grinding is a widespread but essential process in manufacturing products. It is widely used in aerospace, automobile manufacturing, rail transit and other industries [1]. Traditionally, grinding is done by manual operation or multi-axis CNC machine tools. The former is time-consuming and labor-intensive, while the latter is limited by operating space. Recently, robotic belt grinding has become an alternative due to its low cost, efficiency and large operating space [2]. For small workpiece, the robot generally uses appropriate contact force to ensure the stability of the workpiece [3]. The robot holds the workpiece to complete the grinding operation and uses its dexterity to move to the best inspection position on the surface of the workpiece [4]. Multiple sampling points are planned according to the curvature of the workpiece surface, and the robot moves to each sampling point in turn to complete the surface image sampling.

3As an important indicator of the quality of machined surfaces, surface roughness has a significant impact on product life and reliability [5]. The traditional probe-based measurement method [6][7][8][9] uses a probe that slides over the surface of the workpiece for measurement. This method has been proven to be highly reliable and highly accurate. However, it has several limitations, such as long measurement times, high environmental requirements and complex steps.

4With the development of optical technology, a variety of noncontact measurement methods has been developed to address the limitations of the contact measurement method. For example, optical microscopy, confocal laser scanning microscopy and white light interferometry are used to measure surface roughness, but these methods are mainly used in laboratories, because their high cost and complicated operation are not suitable for real industrial production. Currently, the most popular noncontact measurement method feature extraction step. Finally, the BP neural network represents the correlation between the GAN discriminant value and the roughness (Ra).

Generative Adversarial Network

5A GAN consists of two parts: the generative and discriminative networks, which use an adversarial game between generators and discriminators to achieve self-supervised learning. The main difference from the traditional network model is that the data training process contains both consistent and adversarial data. The generators and discriminators each optimize in different directions and form a competitive relationship with each other, but they also depend on each other to form a unified whole. In the adversarial training mode, the generator no longer learns directly from the training dataset, but learns iteratively in an indirect way through the optimization directions output by the discriminator, generating pseudosamples to mix the spurious with the genuine. A GAN computes faster and has greater expansion flexibility than a traditional network. In this paper, we propose using a GAN to discriminate the roughness of the surface of workpieces using the structure shown in Figure 1.

6network play with each other to automatically learn the features in the image the feature extraction step. Finally, the BP neural network represents the corr tween the GAN discriminant value and the roughness (Ra).

7A GAN consists of two parts: the generative and discriminative networks, an adversarial game between generators and discriminators to achieve self-s learning. The main difference from the traditional network model is that the da process contains both consistent and adversarial data. The generators and disc each optimize in different directions and form a competitive relationship with but they also depend on each other to form a unified whole. In the adversari mode, the generator no longer learns directly from the training dataset, but le tively in an indirect way through the optimization directions output by the disc generating pseudosamples to mix the spurious with the genuine. A GAN comp and has greater expansion flexibility than a traditional network. In this paper, w using a GAN to discriminate the roughness of the surface of workpieces using ture shown in Figure 1.

Roughness

8Ra Discriminator

9Pseudo images

10In other words, the loss function of GAN is as follows:

11The disadvantages of GAN:

12(1) GAN training is unstable, and the training degree of generator and dis should be carefully balanced.

13(2) When the generator learns that some features of the real data successfu the discriminator, it will not update. As a result, the generated samples lack div a collapse mode occurs in GAN.

14(3) When the overlap between the real and generated distributions is neg JS divergence between the real and generated distributions is minimized to log2. When the discriminator is optimal, the loss of the minimized generator is to log2, and G is no longer updated, resulting in the disappearance of the gen dient. p z (z) represented a prior on input noise variables, G(z) was generator of GAN, and D(x) represented the probability that x comes from real images. GAN's goal is training D(x) to maximize the probability of assigning the correct label to both training real samples and pseudosamples from G(z), at the same time training G(z) to minimize log(1 − D(G(z))). In other words, the loss function of GAN is as follows:

15The disadvantages of GAN:

16(1) GAN training is unstable, and the training degree of generator and discriminator should be carefully balanced.

17(2) When the generator learns that some features of the real data successfully deceive the discriminator, it will not update. As a result, the generated samples lack diversity, and a collapse mode occurs in GAN.

18(3) When the overlap between the real and generated distributions is negligible, the JS divergence between the real and generated distributions is minimized to a constant log2. When the discriminator is optimal, the loss of the minimized generator is also closer to log2, and G is no longer updated, resulting in the disappearance of the generator gradient.

19In order to overcome the above shortcomings, the generator and discriminator network structures of the original GAN network are redesigned. In this paper, a deep convolutional neural network is used as the network structure of the generator and discriminator:

20The structure of the generative network is shown in Figure 2, and the corresponding discriminator network structure is shown in Figure 3.

21Machines 2022, 10, x FOR PEER REVIEW 4 of convolutional neural network is used as the network structure of the generator and di criminator:

22The structure of the generative network is shown in Figure 2, and the correspondin discriminator network structure is shown in Figure 3. From Equation (1), it can be seen that the objective of the discriminator is to obta the maximum value of ( ) , V G D . Then, it is necessary to maximize ( ) D x , which mea maximizing the probability that real samples and generated samples will be assigned th correct label. At the same time, the generator

23which means minimizing the difference between the generated samples and the true sam ples. Therefore, the value function of GAN can be decomposed into two optimizatio problems:

24(1) Fix the generator G , train the discriminator D , so that it can maximize the corre determination of whether the sample is from the real sample or from the sample generate by G . The objective function of D is,

25Finding the derivative of Equation (2) with respect to ( ) D x , such that its derivativ 0 gives, (3), the optimal discriminator is obtained as follows: convolutional neural network is used as the network structure of the generator and dis criminator:

26The structure of the generative network is shown in Figure 2, and the correspondin discriminator network structure is shown in Figure 3. From Equation (1), it can be seen that the objective of the discriminator is to obtai the maximum value of ( ) , V G D . Then, it is necessary to maximize ( ) D x , which mean maximizing the probability that real samples and generated samples will be assigned th correct label. At the same time, the generator

27which means minimizing the difference between the generated samples and the true sam ples. Therefore, the value function of GAN can be decomposed into two optimizatio problems:

28(1) Fix the generator G , train the discriminator D , so that it can maximize the correc determination of whether the sample is from the real sample or from the sample generate by G . The objective function of D is,

29Finding the derivative of Equation (2) with respect to ( ) D x , such that its derivativ 0 gives, (3 Rewriting Equation (3), the optimal discriminator is obtained as follows: From Equation (1), it can be seen that the objective of the discriminator is to obtain the maximum value of V(G, D). Then, it is necessary to maximize D(x), which means maximizing the probability that real samples and generated samples will be assigned the correct label. At the same time, the generator G is trained to minimize log(1 − D(G(z))), which means minimizing the difference between the generated samples and the true samples.

30Therefore, the value function of GAN can be decomposed into two optimization problems:

31(1) Fix the generator G, train the discriminator D, so that it can maximize the correct determination of whether the sample is from the real sample or from the sample generated by G. The objective function of D is,

32Finding the derivative of Equation (2) with respect to D(x), such that its derivative 0 gives,

33Rewriting Equation (3), the optimal discriminator is obtained as follows:

34(2) Fix the discriminator D and train the generator G, such that L = max

35minimizes the difference between the generated samples and the real samples. The objective function of G is given by,

36Substituting Equation (4) into Equations (2) and (5), we obtain,

37Machines 2022, 10, 1026

of 17

38Introducing two important similarity metrics KL divergence (Kullback-Leibler divergence) and JS divergence (Jensen-Shannon divergence), Equation (6) is rewritten as,

39From Equation (7), it can be seen that fixing the discriminator, the goal of training the generator is to have a JS dispersion of 0 between P g and P data , i.e., P g = P data . At this point, the discriminator D * (G) = 1 2 . Thus, the equilibrium between generator and discriminator is realized by reciprocally training the GAN.

Measurement of Surface Roughness of Workpieces

40In this method, a neural network is used to discriminate the surface roughness of a grinded workpiece. A small number of data images are used to train a generative adversarial network (GAN) to generate the required large dataset for training the discriminative network, which outputs the surface roughness measurements of the workpiece.

Image Acquisition and Data Preprocessing Methods Subsection

41The radius of the curvature and roughness of the workpiece surface directly determine the refractive index of light, a factor which affects the imaging effect of the workpiece surface.

42Therefore, 72 images of workpieces with different curvature radii and roughness were collected in this study. The 12 images with the roughest and smoothest surfaces were selected as the original training dataset for the GAN generator, with 6 smooth and 6 rough images, as shown in Figure 4. However, the amount of data in the original dataset of 12 images was too small to be used directly for training the GAN discriminator, which would lead to severe overfitting of the discriminator. Therefore, the original images were first rotated and panned to generate a sufficient number of derived images (32,000 images were generated in the experiment). (2) and (5), we obtain,

Substituting Equation (4) into Equations

43Introducing two important similarity metrics KL divergence (Kullback-Leibler divergence) and JS divergence (Jensen-Shannon divergence), Equation (6)

44From Equation (7), it can be seen that fixing the discriminator, the goal of training the generator is to have a JS dispersion of 0 between g P and data P , i.e., DG= . Thus, the equilibrium between generator and discriminator is realized by reciprocally training the GAN.

Measurement of Surface Roughness of Workpieces

45In this method, a neural network is used to discriminate the surface roughness of a grinded workpiece. A small number of data images are used to train a generative adversarial network (GAN) to generate the required large dataset for training the discriminative network, which outputs the surface roughness measurements of the workpiece.

Image Acquisition and Data Preprocessing Methods Subsection

46The radius of the curvature and roughness of the workpiece surface directly determine the refractive index of light, a factor which affects the imaging effect of the workpiece surface.

47Therefore, 72 images of workpieces with different curvature radii and roughness were collected in this study. The 12 images with the roughest and smoothest surfaces were selected as the original training dataset for the GAN generator, with 6 smooth and 6 rough images, as shown in Figure 4. However, the amount of data in the original dataset of 12 images was too small to be used directly for training the GAN discriminator, which would lead to severe overfitting of the discriminator. Therefore, the original images were first rotated and panned to generate a sufficient number of derived images (32,000 images were generated in the experiment).

GAN-Based Surface Roughness Discrimination Method

48The generative network attempts to create images that the discriminant network cannot distinguish from real images during the training process, while the discriminant network is equivalent to a binary classification network to distinguish between the real training images and the images created by the generator. In this way, the model parameters are continuously optimized by the adversarial training between the two networks. Over multiple iterations, the images created by the generative network become closer to the real images, and the discriminant network increasingly understands the meaning of the roughness represented by the images, and finally gives the roughness value.

49The process of training the GAN is shown in Figure 5.

50The generative network attempts to create images that the discriminant network cannot distinguish from real images during the training process, while the discriminant network is equivalent to a binary classification network to distinguish between the real training images and the images created by the generator. In this way, the model parameters are continuously optimized by the adversarial training between the two networks. Over multiple iterations, the images created by the generative network become closer to the real images, and the discriminant network increasingly understands the meaning of the roughness represented by the images, and finally gives the roughness value.

51The process of training the GAN is shown in Figure 5.

52Step 1: The original datasets (surface roughness images) are classified in a binary fashion and labeled as "smooth" and "rough" according to a certain threshold.

53Step 2: Real surface roughness images marked by the classification in step 1 are rotated and panned to expand datasets.

54Step 3: The GAN is trained using the "rough" category data in the dataset in Step 2.

55Step 4: The GAN is trained using the "smooth" category data in the dataset in Step 2.

56Step 5: The image data is generated from the generation network trained in steps 3 and 4 to complete the data set expansion.

57Step 6: The discriminative network is retrained for the expanded smooth and rough datasets generated by the generative network in step 5 to obtain the final roughness recognition network model. Step 1: The original datasets (surface roughness images) are classified in fashion and labeled as "smooth" and "rough" according to a certain threshold.

58Step 2: Real surface roughness images marked by the classification in step tated and panned to expand datasets.

59Step 3: The GAN is trained using the "rough" category data in the dataset in

60Step 4: The GAN is trained using the "smooth" category data in the dataset i

61Step 5: The image data is generated from the generation network trained in and 4 to complete the data set expansion.

62Step 6: The discriminative network is retrained for the expanded smooth an datasets generated by the generative network in step 5 to obtain the final roughnes nition network model.

Training Results

63To teach the GAN the meaning of "rough," real smooth images are added data to train the discriminator along with the output of the generator, as shown i 6a. Figure 6b shows examples of the surface roughness of workpieces generated GAN.

64To teach the GAN the meaning of "rough," real smooth images are added as fake data to train the discriminator along with the output of the generator, as shown in Figure 6a. Figure 6b shows examples of the surface roughness of workpieces generated by the GAN. Step 1: The original datasets (surface roughness images) are classified in a binary fashion and labeled as "smooth" and "rough" according to a certain threshold.

65Step 2: Real surface roughness images marked by the classification in step 1 are rotated and panned to expand datasets.

66Step 3: The GAN is trained using the "rough" category data in the dataset in Step 2.

67Step 4: The GAN is trained using the "smooth" category data in the dataset in Step 2.

68Step 5: The image data is generated from the generation network trained in steps 3 and 4 to complete the data set expansion.

69Step 6: The discriminative network is retrained for the expanded smooth and rough datasets generated by the generative network in step 5 to obtain the final roughness recognition network model.

70To teach the GAN the meaning of "rough," real smooth images are added as fake data to train the discriminator along with the output of the generator, as shown in Figure 6a. Figure 6b shows examples of the surface roughness of workpieces generated by the GAN. The GAN is trained using the expanded datasets, and then the GAN is able to generate a series of smooth and rough images as the training set. The problem is treated as a binary classification problem using the sigmoid function as the output activation function and the binary cross-entropy as the loss function for training, with the rough images labeled '1' and the smooth images labeled '0'. In this method, the same network structure of the classifier with the discriminator of the GAN is used, as shown in Table 1. In the method described above, a dataset with only roughness Ra of 0.2, 0.4, 3.2, 6.3 and radius of curvature R of 50, 1000, and infinity are used as the training set. However, the dataset in the actual test contains more cases of roughness and radius of curvatures. A qualified classifier should be able to accurately distinguish the cases which are not encountered in the training set. Some of the actual test results are shown in Table 2, which visually reflects the classifier's scoring of images with different roughness levels. The smaller score means the smoother surface. The test results show that the method can accurately determine the untrained intermediate roughness (0.8 and 1.6 are the untrained cases), which indicates that the network can understand the concept of "roughness."

Discriminating Method of Workpiece Surface Roughness

71Roughness (Ra) is a small-distance (usually less than 1 mm) peak-valley that forms from a microgeometric shape error of the surface of the part. As shown above, the real surface image can obtain a discriminant value, nonlinearly related to roughness Ra through the trained GAN. In order to establish a mapping relationship between the discrimination value of GAN and surface roughness Ra, this paper proposes a surface roughness Ra discrimination method based on the BP neural network, which is shown in Figure 7.

72Roughness (Ra) is a small-distance (usually less than 1 mm) peak-valley that forms from a microgeometric shape error of the surface of the part. As shown above, the rea surface image can obtain a discriminant value, nonlinearly related to roughness Ra through the trained GAN. In order to establish a mapping relationship between the discrimination value of GAN and surface roughness Ra, this paper proposes a surface rough ness Ra discrimination method based on the BP neural network, which is shown in Figure 7. The input layer of the BP neural network for image discriminant value and radius of curvature is denoted as x i (i = 1, 2), and the output surface roughness is denoted as z. The number of neurons in the hidden layer is s, denoted as y i (1, 2, · · · , s). The bias value of the hidden layer is γ, and the bias of the output layer is θ. w denotes the connection weights from the input layer to the hidden layer, v denotes the connection weights from the hidden layer to the output layer, while f y and f z are the activation functions of the hidden and output layers, respectively. The forward propagation process of the BP neural network is expressed as:

73Equation (8) completes the mapping from x i (i = 1, 2) to z. α denotes the target value of the output, and the error of the BP neural network is:

74The error back-propagation process of the BP neural network is implemented by minimizing the objective function by Equation (9). The weights and biases of each layer are adjusted for each propagation as follows:

75From Equation (8), it can be seen that the data transfer process between the layers is transformed and connected by the activation function. Meanwhile, in the error backpropagation process in the BP neural network in Equation (10), the derivatives of the activation function adjust the connection weights of each layer to reduce the error to the desired range. Considering the requirement that the activation function be continuously differentiable, the sigmoid function is chosen as the output layer activation function, and the tanh function is chosen as the output layer activation function. To ensure accuracy of roughness estimation, this study determines the number of neurons in the hidden layer according to the Hecht-Nelson method [29] because the hidden layer affects the stability of the network. The number of input layer neurons is n, while the number of hidden layer neurons is 2n + 1. That is, the number of hidden layer neurons in the network is 5. Networks with different numbers of neurons have also been tested, as shown in Table 3. After determining that there should be one hidden layer for the BP neural network model, the number of neurons in the hidden layer must be determined. For each neural network model in Table 3, the average error between the actual and predicted values were recorded in 10 training sessions. It is clear from Table 3 that as the number of neurons in the hidden layer increases, the accuracy does not necessarily follow. When the number of hidden layer neurons increases from 3 to 5, the average error decreases from 12.42% to 6.24%. However, as the number of hidden layer neurons continues to increase to 7, the average error increases from 6.24% to 14.63%. The 2-5-1 neural network structure has the smallest error, and so this network structure is used in the real-time surface roughness model in this study.

Experiments

76In this study, a robot is used to hold the workpiece while grinding a complex, curved item. The robotic grinding platform is built as shown in Figure 8, consisting of a belt grinder, a lightweight robot with seven degrees of freedom and a camera. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. Surface roughness is a key feature of the surface texture of a workpiece because it has a significant impact on the service life and reliability of a mechanical product. This paper proposes a vision-based roughness measurement method for comprehensively considering the cost, usability, and efficiency. This method consists of three stages: image acquisition, self-supervised learning and result discrimination. A narrow-angle industrial camera is used to build a vision-based surface roughness measurement system, as shown in Figure 9. The narrow-angle Balser ace 2 industrial camera meets the needs of this method for surface roughness measurement of curved workpieces. Its detailed parameters are shown in Table 4. Table 4. Parameters of Balser ace 2 narrow angle camera.

Resolution ratio

772.3 MP Figure 9. Surface roughness measurement system based on vision.

78The narrow-angle Balser ace 2 industrial camera meets the needs of this method for surface roughness measurement of curved workpieces. Its detailed parameters are shown in Table 4. Balser ACE 2 samples images of standard grinding surface roughness contrasts as shown in Figure 10a, and images of standard milled surface roughness contrasts as shown in Figure 10b. There is no significant difference between images Ra 0.2 and Ra 0.1. The camera can distinguish surfaces with surface roughness Ra greater than 0.2. The image samples in Figure 10 are added to the training set of the proposed GAN to enrich the samples and increase the measurement accuracy of the model. Balser ACE 2 samples images of standard grinding surface roughness contrasts as shown in Figure 10a, and images of standard milled surface roughness contrasts as shown in Figure 10b. There is no significant difference between images Ra 0.2 and Ra 0.1. The camera can distinguish surfaces with surface roughness Ra greater than 0.2. The image samples in Figure 10 are added to the training set of the proposed GAN to enrich the samples and increase the measurement accuracy of the model. The blade-grinding process is divided into three processing stages according to the requirements of the grinding process: rough grinding, semi-finishing grinding and finishing grinding. The rough grinding stage removes a large amount of the material using the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 120 and contact force 15 N. The semi-finishing stage removes a small amount of material with the grinding parameters of belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320 and contact force 10 N. The finishing stage is mainly for finishing the surface of the workpiece with the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320, and contact force 5 N. After each grinding stage, the surface roughness is measured and analyzed.

79In this study, an industrial camera was used to take pictures of the workpiece surface under a specific light environment to measure the surface roughness conditions, as shown in Figure 11. In order to compare the measurement accuracy of different learning algorithms, ANN and CNN are added to train the surface roughness measurement model in this paper. The GAN-BPNN, ANN, CNN were used to judge the smoothness of the polished processing surface in Figure 11, as shown in Table 5. The proposed GAN-BPNN has The blade-grinding process is divided into three processing stages according to the requirements of the grinding process: rough grinding, semi-finishing grinding and finishing grinding. The rough grinding stage removes a large amount of the material using the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 120 and contact force 15 N. The semi-finishing stage removes a small amount of material with the grinding parameters of belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320 and contact force 10 N. The finishing stage is mainly for finishing the surface of the workpiece with the grinding parameters belt line speed 5 m/s, feed speed 3 mm/s, belt mesh 320, and contact force 5 N. After each grinding stage, the surface roughness is measured and analyzed.

80In this study, an industrial camera was used to take pictures of the workpiece surface under a specific light environment to measure the surface roughness conditions, as shown in Figure 11. In order to compare the measurement accuracy of different learning algorithms, ANN and CNN are added to train the surface roughness measurement model in this paper. The GAN-BPNN, ANN, CNN were used to judge the smoothness of the polished processing surface in Figure 11, as shown in Table 5. The proposed GAN-BPNN has a margin of error of 10%. However, the prediction error of ANN and CNN were more than 10%. a margin of error of 10%. However, the prediction error of ANN and CNN were more than 10%. Figure 11. Roughness measurement based on machine vision. In order to measure blade surface roughness more accurately, this paper designs a sampling point distribution method based on constant chord height. The method realizes a dense distribution of sampling points in the region with a large curvature variation and a sparse distribution in the region with a small curvature variation, as shown in Figure 12.

81(1) Set a chord height  .

82(2) The baseline AE was obtained by connecting the end points of the curve.

83(3) Determine whether there exists a point on the curve AE whose distance to the datum line is greater than  . If there is a point on AE , whose distance from the datum line AE is the farthest point is In order to measure blade surface roughness more accurately, this paper designs a sampling point distribution method based on constant chord height. The method realizes a dense distribution of sampling points in the region with a large curvature variation and a sparse distribution in the region with a small curvature variation, as shown in Figure 12. (1) Set a chord height ε.

84(2) The baseline AE was obtained by connecting the end points of the curve.

85(3) Determine whether there exists a point on the curve AE whose distance to the datum line is greater than ε. If there is a point on AE, whose distance from the datum line AE is the farthest point is n 0 , then delete the original datum line AE.

86(4) Set n 0 to B and connect the AB and BE as the new datum line.

87(5) Determine whether there exists a point on the curve AB whose distance to the datum line is greater than ε, and if there is a point on AB whose distance from the datum line AB is the farthest point is n 1 . Similarly, point n 2 on curve AB is obtained. Rewrite A, n 1 , B, n 2 , E as A, B, C, D, E. Repeat the above process until all points on the curve to the datum line position are less than the threshold ε. In this paper, five sampling points (A, . . . , E) marked in the figure were taken as examples to compare the roughness changes of blades before and after grinding, as shown in Figure 13. The robot planed the motion trajectory according to the position and curvature of the sampling points (20 mm × 20 mm area centered on this point), collecting images of the five sampling points in turn at the best angle, as shown in Figure 14. Repeat the above process until all points on the curve to the datum line posi less than the threshold  . In this paper, five sampling points (A,…, E) marked in th were taken as examples to compare the roughness changes of blades before an grinding, as shown in Figure 13. The robot planed the motion trajectory accordin position and curvature of the sampling points (20 mm × 20 mm area centered point), collecting images of the five sampling points in turn at the best angle, as sh Figure 14. The image data of the sampling points before and after polishing can obtain responding predicted value by the roughness discrimination model of the GAN + ral network, as shown in Table 6. It can be seen that the relative error between t dicted roughness and the real roughness (measured by SJ-210) has a margin of 10%, which meets the needs of industrial detection. The image data of the sampling points before and after polishing can obtain the corresponding predicted value by the roughness discrimination model of the GAN + BP neural network, as shown in Table 6. It can be seen that the relative error between the predicted roughness and the real roughness (measured by SJ-210) has a margin of error of 10%, which meets the needs of industrial detection.

Conclusions

88In this paper, we propose a roughness evaluation method combining generative an adversarial network (GAN) and a BP neural network, which avoids the influence of surface image differences with different curvatures on the accuracy of roughness

89In this paper, we propose a roughness evaluation method combining generative an adversarial network (GAN) and a BP neural network, which avoids the influence of surface image differences with different curvatures on the accuracy of roughness measurements. The method automatically learns features in the image by generators playing with discriminators, eliminating the independent feature extraction step. This does not merely shorten the prediction time but reduces the complexity of model training as well. Experiments show that the proposed method can measure a free-form surface with a minimum roughness of 0.2 µm, and measurement results have a margin of error of 10%. Since the proposed method does not require the operator to have the field knowledge of feature recognition, the method is easier to apply in a factory. However, the proposed roughness evaluation method using GAN takes a long time for model training due to its convolution process and depth structure characteristics. To overcome this problem, the adaptive model can be considered in future research to automatically adjust the hyperparameters.

90Author Contributions: G.Z. was responsible for methodology and manuscript writing. C.L. was responsible for software. K.M. was responsible for experiments. F.N. was responsible for reviewing papers and providing funding support. H.L. provided resources. All authors have read and agreed to the published version of the manuscript.

91Funding: This work is supported by Self-Planned Task (NO.SKLRS202204B) of State Key Laboratory of Robotics and System (HIT).

참고문헌 26건

  1. Uncertainty analysis of roughness standard calibration using stylus instruments Precision Engineering · Elsevier BV · 1998 10.1016/s0141-6359(97)00090-1
  2. Measurement and evaluation of surface roughness based on optic system using image processing and artificial neural network The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2014 10.1007/s00170-014-5828-1
  3. A vision system for surface roughness assessment using neural networks The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 1998 10.1007/bf01304620
  4. Evaluation of surface roughness by vision system International Journal of Machine Tools and Manufacture · Elsevier BV · 1998 10.1016/s0890-6955(97)00118-1
  5. An improved surface roughness measurement method for micro-heterogeneous texture in deep hole based on gray-level co-occurrence matrix and support vector machine The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2013 10.1007/s00170-013-5048-0
  6. Comparison of surface roughness measurements by stylus profiler, AFM and non-contact optical profiler Wear · Elsevier BV · 1995 10.1016/0043-1648(95)06697-7
  7. Measuring grinding surface roughness based on the sharpness evaluation of colour images Measurement Science and Technology · IOP Publishing · 2016 10.1088/0957-0233/27/2/025404
  8. Detecting surface roughness on SLS parts with various measuring techniques Polymer Testing · Elsevier BV · 2016 10.1016/j.polymertesting.2016.05.022
  9. TCP-based calibration in robot-assisted belt grinding of aero-engine blades using scanner measurements The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2016 10.1007/s00170-016-9331-8
  10. Online non-contact surface finish measurement in machining using graph theory-based image analysis Journal of Manufacturing Systems · Elsevier BV · 2016 10.1016/j.jmsy.2016.09.007
  11. A new surface roughness measurement method based on a color distribution statistical matrix Measurement · Elsevier BV · 2017 10.1016/j.measurement.2017.02.036
  12. Generative Adversarial Networks: An Overview IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2018 10.1109/msp.2017.2765202
  13. Industrial robotic machining: a review The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2019 10.1007/s00170-019-03403-z
  14. Surface Roughness Estimation and Chatter Vibration Identification Using Vision-Based Deep Learning Journal of the Japan Society for Precision Engineering · 2019 10.2493/jjspe.85.658
  15. Illumination Compensated images for surface roughness evaluation using machine vision in grinding process Procedia Manufacturing · Elsevier BV · 2019 10.1016/j.promfg.2019.06.099
  16. Prediction of Surface Roughness by Machine Vision using Principal Components based Regression Analysis Procedia Computer Science · Elsevier BV · 2020 10.1016/j.procs.2020.03.242
  17. Evaluation of turned and milled surfaces roughness using convolutional neural network Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.107860
  18. Robotic grinding of complex components: A step towards efficient and intelligent machining – challenges, solutions, and applications Robotics and Computer-Integrated Manufacturing · Elsevier BV · 2020 10.1016/j.rcim.2019.101908
  19. Evaluation of surface roughness in incremental forming using image processing based methods Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.108055
  20. Vision-based surface roughness accuracy prediction in the CNC milling process (Al6061) using ANN Materials Today Proceedings · Elsevier BV · 2020 10.1016/j.matpr.2020.05.122
  21. Vision based prediction of surface roughness for end milling Materials Today Proceedings · Elsevier BV · 2020 10.1016/j.matpr.2020.10.709
  22. Measurement and inspection of electrical discharge machined steel surfaces using deep neural networks Machine Vision and Applications · Springer Science+Business Media · 2020 10.1007/s00138-020-01142-w
  23. Roughness Classification of End Milling Based on Machine Vision 2020 3rd World Conference on Mechanical Engineering and Intelligent Manufacturing (WCMEIM) · 2020 10.1109/wcmeim52463.2020.00067
  24. Surface roughness measurement based on singular value decomposition of objective speckle pattern Optics and Lasers in Engineering · Elsevier BV · 2021 10.1016/j.optlaseng.2021.106847
  25. Task-Oriented Real-Time Optimization Method of Dynamic Force Distribution for Multi-Fingered Grasping International Journal of Humanoid Robotics · World Scientific · 2022 10.1142/s021984362250013x
  26. Comparison of Correlation between 3D Surface Roughness and Laser Speckle Pattern for Experimental Setup Using He-Ne as Laser Source and Laser Pointer as Laser Source Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22166003