Datasets:
File size: 10,059 Bytes
a19ae5a 32f6634 a19ae5a 32f6634 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | ---
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](https://github.com/ragibcs/AffectFusion)
- **License:** [CC BY 4.0](LICENSE)
- **Institution:** Department of Computer Science and Engineering, Daffodil International University (DIU), Dhaka, Bangladesh
- **Full Datasheet & Guidelines:** See [docs/DATASHEET.md](docs/DATASHEET.md) and [docs/AffectFusion_Human_Annotation_Guidelines.md](docs/AffectFusion_Human_Annotation_Guidelines.md)
---
## 1. Quick Start (`datasets` Library)
```python
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 `validation` or `test`. In `train`, `1,600` original English Fear tweets from [dair-ai/emotion](https://huggingface.co/datasets/dair-ai/emotion) (CARER; Saravia et al., EMNLP 2018) plus `1,147` Fear paraphrases seeded from them carry `is_external_train_only = 1` (`2,747` rows 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:** `test` upgraded to **100% Human-Verified Gold** (`κ = 0.7847`, `574` AI labels corrected); `validation` upgraded to **66.7% Gold** (`κ = 0.8447`, `276` labels 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: 8`
- **`lang2id`:** `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.1317`** on 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 Datasets
- `docs/AffectFusion_Human_Annotation_Guidelines.md` — Blinded human annotation protocol & sarcasm priority rules
- `docs/label_map.json` — Machine-readable class and language ID lookup
- `docs/baseline_comparison_summary.csv` & `docs/stage1..stage5_*.json` — Complete Phase-I EDA, augmentation, split-audit, and statistical significance logs
- `SHA256SUMS.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:** `train` utilizes confidence-filtered (`conf ≥ 3`) LLM pseudo-labels plus train-only class balancing; `validation` and `test` are 100% real scraped comments, with `test` 100% human-verified gold. Cross-attention modeling and XAI interpretability analyses are scheduled for the Next Phase.
---
## 7. Citation
```bibtex
@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}
}
```
|