Fully-attentive and interpretable: vision and video vision transformers for pain detection
Not on the map. Why?
Abstract (arXiv)
Pain is a serious and costly issue globally, but to be treated, it must first be detected. Vision transformers are a top-performing architecture in computer vision, with little research on their use for pain detection. In this paper, we propose the first fully-attentive automated pain detection pipeline that achieves state-of-the-art performance on binary pain detection from facial expressions. The model is trained on the UNBC-McMaster dataset, after faces are 3D-registered and rotated to the canonical frontal view. In our experiments we identify important areas of the hyperparameter space and their interaction with vision and video vision transformers, obtaining 3 noteworthy models. We analyse the attention maps of one of our models, finding reasonable interpretations for its predictions. We also evaluate Mixup, an augmentation technique, and Sharpness-Aware Minimization, an optimizer, with no success. Our presented models, ViT-1 (F1 score 0.55 +- 0.15), ViViT-1 (F1 score 0.55 +- 0.13), and ViViT-2 (F1 score 0.49 +- 0.04), all outperform earlier works, showing the potential of vision transformers for pain detection. Code is available at https://github.com/IPDTFE/ViT-McMaster
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 21 of its 46 references that are in the map. First posted on arXiv 27 Oct 2022.
Builds on
21 of 46 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2020Pre-Trained Image Processing Transformercited by 891
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2021Transformer in Transformercited by 632
- 2021ImageNet-21K Pretraining for the Massescited by 607
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
9 more
- 2018Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Networkcited by 195
- 2019STM: SpatioTemporal and Motion Encoding for Action Recognitioncited by 142
- 2019What Clinicians Want: Contextualizing Explainable Machine Learning for Clinical End Usecited by 134
- 2019What Would Elsa Do? Freezing Layers During Transformer Fine-Tuningcited by 87
- 2019More Is Less: Learning Efficient Video Representations by Big-Little Network and Depthwise Temporal Aggregationcited by 64
- 2021Facial Expression Recognition with Visual Transformers and Attentional Selective Fusioncited by 49
- 2016Recurrent Convolutional Neural Network Regression for Continuous Pain Intensity Estimation in Videocited by 12
- 2021Personalized Federated Deep Learning for Pain Estimation From Face Imagescited by 8
- 2021Unobtrusive Pain Monitoring in Older Adults with Dementia using Pairwise and Contrastive Trainingcited by 6
Built on by
Citing papers per year: 2025: 2.
2 papers.