Language Selection

Get healthy now with MedBeds!
Click here to book your session

Protect your whole family with Orgo-Life® Quantum MedBed Energy Technology® devices.

Advertising by Adpathway

         

 Advertising by Adpathway

Neural encoding of pain is robust within but unstable between individuals

3 weeks ago 23

PROTECT YOUR DNA WITH QUANTUM TECHNOLOGY

Orgo-Life the new way to the future

  Advertising by Adpathway

  • Loading metrics

Open Access

Peer-reviewed

Research Article

?

This is an uncorrected proof.

Abstract

The perception of pain varies both within and between individuals, even when sensory input remains constant. Understanding how the brain encodes these intra- and inter-individual variations is central to elucidating the neural mechanisms of pain and to developing reliable brain-based markers for clinical use. Yet, previous findings have been inconsistent, and their robustness across time and populations remains unclear. Here, we used electroencephalography (EEG) in 161 healthy participants to re-investigate the neural patterns explaining intra- and inter-individual variations in the perception of brief painful stimuli independent of stimulus intensity. Using Bayesian multivariate multi-model regression, we related pain ratings to canonical EEG responses. To directly assess robustness, the experiment was repeated after 4 weeks in the same participants and replicated in an independent cohort (n = 111). Neural patterns associated with inter-individual differences in pain perception were repeatable over time but not replicable across cohorts. In contrast, neural patterns underlying intra-individual fluctuations were robust both over time and across cohorts. These findings indicate that within-person and between-person variability in pain perception is encoded by distinct neural patterns that differ fundamentally in their robustness. Furthermore, they show that brain-based markers are particularly suited for tracking intra-individual fluctuations of pain, while being less sensitive to inter-individual differences. More broadly, they highlight the importance of within-person approaches for advancing both mechanistic models of pain and the development of clinically useful biomarkers.

Citation: Tiemann L, Bott FS, May ES, Nickel MM, Hohn VD, Gil Ávila C, et al. (2026) Neural encoding of pain is robust within but unstable between individuals. PLoS Biol 24(8): e3003948. https://doi.org/10.1371/journal.pbio.3003948

Academic Editor: Choong-Wan Woo, Sungkyunkwan University, KOREA, REPUBLIC OF

Received: April 28, 2026; Accepted: July 29, 2026; Published: August 10, 2026

Copyright: © 2026 Tiemann et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Data Availability: All data in standardized EEG-BIDS format [44] are available at https://osf.io/z2h86. Code used for the current manuscript and data underlying the figures are publicly available at https://doi.org/10.17605/OSF.IO/BS3YJ.

Funding: The study was supported by the Deutsche Forschungsgemeinschaft (PL 321/14-1, PL321/16-1, SFB1158 to MP; https://www.dfg.de/en) and the Technical University of Munich (TUM Innovation Network Neurotechnology in Mental Health to MP; https://web.tum.de/en/inw/our-innovation-networks/neurotech-1/). The funders had no role in study design, data collection and analysis, decision to publish or preparation of the manuscript.

Competing interests: The authors have declared that no competing interests exist.

Abbreviations: BF, Bayes factors; BFDA, Bayes factor design analysis; EEG, electroencephalography;; ERPs, event-related potentials; fMRI, functional magnetic resonance imaging;; ICA, independent component analysis; LMEs, linear mixed-effects; JZS, Jeffreys-Zellner-Siow; TFR, time-frequency representation; TUM, Technical University of Munich.

Introduction

The experience of pain is inherently variable, both within and between individuals [13]. This variability arises from the dynamic interaction of sensory, cognitive, and affective processes and represents a core characteristic of pain perception in health and its alterations in chronic pain disorders. Understanding how the brain encodes these intra- and inter-individual variations is essential for advancing mechanistic models of pain and for developing reliable neural markers to guide diagnosis and treatment [2,4].

Despite extensive research, the neural bases of this variability remain incompletely understood [5,6]. Studies investigating inter-individual differences in pain sensitivity have yielded inconsistent findings across both functional magnetic resonance imaging (fMRI) and electroencephalography (EEG) recordings [512]. For example, while some EEG studies identified associations between individual pain sensitivity and induced responses at gamma frequencies [8], others identified associations with theta or combined theta-gamma responses [9,10]. These discrepancies may reflect differences in sample size, analysis pipelines, or untested assumptions about the robustness of brain-behavior relationships.

Evidence for neural signatures of intra-individual variability of pain at short time scales (moment-to-moment/ trial-to-trial) has been more consistent. Previous work has shown that brain activity in regions such as the primary somatosensory cortex, insula, anterior cingulate cortex, and prefrontal cortex tracks within-person fluctuations in pain perception across imaging modalities [6,1316]. In EEG studies, such short-term fluctuations have most reliably been associated with the amplitude of the N2/P2 complex [8,17,18] and induced responses at gamma frequencies [8,19]. However, it remains unknown whether the neural patterns that encode short-term fluctuations also account for variability at longer time scales (day-to-day/session-to-session), even though such long-term variations might be particularly relevant in clinical contexts.

Addressing these inconsistencies and open questions requires a systematic assessment of the robustness of brain-behavior relationships. Robustness in general refers to the consistency of findings across variations in data characteristics or analytical approaches. Here, we focus on two empirical manifestations of robustness: repeatability, which refers to the consistency of results when the same participants complete the experiment again, and replicability, which refers to the consistency of results across independent cohorts. Together, these dimensions provide crucial insights into the reliability and generalizability of neurophysiological markers of within-person and between-person variability in pain perception.

In the present study, we therefore reexamined the neurophysiological signatures of within-person and between-person variability in the perception of brief painful laser stimuli and systematically evaluated their robustness by testing both repeatability and replicability. We complemented the investigation of short-term, trial-by-trial variability with the assessment of longer-term variability across sessions. To this end, we collected EEG data from 161 healthy participants who completed the same experiment twice, about four weeks apart. Using Bayesian multi-model regression, we related trial-level and session-level pain ratings to evoked (N1, N2, and P2) and induced oscillatory (alpha, beta, and gamma) responses, focusing on variability in pain perception beyond that attributable to stimulus intensity. Finally, we assessed the replicability of our findings in an independent cohort (n = 111).

This combined design allowed us to disentangle and directly compare the robustness of within-person versus between-person neural encodings of pain. Our findings reveal that while inter-individual associations are limited in their replicability, intra-individual associations are robust across time and cohorts. Together, these findings highlight the potential of within-person EEG markers for the longitudinal tracking of pain.

Results

Overview

In the present study, we investigated how brain responses to noxious stimuli relate to inter-individual and intra-individual variability in pain perception (Fig 1A). Intra-individual variability was assessed at both short (moment-to-moment) and long (day-to-day) timescales. The experiment consisted of two sessions ~1 month apart. In each session (Fig 1B), participants received 80 brief painful stimuli to the dorsum of the left hand and provided verbal pain ratings for each stimulus. Stimuli were delivered at four different intensities to reduce stimulus predictability and to increase the range of pain intensity ratings. To optimize the signal-to-noise ratio, we only included trials with stimuli of the two highest intensities. We considered the resulting reduction in stimulus intensity-related variability acceptable because our primary aim was to investigate variability in pain perception beyond that explained by stimulus intensity.

thumbnail

Fig 1. Study overview.

A) Research questions and corresponding result figures. B) During the experiment, participants received 80 brief painful laser stimuli to the dorsum of their left hand at four different fixed intensities (2.5, 3.0, 3.5, 4.0 J). An auditory cue prompted participants to verbally rate their pain intensity on a numerical rating scale ranging from 0 (“no pain”) to 100 (“maximally tolerable pain”). Concurrently, EEG was recorded with a 64-channel system. Throughout the experiment, participants sat in a comfortable chair with eyes closed, wore protective goggles, and listened to white noise via headphones to mask ambient sounds.

https://doi.org/10.1371/journal.pbio.3003948.g001

Brain responses were quantified using EEG. We extracted six commonly analyzed features of event-related brain activity: the amplitudes of the N1, N2, and P2 evoked responses, and the power of induced oscillatory responses at alpha, beta, and gamma frequencies. Pain perception was measured using verbal pain ratings on a numerical rating scale ranging from 0 (no pain) to 100 (maximally tolerable pain). To isolate variability beyond that explained by stimulus intensity, analyses were performed on intensity-adjusted brain responses and pain ratings.

