Computer, label estimation method, and model training method

The DNN-based system addresses the challenge of predicting and reflecting linguistic relationships in image labeling by calculating feature and language vectors, enabling efficient and accurate automatic labeling of images with keywords or classification codes.

JP7556700B2Active Publication Date: 2024-09-26HITACHI LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020082857
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-09-26
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

Existing image labeling technologies face challenges in predicting the number of keywords, handling large differences in expected labels, and failing to reflect linguistic relationships between keywords, requiring a model that can handle any number of labels efficiently while incorporating linguistic information.

Method used

A system utilizing a deep neural network (DNN) that calculates feature vectors from images and language vectors, evaluating linguistic similarity to estimate labels, and includes a label estimation unit that determines labels based on this evaluation, using conversion information to store language vectors and model information.

Benefits of technology

The system accurately estimates language-defined labels for images, reflecting linguistic relationships and enabling efficient learning, allowing automatic labeling of images with keywords or classification codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556700000022
    Figure 0007556700000022
  • Figure 0007556700000019
    Figure 0007556700000019
  • Figure 0007556700000020
    Figure 0007556700000020
Patent Text Reader

Abstract

To provide a computer and a method which can estimate a label given to an image and defined by language.SOLUTION: The present invention is directed to a computer for estimating a label given to an image, representing a feature of the image, and defined by language. The computer holds conversion information 135 storing a language vector representing a plurality of labels in the form of vectors, and has a DNN serving as a feature amount vector calculating unit for calculating a plurality of feature amount vectors of the same vector space as that of the language vector from an input image 610; and a label estimating unit for evaluating linguistic similarity between the input image and the plurality of labels by using the plurality of feature amount vector and the plurality of language vectors to estimate, based on the evaluation result, a label given to the input image.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to information processing for estimating labels representing image features. [Background technology]

[0002] The increase in storage capacity, improvements in computer performance, and faster network transfer speeds have made it possible to store large amounts of information in a variety of business processes. Furthermore, information can now include not only bibliographical information, but also various media information such as video and images.

[0003] For the purpose of improving the efficiency of business operations, labels that represent the characteristics of the images, such as keywords, are assigned to images acquired in business operations. Conventionally, labeling has been performed manually, so there is a strong demand for technology that automatically assigns labels to images. In response to this, the technology described in Patent Document 1 and a technology that uses a deep neural network (DNN) to estimate the labels to be assigned to images are known.

[0004] In the learning process of DNN using labeled images, a method using Cross-Entropy Loss is commonly used. In such a method, a network is constructed that outputs the same number of output values ​​as the number of different labels. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2013-120441 A [Non-patent literature]

[0006] [Non-Patent Document 1] Oriol Vinyals, Alexander Toshev, Samy Bengio, Dumitru Erhan, “Show and Tell: A Neural Image Caption Generator”, December 17, 2014, [Retrieved April 6, 2020], Internet<URL: https: / / arxiv.org / abs / 1411.4555> Summary of the Invention [Problem to be solved by the invention]

[0007] In keyword assignment, it is often difficult to predict the number of different keywords to be assigned in advance. Furthermore, if the number of different keywords to be assigned is extremely large, problems arise in the configuration of the network model and in the execution of the processing.

[0008] On the other hand, when keywords are treated as labels, the linguistic associations that exist between keywords are not reflected in the learning of the network. As a model that uses linguistic information more actively, an image annotation estimation model using LSTM in Non-Patent Document 1 is known. This model has no limit on the number of different labels. However, since the model is highly complex, a large amount of training data is required for learning. Therefore, a model that can handle any number of labels, reflect the linguistic associations between labels, and realize efficient learning is required.

[0009] The present invention provides a technique for estimating language-defined labels to be assigned to images. [Means for solving the problem]

[0010] A representative example of the invention disclosed in the present application is as follows: A computer that estimates a label that is to be assigned to an image and represents a feature of the image and is defined by a language, the computer comprising a calculation device, a storage device connected to the calculation device, and an interface connected to the calculation device, and storing conversion information that stores language vectors that are vector expressions of each of a plurality of labels. and information on a model that outputs a predetermined number (2 or more) of feature vectors in the same vector space as the language vector from an image, the feature vectors being generated by a learning process. Using the information on the model,From the input image A plurality of the above The feature vector calculation and a label estimation unit that uses the plurality of feature vectors and the plurality of language vectors stored in the conversion information to evaluate a linguistic similarity between the input image and each of the plurality of labels, and estimates the label to be assigned to the input image based on a result of the evaluation. Effect of the Invention

