Scene-aware video encoder system and method

JP2024539523AActive Publication Date: 2024-10-28MITSUBISHI ELECTRIC CORP

Patent Information

Application Number
JP2024549069
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-02-07
Filing Date
2022-10-27
Publication Date
2024-10-28
Estimated Expiration
2042-10-27

Smart Images

  • Figure 2024539523000001_ABST
    Figure 2024539523000001_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses a scene-aware video encoder system. The scene-aware encoder system converts a sequence of video frames of a video of a scene into a spatio-temporal scene graph. The spatio-temporal scene graph includes nodes representing one or more static and dynamic objects in the scene. Each node of the spatio-temporal scene graph describes the appearance, position, and / or motion of each of the objects (static and dynamic objects) at different time instances. The nodes of the spatio-temporal scene graph are embedded into a latent space using a spatio-temporal transformer, which encodes different combinations of different nodes of the spatio-temporal scene graph that correspond to different spatio-temporal volumes of the scene. Each of the different nodes encoded in each combination is weighted with an attention score determined as a function of the similarity of the spatio-temporal positions of the different nodes in each combination.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to video scene aware recognition, and more particularly to a scene aware video encoder system and method. [Background technology]

[0002] Today, machines are being built with the possibility of interacting with humans about objects and events in the environment captured in the video. For such human interaction, the machine may be equipped with an effective model of a dynamic audiovisual scene to infer about objects and events from the video scene. Such dynamic audiovisual scene models correspond to multimodal inference problems, e.g., video-based inference problems. Typically, a visual scene graph is used as a data structure for video-based inference, and such a visual scene graph is constructed for each video frame of the video. However, since a video is essentially a sequence of 2D "views" of events occurring in a 3D space, the need to have a visual scene graph for each frame may be redundant. The redundancy of the visual scene graph may become computationally detrimental for longer video sequences.

[0003] Additionally, the visual scene graph may lack the insight that a video represents a sequence of two-dimensional (2D) "views" of events occurring in three-dimensional (3D) space. The lack of such insight (i.e., 3D information) may prevent it from capturing spatiotemporal information that flows through each video frame of the video. Spatiotemporal information provides the semantics of the 3D scene that flows between frames of the video. Additionally, in some cases, objects in a video may be occluded, which may affect the visual scene graph in capturing object information (e.g., spatial / location information). The visual scene graph may contain less information due to object occlusion, which may result in inaccurate results output for video-based inference.

[0004] Therefore, there is a need to overcome the above-mentioned problems. More specifically, there is a need to generate visual scene graphs in an efficient and feasible manner while outputting accurate results for video-based reasoning. Summary of the Invention

[0005] Some embodiments are based on the realization that a video includes a two-dimensional (2D) view of a three-dimensional (3D) space in which various events take place in time, and the video scene can be represented in a four-dimensional (4D) space-time to avoid the redundancy of a visual scene graph-based representation. The 4D space includes three spatial dimensions, the fourth dimension being time. Furthermore, some embodiments are based on the understanding that once each object (i.e., an object visible in some video frames) acquires a position in the 3D space, the camera view can be freed from its spatial position, with object properties such as persistence being efficiently handled in that space. To this end, some embodiments propose the use of a 3D representation of the scene, which allows to avoid occlusion, which is a significant problem when working with 2D scene graphs. Furthermore, typically, for a spatiotemporal scene graph approach to video-based reasoning tasks such as video question answering (QA), a spatiotemporal scene graph is constructed for each video frame of the video. However, spatio-temporal scene graph approaches may lack the insight that video represents a sequence of two-dimensional (2D) "views" of events occurring in three-dimensional (3D) space. Spatio-temporal scene graph approaches may also fail to capture spatio-temporal information, i.e., the semantics of the 3D scene that runs between frames of video.

[0006] Therefore, it is an objective of some embodiments to provide a scene-aware video encoder system and method. It is also an objective of some embodiments to capture spatio-temporal information of a video. In some exemplary embodiments, key frames may be extracted from the video to capture spatio-temporal information. The key frames may be extracted using key frame extraction methods such as cluster-based key frame extraction, vision-based key frame extraction, motion analysis-based key frame extraction. In some other exemplary embodiments, the key frames may be extracted based on features of a model trained on a dataset such as the VisualGenome dataset. For example, key frames of a soccer sports video may be extracted based on features extracted from a dataset including players on a soccer field, a soccer ball at the players, etc. In some embodiments, the key frames may be extracted by discarding redundant video frames of the video.

[0007] In some exemplary embodiments, each frame of video may be converted into a pseudo-3D structure such as a 2.5D spatio-temporal scene graph of the scene to capture the spatio-temporal information in the 3D structure of the video frame. In this way, the graph nodes of the 2.5D scene graph are mapped to a shared 3D spatial coordinate frame. A 2.5D reconstruction of such a scene to give an approximate 3D location for each graph node generates a spatio-temporal scene graph, i.e., a (2.5+1)D scene graph. In some embodiments, the spatio-temporal scene graph is generated by registering the 2.5D scene graph of the corresponding video frame to the shared (2.5+1)D space-time.

[0008] However, despite registering the 2.5D scene graph to the (2.5+1)D space-time, each graph is still specific to a video frame and may not be registered in a shared space. The (2.5+1)D space-time based registration may be confounded by the fact that objects in a scene may move from one frame to another. For this reason, the spatio-temporal scene graph may be separated into static and dynamic subgraphs based on the motion of objects in the scene. In particular, the separation of the spatio-temporal scene graph depends on whether the basic graph nodes of the spatio-temporal scene graph that belong to a class usually move in the scene or not. For example, in some cases, the graph nodes may correspond to a dynamic object class, such as a person class, that moves in the scene. In some cases, the graph nodes may correspond to a static object class, such as a table class, that is considered to be static in the scene.

[0009] After separation, the graph nodes of the static subgraph are merged and the graph nodes of the dynamic 2.5D subgraph are kept from the original spatiotemporal scene graph. In some embodiments, two graph nodes of a static subgraph may be merged based on criteria that their 3D spatial proximity across frames of the video is close, corresponding objects of the two graph nodes have the same object label, and the overlap of corresponding bounding boxes of the objects exceeds a predefined threshold. Merging such graph nodes of the static subgraph removes redundant graph nodes, i.e., copies of static objects in the static subgraph. In some embodiments, the graph nodes in the dynamic subgraph may be enriched with action features that capture the interactions of the graph node with other graph nodes. When each dynamic graph node is enriched with action features along with the corresponding object-level feature representation, the dynamic subgraph node may capture frame-level semantics and the action of the object (e.g., a person lifting a cup).

[0010] The spatiotemporal scene graph representation can summarize the spatiotemporal actions occurring in a scene in a computationally efficient framework. In some embodiments, the scene graph representation can be used to develop rich reasoning schemes for visual question answering (VQA) tasks. For example, interactions between people and static objects in a video scene can be captured by addressing regions in the spatiotemporal scene graph where the spatiotemporal proximity between respective graph nodes is minimized.

[0011] Therefore, the spatio-temporal scene graph may be embedded based on a hierarchical latent embedding, which may construct the graph edges of the spatio-temporal scene graph via different spatio-temporal proximities. Constructing the graph edges with different spatio-temporal proximities may capture latent embeddings of the spatio-temporal scene graph at multiple granularities (e.g., different resolutions). Such an embedded spatio-temporal scene graph may be used in a transformer inference pipeline of a VQA task conditioned on a VQA question to retrieve appropriate answers for queries about videos.

