Method for predicting remaining life of numerical control machine tool
11624731 · 2023-04-11
Assignee
Inventors
- Qingqing Huang (Chongqing, CN)
- Zhen Kang (Chongqing, CN)
- Yan Zhang (Chongqing, CN)
- Shuaiyong Li (Chongqing, CN)
- Jiajun Zhou (Chongqing, CN)
Cpc classification
G01N29/449
PHYSICS
International classification
G01N29/44
PHYSICS
Abstract
A method for predicting a remaining life of a tool of a computer numerical control machine is provided. In the method, indirect measurement indicators of the tool are selected based on monitoring and analyzing a current state of the tool, a prediction model for the remaining life of the tool is established based on data de-noising, feature extraction and a multi-kernel W-LSSVM algorithm. Thereby, a method for predicting a remaining life of a tool of a computer numerical control machine is provided.
Claims
1. A method for managing a tool of a computer numerical control machine, wherein a prediction model for a remaining life of the tool is established based on state monitoring, data de-noising, feature extraction and a multi-kernel weighted least squares support vector machine algorithm, and a prediction object for the remaining life of the tool is determined as a milling tool which is a core production element of the CNC machine, and the method comprises the following steps: step S1: collecting a signal from a PLC controller of the computer numerical control machine and a signal from an external sensor, and monitoring an operation condition and sensor data of the computer numerical control machine in a processing process to online monitor wear of the tool and predict the remaining life of the tool, wherein the sensor data comprises vibration signals in three directions of x-axis, y-axis and z-axis and a current signal; step S2: receiving, by a processor, original signal data, and performing pre-processing, by the processor, on the original signal data; step S3: extracting, by the processor, temporal features of the pre-processed signal obtained in step S2; step S4: obtaining, by the processor, a data matrix by using a T.sup.2 feature map of a principal component analysis PCA based on the temporal features extracted in step S3; step S5: obtaining, by the processor, a median and a variation of an eigenvector in the data matrix obtained in step S4 in a time period, a first-order difference of the median, and a first-order difference of the variation; step S6: inputting, by the processor, the matrix eigenvector obtained in step S5 to the multi-kernel weighted least squares support vector machine to output a remaining life value of the tool of the computer numerical control machine; and step S7: replacing the tool of the computer numerical control machine in a case that the outputted remaining life value of the tool is less than a predetermined life threshold.
2. The method for predicting a remaining life of a tool of a computer numerical control machine according to claim 1, wherein threshold denoising processing is performed on the vibration signals and the current signal collected by a sensor by using a wavelet analysis algorithm in step S2, and then the temporal features are extracted.
3. The method for predicting a remaining life of a tool of a computer numerical control machine according to claim 1, wherein the extracting temporal features in step S3 is performed based on a statistical value T.sup.2 of the principal component analysis (PCA) and comprises the following steps: step S31: subtracting an average value, comprising subtracting, for each of the features, an average value corresponding to the feature; step S32: calculating a covariance matrix; step S33: calculating eigenvalues and eigenvectors of the covariance matrix by using a singular value decomposition algorithm; step S34: sorting the eigenvalues in a descending order, selecting k largest eigenvalues from the eigenvalues, and forming an eigenvector matrix based on k eigenvectors as column vectors, wherein the k eigenvectors correspond to the k largest eigenvalues; step S35: converting the data in a new space constructed based on the k eigenvectors; and step S36: calculating a Hotelling statistical value T.sup.2, wherein the statistical value T.sup.2 is expressed as the following equation:
4. The method for predicting a remaining life of a tool of a computer numerical control machine according to claim 1, wherein the value of the remaining life is obtained by using the multi-kernel weighted least squares support vector machine in step S6, and a single-kernel least squares support vector machine performs the following steps: step S61: optimizing an LSSVM model to obtain a Lagrange multiplier sequence and an error e.sub.i; step S62: performing Gaussian distribution on the error sequence, comprising multiplying each of errors e.sub.i in the error sequence by a weight v.sub.i wherein the v.sub.i is expressed as the following equation:
5. The method for predicting a remaining life of a tool of a computer numerical control machine according to claim 4, wherein a multi-kernel function is constructed as:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Hereinafter, the present disclosure is described in detail with reference to drawings to further explain objects, technical solutions, and advantages of the present disclosure. In the drawings:
(2)
(3)
(4)
DETAILED DESCRIPTION OF EMBODIMENTS
(5) The embodiments of the present disclosure are illustrated with specific examples. Those skilled in the art can easily understand other advantages and effects of the present disclosure from the content disclosed in this specification. The present disclosure may be implemented or applied in other different embodiments. Various details in this specification may be modified or changed according to different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the drawings in the following embodiments are only used to illustrate the basic concept of the present disclosure. In the case of no conflict, the following embodiments and the features in the embodiments can be combined if no conflict is caused.
(6) The drawings are only used for exemplary description, and are only schematic diagrams rather than physical diagrams, and should not be understood as a limitation of the present disclosure. In order to better illustrate the embodiments of the present disclosure, some components in the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product. It should be understood by those skilled in the art that some well-known structures and descriptions of the structures may be omitted in the drawings.
(7) The same or similar reference numerals in the drawings of the embodiments of the present disclosure indicate the same or similar components. It should be understood that in the description of the present disclosure, orientations or position relationships, indicated by terms “upper”, “lower”, “left”, “right”, “front”, “rear”, and the like, are orientations or positional relationships shown in the drawings. These terms are used for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that devices or elements indicated by the terms must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for exemplary description, and should not be understood as a limitation of the present disclosure. Those skilled in the art may understand the meanings of the terms in a certain condition.
(8)
(9) In step (1), an average value is subtracted. That is, for each of the features, an average value corresponding to the feature is subtracted.
(10) In step (2), a covariance matrix is calculated.
(11) In step (3), eigenvalues and eigenvectors of the covariance matrix are calculated by using SVD.
(12) In step (4), the eigenvalues are sorted in a descending order, k largest eigenvalues are selected from the eigenvalues, and an eigenvector matrix is formed based on k eigenvectors as column vectors, where the k eigenvectors correspond to the k largest eigenvalues.
(13) In step (5), the data are converted in a new space constructed based on the k eigenvectors.
(14) In step (6), a Hotelling T2 statistical value is calculated.
(15) A T.sup.2 eigenvector of the PCA is obtained. Then, feature processing is performed on the extracted T.sup.2 eigenvector to obtain a median and a variation of the T.sup.2 eigenvector in a time period, a first-order difference of the median, and a first-order difference of the variation. These four eigenvectors are inputted to a multi-kernel W-LSSVM model to obtain a value of the remaining life of the tool. The multi-kernel W-LSSVM model is established by performing the following steps (1) to (5).
(16) In step (1), an LSSVM model is optimized to obtain a Lagrange multiplier sequence and an error e.sub.i.
(17) In step (2), Gaussian distribution is performed on the error sequence, including multiplying each of errors e.sub.i in the error sequence by a weight v.sub.i, where v.sub.i is expressed as the following equation:
(18)
(19) where
(20)
IQR represents an arrangement of the errors e.sub.i in the error sequence in ascending order, a difference c.sub.1 between a value of a third quartile and a value of a fourth quartile is equal to 2.5, and a difference c.sub.2 between a value of a first quartile and the value of the fourth quartile is equal to 3.
(21) In step (3), a W-LSSVM model is solved, and a functional minimization equation is constructed as follows:
(22)
(23) where e represents an error variable, and γ represents a regularization parameter. Thus, a Lagrange function is obtained as follows:
(24)
(25) Based on a Karush-Kuhn-Tucker condition, the following equations are obtained:
(26)
(27) In step (4), sparse processing is performed on the model by deleting sample points with small Lagrange multipliers, and a regression model of a single-kernel W-LSSVM regression model is outputted as follows:
(28)
(29) In step (5), a multi-kernel function is constructed as:
(30)
(31) where λ represents a weight for each of kernels, K.sub.L represents a linear kernel, K.sub.R represents a RBF kernel, and K.sub.P represents a polynomial kernel.
(32) Parameters of the multi-kernel W-LSSVM model are selected based on a grid search algorithm. The parameter γ ranges from 0.1 to 100, and the parameter σ.sup.2 ranges from 0.01 to 1 000. An excessively large polynomial kernel degree d may cause the value of the kernel function to tend to zero or infinity. In the present disclosure, an optimal value of d is determined in set {1, 2, . . . , 10}. An optimization range is set from 0.01 to 1000. Weights of kernel functions range from 0 to 1.
(33) To verify the feasibility and accuracy of the method according to the present disclosure, test experiments are performed, and the multi-kernel W-LSSVM model is compared with other machine learning models. In actual machining processing with the CNC machine, data is collected in a time period from a new tool being used for normal machining processing until the end of the life of the tool. Regarding the data sampling frequency, the sampling frequency of the PLC signal is 33 Hz, and the sampling frequency of the vibration sensor is 25600 Hz. Three groups of data are selected for prediction, and curve graphs of the prediction results are shown in
(34) TABLE-US-00001 Experiment type Error type Test Sample 1 Test Sample 2 Test Sample 3 xgboost absolute error 2.023 3.021 12.23 Tree regression absolute error 1.252 2.523 9.563 Multi-kernel W-LSSVM absolute error 0.422 1.444 5.235
(35) Based on the test results, it is shows that the remaining life of the tool can be predicted correctly and accurately by using the multi-kernel W-LSSVM model, thereby solving the problem of low accuracy mentioned above.
(36) Finally, it should be noted that the embodiments described above are only provided for describing the technical solutions of the present disclosure rather than limiting the technical solutions. Although the present disclosure is described in detail with reference to the preferred embodiments described above, those skilled in the art should understand that modifications or substitutions may be made to the technical solutions of the present disclosure without departing from the spirit and scope of the present disclosure. The modification or substitutions should fall within the scope of the claims of the present disclosure.