[0011] According to the present invention, it is possible to estimate a label defined by language to be assigned to an image. Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a diagram for explaining an outline of a learning process according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a configuration of a system for implementing a learning process according to a first embodiment. [Diagram 3] FIG. 11 is a diagram illustrating an example of a data structure of conversion information according to the first embodiment. [Figure 4] 1 is a flowchart illustrating an example of a learning process executed by a computer according to a first embodiment. [Diagram 5] 11 is a flowchart illustrating an example of a teacher vector construction process executed by a computer according to the first embodiment. [Figure 6] FIG. 2 is a diagram for explaining an outline of a label estimation process according to the first embodiment. [Figure 7] FIG. 2 is a diagram illustrating an example of a configuration of a system for implementing a label estimation process according to a first embodiment. [Figure 8] 11 is a flowchart illustrating an example of a label estimation process executed by a computer according to the first embodiment. [Figure 9] 11 is a flowchart illustrating an example of a similar keyword search process executed by the computer according to the first embodiment. [Figure 10] FIG. 11 is a diagram for explaining an outline of a learning process according to the second embodiment. [Figure 11]FIG. 11 is a diagram illustrating an example of a configuration of a system for implementing a learning process according to a second embodiment. [Figure 12] FIG. 11 is a diagram illustrating an example of a data structure of conversion information according to the second embodiment. [Figure 13] FIG. 11 is a diagram illustrating an example of definition information of a classification code according to the second embodiment. [Figure 14] FIG. 11 is a diagram for explaining an outline of a label estimation process according to the second embodiment. [Figure 15] FIG. 11 is a diagram illustrating an example of a configuration of a system for implementing a label estimation process according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. However, the present invention is not to be interpreted as being limited to the description of the embodiment shown below. It is easily understood by those skilled in the art that the specific configuration can be changed without departing from the idea or purpose of the present invention. In the configuration of the invention described below, the same or similar configurations or functions are given the same reference numerals, and duplicated explanations are omitted. The notations "first", "second", "third", etc. in this specification are given to identify components, and do not necessarily limit the number or order. The position, size, shape, range, etc. of each configuration shown in the drawings, etc. may not represent the actual position, size, shape, range, etc. in order to facilitate understanding of the invention. Therefore, the present invention is not limited to the position, size, shape, range, etc. disclosed in the drawings, etc. EXAMPLES

[0014] In the first embodiment, keywords are assumed as labels representing image features. In the first embodiment, a model learning method for calculating a feature vector that can be compared with a word vector, which is a distributed representation of a keyword, from an image and a method for estimating a keyword to be assigned to an image using the model will be described.

[0015] Fig. 1 is a diagram illustrating an overview of the learning process according to the first embodiment. Fig. 2 is a diagram illustrating an example of a system configuration for implementing the learning process according to the first embodiment.

[0016] First, the configuration of the system will be described. The system is configured from one computer 200. The computer 200 has a processor 201, a connection interface 202, and a memory 203. Each piece of hardware is connected to each other via a bus. The computer 200 may also have a storage device such as a hard disk drive (HDD) and a solid state drive (SSD).

[0017] The processor 201 executes a program stored in the memory 203. The processor 201 executes processing according to the program, thereby operating as a functional unit (module) that realizes a specific function. In the following explanation, when a process is explained with a functional unit as the subject, it indicates that the processor 201 is executing a program that realizes the module.

[0018] The connection interface 202 is an interface for connecting to an external device. The connection interface 202 is, for example, an IO interface for connecting to an input device such as a keyboard, a mouse, or a touch panel, and an output device such as a display, or a network interface for connecting to an external device via a network. The computer 200 receives an input of a learning data set consisting of a plurality of learning data 110 via the connection interface 202.

[0019] The learning data 110 is composed of an image 111 and a keyword group 112 including a plurality of keywords (words). The image 111 is input to the DNN 150 of the learning unit 100. The keyword group 112 is input to the word vector calculation processing unit 120.

[0020] The memory 203 stores the programs executed by the processor 201 and data used by the programs. The memory 203 is also used as a work area temporarily used by the programs. The memory 203 stores the programs that realize the learning unit 100 and the word vector calculation processing unit 120. The memory 203 also stores the model information 130 and the conversion information 135.

[0021] The computer 200 uses a learning data set to generate a deep neural network (DNN) 150 as a model that calculates a feature vector, which is a feature of the image 111, from the input image 111. Parameters defining the DNN 150 and the like are stored in the model information 130.

