WO2025101593A1 - Open vocabulary action detection - Google Patents
Open vocabulary action detection Download PDFInfo
- Publication number
- WO2025101593A1 WO2025101593A1 PCT/US2024/054707 US2024054707W WO2025101593A1 WO 2025101593 A1 WO2025101593 A1 WO 2025101593A1 US 2024054707 W US2024054707 W US 2024054707W WO 2025101593 A1 WO2025101593 A1 WO 2025101593A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- action
- video
- query
- vlm
- person
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/41—Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/80—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
- G06V10/806—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of extracted features
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/46—Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/50—Context or environment of the image
- G06V20/56—Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
- G06V20/58—Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
Definitions
- Action detection is used to provide a high-level understanding of video content, which can be used to make recommendations in social media applications, for video editing, and to assist in autonomous driving.
- action detection that is limited to a closed set of predefined categories may be limited in its applicability to real world scenarios, where any kind of human action could be performed.
- a method for action detection includes encoding a text feature of an input textual description of an action using a visual language model (VLM).
- VLM visual language model
- a video feature of an input video is encoded using the VLM.
- the action in the video is recognized, 23041PCT Page 1 of 29 based on the text feature and the video feature, to localize the action within the video.
- a person performing the action is located within the video using the VLM.
- a system for action detection includes a hardware processor and a memory that stores a computer program.
- the computer program When executed by the hardware processor, the computer program causes the hardware processor to encode a text feature of an input textual description of an action using a VLM, to encode a video feature of an input video using the VLM, to recognize the action in the video, based on the text feature and the video feature, to localize the action within the video, and to locate a person performing the action within the video using the VLM.
- FIG. 1 is a diagram showing an action detection task within a video, in accordance with an embodiment of the present invention
- FIG. 2 is a block/flow diagram of action detection and person localization using an open vocabulary, in accordance with an embodiment of the present invention
- FIG. 3 is a block/flow diagram of location sampling in an action detection system, in accordance with an embodiment of the present invention
- FIG. 11 is a diagram showing an action detection task within a video, in accordance with an embodiment of the present invention.
- FIG. 4 is a block/flow diagram of semantic fusion in an action detection system, in accordance with an embodiment of the present invention
- FIG.5 is a block/flow diagram of a mixer model in an action detection system, in accordance with an embodiment of the present invention
- FIG. 6 is a block/flow diagram of a mixer model, in accordance with an embodiment of the present invention
- FIG. 7 is a block/flow diagram of a spatial mixer, in accordance with an embodiment of the present invention
- FIG. 8 is a block/flow diagram of a temporal mixer, in accordance with an embodiment of the present invention
- FIG. 16 is a block/flow diagram of semantic fusion in an action detection system, in accordance with an embodiment of the present invention
- FIG.5 is a block/flow diagram of a mixer model in an action detection system, in accordance with an embodiment of the present invention
- FIG. 6 is a block/flow diagram of a mixer model, in accordance
- FIG. 9 is a block/flow diagram of a method of recognizing and responding to an action in a video, in accordance with an embodiment of the present invention.
- FIG. 10 is a diagram of a computing device that can detect and respond to actions in a video, in accordance with an embodiment of the present invention.
- FIG.11 is a diagram of an exemplary neural network architecture that can be used to implement a machine learning model, in accordance with an embodiment of the present invention; and
- FIG. 12 is a diagram of an exemplary deep neural network architecture that can be used to implement a machine learning model, in accordance with an embodiment of the present invention.
- Open vocabulary action detection aims to detect video actions in an open world, without being limited to predefined categories.
- a visual language model (VLM) is used to expand the vocabulary of the action detection system. Semantics and location priors of the VLM are used to prevent overfitting of the learnable action recognition to actions that have been defined by task-specific training data, which could otherwise 23041PCT Page 3 of 29 result in poor generalization to previously unseen actions.
- the localization capability of the VLM is furthermore enhanced to provide more accurate identification of the location of the person performing the action within a video frame.
- the video features of pretrained VLMs may be fused with a learnable action recognition head.
- Pretrained VLM features have the capability for strong generalization to detect previously unseen actions, while the learnable action recognition head adapts the video features to detect the task-relevant seen actions.
- a dynamic feature fusion naturally takes the merits of both, leading to good performance in detecting both previously seen actions and previously unseen actions.
- the top K locations may be sampled over a visual attention map, generated from patch-text similarity based on the VLM.
- the patch-text similarity from the visual transformer-based VLM indicates the importance of each pixel with respect to textual action.
- open vocabulary action detection is challenging as it calls for an understanding of human motion dynamics across frames.
- open vocabulary action detection can be targeted using a large-scale pretrained VLM, with semantics fusion being used to combine pretrained video features from the VLM and the learnable video features from task-specific datasets. Localization takes advantage of the VLM’s localization capabilities to localize action-relevant persons in the video.
- 23041PCT Page 4 of 29 Referring now to FIG.
- an exemplary frame 100 from a video stream is shown.
- a man is shooting a basketball toward a hoop.
- Action detection identifies the action that is being performed and person localization identifies where the person is who is performing that action, for example by generating coordinates for a bounding box 102 around the person.
- the identified action may be provided as a textual output, with a natural language description of the action within the frame 100.
- FIG. 2 a diagram of an action detection model is shown.
- datasets may be employed which include videos and corresponding descriptive text that labels the actions taking place. This input is processed as input video 202 and input text 204, with the input text 204 specifically describing corresponding input video 202.
- a VLM video encoder 212 and a VLM text encoder 214 process the input video 202 and the input text 204, respectively, to generate embeddings of each.
- the parameters of the VLM video encoder 212 and the VLM text encoder 214 are kept fixed during training—these components are pre-trained and are not altered during the action detection training.
- Location sampling 216 takes the VLM video features output by the VLM video encoder 212 and the VLM text features output by the VLM text encoder 214 as input and generates initial locations for training the action detection head 220.
- the action detection head 220 is trained to localize 222 the person performing an action within a frame, and so may output a corresponding bounding box.
- Semantic fusion 218 uses the VLM video features in conjunction with the bounding box to align with the VLM text feature. This alignment is performed using an alignment 23041PCT Page 5 of 29 loss that forces the text features corresponding to an action in the video to algin with each other, as described in greater detail below.
- the input text 204 is a textual description of the actions that are being detected. This kind of action description goes into the text encoder 214, which outputs a set of features for each description, which are then aligned or matched with the detected person features in the video.
- the alignment includes matrix multiplication between the text features and the person features and using a softmax function to convert the matching into probabilities. If the action text features and the person features match to within a certain threshold (e.g., using a similarity metric between the respective vectors such as cosine similarity), then the model determines that the person is performing the action in the video. [0028] Referring now to FIG. 3, additional detail on the location sampling 216 is shown. Given a video input, the VLM video encoder 212 generates video patch features 302 and [CLS] token feature 304 (where “CLS” stands for “classify”).
- the [CLS] token feature 304 and the text features 306 are processed in matching 308, with the matched features being used along with video patch features 302 to compute a patch-text similarity map 310.
- the video features from VLM are extracted using the video encoder 212. These are output as video patch features 302 over the entire video clip, including patches from each frame and a corresponding [CLS] token 304. For example, if a video has eight frames and a resolution of 224 x 224, it may be split into multiple patches of a fixed size (e.g., 16 x 16) and may be converted into a sequence of tokens.
- a learned parameter, called the [CLS] token 304 is appended to the sequence.
- Block 312 masks the patch-text similarity map by applying a threshold with a median intensity value. Points in the map having an intensity higher than the threshold are kept and other points are masked to remove them from the map. Sampling 314 is performed to select the locations of the top-K highest density values as the initial locations for the input of the downstream action detection head 220. The value for K may be selected based on heuristics.
- K may be selected to be a large number (e.g., 100).
- [CLS] token feature 402 for an input video and the action detection feature 408 output by action detection head 220 linear weighting is used to fuse the features with a learnable fusion weight, with the weights being learned during training. Similarities 410 are determined between the fused features and text features 404 for words from a vocabulary list, for example performed as a cosine similarity between the respective feature vectors.
- the vocabulary list is a list of class names from the labels in the training dataset.
- the maximum similarity over the vocabulary list is the video-text alignment score 412, which indicates the action category of the input video.
- video-level semantics are transferred to each region, with a set of region-wise queries being learned to decode temporal dynamics from the videos using pre-trained video-level features as adaptive semantic conditions.
- the updated queries and video-level features are fused and aligned with textual semantics for recognition.
- FIG. 5 an arrangement of mixer blocks is shown to handle action detection as a set-to-set prediction problem, learning a sparse set of query 23041PCT Page 7 of 29 features from videos to match with ground truth boxes and action classes.
- Action classes are predicted from an open vocabulary that includes base and novel actions.
- the input video 202 and associated action text 204 are input to a video VLM 502, which includes the VLM video encoder 212 and the VLM text encoder 214.
- the output VLM features 504 include the outputs of the respective encoders on a frame- by-frame basis and are provided as inputs to a mixer 506 with respective mixer blocks 508 handling each frame.
- the mixer 506 outputs a set of person boxes 510, person scores 512, and action scores 514 for each frame, output by the respective mixer blocks 508.
- Each mixer block 508 outputs its frame’s person boxers to the next mixer block 508 to use as a basis for person localization in the next frame.
- V, ⁇ , and S are the four-dimensional patch-level video feature, the video-level feature, and the video attention, respectively, and ⁇ ⁇ is the text feature of a class y.
- the M mixer blocks 508 learn a set of N spatial queries ⁇ and N temporal queries ⁇ from ⁇ , ⁇ , ⁇ , ⁇ for person detection and action classification, respectively.
- the mixer blocks 506 take as input all of the VLM features 504 and the queries ⁇ ⁇ and ⁇ ⁇ . [0037] Referring now to FIG. 6, additional detail on the mixer blocks 508 is shown.
- a temporal mixer block 608 implements and a spatial mixer block 610 implements
- the spatial mixer block 610 includes prior location sampling, query-query mixing by self-attention, and query-video mixing, while the temporal mixer block 608 sequentially applies query-query mixing, query conditioning, and query-video mixing.
- a dynamically fused alignment block 612 recursively updates 23041PCT Page 8 of 29 the temporal queries 602 and the spatial queries 604 and person boxes 606 from the ⁇ ⁇ 1 ⁇ th mixer block to predict person scores and action scores for the mth video frame.
- the input spatial queries ⁇ ⁇ 702 are processed by query-query mixing 704 and query-video mixing 706 to generate updated spatial queries ⁇ ⁇ ⁇ 708, which are output to the next mixer block 508 and which are used to generate person scores and location boxes for the present video frame.
- the query-query mixing 704 and the query-video mixing 706 both receive location boxes from the previous mixer block 508 as inputs, and the query-video mixing 706 further receives features V.
- a lack of prior knowledge of object locations can contribute to low localization convergence.
- the visual attention from the VLM is used to supply this information.
- Visual attention maps may be represented by a class activation map (CAM) to visually explain a recognition model.
- CAM class activation map
- An efficient and structure-agnostic CAM may be used on patch-text correlation as a VLM attention to encode location priors.
- the query-video attention in self- attention layers shows an opposite heatmap, where the foreground regions are associated with low attention values.
- the attention map is obtained for prior location sampling.
- the ⁇ - is treated as the prior distribution of person locations indicated by the VLM, thus the top-N positions are sampled as the initial box centers: 8 ⁇ where ⁇ /, 1 ⁇ are two-dimensional coordinates on key frame k and where N is the number of queries.
- the spatial mixer 610 takes as input the video patch features V and the box predictions 9: th ; ⁇ !
- the spatial mixer 610 thus learns the box offset ⁇ 9 from the prior locations inherited from the pre-trained VLM.
- the VLM’s attention- based prior locations are adaptive to test-time video content and vocabulary, which improves the seen action localization as well as generalization to unseen vocabulary.
- the input temporal queries ⁇ ⁇ 802 are processed by query-query mixing 804.
- a condition 805 23041PCT Page 10 of 29 is applied based on the video features ⁇ ⁇ .
- Query-video mixing 806 is then used to generate updated temporal queries ⁇ ⁇ ⁇ 808, which are output to the next mixer block 508.
- the query-query mixing 804 and the query-video mixing 806 both receive location boxes from the previous mixer block 508 as inputs.
- the dynamically fused alignment block 612 takes the feature vector ⁇ ⁇ and the updated temporal queries ⁇ ⁇ ⁇ as inputs from the temporal mixer 608, along with the text features G ⁇ , and combines them to form action scores.
- temporal queries are expected to be discriminative for both base and new actions.
- the query-video mixing 806 thus provides strong content decoding.
- Adaptive semantics from the pre-trained VLM are used to prevent overfitting to seen class data.
- the query is updated as: are functions that implement the query-query mixing 804 and the query-video mixing 806, respectively.
- ⁇ ⁇ applies the adaptive semantic condition 805 by the pre-trained VLM video feature, which is broadcast-added to the output of the query-query mixing 804.
- the adaptiveness of the semantic condition 805 stems from the test-time video feature ⁇ ⁇ .
- This precondition is superior to a postcondition because of the better query features used to learn the query-video mixing 806.
- the model learns discriminative region-wise visual features to align with seen actions, while keeping the generalizable knowledge of the pre-trained VLM to align with the unseen actions.
- the dynamically fused alignment 612 is used for open vocabulary action recognition, being formulated to learn the action classification at each stage : KLM ⁇ , ⁇ A, where KLM are the 23041PCT Page 11 of 29 predicted actions for all queries ⁇ ⁇ ⁇ and the O ; are the learnable parameters.
- KLM are the 23041PCT Page 11 of 29 predicted actions for all queries ⁇ ⁇ ⁇ and the O ; are the learnable parameters.
- Dynamic feature fusion aims to fuse the video-level feature ⁇ ⁇ into each of the queries ⁇ dynamically.
- the ⁇ is repeated N tim Q ⁇ ⁇ ⁇ es to produce P ⁇ ⁇ R . This is fused are learnable in training.
- the query-specific learnable parameters allow dynamic contributions of the video-level knowledge from ⁇ ⁇ to different learnable queries in the set-matching training.
- a large language model (LLM) may be used to generate multiple visually descriptive action prompts for each category.
- VLM text encoder 214 the aggregated text features of the U classes are represented as P
- the of visual-text cosine similarity is used to represent the multi-class classification probability V@ ⁇ L
- ⁇ A softmax@P- % ⁇ ⁇ P ⁇ / ⁇ A, where ⁇ is the VLM temperature.
- Block 902 trains the model as described above, using any appropriate training dataset that may include annotated video streams.
- Block 904 records a new video stream. This step may be performed before training model training 902, concurrently with that training, or subsequent to that training.
- the new video may include a set of frames that includes one or more actions of interest, but may be unlabeled.
- the new video may include video of a sporting event where one or more individuals performs actions relating to the sport.
- the new video may be a video captured by a self-driving vehicle, showing pedestrians performing activities in the environment around the vehicle.
- Block 906 encodes an action description relating to an action that is being sought in the video. This may include multiple such action descriptions, relating to different actions of interest.
- Block 908 encodes the new video. 23041PCT Page 13 of 29 [0052]
- Block 910 performs open vocabulary action detection on the new video using the trained model.
- the model may output include labels for the action being performed as well as bounding boxes that identify the location of a person performing the action.
- the output may include labels for multiple such actions within a single new video, performed by one or more actors.
- the labels are not limited to action classes that are present in the training dataset, but may include previously unseen action classes.
- block 912 Based on the labels generated by the model for the new video, block 912 performs a responsive action. Following the above example of a sporting event, the responsive action may include automatically generating additional information relating to the detected action such as an identification of the actor, statistics relating to the actor or the detected action, and updates to the state of the sporting event based on the outcome of the action. Other uses for temporal action localization include security monitoring, for example identifying hazardous events in a video feed, and video labeling to segment videos based on semantic meaning to aid in summarizing important information from the video. [0054] In some cases, the action of block 912 may include a driving action.
- block 910 identifies a person who is walking toward the vehicle or otherwise about to cause a hazardous event
- block 912 may perform a steering action, acceleration action, or braking action to avoid or mitigate the hazardous event.
- FIG. 10 an exemplary computing device 1000 is shown, in accordance with an embodiment of the present invention.
- the computing device 1000 is configured to perform open vocabulary action detection.
- the computing device 1000 may be embodied as any type of computation or computer device capable of performing the functions described herein, including, without limitation, a computer, a server, a rack based server, a blade server, a 23041PCT Page 14 of 29 workstation, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor- based system, and/or a consumer electronic device. Additionally or alternatively, the computing device 1000 may be embodied as one or more compute sleds, memory sleds, or other racks, sleds, computing chassis, or other components of a physically disaggregated computing device.
- the computing device 1000 illustratively includes the processor 1010, an input/output subsystem 1020, a memory 1030, a data storage device 1040, and a communication subsystem 1050, and/or other components and devices commonly found in a server or similar computing device.
- the computing device 1000 may include other or additional components, such as those commonly found in a server computer (e.g., various input/output devices), in other embodiments. Additionally, in some embodiments, one or more of the illustrative components may be incorporated in, or otherwise form a portion of, another component.
- the memory 1030, or portions thereof may be incorporated in the processor 1010 in some embodiments.
- the processor 1010 may be embodied as any type of processor capable of performing the functions described herein.
- the processor 1010 may be embodied as a single processor, multiple processors, a Central Processing Unit(s) (CPU(s)), a Graphics Processing Unit(s) (GPU(s)), a single or multi-core processor(s), a digital signal processor(s), a microcontroller(s), or other processor(s) or processing/controlling circuit(s).
- the memory 1030 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein.
- the memory 1030 may store various data and software used during operation 23041PCT Page 15 of 29 of the computing device 1000, such as operating systems, applications, programs, libraries, and drivers.
- the memory 1030 is communicatively coupled to the processor 1010 via the I/O subsystem 1020, which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 1010, the memory 1030, and other components of the computing device 1000.
- the I/O subsystem 1020 may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, platform controller hubs, integrated control circuitry, firmware devices, communication links (e.g., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.), and/or other components and subsystems to facilitate the input/output operations.
- the I/O subsystem 1020 may form a portion of a system-on-a-chip (SOC) and be incorporated, along with the processor 1010, the memory 1030, and other components of the computing device 1000, on a single integrated circuit chip.
- SOC system-on-a-chip
- the data storage device 1040 may be embodied as any type of device or devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid state drives, or other data storage devices.
- the data storage device 1040 can store program code 1040A for performing training of the model, 1040B for open vocabulary action detection, and/or 1040C for responding to detected actions. Any or all of these program code blocks may be included in a given computing system.
- the communication subsystem 1050 of the computing device 1000 may be embodied as any network interface controller or other communication circuit, device, or collection thereof, capable of enabling communications between the computing device 1000 and other remote devices over a network.
- the communication subsystem 1050 may be configured to use any one or more communication technology (e.g., wired or wireless communications) and 23041PCT Page 16 of 29 associated protocols (e.g., Ethernet, InfiniBand®, Bluetooth®, Wi-Fi®, WiMAX, etc.) to effect such communication.
- the computing device 1000 may also include one or more peripheral devices 1060.
- the peripheral devices 1060 may include any number of additional input/output devices, interface devices, and/or other peripheral devices.
- the peripheral devices 1060 may include a display, touch screen, graphics circuitry, keyboard, mouse, speaker system, microphone, network interface, and/or other input/output devices, interface devices, and/or peripheral devices.
- the computing device 1000 may also include other elements (not shown), as readily contemplated by one of skill in the art, as well as omit certain elements.
- various other sensors, input devices, and/or output devices can be included in computing device 1000, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art.
- various types of wireless and/or wired input and/or output devices can be used.
- additional processors, controllers, memories, and so forth, in various configurations can also be utilized.
- a neural network is a generalized system that improves its functioning and accuracy through exposure to additional empirical data.
- the neural network becomes trained by exposure to the empirical data.
- the neural network stores and adjusts a plurality of weights that are applied to the incoming empirical data.
- the data can be identified as belonging to a particular predefined class from a set of classes or a probability that the inputted data belongs to each of the classes can be outputted.
- the empirical data also known as training data, from a set of examples can be formatted as a string of values and fed into the input of the neural network.
- Each example may be associated with a known result or output.
- Each example can be represented as a pair, (x, y), where x represents the input data and y represents the known output.
- the input data may include a variety of different data types, and may include multiple distinct values.
- the network can have one input node for each value making up the example’s input data, and a separate weight can be applied to each input value.
- the input data can, for example, be formatted as a vector, an array, or a string depending on the architecture of the neural network being constructed and trained. [0065]
- the neural network “learns” by comparing the neural network output generated from the input data to the known values of the examples, and adjusting the stored weights to minimize the differences between the output values and the known values.
- the adjustments may be made to the stored weights through back propagation, where the effect of the weights on the output values may be determined by calculating the mathematical gradient and adjusting the weights in a manner that shifts the output towards a minimum difference.
- This optimization referred to as a gradient descent approach, is a non-limiting example of how training may be performed.
- a subset of examples with known values that were not used for training can be used to test and validate the accuracy of the neural network.
- the trained neural network can be used on new data that was not previously used in training or validation through generalization.
- the adjusted weights of the neural network can be applied to the new data, where the weights 23041PCT Page 18 of 29 estimate a function developed from the training examples.
- nodes are arranged in the form of layers.
- An exemplary simple neural network has an input layer 1120 of source nodes 1122, and a single computation layer 1130 having one or more computation nodes 1132 that also act as output nodes, where there is a single computation node 1132 for each possible category into which the input example could be classified.
- An input layer 1120 can have a number of source nodes 1122 equal to the number of data values 1112 in the input data 1110.
- the data values 1112 in the input data 1110 can be represented as a column vector.
- Each computation node 1132 in the computation layer 1130 generates a linear combination of weighted values from the input data 1110 fed into input nodes 1120, and applies a non-linear activation function that is differentiable to the sum.
- the exemplary simple neural network can perform classification on linearly separable examples (e.g., patterns).
- a deep neural network such as a multilayer perceptron, can have an input layer 1120 of source nodes 1122, one or more computation layer(s) 1130 having one or more computation nodes 1132, and an output layer 1140, where there is a single output node 1142 for each possible category into which the input example could be classified.
- An input layer 1120 can have a number of source nodes 1122 equal to the number of data values 1112 in the input data 1110.
- the computation nodes 1132 in the computation layer(s) 1130 can also be referred to as hidden layers, because they are between the source nodes 1122 and output node(s) 1142 and are not directly observed.
- Each node 1132, 1142 in a computation layer generates a linear combination of weighted values from the values output from the nodes in a previous layer, and applies a non-linear activation function that is differentiable over the range of the linear 23041PCT Page 19 of 29 combination.
- the weights applied to the value from each previous node can be denoted, for example, by w1, w2, ... wn-1, wn.
- the output layer provides the overall response of the network to the inputted data.
- a deep neural network can be fully connected, where each node in a computational layer is connected to all other nodes in the previous layer, or may have other configurations of connections between layers. If links between nodes are missing, the network is referred to as partially connected.
- Training a deep neural network can involve two phases, a forward phase where the weights of each node are fixed and the input propagates through the network, and a backwards phase where an error value is propagated backwards through the network and weight values are updated.
- the computation nodes 1132 in the one or more computation (hidden) layer(s) 1130 perform a nonlinear transformation on the input data 1112 that generates a feature space.
- Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
- Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system.
- a computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device.
- the medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) 23041PCT Page 20 of 29 or a propagation medium.
- the medium may include a computer-readable storage medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc.
- Each computer program may be tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein.
- a data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus.
- the memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code to reduce the number of times code is retrieved from bulk storage during execution.
- I/O devices including but not limited to keyboards, displays, pointing devices, etc. may be coupled to the system either directly or through intervening I/O controllers.
- Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters. 23041PCT Page 21 of 29 [0076]
- the term “hardware processor subsystem” or “hardware processor” can refer to a processor, memory, software or combinations thereof that cooperate to perform one or more specific tasks.
- the hardware processor subsystem can include one or more data processing elements (e.g., logic circuits, processing circuits, instruction execution devices, etc.).
- the one or more data processing elements can be included in a central processing unit, a graphics processing unit, and/or a separate processor- or computing element-based controller (e.g., logic gates, etc.).
- the hardware processor subsystem can include one or more on-board memories (e.g., caches, dedicated memory arrays, read only memory, etc.).
- the hardware processor subsystem can include one or more memories that can be on or off board or that can be dedicated for use by the hardware processor subsystem (e.g., ROM, RAM, basic input/output system (BIOS), etc.).
- the hardware processor subsystem can include and execute one or more software elements.
- the one or more software elements can include an operating system and/or one or more applications and/or specific code to achieve a specified result.
- the hardware processor subsystem can include dedicated, specialized circuitry that performs one or more electronic processing functions to achieve a specified result. Such circuitry can include one or more application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and/or programmable logic arrays (PLAs).
- ASICs application-specific integrated circuits
- FPGAs field-programmable gate arrays
- PDAs programmable logic arrays
- references in the specification to “one embodiment” or “an embodiment” of the present invention, as well as other variations thereof, means that a particular 23041PCT Page 22 of 29 feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present invention.
- the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment.
- features of one or more embodiments can be combined given the teachings of the present invention provided herein.
- such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C).
- This may be extended for as many items listed.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Image Analysis (AREA)
Abstract
Methods and systems for action detection include encoding (214) a text feature of an input textual description of an action using a visual language model (VLM). A video feature of an input video is encoded (212) using the VLM. The action in the video is recognized (224), based on the text feature and the video feature, to localize the action within the video. A person performing the action is located (222) within the video using the VLM.
Description
OPEN VOCABULARY ACTION DETECTION RELATED APPLICATION INFORMATION [0001] This application claims priority to U.S. Patent Application No. 63/596,676, filed on November 7, 2023, to U.S. Patent Application No. 63/548,545, filed on November 14, 2023, and to U.S. Patent Application No.18/937,628, filed on November 5, 2024, each incorporated herein by reference in its entirety. BACKGROUND Technical Field [0002] The present invention relates to action detection and, more particularly, using language models to expand the vocabulary of an action detection system. Description of the Related Art [0003] Video action detection aims to recognize human activities within video streams. Action detection is used to provide a high-level understanding of video content, which can be used to make recommendations in social media applications, for video editing, and to assist in autonomous driving. However, action detection that is limited to a closed set of predefined categories may be limited in its applicability to real world scenarios, where any kind of human action could be performed. SUMMARY [0004] A method for action detection includes encoding a text feature of an input textual description of an action using a visual language model (VLM). A video feature of an input video is encoded using the VLM. The action in the video is recognized, 23041PCT Page 1 of 29
based on the text feature and the video feature, to localize the action within the video. A person performing the action is located within the video using the VLM. [0005] A system for action detection includes a hardware processor and a memory that stores a computer program. When executed by the hardware processor, the computer program causes the hardware processor to encode a text feature of an input textual description of an action using a VLM, to encode a video feature of an input video using the VLM, to recognize the action in the video, based on the text feature and the video feature, to localize the action within the video, and to locate a person performing the action within the video using the VLM. [0006] These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS [0007] The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein: [0008] FIG. 1 is a diagram showing an action detection task within a video, in accordance with an embodiment of the present invention; [0009] FIG. 2 is a block/flow diagram of action detection and person localization using an open vocabulary, in accordance with an embodiment of the present invention; [0010] FIG. 3 is a block/flow diagram of location sampling in an action detection system, in accordance with an embodiment of the present invention; [0011] FIG. 4 is a block/flow diagram of semantic fusion in an action detection system, in accordance with an embodiment of the present invention; 23041PCT Page 2 of 29
[0012] FIG.5 is a block/flow diagram of a mixer model in an action detection system, in accordance with an embodiment of the present invention; [0013] FIG. 6 is a block/flow diagram of a mixer model, in accordance with an embodiment of the present invention; [0014] FIG. 7 is a block/flow diagram of a spatial mixer, in accordance with an embodiment of the present invention; [0015] FIG. 8 is a block/flow diagram of a temporal mixer, in accordance with an embodiment of the present invention; [0016] FIG. 9 is a block/flow diagram of a method of recognizing and responding to an action in a video, in accordance with an embodiment of the present invention; [0017] FIG. 10 is a diagram of a computing device that can detect and respond to actions in a video, in accordance with an embodiment of the present invention; [0018] FIG.11 is a diagram of an exemplary neural network architecture that can be used to implement a machine learning model, in accordance with an embodiment of the present invention; and [0019] FIG. 12 is a diagram of an exemplary deep neural network architecture that can be used to implement a machine learning model, in accordance with an embodiment of the present invention. DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS [0020] Open vocabulary action detection aims to detect video actions in an open world, without being limited to predefined categories. A visual language model (VLM) is used to expand the vocabulary of the action detection system. Semantics and location priors of the VLM are used to prevent overfitting of the learnable action recognition to actions that have been defined by task-specific training data, which could otherwise 23041PCT Page 3 of 29
result in poor generalization to previously unseen actions. The localization capability of the VLM is furthermore enhanced to provide more accurate identification of the location of the person performing the action within a video frame. [0021] To handle overfitting, where the VLM-based action recognition is trained on videos of particular actions, the video features of pretrained VLMs may be fused with a learnable action recognition head. Pretrained VLM features have the capability for strong generalization to detect previously unseen actions, while the learnable action recognition head adapts the video features to detect the task-relevant seen actions. A dynamic feature fusion naturally takes the merits of both, leading to good performance in detecting both previously seen actions and previously unseen actions. [0022] To improve localization, the top K locations may be sampled over a visual attention map, generated from patch-text similarity based on the VLM. The patch-text similarity from the visual transformer-based VLM indicates the importance of each pixel with respect to textual action. With the sampled locations as the input of the model, the action-relevant persons in a frame can be more easily detected. In addition, the sampled locations are also generalizable prior knowledge across the seen and unseen actions, so that they can also benefit in the detection of previously unseen actions. [0023] Open vocabulary action detection is challenging as it calls for an understanding of human motion dynamics across frames. Thus open vocabulary action detection can be targeted using a large-scale pretrained VLM, with semantics fusion being used to combine pretrained video features from the VLM and the learnable video features from task-specific datasets. Localization takes advantage of the VLM’s localization capabilities to localize action-relevant persons in the video. 23041PCT Page 4 of 29
[0024] Referring now to FIG. 1, an exemplary frame 100 from a video stream is shown. In the video, a man is shooting a basketball toward a hoop. Action detection identifies the action that is being performed and person localization identifies where the person is who is performing that action, for example by generating coordinates for a bounding box 102 around the person. The identified action may be provided as a textual output, with a natural language description of the action within the frame 100. [0025] Referring now to FIG. 2, a diagram of an action detection model is shown. During training, datasets may be employed which include videos and corresponding descriptive text that labels the actions taking place. This input is processed as input video 202 and input text 204, with the input text 204 specifically describing corresponding input video 202. A VLM video encoder 212 and a VLM text encoder 214 process the input video 202 and the input text 204, respectively, to generate embeddings of each. The parameters of the VLM video encoder 212 and the VLM text encoder 214 are kept fixed during training—these components are pre-trained and are not altered during the action detection training. [0026] Location sampling 216 takes the VLM video features output by the VLM video encoder 212 and the VLM text features output by the VLM text encoder 214 as input and generates initial locations for training the action detection head 220. The action detection head 220 is trained to localize 222 the person performing an action within a frame, and so may output a corresponding bounding box. To exploit the video VLM localizability for region-wise localization, a set of queries is learned to decode the person boxes, starting from the prior locations revealed by VLM visual attention. Semantic fusion 218 uses the VLM video features in conjunction with the bounding box to align with the VLM text feature. This alignment is performed using an alignment 23041PCT Page 5 of 29
loss that forces the text features corresponding to an action in the video to algin with each other, as described in greater detail below. [0027] During inference, the input text 204 is a textual description of the actions that are being detected. This kind of action description goes into the text encoder 214, which outputs a set of features for each description, which are then aligned or matched with the detected person features in the video. The alignment includes matrix multiplication between the text features and the person features and using a softmax function to convert the matching into probabilities. If the action text features and the person features match to within a certain threshold (e.g., using a similarity metric between the respective vectors such as cosine similarity), then the model determines that the person is performing the action in the video. [0028] Referring now to FIG. 3, additional detail on the location sampling 216 is shown. Given a video input, the VLM video encoder 212 generates video patch features 302 and [CLS] token feature 304 (where “CLS” stands for “classify”). The [CLS] token feature 304 and the text features 306 are processed in matching 308, with the matched features being used along with video patch features 302 to compute a patch-text similarity map 310. [0029] The video features from VLM are extracted using the video encoder 212. These are output as video patch features 302 over the entire video clip, including patches from each frame and a corresponding [CLS] token 304. For example, if a video has eight frames and a resolution of 224 x 224, it may be split into multiple patches of a fixed size (e.g., 16 x 16) and may be converted into a sequence of tokens. A learned parameter, called the [CLS] token 304, is appended to the sequence. The text features 306 for all the action class descriptions are extracted from the VLM text encoder 214. 23041PCT Page 6 of 29
The patch text similarity 310 is obtained by an inner dot product between the text features 306 and video patch features 302. [0030] Block 312 masks the patch-text similarity map by applying a threshold with a median intensity value. Points in the map having an intensity higher than the threshold are kept and other points are masked to remove them from the map. Sampling 314 is performed to select the locations of the top-K highest density values as the initial locations for the input of the downstream action detection head 220. The value for K may be selected based on heuristics. If a large number of people are expected in the video frames, then K may be selected to be a large number (e.g., 100). [0031] Referring now to FIG. 4, additional detail on the semantic fusion 218 is shown. Given the [CLS] token feature 402 for an input video and the action detection feature 408 output by action detection head 220, linear weighting is used to fuse the features with a learnable fusion weight, with the weights being learned during training. Similarities 410 are determined between the fused features and text features 404 for words from a vocabulary list, for example performed as a cosine similarity between the respective feature vectors. The vocabulary list is a list of class names from the labels in the training dataset. The maximum similarity over the vocabulary list is the video-text alignment score 412, which indicates the action category of the input video. [0032] Thus video-level semantics are transferred to each region, with a set of region-wise queries being learned to decode temporal dynamics from the videos using pre-trained video-level features as adaptive semantic conditions. The updated queries and video-level features are fused and aligned with textual semantics for recognition. [0033] Referring now to FIG. 5, an arrangement of mixer blocks is shown to handle action detection as a set-to-set prediction problem, learning a sparse set of query 23041PCT Page 7 of 29
features from videos to match with ground truth boxes and action classes. Action classes are predicted from an open vocabulary that includes base and novel actions. [0034] As above, the input video 202 and associated action text 204 are input to a video VLM 502, which includes the VLM video encoder 212 and the VLM text encoder 214. The output VLM features 504 include the outputs of the respective encoders on a frame- by-frame basis and are provided as inputs to a mixer 506 with respective mixer blocks 508 handling each frame. [0035] The mixer 506 outputs a set of person boxes 510, person scores 512, and action scores 514 for each frame, output by the respective mixer blocks 508. Each mixer block 508 outputs its frame’s person boxers to the next mixer block 508 to use as a basis for person localization in the next frame. [0036] Thus, given a video X and a list of text prompted action classes y as input, the visual encoder
and the text encoder
of the video VLM 502 are used to obtain features of the video ^, ^^, ^ = Ψ^^^^^ and action text ^^ = Ψ^^^^^. Here V, ^^, and S are the four-dimensional patch-level video feature, the video-level feature, and the video attention, respectively, and ^^ is the text feature of a class y. The M mixer blocks 508 learn a set of N spatial queries ^^ and N temporal queries ^^ from ^^, ^, ^^, ^^^ for person detection and action classification, respectively. The mixer blocks 506 take as input all of the VLM features 504 and the queries ^^ and ^^. [0037] Referring now to FIG. 6, additional detail on the mixer blocks 508 is shown. For the mth mixer block 508, a temporal mixer block 608 implements
and a spatial mixer block 610 implements
The spatial mixer block 610 includes prior location sampling, query-query mixing by self-attention, and query-video mixing, while the temporal mixer block 608 sequentially applies query-query mixing, query conditioning, and query-video mixing. A dynamically fused alignment block 612 recursively updates 23041PCT Page 8 of 29
the temporal queries 602 and the spatial queries 604 and person boxes 606 from the ^^ − 1^th mixer block to predict person scores and action scores for the mth video frame. [0038] Referring now to FIG. 7, additional detail on the spatial mixer 610 is shown. The input spatial queries ^^ 702, either as the initial queries or queries from a previous mixer block 508, are processed by query-query mixing 704 and query-video mixing 706 to generate updated spatial queries ^^ ^ 708, which are output to the next mixer block 508 and which are used to generate person scores and location boxes for the present video frame. The query-query mixing 704 and the query-video mixing 706 both receive location boxes from the previous mixer block 508 as inputs, and the query-video mixing 706 further receives features V. [0039] A lack of prior knowledge of object locations can contribute to low localization convergence. The visual attention from the VLM is used to supply this information. Visual attention maps may be represented by a class activation map (CAM) to visually explain a recognition model. An efficient and structure-agnostic CAM may be used on patch-text correlation as a VLM attention to encode location priors. [0040] Specifically, with a D-dimensional 4D video feature ^ ∈ ℝ^×^^×^, where T is a number of frames and hw is the number of visual tokens in each frame, the holistic video feature ^ ^ ^ ∈ ℝ , and the text features of C classes as ℱ^ =
the features are L2 normalized. The pre-matched text feature ^^ is determined by maximum similarity: ^ = ar % ^ gmax ^^ ⊗ ^^ ^+∈ℱ+ 23041PCT Page 9 of 29
as the class label is not available during testing. Thus the inner product between ^^ and V determines the patch-text correlation: ^ = ^ ⊗ ^^. The query-video attention in self- attention layers shows an opposite heatmap, where the foreground regions are associated with low attention values. In practice, the CAM is determined by the reversed patch-text similarity: ^- = 1 − ^. By reshaping and spatial interpolation over ^-, the attention map is obtained for prior location sampling. The ^- is treated as the prior distribution of person locations indicated by the VLM, thus the top-N positions are sampled as the initial box centers:
8^ where ^/, 1^ are two-dimensional coordinates on key frame k and where N is the number of queries. [0041] With the sampled prior locations, the spatial mixer 610 takes as input the video patch features V and the box predictions 9: th ;<! of the previous (m-1) stage to update the spatial queries by:
The updated spatial queries ^^ = are used to predict the person scores BC; and person box offsets Δ:9 ; by a multi-layer perceptron. Then the predicted boxes at stage m are updated by 9: ; = 9: ;<! + Δ:9 ;, where initial box queries 9: F include the sampled prior locations and the video spatial range. The spatial mixer 610 thus learns the box offset Δ9 from the prior locations inherited from the pre-trained VLM. The VLM’s attention- based prior locations are adaptive to test-time video content and vocabulary, which improves the seen action localization as well as generalization to unseen vocabulary. [0042] Referring now to FIG. 8, additional detail on the temporal mixer 608 is shown. The input temporal queries ^^ 802, either as the initial queries or queries from a previous mixer block 508, are processed by query-query mixing 804. A condition 805 23041PCT Page 10 of 29
is applied based on the video features ^^. Query-video mixing 806 is then used to generate updated temporal queries ^^ ^ 808, which are output to the next mixer block 508. The query-query mixing 804 and the query-video mixing 806 both receive location boxes from the previous mixer block 508 as inputs. [0043] The dynamically fused alignment block 612 takes the feature vector ^^ and the updated temporal queries ^^ ^ as inputs from the temporal mixer 608, along with the text features G^, and combines them to form action scores. [0044] For query-based models, temporal queries are expected to be discriminative for both base and new actions. The query-video mixing 806 thus provides strong content decoding. Adaptive semantics from the pre-trained VLM are used to prevent overfitting to seen class data. The temporal queries ^^ are thus updated at the current stage m by interacting with video features V and ^^ by the function ^^ H = >^?@^, ^^, ^^, 9: ;A. The query is updated as:
are functions that implement the query-query mixing 804 and the query-video mixing 806, respectively. Here ^^ applies the adaptive semantic condition 805 by the pre-trained VLM video feature, which is broadcast-added to the output of the query-query mixing 804. The adaptiveness of the semantic condition 805 stems from the test-time video feature ^^. This precondition is superior to a postcondition because of the better query features used to learn the query-video mixing 806. [0045] To recognize both seen and unseen actions, the model learns discriminative region-wise visual features to align with seen actions, while keeping the generalizable knowledge of the pre-trained VLM to align with the unseen actions. The dynamically fused alignment 612 is used for open vocabulary action recognition, being formulated to learn the action classification at each stage : KLM
^^, ^^A, where KLM are the 23041PCT Page 11 of 29
predicted actions for all queries ^^ ^ and the O; are the learnable parameters. This includes dynamic feature fusion and query-text alignment. [0046] Dynamic feature fusion aims to fuse the video-level feature ^^ into each of the queries ^^ dynamically. The ^ is repeated N tim Q×^ ^ ^ es to produce P^ ∈ ℝ . This is fused
are learnable in training. The query-specific learnable parameters allow dynamic contributions of the video-level knowledge from ^^ to different learnable queries in the set-matching training. [0047] To make the classification decision by PR ^ and open vocabulary of actions, for the action category, a large language model (LLM) may be used to generate multiple visually descriptive action prompts for each category. With the VLM text encoder 214, the aggregated text features of the U classes are represented as P
The of visual-text cosine similarity is used to represent the multi-class classification probability V@^L|^^A = softmax@P- % ^ ⊗ P^ /\A, where \ is the VLM temperature. The open-vocabulary action recognition for all queries is achieved by finding the maximum visual-text cosine similarity: ^L = argmax @P- % ^ ⊗ P^ A. The spatial queries ^^ are not ]∈U included in this process as an input to the dynamic fused alignment 612, so that the temporal mixer 608 and the spatial mixer 610 are decoupled in training, producing a person localization which is class-agnostic. [0048] During training, a loss function ℒ = ℒ`a_
+ ℒ may ℒ as a binary cross-entropy loss for person score prediction,
as a distance between predicted and ground truth boxes, and ℒdefg as the generalized intersection over union loss between predicted and ground truth boxes. Hungarian matching may be used to find the optimal bipartite matching between the predicted and 23041PCT Page 12 of 29
ground truth boxes for each training video. For action recognition, a multi-class cross- entropy loss ℒha^ is used so that the total loss function is ℒ^f^hi = j!ℒ^_^ + jkℒha^, where j! and jk are hyperparameters to set the relative weights of the different loss contributions. During inference, the thresholded person scores determine the kept person boxes, while the action scores assign the action categories to boxes from input class categories. [0049] Referring now to FIG. 9, a method of performing open vocabulary action detection is shown. Block 902 trains the model as described above, using any appropriate training dataset that may include annotated video streams. The training 902 may be performed well in advance of implementation of the model, and may be performed in a different location and by a different party relative to the subsequent steps. However, it is also contemplated that the steps of this process may be performed by a single party or separately by any number of different parties. [0050] Block 904 records a new video stream. This step may be performed before training model training 902, concurrently with that training, or subsequent to that training. The new video may include a set of frames that includes one or more actions of interest, but may be unlabeled. In at least one embodiment, the new video may include video of a sporting event where one or more individuals performs actions relating to the sport. In another embodiment the new video may be a video captured by a self-driving vehicle, showing pedestrians performing activities in the environment around the vehicle. [0051] Block 906 encodes an action description relating to an action that is being sought in the video. This may include multiple such action descriptions, relating to different actions of interest. Block 908 encodes the new video. 23041PCT Page 13 of 29
[0052] Block 910 performs open vocabulary action detection on the new video using the trained model. The model may output include labels for the action being performed as well as bounding boxes that identify the location of a person performing the action. The output may include labels for multiple such actions within a single new video, performed by one or more actors. The labels are not limited to action classes that are present in the training dataset, but may include previously unseen action classes. [0053] Based on the labels generated by the model for the new video, block 912 performs a responsive action. Following the above example of a sporting event, the responsive action may include automatically generating additional information relating to the detected action such as an identification of the actor, statistics relating to the actor or the detected action, and updates to the state of the sporting event based on the outcome of the action. Other uses for temporal action localization include security monitoring, for example identifying hazardous events in a video feed, and video labeling to segment videos based on semantic meaning to aid in summarizing important information from the video. [0054] In some cases, the action of block 912 may include a driving action. For example, if block 910 identifies a person who is walking toward the vehicle or otherwise about to cause a hazardous event, block 912 may perform a steering action, acceleration action, or braking action to avoid or mitigate the hazardous event. [0055] Referring now to FIG. 10, an exemplary computing device 1000 is shown, in accordance with an embodiment of the present invention. The computing device 1000 is configured to perform open vocabulary action detection. [0056] The computing device 1000 may be embodied as any type of computation or computer device capable of performing the functions described herein, including, without limitation, a computer, a server, a rack based server, a blade server, a 23041PCT Page 14 of 29
workstation, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a mobile computing device, a wearable computing device, a network appliance, a web appliance, a distributed computing system, a processor- based system, and/or a consumer electronic device. Additionally or alternatively, the computing device 1000 may be embodied as one or more compute sleds, memory sleds, or other racks, sleds, computing chassis, or other components of a physically disaggregated computing device. [0057] As shown in FIG. 10, the computing device 1000 illustratively includes the processor 1010, an input/output subsystem 1020, a memory 1030, a data storage device 1040, and a communication subsystem 1050, and/or other components and devices commonly found in a server or similar computing device. The computing device 1000 may include other or additional components, such as those commonly found in a server computer (e.g., various input/output devices), in other embodiments. Additionally, in some embodiments, one or more of the illustrative components may be incorporated in, or otherwise form a portion of, another component. For example, the memory 1030, or portions thereof, may be incorporated in the processor 1010 in some embodiments. [0058] The processor 1010 may be embodied as any type of processor capable of performing the functions described herein. The processor 1010 may be embodied as a single processor, multiple processors, a Central Processing Unit(s) (CPU(s)), a Graphics Processing Unit(s) (GPU(s)), a single or multi-core processor(s), a digital signal processor(s), a microcontroller(s), or other processor(s) or processing/controlling circuit(s). [0059] The memory 1030 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein. In operation, the memory 1030 may store various data and software used during operation 23041PCT Page 15 of 29
of the computing device 1000, such as operating systems, applications, programs, libraries, and drivers. The memory 1030 is communicatively coupled to the processor 1010 via the I/O subsystem 1020, which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 1010, the memory 1030, and other components of the computing device 1000. For example, the I/O subsystem 1020 may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, platform controller hubs, integrated control circuitry, firmware devices, communication links (e.g., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.), and/or other components and subsystems to facilitate the input/output operations. In some embodiments, the I/O subsystem 1020 may form a portion of a system-on-a-chip (SOC) and be incorporated, along with the processor 1010, the memory 1030, and other components of the computing device 1000, on a single integrated circuit chip. [0060] The data storage device 1040 may be embodied as any type of device or devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid state drives, or other data storage devices. The data storage device 1040 can store program code 1040A for performing training of the model, 1040B for open vocabulary action detection, and/or 1040C for responding to detected actions. Any or all of these program code blocks may be included in a given computing system. The communication subsystem 1050 of the computing device 1000 may be embodied as any network interface controller or other communication circuit, device, or collection thereof, capable of enabling communications between the computing device 1000 and other remote devices over a network. The communication subsystem 1050 may be configured to use any one or more communication technology (e.g., wired or wireless communications) and 23041PCT Page 16 of 29
associated protocols (e.g., Ethernet, InfiniBand®, Bluetooth®, Wi-Fi®, WiMAX, etc.) to effect such communication. [0061] As shown, the computing device 1000 may also include one or more peripheral devices 1060. The peripheral devices 1060 may include any number of additional input/output devices, interface devices, and/or other peripheral devices. For example, in some embodiments, the peripheral devices 1060 may include a display, touch screen, graphics circuitry, keyboard, mouse, speaker system, microphone, network interface, and/or other input/output devices, interface devices, and/or peripheral devices. [0062] Of course, the computing device 1000 may also include other elements (not shown), as readily contemplated by one of skill in the art, as well as omit certain elements. For example, various other sensors, input devices, and/or output devices can be included in computing device 1000, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art. For example, various types of wireless and/or wired input and/or output devices can be used. Moreover, additional processors, controllers, memories, and so forth, in various configurations can also be utilized. These and other variations of the processing system 1000 are readily contemplated by one of ordinary skill in the art given the teachings of the present invention provided herein. [0063] Referring now to FIGs. 11 and 12, exemplary neural network architectures are shown, which may be used to implement parts of the present models. A neural network is a generalized system that improves its functioning and accuracy through exposure to additional empirical data. The neural network becomes trained by exposure to the empirical data. During training, the neural network stores and adjusts a plurality of weights that are applied to the incoming empirical data. By applying the adjusted 23041PCT Page 17 of 29
weights to the data, the data can be identified as belonging to a particular predefined class from a set of classes or a probability that the inputted data belongs to each of the classes can be outputted. [0064] The empirical data, also known as training data, from a set of examples can be formatted as a string of values and fed into the input of the neural network. Each example may be associated with a known result or output. Each example can be represented as a pair, (x, y), where x represents the input data and y represents the known output. The input data may include a variety of different data types, and may include multiple distinct values. The network can have one input node for each value making up the example’s input data, and a separate weight can be applied to each input value. The input data can, for example, be formatted as a vector, an array, or a string depending on the architecture of the neural network being constructed and trained. [0065] The neural network “learns” by comparing the neural network output generated from the input data to the known values of the examples, and adjusting the stored weights to minimize the differences between the output values and the known values. The adjustments may be made to the stored weights through back propagation, where the effect of the weights on the output values may be determined by calculating the mathematical gradient and adjusting the weights in a manner that shifts the output towards a minimum difference. This optimization, referred to as a gradient descent approach, is a non-limiting example of how training may be performed. A subset of examples with known values that were not used for training can be used to test and validate the accuracy of the neural network. [0066] During operation, the trained neural network can be used on new data that was not previously used in training or validation through generalization. The adjusted weights of the neural network can be applied to the new data, where the weights 23041PCT Page 18 of 29
estimate a function developed from the training examples. The parameters of the estimated function which are captured by the weights are based on statistical inference. [0067] In layered neural networks, nodes are arranged in the form of layers. An exemplary simple neural network has an input layer 1120 of source nodes 1122, and a single computation layer 1130 having one or more computation nodes 1132 that also act as output nodes, where there is a single computation node 1132 for each possible category into which the input example could be classified. An input layer 1120 can have a number of source nodes 1122 equal to the number of data values 1112 in the input data 1110. The data values 1112 in the input data 1110 can be represented as a column vector. Each computation node 1132 in the computation layer 1130 generates a linear combination of weighted values from the input data 1110 fed into input nodes 1120, and applies a non-linear activation function that is differentiable to the sum. The exemplary simple neural network can perform classification on linearly separable examples (e.g., patterns). [0068] A deep neural network, such as a multilayer perceptron, can have an input layer 1120 of source nodes 1122, one or more computation layer(s) 1130 having one or more computation nodes 1132, and an output layer 1140, where there is a single output node 1142 for each possible category into which the input example could be classified. An input layer 1120 can have a number of source nodes 1122 equal to the number of data values 1112 in the input data 1110. The computation nodes 1132 in the computation layer(s) 1130 can also be referred to as hidden layers, because they are between the source nodes 1122 and output node(s) 1142 and are not directly observed. Each node 1132, 1142 in a computation layer generates a linear combination of weighted values from the values output from the nodes in a previous layer, and applies a non-linear activation function that is differentiable over the range of the linear 23041PCT Page 19 of 29
combination. The weights applied to the value from each previous node can be denoted, for example, by w1, w2, … wn-1, wn. The output layer provides the overall response of the network to the inputted data. A deep neural network can be fully connected, where each node in a computational layer is connected to all other nodes in the previous layer, or may have other configurations of connections between layers. If links between nodes are missing, the network is referred to as partially connected. [0069] Training a deep neural network can involve two phases, a forward phase where the weights of each node are fixed and the input propagates through the network, and a backwards phase where an error value is propagated backwards through the network and weight values are updated. [0070] The computation nodes 1132 in the one or more computation (hidden) layer(s) 1130 perform a nonlinear transformation on the input data 1112 that generates a feature space. The classes or categories may be more easily separated in the feature space than in the original data space. [0071] Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc. [0072] Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. A computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) 23041PCT Page 20 of 29
or a propagation medium. The medium may include a computer-readable storage medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc. [0073] Each computer program may be tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be embodied in a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein. [0074] A data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code to reduce the number of times code is retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) may be coupled to the system either directly or through intervening I/O controllers. [0075] Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters. 23041PCT Page 21 of 29
[0076] As employed herein, the term “hardware processor subsystem” or “hardware processor” can refer to a processor, memory, software or combinations thereof that cooperate to perform one or more specific tasks. In useful embodiments, the hardware processor subsystem can include one or more data processing elements (e.g., logic circuits, processing circuits, instruction execution devices, etc.). The one or more data processing elements can be included in a central processing unit, a graphics processing unit, and/or a separate processor- or computing element-based controller (e.g., logic gates, etc.). The hardware processor subsystem can include one or more on-board memories (e.g., caches, dedicated memory arrays, read only memory, etc.). In some embodiments, the hardware processor subsystem can include one or more memories that can be on or off board or that can be dedicated for use by the hardware processor subsystem (e.g., ROM, RAM, basic input/output system (BIOS), etc.). [0077] In some embodiments, the hardware processor subsystem can include and execute one or more software elements. The one or more software elements can include an operating system and/or one or more applications and/or specific code to achieve a specified result. [0078] In other embodiments, the hardware processor subsystem can include dedicated, specialized circuitry that performs one or more electronic processing functions to achieve a specified result. Such circuitry can include one or more application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and/or programmable logic arrays (PLAs). [0079] These and other variations of a hardware processor subsystem are also contemplated in accordance with embodiments of the present invention. [0080] Reference in the specification to “one embodiment” or “an embodiment” of the present invention, as well as other variations thereof, means that a particular 23041PCT Page 22 of 29
feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment. However, it is to be appreciated that features of one or more embodiments can be combined given the teachings of the present invention provided herein. [0081] It is to be appreciated that the use of any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and/or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended for as many items listed. [0082] The foregoing is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the present invention and that those skilled in the art may implement various modifications without 23041PCT Page 23 of 29
departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims. 23041PCT Page 24 of 29
Claims
WHAT IS CLAIMED IS: 1. A computer-implemented method for action detection, comprising: encoding (214) a text feature of an input textual description of an action using a visual language model (VLM); encoding (212) a video feature of an input video using the VLM; recognizing (224) the action in the video, based on the text feature and the video feature, to localize the action within the video; and locating (222) a person performing the action within the video using the VLM.
2. The method of claim 1, wherein recognizing the action includes applying a model that applies a mixer to each frame of the input video.
3. The method of claim 2, wherein the mixer recursively updates temporal queries, spatial queries, and person boxes from a previous video frame to predict person scores and action scores for a current video frame.
4. The method of claim 3, wherein the mixer uses query-query mixing and query-video mixing to update the spatial queries.
5. The method of claim 3, wherein the mixer uses query-query mixing, query- video mixing, and an adaptive semantic condition to update the temporal queries.
6. The method of claim 3, wherein the temporal queries are discriminative of action labels that were used during training as well as previously unseen terms. 23041PCT Page 25 of 29
7. The method of claim 3, wherein the mixer outputs a box locating the person, a person score to determine that the box is kept, and an action score that assigns an action category to the box.
8. The method of claim 1, wherein recognizing the action includes determining a similarity between the text feature and the video feature.
9. The method of claim 1, further comprising performing a driving action responsive to the action.
10. The method of claim 9, wherein the driving action is selected from the group consisting of a braking action, an acceleration action, and a steering action.
11. A system for action detection, comprising: a hardware processor (1010); and a memory (1040) that stores a computer program which, when executed by the hardware processor, causes the hardware processor to: encode (214) a text feature of an input textual description of an action using a visual language model (VLM); encode (212) a video feature of an input video using the VLM; recognize (224) the action in the video, based on the text feature and the video feature, to localize the action within the video; and locate (222) a person performing the action within the video using the VLM. 23041PCT Page 26 of 29
12. The system of claim 11, wherein recognition of the action includes applying a model that applies a mixer to each frame of the input video.
13. The system of claim 12, wherein the mixer recursively updates temporal queries, spatial queries, and person boxes from a previous video frame to predict person scores and action scores for a current video frame.
14. The system of claim 13, wherein the mixer uses query-query mixing and query-video mixing to update the spatial queries.
15. The system of claim 13, wherein the mixer uses query-query mixing, query-video mixing, and an adaptive semantic condition to update the temporal queries.
16. The system of claim 13, wherein the temporal queries are discriminative of action labels that were used during training as well as previously unseen terms.
17. The system of claim 13, wherein the mixer outputs a box locating the person, a person score to determine that the box is kept, and an action score that assigns an action category to the box.
18. The system of claim 11, wherein recognition of the action includes determining a similarity between the text feature and the video feature. 23041PCT Page 27 of 29
19. The system of claim 11, wherein the computer program further causes the hardware processor to perform a driving action responsive to the action.
20. The system of claim 19, wherein the driving action is selected from the group consisting of a braking action, an acceleration action, and a steering action. 23041PCT Page 28 of 29
Applications Claiming Priority (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202363596676P | 2023-11-07 | 2023-11-07 | |
| US63/596,676 | 2023-11-07 | ||
| US202363548545P | 2023-11-14 | 2023-11-14 | |
| US63/548,545 | 2023-11-14 | ||
| US18/937,628 US20250148768A1 (en) | 2023-11-07 | 2024-11-05 | Open vocabulary action detection |
| US18/937,628 | 2024-11-05 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025101593A1 true WO2025101593A1 (en) | 2025-05-15 |
Family
ID=95561744
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2024/054707 Pending WO2025101593A1 (en) | 2023-11-07 | 2024-11-06 | Open vocabulary action detection |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US20250148768A1 (en) |
| WO (1) | WO2025101593A1 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200302294A1 (en) * | 2019-03-22 | 2020-09-24 | Nec Laboratories America, Inc. | Efficient and fine-grained video retrieval |
| US20210174162A1 (en) * | 2019-12-09 | 2021-06-10 | Salesforce.Com, Inc. | Spatial-Temporal Reasoning Through Pretrained Language Models for Video-Grounded Dialogues |
| US20220147838A1 (en) * | 2020-11-09 | 2022-05-12 | Adobe Inc. | Self-supervised visual-relationship probing |
| US20230215169A1 (en) * | 2017-11-14 | 2023-07-06 | Google Llc | Weakly-Supervised Action Localization by Sparse Temporal Pooling Network |
| US20230305863A1 (en) * | 2022-03-22 | 2023-09-28 | Microsoft Technology Licensing, Llc | Self-Supervised System for Learning a User Interface Language |
-
2024
- 2024-11-05 US US18/937,628 patent/US20250148768A1/en active Pending
- 2024-11-06 WO PCT/US2024/054707 patent/WO2025101593A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230215169A1 (en) * | 2017-11-14 | 2023-07-06 | Google Llc | Weakly-Supervised Action Localization by Sparse Temporal Pooling Network |
| US20200302294A1 (en) * | 2019-03-22 | 2020-09-24 | Nec Laboratories America, Inc. | Efficient and fine-grained video retrieval |
| US20210174162A1 (en) * | 2019-12-09 | 2021-06-10 | Salesforce.Com, Inc. | Spatial-Temporal Reasoning Through Pretrained Language Models for Video-Grounded Dialogues |
| US20220147838A1 (en) * | 2020-11-09 | 2022-05-12 | Adobe Inc. | Self-supervised visual-relationship probing |
| US20230305863A1 (en) * | 2022-03-22 | 2023-09-28 | Microsoft Technology Licensing, Llc | Self-Supervised System for Learning a User Interface Language |
Also Published As
| Publication number | Publication date |
|---|---|
| US20250148768A1 (en) | 2025-05-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11775838B2 (en) | Image captioning with weakly-supervised attention penalty | |
| US12518512B2 (en) | Training vision models with unified contrastive learning | |
| US12387340B2 (en) | Systems and methods for open vocabulary instance segmentation in unannotated images | |
| US20210264203A1 (en) | Multimodal Image Classifier using Textual and Visual Embeddings | |
| EP3411835B1 (en) | Augmenting neural networks with hierarchical external memory | |
| CN113795851A (en) | Large-scale generation neural network model with reasoning for representation learning using antagonistic training | |
| EP3884426A1 (en) | Action classification in video clips using attention-based neural networks | |
| CN114600130A (en) | Learning processing of new image classes without labels | |
| US12321700B2 (en) | Methods, systems, and media for bi-modal generation of natural languages and neural architectures | |
| EP4288910B1 (en) | Continual learning neural network system training for classification type tasks | |
| US20210383226A1 (en) | Cross-transformer neural network system for few-shot similarity determination and classification | |
| US20250148757A1 (en) | Self-improving data engine for autonomous vehicles | |
| US20220383031A1 (en) | Decompositional learning for color attribute prediction | |
| US12554930B2 (en) | Transformer-based text encoder for passage retrieval | |
| CN118521472B (en) | Image processing method, device and storage medium | |
| CN121729723A (en) | Contrastive Feature Masking Visual Model for Open Vocabulary Detection | |
| US20250139527A1 (en) | Self-improving models for agentic visual program synthesis | |
| EP4604080A1 (en) | A method for generating structured text describing an image | |
| US12567231B2 (en) | Weakly supervised action localization | |
| US20240054782A1 (en) | Few-shot video classification | |
| US20250148768A1 (en) | Open vocabulary action detection | |
| US12511899B2 (en) | Cross-domain few-shot video classification with optical-flow semantics | |
| US20250181641A1 (en) | Retrieval augmented generation for videos | |
| WO2026001645A1 (en) | Unknown class aware, privacy preserving, customizable and scalable sensitive document classification system | |
| US20250139234A1 (en) | System to Detect Exploitation of an AI Model and a Method Thereof. |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24889490 Country of ref document: EP Kind code of ref document: A1 |