Abstract
Annotation of multimedia data by humans is time-consuming and costly, while reliable automatic generation of semantic metadata is a major challenge. We propose a framework to extract semantic metadata from automatically generated video captions. As metadata, we consider entities, the entities' properties, relations between entities, and the video category. We employ two state-of-the-art dense video captioning models with masked transformer (MT) and parallel decoding (PVDC) to generate captions for videos of the ActivityNet Captions dataset. Our experiments show that it is possible to extract entities, their properties, relations between entities, and the video category from the generated captions. We observe that the quality of the extracted information is mainly influenced by the quality of the event localization in the video as well as the performance of the event caption generation.
Introduction
As the volume of online video content explodes, the need for searchable, organized metadata—the "who, what, and where" of a clip—has never been greater. Traditionally, extracting detailed semantic information like "a young man throwing a red frisbee" requires a suite of specialized computer vision models: object detectors for the man and frisbee, attribute classifiers for "young" and "red," and visual relation models for the action "throwing." Training and running these models separately is computationally expensive and resource-intensive.
This research explores a more efficient alternative: using a single Dense Video Captioning (DVC) model to describe video events in natural language, and then applying standard Natural Language Processing (NLP) to "read" those captions and extract structured metadata.
Framework Architecture
The proposed framework operates as a modular pipeline that treats dense video captioning as a "semantic hub."
The pipeline consists of four main stages:
- Dense Video Captioning (DVC): State-of-the-art models (Masked Transformer or Parallel Decoding) generate multiple, temporally localized sentences for different events within a video.
- Event Processing: Captions are sorted chronologically and concatenated. This enables the use of coreference resolution, allowing the system to understand that "he" in a subsequent sentence refers to a "man" introduced earlier.
- NLP Extraction: The text stream is processed via a spaCy-based pipeline for part-of-speech tagging and dependency parsing.
- Entities: Identified as compound nouns validated against WordNet.
- Properties: Extracted by locating adjectives and modifiers linked to specific entities.
- Relations: Extracted as 4-tuples (subject, verb, modifier, object) by navigating the sentence's dependency tree.
- Text Classification: A pre-trained BERT model analyzes the aggregated captions to predict the overall video category (e.g., "Sports").
Experimental Setup and Datasets
The study utilizes the ActivityNet Captions dataset, containing 20,000 YouTube videos of diverse human activities. To evaluate performance, the authors established a "gold standard" by running their NLP extraction tools on human-written ground-truth captions. They also cross-referenced results with the ActivityNet-Entities dataset to verify if extracted entities were physically present in the video frames.
Results and Discussion
The framework demonstrates that meaningful metadata can be extracted from automatically generated text, though performance is heavily tied to the quality of the initial captions.
Key Findings:
- Video-Level Categorization: Using a BERT classifier on automatically generated captions achieved an accuracy of 50.22%, nearly matching the 50.81% achieved with human-written captions.
- Entity Extraction: The framework achieved F1 scores between 31% and 34% for video-level entity extraction.
- The "10-Event" Balance: Researchers found that generating approximately 10 distinct events per video provided the optimal balance (F1 score) between finding more entities (recall) and maintaining accuracy (precision).
- Grammatical Sensitivity: The quality of metadata is highly dependent on the DVC model's "grammatical health." Simple, "safe" sentences often lack the descriptive adjectives and complex verbs needed for deep relation extraction, leading to lower F1 scores for properties and relations (often <5%).
Conclusion and Future Work
While specialized vision models may offer higher precision for specific tasks, this framework provides a versatile "one-stop shop" for metadata. Future work aims to incorporate multi-modal DVC (using audio tracks) and develop "entity-aware" captioning models to improve the richness and accuracy of the extracted semantic information.
Source: Event and Entity Extraction from Generated Video Captions by Scherer, Bhowmik, and Scherp.
Summary updated