Skip to main content
QUICK REVIEW

[Paper Review] Improving performance and inference on audio classification tasks using capsule networks

Royal Jain|arXiv (Cornell University)|Feb 13, 2019
Music and Audio ProcessingComputer Science23 references12 citations
TL;DR

This paper proposes a capsule network architecture tailored for audio classification, leveraging dynamic routing-by-agreement to improve performance and inference. It demonstrates significant accuracy gains over CNNs, LSTMs, and attention-based models across seven diverse audio datasets, while also enabling insights into data and effective transfer learning via capsule activity vectors.

ABSTRACT

Classification of audio samples is an important part of many auditory systems. Deep learning models based on the Convolutional and the Recurrent layers are state-of-the-art in many such tasks. In this paper, we approach audio classification tasks using capsule networks trained by recently proposed dynamic routing-by-agreement mechanism. We propose an architecture for capsule networks fit for audio classification tasks and study the impact of various parameters on classification accuracy. Further, we suggest modifications for regularization and multi-label classification. We also develop insights into the data using capsule outputs and show the utility of the learned network for transfer learning. We perform experiments on 7 datasets of different domains and sizes and show significant improvements in performance compared to strong baseline models. To the best of our knowledge, this is the first detailed study about the application of capsule networks in the audio domain.

Motivation & Objective

  • To adapt capsule networks with dynamic routing-by-agreement for audio classification tasks, addressing limitations of CNNs and RNNs in handling affine transformations and temporal sensitivity.
  • To investigate the impact of architectural hyperparameters—such as capsule dimensionality and number of routing iterations—on classification accuracy.
  • To enhance model robustness through a novel regularization technique using a reconstruction head that reconstructs MFCC inputs.
  • To extend capsule networks to multi-label audio classification tasks, improving performance through weighted loss adjustments.
  • To explore the utility of capsule outputs for data interpretation and transfer learning in related audio domains.

Proposed method

  • Proposes a capsule network architecture specifically designed for audio inputs, using MFCCs as input features and applying dynamic routing-by-agreement to learn hierarchical part-whole relationships.
  • Introduces a two-stream loss function combining margin loss for classification and mean absolute error (MAE) for reconstruction, enabling regularization through input reconstruction.
  • Applies min-max scaling to MFCC features to stabilize training and prevent feature dominance in the reconstruction loss.
  • Employs PCA on capsule activity vectors to analyze how changes in amplitude and speed affect the output, revealing pose-invariant representations.
  • Utilizes capsule layer outputs as transferable features by concatenating them with MFCCs in a downstream task, enabling knowledge transfer from source to target domains.
  • Uses weighted binary cross-entropy loss with adjustable hyperparameter λ to reduce false positive influence in multi-label settings.

Experimental results

Research questions

  • RQ1How does capsule network performance compare to CNNs, LSTMs, and attention-based models on diverse audio classification benchmarks?
  • RQ2What is the optimal capsule dimensionality and number of routing iterations for maximizing audio classification accuracy?
  • RQ3Can capsule networks with reconstruction-based regularization improve generalization, especially on small datasets?
  • RQ4How do capsule activity vectors respond to controlled perturbations in amplitude and speed, and what does this reveal about learned representations?
  • RQ5To what extent can capsule activity vectors be used as transferable features for related audio classification tasks?

Key findings

  • Capsule networks achieved higher classification accuracy than strong baselines (CNN, LSTM, attention models) across all seven datasets, with the highest improvement on smaller datasets like FSDD and VCTK.
  • Optimal capsule dimensionality exists—accuracy increases up to a point and then decreases, indicating a trade-off between model capacity and overfitting.
  • Regularization via reconstruction head improved performance significantly on small datasets (e.g., FSDD), reducing overfitting and enhancing generalization.
  • Capsule outputs showed clear separation in PCA space when inputs were perturbed in amplitude and speed, indicating that the output vector encodes meaningful pose-related information.
  • Transfer learning using capsule activity vectors boosted Ravdess emotion classification accuracy from 41% to 50%, demonstrating the transferability of learned features.
  • In multi-label settings, routing-by-agreement reduced interference between classes, improving weighted accuracy on Multi-VCTK and Multi-MUSAN datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.