Program, information processing device, and method

By employing a ResNet equivariant to translation and group actions, the method addresses the inefficiencies of orientation-dependent deep learning techniques, enhancing detection accuracy and reducing training data requirements for abnormality detection in inspection targets.

JP2026185662APending Publication Date: 2026-11-27RIST INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025082932
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing deep learning techniques for detecting abnormalities in inspection targets are limited by the need for precise alignment of object orientation and require extensive training data, leading to inefficiencies and reduced detection accuracy.

Method used

The use of a ResNet equivariant to translation and other group actions, such as cyclic rotations, allows for orientation-independent detection by performing pooling and patching operations on feature fields to align and combine feature quantities, reducing the need for aligned training images and improving detection accuracy.

Benefits of technology

This approach enhances detection accuracy by eliminating the need for orientation alignment and reducing the number of required training images, thereby improving the efficiency and effectiveness of abnormality detection in inspection targets using deep learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185662000001_ABST
    Figure 2026185662000001_ABST
Patent Text Reader

Abstract

There was room for improvement in the technology that uses deep learning to detect the presence or absence of abnormalities in objects being inspected. [Solution] The information processing device 10 detects abnormalities in the target product contained in the image. The information processing device 10 inputs the image into a ResNet that is identical to the translation of the target product contained in the image and identical to the action of groups other than translation, and obtains feature quantities for each patch of the image by performing pooling and patching processing on the extracted feature regular fields. The information processing device 10 detects whether or not there are abnormalities in the target product contained in the image based on the proximity distance between the feature quantities for each patch of the image and the feature quantities for each patch obtained from a normal target product image.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present disclosure relates to a program, an information processing device, and a method. [Background Art]

[0002] Conventionally, there is known a technique of detecting presence or absence of an abnormality of an inspection target using an image including the inspection target. As one of them, a technique of detecting presence or absence of an abnormality of an inspection target using deep learning has been proposed. For example, Patent Document 1 discloses a technique of generating a learning feature image by multi-cell feature extraction processing on an input learning image, and performing positional deviation / rotation / scale correction on the learning feature image. [Description of Related Art] [Patent Literature]

[0003] [Patent Document 1] Japanese Patent Laid-Open No. 08-069533 [Summary of Invention] [Problem to be Solved by the Invention]

[0004] There is room for improvement in a technique of detecting presence or absence of an abnormality of an inspection target using deep learning.

[0005] An object of the present disclosure made in view of such circumstances is to improve a technique of detecting presence or absence of an abnormality of an inspection target using deep learning. [Means for Solving the Problem]

[0006] A program according to an embodiment of the present disclosure causes an information processing device to execute an operation including: inputting an image to the information processing device; and detecting an abnormality of a target product included in the image, wherein the operation includes The image is input into a ResNet that is identical to the translation of the target product contained in the image and identical to the effects of groups other than translation, Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet, The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the aforementioned one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of the multiple feature scalar fields for each patch are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, This includes detecting whether or not there are abnormalities in the target product included in the image, based on the proximity distance between the feature quantities of each patch in the aforementioned image and the feature quantities of each patch obtained from a normal image of the target product.

[0007] A program according to one embodiment of this disclosure is A program that causes an information processing device to perform an operation including inputting an image and saving the feature quantities of a target product contained in the image to a memory bank, The aforementioned operation is, The image is input into a ResNet that is identical to the translation of the target product contained in the image and identical to the effects of groups other than translation, Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet, The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the aforementioned one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of the multiple feature scalar fields for each patch are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, This includes storing the feature quantities for each patch of the aforementioned image in the memory bank.

[0008] An information processing apparatus according to one embodiment of this disclosure is An information processing device comprising a control unit that inputs an image to the information processing device and detects abnormalities in a target product contained in the image, The control unit, The image is input into a ResNet that is identical to the translation of the target product contained in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. A patching process with multiple patch sizes is performed on the aforementioned multiple feature scalar fields. For each patch size, for the multiple feature scalar fields that have been patched, Match the number of patches in each of the aforementioned multiple feature scalar fields, The numerical data contained in each patch is rearranged into a one-dimensional tensor data. By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match. By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities for each patch of the plurality of feature scalar fields are obtained. Statistical processing is performed on the feature quantities of each patch of the multiple feature scalar fields that have been patched into multiple patch sizes. Based on the proximity distance between the feature quantities of each patch in the aforementioned image and the feature quantities of each patch obtained from a normal image of the target product, the presence or absence of abnormalities in the target product included in the image is detected.

