Developer toolkit for the AFFEC (Advancing Face-to-Face Emotion Communication) dataset.
You can check the paper describing the dataset here and here.
You can cite it as
Seikavandi, Meisam Jamshidi, Laurits Dixen, Jostein Fimland,
Sree Keerthi Desu, Antonia-Bianca Zserai, Ye Sul Lee,
Maria Barrett, and Paolo Burelli.
"Advancing face-to-face emotion communication: A multimodal dataset (affec)."
IEEE Transactions on Affective Computing (2026).
or using this bibtex code:
@article{seikavandi2026advancing,
title={Advancing face-to-face emotion communication: A multimodal dataset (affec)},
author={Seikavandi, Meisam Jamshidi and Dixen, Laurits and Fimland, Jostein and Desu, Sree Keerthi and Zserai, Antonia-Bianca and Lee, Ye Sul and Barrett, Maria and Burelli, Paolo},
journal={IEEE Transactions on Affective Computing},
year={2026},
publisher={IEEE}
}
AFFEC is a multimodal affective computing dataset capturing 72 participants across 84 simulated emotional dialogues (~5 000 trials, 20 000+ emotion labels). Modalities: EEG, Eye Tracking, Pupil, GSR, Facial Action Units, Cursor Tracking, with felt and perceived arousal/valence labels.
| Component | Description |
|---|---|
affec/ |
Python package — data loading, feature extraction, model wrappers, utilities |
scripts/ |
CLI scripts: download data, run full analysis, statistical analysis, prepare Zenodo upload |
multimodal_emotion_recogntion.ipynb |
Full pipeline notebook (feature extraction → AutoGluon → 5-fold CV → results table) |
demo_analysis.ipynb |
Shorter demo showing end-to-end workflow |
data/raw/README.md |
Dataset schema, modality specs, changelog (v2 JSON sidecar corrections) |
pip install -r requirements.txtpython scripts/download_data.pyThis downloads all modality zips from Zenodo (DOI 10.5281/zenodo.14794876) into data/raw/.
Interactive (recommended):
jupyter notebook demo_analysis.ipynbRun notebook cells from top to bottom to initialize shared variables (DATA_DIR, Config, imports) before running analysis cells.
Full analysis:
python scripts/run_full_analysis.py
python scripts/run_statistical_analysis.pyQuick validation (8 participants):
python scripts/run_full_analysis.py --all-targets --max-participants 8
python scripts/run_statistical_analysis.py --max-participants 8Toggle modalities in the notebook or pass them programmatically:
USE_MODALITIES = {
"eye": True, # Eye tracking (gaze, fixation, pupil dilation)
"action_units": True, # Facial Action Units (AU)
"gsr": True, # Galvanic Skin Response
"personality": True # Big Five personality traits (OCEAN)
}| Configuration | Eye | AU | GSR | Personality |
|---|---|---|---|---|
| Full multimodal | ✅ | ✅ | ✅ | ✅ |
| Eye only | ✅ | ❌ | ❌ | ❌ |
| AU only | ❌ | ✅ | ❌ | ❌ |
| GSR only | ❌ | ❌ | ✅ | ❌ |
| No personality | ✅ | ✅ | ✅ | ❌ |
| Metric | Perceived Arousal | Perceived Valence | Felt Arousal | Felt Valence |
|---|---|---|---|---|
| Best model | XGBoost | XGBoost | LightGBMXT | NeuralNetFastAI |
| High F1 | 0.457 ± 0.016 | 0.232 ± 0.025 | 0.269 ± 0.040 | 0.473 ± 0.030 |
| Medium F1 | 0.362 ± 0.017 | 0.431 ± 0.017 | 0.485 ± 0.025 | 0.294 ± 0.027 |
| Low F1 | 0.495 ± 0.021 | 0.610 ± 0.015 | 0.680 ± 0.016 | 0.613 ± 0.025 |
| Macro F1 | 0.438 ± 0.008 | 0.424 ± 0.015 | 0.478 ± 0.014 | 0.460 ± 0.019 |
| Accuracy | 0.442 ± 0.009 | 0.506 ± 0.015 | 0.568 ± 0.016 | 0.514 ± 0.022 |
See data/raw/README.md for full schema, modality specs, and the v2 changelog (April 2026 videostream JSON sidecar corrections).
Download: https://doi.org/10.5281/zenodo.14794876
This repository is a data-free devkit. Raw AFFEC files are not committed to git.
- Download data only via scripts/download_data.py
- Store downloaded files under
data/raw/locally - Do not commit any files under
data/except data/raw/README.md
To reconstruct the local dataset layout:
python scripts/download_data.pydocs/andlogs/are treated as local working material.data/zenodo_upload/is local packaging output for Zenodo updates.- Large raw data artifacts (
data/raw/sub-*, modality.zipfiles,.bak) are ignored.
- Python ≥ 3.8
- AutoGluon, Pandas, NumPy, scikit-learn, NeuroKit2, Tabulate
pip install -r requirements.txtIf you use AFFEC in your research, please cite:
[Citation to be added upon publication]
Dataset: CC0 1.0 Universal
Code: MIT (LICENSE)