Method for classifying data to be classified using machine learning model, information processing device, and computer program

The vector neural network with multiple layers addresses the issue of incorrect class discrimination in existing models by calculating and comparing feature spectra, resulting in improved accuracy of class determination.

JP7574675B2Active Publication Date: 2024-10-29SEIKO EPSON CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021015502
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-03
Publication Date
2024-10-29
Estimated Expiration
2041-02-03

AI Technical Summary

Technical Problem

Existing machine learning models, such as capsule networks, fail to accurately reflect minute features of input data during propagation, leading to incorrect class discrimination results.

Method used

A method and apparatus that utilize a vector neural network with multiple vector neuron layers to select a specific layer, calculate feature spectra, and determine class discrimination by comparing these spectra with known feature spectra, enhancing the accuracy of class determination.

Benefits of technology

Improves the accuracy of class discrimination by effectively capturing and reflecting minute features of input data, ensuring more precise classification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574675000003
    Figure 0007574675000003
  • Figure 0007574675000004
    Figure 0007574675000004
  • Figure 0007574675000005
    Figure 0007574675000005
Patent Text Reader

Abstract

To provide a technique of extracting features at an intermediate layer having reflection of minute features of input data to discriminate a class of data to be discriminated.SOLUTION: A class discrimination method has: a step (a) of preparing, for each of a plurality of classes, a known characteristic spectrum group obtained when a plurality of teacher data are input to a machine learning model of a vector neural network type; and a step (b) of executing class discrimination processing for data to be discriminated by using the machine learning model and the known characteristic spectrum group. The step (b) has: a step (b1) of calculating a characteristic spectrum in response to input of the data to be discriminated into the machine learning model; a step (b2) of calculating class-based similarity between the characteristic spectrum and the known characteristic spectrum group relating to each of the plurality of classes; and a step (b3) of discriminating a class of the data to be discriminated in response to the class-based similarity.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a method for determining a class of data to be classified using a machine learning model, an information processing device, and a computer program. [Background technology]

[0002] Patent Documents 1 and 2 disclose a vector neural network type machine learning model that uses vector neurons, which is called a capsule network. A vector neuron means a neuron whose input and output are vectors. A capsule network is a machine learning model that uses vector neurons called capsules as network nodes. A vector neural network type machine learning model such as a capsule network can be used to classify input data. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] U.S. Patent No. 5,210,798 [Patent Document 2] International Publication No. 2019 / 083553 Summary of the Invention [Problem to be solved by the invention]

[0004] The inventors of the present disclosure have found that in conventional techniques, minute features of input data are omitted during propagation and are not correctly reflected in the class discrimination results in the output layer, resulting in erroneous class discrimination results. The present disclosure provides a technique for extracting features in an intermediate layer that reflect the minute features of the input data, and for discriminating the class of data to be discriminated. [Means for solving the problem]

[0005] According to a first aspect of the present disclosure, there is provided a method for classifying data to be classified using a vector neural network type machine learning model having a plurality of vector neuron layers, the method comprising: (a) selecting a vector neural network type machine learning model having a plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model; One or more The method includes the steps of: (a) preparing a group of known feature spectra obtained from an output of a specific layer for each of a plurality of classes; and (b) executing a class discrimination process for the discriminated data using the machine learning model and the group of known feature spectra. The step (b) includes the steps of (b1) calculating a feature spectrum from the output of the specific layer in response to input of the discriminated data to the machine learning model, (b2) calculating a class-specific similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes, and (b3) discriminating the class of the discriminated data in response to the class-specific similarity.

[0006] According to a second aspect of the present disclosure, there is provided an information processing device that executes a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers. The information processing device includes a memory that stores the machine learning model, and a processor that executes a calculation using the machine learning model. The processor (a) selects one of the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model. One or more The computer-implemented computer is configured to execute a process of reading out from the memory a group of known feature spectra obtained from an output of a specific layer for each of a plurality of classes, and a process of executing a class discrimination process of the discrimination target data using the machine learning model and the group of known feature spectra. The process (b) includes a process of (b1) calculating a feature spectrum from the output of the specific layer in response to input of the discrimination target data to the machine learning model, (b2) calculating a similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes, and (b3) discriminating the class of the discrimination target data in response to the similarity.

[0007] According to a third aspect of the present disclosure, there is provided a computer program for causing a processor to execute a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers. This computer program includes: (a) selecting a class of a vector neural network type machine learning model having a plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model; One or more The computer program causes the processor to execute the following steps: (a) reading from a memory a group of known feature spectra obtained from an output of a specific layer for each of a plurality of classes; and (b) executing a class discrimination process for the discrimination data using the machine learning model and the group of known feature spectra. The process (b) includes: (b1) calculating a feature spectrum from the output of the specific layer in response to input of the discrimination data to the machine learning model; (b2) calculating a similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes; and (b3) discriminating the class of the discrimination data in response to the similarity. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a block diagram of a class discrimination system according to an embodiment. [Diagram 2] FIG. 1 is a block diagram of an information processing device. [Diagram 3] FIG. 1 is an explanatory diagram showing the configuration of a machine learning model. [Figure 4] FIG. 13 is an explanatory diagram showing another configuration of a machine learning model. [Diagram 5] A flowchart showing the steps for preparing a machine learning model. [Figure 6] FIG. [Figure 7] FIG. 4 is an explanatory diagram showing how a group of known characteristic spectra is created using training data. [Figure 8] FIG. 4 is an explanatory diagram showing the configuration of a group of known feature spectra. [Figure 9]11 is a flowchart showing a processing procedure of a medium discrimination / printing process. [Figure 10] FIG. 11 is an explanatory diagram showing how class-specific similarities regarding discriminated data are calculated. [Figure 11] FIG. 11 is an explanatory diagram showing a first calculation method of class similarity. [Figure 12] FIG. 11 is an explanatory diagram showing a second calculation method of class similarity. [Figure 13] FIG. 11 is an explanatory diagram showing a third calculation method of class similarity. [Figure 14] FIG. 13 is an explanatory diagram showing a first method for determining a discrimination class using multiple specific layers. [Figure 15] FIG. 11 is an explanatory diagram showing a second method for determining a discrimination class using multiple specific layers. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] A. System configuration and processing steps: FIG. 1 is a block diagram showing a class discrimination system according to an embodiment. The class discrimination system is a printing system including a printer 10, an information processing device 20, and a spectrometer 30. The spectrometer 30 can perform spectroscopic measurement on the printing medium PM used in the printer 10 in an unprinted state to obtain the spectral reflectance. In this disclosure, the spectral reflectance is also referred to as "spectroscopic data." The spectrometer 30 includes, for example, a variable wavelength interference spectrometer filter and a monochrome image sensor. The spectroscopic data obtained by the spectrometer 30 is used as discriminated data to be input to a machine learning model described later. The information processing device 20 executes a class discrimination process of the spectral data using the machine learning model to discriminate which of a plurality of classes the printing medium PM belongs to. The "class of the printing medium PM" refers to the type of the printing medium PM. The information processing device 20 controls the printer 10 to execute printing under appropriate printing conditions according to the type of the printing medium PM. The class discrimination system according to the present disclosure can also be realized as a system other than a printing system, and may be realized, for example, as a system that performs class discrimination using a discriminated image, one-dimensional data other than spectroscopic data, a spectroscopic image, time series data, etc. as discriminated data.

