PainFormer: A Vision Foundation Model for Automatic Pain Assessment

Pain is a manifold condition that impacts a significant percentage of the population. Accurate and reliable pain evaluation for the people suffering is crucial to developing effective and advanced pain management protocols. Automatic pain assessment systems provide continuous monitoring and support decision-making processes, ultimately aiming to alleviate distress and prevent functionality decline. This study introduces <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">PainFormer</i>, a vision foundation model based on multi-task learning principles trained simultaneously on <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">14</i> tasks/datasets with a total of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">10.9</i> million samples. Functioning as an embedding extractor for various input modalities, the foundation model provides feature representations to the <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Embedding-Mixer</i>, a transformer-based module that performs the final pain assessment. Extensive experiments employing behavioral modalities–including RGB, synthetic thermal, and estimated depth videos–and physiological modalities such as ECG, EMG, GSR, and fNIRS revealed that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">PainFormer</i> effectively extracts high-quality embeddings from diverse input modalities. The proposed framework is evaluated on two pain datasets, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">BioVid</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">AI4Pain</i>, and directly compared to <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">75</i> different methodologies documented in the literature. Experiments conducted in unimodal and multimodal settings demonstrate state-of-the-art performances across modalities and pave the way toward general-purpose models for automatic pain assessment. <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">The foundation model's architecture (code) and weights are available at</i> <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/GkikasStefanos/PainFormer</uri>.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Affective Computing
Published
2025-09-03
DOI
https://doi.org/10.1109/taffc.2025.3605475
Citations
1
Primary Topic
Pain Management and Opioid Use
Type
article
Field-Weighted Citation Impact
2.19
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

PainFormer: A Vision Foundation Model for Automatic Pain Assessment

Raul Fernandez Rojas, Stefanos Gkikas, Manolis Tsiknakis
1 citations
IEEE Transactions on Affective Computing
Pain Management and Opioid Use
2.19
article

PainFormer: A Vision Foundation Model for Automatic Pain Assessment

Raul Fernandez Rojas, Stefanos Gkikas, Manolis Tsiknakis
article en
1 citations

Abstract

Pain is a manifold condition that impacts a significant percentage of the population. Accurate and reliable pain evaluation for the people suffering is crucial to developing effective and advanced pain management protocols. Automatic pain assessment systems provide continuous monitoring and support decision-making processes, ultimately aiming to alleviate distress and prevent functionality decline. This study introduces <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">PainFormer</i>, a vision foundation model based on multi-task learning principles trained simultaneously on <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">14</i> tasks/datasets with a total of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">10.9</i> million samples. Functioning as an embedding extractor for various input modalities, the foundation model provides feature representations to the <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Embedding-Mixer</i>, a transformer-based module that performs the final pain assessment. Extensive experiments employing behavioral modalities–including RGB, synthetic thermal, and estimated depth videos–and physiological modalities such as ECG, EMG, GSR, and fNIRS revealed that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">PainFormer</i> effectively extracts high-quality embeddings from diverse input modalities. The proposed framework is evaluated on two pain datasets, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">BioVid</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">AI4Pain</i>, and directly compared to <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">75</i> different methodologies documented in the literature. Experiments conducted in unimodal and multimodal settings demonstrate state-of-the-art performances across modalities and pave the way toward general-purpose models for automatic pain assessment. <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">The foundation model's architecture (code) and weights are available at</i> <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/GkikasStefanos/PainFormer</uri>.

IEEE Transactions on Affective ComputingVol. 16(4)
University of Canberra (AU), Hellenic Mediterranean University (GR)
Openalex Percentile: Top 12%
Pain Management and Opioid Use
2.19
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.