Published September 13, 2024 | Version v2
Computational notebook Open

Code for: A Computational Framework for Understanding the Impact of Prior Experiences on Pain Perception and Neuropathic Pain

  • 1. ROR icon Chalmers University of Technology
  • 2. ROR icon University of New Brunswick

Description

This code produces the simulation results and figures in the manuscript "A Computational Framework for Understanding the Impact of Prior Experiences on Pain Perception and Neuropathic Pain". Preprint available at https://doi.org/10.1101/2024.04.23.590862.

Abstract: Pain perception is influenced not only by sensory input from afferent neurons but also by cognitive factors such as prior expectations. It has been suggested that overly precise priors may be a key contributing factor to chronic pain states such as neuropathic pain. However, it remains an open question how overly precise priors in favor of pain might arise. Here, we first verify that a Bayesian approach can describe how statistical integration of prior expectations and sensory input results in pain phenomena such as placebo hypoalgesia, nocebo hyperalgesia, chronic pain, and spontaneous neuropathic pain. Our results indicate that the value of the prior, which is determined by generative model parameters, may be a key contributor to these phenomena. Next, we apply a hierarchical Bayesian approach to update the parameters of the generative model based on the difference between the predicted and the perceived pain, to reflect that people integrate prior experiences in their future expectations. In contrast with simpler approaches, this hierarchical model structure is able to show for placebo hypoalgesia and nocebo hyperalgesia how these phenomena can arise from prior experiences in the form of a classical conditioning procedure. We also demonstrate the phenomenon of offset analgesia, in which a disproportionally large pain decrease is obtained following a minor reduction in noxious stimulus intensity. Finally, we turn to simulations of neuropathic pain, where our hierarchical model corroborates that persistent non-neuropathic pain is a risk factor for developing neuropathic pain following denervation, and additionally offers an interesting prediction that complete absence of informative painful experiences could be a similar risk factor. Taken together, these results provide insight to how prior experiences may contribute to pain perception, in both experimental and neuropathic pain, which in turn might be informative for improving strategies of pain prevention and relief.

Data: Some of the simulation results are verified using a dataset from the following source: Van Doorn, J., & Jepma, M. (2018, November 2). Behavioural and neural evidence for self-reinforcing expectancy effects on pain. Retrieved from https://osf.io/bqkz3/

Files

PublicationCode.zip

Files (33.8 kB)

Name Size Download all
md5:ac2e5d6efc72a796f0ccc7b8b199dfcb
33.8 kB Preview Download

Additional details

Related works

Is derived from
Publication: 10.1371/journal.pone.0170473 (DOI)
Publication: 10.1038/nn.2229 (DOI)
Requires
Dataset: https://osf.io/bqkz3/ (URL)

Dates

Submitted
2024-04-12
Code submitted to Zenodo
Available
2024-04-28
Preprint available at bioRxiv
Updated
2024-09-13
Code updated on Zenodo

Software

Programming language
MATLAB
Development Status
Concept