To quantify associations between brain responses and pain ratings, we used Bayesian multi-model regression, treating the six EEG features as predictors and the pain ratings as the outcome variable. Bayesian multi-model inference enabled variable selection and parameter estimation within a unified framework by averaging over models with all plausible combinations of predictors. This approach accounts for model uncertainty and yields more stable and less biased inferences about relationships between brain responses and pain ratings [20].

The study and its analysis were preregistered at ClinicalTrials.gov (https://clinicaltrials.gov/study/NCT05616091) and the OSF Registries (https://osf.io/wfjhq).

Brain responses to noxious stimuli

To confirm that the EEG responses in the present study reproduced the well-established patterns elicited by brief noxious laser stimuli, we computed grand averages of evoked potentials and TFRs (Fig 2). Consistent with previous work [8,21], the evoked potential at the Cz-Avg montage showed pronounced negative and positive deflections at approximately 240 ms and 375 ms post stimulus, respectively (Fig 2A). In addition, in line with prior findings [8,21,22], alpha- and beta-band oscillatory activity decreased around 700 ms and 350 ms, respectively, whereas gamma oscillatory activity increased around 250 ms post-stimulus (Fig 2B). Together, these results confirm that the recorded EEG activity closely reflects the characteristic pattern of EEG responses to this type of noxious stimuli.

thumbnail

Fig 2. Brain responses to noxious stimuli.

A) Grand average of event-related potentials for the Cz-Avg montage (to visualize the N2 and P2 responses) and the C4-Fz montage (to visualize the N1 response). The shaded blue bands represent ±2 SEM. Scalp topographies show the spatial distributions of voltage for the respective montages. Positions of measurement electrodes are marked as black dots. B) Grand average time-frequency representation (TFR) showing changes in oscillatory power relative to a pre-stimulus baseline [−1 to 0 s]. For visualization, TFRs at Cz are presented. Scalp topographies illustrate the spatial distributions of relative power changes, averaged within the time-frequency windows indicated with dashed rectangles (from bottom to top: alpha, beta, and gamma). Measurement electrodes included later for the quantification of oscillatory power in the different frequency bands are marked as black dots. The grand averages displayed in A) and B) represent data from the first of two internal recording sessions. Corresponding visualizations for the second internal session and for the externally acquired data are provided in the supplementary materials (S1 Fig).

https://doi.org/10.1371/journal.pbio.3003948.g002

Brain patterns of inter-individual variability of pain

To assess brain patterns of inter-individual variability of pain, we first quantified individual pain ratings and corresponding EEG responses. Individual pain ratings were obtained by averaging single-trial pain ratings across trials and stimulus intensities within each participant. Individual brain responses were computed analogously by averaging evoked potentials and TFRs within each participant. The distribution of individual pain ratings is shown in Fig 3A. Corresponding distributions of brain responses are provided in the supplementary materials (S3 and S4 Figs).

thumbnail

Fig 3. Pain ratings.

A) Individual pain ratings reflecting inter-individual pain variability were obtained by averaging single-trail pain ratings for each individual, first within each stimulus intensity and then across stimulus intensities, yielding one rating value per individual. B) Trial-level pain ratings (left) reflecting intra-individual short-term pain variability were obtained by computing the means of single-trial pain ratings for each individual and stimulus intensity, and then subtracting these means from the corresponding single-trail pain ratings, yielding one centered rating value per trial. Session-level pain ratings (right) reflecting intra-individual pain variability at longer timescales were obtained by combining and then averaging individual pain ratings from session 1 and session 2 for each individual, and then subtracting these means from the corresponding individual pain ratings, yielding two centered rating values per individual. For visualization only, trial-wise and session-wise pain ratings were re-centered to the mean of the inter-individual distribution. The presented pain ratings originate from the first (first and second in the case of session-wise ratings) of two internal recording sessions. Pain rating distributions for the second internal session and for the externally acquired data are provided in the supplementary materials (S2 Fig). The data underlying this Figure can be found at https://doi.org/10.17605/OSF.IO/BS3YJ.

https://doi.org/10.1371/journal.pbio.3003948.g003

The Bayesian multi-model analysis yielded strong evidence for models relating EEG responses to pain perception across individuals (Fig 4, BF10 > 200 for the top 5 models; indicating that the evidence for these models is more than 200 times stronger than for the null model). To control for potential confounding effects of age and gender, both variables were included in every model, including the null model. The best model comprised only the P2 amplitude as a predictor and showed the largest change from prior to posterior model odds (BFM = 25). Notably, all of the top 5 models also included the P2 amplitude. Across these models, the proportion of variance explained in pain ratings ranged from R2 = 0.14 to R2 = 0.17.

thumbnail

Fig 4. Bayesian multi-model analysis of inter-individual variability.

Top: the five models with the highest evidence relative to the null model (BF10) are shown, along with their ratios of prior and posterior model odds (BFM) and their explained variance (R2). Middle: inclusion Bayes Factors (BFincl), representing the evidence for including each predictor averaged across all models considered. Bottom: model-averaged posterior mean estimates for each predictor coefficient. Error bars indicate ±2 standard deviations of the model-averaged posterior coefficient distribution. The data underlying this Figure can be found at https://doi.org/10.17605/OSF.IO/BS3YJ.

https://doi.org/10.1371/journal.pbio.3003948.g004

Model-averaged estimates further confirmed the dominant role of the P2 amplitude in explaining inter-individual variability in pain (BFincl = 122; indicating that the data are 122 times more likely under models including this predictor than under models excluding it). Posterior coefficient estimates indicated a positive association between P2 amplitude and individual pain sensitivity. For all other EEG responses, analyses provided anecdotal evidence against their contribution (1/3 < BFincl 1/3 < 1).

Together, these findings demonstrate that EEG responses to noxious stimuli, and particularly the P2 amplitude, explain inter-individual differences in pain perception.

Brain patterns of intra-individual variability of pain

To examine intra-individual variability at short timescales, we analyzed single-trial pain ratings together with their corresponding brain responses. To isolate fluctuations in pain perception that were independent of stimulus intensity, we centered all variables separately within each participant-intensity pair; that is, we subtracted each participant’s average rating for a given intensity from their trial-wise ratings. The distribution of centered single-trial pain ratings is shown in the left panel of Fig 3B. Corresponding distributions of brain responses are provided in the supplementary materials (S3 and S4 Figs).

The Bayesian multi-model analysis yielded strong evidence for models relating brain responses to pain ratings within individuals at short timescales (Fig 5A, BF10 > 1059 for the top 5 models). The best model comprised all six brain responses and showed the largest change from prior to posterior model odds (BFM = 80). Across the top five models, the proportion of variance explained in pain ratings was approximately R20.08. Model-averaged estimates confirmed that all six brain responses contributed to explaining short-term, intra-individual variability (BFincl > 10 for all brain responses), with the strongest evidence observed for the N2 amplitude (BFincl > 1045). For all EEG responses, stronger responses (more negative decrease/more positive increase) were associated with higher pain ratings. Together, these findings demonstrate that all six EEG responses to noxious stimuli contribute to intra-individual variability in pain perception at short timescales.

thumbnail

Fig 5. Bayesian multi-model analysis of intra-individual variability.

A) moment-to-moment variability. B) day-to-day variability. A) + B) Top: the five models with the highest evidence relative to the null model (BF10) are shown, along with their ratios of prior and posterior model odds (BFM) and their explained variance (R2). Middle: inclusion Bayes Factors (BFincl), representing the evidence for including each predictor averaged across all models considered. Bottom: model-averaged posterior mean estimates for each predictor coefficient. Error bars indicate ±2 standard deviations of the model-averaged posterior coefficient distribution. The data underlying this Figure can be found at https://doi.org/10.17605/OSF.IO/BS3YJ.

https://doi.org/10.1371/journal.pbio.3003948.g005

To assess intra-individual variability at longer timescales, we combined pain ratings and brain responses from sessions 1 and 2, yielding two data points per participant. As in the short-timescale analysis, we centered all variables within each participant to remove between-subject variability. The distribution of centered, session-level pain ratings is shown on the right in Fig 3B. Corresponding distributions of brain responses are provided in the supplementary materials (S3 and S4 Figs).

