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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- audio-classification
|
| 5 |
+
- text-classification
|
| 6 |
+
language:
|
| 7 |
+
- zh
|
| 8 |
+
- en
|
| 9 |
+
- ja
|
| 10 |
+
- ko
|
| 11 |
+
tags:
|
| 12 |
+
- music
|
| 13 |
+
- music-emotion-recognition
|
| 14 |
+
- multi-label
|
| 15 |
+
- netease
|
| 16 |
+
pretty_name: S16k
|
| 17 |
+
size_categories:
|
| 18 |
+
- 100K<n<1M
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: songs
|
| 21 |
+
data_files: songs.parquet
|
| 22 |
+
- config_name: songs_9822_balanced
|
| 23 |
+
data_files: songs_9822.parquet
|
| 24 |
+
- config_name: playlists
|
| 25 |
+
data_files: playlists.parquet
|
| 26 |
+
- config_name: song_playlist
|
| 27 |
+
data_files: song_playlist.parquet
|
| 28 |
+
- config_name: tag_taxonomy
|
| 29 |
+
data_files: tag_taxonomy.parquet
|
| 30 |
---
|
| 31 |
|
| 32 |
+
# S16k — Multi-label Music Emotion Recognition from NetEase Cloud Music
|
| 33 |
|
| 34 |
+
169,148 songs with multi-label emotion annotations, the 46,613 user-curated playlists the
|
| 35 |
+
annotations are derived from, pre-extracted audio features, and a class-balanced subset.
|
| 36 |
|
| 37 |
+
Reference paper: https://doi.org/10.1007/s00530-025-01701-z
|
| 38 |
|
| 39 |
+
## How the labels are defined
|
| 40 |
+
|
| 41 |
+
Every playlist on NetEase Cloud Music (网易云音乐) carries editorial tags such as 流行,
|
| 42 |
+
治愈, 夜晚. A song inherits the tags of every playlist that contains it, and the value stored
|
| 43 |
+
is a **count**: `emo_healing = 3` means three playlists holding this song are tagged 治愈.
|
| 44 |
+
|
| 45 |
+
These are platform and community tags, not controlled psychological ratings. Treat them
|
| 46 |
+
accordingly when comparing against annotation-based corpora such as DEAM or PMEmo.
|
| 47 |
+
|
| 48 |
+
## Files
|
| 49 |
+
|
| 50 |
+
| File | Rows | Size | Content |
|
| 51 |
+
|---|---|---|---|
|
| 52 |
+
| `songs.parquet` | 169,148 | 52 MB | Main table: metadata, 74 tag columns, emotion labels |
|
| 53 |
+
| `songs_9822.parquet` | 9,822 | 5 MB | Class-balanced subset, same schema plus `unique_id` |
|
| 54 |
+
| `playlists.parquet` | 46,613 | 10 MB | Source playlists with tags and popularity statistics |
|
| 55 |
+
| `song_playlist.parquet` | 477,216 | 2.4 MB | Song ↔ playlist relation, long format |
|
| 56 |
+
| `tag_taxonomy.parquet` / `.csv` | 74 | <1 MB | Tag column ↔ English ↔ Chinese ↔ group mapping |
|
| 57 |
+
| `songs_169148_vggish.npz` | 169,097 | 2.7 GB | VGGish embeddings |
|
| 58 |
+
| `songs_9822_vggish.npz` | 9,822 | 0.16 GB | VGGish embeddings for the balanced subset |
|
| 59 |
+
| `spectrograms_169148.npz` | 169,148 | 17.3 GB | Log-mel spectrograms in dB |
|
| 60 |
+
|
| 61 |
+
Audio features are computed from the **middle 30 seconds** of each track. Raw audio is not
|
| 62 |
+
redistributed.
|
| 63 |
+
|
| 64 |
+
## Quick start
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
import pandas as pd
|
| 68 |
+
|
| 69 |
+
songs = pd.read_parquet("songs.parquet")
|
| 70 |
+
tax = pd.read_parquet("tag_taxonomy.parquet")
|
| 71 |
+
|
| 72 |
+
emo_cols = tax.loc[tax.group == "emo", "column"].tolist()
|
| 73 |
+
X = songs[emo_cols] # tag counts
|
| 74 |
+
Y = (songs[emo_cols] > 0).astype(int) # binary multi-label targets
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
## `songs.parquet`
|
| 78 |
+
|
| 79 |
+
### Identifiers and metadata
|
| 80 |
+
|
| 81 |
+
| Key | Type | Description |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| `song_id` | int64 | Primary key, unique across all rows |
|
| 84 |
+
| `alt_ids` | list\<int64\> | Further NetEase IDs pointing at the same track. Non-empty on 8,418 rows, up to 4 entries |
|
| 85 |
+
| `n_ids` | int8 | `1 + len(alt_ids)` |
|
| 86 |
+
| `name` | string | Track title, Chinese verbatim. 4 nulls |
|
| 87 |
+
| `artist` | string | 5 nulls |
|
| 88 |
+
| `language` | dictionary\<string\> | 42 values. `instrumental` 66,244 · `en` 42,747 · `zh` 39,692 · `ja` 13,113 · `ko` 2,504 |
|
| 89 |
+
| `duration_ms` | int32, nullable | Null on 21,798 rows (12.9%) where the source carries no duration. Those rows are otherwise complete and should not be dropped |
|
| 90 |
+
| `lyric` | string | Present on 102,903 rows; absent almost exactly where `language == "instrumental"` |
|
| 91 |
+
| `n_playlists` | int16 | Playlists containing this song. Mean 2.82, max 198 |
|
| 92 |
+
|
| 93 |
+
### Tag columns
|
| 94 |
+
|
| 95 |
+
74 columns holding counts in the range 0–133, prefixed by group following the official
|
| 96 |
+
NetEase tag taxonomy:
|
| 97 |
+
|
| 98 |
+
| Prefix | Group | Count | Examples |
|
| 99 |
+
|---|---|---|---|
|
| 100 |
+
| `lang_` | Language 语种 | 6 | `lang_mandarin` 华语 · `lang_western` 欧美 · `lang_cantonese` 粤语 |
|
| 101 |
+
| `genre_` | Genre 风格 | 25 | `genre_pop` 流行 · `genre_rock` 摇滚 · `genre_new_age` New Age |
|
| 102 |
+
| `scene_` | Scene 场景 | 12 | `scene_night` 夜晚 · `scene_driving` 驾车 · `scene_study` 学习 |
|
| 103 |
+
| `emo_` | Emotion 情感 | 12 | `emo_healing` 治愈 · `emo_sadness` 伤感 · `emo_missing` 思念 |
|
| 104 |
+
| `theme_` | Theme 主题 | 18 | `theme_acg` ACG · `theme_soundtrack` 影视原声 · `theme_ktv` KTV |
|
| 105 |
+
| `misc_` | Outside the official taxonomy | 1 | `misc_sexy` 性感 |
|
| 106 |
+
|
| 107 |
+
`tag_taxonomy.parquet` holds the complete mapping with columns `column`, `en`, `zh`,
|
| 108 |
+
`group`, `is_emotion_label`, `emotion_index`.
|
| 109 |
+
|
| 110 |
+
Four tags carried by the data but not listed on the official taxonomy page are grouped by
|
| 111 |
+
meaning: 小语种 under `lang`, 另类/独立 and 音乐剧 under `genre`, 性感 under `misc`.
|
| 112 |
+
性感 sits outside `emo` so that the emotion label set stays at exactly 12 classes.
|
| 113 |
+
|
| 114 |
+
### Emotion label vectors
|
| 115 |
+
|
| 116 |
+
Three fixed-length list columns sharing one order:
|
| 117 |
+
|
| 118 |
+
| Key | Type | Description |
|
| 119 |
+
|---|---|---|
|
| 120 |
+
| `emo_tag_counts` | list\<int16\>[12] | Playlist tag counts |
|
| 121 |
+
| `emo_ratio` | list\<float32\>[12] | `emo_tag_counts` normalised to sum 1 |
|
| 122 |
+
| `emo_label` | list\<int8\>[12] | 1 where the count is above 0 |
|
| 123 |
+
|
| 124 |
+
The order lives in the Parquet schema metadata:
|
| 125 |
+
|
| 126 |
+
```python
|
| 127 |
+
import pyarrow.parquet as pq, json
|
| 128 |
+
t = pq.read_table("songs.parquet")
|
| 129 |
+
EMO_ORDER = json.loads(t.schema.metadata[b"emotion_order"])
|
| 130 |
+
# ['Healing','Nostalgia','Excitement','Sadness','Romantic','Quiet',
|
| 131 |
+
# 'Happiness','Loneliness','Touching','Missing','Fresh','Relaxation']
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
The three list columns and the 12 scalar `emo_*` columns carry the same information; use
|
| 135 |
+
whichever suits the task.
|
| 136 |
+
|
| 137 |
+
Every song carries at least one emotion label, 2.50 on average. Positive rates run from
|
| 138 |
+
`emo_healing` 35.7% and `emo_relaxation` 32.8% down to `emo_missing` 11.3%.
|
| 139 |
+
|
| 140 |
+
## `songs_9822.parquet`
|
| 141 |
+
|
| 142 |
+
A subset chosen so the 12 emotions have near-equal positive support:
|
| 143 |
+
|
| 144 |
+
| | Healing | Nostalgia | Excitement | Sadness | Romantic | Quiet | Happiness | Loneliness | Touching | Missing | Fresh | Relaxation |
|
| 145 |
+
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 146 |
+
| positives | 4,949 | 4,873 | 4,873 | 4,874 | 4,874 | 4,873 | 4,873 | 4,874 | 4,874 | 4,875 | 4,873 | 4,879 |
|
| 147 |
+
|
| 148 |
+
Mean 5.96 labels per song, above the 2.50 of the full table, since balancing favours
|
| 149 |
+
multi-labelled tracks. The schema matches `songs.parquet` with one addition:
|
| 150 |
+
|
| 151 |
+
| Key | Type | Description |
|
| 152 |
+
|---|---|---|
|
| 153 |
+
| `unique_id` | int64 | Row identifier within the subset |
|
| 154 |
+
|
| 155 |
+
Paired features: `songs_9822_vggish.npz`.
|
| 156 |
+
|
| 157 |
+
## `playlists.parquet`
|
| 158 |
+
|
| 159 |
+
| Key | Type | Description |
|
| 160 |
+
|---|---|---|
|
| 161 |
+
| `playlist_id` | int64 | Join key for `song_playlist.parquet` |
|
| 162 |
+
| `name` | string | Playlist title, Chinese verbatim |
|
| 163 |
+
| `tags` | list\<string\> | **Chinese tag strings**, e.g. `["感动","治愈","思念"]`. 75 distinct values, 1–6 per playlist, most commonly 3 |
|
| 164 |
+
| `n_tags` | int64 | |
|
| 165 |
+
| `confidence` | dictionary\<string\> | `normal` 23,567 · `vip` 15,865 · `official` 7,181 |
|
| 166 |
+
| `play_count` | int64 | |
|
| 167 |
+
| `subscribed_count` | int64 | |
|
| 168 |
+
| `share_count` | int64 | |
|
| 169 |
+
| `comment_count` | int64 | |
|
| 170 |
+
| `create_time` | timestamp | |
|
| 171 |
+
| `description` | string | Curator's free text, Chinese verbatim |
|
| 172 |
+
| `creator_nickname` | string | |
|
| 173 |
+
| `creator_user_type` | int64 | |
|
| 174 |
+
| `creator_gender` | int64 | 0 unspecified · 1 male · 2 female |
|
| 175 |
+
|
| 176 |
+
`tags` holds Chinese strings while `songs.parquet` uses English column names; the `zh` and
|
| 177 |
+
`column` fields of `tag_taxonomy.parquet` connect the two.
|
| 178 |
+
|
| 179 |
+
The 75 Chinese tag strings map onto 74 columns because the source spells *New Age* two ways,
|
| 180 |
+
one with a regular space (U+0020) and one with a non-breaking space (U+00A0). Both denote the
|
| 181 |
+
same tag and share the column `genre_new_age`.
|
| 182 |
+
|
| 183 |
+
## `song_playlist.parquet`
|
| 184 |
+
|
| 185 |
+
| Key | Type |
|
| 186 |
+
|---|---|
|
| 187 |
+
| `song_id` | int64 |
|
| 188 |
+
| `playlist_id` | int64 |
|
| 189 |
+
|
| 190 |
+
477,216 rows. Every `playlist_id` resolves in `playlists.parquet`. 43,558 of the 46,613
|
| 191 |
+
playlists are referenced by at least one song.
|
| 192 |
+
|
| 193 |
+
This table makes the labels re-derivable under a different aggregation. The stored counts
|
| 194 |
+
weight every playlist equally; the relation lets you weight by popularity or restrict to
|
| 195 |
+
curated sources:
|
| 196 |
+
|
| 197 |
+
```python
|
| 198 |
+
rel = pd.read_parquet("song_playlist.parquet")
|
| 199 |
+
plf = pd.read_parquet("playlists.parquet")
|
| 200 |
+
|
| 201 |
+
official = plf[plf.confidence == "official"]
|
| 202 |
+
sub = rel[rel.playlist_id.isin(official.playlist_id)]
|
| 203 |
+
|
| 204 |
+
weight = plf.set_index("playlist_id")["play_count"]
|
| 205 |
+
```
|
| 206 |
+
|
| 207 |
+
Aggregating the Chinese `tags` over each song's playlists reproduces the stored tag counts
|
| 208 |
+
exactly.
|
| 209 |
+
|
| 210 |
+
## Audio features
|
| 211 |
+
|
| 212 |
+
Both NPZ archives are keyed by `song_id` as a **string**:
|
| 213 |
+
|
| 214 |
+
```python
|
| 215 |
+
import numpy as np
|
| 216 |
+
z = np.load("songs_169148_vggish.npz")
|
| 217 |
+
emb = z["1000155"] # (31, 128) float32
|
| 218 |
+
```
|
| 219 |
+
|
| 220 |
+
| File | Array per song | Description |
|
| 221 |
+
|---|---|---|
|
| 222 |
+
| `songs_169148_vggish.npz` | `(31, 128)` float32, range 0–255 | VGGish embeddings, one 128-d frame per ~0.96 s across the middle 30 s, post-processed quantised output. Covers 169,097 songs |
|
| 223 |
+
| `songs_9822_vggish.npz` | `(31, 128)` float32 | The same for the balanced subset |
|
| 224 |
+
| `spectrograms_169148.npz` | `(64, 469)` float32, range −70.8–0 | Log-mel spectrogram in dB, 64 mel bands × 469 frames across the middle 30 s. Covers 169,148 songs |
|
| 225 |
+
|
| 226 |
+
`songs_169148_vggish.npz` covers 169,097 of the 169,148 songs; check key membership before
|
| 227 |
+
indexing.
|
| 228 |
+
|
| 229 |
+
## Licence and citation
|
| 230 |
+
|
| 231 |
+
CC BY-NC-SA 4.0. Only identifiers, metadata, tags and derived features are distributed; no
|
| 232 |
+
audio.
|
| 233 |
+
|
| 234 |
+
```bibtex
|
| 235 |
+
@article{s16k,
|
| 236 |
+
doi = {10.1007/s00530-025-01701-z},
|
| 237 |
+
journal = {Multimedia Systems},
|
| 238 |
+
title = {A multi-label music emotion recognition dataset from NetEase Cloud Music}
|
| 239 |
+
}
|
| 240 |
+
```
|