[0012] In some embodiments, features of static and dynamic objects may be embedded in the latent space to semantically represent the interaction of objects in the dynamic subgraph. Therefore, different combinations of different nodes (i.e., static and dynamic objects) of the spatiotemporal scene graph may be selected using window sliding methods of different spatiotemporal volumes with different spatiotemporal resolutions. Furthermore, the similarity of different combinations may use similarity kernels such as spatiotemporal kernels, string kernels, and graph kernels. The similarity kernels capture the features of graph nodes in the spatiotemporal scene graph that are spatiotemporally nearby. In some embodiments, similarity kernels for different combinations of different nodes may be calculated to determine the similarity between different combinations of different nodes of the spatiotemporal scene graph. The similarity kernels are merged using a series of multilayer perceptrons (MLPs). The series of MLPs output a single feature representation as the final graph feature of the spatiotemporal scene graph. Such a final graph feature may be used for VQA tasks.

[0013] In some embodiments, the spatio-temporal scene graph encoded in the latent space may be used to decode a video transcription of the scene. The video transcription may be decoded from the latent space using a decoder trained with a spatio-temporal transformer. The decoder may receive a query corresponding to the video. In some embodiments, an embedding of the query may be generated using multi-head self-attention. The multi-head self-attention may address the query based on a hierarchical abstraction of the spatio-temporal scene graph. In particular, the query may be addressed using a multi-head cross-attention transformer. After the query, the embeddings may be pooled using a pooling technique, such as average pooling of the embeddings, to output features conditioned on the query for the query. The features conditioned on the query may be used to predict an answer to the query. The predicted answer may represent an embedding of a set of candidate answers (including a ground truth answer). In some embodiments, the decoder may be trained based on a cross-entropy loss between the predicted answer and the ground truth answer.

[0014] Accordingly, one embodiment discloses a scene aware video encoder system including at least one processor and a memory having instructions stored thereon that, when executed by the at least one processor, cause the scene aware video encoder system to receive a sequence of video frames of a scene and convert the sequence of video frames into a spatio-temporal scene graph including nodes representing one or more static and dynamic objects in the scene, wherein an appearance and position of each of the static objects in the scene is represented by properties of a single node of the spatio-temporal scene graph, and each of the dynamic objects in the scene is represented by properties of an exterior of each of the dynamic objects at different instances of time. a scene-aware video encoder system for encoding the nodes of the spatio-temporal scene graph into a latent space using a spatio-temporal transformer, the spatio-temporal transformer encoding different combinations of different nodes of the spatio-temporal scene graph corresponding to different spatio-temporal volumes of the scene, the encoding of each of the different nodes in each of the combinations being weighted with an attention score determined as a function of a similarity of spatio-temporal positions of the different nodes in each of the combinations, and the scene-aware video encoder system for outputting the encoded nodes of the spatio-temporal scene graph.

[0015] Another embodiment discloses a method for scene-aware video encoding, the method including receiving a sequence of video frames of a video of a scene. The method includes transforming the sequence of video frames into a spatio-temporal scene graph including nodes representing one or more static and dynamic objects in the scene. An appearance and a position of each of the static objects in the scene is represented by a characteristic of a single node of the spatio-temporal scene graph, and each of the dynamic objects in the scene is represented by a characteristic of a plurality of nodes of the spatio-temporal scene graph that describe an appearance, a position, and a motion of each of the dynamic objects at different instances of time. The method includes encoding the nodes of the spatio-temporal scene graph into a latent space using a spatio-temporal transformer, the spatio-temporal transformer encoding different combinations of different nodes of the spatio-temporal scene graph that correspond to different spatio-temporal volumes of the scene, the encoding of each of the different nodes in each of the combinations being weighted with an attention score determined as a function of a similarity of the spatio-temporal positions of the different nodes in each of the combinations. The method further includes outputting the encoded nodes of the spatio-temporal scene graph. [Brief description of the drawings]

[0016] [Figure 1] A diagram illustrating a representation of an environment for a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 2A] 1 is a schematic diagram of a scene-aware video analytics system according to some embodiments of the present disclosure. [Figure 2B] FIG. 2 illustrates a representation for separation of a spatio-temporal scene graph according to some embodiments of the present disclosure. [Diagram 3] FIG. 2 illustrates a graph representation of different nodes of a spatio-temporal scene graph and different combinations of different spatio-temporal volumes of different nodes of the spatio-temporal scene graph according to some embodiments of the present disclosure. [Figure 4]FIG. 2 illustrates a representation of a chain of multi-layer perceptrons, according to some embodiments of the present disclosure. [Diagram 5] FIG. 1 illustrates a representation for decoding a transcription of a video of a scene, such as for a video question answering (VQA) task using a spatio-temporal graph, according to some embodiments of the present disclosure. [Figure 6A] FIG. 1 illustrates an architectural representation of a space-time transformer with a standard transformer for VQA tasks, according to some embodiments of the present disclosure. [Figure 6B] FIG. 13 illustrates another architectural representation of a space-time transformer with a standard transformer for VQA tasks, according to some other embodiments of the present disclosure. [Figure 6C] FIG. 13 illustrates yet another architectural representation of a space-time transformer with a standard transformer for VQA tasks, according to some further embodiments of the present disclosure. [Figure 7A] FIG. 1 illustrates an evaluation study on a VQA task using a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 7B] FIG. 2 illustrates an ablation study for a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 8] 1 is a flow diagram of a method for encoding video according to some embodiments of the present disclosure. [Figure 9] 1 is a schematic block diagram of a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 10] A diagram illustrating a use case implementation of a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 11] FIG. 1 illustrates a use case implementation for performing a VQA task using a scene-aware video encoder system according to some embodiments of the present disclosure. [Figure 12]FIG. 1 is a schematic diagram of a method for using different extraction functions for kernelized self-attention according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent to those skilled in the art that the present disclosure may be practiced without these specific details. In other instances, the apparatus and methods are shown in block diagram form solely to avoid obscuring the present disclosure.

[0018] As used in this specification and claims, the terms "for example," "for example," and "such as," as well as the verbs "comprise," "have," "include," and other verb forms thereof, when used in conjunction with a list of one or more components or other items, should be construed as open-ended, meaning that the list should not be considered as excluding other additional components or items. The term "based on" means based at least in part on. Furthermore, it should be understood that the style and terminology used herein are for purposes of illustration and should not be considered limiting. Any headings used herein are for convenience only and should not be considered as having any legal or limiting effect. System Overview

[0019] FIG. 1 illustrates a representation of an environment 100 of a scene-aware video encoder system 110 according to some embodiments of the present disclosure. In an illustrative example scenario, a scene 102 in a video 104 may include different objects that may be static or dynamic. For example, the scene 102 includes an object 106A and an object 106B. The object 106A may correspond to a dynamic object such as a person moving in the scene 102, and the object 106B may correspond to a static object such as a laptop that remains static on a table in the scene 102. Such a scene 102 in the video 104 may be processed by the scene-aware video encoder system 110. In some exemplary embodiments, processing the scene 102 may include providing a transcription of the video of the scene 102 and / or providing a response to a query related to the scene 102. The scene-aware video encoder system 110 includes a processor 112 and a memory 114. The memory 114 is configured to store instructions executed by the processor 112. In some exemplary embodiments, the scene-aware video encoder system 110 may be embodied as a stand-alone system or may be part of another computing system.

