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

Classification and inspection of milling surface roughness based on a broad learning system

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

기본 정보

저자
  1. Runji Fang — School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People’s Republic of China|||School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People's Republic of China
  2. Huaian Yi — School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People’s Republic of China|||School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People's Republic of China
  3. Shuai Wang — School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People’s Republic of China|||School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People's Republic of China
  4. Yilun Niu — School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People’s Republic of China|||School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People's Republic of China
DOI
10.24425/mms.2022.142268
저널
Metrology and Measurement Systems
발행년도
2022
발행기관
De Gruyter Open
피인용수
5
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.24425/mms.2022.142268
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4380533117

평가 내용

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

초록

Current vision-based roughness measurement methods are classified into two main types: index design and deep learning. Among them, the computation procedure for constructing a roughness correlation index based on image data is relatively difficult, and the imaging environment criteria are stringent and not universally applicable. The roughness measurement method based on deep learning takes a long time to train the model, which is not conducive to achieving rapid online roughness measurement. To tackle with the problems mentioned above, a visual measurement method for surface roughness of milling workpieces based on broad learning system was proposed in this paper. The process began by capturing photos of the milling workpiece using a CCD camera in a normal lighting setting. Then, the train set was augmented with additional data to lower the quantity of data required by the model. Finally, the broad learning system was utilized to achieve the classification prediction of roughness. The experimental results showed that the roughness measurement method in this paper not only had a training speed incomparable to deep learning models, but also could automatically extract features and exhibited high recognition accuracy.

본문 54,432자

