Joint Video and Text Parsing for Understanding Events and Answering Queries

Kewei Tu, Meng Meng, Mun Wai Lee, Tae Eun Choe, Song-Chun Zhu

TL;DR

This paper introduces a unified framework that jointly parses video and text into a single "joint parse graph" using a Spatial-Temporal-Causal And-Or Graph (S/T/C-AOG). By combining visual data with textual descriptions, the system resolves coreferences, fills in unobserved information, and corrects errors, significantly boosting performance in complex video understanding and natural language query answering.

What Problem Does This Paper Address?

Video understanding is notoriously difficult due to low resolution, occlusions, and hidden variables like human intent. While accompanying text (such as captions, screenplays, or surveillance logs) can help, traditional multimedia methods rely on shallow "bag-of-words" models that ignore the rich, compositional structure of both modalities.

The authors tackle the challenge of deep semantic integration: how to jointly parse video and text to resolve coreferences (e.g., matching a detected person in a video to a name in a text), infer missing details that neither modality explicitly states, and fix conflicting information between what is seen and what is read.

Fig. 1. Examples of videos accompanied with texts. (a) A television show footage and its screenplay; (b) A surveil- lance video and the human intelligence descriptions; (c) A news report footage and its closed captions.

Methods

The core of the framework is the Spatial-Temporal-Causal And-Or Graph (S/T/C-AOG). This unified knowledge representation links three distinct dimensions:

  • Spatial (S-AOG): Models the decomposition of scenes and physical objects.
  • Temporal (T-AOG): Breaks down complex events into sub-events and atomic actions.
  • Causal (C-AOG): Maps the causal relationships between events and time-varying attributes, known as fluents (e.g., whether a door is open or a person is holding an object).

The system operates via a probabilistic generative model split into three main modules:

  1. Video Parser: Extracts candidate video parse graphs ($pg_{vid}$) using hierarchical cluster sampling for spatial frames and Earley parsing for temporal action sequences.
  2. Text Parser: Utilizes the Stanford Lexicalized Parser for dependency tracking and applies a custom attribute grammar to map sentences into a semantic text parse graph ($pg_{txt}$).
  3. Joint Inference Module: Takes the union of the video and text graphs and applies three iterative operators to maximize the joint posterior probability: Matching (coreference resolution), Deduction (inferring hidden states using the AOG's background knowledge), and Revision (fixing contradictions).
Fig. 2. The graphical model for joint parsing of video and text. See text for details.

Datasets

The authors evaluated their system on two newly collected surveillance datasets:

  • Indoor (Hallway) Dataset: Focused on indoor daily activities around a water fountain.
  • Outdoor (Courtyard) Dataset: Focused on more complex outdoor interactions around a food truck.

For each dataset, 15 video clips were paired with text descriptions provided by five human subjects. Crucially, the text was collected at three distinct levels of detail (ranging from simple one-sentence summaries to descriptions containing unobservable inferred states) to test how varying text-video overlap affects performance.

Key Insights and Ideas

  • Complementary Modalities: Video excels at capturing low-level physical details (e.g., the exact timing of a person walking), while text provides high-level abstract concepts, names, and internal motivations (e.g., "he is thirsty").
  • Causal Reasoning as a Bridge: By incorporating the causal graph (C-AOG), the system can infer unobserved fluents. For example, if the text says a person bought food, the system can deduce the fluent change from "Has No Food" to "Has Food," even if the camera view was obstructed.
  • Diminishing Returns of Text: A major practical finding is that even minimal text input (Level 1) yields a massive boost in video understanding, performing nearly as well as highly detailed narratives.
Fig. 4. (a) An example surveillance video and the text descriptions of a courtyard scene. (b) The video parse graph, text parse graph and joint parse graph. The video and text parses have no overlap. In the joint parse graph, the green shadow denotes the subgraph from the video and the blue shadow denotes the subgraph from the text.

Key Results

  • Parse Graph Accuracy: The joint parsing framework consistently achieved higher F-scores and recall compared to video-only or text-only baselines across both datasets.
  • Query Answering: In natural language query tasks (answering who, what, when, where, why), the joint parse graph demonstrated a massive advantage. It performed exceptionally well on "why" queries, where video-only methods fail entirely due to a lack of causal reasoning.

Limitations and Future Work

  • Manual Graph Construction: The S/T/C-AOG must currently be manually designed by domain experts for each specific scene type. The authors note that automating the learning of these graphs from raw data is a critical next step.
  • Scaling to Open Domains: The current system is tailored to controlled surveillance environments. Future work will focus on scaling the framework to handle more complex, open-domain multimedia data like broadcast news reports, where the semantic gap between text and video is much wider.

Summary updated

Abstract

We propose a framework for parsing video and text jointly for understanding events and answering user queries. Our framework produces a parse graph that represents the compositional structures of spatial information (objects and scenes), temporal information (actions and events) and causal information (causalities between events and fluents) in the video and text. The knowledge representation of our framework is based on a spatial-temporal-causal And-Or graph (S/T/C-AOG), which jointly models possible hierarchical compositions of objects, scenes and events as well as their interactions and mutual contexts, and specifies the prior probabilistic distribution of the parse graphs. We present a probabilistic generative model for joint parsing that captures the relations between the input video/text, their corresponding parse graphs and the joint parse graph. Based on the probabilistic model, we propose a joint parsing system consisting of three modules: video parsing, text parsing and joint inference. Video parsing and text parsing produce two parse graphs from the input video and text respectively. The joint inference module produces a joint parse graph by performing matching, deduction and revision on the video and text parse graphs. The proposed framework has the following objectives: Firstly, we aim at deep semantic parsing of video and text that goes beyond the traditional bag-of-words approaches; Secondly, we perform parsing and reasoning across the spatial, temporal and causal dimensions based on the joint S/T/C-AOG representation; Thirdly, we show that deep joint parsing facilitates subsequent applications such as generating narrative text descriptions and answering queries in the forms of who, what, when, where and why. We empirically evaluated our system based on comparison against ground-truth as well as accuracy of query answering and obtained satisfactory results.
BibTeX
@article{tu2014joint,
  author = {Kewei Tu and Meng Meng and Mun Wai Lee and Tae Eun Choe and Song-Chun Zhu},
  title = {{Joint Video and Text Parsing for Understanding Events and Answering Queries}},
  journal = {IEEE Multim.},
  year = {2014},
  doi = {10.1109/mmul.2014.29},
}
Figure