[0020] Referring now to FIG. 2A, the process by which the processor 112 of the scene-aware video encoder system 110 processes the video 104 will be further described.

[0021] 2A illustrates a schematic diagram 200 of a scene aware video encoder system 202 according to some embodiments, which is executed by a processor 204. The processor 204 is configured to receive a sequence of video frames 208 (hereinafter interchangeably referred to as video frames 208). The sequence of video frames 208 corresponds to the video 104 of the scene 102. In some exemplary embodiments, the sequence of video frames 208 may be received over a network, such as the network 108. The scene aware video encoder system 202 corresponds to the scene aware video encoder system 110 of FIG. 1. The scene aware video encoder system 202 includes a processor 204 and a memory 206. The memory 206 stores instructions.

[0022] The received sequence of video frames 208 are preprocessed to output a sequence of preprocessed video frames 210. The sequence of preprocessed video frames 210 includes objects detected in the video frames 208 and depth information for the objects in the video frames 208. In some embodiments, the video frames 208 may be preprocessed using an object detection model for object detection in each of the video frames 208 and a neural network model for depth information estimation.

[0023] In some exemplary embodiments, the object detection model may include a Fast Domain Convolutional Neural Network (FRCNN) object detection model. The FRCNN object detection model may be pre-trained to detect objects in the video frames 308. In some exemplary embodiments, the FRCNN object detection model may be pre-trained based on a training dataset, such as the Visual Genome dataset. The training dataset may be a wide range of everyday life indoor and outdoor objects. In each video frame, the FRCNN object detection model detects "m" objects in the video frames 208.

