OBJECT DETECTION METHOD, OBJECT DETECTION DEVICE, AND COMPUTER PROGRAM
The vector neural network-based object detection method addresses the limitations of template matching by detecting transparent objects through similarity-based labeling, enhancing object detection accuracy.
Patent Information
- Application Number
- JP2020194817
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-25
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-11-25
AI Technical Summary
Existing object detection methods using template matching fail when a template for the object cannot be prepared or when the object is transparent, leading to unsuccessful matching.
An object detection method utilizing a vector neural network with multiple vector neuron layers to detect objects by inputting a patch image, calculating a determination value, generating a similarity image, and assigning unknown labels to pixels with low similarity, enabling detection of transparent objects.
Effectively detects unknown objects, particularly transparent objects, by assigning unknown labels based on similarity thresholds, overcoming limitations of template matching.
Smart Images

Figure 0007552287000013 
Figure 0007552287000011 
Figure 0007552287000010
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to an object detection method, an object detection device, and a computer program for detecting an object from an input image. [Background technology]
[0002] Patent Document 1 describes a technology for high-speed object recognition using template matching. In this technology, first, multiple standard templates with different resolutions are created, and then a common template representing the common parts of the multiple standard templates and a discrimination template representing the differences between the multiple templates are created. Then, the standard template is used in matching processing at an upper level, while the common template representing the common parts between the templates and the discrimination template representing the differences between the templates are used in matching processing at a lower level, thereby achieving high-speed object recognition. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 2018-151748 Summary of the Invention [Problem to be solved by the invention]
[0004] However, the above-mentioned technology has the problem that, because object recognition is performed by template matching, it cannot detect objects when a template for the object cannot be prepared, when the object is transparent and matching cannot be performed well, etc. Therefore, a technology that can detect objects from an input image using a method different from conventional template matching is desired. [Means for solving the problem]
[0005] According to a first aspect of the present disclosure, there is provided an object detection method for detecting an object from an input image using a vector neural network type machine learning model having multiple vector neuron layers. The machine learning model is configured to, when a patch image of a predetermined size smaller than the input image is input to the machine learning model, output a judgment value indicating that the patch image belongs to one of multiple classes. The object detection method includes: (a) generating a similarity image by inputting the input image to the machine learning model and calculating a similarity indicating the degree of similarity with a feature of one of the multiple classes from the output of at least one specific layer of the multiple vector neuron layers; and (b) generating a discriminant image including at least the unknown label by comparing the similarity of each pixel of the similarity image with a predetermined threshold and assigning an unknown label to the pixel if the similarity is less than the threshold.
[0006] According to a second aspect of the present disclosure, there is provided an object detection device for detecting an object from an input image. The object detection device includes a memory for storing a vector neural network-type machine learning model having multiple vector neuron layers, and a processor for executing an object detection process using the machine learning model. The machine learning model is configured to output a judgment value indicating that a patch image of a predetermined size smaller than the input image belongs to one of multiple classes when the input patch image is input to the machine learning model. The processor (a) executes the following processes: (a) inputting the input image to the machine learning model and calculating, for each pixel of at least one specific layer among the multiple vector neuron layers, a similarity indicating the degree of similarity with a feature of one of the multiple classes from the output of the specific layer, thereby generating a similarity image; and (b) comparing the similarity of each pixel of the similarity image with a predetermined threshold, and assigning an unknown label to the pixel if the similarity is less than the threshold, thereby generating a discriminant image including at least the unknown label.
[0007] According to a third aspect of the present disclosure, there is provided a computer program that causes a processor to execute an object detection process that detects an object from an input image using a vector neural network-type machine learning model having multiple vector neuron layers. The machine learning model is configured to, when a patch image of a predetermined size smaller than the input image is input to the machine learning model, output a judgment value indicating that the patch image belongs to one of multiple classes. The computer program causes the processor to execute the following processes: (a) inputting the input image to the machine learning model and calculating, for each pixel of at least one specific layer among the multiple vector neuron layers, a similarity indicating the degree of similarity with a feature of one of the multiple classes from the output of the specific layer, thereby generating a similarity image; and (b) comparing the similarity of each pixel of the similarity image with a predetermined threshold and assigning an unknown label to the pixel if the similarity is less than the threshold, thereby generating a discrimination image including at least the unknown label. [Brief explanation of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram of an information processing apparatus according to an embodiment. [Figure 2] FIG. 2 is an explanatory diagram showing an example of an input image and a known image. [Figure 3] FIG. 1 is an explanatory diagram showing the configuration of a machine learning model in a preparation process. [Figure 4] 10 is a flowchart showing the processing procedure of a preparation step. [Figure 5] FIG. 10 is an explanatory diagram showing a label image obtained by region separation of a known image. [Figure 6] FIG. 10 is an explanatory diagram showing a plurality of patch images extracted from a known image. [Figure 7] FIG. 10 is an explanatory diagram showing a feature spectrum used in calculating a similarity. [Figure 8] FIG. 2 is an explanatory diagram showing the configuration of a group of known characteristic spectra. [Figure 9]FIG. 1 is an explanatory diagram showing the configuration of a machine learning model in object detection processing. [Figure 10] 10 is a flowchart showing the processing procedure of an object detection step. [Figure 11] FIG. 4 is an explanatory diagram showing the processing contents of steps S220 to S240. [Figure 12] FIG. 10 is an explanatory diagram showing an output image of the object detection process. DETAILED DESCRIPTION OF THE INVENTION
[0009] 1 is a block diagram showing the functions of an information processing device 100 according to one embodiment. The information processing device 100 includes a processor 110, a memory 120, an interface circuit 130, and an input device 140 and a display unit 150 connected to the interface circuit 130. For example, but not limited to, the processor 110 not only has the function of executing the processes described in detail below, but also has the function of displaying, on the display unit 150, an output image, a similarity image, and a discrimination image obtained by the processes, as well as data generated during the processes. The information processing device 100 can be realized by a computer such as a personal computer.
[0010] The processor 110 functions as an object detection processing unit 112 that detects an object from an input image. The object detection processing unit 112 is implemented by the processor 110 executing a computer program stored in the memory 120. However, the object detection processing unit 112 may also be implemented as a hardware circuit. The term "processor" in this specification also includes such hardware circuits. The memory 120 stores a vector neural network type machine learning model 200, a known image KM, a known feature spectrum group KSG, and an input image Pi. The machine learning model 200 is used for object detection processing by the object detection processing unit 112. An example configuration and operation of the machine learning model 200 will be described later. The known image KM is an image that serves as training data used for training the machine learning model 200. The known feature spectrum group KSG is a set of feature spectra obtained when training data is re-input into the trained machine learning model 200. The feature spectra will be described later. The input image Pi is an image to be processed in the object detection processing. The known image KM is required only when training the machine learning model 200, and is not required when executing the object detection process on the input image Pi. Furthermore, the input image Pi does not need to be stored in the memory 120 when training the machine learning model 200.
[0011] FIG. 2 is an explanatory diagram showing an example of an input image Pi and a known image KM. The input image Pi is an image of a test tube rack ST placed against a dark background BG, with transparent glass test tubes TT set in the test tube rack ST. In the object detection process of this embodiment, the background BG and the test tube rack ST are known, and the test tubes TT are unknown objects. A process for detecting test tubes TT from the input image Pi is performed. For this purpose, an image is captured in advance as a known image KM used for training the machine learning model 200, in which the test tubes TT to be detected are not present, but the background BG and the test tube rack ST are present. In other words, the input image Pi is an image that includes the background BG and object ST present in the known image KM, as well as an unknown object TT not present in the known image KM. It is preferable to use multiple images captured from multiple different directions in the same arrangement as the known image KM. Hereinafter, the background BG and the objects ST and TT will each be referred to as an "image region" or an "image component." It is generally known that machine learning is difficult for transparent objects such as test tubes TT because their appearance changes significantly depending on the surrounding environment, such as specular reflection of the light source, reflections of the surroundings, transparency of the background BG, etc. On the other hand, as will be described below, this embodiment uses a vector neural network type machine learning model 200, making it possible to easily detect transparent objects with a small amount of learning.
[0012] 3 is an explanatory diagram showing an example of the configuration of the machine learning model 200 during learning. This machine learning model 200 includes, in order from the input data IM side, a convolutional layer 210, a primary vector neuron layer 220, a first convolutional vector neuron layer 230, a second convolutional vector neuron layer 240, and a classification vector neuron layer 250. Of these five layers 210 to 250, the convolutional layer 210 is the lowest layer, and the classification vector neuron layer 250 is the highest layer. In the following description, the layers 210 to 250 are also referred to as the "Conv layer 210," the "PrimeVN layer 220," the "ConvVN1 layer 230," the "ConvVN2 layer 240," and the "ClassVN layer 250," respectively.
[0013] 3, two convolution vector neuron layers 230 and 240 are used, but the number of convolution vector neuron layers is arbitrary, and a convolution vector neuron layer may be omitted. However, it is preferable to use one or more convolution vector neuron layers.
[0014] 3 further includes a similarity calculation unit 260 that generates a similarity image. The similarity calculation unit 260 can calculate similarity images S_ConvVN1, S_ConvVN2, and S_ClassVN (described later) from the outputs of the ConvVN1 layer 230, the ConvVN2 layer 240, and the ClassVN layer 250, respectively.
[0015] The configuration of each of the layers 210 to 250 can be described as follows. <Description of each layer configuration> ·Layer 210: Conv[32,5,2] ·Layer 220: PrimeVN[16,1,1] ·Layer 230: ConvVN1[12,3,2] ·Layer 240: ConvVN2[6,3,1] ·Layer 250:ClassVN[2,4,1] Vector dimension VD: VD=16 In the description of each of these layers 210 to 250, the character string before the parentheses is the layer name, and the numbers in the parentheses are, in order, the number of channels, kernel size, and stride. For example, the layer name of the Conv layer 210 is "Conv," the number of channels is 32, the kernel size is 5 x 5, and the stride is 2. In Figure 3, these descriptions are shown below each layer. The hatched rectangles drawn in each layer represent the kernels used when calculating the output vector of the adjacent upper layer. Note that the parameter values used in the description of each of the layers 210 to 250 are merely examples and can be changed as desired.
[0016] The Conv layer 210 is a layer composed of scalar neurons. The other four layers 220 to 250 are layers composed of vector neurons. A vector neuron is a neuron that uses vectors as input and output. In the above description, the dimension of the output vector of each vector neuron is constant at 16. In the following, the term "node" is used as a superordinate concept of scalar neurons and vector neurons.
[0017] FIG. 3 shows the Conv layer 210 with a first axis x and a second axis y that define the planar coordinates of the node array, and a third axis z that represents depth. It also shows that the sizes of the Conv layer 210 in the x, y, and z directions are 13, 13, and 32, respectively. The sizes in the x and y directions are called "resolution." In this example, the resolutions in the x and y directions are equal, but they may be different. The size in the z direction is the number of channels. These three axes x, y, and z are also used in other layers as coordinate axes indicating the position of each node. However, in FIG. 3, these axes x, y, and z are omitted from the illustration in layers other than the Conv layer 210.
[0018] As is well known, the resolution W1 after convolution is given by the following equation: W1=Ceil{(W0-Wk+1) / S} (1) Here, W0 is the resolution before convolution, Wk is the kernel size, S is the stride, and Ceil{X} is a function that rounds up X. The resolution of each layer shown in FIG. 3 is an example in which the resolution of the input data is 29×29 pixels, and the actual resolution of each layer is changed appropriately depending on the size of the input data.
[0019] Each node in the PrimeVN layer 220 regards the scalar output of the 1x1x32 nodes in the Conv layer 210 as a 32-dimensional vector and obtains the vector output of that node by multiplying this vector by a transformation matrix. This transformation matrix is an element of a 1x1 kernel and is updated by learning the machine learning model 200. Note that the processing of the Conv layer 210 and the PrimeVN layer 220 can be integrated to form a single primary vector neuron layer.
[0020] When the PrimeVN layer 220 is referred to as the "lower layer L" and the ConvVN1 layer 230 adjacent to it on the upper side is referred to as the "upper layer L+1", the output of each node in the upper layer L+1 is determined using the following equation.
number
[0021] As the normalization function F(X), for example, the following formula (4a) or (4b) can be used.
number
[0022] In the above equation (4a), the sum vector u j Norm of |u j The activation value a is normalized by the softmax function | j On the other hand, in equation (4b), the sum vector u j Norm of |u j | is the norm |u j Activation value a by dividing by the sum of | j It should be noted that a function other than equation (4a) or (4b) may be used as the normalization function F(X).
[0023] The ordinal number i in the above equation (3) is the output vector M of the jth node in the upper layer L+1. L+1 j The integer n is assigned for convenience to the nodes in the lower layer L used to determine the output vector M L+1 j is the number of nodes in the lower layer L used to determine . Thus, the integer n is given by n = Nk × Nc (6) Here, Nk is the number of elements of the kernel, and Nc is the number of channels in the lower layer, the PrimeVN layer 220. In the example of Fig. 3, Nk = 9 and Nc = 16, so n = 144.
[0024] One kernel used to calculate the output vector of the ConvVN1 layer 230 has a surface size of 3 × 3 and a depth of 16 channels in the lower layer, with 3 × 3 × 16 = 144 elements. Each of these elements is a prediction matrix W L ij In addition, 12 sets of this kernel are required to generate output vectors for 12 channels of the ConvVN1 layer 230. Therefore, the prediction matrix W of the kernel used to obtain the output vector of the ConvVN1 layer 230 is L ij The number of prediction matrices W is 144 × 12 = 1728. L ij is updated by learning of the machine learning model 200.
[0025] As can be seen from the above equations (2) to (5), the output vector M of each node in the upper layer L+1 L+1 j is calculated by the following calculation: (a) Output vector M of each node in the lower layer L L i The prediction matrix W L ij Multiplying by the predicted vector v ij Seeking (b) Prediction vector v obtained from each node in the lower layer L ij The sum vector u is a linear combination of j Seeking (c) Sum vector u j Norm of |u j The activation value a is normalized by normalizing | j Seeking (d) Sum vector u j norm |u j Divide by | and then use the activation value a j Multiply by.
[0026] In addition, the activation value a j is the norm |u jis the normalization factor obtained by normalizing |. Therefore, the activation value a j can be considered as an index showing the relative output strength of each node among all nodes in the upper layer L+1. The norm used in equations (4), (4a), (4b), and (5) is typically the L2 norm, which represents the vector length. In this case, the activation value a j is the output vector M L+1 j The activation value a corresponds to the vector length of j is only used in the above equations (4) and (5), and does not need to be output from the node. However, the activation value a j It is also possible to configure the upper layer L+1 so that it outputs
[0027] The configuration of a vector neural network is almost the same as that of a capsule network, and the vector neurons of a vector neural network correspond to the capsules of a capsule network. However, the calculations according to the above equations (2) to (5) used in a vector neural network are different from those used in a capsule network. The biggest difference between the two is that in a capsule network, the predicted vector v on the right side of the above equation (3) ij are multiplied by weights, and the weights are searched by repeating dynamic routing multiple times. On the other hand, in the vector neural network of this embodiment, the output vector M is calculated by calculating the above-mentioned equations (2) to (5) once in order. L+1 j Therefore, there is no need to repeat dynamic routing, which has the advantage of allowing faster calculations. In addition, the vector neural network of this embodiment has the advantage that it requires less memory for calculations than a capsule network, and according to experiments by the inventors of this disclosure, it only requires about 1 / 2 to 1 / 3 of the memory required.
[0028] Vector neural networks are similar to capsule networks in that they use nodes that use vectors as input and output. Therefore, they share the advantages of using vector neurons with capsule networks. Furthermore, the multiple layers 210-250 are similar to conventional convolutional neural networks in that the higher layers represent features of larger areas and the lower layers represent features of smaller areas. Here, "feature" refers to a characteristic part contained in the input data to the neural network. Vector neural networks and capsule networks are superior to conventional convolutional neural networks in that the output vector of a node contains spatial information representing the spatial information of the feature represented by that node. That is, the vector length of a node's output vector represents the probability of the feature represented by that node, and the vector direction represents spatial information such as the direction and scale of the feature. Therefore, the vector direction of the output vectors of two nodes belonging to the same layer represents the relative positions of the respective features. Alternatively, the vector direction of the output vectors of the two nodes can be said to represent the variation of the feature. For example, for a node corresponding to the "eye" feature, the direction of the output vector can represent variations such as the narrowness of the eyes or the way they are lifted. In conventional convolutional neural networks, it is said that spatial information of features is lost due to the pooling process. As a result, vector neural networks and capsule networks have the advantage of being superior to conventional convolutional neural networks in terms of the performance of identifying input data.
[0029] The advantages of vector neural networks can also be considered as follows. In other words, the advantage of vector neural networks is that the output vectors of nodes represent the features of input data as coordinates in continuous space. Therefore, output vectors can be evaluated such that the closer the vector directions, the more similar the features. Another advantage is that even if the features contained in the input data are not covered by the training data, they can be determined by interpolation. On the other hand, conventional convolutional neural networks have the disadvantage that the features of input data cannot be represented as coordinates in continuous space due to the chaotic compression caused by the pooling process.
[0030] The outputs of each node in the ConvVN2 layer 240 and the ClassVN layer 250 are similarly determined using the above-mentioned equations (2) to (5), and therefore detailed explanations are omitted. The ClassVN layer 250, which is the top layer, has a resolution of 1x1 and two channels. The number of channels in the ClassVN layer 250 is usually set to be equal to the number of labels used in the training data.
[0031] The method for determining the output of the nodes in each layer 210-250 can also be explained as follows. A 5x5 kernel with a stride of 2 is applied to the input data IM to determine a subrange of the input data IM that provides output to one node in the Conv layer 210. The number of kernels applied to the input data IM is 32. As a result, the Conv layer 210 is configured so that the first axis x and the second axis x each have 13 regions. The number of channels, which represents the depth of the Conv layer 210, is 32, the same number as the number of kernels. A "subrange" is a region on the input data IM that is identified by the position of the first axis x and the position of the second axis y. However, as will be clear from the following explanation, the size of the "subrange" varies depending on which of the vector neuron layers 220, 230, 240, and 250 the one or more nodes corresponding to the "subrange" or the "subregion Rn" composed of the one or more nodes belongs to. On the other hand, a "subregion Rn" is a region in the vector neuron layer identified by the position of the first axis x and the position of the second axis y. Each "subregion Rn" in the vector neuron layer has dimensions of "Width" x "Height" x "Depth," corresponding to the first axis x, the second axis x, and the third axis z. In this embodiment, the number of nodes included in one "subregion Rn" is "1 x 1 x number of depths," i.e., "1 x 1 x number of channels." In this specification, the subscript "n" of the subregion Rn is substituted with the numerical values "220," "230," "240," or "250" according to the vector neuron layers 220, 230, 240, and 250. For example, the subregion R220 indicates a region in the PrimeVN layer 220.
[0032] By applying a 1x1x32 kernel with a stride of 1 to the Conv layer 210, a subregion R210 of the Conv layer 210 to be output to one node of the PrimeVN layer 220 is determined. Here, 16 types of kernels with the same size and stride are used, so the number of nodes in the PrimeVN layer 220 corresponding to one subregion R210 of the Conv layer 210 is 16. A transformation matrix is used to generate output from the nodes of the Conv layer 210 to the nodes of the PrimeVN layer 220, and the output determination algorithm shown in Equations (2) to (5) above is not used. The dimension of the kernel for convolution in the vector neuron layer may be expressed as "Width" x "Height" x "Depth" x "Number of Vector Elements" when the number of channels and the number of vector elements are also taken into consideration. According to this representation, the dimensions of the kernel used for the convolution from the Conv layer 210 to the PrimeVN layer 220 are 1×1×32×16.
[0033] By applying a 3×3×16 kernel with a stride of 2 to the PrimeVN layer 220, a subregion R220 is determined from the subregion R220 of the PrimeVN layer 220, which provides output to a node included in one subregion R230 of the ConvVN1 layer 230. Here, 12 types of kernels with the same size, same dimension, and same stride are used, so the number of nodes included in the subregion R230 of the ConvVN1 layer 230 is 12. The output determination algorithm shown in the above equations (2) to (5) is used to generate output from the nodes of the PrimeVN layer 220 to the nodes of the ConvVN1 layer 230. Here, the kernel applied to the lower layer 220 can also be expressed as specifying the 3×3×16 nodes of the lower layer 220 used to determine one node of the upper layer 230. This also applies to the following explanation.
[0034] By applying a 3×3×12 kernel with a stride of 1 to the ConvVN1 layer 230, a subregion R230 that provides output to one subregion R240 in the ConvVN2 layer 240 is determined from among the subregions R230 of the ConvVN1 layer 230. Here, six types of kernels with the same size, same dimension, and same stride are used, so the number of nodes included in the subregion R240 of the ConvVN2 layer 240 is six. When generating nodes in the ConvVN2 layer 240 from the nodes in the ConvVN1 layer 230, the output determination algorithm shown in the above equations (2) to (5) is used.
[0035] By applying a 4x4x6 kernel with a stride of "1" to the ConvVN2 layer 240, a subregion R240 that provides output to one subregion R250 in the ClassVN layer 250 is determined from among the subregions R240 of the ConvVN2 layer 240. Here, two types of kernels with the same size, same dimension, and same stride are used, so the number of nodes included in the subregion R250 of the ClassVN layer 250 is two. When generating nodes of the ClassVN layer 250 from nodes of the ConvVN2 layer 240, the output determination algorithm shown in the above equations (2) to (5) is used.
[0036] The ClassVN layer 250, which is the top layer, is composed of one subregion R250. The ClassVN layer 250 classifies the input data IM input to the machine learning model 200 into predetermined labels. In this embodiment, the predetermined labels are label "0" and label "1". In the ClassVN layer 250, the activation value a j The label corresponding to the node with the largest σ is output. The label output from the ClassVN layer 250 is output by the display unit 150 under the control of the processor 110.
[0037] In FIG. 3, one subregion R220 in the PrimeVN layer 220 corresponds to a 5×5 pixel subrange of the input data IM. Also, one subregion R230 in the ConvVN1 layer 230 corresponds to a 9×9 pixel subrange of the input data IM. Also, one subregion R240 in the ConvVN2 layer 240 corresponds to a 17×17 pixel subrange of the input data IM. Also, one subregion R250 in the ClassVN layer 250 corresponds to a 29×29 pixel subrange of the input data IM.
[0038] 4 is a flowchart showing the processing procedure of a preparation step for executing learning of the machine learning model 200. In step S110, the object detection processing unit 112 separates the known image KM into regions to create a labeled image.
[0039] FIG. 5 is an explanatory diagram showing a region separation process for creating a label image LM from a known image KM. When the region separation process is performed on the known image KM, the known image KM is separated into multiple image regions B0 and B1. The first image region B0 corresponds to the background BG of the known image KM, and the second image region B1 corresponds to the test tube rack ST. Different labels Lb are assigned to the multiple image regions B0 and B1. In the example of FIG. 5, the label Lb of the first image region B0 is 0, and the label Lb of the second image region B1 is 1. Note that any method may be used for the region separation process. For example, the user may manually assign labels, or a known contour extraction algorithm may be used. Furthermore, distance information may be assigned using a depth sensor when photographing an object, and the same label may be assigned to objects at similar depths based on that information. In other words, the creation of the label image LM may be performed automatically by the object detection processing unit 112 or by the user of the information processing device 100. However, since mechanical region separation processing separates the background BG into a background region outside the test tube rack ST and a background region inside the test tube rack ST, it is preferable for the user to modify the labels so that the same label is assigned to these. The same applies to the test tube rack ST. The labeled image LM is an image in which each pixel is assigned one of multiple labels Lb=0, Lb=1 that distinguish between multiple image regions B0, B1.
[0040] In step S120 of FIG. 4, the object detection processing unit 112 creates a plurality of patch images Pc from the known image KM, and assigns one label to each patch image Pc, thereby creating training data.
[0041] 6 is an explanatory diagram showing an example of a plurality of patch images Pc extracted from a known image KM. The number Np of patch images Pc obtained by extraction is given by the following equation. Np=Ceil{(Wx-Hx+1) / T}×Ceil{(Wy-Hy+1) / T} (7) Here, Wx and Wy are the resolution of the known image KM, Hx and Hy are the resolution of the patch image Pc, T is the stride, and Ceil{X} is a function that performs an operation to round up X. In this embodiment, Wx = Wy = 256, Hx = Hy = 29, T = 2, and Np = 12996. Other methods may be used to extract the patch images Pc. However, it is preferable that the multiple patch images Pc are extracted so that they can cover the entire known image KM.
[0042] Each patch image Pc is assigned a label Lb. This label Lb is the label Lb for the image component BG, ST of the known image KM contained in the patch image Pc that has the largest area within the patch image Pc. Alternatively, the label assigned to the patch image Pc can be assigned as a set of multiple continuous values. For example, for a patch image Pc in which the ratio of two backgrounds BG to a test tube rack ST is 1:3, two labels, Lb_0 = 0.25 and Lb_1 = 0.75, may be assigned. It is also possible to learn continuous value labels by treating the output of the ClassVN layer 250 of the vector neural network as a continuous value of the activation value a. Note that "continuous value" does not mean a discrete value such as 1, 2, or 3, but rather a value including decimal points.
[0043] In the example of Fig. 6, the label Lb of one patch image Pc3 (second from the right in the figure) is 0, and the labels Lb of the other three patch images Pc1, Pc2, and Pc4 are 1. These labels Lb can be determined from the correspondence between the known image KM and the label images LM shown in Fig. 5 and the position of each patch image Pc in the known image KM. The association of the labels Lb with the patch images Pc may be performed automatically by the object detection processing unit 112, or may be performed by a user of the information processing device 100.
[0044] 4, the object detection processing unit 112 performs training of the machine learning model 200 using a plurality of patch images Pc as training data. In one embodiment, training was performed with a batch size of 128, a learning rate of 0.001, and epochs of 5000. As a result of training, the accuracy of label discrimination for the patch images Pc was 1.0.
[0045] The output of the ClassVN layer 250 is converted into a plurality of decision values for classes equal in number to the number of labels Lb, but this is not shown in FIG. 3. In this embodiment, the outputs of the two nodes in the ClassVN layer 250 are converted into decision values for two classes corresponding to the labels Lb=0 and Lb=1. These decision values are usually normalized using a softmax function. Specifically, for example, the decision values for the two classes can be obtained by performing the following operation: calculating the vector length of the output vector from the output vector of each node of the ClassVN layer 250, and then normalizing the vector lengths of the two nodes using a softmax function. As described above, the activation value a obtained by the above equation (4) is j is the output vector M L+1 j The activation value a at each of the two nodes in the ClassVN layer 250 is j may be output and used as the judgment value for the two classes.
[0046] It can be understood that the trained machine learning model 200 is configured so that when a patch image Pc of a predetermined size smaller than the input image Pi is input to the trained machine learning model 200, the machine learning model 200 outputs a judgment value indicating that the input patch image Pc belongs to one of multiple classes. When learning using the multiple patch images Pc is completed, the trained machine learning model 200 is saved in the memory 120.
[0047] 4, a known feature spectrum group KSG is generated by inputting a plurality of patch images Pc again into the trained machine learning model 200. The known feature spectrum group KSG is a collection of feature spectra, which will be described below.
[0048] FIG. 7 is an explanatory diagram showing a feature spectrum Sp obtained by inputting arbitrary input data to the trained machine learning model 200. Here, the feature spectrum Sp obtained from the output of the ConvVN1 layer 230 will be described. The horizontal axis in FIG. 7 is the spectral position represented by a combination of the element number ND of the output vector of a node at one planar position (x, y) of the ConvVN1 layer 230 and the channel number NC. In this embodiment, since the vector dimension of the node is 16, the element number ND of the output vector is 16, ranging from 0 to 15. Furthermore, since the number of channels in the ConvVN1 layer 230 is 12, the channel number NC is 12, ranging from 0 to 11.
[0049] The vertical axis of Fig. 7 shows the feature value C at each spectral position. V In this example, the feature value C V is the value of each element of the output vector V ND Note that the feature value C V As the value of each element of the output vector V ND and the activation value of that node a j The value V obtained by multiplying ND ×a j Alternatively, an activation value a j In the latter case, the feature value C included in the feature spectrum Sp may be used as it is.V The number of is equal to the number of channels, which is 12.
[0050] The number of feature spectra Sp obtained from the output of the ConvVN1 layer 230 for one piece of input data is equal to the number of planar positions (x, y) of the ConvVN1 layer 230, that is, 6 × 6 = 36. Similarly, for one piece of input data, 16 feature spectra Sp are obtained from the output of the ConvVN2 layer 240, and one feature spectrum Sp is obtained from the output of the ClassVN layer 250.
[0051] When a plurality of patch images Pc are input again to the trained machine learning model 200, the similarity calculation unit 260 calculates each of the feature spectra Sp shown in FIG. 7 and registers them in the known feature spectrum group KSG.
[0052] 8 is an explanatory diagram showing the configuration of the known feature spectrum group KSG. In this example, the known feature spectrum group KSG includes a known feature spectrum group KSG_ConvVN1 obtained from the output of the ConvVN1 layer 230, a known feature spectrum group KSG_ConvVN2 obtained from the output of the ConvVN2 layer 240, and a known feature spectrum group KSG_ConvVN1 obtained from the output of the ClassVN layer 250.
[0053] Each record in the known feature spectrum group KSG_ConvVN1 includes a record number, a layer name, a label Lb, and a known feature spectrum KSp. Each record may also include other items, such as the name of an individual piece of training data TD or the upper-left coordinate of the portion of the input data IM corresponding to the feature spectrum Sp. The known feature spectrum KSp is the same as the feature spectrum Sp in FIG. 4 obtained in response to the input of patch image Pc. In the example of FIG. 5, by inputting multiple patch images Pc into the trained machine learning model 200, N1_0max known feature spectra KSp associated with label Lb=0 and N1_1max known feature spectra KSp associated with label Lb=1 are obtained and registered from the output of the ConvVN1 layer 230. N1_0max and N1_1max are each an integer greater than or equal to 2. As described above, the labels Lb=0 and Lb=1 correspond to different classes. Therefore, it can be understood that each known feature spectrum KSp in the known feature spectrum group KSG_ConvVN1 is registered in association with one of multiple classes, as is the case with the other known feature spectrum groups KSG_ConvVN2 and KSG_ConvVN1.
[0054] It should be noted that the plurality of patch images Pc used in step S120 do not need to be the same as the plurality of patch images Pc used in step S110. However, if some or all of the plurality of patch images Pc used in step S110 are used in step S120 as well, there is an advantage in that there is no need to prepare new patch images.
[0055] Once the preparation process including the learning of the machine learning model 200 is completed in this manner, an object detection process is executed at any timing to detect an object in the input image Pi.
[0056] Figure 9 is an explanatory diagram showing the configuration of a machine learning model 200 in the object detection process. The difference from the machine learning model 200 in the preparation process shown in Figure 3 is that an input image Pi is used as input data in Figure 9, and as a result, the resolution of each layer 210 to 250 is different from that in Figure 3; the other configuration is the same as in Figure 3. The calculations in each layer 210 to 250 are also the same as those explained with reference to Figure 3.
[0057] In the configuration of FIG. 9, an output image Po is output from the ClassVN layer 250, which is the top layer, to which a known label Lb is assigned for each pixel. This output image Po is obtained by integrating the labels Lb output from the nodes of two channels at each planar position (x, y). That is, the nodes of the two channels at each planar position (x, y) output a judgment value indicating which class of the two labels Lb=0 or Lb=1 the pixel belongs to. The output image Po is an image obtained by integrating the judgment values at each planar position (x, y) and assigning one label Lb to each pixel at each planar position (x, y). In the example of FIG. 9, the resolution of the output image Po is 57×57 pixels. Note that the output image Po may be generated by the object detection processing unit 112 from the output of the ClassVN layer 250.
[0058] FIG. 10 is a flowchart showing the processing procedure of the object detection process using the trained machine learning model 200, and FIG. 11 is an explanatory diagram showing the processing contents of steps S220 to S240.
[0059] In step S210, the object detection processing unit 112 inputs the input image Pi to the machine learning model 200 and generates an output image Po from the output of the top layer of the machine learning model 200, in which each pixel is assigned a known label Lb indicating which of multiple classes it belongs to.
[0060] In step S220, in response to the input image Pi in step S210, the similarity calculation unit 260 generates similarity images S_ConvVN1, S_ConvVN2, and S_ClassVN from the outputs of the ConvVN1 layer 230, the ConvVN2 layer 240, and the ClassVN layer 250. A method for calculating the similarity image S_ConvVN1 from the output of the ConvVN1 layer 230 will be described below. Note that the similarity calculation unit 260 can also be considered to constitute part of the object detection processing unit 112.
[0061] The similarity image S_ConvVN1 has the same resolution as the ConvVN1 layer 230. In the example of Fig. 9, the resolution of the ConvVN1 layer 230 is 62 x 62, and the size of the similarity image S_ConvVN1 is also 62 x 62 pixels.
[0062] The similarity S(x, y) at each pixel position (x, y) of the similarity image S_ConvVN1 can be calculated according to the following equation using the known feature spectrum group KSG shown in FIG. S(x,y)=max[G{Sp(x,y),KSp(j)}] (8) Here, G{a,b} is a function for calculating the similarity between a and b, Sp(x,y) is a feature spectrum at a planar position (x,y) of the ConvVN1 layer 230 obtained in response to the input image Pi, KSp(j) is all known feature spectra associated with the ConvVN1 layer 230, and max[X] is a logical operation that takes the maximum value of X. In other words, the similarity S(x,y) at each pixel position (x,y) is the maximum value of the similarities between the feature spectrum Sp(x,y) obtained in response to the input image Pi and all known feature spectra KSp(j) obtained in the same ConvVN1 layer 230.
[0063] The function G{a,b} for calculating the similarity can be, for example, a formula for calculating cosine similarity or a formula for calculating similarity according to distance. It is preferable that the pixel values at each position (x,y) are saved in a form that includes not only the similarity S(x,y) but also the label Lb associated with the known feature spectrum KSp(j) that gave the maximum value in the above formula (8). However, the label Lb information does not need to be included in the pixel values at each position (x,y). For example, there may be cases where it is sufficient to recognize unknown parts. In this case, the pixel values may be configured to color-code two regions, known and unknown. The similarity S(x,y) of the similarity image S_ConvVN1 represents the probability that a feature of the class corresponding to the label Lb exists at the pixel position of the input image Pi corresponding to that position (x,y). In other words, the similarity S(x,y) is an index indicating the degree to which the feature at the planar position (x,y) of that layer is similar to the feature of one of multiple classes.
[0064] Similarity images S_ConvVN2 and S_ClassVN relating to the outputs of the ConvVN2 layer 240 and the ClassVN layer 250 are generated in the same manner as the similarity image S_ConvVN1. Note that it is not necessary to generate all three similarity images S_ConvVN1, S_ConvVN2, and S_ClassVN, but it is preferable to generate one or more of them. In this disclosure, the layer that generates the similarity image is also referred to as the "specific layer."
[0065] In step S230 of Fig. 10, the object detection processing unit 112 compares the similarity of each pixel in the similarity images S_ConvVN1, S_ConvVN2, and S_ClassVN with a predetermined threshold and assigns a known label or an unknown label depending on the comparison result to generate a discrimination image. In Fig. 11, discrimination images T_ConvVN1, T_ConvVN2, and T_ClassVN are created from the similarity images S_ConvVN1, S_ConvVN2, and S_ClassVN, respectively, by the processing of step S230. Each pixel in the similarity image S_ConvVN1 represents a similarity that indicates the degree of similarity with the features of one of multiple classes. Therefore, a threshold value for similarity is set in advance, and if the similarity at a pixel position (x, y) in the similarity image S_ConvVN1 is equal to or greater than the threshold value, a known label corresponding to the class associated with that similarity is assigned to that pixel position (x, y). On the other hand, if the similarity is less than the threshold value, an unknown label is assigned to that pixel position (x, y), thereby generating a discriminated image T_ConvVN1. In this embodiment, there are two known labels, Lb=0 and Lb=1. As an unknown label, for example, Lb=-1 is assigned. Note that the threshold value for similarity can be, for example, a value in the range of 0.90 to 0.98.
[0066] When creating the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN, it is also possible to assign only unknown labels to pixel positions (x, y) without assigning known labels. For example, if the purpose is to identify the positions of unlearned objects, known labels are not necessary. In other words, it is sufficient that at least unknown labels are assigned to the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN.
[0067] In step S240 of FIG. 10, the object detection processor 112 sets an unknown label for the output image Po with reference to the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN. At this time, it is preferable to first perform resolution conversion to match the resolution of the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN with the resolution of the output image Po. FIG. 11 illustrates how the resolutions of the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN are converted to 256 × 256 pixels, the same as the input image Pi, to generate the resolution-converted discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN. FIG. 11 also illustrates the output image #Po obtained by converting the output image Po shown in FIG. 9 to 256 × 256 pixels. Examples of resolution conversion algorithms that can be used include the bicubic algorithm and the nearest neighbor algorithm. However, this resolution conversion can be omitted.
[0068] In step S240, the object detection processing unit 112 sets an unknown label for the output image #Po by referring to the discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN. For example, for each pixel position (x, y) of the output image #Po, the object detection processing unit 112 refers to the labels in the three discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN. If there is even one unknown label, the object detection processing unit 112 assigns the unknown label to that pixel position (x, y). If all labels are known, the object detection processing unit 112 uses the label of the output image #Po as is. As a result, as shown in FIG. 11, an output image LPo is created in which known labels Lb=0, Lb=1 and an unknown label Lb=-1 are set.
[0069] In another embodiment, for each pixel position (x, y) in the output image #Po, the labels in the three discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN are referenced, and if all of the labels are unknown, the unknown label is assigned to that pixel position (x, y); if all of the labels are known, the label in the output image #Po is used as is. Generally, for multiple discriminant images generated from the outputs of multiple layers, if a predetermined number of corresponding pixels in these discriminant images have unknown labels assigned, the unknown label may be assigned to that pixel in the output image Po.
[0070] 10 and 11, it is not necessary to generate a similarity image or a discriminant image from the output of each of the three layers 230, 240, and 250, but the similarity image or discriminant image may be generated from at least one of these layers. In the present disclosure, the layer used to generate the similarity image or discriminant image is also referred to as a "specific layer."
[0071] If the objective is to detect only unknown regions, step S240 for integrating discriminant images into output image Po may be omitted. Alternatively, it is possible to integrate the three discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN to generate output image Lo without using output image Po.
[0072] 4, the object detection processing unit 112 displays the output image LPo in which a known label and an unknown label are assigned to each pixel. When displaying the output image LPo, it is preferable to display the output image LPo with a different color assigned to each label.
[0073] 12 is an explanatory diagram showing an output image LPo displayed as a result of the object detection process. In this example, different colors are assigned to the background BG, test tube rack ST, and test tubes TT. When displaying the output image LPo, the input image Pi may be reused, and a semi-transparent layer in which a color specific to the unknown label is assigned to pixel positions of the unknown label may be overlaid on the input image Pi to create an image for display.
[0074] In the above embodiment, the output image Po is calculated from the output of the highest layer of the machine learning model 200 in response to the input of the input image Pi, and the output image LPo containing the unknown label is calculated using this output image Po. However, the output image to be presented to the user may be calculated by other methods. For example, at least one of the discriminant images T_ConvVN1, T_ConvVN2, and T_ClassVN, or at least one of the discriminant images #T_ConvVN1, #T_ConvVN2, and #T_ClassVN after resolution conversion, may be presented to the user as the output image.
[0075] As described above, in this embodiment, an input image Pi is input to the trained machine learning model 200, a similarity image is generated from the output of at least one specific layer, and the similarity of each pixel in the similarity image is compared with a predetermined threshold to generate a discriminant image to which at least an unknown label is assigned. This process assigns an unknown label to an image region of an unknown object, making it possible to detect unknown objects present in the input image Pi. This has the advantage of being particularly easy to detect transparent objects such as test tubes TT.
[0076] In the above-described embodiment, a vector neural network that determines an output vector by calculating the above equations (2) to (5) was used as the machine learning model 200, but instead, a capsule network disclosed in U.S. Patent No. 5,210,798 or International Publication No. 2019 / 083553 may be used.
[0077] Furthermore, the method for generating the known spectrum set KSG and the method for generating output data of an intermediate layer such as the ConvVN1 layer are not limited to those in the above embodiment, and for example, these data may be generated using the Kmeans method. Also, these data may be generated using transformations such as PCA, ICA, and Fisher. Furthermore, the transformation methods for the known spectrum set KSG and the output data of the intermediate layer may be different.
[0078] Other embodiments: The present disclosure is not limited to the above-described embodiments and can be realized in various forms without departing from the spirit thereof. For example, the present disclosure can also be realized in the following aspects. The technical features in the above embodiments corresponding to the technical features in each aspect described below can be appropriately replaced or combined to solve some or all of the problems of the present disclosure or to achieve some or all of the effects of the present disclosure. Furthermore, if a technical feature is not described as essential in this specification, it can be appropriately deleted.
[0079] (1) According to a first aspect of the present disclosure, there is provided an object detection method for detecting an object from an input image using a vector neural network type machine learning model having multiple vector neuron layers. The machine learning model is configured to, when a patch image of a predetermined size smaller than the input image is input to the machine learning model, output a judgment value indicating that the patch image belongs to one of multiple classes. The object detection method includes: (a) generating a similarity image by inputting the input image to the machine learning model and calculating a similarity indicating the degree of similarity to a feature of one of the multiple classes from the output of at least one specific layer of the multiple vector neuron layers; and (b) generating a discriminant image including at least the unknown label by comparing the similarity of each pixel of the similarity image with a predetermined threshold and assigning an unknown label to the pixel if the similarity is less than the threshold. According to this object detection method, an unknown label is assigned to an image region of an unknown object, so that an unknown object present in an input image can be detected by a method different from template matching.
[0080] (2) In the above object detection method, the step (b) may assign, to the pixel, a known label corresponding to the class associated with the similarity if the similarity is equal to or greater than the threshold. According to this object detection method, it is possible to distinguish between known objects and unknown objects from a discrimination image to which known labels and unknown labels are assigned.
[0081] (3) In the above object detection method, the step (a) may include a step of generating an output image in which a known label indicating which of the plurality of classes each pixel belongs to is assigned to each pixel from the output of the machine learning model corresponding to the input of the input image, and the step (b) may include a step of setting the unknown label to some pixels of the output image by referring to the discrimination image. According to this object detection method, an output image can be obtained in which an unknown label is set in an image region of an unknown object.
[0082] (4) In the object detection method, the step (b) may further include a step of performing resolution conversion to match the resolution of the discriminant image with that of the output image. According to this object detection method, the resolution of the discriminant image and the output image are matched, so that unknown labels can be easily set in the output image by referring to the discriminant image.
[0083] (5) In the above object detection method, there may be two or more specific layers, and step (a) may include a step of obtaining the similarity image for each of the two or more specific layers, and step (b) may include a step of obtaining the discrimination image for each of the two or more specific layers, and a step of setting the unknown label to each pixel of the output image when the unknown label is assigned to a predetermined number of corresponding pixels of the discrimination image for each of the two or more specific layers. According to this object detection method, if a predetermined number of corresponding pixels in the discrimination images obtained for two or more specific layers are assigned unknown labels, an unknown label is set for the pixel in the output image, thereby enabling more accurate setting of the unknown label.
[0084] (6) In the object detection method, the specific layer has a configuration in which vector neurons arranged on a plane defined by two axes, a first axis and a second axis, are arranged as a plurality of channels along a third axis that is oriented in a direction different from the first and second axes, and the step (a) includes the steps of: obtaining, for each pixel of the specific layer, one of a first type of feature spectrum in which a plurality of element values of an output vector of a vector neuron at one planar position in the specific layer are arranged across the plurality of channels along the third axis; a second type of feature spectrum obtained by multiplying each element value of the first type of feature spectrum by an activation value corresponding to the vector length of the output vector; and a third type of feature spectrum in which the activation values at one planar position in the specific layer are arranged across the plurality of channels along the third axis; and obtaining, for each pixel of the specific layer, a known feature spectrum obtained from the output of the specific layer when a plurality of patch images, each of which is assigned one of the plurality of known labels, is input to the machine learning model. Spectrum and calculating the similarity by applying a predetermined arithmetic expression to the group and the feature spectrum obtained for each pixel of the specific layer in response to input of the input image. According to this object detection method, the similarity can be calculated using one of three types of feature spectra obtained from the output vector of the vector neuron.
[0085] (7) According to a second aspect of the present disclosure, there is provided an object detection device for detecting an object from an input image. The object detection device includes a memory for storing a vector neural network-type machine learning model having multiple vector neuron layers, and a processor for executing an object detection process using the machine learning model. The machine learning model is configured such that, when a patch image of a predetermined size smaller than the input image is input to the machine learning model, the machine learning model outputs a judgment value indicating that the patch image belongs to one of multiple classes. The processor executes the following processes: (a) inputting the input image to the machine learning model and calculating, from the output of at least one specific layer of the multiple vector neuron layers, a similarity indicating the degree of similarity with the characteristics of one of the multiple classes, thereby generating a similarity image; and (b) comparing the similarity of each pixel of the similarity image with a predetermined threshold, and assigning an unknown label to the pixel if the similarity is less than the threshold, thereby generating a discriminant image including at least the unknown label. According to this object detection device, an unknown label is assigned to an image region of an unknown object, so that unknown objects present in an input image can be detected by a method different from template matching.
[0086] (8) According to a third aspect of the present disclosure, there is provided a computer program that causes a processor to execute an object detection process that detects an object from an input image using a vector neural network-type machine learning model having multiple vector neuron layers. The machine learning model is configured to, when a patch image of a predetermined size smaller than the input image is input to the machine learning model, output a judgment value indicating that the patch image belongs to one of multiple classes. The computer program causes the processor to execute the following processes: (a) inputting the input image to the machine learning model and calculating, for each pixel of at least one specific layer among the multiple vector neuron layers, a similarity indicating the degree of similarity with a feature of one of the multiple classes from the output of the specific layer, thereby generating a similarity image; and (b) comparing the similarity of each pixel of the similarity image with a predetermined threshold and assigning an unknown label to the pixel if the similarity is less than the threshold, thereby generating a discrimination image including at least the unknown label. According to this computer program, unknown labels are assigned to image regions of unknown objects, making it possible to detect unknown objects present in an input image using a method different from template matching.
[0087] The present disclosure may be realized in various forms other than those described above, such as a computer program for realizing the functions of an object detection device, or a non-transitory storage medium on which the computer program is recorded. [Explanation of symbols]
[0088] 100...information processing device, 110...processor, 112...object detection processing unit, 120...memory, 130...interface circuit, 150...display unit, 200...machine learning model, 210...convolutional layer, 220...primary vector neuron layer, 230...first convolutional vector neuron layer, 240...second convolutional vector neuron layer, 250...classification vector neuron layer, 260...similarity calculation unit
Claims
1. An object detection method for detecting an object from an input image using a vector neural network type machine learning model having a plurality of vector neuron layers, comprising: the machine learning model is configured such that, when a patch image having a predetermined size smaller than the input image is input to the machine learning model, the machine learning model outputs a judgment value indicating that the patch image belongs to one of a plurality of classes; The object detection method includes: (a) inputting the input image into the machine learning model, and calculating a similarity indicating a degree of similarity between an output of at least one specific layer among the plurality of vector neuron layers and a feature of one of the plurality of classes for each pixel of the specific layer, thereby generating a similarity image; (b) comparing the similarity of each pixel of the similarity image with a predetermined threshold, and assigning an unknown label to the pixel when the similarity is less than the threshold, thereby generating a discrimination image including at least the unknown label; The object detection method includes:
2. The object detection method according to claim 1 , The object detection method, in which the step (b) assigns to the pixel a known label corresponding to the class associated with the similarity if the similarity is equal to or greater than the threshold.
3. The object detection method according to claim 1 or 2, The step (a) includes a step of generating an output image in which a known label indicating which of the plurality of classes each pixel belongs to is assigned to each pixel from an output of the machine learning model corresponding to the input of the input image; The step (b) includes a step of setting the unknown label to a portion of pixels of the output image by referring to the discrimination image. Object detection methods.
4. The object detection method according to claim 3, The step (b) further includes a step of performing resolution conversion to match the resolution of the discrimination image with that of the output image. Object detection methods.
5. The object detection method according to claim 3 or 4, There are two or more specific layers, The step (a) includes a step of obtaining the similarity image for each of the two or more specific layers, The step (b) obtaining the discrimination image for each of the two or more specific layers; a step of setting, for each pixel of the output image, the unknown label to the pixel of the output image when the unknown label is assigned to a predetermined number of corresponding pixels of the discrimination image for each of the two or more specific layers; The object detection method includes:
6. The object detection method according to any one of claims 1 to 5, The specific layer has a configuration in which vector neurons arranged on a plane defined by two axes, a first axis and a second axis, are arranged as a plurality of channels along a third axis in a direction different from the two axes, The step (a) A first type of feature spectrum in which a plurality of element values of an output vector of a vector neuron at one plane position of the specific layer are arranged across the plurality of channels along the third axis; a second type feature spectrum obtained by multiplying each element value of the first type feature spectrum by an activation value corresponding to the vector length of the output vector; a third type of feature spectrum in which the activation values at one planar position of the specific layer are arranged across the multiple channels along the third axis; determining a characteristic spectrum for each pixel of the specific layer; determining the similarity by applying a predetermined arithmetic expression to a group of known feature spectra obtained from an output of the specific layer when a plurality of patch images, each of which is assigned one of a plurality of known labels, is input to the machine learning model, and to the feature spectrum obtained for each pixel of the specific layer in response to the input of the input image; The object detection method includes:
7. An object detection device that detects an object from an input image, A memory for storing a machine learning model of a vector neural network type having a plurality of vector neuron layers; A processor that executes an object detection process using the machine learning model; and Equipped with the machine learning model is configured such that, when a patch image having a predetermined size smaller than the input image is input to the machine learning model, the machine learning model outputs a judgment value indicating that the patch image belongs to one of a plurality of classes; The processor, (a) inputting the input image into the machine learning model, and calculating a similarity indicating a degree of similarity between an output of at least one specific layer among the plurality of vector neuron layers and a feature of one of the plurality of classes for each pixel of the specific layer, thereby generating a similarity image; (b) generating a discrimination image including at least the unknown label by comparing the similarity of each pixel of the similarity image with a predetermined threshold value and assigning an unknown label to the pixel when the similarity is less than the threshold value; An object detection device that performs the above.
8. A computer program that causes a processor to execute an object detection process for detecting an object from an input image using a vector neural network type machine learning model having a plurality of vector neuron layers, the machine learning model is configured such that, when a patch image having a predetermined size smaller than the input image is input to the machine learning model, the machine learning model outputs a judgment value indicating that the patch image belongs to one of a plurality of classes; The computer program comprises: (a) inputting the input image into the machine learning model, and calculating a similarity indicating a degree of similarity between an output of at least one specific layer among the plurality of vector neuron layers and a feature of one of the plurality of classes for each pixel of the specific layer, thereby generating a similarity image; (b) generating a discrimination image including at least the unknown label by comparing the similarity of each pixel of the similarity image with a predetermined threshold value and assigning an unknown label to the pixel when the similarity is less than the threshold value; A computer program for causing the processor to execute the following:
Citation Information
Patent Citations
Image processing device, image processing method, template generation device, object recognition processing device, and program
JP2018151748A
Detect unknown classes and initialize classifier for unknown classes
JP2018528525A
Method for providing object detection system with which detectable types of class can be updated in real time utilizing continuous learning, and device utilizing the same
JP2020123340A
Capsule neural networks
WO2019083553A1
