Moving-image rhetorical structure analysis learning device, moving-image rhetorical structure estimation device, moving-image rhetorical structure analysis learning method, moving-image rhetorical structure estimation method, and program
The video rhetorical structure analysis learning device addresses the challenge of analyzing uncaptioned videos by pre-training an encoder and using pseudo training data to learn a rhetorical structure tree, enabling effective analysis without captions.
Patent Information
- Application Number
- JP2023032042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for video rhetorical structure analysis rely on captions, making it impossible to handle videos without captions.
A video rhetorical structure analysis learning device that pre-trains an encoder using captions and converts event sections into vectors, utilizing pseudo training data to learn a rhetorical structure tree without captions, employing a neural network model with pre-learning and additional learning phases.
Enables rhetorical structure analysis of videos without captions, leveraging pre-training and pseudo training data to optimize model parameters effectively.
Smart Images

Figure 2024124103000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a moving image rhetorical structure analysis learning device, a moving image rhetorical structure estimation device, a moving image rhetorical structure analysis learning method, a moving image rhetorical structure estimation method, and a program. [Background technology]
[0002] Video rhetorical structure analysis, which automatically estimates the structure of a video, regards the video as a series of event intervals (a sequence of frames with start and end times) and represents the relationships between the event intervals as a binary tree (rhetorical structure tree) with a recursive structure (Figure 1). Note that the leaves of the tree are single event intervals. Non-terminal nodes that represent event spans (a single event interval or a series of such intervals) have the roles of N (core) and S (satellite), and N with which S is paired is modified by a pre-defined rhetorical relationship (such as Cause or Supplement in the figure). In other words, a rhetorical relationship label is assigned to the edge going from S to N. Below are the strings that are treated as rhetorical relationship labels.
[0003] Preparation, Cause, Result, Supplement, Comparison, List, Background, Summary, Restatement, Attribution, Elaboration, En-ablement, Manner-means, Same-unit Exceptionally, if the relationship between two spans governed by two non-terminal nodes is parallel, both are assigned N, and the edge labels of both are assigned rhetorical relation labels (List, Same-unit, Comparison) that represent the parallel relationship. This structure follows the tree construction rules in rhetorical structure theory.
[0004] In order to estimate such a tree structure, a method has been proposed that utilizes captions for event segments (Non-Patent Document 1). In this method, a normal rhetorical structure analysis is performed using the captions, and a rhetorical structure tree of the event segments is obtained based on the correspondence between the captions and the event segments. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Arjun R. Akula and Song-Chun Zhu, "Discourse Parsing in Videos: A Multi-modal Appraoch", In CVPR Workshop on Language and Vision 2020 Summary of the Invention [Problem to be solved by the invention]
[0006] The method in Non-Patent Document 1 is based on the premise that it targets videos with captions. In other words, it merely performs rhetorical structure analysis of the text, and has the problem that it cannot handle videos without captions.
[0007] The present invention has been made in consideration of the above points, and has an object to enable rhetorical structure analysis of videos that are not captioned. [Means for solving the problem]
[0008] In order to solve the above problem, the video rhetorical structure analysis learning device has a first learning unit that pre-trains the encoder based on a caption obtained based on a vector output by an encoder constituting a model that inputs a video and outputs a rhetorical structure tree of the video when it inputs a frame sequence that constitutes part of the video, and the caption for the frame sequence, and a rhetorical structure tree that is output by a neural network constituting the model when it inputs a vector for each span, which is one or more consecutive frame sequences based on the vector output by the pre-trained encoder for a frame sequence corresponding to each leaf of the first rhetorical structure tree, and a second learning unit that learns the model based on the first rhetorical structure tree. Effect of the Invention
[0009] It is possible to perform rhetorical structure analysis on videos that are not captioned. [Brief description of the drawings]
[0010] [Figure 1] FIG. 13 is a diagram for explaining video rhetorical structure analysis. [Diagram 2] FIG. 13 illustrates conversion from an event interval to a vector by a clip encoder. [Diagram 3] 1 is a diagram illustrating an example of a hardware configuration of a video rhetorical structure analysis learning device 10 in an embodiment of the present invention. [Figure 4] 1 is a diagram illustrating an example of a functional configuration of a video rhetorical structure analysis learning device 10 in an embodiment of the present invention. [Diagram 5] FIG. 13 is a diagram for explaining pre-learning of a clip encoder. [Figure 6] FIG. 13 is a diagram for explaining parameter optimization based on a transition-type analysis method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In this embodiment, the rhetorical structure of a video that is annotated with information on the sequence of event sections (a sequence of frames with start and end times) in the video is analyzed without the need for captions. However, a sufficient amount of training data is required for learning, that is, parameter estimation, of a neural network (hereinafter referred to as a "video rhetorical structure analysis model") that takes a video (annotated with events) as input and outputs a rhetorical structure tree (binary tree) with event sections as leaves. However, the cost of annotating a rhetorical structure tree that represents the relationships between event sections is very high. Therefore, it is difficult to prepare large-scale training data. Note that the identification of event sections in a video can be done automatically by using the following existing technology (hereinafter referred to as "Reference 1"), etc.
[0012] [Reference 1] Krishna, Ranjay and Hata, Kenji and Ren, Frederic and Fei-Fei, Li and Niebles, Juan Carlos, "Dense-Captioning Events in Videos", In Proc. of International Conference on Computer Vision (ICCV),2017 In this embodiment, to solve this problem, a dataset in which pairs of event segments and captions are given for videos, developed in ActivityNet Captions (Reference 1) and the like, is utilized. First, the event segments are converted into vectors (clip expression vectors), and a task of generating captions from the event segments is used as pre-training for a clip encoder (FIG. 2) that constitutes part of the video rhetorical structure analysis model. Then, a text rhetorical structure analyzer is applied to obtain a rhetorical structure tree for the video in the same way as in Non-Patent Document 1, and this is used as pseudo training data to perform pre-training of the entire network that constitutes the video rhetorical structure analysis model (the entire video rhetorical structure analysis model). Then, additional training of the entire video rhetorical structure analysis model is performed again using the training data.
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 3 is a diagram showing an example of the hardware configuration of a video rhetorical structure analysis learning device 10 in an embodiment of the present invention. The video rhetorical structure analysis learning device 10 in Fig. 3 has a drive device 100, an auxiliary storage device 102, a memory device 103, a processor 104, an interface device 105, and the like, which are all connected to each other via a bus B.
[0014] The program that realizes the processing in the video rhetorical structure analysis learning device 10 is provided by a recording medium 101 such as a CD-ROM. When the recording medium 101 storing the program is set in the drive device 100, the program is installed from the recording medium 101 via the drive device 100 into the auxiliary storage device 102. However, the program does not necessarily have to be installed from the recording medium 101, but may be downloaded from another computer via a network. The auxiliary storage device 102 stores the installed program as well as necessary files, data, etc.
[0015] The memory device 103 reads out and stores the program from the auxiliary storage device 102 when an instruction to start the program is received. The processor 104 is a CPU or a GPU (Graphics Processing Unit), or a CPU and a GPU, and executes functions related to the video rhetorical structure analysis learning device 10 according to the program stored in the memory device 103. The interface device 105 is used as an interface for connecting to a network.
[0016] Fig. 4 is a diagram showing an example of the functional configuration of a video rhetorical structure analysis learning device 10 in an embodiment of the present invention. In Fig. 4, the video rhetorical structure analysis learning device 10 has a clip encoder pre-learning unit 11, a data extension unit 12, a pre-learning unit 13, and an additional learning unit 14. Each of these units is realized by processing executed by a processor 104 of one or more programs installed in the video rhetorical structure analysis learning device 10.
[0017] Based on the functional configuration of Figure 4, the video rhetorical structure analysis learning device 10 pre-trains a clip encoder using pairs of event sections and captions, then pre-trains the parameters of the entire video rhetorical structure analysis model using input pseudo training data, and further learns the parameters of the entire video rhetorical structure analysis model using the training data, thereby outputting the final parameters (Figure 4).
[0018] Each part will be described in detail below.
[0019] [Clip Encoder Pre-training Part 11] The clip encoder inputs a sequence of video frames corresponding to an event section and generates a clip representation vector (FIG. 2). As the clip encoder, existing technologies such as TSP (Temporally-Sensitive Pretraining of Video Encoders) and VideoSwin Transformer may be used (FIG. 2). However, in this embodiment, in order to make the clip representation vector generated by the clip encoder more suitable for video rhetorical structure analysis, the clip encoder pre-training unit 11 pre-trains the clip encoder by inputting a sequence of frames corresponding to an event section and outputting the caption of the event section. For pairs of event sections and captions, a sufficient amount of data for pre-training can be used by using ActivityNet Captions, YouCook2, or the like.
[0020] 5 is a diagram for explaining pre-learning of the clip encoder. As described above, the clip encoder pre-learning unit 11 performs pre-learning of the event section p t (t=1 to M). The clip encoder pre-learning unit 11 receives the event interval p t The clip representation vector v generated for t The clip encoder pre-training unit 11 inputs the clip representation vector v t The caption output by the transformer for c t and event section p t Based on a comparison with the caption entered for (caption c t and event section p t We optimize the parameters of the clip encoder and transformer (to minimize the input caption and loss).
[0021] In Figure 5, v t From c tAn example was given of using a transformer to generate v t From c t The model for generating the vector is not limited to a specific one as long as it is a sequence transformation model such as LSTM.
[0022] The parameters of the clip encoder learned here are set as initial values of the clip encoder in the pre-learning unit 13 .
[0023] [Data Extension 12] The data augmentation unit 12 generates pseudo training data by utilizing a text rhetorical structure analyzer. The data augmentation unit 12 first applies the rhetorical structure analyzer trained using text to captions in a dataset in which pairs of event sections and captions are given, such as ActivityNet Captions or YouCook2, to perform rhetorical structure analysis, thereby obtaining a rhetorical structure tree with the captions as leaves. The data augmentation unit 12 obtains a rhetorical structure tree with the event sections as leaves from the correspondence between the captions and the event sections, and uses this as pseudo training data.
[0024] [Pre-learning section 13] The pre-learning unit 13 receives as input the pseudo training data generated by the data expansion unit 12, and optimizes the randomly initialized parameters of the feedforward network that constitutes part of the video rhetorical structure analysis model and the parameters of the clip encoder pre-learned by the clip encoder pre-learning unit 11.
[0025] The analytical method for parameter optimization is not limited to a specific one. Here, as shown in FIG. 6, parameter optimization based on a transition-type analytical method will be described. t (t=1 to M) are event intervals as leaves in the pseudo training data (a rhetorical structure tree with event intervals as leaves).
[0026] In the transition-type analysis method, a stack is used to store analyzed trees (subtrees) from the pseudo training data (rhetorical structure tree with event intervals as leaves) and a queue is used to store unanalyzed event intervals. A tree is constructed by applying the shift (push the event interval at the top of the queue to the top of the stack) and reduce (combine the tree at the top of the stack with the event interval at the top of the queue to create a new tree and push it to the top of the stack) operations using the trees stored in the top two of the stack and the event interval at the top of the queue. Note that the two trees stored in the stack are also consecutive event intervals, and if any span (consecutive event intervals on 1) can be vectorized, the shift and reduce operations can be formulated as a classification problem. The span vector (span representation vector) can be obtained by averaging or combining (weighted) the representation vector of the leftmost clip (the event interval at the beginning of the span vectorized by the clip encoder) and the representation vector of the rightmost clip (the event interval at the end of the span vectorized by the clip encoder). The span encoder, which constitutes part of the video rhetorical structure analysis model in FIG. 6, generates a span representation vector for each span by such averaging or combination.
[0027] Let us denote the vectorized spans (i.e., span representation vectors) by u s1 (2nd in stack), u s0 (top of stack), u q0 (Queue head), the shift and reduce operations are determined using the following formula.
[0028] s * =FFN * (Concat(u s0 ,u s1 ,u q0 )) (1) Concat is a function that combines vectors. * is a feedforward network that constitutes part of the video rhetorical structure analysis model. act (Action classifier in Figure 6) is a feedforward network (FFN) that decides whether to shift or reduce. nuc(The nuclear classifier in Figure 6) is the left and right span of the reduction (the top u of the stack s0 and u at the head of the queue q0 ) is connected as NS, SN, or NN. rel The rhetorical relation classifier in Figure 6 is a feedforward network that determines the rhetorical relation between the left and right spans. * represents the classification result, and s act is a shift or reduction, s nuc is either NS, SN, or NN, s rel represents one of the rhetorical relation labels.
[0029] The pre-training part 13 is the entire video rhetorical structure analysis model (FFN * (feedforward network), span encoder and clip encoder) parameters are act , s nuc , s rel Based on the comparison with the correct answer for (s act , s nuc , s rel The optimized parameters are passed to the additional learning unit 14. act , F.F.N. nuc , F.F.N. rel ) separately, the cross entropy loss is optimized for each FFN. If three FFNs are combined, the cross entropy loss is optimized for the combined FFN. * (s act , s nuc , s rel ) is contained in the pseudo training data.
[0030] [Additional Learning Section 14] The additional learning unit 14 optimizes the parameters of the feedforward network, span encoder, and clip encoder, which are initialized with the parameters determined by the pre-learning unit 13, using training data (data including a plurality of pairs of a sequence of event sections and a rhetorical structure tree (binary tree) that is a correct answer for the sequence). The parameter optimization procedure is the same as that of the pre-learning unit 13.
[0031] The video rhetorical structure analysis model learned in this way can take a video as input and output a rhetorical structure tree with each event section constituting the video as a leaf. Therefore, any computer can use the video rhetorical structure model to function as a video rhetorical structure estimation device having an estimation unit that takes a video as input and outputs a rhetorical structure tree with each event section constituting the video as a leaf. The video rhetorical structure analysis learning device 10 may function as the video rhetorical structure estimation device.
[0032] As described above, this embodiment makes it possible to perform rhetorical structure analysis on videos that do not have captions. By pre-training the clip encoder using a caption generation task, pre-training the parameters of the clip encoder and the feedforward network with pseudo training data, and additionally training with training data, we can expect to achieve precise parameter optimization.
[0033] In this embodiment, the clip encoder pre-training unit 11 is an example of a first training unit. The pre-training unit 13 is an example of a second training unit. The additional training unit 14 is an example of a third training unit. The pseudo training data is an example of a first rhetorical structure tree. The clip encoder is an example of an encoder. FFN * is an example of a neural network.
[0034] Although the embodiment of the present invention has been described in detail above, the present invention is not limited to such specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]
[0035] 10 Video rhetorical structure analysis learning device 11 Clip Encoder Pre-Training Part 12 Data Extension Section 13 Pre-learning section 14 Additional Learning Section 100 Drive device 101 Recording media 102 Auxiliary storage device 103 Memory device 104 processors 105 Interface device B Bus
Claims
1. a first learning unit that pre-learns the encoder based on a caption obtained based on a vector output by an encoder that inputs a video and configures a model that outputs a rhetorical structure tree of the video when a frame sequence that constitutes a part of the video is input, and based on the caption for the frame sequence; a rhetorical structure tree output by the neural network constituting the model when a vector for each span, which is one or more consecutive frame sequences based on vectors output by the pre-trained encoder for frame sequences corresponding to each leaf of a first rhetorical structure tree, is input, and a second learning unit that learns the model based on the first rhetorical structure tree; A video rhetorical structure analysis learning device comprising:
2. the first rhetorical structure tree is a rhetorical structure tree generated from a rhetorical structure tree of a caption based on a correspondence relationship between the caption and a frame sequence; 2. The video rhetorical structure analysis learning device according to claim 1.
3. a third learning unit that additionally learns the model based on a rhetorical structure tree that is output when the neural network receives a vector for each span that is based on a vector that the encoder, trained by the second learning unit, outputs when the encoder receives a sequence of multiple frames that constitute a video, and based on the rhetorical structure tree that is a correct answer for the video; 3. The video rhetorical structure analysis learning device according to claim 2, further comprising:
4. an estimation unit that estimates a rhetorical structure tree of an input video by using the model trained by the video rhetorical structure analysis learning device according to any one of claims 1 to 3; A video rhetorical structure estimation device comprising:
5. , a first learning procedure for pre-learning the encoder based on a caption obtained based on a vector output by an encoder that inputs a video and configures a model that outputs a rhetorical structure tree of the video when a frame sequence that constitutes a part of the video is input, and the caption for the frame sequence; a rhetorical structure tree that is output by a neural network constituting the model when a vector for each span, which is one or more consecutive frame sequences based on vectors output by the pre-trained encoder for frame sequences corresponding to each leaf of a first rhetorical structure tree, is input, and the model is trained based on the first rhetorical structure tree; and A video rhetorical structure analysis learning method characterized in that the above is executed by a computer.
6. an estimation step of estimating a rhetorical structure tree of an input video by using the model trained by the video rhetorical structure analysis learning device according to any one of claims 1 to 3; A video rhetorical structure estimation method, comprising:
7. a first learning procedure for pre-learning the encoder based on a caption obtained based on a vector output by an encoder that inputs a video and configures a model that outputs a rhetorical structure tree of the video when a frame sequence that constitutes a part of the video is input, and the caption for the frame sequence; a rhetorical structure tree that is output by a neural network constituting the model when a vector for each span, which is one or more consecutive frame sequences based on vectors output by the pre-trained encoder for frame sequences corresponding to each leaf of a first rhetorical structure tree, is input, and the model is trained based on the first rhetorical structure tree; and A program characterized by causing a computer to execute the above.
8. an estimation step of estimating a rhetorical structure tree of an input video by using the model trained by the video rhetorical structure analysis learning device according to any one of claims 1 to 3; A program characterized by causing a computer to execute the above.
