This application claims the benefit of priority to Japanese Patent Application Number 2019-210526 filed on Nov. 21, 2019. The entire contents of the above-identified application are hereby incorporated by reference.
The present disclosure relates to an anomaly detection device, a method of detecting an anomaly, and a program.
Japanese Patent No. 5301380 discloses a service life prediction method in which a threshold value is set for each of time series dispersions of the maximum value and the minimum value of the value of a motor current used for driving a tool to determine abnormality of the tool. The service life prediction method described in Japanese Patent No. 5301380 sets and uses the threshold value in the following manner. The threshold value is set to an appropriate value obtained by testing the machining in advance under various types of conditions until a drill breaks. In addition, during mass production, the threshold value is corrected based on values obtained through performing tests in advance for materials, drill diameters, feed speeds, rotational speeds, and the like.
Unfortunately, the service life prediction method described in Japanese Patent No. 5301380 does not deal with non-uniformity of tools due to individual differences, or changes in machining conditions (machining period, number of times of machining, or the like).
The present disclosure has been made to solve the problem described above, and an object of the present disclosure is to provide an anomaly detection device, a method of detecting an anomaly, and a program, which can deal with non-uniformity of tools due to individual differences or the like.
In order to solve the problem described above, an anomaly detection device according to the present disclosure includes: an initial-stage detection information acquisition unit configured to acquire detection information at an initial stage in a series of machining steps performed using one tool, a map-function identification unit configured to identify a mapping function used for mapping the detection information at the initial stage on reference detection information, a wear-progress-stage detection information acquisition unit that acquires detection information at a wear progress stage following the initial stage in the series of machining steps, a map-function application unit configured to apply the mapping function to the detection information at the wear progress stage, an anomaly-degree calculation unit configured to calculate an anomaly degree indicating a degree of difference, relative to the reference detection information, of the detection information at the wear progress stage to which the mapping function is applied, and an anomaly detection unit configured to detect an abnormality of the tool based on determination as to whether the anomaly degree exceeds an anomaly determination threshold value determined in advance.
Furthermore, a method of detecting an anomaly according to the present disclosure includes the steps of: acquiring detection information at an initial stage in a series of machining steps performed using one tool; identifying a mapping function used for mapping the detection information at the initial stage on reference detection information; acquiring detection information at a wear progress stage following the initial stage in the series of machining steps; applying the mapping function to the detection information at the wear progress stage; calculating an anomaly degree indicating a degree of difference, relative to the reference detection information, of the detection information at the wear progress stage to which the mapping function is applied; and detecting an abnormality of the tool based on determination as to whether the anomaly degree exceeds an anomaly determination threshold value determined in advance.
Furthermore, a program according to the present disclosure is a program that causes a computer to execute steps including: acquiring detection information at an initial stage in a series of machining steps performed using one tool; identifying a mapping function used for mapping the detection information at the initial stage on reference detection information; acquiring detection information at a wear progress stage following the initial stage in the series of machining steps; applying the mapping function to the detection information at the wear progress stage; calculating an anomaly degree indicating a degree of difference, relative to the reference detection information, of the detection information at the wear progress stage to which the mapping function is applied; and detecting an abnormality of the tool based on determination as to whether the anomaly degree exceeds an anomaly determination threshold value determined in advance.
According to the anomaly detection device, the method of detecting an anomaly, and the program according to the present disclosure, it is possible to provide an anomaly detection device, a method of detecting an anomaly, and a program, which can deal with non-uniformity of tools due to individual differences.
The disclosure will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Below, an anomaly detection device and a method of detecting an anomaly according to embodiments of the present disclosure will be described with reference to
The anomaly detection device 30 illustrated in
As illustrated in
The bed 11 is installed horizontally on a floor surface. The table 12 and the column section 13 are disposed on the bed 11. The table 12 is a table on which a workpiece (not illustrated) to be machined is mounted, and is provided so as to be movable in one horizontal direction on the bed 11. The column portion 13 has a gate shape disposed so as to straddle the bed 11, and includes a left column 13L and a right column 13R vertically provided respectively at the left and right of the bed 11. The cross rail 14 is mounted so as to horizontally traverse the left column 13L and the right column 13R, and is provided so as to be movable in the vertical direction along vertical sliding surfaces of the left column 13L and the right column 13R.
The saddle 15 is attached to the cross rail 14 and is provided so as to be movable in the horizontal direction along a horizontal sliding surface of the cross rail 14. The ram 16 is gripped by the saddle 15 and is provided so as to be movable in the vertical direction guided by the vertical sliding surface of the saddle 15. The main shaft 17 is disposed within the ram 16 and is able to rotate with a main shaft motor that is not illustrated. In addition, the tool unit 19 including the tool T is mounted at the main shaft 17 by using the attachment 18.
The gate-shaped machining tool 10 having the configuration described above includes, for example, a vibration sensor that measures vibration of the tool T (main shaft 17), a cutting force dynamometer that measures cutting force of the tool T (main shaft 17), and a sound sensor that measures sound of the tool T (main shaft 17), in order to detect an abnormality of the tool T, for example, in order to detect an abnormality of the tool T itself in terms of tool wear, tool breakage, chipping, or break, or an abnormal machining state caused by the tool T. Furthermore, a load current of the main shaft and an electric power value are measured from the main shaft motor that drives the main shaft 17. In addition, for example, a motor current and electric power values are measured from a feed motor (not illustrated) that drives the ram 16. Note that, in the present embodiment, a feed motor that drives the ram 16 is given as one example. However, a plurality of feed motors are provided so as to correspond to movement directions (for example, X, Y, and Z directions). The tool T includes, for example, a cutting tool or a grinding tool, and is replaced when a predetermined wear, break, or the like occurs in machining or grinding.
In the present embodiment, the gate-shaped machining tool 10 measures, for example, the load current of the main shaft, current values of each driving shaft in X, Y, and Z directions, and vibration values of each driving shaft in X, Y, and Z directions. The measured data (referred to as machining data) are sent to the anomaly detection device 30 by using a predetermined communication line through the control board 20. Note that the machining data may include, for example, the rotational speed of the main shaft, a feed speed, the amount of cutting, mechanical vibration, tool wear, a failure state, and the state of a machined surface.
The control board 20 performs numerical control of the gate-shaped machining tool 10 according to a preset program, and sends the machining data measured with the gate-shaped machining tool 10 to the anomaly detection device 30.
The anomaly detection device 30 is configured, for example, as a computer such as a personal computer. The anomaly detection device 30 includes an initial-stage detection information acquisition unit 31, a map-function identification unit 32, a wear-progress-stage detection information acquisition unit 33, a map-function application unit 34, an anomaly-degree calculation unit 35, an anomaly detection unit 36, a storage unit 37, and an output unit 38, each of which serves as a functional constituent element comprised of a combination of hardware included in the computer and software such as a program executed using the hardware. The storage unit 37 holds, for example, reference detection information 371, and an anomaly determination threshold value 372.
The initial-stage detection information acquisition unit 31 acquires detection information at an initial stage in a series of machining steps performed using one tool T.
The map-function identification unit 32 identifies a mapping function used for mapping the detection information at the initial stage on the reference detection information. The reference detection information includes at least the detection information at the initial stage as illustrated in
In the present embodiment, “mapping the detection information at the initial stage on the reference detection information” means, for example, that, in a case where there is a difference between the reference detection information (learning data y in
Note that
A mapping function f is expressed as the following equation, where the learning data y is the reference detection information and the verification data x is the detection information at the initial stage.
y=f(x) [Equation 1]
The mapping function f can also be set to be the function expressed, for example, as the following equation by using a mean value x_mean, a maximum value x_max, and a minimum value x_min of the verification data x at the initial stage and a mean value y_mean, a maximum value y_max, and a minimum value y_min of the learning data y.
f(x)={x+(y_mean−x_mean)}×{(y_max−y_min)/(x_max−x_min)} [Equation 2]
The maximum value x_max and the minimum value x_min of the verification data x and the maximum value y_max and the minimum value y_min of the learning data y are illustrated in
Note that the map-function identification unit 32 identifies a mapping function f for each dimension (for each type) of multi-dimensional information serving as a plurality of types of machining data. However, some of or all of the mapping functions of the plurality of types of machining data may be shared.
Furthermore, the map-function identification unit 32 is able to use the following conditions to evaluate the success or failure of the mapping. For example, the map-function identification unit 32 checks conditions such as whether or not the maximum values of both data are less than or equal to a certain percentage, whether or not the minimum values of both data are less than or equal to a certain percentage, whether or not a root mean square error (RMSE) is less than or equal to a certain percentage, or whether or not a certain percentage or more of the verification data is included in a range from the maximum to the minimum of the learning data. In a case where the condition is not met, it is possible to change the amount of offset or the amount of enlargement or reduction to make re-evaluation, or to end the process due to no mapping function being identified.
Furthermore, the wear-progress-stage detection information acquisition unit 33 acquires detection information at the wear progress stage as illustrated in
The map-function application unit 34 applies the mapping function f to the detection information at the wear progress stage. In other words, the mapping function f is applied to the detection information (verification data x) at the wear progress stage to calculate detection information (f(x)) at the wear progress stage to which the mapping function f is applied.
The anomaly-degree calculation unit 35 calculates the degree of anomaly indicating the degree of difference of the detection information (f(x)) at the wear progress stage to which the mapping function f is applied, with respect to the reference detection information. For example, the degree of anomaly can be set as a distance of pieces of multi-dimensional information between the reference detection information (multi-dimensional information on the machining data obtained, for example, at the time of prototype production) and the detection information (f(x)) (data (mapped data) obtained by applying mapping processing to the multi-dimensional information on the machining data obtained, for example, at the time of mass production) at the wear progress stage to which the mapping function f is applied. The distance between pieces of the multi-dimensional information can be set, for example, as an L2 norm (Euclidean distance). The anomaly-degree calculation unit 35 calculates one degree of similarity on the basis of the multi-dimensional information.
Note that in the present embodiment, the anomaly-degree calculation unit 35 uses a k-nearest neighbor algorithm (kNN; k-neighbor method), which is one machine learning technique, to calculate the degree of anomaly. The anomaly-degree calculation unit 35 first learns waveforms while moving a movement window MW, as illustrated in
In addition, the anomaly detection unit 36 detects an abnormality of the tool T on the basis of determination as to whether or not the degree of anomaly exceeds an anomaly determination threshold value set in advance. The anomaly determination threshold value can be set by using, as a reference, the degree of similarity as illustrated in
The storage unit 37 holds, for example, the reference detection information 371 and the anomaly determination threshold value 372.
Furthermore, the output unit 38 outputs a signal indicating the result of determination by the anomaly detection unit 36. The output can be made, for example, in a manner in which display is performed on a monitor (not illustrated), a signal indicating that an anomaly is detected or that no anomaly is detected is sent to the control board 20, or the like. In addition, outputting to a monitor or the like may include, for example, displaying a graph or numerals of the degree of similarity as illustrated, for example, in
Next, an example of operation of the anomaly detection device 30 will be described with reference to
In the process illustrated in
Upon reaching the number of machining for learning (“Yes” in step S13), the map-function identification unit 34 creates a mapping function f for each type (each dimension) of machining data on the basis of the collected machining data and the reference detection information 371 stored in the storage unit 37 (step S14).
Next, the wear-progress-stage detection information acquisition unit 33 collects the machining data (step S15). The map-function application unit 34 applies the mapping function f to the collected machining data to calculate mapped data. In addition, the anomaly-degree calculation unit 35 calculates the degree of anomaly on the basis of the machining data that has been subjected to mapping processing and the reference detection information 371 stored in the storage unit 37 (step S16).
Next, the anomaly detection unit 36 determines an anomaly on the basis of the calculated degree of anomaly and the anomaly determination threshold value 372 stored in the storage unit 37 (determines whether the degree of anomaly exceeds the anomaly determination threshold value 372) (step S17).
Next, the output unit 38 outputs the result of determination of the anomaly made by the anomaly detection unit 36 (step S18).
Next, the wear-progress-stage detection information acquisition unit 33 determines whether or not machining has ended (step S19). If machining has ended (“Yes” in step S19), the process illustrated in
Next, operational effects according to the present embodiment will be summarized with reference to
As illustrated in
As described above, according to the present embodiment, it is possible to deal with non-uniformity of tools due to individual differences.
Note that, in the present embodiment, the degree of anomaly is calculated by using a machine learning technique, and the calculated degree of anomaly is monitored, which makes it possible to manage the service life of the tool. For example, the method of calculating the degree of anomaly includes calculating, as the degree of anomaly, the distance between data using kNN. However, the method is not limited to kNN. For example, it is possible to use a local outlier factor (Lof), a variational bayesian method, or the like.
In addition, according to the present embodiment, machining data obtained at the time of machining with a tool performed for the first several times are mapped on data (reference detection information) for which a threshold value is set in advance to allow evaluation using a degree of anomaly equivalent to the reference detection information. Thus, it is possible to evaluate an anomaly by using a known threshold value.
Furthermore, in a case where data until a tool breaks has already been acquired through test machining, for example, the threshold value can be decided by using the data as a base. In addition, in a case where there is no data on wear or failure, the threshold value may be updated based on data on successful machining.
In a case where the mapping processing is not performed, the threshold value for determining an anomaly differs depending on machining conditions, tool types, materials, or the like, and cannot be uniquely decided. However, according to the present embodiment, the mapping processing absorbs the difference described above (machining conditions, types of tool, materials, or the like), which makes it possible to uniquely decide the threshold value.
According to the present embodiment, it is possible to detect an anomaly in a versatile manner without being affected by types of tool or machining, individual differences of a tool, and machining conditions. In addition, according to the present embodiment, it is possible to manage service life regardless of types of tool or machining, no error in detection occurs even if machining conditions change, and it is possible to evaluate a plurality of indices at the same time.
An embodiment according to the present disclosure has been described in detail with reference to the drawings. However, the specific configuration of the present disclosure is not limited to this embodiment. Design change without departing from the main gist of the present disclosure or the like is also included. It should be noted that, in the embodiment described above, an anomaly is detected on the basis of the degree of anomaly. However, the embodiment is not limited to this. In combination with the degree of similarity or in place of the degree of similarity, it is possible to use a result of comparison between a probability density function based on the reference detection information and a probability density function based on the detection information, which are based on multi-dimensional information after mapping processing, a result of comparison between a difference between the maximum value and the minimum value based on the reference detection information and a difference between the maximum value and the minimum value based on the detection information, or the like. In addition, it may be possible to calculate the mean value of a plurality of indices, a weighted addition, or the like for each of the indices such as the degree of similarity, a probability density function, a difference between the maximum value and the minimum value, and use the result of calculation as the target of determination concerning detection of an anomaly.
The embodiment of the disclosure has been described with reference to the drawings. However, the specific configuration of the disclosure is not limited to the embodiment described above. Design change or the like without departing from the main gist of the disclosure is also included.
The anomaly detection device 30 described above is installed in the computer 90. Operations of each of the processing units described above are held in the form of programs in the storage 93. The processor 91 reads a program from the storage 93 to deploy the program in the main memory 92, and performs the process in accordance with the program. Furthermore, the processor 91 secures, in the main memory 92, a storage area corresponding to each of the storage units described above in accordance with the program.
The program may be a program for achieving part of the functions that the computer 90 is caused to work. For example, the program may be a program that achieves a function by combining with another program that has been stored in the storage or combining with another program installed on another device. Note that, in other embodiments, the computer may include a custom large scale integrated circuit (LSI) such as a programmable logic device (PLD), in addition to or in place of the configuration described above. Examples of the PLD include a programmable array logic (PAL), a generic array logic (GAL), a complex programmable logic device (CPLD), and a field programmable gate array (FPGA). In this case, part of or all of the functions achieved by the processor may be achieved using the integrated circuit.
Other examples of the storage 93 include a hard disk drive (HDD), a solid state drive (SSD), a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The storage 93 may be an internal medium directly connected to a bus of the computer 90, or may be an external medium connected to the computer 90 through the interface 94 or a communication line. In addition, in a case where this program is distributed to the computer 90 through a communication line, the computer 90 that receives the distribution may develop this program on the main memory 92 to perform the process. In at least one of the embodiments, the storage 93 is a non-temporary tangible storage medium.
The anomaly detection device 30 according to each of the embodiments is construed, for example, in the following manner.
(1) An anomaly detection device 30 according to a first aspect includes: an initial-stage detection information acquisition unit 31 configured to acquire detection information at an initial stage in a series of machining steps performed using one tool T; a map-function identification unit 32 configured to identify a mapping function f used for mapping the detection information at the initial stage on reference detection information; a wear-progress-stage detection information acquisition unit 33 configured to acquire detection information at a wear progress stage following the initial stage in the series of machining steps; a map-function application unit 34 configured to apply the mapping function f to the detection information at the wear progress stage; an anomaly-degree calculation unit 35 configured to calculate an anomaly degree indicating a degree of difference, relative to the reference detection information, of the detection information at the wear progress stage to which the mapping function f is applied; and an anomaly detection unit 36 configured to detect an abnormality of the tool based on determination as to whether the anomaly degree exceeds an anomaly determination threshold value determined in advance.
(2) An anomaly detection device 30 according to a second aspect provides the anomaly detection device 30 according to the first aspect, in which the detection information includes multi-dimensional information, and the map-function identification unit 32 identifies the mapping function for each dimension of the multi-dimensional information. According to this configuration, even for multi-dimensional machining data, it is possible to deal with non-uniformity of tools due to individual differences or the like.
(3) An anomaly detection device 30 according to a third aspect provides the anomaly detection device 30 according to the first or second aspect, in which the detection information includes multi-dimensional information, and the anomaly-degree calculation unit 35 calculates the anomaly degree based on a distance between pieces of the multi-dimensional information. According to this configuration, even for multi-dimensional machining data, it is possible to deal with non-uniformity of tools due to individual differences or the like.
(4) An anomaly detection device 30 according to a fourth aspect provides the anomaly detection device 30 according to the first to third aspects, in which the anomaly determination threshold value is based on the anomaly degree based on the detection information at the wear progress stage following the initial stage at which the reference detection information is acquired. According to this configuration, it is possible to acquire the anomaly determination threshold value at the time of acquiring the reference detection information.
While preferred embodiments of the invention have been described as above, it is to be understood that variations and modifications will be apparent to those skilled in the art without departing from the scope and spirits of the invention. The scope of the invention, therefore, is to be determined solely by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2019-210526 | Nov 2019 | JP | national |