[0022] The word vector calculation processing unit 120 converts each keyword included in the keyword group 112 into a word vector, which is a distributed representation of the keyword. Specifically, the word vector calculation processing unit 120 converts the keyword into a word vector using conversion information 135 that indicates the correspondence between words and vectors and is generated by applying the Word2vec technology to a large-scale language corpus. The Word2vec technology is a technology that converts keywords (words) into vectors of a fixed length. Here, the word vector is a d-dimensional vector.

[0023] The learning unit 100 cooperates with the word vector calculation processing unit 120 to execute a learning process for generating / updating model information 130 that defines the DNN 150. The learning unit 100 includes a teacher vector construction processing unit 160.

[0024] The DNN 150 is a network composed of multiple layers including multiple nodes, and outputs n feature vectors from the image 111. In FIG. 1, one circle corresponds to one node. The output of one node in the output layer 151 corresponds to one feature vector. One feature vector is a d-dimensional vector in the same vector space as the word vector, and is used to estimate a word (label). The DNN 150 operates as a functional unit that calculates the feature vector. In this description, for ease of explanation, the output layer 151 is expressed as being composed of n nodes that output a d-dimensional feature vector, but even if it is assumed to output a d×n-dimensional vector, the process of outputting the vector is equivalent.

[0025] The teacher vector construction processing unit 160 generates teacher data for the training data 110 .

[0026] The system may include a plurality of computers 200. As for each functional unit included in the computer 200, a plurality of functional units may be integrated into one functional unit, or one functional unit may be divided into a plurality of functional units for each function.

[0027] FIG. 3 is a diagram illustrating an example of a data structure of the conversion information 135 according to the first embodiment.

[0028] The conversion information 135 stores entries each consisting of a word 301, a word ID 302, and a word vector 303. There is one entry for one keyword.

[0029] Word 301 is a field that stores a word. A character string representing a word is stored in word 301. Word ID 302 is a field that stores identification information for identifying a word. An integer value, for example, is stored in word ID 302. Word vector 303 is a field that stores a d-dimensional word vector that is a distributed representation of the word stored in word 301. For example, a floating-point array corresponding to the word vector is stored in word vector 303.

[0030] Next, the learning process of the first embodiment will be described with reference to Fig. 1, Fig. 4, and Fig. 5. Fig. 4 is a flowchart for explaining an example of the learning process executed by the computer 200 of the first embodiment. Fig. 5 is a flowchart for explaining an example of the teacher vector construction process executed by the computer 200 of the first embodiment.

[0031] When the computer 200 receives the input of the learning data set, it starts the learning process.

[0032] The learning unit 100 constructs the DNN 150 based on the model information 130 (step S401).

[0033] The learning unit 100 acquires one piece of learning data 110 from the learning data set (step S402). Here, it is assumed that the keyword group 112 of the learning data 110 includes m keywords.

[0034] The learning unit 100 inputs the image 111 included in the selected learning data 110 to the DNN 150 (step S403). The DNN 150 outputs n d-dimensional feature vectors v_i. The j-th element of the feature vector v_i is written as v_i,j, where i is a natural number from 1 to n, and j is a natural number from 1 to d. The output of the DNN 150 can be treated as a d×n-dimensional matrix 170.

[0035] The learning unit 100 inputs the keyword group 112 included in the selected learning data 110 to the word vector calculation unit 120 (step S404), and waits for a response from the word vector calculation unit 120.

[0036] The word vector calculation processing unit 120 converts each keyword included in the keyword group 112 into a d-dimensional word vector w_i using the conversion information 135 (step S405). The word vector calculation processing unit 120 outputs word vector information 140 including m d-dimensional word vectors w_i as a response to the learning unit 100. The j-th element of the word vector w_i is written as w_i,j, where i is a natural number from 1 to m, and j is a natural number from 1 to d.

[0037] For example, the word vector calculation processing unit 120 calculates, as a word vector, a vector calculated using the Word2vec technique and normalizing the norm as shown in formula (1).

[0038]

number

[0039] Here, W_i,j represents the j-th element of the i-th word vector W_i calculated using the Word2vec technology, where i is a natural number from 1 to m, and j is a natural number from 1 to d.

[0040] When the learning unit 100 receives a response from the word vector calculation unit 120, the learning unit 100 inputs the matrix 170 and the word vector information 140 to the teacher vector construction unit 160 and executes a teacher vector construction process (step S406). Here, the teacher vector construction process will be described with reference to FIG. 5.

