Method for analyzing a component, method for training a system, device, computer program and computer readable storage medium

The use of multiple neural networks with global pooling layers and supervised learning enhances the detection and visualization of component features, addressing reliability issues in existing methods and reducing material waste and costs.

JP7562851B2Active Publication Date: 2024-10-07FUJITSU TECHNOLOGY SOLUTIONS GMBH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023521376
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-07
Filing Date
2021-09-29
Publication Date
2024-10-07
Estimated Expiration
2041-09-29

Smart Images

  • Figure 0007562851000001
    Figure 0007562851000001
  • Figure 0007562851000002
    Figure 0007562851000002
  • Figure 0007562851000003
    Figure 0007562851000003
Patent Text Reader

Abstract

The present invention relates to a method for analyzing a component, a method for training a system, an apparatus, a computer program, and a computer-readable storage medium. The present invention relates to a method (200) for analyzing a component, the method (200) comprising: - receiving an image of a component; - performing feature recognition on the received images using a plurality of neural networks (203), wherein at least one first neural network of the plurality of neural networks is trained based on a first set of training images and at least one second neural network of the plurality of neural networks is trained based on at least one second set of training images, and wherein the at least one first neural network and the at least one second neural network each include a global pooling layer; - displaying (205) the results of the feature recognition with reference to the representation of the component.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for analyzing components. Furthermore, the present invention relates to a method for training an analysis system for components. Furthermore, the present invention relates to an apparatus for analyzing components and an apparatus for training a system for analyzing components. Furthermore, the present invention relates to a computer program and a computer-readable storage medium. [Background technology]

[0002] Components, for example manufactured by a machine, may have features, for example on their surface or inside. These features may be intended structures, like markings or similar, or they may be defects in the component. Surface or internal defects of such components may significantly reduce the value of the component or even make it unusable. If such defects are not detected, they may also pose serious safety risks. For this reason, there is a need to reliably detect surface or internal features of such components and, if necessary, to distinguish between different types of features.

[0003] Such feature recognition is carried out, for example, by experts. However, this is very time-consuming and can lead to highly variable results due to human error. Machine recognition of such features suffers today from the lack of a sufficiently high reliability in feature recognition. As a result, if the systems for detecting these features are set to be very sensitive, so that as few defective components as possible remain undetected, a large number of components are rejected as having the features. This leads to a high rejection rate of such components, which causes high costs and waste of material. Summary of the Invention

[0004] It is an object of the present invention to solve or mitigate the above problems.

[0005] This object is solved by the features of the independent claims. Advantageous embodiments are defined in the dependent claims.

[0006] According to a first aspect of the present invention, a method for analyzing a component comprises the steps of: - receiving an image of a component; - performing feature recognition on received images using a plurality of neural networks, where at least one first neural network of the plurality of neural networks is trained based on a first set of training images and at least one second neural network of the plurality of neural networks is trained based on at least one second set of training images, where each of the at least one first neural network and the at least one second neural network includes a global pooling layer; - displaying the result of the feature recognition with reference to a representation of the components; Includes.

[0007] The methods presented herein allow for highly reliable detection and visualization of surface or internal features of a component based on the captured images, such as surface or internal defects of the component, or alternatively or additionally, such features may be inscriptions or other intentional surface structures.

[0008] For example, a global average pooling layer is suitable as the global pooling layer. Alternatively, a global max pooling layer or a global min pooling layer can be used.

[0009] The at least one first neural network and / or the at least one second neural network are, for example, convolutional neural networks (CNNs). The global pooling layer is advantageously the first layer following the last convolutional layer.

[0010] Advantageously, the method according to the first aspect provides a machine recognition of these features with a high recognition rate. Performing the feature recognition with at least two trained neural networks provides a high reliability in the recognition of the features. The method described above can therefore be used in particular for components whose detection is complex, such as defects or other features. This is the case, for example, for components manufactured by die casting processes. Components manufactured by die casting may have defects or other features that are difficult to detect. However, the same is true for components manufactured by other methods. The components considered here can be made of, for example, plastic, metal, ceramic, glass or other materials. Such features are, for example, features that can be detected by photographs or other images of the surface of the component or, internally, by corresponding imaging methods, such as X-ray or ultrasound images. With the method presented here, even such defects that are difficult to detect can be found with a high degree of reliability.

