Learnable Optimal Sequential Grouping for Video Scene Detection

Daniel Rotman, Yevgeny Yaroker, Elad Amrani, Udi Barzelay, Rami Ben-AriACM Multimedia 2020

Abstract

Identifying semantic boundaries in video content remains a significant challenge in computer vision. While shot detection is largely considered a solved problem, grouping these shots into meaningful scenes requires a high-level understanding of narrative and context. This paper presents a novel framework that transforms Optimal Sequential Grouping (OSG)—traditionally an unsupervised optimization technique—into a learnable supervised model. By integrating dynamic programming directly into deep learning pipelines, the proposed system learns to represent video data in a way that optimizes the discovery of semantic boundaries. Our results on the Open Video Scene Detection (OVSD) dataset demonstrate that this learnable OSG approach significantly outperforms both unsupervised methods and standard supervised baselines like LSTMs.

Introduction

In video analysis, a fundamental distinction exists between a shot and a scene. A shot is defined by a continuous sequence from a single camera, whereas a scene is a higher-level semantic unit comprising a collection of shots that convey a specific story element or occur in a single location. Detecting scene boundaries is complex because it necessitates an understanding of abstract concepts, narrative flow, and environmental context.

Previous attempts to bridge this gap often relied on unsupervised clustering or rigid optimization algorithms. While the authors' prior work on Optimal Sequential Grouping (OSG) provided a robust mathematical framework for finding optimal groupings, it lacked the ability to learn from labeled data. This research bridges that gap by introducing a learnable OSG framework that combines the structural power of sequential optimization with the representational learning of deep neural networks.

Methodology

The core innovation of this work is the integration of the OSG optimization step as a layer within a neural network. The system is multimodal, utilizing an Inception-v3 backbone for visual feature extraction and VGGish for audio features. These features are processed through fully connected layers to produce embeddings.

The multimodal learnable OSG framework architecture, illustrating the flow from visual/audio backbones to the final scene boundaries through various loss configurations.

To make OSG "learnable," the authors propose three distinct loss configurations:

  1. OSG-Triplet: Employs a standard triplet loss to train the embedding space, encouraging shots within the same scene to cluster together while pushing shots from different scenes apart.
  2. OSG-Block: Targets the structure of the distance matrix. It explicitly penalizes the network if the resulting distance matrix does not exhibit a "block-diagonal" structure, where dark squares of low distance (similarity) along the diagonal represent coherent scenes.
  3. OSG-Prob: The most advanced configuration, which modifies the OSG dynamic programming algorithm to output division probabilities. This allows for direct backpropagation through the optimization pipeline, enabling the network to learn specifically where transition "pressure points" occur.

Experimental Setup and Datasets

The framework was evaluated using the Open Video Scene Detection (OVSD) dataset, which consists of 21 full-length motion pictures spanning genres such as Drama, Animation, and Sci-Fi. Unlike many datasets that only provide short clips, OVSD offers ground-truth scene labels for entire movies, making it an ideal benchmark for long-form temporal segmentation. The evaluation utilized a 5-fold testing approach to ensure the model's ability to generalize across diverse cinematographic styles.

Results and Discussion

The proposed OSG-Prob configuration achieved the highest performance, reaching an average F-score of 0.71. This represents a substantial improvement over the unsupervised OSG baseline (0.64) and standard supervised LSTMs (0.49).

Qualitative analysis of the distance matrices reveals that the learning process successfully sharpens the "blocks" representing scenes, effectively filtering out visual noise that does not signal a semantic change. The different loss functions exhibited unique "personalities": OSG-Triplet proved effective at identifying short, rapid scenes, while OSG-Block was better suited for large, sweeping narrative segments.

Qualitative comparison of distance matrices and gradients across different OSG configurations. The trained models (OSG-Triplet, OSG-Block, OSG-Prob) show much clearer block structures compared to the initial state (Epoch 0).

Furthermore, the modality analysis highlighted the critical role of audio. In scenarios where visual cues were inconsistent—such as documentaries with frequent B-roll cuts over a single narrator—the audio modality became the primary driver for accurate scene detection.

Conclusion

By treating optimization as a learnable layer, this work provides a powerful new tool for video understanding. The learnable OSG framework successfully combines the strengths of deterministic algorithms with the flexibility of deep learning. Future work will explore the use of more advanced temporal feature backbones (such as I3D) and address the challenges of detecting very short scenes at the beginning of video sequences. This "plug-and-play" module holds significant potential for applications in automated video summarization, content indexing, and temporal region proposal.

Summary updated

BibTeX
@inproceedings{rotman2020learnable,
  author = {Daniel Rotman and Yevgeny Yaroker and Elad Amrani and Udi Barzelay and Rami Ben-Ari},
  title = {{Learnable Optimal Sequential Grouping for Video Scene Detection}},
  booktitle = {ACM Multimedia},
  year = {2020},
}
Figure