Data driven method for automated detection of anomalous work pieces during a production process
11468274 · 2022-10-11
Assignee
Inventors
Cpc classification
G06F18/2433
PHYSICS
G06F18/2415
PHYSICS
International classification
G05B19/41
PHYSICS
Abstract
Provided is a method and system for detection of anomalous work pieces that includes computing at least one deviation data signal for a target data signal of a target work piece with respect to reference data signals recorded for a corresponding production process step of a set of reference work pieces, performing a stepwise anomaly detection by data processing of the at least one computed deviation data signal and a process type indicator indicating a type of the production process step using a trained anomaly detection data model to calculate for each time step or path length step of the production process step an anomaly probability that the respective time step or path length step is anomalous, and classifying the target work piece and/or the production process step as being anomalous or not anomalous on the basis of the calculated anomaly probabilities.
Claims
1. A data driven method for automated detection of anomalous work pieces during a production process, the method comprising: (a) computing for each production process step of the production process at least one deviation data signal for a target data signal of a target work piece with respect to reference data signals recorded for a corresponding production process step of a set of reference work pieces, wherein the at least one deviation data signal comprises a number of deviation data samples for different production time steps, t, or path length steps, l, of the respective production process step; (b) performing a stepwise anomaly detection by data processing of the at least one computed deviation data signal and a process type indicator indicating a type of the production process step using a trained anomaly detection data model to calculate for each time step, t, or path length step, l, of the production process step an anomaly probability, p, that the respective time step, t, or path length step, l, is anomalous; and (c) classifying the target work piece and/or the production process step as being anomalous or not anomalous on the basis of the calculated anomaly probabilities, p, of the time steps, t, or path length steps, l, of the production process step.
2. The method according to claim 1, wherein measurement data of the production process step are recorded as time step, t, or path length step, l, based measurement data with a varying number of data samples per target work piece and/or process step.
3. The method according to claim 2, wherein recorded time step or path length based measurement data are converted into three-dimensional path length based data by projecting the time step based measurement data on a path length, L, along a trajectory common to all work pieces during the production process step.
4. The method according to claim 3, wherein the three-dimensional path length based data are smoothed by a data filter to provide the target data signal of the target work piece and reference data signals of reference work pieces.
5. The method according to claim 4, wherein the at least one deviation data signal is computed by calculating a normalized Euclidian distance between the smoothed target data signal of the target work piece output by the data filter and a signal mean and standard deviation of the recorded reference data signals for a moving window having a predetermined window size.
6. The method according to claim 1, wherein an error of the calculated anomaly probability is minimized by optimizing network parameters of the anomaly detection data model using a calculated binary cross entropy loss.
7. The method according to claim 1, wherein the automated detection of anomalous work pieces and/or anomalous production process steps is performed in real time during the running production process comprising the process steps.
8. The method according to claim 1, wherein the anomaly detection data model comprises a dilated convolution based data model.
9. The method according to claim 1, wherein the anomaly detection data model comprises a recurrent neural network (RNN), a Long-Term-Short-Term (LSTM) network, or a gated recurrent unit (GRU) network.
10. The method according to claim 1, wherein if the target work piece and/or the production process step is classified as anomalous, a warning signal for a user and/or a control signal for a production machine is generated automatically.
11. A system comprising: a quality control system configured to: receive a target data signal of a target work piece processed in a production process by a production machine; compute for each production process step of the production process at least one deviation data signal for the received target data signal with respect to reference data signals recorded for a corresponding production process step of a set of reference work pieces, wherein the at least one deviation data signal comprises a number of deviation data samples for different production time steps, t, or path length steps, l, of the respective production process step; perform a stepwise anomaly detection by data processing of the at least one deviation data signal and a process type indicator indicating a type of the production process step using a trained anomaly detection data model to calculate for each time step, t, or path length step, l, of the production process step an anomaly probability, p, that the respective time step, t, or path length step, l, is anomalous; classify the target work piece and/or the production process step as being anomalous or not anomalous on the basis of the calculated anomaly probabilities, p, of the time steps, t, or path length steps, l, of the production process step; and issue a generated warning signal and/or a generated control signal, if the target work piece and/or the production process step is classified as anomalous.
12. The system according to claim 11, wherein the reference data signals recorded for a corresponding production process step for a set of reference work pieces are stored in a memory read by the data preprocessing unit to compute for each production process step of the production process at least one deviation data signal supplied to the anomaly detection unit.
13. The system according to claim 11, wherein the target data signal of a target work piece processed in the production process comprises measurement data generated by sensors of the production machine.
14. The system according to claim 13, wherein the measurement data is provided by a data extraction pipeline of the production machine and recorded on a time base scale per work piece and per process step of the production process.
15. The system according to claim 11, wherein the processor is configured to convert recorded time step based measurement data into three-dimensional path length based data by projecting the time step based measurement data on a path length, L, along a trajectory common to all work pieces during the production process step of the production process.
Description
BRIEF DESCRIPTION
(1) Some of the embodiments will be described in detail, with reference to the following figures, wherein like designations denote like members, wherein:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7) As can be seen in
(8) The data preprocessing unit 2 is adapted to compute for each production process step of the production process at least one deviation data signal for the received target data signal with respect to reference data signals recorded for a corresponding production process step of a set of reference work pieces. The recorded reference data signals can be read in a possible embodiment from a memory 5 of the quality control system 1. The reference data signals read from the memory 5 or database are preprocessed data stored for previously processed reference work pieces showing a high quality. The deviation data signal computed by the data preprocessing unit 2 comprises a number of deviation data samples for different production time steps t and/or path length steps l of the respective production process step performed by the production machine M. The quality control system 1 further comprises an anomaly detection unit 3 connected to the data preprocessing unit 2. The anomaly detection unit 3 is adapted to perform a stepwise anomaly detection by data processing of the at least one deviation data signal output by the data preprocessing unit 2 and a process type indicator PTI indicating a type of the production process step using a trained anomaly detection data model to calculate for each time step t and/or a path length step l of the production process step an anomaly probability p that the respective time step t and/or path length step l is anomalous.
(9) The quality control system 1 further comprises a classification unit 4 adapted to classify the target work piece and/or the production process step performed by the manufacturing machine M as being anomalous or not anomalous on the basis of the calculated anomaly probabilities p of the time steps t and/or path length steps l of the respective production process step. The classification unit 4 comprises in a possible embodiment an output interface adapted to issue a generated warning signal and/or a generated control signal, if the target work piece and/or the current production process step is classified by the classification unit 4 as being anomalous. In a possible embodiment, the classification unit 4 can generate control signals applied to the manufacturing machine M, if the work piece and/or the production process step has been classified as being anomalous. In a possible embodiment, the quality control system 1 comprising the data preprocessing unit 2, the anomaly detection unit 3 and the classification unit 4 is connected to one or several production manufacturing machines M of a production facility via a signal bus for bidirectional communication comprising data signals and/or control signals. Accordingly, if the classification unit 4 classifies a target work piece and/or a production process step of the production process as anomalous, the quality control system 1 can immediately take countermeasures to increase the quality of the work pieces or at least warn a user that a current target work piece and/or a current production process step is anomalous.
(10) As illustrated in the embodiment of
(11) As illustrated in the block diagram of
(12) In the quality control system 1 according to the embodiment of the present invention, the data of each target work piece is processed on process level. The quality control system 1 uses data of a set of reference work pieces of representative good quality. This kind of data can be acquired since in any reasonable production the number of good quality products does exceed the amount of scrap products by a wide margin. In case the quality requirements are changed, a user has only to update the set of references or reference data for his production process.
(13) In a possible embodiment, the raw sensor data provided by the data extraction pipeline of the manufacturing machine M can be recorded on a time base scale which results in a varying length of recordings (and number of data points) per work piece and per process step. Due to this fact, in a conventional system, the measurements have often been misaligned which harms comparability. For this reason, the preprocessing unit 2 of the quality control system 1 comprises in a possible embodiment a projection stage 2A where all measurements of the path length are projected along a trajectory which is common to all work pieces/process steps in the data. The path length L at a time step t can be defined as:
(14)
wherein X describes all three-dimensional coordinates on the trajectory of a process step and x.sub.i,A on a time step i on axis A. Given the path length L, it is possible to generate sequences of fixed lengths for every measurement channel by linearly interpolating between values and computing the linearly interpolated values in steps of e.g. 0.05 which may correspond e.g. to a path length L of 2 mm. Since process steps might also have slightly varying total path lengths L, in a possible implementation, the process step with the shortest total path length L from the reference set is used and the data generation of this path length L results in that all sequences have the exact same length.
(15) In a possible embodiment, the filter 2B within the preprocessing unit 2 is used to smooth each signal. In a possible embodiment, the filter can be formed by a median filter with a window size of e.g. 11.
(16) The computed deviation data signal or deviation feature forms a core component of the approach taken by the quality control system 1 according to the embodiment of the present invention. The use of deviation data signals accomplishes some of the heavy lifting required for the generalization across different processes and/or different work pieces. Given this feature, the learning problem can be reduced to finding a proper (potentially non-linear) threshold for deciding if at a time step t the target work piece and/or the production process step is anomalous or not, since it can be assumed that large amounts of the process-specific knowledge that would be required to assess an anomaly has been absorbed by the deviations from the distribution of process-specific references.
(17)
(18) The deviation data signal can be derived from the target data signal by computing in a possible embodiment a local normalized Euclidian distance to the set of reference work pieces for every step of the target data signal e.g. by:
(19)
wherein x.sub.w,c,t describes the signal in a process step of work piece w for sensor signal channel c at step (path length) t, 1.
is the local signal mean and
if [t−k, t+k] of sensor signal channel c of all reference work pieces from the same process step only. For instance, k can be k=25 corresponding to a window size of 2×25+1=51.
(20) Since the local signal standard deviation can be almost zero or very small in some regions, meaning that the variation in signal observed throughout all references is very narrow, it is possible in a possible implementation to clip it to a 10-percentile of observed local standard deviations throughout the whole sequence for achieved numerical stability.
(21) For the anomaly detector, the deviation data signals are computed for all available signals or a suitable subset of available signals. It is possible to compute a feature that indicates to what class of process the observed data belongs to (e.g. roughing or finishing).
(22) The anomaly detection unit 3 can use a machine learning based model that is trained based on the received input data with the task to assess for each step of the 3D trajectory of the machining if it is anomalous or not.
(23) The anomaly detection data model is a trained data model. Since a direct detection of anomalous work pieces using a global work piece/process-wise labeling is infeasible using supervised learning, one can exploit an auxiliary task which when solved properly also solves the actual target task of detecting anomalous work pieces. An anomalous signal can be compared against a set of reference data signals. It is possible to get a single label for the complete signal labeling it as bad resulting in one single training example. However, if every single step is labeled, one can generate a high number, e.g. 500, training examples. If one step is labeled as anomalous, the whole work piece and/or process step can be considered as anomalous. Using this strategy, it is possible to increase the amount of examples for training the anomaly detection data model in orders of magnitude going from hundreds to millions. This requires a more rigorous labeling of each work piece. This labeling can be automatically provided by specific software written for a set of training processes and/or work pieces.
(24) In a possible embodiment, the anomaly detection data model of the anomaly detection unit 3 can comprise a dilated convolution based model. Dilated convolutions (also called convolution with holes) are convolutions with sparse filters that exhibit an exponential growth in the respective field when applied in a sequence. These operators are especially useful when processing large inputs with spatial or temporal dependencies by keeping the number of free parameters low.
(25) In an alternative embodiment, the anomaly detection data model can also comprise a long-term short-term LSTM network which is a kind of recurrent neural network RNN that is capable to remember patterns of arbitrary intervals. For this reason, it is especially applicable to high resolution time series data where data patterns might evolve over a large amount of time steps.
(26)
(27)
wherein X is the input data, y is a vector of binary labels, f.sub.θ is the model function parameterized by θ and λ is a regularization strength. In a possible implementation, λ can be set to 0.001.
(28) The output probabilities generated by the anomaly detection unit 3 are supplied to the classification unit 4 of the quality control system 1. The classification unit 4 is adapted to classify the target work piece and/or the production process step as being anomalous or not anomalous on the basis of the received anomaly probabilities of the time steps t or path length steps l.
(29) In a possible embodiment for classifying a whole process and/or a work piece as anomalous, it is possible to apply a simple classification rule such as:
(30)
wherein P(x) indicates the classification probabilities for the anomaly class generated by the classification model. P(x.sub.1) is the probability for the anomaly class at step i on the trajectory. In other words, the applied rule states that if the stepwise classification model predicts an anomaly with a high confidence of e.g. (>0.95) at any step, we might classify the whole work piece as anomalous. Alternatively, it is possible to learn a function to perform this classification if sufficient examples are available.
(31) The quality control system 1 according to the embodiment of the present invention is near real-time capable and can estimate the stepwise probabilities of e.g. one second of data (at 500 Hz sampling rate), in e.g. 420 ms. This means that the quality control system 1 according to the embodiment of the present invention is almost twice as fast as the data recording. The time includes the computation of the deviation features, and with an increased batch size, the efficiency of the quality control system does further rise due to computational efficiency of the underlying linear algebra libraries.
(32) The method and system 1 according to the embodiment of the present invention do not require any knowledge about the target process at hand, leading to a solution which is very general in its applicability and can for this reason scaled easily.
(33)
(34) In the illustrated exemplary embodiment, the data driven method comprises three main steps as shown in
(35) In a first step S1, for each production process step of the production process at least one deviation data signal for a target data signal of a target work piece with respect to reference data signals recorded for a corresponding production process step of a set of reference work pieces is computed. The computed deviation data signal comprises a number of deviation data samples for different production time steps t and/or path length steps l of the respective production process step.
(36) In a further main step S2, a stepwise anomaly detection is performed by a data processing of the at least one computed deviation data signal and a process type indicator PTI indicating a type of the production process step using a trained anomaly detection data model to calculate for each time step t or path length step l of the production process step an anomaly probability p that the respective time step t or path length step l is anomalous.
(37) In a final main step S3, the target work piece and/or the production process step is classified as being anomalous or not anomalous on the basis of the calculated anomaly probabilities of the time steps t or path length steps l of the production process step. Depending on the classification performed in step S3, a warning and/or a control signal can be generated.
(38) The data driven method according to the embodiment of the present invention can implicitly acquire a large amount of process-specific knowledge automatically through the set of reference work pieces. These references can provide a statistic on how a process can run and any significant deviation from these references can be considered as abnormal. Defining a set of reference work pieces is in a common machining process comparatively easy. A suitable auxiliary learning task can be defined that implicitly solves the target task of detecting abnormal work pieces but for which it is relatively easy to generate a sufficient amount of training data. Further, a (non-linear) decision boundary for distinguishing abnormal machining process steps for normal machining process steps can be learned from an independent offline data set that does not have to include any data from the target process. The quality control system 1 according to the embodiment of the present invention is not just able to detect if a work piece as a whole is abnormal, but can also point out to the regions on the work piece where the abnormalities were observed. In this way, a manual quality control cannot only be guided to the abnormal work pieces during production, but can also be guided to the hotspots of abnormality on the work piece in question. The quality control system 1 according to the embodiment of the present invention can be used for guided quality control, opposed to scheduled quality control, in an industrial manufacturing facility that is also scalable. The quality control system 1 and method according to the embodiment of the present invention can dramatically decrease the reaction time of a running production process to deficiencies occurring during the production process. Consequently, also the amount of abnormal products produced in the production process can be reduced significantly. Especially, for a high quantity and mass production process, this advantage becomes attractive since every work piece can be controlled based on high resolution data.
(39) Although the invention has been illustrated and described in greater detail with reference to the preferred exemplary embodiment, the invention is not limited to the examples disclosed, and further variations can be inferred by a person skilled in the art, without departing from the scope of protection of the invention.
(40) For the sake of clarity, it is to be understood that the use of “a” or “an” throughout this application does not exclude a plurality, and “comprising” does not exclude other steps or elements.