External Validation of Machine Learning and EEG for Continuous Pain Intensity Prediction in Healthy Individuals
Tyler MariiD, Jessica Henderson, S. Hasan AliiD, Danielle HewittiD, Christopher Andrew BrowniD, Andrej StančákiD, Nicholas B. FalloniD
Abstract
Previous research has predicted subjective pain intensity from electroencephalographic (EEG) data using machine learning (ML) models. However, there is a paucity of externally validated ML models for pain assessment, particularly for continuous pain prediction (e.g., decoding pain ratings on a 101-point scale). We aimed to conduct the first external validation paradigm for ML regression models for pain intensity prediction from EEG data. Ninety-one subjects were recruited across three samples. Sample one (n = 40) was used for model development, sample two (n = 51) was used as a cross-subject external validation set, whilst sample three (n = 25) was used as a within-subjects temporal external validation set. Pneumatic pressure stimuli were delivered to the left-hand index fingernail bed at 10 graded intensity levels. Single-trial time-frequency features of peri-stimulus EEG were used to train a Random Forest (RF) model and long short-term memory (LSTM) network to predict pain intensity responses. Results demonstrated that both the RF model and LSTM network predicted pain intensity significantly more accurately than a random prediction model, with the mean absolute error (MAE) of the RF (best performing model) at 19.59, 21.29, and 18.90 for internal validation, cross-subject external validation, and within-subject external validation, respectively. However, neither model was able to predict pain intensity better than a baseline dummy model, which predicted the mean behavioural rating of the training set and did not have access to neural data. Moreover, in a replication of our recent work, we developed a RF model for the classification of low and high-pain trials, which demonstrated internal and external validation accuracies up to 64% and 58%, respectively. Taken together, our results suggest that using ML and EEG to predict continuous pain ratings is not currently feasible. However, classification models demonstrate some potential, consistently outperforming chance across validation samples. Further improvements such as composite measures are required to elevate ML performance to a clinically meaningful level.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 2
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- EEG-based Prediction of Cognitive Load in Intelligence Tests
Nir Friedman, Tomer Fekete, … Oren Shriki·Frontiers in Human NeurosciencePeer-reviewed·Jun 11, 2019
- Gray matter cortical thickness predicts individual pain sensitivity: a multi-center machine learning approach
Raviteja Kotikalapudi, Bálint Kincses, … Tamás Spisák·bioRxiv·Jun 14, 2022
- NeurostimML: A machine learning model for predicting neurostimulation-induced tissue damage
Yi Li, Rebecca Anne Frederick, … Ana Guadalupe Hernandez-Reynoso·Journal of Neural EngineeringPeer-reviewed·Jun 1, 2024
- Recurrent neural network model of human event-related potentials in response to intensity oddball stimulation
Jamie A. O’Reilly·NeurosciencePeer-reviewed·Oct 10, 2022
- Naturalistic acute pain states decoded from neural and facial dynamics
Yuhao Huang, Jay Gopal, … Corey J. Keller·Nature CommunicationsPeer-reviewed·May 11, 2025
- Automatic detection of nociceptive pain levels using frequency bands from electroencephalographic (EEG) signals
Rogelio Sotero Reyes-Galaviz, Luis Villaseñor-Pineda, Camilo E. Valderrama·bioRxiv·Mar 5, 2025