Abstract
Video structuring aims at automatically finding structure in a video sequence. Occupying a key-position within video analysis, it is a fundamental step for quality indexing and browsing. As a low level video analysis, video structuring can be seen as a serial process which includes (i) shot boundary detection, (ii) video shot feature extraction and (iii) video shot clustering. The resulting analysis serves as the base for higher level processing such as content-based image retrieval or semantic indexing. In this study, the whole process is examined and implemented. Two shot boundary detectors based on motion estimation and color distribution analysis are designed. Based on recent advances in machine learning, a novel technique for video shot clustering is presented. Typical approaches for segmenting and clustering shots use graph analysis, with split and merge algorithms for finding subgraphs corresponding to different scenes. In this work, the clustering algorithm is based on a spectral method which has proven its efficiency in still-image segmentation. This technique clusters points (in our case features extracted from video shots) using eigenvectors of matrices derived from data. Relevant data depends of the quality of feature extraction. After stating the main problems of video structuring, solutions are proposed defining an heuristical distance metric for similarity between shots. We combine color visual features with time constraints. The entire process of video structuring is tested on a ten hours home video database.
Introduction
With the proliferation of digital video recording devices in the early 2000s, the volume of personal and professional video data has grown exponentially. However, raw video streams are inherently difficult to browse, search, or index. To bridge the "semantic gap"—the disconnect between low-level pixel data and high-level human concepts—video must be organized into a hierarchical structure. This paper addresses the challenge of automatically segmenting video into its fundamental units: shots (continuous sequences from a single camera) and scenes (groups of shots related in time or space).
Methodology
The proposed video structuring pipeline follows a three-stage serial process.
1. Shot Boundary Detection
The authors implemented and compared two distinct detection methodologies:
- Motion-based Detection: This approach utilizes global motion parameters combined with the Hinkley test, a robust statistical jump detection method, to identify abrupt changes in the video stream.
- Color-based Detection: This method employs a $\chi^2$ (Chi-square) test on 3D RGB histograms to detect discontinuities between frames. While faster than motion-based methods, it is less effective at identifying gradual transitions like dissolves.
2. Feature Extraction
Following shot identification, "key-frames" are selected to represent each segment. Two primary feature types are extracted for comparison:
- Visual Features: 3D RGB histograms are compared using the Bhattacharyya distance.
- Temporal Features: A normalized distance based on the time elapsed between shots is calculated. This acknowledges the "temporal locality" principle: shots belonging to the same scene are typically captured close together in time.
3. Spectral Video Shot Clustering
The core contribution of this work is the application of spectral clustering to group shots into scenes. Unlike traditional K-means, which often fails with complex, overlapping data distributions, spectral clustering utilizes the eigenvectors of an "affinity matrix" to project data into a space where clusters are more linearly separable.
The process follows the Ng et al. algorithm:
- Construct an affinity matrix using a weighted combination of color and temporal distances.
- Calculate the Laplacian of the matrix.
- Perform K-means clustering on the top eigenvectors to determine scene boundaries.
Experimental Setup and Datasets
The system was evaluated using two primary datasets:
- ASSAVID Project Data: Sports video (football/soccer) from the Barcelona Olympic Games, used to benchmark shot boundary detection.
- Kodak Home Video Database: A comprehensive 10-hour dataset consisting of 30 MPEG-1 clips from 11 different users. This dataset provides a rigorous "real-world" test for clustering messy, consumer-grade footage across diverse scenarios like weddings and vacations.
Results and Discussion
The spectral clustering method was compared against several baselines using the Shots In Error (SIE) metric, where a lower score indicates higher accuracy.
| Method | SIE (Lower is Better) |
|---|---|
| Baseline $B_0$ (Regular spacing) | 0.679 |
| Baseline $B_1$ (Standard K-means) | 0.453 |
| Probabilistic Clustering | 0.289 |
| Spectral Clustering (Optimized) | 0.178 |
The spectral method significantly outperformed traditional approaches, reducing the error rate by nearly 40% compared to previous state-of-the-art probabilistic models. Key insights include:
- Eigenvector Utility: The "eigengap" (the difference between consecutive eigenvalues) can theoretically assist in estimating the number of scenes, though noise in real-world footage remains a challenge.
- Motion vs. Color: Motion-based detection achieved 90% recall for cuts but was sensitive to fast-moving objects.
- Temporal Constraints: Integrating temporal distance into the affinity matrix is crucial for home video, where visual similarity alone can be misleading.
Conclusion
This study demonstrates that spectral clustering is a highly effective tool for video structuring, particularly in the challenging domain of home videos. Future work will focus on improving the detection of gradual transitions and integrating multi-modal data, such as audio and speech-to-text, to further bridge the semantic gap.
Summary updated