[0009] An information processing apparatus according to one embodiment of this disclosure is An information processing device comprising a control unit that inputs an image to the information processing device and stores the characteristic quantities of a target product contained in the image in a memory bank, The control unit, The image is input into a ResNet that is identical to the translation of the target product contained in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. A patching process with multiple patch sizes is performed on the aforementioned multiple feature scalar fields. For each patch size, for the multiple feature scalar fields that have been patched, Match the number of patches in each of the aforementioned multiple feature scalar fields, The numerical data contained in each patch is rearranged into a one-dimensional tensor data. performing second pooling on the one-dimensional tensor data to match the number of channels of the feature amount of each patch of the plurality of feature scalar fields, combining the one-dimensional tensor data for each patch, and performing third pooling to acquire the feature amount for each patch of the plurality of feature scalar fields, performing statistical processing on the feature amounts for each patch of the plurality of feature scalar fields that have been patchized into a plurality of patch sizes, storing the feature amount for each patch of the image in the memory bank.

[0010] A method according to an embodiment of the present disclosure is a method in which an information processing apparatus executes an operation including inputting an image to the information processing apparatus, and detecting an abnormality of a target product included in the image, the operation includes: inputting the image to a ResNet that is equivariant with respect to translation of the target product included in the image and equivariant with respect to action of a group other than translation; performing first pooling on a plurality of feature regular fields having different resolutions and different numbers of channels of feature amounts extracted from the ResNet, to acquire a plurality of feature scalar fields; performing patchization processing of a plurality of patch sizes on the plurality of feature scalar fields; for each patch size, on the plurality of feature scalar fields subjected to the patchization processing, matching the number of patches of each of the plurality of feature scalar fields; rearranging numerical data included in each patch into one-dimensional tensor data; performing second pooling on the one-dimensional tensor data to match the number of channels of the feature amount of each patch of the plurality of feature scalar fields; combining the one-dimensional tensor data for each patch, and performing third pooling to acquire the feature amount for each patch of the plurality of feature scalar fields; Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, This includes detecting whether or not there are abnormalities in the target product included in the image, based on the proximity distance between the feature quantities of each patch in the aforementioned image and the feature quantities of each patch obtained from a normal image of the target product.

[0011] A method according to one embodiment of this disclosure is: A method by which an information processing device performs an operation including inputting an image to the information processing device and storing the feature quantities of a target product contained in the image in a memory bank, The aforementioned operation is, The image is input into a ResNet that is identical to the translation of the target product contained in the image and identical to the effects of groups other than translation, Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet, The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the aforementioned one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of the multiple feature scalar fields for each patch are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, This includes storing the feature quantities for each patch of the aforementioned image in the memory bank. [Effects of the Invention]

[0012] According to one embodiment of this disclosure, the technology for detecting the presence or absence of abnormalities in an object being inspected using deep learning is improved. [Brief explanation of the drawing]

[0013] [Figure 1] This is a block diagram illustrating the schematic configuration of an information processing device. [Figure 2] This figure shows an example of the operation of an information processing device during the learning phase using a conventional method. [Figure 3] This figure shows an example of the operation of an information processing device during the inference stage in a conventional method. [Figure 4] This figure shows an example of how ResNet works when an image is input to it in this disclosure. [Figure 5] This figure shows an example of how ResNet works when feature regular fields are input into it as described in this disclosure. [Figure 6] This figure shows an example of the structure of ResNet in this disclosure. [Figure 7] This figure shows an example of the operation of the information processing device during the learning phase in this disclosure. [Figure 8] This is a flowchart showing the operation of the information processing device in this disclosure. [Modes for carrying out the invention]

[0014] Referring to Figure 1, an overview of the information processing device 10 according to the embodiment of this disclosure will be described. The information processing device 10 is, for example, a PC (Personal Computer) or a tablet terminal, but is not limited thereto, and may be any computer used by the user. In this embodiment, the information processing device 10 is capable of executing a program that performs an operation including detecting an abnormality in a target product contained in an input image. The information processing device 10 is also capable of executing a program that performs an operation including saving the feature quantities of the target product contained in the input image to a memory bank. This program may be stored in a storage medium that the information processing device 10 can read, for example, or it may be downloaded to the information processing device 10 from a server or the like via a network such as the Internet.

[0015] First, an overview of this embodiment will be described, and details will be described later. The information processing device 10 receives an image as input and detects abnormalities in the target product contained in the image. Specifically, the information processing device 10 inputs the image into a ResNet that is identical to the translation of the target product contained in the image and identical to the action of groups other than translation. It obtains multiple feature scalar fields by performing a first pooling on multiple feature regular fields with different resolutions and number of feature channels extracted from the ResNet, and performs patching processing of multiple patch sizes on the multiple feature scalar fields. For each patch size, the information processing device 10 matches the number of patches in each of the multiple feature scalar fields, rearranges the numerical data contained in each patch into one-dimensional tensor data, performs a second pooling on the one-dimensional tensor data to match the number of channels in the feature quantities of each patch of the multiple feature scalar fields, combines the one-dimensional tensor data for each patch, and performs a third pooling to obtain the feature quantities for each patch of the multiple feature scalar fields. The information processing device 10 performs statistical processing on the feature quantities for each patch of multiple feature scalar fields that have been patched into multiple patch sizes, and detects whether or not there is an abnormality in the target product contained in the image based on the proximity distance between the feature quantities for each patch of the image and the feature quantities for each patch obtained from a normal target product image.

