The invention relates to a computer-implemented method for providing a trained function for performing a workpiece quality control.
Moreover, the invention relates to a computer-implemented method for performing a workpiece quality control.
Furthermore, the invention relates to a computer program for providing a trained function and to a computer program for performing a workpiece quality control.
Moreover, the invention relates to a system for providing a trained function for performing a workpiece quality control and to a system for performing a workpiece quality control.
In the state-of-the-art solutions, the data from reference workpieces are used to find a threshold for acceptable range of the signals. During the production, those thresholds are used and when the signals exceed the thresholds, an alarm will indicate that a quality deviation happened in the workpiece. This needs an exact preprocessing of the signals (e.g. filtering, etc.), which requires domain expert knowledge.
Accordingly, there is a need to provide for methods and systems that reduce the amount of experts' presence and data handling such as preprocessing, filtering etc.
In order to achieve the objective mentioned above, the present invention provides a computer-implemented method for providing a trained function for performing a workpiece quality control comprising:
It will be appreciated that for training purposes the workpieces of a predetermined quality can be selected. The operator selects workpieces of good quality, e.g. the workpieces that had been tested regarding their quality otherwise and passed this other quality test. Preferably the operator selects only those workpieces that have good quality.
Using the autoencoder—unsupervised machine learning algorithm—can reduce the need of expert's presence and/or input.
High-frequency dataset usually comprise time-series data collected at an extremely fine scale. “Extremely fine” means milliseconds, for example 1 to 50 milliseconds, in particular 1 to 40 milliseconds, more particularly 1 to 30 milliseconds. In an embodiment the data (for training purposes or for purposes of the quality analysis of a workpiece) can be sampled every 2 milliseconds.
Each high-frequency machining dataset represents the quality of a workpiece. The corresponding time-series data can be in form of a signal, which is generated by measuring a parameter, for example a spindle torque, a spindle motor current, control deviation signal, etc. The parameter which is measured can be selected by the user/operator.
In an embodiment, the autoencoder can be a variational autoencoder (VAE) and the training can comprise specifying a statistical distribution for the hidden layer. Using the VAE gives an advantage that the amount of expert's knowledge is further reduced.
In an embodiment, the statistical distribution can be a normal distribution, for example a normal distribution with zero mean and the variance equal to one. In an embodiment the statistical distribution can be a uniform distribution.
In an embodiment the training high-frequency machining datasets can be based on time-series CNC machining data.
In an embodiment the transforming can be performed by means of a wavelet transformation.
In an embodiment each training high-frequency machining dataset is transformed.
Good results can be achieved, if the autoencoder is a recurrent neural network, for example—a long short-term memory network.
Furthermore, the objective mentioned above is achieved by providing a computer-implemented method for performing a workpiece quality control, comprising:
Using of autoencoders in the monitoring of the quality of the workpieces can capture the nonlinearity, which exist in the data and reduce the false alarm and miss-detection rates.
In an embodiment the autoencoder can comprise an encoder with an input layer and a decoder with an output layer.
In an embodiment the encoder and the decoder can comprise additional layers. Adding more layers may help to achieve better results for complex cases.
In an embodiment the method can further comprise repeating the said steps for other workpieces.
In an embodiment a variational autoencoder (VAE) with a specified statistical distribution for the hidden layer can be used for the workpiece quality control. In this case, the analyzing the quality of the at least one workpiece can comprise comparing the data generated in the hidden layer of the VAE with the specified statistical distribution. The user or the operator does not need to set up parameters to use the VAE and its dependency on expert knowledge is even lesser.
In an embodiment, the statistical distribution can be a normal distribution, for example a normal distribution with mean value equal to zero and variance equal to one, or uniform distribution.
In an embodiment, the transforming can be performed by means of the wavelet transformation. Using the wavelet transformation may reduce the need of filtering and preprocessing of the data.
In an embodiment, the autoencoder can be a recurrent neural network (RNN), more particularly a long short-term memory (LSTM) network.
The above-mentioned objective is also achieved by providing a computer program for providing a trained function comprising instructions which, when the program is executed by a computing platform, cause the computing platform to carry out the said training method.
The above-mentioned objective is also achieved by providing a computer program for performing a workpiece quality control comprising instructions which, when the program is executed by a computing platform, cause the computing platform to carry out the said workpiece-quality-control-method.
The said computer program(s) can be designed as app, for example as cloud-app. In an embodiment, the above-mentioned parameters, which are measured to obtain high-frequency datasets can be selected by the app user. This includes both training and utilization (workpiece quality control analysis) methods mutatis mutandis.
The above-mentioned objective is also achieved by a (training) system for providing a trained function for performing a workpiece quality control, comprising:
The above-mentioned objective is also achieved by a (analyzing) system for performing a workpiece quality control, comprising:
Such system can improve the efficiency and performance of the industrial machines, especially of the CNC machines.
In an embodiment the first interface can be further configured for receiving a high-frequency machining dataset from further workpieces and the computation apparatus can be further configured for repeating the said steps for performing quality control of the further workpieces.
In an embodiment a computer-readable, in particular non-transitory medium can be provided, which medium comprises instructions which, when executed by a analyzing/training system, cause the analyzing/training system to carry out at least one of the said methods.
The above and other objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:
Turning to
In the first step a training high-frequency machining dataset is received 100. The training high-frequency machining data is representative of machining data, e.g. machining signals, from good quality workpieces or reference workpieces.
Receiving 100 may be performed by means of a first interface, which for example can be designed as an edge computing device. In an embodiment of the invention the training high-frequency machining dataset can be based on time-series CNC (Computerized Numerical Control) machining data. In an embodiment the machining data can comprise a plurality of time-series machining signals 101, where on the x-axis the time in seconds is depicted and the y-axis represents spindle torque. The time series machining signal 101 comprises measured values of a measured quantity (bold black line), e.g. of the spindle torque, and an acceptable range of the measured value (grey area surrounding the bold black line). To obtain the machining signal 101 the data is sampled from corresponding machine sensors every 2 milliseconds. It will be appreciated that other sampling intervals are possible, e.g. 5, 10, 15 ms etc., as well as other parameters can be measured, e.g. spindle motor current, control deviation signal etc.
The training dataset is then transformed 200 into a dataset on a time-frequency domain to achieve a training time-frequency domain dataset. In an embodiment the 1D high-frequency time-series machining signals from the training dataset can be transformed by means of a wavelet transformation. An example of a transformed signal 201 in the time-frequency domain (2D signal) is illustrated in
The reference signals on the time-frequency domain 201 are used for training 300 an autoencoder function 310. The (2D) training signals are given for an input 311 and an output layer 312 of the autoencoder 310 (see
Transforming 200 of the high-frequency time-series data (1D signals) and training 300 of the encoder can be performed by means of a computation apparatus, a computation unit, a computing platform. In an embodiment the (untrained or trained) autoencoder can be stored on the computing platform or, e.g. in a memory of the computation apparatus.
After training the autoencoder, the trained autoencoder is provided 400. Providing 400 the trained autoencoder can be performed by means of a second interface. Providing the trained autoencoder can comprise for example notifying an operator of the machine, e.g. of the CNC machine, that the autoencoder has been trained and is ready for use. The notifying can be performed in various ways. For example, the operator can receive a notification via email or as a push message on his\her mobile device or as an alarm on a CNC control panel.
Turning to
The variables x1, . . . , x5 can represent single signals. As explained above, in the prior art solutions threshold for acceptable range had to be found for each single signal x1, . . . , x5. This needs an exact preprocessing of the signals (example given filtering, etc.) which requires domain expert knowledge.
Using the autoencoder 310 reduces the complexity of the problem, since the thresholds are to be found only for the (data at the neurons of the) hidden layer 314 with the reduced representation of the signals.
Good results can be achieved if the autoencoder is a recurrent neural network (RNN), more particularly a long short-term memory (LSTM) network.
In an embodiment the autoencoder 310 can be a variational autoencoder (VAE). In this case a statistical distribution for the hidden layer 314 is specified during the training 300 of the encoder.
In an embodiment, the autoencoder 310 can comprise an encoder, wherein the encoder can comprise one or more layers, and a decoder, wherein the decoder can comprise one or more layers. The hidden layer can comprise one or more layers as well. In an embodiment the layer(s) of the hidden layer can comprise two neurons. The input layer 311 and the output layer 312 can comprise 32 neurons.
In an embodiment the statistical distribution can be a normal distribution. Good results can be achieved, if the normal distribution's mean value is equal to zero and its variance is equal to one—N(0,1). The statistical distribution can be for example a uniform distribution.
In one embodiment a (training) computer program is provided. The computer program comprises instructions which, when the program is executed by a computing platform, cause the computing platform to carry out the method for providing the trained autoencoder as explained above. The computing platform can comprise an edge computing device, cloud computing device, smartphone, PC etc. The computer program can be designed as an app running on an edge device or on a cloud server.
Turning to
In the first step a high-frequency machining dataset from at least one workpiece is received 120. For example, the high-frequency machining dataset can be collected for a workpiece, which is currently under processing. In particular, the high-frequency machining dataset can be based on time-series CNC machining data collected, while machining the workpiece.
In the second step the high-frequency machining dataset is transformed 220 into a dataset on a time-frequency domain to achieve a time-frequency domain dataset. This transformation 220 can be performed, when the processing of the workpiece is finished, the corresponding data is collected, and the high-frequency machining dataset is received 120. In an embodiment, the transformation 220 can be performed by a wavelet transformation. Using the wavelet transformation may reduce the need of filtering and preprocessing of the data.
In the third step a trained autoencoder function is applied 320 to the time-frequency domain dataset. The trained autoencoder function can be an autoencoder function 310 provided by the training method described regarding
The trained autoencoder function comprises a hidden layer. When the trained autoencoder function is applied to the time-frequency domain data set, data in the hidden layer 314 of the autoencoder function is generated.
Further on, analysis of a quality of the at least one workpiece based on the data generated in the hidden layer 314 of the autoencoder function 310 is performed 420.
For example, threshold values for the representation of the time frequency domain signal in the hidden layer can be determined based on the domain expert knowledge.
In an embodiment the autoencoder can be a variational autoencoder VAE with a specified statistical distribution for the hidden layer. In this case the analysis of the quality of the at least one workpiece can be carried out by comparing the data generated in the hidden layer 314 of the autoencoder function 310 (factual statistical distribution) with the specified statistical distribution. All the good quality workpieces will generate a signal in the reduced dimension (in the hidden layer 314), which follows the specified statistical distribution, whereas the bad quality workpieces will have deviation compared to the reference (specified) distribution.
In an embodiment the specified statistical distribution can be a normal distribution, in particular a normal distribution with mean value equal to zero and variance equal to one, or the uniform distribution.
Surprisingly good results can be achieved, if the autoencoder 310 is a recurrent neural network (RNN), in particular a long short-term memory (LSTM) network.
In the next step the results of the analysis are provided 520. In an embodiment the providing 520 can comprise alarming an operator of the machine, for example of the CNC machine, if the analyzed workpiece cannot be verified to be a workpiece of a good quality.
In this case the operator may receive an alarm (on a CNC control panel), an email (on his/her mobile device, e.g. smartphone), a push message (on his/her mobile device, e.g. smartphone) etc. that notifies him/her that the analyzed workpiece seems to be of bad quality and needs to be further investigated.
In an embodiment the method can comprise a further step of repeating the steps 120 to 520 for other workpieces.
The result of the analysis can be an assessment that the work piece is good or otherwise needed to be further investigated.
In one embodiment a computer program is provided. The computer program comprises instructions which, when the program is executed by a computing platform, cause the computing platform to carry out the method for performing the workpiece quality control as explained above. The computing platform can comprise an edge computing device, cloud computing device, smartphone, PC etc. The computer program can be designed as an app running on an edge device or on a cloud server.
Turning to
High-frequency time-series training data 14 is send from the frequency converter apparatus 11 to the computing device 12. The transformation of the high-frequency time-series training data 14 into to time-frequency domain can be performed for example by the computing device 12 or by the training computing system 13. The above-mentioned training computer program can be stored on the training computing system 13. The training computing system 13 can be located in the same industrial plant as the industrial machine 10 or be partially (it can be connected to a cloud server) or entirely in a cloud.
After the autoencoder 310 is trained by the training computing system 13 a trained autoencoder 15 can be deployed on the computing device 12.
Turning to
The system 2 can comprise the industrial machine 10, the frequency converter apparatus 11, the computing device 12 of
High-frequency time-series data 24 from a workpiece, which is being currently analyzed, is send from the frequency converter apparatus 11 to the computing device 12. The transformation of the high-frequency time-series data 24 into to time-frequency domain can be performed for example by the computing device 12 or by the analyzing computing system 23.
The above-mentioned computer program for carrying out the method for performing a workpiece quality control can be stored on the analyzing computing system 23 or on the computing device 12 and be remotely accessible by the analyzing computing system 23. The analyzing computing system 23 can be located in the same industrial plant as the industrial machine 10 or be partially (it can be connected to a cloud server) or entirely in a cloud. The analyzing computing system 23 can comprise a man-machine interface or user interface for operating the computer program.
The trained autoencoder 15 can be stored on the computing device 12.
The results of analyzing workpiece(s) can be displayed by means of the analyzing computing system 23. The analyzing computing system 23 can comprise a mobile device for displaying the results of the performed quality analysis. The operator may be notified of the state of the analyzed workpiece via an alarm, an email, a push message etc. The notification can be designed in a traffic light manner (see
As mentioned above, the type of parameters which are measured in order to provide training data or data for the analysis of the quality of workpiece(s) can be chosen during the training process or before or during the analysis.
For example, the choice of the parameters can be performed by an operator in the app on his smartphone. The app can comprise both a training mode (for training and Autoencoder function) and an analyzing mode (for analyzing the workpiece under machining).
The above described embodiments of the present disclosure are presented for purposes of illustration and not of limitation.
In particular, the embodiments described with regard to figures are only few examples of the embodiments described in the introductory part.
The solution according to the invention is described above with respect to the claimed providing systems as well as with respect to the claimed methods. Features, advantages or alternative embodiments herein can be assigned to the other claimed objects and vice versa. In other words, claims for the providing systems can be improved with features described or claimed in the context of the methods. In this case, the functional features of the method are embodied by objective units of the providing system.
Furthermore, in the following the solution according to the invention is described with respect to methods and systems for training an autoencoder function as well as with respect to methods and systems for performing a workpiece quality control. Features, advantages or alternative embodiments herein can be assigned to the other claimed objects and vice versa. In other words, claims for methods and systems for training an autoencoder function can be improved with features described or claimed in context of the methods and systems for performing the quality analysis, and vice versa.
In particular, the trained autoencoder function (algorithm) of the methods and systems for checking the quality of the workpiece can be adapted by the methods and systems for training. Furthermore, the input data can comprise advantageous features and embodiments of the training input data, and vice versa. Furthermore, the output data can comprise advantageous features and embodiments of the output training data, and vice versa.
The reference signs in the claims used only for clarity purposes and shall not be considered to be a limiting part of the claims.
Number | Date | Country | Kind |
---|---|---|---|
20161233.0 | Mar 2020 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2021/053882 | 2/17/2021 | WO |