Explainable audio Classification of Playing Techniques with Layer-wise Relevance Propagation

Changhong Wang, Vincent Lostanlen, Mathieu Lagrange2023

Abstract

Deep convolutional networks (convnets) in the time–frequency domain can learn an accurate and fine-grained categorization of sounds. For example, in the context of music signal analysis, this categorization may correspond to a taxonomy of playing techniques: vibrato, tremolo, trill, and so forth. However, convnets lack an explicit connection with the neurophysiological underpinnings of musical timbre perception. In this article, we propose a data-driven approach to explain audio classification in terms of physical attributes in sound production. We borrow from current literature in "explainable AI" (XAI) to study the predictions of a convnet which achieves an almost perfect score on a challenging task: i.e., the classification of five comparable real-world playing techniques from 30 instruments spanning seven octaves. Mapping the signal into the carrier-modulation domain using scattering transform, we decompose the networks’ predictions over this domain with layer-wise relevance propagation. We find that regions highly-relevant to the predictions localized around the physical attributes with which the playing techniques are performed.

Introduction

While deep convolutional networks (convnets) have achieved near-perfect accuracy in identifying musical playing techniques, they are often criticized as "black boxes." In musicology and acoustics, it is vital to determine if a model is identifying the physical realities of sound production—such as the specific modulation rate of a performer's gesture—or merely exploiting statistical artifacts in the training data. This study bridges the gap between high-performance machine learning and our scientific understanding of musical timbre by applying explainable AI (XAI) techniques to audio classification.

Methodology

The researchers employed a two-stage approach to create an interpretable system. First, audio signals were processed using the Scattering Transform, which decomposes sound into a hierarchical "carrier-modulation" domain. This representation includes first-order coefficients ($S_1x$), similar to standard spectrograms, and second-order coefficients ($S_2x$), which capture complex temporal modulations.

A convnet was trained on these features using the Studio On Line (SOL-PMT) dataset, comprising 2,530 clips of five periodic modulation techniques (tremolo, flatterzunge, trill, bisbigliando, and vibrato) across 30 different instruments. To interpret the model's decisions, the team utilized Layer-wise Relevance Propagation (LRP), which assigns relevance scores to input features by back-propagating the model's prediction. This process creates a heatmap showing exactly which parts of the signal the model prioritized.

Visualization of the pipeline: (a) spectrograms, (b) scattering transform inputs, and (c) (d) LRP relevance maps comparing different propagation rules.

Results and Discussion

The model achieved exceptional performance, reaching between 97.5% and 100% accuracy across all five techniques. A key finding was the critical importance of second-order scattering ($S_2x$). When the model was limited to first-order features ($S_1x$), accuracy plummeted, particularly for techniques defined by temporal modulation like trills and vibrato.

Accuracy comparison between models using only first-order scattering ($S_1x$) versus the full scattering transform ($S_1x + S_2x$).

Physical Alignment and Pitch Invariance

The LRP heatmaps revealed that the model's "relevance" peaks align perfectly with known physical modulation rates. For example, the model consistently focused on the 8 Hz region for trills and the 32 Hz region for flatterzunge. Crucially, the model learned to ignore the "carrier frequency" (the pitch of the note) to focus on the "modulation frequency" (the technique). This pitch invariance demonstrates that the model understands music in a manner consistent with human perception and physical sound production.

Conclusion

By combining the Scattering Transform with LRP, this research successfully "opens the black box" of audio convnets. The results prove that these models can identify playing techniques by focusing on the actual physical gestures of the performer. This framework offers a powerful tool for music gesture analysis and provides a biologically plausible path toward more transparent artificial intelligence in musicology.

Summary updated

BibTeX
@misc{wang2023explainable,
  author = {Changhong Wang and Vincent Lostanlen and Mathieu Lagrange},
  title = {{Explainable audio Classification of Playing Techniques with Layer-wise Relevance Propagation}},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095894},
}
Figure