[0011] A further advantage of the method according to the first aspect is that, in addition to detecting features, the detection of the features is displayed relative to a corresponding image of the surface or interior of the component. In other words, features detected on the surface or interior of the component are localized relative to the image of the surface or interior of the component and displayed accordingly. In this way, a user of the method can immediately recognize at which position on the component the feature is located. This allows a fast and time-saving inspection of the component and a corresponding fast and reliable quality assurance.

[0012] The method according to the first aspect is a computer-implemented method.

[0013] In at least one embodiment, a method for displaying the probabilities calculated using neural networks is used to display the results of feature recognition, in particular the Class-Activation-Mapping method.

[0014] The calculated probability in this embodiment indicates the likelihood that a feature is present or not at the corresponding location for which the probability is indicated. In other words, the representation of the probability indicates which areas of the inspected image attract the attention of at least one first neural network or at least one second neural network. Although the neural networks only perform a classification of the imaged part of the component, i.e. detect whether a surface or internal structure is detected as a feature or not, it is also possible to represent in this way where the areas with features are located.

[0015] The advantage here is that even for neural networks trained solely for classification, the positional or locale placement of features can be represented graphically.

[0016] In at least one embodiment, at least a portion of the received image is enhanced or augmented prior to or during the step of performing feature recognition.

[0017] Augmentation in this context means presenting at least a part of a received image in a different form, which includes for example rotating, flipping or applying a filter to at least a part of the received image.

[0018] The advantage here is that more reliable results can be achieved in this way during feature recognition: for example, surface shading and reflections or other imperfections in the image, including inside components, can be better distinguished from features in this way.

[0019] In at least one embodiment, the received images of the component are further used to further train at least one of the plurality of neural networks.

[0020] The received images can be used for training at least one first neural network and / or for training at least one second neural network. The advantage here is that in this way the neural network can be further trained to achieve improved feature recognition results. This allows the neural network to be expanded independently without the need for experts. For this purpose, for example, so-called "semi-supervised-learning" is used.

[0021] In at least one embodiment, the received image is divided into a number of image sections prior to the step of performing feature recognition.

[0022] These separate image sections can be processed separately with feature recognition. The advantage here is that the computational power for processing the image sections can be reduced compared to the entire captured image. This saves computational power. Furthermore, processing time is saved in this way. Furthermore, this allows for more accurate detection and in particular more accurate localization of features in the received image.

[0023] According to a second aspect of the invention, a method of training a system for analyzing a component comprises: - creating a first set of training images, the first set including training images showing at least a portion of at least one component, where a recognizable feature on the at least one component is marked in the training images of the first set; - training at least one first neural network based on a first set of training images, the at least one first neural network including a global pooling layer; - creating at least one second set of training images, the at least one second set including training images for which at least one component feature was not correctly detected by the at least one first neural network; - training at least one second neural network based on the at least one second set of training images, the at least one second neural network including a global pooling layer; recognizable features on the training images of the second set of training images are marked or image sections of the training images containing recognizable features are assigned to corresponding feature classes; - aggregating or aggregating the at least one first neural network and the at least one second neural network into a plurality of neural networks.

[0024] For example, a global average pooling layer is suitable as the global pooling layer. Alternatively, a global max pooling layer or a global min pooling layer can be used.

[0025] The at least one first neural network and / or the at least one second neural network are, for example, convolutional neural networks (CNNs). The global pooling layer is advantageously the first layer following the last convolutional layer.

[0026] Advantageously, in the method according to the second aspect, the system for analyzing components is trained to achieve a particularly high recognition rate when analyzing such components. In the training images of the first set of training images, the features of at least one component shown in the training images are marked. In other words, where the features are located in these images is stored together with the corresponding image files. This is also called "labeled" images. By training at least one first neural network with these training images, at least one first neural network is generated that detects features with a relatively high probability.

[0027] The at least one second set of training images (hereinafter also referred to as the at least one second training image set) used to train the at least one second neural network includes training images whose represented features of components are not correctly detected by the at least one first neural network. For example, the at least one second training image set includes training images used to test the at least one first neural network that were not properly analyzed by the at least one first neural network. The at least one second training image set may also include only a portion of such test images to which an inaccurate analysis is applied.

[0028] Training at least one second neural network with at least one second training image set produces a second neural network trained to recognize features not detected by the at least one first neural network. In other words, the at least one second neural network is included in an ensemble for the result generation together with the at least one first neural network to achieve improved results. Creating at least one second training image set and training at least one second neural network thereon is also referred to as the "Hard-Negative-Mining" method. Alternatively, the so-called "Hard-Positive-Mining" method can also be used.