[0041] The teacher vector construction processing unit 160 generates a distance matrix by calculating the distance between each combination of feature vector v_i and word vector w_i' (step S501). Here, the squared distance between two vectors is calculated. The distance matrix is ​​an n×m matrix, where i is a natural number from 1 to n, and i' is a natural number from 1 to m.

[0042] The teacher vector construction processing unit 160 initializes a counter nc and a counter mc to 0 (step S502). The counter nc is a counter for measuring the number of processed feature vectors, and the counter mc is a counter for measuring the number of processed word vectors.

[0043] The teacher vector construction processing unit 160 refers to the distance matrix and selects the combination with the minimum distance from the combinations of the unselected feature vectors v_i and word vectors w_i' (step S503). That is, for the feature vector v_i, the corresponding similar word vector w_i' is associated. This association is performed in ascending order of distance. The teacher vector construction processing unit 160 stores the selected combination in the work area.

[0044] Note that the teacher vector construction processing unit 160 can identify the combination of the unselected feature vector v_i and word vector w_i' by referring to the work area.

[0045] The teacher vector construction processing unit 160 increments each of the counter nc and the counter mc by 1 (step S504).

[0046] The teacher vector construction processing unit 160 determines whether either condition (1) or condition (2) is satisfied (step S505).

[0047] (Condition 1) The counter nc matches n. (Condition 2) The counter mc matches m.

[0048] When n > m, no word vector w_i' is associated with (n - m) feature vectors v_i. On the other hand, when n < m, no association is made between (m - n) word vectors and the feature vector v_i.

[0049] If neither condition (1) nor condition (2) is satisfied, the teacher vector construction processing unit 160 returns to step S503 and executes the same processing.

[0050] If either condition (1) or (2) is satisfied, the teacher vector construction processing unit 160 generates a teacher vector o_i based on the result of matching the feature vector v_i and the word vector w_i' (step S506), and ends the teacher vector construction process. The teacher vector o_i is a d-dimensional vector corresponding to the i-th feature vector v_i.

[0051] Specifically, the teacher vector construction processing unit 160 generates a teacher vector o_i composed of elements o_i,j defined as in equation (2). w_j(i) represents the j-th element of the word vector w_i' associated with the i-th feature vector v_i. α is a parameter defined within the range shown in equation (3).

[0052]

number

[0053]

number

[0054] When α = 0, the DNN150 is trained so that the corresponding feature vector becomes a zero vector. When α = 1, the effect of the corresponding feature vector on the loss function becomes 0, and it does not contribute to training at all. When α is in the range shown in formula (4), the DNN150 is trained so that the absolute value of each element of the feature vector is reduced at a constant rate.

[0055]

number

[0056] Like the feature vector v_i, the teacher vector o_i can be regarded as a d×n-dimensional matrix 180. Returning to the description of FIG.

[0057] The learning unit 100 executes a model update process for updating parameters that define the DNN 150, using the feature vector v_i and the teacher vector o_i (step S407).

[0058] For example, the learning unit 100 updates the parameters that define the DNN 150 so that the loss function L defined as the sum of squares of the deviations between the feature vector v_i and the teacher vector o_i is minimized as shown in Equation (5). That is, the model information 130 is updated.

[0059]

number

[0060] The learning unit 100 determines whether the termination condition is satisfied (step S408). For example, the learning unit 100 calculates the output accuracy of the DNN 150 using a test image, and determines that the termination condition is satisfied when the accuracy is greater than a threshold value or when the number of times the learning process has been executed is greater than a threshold value.

[0061] If the end condition is not satisfied, the learning unit 100 returns to step S402 and executes the same process.

[0062] If the end condition is met, the learning unit 100 ends the learning process.

[0063] Next, a label estimation process using the DNN 150 generated by the learning process will be described.

[0064] Fig. 6 is a diagram illustrating an overview of the label estimation process according to the first embodiment. Fig. 7 is a diagram illustrating an example of a system configuration for realizing the label estimation process according to the first embodiment.

[0065] First, the configuration of the system will be described. The system is composed of one computer 700. The computer 700 estimates keywords to be assigned to the image 610. The computer 700 has the same hardware configuration as the computer 200.

[0066] The memory 203 stores a program for implementing the label estimation unit 600 and the estimation result output unit 620. The memory 203 also stores the model information 130 and the conversion information 135.

[0067] The label estimation unit 600 estimates keywords to be assigned to an image 610, and outputs a keyword estimation result 630. The label estimation unit 600 includes a keyword search unit 640.

[0068] The estimation result output unit 620 outputs the keyword estimation result 630 to an external device via the connection interface 202 .