[0016] The information processing device 10 receives an image as input and stores the feature quantities of the target product contained in the image in a memory bank. Specifically, the information processing device 10 inputs the image into a ResNet that is equivalent to translation of the target product contained in the image and equivalent to the action of groups other than translation. It obtains multiple feature scalar fields by performing a first pooling on multiple feature regular fields with different resolutions and number of feature channels extracted from the ResNet, and performs a patching process of multiple patch sizes on the multiple feature scalar fields. For each patch size, the information processing device 10 matches the number of patches in each of the multiple feature scalar fields, rearranges the numerical data contained in each patch into one-dimensional tensor data, performs a second pooling on the one-dimensional tensor data to match the number of channels of the feature quantities in each patch of the multiple feature scalar fields, combines the one-dimensional tensor data for each patch, and performs a third pooling to obtain the feature quantities for each patch of the multiple feature scalar fields. The information processing device 10 performs statistical processing on the feature quantities for each patch of multiple feature scalar fields that have been patched into multiple patch sizes, and stores the feature quantities for each patch of the image in a memory bank.

[0017] As described above, according to this embodiment, the information processing device 10 inputs an image into a ResNet (hereinafter referred to as G-ResNet) that is identical to the translation of the target product and identical to the actions of groups other than translation, and extracts feature regular fields. For example, if a G-ResNet is used that is identical to the translation of the target product and identical to the cyclic group consisting of integer multiples of 360 / n degrees, the user does not need to prepare an image of the target product rotating as a training image. In addition, when an image is input to the information processing device 10 to detect an abnormality in the target product, the user or the information processing device 10 does not need to align the orientation of the target product. Therefore, this embodiment can improve detection accuracy by reducing the number of training images input to the information processing device 10 during the learning stage, and by being able to detect abnormalities even if the orientation of the target product does not match. As a result, the technology for detecting the presence or absence of abnormalities in an object to be inspected using deep learning is improved.

[0018] Referring to Figure 1, the components of the information processing device 10 will be described in detail. The information processing device 10 comprises a communication unit 11, an output unit 12, an input unit 13, a control unit 14, and a storage unit 15.

[0019] The communication unit 11 includes one or more communication interfaces connected to the network 30. The communication interfaces may, for example, support mobile communication standards such as 4G (4th Generation) and 5G (5th Generation), but are not limited to these. In this embodiment, the information processing device 10 may communicate with an imaging device for imaging a target product via the communication unit 11.

[0020] The output unit 12 includes one or more output devices that output information. These output devices are, for example, a display or a speaker, but are not limited to these. Alternatively, the output unit 12 may include an interface for connecting an external output device. In this embodiment, the information processing device 10 may display detection results, such as whether or not there is an abnormality in the target product included in the image, on the output unit 12.

[0021] The input unit 13 includes one or more input devices for detecting user input. These input devices are, but are not limited to, physical keys, capacitive keys, pointing devices such as mice, imaging devices such as cameras, touchscreens integrated with the display of the output unit 12, or microphones that accept voice input. Alternatively, the input unit 13 may include an input interface for detecting user input via an external input device.

[0022] The control unit 14 includes one or more processors, one or more programmable circuits, one or more dedicated circuits, or a combination thereof. The processor is a general-purpose processor such as a CPU (Central Processing Unit) or GPU (Graphics Processing Unit), or a dedicated processor specialized for a specific process, but is not limited to these. The programmable circuit is an FPGA (Field-Programmable Gate Array), but is not limited to this. The dedicated circuit is an ASIC (Application Specific Integrated Circuit), but is not limited to this. The control unit 14 controls the operation of the entire information processing device 10.

[0023] The storage unit 15 includes one or more memories. The memories are, for example, semiconductor memories, magnetic memories, or optical memories, but are not limited to these. Each memory included in the storage unit 15 may function as, for example, a main memory, an auxiliary memory, or a cache memory. The storage unit 15 stores any information used in the operation of the information processing device 10. For example, the storage unit 15 may store system programs, application programs, and embedded software. The information stored in the storage unit 15 may be updatable with information obtained from the network 30 via, for example, the communication unit 11. In this embodiment, the storage unit 15 stores a ResNet. The storage unit 15 also stores a memory bank that stores feature quantities of patches extracted from an image containing a target product in a normal state.

[0024] Referring to Figure 2, an example of the operation of the information processing device 10 during the learning phase in a conventional method will be explained.

