Acoustic Scene Classification Based on a Large-margin Factorized CNN

Janghoon Cho, Sungrack Yun, Hyoungwoo Park, Jungyun Eum, Kyuwoong Hwang

Introduction

Acoustic Scene Classification (ASC) aims to categorize audio recordings into predefined environmental classes such as "airport," "park," or "street traffic." While deep learning has significantly advanced this field, models often struggle with two primary challenges: overfitting to specific recording locations (city-specific noise) and high computational complexity. This paper, presented at the DCASE 2019 workshop, proposes a Factorized CNN (FCNN) architecture combined with a large-margin triplet loss to address these issues, achieving state-of-the-art efficiency and improved generalization to unseen geographic locations.

Methodology

Sub-Spectral Architecture

The proposed system utilizes a sub-spectral approach where the input mel-spectrogram is divided into multiple frequency sub-bands. Each sub-band is processed by its own stream of convolutional and fully connected layers. This allows the model to learn localized spectral patterns that are characteristic of specific acoustic scenes before aggregating them for a global decision.

The sub-spectral architecture decomposes the input mel-spectrogram into sub-bands, each processed by dedicated sub-classifiers before global aggregation.

Factorized Convolutional Neural Network (FCNN)

To reduce model complexity and improve regularization, the authors replace standard $k \times k$ 2D convolutional kernels with factorized versions. A 2D kernel is decomposed into two consecutive 1D filters: a $(k, 1)$ temporal filter and a $(1, k)$ spectral filter. This factorization assumes that audio patterns possess a low-rank structure, effectively capturing stationary ambient drones and transient events separately. Mathematically, this mirrors the physical reality of sound, where horizontal stripes in a spectrogram represent stationary noise and vertical events represent short-term sounds. This approach reduces the parameter count from $k^2$ to $2k$, providing a significant reduction in model size.

Large-Margin Triplet Loss

A key innovation is the application of a specialized triplet loss function to enhance city-invariance. Standard cross-entropy loss often fails to prevent the model from learning city-specific characteristics, leading to poor generalization in unseen locations. By using a triplet loss with a specific sampling strategy—pairing samples from the same scene but different cities as "positives"—the model is forced to learn features that define the scene itself (e.g., "airport-ness") rather than the location (e.g., "London-ness").

The large-margin triplet loss clusters features by scene type while pushing away samples from different scenes, even when they share city-specific noise.

Experimental Setup and Results

The model was evaluated using the TAU Urban Acoustic Scenes 2019 dataset, which includes 10 scenes across 10 European cities. To test generalization, data from Milan was held out as an "unseen city" during training.

Generalization and Accuracy

The FCNN, combined with triplet loss and Spec-augment, achieved an accuracy of 73.14% on 40-bin log-mel features, outperforming the SubSpectralNet baseline of 68.93%. Notably, the performance improvement on the unseen city (Milan) was 41% higher than the overall improvement, demonstrating the effectiveness of the city-invariant training strategy.

Model Efficiency

The FCNN architecture is remarkably compact. For the 40 log-mel feature configuration, the model contains only 113K parameters, compared to 331K for the baseline SubSpectralNet. This nearly 3x reduction in size makes the model highly suitable for deployment on resource-constrained devices without sacrificing performance.

Conclusion

The Factorized CNN with large-margin triplet loss offers a robust solution for efficient and generalizable acoustic scene classification. By leveraging the low-rank nature of audio signals and explicitly training for city-invariance, the researchers developed a model that is both lightweight and capable of handling diverse, real-world environments.

Summary updated

Abstract

In this paper, we present an acoustic scene classification framework based on a large-margin factorized convolutional neural network (CNN). We adopt the factorized CNN to learn the patterns in the time-frequency domain by factorizing the 2D kernel into two separate 1D kernels. The factorized kernel leads to learn the main component of two patterns: the long-term ambient and short-term event sounds which are the key patterns of the audio scene classification. In training our model, we consider the loss function based on the triplet sampling such that the same audio scene samples from different environments are minimized, and simultaneously the different audio scene samples are maximized. With this loss function, the samples from the same audio scene are clustered independently of the environment, and thus we can get the classifier with better generalization ability in an unseen environment. We evaluated our audio scene classification framework using the dataset of the DCASE challenge 2019 task1A. Experimental results show that the proposed algorithm improves the performance of the baseline network and reduces the number of parameters to one third. Furthermore, the performance gain is higher on unseen data, and it shows that the proposed algorithm has better generalization ability.
BibTeX
@inproceedings{cho2019acoustic,
  author = {Janghoon Cho and Sungrack Yun and Hyoungwoo Park and Jungyun Eum and Kyuwoong Hwang},
  title = {{Acoustic Scene Classification Based on a Large-margin Factorized CNN}},
  booktitle = {DCASE},
  year = {2019},
  url = {https://openreview.net/forum?id=pwWrx6V_4V},
}
Figure