Processing method, and processing device using same

The neural network configuration with convolutional and pooling layers addresses the limitation of conventional FCNs by measuring the size of defective items in images, enhancing defect detection and classification efficiency.

WO2024181209A1PCT designated stage expired Publication Date: 2024-09-06PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/005818
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2024-02-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Conventional full-layer convolutional neural networks (FCNs) can only determine the location of defects in images and not measure the size of defective items, requiring additional knowledge for size measurement and struggling with defects whose size is difficult to quantify.

Method used

A processing device and method using a neural network with a configuration that includes multiple convolutional and pooling layers, trained to output both class and size information of defective items, allowing for accurate size measurement by learning from images with known defective items.

Benefits of technology

Enables the neural network to identify and measure the size of defective items in images, improving the efficiency of defect detection and classification by outputting both class and size information, thus determining whether a product is defective based on reference values.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024005818_06092024_PF_FP
    Figure JP2024005818_06092024_PF_FP
Patent Text Reader

Abstract

An input unit 110 inputs an inspection image to be inspected, and a processing unit 120 processes a neural network with respect to the inputted inspection image. A first output unit 130a outputs information on the class of a defective item included in the inspection image. A second output unit 130b outputs information on the size of the defective item included in the inspection image. In a learning process, the input unit 110 inputs a training image for which the class of a defective item therein and the size of the defective item are known. The processing unit 120 trains the neural network so that, upon the training image being inputted, the first output unit 130a outputs information on the known class of the defective item and the second output unit 130b outputs information on the known size of the defective item.
Need to check novelty before this filing date? Find Prior Art

Description

Processing method and processing device using the same

[0001] The present disclosure relates to a processing technique, and more particularly to a processing method for performing processing on an image and a processing device using the same.

[0002] A full-layer convolutional neural network (FCN) is used to evaluate head computed tomography (CT) images, where the size of an object, such as an internal bleeding, is measured by image processing after pixel-by-pixel semantic segmentation is used to extract the region of interest (see, for example, Patent Document 1).

[0003] Special table 2019-500110 publication

[0004] A neural network is required to measure the size of an object in an image.

[0005] The present disclosure has been made in light of these circumstances, and its purpose is to provide a technique for measuring the size of an object in an image using a neural network.

[0006] In order to solve the above problem, a processing device according to one aspect of the present disclosure includes an input unit that inputs an inspection image to be inspected, a processing unit that executes neural network processing on the inspection image input to the input unit, a first output unit that outputs information on the class of defective items contained in the inspection image as a processing result of the processing unit, and a second output unit that outputs information on the size of the defective items contained in the inspection image as a processing result of the processing unit. During the learning process, the input unit inputs training images in which the classes and sizes of the defective items are known, and the processing unit trains the neural network so that, when the input unit inputs the training images, the first output unit outputs information on the known class of the defective items and the second output unit outputs information on the known size of the defective items.

[0007] Another aspect of the present disclosure is a processing method. The method includes the steps of inputting an inspection image to be inspected, executing neural network processing on the input inspection image, outputting information on the class of defect items contained in the inspection image as a processing result, and outputting information on the size of the defect items contained in the inspection image as a processing result. The neural network is trained to output information on the class of the known defect items and information on the size of the known defect items when a training image in which the class and size of the defect items are known is input.

[0008] Any combination of the above components, or conversion of the present disclosure into a method, device, system, computer program, or recording medium having a computer program recorded thereon, is also valid as an aspect of the present disclosure.

[0009] According to the present disclosure, the size of an object in an image can be measured using a neural network.

[0010] 1 is a diagram showing the configuration of a neural network in a processing device that is a comparison target for this embodiment. FIGS. 2(a)-(b) are diagrams showing inputs and outputs in the neural network of FIG. 1. FIG. 2 is a diagram showing the configuration of a processing device according to this embodiment. FIG. 3 is a diagram showing the configuration of a neural network in the processing unit of FIG. 5. FIGS. 5(a)-(c) are diagrams showing inputs and outputs in the neural network of FIG. 1.