[0024] In some exemplary embodiments, the neural network model (D:Rh×w×3 →R h×w×4 The neural network model (denoted as p=(x,y,z)) may be implemented using an off-the-shelf, pre-trained 2D-to-3D deep learning framework. The 2D-to-3D deep learning framework may correspond to the MiDAS model for estimating realistic depth for various real-world scenes in an efficient and feasible manner. The neural network model receives each of a sequence of video frames 208 as a red, green, blue (RGB) image and outputs a corresponding RGBD image of each of the video frames 208. For example, a video frame may be an RGB image (I), and the corresponding depth information of the RGB image may be a depth map (d) that maps 2D pixel locations (x,y) to respective 3D coordinates (denoted as p=(x,y,z)). I :R 2 →R 3 It is.

[0025] The RGBD images of the video frames 208 output by the neural network model and the detected objects of the video frames 208 output by the object detection model are combined to output a sequence of pre-processed video frames 210. The sequence of pre-processed video frames 210 is input to a spatio-temporal transformer 212.

[0026]

number

[0027] The graph nodes of the spatio-temporal scene graph 210 include one or more static nodes 214A and one or more dynamic nodes 214B. The one or more static nodes 214A represent corresponding static objects (e.g., object 108B) in the video frame 208. The one or more dynamic nodes 214B represent corresponding dynamic objects (e.g., object 106A) in the video frame 208. The one or more dynamic nodes 214B include motion features 214C that represent movement information of the dynamic nodes 214B. In some exemplary embodiments, the motion features 214C are extracted from the dynamic graph nodes of the spatio-temporal scene graph using an action recognition model, for example, an Inflated 3D network (I3D) action recognition model.

[0028] In the spatiotemporal scene graph 214, each graph node (static or dynamic) has properties that represent a corresponding object. For example, a static graph node has properties that represent the appearance and position of the corresponding static object. Similarly, a dynamic graph node has properties that represent the appearance, position, and behavior of the corresponding dynamic object at different instances of time.

[0029]

number

[0030] Furthermore, the spatiotemporal scene graph 214 (G 3.5D From the graph, graph nodes corresponding to static objects are pruned to remove redundancies or copies of graph nodes, as illustrated next in FIG. 2B.

[0031] 2B illustrates a representation 216 for separation of the spatiotemporal scene graph 214, according to some embodiments of the present disclosure. In some example embodiments, the spatiotemporal scene graph 214 may be separated based on class separation of objects. The class separation may correspond to separating a training dataset (e.g., a training dataset for the FRCNN object detection model) into two categories. The two categories are a static object category (C s) and the dynamic object category (C d ) The category of static scene objects (C s ) may correspond to objects such as a table, a sofa, or a television. d ) may correspond to objects such as a person, a cell phone, a football, or a cloud. Thus, the spatiotemporal scene graph 214 calculates the object label (C v ) is C s Does it belong to C? d , and the static subgraph 218A(G s ) and dynamic subgraph 218B(G d ) and the static subgraph 218A is divided into categories of static scene objects (C s ), whereas dynamic subgraph 218B contains graph nodes belonging to the category of dynamic scene objects (C d )

[0032] In some embodiments, the graph (G 3.5D ) are registered in a shared 3D space. In some embodiments, features to be registered are extracted from the graph nodes of the static subgraph 218A (hereafter referred to as static graph nodes). The registration features are extracted from the static subgraph nodes to address issues due to the motion of objects in the video frames 208 and / or issues due to the motion of the camera capturing the video frames 208. Specifically, when there is camera motion, there may be a 3D projection matrix between frames that uses point features. The projection matrix may be used to map all graph nodes (including both static and dynamic graph nodes) of the enriched spatiotemporal scene graph 214 into a common coordinate frame.

[0033]

number

[0034]

number

[0035]

number

[0036]

number

[0037]

number

[0038] Additionally, in some embodiments, the space-time transformer 206 encodes into a latent space different combinations of different nodes of the space-time scene graph 214 that correspond to different space-time volumes of the scene 102. The encoding of each of the different nodes in each of the combinations is weighted with an attention score that is determined as a function of the similarity of the space-time locations of the different nodes in each of the combinations, as will be described in more detail below with reference to Figure 6B. Referring now to Figure 3, different space-time volumes of the different nodes in different combinations are shown and described.

[0039] FIG. 3 illustrates a graph representation 302 of different nodes of the spatiotemporal scene graph 214 and a graph representation 308 of different combinations of different spatiotemporal volumes of different nodes of the spatiotemporal scene graph 214 according to some embodiments of the present disclosure.

[0040] In an illustrative example scenario, the graph representation 302 includes representations of static nodes 304 of the spatiotemporal scene graph 214 at different time instances such as t1, t2, t3, t4, and t5 (t1-t5). The static nodes 304 may correspond to static objects such as tables that remain static at different time instances in the video frames 208. At different time instances (i.e., t1-t5), the appearance and position of the objects remain unchanged for static objects. The graph representation 302 also includes representations of dynamic nodes that correspond to dynamic objects such as people in the video frames 208 at different time instances (t1-t5). The dynamic nodes include a dynamic node 306A at t1, a dynamic node 306B at t2, a dynamic node 306C at t3, a dynamic node 306D at t4, and a dynamic node 306E at t5.

[0041] Further, as shown in the graph representation 308, different combinations of different nodes of the spatio-temporal scene graph 214 are selected using window sliding of different spatio-temporal volumes with different spatio-temporal resolutions. The different combinations may include combination 310A, combination 310B, and combination 310C (hereinafter referred to as combinations 310A-310C) as shown in the graph representation 308. The combination 310A includes a combination of the static node 304 with the dynamic nodes 306B and 306C at time instances t2 and t3. The combination 310B includes a combination of a static object, which can be visualized as a redundant copy 304A, with the dynamic nodes 306C and 306D at time instances t3 and t4. The combination 310C includes a combination of the dynamic nodes 306D and 306E at time instances t4 and t5. Combination 310B includes a combination of redundant copy 304A of static node 304 with dynamic node 306B and dynamic node 306C at time instances t2 and t3.

[0042] Each of the different node combinations (i.e., combinations 310A-310C) captures a combined feature that includes information of the corresponding scene defined by a different radius (r). The combined feature may also include correlations at multiple scales, i.e., correlations for different radius values. For example, the node features may include correlations at multiple scales such as (person+cup), (cup+clock), (person+sofa), (person+cup+book), (cup+book+clock), (person+sofa+person), etc. In some exemplary embodiments, the combined feature that captures the similarity of the different combinations such as combinations 310A-310C may be extracted by the space-time transformer 212 using a similarity kernel (k) 312. In some exemplary embodiments, the similarity kernel (k) 312 may correspond to one of a space-time kernel, a string kernel, a graph kernel, or other similarity measures.

[0043]

number

[0044]

number

[0045] Furthermore, the spatiotemporal features are refined into a representation towards a hierarchical abstraction of the spatiotemporal scene graph 214 at multiple levels of granularity (or resolution), as will now be described with reference to FIG.

[0046]

number

[0047]

number

[0048]

number

[0049]

number

[0050]

number

[0051] The final graph features 412, which contain hierarchical information of the video frames 208, provide a better scene representation of the video frames 208 than a representation of features learned from the statistical proximity of objects in a training dataset.

[0052] Furthermore, the final graph features 412 of the spatio-temporal scene graph 214 can be used for video question answering (VQA) tasks, which will now be described with reference to FIG.

[0053] FIG. 5 illustrates a representation 500 for decoding a video transcription of a scene, such as a VQA task 512, using a spatio-temporal scene graph 214 of a sequence of video frames (e.g., video frame 208) of a video (e.g., video 104), according to some embodiments of the present disclosure. The spatio-temporal scene graph 214 is input to a hierarchical transformer 504 along with a question embedding 506 of a query (e.g., "How did the cup fall?") ​​corresponding to the video 104. For example, a sequence of video frames (denoted as S), such as video frame 202, may include "n" video frames. Each of the sequence of video frames (S) 208 may be associated with at least one question or query (Q). The query may be an ordered tuple of words from a predefined vocabulary that has been tokenized and embedded.

[0054] 4, the final graph features 412 of the spatio-temporal scene graph 214 are combined with the question embeddings 506 by a hierarchical transformer 504. The combined final graph features and question embeddings 506 are used as input features 508 for a VQA task 512.

[0055] In some embodiments, the VQA task 512 is performed on a collection or set 510 (A={A1, A2, ..., A l}) to predict answer A pred The "l" candidate answers 510 are the ground truth answers (A gt ).

[0056]

number

[0057] 6A illustrates an architecture representation 600A of a space-time transformer 604 having a standard transformer 606, according to some embodiments of the present disclosure. The standard transformer 606 includes a question encoder 606A, a multi-head attention module 606B, and an answer decoder 606C.

[0058] In some exemplary embodiments, the input 602 includes a spatio-temporal scene graph 602A. The spatio-temporal scene graph 602A is an example of the spatio-temporal scene graph 214 that is input to the spatio-temporal transformer 604. The input 602 may also include a query (Q) 602B that corresponds to a video frame 208 that is input to the standard transformer 606. In some exemplary embodiments, the query 602B is input to the standard transformer 606 as a question embedding 608. The standard transformer 606 uses a question encoder 606A to create a query, key, and value embedding to answer the query. The query, key, and value embedding are created using the graph node features (e.g., final graph features 412) of the spatio-temporal scene graph 214. The standard transformer 606 uses the graph node features to generate a correlation between the query and the key. This correlation determines the interaction, i.e., the edge, between two graph nodes of the spatio-temporal scene graph 214. For example, there may be samples in the training data where a person is interacting with a cup, and for a scene where a person is holding a cup, there is a high correlation between the features of the person and the cup, so the standard transformer 604 may assign self-attention to add edges connecting the graph nodes of the person and the cup based on the high correlation between the features of the person and the cup.

[0059]

number

[0060] The softmax function in equation (6) normalizes the Q, K and V embeddings into a probability distribution consisting of k probabilities for the output (e.g., word). In an exemplary embodiment, the softmax function converts the scores into probabilities, from which the highest probability is selected as the word output for the standard transformer 606.

[0061]

number

[0062]

number

[0063] In some exemplary embodiments, the dialogue history and / or caption features of the video frames 208 may be used to output the answer representation 610. To that end, the standard transformer 606 may use a long short-term memory (LSTM) to encode the query and answer into a feature space (e.g., a 128D feature space). In particular, the LSTM may encode the dialogue history and caption features that are combined with the final graph features 412 to output the answer representation 610. In some exemplary embodiments, the answer representation 610 may be obtained by encoding the dialogue history, caption features and the final graph features 412 using a multi-head attention module 606B.

[0064] The architecture of the space-time transformer 604 and the standard transformer 606 may differ, as will now be explained with reference to FIG.

[0065] 6B illustrates an architecture representation 600B of a spatio-temporal transformer 604 and a standard transformer 606 for a VQA task 512 according to some other embodiments of the present disclosure. In some exemplary embodiments, the standard transformer 606 may encode the relative / absolute position of the input 602 as an input vector 612. For example, the input vector 612 may include graph node features 612A, such as features of static graph nodes (e.g., static graph nodes 214A), action features (e.g., action features 214B), and features of dynamic graph nodes (e.g., dynamic graph nodes 214C), and the corresponding spatio-temporal positions 612B of the graph node features 612A. The relative position of the query 602A may also be encoded as an input vector. The input vector is added to the input embedding based on the relative position.

[0066] Furthermore, the multi-head attention module 606B is connected to the feedforward layer 622 of the answer decoder 606C via the additive and norm layer 602A. The feedforward layer 622 concatenates the output of the multi-head attention module 606B (e.g., the matrix of features of the query 602B) into a single matrix by multiplying it with an additive weight matrix.

[0067] The output of the feedforward layer 622 is sent to the answer decoder 606C via the add and norm sub-layer 620B. The output vector with the scores is provided to a softmax layer 624 of the answer decoder 606C. The softmax function 624 distributes a softmax or normalization over the word outputs. In an exemplary embodiment, the softmax layer 624 converts the scores to probabilities, and the highest probability is selected as the answer representation 610.

[0068] In some exemplary embodiments, the feedforward layer 622 positionally combines the output upon aggregating information from other words in the multi-head kernel module 614. The multi-head kernel module 614 may compute a similarity kernel to capture the position information at the spatiotemporal location 612B. In some exemplary embodiments, the MLP module 616 may include a series of MLPs, such as MLPs 408A, 408B, and 408C. After concatenation, the combined similarity kernels are output as one feature representation (e.g., final graph features 412) of the spatiotemporal scene graph 602A via another MLP module 618. For example, the kernels multiplex the values, and the resulting values ​​are embedded using an MLP and then concatenated. The concatenation occurs at the + symbol at the output of 616 in FIG. 6B.

[0069] In some exemplary embodiments, the multi-head kernel module 614 also performs a dot-product attention mechanism. In the dot-product attention mechanism, a dot product of a query Q (e.g., query 602B) and a key K of each word in the query 602B may be calculated. For example, the query 602B may be "What is happening at beginning of the video?" Each word of the query 602B, i.e., "What", "is", "happening", "at", "beginning", "of", "the", and "video", is embedded into a vector by the multi-head kernel attention module 614. By multiplying the vector with a matrix, a query 602B with a key and a value for each of the words of the query 602B may be created. An attention score may be calculated by taking the dot product of the query 602B and the key for each word. For example, the attention score of the first word, i.e., "What", is calculated. Also, attention scores for each of the remaining words, namely "is", "happening", "at", "beginning", "of", "the" and "video", are calculated for the word "What".

[0070] Each of the attention scores determines the importance of other parts of the query 602B when a word is encoded at a particular position. The first attention score of a word (i.e., "What") in the first position is the dot product of the first query (q1) and the first key (k1), i.e., "What" vs. "What". The second attention score is the dot product of q1 and the second key (k2), i.e., "What" vs. "is". Similarly, the third attention score of a word (i.e., "happening") is the dot product of q1 and the third key (k3), i.e., "What" vs. "happening", and the fourth attention score of a word (i.e., "at") is the dot product of q1 and the fourth key (k4), i.e., "What" vs. "at", and so on until the end of the words of the query 602B. Such attention scores are calculated by dividing the feature dimension r in Equation (6) by the feature dimension r in Equation (6). k , and divide by the square root of . Each value of the key is further multiplied by an attention score. The attention score is multiplied by each of the values ​​as a weight. The weighted values ​​are summed to provide the output, i.e., the words of the answer representation 610 at the corresponding position in the answer to the query 602B. To output the words of the answer representation 610 at the appropriate position, the positional encoding encodes the relative / absolute positions of the outputs as vectors that are added to output the answer representation 610 of the answer decoder 606C. This allows the output of the multi-head attention module 606B to be in the same order as the sequence of inputs in the input 602. Each dimension of the positional encoding of the input vector 612 may be a wave with a different frequency, which may enable the standard transformer 606 to learn to address the relative positions of the input features (of the spatiotemporal scene graph 602A and / or the query 602B) in the input 602.

[0071] In the architecture representation 600B, the multi-head kernel module 614 and the multi-head attention module 606B are separate, and their corresponding outputs (i.e., the final graph features 412 of the spatio-temporal scene graph 214 and the features of the query 602B) are combined in a softmax layer 624 to output an answer representation 610 for the query 602B of the video frame 208.

[0072] In some cases, the final graph features 412 of the spatiotemporal scene graph 214 and the features of the query 602B are merged before being input to the standard transformer 606, as will now be described in Figure 6C.

[0073] FIG. 6C illustrates an architecture representation 600C of a spatio-temporal transformer 604 and a standard transformer 606 for a VQA task 512 according to some other embodiments of the present disclosure. As previously described in FIG. 6B, the input 602 is input as an input vector 612 including a graph node feature 612A and a spatio-temporal location 612B. The graph node feature 612A is used by a question encoder 606A to encode the query 602B into a query, a key, and a value embedding for answering the query 602B. The query, the key, and the value embedding are input to a multi-head attention module 606B. The multi-head attention module 606B outputs a score of a word corresponding to the query 602B into a probability using a softmax layer 624. The softmax layer 624 may also incorporate the probability with a similarity kernel output by the multi-head kernel attention module 614.

[0074] The output of the softmax layer 624, which combines the probabilities and the similarity kernel, is input to the standard transformer 606. The standard transformer 606 may select the highest probability among the probabilities to output the answer representation 610. As shown in FIG. 6C, in the architecture representation 600C, the output of the multi-head attention module 606B, i.e., the query, key, and value embedding, and the output of the multi-head kernel attention module 614, i.e., the similarity kernel, are merged in the softmax layer 624 before being input to the standard transformer 606.

[0075] Using the spatio-temporal scene graph 214 of the spatio-temporal video encoder system 202 may improve the performance of the VQA task 512. An evaluation of the performance of the VQA task 512 using the spatio-temporal scene graph 214 is shown in FIG. 7A.

[0076] FIG. 7A illustrates an evaluation study 700A for a VQA task (e.g., VQA task 512) using the scene-aware video encoder system 202 according to some embodiments of the present disclosure. In some exemplary embodiments, the performance of the scene-aware video encoder system 202 for the VQA task may be evaluated using VQA datasets such as the NExT-QA dataset and the AVSD-QA dataset. The NExT-QA dataset incorporates questions that include the words "why" and "how". Such datasets with "why" and "how" questions require more advanced video abstraction and semantic reasoning. The dataset consists of 3870 training videos, 570 validation videos, and 1000 test videos. The dataset provides 34132, 4996, and 8564 multiple-choice questions in the training set, validation set, and test set, respectively, and the task is to select one of five candidate answers. The AVSD-QA dataset consists of QA pairs, human-generated dialogue histories, and captions for each video. In the QA version of this dataset, the task is to select an answer from one of 100 candidate answers using the last question from the dialogue history for the video. The dataset consists of 11816 video clips and 118160 QA pairs, of which 7985, 1863, and 1968 are used for training, validation, and testing, following a standard split.

[0077] The evaluation study 700A depicts tables 702 and 704 showing the performance of the space-time transformer 212 pipeline compared to state-of-the-art methods. In table 702, the accuracy of the space-time transformer 212 is compared to methods such as space-time VQA, co-memory QA, hierarchical relation network, multi-modal attention VQA, and graph matching VQA. The space-time transformer 212 performs with an accuracy of 53.40 for the VQA task. In table 704, the average rank of the space-time transformer 212 is compared to methods such as question only, multi-modal transformer, question and video, MTN, and ST scene graph. The scene-aware video encoder system 202 results in an average rank of 5.84.

[0078] In the NExT-QA dataset, methods using the spatio-temporal transformer 212 for VQA, such as graph matching and hierarchical relation models, are compared to spatio-temporal scene graph models, showing a significant improvement of ~4%. In the training dataset AVSD-QA, the spatio-temporal transformer 212 is compared to the STSGR model and the multi-modal transformer, as given in Table 704, and outperforms them in the average ranking of retrieved answers. Combining the AVSD-QA model with textual cues such as dialogue history and caption features improves the average ranking to nearly 1.4, suggesting a significant bias between questions and textual cues.

[0079] In the NExT-QA dataset, Bidirectional Encoder Representations from Transformer (BERT) features may be used for each question embedding. The BERT features include 768D features, which are projected into a 256D latent space and combined with visual features from the spatio-temporal scene graph 214. Each candidate answer is concatenated with the question, and BERT features are computed before matching with visual features to select the answer. In the NExT-QA dataset, the BERT features are augmented with CLIP features, which may have better visual-language alignment. In the AVSD-QA dataset, the spatio-temporal transformer 202 may encode questions and answers into a 128D feature space using a long-short-term memory (LSTM). Dialogue history and caption features are encoded using LSTM, which are then combined with visual features using a multi-head attention module (e.g., multi-head attention module 606B).

[0080] Furthermore, qualitative results on two datasets (i.e., NExT-QA and AVSD-QA datasets) are shown in Figure 7B.

[0081] FIG. 7B illustrates an ablation study 700B for the scene-aware video encoder system 202 according to some embodiments of the present disclosure. The ablation study 700B illustrates tables 708, 710, and 712. Table 708 illustrates an ablation study on the importance of each component of the scene-aware video encoder system 202, i.e., the spatio-temporal encoder 212, for both the NExT-QA and AVSD-QA datasets. Table 708 illustrates that without a subgraph of the spatio-temporal scene graph 214, i.e., the static subgraph 218A or the dynamic subgraph 218B, the performance degrades. Furthermore, without a motion feature such as the motion feature 214C (e.g., the I3D feature), the performance degrades significantly for both datasets, highlighting the importance of the motion feature 214C in the pipeline of the scene-aware video encoder system 202. Furthermore, without the hierarchical abstraction by the hierarchical transformer 504, the performance drops from 53.40 to 52.49 for NExT-QA and from 5.84 to 5.97 for AVSD-QA.

[0082] Additionally, table 710 shows ablation on the NExT QA dataset when the full set of graph nodes in the spatio-temporal graph 214 is used for inference. Performance is slightly improved, with each training iteration taking 4x slower time (from ~1.5 seconds to ~6 seconds per iteration on a single RTX6000 GPU).

[0083] Further, table 712 shows a comparison of the number of nodes between static subgraph 218A and dynamic subgraph 218B. Each of the number of nodes in static subgraph 218A and dynamic subgraph 218B is compared with the total number of graph nodes in the original spatio-temporal scene graph 214 (i.e., the unpruned scene graph) for both datasets. As shown in the results, the scene-aware video encoder 202 prunes nearly 54% of the graph nodes in the AVSD-QA dataset and 24% in NExTQA. The pruning rate is higher in AVSD-QA, possibly because most of the videos do not contain shot switches and may use fixed cameras, unlike in NExT-QA.

[0084] 8 illustrates a flow diagram of a method 800 for encoding video according to some embodiments of the present disclosure. The method 800 is performed by the scene-aware video encoder system 202.

[0085] At operation 802, the method 800 includes receiving a sequence of video frames (eg, video frame 208) of a video (eg, video 104) of a scene (eg, scene 102).

[0086] At operation 802, the method 800 includes converting the sequence of video frames into a spatiotemporal scene graph (e.g., spatiotemporal scene graph 214) that includes nodes that represent one or more static and dynamic objects in the scene. The appearance and position of each of the static objects in the scene is represented by properties of a single node (e.g., static node 214A) in the spatiotemporal scene graph. Each of the dynamic objects in the scene is represented by properties of multiple nodes (e.g., dynamic node 214B) in the spatiotemporal scene graph that describe the appearance, position, and behavior of each of the dynamic objects at different instances of time.

[0087] At operation 806, the method 800 includes encoding the nodes of the spatio-temporal scene graph into a latent space using a space-time transformer (e.g., space-time transformer 212). The space-time transformer encodes different combinations of different nodes of the space-time scene graph that correspond to different space-time volumes of the scene (FIG. 3). Each node among the different nodes encoded in each combination is weighted with an attention score determined as a function of the similarity of the space-time locations of the different nodes in each combination.

[0088] At operation 808, the method 800 includes outputting the encoded nodes of the spatio-temporal scene graph. In some embodiments, the latent space with the encoded nodes of the spatio-temporal scene graph may be used to decode a video transcription of the scene using a decoder trained with a spatio-temporal transformer.

[0089] 9 shows a schematic block diagram of a scene-aware video encoder system 900 according to some embodiments of the present disclosure. The scene-aware video encoder system 900 corresponds to the scene-aware video encoder system 202. In an exemplary embodiment, the scene-aware video encoder system 900 includes an input interface 902, a processor 904, a memory 906, a storage device 914, and an output interface 916. The processor 904 may be connected to the input interface 902, the memory 906, the storage device 914, the output interface 916, and / or other components of the scene-aware video encoder system 900 via a bus 920.

[0090] The processor 904 is configured to receive input data 926 via the input interface 902. The input data 926 may include a sequence of video frames of a video (e.g., video frame 208 of the video 104) and / or a query for a video (e.g., query 602B). The video may correspond to live stream video, offline video streams, or recorded video, which may be received over a network 924 using a network interface controller (NIC) 922. The offline video stream may be stored in the storage device 914.

[0091] The processor 904 is configured to convert the sequence of video frames into a spatio-temporal scene graph (e.g., the spatio-temporal scene graph 214). The spatio-temporal scene graph includes nodes that represent one or more static and dynamic objects in a scene. Each static object in a scene has an appearance and position that is represented by properties of a single node in the spatio-temporal scene graph, and each dynamic object in a scene is represented by properties of multiple nodes in the spatio-temporal scene graph. The properties of the multiple nodes describe the appearance, position, and behavior of each of the dynamic objects at different instances of time.

[0092] The processor 904 is also configured to encode the nodes of the spatio-temporal scene graph into a latent space using a spatio-temporal transformer 908. The spatio-temporal transformer 908 is an example of the spatio-temporal transformer 212. In some exemplary embodiments, the encoded spatio-temporal transformer 908 in latent space may be stored in the memory 906. Furthermore, the spatio-temporal transformer 908 encodes different combinations of different nodes of the spatio-temporal scene graph that correspond to different spatio-temporal volumes of the scene. Each of the different nodes in each of the combinations is encoded and weighted with an attention score determined as a function of the similarity of the spatio-temporal locations of the different nodes in each of the combinations.

[0093] In some embodiments, the encoded nodes of the spatio-temporal scene graph 214 may be used to decode a video transcription of the scene from the latent space using a decoder trained with the spatio-temporal transformer 908. As such, the encoded nodes of the spatio-temporal scene graph 214 are output to an output device 918 via an output interface 916. The output device 918 may include, but is not limited to, a computer, laptop, tablet, phablet, or any display device. In some implementations, the output device 918 may include an application interface for providing a response. Exemplary embodiments

[0094] FIG. 10 illustrates an example use case 1000 of the scene-aware video encoder system 900 according to some embodiments of the present disclosure. In an illustrative example scenario, a video of a scene 1002 may be captured by a camera 1004. In some cases, the camera 1004 may be installed at a predefined fixed position to capture the scene 1002. The scene 1002 may include different objects that are static and / or dynamic, such as people moving around, a cup on a table. The scene 1002 may correspond to an indoor location in a public or private venue, such as a workplace, a home, a store. In some cases, the scene 1002 may correspond to an outdoor location, such as a road, a park. The captured video of the scene 1002 may be transmitted to the scene-aware video encoder system 900 over a network, such as the network 924.

[0095] The scene-aware video encoder system 900 processes video and outputs a spatio-temporal scene graph. The spatio-temporal scene graph is encoded into a latent space. The encoded spatio-temporal scene graph in the latent space is used to decode a transcription of the video of the scene 1002. For example, the video of the scene 1002 may be monitored for a safety and security unit. When a suspicious event or an event of interest is observed in the scene 1002, the encoded spatio-temporal scene graph may be used for video transcription.

[0096] Similarly, the scene aware video encoder system 900 may be used for vehicle navigation applications. In an illustrative example scenario, a camera 1008 may be mounted on a vehicle (e.g., a manually operated vehicle, a fully automated vehicle, or a semi-automated vehicle) to capture a road scene 1006. The camera 1008 may be operational to capture video of the road scene 1006. The captured video of the road scene 1006 may be transmitted to the scene aware video encoder system 900 over a network, such as the network 924. In some cases, the scene aware video encoder system 900 may be embedded in the camera 1008. The scene aware video encoder system 900 processes the video and outputs a spatio-temporal scene graph of the road scene 1006. The spatio-temporal scene graph is encoded into a latent space, which may be used to decode a transcription of the video of the road scene 1006. For example, the transcription of the video may be used to generate navigation instructions. The navigation instructions may be displayed to a driver(s) of the vehicle via a dashboard of the camera 1008.

[0097] Further, an example of video transcription of scene 1002 or scene 1006 for a VQA task is now described in FIG.

[0098] FIG. 11 is an example scenario for performing a VQA task 1100 using a scene-aware video encoder system 900 according to some embodiments of the present disclosure. In an illustrative scenario, a user provides a query 1102 via speech or text format. The query 1102 may include "Why is the man in red looking at the boy in the middle of the video?" The scene-aware encoder system 900 searches a set of candidate answers 1104. The set of candidate answers 1104 includes "A1: learning to play," "A2: waiting for him," "A3: coming to pick up the boy," "A4: to videotape him," and "A5: watching him play the drums." Candidate answers 1106 include "A gt The query 1104 may include a ground truth answer 1108 such as "A5: watching him play the drums." Thus, the answer "A5: watching him play the drums," which matches the ground truth answer 1108, is returned as output for the query 1104. The answer to the query 1104 may be retrieved based on a highest confidence score or a highest probability approach.

[0099] Some embodiments are based on the recognition that the space-time transformer of FIG. 4 can be used for anomaly detection approaches because the space-time transformer uses a different principle of attention mechanism than other transformers. Specifically, the transformers use the same mechanism to extract keys, queries, and values, but the space-time transformers of some embodiments use different extraction functions to generate keys and queries and to generate values. For example, the space-time transformer uses a distance function to generate keys and queries and a feature extraction function to generate values. In this way, the keys and queries can represent metadata of the values, which increases the flexibility of the application of the transformers.

[0100] 12 shows a schematic diagram of a method 1200 of using different extraction functions for kernelized self-attention according to one embodiment. The present embodiment discloses an artificial intelligence (AI) system using kernelized self-attention 1260 for controlling a dynamic system whose state changes over time, the AI ​​system including at least one processor and a memory having instructions stored thereon, which when executed by the at least one processor, causes the AI ​​system to: collect time series data 1205 indicative of measurements of a sequence of state instances representing a state of the system at different instances of time; extract values ​​of each of the state instances from the time series data using a first extraction function 1210; and extract values ​​of the state instances from the time series data using a second extraction function 1220. and extracting a key and a query for each of the state instances, where the value of the state instance differs from the key and query of the state instance; further causing the AI ​​system to execute a kernelized self-attention module 1260 that uses a self-attention mechanism to modify a value 1250 of each of the state instances using the value of the state instance weighted with a weight determined based on a similarity between the query 1230 of the state instance and the key 1240 of the state instance; and further causing the AI ​​system to perform a control action based on the modified value 1270 of the state instance.

[0101] A possible setup of the embodiment described in FIG. 12 is to define the similarity kernels in 308 and 312 using features from the normal sequence as described in 1260. Such a method takes an initial feature 1210 from one part of the sequence, which becomes the query 1230. The key 1240 is a feature generated from another part of the sequence 1220. The value 1250 is a feature of the key generated by the neural network model 1290. The kernelized self-attention 1260 calculates the kernel similarity between the query and the key and generates a score that is used to weight the value 1250. This set of kernel linear combinations therefore includes the set of all features 1270 that are linear combinations of features from the normal sequence captured by the similarity kernel. Given an anomalous sequence of features, the kernel similarity calculated for the anomalous features as in 1200 can be used to calculate the linear combination of the anomalous features. To detect anomalies, the nearest neighbor distance between a set with a linear combination of features in the normal set and a set with a linear combination of features in the anomalous set can be calculated. If this distance is greater than a threshold, the set can be classified as anomalous. The neural network 1290 is trained such that the linear combination of values ​​is always bounded in a region of the latent space. Some embodiments of this approach can use labeled data, where the data is labeled as normal or abnormal. In this case, the neural network is trained such that the linear combination of values ​​preserves the data label.

[0102] The above description provides only exemplary embodiments and is not intended to limit the scope, applicability, or configuration of the disclosure. Rather, the following description of exemplary embodiments will provide those skilled in the art with an enabling description for implementing one or more exemplary embodiments. It is contemplated that various changes may be made to the function and arrangement of elements without departing from the spirit and scope of the disclosed subject matter as set forth in the appended claims.

[0103] Specific details are given in the following description to provide a thorough understanding of the embodiments. However, those skilled in the art will understand that the embodiments can be practiced without these specific details. For example, systems, processes, and other elements in the disclosed subject matter may be shown as components in block diagram form in order to avoid obscuring the embodiments in unnecessary detail. In other instances, well-known processes, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments. Additionally, like reference numbers and names in the various drawings refer to like elements.

[0104] Also, individual embodiments may be described as a process that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. In addition, the order of operations may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not discussed or included in the diagram. Moreover, not all operations in any process specifically described may occur in all embodiments. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, or the like. When a process corresponds to a function, the end of the function may correspond to a return of the function to the calling function or to the main function.

[0105] Additionally, embodiments of the disclosed subject matter may be implemented, at least in part, either manually or automatically. The manual or automated implementation may be performed or at least assisted through machine, hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware, or microcode, the program code or code segments to perform the necessary tasks may be stored on a machine-readable medium. A processor(s) may perform the necessary tasks.

[0106] The various methods or processes outlined herein may be coded as software executable on one or more processors employing any one of a variety of operating systems or platforms. In addition, such software may be written using any of a number of suitable programming languages ​​and / or programming or scripting tools, and may be compiled as executable machine language code or intermediate code that runs on a framework or virtual machine. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.

[0107] The embodiments of the present invention may be implemented as a method, an example of which is provided. The order of operations performed as part of the method may be determined in any suitable manner. Thus, the embodiments may be configured to perform operations in an order different from that illustrated, including performing some operations simultaneously, although they are shown as a sequence in the illustrated embodiments. Furthermore, the use of order terms such as "first," "second," and the like to modify elements of the claims does not, in itself, imply a priority, precedence, or order of one element of the claim over another element, or a chronological order in which the actions of a method are performed, but is merely used as a label to distinguish an element of a claim having a particular name from another element having the same name (apart from the use of order terms) to distinguish elements of the claims.

[0108] Although the present disclosure has been described with reference to certain preferred embodiments, it must be understood that various other adaptations and modifications can be made within the spirit and scope of the disclosure. It is therefore the object of the appended claims to cover all such variations and modifications that come within the true spirit and scope of the disclosure.

Claims

1. 1. A scene aware video encoder system comprising: at least one processor; and a memory having instructions stored thereon, the instructions, when executed by the at least one processor, causing the scene aware video encoder system to: receiving a sequence of video frames of an image of a scene; and converting the sequence of video frames into a spatio-temporal scene graph including nodes representing one or more static objects and one or more dynamic objects in the scene, wherein an appearance and position of each of the static objects in the scene is represented by properties of a single node of the spatio-temporal scene graph and each of the dynamic objects in the scene is represented by properties of a plurality of nodes of the spatio-temporal scene graph that describe the appearance, position, and motion of each of the dynamic objects at different instances of time. encoding the nodes of the spatio-temporal scene graph into a latent space using a space-time transformer, the space-time transformer encoding different combinations of different nodes of the space-time scene graph corresponding to different space-time volumes of the scene, the encoding of each one of the different nodes in each of the combinations being weighted with an attention score determined as a function of a similarity of spatio-temporal locations of the different nodes in each of the combinations; and outputting the encoded nodes of the spatio-temporal scene graph.

2. 2. The scene-aware video encoder system of claim 1, wherein different combinations of the different nodes of the spatio-temporal scene graph are selected using a window sliding method on different spatio-temporal volumes having different spatio-temporal resolutions.

3. 3. The scene-aware video encoder system of claim 2, wherein the processor is further configured to compute a similarity kernel for different combinations of the different nodes to determine similarity between different combinations of the different nodes of the spatio-temporal scene graph.

4. 4. The scene-aware video encoder system of claim 3, wherein the processor is further configured to merge the similarity kernels using a series of multi-layer perceptrons (MLPs) and output a final graph feature of the spatio-temporal scene graph in a single feature representation.

5. The processor further comprises: registering each video frame of the sequence of video frames into a shared pseudo three-dimensional (3D) space-time; 2. The scene-aware video encoder system of claim 1 , configured to create a pseudo-3D scene graph representation of the sequence of video frames upon registering each video frame of the sequence of video frames, the pseudo-3D scene graph representation being embedded into the spatio-temporal scene graph in the latent space.

6. 6. The scene-aware video encoder system of claim 5, wherein the processor is further configured to partition the spatio-temporal scene graph representation into a static sub-graph and a dynamic sub-graph, the static sub-graph including graph nodes corresponding to one or more objects that are static in the scene, and the dynamic sub-graph including graph nodes corresponding to one or more objects that are moving in the scene.

7. 7. The scene-aware video encoder system of claim 6, wherein the processor is further configured to merge at least two graph nodes of the static subgraph based on a criterion comprising one or a combination of: 3D spatio-temporal proximity of the two graph nodes near each other across the sequence of video frames; corresponding objects of the two graph nodes having the same object label; and an Intersection over Union (IoU) of corresponding bounding boxes of the objects exceeding a predefined threshold.

8. 2. The scene-aware video encoder system of claim 1 , wherein the processor is further configured to decode, using a decoder trained with the space-time transformer, a transcription of the video of the scene from the encoded nodes of the spatio-temporal scene graph in the latent space.

9. The processor further comprises: receiving a query corresponding to the video; and generating an embedding of the query using multi-headed self-attention, the query being addressed on a hierarchical abstraction of the spatio-temporal scene graph using a multi-headed attention transformer, the processor further comprising: performing mean pooling of the embeddings; The scene-aware video encoder system of claim 8 , configured to output features conditioned on a query based on the average pooling.

10. The processor further comprises: predicting an answer to the query based on features conditioned on the query; Calculating a similarity between the predicted answer and a set of candidate answers; The scene-aware video encoder system of claim 9 , configured to output an answer representation to the query based on the calculated similarity.

11. 1. A method for performing scene aware video encoding, comprising: receiving a sequence of video frames of an image of a scene; and converting the sequence of video frames into a spatio-temporal scene graph including nodes representing one or more static objects and one or more dynamic objects in the scene, wherein an appearance and position of each of the static objects in the scene is represented by properties of a single node of the spatio-temporal scene graph and each of the dynamic objects in the scene is represented by properties of a plurality of nodes of the spatio-temporal scene graph that describe the appearance, position, and behavior of each of the dynamic objects at different instances of time, the method further comprising: encoding the nodes of the spatio-temporal scene graph into a latent space using a space-time transformer, the space-time transformer encoding different combinations of different nodes of the space-time scene graph corresponding to different space-time volumes of the scene, the encoding of each of the different nodes in each of the combinations being weighted with an attention score determined as a function of a similarity of spatio-temporal locations of the different nodes in each of the combinations, the method further comprising: outputting the encoded nodes of the spatiotemporal scene graph.

12. The method of claim 11 , further comprising: selecting different combinations of the different nodes of the spatio-temporal scene graph using window sliding of different spatio-temporal volumes having different spatio-temporal resolutions.

13. Computing similarity kernels for different combinations of the different nodes; The method of claim 12 , further comprising: determining similarities between different combinations of the different nodes of the spatio-temporal scene graph based on the similarity kernel.

14. merging the similarity kernels using a series of multi-layer perceptrons (MLPs); The method of claim 13 , further comprising: outputting a final graph feature of the spatio-temporal scene graph in a single feature representation.

15. registering each video frame of the sequence of video frames into a shared pseudo three-dimensional (3D) space-time; 12. The method of claim 11, further comprising: creating a pseudo-3D scene graph representation of the sequence of video frames upon registering each video frame of the sequence of video frames, the pseudo-3D scene graph representation being embedded into the spatio-temporal scene graph of the latent space.

16. 16. The method of claim 15, further comprising partitioning the spatiotemporal scene graph representation into a static subgraph and a dynamic subgraph, the static subgraph including graph nodes corresponding to one or more objects that are static in the scene, and the dynamic subgraph including graph nodes corresponding to one or more objects that are moving in the scene.

17. 17. The method of claim 16, further comprising merging at least two graph nodes of the static subgraph based on a criterion comprising one or a combination of: 3D spatio-temporal proximity of the two graph nodes near each other across the sequence of video frames; corresponding objects of the two graph nodes having the same object label; and an Intersection over Union (IoU) of corresponding bounding boxes of the objects exceeding a predefined threshold.

18. 12. The method of claim 11, further comprising decoding the video transcription of the scene from the encoded nodes of the spatio-temporal scene graph in the latent space using a decoder trained with the spatio-temporal transformer.

19. receiving a query corresponding to the video; generating an embedding of the query using multi-headed self-attention, the query being addressed on a hierarchical abstraction of the spatio-temporal scene graph using a multi-headed attention transformer; and performing mean pooling of the embeddings; and and outputting features conditioned on a query based on the average pooling.

20. predicting an answer to the query based on features conditioned on the query; and calculating a similarity between the predicted answer and a set of candidate answers; 20. The method of claim 19, further comprising: outputting an answer representation to the query based on the calculated similarity.

Citation Information

Patent Citations

  • System and method for transitioning between real images and virtual images

    US20030030734A1

  • Scene-Aware Video Dialog

    US20210248375A1

Cited By

  • Systems and methods for anomaly detection using attention models

    JP2025536155A

  • System and Method for Anomaly Detection Using an Attention Model

    JP7924497B2