[0029] Training at least one second network based on at least one second training image set can be performed once, such that at least one second neural network is trained based on the second training image set. However, this process can also be performed multiple times, such that further second neural networks are trained based on further second training image sets. These can be made of so-called "hard negative" training images as mentioned above, or so-called "hard positive" training images. The further second training image set can also include, for example, training images that were not correctly analyzed by the previously trained second neural network (hard negative / hard positive).

[0030] Both the at least one first neural network and the at least one second neural network each include a global pooling layer. This first layer following the last convolution layer is in both cases a global pooling layer, which transforms the last two-dimensional layer of the respective neural network and stores the determined results in a vector. This global pooling layer replaces, for example, the last fully-connected layer. The advantage here is that the global pooling layer as the first layer following the last convolution layer is particularly suitable for displaying the results of the analysis of the components in so-called heat maps.

[0031] The combining or aggregating (Zusammenfassen) of at least one first neural network with at least one second neural network into a plurality of neural networks means that an ensemble of first and second neural networks is created, whose components can be analyzed in a subsequent analysis.

[0032] The method according to the second aspect is a computer-implemented method.

[0033] In at least one embodiment, the training of the at least one first neural network and / or the training of the at least one second neural network is performed using supervised learning.

[0034] The advantage here is that in this way errors in the process of feature recognition by the neural network are reduced. For this purpose, the prediction results of each neural network regarding the recognized features are verified using the respective labeled training images and corrected if necessary.

[0035] In at least one embodiment, the features not correctly detected by the at least one first neural network include features not detected by the at least one first neural network despite their presence and being marked, or features detected even though the corresponding location of the associated training image is not marked and the component displayed in the associated training image does not have a feature at this location. Alternatively or additionally, the features not correctly detected by the at least one first neural network include features detected by the at least one first neural network even though the component displayed in the associated training image has a feature at this location but the corresponding location of the associated training image is not marked. In particular, only the sections of the larger images to which the aforementioned cases apply can also be used as training images for the at least one second neural network. For the further second set of training images, the aforementioned cases can be applied analogously to features not correctly detected by the previously trained second neural network.

[0036] The use of such training images for at least one second training image set has the advantage that at least one second neural network can be trained on these training images, allowing errors in the results of the analysis by the at least one first neural network or a previously trained second neural network to be reliably compensated for. Furthermore, training images or image sections can also be used for at least one second training image set which contain features correctly detected by the at least one first neural network or by the at least one previously trained second neural network.

[0037] In at least one embodiment, the step of aggregating the at least one first neural network and the at least one second neural network into a plurality of neural networks further includes: - assigning first weights according to which the results of the analysis by the at least one first neural network are evaluated; - assigning at least one second weighting by which the results of the analysis by the at least one second neural network are evaluated.

[0038] Here, the advantage is that by selecting suitable weights, with which the analysis results of the respective neural networks are weighted, the best possible total result can be obtained in the analysis of the components. Best possible here means a result with the highest possible reliability. For example, the best possible weighting can be checked by a test analysis. For example, the at least one first neural network can be assigned a higher weighting than the at least one second neural network. In this case, the result of the analysis by the at least one second neural network overrules the result of the analysis by the at least one first neural network when the first neural network only provides an uncertain result, but the at least one second neural network determines with a high probability that there is an error in the analysis of the first neural network.

[0039] According to a third aspect of the invention, an apparatus for analysing a component is configured to carry out a method according to the first aspect.

[0040] According to a fourth aspect of the invention, an apparatus for training a system for analysing a component is configured to carry out a method according to the second aspect of the invention.

[0041] According to a fifth aspect of the invention, a computer program comprises instructions which, when the computer program is executed by a computer, cause the computer program to carry out a method according to the first aspect or a method according to the second aspect.

[0042] According to a sixth aspect of the present invention, a computer readable storage medium comprises a computer program according to the fifth aspect.

[0043] Advantages and embodiments of the third, fourth, fifth and sixth aspects substantially correspond to those of the first and second aspects, respectively. Features mentioned with respect to any aspect may also be combined as appropriate with the subject matter of the other aspects. [Brief description of the drawings]

[0044] Embodiments of the invention are explained in more detail below with reference to schematic drawings. [Figure 1] FIG. 1 is a flow chart of a method for training a system to analyze components. [Diagram 2] FIG. 2 is a flow diagram of a component analysis method. [Diagram 3] FIG. 3 is a schematic diagram of a device for training the system and analyzing components. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0045] Fig. 1 shows a flow chart of a method 100 for training a system for analyzing a component. The method 100 according to Fig. 1 is described with the example of training a system for analyzing a surface of a component. However, this should be understood as merely an example. Similarly, the method can also be used to train a system for analyzing other parts of a component. For example, cut surfaces, damaged areas, X-ray images, ultrasound images, etc. can be used to analyze internal areas of a component.

