# A Lightweight Transformer for Pain Recognition from Brain Activity

Source: [A Lightweight Transformer for Pain Recognition from Brain Activity](<https://www.sota2.com/research/paper/69e7048e7d0172140ec7ecc4>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-05-21T05:00:05.413Z

Authors: Stefanos Gkikas, Christian Arzate Cruz, Yu Fang, Lu Cao, Muhammad Umar Khan, Thomas Kassiotis, Giorgos Giannakakis, Raul Fernandez Rojas, Randy Gomez

Published: 2026-04-13T13:25:19.000Z

## Abstract

Pain is a multifaceted and widespread phenomenon with substantial clinical and societal burden, making reliable automated assessment a critical objective. This paper presents a lightweight transformer architecture that fuses multiple fNIRS representations through a unified tokenization mechanism, enabling joint modeling of complementary signal views without requiring modality-specific adaptations or increasing architectural complexity. The proposed token-mixing strategy preserves spatial, temporal, and time-frequency characteristics by projecting heterogeneous inputs onto a shared latent representation, using a structured segmentation scheme to control the granularity of local aggregation and global interaction. The model is evaluated on the AI4Pain dataset using stacked raw waveform and power spectral density representations of fNIRS inputs. Experimental results demonstrate competitive pain recognition performance while remaining computationally compact, making the approach suitable for real-time inference on both GPU and CPU hardware.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Pain Recognition on AI4Pain (test)](<https://www.sota2.com/research/sota/pain-recognition-on-ai4pain-test.md>): Pain Recognition; AI4Pain (test); Accuracy: 0.5.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2604.16491>)

[PDF](<https://arxiv.org/pdf/2604.16491.pdf>)
