Abstract
The work of a single musician, group or composer can vary widely in terms of musical style. Indeed, different stylistic elements, from performance medium and rhythm to harmony and texture, are typically exploited and developed across an artist's lifetime. Yet, there is often a discernable character to the work of, for instance, individual composers at the perceptual level. Here we suggest that a convolutional network may learn these subtle clues or features given an appropriate representation of the music. In this paper, we apply a deep convolutional neural network to a large audio dataset and empirically evaluate its performance on audio classification tasks. Our trained network demonstrates accurate performance on such classification tasks when presented with 5 s examples of music obtained by simple transformations of the raw audio waveform. A particularly interesting example is the spectral representation of music obtained by application of a logarithmically spaced filter bank, mirroring the early stages of auditory signal transduction in mammals. The most successful representation of music to facilitate discrimination was obtained via a random matrix transform (RMT). Networks based on logarithmic filter banks and RMT were able to correctly guess the one composer out of 31 possibilities in 68 and 84 percent of cases respectively.
Introduction
While convolutional neural networks (CNNs) have revolutionized computer vision, their application to audio has been more complex. Audio signals are high-dimensional, non-stationary, and possess structure across multiple timescales—from the millisecond-level nuances of timbre to the minute-long structures of musical form. The central challenge lies in representation: how to transform a 1D pressure wave into a 2D format that a CNN—designed for spatial patterns—can effectively process. Traditionally, researchers use spectrograms that mimic the human ear with logarithmic frequency scales. This study investigates whether these biologically-inspired representations are optimal for deep learning or if alternative mathematical transforms can better capture a composer’s stylistic "fingerprint."
Methodology and Audio Representations
The researchers treated audio classification as an image recognition task, converting raw audio into 204x204 pixel images using three distinct transformations:
- Logarithmic Short-Time Fourier Transform (logSTFT): A standard spectrogram where filters are spaced logarithmically, mimicking the mammalian cochlea.
- Linear STFT: A standard spectrogram with equally spaced frequency bins.
- Random Matrix Transform (RMT): Instead of using the structured basis of a Discrete Fourier Transform (DFT), the authors used a matrix filled with random values drawn from a normal distribution. This provides a "flatter" mathematical projection without assuming specific harmonic structures.
These representations were fed into a deep CNN consisting of six convolutional layers (3x3 filters) followed by three fully connected layers. The architecture utilized ReLU activation, Max Pooling, Dropout (30%), and Xavier initialization.
Dataset and Experimental Setup
A custom dataset was constructed consisting of approximately 2 hours of music per composer for 31 classical composers spanning 350 years (e.g., Bach, Beethoven, Glass, Schnittke). Audio was downsampled to 8kHz (providing ~5.2s samples) and 2kHz (~20.8s samples) for comparison. In total, 31,000 samples (1,000 per composer) were generated.
Results and Discussion
The experimental results revealed a significant performance gap between representations. The RMT-based network achieved the highest accuracy at 84%, while the biologically-inspired 8kHz logSTFT reached 68%.
The confusion matrix indicates that the model's errors were often "logical," confusing composers from the same era or with similar stylistic textures, while rarely confusing disparate styles like Baroque and Minimalism.
Key Insights
- The Superiority of Randomness: The RMT significantly outperformed Fourier-based methods. This suggests that RMTs may have a higher "information density," preserving subtle statistical features of the raw waveform that standard Fourier transforms discard.
- Biological Mimicry vs. Mathematical Optimization: While logSTFT mimics the human auditory system, the superior performance of RMT suggests that deep learning models can identify "clues" in audio that are inaudible or invisible to human perception.
- Temporal Resolution: Accuracy dropped from 68% (8kHz) to 48% (2kHz) for the logSTFT, highlighting that high-frequency information is crucial for detecting a composer's unique signature, even when sample duration is increased.
Conclusion
This work demonstrates that CNNs can identify classical composers with high accuracy from very short audio clips. The surprising success of the Random Matrix Transform suggests that standard spectral representations may not be the most efficient way to encode audio for deep learning. Future research should aim to establish a human expert baseline and explore the theoretical reasons why random projections preserve critical stylistic features so effectively.
Summary updated