[0046] In a first step 101 of the method 100, a first set of training images is created. The first set of training images is a plurality of 2D-RGB images showing the surface of a component. The images show the surface of a component similar to the component that is ultimately to be analyzed by the system to analyze the surface of the component. For example, if the system is used to analyze a die-cast component, the images in the first set of training images show the surface of such a die-cast component. Of course, other types of components can be used. Alternatively, other images can be used instead of the 2D-RGB images, such as black and white images, grayscale images, other photographic images, x-ray images, ultrasound images, etc. The image type of the training images is matched to the image type of such images for best results of the subsequent analysis and used for subsequent feature recognition.

[0047] In the images of the first set of training images, the features visible on the surface of the component are labeled, also referred to as “labeled” images. Features are, for example, undesired defects such as unwanted holes, scratches, cracks, dents, dents, chips, dents, and other features to be detected by the system, for example marks, creases, intended openings, etc. The marking of the features in the images of the first set of training images was, for example, done by an expert. The labels of the features are saved together with the XY coordinates associated with the respective image. The labeling of the features in the images can alternatively also be done later, as will be described below. In this case, the images of the first set of training images are initially unlabeled.

[0048] In a first step 101, an image from the first set of training images is further divided into a number of image sections, also called "patches". For example, the image is divided into a number of image sections of the same size. In this embodiment, the size of the image sections is adapted to the input size of the neural network to be trained in the system. The image sections can be arranged contiguously. Alternatively, the image sections can overlap.

[0049] In a second step 102, image sections of the images of the first set of training images are classified. For this purpose, each section of each image is assigned a predetermined class. The predetermined class distinguishes image sections that do not have the feature from image sections that do have the feature. This is done automatically, for example by detecting whether the respective image section is at least partially located in an area marked with the feature.

[0050] In the aforementioned case where the features in the image were not initially labeled, the labeling of the features can be performed simultaneously with the classification in this step 102. In this case, the image sections of the unlabeled image created in step 101 are directly classified by an expert. Thus, for each image section, it is determined whether it is an image section that at least partially shows a feature or a part of a feature. At the same time, the image sections that at least partially show a part of a feature are assigned to a predefined class of the feature.

[0051] In classification there is a class "normal", which is assigned to image sections that have no features. There are also classes that are assigned to specific types of features. Thus there are classes "Merkmal 1" to "Merkmal n" that are assigned to image sections that have corresponding features. These different feature classes refer to different types of features that are subsequently recognized and differentiated according to their class by a trained neural network. For example, if a neural network subsequently trained is to distinguish between scratches on the surface and unwanted holes on the surface from, for example, engravings, there will be class 1 assigned to image parts with scratches, class 2 assigned to image parts with unwanted holes and class 3 assigned to image parts where engravings are recognizable.

[0052] The assignment of a class to each image section can be performed, for example, based on a threshold value. In this case, each image section is assigned to the corresponding class only if the part of the image section with the corresponding feature exceeds the threshold value. For example, a threshold value between 10% and 25% can be selected for this purpose. This threshold value can depend, in particular, on the common size of the respective features.

[0053] In a third step 103, a graphical filter is applied to all image sections of the images of the first set of training images, such as a black and white filter that converts a 2D RGB image into a black and white image. In particular, the so-called Otsu-Filter is suitable, which converts an RGB image into a binary black and white image.

[0054] After applying the filter to the image sections of the images of the first set of training images, all image sections that do not show any part of the component can be sorted in a simple automated way. For example, these are image sections that show the background in front of which the component was photographed. These sections are not relevant for training the neural network. Sorting such image sections allows for faster and more accurate training of the neural network. Again, a threshold for sorting the image sections can be selected. For example, image sections can be considered only if at least 5% of the image sections show part of the component.

[0055] In a fourth step 104, a set of first neural networks is prepared. The first neural networks may be pre-trained or may be newly trained. In particular, the first neural networks are convolutional neural networks (CNN). For example, pre-trained open source networks can be used for this purpose. For example, the CNN "ResNet 50" can be used for this purpose. Furthermore, different first neural networks can be used whose results are then averaged. Furthermore, when selecting the networks, the requirements for analyzing the surface of the component can be taken into account. For example, a particular neural network can be selected depending on whether more accurate results or shorter analysis times are desired when analyzing the surface of the component.

