Mining metadata from the web for AcousticBrainz

Alastair Porter, Dmitry Bogdanov, Xavier SerraDLfm 2016

TL;DR

This paper introduces MetaDB, a system for automatically collecting music metadata from various online sources to enrich the AcousticBrainz database. They then use this data to investigate the agreement between crowd-sourced genre tags and expert annotations, finding that while broad agreement exists, finer-grained genre distinctions show less consensus.

What Problem Does This Paper Address?

Manually annotating large music collections with semantic information like genre is time-consuming and infeasible as datasets grow. While automated methods exist, they often rely on narrow genre classifications or focus only on popular music. This paper addresses the need for a scalable way to gather diverse semantic metadata for music, specifically focusing on genre, and to evaluate the quality and agreement of this crowd-sourced data against expert opinions.

Methods

The core of the system is MetaDB, a Python-based framework built with Flask. It uses scrapers to extract data from various online music services. These scrapers are designed to be modular and can be easily extended to new sources. The system leverages MusicBrainz Identifiers (MBIDs) as a stable reference for recordings. Data is stored in a PostgreSQL database. For genre analysis, the authors developed lexical measures (precision, recall, F-measure) to compare genre annotations between different sources. They also explored three strategies for comparison: "contains" (all genre entities), "leaves" (only leaf nodes in genre trees), and "roots" (only top-level genres).

Datasets

The paper utilizes data from the following sources:

  • AcousticBrainz: A community project containing MIR features extracted from audio files, serving as the primary target for enrichment.
  • MusicBrainz: A community-driven database providing editorial metadata, artist, release, and recording information, and folksonomy tags.
  • Discogs: A community-built music database with explicit genre and style annotations, as well as relationships and performance roles.
  • AllMusic: An expert-curated online music guide with detailed genre, sub-genre, and style information.
  • Itunes: An online music store providing a "primary GenreName" field via its API.
  • Last.fm: A social music platform with collaborative tagging, used to infer genre annotations.

The paper introduces new datasets containing genre annotations derived from these sources, linked to AcousticBrainz recordings.

Key Insights and Ideas

  • The Web as a Rich Metadata Source: The paper demonstrates the feasibility and value of systematically mining diverse online music platforms for semantic annotations, moving beyond relying solely on curated datasets.
  • Crowd vs. Expert Disagreement: A key finding is that while crowd-sourced tags (like Last.fm) show some agreement with expert annotations (AllMusic, Discogs, Itunes), this agreement is strongest for broad, top-level genres. As genre specificity increases, the consensus breaks down.
  • Genre Hierarchy Matters: The "roots" comparison strategy yielded the best agreement, suggesting that high-level genre labels are more consistently understood and applied across different annotation sources than fine-grained sub-genres.
  • Subjectivity of Genre: The authors acknowledge the inherent subjectivity in genre categorization, which contributes to the observed discrepancies between different annotation sources.

Key Results

  • The MetaDB system successfully collected explicit genre annotations for hundreds of thousands of recordings from AllMusic, Discogs, and Itunes.
  • Last.fm tags were used to infer genre annotations for over 800,000 recordings.
  • When comparing expert sources (AllMusic, Discogs, Itunes) with inferred Last.fm genres, the F-measure for top-level genres ("roots") was highest, with Discogs showing the best agreement with Last.fm (F=0.72).
  • Agreement significantly decreased when considering all genre entities ("contains") or only leaf nodes ("leaves"), particularly for AllMusic and Itunes.
  • A tag weight threshold of 50-55% was found to be optimal for filtering Last.fm tags to improve precision.

Limitations and Future Work

  • Limited Pre-processing: The string matching approach for inferring genres from Last.fm tags is basic and may miss matches or create false positives.
  • Dataset Bias: The collected datasets are biased towards popular genres like Pop and Rock, limiting the analysis of less common genres.
  • Future Work: The authors plan to add more scrapers to collect additional metadata types (moods, themes, instrumentation, reviews). They also aim to analyze genre confusions between expert sources, group similar genres, and ultimately improve the semantic annotation data available in AcousticBrainz for better audio analysis models.

Summary updated

BibTeX
@inproceedings{porter2016mining,
  author = {Alastair Porter and Dmitry Bogdanov and Xavier Serra},
  title = {{Mining metadata from the web for AcousticBrainz}},
  booktitle = {DLfm},
  year = {2016},
  doi = {10.1145/2970044.2970048},
}
Figure