[0025] Figure 2 shows an example of the operation of the information processing device 10 during the training phase, which uses ResNet50 and PatchCore to detect whether or not there are abnormalities in the target product included in the input image. The information processing device 10 inputs a training image (good product image) containing the target product into ResNet50 and extracts a feature map. In this case, since ResNet50 is not equivariant to group actions other than translation (e.g., rotation), if the orientation of the target product included in the training image (good product image) is different, the user or the information processing device 10 needs to perform an alignment step to align the orientation of the target product. The information processing device 10 inputs the training image (good product image) containing the target product after the alignment step into ResNet50 and extracts multiple feature maps. As will be described later, ResNet50 includes multiple blocks, and these multiple blocks constitute four stages. The information processing device 10 extracts the outputs of, for example, stage 2 and stage 3 as feature maps. Here, the feature map output from Stage 2 has a higher resolution and fewer feature channels than the feature map output from Stage 3. The information processing device 10 performs patching and patch interpolation on each feature map to match the number of patches across multiple feature maps. In the example in Figure 2, the information processing device 10 performs a 3x3 patching process on each feature map. After that, the information processing device 10 rearranges the numerical data contained in each patch into one-dimensional tensor data (vectorization). Then, the information processing device 10 combines the multiple one-dimensional tensor data for each patch to obtain the feature quantities for each patch of the image. The information processing device 10 stores the feature quantities for each patch of the image in a memory bank (storage unit).

[0026] Referring to Figure 3, an example of the operation of the information processing device 10 during the inference stage in a conventional method will be explained.

[0027] Figure 3 shows an example of the operation of the information processing device 10 during the inference stage, which uses ResNet50 and patch cores to detect whether or not there are abnormalities in the target product included in the input image. The information processing device 10 inputs the inspection image containing the target product into ResNet50 and extracts features. In this case, since ResNet50 is not equivariant to group actions other than translation (e.g., rotation), if the orientation of the target product included in the inspection image is different, the user or the information processing device 10 needs to perform an alignment step to align the orientation of the target product. The information processing device 10 inputs the inspection image containing the target product after the alignment step into ResNet50 and obtains features for each patch of the image. The information processing device 10 also uses patch cores to calculate the neighborhood distance between the features for each patch of the inspection image and the features for each patch obtained from normal target product images stored in the memory bank. At this time, core set subsampling (greedy core set selection) is used to select the features for which the neighborhood distance is calculated from the memory bank. This allows the information processing device 10 to reduce the amount of data it processes. The information processing device 10 determines that a product is good if the calculated proximity distance is less than a threshold. On the other hand, the information processing device 10 determines that a product is defective if the calculated proximity distance is greater than or equal to a threshold. Furthermore, the information processing device 10 displays a segmentation map based on the abnormal values ​​in a way that is visible to the user when determining whether a product is good or defective.

[0028] Next, referring to Figure 4, we will explain the operation when an image is input to G-ResNet.

[0029] Figure 4 shows an image of the operation of the input layer of G-ResNet. For example, when the information processing device 10 inputs a 2D image to G-ResNet, which is equivariant to translation and equivariant to the action of a cyclic group consisting of integer multiples of 360 / n degrees, the input layer of G-ResNet outputs a 3D feature map, i.e., a regular feature field. G-ResNet, which is equivariant to translation and equivariant to the action of a cyclic group consisting of integer multiples of 360 / n degrees, uses a 2D kernel when performing convolution on the input image. G-ResNet rotates the 2D kernel by θ degrees, and each time it rotates, it translates the 2D kernel on the input image to calculate the similarity with the image. Specifically, in the case of a cyclic group C4 consisting of integer multiples of 90 degrees, θ is 90 degrees, and four types of convolutional 2D kernels are used. Each time the 2D kernel is rotated by 90 degrees, G-ResNet translates the 2D kernel on the input image to calculate the similarity with the input image. Here, multiple 2D convolutional kernels may be calculated, for example, by rotating a single 2D convolutional kernel, or multiple 2D convolutional kernels may be prepared in advance. In Figure 4, the features of target product A included in the input image are extracted as feature C in the 3D feature map (feature regular field). Similarly, the features of target product B included in the input image are extracted as feature D in the 3D feature map (feature regular field). Target product A in the input image matches target product B in the input image by translation and rotation. Furthermore, feature C in the 3D feature map (feature regular field) matches feature D when translated on the xy plane, rotated around the θ axis, and cyclically shifted along the θ axis. A concrete example of cyclic shifting is to repeatedly obtain the top row of data in the 3D feature map, move the data on the xy plane one position upward along the θ axis, and place the top row of data at the bottom.

[0030] Next, referring to Figure 5, we will explain the operation image when a feature regular field is input to G-ResNet.

[0031] Figure 5 shows an image of the operation of the G-ResNet hidden layer. For example, when a 3D feature map (feature regular field) is input to the G-ResNet hidden layer, which is equivariant to translation and equivariant to the action of a cyclic group consisting of rotations of integer multiples of 360 / n degrees, the G-ResNet hidden layer outputs a 3D feature map (feature regular field). G-ResNet, which is equivariant to translation and equivariant to the action of a cyclic group consisting of rotations of integer multiples of 360 / n degrees, uses a 3D kernel when performing convolution on the input 3D feature map (feature regular field). G-ResNet rotates the 3D kernel around the θ axis as the rotation axis and cyclically shifts it along the θ axis. Each time G-ResNet rotates or cyclically shifts the 3D kernel, it translates the 3D kernel using the input 3D feature map (feature regular field) and outputs the similarity with the input 3D feature map (feature regular field). Furthermore, G-ResNet uses the ReLU function on the calculated similarity to generate a 3D feature map (feature regular field) after ReLU. It is also possible to obtain a rotation-invariant 2D feature map (feature regular field) by pooling data along the θ axis. Any pooling method can be used, including mean pooling, maximum pooling, minimum pooling, and norm pooling.