[0010] 2 is a block diagram showing the functions of the information processing device 20. The information processing device 20 has 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. The spectrometer 30 and the printer 10 are also connected to the interface circuit 130. For example, but not limited to, the processor 110 not only has a function of executing the processes described in detail below, but also has a function of displaying on the display unit 150 data obtained by the processes and data generated in the course of the processes.

[0011] The processor 110 functions as a print processing unit 112 that executes print processing using the printer 10, and also functions as a class discrimination processing unit 114 that executes class discrimination processing of the spectral data of the print medium PM. The class discrimination processing unit 114 includes a similarity calculation unit 310 and a class determination unit 320. The print processing unit 112 and the class discrimination processing unit 114 are realized by the processor 110 executing a computer program stored in the memory 120. However, these units 112 and 114 may be realized by hardware circuits. The term processor in this specification includes such hardware circuits. In addition, the processor that executes the class discrimination processing may be a processor included in a remote computer connected to the information processing device 20 via a network.

[0012] The memory 120 stores a machine learning model 200, training data TD, a known feature spectrum group KSp, and a print setting table PST. The machine learning model 200 is used for processing by the class discrimination processing unit 114. An example of the configuration and operation of the machine learning model 200 will be described later. The training data TD is a collection of labeled data used for learning the machine learning model 200. In this embodiment, the training data TD is a collection of spectroscopic data. The known feature spectrum group KSp is a collection of feature spectra obtained when the training data TD is input to the trained machine learning model 200. The feature spectra will be described later. The print setting table PST is a table in which print settings suitable for each printing medium are registered.

[0013] 3 is an explanatory diagram showing the configuration of the machine learning model 200. The machine learning model 200 includes, in order from the input data IM side, a convolution layer 210, a primary vector neuron layer 220, a first convolution vector neuron layer 230, a second convolution vector neuron layer 240, and a classification vector neuron layer 250. Of these five layers 210 to 250, the convolution 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.

[0014] In this embodiment, the input data IM is spectral data, and is therefore one-dimensional array data. For example, the input data IM is data in which 36 representative values ​​are extracted at intervals of 10 nm from spectral data in the range of 380 nm to 730 nm.

[0015] 3, two convolution vector neuron layers 230 and 240 are used, but the number of convolution vector neuron layers is arbitrary, and the convolution vector neuron layer may be omitted. However, it is preferable to use one or more convolution vector neuron layers.

