The present invention relates to a machining state abnormality detection apparatus and a machine learning apparatus.
In machine tools, tool wear or breakage, machining load variation, a change in a machining environment such as cutting fluid, disturbance, or the like may cause a machining failure. There are cases where the remachining of a machined workpiece causes a machining failure. These cannot be said to be a normal machining state. It is desired that these machining state abnormalities are detected so that the occurrence of a machining failure can be determined before the occurrence thereof.
As a prior art technique for detecting a machining state abnormality, for example, Japanese Patent Application Laid-Open No. 2007-52797 discloses a technique that sets sampling points in accordance with a program and machining details in advance, and compares data acquired when machining is performed a plurality of times by calculating an average value and a standard deviation value for each sampling point to detect a machining state abnormality. Further, Japanese Patent Application Laid-Open No. 05-285788 discloses a technique that stores data on operation states when predetermined operation is normally performed in advance, causes predetermined operation to be performed when an inspection is performed, and compares data on an operation state in a normal state for this predetermined operation with monitoring data at the time of inspection to determine whether operation is normal or not.
However, in the technique disclosed in Japanese Patent Application Laid-Open No. 2007-52797, there is a problem in that sampling points need to be set in accordance with a specific program and machining details in advance and an abnormality cannot be detected independently of machining details and the like. Further, in the technique disclosed in Japanese Patent Application Laid-Open No. 05-285788, there is a problem in that predetermined operation needs to be executed at the time of inspection and this technique cannot be applied to abnormality detection at the time of machining.
Accordingly, an object of the present invention is to provide an abnormality detection apparatus and a machine learning apparatus which can detect a machining state abnormality of a machine tool irrespective of machining details.
In the abnormality detection apparatus of the present invention, physical quantities such as speeds and currents of motors, machine vibration, and audible sound during machining are acquired as chronologically successive discrete values to be used as waveform data for one machining cycle or a desired period. Machine learning is performed based on the waveform data acquired when a machine tool is normally operating. Based on the result of the learning, an abnormality state is detected from waveform data obtained when machining is newly performed, and an abnormality of the machining state is determined. Thus, the above-described problems are solved. As the waveform data dealt with in the present invention, chronologically successive discrete values acquired from a machine tool or a sensor or the like attached to the machine tool may be used without change, or data represented in other form in which the waveform can be directly or indirectly represented may be used, such as frequency component values obtained by performing spectral analysis on the waveform data. Further, in the abnormality detection apparatus of the present invention, the waveform data is associated with a program to identify a block in the program in which machining is abnormal. Moreover, in the abnormality detection apparatus of the present invention, a plurality of machine tools performing the same machining share a model, and this allows a machine tool performing abnormal machining to be detected.
An abnormality detection apparatus as one aspect of the present invention detects an abnormality of a machine tool configured to machine a workpiece, and includes a machine learning apparatus for learning waveform data concerning a physical quantity detected when the machine tool is normally operating.
A first form of the machine learning apparatus includes: a state observation section for observing the waveform data concerning the physical quantity detected when the machine tool is normally operating, as a state variable indicating a current environmental state; and a learning section for learning a feature of the waveform data concerning the physical quantity detected when the machine tool is normally operating, using the state variable.
The learning section may include a cluster construction section for constructing a cluster of the waveform data concerning the physical quantity detected when the machine tool is normally operating.
A second form of the machine learning apparatus includes: a state observation section for observing a state observation section for observing waveform data concerning the physical quantity detected when the machine tool is operating, as a state variable indicating a current environmental state; a determination data acquisition section for acquiring determination data indicating normality of operation of the machine tool; and a learning section for performing learning by associating the waveform data concerning the physical quantity detected when the machine tool is operating with the normality of the operation of the machine tool, using the state variable and the determination data.
The learning section may include an error calculation section for calculating an error between a correlation model for deriving the normality of the operation of the machine tool from the waveform data concerning the physical quantity detected when the machine tool is operating and a correlation feature recognized from teacher data prepared in advance, based on the state variable and the determination data, and a model update section for updating the correlation model to reduce the error.
In the first and second forms of the machine learning apparatus, the learning section may have a multi-layer structure to calculate the state variable. The abnormality detection apparatus may further include an output utilization section for outputting an operation state of the machine tool based on a learning result by the learning section and the state variable obtained when the machine tool is operating. The learning section may learn waveform data concerning a physical quantity which is detected when operation is being normally performed and which is common to a plurality of machine tools, using the state variable obtained for each of the plurality of machine tools.
The first form of the machine learning apparatus as one aspect of the present invention learns waveform data concerning a physical quantity detected when a machine tool configured to machine a workpiece is normally operating, and includes: a state observation section for observing waveform data concerning a physical quantity detected when the machine tool is normally operating, as a state variable indicating a current environmental state; and a learning section for learning a feature of the waveform data concerning the physical quantity detected when the machine tool is normally operating, using the state variable.
The second form of the machine learning apparatus as one aspect of the present invention learns waveform data concerning a physical quantity detected when a machine tool configured to machine a workpiece is normally operating, and include: a state observation section for observing waveform data concerning a physical quantity detected when the machine tool is operating, as a state variable indicating a current environmental state; a determination data acquisition section for acquiring determination data indicating normality of operation of the machine tool; and a learning section for performing learning by associating the waveform data concerning the physical quantity detected when the machine tool is operating with the normality of the operation of the machine tool, using the state variable and the determination data.
The present invention enables a machining state abnormality of a machine tool in general machining operation to be detected without causing the machine tool to perform specific operation or without specific machining details.
As indicated by functional blocks in
The state observation section 22 can be configured as, for example, one function of a CPU of a computer. Alternatively, the state observation section 22 can be configured as, for example, software that causes a CPU of a computer to work. The waveform data S1 of the state variable S that is observed by the state observation section 22 can be acquired by, for example, a plurality of measurement apparatuses (not shown) attached to a machine tool. The waveform data S1 include a current value of a spindle motor, a speed value of the spindle motor, a current value of a servo motor, a speed value of the servo motor, a vibration value detected from a machine tool, audible sound, and the like as illustrated in, for example,
A current value and a speed value of a motor as waveform data S1 can be acquired as feedback values from a pulsecoder and the like attached to an amplifier and a motor. A vibration value as waveform data S1 can be acquired by a measurement apparatus such as an acceleration sensor, an AE sensor, a speed sensor, or an eddy-current sensor. Audible sound as waveform data S1 can be acquired using a measurement apparatus such as a microphone.
The state observation section 22 can acquire observed values as chronologically successive discrete values obtained by sampling the observed values with a predetermined sampling period Δt, and use the values as waveform data S1 as illustrated in, for example,
As described above, during a period in which the machine learning apparatus 20 of the abnormality detection apparatus 10 is learning, a plurality of measurement apparatuses detect current values and speed values of motors, vibration value, audible sound, and the like in machining by a machine tool normally operating in the environment.
The learning section 26 can be configured as, for example, one function of a CPU of a computer. Alternatively, the learning section 26 can be configured as, for example, software that causes a CPU of a computer to work. The learning section 26 learns waveform data indicating values detected in machining by a machine tool normally operating in accordance with a desired learning algorithm generically called machine learning. The learning section 26 can repeatedly execute learning based on a data collection including the aforementioned state variable S with respect to machining by a machine tool normally operating.
By repeating such a learning cycle, the learning section 26 can configure implicit features of a data collection of waveform data for one cycle or a desired period concerning values detected from a machine tool normally operating in machining as clusters. When the learning algorithm is started, the clusters of the waveform data S1 is substantially unknown. The learning section 26 gradually recognizes features and configures clusters as the learning section 26 is learning. When the clusters of the waveform data S1 are interpreted to some reliable level, learning results repeatedly outputted by the learning section 26 can be used to determine whether the current state is a state in which machining is performed by a machine tool normally operating.
As described above, the machine learning apparatus 20 of the abnormality detection apparatus 10 is configured such that the learning section 26 learns waveform data concerning values detected from a machine tool normally operating in accordance with a machine learning algorithm using the state variable S observed by the state observation section 22. The waveform data S1 concerning values detected from a machine tool normally operating include temporal change in values detected from the machine tool normally operating, and also include relationships between values, such as speed values and current values of motors and a vibration value, detected at the same time. Accordingly, with the machine learning apparatus 20 of the abnormality detection apparatus 10, the fact that machining operation by a machine tool is within the range of normal operations can be automatically and correctly determined using learning results of the learning section 26, not by calculation or estimate.
If the fact that machining operation by a machine tool is within the range of normal operations can be automatically determined not by calculation or estimate, whether the current machining operation of a machine tool is normal or not can be rapidly determined by only acquiring waveform data (waveform data S1) concerning values acquired from the current machine tool.
In one modified example of the machine learning apparatus 20 of the abnormality detection apparatus 10, using a state variable S obtained for each of a plurality of machine tools having the same machine configuration, the learning section 26 can learn waveform data concerning values detected when each machine tool is normally operating. With this configuration, the quantity of a data collection including the state variable S which is obtained during a predetermined period can be increased. Accordingly, using a more diverse data collection as an input, the speed and reliability of the learning of waveform data concerning values detected from machine tools normally operating can be improved.
In the machine learning apparatus 20 having the above-described configuration, the learning algorithm executed by the learning section 26 is not particularly limited. For example, learning algorithms publicly known as machine learning such as unsupervised learning and neural networks can be employed.
Unsupervised learning is a method in which with a huge amount of inputted data sets given in advance, learning is performed by performing the classification or the like of each data set based on an attribute of each piece of data contained in the data set and extracting a feature of the data set. A feature of a data set here is a distribution state of each piece of data in the space of the data set with respect to a correlative pattern of time-series variation of a data item value of each piece of data included in the data set. A feature of each piece of data can be interpreted based on the feature of the data set.
In the machine learning apparatus 20 of the abnormality detection apparatus 10 shown in
When the aforementioned unsupervised learning is performed, a neural network can be used.
The neuron shown in
y=∫
k(Σi=1nxiwi−θ) (1)
The three-layer neural network shown in
In
In
In the machine learning apparatus 20 of the abnormality detection apparatus 10, using the state variable S as the input x, by the learning section 26 performing multi-layer structure calculation in accordance with the above-described neural network, a cluster to which waveform data S1 concerning values detected from the machine tool normally operating belong and the distance (result y) from the center of the cluster can be outputted. It should be noted that operation modes of the neural network include a learning mode and a value prediction mode. For example, weights w are learned using a learning data set in the learning mode, and the value of an action can be determined using the learned weights w in the value prediction mode. It should be noted that, in the value prediction mode, detection, classification, reasoning, and the like can also be performed.
The above-described configuration of the abnormality detection apparatus 10 can be described as a machine learning method (or software) that a CPU of a computer executes. This machine learning method is a machine learning method for learning waveform data S1 concerning values detected when the machine tool is normally operating, and includes a step of observing waveform data S1 concerning values detected when the machine tool is normally operating as a state variable S indicating the current environmental state in which machining by the machine tool is performed, by a CPU of a computer, and a step of constructing a cluster of waveform data S1 concerning values detected when the machine tool is normally operating to learn the waveform data S1.
The machine learning apparatus 50 of the abnormality detection apparatus 40 includes software (arithmetic algorithm or the like) and hardware (a CPU of a computer or the like) for outputting a determination as to whether the current operation of the machine tool is normal operation to an operator based on the learned waveform data concerning values detected when the machine tool is normally operating, in addition to software (learning algorithm or the like) and hardware (a CPU of a computer or the like) for learning waveform data S1 concerning values detected when the machine tool is normally operating by machine learning by itself. The machine learning apparatus 50 of the abnormality detection apparatus 40 can be configured such that one common CPU executes entire software including a learning algorithm, an arithmetic algorithm, and the like.
An output utilization section 52 can be configured as, for example, one function of a CPU of a computer. Alternatively, the output utilization section 52 can be configured as, for example, software that causes a CPU of a computer to work. The output utilization section 52 outputs an alarm value A indicating whether the current operation of the machine tool is normal operation or not to an operator through screen display with a display (not shown) of the abnormality detection apparatus 40, a lamp (not shown), audio output from a speaker (not shown), or the like, based on waveform data concerning values detected when the machine tool is normally operating, the waveform data learned by the learning section 26. The output utilization section 52 displays the operation state of the machine tool, and the operator can determine whether or not a workpiece has been machined by normal operation based on the displayed operation state.
The machine learning apparatus 50 of the abnormality detection apparatus 40 having the above-described configuration has effects equivalent to those of the aforementioned machine learning apparatus 20.
In the machining system 70 having the above-described configuration, the machine tool 60 including the abnormality detection apparatus 40, which is one of the machine tools 60 and 60′, can automatically and correctly determine whether the machine tools 60 and 60′ are normally operating with respect to waveform data concerning values detected from the machine tools 60 and 60′ using learning results of the learning section 26, not by calculation or estimate. Further, the abnormality detection apparatus 40 of at least one machine tool 60 can be configured to learn waveform data concerning values detected from machine tools normally operating, the waveform data being common to all of the machine tools 60 and 60′, based on a state variable S obtained for each of other machine tools 60 and 60′ so that learning results may be shared by all of the machine tools 60 and 60′. Accordingly, with the machining system 70, using a more diverse data collection (including a state variable S) as inputs, the speed and reliability of the learning of waveform data concerning values detected from machine tools normally operating can be improved.
In the machining system 70′ having the above-described configuration, the machine learning apparatus 50 (or 20) learns waveform data concerning values detected from machine tools normally operating, the waveform data being common to all of the machine tools 60′, based on a state variable S obtained for each of the machine tools 60′, and can automatically and correctly determine whether or not the machine tool 60′ is normally operating with respect to waveform data concerning values detected from the machine tools 60′ using the learning results, not by calculation or estimate.
The machining system 70′ can have a configuration in which the machine learning apparatus 50 (or 20) exists on a cloud server prepared on the network 72. This configuration allows a necessary number of machine tools 60′ to be connected to the machine learning apparatus 50 (or 20) when necessary, irrespective of the respective locations of the machine tools 60′ or timing.
Operators working with the machining systems 70 and 70′ can determine whether the achievement of the learning of waveform data concerning values detected from machine tools normally operating by the machine learning apparatus 50 (or 20) (that is, the reliability of determination on operation normality based on waveform data concerning values detected from machine tools) has reached a required level or not, at an appropriate time after the machine learning apparatus 50 (or 20) has started learning.
While embodiments of the present invention have been described above, the present invention is not limited to the above-described exemplary embodiments, and can be carried out in various aspects by making appropriate modifications thereto.
For example, learning algorithms executed by the machine learning apparatuses 20 and 50, an arithmetic algorithm executed by the machine learning apparatus 50, control algorithms executed by the abnormality detection apparatuses 10 and 40, and the like are not limited to the above-described ones, and various algorithms can be employed.
As learning algorithms executed by the machine learning apparatuses 20 and 50, supervised learning can also be used.
In the machine learning apparatus 20 of the abnormality detection apparatus 10 shown in
An initial value of the correlation model M is expressed with the correlation with respect to the state variable S and determination data D simplified, for example, by a linear function, and is given to the learning section 26 before the start of supervised learning. The teacher data T can be configured using, for example, empirical values accumulated by recording determinations as to the normality of operation of the machine tool made in past machining by the machine tool by an expert operator, and are given to the learning section 26 before the start of supervised learning. The error calculation section 32 recognizes a correlation feature implying the correlation between waveform data concerning values detected from a machine tool performing machining operation and a determination as to the normality of operation of the machine tool based on a huge amount of teacher data T given to the learning section 26, and finds an error E between the correlation feature and a correlation model M corresponding to the state variable S in the current state and determination data D. The model update section 34 updates the correlation model M so that the error E may be reduced, in accordance with, for example, predetermined update rules.
In the next learning cycle, using the state variable S and determination data D changed by testing machining operation by the machine tool in accordance with the updated correlation model M, the error calculation section 32 finds an error E with respect to the correlation model M corresponding to the changed state variable S and determination data D, and the model update section 34 updates the correlation model M again. This gradually reveals the correlation between the current environmental state (waveform data concerning values detected from a machine tool that is performing machining operation) that has been unknown and a determination on the current environmental state (determination on operation normality of the machine tool).
Number | Date | Country | Kind |
---|---|---|---|
2017-050080 | Mar 2017 | JP | national |