본문 펼치기
_Metrol. Meas. Syst.,_ Vol. 29 (2022) No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) METROLOGY AND MEASUREMENT SYSTEMS Index 330930, ISSN 0860-8229 _[www.metrology.wat.edu.pl](http://www.metrology.wat.edu.pl/)_ CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING SYSTEM Runji Fang, Huaian Yi, Shuai Wang, Yilun Niu _School of Mechanical and Control Engineering, Guilin University of Technology, Guilin, 541006, People’s Republic of_ _China_ ( _[18894719154@126.com,](mailto:18894719154@126.com)_ - _[yihuaian@126.com,](mailto:yihuaian@126.com)_ +182 7838 6857 _[, 604994407@qq.com, 3493364331@qq.com](mailto:604994407@qq.com)_ ) Abstract Current vision-based roughness measurement methods are classified into two main types: index design and deep learning. Among them, the computation procedure for constructing a roughness correlation index based on image data is relatively difficult, and the imaging environment criteria are stringent and not universally applicable. The roughness measurement method based on deep learning takes a long time to train the model, which is not conducive to achieving rapid online roughness measurement. To tackle with the problems mentioned above, a visual measurement method for surface roughness of milling workpieces based on broad learning system was proposed in this paper. The process began by capturing photos of the milling workpiece using a CCD camera in a normal lighting setting. Then, the train set was augmented with additional data to lower the quantity of data required by the model. Finally, the broad learning system was utilized to achieve the classification prediction of roughness. The experimental results showed that the roughness measurement method in this paper not only had a training speed incomparable to deep learning models, but also could automatically extract features and exhibited high recognition accuracy. Keywords: broad learning system, classification, milling surface roughness, rapid training. © 2022 Polish Academy of Sciences. All rights reserved 1. Introduction Any machined surface has the unevenness of tiny peaks and valleys, and the unevenness is generally expressed in terms of surface roughness parameters. The size of the surface roughness has a great influence on the corrosion resistance, fatigue resistance and service life of the part [1, 2]. Therefore, it is important to measure the surface roughness of parts accurately and quickly. The most frequently used roughness measuring techniques are classified as contact and non-contact measurements [3]. However, the contact measurement method has the disadvantage of the small detection range, low measurement efficiency and potential for scratching the workpiece. In contrast, non-contact measurement, which has the advantages of high flexibility, fast measurement speed, and support for in-line measurement, is increasingly being relied upon in Copyright © 2022. The Author(s). This is an open-access article distributed under the terms of the Creative Commons Attribution NonCommercial-NoDerivatives License (CC BY-NC-ND 4.0 https://creativecommons.org/licenses/by-nc-nd/4.0/), which permits use, distribution, and reproduction in any medium, provided that the article is properly cited, the use is non-commercial, and no modifications or adaptations are made. Article history: received January 13, 2022; revised April 5, 2022; accepted April 22, 2022; available online July 28, 2022. _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ precision manufacturing. Non-contact measurement methods mainly include optical measurement, electronic measurement and machine vision measurement. However, optical and electronic measurements have the shortcomings of expensive equipment, low efficiency, and vulnerability to environmental influences [4, 5]. Machine vision measurement is a method based on the optical imaging principle. Its measurement process is not only easy to automate and efficient but also supports online measurement. Therefore, it is significant to study efficient and low-cost machine vision roughness measurement methods. For extracting features using image gray value information, Liu _et al._ [6] constructed a GLCM-SVM model for measuring the surface roughness of deep holes using the GLCM family of indices as the input to a support vector machine. Tsai _et al_ . [7] proposed five spectrum indices to characterize roughness and input them into a neural network to predict milling surface roughness. In terms of extracting features using image color information, Yi _et al._ [8, 9] proposed an algorithm for evaluating the sharpness of color images and an average color difference algorithm, and constructed a relationship model between such indices and roughness. To evaluate the roughness of grinding surfaces, Zhao _et al._ [10] proposed a detection method based on the singular value entropy of color images. Although the above-mentioned index-based roughness prediction methods are effective, there are common limitations such as difficulty in index design, significant human influence factors, and demanding image acquisition environment. Because of these drawbacks, such measurement methods cannot be directly applied to complex and changing industrial applications. As a result, the visual roughness measuring approach with high measurement accuracy and the ability to extract features automatically has become a hot research topic. In recent years, deep convolutional neural networks have become increasingly capable of expressing image features. Deep learning models are gradually being introduced into the field of roughness measurement due to their ability to automatically extract image features. Chen _et_ _al._ [11] used a deep convolutional neural network to achieve index-free roughness detection. Rifai _et al._ [12] proposed a method to evaluate surface roughness directly from surface texture images using convolutional neural networks. Yan _et al._ [13] proposed a roughness measurement method based on image segmentation for helical gear surfaces, and the extracted effective image regions were fed into a convolutional neural network to evaluate their roughness. Although the abovementioned roughness measurement methods based on deep convolutional neural networks realized automatic feature extraction and guaranteed good accuracy, they also have shortcomings. Due to a large number of connection parameters in the filters and layers of deep convolutional neural networks, their training process is extremely time-consuming and not suitable for fast-judging roughness online measurement. The _random_ _vector_ _functional-link_ _neural_ _network_ (RVFLNN) proposed by Pao _et al._ [14] effectively eliminated the drawback of the long training time, and has been used to solve problems in different domains. However, the RVFLNN cannot handle largescale data well, so it is not suitable for direct use in the field of visual roughness measurement. The _broad_ _learning_ _system_ (BLS) combines the advantages of a deep convolutional neural network and the RVFLNN, which can solve the above problems effectively. The BLS uses the RVFLNN design concept to replace the deep network structure with a flat network shape, which minimizes the number of parameters that need to be optimized and significantly reduces the time it takes to train the model. Aiming at overcoming the drawbacks of index design-based and deep learning network-based roughness measurement methods such as difficult index design, considerable human influence factors and slow model training speed, a visual measurement method for surface roughness of milling workpiece based on the BLS was proposed in this paper. Milling workpiece images built in the BLS were captured by an industrial camera under normal light sources and combined with data enhancement techniques to reduce the model’s data volume requirements. Then a broad 484 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) learning network was used to automatically extract features and rapidly train the model. Finally, a surface roughness measurement model applicable to milling workpieces was obtained, and a fast end-to-end measurement was realized. 2. Theoretical basis of predictive modeling _2.1. Analysis of milling surface morphology_ Due to the consistency of the tool edge in milling processing, the arrangement of the tiny peaks and valleys on the processing surface is regular, which is mainly caused by the regular vibration of the machine tool [15]. Likewise, the feed motion of the tool creates a clear texture on the surface of the workpiece. In this paper, the milling specimens with _Ra_ 0.236 μm and _Ra_ 1.477 μm were magnified 500 times by using a VHX1000 ultra-deep field 3D microscope to obtain the surface texture maps of the two specimens, respectively. Then a JB-4C stylus roughness tester was used to make a single measurement on the milling workpiece surface to get the up and down fluctuation map of the stylus. Finally, the Zygo NewView™7100 white light interferometer was used to scan the machined surface to get a 3D morphology map. Various graphs of the two milling specimens are shown in Fig. 1. Fig. 1. Milling specimen (Left _Ra_ 0.236 μm, Right _Ra_ 1.477 μm). a) Microscopic surface topography, b) roughness stylus measurement fluctuation graph, c) surface 3D morphology. From Fig. 1a, it can be seen that the difference between the microscopic morphology of the milling surface with different roughness was not significant under human eye observation when the milling surface roughness was _Ra_ 0.236 μm and _Ra_ 1.477 μm, respectively. During the linear measurement of roughness with the stylus (Fig. 1b), however, there was a distinct disparity between the peak value and the fluctuation frequency, despite the stylus fluctuating up and down 485 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ fairly consistently. Two cases are considered here. (1) When the roughness was small, the peak was smaller and the crest was larger. (2) When the roughness was larger, the peak was larger and the crest was smaller. Their surface 3D morphology is shown in Fig. 1c, the joint marks representing the profile peak height are indicated by red lines, and the cutting surface representing the profile flatness is indicated by yellow-green lines. The difference between the two was very large, as shown in Fig. 1c, despite the fact that the height distribution of the milling surface profile was very regular. Again, two cases are under consideration. (1) When the roughness was equal to _Ra_ 0.236 μm, the height distribution was relatively uniform and the surface was relatively flat. (2) When the roughness was equal to _Ra_ 1.477 μm, the joint tool marks were spaced like a high wall separating the cutting surface and the flatness was poor. Generally speaking, the milling surface topography also showed a certain regular change with the change of roughness. The theoretical basis of machine vision inspection is the principle of light reflection on the surface of a workpiece. The incident light from the light source is reflected by the workpiece surface and then received by the vision sensor to form an image of the workpiece surface. The image quality is determined by the light reflection properties of the workpiece surface which, in turn, depend on the microscopic surface topography. Microscopic morphology is generally characterized by surface roughness parameters. Therefore, the correlation between milling surface topography and roughness provides a theoretical basis for machine vision applied to milling workpiece roughness measurement. _2.2. Broad learning system principle_ To improve the model training speed, Chen _et al._ [16] proposed the BLS based on the RVFLNN whose basic structure is shown in Fig. 2. Fig. 2. Basic structure of broad learning system. In Fig. 2, _?_ is the input data, _??_ is the feature node, _?_ _?_ is the enhancement node, and _?_ is the connection weight between the input layer _?_ and the output layer _?_ . The specific design ideas are as follows. Firstly, the input data _?_ is feature-mapped to obtain random features _??_, _?_ = 1 _,_ 2 _, . . ., ?_, where _?_ is the number of mapped features, as shown in (1). - _??_ = _??_ - _??_ _??_ + _?_ _??_ - _,_ _?_ = 1 _,_ 2 _, . . ., ?_ _,_ (1) _?_ <sup>_?_</sup> = [ _?_ 1 _, ?_ 2 _, . . ., ??_ ] where _??_ is the mapping function, _?_ _??_ is the random weight matrix, _?_ _??_ is the random bias matrix, and _?_ <sup>_?_</sup> is the set of feature nodes obtained by merging _?_ groups of feature nodes _?_ 1 _, ?_ 2 _, . . ., ??_ . 486 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) Then _?_ <sup>_?_</sup> is enhanced with features to obtain the enhanced node _?_ _?_, as shown in (2). - _?_ _?_ = _??_ - _?_ _??ℎ?_ + _?ℎ?_ - _,_ _?_ = 1 _,_ 2 _, . . ., ?_ _,_ (2) _?_ <sup>_?_</sup> = [ _?_ 1 _, ?_ 2 _, . . ., ??_ ] where _??_ is the enhancement function, _?ℎ?_ is the random weight matrix, _?ℎ?_ is the random bias matrix, and _?_ <sup>_?_</sup> is the set of enhancement nodes obtained by merging _?_ sets of enhancement nodes _?_ 1 _, ?_ 2 _, . . ., ??_ . Finally, the algorithm of the BLS is represented as follows. - _?_ = [ _?_ <sup>_?_</sup> | _?_ <sup>_?_</sup> ] _?,_ (3) _?_ = - _?_ 1 _, ?_ 2 _, . . ., ??_ | _?_ 1 _, ?_ 2 _, . . ., ??_ where [ _?_ <sup>_?_</sup> | _?_ <sup>_?_</sup> ] are the total nodes, _?_ is the connection weight matrix between the input layer _?_ and the output layer _?_ . Taking _?_ = [ _?_ <sup>_?_</sup> | _?_ <sup>_?_</sup> ], (3) can be represented as _?_ = _??_ . The BLS can be reduced to the following minimization problem based on the generalized inverse calculation of the ridge regression approximation [17]. min _?_ <sup>∥</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>∥</sup> 2 <sup>2</sup> min _?_ 2 <sup>2</sup> <sup>+</sup> <sup>_?_</sup> <sup>∥</sup> <sup>_?_</sup> <sup>∥2</sup> 2 <sup>_,_</sup> (4) where _?_ is the regularization factor which prevents overfitting of the function and thus enhances the generalization ability. If the fitting ability of the initial developed model is insufficient, the nonlinear fitting ability is boosted by adding feature nodes or enhancement nodes. Since the update of the weight matrix _??_ +1 uses _??_ before the update, it effectively reduces the computational effort of updating the weights and the update is faster. The advantage of broad learning is significant compared to the iterative training of deep learning. _2.3. Data enhancement of milling workpiece surface images_ In general, a train set is used to estimate the parameters in the model, which is able to reflect the reality and thus predict the future or other unknown information. And the test set is used to evaluate the predictive performance of the model. Similar to deep neural networks, the BLS also requires a large amount of training data to obtain the desired results. When less milling data is available, the data augmentation algorithm can be utilized to augment the train data set. A data augmentation algorithm can increase the number and diversity of samples, reduce the strong dependence of the model on certain specific attributes to improve the robustness of the model, and enhance the generalization ability of the model. The analysis of the milling surface morphology and the milling workpiece image (Fig. 3) showed that the surface texture characteristics of the milling workpiece mainly exhibited periodic repetition and texture direction consistency. According to the texture characteristics of the milling surface, the image data enhancement methods used were mainly classified into contrast adjustment, hue adjustment, saturation adjustment, brightness adjustment, and rotation adjustment, _etc_ . It should be noted that the milling workpiece images of the test set do not use data enhancement in order to be consistent with the actual inspection environment. Some of the effects are shown in Fig. 3. 1. Contrast is the ratio of black to white of the image. When the ratio is larger, the richer is the color expression (5). Contrast = ∑︁ _?_ _?_ ( _?,_ _?_ ) <sup>2</sup> _?_ _?_ ( _?,_ _?_ ) _,_ (5) where _?_ ( _?,_ _?_ ) = | _?_ - _?_ | is the gray level difference between adjacent pixels, and _?_ _?_ ( _?,_ _?_ ) is the probability of pixel distribution where the gray level difference between adjacent pixels is _?_ . 487 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ 2. Hue is determined by which wavelength dominates in the light reflected from an object. Different wavelengths produce different color vision, which determines the fundamental characteristics of color nature. _?_, _?_, and _?_ are red pixel value, green pixel value, and blue pixel value, respectively (6) and (7). max = max( _?, ?, ?_ ) _,_ min = min( _?, ?, ?_ ) (6) 0 <sup>◦</sup> _,_ if max = min _?_ - _?_ 60 <sup>◦</sup> × max − min <sup>+ 0◦</sup> <sup>_,_</sup> if max = _?_ and _?_ ≥ _?_ _?_ - _?_ 60 <sup>◦</sup> × max − min <sup>+ 360◦</sup> <sup>_,_</sup> if max = _?_ and _?<_ _?_ _?_ - _?_ 60 <sup>◦</sup> × max − min <sup>+ 120◦</sup> <sup>_,_</sup> if max = _?_ _?_ - _?_ 60 <sup>◦</sup> × max − min <sup>+ 240◦</sup> <sup>_,_</sup> if max = _?_ Hue =   _._ (7) 3. Saturation refers to the degree of vividness of the color, also known as the purity of the color (8). 0 <sup>◦</sup> _,_ if max = 0 Saturation =   <u>max −</u> <u>min</u> - <u>min</u> = 1 − <sup><u>min</u></sup> max max max <sup><u>min</u></sup> <sup>_,_</sup> otherwise _._ (8) 4. Brightness refers to the light and darkness of the light shining on the scene or image (9). Brightness = 0 _._ 299 × _?_ + 0 _._ 587 × _?_ + 0 _._ 114 × _?._ (9) 5. Rotation. Assume that any point _??_ ( _??, ??_ ) of the original image is rotated by an angle to a new position _?_ ( _?, ?_ ) (10). - _?_ = _??_ cos _?_ + _??_ sin _?_ _?_ = − _??_ sin _?_ + _??_ cos _?_ <sup>_._</sup> (10) Fig. 3. Partial data enhancement effect diagram. 488 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) _2.4. BLS roughness measurement model_ The BLS roughness measurement model integrates feature extraction, feature transformation and feature classification, omitting the step of the human-designed index. It also greatly reduces the time to train the model and realizes the fast measurement of surface roughness of the end-toend milling workpiece. Fig. 4 shows the algorithm flow of the BLS roughness measurement model. (1) The milling workpiece image data set was divided into train set and test set for training and testing of the model, respectively. (2) The number and diversity of training samples were increased by the data enhancement algorithm. (3) The training data and the testing data were normalized. (4) The normalized training data and testing data were fed into the BLS network for learning and the detailed procedure was as follows. The input milling sample _?_ is feature-mapped to create the mapped feature group, which is then coupled to the nonlinear activation function to create the feature augmentation group. The mapped feature group and the augmented feature group are connected to the weight matrix, and then act together on the output layer to get the output _?_ of the BLS model. (5) The original data was compared with the predicted data to determine the prediction accuracy of the BLS for milling data. (6) The testing time was utilized to demonstrate the superiority of the BLS model’s training speed, and the results were compared to those of other prediction models. Fig. 4. Algorithm flow chart of the BLS roughness measurement model. 3. Experiment The experimental procedure of this paper, as shown in Fig. 5, is divided into five parts i.e., preparation of experimental specimens, Roughness measurement, Acquisition of milling workpiece images and making of data set, Comparison experiments, Analysis and discussion of experimental results. Fig. 5. Experimental flow chart. 489 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ _3.1. Preparation of experimental specimens_ The milling specimens for this experiment were machined by an XHS7145 CNC machine tool (Fig. 6a), and a TAP400R100-32-6T milling tool was used (Fig. 6b), with a milling depth of 0.1 mm, feed rate of 200–1100 mm/min, rotational speed of 600 r/min, material 45# steel, size of 60 mm × 40 mm, and the number of specimens produced 30 (Table 1). Fig. 6. (a) XHS7145 CNC machine. (b) TAP400R100-32-6T Disc Milling Cutter. Table 1. Material and processing parameters. Material Size Amount produced CNC machine type 45# steel 60 mm × 40 mm 30 XHS7145 Milling cutter type Milling depth Feed rate Rotational speed TAP400R100-32-6T 0.1 mm 200–1100 mm/min 600 r/min _3.2. Roughness measurement_ The surface roughness of 30 milling workpieces was obtained by using a stylus roughness measuring instrument TR210 for six times uniformly distributed measurements, and the roughness assessment parameter was _Ra_ . The average value of the six measurements was taken as the surface roughness of the workpiece, and the measurement results are shown in Table 2. Due to the inherent features of stylus roughness measurement and milling surface topography, the roughness measured with a stylus at various points changes within a specific range. Therefore, in the International Standards Organization (ISO, 1302) standard, the roughness classes commonly used in industrial production are 0.4, 0.8, 1.6, 3.2, 6.3 μm, _etc_ ., which means that the roughness classes are classified as [0, 0.4], [0.4, 0.8], [0.8, 1.6], [1.6, 3.2], [3.2, 6.3]. In this paper, the roughness was divided into five roughness classes according to intervals [1.0, 1.4], [1.4, 1.9], [1.9, 2.5], [2.5, 3.1] and [3.1, 3.7], which were recorded as R1, R2, R3, R4 and R5, respectively, following the ISO standard and combined with the actual roughness value range in Table 2. 490 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) Table 2. Surface roughness of milling workpiece ( _Ra_, Unit: µm) NO First Second Third Forth Fifth Sixth Average 1 1.310 1.289 1.295 1.290 1.260 1.313 1.293 2 1.063 1.130 1.120 1.122 1.095 1.107 1.106 3 1.077 1.065 1.108 1.028 1.105 1.084 1.078 4 1.378 1.381 1.304 1.306 1.351 1.332 1.342 5 1.214 1.222 1.284 1.213 1.297 1.262 1.249 6 1.221 1.200 1.164 1.154 1.195 1.159 1.182 7 1.483 1.466 1.484 1.447 1.496 1.493 1.478 8 1.440 1.599 1.529 1.483 1.435 1.561 1.508 9 1.595 1.524 1.527 1.558 1.563 1.605 1.562 10 1.433 1.404 1.363 1.471 1.475 1.497 1.441 11 1.593 1.518 1.747 1.629 1.583 1.564 1.606 12 1.489 1.416 1.335 1.448 1.471 1.466 1.438 13 1.931 1.968 1.918 1.948 1.968 2.034 1.961 14 2.085 2.088 1.985 2.054 2.046 1.987 2.041 15 2.054 2.052 2.018 2.060 2.079 1.991 2.042 16 1.899 1.975 2.066 1.852 2.044 1.986 1.970 17 2.195 2.216 2.215 2.158 2.178 2.251 2.202 18 2.118 2.081 2.135 2.156 2.201 2.121 2.135 19 2.809 2.842 2.836 2.849 2.775 2.759 2.812 20 2.845 2.932 2.928 2.991 2.904 2.889 2.915 21 2.880 2.786 2.886 2.738 2.827 2.867 2.831 22 2.754 2.785 2.721 2.852 2.734 2.778 2.771 23 2.795 2.789 2.752 2.787 2.694 2.702 2.753 24 2.702 2.704 2.624 2.672 2.711 2.672 2.681 25 3.363 3.309 3.368 3.379 3.360 3.299 3.346 26 3.173 3.208 3.283 3.276 3.274 3.129 3.224 27 3.353 3.499 3.450 3.391 3.566 3.328 3.431 28 3.377 3.387 3.390 3.362 3.407 3.467 3.398 29 3.319 3.221 3.313 3.360 3.153 3.209 3.263 30 3.417 3.387 3.503 3.484 3.627 3.645 3.511 _3.3. Acquisition of milling workpiece images and making of the data set_ _3.3.1. Acquisition of milling workpiece images_ The milling workpiece image capturing device is shown in Fig. 7a, consisting of a Basler color CCD camera equipped with a VS-2514H1industrial lens, two OPT-LI14030white strip light sources, an OPT-DPA1024E-4 digital current controller, a TES-1332A digital illuminance meter and an experimental stand. To obtain more details of the milling surface roughness, the milling workpiece was placed flat on the measurement platform, the camera optical axis was perpendicular to the measured surface, and the white strip light source was fixed on the experimental stand at a suitable angle. The relative positions of the CCD camera and light source were maintained 491 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ throughout the experiment, the ambient luminance was adjusted using a digital current controller, and the ambient illuminance was measured using the illuminance meter with a value of 757 LUX. Fig. 7. a) Diagram of the experimental setup, b) milling workpiece image. In addition, to increase the diversity of the data, the position of the workpiece was adjusted appropriately as needed during the shooting process. Fig. 7b shows a portion of the acquired images, each with a size of 4096 × 2168 pixels. As can be seen in Fig. 7b, the image quality of the workpiece was not only affected by the lighting conditions but also related to the surface morphology of the workpiece, showing the uneven distribution of light and dark and reflective phenomena. These factors make the construction of the roughness measurement model harder. _3.3.2. Dataset making_ The 30 milling workpieces in Table 2 were divided into 5 roughness grades, with 6 workpieces in each grade. 4 workpieces in each grade were taken as training workpieces and the remaining 2 workpieces were testing workpieces. In addition, in the same milling workpiece image, although the workpiece surface is all of the same roughness value, there are subtle differences in various parts of the surface, so the image can be cut into several pieces for separate processing. This approach can increase the number of workpiece images to improve the performance of the model. Therefore, the area where the milling workpiece was located in each original image divided into six areas of 450 × 466 pixels in size without overlapping each other (Fig. 8). Then the original images were cropped according to the divided area to obtain a train set containing 720 images of 492 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) milling workpieces and a test set containing 360 images of milling workpieces. This means that in the original dataset, the ratio of the train set to the test set is 4:2. a) b) c) Fig. 8. (a) The original. (b) The area where the milling workpiece is located. (c) The final cut. One test milling workpiece image was selected from the test set according to each of the five roughness levels (Fig. 9). From Fig. 9, it can be found that the milling surface topography had more obvious changes as the roughness increased, especially the texture features, consistent with the analysis of the milling surface morphology in Section 2.1, improving the feasibility of the experiment. a) R1, Ra = 1.106 b) R2, Ra = 1.508 c) R3, Ra = 2.041 d) R4, Ra = 2.771 e) R5, Ra = 3.224 Fig. 9. Milling sample images for each roughness grade. Finally, the milling workpiece images in the train set were data-enhanced according to the method described in Section 2.3, and the sample classification and number statistics after data enhancement are shown in Table 3. It should be noted that the milling workpiece images in the test set were not data-enhanced to be closer to the actual inspection environment of milling workpieces. Table 3. Sample classification and number statistics before and after data enhancement. R1 Roughness (µm) [1–1.4] R2 [1.4–1.9] R3 [1.9–2.5] R4 [2.5–3.1] R5 Total [3.1–3.7] Train set Before data 144 144 144 144 144 720 enhancement After data 1440 1440 1440 1440 1440 7200 enhancement Test set 72 72 72 72 72 360 493 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ _3.4. Comparison experiments_ _3.4.1. BLS model_ Similar to the deep learning model, the parameter search of the BLS model also includes internal and external optimizations. During the training process, internal optimization refers to adjusting the weights of each layer of the network. The external optimization search mainly includes the number of feature nodes _?_ 1 within each window of the mapping layer, number of mapping layer windows _?_ 2, number of enhancement nodes _?_ 3, regularization parameter _?_ and shrinkage parameter _?_ . Among others, in the literature, [18], we find that the classification performance of the BLS depended greatly on _?_ 1, _?_ 2 and _?_ 3. Therefore, in order to construct a roughness measurement model with better performance, an orthogonal experiment [19] was used to analyze the effects of _?_ 1, _?_ 2, and _?_ 3 on the model performance. The experimental results are shown in Fig. 10. Fig. 10. 3D response surface diagram and perturbation diagram, ACC (accuracy). From Figs. 10a and 10b, it can be seen that the change in accuracy was smaller when _?_ 1 was changed. When _?_ 2 and _?_ 3 were gradually increased, the accuracy showed a trend of increasing and then decreasing. This demonstrated that increasing the number of feature nodes and enhancement nodes appropriately could significantly strengthen the sample features. It improved the ability to discern between distinct categories. However, an excess of feature nodes and augmentation nodes would bring attributes that partially overlap with the initial semantic attribute space, resulting in generation of redundant information. This redundancy had significant interference with the classifier, which eventually led to the degradation of classification accuracy. 494 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) As shown in Fig. 10c, there were circular intervals in the contour plot, which indicated that the highest accuracy existed in the interval { _?_ 2 [35 _,_ 37] _,_ _?_ 3 [7900 _,_ 8500]}. In addition, it can also be seen from Fig. 10d that the curves bend from large to small as _?>_ _?>_ _?_, which indicated that the degree of influence of each parameter on the accuracy was ranked from large to small as _?_ 3 _>_ _?_ 2 _>_ _?_ 1. It is worth noting that the BLS enables dynamic updating of the system, updating the weights of the system instantly for newly added nodes, which greatly reduces the time of parameter search [16]. The model is simple, fast and easy to update compared to classical deep learning models. In combination with the orthogonal experimental analysis, the external parameters of the model were determined through a series of pre-experiments (Table 4) where _?_ 1 = 8, _?_ 2 = 36, _?_ 3 = 8200, _?_ = 2 <sup>−30</sup>, _?_ = 0 _._ 8. Finally, the data set of Table 3 was fed into the BLS model for training. Table 4. Parameter setting of the BLS. _?_ _S_ _N_ 1 _N_ 2 _N_ 3 2 <sup>−30</sup> 0.8 8 36 8200 _3.4.2. Comparison model_ To better evaluate the prediction performance of the BLS model, the following comparison experiments designed are presented in this paper. 1. The basic idea of a _support_ _vector_ _machine_ (SVM) is to map data to a high-dimensional feature space through a nonlinear mapping and then perform feature classification in this high-dimensional space [20]. In the literature, [6], the surface topography images of a deep hole were analyzed with the _gray-level_ _co-occurrence_ _matrix_ (GLCM) method, and several features of image, which were nearly monotonic with the surface roughness, were extracted to fabricate a prediction model of the roughness of the deep-hole surface accurately. Moreover, the SVM model was presented to describe the relationship of GLCM features and the actual surface roughness. In the literature, [7], the five spectrum index measures of surface roughness were extracted in the spatial frequency domain using a two-dimensional Fourier transform. Two artificial neural networks which took roughness features as the input were developed to determine the surface roughness. Based on the study above, an SVM model based on five spectrum indices (FR-SVM) was proposed as the comparison model. The model parameters are shown in Table 5. Table 5. Parameter Setting of FR-SVM. Coding Learner weights Kernel function Prior One-vs-one 0.4 linear 0.2 2. The Residual Network (Resnet) proposed by He _et_ _al._ [21] has an important position in the field of deep learning. It can build a deeper network layer by introducing the residual network structure and the final classification results are excellent. Many subsequent methods were built on the basis of Resnet50 or Resnet101. To better evaluate the advantages and disadvantages of broad learning and deep learning, Resnet50v2 [22], a classical image classification algorithm for deep learning, was selected as the comparison model in this paper. The model parameters are shown in Table 6. Both of the two comparison models above were subjected to a series of pre-experiments. 495 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ Table 6. Parameter Setting of Resnet50v2. Batch Epoch Optimizers Learning rate 32 100 Adam 0.0001 _3.4.3. Model evaluation standards_ Three common evaluation standards were selected to validate the model performance of the model, including confusion matrix, accuracy, ROC curve and AUC value [23, 24]. The model performance of each evaluation standard response is shown in Table 7. Table 7. Evaluation standards. The confusion matrix represents a standard format for accuracy evaluation and is Confusion Matrix used to observe the performance of the model on each category. Accuracy The accuracy indicates the proportion of all samples correctly predicted. The ROC curve responds to the generalization ability of the model, and the AUC ROC curves and AUC values responds to the classification model’s ability to rank the samples. _3.5. Analysis and discussion of experimental results_ _3.5.1. Experimental results_ To reasonably evaluate the ability of the model to measure the surface roughness of milling workpieces, the experiments were conducted using the test set in Table 3 for the trained FR-SVM, Resnet50v2 and BLS, and the results are shown in Table 8. Table 8. Experimental results of each model. Model Accuracy (%) Training Time FR-SVM 55.6 89s Resnet50v2 99.2 34m57s BLS 99.4 169s BLS ≈ Resnet50v2 _>_ FR-SVM Resnet50v2 _>_ BLS _>_ FR-SVM From Table 8, it can be seen that: (1) The classification effect of FR-SVM was much lower than that of Resnet50v2 and BLS, with an accuracy of only 55.6%. In creating the indices, the strategy may have lost a lot of image information, resulting in the model’s low classification performance. In addition, while FR-SVM required less time to train than the other two models (89s), the process of designing indices was time-consuming and computationally challenging, thus limiting the method’s usefulness. (2) Secondly, although Resnet50v2 had a high accuracy rate of 99.2% and was able to extract automatically, the model training was extremely time-consuming. The whole training process took a total of 34 minutes and 57 seconds (34m57s), 12.4 times longer than that of BLS. (3) Compared with the previous two models, the BLS exhibited excellent performance in milling surface roughness classification detection with fast and high accuracy: the accuracy was as high as 99.4%, 43.8% higher than FR-SVM and similar to Resnet50v2; the model training time was 169s, only 8% of Resnet50v2. The result proved that the BLS model not only can extract features by itself, but also has excellent performance in terms of accuracy and training time. 496 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) _3.5.2. Model performance evaluation_ 1. To visualize the recognition ability of BLS, FR-SVM and Resnet50v2 at each roughness grade, the prediction results were visualized by a confusion matrix, as shown in Fig. 11. Each value on the main diagonal represents the number of correctly classified samples, and a darker color indicates a larger number. Fig. 11. Confusion matrix for each model. From Fig. 11, it was found that FR-SVM achieved higher classification accuracy for R1, and the rest of the categories were much lower than R1. When predicted using Resnet50v2, the best classification results were achieved for R3, R4, and R5, and the other two categories showed little difference from the best results. Similarly, BLS realized the best classification results for R3 and R4 and achieved suboptimal classification in the other categories. The analysis above showed that the accuracy of both BLS and Resnet50v2 reached a high level without a great difference, while the difference was larger between FR-SVM and the first two. 2. Since the analysis results above only reflect the classification accuracy of each model, the ROC curve and AUC were utilized to evaluate the generalization ability of the model and the ranking ability of the samples. The results are shown in Fig. 12. From Fig. 12, it is observed that all the ROC curves of Resnet50v2 were close to the upper left corner of the figure with an average AUC of 1. It was shown that Resnet50v2 had an excellent generalization ability and a strong ranking ability for milling samples. Although BLS’s ROC1 and ROC2 curves strayed somewhat from the upper left corner, the ROC curves and AUCs for the remaining three categories were comparable to those of Resnet50v2, with the average AUC 497 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ Fig. 12. ROC curves and AUC values for each model. reaching 0.99. It indicated that BLS also had satisfactory generalization ability and sample sorting ability. Compared with the first two, FR-SVM had the weakest generalization ability and sample sorting ability, especially the ROC3 curve had a more obvious deviation. Therefore, Resnet50v2 exhibited the best generalization ability and sample sorting ability, followed by BLS and, finally, FR-SVM. The BLS, Resnet50v2 and FR-SVM are summarized in terms of prediction accuracy, model training speed, generalization ability and sample sorting ability. 1. In terms of prediction accuracy, BLS and Resnet50v2 were close to each other, both reaching 99%. At the same time, FR-SVM was far inferior to them, with only 55.6%. 2. In terms of training speed, FR-SVM greatly outperformed BLS and Resnet50v2. The training time of FR-SVM was only 89 s, while that of BLS and Resnet50v2 was 169 s and 34 m 57 s, respectively. 3. In terms of generalization ability and sample sorting ability, Resnet50v2 performed the best, followed by BLS, and FR-SVM performed the worst. Table 9 shows the performance comparison of each model. Table 9. Performance comparison of each model. Accuracy Training Speed BLS ≈ Resnet50v2 _>_ FR-SVM FR-SVM _>_ BLS _>_ Resnet50v2 Generalization ability Sample sorting ability Resnet50v2 _>_ BLS _>_ FR-SVM Resnet50v2 _>_ BLS _>_ FR-SVM 498 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) _3.5.3. Discussion of different machine learning methods_ As shown in Fig. 13, different machine learning methods were analyzed in terms of feature processing, data dependency, model training speed, and generalization ability based on the roughness measurement task. Fig. 13. Different machine learning methods and their characteristics. A summary information for the machine methods analyzed is presented below: 1. Feature processing. In most of the traditional machine learning based roughness measurement methods, image features need to be designed as indices, and the features can be pixel values, shapes, textures, _etc_ . The performance of this approach is contingent upon the accuracy of the retrieved features. By contrast, deep and broad learning attempt to extract high-level information directly from the image of the milling workpiece. On this basis, deep learning and broad learning significantly reduce the effort required to construct feature extractors for roughness measurement problems. 2. Data dependency. The performance of deep learning and broad learning depends on a large amount of data. For example, the desirable roughness prediction model cannot be trained with too few milling data because both types of models require a large amount of data to learn to recognize milling workpieces. On the other hand, traditional machine learning algorithms using human-designed indices may perform better when the amount of data is small. 3. Model training speed. Deep learning algorithms have many parameters, so it takes a long time to train the algorithm. In comparison, the broad learning’s network structure is fairly simple due to the absence of multiple layers of connections, and training speed is significantly increased. Additionally, classical machine learning has a faster training speed due to the feature engineering stage. 4. Generalization ability. The deep learning network can extract more abstract features from the milling training data, which makes its generalization ability extremely good. Broad learning can learn important features from the milling training data and achieve a high fit to the data. However, the features learned by the broad learning network are simpler, which makes it not as good at generalization as the deep learning network. Compared to them, traditional machine learning methods use feature indices that are designed by the researcher for a particular scenario. When the conditions change, the prediction becomes worse, resulting in the worst generalization performance. 499 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ 4. Conclusions The existing index design-based and deep learning-based roughness measurement methods experience problems such as difficult index design, large human influence factors and slow model training speed. In this paper, based on the broad learning system and combined with image data enhancement algorithms, a visual measurement method for surface roughness of milling workpieces was proposed based on the broad learning system. The method could significantly accelerate the model training speed and automatically extract the image features related to the roughness of the milling workpiece surface. For the milling workpiece roughness measurement, its recognition accuracy achieved 99.4%, and the training time was only 169s. In comparison with other roughness measurement models, the BLS model was able to maintain a high recognition accuracy with a very short training time. It proved that the model proposed in this paper has the potential to be a fast real-time roughness measurement system, and provided a technical support for the rapid inspection of online vision under common light source in industrial production. In the future, we will consider the effects of different lighting conditions as well as shooting angles on the model performance based on this method. This helps to improve the robustness of the model to lighting changes and shooting angle changes, and increases the feasibility of deploying the model in real variable lighting environments. Acknowledgements This work was supported in part by the National Natural Science Foundation of China (Grant No. 52065016), the Guangxi Graduate Student Innovation Project in 2021 (Grant No. YCSW2021204), and Doctoral Start-Up Foundation of Guilin University of Technology (Grant No. GLUTQD2017060). Appendix I. Nomenclature Abbreviations Definition BLS Broad learning system Resnet Residual Network SVM support vector machine GLCM gray-level co-occurrence matrix RVFLNN random vector functional-link neural network ROC Receiver Operating Characteristic curve AUC Area under the Curve Symbol Definition _?_ input data _?_ input layer _?_ output layer _??_ feature node _?_ <sup>_?_</sup> feature node group _?_ _?_ enhancement node _?_ <sup>_?_</sup> enhancement node group _?_ connection weight between the input layer _?_ and the output layer _?_ _?_ _??_ random weight matrix _??_ mapping function _?_ _??_ random bias matrix _?_ 1 number of feature nodes within each window of the mapping layer 500 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) _?_ 2 number of mapping layer windows _?_ 3 number of enhancement nodes _?_ number of enhancement nodes _?_ shrinkage parameter _Ra_ roughness parameters Parameter Name Setting _?_ 1 8 _?_ 2 36 _?_ 3 8200 _?_ 2 <sup>−30</sup> _?_ 0.8 Coding One-vs-one Learner Weights 0.4 Kernel Function linear Prior 0.2 Batch 32 Epoch 100 Optimizers Adam Learning rate 0.0001 References [1] He, B., Ding, S., & Shi, Z. (2021). A comparison between profile and areal surface roughness parameters. _Metrology_ _and_ _Measurement_ _Systems_, _28_ (3), 413–438. <u>[https://doi.org/10.24425/mms.](https://doi.org/10.24425/mms.2021.137133)</u> <u>[2021.137133](https://doi.org/10.24425/mms.2021.137133)</u> [2] He, B., Zheng, H., Ding, S., Yang, R., & Shi, Z. (2021). A review of digital filtering in evaluation of surface roughness. _Metrology_ _and_ _Measurement_ _Systems_, _28_ (2). <u>[https://doi.org/10.24425/mms.](https://doi.org/10.24425/mms.2021.136606)</u> <u>[2021.136606](https://doi.org/10.24425/mms.2021.136606)</u> [3] Mathia, T. G., Pawlus, P., & Wieczorowski, M. (2011). Recent trends in surface metrology. _Wear_, _271_ [(3-4), 494–508. https://doi.org/10.1016/j.wear.2010.06.001](https://doi.org/10.1016/j.wear.2010.06.001) [4] Yilbas, Z., & Hasmi, M. S. J. (1999). Surface roughness measurement using an optical system. _Journal_ _of Materials Processing Technology_, _88_ [(1–3), 10–22. https://doi.org/10.1016/S0924-0136(98)00356-2](https://doi.org/10.1016/S0924-0136%0x2898%0x2900356-2) [5] Chang, H. K., Kim, J. H., Kim, I. H., Jang, D. Y., & Han, D. C. (2007). In-process surface roughness prediction using displacement signals from spindle motion. _International_ _Journal_ _of_ _Machine_ _Tools_ _and Manufacture_, _47_ [(6), 1021–1026. https://doi.org/10.1016/j.ijmachtools.2006.07.004](https://doi.org/10.1016/j.ijmachtools.2006.07.004) [6] Liu, W., Tu, X., Jia, Z., Wang, W., Ma, X., & Bi, X. (2013). An improved surface roughness measure ment 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_, _69_ (1), 583–593. <u>[https://doi.org/10.1007/s00170-013-5048-0](https://doi.org/10.1007/s00170-013-5048-0)</u> [7] Tsai, D. M., Chen, J. J., & Chen, J. F. (1998). A vision system for surface roughness assessment using neural networks. _The International Journal of Advanced Manufacturing Technology_, _14_ (6), 412–422. <u>[https://doi.org/10.1007/BF01304620](https://doi.org/10.1007/BF01304620)</u> [8] Huaian, Y. I., Jian, L. I. U., Enhui, L. U., & Peng, A. O. (2016). Measuring grinding surface roughness based on the sharpness evaluation of colour images. _Measurement_ _Science_ _and_ _Technology_, _27_ (2), [025404. https://doi.org/10.1088/0957-0233/27/2/025404](https://doi.org/10.1088/0957-0233/27/2/025404) 501 _R. Fang et al.:_ _CLASSIFICATION AND INSPECTION OF MILLING SURFACE ROUGHNESS BASED ON A BROAD LEARNING . . ._ [9] Yi, H., Liu, J., Ao, P., Lu, E., & Zhang, H. (2016). Visual method for measuring the roughness of [a grinding piece based on color indices. Optics express, 24(15), 17215–17233. https://doi.org/10.1364/](https://doi.org/10.1364/OE.24.017215) <u>[OE.24.017215](https://doi.org/10.1364/OE.24.017215)</u> [10] Huaian, Y., Xinjia, Z., Le, T., Yonglun, C., & Jie, Y. (2020). Measuring grinding surface roughness based on singular value entropy of quaternion. _Measurement Science and Technology_, _31_ (11), 115006. <u>[https://doi.org/10.1088/1361-6501/ab9aa9](https://doi.org/10.1088/1361-6501/ab9aa9)</u> [11] Chen, Y., Yi, H., Liao, C., Huang, P., & Chen, Q. (2021). Visual measurement of milling surface roughness based on Xception model with convolutional neural network. _Measurement_, _186_, 110217. <u>[https://doi.org/10.1016/j.measurement.2021.110217](https://doi.org/10.1016/j.measurement.2021.110217)</u> [12] Rifai, A. P., Aoyama, H., Tho, N. H., Dawal, S. Z. M., & Masruroh, N. A. (2020). Evaluation of turned and milled surfaces roughness using convolutional neural network. _Measurement_, _161_, 107860. <u>[https://doi.org/10.1016/j.measurement.2020.107860](https://doi.org/10.1016/j.measurement.2020.107860)</u> [13] He, Y., Zhang, W., Li, Y. F., Wang, Y. L., Wang, Y., & Wang, S. L. (2021). An approach for surface roughness measurement of helical gears based on image segmentation of region of interest. _Measure-_ _ment_, _183_, 109905. <u>[https://doi.org/10.1016/j.measurement.2021.109905](https://doi.org/10.1016/j.measurement.2021.109905)</u> [14] Pao, Y. H., Park, G. H., & Sobajic, D. J. (1994). Learning and generalization characteristics of the random vector functional-link net. _Neurocomputing_, _6_ [(2), 163–180. https://doi.org/10.1016/0925-2312](https://doi.org/10.1016/0925-2312%0x2894%0x2990053-1) <u>[(94)90053-1](https://doi.org/10.1016/0925-2312%0x2894%0x2990053-1)</u> [15] Twardowski, P., Wojciechowski, S., Wieczorowski, M., & Mathia, T. (2011). Surface roughness analysis of hardened steel after high-speed milling. _Scanning_, _33_ (5), 386–395. <u>[https://doi.org/](https://doi.org/10.1002/sca.20274)</u> <u>[10.1002/sca.20274](https://doi.org/10.1002/sca.20274)</u> [16] Chen, C. P., & Liu, Z. (2017). Broad learning system: An effective and efficient incremental learning system without the need for deep architecture. _IEEE Transactions on Neural Networks and Learning_ _Systems_, _29_ [(1), 10–24. https://doi.org/10.1109/TNNLS.2017.2716952](https://doi.org/10.1109/TNNLS.2017.2716952) [17] McDonald, G. C. (2010). Tracing ridge regression coefficients. _Wiley Interdisciplinary Reviews_ : _Com-_ _putational Statistics_, _2_ (6), 695–703. <u>[https://doi.org/10.1002/wics.126](https://doi.org/10.1002/wics.126)</u> [18] Lei, M., Rao, Z., Li, M., Yu, X., & Zou, L. (2019). Identification of coal geographical origin using near infrared sensor based on broad learning. _Applied_ _Sciences_, _9_ (6), 1111. <u>[https://doi.org/10.3390/](https://doi.org/10.3390/app9061111)</u> <u>[app9061111](https://doi.org/10.3390/app9061111)</u> [19] Jiaqiang, E., Han, D., Qiu, A., Zhu, H., Deng, Y., Chen, J., Zhao, X., Zuo, W., Wang, H., Chen, J., & Peng, Q. (2018). Orthogonal experimental design of liquid-cooling structure on the cooling effect of a liquid-cooled battery thermal management system. _Applied Thermal Engineering_, _132_, 508–520. <u>[https://doi.org/10.1016/j.applthermaleng.2017.12.115](https://doi.org/10.1016/j.applthermaleng.2017.12.115)</u> [20] Aburomman, A. A., & Reaz, M. B. I. (2017). A novel weighted support vector machines multiclass classifier based on differential evolution for intrusion detection systems. _Information_ _Sciences_, _414_, 225–246. <u>[https://doi.org/10.1016/j.ins.2017.06.007](https://doi.org/10.1016/j.ins.2017.06.007)</u> [21] He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 770–778). <u>[https://doi.org/10.1109/CVPR.2016.90](https://doi.org/10.1109/CVPR.2016.90)</u> [22] Karar, M. E., Hemdan, E. E. D., & Shouman, M. A. (2021). Cascaded deep learning classifiers for computer-aided diagnosis of COVID-19 and pneumonia diseases in X-ray scans. _Complex & Intelligent_ _Systems_, _7_ (1), 235–247. <u>[https://doi.org/10.1007/s40747-020-00199-4](https://doi.org/10.1007/s40747-020-00199-4)</u> 502 _Metrol._ _Meas._ _Syst.,_ Vol. 29 (2022), No. 3, pp. 483–503 [DOI: 10.24425/mms.2022.142268](https://doi.org/10.24425/mms.2022.142268) [23] Zeng, G. (2020). On the confusion matrix in credit scoring and its analytical properties. _Commu-_ _nications_ _in_ _Statistics_ _–_ _Theory_ _and_ _Methods_, _49_ (9), 2080–2093. <u>[https://doi.org/10.1080/03610926.](https://doi.org/10.1080/03610926.2019.1568485)</u> <u>[2019.1568485](https://doi.org/10.1080/03610926.2019.1568485)</u> [24] Carrington, A. M., Fieguth, P. W., Qazi, H., Holzinger, A., Chen, H. H., Mayr, F., & Manuel, D. G. (2020). A new concordant partial AUC and partial c statistic for imbalanced data in the evaluation of machine learning algorithms. _BMC_ _Medical_ _Informatics_ _And_ _Decision_ _Making_, _20_ (1), 1–12. <u>[https://doi.org/10.1186/s12911-019-1014-6](https://doi.org/10.1186/s12911-019-1014-6)</u> Runji Fang received his B.S. degree from Guilin University of Technology in 2020. At present, he is a current graduate student of Guilin University of Technology. His main research interest is machine vision. Shuai Wang is an undergraduate student at Guilin University of Technology. His main research interest is machine vision. Huaian Yi received his B.S. degree from Xiangtan University in 1997, his M.S. degree from Kunming University of Science and Technology in 2008, and his Ph.D. degree from Hunan University in 2017. At present, he is an associate professor at Guilin University of Technology. His main research interest is machine vision. Yilun Niu is a undergraduate student at Guilin University of Technology. His main research interest is machine vision. 503

섹션 본문 66문단 · 32,861자

(제목 없음)

1Current vision-based roughness measurement methods are classified into two main types: index design and deep learning.Among them, the computation procedure for constructing a roughness correlation index based on image data is relatively difficult, and the imaging environment criteria are stringent and not universally applicable.The roughness measurement method based on deep learning takes a long time to train the model, which is not conducive to achieving rapid online roughness measurement.To tackle with the problems mentioned above, a visual measurement method for surface roughness of milling workpieces based on broad learning system was proposed in this paper.The process began by capturing photos of the milling workpiece using a CCD camera in a normal lighting setting.Then, the train set was augmented with additional data to lower the quantity of data required by the model.Finally, the broad learning system was utilized to achieve the classification prediction of roughness.The experimental results showed that the roughness measurement method in this paper not only had a training speed incomparable to deep learning models, but also could automatically extract features and exhibited high recognition accuracy.

Introduction

2Any machined surface has the unevenness of tiny peaks and valleys, and the unevenness is generally expressed in terms of surface roughness parameters.The size of the surface roughness has a great influence on the corrosion resistance, fatigue resistance and service life of the part [1,2].Therefore, it is important to measure the surface roughness of parts accurately and quickly.The most frequently used roughness measuring techniques are classified as contact and non-contact measurements [3].However, the contact measurement method has the disadvantage of the small detection range, low measurement efficiency and potential for scratching the workpiece.In contrast, non-contact measurement, which has the advantages of high flexibility, fast measurement speed, and support for in-line measurement, is increasingly being relied upon in precision manufacturing.Non-contact measurement methods mainly include optical measurement, electronic measurement and machine vision measurement.However, optical and electronic measurements have the shortcomings of expensive equipment, low efficiency, and vulnerability to environmental influences [4,5].Machine vision measurement is a method based on the optical imaging principle.Its measurement process is not only easy to automate and efficient but also supports online measurement.Therefore, it is significant to study efficient and low-cost machine vision roughness measurement methods.For extracting features using image gray value information, Liu et al. [6] constructed a GLCM-SVM model for measuring the surface roughness of deep holes using the GLCM family of indices as the input to a support vector machine.Tsai et al. [7] proposed five spectrum indices to characterize roughness and input them into a neural network to predict milling surface roughness.In terms of extracting features using image color information, Yi et al. [8,9] proposed an algorithm for evaluating the sharpness of color images and an average color difference algorithm, and constructed a relationship model between such indices and roughness.To evaluate the roughness of grinding surfaces, Zhao et al. [10] proposed a detection method based on the singular value entropy of color images.Although the above-mentioned index-based roughness prediction methods are effective, there are common limitations such as difficulty in index design, significant human influence factors, and demanding image acquisition environment.Because of these drawbacks, such measurement methods cannot be directly applied to complex and changing industrial applications.As a result, the visual roughness measuring approach with high measurement accuracy and the ability to extract features automatically has become a hot research topic.

3In recent years, deep convolutional neural networks have become increasingly capable of expressing image features.Deep learning models are gradually being introduced into the field of roughness measurement due to their ability to automatically extract image features.Chen et al. [11] used a deep convolutional neural network to achieve index-free roughness detection.Rifai et al. [12] proposed a method to evaluate surface roughness directly from surface texture images using convolutional neural networks.Yan et al. [13] proposed a roughness measurement method based on image segmentation for helical gear surfaces, and the extracted effective image regions were fed into a convolutional neural network to evaluate their roughness.Although the abovementioned roughness measurement methods based on deep convolutional neural networks realized automatic feature extraction and guaranteed good accuracy, they also have shortcomings.Due to a large number of connection parameters in the filters and layers of deep convolutional neural networks, their training process is extremely time-consuming and not suitable for fast-judging roughness online measurement.The random vector functional-link neural network (RVFLNN) proposed by Pao et al. [14] effectively eliminated the drawback of the long training time, and has been used to solve problems in different domains.However, the RVFLNN cannot handle largescale data well, so it is not suitable for direct use in the field of visual roughness measurement.The broad learning system (BLS) combines the advantages of a deep convolutional neural network and the RVFLNN, which can solve the above problems effectively.The BLS uses the RVFLNN design concept to replace the deep network structure with a flat network shape, which minimizes the number of parameters that need to be optimized and significantly reduces the time it takes to train the model.

4Aiming at overcoming the drawbacks of index design-based and deep learning network-based roughness measurement methods such as difficult index design, considerable human influence factors and slow model training speed, a visual measurement method for surface roughness of milling workpiece based on the BLS was proposed in this paper.Milling workpiece images built in the BLS were captured by an industrial camera under normal light sources and combined with data enhancement techniques to reduce the model's data volume requirements.Then a broad learning network was used to automatically extract features and rapidly train the model.Finally, a surface roughness measurement model applicable to milling workpieces was obtained, and a fast end-to-end measurement was realized.

Analysis of milling surface morphology

5Due to the consistency of the tool edge in milling processing, the arrangement of the tiny peaks and valleys on the processing surface is regular, which is mainly caused by the regular vibration of the machine tool [15].Likewise, the feed motion of the tool creates a clear texture on the surface of the workpiece.In this paper, the milling specimens with Ra 0.236 μm and Ra 1.477 μm were magnified 500 times by using a VHX1000 ultra-deep field 3D microscope to obtain the surface texture maps of the two specimens, respectively.Then a JB-4C stylus roughness tester was used to make a single measurement on the milling workpiece surface to get the up and down fluctuation map of the stylus.Finally, the Zygo NewView™7100 white light interferometer was used to scan the machined surface to get a 3D morphology map.Various graphs of the two milling specimens are shown in Fig. 1.From Fig. 1a, it can be seen that the difference between the microscopic morphology of the milling surface with different roughness was not significant under human eye observation when the milling surface roughness was Ra 0.236 μm and Ra 1.477 μm, respectively.During the linear measurement of roughness with the stylus (Fig. 1b), however, there was a distinct disparity between the peak value and the fluctuation frequency, despite the stylus fluctuating up and down fairly consistently.Two cases are considered here.(1) When the roughness was small, the peak was smaller and the crest was larger.(2) When the roughness was larger, the peak was larger and the crest was smaller.

6Their surface 3D morphology is shown in Fig. 1c, the joint marks representing the profile peak height are indicated by red lines, and the cutting surface representing the profile flatness is indicated by yellow-green lines.The difference between the two was very large, as shown in Fig. 1c, despite the fact that the height distribution of the milling surface profile was very regular.Again, two cases are under consideration.(1) When the roughness was equal to Ra 0.236 μm, the height distribution was relatively uniform and the surface was relatively flat.(2) When the roughness was equal to Ra 1.477 μm, the joint tool marks were spaced like a high wall separating the cutting surface and the flatness was poor.Generally speaking, the milling surface topography also showed a certain regular change with the change of roughness.

7The theoretical basis of machine vision inspection is the principle of light reflection on the surface of a workpiece.The incident light from the light source is reflected by the workpiece surface and then received by the vision sensor to form an image of the workpiece surface.The image quality is determined by the light reflection properties of the workpiece surface which, in turn, depend on the microscopic surface topography.Microscopic morphology is generally characterized by surface roughness parameters.Therefore, the correlation between milling surface topography and roughness provides a theoretical basis for machine vision applied to milling workpiece roughness measurement.

Broad learning system principle

8To improve the model training speed, Chen et al. [16] proposed the BLS based on the RVFLNN whose basic structure is shown in Fig. 2. In Fig. 2, is the input data, is the feature node, is the enhancement node, and is the connection weight between the input layer and the output layer .The specific design ideas are as follows.Firstly, the input data is feature-mapped to obtain random features , = 1, 2, . . ., , where is the number of mapped features, as shown in (1).

9where is the mapping function, is the random weight matrix, is the random bias matrix, and is the set of feature nodes obtained by merging groups of feature nodes 1 , 2 , . . ., .

10Then is enhanced with features to obtain the enhanced node , as shown in (2).

11where is the enhancement function, ℎ is the random weight matrix, ℎ is the random bias matrix, and is the set of enhancement nodes obtained by merging sets of enhancement nodes 1 , 2 , . . ., .Finally, the algorithm of the BLS is represented as follows.

12where [ | ] are the total nodes, is the connection weight matrix between the input layer and the output layer

13can be represented as = .The BLS can be reduced to the following minimization problem based on the generalized inverse calculation of the ridge regression approximation [17].

14where is the regularization factor which prevents overfitting of the function and thus enhances the generalization ability.If the fitting ability of the initial developed model is insufficient, the nonlinear fitting ability is boosted by adding feature nodes or enhancement nodes.Since the update of the weight matrix +1 uses before the update, it effectively reduces the computational effort of updating the weights and the update is faster.The advantage of broad learning is significant compared to the iterative training of deep learning.

Data enhancement of milling workpiece surface images

15In general, a train set is used to estimate the parameters in the model, which is able to reflect the reality and thus predict the future or other unknown information.And the test set is used to evaluate the predictive performance of the model.Similar to deep neural networks, the BLS also requires a large amount of training data to obtain the desired results.When less milling data is available, the data augmentation algorithm can be utilized to augment the train data set.A data augmentation algorithm can increase the number and diversity of samples, reduce the strong dependence of the model on certain specific attributes to improve the robustness of the model, and enhance the generalization ability of the model.The analysis of the milling surface morphology and the milling workpiece image (Fig. 3) showed that the surface texture characteristics of the milling workpiece mainly exhibited periodic repetition and texture direction consistency.According to the texture characteristics of the milling surface, the image data enhancement methods used were mainly classified into contrast adjustment, hue adjustment, saturation adjustment, brightness adjustment, and rotation adjustment, etc.It should be noted that the milling workpiece images of the test set do not use data enhancement in order to be consistent with the actual inspection environment.Some of the effects are shown in Fig. 3. 1. Contrast is the ratio of black to white of the image.When the ratio is larger, the richer is the color expression (5).

16where (, ) = | − | is the gray level difference between adjacent pixels, and (, ) is the probability of pixel distribution where the gray level difference between adjacent pixels is .

172. Hue is determined by which wavelength dominates in the light reflected from an object.Different wavelengths produce different color vision, which determines the fundamental characteristics of color nature., , and are red pixel value, green pixel value, and blue pixel value, respectively ( 6) and (7).max = max(, , ), min = min(, , )

183. Saturation refers to the degree of vividness of the color, also known as the purity of the color (8).

BLS roughness measurement model

19The BLS roughness measurement model integrates feature extraction, feature transformation and feature classification, omitting the step of the human-designed index.It also greatly reduces the time to train the model and realizes the fast measurement of surface roughness of the end-toend milling workpiece.

Experiment

20The experimental procedure of this paper, as shown in Fig. 5, is divided into five parts i.e., preparation of experimental specimens, Roughness measurement, Acquisition of milling workpiece images and making of data set, Comparison experiments, Analysis and discussion of experimental results.

Preparation of experimental specimens

21The milling specimens for this experiment were machined by an XHS7145 CNC machine tool (Fig. 6a), and a TAP400R100-32-6T milling tool was used (Fig. 6b), with a milling depth of 0.1 mm, feed rate of 200-1100 mm/min, rotational speed of 600 r/min, material 45# steel, size of 60 mm × 40 mm, and the number of specimens produced 30 (Table 1).

Roughness measurement

22The surface roughness of 30 milling workpieces was obtained by using a stylus roughness measuring instrument TR210 for six times uniformly distributed measurements, and the roughness assessment parameter was Ra.The average value of the six measurements was taken as the surface roughness of the workpiece, and the measurement results are shown in Table 2.

23Due to the inherent features of stylus roughness measurement and milling surface topography, the roughness measured with a stylus at various points changes within a specific range.Therefore, in the International Standards Organization (ISO, 1302) standard, the roughness classes commonly used in industrial production are 0.4, 0.8, 1.6, 3.2, 6.3 μm, etc., which means that the roughness classes are classified as [0, 0.4], [0.4,0.8], [0.8, 1.6], [1.6, 3.2], [3.2, 6.3].In this paper, the roughness was divided into five roughness classes according to intervals [1.0, 1.4], [1.4,1.9], [1.9, 2.5], [2.5, 3.1] and [3.1, 3.7], which were recorded as R1, R2, R3, R4 and R5, respectively, following the ISO standard and combined with the actual roughness value range in Table 2.

Acquisition of milling workpiece images

24The milling workpiece image capturing device is shown in Fig. 7a, consisting of a Basler color CCD camera equipped with a VS-2514H1industrial lens, two OPT-LI14030white strip light sources, an OPT-DPA1024E-4 digital current controller, a TES-1332A digital illuminance meter and an experimental stand.To obtain more details of the milling surface roughness, the milling workpiece was placed flat on the measurement platform, the camera optical axis was perpendicular to the measured surface, and the white strip light source was fixed on the experimental stand at a suitable angle.The relative positions of the CCD camera and light source were maintained throughout the experiment, the ambient luminance was adjusted using a digital current controller, and the ambient illuminance was measured using the illuminance meter with a value of 757 LUX.In addition, to increase the diversity of the data, the position of the workpiece was adjusted appropriately as needed during the shooting process.Fig. 7b shows a portion of the acquired images, each with a size of 4096 × 2168 pixels.As can be seen in Fig. 7b, the image quality of the workpiece was not only affected by the lighting conditions but also related to the surface morphology of the workpiece, showing the uneven distribution of light and dark and reflective phenomena.These factors make the construction of the roughness measurement model harder.

Dataset making

25The 30 milling workpieces in Table 2 were divided into 5 roughness grades, with 6 workpieces in each grade.4 workpieces in each grade were taken as training workpieces and the remaining 2 workpieces were testing workpieces.In addition, in the same milling workpiece image, although the workpiece surface is all of the same roughness value, there are subtle differences in various parts of the surface, so the image can be cut into several pieces for separate processing.This approach can increase the number of workpiece images to improve the performance of the model.Therefore, the area where the milling workpiece was located in each original image divided into six areas of 450 × 466 pixels in size without overlapping each other (Fig. 8).Then the original images were cropped according to the divided area to obtain a train set containing 720 images of milling workpieces and a test set containing 360 images of milling workpieces.This means that in the original dataset, the ratio of the train set to the test set is 4:2.One test milling workpiece image was selected from the test set according to each of the five roughness levels (Fig. 9).From Fig. 9, it can be found that the milling surface topography had more obvious changes as the roughness increased, especially the texture features, consistent with the analysis of the milling surface morphology in Section 2.1, improving the feasibility of the experiment.Finally, the milling workpiece images in the train set were data-enhanced according to the method described in Section 2.3, and the sample classification and number statistics after data enhancement are shown in Table 3.It should be noted that the milling workpiece images in the test set were not data-enhanced to be closer to the actual inspection environment of milling workpieces.

26Table 3. Sample classification and number statistics before and after data enhancement.

BLS model

27Similar to the deep learning model, the parameter search of the BLS model also includes internal and external optimizations.During the training process, internal optimization refers to adjusting the weights of each layer of the network.The external optimization search mainly includes the number of feature nodes 1 within each window of the mapping layer, number of mapping layer windows 2, number of enhancement nodes 3, regularization parameter and shrinkage parameter .Among others, in the literature, [18], we find that the classification performance of the BLS depended greatly on 1, 2 and 3.Therefore, in order to construct a roughness measurement model with better performance, an orthogonal experiment [19] was used to analyze the effects of 1, 2, and 3 on the model performance.The experimental results are shown in Fig. 10.From Figs. 10a and 10b, it can be seen that the change in accuracy was smaller when 1 was changed.When 2 and 3 were gradually increased, the accuracy showed a trend of increasing and then decreasing.This demonstrated that increasing the number of feature nodes and enhancement nodes appropriately could significantly strengthen the sample features.It improved the ability to discern between distinct categories.However, an excess of feature nodes and augmentation nodes would bring attributes that partially overlap with the initial semantic attribute space, resulting in generation of redundant information.This redundancy had significant interference with the classifier, which eventually led to the degradation of classification accuracy.

28As shown in Fig. 10c, there were circular intervals in the contour plot, which indicated that the highest accuracy existed in the interval {2 [35, 37], 3 [7900, 8500]}.In addition, it can also be seen from Fig. 10d that the curves bend from large to small as > > , which indicated that the degree of influence of each parameter on the accuracy was ranked from large to small as 3 > 2 > 1.

29It is worth noting that the BLS enables dynamic updating of the system, updating the weights of the system instantly for newly added nodes, which greatly reduces the time of parameter search [16].The model is simple, fast and easy to update compared to classical deep learning models.In combination with the orthogonal experimental analysis, the external parameters of the model were determined through a series of pre-experiments (Table 4) where 1 = 8, 2 = 36, 3 = 8200, = 2 −30 , = 0.8.Finally, the data set of Table 3 was fed into the BLS model for training.

Comparison model

30To better evaluate the prediction performance of the BLS model, the following comparison experiments designed are presented in this paper.1.The basic idea of a support vector machine (SVM) is to map data to a high-dimensional feature space through a nonlinear mapping and then perform feature classification in this high-dimensional space [20].In the literature, [6], the surface topography images of a deep hole were analyzed with the gray-level co-occurrence matrix (GLCM) method, and several features of image, which were nearly monotonic with the surface roughness, were extracted to fabricate a prediction model of the roughness of the deep-hole surface accurately.Moreover, the SVM model was presented to describe the relationship of GLCM features and the actual surface roughness.In the literature, [7], the five spectrum index measures of surface roughness were extracted in the spatial frequency domain using a two-dimensional Fourier transform.Two artificial neural networks which took roughness features as the input were developed to determine the surface roughness.Based on the study above, an SVM model based on five spectrum indices (FR-SVM) was proposed as the comparison model.The model parameters are shown in Table 5.

31Table 5. Parameter Setting of FR-SVM.

Coding Learner weights Kernel function Prior

32One-vs-one 0.4 linear 0.2 2. The Residual Network (Resnet) proposed by He et al. [21] has an important position in the field of deep learning.It can build a deeper network layer by introducing the residual network structure and the final classification results are excellent.Many subsequent methods were built on the basis of Resnet50 or Resnet101.To better evaluate the advantages and disadvantages of broad learning and deep learning, Resnet50v2 [22], a classical image classification algorithm for deep learning, was selected as the comparison model in this paper.The model parameters are shown in Table 6.Both of the two comparison models above were subjected to a series of pre-experiments.

Model evaluation standards

33Three common evaluation standards were selected to validate the model performance of the model, including confusion matrix, accuracy, ROC curve and AUC value [23,24].The model performance of each evaluation standard response is shown in Table 7.

34Table 7. Evaluation standards.

Confusion Matrix

35The confusion matrix represents a standard format for accuracy evaluation and is used to observe the performance of the model on each category.

Accuracy

36The accuracy indicates the proportion of all samples correctly predicted.

ROC curves and AUC values

37The ROC curve responds to the generalization ability of the model, and the AUC responds to the classification model's ability to rank the samples.

Experimental results

38To reasonably evaluate the ability of the model to measure the surface roughness of milling workpieces, the experiments were conducted using the test set in Table 3 for the trained FR-SVM, Resnet50v2 and BLS, and the results are shown in Table 8.

39From Table 8, it can be seen that: (1) The classification effect of FR-SVM was much lower than that of Resnet50v2 and BLS, with an accuracy of only 55.6%.In creating the indices, the strategy may have lost a lot of image information, resulting in the model's low classification performance.In addition, while FR-SVM required less time to train than the other two models (89s), the process of designing indices was time-consuming and computationally challenging, thus limiting the method's usefulness.(2) Secondly, although Resnet50v2 had a high accuracy rate of 99.2% and was able to extract automatically, the model training was extremely time-consuming.The whole training process took a total of 34 minutes and 57 seconds (34m57s), 12.4 times longer than that of BLS.(3) Compared with the previous two models, the BLS exhibited excellent performance in milling surface roughness classification detection with fast and high accuracy: the accuracy was as high as 99.4%, 43.8% higher than FR-SVM and similar to Resnet50v2; the model training time was 169s, only 8% of Resnet50v2.The result proved that the BLS model not only can extract features by itself, but also has excellent performance in terms of accuracy and training time.

Model performance evaluation

401. To visualize the recognition ability of BLS, FR-SVM and Resnet50v2 at each roughness grade, the prediction results were visualized by a confusion matrix, as shown in Fig. 11.Each value on the main diagonal represents the number of correctly classified samples, and a darker color indicates a larger number.From Fig. 11, it was found that FR-SVM achieved higher classification accuracy for R1, and the rest of the categories were much lower than R1.When predicted using Resnet50v2, the best classification results were achieved for R3, R4, and R5, and the other two categories showed little difference from the best results.Similarly, BLS realized the best classification results for R3 and R4 and achieved suboptimal classification in the other categories.The analysis above showed that the accuracy of both BLS and Resnet50v2 reached a high level without a great difference, while the difference was larger between FR-SVM and the first two.9 shows the performance comparison of each model.

Generalization ability Sample sorting ability

41Resnet50v2 > BLS > FR-SVM Resnet50v2 > BLS > FR-SVM

Discussion of different machine learning methods

42As shown in Fig. 13, different machine learning methods were analyzed in terms of feature processing, data dependency, model training speed, and generalization ability based on the roughness measurement task.A summary information for the machine methods analyzed is presented below: 1. Feature processing.In most of the traditional machine learning based roughness measurement methods, image features need to be designed as indices, and the features can be pixel values, shapes, textures, etc.The performance of this approach is contingent upon the accuracy of the retrieved features.By contrast, deep and broad learning attempt to extract high-level information directly from the image of the milling workpiece.On this basis, deep learning and broad learning significantly reduce the effort required to construct feature extractors for roughness measurement problems.2. Data dependency.The performance of deep learning and broad learning depends on a large amount of data.For example, the desirable roughness prediction model cannot be trained with too few milling data because both types of models require a large amount of data to learn to recognize milling workpieces.On the other hand, traditional machine learning algorithms using human-designed indices may perform better when the amount of data is small.

Conclusions

43The existing index design-based and deep learning-based roughness measurement methods experience problems such as difficult index design, large human influence factors and slow model training speed.In this paper, based on the broad learning system and combined with image data enhancement algorithms, a visual measurement method for surface roughness of milling workpieces was proposed based on the broad learning system.The method could significantly accelerate the model training speed and automatically extract the image features related to the roughness of the milling workpiece surface.For the milling workpiece roughness measurement, its recognition accuracy achieved 99.4%, and the training time was only 169s.In comparison with other roughness measurement models, the BLS model was able to maintain a high recognition accuracy with a very short training time.It proved that the model proposed in this paper has the potential to be a fast real-time roughness measurement system, and provided a technical support for the rapid inspection of online vision under common light source in industrial production.

44In the future, we will consider the effects of different lighting conditions as well as shooting angles on the model performance based on this method.This helps to improve the robustness of the model to lighting changes and shooting angle changes, and increases the feasibility of deploying the model in real variable lighting environments.

Fig. 1 .

45Fig. 1.Milling specimen (Left Ra 0.236 μm, Right Ra 1.477 μm).a) Microscopic surface topography, b) roughness stylus measurement fluctuation graph, c) surface 3D morphology.

