# US 10,958,925 B2 · Dense video captioning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,958,925 B2
- Document ID: US10958925B2
- Status: Granted
- Kind: B2
- Application number: 16/687,405
- Filed: 2019-11-18
- Published: 2020-03-12
- Granted: 2021-03-23
- Earliest claimed: 2017-11-15
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Yingbo Zhou; Luowei Zhou; Caiming Xiong; Richard Socher
- Web page: https://patentgrep.com/patent/US10958925B2

## CPC

- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/187: the unit being a scalable video layer
- H04N 19/33: in the spatial domain
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/60: using transform coding
- H04N 21/8126: {involving additional data, e.g. news, sports, stocks, weather forecasts}
- H04N 21/4884: {for displaying subtitles}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Systems and methods for dense captioning of a video include a multi-layer encoder stack configured to receive information extracted from a plurality of video frames, a proposal decoder coupled to the encoder stack and configured to receive one or more outputs from the encoder stack, a masking unit configured to mask the one or more outputs from the encoder stack according to one or more outputs from the proposal decoder, and a decoder stack coupled to the masking unit and configured to receive the masked one or more outputs from the encoder stack. Generating the dense captioning based on one or more outputs of the decoder stack. In some embodiments, the one or more outputs from the proposal decoder include a differentiable mask. In some embodiments, during training, error in the dense captioning is back propagated to the decoder stack, the encoder stack, and the proposal decoder.

## Claims

### Claim 1

A system for generating dense captioning for a video, the system comprising:
an encoder configured to encode information extracted from a plurality of video frames to generate one or more outputs;
a proposal decoder configured to receive the one or more outputs from the encoder and to generate one or more proposals;
a masking unit configured to iteratively mask the one or more outputs from the encoder according to one or more proposals generated by the proposal decoder; and
a decoder configured to iteratively receive the masked one or more outputs from the encoder for each of the one or more proposals and to generate one or more outputs;
the system being configured to generate a dense captioning for the video for each of the one or more proposals based on the one or more outputs of the decoder.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one or more outputs from the proposal decoder include a differentiable mask.

### Claim 3 (depends on 2)

The system of claim 2, wherein, during training, error in the dense captioning is back propagated to the decoder, the encoder, and the proposal decoder.

### Claim 4 (depends on 1)

The system of claim 1, wherein the encoder comprises a self-attention layer and a feed forward network.

### Claim 5 (depends on 4)

The system of claim 4, wherein the self-attention layer is configured to encode features across the plurality of video frames.

### Claim 6 (depends on 1)

The system of claim 1, wherein output from the encoder is coupled to the proposal decoder.

### Claim 7 (depends on 1)

The system of claim 1, comprising a convolutional neural network for extracting the information from the plurality of video frames.

### Claim 8 (depends on 1)

The system of claim 1, wherein the proposal decoder comprises a temporal convolutional network.

### Claim 9 (depends on 1)

The system of claim 1, wherein the decoder comprises a self-attention layer, a multi-head attention layer, and a feed forward network.

### Claim 10

A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform a method for generating dense captioning for a video comprising:
encoding information extracted from a plurality of video frames to generate one or more encoding outputs;
generating one or more proposals based on the one or more encoding outputs;
generating, for each of the one or more proposals, a differentiable mask;
iteratively masking the one or more encoding outputs according to the one or more proposals;
generating one or more words descriptive of the plurality of video frames based on the masked encoding outputs; and
generating a dense captioning for the plurality of video frames based on the one or more generated words.

### Claim 11 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein, during training, error in the dense captioning is back propagated.

### Claim 12 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein encoding comprises:
receiving as input the information extracted from the plurality of video frames;
determining a self-attention based on the received input; and
feeding the determined self-attention forward.

### Claim 13 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein generating the one or more proposals comprises performing a temporal convolution on the encoding outputs.

### Claim 14 (depends on 9)

The non-transitory machine-readable medium of claim 9, wherein generating the one or more words comprises:
determining a self-attention of an output;
determining a multi-head attention based on the self-attention and the masked outputs; and
feeding the determined multi-head attention forward.

### Claim 15

A method comprising:
encoding, using an encoder, information extracted from a plurality of video frames to generate one or more outputs;
generating, using a proposal decoder, one or more proposals based on the encoding;
generating, for each of the one or more proposals, a differentiable mask;
iteratively masking, by a masking unit, the one or more outputs from the encoder according to the one or more proposals generated by the proposal decoder;
generating, using a decoder, one or more words descriptive of the plurality of video frames based on the masked outputs from the encoder; and
generating a dense captioning for the plurality of video frames based on the one or more words.

### Claim 16 (depends on 15)

The method of claim 15, further comprising, during training, back propagating error in the dense captioning to the decoder, the encoder, and the proposal decoder.

### Claim 17 (depends on 15)

The method of claim 15, wherein encoding comprises:
receiving as input the information extracted from the plurality of video frames;
determining a self-attention based on the received input; and
feeding the determined self-attention forward using a feed forward network.

### Claim 18 (depends on 15)

The method of claim 15, wherein generating the one or more proposals comprises performing a temporal convolution on the outputs from the encoder.

### Claim 19 (depends on 15)

The method of claim 15, wherein generating the one or more words comprises:
determining a self-attention of an output from the decoder;
determining a multi-head attention based on the self-attention and the masked outputs; and
feeding the determined multi-head attention forward using a feed forward network.
