MACHINE LEARNING DEVICE, NUMERICAL CONTROL DEVICE AND MACHINE LEARNING METHOD FOR LEARNING THRESHOLD VALUE OF DETECTING ABNORMAL LOAD
20170357243 · 2017-12-14
Inventors
Cpc classification
G05B2219/39352
PHYSICS
G05B2219/49307
PHYSICS
International classification
Abstract
A machine learning device for learning a threshold value of detecting an abnormal load in a machine tool, includes a state observation unit, and a learning unit. The state observation unit observes a state variable obtained based on at least one of information about a tool, main spindle revolution rate, and amount of coolant of the machine tool, material of a workpiece, and moving direction, cutting speed, and cut depth of the tool, and the learning unit learns the threshold value of detecting an abnormal load based on training data created from an output of the state observation unit and data related to detection of an abnormal load in the machine tool and on teacher data.
Claims
1. A machine learning device for learning a threshold value of detecting an abnormal load in a machine tool, comprising: a state observation unit that observes a state variable obtained based on at least one of information about a tool, main spindle revolution rate, and amount of coolant of the machine tool, material of a workpiece, and moving direction, cutting speed, and cut depth of the tool; and a learning unit that learns the threshold value of detecting an abnormal load based on training data created from an output of the state observation unit and data related to detection of an abnormal load in the machine tool and on teacher data.
2. The machine learning device according to claim 1, wherein the learning unit comprises: an error calculation unit that calculates an error between the training data and the teacher data; and a learning model updating unit that updates a learning model for defining an error of a condition correlated to a detection of an abnormal load in the machine tool based on an output of the state observation unit and an output of the error calculation unit.
3. The machine learning device according to claim 1, wherein the training data is data related to a predicted load current value, which is a value of a prediction of a current through a load, and the teacher data is data related to a measured load current value, which is a value of an actual measurement of a current through the load.
4. The machine learning device according to claim 1, wherein the information about a tool comprises information on type, material, and diameter of the tool.
5. The machine learning device according to claim 1, wherein the machine learning device is on a cloud server.
6. The machine learning device according to claim 1, wherein the machine learning device is on a fog server.
7. The machine learning device according to claim 1, wherein the machine learning device is connectable to at least one other machine learning device, and mutually exchange or share an outcome of machine learning with the at least one other machine learning device.
8. The machine learning device according to claim 1, wherein the machine learning device comprises a neural network.
9. A numerical control device that comprises the machine learning device according to claim 1 and controls the machine tool, wherein the numerical control device detects an abnormal load in the machine tool based on the threshold value of detecting an abnormal load learned by the machine learning device.
10. The numerical control device according to claim 9, wherein the numerical control device judges that an abnormal load has been detected in the machine tool when a measured load current value, which is a value of an actual measurement of a current through a load, is greater than the sum of the threshold value of detecting an abnormal load and a predefined offset amount.
11. The numerical control device according to claim 10, wherein the numerical control device operates in phases comprising a learning phase for learning the threshold value of detecting an abnormal load and an application phase for controlling the machine tool to actually machine the workpiece, learning for the threshold value of detecting an abnormal load is performed in the learning phase, based on respective load current values for machining conditions, by performing prearranged exercise machining, and an abnormal load is detected in the machine tool in the application phase by comparing the learned threshold value of detecting an abnormal load with the measured load current value, which is a value of an actual measurement of a current through the load.
12. The numerical control device according to claim 11, wherein the learning for the threshold value of detecting an abnormal load is performed also in the application phase.
13. A machine learning method for learning a threshold value of detecting an abnormal load in a machine tool, comprising: observing a state variable obtained based on at least one of information about a tool, main spindle revolution rate, and amount of coolant of the machine tool, material of a workpiece, and moving direction, cutting speed, and cut depth of the tool; and learning the threshold value of detecting an abnormal load, based on training data created from the state variable and data related to detection of an abnormal load in the machine tool and on teacher data.
14. The machine learning method according to claim 13, wherein learning the threshold value of detecting an abnormal load comprises: calculating an error between the training data and the teacher data; and updating a learning model for defining an error of a condition correlated to a detection of an abnormal load in the machine tool based on the state variable and the calculated error between the training data and the teacher data.
15. The machine learning method according to claim 13, wherein the training data is data related to a predicted load current value, which is a value of a prediction of a current through a load, and the teacher data is data related to a measured load current value, which is a value of an actual measurement of a current through the load.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
DETAILED DESCRIPTION
[0031] An embodiment of a machine learning device, a numerical control device, and a machine learning method of the present invention will be described in detail below with reference to the attached drawings.
[0032] As illustrated in
[0033] For example, the CPU 111 controls the whole NC device 10 in accordance with a system program stored in the ROM 112. The RAM 113 stores various data or input/output signals, and the nonvolatile memory 114 stores, for example, positioning information, speed information, acceleration information, and information on positioning deviations, torque commands, load current values, and vibration values, pieces of above-mentioned information stored chronologically on the basis of time information as to when they are obtained.
[0034] The graphic control circuit 115 converts digital signals to display signals and feed the converted signals to the display device 116, and the keyboard 117 includes numeric keys, letter keys and the like for inputting various setting data. The spindle control circuit 118 receives movement commands for the spindles from the CPU 111 and outputs commands for the spindles to the servo amplifier 119, and the servo amplifier 119 in turn drives the servo motors 21 provided for the machine tool 20 in accordance with the movement commands from the spindle control circuit 118.
[0035] When the machining program is executed, the PMC 122 receives a T function signal (tool selection command) or the like via the bus 121 and processes this signal in accordance with the sequence program to obtain an operation command to control the machine tool 20. The PMC 122 receives a state signal from the machine tool 20 and transfers a certain input signal to the CPU 111. The function of the software key 123 varies, for example, depending on the system program or the like, and the I/O (interface) 124 transmits NC data to an external storage device or the like.
[0036]
[0037] The servo motors 21x, 21y, 21z, 21A, and 21B are respectively provided with position detection devices 22x, 22y, 22z, 22A, and 22B, and the position detection devices 22x, 22y, 22z, 22A, and 22B feedback positioning information of respective servo motors 21x, 21y, 21z, 21A, and 21B to the spindle drive control unit 11.
[0038] In accordance with the movement command issued by the numerical control unit that analyzes and processes the machining program of the NC device 10 and the positioning information Sa fed back from the servo motor 21, the spindle drive control unit 11 calculates speed information Sb, acceleration information Sc, positioning deviation sd, and torque command Se of each driving spindle, obtains load current value Sf of the servo amplifier, obtains vibration values Sg from the shock sensors respectively provided for spindle motors, and outputs these pieces of information to the data obtaining unit 12 together with the fed-back positioning information Sa.
[0039] The data obtaining unit 12 obtains the pieces of information from the spindle drive control unit 11 at certain intervals and at the same time. While obtaining the pieces of information from the spindle drive control unit 11 at certain intervals and at the same time, the data obtaining unit 12 may also obtain the number of the block of the machining program being executed that may be obtained in the NC device 10. Note that
[0040]
[0041] As illustrated in
[0042] The learning unit 32 receives observed state variables (Din, Din′) from the state observation unit 31, creates training data, and learns a threshold value of detecting an abnormal load on the basis of the training data and the teacher data Dt inputted from the outside. In other words, as illustrated in
[0043] The machine learning device 3 may be implemented by, for example, using an algorithm such as a neural network. General-purpose computers or processors may be used for the machine learning device 3 and GPGPU (General-Purpose calculating on Graphics Processing Units) or large-scale PC clustering, for example, may be applied to achieve high speed processing.
[0044] As for teacher data Dt, for example, when one and the same NC device is used to cause one and the same machine tool to perform identical tasks, labeled data obtained and stored till one day before the day of actually performing the task may be supplied to the error calculation unit 321 as teacher data. Alternatively, for example, data obtained by simulations and the like performed outside the NC device or labeled data from another NC device may be supplied to the error calculation unit 321 of the machine learning device 3 as teacher data Dt by using a memory card or via communication lines. Further, teacher data (labeled data) Dt may be stored in, for example, nonvolatile memory such as flash memory contained in the learning unit 32, and the labeled data stored in the nonvolatile memory may be used as it is by the learning unit 32.
[0045]
[0046] With reference to
[0047] First, as illustrated in
[0048] Note that the neural network 300 is illustrated as having three layers in
[0049] In the learning phase, it is preferable, for example, to machine a workpiece in prearranged exercise machining to learn a threshold value of detecting an abnormal load, on the basis of the load current values under various machining conditions. In the learning phase, for example, a predicted load current value, which is a value of a prediction of a current through the load, is outputted as an output W from the neural network 300 (machine learning device 3). The machine learning device 3 performs learning so that the training data related to the predicted load current value W may be in agreement with the teacher data D, which is the data related to the measured load current value, which is a value of an actual measurement of the current through the load D. In other words, where the loss function is y (Xn, W), D, the processes in the learning phase continue to be performed until the loss function converges to a certain value. Next, as illustrated in
[0050] As illustrated in
[0051] Hereinabove, learning for a threshold value for detecting an abnormal load performed in the learning phase may also be performed in the application phase as a matter of course. The teacher data to be given to the machine learning device 3 may be, for example, the measured load current value D as such, and may also be a measured load current value D obtained by a simulation or the like carried out outside the NC device, corresponding to inputs X1 to X6, or labeled data of other NC devices. Furthermore, the machine learning device according to the present embodiment 3 may be, for example, contained in the NC device 10 described with reference to
[0052] As is clear in
[0053]
[0054] In
[0055] When the machine learning devices 3a, 3b, 3c, . . . are respectively provided for NC devices 10a, 10b, 10c, . . . , the machine learning device 3a provided for the NC device 10a, for example, is made communicable via a network or the like with the machine learning device 3b provided for the separate NC device 10b, and may mutually exchange or share the outcome of machine learning with the machine learning device 3b provided for the NC device 10b. When a machine learning device 3 is provided for each of the fog servers 61 to 6n, the result of learning by each machine learning device 3 may be exchanged or shared among the machine learning devices, for example, via a network 5. As described above, the results of learning by the plurality of machine learning devices 3a, 3b, . . . (3) may be exchanged or shared among the machine learning devices, thereby improving learning effects.
[0056] Note that a plurality of cells 8 each including a plurality of the NC devices 10a, 10b, 10c, . . . (the machine tool 20a, 20b, 20c, . . . ) may be connected to the network 7, and the network need not consist of merely two layers 5 and 7, but may include three or more layers. Furthermore, the machine learning device 3 may be provided on the cloud server 4 and, needless to say, various modifications and alterations may be made to these configurations as appropriate when necessary.
[0057] All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.