Fig. 2 .

46Fig. 2. Basic structure of broad learning system.

4 . 10 )Fig. 3 .

47Fig. 3. Partial data enhancement effect diagram.

Fig. 4

48shows the algorithm flow of the BLS roughness measurement model.(1) The milling workpiece image data set was divided into train set and test set for training and testing of the model, respectively.(2) The number and diversity of training samples were increased by the data enhancement algorithm.(3) The training data and the testing data were normalized.(4) The normalized training data and testing data were fed into the BLS network for learning and the detailed procedure was as follows.The input milling sample is feature-mapped to create the mapped feature group, which is then coupled to the nonlinear activation function to create the feature augmentation group.The mapped feature group and the augmented feature group are connected to the weight matrix, and then act together on the output layer to get the output of the BLS model.(5) The original data was compared with the predicted data to determine the prediction accuracy of the BLS for milling data.(6) The testing time was utilized to demonstrate the superiority of the BLS model's training speed, and the results were compared to those of other prediction models.

Fig. 4 .

49Fig. 4. Algorithm flow chart of the BLS roughness measurement model.

Fig. 5 .

50Fig. 5. Experimental flow chart.

Fig. 6 .

51Fig. 6.(a) XHS7145 CNC machine.(b) TAP400R100-32-6T Disc Milling Cutter.