The Bayesian multi-model analysis again yielded strong evidence for models relating brain responses to pain ratings within individuals at longer timescales (Fig 5B, BF10 > 109 for the top 5 models). The best model comprised the alpha, beta, N1, and P2 responses and showed the largest change from prior to posterior model odds (BFM = 29). The proportion of variance explained by the top five models ranged from R2 = 0.25 to R2 = 0.27. Model-averaged estimators indicated that, in particular, the N1, P2, and gamma responses contributed to explaining longer-term intra-individual variability of pain perception (BFincl > 10 for P2 amplitude, BFincl > 3 for N1 amplitude and gamma power). As in the short-timescale analysis, stronger brain responses were associated with higher pain ratings. Together, these findings indicate that multiple EEG responses, particularly the P2, N1, and gamma responses, contribute to intra-individual variability in pain perception at longer time scales. Moreover, the directions of the associations were consistent across short and long timescales, indicating stable within-individual brain-behavior relationships over time.

Robustness

Next, we assessed the robustness of brain response patterns of inter- and intra-individual variability of pain. Robustness was evaluated in terms of repeatability (consistency across the two sessions in the same cohort) and replicability (consistency in an independent cohort). For both analyses, we estimated model-averaged coefficients in one dataset, applied them to predict pain ratings in another dataset, and quantified the association between predicted and observed pain ratings. To test repeatability, coefficients were estimated from internal session 1 to predict pain ratings of internal session 2, and vice versa. To test replicability, coefficients estimated from either internal session were applied to an external dataset, and vice versa. The external dataset comprised EEG recordings of healthy individuals who received brief painful laser stimuli to the left hand at two individually adjusted intensities across 30 trials. Data selection criteria were applied analogously to the preregistered criteria used in the internal sample. Consequently, we included only higher-intensity trials, and excluded participants with fewer than 5 clean trials. This yielded a final replication sample of 111 individuals. As the external dataset comprised only a single session, the replicability of brain response patterns explaining session-to-session variability of pain perception was not assessed. The external dataset became available only after publication of the preregistration and was therefore not included in the preregistered analyses.

As shown in Fig 6A, we found strong evidence for the repeatability of brain response patterns explaining inter-individual variability in pain (BF > 103, R2 > 0.11). Coefficients estimated in session 1 generalized to session 2, and vice versa. In contrast, we found evidence against the replicability of these patterns in the independent cohort. Coefficients estimated from session 1 or session 2 provided evidence against replicability when applied to the external dataset (BF < 1/3, R20). Conversely, coefficients estimated from the external dataset provided evidence against replicability when applied to the internal session 1 or session 2 datasets (BF < 1/3, R20). Results of the Bayesian multi-model analysis of inter-individual variability in the external dataset are provided in the supplementary materials (S5A Fig).

thumbnail

Fig 6. Robustness of the neural patterns of the inter- and intra-individual variability of pain.

A) Robustness of patterns associated with inter-individual variability. B) Robustness of patterns associated with intra-individual moment-to-moment variability. A) + B) Each circle represents one dataset. The two internal datasets share the same participant cohort across sessions, while the external dataset includes an independent cohort. Shaded regions illustrate repeatability (consistent results when repeating the experiment in the same cohort) and replicability (consistent results when repeating a similar experiment in a different cohort). To test repeatability and replicability, model-averaged coefficients were estimated from one dataset (“training set”) and then used to predict pain ratings in another (“test set”). Arrow tails and heads denote training and test sets, respectively. Numbers beside arrows represent BFs quantifying evidence for an association between predicted and observed pain ratings, along with the R2-score, i.e., the proportion of variance in observed pain ratings explained by the predictions.

https://doi.org/10.1371/journal.pbio.3003948.g006

As shown in Fig 6B, we found strong evidence for the repeatability of brain response patterns explaining short-term intra-individual variability (BF > 1064, R2 > 0.08). Coefficients estimated in session 1 generalized to session 2, and vice versa.

Crucially, these patterns were also replicable in the independent cohort. Coefficients estimated from session 1 or session 2 provided strong evidence for replicability when applied to the external dataset (BF > 1028, R20.13). Conversely, coefficients estimated from the external dataset generalized to both internal sessions (BF > 1059, R2 = 0.07). Results of the Bayesian multi-model analysis for the external dataset are provided in the supplementary materials (S5B Fig).

Discussion

In this study, we investigated how variability in EEG responses to noxious stimuli relates to variability in pain perception and how robust these associations are (Fig 7). Specifically, we focused on variability that could not be explained by differences in stimulus intensity. We found strong evidence for brain-behavior relationships at both the inter- and intra-individual levels. Inter-individual variability in pain was primarily explained by a single EEG response, i.e., the P2 amplitude. This association was repeatable within the same cohort but did not replicate in an independent cohort. In contrast, intra-individual variability in pain was explained by a broader set of brain responses. At short timescales (moment-to-moment), all six EEG responses contributed to within-person fluctuations of pain, and this multicomponent pattern was both repeatable and replicable. At longer timescales (day-to-day), intra-individual variability was mainly associated with the P2, N1, and gamma responses. The direction of these intra-individual brain-behavior associations was consistent across both short and long timescales.

thumbnail

Fig 7. Visual summary of results.

This study examined EEG response patterns underlying inter- and intra-individual variability of pain perception. Tile plots show color-coded, model-averaged coefficient estimates, indicating the magnitude and direction of influence of each EEG response on pain perception. EEG responses with BFincl < 3 are shown in gray. Bar plots summarize the evidence (BF10) and accuracy (R2) of the best models for each variability component. Q1) EEG responses, and particularly the P2 amplitude, can explain inter-individual differences in pain sensitivity. Q2) EEG responses explain both short- and long-term intra-individual variability of pain. To isolate variability unrelated to stimulus intensity, all variables were centered per participant and intensity in this analysis. All brain responses explained short-term variability of pain, while long-term variability of pain was predominantly explained by P2, N1, and gamma responses. Q3) EEG response patterns of inter-individual variability were repeatable but not replicable. EEG response patterns of short-term intra-individual pain variability were both repeatable within the same cohort and replicable in an independent cohort. Repeatability and replicability of brain response patterns of long-term pain variability could not be evaluated with the available dataset. Together, these findings indicate distinct EEG response patterns for inter- and intra-individual variability of pain, and highlight differences in terms of their robustness with patterns of intra-individual variability being more robust than those of inter-individual differences.

https://doi.org/10.1371/journal.pbio.3003948.g007

Overall, our findings indicate that distinct neural patterns underlie inter- and intra-individual variability in pain and that these patterns differ significantly in their robustness. Whereas previous studies reported that oscillatory induced responses at theta or gamma frequencies encode inter-individual differences in pain perception [810], we found only nonreplicable evidence for a role of the P2 evoked response in accounting for such differences. In contrast, the observation that all considered EEG responses contributed to intra-individual variability at short timescales aligns well with prior work [8,1719]. Complementing and extending these findings, our results reveal that similar associations are also present at longer timescales, demonstrating that within-person brain-behavior relationships, at least partially, generalize across moments and days.

The absence of replicable neural patterns explaining inter-individual variability in pain may have several explanations. First, cross-sectional analyses may not appropriately capture inter-individual differences in the neural encoding of pain. However, evidence from other studies [11,12,23,24], as well as the repeatability within the same cohort of the inter-individual brain patterns identified here argues against an inherent limitation of capturing inter-individual differences in pain perception. Second, EEG may not capture the relevant neural patterns sufficiently well due to its limited spatial resolution and limited capacity to detect activity in deeper regions such as the limbic network [25]. Third, replicability may have been limited by differences between datasets in participant characteristics and experimental procedures. The two cohorts differed in age and possibly also in sociocultural factors. Additionally, the external dataset contained fewer than half as many trials per participant as the internal dataset, which likely reduced the signal-to-noise ratio. This interpretation cannot be ruled out. Fourth, pain is a complex and multidimensional experience, and its neural representation is likely equally complex. Here, we focused on canonical EEG responses, but it is possible that other EEG features (e.g., functional connectivity) or modeling techniques (e.g., deep learning) may more robustly capture inter-individual differences in pain perception.