[0032] Refer to Figure 6 to explain an example of the G-ResNet structure.

[0033] G-ResNet uses, for example, ResNet50, but is not limited to this; it may also use ResNet18, 34, 101, or 152. G-ResNet50 is a feedforward neural network that includes a 7x7 convolutional layer as its input layer and multiple blocks of 1x1, 3x3, and 1x1 convolutional layers as its hidden layers. G-ResNet50 also performs batch normalization and ReLU activation after each convolutional layer. G-ResNet50 contains 16 blocks and is divided into Stage 1 (3 blocks), Stage 2 (4 blocks), Stage 3 (6 blocks), and Stage 4 (3 blocks) corresponding to the number of channels in the output feature. In Figure 6, each row within a block shows the nxn convolution that G-ResNet50 performs and the number of channels output by that convolution. In G-ResNet50, |G| is the cardinal number of the group and m is the number of regular fields. Specifically, when the information processing device 10 inputs an RGB image to G-ResNet50, which is equivariant to the action of a cyclic group C4 consisting of rotations that are integer multiples of 90 degrees, |G|=4 and m=3. G-ResNet50 includes group pooling after average pooling in order to be equivariant to, for example, translation and the action of a cyclic group consisting of rotations that are integer multiples of 360 / n degrees. Any pooling method can be used for group pooling, such as average pooling, maximum pooling, minimum pooling, and norm pooling. The information processing device 10 of this disclosure extracts the outputs of stages 2 and 3 of G-ResNet50 as feature regular fields during the learning and inference stages, for example.

[0034] Referring to Figure 7, an example of the operation of the information processing device 10 of this disclosure during the learning phase will be described.

[0035] Figure 7 shows an example of the operation during the learning phase of an information processing device 10 that detects the presence or absence of abnormalities in a target product contained in an input image, using G-ResNet50 and a patch core, which are equivariant to translation and equivariant to the action of a cyclic group consisting of integer multiples of 360 / n degrees. The information processing device 10 inputs a training image (good product image) containing the target product into G-ResNet50 and extracts a feature map (feature regular field). In this case, since G-ResNet50 is equivariant to the action of a cyclic group consisting of integer multiples of 360 / n degrees, even if the orientation of the target product contained in the training image (good product image) is different, it is not necessary for the user or the information processing device 10 to perform an alignment step to align the orientation of the target product. The information processing device 10 inputs a training image (good product image) containing the target product into G-ResNet50 and extracts multiple feature maps (feature regular fields). For example, the information processing device 10 extracts the outputs of stage 2 and stage 3 as feature maps (feature regular fields). Here, the feature map (feature regular field) output of Stage 2 has a higher resolution and fewer feature channels than the feature map (feature regular field) output of Stage 3. The information processing device 10 performs patching and patch interpolation on each feature map (feature regular field) in multiple sizes, and matches the number of patches on multiple feature maps (feature regular fields) that have been patched with the same size. Specifically, in the example in Figure 7, the information processing device 10 performs patching with a patch size of 3x3 on two feature maps (feature regular fields), and then performs patch interpolation on the feature map (feature regular field) extracted from Stage 3, thereby matching the number of patches on the two patched feature maps (feature regular fields).Furthermore, the information processing device 10 performs a patching process with a patch size of 1x1 on the two feature maps (feature regular fields), and interpolates the patches on the feature map (feature regular fields) extracted from stage 3, thereby matching the number of patches in the two patched feature maps (feature regular fields). Subsequently, the information processing device 10 rearranges the numerical data contained in each patch into one-dimensional tensor data (vectorization). The information processing device 10 also obtains the features of each patch by matching the number of channels in multiple one-dimensional tensor data that have been patched to the same patch size and combining them. Furthermore, the information processing device 10 obtains the features of each patch in the image by performing a weighted average on the features of multiple patches that have been patched to multiple patch sizes. The information processing device 10 stores the features of each patch in the image in a memory bank (storage unit).

[0036] Next, with reference to Figure 8, the operation flow of the information processing device 10 that executes the program of this disclosure will be described.

[0037] Step S100: The control unit 14 of the information processing device 10 inputs the image into a ResNet (G-ResNet) which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation.