Fig. 7 .

52Fig. 7. a) Diagram of the experimental setup, b) milling workpiece image.

Fig. 8 .

53Fig. 8. (a) The original.(b) The area where the milling workpiece is located.(c) The final cut.

Fig. 9 .

54Fig. 9. Milling sample images for each roughness grade.

Fig. 10 .

55Fig. 10.3D response surface diagram and perturbation diagram, ACC (accuracy).

Fig. 11 .

56Fig. 11.Confusion matrix for each model.

2 .

57Fig. 12. ROC curves and AUC values for each model.

Fig. 13 .

58Fig. 13.Different machine learning methods and their characteristics.

3 .

59Model training speed.Deep learning algorithms have many parameters, so it takes a long time to train the algorithm.In comparison, the broad learning's network structure is fairly simple due to the absence of multiple layers of connections, and training speed is significantly increased.Additionally, classical machine learning has a faster training speed due to the feature engineering stage.4. Generalization ability.The deep learning network can extract more abstract features from the milling training data, which makes its generalization ability extremely good.Broad learning can learn important features from the milling training data and achieve a high fit to the data.However, the features learned by the broad learning network are simpler, which makes it not as good at generalization as the deep learning network.Compared to them, traditional machine learning methods use feature indices that are designed by the researcher for a particular scenario.When the conditions change, the prediction becomes worse, resulting in the worst generalization performance.