[0056] In a fourth step 104, it is further ensured that each first neural network has a global pooling layer, such as a global average pooling layer, a global maximum pooling layer, or a global minimum pooling layer. In this embodiment, the global pooling layer is the first layer following the last convolution layer. Whatever neural network is selected as the first neural network, if the output layer is not a global pooling layer, the existing layer of the network that is the first layer following the last convolution layer is removed and a global pooling layer is inserted instead. The global pooling layer is particularly suitable for visualization of analysis results, so it is selected here as the first layer following the last convolution layer of the first neural network.

[0057] In a fourth step 104, the global pooling layer is also connected to a sigmoid or softmax layer present in the first neural network. To avoid or mitigate overfitting, an additional layer can be inserted between the global pooling layer and the sigmoid or softmax layer. The sigmoid layer is particularly used when there are at most two feature classes. The softmax layer is particularly used when there are more than two feature classes. The sigmoid or softmax layer is the final layer that determines the class to which a feature belongs when it is detected.

[0058] In addition to using additional intermediate layers, image sections can be enhanced and multiple first neural networks can be used to reduce or avoid overfitting, which has the advantage that accurate and reliable training of the neural network is possible even when only a small amount of data is available to train the neural network.

[0059] In a fifth step 105, a first neural network is trained based on a first set of labeled training images. The so-called "supervised-learning" is used for training the first neural network, whereby the prediction results of the first neural network are checked during the training procedure using labeled images of the first set of training images. In this way, it is possible to correct errors in the prediction results and achieve better training results of the first neural network.

[0060] Alternatively, the training of the first neural network can be performed using semi-supervised learning, where the first neural network trained using semi-supervised learning can recognize features that are even different from the features of the training images.

[0061] During training of the first neural network, the image section on which the first neural network is trained is enhanced. Enhancement of the image section may include, for example, rotating, flipping, applying noise filters, sharpening, etc. to the image section. Alternatively, enhancement of the image section may be completed prior to the training process and the enhanced image section may be stored for the training process. In other words, enhancement may be performed online or offline.

[0062] In particular, the enhancement can be performed using a random algorithm, so that the image sections are randomly modified. In this way, a more robust model can be trained. Another advantage of enhancing the sections is that it can reduce or eliminate the effects of, for example, different exposures, reflections, or other visual impairments of the images in the first set of training images.

[0063] In a sixth step 106, all first neural networks are tested using a test dataset. In the embodiment shown here, similar to the training images, the images of the test dataset are also divided into image sections, classified, labeled, and pre-sorted to remove irrelevant image sections using graphical filters. In other words, the images of the test dataset are prepared similarly to steps 101-103.

[0064] Based on the results obtained from the analysis of the images of the test data set, an ensemble of neural networks is selected from the first neural networks that will ultimately be used to analyze the surface of the component, the ensemble including at least one first neural network, in particular at least one or more of the first neural networks that achieve the most reliable results when analyzing the test data are selected.

[0065] In a seventh step 107, a second set of training images is assembled. The second set of training images consists of image sections of the images of the test data set in which features were not correctly detected during testing in step 106. In the exemplary embodiment shown here, this concerns both the case where a putative feature was detected by the first neural network but is not present or where a labeled feature was not detected by the first neural network, and the case where the first neural network detected a feature during testing that was actually present in the image section of the test images but was not erroneously labeled with a feature label. The latter is for example the case where the expert who labelled the test images did not recognise or forgot to label the feature. To create the second set of training images, the embodiment uses the hard negative mining method described above. Alternatively, a perfect corresponding image can be used.

[0066] The images in the second set of training images are then stored along with the corresponding information about the image sections, whether they are misidentified ("hard negatives") or mislabeled ("unlabeled"). Additionally, the second set of training images may be populated with image sections that are correctly labeled as having the feature, and that were correctly detected by the first neural network.

[0067] In an eighth step 108 of the method 100, a second neural network is trained based on the second set of training images. Like the first neural network, the second neural network may be pre-trained or untrained. Moreover, the second neural network is also specifically a convolutional neural network (CNN). In the illustrated exemplary embodiment, the second neural network is prepared and trained similarly to the first neural network, except that the training of the second neural network is based on the second set of training images created in step 107. In other words, steps 104 to 106 are performed for the second neural network.

[0068] The second neural network is trained on the basis of the training images created in step 107, so that the second neural network is trained in particular to recognize surface features of the component that were not correctly detected by the first neural network. The second neural network can thus be used to verify and, if necessary, correct the results of the analysis performed by the first neural network. At least one second neural network is then selected from the second neural networks, which provides in particular the most reliable results.