The evidence supporting EEG response patterns of intra-individual variability in pain was compelling. Nevertheless, the proportion of variance explained in trial-level pain ratings was modest. This likely reflects two factors: First, inherent inter-individual differences in the neural encoding of pain are not captured by a group-level model. Our analysis of intra-individual variability focused on fixed effects, i.e., brain-pain relationships assumed to generalize across individuals, and therefore cannot account for person-specific deviations from this pattern. Second, the signal-to-noise ratio of single-trial measures, both in EEG features and pain ratings, is comparatively low. This interpretation is supported by the observation that explained variance increased substantially when analyzing session-level pain ratings, which aggregate information across many trials and thus improve the signal-to-noise ratio. Interestingly, models predicting session-level pain ratings explained a larger fraction of variance than models predicting trial-level pain ratings, despite the absolute variance of session-level ratings being smaller.

Our findings have broader implications for understanding how pain is represented in the brain and for developing clinically useful biomarkers. First, we analyzed inter-individual variability reflecting the goal to identify a neural pattern that can predict pain sensitivity in previously unseen individuals. Such patterns might serve clinical purposes such as diagnostic or prognostic biomarkers and, on a conceptual level, correspond to a nomothetic, i.e., population-based approach [26]. In our analyses, this approach yielded models that explained only a modest fraction of inter-individual variance in pain ratings and were not replicable in an independent cohort. Given that our experimental paradigm provides a highly controlled setting for probing neural representations of pain, these findings suggest that developing robust EEG-based diagnostic markers for clinical pain conditions may be challenging. This interpretation is consistent with recent studies highlighting the limited consistency and generalizability of EEG biomarker candidates [27,28].

Second, we analyzed intra-individual variability of pain reflecting the goal to identify a neural pattern that can track changes in pain perception within single individuals over time. Such patterns might serve clinical purposes as monitoring biomarkers and, on a conceptual level, combine nomothetic group-level inference with idiographic components [23,26,29]. Here, this approach gave rise to models that were reproducible in an independent dataset and explained a larger fraction of variance in pain ratings at longer timescales. This suggests that more idiographic, personalized modeling approaches may better capture the neural underpinnings of variability in pain perception. Although such models do not generalize to the entire population, they may serve as valuable tools for tracking individual pain mechanisms and informing personalized pain management. Beyond pain research, our findings suggest that longitudinal, within-person brain–behavior relationships may provide a more robust foundation for biomarker development than traditional cross-sectional approaches.

An important question raised by the present findings is how they relate to ongoing clinical pain. Because our study was conducted in healthy participants experiencing brief experimental pain, the specific EEG patterns identified here cannot be directly generalized to chronic pain. Instead, our findings point to a broader methodological implication. Chronic pain likewise exhibits substantial within-person variability across timescales ranging from minutes to months [1], suggesting that longitudinal study designs combining repeated assessments of brain activity and pain within the same individuals may provide a promising strategy for investigating the neural mechanisms underlying the dynamics of chronic pain. Recent precision neuroimaging studies and intensive longitudinal designs illustrate the potential of such approaches [3033]. Because EEG is inexpensive, scalable, and readily applicable across laboratory, clinical, and home environments, it represents an attractive tool for these investigations [34]. Ultimately, such longitudinal EEG approaches may enable the development of biomarkers that track spontaneous fluctuations in chronic pain and treatment responses, while also identifying individualized neural targets for interventions such as noninvasive brain stimulation.

Our study has limitations. First, our findings have to be interpreted in the context of our modeling choices. Specifically, we focused on a predefined set of established post-stimulus EEG features selected based on prior evidence. Consequently, other potentially informative signal components, including pre-stimulus neural activity and features derived using more data-driven approaches, were not considered. Future studies may reveal additional neural patterns and improve predictive performance by incorporating such information. Second, it remains unclear whether the identified EEG patterns are specific to pain perception or generalize to other sensory modalities and perceptual processes. In particular, laser-evoked potentials and associated oscillatory responses are known to be influenced not only by pain perception but also by more general processes such as stimulus salience, arousal, and attention. Third, our experimental design does not rule out the possibility that the observed EEG patterns partly reflect variability in peripheral rather than central nociceptive processing. Although questions of pain specificity and brain specificity are important in their own right, they were not the primary focus of the present study. Rather than inferring specific neural mechanisms, our goal was to characterize statistical associations between EEG measures and different components of variability in pain perception. Whether the principles identified here generalize to clinical pain populations remains an important question for future research. Nevertheless, the associations identified here may provide a foundation for future mechanistic studies and for testing whether similar principles govern pain variability in clinical populations.

In conclusion, this study provides a comprehensive characterization of how neural responses to noxious stimuli relate to pain perception. We examined variability in pain both between individuals and within individuals across short and long timescales. We rigorously assessed the robustness of our findings using a novel analytical framework in combination with a unique constellation of multiple datasets. While we found strong evidence for repeatable inter-individual associations between brain responses and pain ratings, these associations were not replicable in an independent cohort. In contrast, intra-individual associations were robust. They were repeatable, replicable, and evident across different timescales. These findings highlight the potential of individualized, longitudinal approaches for understanding the brain mechanisms of pain. They suggest that within-person EEG markers may offer a promising foundation for developing clinically useful biomarkers that can inform personalized pain management.

Methods

Ethics

The study protocol was approved by the Ethics Committee of the Medical Faculty of the TUM (512/19 S-SR) and conducted following the latest version of the Declaration of Helsinki. Prior to any experimental procedures, all participants provided written informed consent.

Dataset