[0011] Before describing specific examples of the present disclosure, an overview of the present example will be provided. The example relates to a processing device that judges an inspection image showing a product to be inspected. The judgment refers to whether the product is good or bad. Here, a good product refers to a case where the product does not contain any defects or where the size of the defective part contained in the product is smaller than a reference value. On the other hand, a defective product refers to a case where the size of the defective part contained in the product is equal to or greater than the reference value. For example, if the foreign matter defect reference value is φ0.4 mm, a foreign matter size measurement result of φ0.6 mm is judged to be bad, and a foreign matter size measurement result of φ0.3 mm is judged to be good. Here, the reference value differs for each defect item. Therefore, the processing device is required to identify whether or not there is a defect item, which defect item it is, and the size of the defect item.

[0012] Conventional FCN only outputs the defect location as a heat map, so image inspection using FCN can only determine the defect location, but cannot measure the size. Therefore, size has been measured using image processing, but this requires knowledge of image processing or programming. Furthermore, there are defects whose size is difficult to measure using image processing. Therefore, this example describes an FCN model that makes it possible to measure the defect size.

[0013] 1 shows the configuration of a neural network in a processing device 10 that is a comparison target for this embodiment. The processing device 10 includes a first convolutional layer 40a to a fourth convolutional layer 40d, collectively referred to as convolutional layers 40, and a first pooling layer 42a to a fourth pooling layer 42d, collectively referred to as pooling layers 42. The number of convolutional layers 40 and pooling layers 42 included in the processing device 10 is not limited to four; the number of convolutional layers 40 and the number of pooling layers 42 may differ. In other words, this neural network has an FCN structure that does not include a fully connected layer.

[0014] Here, an image is input to the first convolutional layer 40a, and processing is performed in the order of the first convolutional layer 40a, the first pooling layer 42a, the second convolutional layer 40b, the second pooling layer 42b, the third convolutional layer 40c, the third pooling layer 42c, the fourth convolutional layer 40d, and the fourth pooling layer 42d. That is, convolution processing and pooling processing are repeatedly performed. Furthermore, by repeating the convolution processing and pooling processing, the size of the image is successively reduced. Furthermore, the number of channels in the neural network is determined based on the number of defects to be detected, and is set to, for example, "3."

[0015] Each convolutional layer 40 performs spatial filtering on an image by shifting a spatial filter smaller than the image size. Spatial filtering is a well-known technique, and therefore will not be described here. However, this spatial filtering corresponds to convolution processing, which extracts image features. Padding and other processing may also be performed in the convolutional layer 40. Furthermore, the convolutional layer 40 may perform multiple spatial filtering operations in parallel on an image by using multiple spatial filters in parallel. The number of images increases due to the parallel use of multiple spatial filters. The number of spatial filters used in parallel in the convolutional layer 40 is referred to as the number of channels mentioned above.

[0016] Each pooling layer 42 reduces the size of the image by combining multiple pixels included in a given region within the image into a single pixel. Here, average pooling is performed to combine multiple pixels into a single pixel, but max pooling may also be performed. In average pooling, the average value of multiple pixel values ​​within a region is used for each pixel, while in max pooling, the maximum value of multiple pixel values ​​within a region is used for each pixel. The pooling process is performed to enhance robustness against translational shifts of the representative value or average value within the region of interest. Furthermore, a scoring layer (not shown) may be included after the fourth pooling layer 42d, and an accuracy metric such as SoftMax with Loss may be used in the scoring layer.