[0038] The target products are, for example, mass-produced industrial products. The images are still images captured by an imaging device, and are two-dimensional images such as luminance images or RGB images. In the inference stage, the images may also be moving images. In such cases, the information processing device 10 inputs the latest still images constituting the moving image to the G-ResNet 50. Groups other than translation include, for example, cyclic groups, dihedral groups, orthogonal groups, or special orthogonal groups. Furthermore, the cyclic group Cn, which consists of rotations of integer multiples of 360 / n degrees, includes, for example, C4, C8, C 12 , C 24However, it is not limited to this. During the learning phase, the control unit 14 inputs two-dimensional images of still images of the target product, which are pre-prepared learning images, into the G-ResNet 50. Also, during the inference phase (inspection), the control unit 14 of the information processing device 10 inputs two-dimensional images of still images of the product to be inspected into the G-ResNet 50. The control unit 14 extracts multiple feature regular fields with different resolutions and feature channel counts from the G-ResNet 50 and executes step S101.

[0039] Step S101: The control unit 14 obtains multiple feature scalar fields by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from ResNet (G-ResNet).

[0040] As described above, G-ResNet50 consists of four stages. The control unit 14 extracts, for example, the outputs of stage 2 and stage 3 as feature regular fields. Here, the feature regular field that is the output of stage 2 has a higher resolution and fewer feature channels than the feature regular field that is the output of stage 3. The control unit 14 obtains two feature scalar fields by performing first pooling on the two extracted feature regular fields. Here, the first pooling is, for example, norm pooling, but is not limited to this and any pooling such as average pooling, maximum pooling, minimum pooling can be used. Also, the number of feature regular fields extracted by the information processing device 10 is not limited to two, but may be three or four. In such cases, the number of feature scalar fields obtained will match the number of feature regular fields.

[0041] Step S102: The control unit 14 performs patching processing with multiple patch sizes for multiple feature scalar fields.

[0042] The stride of the patching process is, for example, 1. The control unit 14 may also perform padding on the feature scalar fields when performing the patching process. This ensures that even if the control unit 14 performs the patching process on each feature scalar field with multiple patch sizes, the number of patches for each feature scalar field is kept consistent, making it easier to perform the statistical processing in step S109 described later. The multiple patch sizes include, for example, a 1x1 patch size, but are not limited to this, and the patching process may be performed with any patch size. By including a 1x1 patch size, the information processing device 10 can utilize the invariance of the effects of groups other than translation, such as cyclic groups consisting of translation and integer multiple rotations of 360 / n degrees, and is expected to improve the accuracy of detecting abnormalities in the target product.

[0043] Step S103: The control unit 14 matches the number of patches for each of the multiple feature scalar fields that have been patched, for each patch size.

[0044] For steps S103 to S107, the control unit 14 performs processing on the multiple feature scalar fields that have been patched, for each patch size. Matching the number of patches for each of the multiple feature scalar fields means, for example, interpolating the patches of the other feature scalar fields so that they match the number of patches of the feature scalar field with the highest resolution among the multiple feature scalar fields. Patch interpolation generates new patches, for example, by using the average value of the values ​​at the same position of surrounding patches. However, patch interpolation is not limited to this, and any method may be used.

[0045] Step S104: The control unit 14 rearranges the numerical data contained in each patch into one-dimensional tensor data.

[0046] Step S105: The control unit 14 performs a second pooling operation on the one-dimensional tensor data to match the number of channels in the feature quantities of each patch of multiple feature scalar fields.

[0047] The second pooling is, for example, adaptive mean pooling, but any pooling method such as mean pooling, maximum pooling, minimum pooling, or norm pooling can be used. Here, adaptive mean pooling is a type of pooling in which, when the output size is specified, the size of the pooling region is automatically adjusted to match the output size, and the average value within the pooling region is adopted. The control unit 14 matches the number of channels of feature quantities in each patch of multiple feature scalar fields by performing the second pooling.

[0048] Step S106: The control unit 14 combines the one-dimensional tensor data patch by patch.

[0049] The control unit 14 combines one-dimensional tensor data with matching channel counts for each patch.

[0050] Step S107: The control unit 14 acquires feature quantities for each patch of multiple feature scalar fields by performing a third pooling operation.

[0051] The third pooling is, for example, adaptive mean pooling, but any pooling method such as mean pooling, maximum pooling, minimum pooling, norm pooling, etc., can be employed. The control unit 14 obtains the patch-by-patch feature quantities of the multiple feature scalar fields by executing step S107.

[0052] Step S108: If the control unit 14 has already performed steps S103 to S107 for all patched scalar fields, it executes step S109. On the other hand, if the control unit 14 has not already performed steps S103 to S107 for all patched scalar fields, the process executes step S103 again.

[0053] Step S109: The control unit 14 performs statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes.

[0054] Statistical processing can be, for example, performing a weighted average with predefined weights. However, the control unit 14 is not limited to this and may employ any statistical processing. Through this process, the control unit 14 obtains feature quantities for each patch of the image.

[0055] Step S110: If the control unit 14 is in the inference stage (when performing an inspection), it executes step S111. On the other hand, if the control unit 14 is in the learning stage, it executes step S113.