The study uses a dataset recorded by our research group (https://www.painlabmunich.de/) at the Technical University of Munich (TUM) in Germany between December 2019 and December 2022 (https://osf.io/z2h86/). We refer to this dataset as Set_Munich. The study was preregistered at ClinicalTrials.gov (https://clinicaltrials.gov/study/NCT05616091) prior to data collection. The present analysis and hypotheses were preregistered on the OSF Registries (https://osf.io/wfjhq) prior to conducting any analyses related to this study’s research questions. While parts of the dataset have been previously analyzed in a separate project [35] addressing different research questions (https://osf.io/s75q6/), the authors had no prior knowledge of the effects investigated here.

Participants

We used nonprobability sampling to recruit equal numbers of female and male participants, as well as equal numbers of individuals aged ≤40 years and >40 years. Recruitment was conducted via advertisements posted across the TUM, its university hospital, and their associated websites. In addition, individuals from previous studies who had provided consent to be recontacted were invited to participate. This approach yielded a sample with a broad age range but predominantly consisting of individuals who are read as white and are pursuing or holding higher education degrees. Therefore, the study sample represents a specific population and is not necessarily representative of Germany or any particular region.

The present data analysis includes all participants for whom experimental pain recordings were available for both sessions. Of the total sample of n = 166, four participants did not return for the second session. Of the participants who returned for the second session, one was excluded due to not having a sufficient number of artifact-free trials after preprocessing (see below for more information on this criterion). Thus, the final sample size was n = 161 (81/80 female/male; age = 40 years ± 18 years (mean ± SD), range 18–86 years). Inclusion criteria were age ≥ 18 years and right-handedness. Right-handed participants were selected to avoid potential variability in pain sensitivity related to stimulation of the dominant versus nondominant hand [36,37]. Exclusion criteria included pregnancy; neurological or psychiatric disorders (e.g., epilepsy, stroke, depression, and anxiety disorders); severe systemic illnesses (e.g., cancer, diabetes); dermatological conditions (e.g., dermatitis, psoriasis, and eczema); current or recurrent pain; regular or recent use of centrally acting, antibiotic, or analgesic medication; previous neurosurgical head procedures; history of head trauma with loss of consciousness; a history of fainting spells or syncope; and adverse reactions to prior electrical, magnetic, or thermal stimulation.

Procedure and paradigm

Participants completed two identical sessions on separate days, ~1 month apart. For premenopausal female participants, both sessions were scheduled between days 5 and 10 of the follicular phase to control for potential hormonal influences on pain perception and related neuronal processes [3841]. For 155 participants, the interval between sessions was 30 ± 9 days (mean ± SD), ranging from 17 to 98 days. For the remaining 7 participants, the interval exceeded 200 days (292 ± 89 days, range: 223–478 days) due to recording delays caused by the COVID-19 pandemic. The experiment was conducted in German.

At the beginning of each session, participants completed clinical and demographic questionnaires, including assessments of sleep quality, anxiety and depression, affect, and pain sensitivity. These data are not analyzed in the present study. Next, participants were familiarized with the laser stimulation and rating procedure. To this end, 20 laser stimuli were applied in a pseudo-randomized sequence, with five stimuli at each of the four intensities used later in the main experiment. Subsequently, EEG caps were prepared.

Each recording session began with a 5-min eyes-closed resting-state EEG, during which participants were instructed to remain relaxed but awake. These data are not analyzed here. Immediately afterwards, participants completed the experimental pain paradigm, which consisted of 80 brief laser stimuli at four different intensities applied to the dorsum of the left hand, again with eyes closed. Different stimulus intensities were included to reduce stimulus predictability and to encourage the use of a broader range of the pain rating scale. As defined in the preregistration, we only included trials with stimuli of the two highest intensities in the present analysis. Three seconds after each stimulus, an auditory cue prompted participants to verbally rate the perceived pain intensity on a numerical scale from 0 (“no pain”) to 100 (“maximally tolerable pain”). During all recordings, participants sat in a comfortable chair, wore protective goggles, and listened to white noise via headphones to mask ambient sounds.

For further details on the data collection procedure, including the acquisition of demographic and psychological variables and skin conductance responses, which are also not analyzed here, please refer to the study’s preregistration (https://clinicaltrials.gov/ct2/show/NCT05616091). These additional variables will be addressed in a separate manuscript.

Noxious stimulation

Pain stimuli were delivered to the dorsum of the left hand using a laser device (DEKA Stimul 1340, Calenzano, Italy) with a wavelength of 1,340 nm, a pulse duration of 4 ms, and a spot diameter of 7 mm. Stimuli were administered in a pseudo-randomized order at four fixed intensities (2.5, 3, 3.5, and 4 J; 20 stimuli per intensity) with interstimulus intervals ranging from 8 to 12 s. These intensity levels were selected based on previous studies using the same device and parameters [8,14,15,42], as well as internal piloting. To keep the objective stimulus intensities/inputs constant between participants, stimulation intensities were fixed [43]. Unbeknownst to the participant, stimuli were applied in 4 blocks of 20 stimuli, with 5 stimuli at each intensity. Within each block, stimuli were presented in a pseudo-randomized order, with the constraint that no more than two stimuli of the same intensity occurred consecutively. To prevent tissue damage, the stimulation site was shifted by a few millimeters after each trial. After 40 trials, a short break was provided, during which participants were allowed to open their eyes and adjust their seating position.

EEG recordings

Brain activity was recorded using 64 actiCAP slim/snap sensors placed according to the extended international 10–20 system (Easycap, Wörthsee, Germany) and BrainAmp MR plus amplifiers (Brain Products GmbH, Gilching, Germany). During recordings, sensors were referenced to FCz and grounded at Fpz. Signals were sampled with a sampling frequency of 1,000 Hz and band-pass-filtered between 0.016 and 250 Hz. Impedances were kept below 20 kΩ.

External replication data

To assess the replicability of results, we additionally included data from a large openly available database from Beijing, China (https://doi.org/10.18112/openneuro.ds005280.v1.0.0). From this database, we included the dataset associated with experiment no. 8 as it was both the largest available sample and most methodologically similar to our own Set_Munich in terms of stimulation site and EEG recording device. We refer to this dataset as Set_Beijing. The corresponding study protocol was approved by the ethics review committee of the Institute of Psychology, Chinese Academy of Sciences, and conducted in accordance with the Declaration of Helsinki. All participants provided written informed consent, including explicit consent for public data sharing.

The selected dataset included n = 223 healthy adults (93 male, 130 female; mean age = 20.8 ± 2.3 years). Recruitment procedures targeted healthy volunteers without known neurological or psychiatric disorders, neurosurgical history, or illicit drug use. Participants were instructed to maintain a regular sleep–wake cycle and avoid alcohol and excessive caffeine consumption for at least 24 hours before testing. After preprocessing and exclusion of participants with insufficient artifact-free trials (see below), 111 participants remained for analysis. Similar to Set_Munich, this sample represents a specific, in this case, university-aged population and is therefore not representative of the general population in China or any other region.

Participants completed a single experimental session conducted in Mandarin Chinese. Prior to EEG setup, participants were familiarized with the nociceptive stimulation procedure. The following experimental paradigm consisted of 30 brief laser stimuli delivered to the dorsum of the left hand across 3 blocks of 10 trials. Stimuli were administered at two individually-calibrated intensity levels at 3.0 and 3.5 J or at 3.5 and 4.0 J with interstimulus intervals of 4–6 s. To be consistent with the trial selection performed in the analysis of Set_Munich, we only included trials with stimuli of the higher intensity for each individual. After each stimulus, participants verbally rated pain intensity on a numerical rating scale with 0 representing “no sensation”, 4 representing “onset of pain” (pinprick pain threshold), and 10 representing “worst pain imaginable”. Participants sat comfortably throughout the recording and wore protective goggles.

Nociceptive stimuli were delivered using a Nd:YAP laser system (1.34 µm wavelength, 4 ms pulse duration; spot diameter ~7 mm), a device and stimulation protocol closely aligned with Set_Munich. Stimulation sites were slightly shifted after each trial to minimize local sensitization or tissue fatigue.

EEG data were acquired using a 64-channel Brain Products system (Brain Products GmbH, Germany) with Ag/AgCl electrodes positioned according to the international 10–20 system. Signals were recorded at a sampling frequency of 1,000 Hz, referenced to the tip of the nose, and impedances were maintained below 10 kΩ.

EEG preprocessing

BIDS-transformed [44] EEG data were automatically preprocessed using the automatic preprocessing part of the DISCOVER-EEG pipeline (v.2.0.0.; https://github.com/crisglav/discover-eeg) [45,46] based on the MATLAB (R2020b, Mathworks, Natick, MA) toolbox EEGLAB (v2022.0) [47]. Please note that all analyses following automatic preprocessing were performed with additional code outside of DISCOVER-EEG (see below).

Automatic preprocessing included line noise removal, bad channel detection and interpolation, re-referencing to the average reference, independent component analysis (ICA), and the automatic detection of bad segments using the pipeline’s standard parameters. For Set_Beijing, the standard preprocessing procedure did not reliably detect and remove channels with large rhythmic signal discontinuities. Therefore, when preprocessing this dataset, we added an additional automated criterion for excluding artifactual channels: Channels were removed if their signal distribution contained more than one pronounced mode.

All 2.5-s peri-stimulus intervals (1.25 s before to 1.25 s after application of the laser stimulation) were concatenated prior to performing ICA and bad segment detection. Participants were included in subsequent analyses if at least five artifact-free trials remained at each of the included stimulus intensities. For the included participants of Set_Munich, the mean number of clean trials with stimuli of the two highest intensities ± SD (range) was 34.4 ± 6 (12–40) for session 1 and 35.2 ± 6 (12–40) for session 2. For the included participants of Set_Beijing, the mean number of clean trials with stimuli of the higher intensity ± SD (range) was 13.8 ± 2 (5–15).

Extracting EEG responses

Individual-level responses.

To quantify the neural response to painful stimuli, we quantified the canonical sequence of evoked potentials referred to as N1, N2, and P2 [48,49] as well as induced neuronal oscillations at alpha (7 to <13 Hz), beta (14–30 Hz), and gamma (70–90 Hz) frequencies [8,5052]. Both single-trial evoked and oscillatory brain responses to noxious stimuli were quantified using established procedures [8,53], using the MATLAB-based (R2021b, Mathworks, Natick, MA) toolbox FieldTrip (version: 20221022, [54]) along with custom-written code. To compute subject-level values (i.e., subject-specific averages of brain responses and pain ratings), we first averaged trial-level values separately for each of the two stimulus intensities and then averaged the resulting intensity-specific means. Formally,

where denotes the trial-level value for individual i, stimulus intensity s, and trial t, and Nis denotes the number of available trials for individual i at stimulus intensity s.

To compute evoked brain response amplitudes, preprocessed data were bandpass-filtered between 1 and 30 Hz and baseline-corrected using the one-second pre-stimulus interval. Individual peak latencies of evoked responses were then determined based on averages across all trials. To this end, local minima/maxima of the averaged waveform were determined at predefined sensors (N1: C4, N2: Cz; P2: Cz) [8,53,55] and in predefined time-windows (N1: 120–200 ms; N2: 180–300 ms; P2: 250–500 ms) [8,55]. Next, individual amplitudes were obtained by averaging across a 30-ms window [53,55] centered at the previously defined peak latency. If no individual minimum or maximum could be detected, the amplitude at the midpoint of the corresponding pre-defined search window was used instead. To quantify the N1 response, data were additionally re-referenced to Fz [56] before computing the average waveform across all trials. To examine oscillatory brain responses, preprocessed data were filtered (1 Hz high-pass filter, 49–51 Hz band-stop filter). Single-trial time-frequency estimates were obtained using a Hanning-tapered Fast Fourier transformation and a sliding window approach, and subsequently averaged across trials. To obtain alpha and beta responses, a sliding window with a length of 500 ms and a step size of 20 ms was used. To obtain gamma responses, the window length was shortened to 250 ms, while the step size remained 20 ms. Finally, individual oscillatory responses were assessed by calculating the mean power within response-specific time-frequency-sensor windows (alpha: 7–12 Hz, 500–900 ms, averaged across Cz, CPz, C2, C4, CP2, CP4 [8,51,55]; beta: 14–30 Hz, 300–600 ms, averaged across Cz, CPz, C2, C4, CP2, CP4 [8,51,55]; gamma: 70–90 Hz, 150–350 ms, Cz [8,53]). The procedure for computing individual-level responses was applied independently to the internal session one, internal session two, and the external dataset.

Trial-level responses.

Trial-level evoked responses were quantified using the same processing, sensors, and peak detection procedures as described for the individual-level responses. Single-trial amplitudes were computed by averaging the signal for each trial within a 30-ms window centered at each participant’s previously defined individual peak latency. Trial-level oscillatory responses were also quantified using the same processing and response-specific time-frequency-sensor windows as described for the individual-level responses. Single-trial responses were computed by averaging the power within the respective time-frequency-sensor windows for each trial separately. The procedure for computing trial-level responses was applied independently to the internal session one, internal session two, and the external dataset.

Statistical analyses

Models of inter-individual variability.

To investigate the associations between EEG responses and inter-individual variability of pain perception, we performed Bayesian multi-model linear regression. We implemented the analysis in the R programming environment [57] using the “BayesFactor” package [58]. Our implementation’s results are consistent with those generated by the corresponding functionality of the JASP software (version: 0.19.3, [59]). In our models, individual-level brain responses (N1, N2, P2, alpha, beta, and gamma) were the predictors, and individual-level pain ratings were the outcome variable. To obtain individual-level pain ratings, trial-level pain ratings were first averaged per intensity and then per subject to ensure equal weighting of each intensity in the analysis. To make predictor coefficients more comparable, we performed Z-standardization of all predictor and outcome variables across all individuals. Since Bayesian multi-model linear regression assumes linear relationships between the variables, scatter plots showing the relations between the different predictor variables and pain rating were visually inspected [20]. All relations appeared approximately linear by eye. Thus, no variable transformation was performed, and no variables needed to be excluded from further analyses. As recommended for Bayesian multi-model linear regression [20], analyses used the default settings also implemented in JASP [59]. Thus, as the prior on parameters, we used a Jeffreys-Zellner-Siow (JZS) r-scale prior with a width of 0.354. As the prior on the models, we employed a binomial model prior with alpha = beta = 1. Statistical inferences were based on Bayes factors (BF; see below). For model selection, the ratio of prior and posterior model odds (BFM) as well as the evidence of a given model relative to the null model (BF10) were assessed. In order to evaluate the relative importance of individual predictors, coefficient estimates as well as posterior inclusion probabilities (BFinclusion), i.e., the factor by which the odds of including a predictor have changed after observing the data, averaged across all models that include or exclude that predictor, were obtained using Bayesian model averaging [20].

Models of intra-individual variability.

To investigate the associations between EEG responses and intra-individual variability of pain perception at the moment-to-moment timescale, we performed Bayesian linear mixed-effects modeling using custom-written R code [57] in RStudio (version: 2024.12.0.467; [60]), based on the “BayesFactor” package [58]. This implementation closely followed the model structure and priors used for the inter-individual analysis and implemented in the JASP software [59], but extended it to accommodate random effects. Specifically, we introduced a random (i.e., subject-specific) intercept term to account for the repeated measures design. The outcome variable was the single-trial pain rating, and predictors were single-trial brain responses (N1, N2, P2, alpha, beta, and gamma). To eliminate stimulus intensity-related variability, single-trial pain ratings and brain responses were mean-centered per subject and intensity. To make predictor coefficients more comparable, we performed Z-standardization of all predictor and outcome variables across all individuals and trials. Bayesian inference was applied in the same way as in the analysis of inter-individual variability, including the specification of priors, model selection procedures, the use of model-averaged posterior estimates, and inclusion probabilities to evaluate predictor relevance.

To assess the associations between EEG responses and intra-individual variability of pain perception at the day-to-day timescale, we proceeded analogously. However, instead of single-trial data, we analyzed the individual-level data concatenated across the two internal recording sessions. This resulted in two datapoints per individual of which we subtracted the mean per individual to remove any inter-individual variability.

Inference criteria.

All inferences were based on BF following [61]. Each model was evaluated using three metrics: first, BFM quantifies the change from prior to posterior model odds after observing the data, relative to all other models considered. Evidence for increased (decreased) model odds was inferred when BFM > 3 (or < 1/3). Second, BF10 quantifies the adequacy of a model in explaining the data relative to the null model. Evidence for (or against) the model relative to the null was inferred when BF10 > 3 (or < 1/3). In all analyses, the null model included a fixed (i.e., not subject-specific) intercept term. In analyses of inter-individual variability, the null model additionally included age and sex covariates. In analyses of intra-individual variability, the null model did not comprise the random intercept, since all inter-individual variability had been removed through within-individual centring of the data prior to model fitting. Third, R2 represents the explained variance of a model and is therefore a measure of the accuracy of model predictions. Importantly, since BF impose a penalty for model complexity, the highest BF10 is not necessarily the one with the largest R2. Finally, the evidence for including individual predictors was assessed using BFinclusion, which reflects the change from prior to posterior inclusion odds averaged across all models. Evidence for (or against) the inclusion of a predictor was inferred when BFinclusion > 3 (or < 1/3).

Robustness.

We evaluated the robustness of our findings by testing both their repeatability and replicability. To assess repeatability, defined as obtaining consistent results when repeating the experiment in the same cohort, we tested whether the model-averaged mean predictor coefficients estimated from the first internal recording session remained informative in the second internal recording session, and vice versa. Specifically, we predicted pain ratings in the second session using the second session’s brain responses together with the model-averaged coefficients from the first session. We then quantified the association between predicted and true pain ratings using a Bayesian correlation analysis for inter-individual models, and a Bayesian linear mixed effects model with a random (i.e., subject-specific) intercept term for intra-individual models. To assess replicability, defined as obtaining consistent results when performing a similar experiment in a different cohort, we proceeded analogously, except that the datasets used for coefficient estimation and testing came from distinct participant cohorts.

Statistical sensitivity.

Since our analyses are based on Bayesian multi-model regression and Bayesian linear mixed-effects models (LMEs), which are not currently supported by Bayes factor design analysis (BFDA) [62] tools, we performed an approximate statistical sensitivity analysis using a Bayesian correlation model as a proxy. Using the R package “BFDA” [63] with default priors and 10,000 simulations, we estimated statistical sensitivity for our sample size of n = 161 participants. Assuming a medium-sized correlation (R = 0.3) and BF10 thresholds of 1/3 and 3, the analysis yielded a statistical sensitivity of 94% with a false positive rate of 0.2%. Under more conservative thresholds (BF10 = 1/10 and 10), sensitivity was 86% with 0% false positives. These simulations serve as an approximate indication that the sample size allowed for a statistical sensitivity sufficient to detect medium-sized effects. While they do not fully reflect the complexity of the models, i.e., their hierarchical structure, they offer a reasonable estimate in the absence of validated Bayesian sensitivity estimation tools for regression and mixed-effects models.

Supporting information

S1 Fig. Brain responses to noxious stimuli in the internal session 2 (A + B) and external data (C + D).

A) + C) Grand average of event-related potentials for the Cz-Avg montage (to visualize the N2 and P2 responses) and the C4-Fz montage (to visualize the N1 response). The shaded blue bands represent ±2 SEM. Scalp topographies show the spatial distributions of voltage for the respective montages. Positions of measurement electrodes are marked as black dots. B) + D) Grand average time-frequency representation (TFR) showing changes in oscillatory power relative to a pre-stimulus baseline [−1–0 s]. For visualization, TFRs at Cz are presented. Scalp topographies illustrate the spatial distributions of relative power changes, averaged within the indicated time-frequency windows. Measurement electrode included later for the quantification of oscillatory power in the different frequency bands are marked as black dots.