[0017] In a neural network, image inspection processing is performed after a learning process. In the learning process, an image with known defect items (hereinafter referred to as a "learning image") is input to the first convolutional layer 40a, and the spatial filter coefficients of each convolutional layer 40 are learned so that the output from the fourth pooling layer 42d, which is the result of processing the learning image, corresponds to the defect items contained in the learning image (hereinafter also referred to as "teaching data"). In the image inspection processing, after each convolutional layer 40 has been trained, an image to be inspected (hereinafter referred to as an "inspection image") is input to the first convolutional layer 40a, and the processing result for the inspection image is output from the fourth pooling layer 42d. The output from the fourth pooling layer 42d indicates the defect items. The learning image and the inspection image are collectively referred to as "image" as mentioned above.

[0018] Figures 2(a) and 2(b) show the input and output in the neural network. Figure 2(a) shows an inspection image. The inspection image includes a foreign substance 200 as a defect item. Figure 2(b) shows the processing results. A three-channel configuration including three types of defect items, "OK," "foreign substance," and "flash," is shown, and the processing results indicate the probability for each defect item. Since the probability of a foreign substance is the highest at "0.9," the processing result indicates a foreign substance.

[0019] Although such a processing device 10 can identify defective items, as described above, it cannot measure the size of the defective items, for example, the size of the foreign matter 200. A configuration that can measure the size of the foreign matter 200 will be described below.

[0020] 3 shows the configuration of a processing device 100 according to this embodiment. The processing device 100 includes an input unit 110, a processing unit 120, and a first output unit 130a and a second output unit 130b, which are collectively referred to as an output unit 130. The input unit 110 inputs training images in which the classes and sizes of defective items are known during training processing. The input unit 110 also inputs inspection images to be inspected during image inspection processing. The processing unit 120 includes a neural network that processes the training images or inspection images.

[0021] 4 shows the configuration of a neural network in the processing unit 120. The processing unit 120 includes a first convolutional layer 140a to a fifth convolutional layer 140e collectively referred to as convolutional layers 140, and a first pooling layer 142a to a fifth pooling layer 142e collectively referred to as pooling layers 142. The number of convolutional layers 140 and pooling layers 142 included in the processing unit 120 is not limited to "5", and the number of convolutional layers 140 and the number of pooling layers 142 may be different.

[0022] The first convolutional layer 140a is connected to the input unit 110 of FIG. 3 , and processing is performed in the order of the first convolutional layer 140a, the first pooling layer 142a, the second convolutional layer 140b, the second pooling layer 142b, the third convolutional layer 140c, the third pooling layer 142c, the fourth convolutional layer 140d, and the fourth pooling layer 142d. The fourth pooling layer 142d is connected to the first output unit 130a of FIG. 3 via a scoring layer (not shown) or the like. Here, the first convolutional layer 140a to the fourth pooling layer 142d from the input unit 110 to the first output unit 130a may be referred to as the “first path.” Comparing the first path with FIG. 1 , the convolutional layer 140 corresponds to the convolutional layer 40, and the pooling layer 142 corresponds to the pooling layer 42, so the configuration of the first path corresponds to the configuration of FIG. 1 . Here too, the number of channels in the neural network is determined based on the number of defects to be detected, and is set to "3", for example.

[0023] Furthermore, processing is performed in the order of the first convolutional layer 140a, the first pooling layer 142a, the second convolutional layer 140b, the second pooling layer 142b, the third convolutional layer 140c, the third pooling layer 142c, the fifth convolutional layer 140e, and the fifth pooling layer 142e. The fifth pooling layer 142e is connected to the second output unit 130b in FIG. 3. Here, the first convolutional layer 140a to the fifth pooling layer 142e from the input unit 110 to the second output unit 130b may be referred to as the "second path." In the first path and the second path, the first convolutional layer 140a, the first pooling layer 142a, the second convolutional layer 140b, the second pooling layer 142b, the third convolutional layer 140c, and the third pooling layer 142c are commonly used.

[0024] As in the past, the neural network performs a learning process before performing an image inspection process. In particular, the learning process involves a learning process for a first path (hereinafter referred to as the "first learning process") and a learning process for a second path (hereinafter referred to as the "second learning process"). In the first learning process, learning images are input to the first convolutional layer 140a, and the spatial filter coefficients of each convolutional layer 140 are learned so that the output from the fourth pooling layer 142d, which is the result of processing the learning images, corresponds to the defect items contained in the learning images (hereinafter also referred to as "first training data"). The first learning process is similar to the learning process for the neural network of FIG. 1.