[0016] The configuration of each of the layers 210 to 250 in FIG. 3 can be described as follows. <Description of the configuration of machine learning model 200> ·Conv layer 210: Conv[32,6,2] ·PrimeVN layer 220: PrimeVN[26,1,1] ·ConvVN1 layer 230:ConvVN1[20,5,2] ·ConvVN2 layer 240:ConvVN2[16,4,1] ·ClassVN layer 250:ClassVN[n1,3,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, the surface size of the kernel, and the stride. For example, the layer name of the Conv layer 210 is "Conv", the number of channels is 32, the surface size of the kernel is 1 x 6, and the stride is 2. In FIG. 3, these descriptions are shown under each layer. The hatched rectangles drawn in each layer represent the surface size of the kernel used when calculating the output vector of the adjacent upper layer. In this embodiment, since the input data IM is data of a one-dimensional array, the surface size of the kernel is also one-dimensional. Note that the parameter values ​​used in the description of each of the layers 210 to 250 are merely examples and can be changed arbitrarily.

[0017] 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 takes a vector 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.

[0018] In FIG. 3, for the Conv layer 210, 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 the depth are shown. Also, it is shown that the sizes of the Conv layer 210 in the x, y, and z directions are 1, 16, and 32. The sizes in the x and y directions are called "resolutions." In this embodiment, the resolution in the x direction is always 1. The size in the z direction is the number of channels. These three axes x, y, and z are also used as coordinate axes indicating the position of each node in other layers. However, in FIG. 3, the illustration of these axes x, y, and z is omitted in layers other than the Conv layer 210.

[0019] As is well known, the resolution W1 in the y direction 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 surface size of the kernel, 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 in the y direction of the input data IM is 36, and the actual resolution of each layer is changed appropriately depending on the size of the input data IM.

[0020] The ClassVN layer 250 has n1 channels. In the example of FIG. 3, n1=3. In general, n1 is an integer equal to or greater than 2, and is the number of known classes that can be discriminated using the machine learning model 200. From the three channels of the ClassVN layer 250, judgment values ​​Class1 to Class3 for the three known classes are output. Usually, the class having the largest value among these judgment values ​​Class1 to Class3 is used as the class discrimination result for the input data IM. Also, if the largest value among the judgment values ​​Class1 to Class3 is less than a predetermined threshold, the class of the input data IM may be determined to be unknown.

[0021] In this disclosure, as described later, instead of using the judgment values ​​Class1 to Class3 of the ClassVN layer 250, which is the output layer, a classification class is determined using a class-specific similarity calculated from the output of a specific vector neuron layer.

[0022] FIG. 3 further illustrates a partial region Rn in each layer 210, 220, 230, 240, 250. The subscript "n" of the partial region Rn is the code of each layer. For example, the partial region R210 indicates a partial region in the Conv layer 210. The "partial region Rn" is a region in each layer that is identified by a planar position (x, y) defined by the position of the first axis x and the position of the second axis y, and includes multiple channels along the third axis z. The partial region Rn has dimensions of "Width" x "Height" x "Depth" corresponding to the first axis x, the second axis y, and the third axis z. In this embodiment, the number of nodes included in one "partial region Rn" is "1 x 1 x number of depths", that is, "1 x 1 x number of channels".

[0023] 3, a feature spectrum Sp_ConvVN1, which will be described later, is calculated from the output of the ConvVN1 layer 230 and input to the similarity calculation unit 310. Similarly, feature spectra Sp_ConvVN2, Sp_ClassVN are calculated from the outputs of the ConvVN2 layer 240 and the ClassVN layer 250, respectively, and input to the similarity calculation unit 310. The similarity calculation unit 310 calculates class-based similarities Sclass_ConvVN1, Sclass_ConvVN2, Sclass_ClassVN, which will be described later, using these feature spectra Sp_ConvVN1, Sp_ConvVN, Sp_ClassVN and a known feature spectrum group KSp that has been created in advance. The class determination unit 320 generates a discrimination result RD using at least a part of these class-based similarities Sclass_ConvVN1, Sclass_ConvVN2, Sclass_ClassVN. The discrimination result RD includes a discrimination class D_class and a similarity value S_value corresponding to the discrimination class D_class.

[0024] In this disclosure, the vector neuron layer used to calculate the similarity is also called the "specific layer". Any number of vector neuron layers, one or more, can be used as the specific layer. The configuration of the feature spectrum, the method of calculating the similarity using the feature spectrum, and the method of determining the discrimination class will be described later.

[0025] Fig. 4 is an explanatory diagram showing another configuration of the machine learning model 200. This machine learning model 200 differs from the machine learning model 200 in Fig. 3, which uses input data in a one-dimensional array, in that the input data IM is data in a two-dimensional array. The configuration of each layer 210 to 250 in Fig. 4 can be described as follows. <Description of each layer configuration> ·Conv layer 210: Conv[32,5,2] ·PrimeVN layer 220: PrimeVN[16,1,1] ·ConvVN1 layer 230:ConvVN1[12,3,2] ·ConvVN2 layer 240:ConvVN2[6,3,1] ·ClassVN layer 250:ClassVN[n1,4,1] Vector dimension VD: VD=16

[0026] The machine learning model 200 shown in Fig. 4 can be used, for example, in a class discrimination system that discriminates the class of a discriminated image. However, in the following description, the machine learning model 200 shown in Fig. 3 is used.

[0027] 5 is a flowchart showing the procedure of a preparation step for a machine learning model. This preparation step is a step that is executed by, for example, the manufacturer of the printer 10.

[0028] In step S110 of FIG. 5, the class discrimination processing unit 114 executes learning of the machine learning model 200 using a plurality of training data TD. A label is assigned to each training data TD in advance. In this embodiment, it is assumed that one of labels 1 to 3 is assigned to each training data TD. These labels correspond to the three classes Class1 to Class3 of the machine learning model 200. In this disclosure, "label" and "class" mean the same thing.

[0029] When learning using the multiple pieces of training data TD is completed, the trained machine learning model 200 is stored in the memory 120. In step S120 of Fig. 5, the multiple pieces of training data TD are input again to the trained machine learning model 200 to generate a known feature spectrum group KSp. The known feature spectrum group KSp is a collection of feature spectra, which will be described below.

[0030] FIG. 6 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 of FIG. 6 is the position of a vector element with respect to the output vector of a plurality of nodes included in one partial region R230 of the ConvVN1 layer 230. The position of this vector element is expressed by a combination of the element number ND of the output vector in each node and the channel number NC. In this embodiment, since the vector dimension is 16, the element number ND of the output vector is 16 from 0 to 15. Also, since the number of channels in the ConvVN1 layer 230 is 20, the channel number NC is 20 from 0 to 19. In other words, this feature spectrum Sp is obtained by arranging a plurality of element values ​​of the output vector of each vector neuron included in one partial region R230 across a plurality of channels along the third axis z.

[0031] The vertical axis of Fig. 6 is 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 The value of each element of the output vector V ND Alternatively, the normalization coefficient may be used as it is. 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 20. The normalization coefficient is a value corresponding to the vector length of the output vector of the node.

[0032] The number of feature spectra Sp obtained from the output of the ConvVN1 layer 230 for one input data is equal to the number of planar positions (x, y) of the ConvVN1 layer 230, i.e., the number of subregions R230, and is therefore six. Similarly, for one input data, three 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.

[0033] When the training data TD is input again to the trained machine learning model 200, the similarity calculation unit 310 calculates the feature spectrum Sp shown in FIG. 6 and registers it in the memory 120 as a known feature spectrum group KSp.

[0034] 7 is an explanatory diagram showing how a known feature spectrum group KSp is created using training data TD. In this example, training data TD with labels 1 to 3 is input to a trained machine learning model 200, and feature spectra KSp_ConvVN1, KSp_ConvVN2, and KSp_ClassVN associated with the respective labels or classes are obtained from the outputs of three vector neuron layers, i.e., the ConvVN1 layer 230, the ConvVN2 layer 240, and the ClassVN layer 250. These feature spectra KSp_ConvVN1, KSp_ConvVN2, and KSp_ClassVN are stored in the memory 120 as a known feature spectrum group KSp.

[0035] Fig. 8 is an explanatory diagram showing the configuration of the known feature spectra group KSp. In this example, a known feature spectra group KSp_ConvVN1 obtained from the output of the ConvVN1 layer 230 is shown. The known feature spectra group KSp_ConvVN2 obtained from the output of the ConvVN2 layer 240 and the known feature spectra group KSp_ConvVN1 obtained from the output of the ClassVN layer 250 also have the same configuration, but are not shown in Fig. 8. Note that it is sufficient that the known feature spectra group KSp obtained from the output of at least one vector neuron layer is registered.

[0036] Each record of the known feature spectrum group KSp_ConvVN1 includes a parameter i indicating the order of the labels or classes, a parameter j indicating the order of the specific layers, a parameter k indicating the order of the subregions Rn, a parameter q indicating the data number, and a known feature spectrum KSp. The known feature spectrum KSp is the same as the feature spectrum Sp in FIG. 6.

[0037] The class parameter i takes the same value as the label, 1 to 3. The specific layer parameter j takes a value of 1 to 3 indicating which of the three specific layers 230, 240, 250 it is. The subregion Rn parameter k takes a value indicating which of the multiple subregions Rn included in each specific layer it is, that is, which planar position (x, y) it is. For the ConvVN1 layer 230, there are six subregions R230, so k = 1 to 6. The data number parameter q indicates the number of the training data with the same label, and takes a value of 1 to max1 for class 1, 1 to max2 for class 2, and 1 to max3 for class 3.

[0038] The multiple teacher data TD used in step S120 do not need to be the same as the multiple teacher data TD used in step S110. However, there is an advantage in that it is not necessary to prepare new teacher data if some or all of the multiple teacher data TD used in step S110 is used in step S120 as well.

[0039] 9 is a flowchart showing the processing procedure of a medium discrimination / printing process using a trained machine learning model. This medium discrimination / printing process is executed by, for example, a user of the printer 10.

[0040] In step S210, the user instructs the class discrimination processing unit 114 as to whether or not class discrimination processing is required for the target print medium, which is the print medium to be processed. Even if the user knows the type of the target print medium, the user may instruct that class discrimination processing is required for confirmation. If class discrimination processing is not required, the process proceeds to step S260, where the user selects print settings suitable for the target print medium, and in step S270, the print processing unit 112 causes the printer 10 to print using the target print medium. On the other hand, if the type of the target print medium is unknown and class discrimination processing is required, the process proceeds to step S220.

[0041] In step S220, the class discrimination processing unit 114 acquires spectroscopic data by causing the spectrometer 30 to perform spectroscopic measurement of the target print medium. This spectroscopic data is used as discrimination target data to be input to the machine learning model 200.

[0042] In step S230, the class discrimination processing unit 114 inputs the discriminated data to the trained machine learning model 200 and calculates the feature spectrum Sp. In step S240, the similarity calculation unit 310 calculates class-specific similarities from the feature spectrum Sp obtained in response to the input of the discriminated data and the registered known feature spectrum group KSp.

[0043] 10 is an explanatory diagram showing how class-specific similarities are calculated for discriminated data. When discriminated data is input to the machine learning model 200, the class discrimination processing unit 114 calculates feature spectra Sp_ConvVN1, Sp_ConvVN2, and Sp_ClassVN from the outputs of the ConvVN1 layer 230, the ConvVN2 layer 240, and the ClassVN layer 250. The similarity calculation unit 310 calculates class-specific similarities Sclass_ConvVN1 using the feature spectrum Sp_ConvVN1 obtained from the output of the ConvVN1 layer 230 and the known feature spectrum group KSp_ConvVN1. A specific method for calculating class-specific similarities will be described later. Class-specific similarities Sclass_ConvVN2 and Sclass_ClassVN are calculated in the same manner for the ConvVN2 layer 240 and the ClassVN layer 250.

[0044] Although it is not necessary to generate all the class-specific similarities Sclass_ConvVN1, Sclass_ConvVN2, and Sclass_ClassVN using the three vector neuron layers 230, 240, and 250, respectively, it is preferable to calculate the class-specific similarities using one or more of these vector neuron layers. As described above, in this disclosure, the vector neuron layer used to calculate the similarities is called a "specific layer."

[0045] In step S250, the class determination unit 320 determines the class of the target print medium, i.e., the type of the target print medium, according to the class-specific similarity obtained in step S240. In step S260, the print processing unit 112 refers to the print setting table PST according to the type of the target print medium and selects print settings. In step S270, the print processing unit 112 executes printing according to the print settings. According to the procedure of FIG. 9, even if the type of the target print medium is unknown, the type of the target print medium can be determined using the machine learning model 200, so that printing can be executed using print settings suitable for that type.

[0046] B. Similarity calculation method: As a method for calculating the class-specific similarity shown in FIG. 10, for example, any of the following three methods can be adopted. (1) A first calculation method M1 for calculating class-specific similarity without considering the correspondence between the feature spectrum Sp and the subregion Rn in the known feature spectrum group KSp (2) A second calculation method M2 for calculating the class-specific similarity between the feature spectrum Sp and the corresponding partial region Rn of the known feature spectrum group KSp (3) A third calculation method M3 for calculating class-specific similarities without considering the subregion Rn at all Below, methods for calculating the class-specific similarity Sclass_ConvVN1 from the output of the ConvVN1 layer 230 according to these three calculation methods M1, M2, and M3 will be described in order.

[0047] Fig. 11 is an explanatory diagram showing a first calculation method M1 of class-specific similarity. In the first calculation method M1, first, a local similarity S(i,j,k) indicating a similarity to each class i for each partial region k is calculated from the output of the ConvVN1 layer 230, which is a specific layer. Then, from these local similarities S(i,j,k), one of the three types of class-specific similarity Sclass(i,j) shown on the right side of Fig. 11 is calculated. The class-specific similarity Sclass(i,j) is the same as the class-specific similarity Sclass_ConvVN1 shown in Figs. 3 and 10.

[0048] In the first calculation method M1, the local similarity S(i,j,k) is calculated using the following formula: S(i,j,k)=max[G{Sp(j,k), KSp(i,j,k=all,q=all)}] (2) Where: i is a parameter indicating the class, j is a parameter indicating a specific layer, k is a parameter indicating the subregion Rn, q is a parameter indicating the data number, G{a,b} is a function that calculates the similarity between a and b. Sp(j,k) is the feature spectrum obtained from the output of a specific subregion k of a specific layer j according to the discriminated data. KSp(i,j,k=all,q=all) is the known feature spectrum of all data numbers q in all sub-regions k of specific layer j associated with class i in the known feature spectrum group KSp shown in FIG. 8; max[X] is a logical operation that takes the maximum value of X. In the function G{a,b} for calculating similarity, a is one or a set, b is a set, and the return value is multiple. For example, a formula for calculating cosine similarity or a formula for calculating similarity according to distance can be used as the function G{a,b}.

[0049] The three types of class-specific similarity Sclass(i,j) shown on the right side of FIG. 11 are obtained by taking the maximum value, average value, or minimum value of the local similarity S(i,j,k) for multiple partial regions k for each class i. Which of the maximum value, average value, or minimum value is used depends on the purpose of the class discrimination process. For example, when the purpose is to discriminate objects using natural images, it is preferable to obtain the class-specific similarity Sclass(i,j) by taking the maximum value of the local similarity S(i,j,k) for each class i. When the purpose is to discriminate the type of print medium or to judge the quality of industrial products using images, it is preferable to obtain the class-specific similarity Sclass(i,j) by taking the minimum value of the local similarity S(i,j,k) for each class i. There may also be cases where it is preferable to obtain the class-specific similarity Sclass(i,j) by taking the average value of the local similarity S(i,j,k) for each class i. Which of these three types of calculations is used is preset by the user experimentally or empirically.

[0050] In the example of FIG. 11, furthermore, a final discrimination result RD_ConvVN1 is determined from the class-specific similarity Sclass(i,j). The discrimination result RD_ConvVN1 can be expressed in a format including a discrimination class D_class and a similarity value S_value corresponding to the discrimination class D_class. The similarity value S_value is obtained by taking the maximum value of the similarity values ​​for the three classes 1 to 3 in the class-specific similarity Sclass(i,j). The discrimination class D_class is the class with the maximum similarity value in the class-specific similarity Sclass(i,j).

[0051] As described above, in the first calculation method M1 of class-specific similarity, (1) Calculating a local similarity S(i,j,k) between a feature spectrum S obtained from an output of a specific subregion k of a specific layer j and all known feature spectra K S associated with the specific layer j and each class i according to the data to be discriminated; (2) For each class i, a class-specific similarity Sclass(i,j) is calculated by taking the maximum, average, or minimum of the local similarities S(i,j,k) for multiple subregions k; (3) For each class i, the maximum value of the class-specific similarity Sclass(i,j) is calculated as the similarity value S_value between the feature spectrum Sp and the known feature spectrum group KSp. (4) The class associated with the maximum similarity value S_value across multiple classes i is determined as the discrimination class D_class. According to the first calculation method M1, the class-specific similarity Sclass(i,j) and the discrimination result can be obtained through relatively simple calculations and procedures.

[0052] 12 is an explanatory diagram showing a second calculation method M2 of the class similarity. In the second calculation method M2, the local similarity S(i,j,k) is calculated using the following equation instead of the above-mentioned equation (2). S(i,j,k)=max[G{Sp(j,k), KSp(i,j,k,q=all)}] (3) Where: KSp(i,j,k,q=all) is the known feature spectrum of all data numbers q in a specific partial region k of a specific layer j associated with class i, among the known feature spectrum group KSp shown in FIG.

[0053] While the above-mentioned first calculation method M1 uses known feature spectra KSp(i,j,k=all,q=all) in all partial regions k of a specific layer j, the second calculation method M2 uses only known feature spectra KSp(i,j,k,q=all) for the same partial region k as the feature spectrum Sp(j,k). The other methods in the second calculation method M2 are the same as those in the first calculation method M1.

[0054] In the second calculation method M2 of the class similarity, (1) Calculating a local similarity S(i,j,k) between a feature spectrum Sp obtained from an output of a specific subregion k of a specific layer j and all known feature spectra K Sp associated with the specific subregion k of the specific layer j and each class i according to the data to be discriminated; (2) For each class i, a class-specific similarity Sclass(i,j) is calculated by taking the maximum, average, or minimum of the local similarities S(i,j,k) for multiple subregions k; (3) For each class i, the maximum value of the class-specific similarity Sclass(i,j) is calculated as the similarity value S_value between the feature spectrum Sp and the known feature spectrum group KSp. (4) The class associated with the maximum similarity value S_value across multiple classes i is determined as the discrimination class D_class. This second calculation method M2 also makes it possible to obtain the class-specific similarity Sclass(i,j) and the discrimination result through relatively simple calculations and procedures.

[0055] 13 is an explanatory diagram showing a third calculation method M3 of class similarity. In the third calculation method M3, class similarity Sclass(i,j) is calculated from the output of the ConvVN1 layer 230, which is a specific layer, without calculating local similarity S(i,j,k).

[0056] The class-specific similarity Sclass(i,j) obtained by the third calculation method M3 is calculated using the following formula. Sclass(i,j)=max[G{Sp(j,k=all), KSp(i,j,k=all,q=all)}] (4) Where: Sp(j, k=all) is a feature spectrum obtained from the output of all partial regions k of a specific layer j according to the discriminated data. The method of determining the final judgment result from this class-specific similarity Sclass(i,j) is the same as the first calculation method M1 and the second calculation method M2 described above.

[0057] As described above, in the third calculation method M3 of the class similarity, (1) A class-specific similarity Sclass(i,j) is calculated for each class, which is the similarity between all feature spectra S obtained from the output of a specific layer j according to the data to be discriminated and all known feature spectra Ksp associated with the specific layer j and each class i. (2) For each class i, the maximum value of the multiple class-specific similarities Sclass(i,j) is calculated as a similarity value S_value between the feature spectrum Sp and the known feature spectrum group KSp; (3) The class associated with the maximum similarity value S_value across multiple classes i is determined as the discrimination class D_class. According to the third calculation method M3, the class-specific similarity Sclass(i,j) and the discrimination result can be obtained by further simple calculations and procedures.

[0058] The above-mentioned three calculation methods M1 to M3 are all methods for calculating class-based similarities for each specific layer i to determine a discrimination class. As described above, in this embodiment, the class-based similarities are calculated for one or more of the vector neuron layers 230, 240, and 250 shown in Fig. 3 as specific layers, and the class of the discriminated data can be determined from the class-based similarities. When multiple specific layers are used, for example, the following discrimination class determination method can be adopted.

[0059] FIG. 14 is an explanatory diagram showing a first determination method MM1 of a discrimination class using multiple specific layers. Here, the discrimination results RD_ConvVN1, RD_ConvVN2, and RD_ClassVN are calculated for three specific layers, namely, the ConvVN1 layer 230, the ConvVN2 layer 240, and the ClassVN layer 250, respectively. The final discrimination class D_class is the most frequently occurring class among the discrimination classes D_class indicated by the discrimination results RD_ConvVN1, RD_ConvVN2, and RD_ClassVN for the multiple specific layers. In the example of FIG. 14, class 3 appears most frequently, so this class is adopted or derived as the final discrimination class D_class. According to this first determination method MM1, class discrimination can be performed more accurately using multiple specific layers. Note that, when there are multiple most frequently occurring classes, all of these multiple classes may be presented to the user as discrimination classes.

[0060] FIG. 15 is an explanatory diagram showing a second determination method MM2 of a discrimination class using a plurality of specific layers. In this second determination method MM2, a discrimination class is determined using a specific layer that shows the most statistically significant judgment result among a plurality of specific layers. In the example of FIG. 15, the ConvVN1 layer 230 and the ConvVN2 layer 240 are used as specific layers. First, for each partial region k of the ConvVN1 layer 230, a class with a maximum local similarity S(i,j,k) is determined, and a process is executed to assign the class parameter value i of the class to each partial region k. Note that the class parameter value i is a value indicating the order among the plurality of classes. The class parameter value i is, for example, a consecutive integer. In this embodiment, the class parameter value i and the class i are the same. Similarly, for the ConvVN2 layer 240, a class with a maximum local similarity S(i,j,k) is determined, and a process is executed to assign the class parameter value i of the class to each partial region k.

[0061] Furthermore, in the second determination method MM2, if there is no difference in the local similarity S between classes for each partial region k, that is, if the error or variance across multiple classes for the local similarity S of a certain partial region k is within a threshold, a class parameter value may not be assigned to that partial region k. When calculating the variance of the class parameter values, the variance is calculated excluding partial regions k to which no class parameter value is assigned. This allows the variance to be calculated only for characteristic parts, making it possible to perform class discrimination with greater accuracy.

[0062] In the second determination method MM2, furthermore, in each specific layer, variance is calculated for the distribution of the class parameter value i in a plurality of partial regions k. This variance is a statistical variance value for the class parameter value i. In the example of FIG. 15, the variance of the ConvVN1 layer 230 is 0.14, and the variance of the ConvVN2 layer 240 is 0.22. Since it is expected that the judgment result is clearer as the distribution of the class parameter value i is more biased among these specific layers 230, 240, the class discrimination result of the specific layer with the lower variance is adopted. In other words, the class of the discriminated data is discriminated using the class-specific similarity obtained for the specific layer with the smallest variance among the multiple specific layers. According to this second determination method MM2, the class discrimination can be performed more accurately using multiple specific layers.

[0063] Note that a method other than the above-mentioned method may be used as the class discrimination method. For example, the result of a layer closest to the output layer among a plurality of specific layers may be given priority and output as the discrimination result.

[0064] As described above, in this embodiment, a feature spectrum Sp is calculated from the output of a specific layer of the machine learning model 200 in response to the input of the data to be discriminated, a class-specific similarity Sclass(i,j) between the feature spectrum Sp and a group of known feature spectra KSp for each of a plurality of classes is calculated, and the class of the data to be discriminated is discriminated in accordance with the class-specific similarity Sclass(i,j), thereby improving the accuracy of class discrimination.

[0065] C. How to calculate the output vector of each layer of the machine learning model: The method of calculating the output of each layer in the machine learning model 200 shown in Fig. 3 is as follows. The machine learning model 200 shown in Fig. 4 is the same except for the values ​​of the individual parameters.

[0066] Each node of the PrimeVN layer 220 regards the scalar output of the 1×1×32 nodes of the Conv layer 210 as a 32-dimensional vector, and obtains the vector output of the node by multiplying this vector by a transformation matrix. This transformation matrix is ​​an element of a kernel with a surface size of 1×1, and is updated by learning of the machine learning model 200. It is also possible to integrate the processing of the Conv layer 210 and the PrimeVN layer 220 and configure them as one primary vector neuron layer.

[0067] 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 formula.

number

[0068] As the normalization function F(X), for example, the following formula (E3a) or (E3b) can be used.

number

[0069] In the above formula (E3a), 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 (E3b), 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 the normalization function F(X) may be a function other than equation (E3a) or (E3b).

[0070] The ordinal number i in the above equation (E2) is the output vector M L+1 j The integer n is a number that is conveniently assigned 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 (E5) Here, Nk is the surface size of the kernel, and Nc is the number of channels in the lower layer, the PrimeVN layer 220. In the example of FIG.

[0071] A kernel used to calculate the output vector of the ConvVN1 layer 230 has 1×5×26=130 elements, with the kernel size 1×5 as the surface size and the number of channels in the lower layer being 26 as the depth. Each of these elements is a prediction matrix W L ij In addition, 20 sets of this kernel are required to generate output vectors for the 20 channels of the ConvVN1 layer 230. Therefore, the prediction matrix W L ij The number of prediction matrices W is 130 × 20 = 2600. L ij is updated by learning of the machine learning model 200.

[0072] As can be seen from the above equations (E1) to (E4), the output vector M L+1 j is calculated by the following calculation: (a) The 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 the sum, i.e., linear combination, of j Seeking (c) Sum vector u j Norm of |u j The activation value a, which is a normalization factor by normalizing | j Seeking (d) Sum vector u j The norm |u j Divide by | and then the activation value a j Multiply by.

[0073] In addition, the activation value a j is the norm |u j is 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 (E3), (E3a), (E3b), and (4) 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 (E3) and (E4), 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 to output to the outside.

[0074] 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 formulas (E1) to (E4) 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 ij Each of the vector neural networks in this embodiment is multiplied by a weight, and the weight is searched for by repeating dynamic routing multiple times. On the other hand, in the vector neural network of this embodiment, the output vector M L+1 jSince the above is obtained, there is no need to repeat dynamic routing, and the calculation speed is faster. In addition, the vector neural network of this embodiment has the advantage that the amount of memory required for calculation is smaller than that of a capsule network, and according to an experiment by the inventor of the present disclosure, the amount of memory required is about 1 / 2 to 1 / 3.

[0075] A vector neural network is the same as a capsule network in that it uses nodes that use vectors as input and output. Therefore, the advantage of using vector neurons is also common to capsule networks. In addition, the multiple layers 210-250 are the same as normal convolutional neural networks in that the higher the layer, the larger the area of ​​the feature represented, and the lower the layer, the smaller the area of ​​the feature represented. Here, "feature" means a characteristic part included in the input data to the neural network. In vector neural networks and capsule networks, the output vector of a certain node contains spatial information that represents the spatial information of the feature represented by the node, making them superior to normal convolutional neural networks. That is, the vector length of the output vector of a certain node represents the probability of the existence of the feature represented by the 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 positional relationship of each feature. Alternatively, it can be said that the vector direction of the output vectors of the two nodes represents the variation of the feature. For example, if a node corresponds to the feature of "eyes", the direction of the output vector can represent variations such as the thinness of the eyes and the way they are lifted. In a conventional convolutional neural network, it is said that spatial information of features is lost due to pooling processing. As a result, vector neural networks and capsule networks have the advantage of being superior in the performance of identifying input data compared to conventional convolutional neural networks.

[0076] The advantages of vector neural networks can also be considered as follows. That is, the advantage of vector neural networks is that the output vectors of nodes express the features of the input data as coordinates in a continuous space. Therefore, output vectors can be evaluated such that if the vector directions are close, the features are similar. Another advantage is that even if the features contained in the input data are not covered by the training data, the features can be determined by interpolation. On the other hand, normal convolutional neural networks have the disadvantage that the features of the input data cannot be expressed as coordinates in a continuous space because of the chaotic compression caused by the pooling process.

[0077] The output of each node in the ConvVN2 layer 240 and the ClassVN layer 250 is determined similarly using the above-mentioned formulas (E1) to (E4), and therefore a detailed description thereof is omitted. The resolution of the top layer, the ClassVN layer 250, is 1×1, and the number of channels is n1.

[0078] The output of the ClassVN layer 250 is converted into a plurality of decision values ​​Class0 to Class2 for known classes. These decision values ​​are usually normalized by a softmax function. Specifically, for example, a decision value for each class can be obtained by performing an operation in which the vector length of the output vector of each node of the ClassVN layer 250 is calculated from the output vector of that output vector, and the vector length of each node is further normalized by a softmax function. As described above, the activation value a obtained by the above formula (E3) is j is the output vector M L+1 j The activation value a at each node in the ClassVN layer 250 is a value corresponding to the vector length of j may be output and used as the judgment value for each class.

[0079] In the above-described embodiment, a vector neural network that determines an output vector by calculating the above equations (E1) to (E4) was used as the machine learning model 200. However, instead of this, a capsule network disclosed in U.S. Pat. No. 5,210,798 or WO 2009 / 083553 may be used.

[0080] Other embodiments: The present disclosure is not limited to the above-mentioned embodiment, and can be realized in various forms without departing from the spirit of the present disclosure. For example, the present disclosure can be realized in the following aspects. The technical features in the above-mentioned embodiments corresponding to the technical features in each aspect described below can be appropriately replaced or combined in order 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 the technical feature is not described as essential in this specification, it can be appropriately deleted.

[0081] (1) According to a first aspect of the present disclosure, there is provided a method for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers. The method includes: (a) preparing, for each of a plurality of classes, a known feature spectrum group obtained from an output of a specific layer among the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model; and (b) executing a class discrimination process of the discriminated data using the machine learning model and the known feature spectrum group. The step (b) includes: (b1) calculating a feature spectrum from the output of the specific layer in response to the input of the discriminated data to the machine learning model; (b2) calculating a class-specific similarity between the feature spectrum and the known feature spectrum group for each of the plurality of classes; and (b3) discriminating the class of the discriminated data in response to the class-specific similarity. According to this method, the class discrimination of the data to be discriminated is performed by utilizing the similarity regarding the feature spectrum, so that the accuracy of the class discrimination can be improved.

[0082] (2) In the above 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 in a direction different from the two axes. In the specific layer, a region that is specified at a planar position defined by the position of the first axis and the position of the second axis and includes the plurality of channels along the third axis is called a partial region. In this case, the feature spectrum may be obtained for each partial region among the plurality of partial regions included in the specific layer as any one of: (i) a first type of feature spectrum in which a plurality of element values ​​of an output vector of each vector neuron included in the partial region are arranged across the plurality of channels along the third axis; (ii) a second type of feature spectrum obtained by multiplying each element value of the first type of feature spectrum by a normalization coefficient corresponding to the vector length of the output vector; and (iii) a third type of feature spectrum in which the normalization coefficient is arranged across the plurality of channels along the third axis. According to this method, the similarity can be calculated using any one of three types of feature spectra obtained from the output vector of a specific layer.

[0083] (3) In the above method, the step (b2) may include a step of calculating a local similarity, which is a similarity between the feature spectrum obtained from an output of a specific partial region of the specific layer and all of the known feature spectra associated with the specific layer and each class, according to the discriminated data, thereby calculating a plurality of local similarities indicating a similarity to each class for the multiple partial regions of the specific layer; and a step of calculating the class-specific similarity by taking, for each class, a maximum, average or minimum value of the multiple local similarities for the multiple partial regions. According to this method, the class-specific similarity can be calculated by a relatively simple calculation.

[0084] (4) In the above method, the step (b2) may include a step of calculating a plurality of local similarities indicating a similarity to each class for the plurality of partial regions of the specific layer by calculating a local similarity, which is a similarity between the feature spectrum obtained from an output of a specific partial region of the specific layer and all of the known feature spectra associated with the specific partial region of the specific layer and each class, according to the discriminated data; and a step of calculating the class-specific similarity by taking, for each class, a maximum value, an average value, or a minimum value of the plurality of local similarities for the plurality of partial regions. According to this method, the class-specific similarity can be calculated by a relatively simple calculation.

[0085] (5) In the above method, the step (b2) may include a step of calculating the class-specific similarity by calculating, for each class, similarities between all of the feature spectra obtained from an output of the specific layer and all of the known feature spectra associated with the specific layer and each class, according to the discriminated data. According to this method, the similarity by class can be obtained by a simpler calculation.

[0086] (6) In the above method, when there are a plurality of the specific layers, the step (b3) may include the steps of: obtaining a class discrimination result for each of the plurality of specific layers from the class-specific similarity for each specific layer; and determining the most common class among the plurality of classes indicated by the class discrimination results as a discrimination class of the discriminated data. According to this method, it is possible to perform class discrimination with higher accuracy by using multiple specific layers.

[0087] (7) In the above method, when a plurality of specific layers are present, the step (b3) may include the steps of: determining a class for each partial region of each specific layer based on the local similarity for that partial region, and assigning to that partial region a class parameter value indicating the order of that class among the plurality of classes; calculating, for each of the plurality of specific layers, a statistical variance for the distribution of the class parameter values ​​in the plurality of partial regions; and discriminating the class of the discriminated data by using the class similarity obtained for a specific layer among the plurality of specific layers having the smallest variance. According to this method, it is possible to perform class discrimination with higher accuracy by using multiple specific layers.

[0088] (8) According to a second aspect of the present disclosure, there is provided an information processing device that executes a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers. The information processing device includes a memory that stores the machine learning model, and a processor that executes a calculation using the machine learning model. The processor is configured to execute: (a) a process of reading, for each of a plurality of classes, a known feature spectrum group obtained from an output of a specific layer of the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model, from the memory; and (b) a process of executing a class discrimination process of the discriminated data using the machine learning model and the known feature spectrum group. The process (b) includes: (b1) a process of calculating a feature spectrum from an output of the specific layer in response to the input of the discriminated data to the machine learning model; (b2) a process of calculating a similarity between the feature spectrum and the known feature spectrum group for each of the plurality of classes; and (b3) a process of discriminating a class of the discriminated data in response to the similarity. According to this information processing device, the class discrimination of the data to be discriminated is performed by utilizing the similarity regarding the feature spectrum, so that the accuracy of the class discrimination can be improved.

[0089] (9) According to a third aspect of the present disclosure, there is provided a computer program for causing a processor to execute a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers. This computer program causes the processor to execute the following processes: (a) a process for reading, for each of a plurality of classes, a known feature spectrum group obtained from an output of a specific layer among the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model; and (b) a process for executing a class discrimination process of the discriminated data using the machine learning model and the known feature spectrum group. The process (b) includes: (b1) a process for calculating a feature spectrum from the output of the specific layer in response to the input of the discriminated data to the machine learning model; (b2) a process for calculating a similarity between the feature spectrum and the known feature spectrum group for each of the plurality of classes; and (b3) a process for discriminating a class of the discriminated data in response to the similarity. According to this computer program, the class discrimination of the data to be discriminated is performed by utilizing the similarity regarding the feature spectrum, so that the accuracy of the class discrimination can be improved.

[0090] The present disclosure may be realized in various forms other than those described above, such as a computer program for implementing the functions of a classifier, a non-transitory storage medium on which the computer program is recorded, and the like. [Explanation of symbols]

[0091] 10... printer, 20... information processing device, 30... spectrometer, 110... processor, 112... print processing unit, 114... class discrimination processing unit, 120... memory, 130... interface circuit, 150... display unit, 200... machine learning model, 210... convolution layer, 220... primary vector neuron layer, 230... first convolution vector neuron layer, 240... second convolution vector neuron layer, 250... classification vector neuron layer, 310... similarity calculation unit, 320... class determination unit

Claims

1. A method for classifying a class of classified data using a vector neural network type machine learning model having a plurality of vector neuron layers, comprising: (a) preparing a group of known feature spectra obtained from the output of one or more specific layers including an intermediate layer among the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model, for each of a plurality of classes; (b) performing a class discrimination process on the data to be discriminated using the machine learning model and the group of known characteristic spectra; Including, The step (b) (b1) calculating a feature spectrum from an output of the specific layer in response to input of the discriminated data to the machine learning model; (b2) calculating a class-specific similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes; (b3) classifying the class of the discriminated data according to the class-specific similarity; A method comprising:

2. 2. The method of claim 1 , 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, When a region in the specific layer is identified at a planar position defined by the position of the first axis and the position of the second axis and includes the plurality of channels along the third axis, the region is called a partial region. The characteristic spectrum is, for each of the plurality of partial regions included in the specific layer, (i) a first type of feature spectrum in which a plurality of element values ​​of an output vector of each vector neuron included in the partial region are arranged across the plurality of channels along the third axis; (ii) a second type feature spectrum obtained by multiplying each element value of the first type feature spectrum by a normalization coefficient corresponding to the vector length of the output vector; and (iii) a third type of feature spectrum in which the normalization coefficients are arranged across the plurality of channels along the third axis; and The method is as follows:

3. 3. The method of claim 2, The step (b2) calculating a plurality of local similarities indicating similarities between the feature spectrum obtained from an output of a specific partial region of the specific layer and all of the known feature spectra associated with the specific layer and each class, in accordance with the discrimination data; determining the class-specific similarity by taking a maximum, average or minimum of the plurality of local similarities for the plurality of subregions for each of the classes; A method comprising:

4. 3. The method of claim 2, The step (b2) calculating a local similarity between the feature spectrum obtained from an output of a specific partial region of the specific layer and all of the known feature spectra associated with the specific partial region of the specific layer and each class, according to the discrimination data; and calculating a plurality of local similarities indicating similarities between the multiple partial regions of the specific layer and each class. determining the class-specific similarity by taking a maximum, average or minimum of the plurality of local similarities for the plurality of subregions for each of the classes; A method comprising:

5. 3. The method of claim 2, The step (b2) determining the class-specific similarity by determining, for each class, a similarity between all of the feature spectra obtained from the output of the specific layer and all of the known feature spectra associated with the specific layer and each class, in accordance with the discriminated data.

6. The method according to any one of claims 1 to 5, When a plurality of the specific layers are present, The step (b3) obtaining a class discrimination result for each of the plurality of specific layers from the class-specific similarity for each specific layer; determining a most common class among the classes represented by the plurality of class discrimination results as a discrimination class of the discrimination target data; A method comprising:

7. 5. The method according to claim 3 or 4, When a plurality of the specific layers are present, The step (b3) for each subregion of each particular layer, determining a class based on the local similarity for that subregion and assigning to that subregion a class parameter value indicative of the order of that class among the plurality of classes; calculating a statistical variance regarding the distribution of the class parameter values ​​in the plurality of partial regions for each of the plurality of specific layers; discriminating a class of the discriminated data by using the class similarity obtained for a specific layer having the smallest variance among the plurality of specific layers; A method comprising:

8. An information processing device that executes a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers, A memory that stores the machine learning model; A processor that executes a calculation using the machine learning model; Equipped with The processor, (a) reading from the memory a group of known feature spectra obtained from the output of one or more specific layers including an intermediate layer among the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model, for each of the plurality of classes; (b) performing a class discrimination process on the data to be discriminated using the machine learning model and the group of known characteristic spectra; is configured to run The process (b) (b1) calculating a feature spectrum from an output of the specific layer in response to input of the discriminated data to the machine learning model; (b2) calculating a similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes; (b3) a process of determining a class of the data to be determined according to the degree of similarity; and An information processing device comprising:

9. A computer program that causes a processor to execute a class discrimination process for discriminating a class of discriminated data using a vector neural network type machine learning model having a plurality of vector neuron layers, (a) reading, from a memory, a group of known feature spectra obtained from the output of one or more specific layers including an intermediate layer among the plurality of vector neuron layers when a plurality of teacher data are input to the machine learning model, for each of the plurality of classes; (b) performing a class discrimination process on the data to be discriminated using the machine learning model and the group of known characteristic spectra; A computer program for causing the processor to execute the The process (b) (b1) calculating a feature spectrum from an output of the specific layer in response to input of the discriminated data to the machine learning model; (b2) calculating a similarity between the feature spectrum and the group of known feature spectra for each of the plurality of classes; (b3) a process of determining a class of the data to be determined according to the degree of similarity; and A computer program comprising:

Citation Information

Patent Citations

  • Medical information processing device, method and program

    JP2019212296A

  • Medical image processing device, medical image processing method, and program

    JP2020166813A

  • Vector neural network for low signal-to-noise ratio detection of a target

    US5210798A

  • Capsule neural networks

    WO2019083553A1