[0056] Step S111: The control unit 14 calculates the neighborhood distance between the feature quantities for each patch of the image and the feature quantities for each patch obtained from a normal target product image.

[0057] In the inference stage, the control unit 14 uses patch cores to calculate the neighborhood distance between the patch-specific feature quantities of the image acquired in step S109 and the patch-specific feature quantities of the normal target product image stored in the memory bank. Here, the control unit 14 may also calculate the neighborhood distance between the patch-specific feature quantities selected by core set subsampling from the patch-specific feature quantities of the normal target product image stored in the memory bank and the patch-specific feature quantities of the image acquired in step S109.

[0058] Step S112: The control unit 14 detects whether or not there is an abnormality in the target product included in the image based on the proximity distance.

[0059] The control unit 14 compares the proximity distance obtained in step S111 with a predetermined threshold using a patch core. The control unit 14 determines that there is an abnormality if the proximity distance is greater than or equal to the predetermined threshold. On the other hand, the control unit 14 determines that there is no abnormality if the proximity distance is less than the predetermined threshold. The predetermined threshold can be arbitrarily set by the user. The control unit 14 may also calculate an abnormality score for each patch of the image. The control unit 14 may also calculate an abnormality score for the image based on the abnormality score for each patch of the image. Furthermore, the control unit 14 may determine the location of an abnormality or a location that may be abnormal in the target product included in the image based on the abnormality score for each patch of the image. In such cases, the control unit 14 may superimpose the determination result onto the image containing the target product and display it on the output unit 12 so that the user can see it.

[0060] Step S113: The control unit 14 stores the feature quantities for each patch of the image in a memory bank.

[0061] During the learning phase, the control unit 14 stores the feature quantities for each patch of images containing the target product in a normal state in a memory bank.

[0062] As described above, the information processing device 10 receives an image as input and detects abnormalities in the target product contained in the image. The information processing device 10 inputs the image into a ResNet which is identical to the target product contained in the image with respect to translation and identical to the action of groups other than translation. It obtains multiple feature scalar fields by performing a first pooling on multiple feature regular fields with different resolutions and number of feature channels extracted from the ResNet, and performs patching processing of multiple patch sizes on the multiple feature scalar fields. For each patch size, the information processing device 10 matches the number of patches in each of the multiple feature scalar fields, rearranges the numerical data contained in each patch into one-dimensional tensor data, performs a second pooling on the one-dimensional tensor data to match the number of channels in the feature quantities of each patch of the multiple feature scalar fields, combines the one-dimensional tensor data for each patch, and performs a third pooling to obtain the feature quantities for each patch of the multiple feature scalar fields. The information processing device 10 performs statistical processing on the feature quantities for each patch of multiple feature scalar fields that have been patched into multiple patch sizes, and detects whether or not there is an abnormality in the target product contained in the image based on the proximity distance between the feature quantities for each patch of the image and the feature quantities for each patch obtained from a normal target product image.

[0063] The information processing device 10 receives an image as input and stores the feature quantities of the target product contained in the image in a memory bank. The information processing device 10 inputs the image into a ResNet that is equivalent to translation of the target product contained in the image and equivalent to the action of groups other than translation. It obtains multiple feature scalar fields by performing a first pooling on multiple feature regular fields with different resolutions and number of feature channels extracted from the ResNet, and performs a patching process of multiple patch sizes on the multiple feature scalar fields. For each patch size, the information processing device 10 matches the number of patches in each of the multiple feature scalar fields, rearranges the numerical data contained in each patch into one-dimensional tensor data, performs a second pooling on the one-dimensional tensor data to match the number of channels of the feature quantities in each patch of the multiple feature scalar fields, combines the one-dimensional tensor data for each patch, and performs a third pooling to obtain the feature quantities for each patch of the multiple feature scalar fields. The information processing device 10 performs statistical processing on the feature quantities for each patch of multiple feature scalar fields that have been patched into multiple patch sizes, and stores the feature quantities for each patch of the image in a memory bank.

[0064] With this configuration, the information processing device 10 inputs an image to the G-ResNet and extracts the feature regular field. Therefore, for example, when using a G-ResNet that is equivalent to a cyclic group consisting of translation of the target product and rotations of an integer multiple of 360 / n degrees, the user does not need to prepare an image of the target product rotating as a training image. In addition, when an image is input to the information processing device 10 to detect an anomaly in the target product, neither the user nor the information processing device 10 needs to align the orientation of the target product. Thus, this embodiment can improve detection accuracy by reducing the number of training images input to the information processing device 10 during the learning stage, and by being able to detect anomalies even if the orientation of the target product does not match. As a result, the technology for detecting the presence or absence of an anomaly in an object being inspected using deep learning is improved.

[0065] While this disclosure has been described based on the drawings and embodiments, it should be noted that those skilled in the art may make various modifications and alterations based on this disclosure. Therefore, it should be noted that these modifications and alterations are within the scope of this disclosure. For example, the functions, etc., included in each component or step can be rearranged in a logically consistent manner, and multiple components or steps can be combined into one or divided into two.