[0069] If necessary, a further second set of training images can be created and a further second neural network can be trained based on the further second set of training images. This can be done similarly to the second neural network described above. The further second set of training images can, for example, further include training images that were not correctly detected by the previously trained second neural network. Thus, the hard negative mining method described above can be applied here with respect to the previously trained second neural network. Furthermore, the hard positive mining procedure can also be applied here.

[0070] In a ninth step 109, an ensemble of the first and second neural networks is assembled. For this purpose, the first neural network that provided the best feature recognition result selected in step 106 and the second neural network that provided the best feature recognition result on the side of the second neural network are selected. The ensemble can comprise one first neural network and one second neural network, respectively, or can comprise multiple first neural networks and / or multiple second neural networks, respectively, or can comprise one first neural network and multiple second neural networks, or can comprise multiple first neural networks and one second neural network. Selecting multiple first and / or second neural networks for the ensemble can provide more robust feature detection results. Reducing the number of first or second neural networks for the ensemble can reduce the processing time and / or computational costs of the feature recognition. If necessary, the ensemble can additionally comprise neural networks of further second neural networks.

[0071] In step 109 of the method 100, coefficients are further assigned to the first and second neural networks, with which the results of the analysis of the surface of the component are respectively weighted. Whether a feature is recognized as such in the feature analysis is finally assessed by weighting the results of the respective first and second neural networks. If a further second neural network is available, it can be weighted accordingly.

[0072] In this evaluation, each result of the feature recognition of the first or second neural network is weighted according to a coefficient. The results of each of the first neural networks can be weighted differently from each other. Similarly, the results of each of the second neural networks can be weighted differently from each other.

[0073] For example, the results of the first neural network are weighted by a coefficient factor of 0.6 and the results of the second neural network are weighted by a coefficient factor of 0.4. For example, if the average evaluation of the feature analysis by the first neural network indicates that a feature is detected at a particular location 60% of the time, this result is weighted by a factor of 0.6. If the evaluation of the feature analysis by the second neural network indicates that there is a 95% probability that the feature is not present at this location, this 95% result is weighted by a factor of 0.4. In this case, since the evaluation of the second neural network exceeds the results of the evaluation of the first neural network, the ensemble of the first and second neural networks will predict with a higher probability the result that the feature is not present at that location. If further second neural networks are trained, they can be weighted similarly.

[0074] The advantage of the higher weighting of the first neural network described here is that the first neural network has been trained on a more extensive database. Thus, the first neural network provides relatively reliable results in many areas. However, in areas where the first neural network cannot provide reliable results, i.e. areas where the probability of correctness of the results is relatively low, these areas can be compensated based on the results provided by the second neural network, so that the results of the second neural network prevail despite the weaker weighting, if the probability of correctness of the results of the second neural network exceeds the probability of correctness of the results of the first neural network.

[0075] The weightings, in the embodiment shown, can be determined in an automated manner by testing different weightings using test data and determining the ratio of weightings of the first and second neural networks that provides the best final result when tested on the test data.

[0076] Fig. 2 shows a flow chart of a method 200 for analyzing a component. The method 200 according to Fig. 2 is described using the example of analyzing a surface of a component. However, this should be understood as only an example. Similarly, the method 200 can be used to analyze other parts of a component. For example, cut surfaces, damaged areas, X-ray images, ultrasound images or similar regions of the component can also be analyzed.

[0077] The first step 201 is to capture an image of the surface of the component to be inspected. The image is, for example, a photograph taken with a camera, a mobile phone, a tablet PC, or any other capture device. The image is, for example, a 2D-RGB image. Alternatively, another image type can be used instead of a 2D-RGB image, for example, a black and white image, a grayscale image, other photographic images, X-ray images, ultrasound images, etc. The image type of the captured image matches the image type of such images used for training to obtain the best results of the analysis.

[0078] Alternatively, if the image has been previously captured, step 201 need only receive the image from, for example, a database.

[0079] In a second step 202, the image acquired in step 201 is divided into image sections. The image sections can be divided so that they are adjacent to one another or at least partially overlap. In particular, the size of the image sections is adapted to the input size of the neural network used to analyze the surface. The overlapping of image sections can be advantageous, for example, for the visualization of the analysis results.