https://doi.org/10.1371/journal.pbio.3003948.s001

(EPS)

S2 Fig. Pain ratings in the internal session 2 (A) and external data (B).

A) + B) Left: individual pain ratings reflecting inter-individual pain variability were obtained by averaging single-trail pain ratings for each individual, first within each stimulus intensity and then across stimulus intensities, yielding one rating value per individual. Right: trial-level pain ratings (left) reflecting intra-individual short-term pain variability were obtained by computing the means of single-trial pain ratings for each individual and stimulus intensity, and then subtracting these means from the corresponding single-trail pain ratings, yielding one centered rating value per trial. For visualization only, trial-wise and session-wise pain ratings were re-centered to the mean of the inter-individual distribution. The data underlying this Figure can be found at https://doi.org/10.17605/OSF.IO/BS3YJ.

https://doi.org/10.1371/journal.pbio.3003948.s002

(EPS)

S5 Fig. Bayesian multi-model analysis of inter-individual (A) intra-individual (B) variability in the external data.

A) + B) Top: the five models with the highest evidence relative to the null model (BF10) are shown, along with their ratios of prior and posterior model odds (BFM) and their explained variance (R2). Middle: inclusion Bayes Factors (BFincl), representing the evidence for including each predictor averaged across all models considered. Bottom: model-averaged posterior mean estimates for each predictor coefficient. Error bars indicate ±2 standard deviations of the model-averaged posterior coefficient distribution. The data underlying this Figure can be found at https://doi.org/10.17605/OSF.IO/BS3YJ.

