Learning device, learning method, and learning program
The learning device automates video and audio feature mapping to reduce labeling costs and enhance cross-modal search accuracy by optimizing encoders based on temporal event proximity, addressing the high cost of manual labeling in conventional methods.
Patent Information
- Application Number
- JP2023520725
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-14
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2041-05-14
AI Technical Summary
Conventional techniques for labeling objects and events in videos require significant manual effort and cost, and automated methods like motion and speech recognition also necessitate costly labeling and transcription.
A learning device that maps video and audio features to embedding spaces, using a video encoder and audio encoder to optimize parameters based on temporal proximity of events, reducing the need for manual labeling by emphasizing similarity through guided attention and loss functions like Masked Margin Softmax.
Reduces the cost of labeling objects and events in videos by automating the process, enhancing the correlation between video and audio features, thereby improving the efficiency and accuracy of cross-modal search.
Smart Images

Figure 0007533780000011 
Figure 0007533780000016 
Figure 0007533780000024
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning device, a learning method, and a learning program. [Background technology]
[0002] Image recognition technology can identify various objects that appear in an image. Furthermore, a technology is known that associates visual information with linguistic information by labeling an image.
[0003] For example, a technology is known that prepares a large amount of pair data of an image and audio (hereinafter referred to as audio caption) that explains the content of the image, and matches image regions with audio caption sections (hereinafter referred to as audio sections) (see, for example, non-patent document 1).
[0004] In addition, a technique is known in which translation knowledge between languages is acquired by preparing audio captions in multiple languages that explain images (see, for example, Non-Patent Document 2).
[0005] Furthermore, a technique is known in which objects and events are associated in a multimodal manner by focusing on the co-occurrence of video and audio streams using broadcast data and video data from a posting site (see, for example, Non-Patent Document 3). [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] David Harwath, Adria Recasens, Didac Suris, Galen Chuang, Antonio Torralba, James Glass, “Jointly Discovering Visual Objects and Spoken Words from Raw Sensory Input”, https: / / doi.org / 10.1007 / s11263-019-01205-0;
Outdoor Tool2
Outdoor Tools3
Outdoor Tools 4
Direct Environment 5
[0007] However, conventional techniques suffer from the problem that labeling objects and events in a video is very costly.
[0008] An object is, for example, a physical object that appears in a video, and an event is, for example, the action of a person or the like in the video.
[0009] For example, in order to generate a model for associating objects and events in a video, it is necessary to label the objects and events, which is very costly if labeling is done manually.
[0010] On the other hand, while it is possible to automate labeling using action and speech recognition, training models for action and speech recognition also requires labeling and transcription of regions and sections, which is costly. [Means for solving the problem]
[0011] In order to solve the above-mentioned problems and achieve the object, the learning device has a video feature calculation unit that calculates video features, which are features of video included in a dataset of video and audio pairs, using a model that takes video as input and outputs features obtained by mapping the video into a first embedding space; an audio feature calculation unit that calculates audio features, which are features of each audio included in the dataset, using a model that takes audio as input and outputs features obtained by mapping the audio into a second embedding space; and an update unit that updates parameters of each model used by the video feature calculation unit and the audio feature calculation unit so as to increase the similarity between the video features and the audio features, the similarity calculated by emphasizing the temporal proximity of predetermined events appearing in the video and the audio. Effect of the Invention
[0012] According to the present invention, the cost of labeling objects and events in a video can be reduced. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a learning device according to the first embodiment. [Diagram 2] FIG. 2 is an explanatory diagram for explaining an audio caption. [Diagram 3] FIG. 3 is an explanatory diagram for explaining an audio caption. [Figure 4] FIG. 4 is a diagram illustrating the temporal proximity of objects and events. [Diagram 5] Figure 5 shows the network diagram of the entire model. [Figure 6]FIG. 6 is a flowchart showing a flow of processing of the learning device according to the first embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of the configuration of a searching device according to the second embodiment. [Figure 8] FIG. 8 is a flowchart showing a flow of processing by the searching device according to the second embodiment. [Figure 9] FIG. 9 is a diagram showing the data set. [Figure 10] FIG. 10 shows the experimental results. [Figure 11] FIG. 11 shows the experimental results. [Figure 12] FIG. 12 is a diagram showing the correspondence between video and audio. [Figure 13] FIG. 13 is a diagram showing the correspondence between video and audio. [Figure 14] FIG. 14 is a diagram showing the correspondence between video and audio. [Figure 15] FIG. 15 is a diagram showing the correspondence between video and audio. [Figure 16] FIG. 16 is a diagram illustrating an example of a computer that executes a learning program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a learning device, a learning method, and a learning program according to the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the following embodiments.
[0015] [First embodiment] The learning device according to the first embodiment trains a video encoder and an audio encoder using input learning data. Then, the learning device outputs each trained encoder. For example, the learning device outputs parameters of each encoder. Note that video in this embodiment refers to moving images.
[0016] The learning data in this embodiment is data including video and audio associated with the video. For example, the learning data may be video data for broadcasting, video data from a video sharing site, etc.
[0017] The video encoder is a model that takes video as input and outputs video features. The audio encoder is a model that takes audio as input and outputs audio features. The learning device optimizes the video encoder and audio encoder based on the output video features and audio features.
[0018] [Configuration of the first embodiment] Fig. 1 is a diagram showing an example of the configuration of a learning device according to the first embodiment. As shown in Fig. 1, the learning device 10 includes a video feature calculation unit 111, an audio feature calculation unit 121, a loss function construction unit 131, and an update unit 132. The learning device 10 also stores video encoder information 112 and audio encoder information 122.
[0019] A video 151 and an audio caption 152 are input to the learning device 10. In addition, the learning device 10 can output updated video encoder information 112 and audio encoder information 122.
[0020] Here, the audio caption is the audio corresponding to the video. For example, the video 151 and the audio caption 152 are image data and audio data extracted from the same video data.
[0021] Note that the audio caption 152 may be a signal that records a voice uttered by a person to explain the content of the video 151 when watching the video 151. For example, the audio caption 152 may be obtained by using crowdsourcing to show the video 151 to a speaker and record the voice uttered by the speaker to explain the video 151.
[0022] 2 and 3 are explanatory diagrams for explaining audio captions (for details of FIGS. 2 and 3, see Non-Patent Documents 1 and 2, respectively).
[0023] In Figure 2, image regions and audio caption segments are associated with each other. For example, "mountain" in the image and "mountain" in the audio caption are associated with each other using the same hatching pattern.
[0024] In Figure 3, associations are made between voice captions that describe the same image in different languages. For example, when calculating the similarity between feature vectors extracted from English and Japanese voice captions, the similarity is high in corresponding parts, and translation knowledge between words is acquired.
[0025] In this way, it is known that it is possible to associate data of different modalities. Taking advantage of this fact, the learning device of this embodiment associates video and audio.
[0026] Modality can be said to be a way of expressing ideas of a concept. For example, for the concept of a dog, an "image" of a dog, an "audio" of the word "inu" being spoken, and "text" such as "inu", "inu", and "inu" correspond to modalities. In the case of English, for example, "dog", "Dog", and "DOG" correspond to modalities. Examples of modalities include images, audio, video, and certain sensing data.
[0027] Returning to Figure 1, the video feature calculation unit 111 calculates video features, which are features of video included in a data set of video and audio pairs, using a video encoder, which is a model that takes video as input and outputs features obtained by mapping the video into a first embedding space.
[0028] The video encoder information 112 is a parameter for constructing a video encoder.
[0029] The speech feature calculation unit 121 calculates speech features, which are features of the speech included in the dataset, using a speech encoder, which is a model that takes speech as input and outputs features obtained by mapping the speech into a second embedding space.
[0030] The audio encoder information 122 is a parameter for constructing an audio encoder.
[0031] The loss function construction unit 131 constructs a loss function based on the similarity between video features and audio features, which is calculated by emphasizing the temporal proximity of specific phenomena (events or objects) that appear in the video and audio.
[0032] The update unit 132 uses the loss function constructed by the loss function construction unit 131 to update parameters of the video encoder and the audio encoder.
[0033] In other words, the update unit 132 updates the parameters of each model used by the video feature calculation unit 111 and the audio feature calculation unit 121 so as to increase the similarity between the video feature and the audio feature, the similarity being calculated by emphasizing the temporal proximity of specified events appearing in the video and audio.
[0034] The processing of each part of the learning device 10 will be described in detail with reference to FIG. 4 and FIG.
[0035] Fig. 4 is a diagram for explaining the temporal proximity of objects and events. Fig. 4 shows learning data based on a commentary video of sumo wrestling. In Fig. 4, the Mel-spectrograms of each frame (Video frames) of a video 151 and an audio caption 152 are arranged in chronological order.
[0036] For example, events occur in frames f102, f103, f105, and f106. Also, there is sound corresponding to the events that have occurred.
[0037] For example, in frame f102, an event that the match starts occurs, and further, frame f102 corresponds to the sound "Hakkeyonokotta," which indicates the start of the match.
[0038] Also, for example, in frame f106, an event occurs in which the outcome of the match is decided, and further, frame f106 corresponds to the sound "push out" which explains the winning move that decided the outcome of the match.
[0039] In this way, the frames of an event and the corresponding audio can be said to be close in time.
[0040] Fig. 5 is a network diagram of the entire model. As shown in Fig. 5, video feature amount calculation unit 111 inputs a series of 32 video frames (32 video frames) cut out at equal intervals from a 10-second video, for example, to video encoder (Video network) 112a.
[0041] The video encoder 112a is assumed to be a trained ECO (Non-Patent Document 4). ECO is conventionally used for action recognition. In this embodiment, the final layer, which is the classifier of ECO, is removed, and a 3D ResNet is added to set the feature dimensionality to d without changing the spatial size.
[0042] For example, the video feature calculation unit 111 inputs a tensor obtained by resizing 32 video frames to a frame size of 224 × 224 to the video encoder 112a. Then, the video encoder 112a outputs a visual feature, which is a tensor of (time, channel, height, width) = (8, d, 7, 7).
[0043] The video features can be thought of as 32 video frames compressed into a time axis of 8, and the spatial size of the frames compressed into 7 x 7. For this reason, the video features can be regarded as features with d-dimensional feature vectors at each point in the 8 x 7 x 7 space.
[0044] As shown in FIG. 5, the audio feature calculation unit 121 inputs a Mel filter bank sequence (Mel spectrogram) obtained by performing frequency analysis with a frame shift length of 10 ms and a frame length of 25 ms on a 10-second audio file (10-second audio) and processing with 40 Mel filter banks to an audio encoder (audio network) 122a.
[0045] The speech encoder 122a is assumed to be a CNN-based DAVEnet (Non-Patent Document 7). The speech encoder 122a may also be a speech feature extractor incorporating ResDAVEnet or a self-attention mechanism (Non-Patent Document 7).
[0046] The audio feature calculation unit 121 inputs the Mel filter bank sequence to the audio encoder 122a, which then outputs an audio feature of (time, channel)=(64, d).
[0047] Speech features can be viewed as a d-dimensional feature vector sequence compressed on the time axis.
[0048] 5, d, which corresponds to the number of channels, is 1024. Furthermore, the video encoder 112a and the audio encoder 122a are not limited to those described above.
[0049] Here, the i-th pair data of input video and audio is expressed as in equation (1).
[0050]
number
[0051] Moreover, the video feature and the audio feature corresponding to the i-th pair data are expressed as in equation (2).
[0052]
number
[0053] The loss function construction unit 131 constructs a loss function such that each model is trained so that pairs of video features and audio features shown in equation (2) are placed close to each other in the shared latent space (embedding space) and are placed far from each other in different videos and audio.
[0054] For example, the loss function construction unit 131 can construct a loss function using Triplet loss (Non-Patent Document 3) or Masked Margin Softmax (MMS loss) (Non-Patent Document 5). In this embodiment, the loss function construction unit 131 constructs a loss function using MMS loss.
[0055] The loss functions using MMS loss are shown in equations (3), (4), and (5).
[0056]
number
[0057]
number
[0058]
number
[0059] Here, B in equations (4) and (5) is the batch size. Also, the similarity Z m,n is equal to the left side of equation (6).
[0060]
number
[0061] The loss function in equation (3) can be said to be a loss function that calculates the similarity between all video and audio pairs in a batch and learns the parameters of the video encoder and audio encoder so that the similarity between the pairs is high.
[0062] Furthermore, the numerators on the right-hand sides of equations (4) and (5) are the similarity Z m,m On the other hand, the denominator is the similarity Z m,m and the similarity Z m,n (m ≠ n).
[0063] Moreover, equation (4) is the loss when considering similarity based on video, while equation (5) is the loss when considering similarity based on audio.
[0064] Minimizing equations (4) and (5) corresponds to making the numerator larger (the similarity is larger when there is a pair) and the denominator smaller (the similarity is smaller when there is no pair).
[0065] Note that δ is a hyperparameter that represents a margin, and constrains the similarity of the pair to be further increased by δ.
[0066] Here, S included in the formula (6) for calculating the similarity i,j (m,n) and G i,j are calculated by equations (7) and (8), respectively.
[0067]
number
[0068]
number
[0069] Equation (8) is a guided attention method that emphasizes the temporal proximity of objects and events that appear in the video and audio. g is a hyperparameter.
[0070] Returning to FIG. 5, the loss function construction unit 131 calculates the dot product of the video feature amount and the audio feature amount to obtain a tensor (Audio Visual Affinity Tensor) indicating the similarity between video and audio.
[0071] Furthermore, the loss function construction unit 131 obtains a similarity by performing spatial mean pooling on the tensors, weighting the result using guided attention, and further averaging the result.
[0072] The guided attention shown in Figure 5 and equation (8) assumes that objects and events appear in the video and audio at almost the same time, and assigns large weights to the diagonal components. On the other hand, there may be cases where the appearance of the video and audio is out of sync.
[0073] For example, in live sports broadcasts, a time lag occurs because an announcer describes an object or event in audio after it occurs in the video.
[0074] In addition, in an explanatory video of cooking or the like, the chef may explain the steps he or she is about to take by audio, after which objects or events related to those steps may appear in the video.
[0075] For example, the sound "hit me from the front" in FIG. 4 appears a certain amount of time after the event of being hit from the front occurs in the video.
[0076] Therefore, the loss function construction unit 131 may calculate the guided attention using an equation including the hyperparameters i′ and j′, as in equation (9).
[0077]
number
[0078] In addition, σ g It is also possible to adjust the time difference as described above by adjusting the time.
[0079] Furthermore, when the triplet loss is adopted as the loss function, the loss function construction unit 131 constructs the loss function as shown in equation (10).
[0080]
number
[0081] Here, s(x, y) is the similarity between video feature x and audio feature y.
[0082] The update unit 132 updates the parameters of the video encoder and the audio encoder while reducing the loss function using the optimization algorithm Adam (Non-Patent Document 6).
[0083] For example, the update unit 132 sets the following hyperparameters when executing Adam: Weight Decay: 4×10 -5 Initial learning rate: 0.001 β1=0.95, β2=0.99
[0084] The optimization algorithm used by the update unit 132 is not limited to Adam, and may be so-called stochastic gradient descent (SGD) or RMSProp.
[0085] In this way, the update unit 132 updates the parameters of each model so that the similarity between the video feature and the audio feature, in which the proximity is emphasized by the guided attention, is increased.
[0086] Guided attention can be described as weighting the closer the corresponding times of video features and audio features are to each other.
[0087] That is, the update unit 132 updates the parameters of each model so that the similarity obtained by multiplying the value obtained by multiplying the elements of the video feature and the audio feature by a weight that increases the closer the time corresponding to each element is, increases.
[0088] The update unit 132 may update the parameters based on the loss function using guided attention calculated by equation (9).
[0089] In this case, the update unit 132 updates the parameters of each model so that the similarity obtained by multiplying the value obtained by multiplying the elements of the video feature and the audio feature by a weight that increases the closer the time corresponding to each element is to the time at which a specified shift is introduced, is increased.
[0090] [Processing of the first embodiment] Fig. 6 is a flowchart showing a process flow of the learning device according to the first embodiment. As shown in Fig. 6, first, a data set of a pair of a video and an audio caption corresponding to the video is input to the learning device 10 (step S101).
[0091] Next, the learning device 10 calculates a d-dimensional video feature vector from the video using a video encoder (step S102).
[0092] Next, the learning device 10 calculates a d-dimensional audio feature vector from the audio caption using a voice encoder (step S103).
[0093] Here, the learning device 10 configures a loss function based on the similarity between the video feature vector and the audio feature vector taking into account guided attention (step S104).
[0094] Then, the learning device 10 updates the parameters of each encoder so that the loss function is optimized (step S105).
[0095] At this time, if the termination condition is satisfied (step S106, Yes), the learning device 10 terminates the process. On the other hand, if the termination condition is not satisfied (step S106, No), the learning device 10 returns to step S102 and repeats the process.
[0096] For example, the termination condition is that the amount of update of the parameter is equal to or less than a threshold, and the number of updates of the parameter is equal to or greater than a certain number.
[0097] The video feature calculation unit 111 calculates a video feature, which is a feature of a video included in a data set of a video and audio pair, using a model that receives a video as an input and outputs a feature obtained by mapping the video to a first embedding space. The audio feature calculation unit 121 calculates an audio feature, which is a feature of audio included in the data set, using an audio encoder that receives a audio as an input and outputs a feature obtained by mapping the audio to a second embedding space. The update unit 132 updates parameters of the models used by the video feature calculation unit 111 and the audio feature calculation unit 121 so that the similarity between the video feature and the audio feature, which is calculated by emphasizing the temporal proximity of a predetermined event appearing in the video and audio, becomes larger.
[0098] A frame of an event in a video and a sound corresponding to the event have the property of being present close to each other in time. The learning device 10 can effectively learn a model by emphasizing such a property. As a result, according to the present embodiment, it is possible to reduce the cost of labeling objects and events in a video.
[0099] The update unit 132 updates the parameters of each model so that the similarity between the video feature and the audio feature, in which the proximity is emphasized by the guided attention, is increased. In this way, by using the guided attention, it is possible to weight each element of the feature represented by a tensor.
[0100] The update unit 132 updates the parameters of each model so that the similarity obtained by multiplying the value obtained by multiplying the elements of the video feature amount and the audio feature amount by a weight that increases as the time corresponding to each element approaches, increases. This makes it possible to emphasize the temporal proximity between events in the video, such as events and objects, and audio.
[0101] The update unit 132 updates the parameters of each model so that the similarity obtained by multiplying the value obtained by multiplying the elements of the video feature amount and the audio feature amount by a weight that increases as the time corresponding to each element is closer to the time when a predetermined shift is generated, increases. This makes it possible to deal with the time shift between the event / object and the audio.
[0102] [Second embodiment] In the second embodiment, a process of actually performing inference using the model trained in the first embodiment will be described. Cross-modal search becomes possible using trained video and audio encoders.
[0103] Cross-modal search refers to searching for data in different formats. For example, cross-modal search includes searching for video from audio, searching for audio from video, searching for audio in one language from audio in another language, etc. In addition, in the description of each embodiment, the same reference numerals are used for units having the same functions as those in the previously described embodiments, and the description will be omitted as appropriate.
[0104] [Configuration of the second embodiment] Fig. 7 is a diagram showing an example of the configuration of a search device according to the second embodiment. As shown in Fig. 7, the search device 20 has a video feature calculation unit 211, an audio feature calculation unit 221, and a search unit 232. The search device 20 also stores video encoder information 212, audio encoder information 222, and video feature information 231.
[0105] A video and an audio caption are input to the search device 20. The audio caption input to the search device 20 is a query for a search. For example, the search device 20 outputs a video obtained by the search as a search result.
[0106] Similar to the video feature calculation unit 111 of the learning device 10, the video feature calculation unit 211 receives a video as an input and calculates a video feature. However, the video encoder information 212 has already been trained by the method described in the first embodiment.
[0107] The image feature amount information 231 stores the calculated image feature amount as the image feature amount information 231 .
[0108] The search unit 232 searches the stored video feature information 231 for a video feature similar to the audio feature 221 calculated by the audio feature calculation unit 221. The method of calculating the similarity is the same as in the first embodiment.
[0109] [Processing of the second embodiment] Fig. 8 is a flowchart showing a flow of processing by the search device according to the second embodiment. As shown in Fig. 8, first, a plurality of videos and a voice as a query are input to the search device 20 (step S201).
[0110] Next, searching device 20 calculates a d-dimensional video feature vector from each video using a video encoder (step S202).
[0111] Next, the searching device 20 calculates a d-dimensional audio feature vector from the audio caption using an audio encoder (step S203).
[0112] Then, the search device 20 searches for a video feature vector similar to the audio feature vector (step S204).
[0113] Furthermore, the searching device 20 outputs an image corresponding to the image feature vector obtained by the search (step S205).
[0114] [Effects of the second embodiment] In this way, according to the second embodiment, cross-modal search can be performed to search for video from audio.
[0115] [Experimental Results] An experiment performed using the searching device of the second embodiment will be described below. In the experiment, a search was performed by the searching device of the second embodiment using an encoder trained by the learning device of the first embodiment.
[0116] First, in the experiment, we learned to associate video and audio using sumo wrestling videos as shown in Figure 4. Specifically, we recorded 170 hours of sumo wrestling videos and manually labeled the times when the bouts were decided and the winning moves.
[0117] Furthermore, we selected nine types of winning moves that appeared frequently and created the dataset shown in Figure 9. Figure 9 shows the dataset. In the experiment, we used video and audio streams for a total of 10 seconds, including five seconds before and after the moment when the game was decided.
[0118] Here, in order to increase the amount of training data, in the experiments, video and audio streams obtained at delays of ±5, ±10, ±15, ±20, and ±25 seconds from the moment the game was decided were also used as training data (data augmentation).
[0119] The evaluation scale used was Recall@N. For example, when searching for audio to pair with a video query's feature vector from 90 pieces of evaluation data, the similarity with each audio feature vector is calculated and ranked to determine the top five. If the audio to pair with the query is included in these five, the search is considered successful. The same process is performed for the 90 videos in the evaluation data, and the percentage of audio to pair with the query that is included in the top five is defined as Recall@5. Recall@3 and Recall@1 were calculated in the same way.
[0120] Fig. 10 shows the experimental results. The baseline corresponds to the conventional technique, and is the case where Guided Attention is not used, i.e., i,j = 1.
[0121] 10, it can be seen that the Recall rate is significantly improved according to the Proposed embodiment. Moreover, the Recall rate is further improved by increasing the training data through data expansion.
[0122] The results of recounting the winning moves are shown in Figure 11. Figure 11 shows the experimental results.
[0123] In the case of Recall@5, if the audio of the "winning move" that was the same as the video query was included within the top 5, the answer was considered correct. Similarly, if the video of the "winning move" that was the same as the voice query was included within the top 5, the answer was considered correct.
[0124] Looking at the results in Figure 11, the recall has improved compared to the results in Figure 10. Furthermore, the degree of improvement in recall suggests that the "deciding move" has been learned as a concept.
[0125] 12 and 13 are diagrams showing the corresponding relationship between video and audio. The graphs in Fig. 12 and 13 are visualizations of formula (7).
[0126] Fig. 12 corresponds to this embodiment (Proposed), and Fig. 13 corresponds to the conventional technique (Baseline).
[0127] It can be seen from FIGS. 12 and 13 that the events (actions) in the video are more clearly associated with the sounds in this embodiment than in the conventional technology.
[0128] Figures 14 and 15 are diagrams showing the corresponding relationship between video and audio in a scene different from that in Figures 12 and 13. Figures 14 and 15 also show the same tendency as Figures 12 and 13.
[0129] [System configuration, etc.] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of them can be functionally or physically distributed or integrated in any unit depending on various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.
[0130] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.
[0131] [program] In one embodiment, the learning device 10 and the search device 20 can be implemented by installing a program that executes the above learning process or search process as package software or online software on a desired computer. For example, the above program can be executed by an information processing device, causing the information processing device to function as the learning device 10 or the search device 20. The information processing device here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), as well as slate terminals such as PDAs (Personal Digital Assistants).
[0132] The learning device 10 and the search device 20 can also be implemented as a server device that provides a service related to the above learning process or search process to a client, the client being a terminal device used by a user. For example, the server device is implemented as a server device that provides a service that receives learning data as input and outputs trained encoder information. In this case, the server device may be implemented as a Web server or as a cloud that provides a service related to the above process by outsourcing.
[0133] 16 is a diagram showing an example of a computer that executes a learning program. The search program may also be executed by a similar computer. The computer 1000 has, for example, a memory 1010 and a CPU 1020. The computer 1000 also has a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. Each of these components is connected by a bus 1080.
[0134] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.
[0135] The hard disk drive 1090 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process of the learning device 10 is implemented as a program module 1093 in which computer-executable code is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for executing the same process as the functional configuration of the learning device 10 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD.
[0136] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes the processing of the above-described embodiment. The CPU 1020 may be programmed to execute the processing of the above-described embodiment in connection with the memory.
[0137] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable, non-transient, computer-readable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070. [Explanation of symbols]
[0138] 10 Learning Device 20 Search device 111, 211 Image feature calculation unit 112, 212 Video Encoder Information 112a Video Encoder 121, 221 Speech feature calculation unit 122, 222 Audio Encoder Information 122a Audio Encoder 131 Loss function component 132 Update Department 151 Videos 152 Audio Captions 231 Video Feature Information 232 Search Department
Claims
1. a video feature calculation unit that calculates video features, which are features of video included in a data set of pairs of video and audio, using a model in which a video is input and features obtained by mapping the video to a first embedding space are output; a speech feature calculation unit that calculates speech features, which are features of each speech included in the dataset, using a model that receives speech as input and outputs features obtained by mapping the speech into a second embedding space; an updating unit that updates parameters of each model used by the video feature calculation unit and the audio feature calculation unit so as to increase a similarity between the video feature and the audio feature, the similarity being calculated by emphasizing a temporal proximity of a predetermined event appearing in the video and the audio; A learning device comprising:
2. The learning device according to claim 1, characterized in that the update unit updates parameters of each model so as to increase a similarity between the video features and the audio features, the similarity being such that the proximity is emphasized by guided attention.
3. The learning device according to claim 1, wherein the update unit updates parameters of each model so as to increase a similarity obtained by multiplying a value obtained by multiplying elements of the video feature and the audio feature by a weight that increases as the time corresponding to each element becomes closer.
4. The learning device according to claim 3, wherein the update unit updates parameters of each model so as to increase a similarity obtained by multiplying a value obtained by multiplying elements of the video feature and the audio feature by a weight that increases as a predetermined shift is applied to the time corresponding to each element.
5. A learning method performed by a learning device, comprising: a video feature calculation step of calculating video features, which are features of video included in a data set of video and audio pairs, using a model in which a video is input and features obtained by mapping the video to a first embedding space are output; a speech feature calculation step of calculating speech features, which are features of each speech included in the dataset, using a model in which speech is input and features obtained by mapping the speech into a second embedding space are output; an updating step of updating parameters of each model used in the video feature calculation step and the audio feature calculation step so as to increase a similarity between the video feature and the audio feature, the similarity being calculated by emphasizing a temporal proximity of a predetermined event appearing in the video and the audio; A learning method comprising:
6. A learning program for causing a computer to function as the learning device according to any one of claims 1 to 4.
