Labeling device, labeling method and storage medium
By designing a labeling device and using similarity detection between feature quantities to automatically label feature quantities of dynamic images and other content, the problem of automatic labeling in the existing technology is solved and the retrieval efficiency and accuracy are improved.
Patent Information
- Application Number
- CN201980045709.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-03-01
AI Technical Summary
It is difficult to automatically assign labels to feature quantities extracted from content with existing technology. Especially in content such as dynamic images, the manual labeling process is cumbersome and inefficient.
A tag assigning device is designed, which includes a tag candidate generation unit, a feature pair detection unit and a tag assigning unit. It generates tag candidates through related data associated with the content, and detects feature pairs using the similarity between the feature amounts. Automatically assign labels to feature quantities.
It realizes automatic labeling of feature quantities of dynamic images and other content, improves retrieval accuracy and efficiency, reduces manual intervention, and can automatically generate metadata for scene retrieval.
Smart Images

Figure CN112384911B_ABST
Abstract
Description
[0001] This international application is based on Japanese Patent Application No. 2018-131457 (filing date: July 11, 2018) and claims the benefit of priority from the prior Japanese Patent Application No. 2018-131457. The entire contents of the prior Japanese Patent Application No. 2018-131457 are incorporated herein by reference. Technical Field
[0002] Embodiments of the present invention relate to a labeling device, a labeling method, and a storage medium storing a program. Background Art
[0003] With the development of storage performance and line technology, the opportunities to retrieve and use desired content from a large amount of content stored in local storage devices, database servers on the network, etc. have increased. Regarding content retrieval, keyword retrieval is the simplest and most convenient. If a label equivalent to a keyword is assigned to the feature quantity extracted from the content, the desired content can be retrieved with high accuracy through keyword retrieval. In addition, if the content is dynamic image content, etc., it is also possible to perform scene retrieval, such as finding scenes where characters specified by keywords appear. However, the manual work of assigning labels to the feature quantities extracted from the content is very complicated, and a technology that can automatically perform such labeling is required. Summary of the invention
[0004] An object of the present invention is to provide a labeling device, a labeling method, and a storage medium storing a program that can automatically label feature quantities extracted from content.
[0005] The labeling device of the embodiment includes a label candidate generating unit, a feature pair detecting unit, and a label assigning unit. The label candidate generating unit generates label candidates from associated data associated with the content. The feature pair detecting unit detects a combination of feature quantities extracted from a first content and a feature quantity extracted from a second content, which is a combination of feature quantities with the highest similarity, i.e., a feature quantity pair. The label assigning unit assigns a common label candidate generated from both the first associated data associated with the first content and the second associated data associated with the second content as a label to each feature quantity constituting the feature quantity pair.
[0006] According to the labeling device having the above configuration, it is possible to automatically label the feature amount extracted from the content. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 It is a diagram for explaining the basic concept of the embodiment.
[0008] Figure 2 This is a block diagram showing an example of the functional configuration of the labeling device according to the first embodiment.
[0009] Figure 3 This is a diagram for explaining the process of extracting facial feature vectors from a moving image and generating facial feature representative vectors.
[0010] Figure 4 This is a diagram for explaining the process of detecting vector pairs from a pair of moving images and assigning labels.
[0011] Figure 5 This is a diagram for explaining the process of detecting vector pairs from a pair of moving images and assigning labels.
[0012] Figure 6 This is a diagram for explaining the process of detecting vector pairs from a pair of moving images and assigning labels.
[0013] Figure 7 This is a diagram for explaining the process of generating metadata of a moving image.
[0014] Figure 8 This is a block diagram showing an example of the functional configuration of the labeling device according to the second embodiment.
[0015] Fig. 9 It is a block diagram showing an example of the functional configuration of the labeling device according to the third embodiment.
[0016] Fig.10 It is a diagram for explaining the outline of the processing of the third embodiment.
[0017] Fig.11 It is a diagram for explaining the outline of the processing of the third embodiment.
[0018] Fig.12 It is a diagram for explaining the outline of the processing of the third embodiment.
[0019] Fig.13 It is a block diagram showing an example of the functional configuration of a labeling device according to the fourth embodiment.
[0020] Fig.14 This is a flowchart showing an example of the processing procedure of the fourth embodiment.
[0021] Fig.15 This is a flowchart showing an example of the processing procedure of the fourth embodiment.
[0022] Fig.16 This is a flowchart showing an example of the processing procedure of the fourth embodiment.
[0023] Fig.17 This is a flowchart showing an example of the processing procedure of the fourth embodiment.
[0024] Fig.18 It is a block diagram showing an example of the functional configuration of a labeling device according to the fifth embodiment.
[0025] Fig.19 This is a block diagram showing an example of the hardware configuration of a labeling device. DETAILED DESCRIPTION
[0026] Hereinafter, a labeling device, a labeling method, and a storage medium storing a program according to an embodiment will be described in detail with reference to the drawings.
[0027] <Overview of implementation>
[0028] This embodiment automatically assigns labels to feature quantities extracted from content. The content envisioned in this embodiment includes, for example, various forms of data such as dynamic images, static images, voice, sensor data, etc. In this embodiment, associated data associated with these contents are used to generate candidates for labels assigned to feature quantities extracted from the content. The associated data can be, for example, text data that is pre-assigned to the content, such as explanatory text and subtitle information of the content, or it can be text data obtained by performing prescribed processing such as voice recognition, text recognition, image description text generation (captioning), etc. on the content.
[0029] If there is only one feature extracted from the content and one label candidate generated from the associated data, the correspondence between the feature and the label can be uniquely determined. However, such a situation is extremely rare. Generally speaking, multiple feature quantities are extracted from the content and multiple label candidates are generated from the associated data. In this case, since it is impossible to uniquely determine which label candidate corresponds to which feature quantity, it is impossible to automatically assign labels to the feature quantities. Therefore, in this embodiment, multiple data sets of content and associated data are used, and the common parts between the data sets are used as clues to determine the correspondence between the feature quantities and the label candidates.
[0030] Figure 1 This is a diagram for explaining the basic concept of the implementation method. Figure 1 As shown, it is assumed that there are content A and content B as contents associated with related data. Here, three feature quantities are extracted from content A and content B, respectively. In addition, three label candidates "a", "b", and "c" are generated from the related data of content A, and three label candidates "a", "d", and "e" are generated from the related data of content B. That is, in the data set of content A and its related data and the data set of content B and its related data, only one label candidate generated from the related data is common. In this embodiment, a combination of data sets in which only one label candidate generated from the related data is common is selected.
[0031] In this embodiment, first, the process of extracting features from contents A and B, respectively, and the process of generating label candidates from each associated data are performed. Thereafter, the features extracted from content A and the features extracted from content B are mapped to a common feature space. Then, among the combinations of the features extracted from content A and the features extracted from content B, the combination with the highest similarity between the features (for example, the combination with the smallest distance between the features) is detected as a feature pair. The feature pair thus detected is likely to represent a common (identical) object contained in both content A and content B. Therefore, for each feature constituting the feature pair, a common label candidate (in Figure 1 In the example, the label candidate "a" is used as the label.
[0032] In the above process, a feature pair is detected from content A and content B, and labels are assigned to the features constituting the feature pair, so that both content A and B have unlabeled features remaining. However, both content A and B can repeat the above process by selecting a combination with other data sets, and labels can be assigned to unlabeled features in the same way. In addition, if the above process is repeated using multiple data sets and multiple feature values are assigned labels, the feature extracted from content that has never been associated with related data can also be automatically labeled through the nearest neighbor search. That is, if the feature extracted from content that has never been associated with related data is close enough to the feature that has been labeled, the same label can be assigned.
[0033] Hereinafter, as an example for easy understanding, a specific embodiment to which the concept of the present embodiment is applied is described in detail, taking the case where the content is a TV program (dynamic image) and the associated data is a program description text that describes the content of the TV program as an example. In addition, in the following description, the same reference numerals are attached to the components having the same function, and repeated descriptions are appropriately omitted.
[0034] <First embodiment>
[0035] TV programs generally provide a set of dynamic images and program description text. The program description text is text data that explains the content of the TV program, and often records the names of the main characters appearing in the TV program. In this embodiment, the name of the main character obtained from the program description text is automatically assigned as a label to the facial feature representative vector (an example of representative feature quantity) of the main character obtained from the dynamic image of the TV program.
[0036] First, the outline of the processing of this embodiment is described. In this embodiment, face detection and facial feature vector generation processing is performed on each frame of the dynamic image of the TV program. At this time, since the main characters of the TV program appear frequently in the TV program, more facial feature vectors are extracted from the dynamic image. In addition, the facial feature vectors of the same character extracted from the dynamic image exist nearby in the feature vector space. That is, the facial feature vectors of multiple main characters extracted from the dynamic image exist in large quantities in the feature vector space and can be considered to be more dense. On the other hand, since the number of appearances of characters other than the main characters (non-main characters) is small, it can be considered that the density rate in the feature vector space is low. Therefore, on the basis of taking the sparse facial feature vectors in the feature vector space as deviation values, if K-means clustering is performed on the facial feature vector group in the feature vector space with K=the number of main characters, the facial feature representative vector of the main character can be obtained.
[0037] Among multiple TV programs, there are sometimes programs with common main characters. Here, the main characters that appear in common in multiple TV programs are referred to as common characters. In this case, by appropriately selecting a combination of TV programs, it is possible to filter the common characters. For example, when there is a TV program X in which characters A and B appear as main characters, and a TV program Y in which characters A and C appear as main characters, the common character obtained by the combination of these TV programs X and Y is character A.
[0038] In this embodiment, first, by performing the above-mentioned K-means clustering on the facial feature vectors extracted from the dynamic images of each TV program, the facial feature representative vectors of the main characters are generated for each TV program. At this time, since there are many main characters in a TV program, it is impossible to uniquely establish a correspondence between the facial feature representative vectors and the names of the main characters. Therefore, a combination of multiple TV programs with one common character is selected, and the facial feature representative vectors generated from the dynamic images of these TV programs are mapped to a common feature vector space. For example, when the dynamic image of one of the two TV programs with one common character is set as the first dynamic image and the dynamic image of the other TV program is set as the second dynamic image, the multiple facial feature representative vectors generated from the first dynamic image and the multiple facial feature representative vectors generated from the second dynamic image are mapped to the common feature vector space.
[0039] Here, since there is only one common character in the two TV programs, the combination of the facial feature representative vector generated from the first dynamic image and the facial feature representative vector generated from the second dynamic image with the highest similarity between the facial feature representative vectors (an example of a feature quantity pair. Hereinafter, it is referred to as a vector pair) is more likely to belong to the common character. Therefore, each facial feature representative vector constituting the vector pair can be labeled with the name of the common character. In addition, in the following description, an example of using the distance between facial feature representative vectors (such as the Euclidean distance) to determine the similarity between facial feature representative vectors is listed, but the inner product of two facial feature representative vectors can also be used to determine the similarity between the two. When the distance between facial feature representative vectors is used to determine the similarity, the smaller the distance, the higher the similarity, but when the inner product of two facial feature representative vectors is used to determine the similarity, the larger the inner product, the higher the similarity.
[0040] Next, the structure of the labeling device of this embodiment will be described. Figure 2 1 is a block diagram showing an example of the functional configuration of the labeling device 10 of this embodiment. Figure 2 As shown, the labeling device 10 includes a label candidate generating unit 11 , a feature extracting unit 12 , a feature pair detecting unit 13 , a labeling unit 14 , a metadata generating unit 15 , and a data storing unit 16 .
[0041] The labeling device 10 extracts a feature from content 51 stored in content DB 50, and labels the extracted feature with one of the label candidates generated from related data 52. In this embodiment, as described above, it is assumed that the data set 53 composed of the combination of content 51 and related data 52 is a TV program, the content 51 is a moving image of the TV program, and the related data 52 is a program description text.
[0042] The label candidate generating unit 11 generates label candidates from the associated data 52 associated with the content 51. For example, when the associated data 52 is a program description text of a TV program, the label candidate generating unit 11 performs morphological analysis on the program description text, obtains the names of the main characters appearing in the TV program from the result, and uses them as label candidates. In addition, the associated data 52 can be any text data as long as the names of the main characters who become label candidates can be obtained. For example, it can be text data obtained by performing speech recognition processing on speech linked to a dynamic image, or it can be text data obtained by applying a technique for generating image description text, such as that shown in non-patent document 1, to frame images constituting a dynamic image. In addition, text data of subtitle information assigned to a dynamic image can also be used as the associated data 52.
[0043] The feature extraction unit 12 extracts feature quantities from the content 51. For example, when the content 51 is a moving image of a TV program, the feature extraction unit 12 performs face detection and facial feature vector generation processing on each frame of the moving image. In this way, the facial feature vectors of all the characters appearing in the TV program can be collected. In addition, since the technology of detecting a face from an image and extracting its feature quantity (facial feature vector) is widely known, a detailed description is omitted here.
[0044] In addition, when the content 51 to be processed is associated with the associated data 52, the feature extraction unit 12 clusters the feature group extracted from the content 51 to generate a representative feature for each cluster. For example, when the content 51 is a moving image of a TV program, and the program description text is associated with the moving image as the associated data 52, the feature extraction unit 12 performs K-means clustering on the facial feature vector group extracted from the moving image to generate a facial feature representative vector for each cluster. The value of K in the K-means clustering is the number of label candidates generated by the label candidate generation unit 11, that is, the number of main characters appearing in the TV program. Thus, the same number of facial feature representative vectors as the number of main characters can be obtained. In addition, when the number of feature extracted from the content 51 is equal to the number of label candidates, clustering of the feature (generation of representative feature) may not be performed.
[0045] The list of label candidates (names of main characters) generated by the label candidate generation unit 11 and the multiple facial feature representative vectors (representative feature quantities) generated by the feature quantity extraction unit 12 are maintained in the data retention unit 16 as intermediate data for processing in this embodiment, corresponding to the identification information of the content 51 (dynamic images of the TV program).
[0046] The feature quantity pair detection unit 13 uses a combination of data sets 53 in which only one label candidate generated from the associated data 52 in the data set 53 stored in the content DB 50 is common, and performs feature quantity pair detection. For example, it is assumed that the data set 53 stored in the content DB 50 is a TV program, the content 51 is a moving image of the TV program, and the associated data 52 is a program description text. Then, for each data set 53, the label candidate generation unit 11 generates a list of the names of the main characters as a list of label candidates, and the feature quantity extraction unit 12 generates the same number of facial feature representative vectors as the number of the main characters as representative feature quantities. In this case, the feature quantity pair detection unit 13 selects a combination of TV programs in which only one main character is common among the TV programs stored in the content DB 50 as the data set 53. Then, when the dynamic image of one party's TV program is set to the first dynamic image, and the dynamic image of the other party's TV program is set to the second dynamic image, the feature quantity pair detection unit 13 detects a combination of facial feature representative vectors with the smallest distance between them (the highest similarity) as a vector pair, among the combinations of facial feature representative vectors generated from the first dynamic image and the facial feature representative vectors generated from the second dynamic image.
[0047] In addition, in the present embodiment, it is assumed that a plurality of feature quantities (facial feature vectors) representing the same object (main character) are extracted from one content 51 (a moving image of a TV program), and the feature quantity extraction unit 12 clusters the feature quantities extracted from the content 51. However, in the case where labels are respectively assigned to the feature quantities extracted from the content 51, clustering of the feature quantities (generation of representative feature quantities) is not necessary. In this way, in the case where the feature quantity extraction unit 12 does not cluster the feature quantities, the feature quantity pair detection unit 13 only needs to determine the similarity for the combination of feature quantities instead of the representative feature quantity and detect the feature quantity pair.
[0048] The label assigning unit 14 assigns a common label candidate generated from each associated data 52 included in the combination of the above-mentioned data sets 53 as a label to each feature constituting the feature pair detected by the feature pair detection unit 13. For example, when the above-mentioned vector pair is detected by the feature pair detection unit 13, the name of the common main character is assigned as a label to each facial feature representative vector constituting the vector pair.
[0049] In addition, when the feature quantity (facial feature vector) extracted from the content 51 to which the related data 52 is not associated is similar to each feature quantity (facial feature representative vector) constituting the feature quantity pair (vector pair) detected by the feature quantity pair detection unit 13, the label assigning unit 14 can assign the same label as the label assigned to each feature quantity constituting the feature quantity pair to the feature quantity extracted from the content 51 to which the related data 52 is not associated. This processing can be realized by, for example, the nearest neighbor search method described later.
[0050] The metadata generation unit 15 generates metadata of the content 51 using the feature quantity to which the label is assigned. For example, when the feature quantity extraction unit 12 extracts the facial feature vector from each frame of the dynamic image as described above, the correspondence between the extracted facial feature vector and the frame number is recorded. Thereafter, when the label assignment unit 14 assigns a label to the facial feature vector, the label assigned to the facial feature vector can be assigned to the frame number from which the facial feature vector is extracted. The label assigned to the frame number becomes metadata for searching for a scene in which a desired main character appears from a TV program.
[0051] Next, a specific example of the processing performed by the labeling device 10 of this embodiment will be described. Figure 3 , the process of generating facial feature representative vectors of main characters appearing in a TV program and a list of main characters is described. Figure 3 This is a diagram for explaining the process of extracting facial feature vectors from a dynamic image and generating facial feature representative vectors.
[0052] The label candidate generation unit 11 performs morphological analysis on the program description text of the TV program. Then, the names of the main characters appearing in the TV program are obtained from the results of the morphological analysis as label candidates, and a list of the main characters is generated. The number of main characters included in the list of main characters is the number of label candidates. Figure 3 , an example is shown in which three main character names of character a, character b, and character c are obtained as label candidates from the program description text associated with the moving image A. In addition, in the morphological analysis of the program description text, for example, MeCab disclosed in Non-Patent Document 2 can be used.
[0053] like Figure 3 As shown, the feature extraction unit 12 detects the face of the characters appearing in each frame of the dynamic image A of the TV program and generates a facial feature vector. Thus, a plurality of characters and a plurality of facial feature vector groups are generated from one dynamic image A. That is, the facial feature vectors of the characters appearing in the TV program can be collected.
[0054] Next, the feature extraction unit 12 performs K-means clustering on the facial feature vector group generated from the dynamic image A, and uses the centroid of each cluster as the facial feature representative vector. The value of K at this time is the number of label candidates generated by the label candidate generation unit 11, that is, the number of names of the main characters included in the list of main characters. In this way, the number of facial feature representative vectors corresponding to the number of main characters appearing in the TV program can be obtained. Figure 3 In the above example, three facial feature representative vectors can be obtained. These facial feature representative vectors are considered to represent the feature quantity of any one of the main characters included in the main character list. However, the facial feature vector group generated from the dynamic image A may also include characters other than the main characters (non-main characters). Therefore, the following processing is performed to remove the facial feature vectors of non-main characters.
[0055] First, the distance between all facial feature vectors belonging to the same cluster as the facial feature representative vector is calculated. Here, a vector whose distance is statistically outlier is considered to be a person with a label different from that of the facial feature representative vector (not a main character). Therefore, such a vector is considered to be an "outlier vector".
[0056] Next, K-means clustering is performed again after removing the outlier vector.
[0057] This process is repeated until the clustering results converge (until the deviation value vector disappears). Then, the maximum distance within the cluster when the clustering results converge is associated with the facial feature representative vector as the centroid of the cluster and recorded in the data storage unit 16. This value is used as a threshold value in the nearest neighbor search when generating metadata described later.
[0058] Through the above processing, facial feature representative vectors of the main characters in the dynamic image and a list of the main characters can be generated. However, in this state, except for the special case where there is only one facial feature representative vector and only one main character, it is impossible to establish a correspondence between the facial feature representative vector and the main character. Therefore, it is impossible to automatically assign labels to the facial feature vector pairs. Therefore, by combining and using multiple data sets 53, the correspondence between the facial feature representative vector and the main characters is screened. Therefore, the above-mentioned (1) to (3) processing is also performed on other TV programs stored in the content DB 50 as data sets 53 to generate facial feature representative vectors of the main characters in the dynamic image and a list of the main characters. Then, a combination of TV programs with one common character is selected.
[0059] Here, it is assumed that three facial feature representative vectors are generated from the dynamic images A, B, and C of three TV programs, respectively. In addition, it is assumed that characters a, b, and c are generated as label candidates from the program description text associated with dynamic image A, characters a, d, and e are generated as label candidates from the program description text associated with dynamic image B, and characters b, d, and f are generated as label candidates from the program description text associated with dynamic image C. In this case, the common character of dynamic image A and dynamic image B is character a, the common character of dynamic image A and dynamic image C is character b, and the common character of dynamic image B and dynamic image C is character d.
[0060] In this embodiment, a combination of dynamic images of TV programs in which one common character appears is used to screen the correspondence between facial feature representative vectors and main characters. In addition, an example using a combination of two dynamic images (hereinafter referred to as a dynamic image pair) is described here, but a combination of three or more dynamic images may also be used.
[0061] Below, refer to Figures 4 to 6 , the process of screening the correspondence between the facial feature representative vectors and the main characters using the above-mentioned dynamic image pairs is explained. Figures 4 to 6 This is a diagram for explaining the process of detecting vector pairs from a pair of moving images and assigning labels.
[0062] The feature quantity detection unit 13 first Figure 4 As shown, a dynamic image pair consisting of dynamic image A and dynamic image B is selected, and the three facial feature representative vectors generated from dynamic image A and the three facial feature representative vectors generated from dynamic image B are mapped to a common feature vector space. Then, a combination of facial feature representative vectors generated from dynamic image A and facial feature representative vectors generated from dynamic image B, that is, a vector pair, is detected, in which the distance between the facial feature representative vectors is the smallest. Generally speaking, facial feature vectors of the same person exist nearby. Therefore, it can be inferred that the two facial feature representative vectors constituting the vector pair detected from the dynamic image pair consisting of dynamic image A and dynamic image B are the facial feature representative vectors of the common character in dynamic image A and dynamic image B, that is, character a. Therefore, the label assignment unit 14 assigns the label of character a to the two facial feature representative vectors constituting the vector pair.
[0063] The feature quantity detection unit 13 then proceeds as follows Figure 5As shown, a dynamic image pair consisting of dynamic image A and dynamic image C is selected, and the three facial feature representative vectors generated from dynamic image A and the three facial feature representative vectors generated from dynamic image C are mapped to a common feature vector space. Then, the combination of the facial feature representative vectors generated from dynamic image A and the facial feature representative vectors generated from dynamic image C, that is, the vector pair, is detected, which is a combination of the facial feature representative vectors with the smallest distance between the facial feature representative vectors. It can be inferred that the two facial feature representative vectors constituting the vector pair detected in this way are the facial feature representative vectors of the common character appearing in dynamic image A and dynamic image C, that is, the character b. Therefore, the label assignment unit 14 assigns the label of character b to the two facial feature representative vectors constituting the vector pair. In addition, with respect to dynamic image A, since two of the three facial feature representative vectors are respectively assigned the labels of character a and character b, the remaining facial feature representative vector can be inferred to be the label of character c. Therefore, the label assignment unit 14 assigns the label of character c to the remaining facial feature representative vector.
[0064] The feature quantity detection unit 13 then proceeds as follows Figure 6 As shown, a dynamic image pair consisting of dynamic image B and dynamic image C is selected, and the three facial feature representative vectors generated from dynamic image B and the three facial feature representative vectors generated from dynamic image C are mapped to a common feature vector space. Then, the combination of the facial feature representative vectors generated from dynamic image B and the facial feature representative vectors generated from dynamic image C, that is, the vector pair, is detected, which is a combination of the facial feature representative vectors generated from dynamic image B and the facial feature representative vectors generated from dynamic image C, in which the distance between the facial feature representative vectors is the smallest. It can be inferred that the two facial feature representative vectors constituting the vector pair detected in this way are the facial feature representative vectors of the common character appearing in dynamic image B and dynamic image C, that is, the character d. Therefore, the label assignment unit 14 assigns the label of character d to the two facial feature representative vectors constituting the vector pair. In addition, with respect to dynamic image B, since two of the three facial feature representative vectors are respectively assigned the labels of character a and character d, the remaining facial feature representative vector can be inferred to be the label of character e. Therefore, the label assignment unit 14 assigns the label of character e to the remaining facial feature representative vector. In addition, regarding the dynamic image C, since two of the three facial feature representative vectors are labeled as person b and person d, respectively, the remaining facial feature representative vector can be inferred to be labeled as person f. Therefore, the label assigning unit 14 assigns the label of person f to the remaining pair of facial feature representative vectors.
[0065] As described above, by using a pair of dynamic images in which a common character appears to screen the correspondence between facial feature representative vectors and main characters, it is possible to automatically assign a label of the main character's name to the facial feature representative vector generated from each dynamic image. In addition, if a label is assigned to the facial feature representative vector, it is possible to use the facial feature representative vector assigned with the label to generate metadata for scene retrieval of a dynamic image, for example.
[0066] Below, refer to Figure 7 , a specific example of a process of generating metadata of a dynamic image using a facial feature representative vector to which a label is assigned will be described. Figure 7 This is a diagram for explaining the process of generating metadata of a moving image.
[0067] The metadata generation unit 15 extracts the dynamic image D for which metadata is to be generated from the content DB 50 and passes it to the feature extraction unit 12, requesting the generation of a facial feature vector. The dynamic image D may be the content 51 to which the associated data 52 is not associated. In addition, the dynamic image D may be a dynamic image (the dynamic images A, B, C, etc.) to which a label of a facial feature representative vector is assigned through the above-mentioned processing. Figure 7 As shown, the feature extraction unit 12 generates a facial feature vector for the moving image D transmitted from the metadata generation unit 15 in the same manner as the above-mentioned moving image A. That is, the face of the character appearing in each frame of the moving image D is detected to generate a facial feature vector. At this time, the metadata generation unit 15 records the facial feature vector extracted by the feature extraction unit 12 and the frame number of the scene where the facial feature vector is extracted in the data storage unit 16 in association with each other.
[0068] Next, the metadata generation unit 15 passes all facial feature vectors generated from the dynamic image D to the label assignment unit 14, and requests label assignment based on the nearest neighbor search using the labeled facial feature representative vectors. In response to the request from the metadata generation unit 15, the label assignment unit 14 uses each facial feature vector generated from the dynamic image D as a query vector and performs a nearest neighbor search on the group of labeled facial feature representative vectors. The nearest neighbor search is a process of searching for the vector closest to the query vector from the vector group. Through this nearest neighbor search, the closest facial feature representative vector is determined for each facial feature vector generated from the dynamic image D.
[0069] Next, the label assigning unit 14 calculates the distance between each facial feature vector generated from the dynamic image D and the facial feature representative vector determined as the nearest neighbor. Then, when the calculated distance is less than the above-mentioned threshold value, that is, less than the maximum distance within the cluster of the facial feature representative vector, the same label as the facial feature representative vector is assigned to the facial feature vector. In this way, it is possible to suppress the assignment of an erroneous label to the facial feature vector generated from the dynamic image D.
[0070] When assigning a label to the facial feature vector generated from the moving image D as described above, the metadata generating unit 15 assigns the label assigned to the facial feature vector to the frame number from which the facial feature vector was extracted, referring to the correspondence between the facial feature vector and the frame number recorded in the data retaining unit 16. The label assigned to the frame number becomes metadata for searching the scene where the desired main character appears from the TV program.
[0071] As described above, according to the labeling device 10 of this embodiment, by combining and using a plurality of data sets 53 including content 51 and related data 52, a corresponding relationship screening process between feature quantities and label candidates is performed, and a label can be automatically assigned to feature quantities extracted from content 51. In addition, according to the labeling device 10 of this embodiment, by performing a simple nearest neighbor search using the feature quantities assigned with labels, a label can be automatically assigned to feature quantities extracted from other content 51, for example, metadata for scene retrieval of content 51 can be automatically generated.
[0072] In addition, the above description is based on the existence of multiple data sets 53, but by dividing and using one content 51, the automatic labeling of feature quantities can also be achieved by using the same processing as the above processing. For example, a dynamic image is divided into multiple parts, and each of the divided dynamic images is regarded as a separate content 51. At this time, each divided dynamic image needs to be associated with the associated data 52 respectively, but by using text data such as subtitle information assigned to the dynamic image and speech recognition results of the speech linked to the dynamic image as the associated data 52, the associated data 52 can be associated with the divided dynamic images respectively. This is because the text data of the subtitle information and speech recognition results are corresponding to each scene of the dynamic image (with time information), and this information is also automatically divided when the dynamic image is divided.
[0073] In addition, the above is an explanation assuming that the dynamic image of a TV program is the content 51. Even if the content 51 to be processed is other dynamic images, it is also possible to automatically assign labels to feature quantities and automatically generate metadata. As an application example other than TV programs, there is a dynamic image distribution service. In addition, for example, by using the entry and exit records of the factory as the associated data 52, it is also possible to automatically assign the name of the operator, employee number, etc. as a label to the feature quantity of the operator extracted from the image in the factory captured by the camera installed in the factory. In addition, in a household robot with multiple modalities such as a microphone and a camera, for example, by combining the text data of the speech recognition result of the speech obtained by the microphone and the image captured by the camera, it is possible to automatically assign (so-called concept learning) the label candidate generated from the text data of the speech recognition result to the feature quantity of the person extracted from the image as a label.
[0074] In the above description, the case where the content 51 is a moving image is exemplified, but even if the content 51 is a still image, audio, or sensor data, automatic labeling of feature quantities extracted from the content 51 can be achieved by the same processing as in the above example. Examples are given below.
[0075] First, in the case of a still image, for example, a photo of multiple people is used as content 51, and the title of the photo is used as associated data 52. In this case, multiple facial feature vectors can be obtained by performing face detection on the photo and generating a facial feature vector. In addition, multiple label candidates can be obtained based on the title of the photo. By using these, automatic labeling of facial feature vectors can be achieved in the same way as in the above example.
[0076] Next, in the case of speech, for example, the speech of a radio drama is used as content 51, and the explanatory text of the drama is used as related data 52. In this case, a feature vector for identifying the speaker is generated based on the waveform of the speech data, and label candidates such as the speaker's name are generated based on the explanatory text of the drama. By using these, automatic labeling can be achieved for the feature vector for identifying the speaker in the same way as in the above example.
[0077] Next, in the case of sensor data, for example, the time series data of the motor speed output by the rotation sensor installed on the motor to be monitored is used as content 51. In addition, it is assumed that there is an article in which a user observes the state of the motor and records it, and the recorded text is used as related data 52. In this case, keywords such as over-rotation, under-rotation, and normal rotation are extracted from the recorded text and used as label candidates. In addition, by extracting the motor speed as a feature quantity from the time series data of the motor speed output by the rotation sensor, and performing K-means clustering on the extracted motor speed according to the number of keywords, representative feature quantities of over-rotation, representative feature quantities of under-rotation, and representative feature quantities of normal rotation can be obtained. By using these, it is possible to automatically assign labels such as over-rotation, under-rotation, and normal rotation to the motor speed in the same way as in the above example.
[0078] <Second embodiment>
[0079] Next, the second embodiment will be described. Compared with the first embodiment, this embodiment has an additional function of absorbing inconsistency in the expression of label candidates. Since the other functions are the same as those of the first embodiment, only the functions unique to this embodiment will be described below.
[0080] The first embodiment described above is based on the premise that the same label candidates are generated for the same main characters appearing in the TV program. However, in reality, even for the same character, there are cases where different expressions such as real name and stage name are recorded in the program description text. In this case, since there is inconsistency in the expression in the label candidates generated based on the program description text, it is necessary to absorb it. Therefore, in this embodiment, the word semantics of the label candidates are vectorized, and the label candidates with similar semantic vectors are made common to each other as a countermeasure for inconsistency in expression.
[0081] Figure 8 is a block diagram showing an example of the functional configuration of the labeling device 10 of the second embodiment. Figure 2 The configuration of the first embodiment shown is obtained by adding the configuration of the label candidate correction unit 17 .
[0082] The label candidate correction unit 17 generates semantic vectors of the label candidates generated by the label candidate generation unit 11 from the associated data 52, and makes the label candidates whose similarity between semantic vectors is greater than a threshold value common to each other. The semantic vector is a vector representing the meaning of a word, and for example, there is a known method of using co-occurrence information between words to represent the meaning.
[0083] The label candidate correction unit 17 first learns a model for generating a semantic vector of a label candidate. That is, the label candidate correction unit 17 first collects all the associated data 52 (text data) stored in the content DB 50, and performs word segmentation processing on the collected text data by using the above-mentioned Mecab and other morphological analysis. Then, the label candidate correction unit 17 uses the word group obtained by word segmentation to learn a model for generating a semantic vector. In this learning, for example, Word2Vec disclosed in non-patent document 3 can be used. In addition, GloVe disclosed in non-patent document 4 can also be used.
[0084] Afterwards, when the label candidate generation unit 11 generates the names of the main characters from the associated data 52 as label candidates, the label candidate correction unit 17 uses the learned model to semantically vectorize the main characters. Then, the label candidate correction unit 17 calculates the similarity between the semantic vectors for all combinations of semantic vectors. At this time, it is considered that the combination of semantic vectors with a similarity above the threshold has a similar meaning. Therefore, such a combination of semantic vectors is extracted. In addition, the threshold is a hyperparameter. In addition, the combination of semantic vectors is not necessarily a combination of two semantic vectors, and more than three semantic vectors can also be combined.
[0085] The label candidate correction unit 17 performs processing to make the label candidates common to the combination of semantic vectors extracted as described above. The so-called commonality of label candidates refers to making the expressions of label candidates the same. For example, the number of word occurrences of each label candidate can be calculated based on the result of the above-mentioned word segmentation processing. The label candidate correction unit 17 uses the expression of the label candidate with the largest number of word occurrences to make the label candidates whose semantic vector similarity is above a threshold value common to each other.
[0086] As described above, according to this embodiment, since the inconsistency in the expression of the label candidates can be absorbed by the label candidate correction unit 17, when the same person is described in different expressions in the program description text, even if the expression inconsistency occurs in the label candidates generated from the related data 52, it is possible to absorb it and perform the same processing as the first embodiment described above. This can solve the problem of different labels being given to the same person, for example.
[0087] <Third embodiment>
[0088] Next, the third embodiment is described. Compared with the first embodiment described above, this embodiment adds a function for efficiently manually assigning labels to feature quantities that cannot be automatically assigned labels. Since other functions are the same as those of the first embodiment described above, only the functions unique to this embodiment are described below.
[0089] The first embodiment described above uses a pair of dynamic images in which a common character appears, and automatically assigns the name of the common character as a label to the facial feature representative vector inferred to represent the common character. However, among the dynamic images in the content DB 50, it is assumed that there is a dynamic image in which the common character cannot be made into a single character even if all combinations with other dynamic images are tried. In such a case, the user needs to manually assign labels. However, it is troublesome to manually assign labels to all modes that cannot be automatically labeled. Therefore, in this embodiment, if a label is manually assigned to a facial feature representative vector, a label candidate that can automatically assign labels to other facial feature representative vectors is selected as a teaching object and is prompted to the user. Specifically, by using a plurality of dynamic image combinations with a plurality of common characters, the duplication of the common characters in these plurality of dynamic image combinations is checked, and a character is determined that once the teaching is performed, the labels of other characters are automatically determined by the elimination method. Then, by allowing the user to preferentially perform the teaching operation on the character, the label assignment is achieved with less labor.
[0090] Fig. 9 is a block diagram showing an example of the functional configuration of the labeling device 10 of the third embodiment. Figure 2 The configuration of the first embodiment shown is obtained by adding the configurations of a teaching object selection unit 18 and an operation reception unit 19 .
[0091] The teaching object selection unit 18 selects a label candidate as a teaching object when there are multiple common label candidates and determines the relationship between other label candidates and feature quantities by determining the relationship between the label candidate and the feature quantity. For example, the teaching object selection unit 18 determines the person to be the teaching object by using multiple dynamic image combinations with multiple common characters and checking the repetition of the common characters in these multiple dynamic image combinations.
[0092] The operation accepting unit 19 accepts a user operation for teaching the relationship between the label candidate and the feature quantity of the teaching object selected by the teaching object selecting unit 18. For example, the operation accepting unit 19 presents the name of the person of the label candidate as the teaching object to the user together with the facial dynamic image when the facial feature representative vector is generated from each dynamic image constituting the dynamic image combination, and accepts a user operation for selecting a facial image that matches the name of the person of the label candidate as the teaching object.
[0093] Below, refer to Figures 10 to 12 , a specific example of the processing of this embodiment is described. Figures 10 to 12 is a diagram for explaining the outline of the processing of this embodiment. Fig.10The case of using three dynamic image pairs α, β, and γ as an example is described. The common characters in dynamic image pair α are character a, character b, and character c, the common characters in dynamic image pair β are character b and character c, and the common characters in dynamic image pair γ are character a, character c, and character d.
[0094] The teaching object selection unit 18 first classifies the constructed moving image pairs according to the number of common characters. In the above example, the moving image pairs are classified into a moving image pair β with two common characters and a moving image pair α, γ with three common characters.
[0095] Next, the teaching object selection unit 18 checks the duplication of common characters for the combination of the dynamic image pair with a small number of common characters and the dynamic image pair with a large number of common characters. Then, the combination of dynamic image pairs with a small number of non-duplicate common characters, that is, the combination of dynamic image pairs with a small number of negative logical products (NOT AND) of common characters, is selected. Fig.10 As shown, there is one non-repeating common character in the combination of dynamic image pair α and dynamic image pair β (character a), and there are three non-repeating common characters in the combination of dynamic image pair α and dynamic image pair γ (character a, character b, character d), so the combination of dynamic image pair α and dynamic image pair β is selected.
[0096] Next, the teaching object selection unit 18 selects a dynamic image pair with the least number of common characters from the selected dynamic image pair combinations. In the above example, in the combination of dynamic image pair α and dynamic image pair β, the common characters of dynamic image pair α are three characters, character a, character b, and character c, and the common characters of dynamic image pair β are two characters, character b and character c, so dynamic image pair β is selected.
[0097] Next, the teaching object selection unit 18 appropriately selects a label candidate according to the number of people for the common characters of the selected dynamic image pair. The label candidate is the name of the main character selected from the list of main characters as the teaching object. Then, the operation receiving unit 19 presents the label candidate selected by the teaching object selection unit 18 to the user together with a list of facial images corresponding to each of the facial feature representative vectors according to the number of people. In the above example, the name of the character b or the character c, which is a common character of the dynamic image pair β, is presented to the user together with the list of facial images.
[0098] When the user is prompted with a list of label candidates and facial images by the operation accepting unit 19, the user selects a facial image that matches the label candidate from the list of facial images. This operation is an operation for teaching the relationship between the suggested label candidate and the facial feature representative vector of the co-appearing character. When the teaching operation is accepted by the operation accepting unit 19, the label assigning unit 14 assigns the character name of the label candidate to the facial feature representative vector as a label.
[0099] Here, if there are two common characters in the dynamic image pair, if the correspondence between the label candidate and the facial feature representative vector is determined for one of the common characters, then the correspondence between the label candidate and the facial feature representative vector is also determined for the other common character. Therefore, it is possible to automatically assign labels to facial feature representative vectors that are not assigned labels. In addition, if there are more than three common characters in the dynamic image pair, by repeatedly selecting label candidates for teaching objects, and prompting the selected label candidates together with the facial image list and accepting the user's teaching operation, it is possible to determine the correspondence between the label candidate and the facial feature representative vector for all common characters in the dynamic image pair, thereby assigning labels to each facial feature representative vector. In addition, by applying the processing of the first embodiment described above at the stage where there is only one common character that is not assigned a label, it is also possible to automatically assign labels to facial feature representative vectors that are not assigned a label.
[0100] Through the above steps, the labeling of the common characters is completed for one of the selected dynamic image pairs. In the above example, in the combination of dynamic image pair α and dynamic image pair β, the labeling of characters b and c, which are the common characters of dynamic image pair β, is completed. Fig.11 As shown, by manually assigning a label to character b, which is one of the co-appearing characters of the moving image pair β, a label is automatically assigned to character c, which is the other co-appearing character of the moving image pair β.
[0101] Next, consider the other dynamic image pair in the combination of the selected dynamic image pair. First, delete the common characters in the other dynamic image pair that are repeated in the dynamic image pair to which the label assignment has been completed. In the above example, among the common characters in dynamic image pair α, i.e., characters a, b, and c, characters b and c to which the label assignment has been completed are deleted. Here, if there is only one common character that is not deleted, the label assignment can be automatically performed because the correspondence between the label candidate and the representative vector of the facial feature is determined. In the above example, since the only common character that is not deleted and remains in the dynamic image pair α is character a, Fig.11As shown, a label is automatically assigned to character a, which is a common character of the dynamic image pair α. In addition, assuming that there are two or more common characters that have not been deleted and remain among the common characters of the dynamic image pair α, by selecting label candidates for teaching objects in the same way as the processing of the dynamic image pair β described above, and presenting the selected label candidates together with the facial image list and accepting the user's teaching operation, it is possible to assign labels to the common characters that have not been assigned labels.
[0102] In addition, for unprocessed dynamic image pairs that are not included in the combination of the selected dynamic image pairs, the labels assigned to the characters who appear together are also deleted. In the above example, the labels assigned to characters a and c are deleted from characters a, c, and d that appear together in the dynamic image pair γ. Here, if there is only one character who appears together and is not deleted, the correspondence between the label candidate and the facial feature representative vector is determined, so the label assignment can be performed automatically. In the above example, since the only character who appears together in the dynamic image pair γ who is not deleted is character d, Fig.12 As shown, a label is automatically assigned to character d, who is a common character of the dynamic image pair γ. In addition, assuming that there are two or more common characters that have not been deleted and remain among the common characters of the dynamic image pair γ, labels can be assigned to the common characters that have not been assigned labels by selecting label candidates for teaching, and presenting the selected label candidates together with a list of facial images and accepting the user's teaching operation in the same way as the processing of the above-mentioned dynamic image pair β.
[0103] As described above, according to this embodiment, when the user needs to manually assign labels, a label candidate that can be efficiently assigned labels by the elimination method is selected as a teaching object, and the teaching operation on the label candidate is preferentially performed, thereby reducing the user's labor when manually assigning labels and efficiently performing label assignment.
[0104] <Fourth embodiment>
[0105] Next, the fourth embodiment is described. Compared with the first embodiment described above, this embodiment has the following additional functions: confirming whether the automatic assignment of labels to feature quantities is processed as expected, and performing manual confirmation and correction by the user when it is possible that the processing is not as expected. Since the other functions are the same as those of the first embodiment described above, only the functions unique to this embodiment are described below.
[0106] The first embodiment described above is processed based on the assumption that the main characters appear more frequently in the dynamic image and the non-main characters hardly appear in the dynamic image. Therefore, in the case where the assumption is not true, there is a risk that the expected processing is not performed. That is, the facial feature representative vector of the main character is not generated, but the facial feature representative vector of the non-main character is generated. Therefore, in this embodiment, an error score is calculated for the above-mentioned vector pair, and based on the error score, it is checked whether the facial feature representative vectors constituting the vector pair belong to the same person. Regarding the result of the check, when the facial feature representative vectors do not belong to the same person, it is highly likely that the facial feature representative vector of the non-main character was generated. Therefore, manual inspection and correction by the user are performed. Thus, in the case where an erroneous label is assigned to the facial feature representative vector due to the generation of the facial feature representative vector of the non-main character, the error can be corrected.
[0107] Fig.13 is a block diagram showing an example of the functional configuration of a labeling device according to a fourth embodiment. Figure 2 The configuration of the first embodiment shown is additionally constituted by a feature quantity pair determination unit 20 and a label confirmation unit 21. In addition, in this embodiment, in the data storage unit 16, an unchecked feature quantity storage unit 16a, a checked feature quantity storage unit 16b, a manually checked feature quantity pair storage unit 16c, a manually checked feature quantity storage unit 16d, and a manually specified feature quantity storage unit 16e are constructed.
[0108] The unchecked feature quantity holding unit 16a holds the facial feature representative vectors for which it is not possible to confirm that the label is correctly assigned, and the information associated therewith (one of the label, the facial image, and the vector pair constituting information). In addition, the vector pair constituting information is information indicating other facial feature representative vectors constituting the vector pair together with the facial feature representative vector.
[0109] The checked feature quantity storage unit 16 b stores the facial feature representative vector that can confirm that the labeling is correct, and information associated therewith (label, facial image).
[0110] The manually-check-required feature quantity pair holding unit 16 c holds facial feature representative vectors constituting vector pairs that require manual check by the user, and information associated therewith (label, facial image, vector pair constituting information).
[0111] The manual check-required feature quantity holding unit 16 d holds a facial feature representative vector that requires manual check by the user, and information associated therewith (label, facial image).
[0112] The manually specified feature quantity holding unit 16 e holds facial feature representative vectors for which the user is required to manually specify a label, and information associated therewith (label, facial image).
[0113] The feature pair determination unit 20 takes the facial feature representative vectors that can form a vector pair with other facial feature representative vectors, that is, the facial feature representative vectors having vector pair formation information, among the facial feature representative vectors taken out from the unchecked feature quantity holding unit 16a as the object, and calculates the error score of the vector pair. Then, the feature pair determination unit 20 determines whether the vector pair belongs to the same person based on the calculated error score. For example, if the error score of the vector pair is below a predetermined threshold, it is determined that the vector pair belongs to the same person. If the error score of the vector pair exceeds the threshold, it is determined that the vector pair does not belong to the same person. If the two facial feature representative vectors constituting the vector pair belong to the same person, the error score of the vector pair is low. If they belong to different people, the error score of the vector pair becomes high. For example, the distance between the two facial feature representative vectors (Euclidean distance) or the value obtained by subtracting the inner product of the two facial feature representative vectors from 1 can be used.
[0114] When the vector pair belongs to the same person, the probability that the facial feature representative vector is properly generated, that is, the facial feature representative vector of the main character is very high. This is because when the dynamic image combination is selected in such a way that the main character is repeated, it is considered that the non-main character appears more than the main character in each dynamic image, and the probability that the same non-main character appears repeatedly in multiple dynamic images is extremely low.
[0115] The label confirmation unit 21 confirms with the user whether the facial feature representative vectors constituting the vector pair whose error score exceeds the threshold or the facial feature representative vectors that cannot constitute the vector pair are assigned the correct label. For example, the label confirmation unit 21 prompts the user with the facial image and label (name) associated with the facial feature representative vector of the confirmation object, and obtains the confirmation result of whether the two are consistent.
[0116] Below, refer to Figures 14 to 17 , the processing flow of this embodiment is explained. Figures 14 to 17 : is a flowchart showing an example of the processing procedure of this embodiment. The processing of this embodiment includes the following two processes: process (1) and process (2). Fig.14 The steps of processing (1) are shown, Figures 15 to 17 The steps of process (2) are shown.
[0117] Process (1): Automatically confirm whether the facial feature representative vector is properly generated with high probability, and store the facial feature representative vector that requires manual inspection by the user in the manual inspection-required feature quantity pair storage unit 16c or the manual inspection-required feature quantity storage unit 16d.
[0118] Process (2): Check through manual inspection by the user whether the facial feature representative vectors stored in the manually-inspected feature quantity pair storage unit 16c and the manually-inspected feature quantity storage unit 16d are appropriately labeled, and accept manual correction by the user if necessary.
[0119] First, use Fig.14 The flowchart of the process (1) is used to explain the process (1). When the process (1) is started, the feature quantity pair determination unit 20 takes out a facial feature representative vector from the unchecked feature quantity holding unit 16a (step S101). Then, the feature quantity pair determination unit 20 determines whether the facial feature representative vector taken out in step S101 is a facial feature representative vector that can constitute a vector pair (step S102). Whether the facial feature representative vector can constitute a vector pair can be determined, for example, by whether the facial feature representative vector has vector pair composition information.
[0120] Here, when it is determined that the facial feature representative vectors extracted in step S101 cannot form a vector pair (step S102: No), the feature quantity pair determination unit 20 stores the facial feature representative vectors in the feature quantity storage unit 16d requiring manual inspection (step S103). On the other hand, when it is determined that the facial feature representative vectors extracted in step S101 can form a vector pair (step S102: Yes), the feature quantity pair determination unit 20 calculates the error score of the vector pair formed by the facial feature representative vectors (step S104), and determines whether the calculated error score is below a threshold value (step S105).
[0121] The threshold used in the determination of step S105 is set to, for example, twice the average error score of all vector pairs. This is because, when sufficient image data exists, most of the vector pairs are vectors of the same person, and the vector pairs around the average value are considered to be correctly corresponding. In addition, it is set to 2 times for convenience, but the threshold can also be determined by tuning. In addition, instead of using the average value, the median value can be used.
[0122] Here, if the error score of the vector pair is below the threshold value (step S105: Yes), it is considered that the vector pair is composed of facial feature representative vectors of the same person. In this case, it is considered that each facial feature representative vector constituting the vector pair is correctly labeled, so the feature quantity pair determination unit 20 stores each facial feature representative vector constituting the vector pair in the checked feature quantity storage unit 16b (step S106).
[0123] On the other hand, when the error score of the vector pair exceeds the threshold value (step S105: No), the feature pair determination unit 20 determines whether the facial feature representative vector taken out in step S101 can form another vector pair (step S107). If it can form another vector pair (step S107: Yes), it returns to step S104 and repeatedly performs the error score calculation and threshold determination of the vector pair. That is, when the facial feature representative vector taken out in step S101 can form another vector pair by changing the dynamic image combination, it is confirmed whether the error score of the vector pair is below the threshold value. Then, when a vector pair with an error score below the threshold value is not found even if all dynamic image combinations are tried (step S107: No), the vector pair with the smallest error score is stored in the feature pair holding unit 16c that requires manual inspection (step S108).
[0124] After that, the feature pair determination unit 20 determines whether or not there are any unprocessed facial feature representative vectors remaining in the unchecked feature quantity storage unit 16a (step S109). Then, if there are any unprocessed facial feature representative vectors remaining in the unchecked feature quantity storage unit 16a (step S109: Yes), the process returns to step S101 and repeats the same process. Then, when the process of all facial feature representative vectors held in the unchecked feature quantity storage unit 16a is completed (step S109: No), process (1) ends.
[0125] Next, processing (2) is described. Processing (2) includes: processing of vector pairs stored in the feature quantity pair storage unit 16c that requires manual inspection, processing of facial feature representative vector pairs stored in the feature quantity storage unit 16d that requires manual inspection, and processing of facial feature representative vectors stored in the feature quantity storage unit 16e that requires manual designation.
[0126] First, use Fig.15 The flowchart of illustrates the processing of vector pairs stored in the feature pair storage unit 16c that needs to be manually checked. When the processing starts, the label confirmation unit 21 takes out a vector pair from the feature pair storage unit 16c that needs to be manually checked (step S201). Then, the label confirmation unit 21 prompts the user with facial images and common labels that are respectively associated with the two facial feature representative vectors that constitute the vector pair, and confirms whether the correct label is assigned to each facial feature representative vector (step S202). For example, the user checks whether the prompted facial images belong to the same person. If they belong to the same person, check whether the common label is the name of the person. In addition, if they do not belong to the same person, check whose name the common label is.
[0127] Here, when it is determined that the correct label is assigned to each facial feature representative vector constituting the vector pair (step S202: Yes), the label confirmation unit 21 stores each facial feature representative vector constituting the vector pair in the checked feature quantity storage unit 16b (step S203). On the other hand, when it is determined that at least one of the facial feature representative vectors constituting the vector pair is not correctly labeled (step S202: No), the label confirmation unit 21 stores the facial feature representative vector that is not correctly labeled in the manual inspection required feature quantity storage unit 16d (step S204).
[0128] After that, the label confirmation unit 21 determines whether there are any unprocessed vector pairs remaining in the manual inspection feature quantity pair storage unit 16c (step S205). Then, if there are any unprocessed vector pairs remaining in the manual inspection feature quantity pair storage unit 16c (step S205: yes), the process returns to step S201 and repeats the same process. Then, when the process of all vector pairs stored in the manual inspection feature quantity pair storage unit 16c is completed (step S205: no), a series of processes are terminated.
[0129] Next, use Fig.16 The flowchart of FIG. 1 illustrates the processing of the facial feature representative vector stored in the feature quantity storage unit 16d that needs to be manually checked. When the processing starts, the label confirmation unit 21 takes out a facial feature representative vector from the feature quantity storage unit 16d that needs to be manually checked (step S301). Then, the label confirmation unit 21 prompts the user with a facial image and a label associated with the facial feature representative vector, and confirms whether the facial feature representative vector is assigned a correct label (step S302). For example, the user checks whether the prompted label is the name of the person in the facial image.
[0130] Here, when it is determined that the facial feature representative vector is correctly labeled (step S302: Yes), the label confirmation unit 21 stores the facial feature representative vector in the checked feature quantity holding unit 16b (step S305). On the other hand, when it is determined that the facial feature representative vector is not correctly labeled (step S302: No), the label confirmation unit 21 prompts the user with a list of main characters corresponding to the dynamic image that generated the facial feature representative vector, and confirms whether a label candidate corresponding to the facial feature representative vector has been generated (step S303). For example, the user checks whether the name of the character in the prompted facial image is included in the list of main characters. Then, if the name of the character in the facial image is included in the list of main characters, the user performs an operation to select the character name.
[0131] Here, when a label candidate corresponding to the facial feature representative vector is generated, that is, when the name of the character of the facial image presented is included in the list of main characters, and the user performs an operation of selecting the name of the character of the facial image from the list of main characters (step S303: yes), the label confirmation unit 21 changes the label of the facial feature representative vector according to the user operation (step S304), and stores the facial feature representative vector in the checked feature quantity storage unit 16b (step S305). On the other hand, when a label candidate corresponding to the facial feature representative vector is not generated (step S303: no), the label confirmation unit 21 stores the facial feature representative vector in the feature quantity storage unit 16e that needs to be manually specified (step S306).
[0132] After that, the label confirmation unit 21 determines whether there are any unprocessed facial feature representative vectors remaining in the manual inspection required feature quantity storage unit 16d (step S307). Then, if there are any unprocessed facial feature representative vectors remaining in the manual inspection required feature quantity storage unit 16d (step S307: yes), the process returns to step S301 and repeats the same process. Then, when the process of all facial feature representative vectors stored in the manual inspection required feature quantity storage unit 16d is completed (step S307: no), a series of processes are terminated.
[0133] Next, use Fig.17 The flowchart of FIG. 4 illustrates the processing of the facial feature representative vector stored in the manually specified feature quantity storage unit 16e. When the processing starts, the label confirmation unit 21 takes out a facial feature representative vector from the manually specified feature quantity storage unit 16e (step S401). Then, the label confirmation unit 21 prompts the user with a label associated with the facial feature representative vector and a list of facial images corresponding to the facial feature vector excluded from the clustering object as a "deviation value vector" when the facial feature representative vector is generated, and changes the facial feature vector corresponding to the label according to the user operation (step S402).
[0134] That is, the label confirmation unit 21 uses the facial feature vector that is used as the "deviation value vector" when generating the facial feature representative vector of the processing object as a correction candidate, and presents a list of facial images corresponding to the facial feature vector of the correction candidate and the label assigned to the facial feature representative vector of the processing object to the user. At this time, the facial image list can also be sorted in such a way that the facial images of the more conspicuous people in the frame image are at the top, based on the size of the facial image, the degree to which the face is facing the front, etc. The user performs an operation to select the facial image of the person whose name is consistent with the prompted label from the facial image list. The label confirmation unit 21 changes the facial feature vector corresponding to the label prompted to the user according to the user operation. Then, the label confirmation unit 21 stores the changed facial feature vector in the checked feature quantity holding unit 16b (step S403).
[0135] After that, the label confirmation unit 21 determines whether there are any unprocessed facial feature representative vectors remaining in the manually specified feature quantity storage unit 16e (step S404). Then, if there are any unprocessed facial feature representative vectors remaining in the manually specified feature quantity storage unit 16e (step S404: yes), the process returns to step S401 and repeats the same process. Then, when the process of all facial feature representative vectors stored in the manually specified feature quantity storage unit 16e is completed (step S404: no), a series of processes are terminated.
[0136] As described above, according to this embodiment, it is confirmed whether the automatic labeling of feature quantities is performed as expected. If there is a possibility that the processing is not performed as expected, the user manually confirms and corrects it, so that the feature quantities can be labeled with higher accuracy.
[0137] <Fifth embodiment>
[0138] Next, the fifth embodiment is described. This embodiment adds a function for efficient manual confirmation and correction by the user compared to the fourth embodiment. Since the other functions are the same as the fourth embodiment, only the functions unique to this embodiment are described below.
[0139] In the fourth embodiment described above, when the result of calculating the error score of the vector pair is that it is judged that there is a high possibility that the facial feature representative vector is not the facial feature representative vector of the main character, the user's manual confirmation and correction are performed. However, there is a case where a new vector pair with an error score below the threshold can be constructed by adding new content 51 (moving image) to the content DB 50. In this case, the user's manual confirmation and correction required before adding the new content 51 are not required.
[0140] Therefore, when new content 51 is added, it is effective to perform the same process again, but if the same process is performed again for all content 51 in content DB 50, the processing time becomes long. Therefore, in this embodiment, by performing the process of embodiment 4 again for feature quantities generated from new content 51 and feature quantities that require manual confirmation and correction by the user, feature quantities that require manual confirmation and correction by the user are filtered out with a shorter processing time.
[0141] Fig.18 is a block diagram showing an example of the functional configuration of the labeling device 10 of the fifth embodiment. Fig.13 The configuration of the fourth embodiment shown is that a confirmation target screening unit 22 is added.
[0142] When new content 51 is added to the content DB 50, the confirmation object screening unit 22 uses the feature quantities extracted from the new content 51 to screen out the feature quantities that constitute a feature quantity pair whose error score exceeds a threshold, or the feature quantities that cannot constitute a feature quantity pair and need to be confirmed whether they are correctly labeled.
[0143] The following is an overview of the processing in this embodiment. In this embodiment, first, the feature pair determination unit 20 performs the processing (1) of the fourth embodiment described above, and stores the facial feature representative vectors that require manual confirmation and correction by the user in the feature pair storage unit 16c and the feature storage unit 16d. In addition, the processing of the first embodiment described above is performed on the dynamic image added to the content DB 50 as a new content 51, and a new facial feature representative vector is generated.
[0144] Next, the confirmation object selection unit 22 stores all of the new facial feature representative vector generated from the dynamic image added as the new content 51, the facial feature representative vector held in the manually-checked feature quantity pair holding unit 16c, and the facial feature representative vector held in the manually-checked feature quantity pair holding unit 16d in the unchecked feature quantity holding unit 16a. Thereafter, the feature quantity pair determination unit 20 performs the processing (1) of the fourth embodiment again to select the facial feature representative vectors stored in the manually-checked feature quantity pair holding unit 16c and the manually-checked feature quantity holding unit 16d, that is, the facial feature representative vectors that require manual confirmation and correction by the user.
[0145] As described above, according to the present embodiment, when new content 51 is added, feature amounts extracted from the new content are used to filter feature amounts that require manual confirmation and correction by the user, so that manual confirmation and correction by the user can be performed efficiently.
[0146] <Supplementary explanation>
[0147] As an example, the labeling device 10 of each embodiment described above can be installed by a program that operates in an execution environment using hardware that is a general computer. In this case, the functional components (label candidate generation unit 11, feature extraction unit 12, feature pair detection unit 13, label assignment unit 14, metadata generation unit 15, data retention unit 16, label candidate correction unit 17, teaching object selection unit 18, operation acceptance unit 19, feature pair determination unit 20, label confirmation unit 21, confirmation object screening unit 22) in the labeling device 10 are implemented through the cooperation of hardware and software (program).
[0148] Fig.19 is a block diagram showing an example of the hardware configuration of the labeling device 10. Fig.19 As shown, the label assigning device 10 can adopt the hardware structure using a general computer, including a processor circuit such as a CPU (Central Processing Unit) 101, a storage device such as a ROM (Read Only Memory) 102 and a RAM (Random Access Memory) 103, an input and output I / F 104 for connecting a display panel and various operating devices, a communication I / F 105 for connecting to a network for communication, a bus 106 for connecting various parts, etc.
[0149] In addition, the program executed on the hardware of the above-mentioned structure is recorded in a file in an installable or executable form on a recording medium that can be read by a computer, such as a CD-ROM (Compact Disk Read Only Memory), a floppy disk (FD), a CD-R (Compact Disk Recordable), a DVD (Digital Versatile Disc), etc., and provided as a computer program product. In addition, it can also be configured so that the program executed on the hardware of the above-mentioned structure is stored on a computer connected to a network such as the Internet and provided by downloading via the network. In addition, it can also be configured so that the program executed on the hardware of the above-mentioned structure is provided or published via a network such as the Internet. In addition, it can also be configured so that the program executed on the hardware of the above-mentioned structure is pre-assembled in ROM102, etc. and provided.
[0150] The program executed on the hardware of the above-mentioned structure becomes a module structure including each functional component of the labeling device 10. For example, the program is read out from the above-mentioned recording medium and executed by CPU101 (processor circuit), and the above-mentioned parts are loaded into RAM103 (main storage) and generated on RAM103 (main storage). In addition, each functional component of the labeling device 10 can also be a structure implemented across multiple computers. In addition, dedicated hardware such as ASIC (Application Specific Integrated Circuit) and FPGA (Field-Programmable Gate Array) can also be used to implement part or all of the above-mentioned functional components.
[0151] According to at least one of the above-described embodiments, it is possible to automatically assign labels to feature quantities extracted from content.
[0152] The embodiments of the present invention have been described above, but the embodiments described here are presented as examples and are not intended to limit the scope of the invention. The new embodiments described here can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the scope of the subject matter of the invention. The embodiments described here and their variations are included in the scope or subject matter of the invention, and are included in the invention described in the claims and their equivalents.
Claims
1. A labeling device, comprising: a tag candidate generating unit, generating tag candidates according to associated data associated with the content; a feature quantity pair detection unit that selects a first content and a second content, wherein the first content and the second content have only one common label candidate generated based on first associated data associated with the first content and second associated data associated with the second content and not assigned to any feature quantity, and detects a feature quantity pair that is a combination with the highest similarity between the feature quantities from a combination of a feature quantity extracted from the first content and a feature quantity extracted from the second content; and The label assigning unit assigns the common label candidate as a label to each feature quantity constituting the feature quantity pair.
2. The labeling device according to claim 1, When the distance between the feature amount extracted from the third content and each feature amount constituting the feature amount pair is equal to or smaller than a threshold value, the label assigning unit assigns, to the feature amount extracted from the third content, a label common to each feature amount constituting the feature amount pair.
3. The labeling device according to claim 1 or 2, The labeling device further includes a feature extraction unit that extracts a feature from the content.
4. The labeling device according to claim 3, The feature extraction unit clusters the feature groups extracted from the content and generates a representative feature for each cluster. The feature amount pair detection unit detects, as the feature amount pair, a combination of a representative feature amount generated based on the first content and a representative feature amount generated based on the second content, a combination having the highest similarity between the representative feature amounts.
5. The labeling device according to claim 1 or 2, The labeling device further includes a metadata generating unit configured to generate metadata of the content using the feature amount to which the label is assigned.
6. The labeling device according to claim 1 or 2, The first content and the second content are generated by dividing one content.
7. The labeling device according to claim 1 or 2, The labeling device further includes a label candidate correction unit that generates semantic vectors of the label candidates and makes label candidates whose semantic vectors have a similarity greater than or equal to a threshold value common to each other.
8. The labeling device according to claim 1 or 2, The labeling device further comprises: a teaching object selection unit that selects a pair of fourth content and fifth content, the fourth content and the fifth content having a plurality of common label candidates that are generated based on fourth associated data associated with the fourth content and fifth associated data associated with the fifth content and are not assigned any feature amount, and the teaching object selection unit selects one label candidate among the plurality of common label candidates as a teaching object; and The operation accepting unit presents the label candidates of the teaching object and information corresponding to each feature amount, and accepts a user operation of selecting information that matches the label candidate of the teaching object from the presented information.
9. The labeling device according to claim 1 or 2, The labeling device further includes a feature quantity pair determination unit that calculates an error score for the feature quantity pair and determines whether the feature quantity pair indicates the same object based on the calculated error score.
10. The labeling device according to claim 9, The labeling device further includes a label confirmation unit that confirms with a user whether labels are correctly assigned to each feature quantity constituting the feature quantity pair whose error score exceeds a threshold value or feature quantities that cannot constitute the feature quantity pair.
11. The labeling device according to claim 10, The label assigning device also includes a confirmation object screening unit, which, when new content is added, uses feature quantities extracted from the new content to screen each feature quantity constituting the feature quantity pair whose error score exceeds the threshold, or feature quantities that cannot constitute the feature quantity pair and need to be confirmed whether they are correctly labeled.
12. The labeling device according to claim 1 or 2, The content is any one of a dynamic image, a static image, a voice, and a sensor data.
13. The labeling device according to claim 1 or 2, The related data is text data previously assigned to the content, or text data obtained by performing a predetermined process on the content.
14. A labeling method, comprising: The step of generating tag candidates according to the associated data associated with the content; A step of selecting a first content and a second content, the first content and the second content having only one common label candidate generated based on first associated data associated with the first content and second associated data associated with the second content and not assigned to any feature quantity, and detecting a feature quantity pair as a combination with the highest similarity between the feature quantities among combinations of feature quantities extracted from the first content and feature quantities extracted from the second content; and A step of determining the common label candidate as a label for each feature quantity constituting the feature quantity pair.
15. A storage medium storing a program for causing a computer to implement the following functions: A function for generating tag candidates based on contextual data associated with content; A function of selecting a first content and a second content, the first content and the second content having only one common label candidate generated based on first associated data associated with the first content and second associated data associated with the second content and not assigned to any feature quantity, and detecting a feature quantity pair as a combination with the highest similarity between the feature quantities among combinations of feature quantities extracted from the first content and feature quantities extracted from the second content; and A function of determining the common label candidate as a label of each feature quantity constituting the feature quantity pair.
Citation Information
Patent Citations
Method for extending lifespan and delaying onset of age-related disease
JP2018131457A
Information processing device,processing method,computer program,and integrated circuit
CN102687147A
Setting method and device of content label and storage medium
CN108009228A
Determining feature vectors for video volumes
US20130113877A1
