Unsupervised Detection of Music Boundaries by Time Series Structure Features

Joan Serrà, Meinard Müller, Peter Grosche, Josep Lluís Arcos

Introduction

Identifying structural transitions in time series data—such as moving from a verse to a chorus in a musical track—is a critical task in signal processing and data science. Traditional unsupervised approaches typically rely on one of three principles: novelty (detecting sudden changes), homogeneity (identifying stable regions), or repetition (finding recurring motifs). However, these strategies are often used in isolation. This paper introduces a unified framework that leverages all three principles simultaneously through a novel representation called structure features (SF).

Methodology

The proposed pipeline transforms raw multi-dimensional time series into a one-dimensional novelty curve where peaks indicate structural boundaries. The process involves four primary stages:

1. Temporal Context via Delay Coordinates

To capture the local temporal context, the method employs delay coordinates. Instead of analyzing individual data points, a sliding window concatenates recent samples into a single high-dimensional vector, effectively emulating a form of "short-term memory" within the algorithm.

2. Recurrence Analysis

A recurrence plot is constructed to identify similar states across the entire time series. This square matrix represents the similarity between any two points in time. To enhance robustness against noise, the authors apply a "neighbor mutuality" constraint, ensuring that two points are only considered similar if they are mutual nearest neighbors.

Recurrence plot identifying similar points in time through a square similarity matrix.

3. Structure Feature (SF) Generation

The core innovation of this work is the transformation of the recurrence plot into a circular time-lag matrix. This re-alignment makes diagonal repetition patterns easier to analyze. By applying 2D Gaussian smoothing to this matrix, the authors generate a bivariate probability density. Each row of this smoothed matrix constitutes a "structure feature" that encapsulates the global structural context of a specific moment.

4. Novelty Curve and Boundary Detection

Finally, a novelty curve is generated by calculating the Euclidean distance between successive structure features. Significant jumps in this distance represent shifts in the global structural pattern, which are then identified as boundaries through peak selection.

Transformation of the recurrence plot into a circular time-lag matrix (top left), smoothed structure features (top right), and the resulting novelty curve (bottom).

Experimental Evaluation

The SF method was evaluated using two prominent Music Information Retrieval (MIR) benchmarks: the Beatles Dataset (approximately 180 recordings) and the RWC-Pop dataset (100 recordings). Performance was measured against human-annotated ground truths to account for the inherent subjectivity of musical boundaries.

Key Results

  • State-of-the-Art Performance: On the Beatles-A dataset, the SF method achieved an F-measure of 0.752, a significant improvement over previous unsupervised state-of-the-art results, which typically reached around 0.61.
  • Robustness: The algorithm demonstrated high stability across various parameter settings, suggesting it captures fundamental structural properties rather than genre-specific artifacts.
  • Precision and Recall: The method maintained a strong balance between precision and recall, particularly on the RWC-Pop dataset, where F-measures reached up to 0.80.

Discussion and Conclusion

The "Structure Features" approach demonstrates that treating the entire structural context of a point as a local feature allows for the detection of boundaries even when local signal textures remain similar. While a gap still exists between automated systems and human annotators (who achieve F-measures of ~0.91), this method significantly narrows that margin. Future work may involve applying this domain-independent mathematical framework to other types of time series, such as motion-capture data for dance segmentation or financial data for detecting structural market shifts.

Summary updated

BibTeX
@inproceedings{serra2012unsupervised,
  author = {Joan Serrà and Meinard Müller and Peter Grosche and Josep Lluís Arcos},
  title = {{Unsupervised Detection of Music Boundaries by Time Series Structure Features}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  doi = {10.1609/aaai.v26i1.8328},
}
Figure