Surface defect identification method and apparatus
Unsupervised neural networks generate defect-free images to identify defects on material surfaces, addressing inefficiencies in existing automated inspection methods by reducing training costs and enhancing defect detection accuracy across diverse applications.
Patent Information
- Application Number
- JP2020055855
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-13
- Filing Date
- 2020-03-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-03-26
AI Technical Summary
Existing methods for automating material surface inspection are laborious and limited by human expertise, and require large labeled datasets, leading to inefficiencies and increased production costs in manufacturing.
Utilizing unsupervised artificial intelligence, specifically neural networks like generative adversarial networks and convolutional denoising autoencoders, to automatically identify defects on material surfaces by generating defect-free or defect-reduced images without labeled training data, enabling efficient defect detection and localization.
Reduces training costs and eliminates the need for human intervention, providing a stable and efficient mechanism for defect inspection and localization on various surfaces, including manufacturing, medical, and infrastructure applications.
Smart Images

Figure 00000018_0000 
Figure 00000018_0001 
Figure 00000018_0002
Abstract
Description
[Technical field]
[0001] The present invention is in the field of material surface defect identification. In particular, the present invention relates to the use of machine learning algorithms to automate defect detection and identification. [Background technology]
[0002] Material manufacturers are constrained under very strict standards. To provide the highest possible quality materials while constantly producing more complex components, manufacturers need to control their products efficiently. For this purpose, non-destructive testing (NDT) has been used. NDT covers a broad set of analytical methods used in scientific and technical industries to evaluate the properties of materials, components or systems without causing damage. However, in automated production lanes, the inspection process is a bottleneck and therefore increases production costs.
[0003] Manufacturers capture large amounts of data by imaging products, but when they are not labeled, human input is required in the inspection process.
[0004] Existing techniques for automating material surface inspection can be categorized into two approaches. - The first is to create large datasets of human-labeled images, which is very laborious and limited by the expertise of the annotators. - The second is to create handcrafted algorithms, which apply computer vision methods on unlabeled datasets and evaluate the algorithms on small labeled datasets. Such approaches suffer from the difficulty of designing effective algorithms. Summary of the Invention
[0005] An embodiment includes a method of processing images of a material surface to identify defects in the imaged material surface, the method including the steps of automatically training a neural network to generate defect-reduced versions of input training images of the material surface, acquiring images of a target material surface, inputting the acquired images into the neural network to generate defect-reduced versions of the acquired images, comparing the generated defect-reduced versions of the acquired images with the acquired images to identify differences, and identifying defects in the target material surface at the locations of the identified differences.
[0006] Embodiments provide an automated defect inspection mechanism. The embodiments utilize an automatically trained neural network to generate defect-free or defect-reduced versions of images of target material surfaces, which reveal the locations of defects when compared to the actual images. In this manner, AI-based defect identification can be performed without labeled training data.
[0007] The embodiments use unsupervised artificial intelligence, which means that the model (i.e., the neural network and the image comparison step) learns by itself to detect defects. The embodiments train the neural network using defect-free or nearly defect-free sample images to remove defects such as scratches, dents, etc. from the images, so that the defects can be detected by comparison with the original image in which the defects are visible. Since the training is automated, the cost of training the system is significantly reduced compared to existing approaches. Furthermore, the defects detected are not limited by the knowledge of a human trainer.
[0008] The defect-reduced version of the image may be defect-free. Training may comprise training a neural network to generate a defect-free version of the image. The reduction is relative to the captured version of the image, whereby the neural network is trained to reduce defects in the input image.
[0009] The neural network may be an imparter neural network or an autoencoder. The neural network may be a generator neural network, a generative neural network, or a generating neural network, whereby it is intended that there is a neural network or model that generates data under the constraints of an input data set, in other words the generated data is a new version of the input data set.
[0010] The comparison can be, for example, a visual comparison to find defects by creating a residual (a bitmap or some other representation of the difference between the two versions), or it can be done pixel-by-pixel, block-by-block, for example, using some local metric, or based on pre-trained neural activations, or some combination of these approaches.
[0011] The embodiments are suitable for implementation in the manufacturing field where the material surface is the surface of a material or component being manufactured. The embodiments are also suitable for implementation in the medical field where the material surface is the surface of a human or non-human (including in particular reptiles, birds and animals) body, such as tissue surfaces, tissues or images of internal organs, including scanning electrical activity. The embodiments are also suitable for implementation in the field of infrastructure inspection to identify defects in structures such as wind turbine blades (imaged from a drone), bridges (imaged from a drone) or road surfaces (imaged with a vehicle mounted camera).
[0012] A defect may be anything that stands out from the background (including instances where the background being represented is a regular texture or series of structures), which may include bumps / depressions (which may indicate inconsistencies in thickness), discoloration. Defects may also be configured to not include specific shapes, such as animals.
[0013] Optionally, each training image is input to the neural network as a plurality of image portions, each image portion representing a spatial subdivision of the training image, the method further comprising aggregating the defect-reduced versions of the image tiles into a defect-reduced version of the training image; and the acquired image is input to the generative neural network as a plurality of image tiles, each image tile representing a spatial subdivision of the acquired image, the method further comprising aggregating the defect-reduced versions of the image tiles to obtain a defect-reduced version of the acquired image.
[0014] Advantageously, the tile-based training procedure provides a larger number of samples for training the neural network, reducing the effect of any defects present in the training data. Furthermore, the tile-based approach to processing is computationally efficient, with consequent advantages in defect localization. The tile size may be selected to ensure that training of the neural network and / or generation of a defect-reduced version of an acquired image by the neural network can be performed by a GPU. The GPU may be part of a particular computer or computer system that executes the method of an embodiment.
[0015] Optionally, the comparison includes identifying one or more locations where differences are identified between the defect reduced version of the image and the acquired image, and outputting the one or more locations.
[0016] A user may be interested simply in knowing whether or not there are defects on the imaged material surface, or how many defects there are. On the other hand, the location of the defects may be of particular interest, e.g. so that the material surface itself can be checked for defects. Outputting the location may be with reference to the acquired image, or directly on the material surface itself, e.g. by illumination.
[0017] The embodiment may further include the steps of extracting from the acquired image an image portion bordering the or each of the one or more locations where a difference was identified between the regenerated acquired image and the acquired image, inputting the or each image portion into an encoding neural network trained to output encoded features of the material surface defects by processing the input image portions indicative of the material surface defects (by processing the or each image portion with the neural network), and outputting the or each image portion extracted from the acquired image together with a label based on the respective output encoded feature.
[0018] Advantageously, such an embodiment utilizes a further neural network, which is trained to characterize and therefore label defects. This may be of particular interest to a user who wishes to summarize the nature of the defects present, for example for the purpose of assessing their severity. For example, the labels may be semantic labels, such as words or terms that describe the defects. The further neural network may be pre-trained or may be trained during the process of assigning labels to image parts.
[0019] The output may be outputting a labelled version of the image portion to a storage device, or outputting a labelled version of the image portion to a display unit for viewing by a user, or both.
[0020] Optionally, the one or more locations are a plurality of locations where a difference is identified between the defect reduced version of the acquired image and the acquired image, and there are a plurality of image portions extracted from the acquired image, each abutting the respective location, and the plurality of image portions are added to a stored population of image portions abutting the locations where a difference is identified from the previously acquired images and their respective defect reduced versions, and each member of the population of image portions is stored together with a respective encoded feature obtained by processing the image portion with an encoding neural network, and a clustering algorithm is performed on the encoded features of the image portions extracted from the acquired images to divide the image portions into groups, each of the plurality of image portions extracted from the acquired images being a member of a respective group, and an output label for each of the plurality of image portions extracted from the acquired image is selected from the labels assigned to the stored image portions extracted from the previously acquired images based on a comparison of the encoded feature of the image portion with the encoded features of the stored image portions from the previously acquired images.
[0021] Advantageously, the clustering algorithm groups defect regions that have similar characteristics, thus allowing the user to consider the defects within a group and label them in an efficient manner.
[0022] Optionally, a clustering algorithm operates on stored image parts extracted from previously acquired images and image parts extracted from the acquired image (previously acquired images have already been assigned labels), and the label output for each image part extracted from the (currently) acquired image in the same group is the (most common) label from among the commonly grouped image parts (i.e. grouped with image parts from the currently acquired image).
[0023] Optionally, the labels assigned to image portions within the same group are labels previously assigned to the respective image portions by a user via a user interface.
[0024] Advantageously, such an embodiment allows the algorithm to learn from past user activity.
[0025] In particular, embodiments may include outputting, via a user interface, the or each image portion in the same group with a label based on the respective output encoded features, including outputting a plurality of candidate labels for the image portion, each of the candidate labels being selected from the labels assigned to the image portions in the group. The method may further include accepting, via the user interface, a selection of a label from among the output candidate labels and assigning the selected label to the image portion.
[0026] Advantageously, such embodiments provide a convenient mechanism for labeling defects, or image regions indicative of defects, which may be output in response to a user query identifying or relating to the captured image from which the image region was extracted.
[0027] Optionally, the label output for each of the plurality of image portions, or one of the candidate labels output for each of the plurality of image portions, is a recommended label selected by a machine learning algorithm based on past assignments of labels to image portions.
[0028] Advantageously, such embodiments utilize machine learning algorithms, such as active learning algorithms, to learn from past user input and fully or partially automate the process of labeling defects.
[0029] Optionally, the training includes training a neural network model as part of a generative adversarial network to generate image data that satisfies a discriminator network, where the generated image data belongs to a training dataset, and training the discriminator network to distinguish between image data belonging to the training dataset and the generated image data.
[0030] Advantageously, generative adversarial networks provide a mechanism for training a generator neural network without manual intervention.
[0031] The neural network may be an imparter, a generator neural network, a convolutional denoising neural network, or any combination thereof.
[0032] An embodiment may include a computer program that, when executed by a computing system including processor hardware and memory hardware, causes the processor hardware to perform a method including the steps of automatically training a neural network to generate defect-reduced versions of input training images of a material surface, acquiring images of a target material surface, inputting the acquired images into the neural network to generate defect-reduced versions of the acquired images, comparing the generated defect-reduced versions of the acquired images with the acquired images to identify differences, and identifying defects in the target material surface at the locations of the identified differences.
[0033] An embodiment may further include an apparatus including processor hardware and memory hardware, the memory hardware storing processing instructions that, when executed by the processor hardware, cause the processor hardware to perform a method, the method including the steps of automatically training a first neural network to generate defect-reduced versions of input training images of a material surface, acquiring images of a target material surface, inputting the acquired images into the first neural network to generate defect-reduced versions of the acquired images, comparing the generated defect-reduced versions of the acquired images with the acquired images to identify differences, and identifying defects in the target material surface at locations of the identified differences.
[0034] Optionally, the processor hardware includes a GPU.
[0035] The embodiments have, among others, two salient features: First, the training phase is automatic, i.e., it is performed without human input or intervention, Second, the embodiments provide a robust approach for inspecting material surfaces and simultaneously creating a consistent data set to support further localization, detection, and / or classification of defects. [Brief description of the drawings]
[0036] Embodiments will now be described, purely by way of example, with reference to the following drawings: [Figure 1] 1 illustrates a method of one embodiment. [Diagram 2] We present a neural network architecture to achieve training. [Diagram 3] FIG. 3A shows the acquired version of the image, FIG. 3B shows the output of the trained inpainter, FIG. 3C shows the cleaned image, and FIG. 3D shows the output. [Figure 4] FIG. 4A shows the acquired image, FIG. 4B shows the generated defect-reduced version of it, and FIG. 4C shows the output. [Diagram 5] 3 shows images in the training and inference processes. [Figure 6] 1 shows a convolutional denoising artificial neural network. [Figure 7] Demonstrate the functionality of convolutional denoising artificial neural networks. [Figure 8] 1 is a flow chart illustrating a series of steps in a method of one embodiment. [Figure 9A] 5 illustrates method steps forming part of an embodiment. [Figure 9B] 5 illustrates method steps forming part of an embodiment. [Figure 10] 1 illustrates image fragmentation and aggregation. [Figure 11] 11A and 11B show defective and reduced defect versions of the same image. [Figure 12A] 4 shows images during processing in the training phase. [Figure 12B] 3 shows images during processing in the inference phase. [Figure 13] 13 shows an output of one embodiment. [Figure 14] FIG. 14A shows the defect extracted from the acquired image, and FIG. 14B shows the background extracted from the acquired image. [Figure 15] 1 illustrates an apparatus according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0037] FIG. 1 illustrates a method of one embodiment. The description of the embodiment is described from the broad perspective of a manufacturing environment and the types of defects typically associated with that field, as an example. The embodiment is not limited to such implementation and may be applied to any technical field requiring identification of surface defects. For example, the embodiment may be applied to any technical field where one desires to identify something non-standard of a surface on a "material surface." For example, material surfaces may include human tissue, plant surfaces, textiles, infrastructure for inspection (turbine blades or bridges using drones, road surfaces using vehicle mounted cameras).
[0038] In step S101, automated training of the neural network is performed. S101 may include automatically training the neural network to generate reduced-defect versions of input training images of the material surface. Automatic in this context is considered to mean unsupervised, i.e., training is performed without manual correction of the output from the neural network.
[0039] FIG. 2 shows a schematic diagram of a neural network architecture for performing step S101. S101 may be performed, for example, by a generative adversarial neural network, in which a neural network 201 generates data for discrimination from real data by a discriminator neural network 202. The goal of the neural network 201 is to generate data that the discriminator neural network 202 cannot distinguish from real data. The output from the discriminator neural network 202 (whether the generator data is real data or not) trains the neural network 201, for example, by backwards error propagation. The neural network 201 is trained to generate data that the discriminator neural network 202 cannot distinguish from real data. Meanwhile, the discriminator neural network 202 is also trained, but to discriminate between generated data and real data. For example, the discriminator neural network 202 is informed as to whether it successfully discriminated between real and generated data, and is trained to do so, e.g., by back-propagation. Thus, without human or manual intervention, the neural network 201 and the discriminator neural network 202 train each other. The training data does not need to be labeled, thus eliminating the need for input from a human expert.
[0040] The real data may be images of a material surface. Optionally, the real data may be images of a material surface that, when divided into n regions (e.g., in a grid), has a defect-free region ratio higher than a threshold. The threshold ratio may be, for example, 0.99, 0.95, 0.90, or may be in the range greater than 0.9 and less than or equal to 1. For example, the training images may be images of a surface of the same material as the material imaged in the acquired images.
[0041] An embodiment utilizes generative adversarial network techniques as shown in FIG. 2 to learn how to regenerate an image of a surface with defects as an image of a defect-reduced surface. The errors or differences that occur between the generated version of the image and the acquired version of the image (despite pre-processing) are larger at the locations of the defects. Thus, a comparison of pixel values between the two versions allows the defects to be detected. For example, a ratio of pixel value differences between equivalent pixels on the two versions may be registered as an error, and a ratio of errors larger than a threshold in an area of a given size may be registered as a defect.
[0042] Step S102 may be performed after, before, or during the performance of step S101. Step S102 includes acquiring an image of a target material surface, for example a material surface on which a user or operator wishes to identify the presence and / or location of any defects. The image may be acquired, for example, by one or more of receiving it over a network, reading it from a storage device, or performing an imaging process performed by imaging hardware.
[0043] Step S103 is performed after steps S102 and S103. Step S103 is performed after S101 because the neural network 201 has been trained by the time it processes the acquired image. However, it is noted that further training of the neural network 201 may continue. In S103, the acquired image is input to the neural network 201, which generates a defect-reduced version of the acquired image. For example, in S103, the trained neural network 201 is fed with the acquired image (which may have been pre-processed) and generates a new version of the acquired image in which the defects have been removed. For example, the trained neural network 201 is a CDANN and generates a new denoised, and therefore defect-free, version of the image.
[0044] The CDANN is trained to regenerate the image or patches of the image and reconstruct the image patches into an image if necessary. The reconstructed image is compared to the input image to identify defects based on the location of differences between pixel values of equivalent pixels across the two versions of the image. One CDANN is an exemplary specific architecture of a neural network 201, shown in FIG. 6, which is configured to train in S101, generate new versions of the image in S103, process the input image (either a training image or an acquired image of the target material surface) if the input image is corrupted by some noise, encode the input image into a (encoded) latent space, and then decode the image. The CDANN is optimized to reconstruct the input image, but denoised, as shown in FIG. 7. In FIG. 7, the CDANN includes an encoder 701 and a decoder 702. The noisy input is denoised by extraction of features from a compressed representation 703 (encoded representation) of the input image.
[0045] The neural network 201 may be an inpainter neural network or an autoencoder. The neural network 201 may be a generator neural network, a generative neural network, or a generating neural network, whereby it is intended that there is a neural network or model that generates data under the constraints of an input data set, in other words, the generated data is a new version of the input data set. The neural network 201 may be a convolutional neural network, in particular a convolutional denoising autoencoder neural network (CDANN). The neural network 201 is trained to map from normal to normal or clean to clean. In the example of a convolutional denoising autoencoder neural network, the neural network is optimized to encode an input image into a latent space 703 and then to the same input image with noise removed, as shown in FIG. 7.
[0046] Neural network 201 may include two models, e.g., an imparter model that generates a new defect-reduced version of the input image (region by region), and a cleaning model that removes noise from the newly generated image. Figures 3A-3D show different versions of an acquired image generated in one embodiment. In particular, Figure 3A illustrates an acquired image and Figure 3B illustrates a generated image. Figure 3C further illustrates an image generated in one embodiment where neural network 201 includes a cleaning model. Figure 3D shows an image mask that identifies the location of defects to a user.
[0047] FIG. 3A shows the captured version of the image.
[0048] Note that while FIG. 3B shows the output of a trained inpainter (trained on images of the surface of the same material as imaged in FIG. 3A), other types of neural networks 201 may also be used to generate new versions of the acquired image. For example, the inpainter model may be trained as part of a generative adversarial network as detailed above. In an embodiment including an inpainter model as all or part of the neural network 201, the inpainter model divides the acquired image into regions covering the entire image, treats each region in turn as a "missing" region, and generates new versions of the missing regions using the trained inpainter model. The generated new versions of the missing regions are then combined to provide a new version of the entire image. For example, each region may be a single pixel, a square of n×n pixels, a rectangle of n×m pixels, or some other size or shape.
[0049] 3C shows a cleaned version of the generated version of the image. For example, the cleaning model may be trained on the same training data set used to train the inpainter model. The cleaning model may be, for example, a denoising artificial neural network. In such training, both the inpainter model and the cleaning model may be evaluated by performing a difference analysis between a test data set (i.e., a test image) and a version of the test image output by the cleaning model.
[0050] FIG. 3D shows an output that highlights or identifies the location of defects in the acquired image of FIG. 3A. A mask is used, where the masked regions represent areas where no difference or error is detected (or where a difference or error smaller than a threshold is detected, e.g., the aggregate pixel value difference within the region is below a predetermined threshold), and the transparent regions identify areas where a difference or error is detected, such areas being the location of defects in the acquired image. The mask is overlaid on either the acquired image (i.e., the image of FIG. 3A), the inpainted image (i.e., FIG. 3B), or the cleaned inpainted image (i.e., FIG. 3C) of the target material surface. In either case, the mask highlights to the user the location of the detected defects.
[0051] 4A-4C show further examples of generating a new version (FIG. 4B) of the acquired image (FIG. 4A) and outputting a mask (FIG. 4C) that highlights the location of the defect to the user. For example, an inpainter model may be used as a neural network to generate the image of FIG. 4B from the input image according to FIG. 4A.
[0052] FIG. 5 shows images in the training and inference processes. The training process is an example of step S101. The inference process is an example of steps S102-S105. FIG. 5 shows that in the training phase, the model is trained to map normal or defect-free images to normal or defect-free images. Based on the input training data on the left hand side, the model (the model is a neural network 201) learns how to generate or regenerate data. In the inference phase, which may also be called the live or realization phase, a defect-free acquired image is processed by the model, which outputs a generated (or regenerated) version of the same image. By comparing pixel values pixel by pixel, the errors or differences detected are quite small, and therefore the output mask does not show any defect locations. On the other hand, by processing an acquired image with defects, the model outputs a defect-free or defect-reduced version of the image, and thus, in the comparison, areas of difference are identified and shown on the output mask. The difference between the acquired image and the generated (or regenerated) version of the image may be called the residual error.
[0053] In FIG. 5, the training data is represented by defect-free images. Training with defective samples is also feasible, but note that the performance of the trained model is partially constrained by the quality of the training data. A tiled approach to training and processing images, in which the neural network 201 processes the image one subsection (or tile) at a time and is then trained to aggregate the subsections, helps to mitigate the impact of defects in the training data. For example, a 256×256 image is of tiles of size 32×32 with a 10% defect rate occurrence. In generating a 32×32 tiled version of the image, there is an approximate defect selection chance of 0.1*(32×32) / (256×256), which is about 0.1%.
[0054] After step S103, step S104 is performed. In step S104, the regenerated acquired image, i.e., a generated version of the acquired image, is compared to the acquired image to identify differences. Note that the acquired image that is compared to the generated version of the acquired image may be the originally acquired version or a preprocessed version thereof. Preprocessing may be performed as part of S102, for example, to format the acquired image and, optionally, to tile or otherwise divide the acquired image into regions for processing by the neural network 201.
[0055] The comparison may be based on pixel values at equivalent pixel locations between the two versions of the image. The images may be tiled or otherwise divided into regions for comparison. The pixel values may be one or more of RGB, or some other indicator of intensity at the pixel. Thus, the comparison takes the form of a direct pixel-by-pixel defect prediction.
[0056] After step S104, step S105 is performed. Step S105 includes detecting defects on the target material surface at the locations of the identified differences. Step S105 may be performed with reference to the acquired image, for example outputting to a user a version of the acquired image in which the locations of the identified differences are highlighted. Optionally, in embodiments in which the images are processed and analyzed in regions such as tiles, step S105 may include outputting (e.g., displaying) a mask that highlights the regions in which differences are identified (the identified differences may be based on a threshold level of pixel-by-pixel differences between two versions of the same region). Alternatively, the method may include highlighting the locations of the differences on the target material surface by direct illumination or in other ways. For example, from FIG. 5, it can be seen that the comparison of S104 allows the locations of defects to be identified, which can be output via a display of a mask that allows an observer to easily identify the locations of the defects on the material surface.
[0057] 8 is a flow chart showing the sequence of steps in the method of one embodiment, steps S101 to S105 being as described above in relation to FIG.
[0058] Steps S106-S108 are an optional extension that takes the defects identified in S105 and labels the defects using a trained artificial intelligence algorithm such as Alexnet, and the labeled defects are output.
[0059] Step S106 is performed after completion of step S105 and involves extracting from the acquired image image portions bounding the location or locations of one or more locations where a difference was identified between the regenerated acquired image and the acquired image.
[0060] Step S107 is performed after step S106 and includes inputting the or each image portion into an encoding neural network that is trained to output encoded features of the material surface defects by processing the input image portions that show the material surface defects (by processing the or each image portion with a neural network).
[0061] The encoding neural network is further trained to assign labels to the input image portions based on the encoded features. Step S108 includes outputting the or each image portion extracted from the captured image along with a label based on the respective output encoded features. For example, outputting may be displaying the or each image portion with its respective assigned label to a user via a graphical user interface.
[0062] In step S106, potentially detected defects (i.e., image portions where the level of difference between the acquired version of the image and the regenerated version of the image exceeds a threshold) are cropped out of the acquired image. In step S107, the cropped portions of the image are fed forward through a trained neural network, such as Alexnet, to generate an embedding for each extracted image portion. An embedding is a vector representation of an image region. In S108, a label based on the embedding is assigned to each extracted image portion, and the extracted image portion and its label are displayed to the user. A hierarchical clustering algorithm may be used in step S108 to cluster the embeddings and determine a single label to assign to all members of the cluster.
[0063] Optionally, the labels assigned to the image parts in the same group are labels previously assigned to the respective image parts by a user via the graphical user interface. The graphical user interface may facilitate: outputting, via the graphical user interface, the or each image part extracted from the captured image with a label based on the respective output encoded features; outputting, via the graphical user interface, a plurality of candidate labels for the image parts, each of the candidate labels being selected from the labels assigned to the image parts in the same group; and accepting, via the graphical user interface, a selection of a label from among the output candidate labels and assigning the selected label to the image part. In particular, the label output for each of the plurality of image parts, or one of the candidate labels output for each of the plurality of image parts, is a recommended label selected by a machine learning algorithm based on past assignments of labels to image parts.
[0064] Figures 9A and 9B show in more detail one example of the method of Figure 1. Figure 9A shows a flow of steps in the processing of an image, either during training or inference, by a neural network 201. In the particular example of Figure 9A, an image for processing is fragmented into image tiles for training and then aggregated before output.
[0065] In step S901, an image is input to the neural network 201. The image is an image of a material surface, and may be a training image in the training phase of the neural network 201, or may be an acquired image of a target material surface in the inference phase.
[0066] In step S902, the input image is fragmented into tiles or image parts. For example, a high resolution image of 4000x3000 pixels may be too large to fit on a GPU for training. By splitting the image into its smaller image parts, for example 256x256 pixels, the neural network 201 can be trained on the GPU.
[0067] In a training phase, such as step S101, flow proceeds from S902 to step S903, where the neural network 201 is trained, for example as a generative adversarial neural network as shown in FIG. 2, as described in detail above with reference to step S101.
[0068] In the inference phase, flow proceeds from S902 to S904, where the image is processed as described above with respect to step S103, ie, a new version (portion by portion) of the input image is regenerated by the neural network 201 based on the input image.
[0069] Flow proceeds from S903 or S904 to S905. In S905, the image portions are aggregated and optionally formatted to arrive at a version of the input image that is the same size and format as the input image of S901.
[0070] FIG. 12A shows images at various stages of the method of FIG. 9A during the training phase.
[0071] Figure 12B shows images at various stages of the method of Figure 9A during the inference phase, with boxes added to highlight the presence of defects for ease of reference, although it is noted that such boxes are not present in the images in the embodiment.
[0072] Figure 10 shows the process of segmenting (S902) and aggregating (S905) an input image. As shown in Figure 10, a bitmap or mask is associated with each image portion so that after processing by the generative neural network 201 in S903 or S904, the image can be reconstructed in S905.
[0073] At S906, the aggregated image is output for further processing, such as by a comparison step, such as S104.
[0074] FIG. 11A shows an input image showing a defect at step S901 in the inference phase, and FIG. 11B shows the output version of the same image at S906 following steps S902, S904, and S905.
[0075] Following step S906, processing such as step S104 is performed to identify differences between the captured version of the image as input in S901 and the version of the image generated by the generative neural network 201 in S904 and output in S906.
[0076] Note that in the presented example, the aggregation of the images in S905 is performed before the comparison step. It is possible to perform the comparison on a part-by-part basis. The optimal solution is to aggregate the images and define the region of interest threshold using the entire aggregated image and the original input image, so that the definition of the region of interest can be normalized across the entire image.
[0077] FIG. 9B shows an example of steps S104-S105 of FIG. 1. In S906, the aggregated image, i.e., the image regenerated by the generative neural network 201, is output, and in S907, a comparison of pixel values is performed between the regenerated version of the image and the input version of the image. Pixel values (e.g., RGB or intensity) at equivalent pixel locations across the two versions of the image are compared and differences are assessed. The assessment may be an aggregation over a region, or a marking of pixel locations between the two images as different or not different based on pixel value differences being above or below a threshold. The threshold may be predefined or adaptively determined based on differences across the images. For example, differences more than one standard deviation from the average difference may be flagged as different.
[0078] At S908, local differences (e.g., contiguous regions of pixel locations flagged as different) are bounded based on the pixel locations of the differences. For example, smart bounding boxes may be created around the pixel locations of the differences. Optionally, processing of the errors may be applied to highlight the differences when the image is presented to a user. Such processing may be, for example, smoothing, segmentation. Here, error is taken to mean pixel difference locations.
[0079] In S909, a mask highlighting the bracketed regions is output, allowing the user to identify the location of defects or potential defects on the material surface. FIG. 13 shows an example of such a mask. Note that the mask does not have to be output to the user, but may be used as a bitmap for processing purposes to map which regions from the original image should be extracted as defective or potentially defective regions. For example, the bracketed regions may be defined by automatically performing a clustering-based image thresholding using a thresholding method. The algorithm assumes that the image contains two classes of pixels that follow a bimodal histogram (foreground pixels at the locations of differences and background pixels at the locations of no differences), and then calculates a threshold that separates the two classes such that their combined distributed intra-class variance is minimal or equivalent (because the sum of pairwise squared differences is a constant) and therefore their inter-class variance is maximal. From this thresholding, the framework creates a bounding box around any zone that has a mean value above a given thresholding method. Each bracketed region may be stored with associated score representing the likelihood of abnormality in the region, which may be, for example, the sum of the errors within the bracketed region.
[0080] As shown in steps S106-S108 of Figure 8, a dataset of regions having potential defects may be stored for further processing, such as labeling. Figure 14A shows regions extracted from the input image having defects. Figure 14B shows regions extracted from the input image that were determined to not contain defects or potential defects, i.e., the difference in pixel values across the two versions of the image at locations within these regions did not meet a difference threshold. The regions may be stored along with a file name.
[0081] Figure 15 is a block diagram of a computing device 10, such as a computing apparatus or server, that may be used to embody the present invention and to implement the methods of processing images of a material surface to identify defects on the imaged material surface as shown in Figures 1, 8, 9A and 9B. The computing device comprises a processor 993 and a memory 994. Optionally, the computing device further comprises a network interface 997 for communicating with other computing devices, such as other computing devices of invention embodiments.
[0082] For example, an embodiment may consist of a network of such computing devices. Optionally, the computing devices further include one or more input mechanisms, such as a keyboard and mouse 996, and a display unit, such as one or more monitors 995. The components may be connected to each other via a bus 992. The computing devices may include, or be in data communication with, an imaging device, such as a camera, for acquiring an image of the material surface.
[0083] The memory 994 may include a computer-readable medium, which term may refer to a single medium or multiple media (e.g., centralized or distributed databases and / or associated caches and servers) configured to carry computer-executable instructions or store data structures. Computer-executable instructions may include, for example, instructions and data accessible by a general purpose computer, a special purpose computer, or a special purpose processing device (e.g., one or more processors) and causing it to perform one or more functions or operations. Thus, the term "computer-readable storage medium" may further include any medium that can store, encode, or carry a set of instructions for execution by a machine and cause the machine to perform any one or more of the methods of the present disclosure. Thus, the term "computer-readable storage medium" may be considered to include, but is not limited to, solid-state memory, optical media, and magnetic media. By way of example and not limitation, such computer-readable media may include non-transitory computer-readable storage media including random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory devices (e.g., solid-state memory devices).
[0084] The processor 993 is configured to control the computing device and perform processing operations, for example, executing codes stored in memory to implement the various different steps of Figures 1, 8, 9A, and 9B described herein and in the claims. The processor 993 may include a GPU (graphics processing unit) adapted to implement one or more neural networks, such as the generative neural network 201. The memory 994 stores data read and written by the processor 993. As referred to herein, a processor may include one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. The processor may include a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets or multiple processors implementing combinations of instruction sets. The processor may further include one or more special-purpose processing devices, such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. In one or more embodiments, a processor is configured to execute instructions to perform the acts and steps discussed herein.
[0085] The display unit 997 can display representations of data stored by the computing device, and may further display cursors and dialog boxes and screens that allow interaction between a user and programs and data stored on the computing device. The input mechanism 996 can allow a user to input data and instructions into the computing device.
[0086] The network interface (network I / F) 997 may be connected to a network such as the Internet and can be connected to other such computing devices via the network. The network I / F 997 can control data input / output from / to other devices via the network. Other peripheral devices such as microphones, speakers, printers, power supply units, fans, cases, scanners, tracker balls, etc. may be included in the computing device.
[0087] Methods embodying the invention may be performed on a computing device such as that shown in Figure 15. Such a computing device need not have every component shown in Figure 15, but may consist of a subset of these components. Methods embodying the invention may be performed by a single computing device in communication with one or more data storage servers over a network. The computing device may be the data storage device itself, storing the trained generative neural network 201 and the output identification of defects from the acquired images.
[0088] Methods embodying the present invention may be performed by multiple computing devices operating in cooperation with one another, one or more of which may be data storage servers that store at least a portion of the trained generative neural network 201 and the output identification of defects from acquired images.
[0089] The following notes are provided regarding the above embodiment. (Appendix 1) 1. A method for processing an image of a material surface to identify defects in the imaged material surface, comprising: automatically training a first neural network to generate defect-reduced versions of input training images of the material surface; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; The method includes: (Appendix 2) Each training image is input to the first neural network as a plurality of image portions, each image portion representing a spatial subdivision of the training image, the method further comprising aggregating defect-reduced versions of the image portions into a defect-reduced version of the training image; the acquired image is input to the first neural network as a plurality of image portions, each image portion representing a spatial subdivision of the acquired image, the method further comprising aggregating defect-reduced versions of the image portions to obtain a defect-reduced version of the acquired image. The method described in Appendix 1. (Appendix 3) 3. The method of claim 1 or 2, wherein the comparing includes identifying one or more locations where differences are identified between the defect reduced version of the image and the acquired image, and outputting the one or more locations. (Appendix 4) extracting from the acquired image a portion of the image that borders the or each of the one or more locations where a difference is identified between the defect reduced version of the image and the acquired image; inputting the or each image portion into a second neural network, the second neural network being an encoding neural network trained to process input image portions that exhibit material surface defects and thereby output encoded features of the material surface defects; outputting the or each image portion extracted from the captured image together with a label based on each output encoded feature; 4. The method of claim 3, further comprising: (Appendix 5) the one or more locations being a plurality of locations where differences have been identified between the defect reduced version of the image and the acquired image, and there are a plurality of image portions extracted from the acquired image, each of which bounds a respective location; the plurality of image portions are added to a stored set of image portions that border locations where differences were identified from a previously acquired image and a respective defect reduced version of the image, each member of the set of image portions being stored together with a respective encoded feature obtained by processing the image portion with the encoding neural network; a clustering algorithm is performed on the encoded features of the image portions extracted from the captured image to divide the image portions into groups, each of the image portions extracted from the captured image being a member of a respective group; a label output for each of the plurality of image portions extracted from the captured image is selected from labels assigned to stored image portions extracted from previously captured images based on a comparison of the encoded features of the image portion with encoded features of stored image portions from previously captured images. The method described in Appendix 4. (Appendix 6) The labels assigned to image parts within the same group are the labels previously assigned to the respective image parts by a user via a user interface. The method described in Appendix 5. (Appendix 7) Outputting, via a user interface, the or each image portion in the same group with a label based on the respective output encoded features includes outputting a plurality of candidate labels for the image portion, each of the candidate labels being selected from labels assigned to previously acquired images based on a comparison of the encoded features of the image portion with encoded features of stored image portions from previously acquired images and the image portion; The method comprises: accepting, via a user interface, a selection of a label from among the output candidate labels and assigning the selected label to the image portion; 7. The method of claim 5 or 6, further comprising: (Appendix 8) the output label for each of the plurality of image portions, or one of the output candidate labels for each of the plurality of image portions, is a recommended label selected by a machine learning algorithm based on past assignments of labels to image portions. 8. The method according to claim 5, 6, or 7. (Appendix 9) 9. The method of any one of claims 1 to 8, wherein the first neural network is a generative adversarial network, and the training includes training the first neural network to generate image data that satisfies a discriminator network, where the generated image data belongs to a training dataset, and training the discriminator network to distinguish between image data belonging to the training dataset and the generated image data. (Appendix 10) 10. The method of any one of claims 1 to 9, wherein the first neural network includes an imparting model that generates defect-reduced versions of input training images of a material surface, and a cleaning model that removes noise from the generated images. (Appendix 11) 11. The method of any one of claims 1 to 10, wherein the first neural network comprises a convolutional denoising neural network. (Appendix 12) 1. A computer program product that, when executed by a computing system including processor hardware and memory hardware, causes the processor hardware to perform a method, the method comprising: automatically training a first neural network to generate defect-reduced versions of input training images of the material surface; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; A computer program comprising: (Appendix 13) 1. An apparatus including processor hardware and memory hardware, the memory hardware storing process instructions that, when executed by the processor hardware, cause the processor hardware to perform a method, the method comprising: automatically training a first neural network to generate defect-reduced versions of input training images of the material surface; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; 13. An apparatus comprising: (Appendix 14) 14. The apparatus of claim 13, wherein the processor hardware includes a GPU.
Claims
1. 1. A method for processing an image of a material surface to identify defects in the imaged material surface, comprising: automatically training a first neural network by unsupervised learning to generate from input training images of a material surface having defects, a defect-reduced version of the input training images; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; The method includes:
2. Each training image is input to the first neural network as a plurality of image portions, each image portion representing a spatial subdivision of the training image, the method further comprising aggregating defect-reduced versions of the image portions into a defect-reduced version of the training image; the acquired image is input to the first neural network as a plurality of image portions, each image portion representing a spatial subdivision of the acquired image, the method further comprising aggregating defect-reduced versions of the image portions to obtain a defect-reduced version of the acquired image. The method of claim 1.
3. 3. The method of claim 1 or 2, wherein the comparing comprises identifying one or more locations where differences are identified between the defect reduced version of the image and the acquired image, and outputting the one or more locations.
4. extracting from the acquired image a portion of the image that borders the or each of the one or more locations where a difference is identified between the defect reduced version of the image and the acquired image; inputting the image portion into a second neural network, the second neural network being an encoding neural network trained to process input image portions that show material surface defects and output encoded features of the material surface defects; outputting the image portions extracted from the captured image together with a label based on each output encoded feature; The method of claim 3 further comprising:
5. the one or more locations being a plurality of locations where differences were identified between the defect reduced version of the image and the acquired image, and there are a plurality of image portions extracted from the acquired image, each bounding a respective location; the plurality of image portions are added to a stored set of image portions that border locations where differences were identified from a previously acquired image and a respective defect reduced version of the image, each member of the set of image portions being stored together with a respective encoded feature obtained by processing the image portion with the encoding neural network; a clustering algorithm is performed on the encoded features of the image portions extracted from the captured image to divide the image portions into groups, each of the image portions extracted from the captured image being a member of a respective group; a label output for each of the plurality of image portions extracted from the captured image is selected from labels assigned to stored image portions extracted from previously captured images based on a comparison of the encoded features of the image portion with encoded features of stored image portions from previously captured images. The method according to claim 4.
6. Outputting, via a user interface, the image portions in the same group with a label based on the respective output encoded features includes outputting a plurality of candidate labels for the image portions, each of the candidate labels being selected from labels assigned to previously acquired images based on a comparison of the encoded features of the image portions with encoded features of stored image portions from previously acquired images and the image portions; The method comprises: accepting, via a user interface, a selection of a label from among the output candidate labels and assigning the selected label to the image portion; The method of claim 5 further comprising:
7. the output label for each of the plurality of image portions, or one of the output candidate labels for each of the plurality of image portions, is a recommended label selected by a machine learning algorithm based on past assignments of labels to image portions. The method according to claim 5 or 6.
8. 8. The method of claim 1, wherein the first neural network is a generative adversarial network, and the training comprises: training the first neural network to generate image data that satisfies a discriminator network, where the generated image data belongs to a training dataset; and training the discriminator network to distinguish between image data belonging to the training dataset and the generated image data.
9. The processor: automatically training a first neural network by unsupervised learning to generate from input training images of a material surface having defects, a defect-reduced version of the input training images; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; A computer program for carrying out a method comprising:
10. 1. An apparatus including processor hardware and memory hardware, the memory hardware storing process instructions that, when executed by the processor hardware, cause the processor hardware to perform a method, the method comprising: automatically training a first neural network by unsupervised learning to generate from input training images of a material surface having defects, a defect-reduced version of the input training images; acquiring an image of a surface of a target material; inputting the captured image into the first neural network to generate a defect-reduced version of the captured image; comparing the generated defect-reduced version of the captured image with the captured image to identify differences; identifying defects in the target material surface at the locations of the identified differences; 13. An apparatus comprising:
Citation Information
Patent Citations
Inspection device
JP2012026982A
Abnormality determination device and abnormality determination method
JP2018005773A
Information processing apparatus, information processing method, and program
JP2018120300A
Visual inspection device, conversion data generator, and program
JP2018205163A
