Datasets:
Download README.md from ragibhasan/AffectFusion: direct link, hf CLI and curl.
- Browser
- Download file 10.1 kB
-
https://huggingface.co/datasets/ragibhasan/AffectFusion/resolve/main/README.md
- Command line
-
hf download hf://datasets/ragibhasan/AffectFusion/README.md
-
curl -L -o README.md https://huggingface.co/datasets/ragibhasan/AffectFusion/resolve/main/README.md
annotations_creators:
- machine-generated
- expert-generated
language:
- en
- bn
language_creators:
- found
- machine-generated
license: cc-by-4.0
multilinguality:
- multilingual
pretty_name: >-
AffectFusion: Multilingual Multimodal Text-and-Emoji Emotion Recognition
Dataset
size_categories:
- 10K<n<100K
source_datasets:
- original
- extended|dair-ai/emotion
tags:
- emotion-recognition
- multimodal
- emoji
- sarcasm-detection
- bangla
- banglish
- code-mixed
- affective-computing
- explainable-ai
- cross-attention
task_categories:
- text-classification
task_ids:
- multi-class-classification
- sentiment-classification
configs:
- config_name: default
default: true
data_files:
- split: train
path: data/train-00000-of-00001.parquet
- split: validation
path: data/validation-00000-of-00001.parquet
- split: test
path: data/test-00000-of-00001.parquet
- config_name: gold_audit
data_files:
- split: audit
path: gold_audit/gold_5000_human_verified.csv
AffectFusion: A Multilingual Multimodal Text-and-Emoji Emotion Recognition Dataset (v1.0.0)
AffectFusion is a PII-anonymized, zero-leakage multilingual multimodal benchmark dataset for text-and-emoji emotion recognition across English (ENG), Native Bengali (BN), and Romanized Banglish (BNG), spanning 9 fine-grained emotion classes: Joy, Neutral, Anger, Sadness, Surprise, Sarcasm, Fear, Disgust, and Anticipation.
- Companion GitHub Repository: ragibcs/AffectFusion
- License: CC BY 4.0
- Institution: Department of Computer Science and Engineering, Daffodil International University (DIU), Dhaka, Bangladesh
- Full Datasheet & Guidelines: See docs/DATASHEET.md and docs/AffectFusion_Human_Annotation_Guidelines.md
1. Quick Start (datasets Library)
from datasets import load_dataset
# 1. Load main zero-leakage splits (train: 24,000 | validation: 3,000 | test: 3,000)
ds = load_dataset("ragibhasan/AffectFusion")
print(ds)
# Example: filter training split to 100% AffectFusion-native freshly scraped rows only
native_train = ds["train"].filter(
lambda x: x["is_augmented"] == 0 and x["is_external_train_only"] == 0
)
print(f"Native real scraped train rows: {len(native_train):,}") # 18,872
# 2. Load the 5,000-row blinded human-vs-AI gold verification audit table
gold_audit = load_dataset("ragibhasan/AffectFusion", "gold_audit", split="audit")
print(f"Gold audit rows: {len(gold_audit):,}") # 5,000
2. Dataset Structure & Splits
Config 1: default (30,000 Dual-Stream Samples — Strict 80/10/10 Split)
| Split | File Path | Rows (%) | Real Scraped | DAIR-AI (Train-Only) | Train-Only Aug. | Human Gold Verified | ENG / BN / BNG (%) | Emoji Share |
|---|---|---|---|---|---|---|---|---|
train |
data/train-00000-of-00001.parquet |
24,000 (80%) | 18,872 | 1,600* | 3,528* | 0 (AI conf ≥ 3) |
36.4 / 36.0 / 27.6 | 59.09% |
validation |
data/validation-00000-of-00001.parquet |
3,000 (10%) | 3,000 (100%) | 0 | 0 | 2,000 (66.7%) | 39.1 / 30.9 / 30.0 | 69.97% |
test |
data/test-00000-of-00001.parquet |
3,000 (10%) | 3,000 (100%) | 0 | 0 | 3,000 (100%) | 38.2 / 34.4 / 27.3 | 65.80% |
| Total | — | 30,000 (100%) | 24,872 | 1,600 | 3,528 | 5,000 (κ = 0.8087) | 36.9 / 35.3 / 27.8 | 60.85% |
Zero-Leakage & Provenance Guarantee: All splits are deduplicated by normalized text MD5 hash prior to partitioning. Strictly 0 augmented and 0 external rows appear in
validationortest. Intrain,1,600original English Fear tweets from dair-ai/emotion (CARER; Saravia et al., EMNLP 2018) plus1,147Fear paraphrases seeded from them carryis_external_train_only = 1(2,747rows total), enabling transparent filtering.
Config 2: gold_audit (gold_audit/gold_5000_human_verified.csv)
Contains all 5,000 blinded human-verification records (3,000 Test + 2,000 Validation) verified independently by two researchers (2,500 each) with AI labels hidden during annotation:
- Overall Raw Agreement:
83.00%(4,150 / 5,000) - Overall Cohen's κ:
0.8087(ENG:0.8129,BN:0.8128,BNG:0.7958) - Split Upgrades:
testupgraded to 100% Human-Verified Gold (κ = 0.7847,574AI labels corrected);validationupgraded to 66.7% Gold (κ = 0.8447,276labels corrected).
3. Data Fields (25-Column Unified Schema)
| Column | Type | Description |
|---|---|---|
row_id |
string |
Unique sample identifier (AFG_, AFT_, AFD_, AFA_ prefixes). |
raw_text |
string |
PII-anonymized raw post (<URL>, <USER>, <EMAIL>, <PHONE> masked). |
text_stream |
string |
Emoji-stripped clean text stream for unimodal or text-branch encoding. |
emoji_stream |
string |
Space-separated base emojis (skin-tone modifiers normalized). |
demoji_text |
string |
Unicode CLDR natural-language descriptions of extracted emojis. |
baseline_input |
string |
Concatenated dual-stream baseline input (text_stream [SEP] demoji_text). |
label |
string |
Canonical emotion label name (Joy .. Anticipation). |
label_id |
int64 |
Integer label ID (0–8; see Label Map below). |
language_tag |
string |
Script/language tag: ENG, BN, or BNG. |
language_id |
int64 |
Integer language ID (ENG=0, BN=1, BNG=2). |
has_emoji |
int64 |
Binary indicator (1 if post contains ≥ 1 emoji, else 0). |
emoji_count |
int64 |
Total number of emoji tokens in the post. |
unique_emoji_count |
int64 |
Number of distinct base emojis in the post. |
emoji_density |
float64 |
Ratio of emoji tokens to word tokens (emoji_count / word_count). |
text_length |
int64 |
Character length of text_stream. |
word_count |
int64 |
Whitespace-delimited word count of text_stream. |
exclamation_count |
int64 |
Number of ! characters. |
question_count |
int64 |
Number of ? characters. |
uppercase_ratio |
float64 |
Fraction of uppercase alphabetic characters. |
has_sarcasm_emoji_cue |
int64 |
Binary flag for known ironic/sarcastic emoji cues (🙄🤡🙃😒💀🤦😏☠). |
ai_confidence |
int64 |
Pseudo-label confidence tier (3, 4, or 5). |
platform |
string |
Source platform (youtube_api, youtube, reddit, mastodon, lemmy, news_rss, twitter_dair_emotion). |
is_augmented |
int64 |
1 for Train-only Gemini Flash paraphrases, else 0. |
is_external_train_only |
int64 |
1 for Train-only DAIR-AI Fear seeds & derived paraphrases, else 0. |
is_human_verified |
int64 |
1 if verified/corrected via blinded human annotation, else 0. |
Label & Language Mappings (docs/label_map.json)
label2id:Joy: 0,Neutral: 1,Anger: 2,Sadness: 3,Surprise: 4,Sarcasm: 5,Fear: 6,Disgust: 7,Anticipation: 8lang2id:ENG: 0,BN: 1,BNG: 2
4. Reference Phase-I Baseline Benchmarks (100% Gold test, N = 3,000)
| Model | Val Macro-F1 | Test Acc | Test Macro-F1 | ENG F1 | BN F1 | BNG F1 | Emoji F1 (n=1,974) |
Non-Emoji F1 (n=1,026) |
Sarcasm F1 (n=393) |
|---|---|---|---|---|---|---|---|---|---|
| CNN-BiLSTM (Kusal et al., 2025) | 0.5892 | 54.20% | 0.5375 | 0.4534 | 0.5827 | 0.5082 | 0.5537 | 0.4313 | 0.4495 |
| XLM-R Text-Only | 0.5462 | 54.50% | 0.5341 | 0.5501 | 0.5306 | 0.4335 | 0.5096 | 0.5777 | 0.3024 |
| XLM-R Early Fusion | 0.6698 | 64.07% | 0.6366 | 0.6430 | 0.6512 | 0.5367 | 0.6413 | 0.5702 | 0.4654 |
- Statistical Significance (XLM-R Early Fusion vs. Text-Only):
ΔAcc = +9.57%(t = 10.57, McNemarχ² = 106.92,p < 0.0001), rising toΔAcc = +13.93%/ΔMacro-F1 = +0.1317on emoji-bearing posts (n = 1,974,t = 11.24, McNemarχ² = 117.86,p < 0.0001).
5. Additional Files in Repository
docs/DATASHEET.md— Comprehensive Gebru et al. Datasheet for Datasetsdocs/AffectFusion_Human_Annotation_Guidelines.md— Blinded human annotation protocol & sarcasm priority rulesdocs/label_map.json— Machine-readable class and language ID lookupdocs/baseline_comparison_summary.csv&docs/stage1..stage5_*.json— Complete Phase-I EDA, augmentation, split-audit, and statistical significance logsSHA256SUMS.txt— Cryptographic integrity checksums for all data and documentation files
6. Ethical Considerations & Limitations
- Privacy: All raw social media comments passed automated PII redaction (
<URL>,<USER>,<EMAIL>,<PHONE>) prior to storage. - Intended Use: Strictly for academic research in multimodal NLP, multilingual affective computing, sarcasm detection, and explainable AI. Not intended for clinical diagnosis, hiring decisions, or surveillance.
- Known Limitations:
trainutilizes confidence-filtered (conf ≥ 3) LLM pseudo-labels plus train-only class balancing;validationandtestare 100% real scraped comments, withtest100% human-verified gold. Cross-attention modeling and XAI interpretability analyses are scheduled for the Next Phase.
7. Citation
@dataset{hasan2026affectfusion,
author = {Hasan, MD. Ragib and Galib, MD. Asadulla Hel and Akter, Sharmin and Raza, Dewan Mamun},
title = {{AffectFusion: A Multilingual Multimodal Text-and-Emoji Emotion Recognition Dataset (English, Bangla, and Banglish)}},
year = {2026},
month = nov,
publisher = {Hugging Face},
version = {1.0.0},
url = {https://huggingface.co/datasets/ragibhasan/AffectFusion}
}