Polyphonic Instrument Recognition Using Spectral Clustering

Luis Gustavo Martins, Juan José Burred, George Tzanetakis, Mathieu LagrangeIsmir 2007

Abstract

Identifying musical instruments within polyphonic recordings remains a significant challenge in Music Information Retrieval (MIR) due to spectral overlap. This paper presents a framework that addresses this by "unmixing" audio signals using spectral clustering. By applying the Normalized Cut algorithm to spectral peak trajectories, the system isolates individual notes which are then matched against PCA-based timbre templates. This approach allows for instrument recognition without requiring explicit pitch transcription.

Introduction

While monophonic instrument recognition is highly accurate, polyphonic music—where multiple instruments play simultaneously—presents the "holy grail" challenge of spectral overlap. When different instruments play concurrent notes, their frequencies often intermingle, making it difficult to assign specific spectral components to the correct source. Traditional methods often rely on complex pitch estimation to guide separation. This research proposes a "blind" separation method that groups sound components based on psychoacoustic cues before identification.

System Architecture

The recognition pipeline is divided into three primary stages: sinusoidal modeling, spectral clustering, and timbre matching.

Figure 1: Overview of the polyphonic instrument recognition system architecture.
  1. Sinusoidal Modeling: The system extracts prominent spectral peaks (sinusoids) over time, focusing on energy trajectories rather than the raw waveform.
  2. Spectral Clustering: Detected peaks are represented as nodes in a graph. Edges are weighted based on frequency proximity, amplitude similarity, and harmonic relationships.
  3. Timbre Matching: Isolated clusters are compared against pre-trained Principal Component Analysis (PCA) models for six instruments (piano, oboe, clarinet, trumpet, violin, and alto sax).

Spectral Clustering and Source Separation

The core innovation of this work is the application of the Normalized Cut (Ncut) algorithm—a technique borrowed from computer vision—to the audio domain. In vision, Ncut partitions images by ignoring local noise to find global structures. Here, it partitions the spectral graph into clusters representing individual musical notes.

Figure 2: Visualization of spectral peaks partitioned into distinct note clusters.

As shown in Figure 2, the algorithm successfully groups disparate spectral trajectories into coherent clusters (e.g., Cluster 0 and Cluster 1), effectively unmixing the polyphonic signal into its constituent sound sources. This allows the system to treat pitch as an emergent property of the cluster rather than a prerequisite for separation.

Timbre Modeling via PCA

To achieve pitch-independent recognition, the authors use PCA to model spectral envelopes. This creates a "fingerprint" or prototype template for each instrument that describes how its sound evolves over time. By focusing on the spectral envelope, the system can identify an instrument regardless of the specific note it is playing.

Experimental Results

The system was evaluated using the RWC Music Database.

  • Isolated Notes: The system achieved an 83.3% classification accuracy on solo recordings.
  • Polyphonic Mixtures: In tests with 2 to 4 simultaneous notes, the system reached an overall F1-measure of 60%.
  • Complexity Impact: Performance was strongest for 2-note mixtures (77% F1-score) but decreased as density increased, dropping to 50% for 4-note mixtures.
  • Instrument Variability: The piano proved the most challenging to identify in dense mixtures (0% recall at 4 notes), likely due to its percussive attack being masked by sustained wind or string tones.

Conclusion and Future Work

This research demonstrates that spectral clustering is a viable path for polyphonic instrument recognition. By separating sources before identification, the system bypasses the need for perfect transcription. Future improvements will focus on incorporating temporal segmentation (onsets and offsets) and more complex features like vibrato to enhance performance in real-world musical contexts.

Summary updated

BibTeX
@inproceedings{martins2007polyphonic,
  author = {Luis Gustavo Martins and Juan José Burred and George Tzanetakis and Mathieu Lagrange},
  title = {{Polyphonic Instrument Recognition Using Spectral Clustering}},
  booktitle = {Ismir},
  year = {2007},
}
Figure