# US 2023/0065773 A1 · Automated Video Segmentation

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

- Number: US 2023/0065773 A1
- Document ID: US20230065773A1
- Status: Published application
- Kind: A1
- Application number: 17/475,551
- Filed: 2021-09-15
- Published: 2023-03-02
- Earliest claimed: 2021-09-02
- Assignees: Gracenote, Inc.
- Applicants: Gracenote, Inc.
- Inventors: Konstantinos Antonio Dimitriou; Amanmeet Garg
- Web page: https://patentgrep.com/patent/US20230065773A1

## CPC

- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 3/045: Combinations of networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06V 10/426: Graphical representations
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/763: {Non-hierarchical techniques, e.g. based on statistics of modelling distributions}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 10/84: using probabilistic graphical models from image or video features, e.g. Markov models or Bayesian networks
- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- H04N 21/8456: {by decomposing the content in the time domain, e.g. in time segments}
- H04N 21/23418: {involving operations for analysing video streams, e.g. detecting features or characteristics (television picture signal circuitry for scene change detection H04N5/147; filtering for image enhancement G06T5/00; methods or arrangements for recognising scenes G06V20/00; arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Methods and systems for automated video segmentation are disclosed. A sequence of video frames having video segments of contextually-related sub-sequences may be received. Each frame may be labeled according to segment and segment class. A video graph may be constructed in which each node corresponds to a different frame, and each edge connects a different pair of nodes, and is associated with a time between video frames and a similarity metric of the connected frames. An artificial neural network (ANN) may be trained to predict both labels for the nodes and clusters of the nodes corresponding to predicted membership among the segments, using the video graph as input to the ANN, and ground-truth clusters of ground-truth labeled nodes. The ANN may be further trained to predict segment classes of the predicted clusters, using the segment classes as ground truths. The trained ANN may be configured for application runtime video sequences.

## Claims

### Claim 1

A method for automated video segmentation carried out by a computing system, the method comprising:
receiving a training sequence of training video frames comprising a plurality of respective training video segments, wherein the respective training video segments comprise non-overlapping respective sub-sequences of the training video frames, each of the respective sub-sequences being associated with respective contextually-related subject content, and wherein each training video frame is associated with a respective label identifying both which particular training video segment it belongs to, and a segment class associated with the particular training video segment;
analytically constructing a training video graph from the training sequence of training video frames, the training video graph comprising nodes connected by edges, wherein each node corresponds to a different one of the respective training video frames, and each edge connects a different particular pair of nodes, and is associated with both a temporal distance between the respective training video frames corresponding to the particular pair of nodes, and a respective similarity metric quantifying similarity between respective features of the respective training video frames corresponding to the particular pair of nodes;
training an artificial neural network (ANN) to compute both (i) a predicted training label for each node of the training video graph, and (ii) predicted clusters of the nodes corresponding to predicted membership among the respective training video segments of the corresponding training video frames, using the training video graph as input to the ANN, and ground-truth clusters of ground-truth labeled nodes, wherein the ground-truth labeled nodes correspond to the training video frames and their associated respective labels, and the ground-truth clusters correspond to the respective training video segments;
further training the ANN to compute a predicted segment class for each of the predicted clusters, using as ground truths the segment classes of the respective training video segments; and
configuring the trained ANN for application to one or more unseen runtime video sequences.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a runtime sequence of runtime video frames, the runtime video frames being unlabeled with respect to both any video segment of the runtime sequence and any segment class;
analytically constructing a runtime video graph from the runtime sequence of runtime video frames, the runtime video graph comprising runtime nodes connected by runtime edges, wherein each runtime node corresponds to a different one of the respective runtime video frames, and each runtime edge connects a different particular pair of runtime nodes, and is associated with both a temporal distance between the respective runtime video frames corresponding to the particular pair of runtime nodes, and a respective runtime similarity metric quantifying similarity between respective features of the respective runtime video frames corresponding to the particular pair of runtime nodes;
applying the trained ANN to the runtime video graph to compute both (i) a predicted runtime label for each runtime node of the runtime video graph and (ii) predicted runtime clusters of the runtime nodes;
further applying the trained ANN to respectively determine both a predicted runtime video segment associated with each predicted runtime cluster, and a predicted runtime segment class of each predicted runtime video segment; and
recording in memory and/or displaying segmentation information, the segmentation information being based on the predicted runtime labels, the predicted runtime video segments, and the predicted runtime segment classes, and including (i) an identification of the predicted runtime video segments, (ii) an association of each respective runtime video frame with one of the predicted runtime video segments, and (iii) for each respective predicted runtime segment class, an identification of all predicted runtime video segments belonging to the respective runtime segment class.

### Claim 3 (depends on 1)

The method of claim 1, wherein the training sequence further comprises one or more program-sequences, each corresponding to a respective content program, and each comprising a respective sub-plurality of the plurality of training video segments,
wherein the respective contextually-related subject content comprises a media content category, the media content category being at least one of regular program content, advertising content, program scene content, or thematic program content,
wherein analytically constructing the training video graph comprises constructing a respective program-content video graph for each of the one or more program-sequences,
wherein training the ANN comprises respectively training the ANN for each respective program-content video graph,
and wherein further training the ANN comprises further training the ANN for each respective program-content video graph.

### Claim 4 (depends on 1)

The method of claim 1, wherein analytically constructing the training video graph from the training sequence of training video frames comprises:
extracting from each respective training video frame the respective label, timing information indicating temporal position in the training sequence, and a respective training feature vector characterizing media data of the respective training video frame;
creating a respective training node associated with each respective training video frame and its respective training feature vector and timing information, and labeled with the respective label of the associated training video frame; and
for every respective pair of created training nodes, determining a connecting edge having a length corresponding to a temporal distance between the pair of training video frames associated with respective pair of training nodes, and a weight corresponding to a similarity metric of the respective training feature vectors of the pair of training video frames associated with the respective pair of training nodes.

### Claim 5 (depends on 4)

The method of claim 4, wherein the ANN comprises a graph neural network (GNN) and a clustering ANN,
and wherein training the ANN to compute both (i) the predicted training labels for each node of the training video graph and (ii) the predicted clusters of the nodes corresponding to predicted membership among the respective training video segments of the corresponding training video frames comprises:
training the GNN to predict a respective embedding training vector for each respective node of the training video graph, the respective embedding training vector comprising a reduced-dimension mapping of the respective training feature vector associated with the respective node; and
using the respective embedding training vectors as input, training the clustering ANN to predict clusters of the nodes corresponding to the ground-truth clusters, and to predict node labels corresponding to the respective labels of the training video frames.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
receiving a runtime sequence of runtime video frames, the runtime video frames being unlabeled with respect to both any video segment of the runtime sequence and any segment class;
analytically constructing a runtime video graph from the runtime sequence of runtime video frames, the runtime video graph comprising runtime nodes connected by runtime edges, wherein each runtime node corresponds to a different one of the respective runtime video frames, and each runtime edge connects a different particular pair of runtime nodes, and is associated with both a temporal distance between the respective runtime video frames corresponding to the particular pair of runtime nodes, and a respective runtime similarity metric quantifying similarity between respective features of the respective runtime video frames corresponding to the particular pair of runtime nodes;
applying the trained ANN to the runtime video graph to compute both (i) a predicted runtime label for each runtime node of the runtime video graph and (ii) predicted runtime clusters of the runtime nodes;
further applying the trained ANN to respectively determine both a predicted runtime video segment associated with each predicted runtime cluster, and a predicted runtime segment class of each predicted runtime video segment; and
recording in memory and/or displaying segmentation information, the segmentation information being based on the predicted runtime labels, the predicted runtime video segments, and the predicted runtime segment classes, and including (i) an identification of the predicted runtime video segments, (ii) an association of each respective runtime video frame with one of the predicted runtime video segments, and (iii) for each respective predicted runtime segment class, an identification of all predicted runtime video segments belonging to the respective runtime segment class.

### Claim 7 (depends on 6)

The method of claim 6, wherein analytically constructing the runtime video graph from the runtime sequence of runtime video frames comprises:
extracting from each respective runtime video frame timing information indicating temporal position in the runtime sequence, and a respective runtime feature vector characterizing media data of the respective runtime video frame;
creating a respective runtime node associated with each respective runtime video frame and its respective runtime feature vector and timing information; and
for every respective pair of created runtime nodes, determining a connecting edge having a length corresponding to a temporal distance between the pair of runtime video frames associated with respective pair of runtime nodes, and a weight corresponding to a similarity metric of the respective runtime feature vectors of the pair of runtime video frames associated with the respective pair of runtime nodes,
and wherein applying the trained ANN to the runtime video graph to compute both (i) the predicted runtime label for each runtime node of the runtime video graph and (ii) the predicted runtime clusters of the runtime nodes comprises:
applying the trained GNN to the runtime video graph to predict a respective embedding runtime vector for each respective runtime node of the runtime video graph; and
applying the trained clustering ANN to the respective embedding runtime vectors to predict clusters of the runtime nodes, and to predict node labels corresponding to the respective runtime labels of the runtime video frames.

### Claim 8 (depends on 7)

The method of claim 7, wherein further applying the trained ANN to respectively determine both the predicted runtime video segment associated with each predicted runtime cluster, and the predicted runtime segment class of each predicted runtime video segment comprises:
applying the trained clustering ANN to both the predicted clusters of the runtime nodes and the predicted node labels in order to predict the runtime video segment associated with each predicted runtime cluster, and to predict the runtime segment class of each predicted runtime video segment.

### Claim 9

A method for automated video segmentation carried out by a computing system, the method comprising:
receiving a sequence of video frames;
analytically constructing a video graph from the sequence of video frames, the video graph comprising nodes connected by edges, wherein each node corresponds to a different one of the respective video frames, and each edge connects a different particular pair of nodes, and is associated with both a temporal distance between the respective video frames corresponding to the particular pair of nodes, and a respective similarity metric quantifying similarity between respective features of the respective video frames corresponding to the particular pair of nodes;
applying an artificial neural network (ANN) to the video graph to compute both (i) predicted labels for the nodes of the video graph corresponding to predicted video-frame labels of the video frames, and (ii) predicted clusters of the nodes corresponding to predicted video segments of the sequence comprising respective sub-sequences of the video frames associated with respective contextually-related subject content, wherein the ANN has previously been trained to compute both predicted training labels for each training node of a training video graph constructed from a training video sequence of training video frames, and predicted training clusters of the training nodes corresponding to predicted membership among respective training video segments of the corresponding training video frames;
further applying the ANN as trained to respectively determine a predicted segment class of each predicted video segment; and
recording in memory and/or displaying information associating each video frame with one of the predicted video segments, and, for each respective predicted segment class, an identification of all predicted video segments belonging to the respective segment class.

### Claim 10 (depends on 9)

The method of claim 9, wherein the sequence comprises media program content,
and wherein the respective contextually-related subject content comprises a media content category, the media content category being at least one of regular program content, advertising content, program scene content, or thematic program content.

### Claim 11 (depends on 9)

The method of claim 9, wherein analytically constructing the video graph from the sequence of video frames comprises:
extracting from each respective video frame timing information indicating temporal position in the sequence, and a respective feature vector characterizing media data of the respective video frame;
creating a respective node associated with each respective video frame and its respective feature vector and timing information; and
for every respective pair of created nodes, determining a connecting edge having a length corresponding to a temporal distance between the pair of video frames associated with respective pair of nodes, and a weight corresponding to a similarity metric of the respective feature vectors of the pair of video frames associated with the respective pair of nodes.

### Claim 12 (depends on 11)

The method of claim 11, wherein the ANN comprises both a graph neural network (GNN) and a clustering ANN, wherein the GNN is trained to predict a respective embedding training vector for each respective training node of the training video graph, the respective embedding training vector comprising a reduced-dimension mapping of a respective training feature vector associated with the respective training node, and wherein the clustering ANN is trained to predict clusters of the training nodes corresponding to the training video frames of the respective training video segments,
and wherein applying the ANN to the video graph to compute both (i) the predicted labels for the nodes of the video graph, and (ii) the predicted clusters of the nodes corresponding to predicted video segments comprises:
applying the trained GNN to the video graph to predict a respective embedding vector for each respective node of the video graph; and
applying the trained clustering ANN to the respective embedding vectors to predict clusters of the nodes, and to predict node labels corresponding to the respective labels of the video frames.

### Claim 13 (depends on 12)

The method of claim 12, further applying the ANN as trained to respectively determine the predicted segment class of each predicted video segment comprises:
applying the trained clustering ANN to both the predicted clusters of the nodes and the predicted node labels in order to predict the video segment associated with each predicted cluster, and to predict the segment class of each predicted video segment.

### Claim 14 (depends on 13)

The method of claim 13, wherein recording in memory and/or displaying the information comprises:
based on the predicted runtime labels, the predicted runtime video segments, and the predicted runtime segment classes, determining (i) all the video frames of each predicted video segment, and (ii) all predicted video segments of each predicted segment class across a temporal span of the video sequence.

### Claim 15

A system for automated video segmentation, the system comprising:
one or more processors; and
memory storing instructions that, when executed by the one or more processors, cause the system to carry out operations including:
receiving a training sequence of training video frames comprising a plurality of respective training video segments, wherein the respective training video segments comprise non-overlapping respective sub-sequences of the training video frames, each of the respective sub-sequences being associated with respective contextually-related subject content, and wherein each training video frame is associated with a respective label identifying both which particular training video segment it belongs to, and a segment class associated with the particular training video segment;
analytically constructing a training video graph from the training sequence of training video frames, the training video graph comprising nodes connected by edges, wherein each node corresponds to a different one of the respective training video frames, and each edge connects a different particular pair of nodes, and is associated with both a temporal distance between the respective training video frames corresponding to the particular pair of nodes, and a respective similarity metric quantifying similarity between respective features of the respective training video frames corresponding to the particular pair of nodes;
training an artificial neural network (ANN) to compute both (i) a predicted training label for each node of the training video graph, and (ii) predicted clusters of the nodes corresponding to predicted membership among the respective training video segments of the corresponding training video frames, using the training video graph as input to the ANN, and ground-truth clusters of ground-truth labeled nodes, wherein the ground-truth labeled nodes correspond to the training video frames and their associated respective labels, and the ground-truth clusters correspond to the respective training video segments;
further training the ANN to compute a predicted segment class for each of the predicted clusters, using as ground truths the segment classes of the respective training video segments; and
configuring the trained ANN for application to one or more unseen runtime video sequences.

### Claim 16 (depends on 15)

The system of claim 15, wherein the operations further include:
receiving a runtime sequence of runtime video frames, the runtime video frames being unlabeled with respect to both any video segment of the runtime sequence and any segment class;
analytically constructing a runtime video graph from the runtime sequence of runtime video frames, the runtime video graph comprising runtime nodes connected by runtime edges, wherein each runtime node corresponds to a different one of the respective runtime video frames, and each runtime edge connects a different particular pair of runtime nodes, and is associated with both a temporal distance between the respective runtime video frames corresponding to the particular pair of runtime nodes, and a respective runtime similarity metric quantifying similarity between respective features of the respective runtime video frames corresponding to the particular pair of runtime nodes;
applying the trained ANN to the runtime video graph to compute both (i) a predicted runtime label for each runtime node of the runtime video graph and (ii) predicted runtime clusters of the runtime nodes;
further applying the trained ANN to respectively determine both a predicted runtime video segment associated with each predicted runtime cluster, and a predicted runtime segment class of each predicted runtime video segment; and
recording in memory and/or displaying segmentation information, the segmentation information being based on the predicted runtime labels, the predicted runtime video segments, and the predicted runtime segment classes, and including (i) an identification of the predicted runtime video segments, (ii) an association of each respective runtime video frame with one of the predicted runtime video segments, and (iii) for each respective predicted runtime segment class, an identification of all predicted runtime video segments belonging to the respective runtime segment class.

### Claim 17 (depends on 15)

The system of claim 15, wherein analytically constructing the training video graph from the training sequence of training video frames comprises:
extracting from each respective training video frame the respective label, timing information indicating temporal position in the training sequence, and a respective training feature vector characterizing media data of the respective training video frame;
creating a respective training node associated with each respective training video frame and its respective training feature vector and timing information, and labeled with the respective label of the associated training video frame; and
for every respective pair of created training nodes, determining a connecting edge having a length corresponding to a temporal distance between the pair of training video frames associated with respective pair of training nodes, and a weight corresponding to a similarity metric of the respective training feature vectors of the pair of training video frames associated with the respective pair of training nodes.

### Claim 18 (depends on 17)

The system of claim 17, wherein the ANN comprises a graph neural network (GNN) and a clustering ANN,
and wherein training the ANN to compute both (i) the predicted training labels for each node of the training video graph and (ii) the predicted clusters of the nodes corresponding to predicted membership among the respective training video segments of the corresponding training video frames comprises:
training the GNN to predict a respective embedding training vector for each respective node of the training video graph, the respective embedding training vector comprising a reduced-dimension mapping of the respective training feature vector associated with the respective node; and
using the respective embedding training vectors as input, training the clustering ANN to predict clusters of the nodes corresponding to the ground-truth clusters.

### Claim 19 (depends on 18)

The system of claim 18, wherein the operations further include:
receiving a runtime sequence of runtime video frames, the runtime video frames being unlabeled with respect to both any video segment of the runtime sequence and any segment class;
analytically constructing a runtime video graph from the runtime sequence of runtime video frames, the runtime video graph comprising runtime nodes connected by runtime edges, wherein each runtime node corresponds to a different one of the respective runtime video frames, and each runtime edge connects a different particular pair of runtime nodes, and is associated with both a temporal distance between the respective runtime video frames corresponding to the particular pair of runtime nodes, and a respective runtime similarity metric quantifying similarity between respective features of the respective runtime video frames corresponding to the particular pair of runtime nodes;
applying the trained ANN to the runtime video graph to compute both (i) a predicted runtime label for each runtime node of the runtime video graph and (ii) predicted runtime clusters of the runtime nodes;
further applying the trained ANN to respectively determine both a predicted runtime video segment associated with each predicted runtime cluster, and a predicted runtime segment class of each predicted runtime video segment; and
recording in memory and/or displaying segmentation information, the segmentation information being based on the predicted runtime labels, the predicted runtime video segments, and the predicted runtime segment classes, and including (i) an identification of the predicted runtime video segments, (ii) an association of each respective runtime video frame with one of the predicted runtime video segments, and (iii) for each respective predicted runtime segment class, an identification of all predicted runtime video segments belonging to the respective runtime segment class.

### Claim 20

The system of 19, wherein analytically constructing the runtime video graph from the runtime sequence of runtime video frames comprises:
extracting from each respective runtime video frame timing information indicating temporal position in the runtime sequence, and a respective runtime feature vector characterizing media data of the respective runtime video frame;
creating a respective runtime node associated with each respective runtime video frame and its respective runtime feature vector and timing information; and
for every respective pair of created runtime nodes, determining a connecting edge having a length corresponding to a temporal distance between the pair of runtime video frames associated with respective pair of runtime nodes, and a weight corresponding to a similarity metric of the respective runtime feature vectors of the pair of runtime video frames associated with the respective pair of runtime nodes,
wherein applying the trained ANN to the runtime video graph to compute both (i) the predicted runtime label for each runtime node of the runtime video graph and (ii) the predicted runtime clusters of the runtime nodes comprises:
applying the trained GNN to the runtime video graph to predict a respective embedding runtime vector for each respective runtime node of the runtime video graph; and
applying the trained clustering ANN to the respective embedding runtime vectors to predict clusters of the runtime nodes, and to predict node labels corresponding to the respective runtime labels of the runtime video frames,
and wherein further applying the trained ANN to respectively determine both the predicted runtime video segment associated with each predicted runtime cluster, and the predicted runtime segment class of each predicted runtime video segment comprises:
applying the trained clustering ANN to both the predicted clusters of the runtime nodes and the predicted node labels in order to predict the runtime video segment associated with each predicted runtime cluster, and to predict the runtime segment class of each predicted runtime video segment.