[0069] The system may include a plurality of computers 700. In addition, with respect to each functional unit included in the computer 700, a plurality of functional units may be integrated into one functional unit, or one functional unit may be divided into a plurality of functional units for each function.

[0070] Next, the label estimation process of the first embodiment will be described with reference to Fig. 6, Fig. 8, and Fig. 9. Fig. 8 is a flowchart for explaining an example of the label estimation process executed by the computer 700 of the first embodiment. Fig. 9 is a flowchart for explaining an example of the similar keyword search process executed by the computer 700 of the first embodiment.

[0071] When the computer 700 receives the input of the image 610, it starts the label estimation process.

[0072] The label estimation unit 600 constructs the DNN 150 based on the model information 130 (step S801).

[0073] The label estimation unit 600 inputs an image 610 to the DNN 150 (step S802). The DNN 150 outputs n d-dimensional feature vectors q_i, where i is a natural number from 1 to n. The output of the DNN 150 can be treated as a d×n-dimensional matrix 650.

[0074] The label estimation unit 600 inputs the matrix 650 to the keyword search unit 640 to execute a similar keyword search process (step S803). Here, the similar keyword search process will be described with reference to FIG.

[0075] The keyword search unit 640 receives an input of a feature vector q_i as a query. The keyword search unit 640 initializes variables i and j to 1 (step S901). The variable i is a subscript that identifies a feature vector and is a natural number from 1 to n. The variable j is a subscript that identifies a keyword and is a natural number from 1 to m. m represents the number of keywords registered in the conversion information 135.

[0076] The keyword search unit 640 selects one target feature vector q_i from the unprocessed feature vectors q_i (step S902). Here, the feature vector q_i corresponding to the variable i is selected.

[0077] The keyword search unit 640 selects one target word vector w_j from among the unselected word vectors w_j (step S903). Here, the word vector w_j corresponding to the variable j is selected.

[0078] The keyword search unit 640 calculates the distance between the target feature vector q_i and the target word vector w_j, and registers the result data in a result set (step S904).

[0079] For example, the keyword search unit 640 calculates the squared distance D_ij by inputting the target feature vector q_i and the target word vector w_j into equation (6).

[0080]

number

[0081] The keyword search unit 640 registers result data consisting of pairs of target feature vectors q_i and target word vectors w_j, and squared distances D_ij, in a result set.

[0082] The keyword search unit 640 determines whether or not the subscript j matches m (step S905). That is, it is determined whether or not the distances between the target feature vector q_i and all of the word vectors w_j have been calculated.

[0083] If the subscript j does not match m, the keyword search unit 640 increments the value of the subscript j by 1 (step S906), and then returns to step S903 to execute the same process.

[0084] If the subscript j matches m, the keyword search unit 640 determines whether the subscript i matches n (step S907). That is, it is determined whether the processing of all the feature vectors q_i is completed.

[0085] If the subscript i does not match n, the keyword search unit 640 increments the value of the subscript i by 1 and initializes the subscript j to 1 (step S908), and then returns to step S902 to execute the same process.

[0086] If the subscript i matches n, the keyword search unit 640 sorts the result data included in the result set based on the distance (step S909). Specifically, the keyword search unit 640 sorts the result data in ascending order of distance.

[0087] The keyword search unit 640 generates a similar keyword list based on the sorting result (step S910), and ends the similar keyword search process.

[0088] For example, the keyword search unit 640 identifies the first occurrence of the result data for each keyword registered in the conversion information 135. The keyword search unit 640 registers an entry in the similar keyword list, which is composed of a keyword corresponding to a word vector included in the result data and a distance included in the result data. Furthermore, the keyword search unit 640 sorts the entries in the similar keyword list in ascending order of distance.

[0089] Returning to the explanation of Figure 8.

[0090] The label estimation unit 600 generates a keyword estimation result 630 based on the similar keyword list (step S804), and ends the label estimation process.

[0091] For example, when presenting candidates of keywords to be assigned to an image to a user, the label estimation unit 600 selects a predetermined number of entries from the top of the similar keyword list in order, and generates a keyword estimation result 630 for displaying the selected entries as a screen. In the first embodiment, a maximum of n labels are presented to the user.

[0092] For example, when automatically assigning keywords to an image 610, the label estimation unit 600 generates a group of keywords whose distances are smaller than a threshold as a keyword estimation result 630.

[0093] As described above, according to the first embodiment, the system can accurately estimate keywords representing image features for an image. Furthermore, the system can automatically assign keywords to an image based on the estimation result. EXAMPLES

