Musical instrument sound classification with deep convolutional neural network using feature fusion approach

Taejin Park, Taejin LeearXiv 2015 · arXiv

Abstract

Researchers from ETRI have developed a "feature fusion" approach for musical instrument classification that combines traditional spectrograms with a novel representation called Multiresolution Recurrence Plots (MRPs). By feeding both spectral and phase-sensitive data into a multi-column Convolutional Neural Network (CNN), the system significantly outperforms traditional handcrafted features and single-representation models, particularly in distinguishing between instruments with similar spectral envelopes.

Introduction

Classifying musical instruments automatically is a cornerstone of Music Information Retrieval (MIR). For decades, researchers relied on "handcrafted" features—like MFCCs or timbral textures—which require intensive manual optimization and dimensionality reduction. While deep learning has revolutionized this field by learning features directly from data, most audio CNNs rely on spectrograms. However, spectrograms are "phase-blind," discarding phase information that carries crucial details about an instrument’s unique timbre and "attack." This paper introduces a method to incorporate phase information into a 2D CNN framework without losing the benefits of multi-dimensional analysis.

Methodology

The authors propose a multi-column CNN architecture that merges two distinct data streams to capture both spectral and phase-related features.

Multiresolution Recurrence Plots (MRPs)

A Recurrence Plot (RP) visualizes how a signal's trajectory revisits the same area in phase space. To handle the wide frequency range of musical instruments (20 Hz to 4 kHz), the authors developed "Multiresolution" plots. These consist of seven layers of RPs with varying temporal block sizes (from $2^5$ to $2^{17}$ samples), allowing the network to analyze both low-frequency phase structures and high-frequency transients.

Multiresolution Recurrence Plots (MRPs) across 7 layers and 8 data acquisition points.

Feature Fusion and Architecture

The system uses a multi-column CNN where MRPs and standard 32x32 magnitude spectrograms are processed through separate convolutional streams. These streams are then merged at the first fully connected layer. To ensure compatibility, raw MRPs are resized into 32x32 images using a specialized two-phase max-pooling (1-D then 2-D) to preserve salient "abrupt changes" in the time series.

The multi-column CNN architecture showing feature fusion of MRPs (a) and spectrograms (b).

Datasets

The study utilized two primary data sources:

  • UIOWA MIS Database: A standard benchmark containing recordings of 20 different instruments across four families (Piano, Brass, String, Woodwind).
  • Custom Piano Dataset (Task-3): To test the limits of timbre classification, the authors recorded 88 notes from four different types of Virtual Studio Technology (VST) pianos: large grand, small grand, large upright, and small upright. This task is significantly harder because the spectral envelopes of different pianos are very similar.

Key Insights

  • Phase Matters for Timbre: While spectrograms excel at capturing the broad spectral envelope, MRPs are specialized in analyzing the internal phase structure.
  • Complementary Strengths: In Task-3 (distinguishing between different pianos), the spectrogram-only model struggled due to the instruments' similar sounds. The combined model (Network-3) saw a massive performance boost, proving that phase information is the "missing link" for fine-grained timbre recognition.
  • CNNs as Feature Extractors: By using a multi-column approach, the network can share kernels across multiple MRP layers, making it easier to learn features from neighboring notes in a training set.

Results

The authors compared their combined model (Network-3) against a baseline of handcrafted features and single-feature CNNs. The error rates show a clear victory for the fusion approach:

Model Task-1 (Families) Task-2 (20 Instruments) Task-3 (4 Pianos)
Baseline (Handcrafted) 3.00% 13.10% Not tested
MRP Only (Net-1) 2.72% 12.03% 13.20%
Spectrogram Only (Net-2) 1.79% 7.47% 13.36%
Combined (Net-3) 1.31% 6.35% 6.86%

Notably, in the challenging piano classification task, the combined model nearly halved the error rate compared to using either feature alone.

Conclusion

While the current system omits some temporal data for efficiency and MRPs are less effective than spectrograms at showing exact temporal envelopes, the results are promising. This fusion approach could be extended to other audio tasks where phase is critical, such as environmental sound classification or speaker identification.

Summary updated

Abstract

A new musical instrument classification method using convolutional neural networks (CNNs) is presented in this paper. Unlike the traditional methods, we investigated a scheme for classifying musical instruments using the learned features from CNNs. To create the learned features from CNNs, we not only used a conventional spectrogram image, but also proposed multiresolution recurrence plots (MRPs) that contain the phase information of a raw input signal. Consequently, we fed the characteristic timbre of the particular instrument into a neural network, which cannot be extracted using a phase-blinded representations such as a spectrogram. By combining our proposed MRPs and spectrogram images with a multi-column network, the performance of our proposed classifier system improves over a system that uses only a spectrogram. Furthermore, the proposed classifier also outperforms the baseline result from traditional handcrafted features and classifiers.
BibTeX
@misc{park2015musical,
  author = {Taejin Park and Taejin Lee},
  title = {{Musical instrument sound classification with deep convolutional neural network using feature fusion approach}},
  year = {2015},
  eprint = {1512.07370},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.07370},
}
Figure