[0066] For example, in step S103 of the embodiment described above, the process by which the control unit 14 interpolates patches was explained. Here, the control unit 14 may perform upsampling to interpolate the resolution of other feature scalar fields to match the resolution of the feature scalar field with the highest resolution among the multiple feature scalar fields, in order to match the number of patches for each of the multiple feature scalar fields, and then perform the patching process. [Explanation of Symbols]

[0067] 10 Information Processing Devices 11 Communications Department 12 Output section 13 Input section 14 Control Unit 15 Storage section

Claims

1. A program that causes an information processing device to perform an operation including inputting an image and detecting an abnormality in a target product contained in the image, The aforementioned operation is, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of each patch of the plurality of feature scalar fields are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, A program that includes detecting whether or not there is an abnormality in the target product contained in the image, based on the proximity distance between the feature quantities of each patch in the image and the feature quantities of each patch obtained from a normal image of the target product.

2. A program that causes an information processing device to perform an operation including inputting an image and saving the feature quantities of a target product contained in the image to a memory bank, The aforementioned operation is, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of each patch of the plurality of feature scalar fields are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, A program that includes storing the feature quantities for each patch of the aforementioned image in the memory bank.

3. A program according to claim 1 or 2, The aforementioned multiple patch sizes include a program with a 1x1 patch size.

4. A program according to claim 1 or 2, The aforementioned statistical processing is a program that performs a weighted average with predetermined weights.

5. A program according to claim 1 or 2, A program that matches the number of patches in each of the multiple feature scalar fields by interpolating the patches of the other feature scalar fields to match the number of patches in the feature scalar field with the highest resolution among the multiple feature scalar fields.

6. An information processing device comprising a control unit that inputs an image to the information processing device and detects abnormalities in a target product contained in the image, The control unit, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. A patching process with multiple patch sizes is performed on the aforementioned multiple feature scalar fields. For each patch size, for the multiple feature scalar fields that have been patched, Match the number of patches in each of the aforementioned multiple feature scalar fields, The numerical data contained in each patch is rearranged into a one-dimensional tensor data. By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match. By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of the multiple feature scalar fields for each patch are obtained. Statistical processing is performed on the feature quantities of each patch of the multiple feature scalar fields that have been patched into multiple patch sizes. An information processing device that detects whether or not there is an abnormality in the target product contained in the image, based on the proximity distance between the feature quantities of each patch in the aforementioned image and the feature quantities of each patch obtained from a normal image of the target product.

7. An information processing device comprising a control unit that inputs an image to the information processing device and stores the characteristic quantities of a target product contained in the image in a memory bank, The control unit, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. A patching process with multiple patch sizes is performed on the aforementioned multiple feature scalar fields. For each patch size, for the multiple feature scalar fields that have been patched, Match the number of patches in each of the aforementioned multiple feature scalar fields, The numerical data contained in each patch is rearranged into a one-dimensional tensor data. By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match. By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of the multiple feature scalar fields for each patch are obtained. Statistical processing is performed on the feature quantities of each patch of the multiple feature scalar fields that have been patched into multiple patch sizes. An information processing device that stores the feature quantities for each patch of the aforementioned image in the memory bank.

8. A method by which an information processing device performs an operation including inputting an image to the information processing device and detecting an abnormality in a target product contained in the image, The aforementioned operation is, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of each patch of the plurality of feature scalar fields are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, A method for detecting whether or not an abnormality exists in the target product contained in the image, based on the proximity distance between the feature quantities of each patch in the image and the feature quantities of each patch obtained from a normal image of the target product.

9. A method by which an information processing device performs an operation including inputting an image to the information processing device and storing the feature quantities of a target product contained in the image in a memory bank, The aforementioned operation is, The image is input to ResNet, which is identical to the translation of the target product included in the image and identical to the effects of groups other than translation. Multiple feature scalar fields are obtained by performing a first pooling operation on multiple feature regular fields with different resolutions and feature channel counts extracted from the aforementioned ResNet. The process involves performing a patching operation with multiple patch sizes on the aforementioned multiple feature scalar fields, For each patch size, for the multiple feature scalar fields that have been patched, Matching the number of patches in each of the aforementioned multiple feature scalar fields, The process involves rearranging the numerical data contained in each patch into a one-dimensional tensor data, By performing a second pooling operation on the aforementioned one-dimensional tensor data, the number of channels in the feature quantities of each patch of the plurality of feature scalar fields is made to match, By combining the one-dimensional tensor data patch by patch and performing a third pooling, the feature quantities of each patch of the plurality of feature scalar fields are obtained. Performing statistical processing on the feature quantities for each patch of the multiple feature scalar fields that have been patched into multiple patch sizes, A method comprising storing the feature quantities for each patch of the aforementioned image in the memory bank.

Citation Information

Patent Citations

  • Image inspection and recognition method, and reference data generating method used for same and device for them

    JP1996069533A