# US 2021/0287098 A1 · On-line prediction method of surface roughness of parts based on sdae-dbn algorithm

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287098 A1
- Document ID: US20210287098A1
- Status: Published application
- Kind: A1
- Application number: 15/734,940
- Filed: 2020-02-28
- Published: 2021-09-16
- Earliest claimed: 2019-12-24
- Assignees: Dalian University of Technology
- Applicants: Dalian University of Technology
- Inventors: Kuo LIU; Mingrui SHEN; Bo QIN; Renjie HUANG; Mengmeng NIU; Yongqing WANG
- Web page: https://patentgrep.com/patent/US20210287098A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0499: Feedforward networks
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06F 2111/10: Numerical modelling
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An on line prediction method of part surface roughness based on SDAE-DBN algorithm. The tri-axis acceleration sensor is adsorbed on the rear bearing of the machine tool spindle through the magnetic seat to collect the vibration signals of the cutting process, and a microphone is placed in the left front of the processed part to collect the noise signals of the cutting process of the machine tool; the trend term of dynamic signal is eliminated, and the signal is smoothed; a stacked denoising autoencoder is constructed, and the greedy algorithm is used to train the network, and the extracted features are used as the input of deep belief network to train the network; the real-time vibration and noise signals in the machining process are input into the deep network after data processing, and the current surface roughness is set as output by the network.

## Claims

### Claim 1