Table 1 .

60Material and processing parameters.

Table 2 .

61Surface roughness of milling workpiece (Ra, Unit: µm)

Table 4 .

62Parameter setting of the BLS.

Table 6 .

63Parameter Setting of Resnet50v2.

Table 8 .

64Experimental results of each model.

Table 9 .

65Performance comparison of each model.

66BLS ≈ Resnet50v2 > FR-SVM FR-SVM > BLS > Resnet50v2

참고문헌 24건

  1. Learning and generalization characteristics of the random vector functional-link net Neurocomputing · Elsevier BV · 1994 10.1016/0925-2312(94)90053-1
  2. Surface roughness measurement using an optical system Journal of Materials Processing Technology · Elsevier BV · 1999 10.1016/s0924-0136(98)00356-2
  3. In-process surface roughness prediction using displacement signals from spindle motion International Journal of Machine Tools and Manufacture · Elsevier BV · 2006 10.1016/j.ijmachtools.2006.07.004
  4. Recent trends in surface metrology Wear · Elsevier BV · 2010 10.1016/j.wear.2010.06.001
  5. 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
  6. Surface roughness analysis of hardened steel after high‐speed milling Scanning · Wiley · 2011 10.1002/sca.20274
  7. 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
  8. Tracing ridge regression coefficients Wiley Interdisciplinary Reviews Computational Statistics · Wiley · 2010 10.1002/wics.126
  9. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  10. 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
  11. Visual method for measuring the roughness of a grinding piece based on color indices Optics Express · Optica Publishing Group · 2016 10.1364/oe.24.017215
  12. A novel weighted support vector machines multiclass classifier based on differential evolution for intrusion detection systems Information Sciences · Elsevier BV · 2017 10.1016/j.ins.2017.06.007
  13. Broad Learning System: An Effective and Efficient Incremental Learning System Without the Need for Deep Architecture IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tnnls.2017.2716952
  14. Orthogonal experimental design of liquid-cooling structure on the cooling effect of a liquid-cooled battery thermal management system Applied Thermal Engineering · Elsevier BV · 2017 10.1016/j.applthermaleng.2017.12.115
  15. On the confusion matrix in credit scoring and its analytical properties Communication in Statistics- Theory and Methods · Taylor & Francis · 2019 10.1080/03610926.2019.1568485
  16. Identification of Coal Geographical Origin Using Near Infrared Sensor Based on Broad Learning Applied Sciences · Multidisciplinary Digital Publishing Institute · 2019 10.3390/app9061111
  17. A new concordant partial AUC and partial c statistic for imbalanced data in the evaluation of machine learning algorithms BMC Medical Informatics and Decision Making · BioMed Central · 2020 10.1186/s12911-019-1014-6
  18. Evaluation of turned and milled surfaces roughness using convolutional neural network Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.107860
  19. Measuring grinding surface roughness based on singular value entropy of quaternion Measurement Science and Technology · IOP Publishing · 2020 10.1088/1361-6501/ab9aa9
  20. Cascaded deep learning classifiers for computer-aided diagnosis of COVID-19 and pneumonia diseases in X-ray scans Complex & Intelligent Systems · Springer Science+Business Media · 2020 10.1007/s40747-020-00199-4
  21. An approach for surface roughness measurement of helical gears based on image segmentation of region of interest Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109905
  22. Visual measurement of milling surface roughness based on Xception model with convolutional neural network Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110217
  23. A review of digital filtering in evaluation of surface roughness Metrology and Measurement Systems · De Gruyter Open · 2021 10.24425/mms.2021.136606
  24. A comparison between profile and areal surface roughness parameters Metrology and Measurement Systems · De Gruyter Open · 2021 10.24425/mms.2021.137133