[0025] In the second learning process, a learning image is input to the input unit 110, and the coefficients of the spatial filters of each convolution layer 140 are learned so that the output from the first output unit 130a, which is the result of processing the learning image, becomes the size of the defective item included in the learning image (hereinafter also referred to as "second teacher data"). In other words, in these learning processes, the processing unit 120 learns the neural network so that, when the input unit 110 inputs a learning image, the first output unit 130a outputs information on the class of the known defective item and the second output unit 130b outputs information on the size of the known defective item.

[0026] In the image inspection process, with each convolutional layer 140 having been trained, an inspection image is input to the input unit 110, and the processing unit 120 performs neural network processing on the inspection image input to the input unit 110. The first output unit 130a outputs information on the class of defect items contained in the inspection image as the processing result of the processing unit 120. This corresponds to outputting a judgment value map for each class in the inspection image. The second output unit 130b outputs information on the size of defect items contained in the inspection image as the processing result of the processing unit 120. This corresponds to outputting a size map for each class in the inspection image. In size judgment on the size map, blocks with a certain brightness value and area value or more in the judgment value map are identified as defect locations, and the maximum brightness value in the size map on the obtained defect location is judged to be the defect size.

[0027] The processing device 100 may determine whether the product shown in the inspection image is good or bad based on the class information output from the first output unit 130a and the size information output from the second output unit 130b. The processing device 100 determines the product as good if the class information is "OK." The processing device 100 also determines the product as good if the class information is not "OK" but the size is smaller than a reference value. On the other hand, the processing device 100 determines the product as bad if the class information is not "OK" and the size is equal to or greater than the reference value.

[0028] 5(a)-(c) show the input and output of the neural network. FIG. 5(a) shows an inspection image. The inspection image, like FIG. 2(a), includes a foreign particle 200 as a defect. The size of the foreign particle 200 is, for example, 13.0 pixels. FIG. 5(b) shows the classification results from the processing results. As in FIG. 2(b), the defect items are classified into three classes: "OK," "foreign particle," and "flash." The classification results indicate the probability for each defect. Since the probability of a foreign particle is the highest at 0.9, the classification results indicate a foreign particle. FIG. 5(c) shows the size measurement results from the processing results. A three-channel configuration is shown, including three types of defect items: "OK," "foreign particle," and "flash." The size measurement results indicate the size of each defect. The size of the foreign particle is indicated as 12.9 pixels.

[0029] The subject of the device, system, or method disclosed herein includes a computer. The computer executes a program to realize the functions of the subject of the device, system, or method disclosed herein. The computer includes, as its main hardware configuration, a processor that operates according to the program. The type of processor is not important as long as it can realize the functions by executing the program. The processor is composed of one or more electronic circuits, including a semiconductor integrated circuit (IC) or an LSI (Large Scale Integration). The multiple electronic circuits may be integrated into a single chip or may be provided on multiple chips. The multiple chips may be integrated into a single device or may be provided on multiple devices. The program is recorded on a non-transitory recording medium, such as a computer-readable ROM, optical disk, or hard disk drive. The program may be pre-stored on the recording medium or may be supplied to the recording medium via a wide area communication network, including the Internet.

[0030] According to this embodiment, during the learning process, learning images in which the classes and sizes of the defective items are known are input, and the neural network is trained to output information on the known classes and sizes of the defective items, so that the size of an object in an image can be measured using the neural network. Furthermore, a common convolutional layer 140 is used in part of the first path from the input unit 110 to the first output unit 130a and part of the second path from the input unit 110 to the second output unit 130b, thereby improving the efficiency of the learning process.