[0080] In a third step 203, feature recognition is performed for each image section of the captured image using an ensemble of at least one first neural network and at least one second neural network, where the image section can be enhanced before or during the feature recognition. The enhancement substantially corresponds to the enhancement described with reference to FIG. 1 and will not be described again here. For example, the ensemble of at least one first neural network and at least one second neural network is an ensemble of a first neural network and a second neural network generated according to FIG. 1.

[0081] The feature recognition results of the first neural network and the second neural network are averaged together, and then the average result of the first neural network and the average result of the second neural network are weighted together to generate a final result of the feature recognition. This weighting corresponds to the weighting described with reference to FIG. 1 and will not be described again here. In addition to the information of whether a feature exists, the ensemble of the first and second neural networks is further used to determine what kind of feature it is. In other words, if different feature classes are trained in the neural network, the features are also classified.

[0082] In a fourth step 204, the regions assessed as relevant during the feature detection in step 203 are localized or located on the image section. To localize these regions, the so-called class activation mapping method is used. Here, the weighted results of the output layers of the first and second neural networks, respectively, are projected onto the convolutional feature maps of the first and second neural networks, respectively. In other words, the locations where the ensemble of the first and second neural networks detects a feature are visualized as salient. In this visualization of the feature recognition results of the first and second neural networks, the pixels of the image section are color-weighted. The color of the pixel here corresponds to the probability that the ensemble of the first and second neural networks recognized the feature. In order to better visualize the features on the image section, class activation maps are formed separately for the extended image section and averaged over them. This is also called gradient filling.

[0083] In a fifth step 205, a heatmap is created and overlaid on the image captured in step 201. The heatmap is created by averaging the enriched class activation maps from step 204. Each pixel in the heatmap represents the probability that a feature is present at that location. The heatmap is displayed semi-transparently over the captured image, allowing a quick indication of which locations features were detected in the original image using a color gradient of the feature analysis result probabilities.

[0084] In a sixth step 206, after the expert has verified the accuracy and completeness of the detected features, the original image is labeled based on the heatmap. In other words, it is determined based on the coordinates which features are located in which locations in the original image. This labeled original image corresponds to the labeled training data described with reference to FIG. 1 used in step 101. The labeled original image is then saved and added to the set of training images. In this way, richer training data is generated, which can be used to further train the first and second neural networks, for example using the method 100 described with reference to FIG. 1.

[0085] The methods 100 and 200 described with reference to Figures 1 and 2 are computer-implemented methods.

[0086] Fig. 3 shows a schematic diagram of a device 1 for training a system to analyse a component 2. The device 1 is further configured to analyse the component 2. The device 1 according to Fig. 3 is explained using the example of a surface of the component to be analysed. However, this should be understood as only an example. Similarly, the device 1 can be used to analyse other parts of the component. For example, cut surfaces, damaged areas, X-ray images, ultrasound images or similar regions of the component can also be analysed.

[0087] In particular, the apparatus 1 is adapted to perform the method 100 and the method 200 described with reference to figures 1 and 2. The apparatus 1 comprises a computer system 3 arranged to train a first neural network 4 and a second neural network 5.

[0088] To train the first neural network 4 and the second neural network 5, the computer system 3 accesses training images 6. The training images 6 include a first set of training images on which the first neural network 4 is trained and at least one test data set on which the trained first neural network 4 is tested, from which a second set of training images is generated. The second set of training images is used to train the second neural network 5. A further second neural network 5 can then be trained using a further second set of training images, for example created by using a further test data set to test the previously trained second neural network 5.

[0089] The training images 6 are 2D-RGB images showing the surface of the component. However, the training images 6 can also be other types of images as described above. The training images 6 are each divided into image sections 7. In addition to the training images 6, information is stored of the particular image sections 7 in which features on the surface of the imaged component are recognizable.

[0090] The computer system 3 is arranged to train and test the first neural network 4 and the second neural network 5, to select an ensemble 8 of the first and second neural networks 4, 5 and to weight the first and second neural networks 4, 5 of the ensemble 8, the details of which will not be repeated here but reference is made to the discussion relating to figures 1 and 2.

[0091] The device 1 further comprises a recording and display device 9, which in the illustrated exemplary embodiment is a mobile device such as a smartphone or a tablet PC. The recording and display device 9 can be used to capture 2D-RGB images of the component 2 whose surface is to be analyzed. For other types of images, other recording and display devices are used accordingly, such as X-ray devices, ultrasound devices, etc. The device for capturing and displaying the captured images can of course also be implemented in a separate device.