An on-line prediction method of surface roughness of parts based on SDAE-DBN algorithm, wherein, firstly, a tri-axis acceleration sensor is adsorbed on the rear bearing of machine tool spindle through magnetic seat to collect the vibration signals of cutting process, and a microphone is placed in the left front of the processed part to collect the noise signals of the cutting process of the machine tool; secondly, the polynomial least square method is used to eliminate the trend term of the dynamic signal, and the five point cubic smoothing method is used to smooth the signal; then, the processing data is intercepted and normalized; thirdly, a stacked denoising autoencoder is constructed, and the greedy algorithm is used to train the network, and the extracted features are used as the input of deep belief network to train the network; finally, the real-time vibration and noise signals in the machining process are input into the deep network after data processing, and the current surface roughness is set as output by the network, so as to realize the real-time prediction of surface roughness; the specific steps are as follows:
(1) collect the vibration and noise signals during machining
the tri-axis acceleration sensor is attached to the rear bearing of the machine tool spindle through the magnetic base, and the microphone is placed in the front left of the workpiece to be processed; the vibration of the spindle and cutting noise during the machining process are collected in real time;
(2) preprocess the collected data
the vibration and noise data collected are eliminated trend term and smoothed;
the polynomial least square method is used to eliminate the trend term of the signal; the processing signal collected in each processing is set as {xk1}(k1=1, 2, . . . , n1); the M-order polynomial {circumflex over (x)}k1 is selected to fit the sampling signal through formula (1);
x
⋒
k
1
=
∑
i
1
=
0
M
⁢
a
i
1
⁢
k
1
i
1
⁡
(
i
1
=
0
,
1
,
…
⁢
,
M
)
(
1
)
according to the principle of least square method, the appropriate coefficient ai1 is selected to minimize the sum of squares of errors between xk1 and {circumflex over (x)}k1;
e
=
∑
k
1
=
1
n
1
⁢
(
x
k
1
-
x
⋒
k
1
)
2
=
∑
k
1
=
1
n
1
⁢
(
∑
i
1
=
0
M
⁢
a
1
⁢
k
1
𝔩
1
-
x
k
1
)
2
(
2
)
in order to satisfy the minimum value of e, after obtaining the partial derivative of the coefficient ai1, let the value of the partial derivative be zero, and M+1 linear equations are obtained; by solving the equations, M+1 coefficients ai1 are obtained, and the trend fitting curve is obtained;
when M≥2, the trend term is a curve trend term, and M=1˜3 is usually selected to eliminate the polynomial trend of the sampled data;
the signal is smoothed by five-point cubic smoothing method; the formula of the five-point cubic smoothing method is as follows:
{
y
1
=
1
7
⁢
0
⁡
[
6
⁢
9
⁢
x
1
+
4
⁢
(
x
2
+
x
4
)
-
6
⁢
x
3
-
x
5
]
y
2
=
1
3
⁢
5
⁡
[
2
⁢
(
x
1
+
x
5
)
+
2
⁢
7
⁢
x
2
+
1
⁢
2
⁢
x
3
-
8
⁢
x
4
]
y
j
1
=
1
3
⁢
5
⁡
[
-
3
⁢
(
x
j
1
-
2
+
x
j
1
+
2
)
+
12
⁢
x
j
1
-
1
+
12
⁢
x
j
1
+
1
+
17
⁢
x
j
1
]
y
m
-
1
=
1
3
⁢
5
⁡
[
2
⁢
(
x
m
-
4
+
x
m
)
-
8
⁢
x
m
-
3
+
1
⁢
2
⁢
x
m
-
2
+
2
⁢
7
⁢
x
m
-
1
]
y
m
=
1
7
⁢
0
⁡
[
-
x
m
-
4
+
4
⁢
(
x
m
-
3
+
x
m
-
1
)
-
6
⁢
x
m
-
2
+
6
⁢
9
⁢
x
m
]
(
3
)
among them, j1=3, 4 . . . m−2, m is the number of data points;
(3) data interception and normalization
according to the characteristics of vibration signal mutation at cut-in and cut-out point in machining process, the dynamic signal of actual machining process is intercepted, and the surface roughness of machined surface is measured; according to the measured surface roughness Ra it is divided into qualified and unqualified situations;
the dynamic signal of cutting process is normalized to [0,1] according to formula (4);
X
′
=
X
-
X
min
X
max
-
X
min
(
4
)
among them, X′ are the normalized results of the collected data, Xmax and Xmin are the maximum and minimum values of the collected data during processing;
the normalized dynamic signal is divided into training set and test set according to the ratio of 10:3;
(4) the construction and training of stacked denoising autoencoder
the first coding layer of stacked denoising autoencoder “destroys” normalized data X′ into data X″ by random mapping transformation q, and maps it to hidden layer according to formula (5);
y′=fθ1(1)(X″)=g(WX″+b) (5)
among them, W is the encoding weight matrix of the first coding layer, b is the encoding bias vector of the first coding layer, and g is the activation function of the first coding layer, and fθ1(1) is the encoding parameter of the first coding layer;
the first decoding layer of stacked denoising autoencoder reconstructs the implied representation of hidden layer data according to formula (6);
X′″=fθ2(1)(y′)=g(W′y′+b′) (6)
among them, W′ is the binding weight of the first decoding layer, b′ is the decoding bias vector of the first decoding layer, and fθ2(1) is the decoding parameter of the first decoding layer;
in the training process of the denoising autoencoder, the input data X′ is reconstructed into X′″, and the network weight and bias are adjusted continuously to minimize the network loss function;
the working principle of denoising autoencoder 2, denoising autoencoder 3 and denoising autoencoder 4 are the same as that of denoising autoencoder 1;
(5) the construction and training of deep belief network
the signal features extracted from the denoising autoencoder are used as the input of neural network to train the deep belief network model; deep belief network is a generative structure diagram model with multiple hidden layers, which is composed of several layers of restricted Boltzmann machine;
the restricted Boltzmann machine is an energy based model, and its joint probability distribution is determined by formula (7);
E
⁡
(
v
,
h
;
θ
1
)
=
-
∑
i
2
=
1
V
⁢
∑
j
2
=
1
H
⁢
w
i
2
⁢
j
2
⁢
v
i
2
⁢
h
j
2
-
(
∑
i
2
=
1
V
⁢
d
i
2
⁢
v
i
2
+
∑
j
2
=
1
H
⁢
c
j
2
⁢
h
j
2
)
(
7
)
among them, vi2 and hj2 are the binary states of the visible unit i2 and the hidden unit j2, θ1={w,d,c} are the parameters of the model: wi2j2 are the weight between the visible unit i2 and the hidden unit j2, di2 and cj2 are their bias, and V and H are the number of visible units and hidden units;
from the structural properties of restricted Boltzmann machine, it can be concluded that the activation state of neurons is conditionally independent; when the input signal is input into the visible layer, the visible layer will determine the state of each neuron in the hidden layer; the probability of activation of the j2 neuron in the hidden layer is calculated by formula (8):
P
⁡
(
h
j
2
=
1
❘
v
)
=
f
⁡
(
E
j
2
)
=
1
1
+
e
-
E
j
2
(
8
)
Similarly, the probability of activation of the i2 neuron in the visible layer is calculated by equation (9):
P
⁡
(
v
i
2
=
1
❘
h
)
=
f
⁡
(
E
i
2
)
=
1
1
+
e
-
E
i
2
(
9
)
where f(⋅) is the activation function of the network;
as a semi-supervised deep learning algorithm, deep belief network greedily trains each layer, from low to high, as RBM by using the activation of the previous layer as input; the specific training process is as follows: firstly, one RBM is fully trained; secondly, the weight and bias of the first RBM are fixed, and the state of its hidden neurons is used as the input vector of the second RBM; after the second RBM is fully trained, the second RBM is stacked on top of the first RBM, and the above steps are repeated until the preset number of times is reached; after the training of multiple RBM stack models, a Softmax classification layer is added to the top layer of the network to classify the surface roughness;
given k2 class training data {(x(1), y(1)), (x(2), y(2)), . . . (x(n2), y(n2))} of n2 samples, where the sample set is {x(i3)}i3=1n2 and the label set is {y(i3)}i3=1n2, y(i3)∈{1, 2, . . . , k2}; the Softmax function is used to estimate the probability value of each category; the probability value is calculated by formula (10);
P
⁡
(
y
(
i
3
)
=
j
3
|
x
(
i
3
)
;
θ
2
)
=
1
∑
l
=
1
k
2
⁢
e
θ
2
l
T
⁢
x
(
i
3
)
[
e
θ
2
1
T
⁢
x
(
i
3
)
e
θ
2
2
T
⁢
x
(
i
3
)
⋯
e
θ
2
k
T
⁢
x
(
i
3
)
]
(
10
)
among them, j3=1, 2, . . . , k2; θ2=[θ21, θ22, . . . , θ2l] is a parameter of the Softmax regression model;
1
∑
l
=
1
k
2
⁢
e
θ
2
1
T
⁢
x
(
i
3
)
normalizes the probability distribution so that the sum of all probabilities is 1;
the cost function of Softmax regression model is as follows:
J
⁡
(
θ
2
)
=
-
1
n
2
⁡
[
∑
i
3
=
1
n
2
⁢
∑
j
3
=
1
k
2
⁢
1
⁢
{
y
(
i
3
)
=
j
3
}
⁢
log
⁢
e
θ
2
j
3
T
⁢
x
(
i
3
)
∑
l
=
1
k
2
⁢
e
θ
2
l
T
⁢
x
(
i
3
)
]
(
11
)
where 1 {⋅} is the index function; if the condition is true; it returns 1, otherwise it is 0; Softmax regression model is a supervised learning model, which uses error back-propagation algorithm to update parameters iteratively to minimize the cost function, so as to find the optimal parameters to adapt to the training set;
after the training, the test set is used to test the deep belief network; when the test accuracy is higher than 90%, the model can be used to predict the surface roughness;
(6) the real-time prediction of surface roughness
in the actual processing process, the collected dynamic signals are input into the stacked denoising autoencoder network model to automatically extract the signal features, and then the extracted features are used as the input of the deep belief network to train the network model, and the output of the model is the quality of the surface; when the surface roughness is qualified, the model output is 0; when the surface roughness is unqualified, the model output is 1.
