Interpreting CNN models for musical instrument recognition using multi-spectrogram heatmap analysis: a preliminary study
Authors:
Open Access
- 18 December 2024
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Artificial Intelligence
- Vol. 7, 1499913
Abstract
Introduction: Musical instrument recognition is a critical component of music information retrieval (MIR), aimed at identifying and classifying instruments from audio recordings. This task poses significant challenges due to the complexity and variability of musical signals.Methods: In this study, we employed convolutional neural networks (CNNs) to analyze the contributions of various spectrogram representations—STFT, Log-Mel, MFCC, Chroma, Spectral Contrast, and Tonnetz—to the classification of ten different musical instruments. The NSynth database was used for training and evaluation. Visual heatmap analysis and statistical metrics, including Difference Mean, KL Divergence, JS Divergence, and Earth Mover’s Distance, were utilized to assess feature importance and model interpretability.Results: Our findings highlight the strengths and limitations of each spectrogram type in capturing distinctive features of different instruments. MFCC and Log-Mel spectrograms demonstrated superior performance across most instruments, while others provided insights into specific characteristics.Discussion: This analysis provides some insights into optimizing spectrogram-based approaches for musical instrument recognition, offering guidance for future model development and improving interpretability through statistical and visual analyses.Keywords
This publication has 31 references indexed in Scilit:
- PureMIC: A New Audio Dataset for the Classification of Musical Instruments based on Convolutional Neural NetworksJournal of Signal Processing Systems, 2021
- Stratification of String Instruments Using Chroma-Based Features2018
- Deep learningNature, 2015
- Automatic musical instrument classification using fractional fourier transform based- MFCC features and counter propagation neural networkJournal of Intelligent Information Systems, 2015
- Visualizing and Understanding Convolutional Networks2014
- Evaluation of Pooling Operations in Convolutional Architectures for Object Recognition2010
- Music information retrievalAnnual Review of Information Science and Technology, 2003
- The Earth Mover's Distance as a Metric for Image RetrievalInternational Journal of Computer Vision, 2000
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998
- Divergence measures based on the Shannon entropyIEEE Transactions on Information Theory, 1991