https://doi.org/10.1371/journal.pbio.3003948.s005

(EPS)

Acknowledgments

We thank Li Hu for sharing data.

References

  1. 1. Mun CJ, Suk HW, Davis MC, Karoly P, Finan P, Tennen H, et al. Investigating intraindividual pain variability: methods, applications, issues, and directions. Pain. 2019;160(11):2415–29. pmid:31145212
  2. 2. Nielsen CS, Staud R, Price DD. Individual differences in pain sensitivity: measurement, causation, and consequences. J Pain. 2009;10(3):231–7. pmid:19185545
  3. 3. Ossipov MH, Dussor GO, Porreca F. Central modulation of pain. J Clin Invest. 2010;120(11):3779–87. pmid:21041960
  4. 4. Madden VJ, Kamerman PR, Catley MJ, Bellan V, Russek LN, Camfferman D, et al. Variability in experimental pain studies: nuisance or opportunity? Br J Anaesth. 2021;126(2):e61–4. pmid:33341221
  5. 5. Gim S, Lee DH, Lee S, Woo C-W. Interindividual differences in pain can be explained by fMRI, sociodemographic, and psychological factors. Nat Commun. 2024;15(1):7883. pmid:39256362
  6. 6. Hoeppli ME, Nahman-Averbuch H, Hinkle WA, Leon E, Peugh J, Lopez-Sola M, et al. Dissociation between individual differences in self-reported pain intensity and underlying fMRI brain activation. Nat Commun. 2022;13(1):3569. pmid:35732637
  7. 7. Hoeppli ME, Nahman-Averbuch H, Hinkle WA, Leon E, Peugh J, López-Solà M, et al. Reply to: Interindividual differences in pain can be explained by fMRI, sociodemographic, and psychological factors. Nat Commun. 2024;15(1):7884. pmid:39256345
  8. 8. Hu L, Iannetti GD. Neural indicators of perceptual variability of pain across species. Proc Natl Acad Sci U S A. 2019;116(5):1782–91. pmid:30642968
  9. 9. Schulz E, Tiemann L, Schuster T, Gross J, Ploner M. Neurophysiological coding of traits and states in the perception of pain. Cereb Cortex. 2011;21(10):2408–14. pmid:21378113
  10. 10. Schulz E, Zherdin A, Tiemann L, Plant C, Ploner M. Decoding an individual’s sensitivity to pain from the multivariate analysis of EEG data. Cereb Cortex. 2012;22(5):1118–23. pmid:21765182
  11. 11. Kotikalapudi R, Kincses B, Zunhammer M, Schlitt F, Asan L, Schmidt-Wilcke T, et al. Brain morphology predicts individual sensitivity to pain: a multicenter machine learning approach. Pain. 2023;164(11):2516–27. pmid:37318027
  12. 12. Spisak T, Kincses B, Schlitt F, Zunhammer M, Schmidt-Wilcke T, Kincses ZT, et al. Pain-free resting-state functional brain connectivity predicts individual pain sensitivity. Nat Commun. 2020;11(1):187. pmid:31924769
  13. 13. Coghill RC, Sang CN, Maisog JM, Iadarola MJ. Pain intensity processing within the human brain: a bilateral, distributed mechanism. J Neurophysiol. 1999;82(4):1934–43. pmid:10515983
  14. 14. Huang G, Xiao P, Hung YS, Iannetti GD, Zhang ZG, Hu L. A novel approach to predict subjective pain perception from single-trial laser-evoked potentials. Neuroimage. 2013;81:283–93. pmid:23684861
  15. 15. Li L, Huang G, Lin Q, Liu J, Zhang S, Zhang Z. Magnitude and temporal variability of inter-stimulus EEG modulate the linear relationship between laser-evoked potentials and fast-pain perception. Front Neurosci. 2018;12:340. pmid:29904336
  16. 16. Mayhew SD, Hylands-White N, Porcaro C, Derbyshire SWG, Bagshaw AP. Intrinsic variability in the human response to pain is assembled from multiple, dynamic brain processes. Neuroimage. 2013;75:68–78. pmid:23485593
  17. 17. García-Larrea L, Peyron R, Laurent B, Mauguière F. Association and dissociation between laser-evoked potentials and pain perception. Neuroreport. 1997;8(17):3785–9. pmid:9427371
  18. 18. Iannetti GD, Zambreanu L, Cruccu G, Tracey I. Operculoinsular cortex encodes pain intensity at the earliest stages of cortical processing as indicated by amplitude of laser-evoked potentials in humans. Neuroscience. 2005;131(1):199–208. pmid:15680703
  19. 19. Gross J, Schnitzler A, Timmermann L, Ploner M. Gamma oscillations in human primary somatosensory cortex reflect pain perception. PLoS Biol. 2007;5(5):e133. pmid:17456008
  20. 20. Bergh D van den, Clyde MA, Gupta ARKN, de Jong T, Gronau QF, Marsman M, et al. A tutorial on Bayesian multi-model linear regression with BAS and JASP. Behav Res Methods. 2021;53(6):2351–71. pmid:33835394
  21. 21. Nickel MM, Tiemann L, Hohn VD, May ES, Gil Ávila C, Eippert F, et al. Temporal-spectral signaling of sensory information and expectations in the cerebral processing of pain. Proc Natl Acad Sci U S A. 2022;119(1):e2116616119. pmid:34983852
  22. 22. Bott FS, Nickel MM, Hohn VD, May ES, Gil Ávila C, Tiemann L, et al. Local brain oscillations and interregional connectivity differentially serve sensory and expectation effects on pain. Sci Adv. 2023;9(16):eadd7572. pmid:37075123
  23. 23. Kohoutová L, Atlas LY, Büchel C, Buhle JT, Geuter S, Jepma M, et al. Individual variability in brain representations of pain. Nat Neurosci. 2022;25(6):749–59. pmid:35637368
  24. 24. Zhang L-B, Geng X-Y, Hu L. Neural variability reliably encodes interindividual differences in the perception of pain intensity. PLoS Biol. 2025;23(10):e3003470. pmid:41144553
  25. 25. Barroso J, Branco P, Apkarian AV. Brain mechanisms of chronic pain: critical role of translational approach. Transl Res. 2021;238:76–89. pmid:34182187
  26. 26. Reddan MC. Recommendations for the development of socioeconomically-situated and clinically-relevant neuroimaging models of pain. Front Neurol. 2021;12:700833. pmid:34557144
  27. 27. Bott FS, Zebhauser PT, Hohn VD, Turgut Ö, May ES, Tiemann L, et al. Exploring electroencephalographic chronic pain biomarkers: a mega-analysis. EBioMedicine. 2025;120:105955. pmid:41033105
  28. 28. Zebhauser PT, Hohn VD, Ploner M. Resting-state electroencephalography and magnetoencephalography as biomarkers of chronic pain: a systematic review. Pain. 2023;164(6):1200–21. pmid:36409624
  29. 29. Woo C-W, Chang LJ, Lindquist MA, Wager TD. Building better biomarkers: brain models in translational neuroimaging. Nat Neurosci. 2017;20(3):365–77. pmid:28230847
  30. 30. Hamaker EL. Analysis of intensive longitudinal data: putting psychological processes in perspective. Annu Rev Clin Psychol. 2025;21(1):379–405. pmid:39914885
  31. 31. Lee J-J, Jo S, Cho S, Woo C-W. Personalized brain decoding of spontaneous pain in individuals with chronic pain. Nat Neurosci. 2026;29(4):957–63. pmid:41748786
  32. 32. Gordon EM, Laumann TO, Gilmore AW, Newbold DJ, Greene DJ, Berg JJ, et al. Precision functional mapping of individual human brains. Neuron. 2017;95(4):791-807 e7. pmid:28757305
  33. 33. Gratton C, Braga RM. Dense phenotyping of human brain network organization using precision fMRI. Annu Rev Psychol. 2026;77(1):619–47. pmid:41061168
  34. 34. Etkin A, Mathalon DH. Bringing imaging biomarkers into clinical reality in psychiatry. JAMA Psychiatry. 2024;81(11):1142–7. pmid:39230917
  35. 35. May ES, Tiemann L, Gil Ávila C, Bott FS, Hohn VD, Gross J, et al. Assessing the predictive value of peak alpha frequency for the sensitivity to pain. Pain. 2025;166(9):2076–90. pmid:40085759
  36. 36. Ozcan A, Tulum Z, Pinar L, Başkurt F. Comparison of pressure pain threshold, grip strength, dexterity and touch pressure of dominant and non-dominant hands within and between right-and left-handed subjects. J Korean Med Sci. 2004;19(6):874–8. pmid:15608401
  37. 37. Pud D, Golan Y, Pesta R. Hand dominancy–a feature affecting sensitivity to pain. Neurosci Lett. 2009;467(3):237–40. pmid:19853018
  38. 38. Epperson CN, Haga K, Mason GF, Sellers E, Gueorguieva R, Zhang W, et al. Cortical gamma-aminobutyric acid levels across the menstrual cycle in healthy women and those with premenstrual dysphoric disorder: a proton magnetic resonance spectroscopy study. Arch Gen Psychiatry. 2002;59(9):851–8. pmid:12215085
  39. 39. Iacovides S, Avidon I, Baker FC. Does pain vary across the menstrual cycle? A review. Eur J Pain. 2015;19(10):1389–405. pmid:25899177
  40. 40. Sumner RL, McMillan RL, Shaw AD, Singh KD, Sundram F, Muthukumaraswamy SD. Peak visual gamma frequency is modified across the healthy menstrual cycle. Hum Brain Mapp. 2018;39(8):3187–202. pmid:29665216
  41. 41. Tan H-RM, Gross J, Uhlhaas PJ. MEG sensor and source measures of visually induced gamma-band oscillations are highly reliable. Neuroimage. 2016;137:34–44. pmid:27153980
  42. 42. Hu L, Zhang ZG, Mouraux A, Iannetti GD. Multiple linear regression to estimate time-frequency electrophysiological responses in single trials. Neuroimage. 2015;111:442–53. pmid:25665966
  43. 43. Adamczyk WM, Szikszay TM, Nahman-Averbuch H, Skalski J, Nastaj J, Gouverneur P, et al. To calibrate or not to calibrate? A methodological dilemma in experimental pain research. J Pain. 2022;23(11):1823–32. pmid:35918020
  44. 44. Pernet CR, Appelhoff S, Gorgolewski KJ, Flandin G, Phillips C, Delorme A, et al. EEG-BIDS, an extension to the brain imaging data structure for electroencephalography. Sci Data. 2019;6(1):103. pmid:31239435
  45. 45. Gil Ávila C, Bott FS, Tiemann L, Hohn VD, May ES, Nickel MM, et al. DISCOVER-EEG: an open, fully automated EEG pipeline for biomarker discovery in clinical neuroscience. Sci Data. 2023;10(1):613. pmid:37696851
  46. 46. Pernet CR, Martinez-Cancino R, Truong D, Makeig S, Delorme A. From BIDS-formatted EEG data to sensor-space group results: a fully reproducible workflow with EEGLAB and LIMO EEG. Front Neurosci. 2020;14:610388. pmid:33519362
  47. 47. Delorme A, Makeig S. EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. J Neurosci Methods. 2004;134(1):9–21. pmid:15102499
  48. 48. Garcia-Larrea L, Frot M, Valeriani M. Brain generators of laser-evoked potentials: from dipoles to functional significance. Neurophysiol Clin. 2003;33(6):279–92. pmid:14678842
  49. 49. Lorenz J, Garcia-Larrea L. Contribution of attentional and cognitive factors to laser evoked brain potentials. Neurophysiol Clin. 2003;33(6):293–301. pmid:14678843
  50. 50. Kim JA, Davis KD. Neural oscillations: understanding a neural code of pain. Neuroscientist. 2020.
  51. 51. Pernet C, Garrido MI, Gramfort A, Maurits N, Michel CM, Pang E, et al. Issues and recommendations from the OHBM COBIDAS MEEG committee for reproducible EEG and MEG research. Nat Neurosci. 2020;23(12):1473–83. pmid:32958924
  52. 52. Ploner M, Sorg C, Gross J. Brain rhythms of pain. Trends Cogn Sci. 2017;21(2):100–10. pmid:28025007
  53. 53. Tiemann L, Hohn VD, Ta Dinh S, May ES, Nickel MM, Gross J, et al. Distinct patterns of brain activity mediate perceptual and motor and autonomic responses to noxious stimuli. Nat Commun. 2018;9(1):4487. pmid:30367033
  54. 54. Oostenveld R, Fries P, Maris E, Schoffelen J-M. FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data. Comput Intell Neurosci. 2011;2011:156869. pmid:21253357
  55. 55. Hohn VD, Tiemann L, Bott FS, May ES, Fritzen C, Nickel MM, et al. Neurofeedback and attention modulate somatosensory alpha oscillations but not pain perception. PLoS Biol. 2025;23(1):e3002972. pmid:39847605
  56. 56. Hu L, Mouraux A, Hu Y, Iannetti GD. A novel approach for enhancing the signal-to-noise ratio and detecting automatically event-related potentials (ERPs) in single trials. Neuroimage. 2010;50(1):99–111. pmid:20004255
  57. 57. R Core Team. R: a language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing; 2021.
    • 58. Morey RD, Rouder JN. BayesFactor: computation of bayes factors for common designs. 2018.
      • 59. JASP. JASP Team, 2025. (Version 0.19.3) [Computer software]. 2025.
        • 60. Posit Team. RStudio: integrated development environment for R. Boston, MA: Posit Software, PBC; 2025.
          • 61. Jeffreys H. Theory of probability. 3rd ed. Oxford: Oxford University Press; 1961.
            • 62. Schönbrodt FD, Wagenmakers E-J. Bayes factor design analysis: planning for compelling evidence. Psychon Bull Rev. 2018;25(1):128–42. pmid:28251595
            • 63. Schönbrodt FD, Stefan AM. BFDA: an R package for Bayes factor design analysis. 2019.
              Read Entire Article

                       

                      

              Start the new Vibrations with a Medbed Franchise today!  

              Protect your whole family with Quantum Orgo-Life® devices

                Advertising by Adpathway