[0094] In the second embodiment, a classification code is assumed as a label expressing the characteristics of an image. A classification code is an example of a label that does not have a meaning in itself like a keyword, but is defined according to a predetermined rule. It is assumed that an explanatory text indicating the meaning of the classification code is set in advance for the classification code. In the second embodiment, a learning method of a model that calculates a classification code vector that is a vector expression of the classification code, and a method of estimating a classification code to be assigned to an image using the model will be described below. The second embodiment will be described below, focusing on the differences from the first embodiment.

[0095] Fig. 10 is a diagram illustrating an overview of the learning process according to the second embodiment. Fig. 11 is a diagram illustrating an example of a system configuration for implementing the learning process according to the second embodiment.

[0096] The hardware configuration of the system of the second embodiment is the same as that of the first embodiment. The software configuration of the system of the second embodiment is partially different from that of the first embodiment. Specifically, the computer 700 includes a classification code vector calculation unit 1010 instead of the word vector calculation unit 120. In addition, in the second embodiment, the data structure of the conversion information 135 is different from that of the first embodiment.

[0097] Fig. 12 is a diagram illustrating an example of a data structure of the conversion information 135 according to the second embodiment. Fig. 13 is a diagram illustrating an example of definition information of the classification code according to the second embodiment.

[0098] The conversion information 135 stores entries each consisting of a classification code 1201 and a classification code vector 1202. There is one entry for one classification code.

[0099] The classification code 1201 is a field for storing a classification code. The classification code vector 1202 is a field for storing a d-dimensional classification code vector that represents a classification code.

[0100] In the second embodiment, a classification code vector is calculated based on classification code definition information 1300. The definition information 1300 stores entries each made up of a classification code 1301 and an explanation 1302.

[0101] The classification code 1301 is the same field as the classification code 1201. The explanation 1302 is a field that stores an explanation that defines the classification code.

[0102] The system converts the description into a set of words using techniques such as morphological analysis, and converts the description into a vector using Word2vec technology. For example, the system calculates a classification code vector by adding up the vectors of each word in the description and normalizing them to a norm of 1, as shown in equation (7).

[0103]

number

[0104] Here, c_i,j represents the jth element of the classification code vector c_i of the i-th classification code, and W_k,j(i) represents the jth element of the k-th word vector of the word group included in the description of the i-th classification code. N(i) represents the number of word elements included in the i-th classification code, and d represents the number of dimensions of the word vector and classification code vector.

[0105] The learning data 110 of the second embodiment includes a classification code group 1000 instead of the keyword group 112 .

[0106] The learning process of the second embodiment is partially different from the learning process of the first embodiment.

[0107] The processes from step S401 to step S403 are the same as those in the first embodiment.

[0108] In step S404, the learning unit 100 inputs the classification code group 1000 contained in the selected learning data 110 to the classification code vector calculation unit 1010, and waits for a response from the classification code vector calculation unit 1010.

[0109] In step S405, the classification code vector calculation processing unit 1010 converts each classification code included in the classification code group 1000 into a d-dimensional classification code vector using the conversion information 135. The classification code vector calculation processing unit 1010 outputs classification code vector information 1020 including the d-dimensional classification code vector to the learning unit 100 as a response.

[0110] In the teacher vector construction process in step S406, a classification code vector is input instead of a word vector, but the process is the same.

[0111] The learning process in step S407 is the same as that in embodiment 1. The process in step S408 is the same as that in embodiment 1.

[0112] Next, a label estimation process using the DNN 150 generated by the learning process will be described.

[0113] Fig. 14 is a diagram for explaining an outline of the label estimation process according to the second embodiment. Fig. 15 is a diagram illustrating an example of a configuration of a system that realizes the label estimation process according to the second embodiment.

[0114] The hardware configuration of the system of the second embodiment is the same as that of the first embodiment. The software configuration of the system of the second embodiment is the same as that of the first embodiment, but the label estimation unit 600 includes a classification code search unit 1410 instead of the keyword search unit 640.

[0115] The label estimation process of the second embodiment is similar to that of the first embodiment, and therefore a detailed description thereof will be omitted. However, in the label estimation process of the second embodiment, a similar classification code search process is executed in step S803. In step S804, a classification code estimation result 1420 is generated instead of the keyword estimation result 630.

