- 82,500 synthetic face images
- 2,500 unique identities
- 25,000 pain expression heatmaps
- 3 viewpoints per expression
- Paired neutral & pain images
- AU + PSPI annotations
- Balanced by age, gender, ethnicity
Automated pain assessment from facial expressions is crucial for non-communicative patients. Progress has been limited by two challenges: (i) existing datasets exhibit severe demographic and label imbalance due to ethical constraints, and (ii) current generative models cannot precisely control facial action units (AUs), facial structure, or clinically validated pain levels.
We introduce 3DPain, a large-scale synthetic dataset designed to overcome data scarcity in automated pain assessment. Comprising 82,500 frames across 2,500 unique identities, 3DPain offers extensive heterogeneity in facial pain responses across demographic groups balanced by age, gender, and ethnicity. Our three-stage framework samples diverse 3D meshes, textures them with diffusion models, and applies AU-driven face rigging to synthesize multi-view faces with paired neutral/pain images, facial action units, PSPI scores, and pain-region heatmaps.
We further introduce ViTPain, a Vision Transformer–based framework leveraging cross-attention with a neutral reference face to achieve identity-aware pain estimation. Together, 3DPain and ViTPain establish a controllable, diverse, and clinically grounded foundation for generalizable automated pain assessment. Project page and code are available at https://xinlei55555.github.io/pain-in-3d.github.io/.
Our three-stage pipeline generates diverse, controllable synthetic pain faces:
ViTPain is a reference-guided Vision Transformer designed for automated pain assessment:
The 3D-Pain dataset contains 2,500 unique synthetic identities, each with 10 pain expression variants rendered from 3 viewpoints. Below are sample neutral–pain pairs across diverse identities, demonstrating the controllable AU-driven expression synthesis.
Identity 1
Identity 2
Identity 3
Identity 4
Identity 5
View 1 (frontal)
View 2
View 3
@article{lin2025pain,
title={Pain in 3D: Generating Controllable Synthetic Faces for Automated Pain Assessment},
author={Lin, Xin Lei and Mehraban, Soroush and Moturu, Abhishek and Taati, Babak},
journal={arXiv preprint arXiv:2509.16727},
year={2025}
}
This work was supported by the KITE Research Institute at the University Health Network and the University of Toronto. We thank the members of the Taati Lab for their valuable feedback and discussions.
The UNBC-McMaster Shoulder Pain Expression Archive Database was used for evaluation in this work. We gratefully acknowledge the original dataset creators for making it available to the research community.