[0092] The capture and display device 9 is arranged to transmit the captured images to a computer system 3. The computer system 3 is arranged to perform feature recognition on the captured images using an ensemble 8 of a first neural network 4 and a second neural network 5.

[0093] The computer system 3 is arranged to transmit the result of the feature recognition to a recording and displaying device 9. The recording and displaying device 9 comprises a display 10 capable of displaying the result of the feature recognition received from the computer system 3 with reference to the captured image of the component 2.

[0094] The recording and display device 9 may also be used to capture the training images 6. Alternatively, the training images 6 may have been captured by a separate device.

[0095] In the embodiment shown, the computer system 3 and the recording and display device 9 are separate devices. Alternatively, they may be integrated into one device. Furthermore, at least part of the device 1 may be implemented as a cloud solution. [Explanation of symbols]

[0096] 1 Apparatus or device (Vorrichtung) 2 Component (Bauteil) 3. Computer system 4. First Neural Network 5. Second Neural Network 6 Training images 7. Image section 8 Ensemble 9 Recording and display devices (Aufnahme- und Anzeigegeraet) 10. Display 100 Ways (Verfahren) 200 Ways (Verfahren) 101-109 Steps 201-206 Steps

Claims

1. 1. A method for analyzing a component, comprising: receiving an image of the surface or interior of said component; performing feature recognition on the received images using a plurality of neural networks, where at least one first neural network of the plurality of neural networks is trained on a first set of training images, the first set of training images including training images showing at least a part of at least one corresponding component, recognizable features on the at least one corresponding component being marked in the training images of the first set, and at least one second neural network of the plurality of neural networks is trained on at least one second set of training images, the at least one second set of training images including training images in which features on the at least one corresponding component were not correctly detected by the at least one first neural network, and where each of the at least one first neural network and the at least one second neural network includes a global pooling layer; - displaying the results of the feature recognition with reference to a representation of the component by comparing the output of the first neural network with the output of a second neural network, wherein features detected on the surface or the interior of the component are localized with respect to an image of the surface or the interior of the component and displayed accordingly; A method comprising:

2. the representation of the component on which the feature recognition results are displayed is the received image of the component; using a method for displaying the probabilities calculated using a neural network, in particular the class activation mapping method, to display the results of the feature recognition; The method of claim 1.

3. enhancing at least a portion of the received image prior to or during the step of performing feature recognition; if the size of the received image does not correspond to an input size of the at least one first neural network and / or the at least one second neural network, dividing the received image into a plurality of image sections prior to performing the feature recognition step. The method of claim 1.

4. performing a first feature detection by the at least one first neural network, performing a second feature detection by the at least one second neural network, and weighting results of the first feature detection and the second feature detection by a coefficient factor to calculate a result of the feature recognition; The method of claim 1.

5. 1. A method of training a system to analyze a component, comprising: - creating a first set of training images, said first set of training images including training images showing at least a part of at least one component, a recognizable feature on said at least one component being marked in said training images of said first set; training at least one first neural network based on said first set of training images, said at least one first neural network including a global pooling layer; - creating at least one second set of training images, said at least one second set of training images comprising training images in which at least one component feature was not correctly detected by said at least one first neural network; training at least one second neural network on the basis of the at least one second set of training images, the at least one second neural network including a global pooling layer, and recognizable features on the training images of the second set of training images are marked or image sections of the training images containing recognizable features are assigned to corresponding feature classes; - assigning weights for evaluating the results of the analysis by the at least one first neural network and the at least one second neural network, the individual results of feature recognition of the first neural network and the second neural network being weighted according to coefficients, the results of the individual first neural networks being possible to be weighted differently from each other and the results of the individual second neural networks being possible to be weighted differently from each other; A method comprising:

6. the training of the at least one first neural network and / or the training of the at least one second neural network is performed using supervised learning. The method of claim 5.

7. the features not correctly detected by the at least one first neural network include features which, despite being detected by the at least one first neural network, are not marked in the corresponding location of the associated training image and the depicted component in the associated training image does not have a feature at this location; and / or the features not correctly detected by the at least one first neural network comprise features which, although not detected by the at least one first neural network, have corresponding positions in the associated training images marked and components represented in the associated training images have the feature at this position; and / or a feature that has not been correctly detected by the at least one first neural network is detected by the at least one first neural network, but the corresponding location in the associated training image is not marked, although the mapped component in the associated training image has a feature at this location; The method of claim 5.

8. An apparatus for analyzing a surface of a component, said apparatus being configured to perform the method of claim 1.

Citation Information

Patent Citations

  • Inspection device

    JP2012026982A