[0031] An overview of one aspect of the present disclosure is as follows. A processing device (100) of one aspect of the present disclosure includes an input unit (110) that inputs an inspection image to be inspected, a processing unit (120) that executes neural network processing on the inspection image input to the input unit (110), a first output unit (130a) that outputs information on the class of a defect item contained in the inspection image as a processing result of the processing unit (120), and a second output unit (130b) that outputs information on the size of the defect item contained in the inspection image as a processing result of the processing unit (120). During a learning process, the input unit (110) inputs a learning image in which the class and size of the defect item are known, and the processing unit (120) trains the neural network so that, when the input unit (110) inputs the learning image, the first output unit (130a) outputs information on the class of the known defect item and the second output unit (130b) outputs information on the size of the known defect item.

[0032] The neural network in the processing unit (120) may use a common convolutional layer in a portion of the first path from the input unit (110) to the first output unit (130a) and in a portion of the second path from the input unit (110) to the second output unit (130b).

[0033] Another aspect of the present disclosure is a processing method. The method includes the steps of inputting an inspection image to be inspected, executing neural network processing on the input inspection image, outputting information on the class of defect items contained in the inspection image as a processing result, and outputting information on the size of the defect items contained in the inspection image as a processing result. The neural network is trained to output information on the class of the known defect items and information on the size of the known defect items when a training image in which the class and size of the defect items are known is input.

[0034] The present disclosure has been described above based on examples. These examples are merely illustrative, and it will be understood by those skilled in the art that various modifications are possible in the combination of each component or each treatment process, and that such modifications are also within the scope of the present disclosure.

[0035] In the configuration of the processing unit 120 in this embodiment, multiple convolution layers 140 and multiple pooling layers 142 are arranged alternately. However, this is not limiting, and the processing unit 120 may have a configuration such as a GoogleNet system or a DenseNet system. This modification can improve the degree of freedom in the configuration.

[0036] The processing unit 120 in this embodiment is configured such that multiple convolutional layers 140 and multiple pooling layers 142 are alternately arranged. However, this is not limiting, and the processing unit 120 may include only the convolutional layer 140 and perform only the convolution process, or may include only the pooling layer 142 and perform only the pooling process. This modification improves the degree of freedom in the configuration.

[0037] According to the present disclosure, the size of an object in an image can be measured using a neural network.

[0038] 100 Processing unit, 110 Input unit, 120 Processing unit, 130 Output unit, 140 Convolution layer, 142 Pooling layer.

Claims

1. A processing device comprising: an input unit for inputting an inspection image to be inspected; a processing unit for executing neural network processing on the inspection image input to the input unit; a first output unit for outputting information on the class of defective items contained in the inspection image as a processing result of the processing unit; and a second output unit for outputting information on the size of the defective items contained in the inspection image as a processing result of the processing unit, wherein the input unit inputs a learning image in which the class and size of the defective items are known during a learning process, and the processing unit trains the neural network so that, when the input unit inputs the learning image, the first output unit outputs information on the known class of the defective items and the second output unit outputs information on the known size of the defective items.

2. The processing device according to claim 1, wherein the neural network in the processing unit uses a common convolutional layer in a part of a first path from the input unit to the first output unit and in a part of a second path from the input unit to the second output unit.

3. A processing method comprising the steps of: inputting an inspection image to be inspected; executing neural network processing on the input inspection image; outputting information on the class of defective items contained in the inspection image as a processing result; and outputting information on the size of the defective items contained in the inspection image as a processing result, wherein the neural network is trained to output information on the known class of the defective items and also output information on the known size of the defective items when a learning image in which the class and size of the defective items are known is input.

Citation Information

Patent Citations

  • Image learning device, image learning method, neural network, and image classification device

    JP2021086350A

  • Visual inspection device, visual inspection system, feature quantity estimation device, and visual inspection program

    JP2021092887A

  • SYSTEM AND METHOD FOR DETERMINING TYPE AND SIZE OF DEFECTS ON A BLANK RETICLE - Patent application

    JP2022506485A