Skip to main content
QUICK REVIEW

[Paper Review] TensorFlow Audio Models in Essentia

Pablo Alonso-Jiménez, Dmitry Bogdanov|arXiv (Cornell University)|Mar 16, 2020
Music and Audio ProcessingComputer Science1 citations
TL;DR

This paper introduces a C++-based integration of TensorFlow deep learning models into the Essentia audio analysis library, enabling fast, real-time inference with pre-trained CNNs for music tagging and classification. The key contribution is a significant improvement in generalization over prior SVM-based models, especially when using transfer learning with AudioSet-pretrained models.

ABSTRACT

Essentia is a reference open-source C++/Python library for audio and music analysis. In this work, we present a set of algorithms that employ TensorFlow in Essentia, allow predictions with pre-trained deep learning models, and are designed to offer flexibility of use, easy extensibility, and real-time inference. To show the potential of this new interface with TensorFlow, we provide a number of pre-trained state-of-the-art music tagging and classification CNN models. We run an extensive evaluation of the developed models. In particular, we assess the generalization capabilities in a cross-collection evaluation utilizing both external tag datasets as well as manual annotations tailored to the taxonomies of our models.

Motivation & Objective

  • Address the lack of efficient, modular deep learning integration in audio analysis software like Essentia, which previously relied on traditional machine learning models.
  • Enable real-time, computationally efficient inference of pre-trained deep learning models within a high-performance C++/Python audio analysis framework.
  • Improve generalization capabilities of music tagging and classification models on limited in-house datasets using transfer learning.
  • Provide a flexible, extensible pipeline that bridges audio feature extraction (Essentia) and deep learning inference (TensorFlow) for industrial and research applications.

Proposed method

  • Developed a new C++-based interface in Essentia to load and run TensorFlow models, enabling real-time inference with low memory overhead.
  • Implemented a streaming mode using ring buffers to process audio in chunks, supporting real-time and large-scale batch processing.
  • Utilized transfer learning by employing pre-trained VGG-II models from AudioSet as fixed feature extractors, fine-tuned on small in-house datasets.
  • Trained and evaluated multiple CNN architectures (e.g., VGG-II) on in-house datasets for genre, mood, and high-level music description tasks.
  • Integrated the models into Essentia’s declarative signal processing pipeline, allowing seamless integration with existing audio feature extraction workflows.
  • Evaluated models using both 5-fold cross-validation and cross-collection evaluation on external datasets (e.g., MTG-Jamendo-test), including manual annotations for ground truth.

Experimental results

Research questions

  • RQ1Can a C++-based audio analysis library like Essentia efficiently and flexibly integrate pre-trained deep learning models for real-time inference?
  • RQ2How does transfer learning with large-scale pre-trained models (e.g., AudioSet) improve generalization on small, in-house music datasets compared to traditional SVMs?
  • RQ3To what extent do the new deep learning models outperform existing SVM-based classifiers in cross-collection evaluation?
  • RQ4Can the integration of TensorFlow into Essentia enable scalable, low-latency inference suitable for industrial deployment in music information retrieval?

Key findings

  • The VGG-II model fine-tuned with AudioSet pre-training achieved the highest balanced accuracy across all tasks in cross-collection evaluation, outperforming both SVM baselines and models trained from scratch.
  • On the manually annotated subset of MTG-Jamendo-test, the VGG-II (AudioSet) model achieved a balanced accuracy of 0.48 for genre-dortmund, compared to 0.19 for the SVM baseline.
  • For mood classification, the VGG-II (AudioSet) model achieved a balanced accuracy of 0.82 for mood-acoustic, compared to 0.75 for the SVM baseline.
  • The model for voice/instrumental classification reached a balanced accuracy of 0.87 on the manual test set, significantly outperforming the SVM baseline of 0.72.
  • Despite minimal hyperparameter tuning, the deep learning models showed statistically significant improvements over SVMs on the manually annotated test set in 10 out of 12 tasks.
  • The AudioSet-pretrained model, despite not being specifically trained on music, achieved state-of-the-art performance due to its large and diverse training data.

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.