droiden keentomato commited on
Commit
24bf3b2
·
0 Parent(s):

Duplicate from keentomato/human_behavior_atlas

Browse files

Co-authored-by: Keane Ong Wei Yang <keentomato@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ zipped_dataset_parts/final_v8_test_cleaned.jsonl filter=lfs diff=lfs merge=lfs -text
61
+ zipped_dataset_parts/final_v8_train_cleaned_2.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ final_v8_test_cleaned.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ final_v8_train_cleaned_2.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Human Behavior Atlas (HBA)
3
+ language:
4
+ - en
5
+ license: other
6
+ task_categories:
7
+ - text-classification
8
+ - audio-classification
9
+ - image-classification
10
+ - video-classification
11
+ - text-generation
12
+ tags:
13
+ - human-behavior
14
+ - social-intelligence
15
+ - multimodal
16
+ - benchmarking
17
+ - psychology
18
+ - affective-computing
19
+ - emotion-recognition
20
+ - intent-recognition
21
+ - sarcasm-detection
22
+ - depression-detection
23
+ - anxiety-detection
24
+ - ptsd
25
+ - nonverbal-behavior
26
+ - pose-estimation
27
+ - opensmile
28
+ size_categories:
29
+ - 100K<n<1M
30
+ ---
31
+
32
+ # Human Behavior Atlas (HBA)
33
+
34
+ Human Behavior Atlas (HBA) is a **unified benchmark for multimodal behavioral understanding**.
35
+ It aggregates and standardizes multiple behavioral datasets into a single training and evaluation framework, enabling consistent training and evaluation of foundation models on psychological and social behavior tasks (e.g., emotion, intent, sarcasm, mental health signals, nonverbal behavior).
36
+
37
+ - **Dataset on Hugging Face:** https://huggingface.co/datasets/keentomato/human_behavior_atlas
38
+ - **Official GitHub:** https://github.com/MIT-MI/human_behavior_atlas/tree/main
39
+ - **Paper (ICLR 2026 Main Conference):** https://openreview.net/forum?id=ZKE23BBvlQ
40
+
41
+ ---
42
+
43
+ ## What’s inside
44
+
45
+ When you download the dataset, you will find:
46
+
47
+ ### 1) JSONL splits (centralized indices)
48
+ These JSONL files sit at the **root level** and define all benchmark samples:
49
+ - `final_v8_train_cleaned_2.jsonl` — training set
50
+ - `final_v8_val_cleaned.jsonl` — validation set
51
+ - `final_v8_test_cleaned.jsonl` — test set
52
+
53
+ Each line is a **self-contained sample** that provides:
54
+ - the **prompt** (problem statement),
55
+ - the **ground-truth** answer/label,
56
+ - pointers to any **raw media** (video/audio/text/image),
57
+ - pointers to any **pre-extracted behavioral features** (`.pt`).
58
+ - miscellaneous information such as the dataset, task, class label, modalities present (i.e. modality signature)
59
+
60
+ ### 2) Raw media files
61
+ Subdirectories contain the raw media referenced by each JSONL sample:
62
+ - video / audio files
63
+ - (optional) associated text files
64
+
65
+ ### 3) Behavioral feature files (`.pt`)
66
+ Pre-extracted features for common behavioral signals, such as:
67
+ - pose features (video)
68
+ - OpenSMILE features (audio)
69
+ - (and other feature types included in the release)
70
+
71
+ ---
72
+
73
+ ## Data format
74
+
75
+ HBA uses JSONL to provide a **unified sample schema** across heterogeneous source datasets.
76
+ All file paths are **relative to the dataset root** (the same directory as the JSONL files).
77
+
78
+ ### Example sample
79
+ ```json
80
+ {
81
+ "problem": "<audio>\nDon't forget a jacket.\nThe above is a speech recording along with the transcript from a clinical context. What emotion is the speaker expressing? Answer with one word from the following: anger, disgust, fear, happy, neutral, sad",
82
+ "answer": "sad",
83
+ "images": [],
84
+ "videos": [],
85
+ "audios": ["cremad_dataset_audio/1077_DFA_SAD_XX.wav"],
86
+ "dataset": "cremad",
87
+ "texts": [],
88
+ "modality_signature": "text_audio",
89
+ "ext_video_feats": ["pose/cremad_dataset_audio/1077_DFA_SAD_XX.pt"],
90
+ "ext_audio_feats": ["opensmile/cremad_dataset_audio/1077_DFA_SAD_XX.pt"],
91
+ "task": "emotion_cls",
92
+ "class_label": "sad"
93
+ }
94
+ ```
95
+
96
+ ---
97
+
98
+ # Field-Level Explanation
99
+
100
+ ### Key fields:
101
+
102
+ - **problem / answer** — the prompt and ground-truth label
103
+ - **images, videos, audios, texts** — relative paths to raw media files
104
+ - **ext_video_feats, ext_audio_feats** — relative paths to pre-extracted behavioral feature files (.pt)
105
+ - **modality_signature** — indicates which modalities are present (e.g., text_audio, video, text_video)
106
+ - **dataset** — source dataset name
107
+ - **task / class_label** — behavioral task type and label
108
+
109
+ ### Detailed explanation:
110
+
111
+ - `problem`: The full prompt presented to the model. May contain modality markers such as `<audio>` or `<video>` and includes the task instruction.
112
+ - `answer`: The ground-truth label expected during evaluation.
113
+ - `images`, `videos`, `audios`, `texts`: Lists of relative paths to raw media files stored in subdirectories under the dataset root. Empty lists indicate that the modality is not present.
114
+ - `ext_video_feats`, `ext_audio_feats`: Lists of relative paths to pre-extracted behavioral feature tensors (`.pt` files), also stored in subdirectories under the dataset root.
115
+ - `modality_signature`: A compact indicator of which modalities are present for the sample (e.g., `text_audio`, `video`, `text_video`).
116
+ - `dataset`: The original source dataset name (e.g., `cremad`), enabling provenance tracking.
117
+ - `task`: High-level behavioral task identifier (e.g., `emotion_cls`).
118
+ - `class_label`: Canonical ground-truth class associated with the sample.
119
+
120
+ The dataloader uses this JSONL as the centralized index to locate and load all raw media and feature files for each sample into the model.
121
+
122
+ ---
123
+
124
+ # Data Loading Workflow
125
+
126
+ 1. Read a JSONL entry.
127
+ 2. Parse `problem`, `task`, and `class_label`.
128
+ 3. Load raw media using relative paths.
129
+ 4. Optionally load `.pt` behavioral feature tensors.
130
+ 5. Construct the multimodal sample for training or evaluation.
131
+
132
+ This unified indexing structure enables heterogeneous behavioral datasets to be standardized under a single multimodal evaluation framework.
133
+
134
+ ---
135
+
136
+ # Instructions to Download the Full Benchmark (JSONLs + Raw Media)
137
+
138
+ The dataset consists of:
139
+
140
+ - JSONL split files at the repository root
141
+ - Multipart tar archive under `parts/`
142
+
143
+ Files:
144
+
145
+ ```
146
+ parts/human_behaviour_data.tar.part-000
147
+ ...
148
+ parts/human_behaviour_data.tar.part-009
149
+ ```
150
+
151
+ You must download **both** the JSONLs and the archive parts.
152
+
153
+ If you have sufficient disk space, the simplest and safest approach is to use huggingface-cli:
154
+
155
+ ```bash
156
+ pip install -U "huggingface_hub[cli]"
157
+ huggingface-cli login
158
+
159
+ huggingface-cli download keentomato/human_behavior_atlas \
160
+ --repo-type dataset \
161
+ --local-dir hba_download \
162
+ --local-dir-use-symlinks False
163
+ ```
164
+
165
+ Then merge and extract:
166
+
167
+ ```bash
168
+ cd hba_download
169
+ cat parts/human_behaviour_data.tar.part-* > human_behaviour_data.tar
170
+ tar -xf human_behaviour_data.tar
171
+ ```
172
+
173
+ After extraction, your directory structure will look like:
174
+
175
+ ```
176
+ hba_download/
177
+ ├── final_v8_train_cleaned_2.jsonl
178
+ ├── final_v8_val_cleaned.jsonl
179
+ ├── final_v8_test_cleaned.jsonl
180
+ ├── pose/
181
+ ├── opensmile/
182
+ ├── cremad_dataset_audio/
183
+ ├── ...
184
+ ```
185
+
RECONSTRUCT.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Reconstruct and extract:
2
+ cat human_behaviour_data.tar.part-* > human_behaviour_data.tar
3
+ tar -xf human_behaviour_data.tar
4
+
5
+ Root-level JSONL under human_behaviour_data/ were excluded.
final_v8_test_cleaned.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3cce30f234d8ed41360e4e2ec85b93f778f83f2fa50ff56062d5e8ee9bc3832
3
+ size 18021952
final_v8_train_cleaned_2.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38ce6904caefbfa4222ca2b99b18e571aa91130ced37a1be1833ced72f91172a
3
+ size 81386020
final_v8_val_cleaned.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
parts/human_behaviour_data.tar.part-000 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b35d6fc48a66a6e9fd53b7a2ac45dd546713bd5d55f8d5add2ab5d0c6a7a8e86
3
+ size 98404202868
parts/human_behaviour_data.tar.part-001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6673889a03218d5ab3a3d072cdf89a99467ed4657b9f9f91e92a375e5cc8912
3
+ size 98404202868
parts/human_behaviour_data.tar.part-002 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc4d6f0f0c5629995630b9d4336ae9cc1b8391dcf6ffa9b83a3c6f6922c7cac2
3
+ size 98404202868
parts/human_behaviour_data.tar.part-003 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5af5626c3aa0871b1bc054df4655d9de88784e711d8ab1cf35ddf0eeb5b3d1dc
3
+ size 98404202868
parts/human_behaviour_data.tar.part-004 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae1eb8f98abfd8e42458f7c02822965ab515b129674200be7af8ce480c8d2e0c
3
+ size 98404202868
parts/human_behaviour_data.tar.part-005 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27a0ac34ff302b38b3685ca6e9807eb302ac7aea941b567f059f9148c44ca530
3
+ size 98404202868
parts/human_behaviour_data.tar.part-006 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b0d8e3edb7986c0a0713e54c1154f1ebae27909d069c77fe8d360b2e6a8208c
3
+ size 98404202868
parts/human_behaviour_data.tar.part-007 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f120097a0a9666986df49dc0ba86e1b2046ed9acebc06c25502ace27fd731d
3
+ size 98404202868
parts/human_behaviour_data.tar.part-008 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca7c8093a63e3d23a45191010b35e486ba25cf8b8fd08946bd3233eadc96561b
3
+ size 98404202868
parts/human_behaviour_data.tar.part-009 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec917b7ee426d003fc024a7599bf89066eeaadd08336620fd31235c441ffe02f
3
+ size 90552689388