Monitoring the condition of a tool
The method automates surface defect detection in tools by comparing image data sets without tool-specific training, enhancing flexibility and efficiency in monitoring tool wear across various tool types.
Patent Information
- Application Number
- PCT/EP2024/057258
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-31
AI Technical Summary
Current methods for monitoring tool wear in industrial manufacturing are inefficient, often requiring manual defect assignment and specific training data for each tool type, leading to high effort and limited flexibility in detecting surface defects.
A method that generates reference and working image data sets, segments them into superpixels, and classifies surface defects based on similarity assessment without the need for tool-specific training, using a generic similarity metric and neural network.
Enables efficient and reliable automated detection of surface defects across different tool types with reduced computational effort and no requirement for retraining neural networks for each tool type, improving flexibility and accuracy.
Smart Images

Figure EP2024057258_31102024_PF_FP_ABST
Abstract
Description
[0001] Description
[0002] Monitoring the condition of a tool
[0003] The present invention relates to a method for monitoring the condition of a tool, wherein a work data set is provided and an automated classification of surface defects in the work data set is carried out. Furthermore, the invention relates to an analysis system for monitoring the condition of a tool and a corresponding computer program product.
[0004] Tool wear contributes significantly to production costs in industrial manufacturing. Tool wear depends not only on the tool's previous usage time but also on the material being machined and the machining parameters and increases continuously, although generally not linearly. If tool wear reaches a previously defined permissible maximum wear, the tool is worn out. If a worn tool is continued to be used, component quality and machining performance decrease significantly. To avoid this, tools are often replaced earlier than would be necessary in view of the maximum wear. This increases tool costs due to the tool's unused usage time.
[0005] For this reason, regular condition monitoring is often carried out on modern industrial machine tools in order to characterise tool wear. This can help avoid the adverse consequences of late or early tool changes. Both indirect and direct condition monitoring methods are commonly used. Indirect methods involve the evaluation of machine signals such as vibrations, acoustic emissions, cutting forces, machine currents and the like. However, due to the indirect nature of these methods, it is not possible to determine the wear status with high accuracy. In addition, the methods used are often limited in their application to certain tool types or tool geometries.
[0006] In direct approaches, tools are measured using a laser beam or imaged with a camera in order to then identify any defects that may have occurred in the tool, either manually or using automated image recognition processes. The camera used for this can, for example, be integrated into the machine tool to enable regular checks of the tool within an industrial production facility. The manual identification of defects in such images is extremely time-consuming, so that it is usually not an option for regular condition monitoring in an industrial environment. For this reason, automated image recognition processes or machine vision are currently becoming more and more popular for such applications (the technical terms for this are computer vision and machine vision).
[0007] With Computer Vision (CV), tasks typical of human vision can be carried out automatically by computers. This includes image acquisition, image processing, image segmentation, the assignment of image segments, feature extraction, pattern recognition and object recognition. In particular, such CV methods can be used to automatically assign areas of tool images to different semantic classes, such as an (undamaged) tool class, a background class and various predefined defect classes. Such defect classes can correspond to the various defect types that typically occur with a certain type of tool. For example, the defect classes can be a class for surface defects (defects in the surface structure of a tool), a class for material structure defects (e.g.so-called "build-up edges" where material has accumulated in the edge area of a tool) and / or a class for material removal defects (e.g. material removal in the edge area due to abrasion, chipping, cracks, grooves). Automated defect detection on industrial tools can in principle be carried out using both classic computer vision methods (such as automated edge detection) and methods of artificial intelligence or machine learning. The terms artificial intelligence (AI), machine learning (ML) and deep learning (DL) should first be differentiated from one another. Artificial intelligence describes an area of computer science in which systems are developed to perform tasks that were previously reserved for humans or other intelligent beings.These include the abilities to perceive and respond to sensory impressions, to absorb, process, and store information as knowledge, to understand and generate language, to solve problems, and to achieve goals. Machine learning methods are often used to enable artificial intelligence. These include methods in which systems are trained with data to perform specific tasks without being explicitly programmed. Deep learning is a subcategory of machine learning: it uses artificial neural networks to learn from data, similar to the learning process in a human brain.
[0008] AI-based computer vision methods can achieve a high level of flexibility and reliability in the automated detection of tool defects. For example, defects can often be reliably detected even in images with different illumination and different image backgrounds. A prerequisite for this, however, is usually that the artificial neural network used has been previously trained with specific training data sets. Such training data sets are often very extensive, and it is necessary for an operator to assign the defects present in the individual training data to the relevant defect classes so that the neural network can learn how to perform the correct assignment.Manually assigning defects in the training data is usually very time-consuming, as several hundred classified image datasets are typically required to train a neural network to detect defects in a specific tool type. Manually assigning tool defects in a single image dataset, for example, takes between 10 and 20 minutes, meaning several days of human time are required just to generate the required training data. Added to this is the computational effort required to use the training datasets to train the neural network for the relevant defect classes of the respective tool type.
[0009] A major disadvantage of these conventional AI-based defect detection methods is that the underlying neural network must be retrained for each different tool type, which requires specific, manually assigned training data sets. Overall, the effort required to adapt the defect detection system to the new tool type when changing tool types is very high.
[0010] Against this background, it is an object of the present invention to provide an improved method for monitoring the condition of a tool that can be flexibly applied to various tool types. In particular, this method should enable largely automated defect detection with high reliability. A further object is to provide an analysis system and a computer program product for implementing this method.
[0011] These objects are achieved by the method described in claim 1, the analysis system described in claim 14 and the computer program product described in claim 15.
[0012] The method according to the invention serves to monitor the state of a tool and comprises the following steps: a) providing a reference data set by a1) generating a first image data set with a plurality of pixels for the tool in a reference state, a2) automated segmentation of the first image data set into a number of reference superpixels, a3) assigning the reference superpixels to at least two semantic classes which comprise a tool class and a background class, so that a tool area and a background area of the reference data set are defined;b) providing a working data set by bl) generating a second image data set with a plurality of pixels for the tool in a working state, b2) automated segmentation of the second image data set into a number of working superpixels, b3) assigning the working superpixels to the at least two semantic classes so that a tool area and a background area of the working data set are defined, and c) automated classification of surface defects by cl) evaluating the similarity of the working superpixels in;
[0013] Tool area of the working data set with the reference superpixels in the tool area of the reference data set and c2 ) assignment of the working superpixels whose similarity values are below a specified threshold to a surface defect class .
[0014] The condition of the tool to be monitored can in particular be a wear condition of the tool, so that defects in the tool that arise during use can be identified using the method. For example, a wear-relevant area of the tool can be depicted in each of the said image data sets, for example a cutting edge of a cutting tool. The reference condition can in particular be an unworn condition, for example either a new condition of the tool before its first use or a condition after a thorough manual inspection during which no defects were found, e.g. before installation in a machine tool. Accordingly, the working condition can in particular be a condition after use of the tool, i.e. a condition in which potential wear due to use is to be detected.For each of these two states, an image data set with a large number of image points (so-called pixels) is generated in step a1) or in step b1). This image generation can be automated, for example, using a camera device, in particular a microscope camera device. This camera device can, for example, be integrated into a machine tool in which the tool is used, in order to carry out condition monitoring at regular and / or irregular intervals during operation of the tool.
[0015] The respective image data set can in particular be a digital image from an image sensor, for example a CMOS sensor. The image data set can have a two-dimensional arrangement of pixels, this arrangement being in particular in columns and rows. In steps a2) and b2) respectively, the pixels of the respective image data set are automatically segmented into a number of superpixels. This can in particular be a predefined number of superpixels, which can advantageously be selected to be the same for steps a2) and b2). The number of superpixels for each image data set can, for example, be in the range between 50 and 5000, whereby the selection of this number can expediently be based on the number of pixels present and the spatial resolution of the recorded image. Segmentation into superpixels is sometimes also referred to as oversegmentation.This refers to a grouping or clustering of individual pixels into useful subregions. The individual superpixels can then be used instead of the individual pixels in subsequent image processing steps, e.g., for semantic assignment to predetermined classes. Advantageously, the individual superpixels can each be spatially connected, meaning they do not penetrate each other (spatial connectivity).
[0016] The segmentation into superpixels can be automated using one of the numerous methods known from the state of the art, e.g. using the so-called SLIC algorithm (SLIC for Simple Linear Iterative Clustering) or algorithms based on it. In general, the segmentation into superpixels can be carried out using an ML-based method, in particular using an artificial neural network. As a result of the segmentation, an assignment to one of the superpixels is obtained for each pixel, and one or more assigned intensity values are obtained for each superpixel (e.g. by averaging the intensity values of the individual pixels or by another computational operation).For example, three intensity values in the RGB color space or four intensity values in the CMYK color space or a corresponding number of intensity values in another common color space can be provided as intensity values per pixel and correspondingly per superpixel.
[0017] In sub-steps a3) and b3) the respective superpixels are divided into tool superpixels and background superpixels. This assignment can basically be automated or semi-automated (e.g. with the help of a k-means clustering algorithm) or manually by a user. In principle it is also possible to subdivide the image points into a tool area and a background area before segmentation in step a2) and b2). Then if necessary only the tool area or a part of the image immediately surrounding the tool area can be segmented into superpixels in the manner described. Optionally further classes can also be used here in addition to the tool class and the background class.However, what is essential for the invention here is only the division into tool area and background area, through whose boundary in particular a tool outline is defined in each case. Thus, a reference outline of the tool is defined for the reference data set and a working outline of the tool is defined for the working data set. With comparatively simple tool geometries, the tool area and the background area are each spatially connected, so that the respective outline is a simple line which can correspond to the tool edge. With more complex tool geometries, however, the respective outline can also consist of several separate parts, e.g. if the tool has hole-like recesses, for which the image data set in turn contains corresponding background areas.
[0018] After completing steps a1) to a3), a total of a reference data set is provided which, in addition to the first image data set (with intensity values per pixel), also contains the assignment of the individual pixels to the reference superpixels, the class assignment of the individual reference superpixels and, expediently, also intensity values of the respective reference superpixels. In a similar way, the working data set provided after steps b1) to b3) contains, in addition to the second image data set, also the assignment of the individual pixels to the working superpixels, the class assignment of the individual working superpixels and, expediently, also the intensity values of the respective working superpixels.
[0019] What is essential for the present invention is that in step c) an automated classification of surface defects takes place based on a similarity assessment between the superpixels in the tool areas of the reference data set and the working data set. In this case, those working superpixels of the tool area that are classified as comparatively dissimilar in this similarity assessment are classified as surface defects. Of course, such an assignment does not necessarily have to take place: If the similarity threshold is not undercut for any of the working superpixels in the tool area, no assignment to a surface defect class takes place. In this case, the entire imaged tool area is classified as free of surface defects. In general, a "surface defect" is understood here to be a defect in the inner area of the imaged tool surface.For example, a material change due to corrosion or other chemical reaction or a change in surface roughness due to mechanical abrasion can lead to a changed appearance of the tool surface, which in the method according to the invention results in the classification as a surface defect with a suitable threshold value and a suitable similarity metric.
[0020] The assessment of similarity and, if applicable, classification as a surface defect is expediently performed only for the superpixels in the tool area of the working data set. Those superpixels for which the similarity threshold is reached or exceeded remain classified as a tool class, and only if the similarity threshold is exceeded are they assigned to the surface defect class.
[0021] A key advantage of the method according to the invention compared to conventional CV-based defect detection in tools is that no training of a neural network on specific tool classes and / or specific defect types is required. Rather, the classification of the respective working superpixel in the tool area as an "area defect" or "undamaged tool" (while maintaining the tool class classification) is based solely on a similarity metric compared to the reference superpixels in the tool area of the reference data set. The automated assessment of this similarity can, in principle, be AI-based and, in particular, using an artificial neural network. The crucial difference to conventional AI-based defect detection methods, however, is that such a neural network can be "generically trained" for the similarity assessment.Such "generic training" should be understood here to mean that the neural network was not trained on the specific tool type relevant for monitoring, and certainly not on specific types of defects, but rather generally on the evaluation of similarities (e.g. of intensities, patterns and / or shapes) in a large number of images, in particular in standardized, tool-independent images, such as those contained in the BSDS500 (Berkeley Segmentation Data Set 500) data set. Such a data set does not have to contain any images of tools.
[0022] The invention is based on the finding that it is not necessary to use neural networks which are specially trained for image recognition of tools (and in particular for the detection of defects in such tool images), but that it is sufficient to determine a general similarity between the tool superpixels of a working data set and the tool superpixels of a reference data set. All that is important for this is the storage of a suitable reference data set and the use of a suitable similarity metric as well as a suitable threshold value for the similarity. Ideally, the first image data set and the second image data set have a similar or identical resolution and preferably also a similar or identical exposure, image size and / or orientation of the tool.However, complete agreement is not necessary here, since the definition of the similarity threshold to be applied can be used to set which working superpixels in the tool area are still classified as "undamaged tools" despite certain deviations from the reference superpixels. Once a suitable reference data set has been recorded and provided in accordance with steps a1) to a3), a large number of working data sets can then be provided in accordance with step b), and the same reference data set can be used for a large number of classifications in accordance with step c), for example to occasionally monitor the same tool for changes during operation.
[0023] It is essential that the assessment of similarity in step c1) takes place at the superpixel level, since a similarity assessment at the level of individual pixels would result in a very high number of comparatively dissimilar areas and thus a finer-grained and correspondingly more frequent assignment as surface defects. In addition, the similarity of individual pixels could only be assessed on the basis of intensities and not on the basis of shapes or patterns. The method according to the invention therefore enables an efficient and reliable automated detection of surface defects. Because tool-specific training of a neural network is not necessary, the method is very flexible and can be used for different types of tools with little effort.
[0024] The analysis system according to the invention is used to monitor the condition of a tool. It comprises a recording unit, a computing unit and a storage unit. Overall, the analysis system is set up to carry out the method according to the invention. In particular, the recording unit can be used to generate the first image data set according to step a1) and the second image data set according to b1). The computing unit can be used to automatically segment the image data sets according to steps a2) and b2). Furthermore, the assignment according to steps a3) and b3) can be carried out with the aid of this computing unit. The entire set of reference and working data sets provided can, for example, be saved at the end of steps a) and b) using the storage unit.The similarity assessment according to step c1) and the assignment according to c2) can also be carried out by means of the computing unit, and the result of the individual assignments can in turn be stored in the memory unit. The computer program product according to the invention comprises instructions, which, when the computer program product is executed on a computer, cause the computer to carry out the method according to the invention. The advantages of the analysis system and the computer program product arise analogously to the advantages of the method according to the invention described above.
[0025] Advantageous embodiments and further developments of the invention emerge from the claims dependent on claim 1 and the following description. The described embodiments of the method can also be implemented in the analysis system or the computer program product, and vice versa.
[0026] According to a generally advantageous embodiment, the method can comprise the following additional step: d) automated classification of edge defects by d0) applying an image transformation to the reference data set and / or the working data set in order to achieve a match in the alignment of the respective tool areas, at least if there is an offset between the tool areas which exceeds a predetermined threshold value, d1) comparing the tool areas of the reference data set and the working data set, d2) assigning the image points of the working data set which lie in the tool area of the working data set and not in the tool area of the reference data set to a material build-up class and d3) assigning the image points of the working data set which lie in the tool area of the reference data set and not in the tool area of the working data set to a material removal class.
[0027] Edge defects are generally understood to be changes to the tool which lie within the outline area of the recorded image data set. This can either be an increase in material, e.g. due to deposits of material from the workpieces being machined, or a removal of material, e.g. due to chipping, abrasion or the formation of cracks, grooves or furrows. In the first case, the outline of the tool increases in size from the reference data set to the working data set, and the pixels of the working data set corresponding to this increase in size are assigned to a material build-up class accordingly. In the second case, the outline of the tool decreases in size from the reference data set to the working data set, and the pixels of the working data set corresponding to this decrease in size are assigned to a material removal class accordingly.The material build-up class and the material removal class thus represent two different subgroups of edge defects. The comparison of the two data sets in sub-step dl) can be carried out, in particular, by forming a difference or by superimposing them.
[0028] The embodiment with the additional step d) addresses a further disadvantage of conventional defect classifications, namely that when analyzing defects from just a single tool image, no material removal or material build-up can be detected. In the described embodiment, this problem is solved by determining the edge effects by comparing the outlines between the reference data set and the working data set. In contrast to the classification of surface defects, which takes place at the superpixel level according to step c), the edge defects are determined with greater granularity, since the changes in the outline can be recorded at the level of individual pixels. In particular, the edge defects determined can be smaller or larger than the superpixels present at that location, and the shape of the edge defects can differ from the shape of the superpixels present at that location.This is useful because the deposition or removal of material often takes place on a completely different size and / or shape scale than the segmentation of the respective areas into superpixels carried out in steps a2) and b2), which can usefully be based on the size of typical surface defects. The different assignment of surface defects and edge defects described above can therefore take into account the fact that these defect types not only occur in different positions, but often also have different shapes and sizes. The different determination of the individual defect types adapted to this allows for efficient automated assignment, whereby no tool-specific training of an ML system is required for the additional step d). The additional sub-steps from d1) to b3) can be carried out in particular using conventional image processing algorithms.
[0029] The optional step dO) can at least be carried out if there is an offset or a distortion between the tool areas which (r) exceeds a predetermined threshold value. In other words, an image correction can be carried out here before the two data sets are compared in order to bring the two outlines into as good a match as possible in the case of slightly different recording conditions (e.g. different recording angle or different distance from the camera). Suitable image transformation methods for correcting distortions and misalignments are sufficiently known from the prior art. Only the changes in the outline remaining after such a correction are then assigned to the two edge defect classes (if they exist). Optionally, the number of pixels can also be changed (e.g. reduced) during the image transformation.In this case, it is useful to subject both data sets to a corresponding change in the number of pixels before the comparison.
[0030] According to a further generally advantageous embodiment, the method comprises the following additional step: e) providing a higher-level classification data set in which the individual pixels of the second image data set are each assigned to one of at least five semantic classes in accordance with steps b3), c2), d2) and d3), which include the background class, the tool class, the surface defect class, a material build-up class and a material removal class.
[0031] In other words, in this embodiment the results of the classifications of surface defects and edge defects are merged into a higher-level data set which contains the assignment of all defects identified using the method. This assignment can be merged in particular at the level of individual pixels, wherein the number of pixels can be changed (in particular reduced) compared to the original data if necessary. The higher-level classification data set then contains at least five classes, namely the three defect classes described as well as a class for the background area and a class for the undamaged areas of the tool. This higher-level classification result can then expediently be made available to a user, for example via a graphical user interface.
[0032] Generally advantageously, the automated segmentations in steps a2) and / or b2) can each be carried out using at least one artificial neural network. Alternatively or additionally, the similarity assessment in step c1) can be carried out using at least one artificial neural network. Both types of steps can be implemented particularly easily and efficiently using such AI-based systems. Particularly advantageously, the respective neural network (or part thereof) can be a convolutional neural network (CNN). Convolutional neural networks represent a special type of multi-layer neural network which is particularly suitable for processing data with a grid-like structure (such as pixelated image datasets).For this purpose, a CNN has one or more convolutional layers, which may be followed by one or more pooling layers and / or one or more fully connected layers. Both the segmentation into superpixels and the evaluation of similarities between superpixels can be automated particularly efficiently with such CNNs, requiring only generic training and no tool-specific training.
[0033] In general, therefore, in this embodiment, steps a), b) and c) (and optionally also d) and e)) can be carried out several times in succession for different types of tools. In particular, the at least one artificial neural network used remains unchanged. In other words, the neural network is not adapted by tool-specific training due to the changed tool type. This is advantageously not necessary with the method described, since the neural networks used can be generically trained on standardized image data sets, as described above, and in particular no image data from similar tools needs to be used. This is possible, but not required.
[0034] In general, it is particularly advantageous to carry out automated segmentation into superpixels in steps a2) and / or b2) using a so-called superpixel sampling network (SSN). The SSN method is based on the SLIC algorithm, but represents a differentiable variant of this algorithm and is therefore particularly suitable for implementation in an artificial neural network that can be generically trained using deep learning methods. The SSN method is sufficiently well known in the state of the art and is described in detail, for example, in the article "Superpixel Sampling Networks" by V. Jampani et al. in ECCV 2018, Lecture Notes in Computer Science. As an alternative to the SNN method, a simple SLIC algorithm or another algorithm based on SLIC can also be used for segmentation.According to a further preferred embodiment, the assignment of the individual superpixels to the semantic classes in steps a3) and / or b3) can be carried out either automatically or semi-automatically. In other words, it can be a computer-assisted class assignment that is carried out either completely automatically or using user input. For example, the respective class assignment can be carried out using a so-called k-means-based algorithm. A k-means algorithm, which in English is also referred to as k-means clustering, is an automated method for cluster analysis in which a previously known number k of groups is formed from a set of similar objects (here the superpixels). The use of such k-means algorithms is widespread in the prior art, especially in image processing.The well-known extensions of the k-median algorithm, k-medoids algorithm and the k-means++ algorithm should also be included under the term k-means-based algorithms. The value k is typically specified by the user. If, for example, an image data set with a certain number of superpixels is to be divided into a simply connected tool area and a simply connected background area, then the value 2 can be set for k. The value of k can be set by a user within steps a) or b) and / or corrected if necessary, for example if a more complex tool geometry requires a higher value of k.
[0035] In general, and regardless of the algorithm used, the assignment of the superpixels to the semantic classes in steps a3) and / or b3) can comprise a sub-step of a computer-aided review of the assignment by a user and / or a computer-aided determination of an assignment by a user. According to the first variant, an automated assignment can first be carried out, and the user can check whether this automated assignment correctly reproduces the tool outline. If this is not the case, the user can enter a corrected outline; otherwise, the automatically determined assignment can be adopted for the subsequent steps. In the second variant, the user can determine a manual assignment in an environment provided by the computer (e.g. within a graphical user interface).For example, the user can draw or drag a line for the tool outline into an image of the respective image data set. Within the described steps a3) or b3), the assignment to the tool and background classes generally takes place at the superpixel level. Optionally, however, it is also possible for the tool outline to be manually defined at pixel level by user input before step a2) or b2). In this case, the assignment at superpixel level in step a3) or b3) can be based on the assignment previously defined by the user at pixel level.
[0036] In those embodiments in which a review and / or determination of the assignment by a user takes place in steps a3) and / or b3), this can particularly preferably be the only user input that takes place within steps a2), a3), b2, b3) and c). Optionally, step d) also does not contain any further user input. In other words, the remaining image processing steps take place without further interaction with the user, since automated segmentation, assignment and similarity assessment can be carried out comparatively easily and efficiently here, especially with the AI-based methods described.However, optional user input when defining the tool outline can be useful, especially to save computing time and / or to enable reliable assignment of edge defects in the outline area, particularly if the neural networks used have not been specifically trained for image processing of tool images. According to a further generally advantageous embodiment, the automated assessment of the similarity in step c1) can be carried out using an artificial neural network based on a metrics learning method and in particular the deep metrics learning method (DML). The DML method typically uses a module for feature extraction, for example a non-linear CNN-based module. Such a module for feature extraction is often also referred to as an encoder in the prior art. Image features extracted by the module are embedded in a feature space.Each image feature corresponds to a vector in the feature space, and the more similar two image features are, the smaller their distance in the corresponding feature space. The DML method is described in detail in the article "Deep Metric Learning: A Survey" by M. Kaya and H. S. Bilge in Symmetry 2019, 11, 1066. Crucial to the successful and efficient application of this method are the selection of suitable input data when training the neural network, the network structure, and the selection of a suitable metric loss function during training. For example, the neural network used in the DML method can advantageously be a Siamese network or a triplet network. Such a network can be trained using a suitable metric loss function (such as contrastive loss, triplet loss, structured loss, and other loss functions described in the above-mentioned article).In particular, the network can be trained generically, i.e. without the use of tool-specific training data. After such training, even small differences between image regions can be differentiated and evaluated using a DML network. The similarity assessment of the superpixels based on the DML method thus also enables reliable assignment to defect classes and, in particular, classification as a surface defect or as an undamaged tool region if a suitable threshold for the similarity is used. The output of the DML network when comparing two image regions can, for example, be binary (with a classification as "similar" or "dissimilar") or contain discrete or continuous similarity values based on the distance in the feature space.
[0037] As an alternative to the DML method, other AI-based methods for similarity assessment can be used, possibly employing trained neural networks. Alternatively, a similarity value can also be determined using a conventional algorithm, e.g., based on a simple comparison of image intensities.
[0038] Generally advantageously, step c1) comprises the assessment of the similarity of the respective working superpixel with all reference superpixels in the tool area of the reference data set. This similarity assessment is repeated for all working superpixels in the tool area of the working data set. In other words, in this embodiment, all working superpixels in the tool area are compared with all reference superpixels in the tool area, and a similarity value is determined for each comparison pair. If the overall similarity for a given working superpixel with the entirety of the reference superpixels is comparatively low, this working superpixel is assigned a low overall similarity value and it is classified as an area defect.The overall similarity assessment for a given working superpixel can be performed, for example, by averaging the similarity values from all relevant individual comparisons. However, numerous other methods for calculating the overall similarity are also possible, in which, for example, individual similarity values are assigned different weights, and in particular, the maximum and / or minimum similarity values can be given greater weight.
[0039] In general, the tool whose condition is monitored using the method can be a machining tool for a machine tool, in particular for a machine tool in an industrial production facility. For example, it can generally be a cutting tool, a turning tool, a turning tool, a milling cutter, a drill, and / or an indexable insert.
[0040] The invention is described below using some preferred embodiments with reference to the attached drawings, in which:
[0041] Figure 1 shows a schematic flow diagram for the higher-level process steps a) to e),
[0042] Figure 2 shows a schematic flow diagram for the sub-steps of process step a),
[0043] Figure 3 shows the result of a segmentation into superpixels for a part of the working data set,
[0044] Figure 4 shows a flow diagram of sub-step a2),
[0045] Figure 5 shows a schematic flow diagram of process step d),
[0046] Figure 6 shows a schematic representation of the classification data set provided in step e) and
[0047] Figure 7 shows a schematic overview diagram of an analysis system.
[0048] In the figures, identical or functionally identical elements are provided with the same reference symbols.
[0049] Figure 1 shows a schematic flow diagram for the higher-level method steps a) to e), of which steps a) to d) in particular can each have the sub-steps described above, as will also be explained in connection with Figures 2 to 5. Steps d) and e) are each optional. In step a), a reference data record DS1 is provided which is assigned to a reference state of the tool. This is in particular an undamaged state of the tool. In step b), a work data record DS2 is provided in a similar way which is assigned to a work state of the tool. This is in particular a state after use of the tool, in which potential wear could have occurred.In step c), using these two data sets DS1 and DS2, surface defects in the working data set DS2 are automatically classified and assigned to a surface defect class CIS, provided that such surface defects are present. In the optional step d), edge defects in the working data set DS2 are also automatically classified, provided that such edge defects are present. In this case, an assignment to a material build-up class C1+ and / or a material removal class C1- takes place. These are the two most important defect types in the edge area of the tool shown in the respective illustrations. In the optional step e), the results of the previous steps are combined and any classification according to the defect classes CIS, C1+ and / or C1- is provided in a higher-level classification data set DSC.This can be made available to a user, for example, via a graphical interface.
[0050] Steps b) to e) can be repeated multiple times for the same tool, as indicated by the loop symbol. In particular, the same reference data set DS1 for the unworn tool can be used for the comparison in each case. If several tools are to be monitored for wear, the entire sequence a) to e) can be repeated multiple times. It is particularly advantageous if any neural networks used remain unchanged even when the tool type is changed and are therefore not trained specifically for the respective tool type.
[0051] Figure 2 shows a schematic flow diagram for the sub-steps a1) to a4) of method step a). In sub-step a1), a first image data set IM1 is first generated. For this purpose, an image of the tool under consideration is recorded in a wear-relevant area. This image data set IM1 can, for example, have been generated using a digital camera. In sub-step a2), the first image data set IM1, which comprises a large number of first pixels PI, is segmented into a number of superpixels SP1. The segmentation can be automated, for example using a neural network and in particular a superpixel sampling network. In sub-step a3), the superpixels SP1 thus formed are assigned to at least two semantic classes, namely a tool class C1T and a background class GIB. This defines a tool area T and a background area B of the reference data set DS1.In the simple schematic illustration of Figure 2, these are simply connected areas T and B, which are separated accordingly by a simple outline line LI. In the case of more complex tool geometries, however, several such outline lines can be present, and the areas B and / or T can optionally comprise several unconnected sub-areas. The assignment to the at least two semantic classes can be carried out in particular using a k-means-based algorithm. It can optionally be checked or determined by a user 100, with this checking or determination advantageously being carried out with computer support. In the optional, final sub-step a4), the reference data set DS 1 is saved. This reference data set DS 1 contains both the image information (e.g.Intensity values) for the individual pixels PI, as well as the corresponding information on the individual superpixels SP1, the assignment of the pixels PI to the respective superpixels SP1 and the assignment of the superpixels SP1 to the classes GIB, C1T and CIS. As an alternative to the storage shown here at the end of step a), this data can also be saved in the data set DS1 at the time it is created or defined. It is important that at the end of process step a) a data set DS1 with the described information is made available for the subsequent step c).
[0052] In an analogous manner, method step b) also comprises sub-steps b1) to b4). These are analogous to sub-steps a1) to a4) and are therefore not shown separately. However, Figure 3 shows the result for a sub-area of the working data set DS2 obtained in method step b). In sub-step b1), a second image data set IM2 was generated which in turn comprises a large number of second image points P2. Superimposed on this image is the segmentation into working superpixels SP2 as obtained in sub-step b2). In addition, the division of these working superpixels SP2 into a tool area T and a background area B is shown, as well as the outline L2 running between them. This division was in turn achieved in sub-step b3) by assignment to the two semantic classes C1T and GIB, analogous to the reference data set DS1.
[0053] In addition to the division into areas T and B, Figure 3 also shows an example working superpixel which has been assigned to the area defect class CIS. This assignment takes place within step c), in which both data sets DS1 and DS2 are used. Step c) comprises a sub-step c1), in which the working superpixels SP2 in the tool area T of the working data set DS2 are assessed with regard to their similarity to the reference superpixels SP1 in the tool area of the reference data set DS1. This similarity assessment is carried out automatically, for example using a suitable artificial neural network. The deep metrics learning method can be used particularly advantageously, for example using a Siamese network and / or a triplet network.In sub-step c1), the similarity of all working superpixels SP2 in the tool area T with all reference superpixels SP1 in the tool area T can be determined. The working superpixels SP2 of the tool area T, which are classified as being comparatively dissimilar to the reference superpixels SP1, are then assigned to the area defect class CIS in the subsequent step c2). Figure 4 shows a schematic flow diagram of sub-step a2) according to an exemplary embodiment of the invention. Sub-step b2) can also be implemented in a corresponding manner. In the example shown, the first image data set IM1 is segmented into reference superpixels SP1 using a superpixel sampling network 50. The structure and functioning of this SSN 50 in this example are implemented analogously to that described in the above-mentioned article by V. Jampani et al. and are therefore only presented here in summary.The SSN 50 thus comprises a deep convolutional neural network 51, which is followed by a differentiable SLIC algorithm 57. The deep convolutional network 51 comprises several successive convolutional layers 52, 53, 54, followed by a final layer 55. Each convolutional layer 52, 53, 54 contains, for example, a convolutional layer in the true sense and an activation function, in particular a rectifier or rectifier activation function, which can also be referred to as a Rectified Linear Unit activation function (RELU activation function for short). Some of the convolutional layers can furthermore each comprise a batch normalization and / or pooling layer. The respective pooling layer can be designed, for example, to carry out a 2x2 maximum value pooling or a 2x2 average value pooling.Before the last level 55, a so-called upsampling can optionally be carried out in order to achieve the original image resolution there again, as indicated by the upward-pointing arrows and the height of the bars.
[0054] The final level 55 is followed by the SLIC algorithm 57, in which the two sub-steps 58 and 59 are iterated several times in a loop-like sequence. In sub-step 58, the superpixel associations are recalculated, and in sub-step 59, the superpixel centers are recalculated. With the help of such an SSN 50, an AI-based method for automated image segmentation can be easily provided, whereby the neural network can be trained generically (and thus independently of the tool type used).
[0055] Figure 5 shows a schematic flow diagram of the optional method step d), which in this example comprises the sub-steps dO) to d3). In sub-step dO), an image transformation is first carried out in order to achieve a match in the alignment of the respective tool areas T. Such an image transformation can be applied to the reference data set DS1 or to the working data set DS2 or to both data sets DS1 and DS2. In principle, carrying out such an image transformation is optional and only necessary if there is an offset between the tool areas T in the two data sets DS1 and DS2 which exceeds a predetermined threshold value.
[0056] In the following step d1), the tool areas T of the reference data set DS1 and the working data set DS2 are compared with one another, for example by forming a difference. In the difference image or overlay image shown schematically here, it can be seen that even after the image transformation, the outline LI of the reference data set DS1 does not exactly coincide with the outline L2 of the working data set DS2. The remaining differences are therefore not due to distortion during image acquisition, but to the build-up or removal of material during use of the tool. Accordingly, in step d2), the image points P2 of the working data set DS2 which lie in the tool area T of the working data set DS2 and not in the tool area T of the reference data set DS1 are assigned to a material build-up class C1+.Similarly, in step d3), the image points P2 of the working data set DS2 that are located in the tool area T of the reference data set DS1 and not in the tool area T of the working data set DS2 are assigned to a material removal class CI-. The order of these two sub-steps d2) and d3) can, in principle, be arbitrary, and they can also run simultaneously.
[0057] Figure 6 shows a schematic representation of the classification data set DSC provided in the optional step e). In this higher-level classification data set DSC, the individual image points P2 of the second image data set IM2 are each assigned to one of the previously mentioned at least five semantic classes, namely the tool class C1T, the background class C1B, the surface defect class CIS, the material build-up class C1+ and the material removal class C1-. The assignment is based on the steps described above b3) for the assignment to the classes C1B and C1T, c2) for the assignment to the class CIS, d2) for the assignment to class C1+ and d3) for the assignment to the class C1-. Image points P2 which in step b3) were initially assigned to one of the classes C1B or C1T were assigned to one of the defect classes CIS, C1+ or CI- in one of the subsequent steps.In the higher-level classification data set DSC, the tool class C1T is therefore only assigned to the undamaged areas of the tool that have not been classified as defects. Overall, it is not absolutely necessary that all five of the classes mentioned are actually assigned. In particular, it is possible that the tool is not worn or is only slightly worn and that either none of the defect classes or only some of the defect classes have actually been assigned. The higher-level classification data set DSC can, for example, be displayed graphically to a user or made available in another way to inform them about the wear status of the tool.
[0058] Figure 7 shows a schematic overview diagram of an analysis system 20 according to an embodiment of the invention. In particular, the analysis system 20 is designed to carry out the described method. The analysis system 20 comprises a recording unit 30 which is equipped, for example, with a microscope camera in order to image a wear-relevant region 10a of a tool 10. For example, the tool 10 can be a cutting tool. In general, it can be a tool which is intended for installation in a machine tool 1. The recording unit 30 can advantageously be integrated into the machine tool 1 in order to carry out condition monitoring at certain time intervals. The recording unit 30 is coupled to a computing unit 40 in order to further process the recorded image data sets IM1, IM2 in accordance with the described method steps.In addition to the computing unit 40, the analysis system 20 also comprises a memory unit 60, which can be integrated into the computing unit 40, for example, as indicated here. It is expediently coupled at least to the computing unit 40. Furthermore, the computing unit 40 in this example comprises a plurality of neural networks, namely initially a deep convolutional network 51, which is part of a superpixel sampling network 50. This is used in method steps a2) and b2). Furthermore, the computing unit 40 comprises a Siamese network 41, which is used in the similarity assessment in sub-step c1). As indicated by the dots, the computing unit 40 can optionally comprise further elements not shown in detail here. In this example, it is coupled to an image output unit 70, with which in particular the obtained classification data set DSC can be displayed.Optionally, this image output unit 70 can also support user input for determining or verifying the assignments in steps a3) or b3). In other words, it can be a user interface via which corresponding data input is also possible.
[0059] The applicant points out at this point that, regardless of the grammatical gender of a particular personal term, persons with male, female and other gender identities are always included. List of reference symbols
[0060] 1 machine tool
[0061] 10 tools
[0062] 10a wear-relevant area
[0063] 20 Analysis system
[0064] 30 recording unit
[0065] 40 computing units
[0066] 41 neural network (Siamese network)
[0067] 50 superpixel sampling network
[0068] 51 deep convolutional network
[0069] 52 folding levels
[0070] 53 folding levels
[0071] 54 folding levels
[0072] 55 last level
[0073] 57 Differentiable SLIC algorithm
[0074] 58 Calculation of superpixel associations
[0075] 59 Calculation of superpixel centers
[0076] 60 storage units
[0077] 70 Image output unit
[0078] 100 users
[0079] B Background area
[0080] GIB background class
[0081] CIS area defect class
[0082] C1T tool class
[0083] C1+ material development class
[0084] CI- material removal class
[0085] DS 1 Reference data set
[0086] DS2 work data set
[0087] DSC classification dataset
[0088] IM1 first image data set
[0089] IM2 second image data set
[0090] LI outline in the reference data set
[0091] L2 outline in the working data set PI first pixels
[0092] P2 second pixels
[0093] SP1 reference superpixel
[0094] SP2 working superpixels
[0095] T Tool area a Providing a reference dataset al Creating a first image dataset a2 Segmentation into superpixels a3 Class assignment a4 Saving the reference dataset b Providing a working dataset bl Creating a second image dataset b2 Segmentation into superpixels b3 Class assignment b4 Saving the working dataset c Classification of surface defects cl Similarity assessment c2 Class assignment d Classification of edge defects dO Image transformation dl Comparison d2 Class assignment d3 Class assignment e Providing a classification dataset
Claims
Patent claims 1. Method for monitoring the condition of a tool (10) comprising the following steps: a) providing a reference data set (DS1) by a1) generating a first image data set (IM1) with a plurality of pixels (PI) for the tool (10) in a reference state, a2) automated segmentation of the first image data set (IM1) into a number of reference superpixels, (SP1) a3) assigning the reference superpixels (SP1) to at least two semantic classes which comprise a tool class (C1T) and a background class (GIB), so that a tool area (T) and a background area (B) of the reference data set (DS1) are defined;b) Providing a working data set (DS2) by bl) generating a second image data set (IM2) with a plurality of pixels (P2) for the tool (10) in a working state, b2) automated segmentation of the second image data set (IM2) into a number of working superpixels (SP2) b3) Assigning the working superpixels (SP2) to the at least two semantic classes so that a tool area (T) and a background area (B) of the working data set (DS2) are defined; c) automated classification of surface defects by cl) evaluating the similarity of the working superpixels (SP2) in the tool area (T) of the working data set (DS2) with the reference superpixels (SP1) in the tool area; (T) of the reference data set (DS1) and c2 ) assignment of the working superpixels (SP2) whose similarity values are below a given threshold to an area defect class (CIS).
2. Method according to claim 1 with the additional step: d) automated classification of edge defects by dO) applying an image transformation to the reference data set (DS1) and / or the working data set (DS2) in order to achieve a match in the orientation of the respective tool areas (T), at least if there is an offset between the tool areas (T) which exceeds a predetermined threshold value. dl) Comparison of the tool areas (T) of the reference data set (DS1) and the working data set (DS2), d2) Assignment of the image points (P2) of the working data set (DS2), which are located in the tool area (T) of the working data set (DS2) and not in the tool area (T) of the reference data set (DS1), to a material structure class (C1+) and d3) Assignment of the image points (P2) of the working data set (DS2), which are located in the tool area (T) of the reference data set (DS1) and not in the tool area (T) of the working data set (DS2), to a material removal class (C1-).
3. Method according to one of the preceding claims with the additional step: e) providing a higher-level classification data set (DSC) in which the individual pixels (P2) of the second image data set (IM2) are each assigned to one of at least five semantic classes in accordance with steps b3), c2), d2) and d3), which include the background class (GIB), the tool class (C1T), the surface defect class (CID), a material build-up class (C1+) and a material removal class (C1-).
4. Method according to one of the preceding claims, in which steps a2), b2) and / or c1) are each carried out using at least one artificial neural network (41), in particular using a convolutional neural network.
5. Method according to claim 4, wherein steps a), b) and c) are repeated several times in succession for different types of tools (10), wherein in particular the at least one artificial neural network (41) remains unchanged.
6. Method according to one of the preceding claims, wherein the segmentation into superpixels (SP1, SP2) in steps a2) and / or b2) is carried out using a superpixel sampling network (42).
7. The method of claim 6, wherein the superpixel sampling network is based on the combination of a differentiable SLIC algorithm and a convolutional neural network.
8. Method according to one of the preceding claims, in which the assignment of the superpixels (SP1, SP2) to the semantic classes in steps a3) and / or b3) is carried out in an automated or semi-automated manner, in particular using a k-means-based algorithm.
9. The method according to claim 8, wherein the assignment of the superpixels (SP1, SP2) to the semantic classes in steps a3) and / or b3) comprises a sub-step of a computer-assisted review of the assignment by a user and / or a computer-assisted determination of an assignment by a user (100).
10. Method according to one of the preceding claims, in which the evaluation of the similarity in step cl) is carried out with an artificial neural network (41) based on the deep metrics learning method.
11. The method according to claim 10, wherein the application of the deep metric learning method is carried out using a Siamese network (42) or a triplet network.
12. Method according to one of the preceding claims, in which the evaluation of the similarity of the working superpixels (SP2) in step cl) comprises the evaluation of the similarity of the respective working superpixel (SP2) with all reference superpixels (SP1) in the tool area (T) of the reference data set (DS1), and that this evaluation is repeated for all working superpixels (SP2) in the tool area (T) of the working data set (DS2).
13. Method according to one of the preceding claims, wherein the tool (10) is a machining tool for a machine tool (1).
14. Analysis system (20) for monitoring the condition of a tool (10), which has a recording unit (30), a computing unit (40) and a storage unit (60), wherein the analysis system (20) as a whole is designed to carry out the method according to one of the preceding claims.
15. A computer program product comprising instructions, wherein the instructions, when the computer program product is executed on a computer, cause the computer to carry out the method according to one of claims 1 to 13.
Citation Information
Patent Citations
Generating segmentation masks for training a semantic segmentation model
EP4174766A1
