This application is based on and claims the benefit of priority from Japanese Patent Application No. 2017-054266, filed on 21 Mar. 2017, the content of which is incorporated herein by reference.
The present invention relates to a machine learning device and a thermal displacement compensation device used for a machine tool.
One of the main factors of a machining error in a machine tool has been relative thermal displacement caused between a tool and a workpiece by thermal expansion of a machine element in the machine tool. Specific examples of a component in the machine tool include a spindle, a spindle unit, a bed, a column, a work table, and a tool. These components, especially the spindle, are thermally deformed by generation of heat by rotation of the spindle, generation of heat from a spindle drive motor, absorption of heat by a coolant supplied from a coolant supplier to the tool, and absorption of heat by a lubrication oil supplied from a lubrication oil supplier to a spindle bearing, for example. As a result, in some cases, relative thermal displacement is caused between the tool and the workpiece.
According to a technique conventionally used in response to this issue, a command value for a numerical controller for control of a machine tool is compensated in consideration of influence by thermal expansion of a spindle caused by various heat sources such as a heat source near the spindle in the machine tool and outside air temperature, thereby increasing machine accuracy (see Patent Document 1, for example).
However, Patent Document 1 merely mentions installation of multiple temperature sensors as a method of acquiring a characteristic value about the machine tool. Hence, the technique of Patent Document 1 does not ensure highly accurate compensation.
Further, it takes time for heat measured by the temperature sensor to be transferred and to cause thermal expansion. Hence, it is required to evaluate time delay for highly accurate compensation, leading to a complicated compensation formula.
Additionally, a structure or a member changes depending on the machine on which numerical controllers are to be installed. Hence, an optimum thermal displacement compensation formula is changed in response to a machine type.
Additionally, an external heat source is changed by the environment of use such as an ambient heat generation source or the presence of a gateway, for example. This necessitates change in the appropriate location for a temperature sensor, thereby necessitating change in an optimum compensation formula. Further, increasing the number of measurement instruments for locating the temperature sensor at an appropriate position leads to an increase in production cost and maintenance cost.
In view of the foregoing circumstances, the present invention is intended to provide a machine learning device and a thermal displacement compensation device capable not only of deriving a highly accurate compensation formula but also achieving highly accurate compensation itself at low cost.
(1) A machine learning device according to the present invention is a machine learning device (machine learning device 10, 10A, 10B described later, for example) that optimizes, by machine learning, a calculation formula used for estimating the thermal displacement of a machine element to be thermally expanded in a machine tool (machine tool 35 described later, for example) based on a measured data group containing temperature data about the machine element and its surroundings and/or operating state data about the machine element. The machine learning device comprises: a measured data acquisition unit (measured data acquisition unit 11 described later, for example) that acquires the measured data group; a thermal displacement acquisition unit (thermal displacement acquisition unit 12 described later, for example) that acquires a thermal displacement actual measured value about the machine element; a storage unit (storage unit 13 described later, for example) that uses the measured data group acquired by the measured data acquisition unit as input data, uses the thermal displacement actual measured value about the machine element acquired by the thermal displacement acquisition unit as a label, and stores the input data and the label in association with each other as teaching data; and a calculation formula learning unit (calculation formula learning unit 14 described later, for example) that performs machine learning based on the measured data group and the thermal displacement actual measured value about the machine element, thereby setting a thermal displacement estimation calculation formula used for calculating the thermal displacement of the machine element based on the measured data group. The calculation formula learning unit sets the thermal displacement estimation calculation formula based on a difference between a thermal displacement estimated value about the machine element calculated by substituting the measured data group in a predetermined period stored as the teaching data in the storage unit into the thermal displacement estimation calculation formula and the thermal displacement actual measured value about the machine element in the predetermined period stored as the label in the storage unit.
(2) In the machine learning device described in (1), the measured data acquisition unit (measured data acquisition unit 11 described later, for example) may further acquire a second measured data group by adding measured data to the measured data group and/or by excluding measured data from the measured data group. The measured data acquisition unit may store the second measured data group as input data into the storage unit (storage unit 13 described later, for example). The calculation formula learning unit (calculation formula learning unit 14 described later, for example) may further set a second thermal displacement estimation calculation formula used for calculating the thermal displacement of the machine tool based on the second measured data group.
(3) The machine learning device described in (2) may further comprise a contribution determination unit (contribution determination unit 15 described later, for example) that determines a contribution to estimation of the thermal displacement of measured data in the measured data group. The contribution determination unit may determine the contribution of measured data as a contribution calculation target based on a difference between a first error and a second error. The first error is an error between a first thermal displacement estimated value and a thermal displacement actual measured value. The first thermal displacement estimated value is calculated using a first thermal displacement estimation calculation formula set based on a measured data group containing the measured data as a contribution calculation target. The second error is an error between a second thermal displacement estimated value and a thermal displacement actual measured value. The second thermal displacement estimated value is calculated using the second thermal displacement estimation calculation formula set based on the second measured data group from which the measured data as a contribution calculation target has been excluded.
(4) The machine learning device described in (3) may further comprise an optimized measured data selection unit (optimized measured data selection unit 16 described later, for example) that selects an optimized measured data group containing a combination of measured data pieces belonging to a measured data group currently acquired and achieving an optimum degree of accuracy using a predetermined number of measured data pieces. The optimized measured data selection unit may select a first measured data group by excluding measured data with the smallest contribution as determined by the contribution determination unit from the measured data group currently acquired. The optimized measured data selection unit may select an (i+1)-th measured data group by excluding measured data with the smallest contribution as determined by the contribution determination unit from an i-th (1≤i) measured data group, and make this selection repeatedly, thereby selecting the optimized measured data group containing the predetermined number of measured data pieces.
(5) In the machine learning device described in (1) to (4), the thermal displacement estimation calculation formula may use a first-order lag element in measured data in the measured data group.
(6) In the machine learning device described in (1) to (5), the thermal displacement estimation calculation formula may use a time shift element in measured data in the measured data group.
(7) In the machine learning device described in (1) to (6), the thermal displacement estimation calculation formula may be set based on machine learning using a neural network.
(8) In the machine learning device described in (1) to (6), the calculation formula learning unit (calculation formula learning unit 14 described later, for example) may set the thermal displacement estimation calculation formula based on machine learning using L2 regularization multiple regression analysis.
(9) In the machine learning device described in (1) to (6), the calculation formula learning unit (calculation formula learning unit 14 described later, for example) may set the thermal displacement estimation calculation formula using sparse regularization learning.
(10) The machine learning device described in (9) may further comprise a detection unit (detection unit 17 described later, for example) that detects measured data in the measured data group that do not contribute to an increase in the accuracy of thermal displacement estimation. The detection unit may detect the measured data based on the thermal displacement estimation calculation formula set by sparse regularization learning.
(11) The machine learning device described in (1) to (10) may be incorporated in a controller (controller 30 described later, for example) for the machine tool (machine tool 35 described later, for example).
(12) A thermal displacement compensation device according to the present invention comprises: a compensation value calculation unit (compensation value calculation unit 22 described later, for example), where based on the thermal displacement estimation calculation formula set by the machine learning device described in (1) to (11) (machine learning device 10, 10A, 10B described later, for example), the compensation value calculation unit calculates a compensation value corresponding to the thermal displacement of the machine element calculated from the measured data group; and a compensation unit (compensation unit 24 described later, for example) that compensates the machine position of the machine element based on the compensation value about the machine element calculated by the compensation value calculation unit.
(13) The thermal displacement compensation device described in (12) may be incorporated in the controller (controller 30 described later, for example) for the machine tool (machine tool 35 described later, for example).
According to the present invention, not only highly accurate derivation of a compensation formula but also highly accurate compensation itself can be achieved at low cost.
A first embodiment of the present invention will be described below based on the drawings.
<Configuration of Thermal Displacement Compensation System 100>
The configuration of a thermal displacement compensation system 100 according to this embodiment is described first. As shown in
One controller 30 and one machine tool 35 form a pair and are connected in a manner that allows communication therebetween. Multiple pairs each including one controller 30 and one machine tool 35 may be installed in the same factory or different factories, for example.
The machine learning device 10, the thermal displacement compensation device 20, the controller 30, and the machine tool 35 are connected to the network 40 and are allowed to communicate with each other through the network 40. For example, the network 40 is a local area network (LAN) constructed in a factory, the Internet, a public telephone network, or a combination of these networks. There is no particular limitation on the communication through the network 40 in terms of a specific communication system or in terms of whether the communication is established via wires or without wires. The thermal displacement compensation device 20 and the controller 30 may not be configured to communicate with each other using the network 40 but may be configured to be directly connected through a connection unit. The machine learning device 10 and the controller 30 may be directly connected through a connection unit.
The functions of these devices in the thermal displacement compensation system 100 will be described next based on
As shown in
As shown in
As shown in
The measured data acquisition unit 11 acquires a measured data group from the controller 30. The measured data mentioned herein may contain temperature data about a machine element in the machine tool 35 and its surroundings measured by a temperature sensor. The measured data may also contain operating state data about a machine element in the machine tool 35, more specifically, a physical value such as a spindle speed, the flow rate of a coolant to the spindle, or the amount of a lubrication oil to the spindle bearing in the machine tool 35 measured at a place where a temperature sensor cannot be attached, for example.
The thermal displacement acquisition unit 12 acquires a thermal displacement actual measured value about a machine element in the machine tool 35 measured with a probe, for example.
The storage unit 13 uses the measured data group acquired by the measured data acquisition unit 11 as input data, uses the thermal displacement actual measured value about the machine element acquired by the thermal displacement acquisition unit 12 as a label, and stores the input data and the label in association with each other as teaching data.
The calculation formula learning unit 14 performs machine learning based on the measured data group and the thermal displacement actual measured value about the machine element, thereby setting a thermal displacement estimation calculation formula used for calculating the thermal displacement of the machine element based on the measured data group. More specifically, the calculation formula learning unit 14 sets the thermal displacement estimation calculation formula as follows. Due to the presence of multiple independent variables in the measured data group, the calculation formula learning unit 14 performs multiple regression of a generalized linear model. Based on a difference between a thermal displacement estimated value about the machine element calculated by substituting the measured data group in a predetermined period stored as teaching data in the storage unit 13 into the thermal displacement estimation calculation formula to be obtained and the thermal displacement actual measured value about the machine element in the predetermined period stored as a label in the storage unit 13, the calculation formula learning unit 14 sets the thermal displacement estimation calculation formula so as to minimize this difference by the least-square method, for example. More specifically, on the assumption that measured data (input data) is X1, X2, . . . , Xn, a thermal displacement estimated value about each component forming the machine tool 35 such as a spindle, a bed, or a column is f (X1, X2, . . . , Xn) (n is a natural number), and a thermal displacement actual measured value is YL, the calculation formula learning unit 14 sets the thermal displacement estimation calculation formula that minimizes a difference between f (X1, X2, . . . , Xn) and YL.
As shown in
<Operation of Machine Learning>
The operation of machine learning in the thermal displacement compensation system 100 according to this embodiment will be described next.
In step S11, the measured data acquisition unit 11 of the machine learning device 10 acquires a measured data group from the controller 30. More specifically, the measured data acquisition unit 11 acquires temperature data about a machine element in the machine tool 35 and its surroundings and/or operating state data. The operating state data may contain a spindle speed, the flow rate of a coolant, and the flow rate of a lubrication oil, for example. The measured data to be acquired may not be data about a temperature itself but may be data about a temperature change, for example. The data about a temperature change to be acquired may be data about a temperature change from an initial temperature or may be data about a temperature change from a previously measured temperature to a currently measured temperature. The operating state data may also contain the amount of heat absorbed by a coolant or the amount of heat absorbed by a lubrication oil.
In step S12, the thermal displacement acquisition unit 12 of the machine learning device 10 acquires a thermal displacement actual measured value about the machine element in the machine tool 35 measured with a probe, for example. As a specific example, the thermal displacement acquisition unit 12 may measure a component in an X-axis direction, a component in a Y-axis direction, and a component in a Z-axis direction of the thermal displacement, and acquire a group of resultant measured values as the actual measured value.
In step S13, the storage unit 13 of the machine learning device 10 uses the measured data group acquired by the measured data acquisition unit 11 as input data, uses the thermal displacement actual measured value about the machine element acquired by the thermal displacement acquisition unit 12 as a label, and stores the input data and the label in a pair associated with each other as teaching data.
In step S14, the calculation formula learning unit 14 of the machine learning device 10 performs machine learning based on the teaching data. Specific exemplary methods of the machine learning will be described later.
In step S15, the calculation formula learning unit 14 of the machine learning device 10 determines whether to finish the machine learning or to repeat the machine learning. A condition for finishing the machine learning can be determined arbitrarily. If the machining learning is determined to be finished (S15: YES), the flow goes to step S16. If the machining learning is determined to be repeated (S15: NO), the flow returns to step S11 and the same processing is repeated.
In step S16, the machine learning device 10 transmits a thermal displacement estimation calculation formula set by the machine learning having been performed before step S16 to each thermal displacement compensation device 20 through the network 40.
The storage unit 13 of the machine learning device 10 stores the thermal displacement estimation calculation formula. By doing so, if a thermal displacement estimation calculation formula is requested from a newly installed thermal displacement compensation device 20, the stored thermal displacement estimation calculation formula can be transmitted to this new thermal displacement compensation device 20. If new teaching data is acquired, further machine learning can be performed with the new teaching data.
<Exemplary Method of Machine Learning>
As described above, in step S14 of
As a first method, a coefficient that minimizes a square error between a thermal displacement estimated value and a thermal displacement actual measured value can be inferred and set by machine learning using the least-square method. This thermal displacement estimated value is calculated using a thermal displacement estimation calculation formula Y=a1X1+a2X2+ . . . anXn based on multiple regression of a generalized linear model. Here, Y is a thermal displacement estimated value, X1, X2, . . . , Xn are corresponding measured data values, and a1, a2, . . . , an are coefficients determined by the multiple regression. More specifically, assuming that measured data is Xk and a label is YL,
a group of coefficients ak is determined that minimizes a total of values about multiple teaching data pieces obtained from the following formula 1. In this formula, k is a natural number, n is any integer, and k≤n.
[Formula 1]
(YL−Y)=(YL−Σk=1nakXk)2 (1)
According to the first method, not normal multiple regression analysis but multiple regression analysis giving consideration to an L2 regularization term is feasible. Specifically, a coefficient that minimizes a value obtained by adding the L2 regularization term to a square error between a thermal displacement estimated value calculated using the thermal displacement estimation calculation formula Y=a1X1+a2X2+ . . . anXn and a thermal displacement actual measured value can be inferred and set by machine learning. Like in the foregoing case, Y is a thermal displacement estimated value, X1, X2, . . . , Xn are corresponding measured data values, and a1, a2, . . . , an are coefficients determined by the multiple regression giving consideration to the L2 regularization term. More specifically, assuming that measured data is Xk and a label is YL,
a group of coefficients ak is determined that minimizes a total of values about multiple teaching data pieces obtained from the following formula 2. In this formula, n is a natural number and means the number of measurement points of teaching data used for learning. Further, λ is a hyperparameter, which is a parameter that is set in advance before machine learning begins.
[Formula 2]
(YL−Y)2+Σk=1n(ak)2=(YL−Σk=1nXk)2+λΣk=1n(ak)2 (2)
According to the first method, sparse regularization is feasible. For example, multiple regression analysis giving consideration to an L1 regularization term is feasible. More specifically, assuming that measured data is Xk and a label is YL,
a group of coefficients ak is determined that minimizes a total of values about multiple teaching data pieces obtained from the following formula 3. In this formula, n is a natural number and means the number of measurement points of teaching data used for learning. Further, λ is a hyperparameter, which is a parameter that is set in advance before machine learning begins. Setting λ at a larger value achieves the effect of increasing the number of terms in which ak is zero.
[Formula 3]
(YL−Y)2+λΣk=1n|ak|=(YL−Σk=1nakXk)2+λΣk=1n|ak| (3)
Here, L2 regularization and L1 regularization are used as exemplary regularizations. However, the regularizations are given as examples and not limited to the above.
According to the first method, a first-order lag element in measured data or a time shift element in the measured data is usable as input data for implementation of the aforementioned machine learning. More specifically, assuming that a thermal displacement estimated value at time t is Y(t) and a measured value from a sensor Xk at the time t is Xk(t), a thermal displacement estimation calculation formula using a first-order lag element in measured data is expressed as follows:
[Formula 4]
Y(t)=Σk=1nak(Στ=0T
In this way, a coefficient ak, a coefficient bk, and a coefficient Tk are determined by machine learning. In this formula, Δtk is sampling time of a measured value from the sensor Xk.
Assuming that a thermal displacement estimated value at the time t is Y(t) and a measured value from the sensor Xk at the time t is Xk(t), a thermal displacement estimation formula using a time shift element in the measured data is expressed as follows:
[Formula 5]
Y(t)=Σk=1nΣτ=0T
In this way, a coefficient ak, and a coefficient Tk are determined by machine learning. In this formula, Δtk is sampling time of a measured value from the sensor Xk.
Various regularization terms such as an L1 regularization term and an L2 regularization term may be added to learning while a first-order lag element in measured data or a time shift element in the measured data is used. In this case, regularization terms corresponding to various parameters such as ak, akτ, bk, and Tk are added.
As a second method, machine learning using a known neural network is feasible. For example, a single-layer neural network such as that shown in
Multi-layer neural networks such as those shown in
<Operation of Compensation>
The operation of compensation in the thermal displacement compensation system 100 according to this embodiment will be described next.
In step S21, based on a thermal displacement estimation calculation formula set by the machine learning device 10, the compensation value calculation unit 22 calculates a compensation value corresponding to the thermal displacement of a machine element calculated from a measured data group.
In step S22, the compensation unit 24 compensates the machine position of the machine element based on the compensation value about the machine element calculated by the compensation value calculation unit 22, thereby offsetting the thermal displacement. Unlike the illustration in
<Effect Achieved by First Embodiment>
As described above, in this embodiment, the machine learning device 10 is capable of optimizing a thermal displacement estimation calculation formula by machine learning used for estimating the thermal displacement of a machine element to be thermally expanded in the machine tool 35 based on a measured data group containing temperature data about the machine element and its surroundings and/or operating state data about the machine element.
Temperature change at each point where measured data is to be acquired is delayed by heat transfer. Then, the temperature change is reflected in thermal displacement. Thus, the machine learning technique allowing for the delay is effective.
A thermal displacement estimation calculation formula and a compensation formula based on the thermal displacement estimation calculation formula can be provided with increased accuracy by means of tuning in response to the operating environment of the machine tool 35 or the type of the machine tool 35.
A second embodiment of the present invention will be described below based on the drawings.
<Configuration of Thermal Displacement Compensation System 100A>
As shown in
The contribution determination unit 15 determines a contribution to estimation of the thermal displacement of each measured data in a measured data group. More specifically, the contribution determination unit 15 determines the contribution of measured data as a contribution calculation target based on a difference between a first error (absolute value) and a second error (absolute value). The first error is an error between a first thermal displacement estimated value and a thermal displacement actual measured value. The first thermal displacement estimated value is calculated using a first thermal displacement estimation calculation formula set by machine learning based on a first measured data group containing the measured data as a contribution calculation target. The second error is an error between a second thermal displacement estimated value and a thermal displacement actual measured value. The second thermal displacement estimated value is calculated using a second thermal displacement estimation calculation formula set by machine learning based on a second measured data group from which the measured data as a contribution calculation target has been excluded. More specifically, the contribution of the measured data as a contribution calculation target can be determined to be larger with a larger difference between the first error and the second error. A difference between the first error and the second error is preferably determined based on a group of the first errors and a group of the second errors corresponding to multiple groups of teaching data. In this case, an average or a maximum of differences between the first errors and the second errors is usable, for example.
The optimized measured data selection unit 16 selects an optimized measured data group containing a combination of a predetermined number of measured data pieces belonging to a measured data group currently acquired and from which measured data of a small contribution has been excluded, for example. “The number of measured data pieces” mentioned herein means the number of types of measured data pieces differing between sensors used for obtaining the measured data pieces, for example. More specifically, the optimized measured data selection unit 16 selects a first measured data group by excluding measured data with the smallest contribution as determined by the contribution determination unit 15 from the measured data group currently acquired. Next, the optimized measured data selection unit 16 selects an (i+1)-th measured data group by excluding measured data with the smallest contribution as determined by the contribution determination unit 15 from an i-th (1≤i) measured data group. The optimized measured data selection unit 16 makes this selection repeatedly to select the optimized measured data group containing the predetermined number of measured data pieces. Here, i is a natural number.
<Operation of Contribution Determination>
The operation of determining the contribution of measured data in a measured data group by the machine learning device 10A will be described next.
In step S31, the calculation formula learning unit 14 sets the first thermal displacement estimation calculation formula based on the first measured data group containing all measured data pieces and a thermal displacement actual measured value by following the flow illustrated in
In step S32, the contribution determination unit 15 calculates a first thermal displacement estimated value using the first thermal displacement estimation calculation formula.
In step S33, the contribution determination unit 15 calculates the first error (absolute value) showing an error between the first thermal displacement estimated value and the thermal displacement actual measured value.
In step S34, the calculation formula learning unit 14 sets the second thermal displacement estimation calculation formula based on the second measured data group from which measured data as a contribution calculation target has been excluded and a thermal displacement actual measured value by following the flow illustrated in
In step S35, the contribution determination unit 15 calculates the second thermal displacement estimated value using the second thermal displacement estimation calculation formula.
In step S36, the contribution determination unit 15 calculates the second error (absolute value) showing an error between the second thermal displacement estimated value and the thermal displacement actual measured value.
Steps S31 to S36 may be executed in parallel as shown in
In step S37, the contribution determination unit 15 determines the contribution of the measured data as a contribution calculation target based on a difference between the first error and the second error. More specifically, the contribution of the measured data as a contribution calculation target can be determined to be larger with a larger difference between the first error and the second error.
<Operation of Optimized Measured Data Group Selection>
Described next is the operation by the machine learning device 10A for selecting an optimized measured data group containing a predetermined number of measured data pieces by excluding measured data of a small contribution.
In step S41, the optimized measured data selection unit 16 sets the number of measured data pieces to be ultimately used.
The number of measured data pieces to be ultimately used is set to be smaller than the original number of measured data pieces.
In step S42, the contribution determination unit 15 determines the contribution of each measured data forming a measured data group currently acquired by following the flow illustrated in
In step S43, the optimized measured data selection unit 16 excludes measured data with the smallest contribution from the measured data group currently acquired, and then determines the resultant measured data group to be the “first measured data group.”
In step S44, the optimized measured data selection unit 16 sets an initial value 1 for i.
In step S45, the optimized measured data selection unit 16 selects an i-th measured data group.
In step S46, the contribution determination unit 15 determines the contribution of each measured data forming the i-th measured data group by following the flow illustrated in
In step S47, the optimized measured data selection unit 16 excludes measured data with the smallest contribution from the i-th measured data group, and then determines the resultant measured data group to be the “(i+1)-th measured data group.”
In step S48, the optimized measured data selection unit 16 determines whether the number of measured data pieces in the “(i+1)-th measured data group” is equal to the number of measured data pieces set in step S41. If this number of measured data pieces is equal to the originally set number (S48: YES), the flow is finished. Specifically, the “(i+1)-th measured data group” at the finish of the process in step S48 becomes functional as an optimized measured data group. If the determined number of measured data pieces is not equal to the originally set number (S48: NO), the flow goes to step S49.
In step S49, the optimized measured data selection unit 16 increments i by one. Then, the flow returns to step S45.
<Effect Achieved by Second Embodiment>
As described above, in addition to the effect achieved by the first embodiment, the second embodiment achieves streamlining of a measured data group by excluding measured data of a small contribution from the measured data group.
As described above, the sensors connected to the terminals of the controller 30 are removable. Thus, a sensor that contributes little to accuracy increase may be removed or the position of this sensor may be changed. By doing so, compensation can be made with a high degree of accuracy using sensors of a reduced number. The reduction in the number of sensors leads to cost reduction or ease of maintenance. In particular, highly accurate compensation can be realized with sensors of a reduced number by providing a large number of sensors and acquiring measured data in advance, then calculating contributions by making automatic analysis by machine learning, and removing a sensor of a small contribution.
A third embodiment of the present invention will be described below based on the drawings.
<Configuration of Thermal Displacement Compensation System 100B>
As shown in
The detection unit 17 detects measured data that do not contribute to increase in the accuracy of thermal displacement estimation based on a thermal displacement estimation formula set by the sparse regularization learning.
<Operation of Detection>
The operation of determining the contribution of measured data in a measured data group by the machine learning device 10B will be described next.
In step S51, the measured data acquisition unit 11 of the machine learning device 10B acquires a measured data group from the controller 30. More specifically, the measured data acquisition unit 11 acquires temperature data about a machine element in the machine tool 35 and its surroundings and/or operating state data about the machine tool 35.
In step S52, the thermal displacement acquisition unit 12 of the machine learning device 10B acquires a thermal displacement actual measured value about the machine element in the machine tool 35 measured with an eddy-current sensor, for example. As a specific example, the thermal displacement acquisition unit 12 may measure a component in an X-axis direction, a component in a Y-axis direction, and a component in a Z-axis direction of the thermal displacement, and acquire a group of resultant measured values as the actual measured value.
In step S53, the storage unit 13 of the machine learning device 10B uses the measured data group acquired by the measured data acquisition unit 11 as input data, uses the thermal displacement actual measured value about the machine element acquired by the thermal displacement acquisition unit 12 as a label, and stores the input data and the label in a pair associated with each other as teaching data.
In step S54, the calculation formula learning unit 14 of the machine learning device 10B performs machine learning through sparse regularization using the teaching data.
In step S55, the detection unit 17 detects measured data Xk to make a coefficient ak zero. By doing so, the detection unit 17 detects the measured data that do not contribute to increase in the accuracy of thermal displacement estimation based on a thermal displacement estimation formula set by the sparse regularization learning.
The machine learning device 10A according to the second embodiment can optimize a measured data group by using the detection unit 17 in combination with the optimized measured data selection unit 16 instead of the contribution determination unit 15. More specifically, the detection unit 17 detects measured data that do not contribute to increase in the accuracy of thermal displacement estimation such as measured data to make the coefficient ak zero. The optimized measured data selection unit 16 excludes the measured data that do not contribute to increase in the accuracy of thermal displacement estimation from a measured data group currently acquired. By doing so, a streamlined measured data group can be selected.
<Effect Achieved by Third Embodiment>
As described above, the third embodiment achieves an effect comparable to that achieved by the second embodiment.
While the foregoing embodiments are preferred embodiments of the present invention, these embodiments do not limit the scope of the present invention. The present invention is feasible as embodiments to which various changes are added within a range not deviating from the substance of the present invention.
[First Modification]
In the embodiments, a thermal displacement estimation calculation formula is described as a polynomial formulated based on multiple regression of a generalized linear model. However, this is not the only case but the thermal displacement estimation calculation formula may be formulated based on multiple regression of a non-linear model.
[Second Modification]
The techniques in the foregoing embodiments are to optimize a measured data group by deleting measured data. However, this is not the only case but the measured data group may be optimized by adding measured data. More specifically, if the degree of accuracy of a thermal displacement estimation calculation formula set as a result of machine learning is less than a threshold, measured data may be added. Further, after certain measured data is deleted, different measured data may be added. In particular, if a sensor is added by a maintenance operator or an end user of a machine tool, the accuracy of thermal displacement compensation is increased by means of automatic tuning of a compensation formula based on a thermal displacement estimation calculation formula. In order to increase the accuracy of thermal displacement compensation, for example, machine learning may be performed using a measured data group obtained by changing the position of a temperature sensor, for example. In this case, a determination can also be made as to whether accuracy is increased by evaluating a difference between an error between a thermal displacement estimated value calculated using a thermal displacement estimation formula obtained after the position change and a thermal displacement actual measured value, and an error between a thermal displacement estimated value calculated using a thermal displacement compensation formula obtained based on machine learning using a measured data group before the position change and a thermal displacement actual measured value.
[Third Modification]
In the foregoing embodiments, the machine tool 35 is described as a cutting machine. However, the machine tool 35 is not limited to the cutting machine. The machine tool 35 may also be a wire discharge machine or a laser machine, for example.
[Fourth Modification]
The controller 30 may be configured to include the thermal displacement compensation device 20. The controller 30 may alternatively be configured to include the machine learning device 10, 10A, or 10B.
[Fifth Modification]
Each of the machine learning devices 10, 10A, and 10B in the foregoing embodiments may be configured as a computer system including a CPU. In this case, the CPU reads a program from a storage unit such as a ROM, for example, and follows the read program, thereby causing the computer to function as the measured data acquisition unit 11, the thermal displacement acquisition unit 12, the storage unit 13, the calculation formula learning unit 14, the contribution determination unit 15, the optimized measured data selection unit 16, and the detection unit 17.
Number | Date | Country | Kind |
---|---|---|---|
JP2017-054266 | Mar 2017 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5561741 | Wasserman | Oct 1996 | A |
6471451 | Kojima | Oct 2002 | B2 |
6671573 | Nigazawa | Dec 2003 | B2 |
7245983 | Suzuki | Jul 2007 | B2 |
8924003 | Maekawa | Dec 2014 | B2 |
9092025 | Maekawa | Jul 2015 | B2 |
9266209 | Murahashi | Feb 2016 | B2 |
9869992 | Takeno | Jan 2018 | B2 |
10401829 | Maekawa | Sep 2019 | B2 |
20020004688 | Kojima et al. | Jan 2002 | A1 |
20020038189 | Mizuguchi | Mar 2002 | A1 |
20080215178 | Senda | Sep 2008 | A1 |
20130325164 | Wwatanabe | Dec 2013 | A1 |
20150276633 | Koyama | Oct 2015 | A1 |
20160076970 | Takahashi | Mar 2016 | A1 |
Number | Date | Country |
---|---|---|
103926874 | Jul 2014 | CN |
104972360 | Oct 2015 | CN |
106488828 | Mar 2017 | CN |
102008005676 | Aug 2008 | DE |
06-008107 | Jan 1994 | JP |
7-75937 | Mar 1995 | JP |
08-141883 | Jun 1996 | JP |
8-300242 | Nov 1996 | JP |
11-114776 | Apr 1999 | JP |
2003-094291 | Apr 2003 | JP |
2004-154907 | Jun 2004 | JP |
2005-186216 | Jul 2005 | JP |
2010-120150 | Jun 2010 | JP |
4488564 | Jun 2010 | JP |
6001211 | Oct 2016 | JP |
2017-045406 | Mar 2017 | JP |
Entry |
---|
Notification of Reasons for Refusal dated Jan. 8, 2019 in corresponding Japanese Patent Application No. 2017-054266. |
Office Action dated May 5, 2019 in Chinese Patent Application No. 201810215390.2. |
Number | Date | Country | |
---|---|---|---|
20180275629 A1 | Sep 2018 | US |