[0116] The similar classification code search process is similar to the similar keyword search process, so a detailed description will be omitted. The difference is that the similar classification code search process uses a classification code vector instead of a word vector. In step S904, result data consisting of a pair of target feature vector q_i and target classification code vector c_j and squared distance D_ij is registered. In step S909, a similar classification code list is generated instead of the similar keyword list. The similar classification code list stores entries consisting of classification codes and distances.

[0117] According to the second embodiment, the system can accurately estimate a classification code representing the characteristics of an image, and can automatically assign a classification code to an image based on the estimation result.

[0118] The present invention can be used in the examination of patents, trademarks, and designs. In the examination process, documents and drawings related to the application, as well as bibliographic information added during the process, are accumulated. By adding labels to drawings, the efficiency of the examination process can be improved.

[0119] The present invention is not limited to the above-mentioned embodiment, but includes various modified examples. For example, the above-mentioned embodiment describes the configuration in detail to easily explain the present invention, and the present invention is not necessarily limited to the configuration including all the described configurations. Also, it is possible to add, delete, or replace a part of the configuration of each embodiment with another configuration.

[0120] In addition, each of the above configurations, functions, processing units, processing means, etc. may be realized in part or in whole by hardware, for example, by designing them as integrated circuits. The present invention can also be realized by software program code that realizes the functions of the embodiments. In this case, a storage medium on which the program code is recorded is provided to a computer, and a processor included in the computer reads the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-mentioned embodiments, and the program code itself and the storage medium storing it constitute the present invention. Examples of storage media for supplying such program code include flexible disks, CD-ROMs, DVD-ROMs, hard disks, SSDs (Solid State Drives), optical disks, magneto-optical disks, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, etc.

[0121] Furthermore, the program code for realizing the functions described in this embodiment can be implemented in a wide range of program or script languages, such as assembler, C / C++, perl, Shell, PHP, Python, Java (registered trademark), etc.

[0122] Furthermore, the program code of the software that realizes the functions of the embodiments may be distributed over a network and stored in a storage means such as a computer's hard disk or memory, or in a storage medium such as a CD-RW or CD-R, and the processor of the computer may read out and execute the program code stored in the storage means or storage medium.

[0123] In the above-mentioned embodiment, the control lines and information lines are shown as those considered necessary for the explanation, and not all the control lines and information lines are shown in the product. All the components may be connected to each other. [Explanation of symbols]

[0124] 100 Learning Department 110 Training Data 111, 610 Images 112 Keywords 120 Word vector calculation processing unit 130 Model Information 135 Conversion Information 140 Word Vector Information 150 Deep Neural Networks (DNN) 160 Teacher vector construction processing unit 200, 700 calculator 201 Processor 202 Connection Interface 203 Memory 600 Label Estimation Department 620 Estimation result output unit 630 Keyword prediction results 640 Keyword Search Section 1000 Classification Code Group 1010 Classification code vector calculation processing unit 1020 Classification Code Vector Information 1300 Definition information 1410 Classification Code Search Section 1420 Classification code estimation results

Claims

1. A computer that estimates a label to be assigned to an image, the label representing a feature of the image and defined by a language, comprising: A computing device, a storage device connected to the computing device, and an interface connected to the computing device, The method holds conversion information that stores a language vector that is a vector representation of each of a plurality of labels, and information on a model that is generated by a learning process and outputs a predetermined number (2 or more) of feature vectors in the same vector space as the language vector from an image, a feature vector calculation unit that calculates a plurality of the feature vectors from an input image using information of the model; a label estimation unit that evaluates a linguistic similarity between the input image and each of the multiple labels using the multiple feature vectors and the multiple language vectors stored in the conversion information, and estimates the label to be assigned to the input image based on a result of the evaluation.

2. 2. The computer of claim 1, The label estimation unit calculating a distance between the feature vector and the language vector for each combination of the feature vector and the language vector; selecting a predetermined number of the labels based on the magnitude of the distance; and outputting the selected label as a candidate for the label to be assigned to the input image.

3. 2. The computer of claim 1, A learning unit that executes the learning process, The learning unit is Accepting input of learning data consisting of learning images and a plurality of learning labels; Calculating a plurality of the feature vectors for training from the training images using information of the model; Calculating the language vector for training from each of the training labels using the conversion information; Calculating a plurality of teacher vectors based on a comparison result between the plurality of learning feature vectors and the plurality of learning language vectors; updating information of the model by executing machine learning using the plurality of learning feature vectors and the plurality of teacher vectors; The computer further comprises a storage device configured to store information about the updated model.

