Melody, bass line, and harmony representations for music version identification

Justin Salamon, Joan Serrà, Emilia Gómez

Introduction

Identifying different versions of the same musical piece, commonly known as "cover song detection" or version identification, remains a significant challenge in Music Information Retrieval (MIR). A cover version can drastically alter tempo, key, instrumentation, and genre while maintaining the core identity of the original work. Historically, identification systems have relied heavily on harmonic content, typically represented via "chroma features" that describe chord progressions. However, harmony-based approaches often fail when a song is reharmonized or performed a cappella. This research investigates whether automatically extracted melody and bass lines can provide complementary information to enhance the robustness of version identification.

Methodology

The researchers developed a multi-stage pipeline designed to compare musical tracks across three distinct layers: harmony, melody, and bass lines.

The multi-stage pipeline for music version identification, incorporating extraction, abstraction, and fusion.

Extraction and Representation Abstraction

The process begins with the extraction of the "lead" melody and "bass" pitch from polyphonic audio using state-of-the-art algorithms. To make these raw signals comparable, the authors introduced a "Representation Abstraction" step. They discovered that the most effective representation involves quantizing pitch to semitones and mapping all notes into a single octave. This "chroma-fication" of melody and bass lines removes noise from vocal ornaments and octave shifts, focusing on the fundamental melodic contour.

Visualizing the abstraction process: from raw cents to semitones and finally to pitch class representations.

Similarity Measurement and Fusion

To compare sequences, the system employs the $Q_{max}$ algorithm, a dynamic programming method derived from nonlinear time series analysis. $Q_{max}$ is particularly adept at finding matching subsequences despite variations in speed or length. Finally, similarity scores from all three descriptors—harmony (HPCP), melody, and bass—are combined using machine learning classifiers (such as SVM and Random Forest) to produce a final identification decision.

Experimental Setup

The system was evaluated using two primary datasets:

  • Training Set: 76 songs used to optimize abstraction parameters.
  • Evaluation Set: A diverse collection of 2,125 songs, including 523 version sets. This dataset spans multiple genres, including pop, rock, electronic, jazz, blues, and classical, providing a rigorous test for the proposed descriptors.

Key Insights and Results

The study yielded several critical findings regarding the role of different musical layers in identification:

  • Individual Performance: On the large evaluation set, Harmony (HPCP) remained the most reliable single feature with a Mean Average Precision (MAP) of 0.698. Interestingly, the Bass Line descriptor (MAP 0.528) outperformed the Melody descriptor (MAP 0.483), suggesting that the bass "skeleton" is often more stable than the frequently embellished lead melody.
  • Complementary Strengths: While harmony is generally superior, melody and bass lines excel in specific scenarios, such as stripped-back acoustic versions where harmonic accompaniment is minimal.
  • Fusion Success: Combining all three features using a KStar classifier achieved the highest overall accuracy of 88.46%. Although the improvement over harmony alone was numerically small (approx. 1%), it was statistically significant, confirming that melody and bass provide unique, non-redundant information.

Conclusion and Future Work

This research demonstrates that while harmony is a powerful descriptor for version identification, melody and bass lines offer valuable complementary data. The "chroma-fication" of these linear elements is key to their success. Future work may address transcription errors in complex mixes and explore "early fusion" techniques to more intelligently weigh different musical layers based on the characteristics of the input audio.

Summary updated

BibTeX
@inproceedings{salamon2012melody,
  author = {Justin Salamon and Joan Serrà and Emilia Gómez},
  title = {{Melody, bass line, and harmony representations for music version identification}},
  booktitle = {The Web Conference},
  year = {2012},
  doi = {10.1145/2187980.2188219},
}
Figure