# Methodology — music-research-dataset-2026-11-r1

## Sources (all CC0; acquisition cost $0)

| Source | Version | Use |
|---|---|---|
| ListenBrainz incremental Spark dumps 2790–2816 | submissions 2026-11-15 00:00:03 → 2026-11-29 00:00:03 UTC | W47 listens; October listens submitted after the full dump |
| ListenBrainz full Spark dump 2789 | dump timestamp 2026-11-15 00:00:03 UTC; 30 members (listened_at 2026-09-30 → 2026-11-15) read via HTTP range requests | October 2026 listens |
| MusicBrainz core dump `mbdump.tar.bz2` | fullexport 20261128-002205, schema 31 | Recording, artist, release, work, label and relationship metadata |
| AcousticBrainz reduced feature archives | 2022-06-23 (lowlevel, rhythm, tonal; 29,460,584 submissions each) | Audio descriptors |

File sizes, SHA-256 values and licence evidence are recorded in the repository source manifests. Not used: the ListenBrainz `/1/popularity` API (it combines ListenBrainz with historical Last.fm MLHD+ counts), MLHD+ endpoints, MusicBrainz supplementary tags and ratings (CC BY-NC-SA), Spotify data, lyrics, artwork and any user-level data.

## Listening observations

1. **Window.** A listen counts for a period when `period_start <= listened_at < period_end` (UTC) and ListenBrainz received it (`created`) by 2026-11-29T00:00:03.140708+00:00. For October, rows come from the full dump (listens received by 2026-11-15) plus incremental rows received after it. Incremental rows duplicated among themselves (25,024) or already in the full dump (14,562) are removed. For W47, 8,889 exact duplicate rows across archives are removed.
2. **Attribution.** A listen is attributed through its `recording_mbid`: ListenBrainz's MBID-mapper result where it matched the listen, otherwise a client-supplied MBID. That MBID is then resolved against the MusicBrainz snapshot, as the current MBID or through one redirect. Listens without an MBID (October 9,945,467; W47 2,682,925) and with unresolvable MBIDs are excluded and counted.
3. **Aggregation.** listen_count is the number of attributed listens. listener_count is the number of distinct ListenBrainz accounts, counted after redirect resolution and never summed. Artist statistics count a listen once per distinct credited artist over all attributable listens. Account identifiers never leave the build environment.
4. **Late arrivals.** W47 listens kept arriving after the week ended, about 0.3% per day at the cutoff, so period counts are lower bounds for later snapshots.

## Selection and editions

The universe is every resolved recording with at least one attributable listen in either period (3,613,255). It is ranked by October listeners (descending), October listens (descending), then MBID; recordings with W47 listens only follow, by W47 listeners, listens and MBID. The small, medium and large editions are ranks 1–1,000, 1–10,000 and 1–1,000,000. Every table is restricted to what that edition's recordings reference.

## Metadata and extensions

Only explicit MusicBrainz core records are used:
- **Release history:** a recording's releases come through its tracks, with no "main album" chosen. The first release date is the earliest release-event date, compared as text, so a year-only date precedes a full date in the same year.
- **Artists:** artist area and begin area (where a person was born or a group formed) are given as entered. Residence and market are not available.
- **Works and relationships:** works, creators, roles and relationships are explicit links. Cover, live and similar statuses come only from relationship attributes. Personal-life artist relationships (married, parent, sibling, involved with, personal relationship) are excluded.
- **Labels:** labels appear as printed on releases.

## Audio descriptors

**Bulk rule.** For each recording, the candidates are its current MBID and every MBID that now redirects to it. Every submission present in all three archives is used. The descriptor value is the median over those submissions; key and scale are the most frequent pair, with ties going to the current MBID first, then redirect MBIDs ascending, then offset ascending.
- **Cleaning:** exact duplicate rows are collapsed, and keys repeated with different values are excluded.
- **Not possible:** the archives carry no audio hash or duration, so repeated audio files and length mismatches cannot be removed.
- **Absent at edition scale:** MFCC coefficients 1–12, spectral descriptors (centroid, rolloff, flux), zero-crossing rate, chord-change rate, key strength, analysed duration and the audio hash are not in the bulk archives. They are not columns in any edition and are not imputed. (The Stage 1 API pilot had some of them; the editions do not.)
- **Empty (null):** the audio columns that exist are empty for recordings with no submission (`ab_features_available` = false), never zero.

**Validation against the AcousticBrainz API** (6,064 pilot submissions, which do carry hash and duration):
- **Identity:** every pilot submission is present under the same (MBID, offset).
- **Same-submission values:** numeric values agree exactly; key and scale agree for 99.88%.
- **Recording medians:** compared with the API rule (duplicates and duration mismatches removed), 97.8% agree within 2% for BPM and 82.4% for dynamic complexity.

## Reproduction

`scripts/music-dataset-pilot/` in the Persistfolio repository (acquire, aggregate_listens, aggregate_october, extract_musicbrainz, build_editions, acoustic_bulk, package_editions, qa_editions). Two consecutive builds produce byte-identical files.