4. 4. The computer of claim 3, The learning unit is calculating a distance between the training feature vector and the training language vector for each combination of the training feature vector and the training language vector; searching for the training language vector similar to the training feature vector based on the distance; if there is a training language vector similar to the training feature vector, calculating the teacher vector for the training feature vector using the training language vector; A computer characterized in that, when there is no training language vector similar to the training feature vector, the computer uses the training feature vector to calculate the teacher vector for the training feature vector.

5. A method for estimating a label that is assigned to an image and represents a feature of the image and is defined by a language, the method comprising the steps of: The computer includes: A computing device, a storage device connected to the computing device, and an interface connected to the computing device, The method holds conversion information that stores a language vector that is a vector representation of each of a plurality of labels, and information on a model that is generated by a learning process and outputs a predetermined number (2 or more) of feature vectors in the same vector space as the language vector from an image, The label estimation method includes the steps of: a first step of the computer calculating a plurality of the feature vectors from an input image using information of the model; a second step in which the computer evaluates a linguistic similarity between the input image and each of the plurality of labels using the plurality of feature vectors and the plurality of language vectors stored in the conversion information; a third step in which the computer estimates the label to be assigned to the input image based on a result of the evaluation.

6. A label estimation method according to claim 5, comprising the steps of: the second step includes a step of calculating, by the computer, a distance between the feature vector and the language vector for each combination of the feature vector and the language vector; The third step includes: said computer selecting a predetermined number of said labels based on a magnitude of said distance; and outputting the selected label as a candidate for the label to be assigned to the input image by the computer.

7. A label estimation method according to claim 5, comprising the steps of: The label estimation method includes the steps of: a fourth step in which the computer receives input of learning data including learning images and a plurality of learning labels; a fifth step of calculating a plurality of the feature vectors for training from the training images by the computer using information of the model; a sixth step of calculating the language vectors for training from the training labels by the computer using the conversion information; a seventh step in which the computer calculates a plurality of teacher vectors based on a comparison result between the plurality of training feature vectors and the plurality of training language vectors; an eighth step of updating information of the model by executing machine learning using the plurality of learning feature vectors and the plurality of teacher vectors by the computer; and a ninth step in which the computer stores information of the updated model in the storage device.

8. The label estimation method according to claim 7, further comprising the steps of: The seventh step includes: a step of calculating a distance between the training feature vector and the training language vector for each combination of the training feature vector and the training language vector by the computer; a step of searching for the training language vector similar to the training feature vector based on the distance; a step of calculating the teacher vector for the training feature vector by the computer when the training language vector similar to the training feature vector exists, using the training language vector; and when there is no training language vector similar to the training feature vector, the computer calculates the teacher vector for the training feature vector using the training feature vector.

9. A method for learning a model to generate data used in a process of estimating a label that is assigned to an image and represents a feature of the image and is defined by a language, the method comprising the steps of: In the label estimation process, a linguistic similarity between the input image and each of the multiple labels is evaluated using a predetermined number (two or more) of feature vectors calculated from the input image and a language vector that is a vector expression of each of the multiple labels in the same vector space as the feature vectors, and the label to be assigned to the input image is estimated based on a result of the evaluation. The model is a model for calculating a plurality of the feature quantity vectors, The computer includes: A computing device, a storage device connected to the computing device, and an interface connected to the computing device, Hold transformation information that stores the language vector and information of the model; The method for learning the model includes the steps of: A first step in which the computer receives input of learning data including learning images and a plurality of learning labels; a second step of the computer calculating a plurality of the feature vectors for training from the training images using information of the model; a third step of calculating the language vectors for training from the training labels by the computer using the conversion information; a fourth step in which the computer calculates a plurality of teacher vectors based on a comparison result between the plurality of training feature vectors and the plurality of training language vectors; a fifth step of updating information of the model by executing machine learning using the plurality of learning feature vectors and the plurality of teacher vectors by the computer; A sixth step in which the computer stores information of the updated model in the storage device.

10. A method for learning a model according to claim 9, comprising: The fourth step includes: a step of calculating a distance between the training feature vector and the training language vector for each combination of the training feature vector and the training language vector by the computer; a step of searching for the training language vector similar to the training feature vector based on the distance; a step of calculating the teacher vector for the training feature vector by the computer when the training language vector similar to the training feature vector exists, using the training language vector; and when there is no training language vector similar to the training feature vector, the computer uses the training feature vector to calculate the teacher vector for the training feature vector.

Citation Information

Patent Citations

  • Image identification information offering program, and image identification information offering device

    JP2013120441A

  • System, method, program and device for associating image with facility

    JP2017130182A

  • Identification system and identification method

    JP2019128804A