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
The explosion of digital video content has created an urgent need for structured, searchable metadata. However, a significant "semantic gap" exists between raw pixels and high-level understanding. Manual annotation is prohibitively expensive at scale, while traditional computer vision approaches often rely on a fragmented ecosystem of specialized models—one for object detection, another for action recognition, and yet another for relationship tagging.
This research explores a more unified alternative: using Dense Video Captioning (DVC) as a bridge. By translating video into natural language first, we can leverage mature Natural Language Processing (NLP) tools to extract structured semantic information. This approach treats generated text as a rich intermediate representation, making video content accessible to a vast array of existing text-analysis frameworks.
The Semantic Metadata Extraction Framework
The proposed framework operates as a multi-stage pipeline, transforming raw video input into structured metadata including entities, properties, relations, and categories.
1. Dense Video Captioning (DVC)
The first stage employs state-of-the-art DVC models—specifically Masked Transformer (MT) and Parallel Decoding (PVDC). Unlike standard captioning, DVC identifies multiple temporal "events" within a video and generates a descriptive sentence for each, providing a chronological narrative of the video's content.
2. Event Processing and Linguistic Annotation
Captions are sorted and concatenated to form a continuous text. This allows the pipeline to perform coreference resolution (e.g., linking "he" in one sentence to "the athlete" in a previous one). The text is then processed using linguistic tools (like spaCy) to generate Part-of-Speech (POS) tags, dependency trees, and coreference clusters.
3. Structured Extraction
- Entities: Compound nouns are identified and validated against WordNet.
- Properties: Adjectives linked to specific entities in the dependency tree are extracted (e.g., "red" for "frisbee").
- Relations: Custom algorithms extract (subject, verb, modifier, object) tuples to describe actions.
- Categorization: A BERT-based classifier analyzes the aggregated captions to assign the video to a high-level category (e.g., "Sports").
Experimental Results and Insights
The framework was evaluated using the ActivityNet Captions dataset. A key finding is the "localization bottleneck": the quality of extracted metadata is heavily dependent on the DVC model’s ability to correctly time-stamp events. If an event is missed during localization, the downstream NLP pipeline cannot extract the associated entities.
Performance Highlights
- Entity Extraction: The system achieved F1 scores between 31.27 and 34.21 for video-level entities.
- Video Categorization: Using captions from the PVDC model, the BERT classifier reached 50.22% accuracy—remarkably close to the 50.81% achieved using human-written "gold" captions. This suggests that DVC models successfully capture the essential "gist" of the video.
- Relations: Extracting complex triplets remains challenging (F1 ~5.02), primarily due to the grammatical complexity and occasional errors in generated sentences.
Conclusion and Future Work
This research demonstrates that natural language can serve as a powerful universal interface for video understanding. While dedicated object detectors may offer higher precision for specific classes, this framework provides a more generalizable and scalable method for extracting diverse metadata types.
Future work will focus on addressing the "invisible entity" problem—where captions mention abstract concepts not visible in the frame—and incorporating multi-modal inputs like audio tracks to improve caption quality. Additionally, integrating Named Entity Recognition (NER) could allow for the identification of specific individuals or locations, further enriching the extracted metadata.
Summary updated