Code for: Modeling the Action–Perception Loop and its role in Phantom Limb Pain using Active Inference
Authors/Creators
Description
This code produces the simulation results and figures in the manuscript "Modeling the Action–Perception Loop and its role in Phantom Limb Pain using Active Inference" by Ramne M., Lundh, T. & Sensinger, J.
Abstract: Phantom limb pain is among the most prevalent and distressing consequences of limb amputation. Theories regarding its underlying mechanisms remain disputed, contributing to challenges in effectively treating the pain. In recent years, mathematical models grounded in the Bayesian inference framework have been used to describe various aspects of pain perception. However, pain is not only passively inferred but actively shaped through interactions with the environment—a dimension that classical Bayesian approaches typically do not capture. Because amputation disrupts both sensory input related to the limb and the ability to perform actions, a model incorporating both sensory and active components of pain may provide new insight into the mechanisms underlying phantom limb pain. To this end, we developed a model within the active inference framework, which extends Bayesian inference to include action selection. The model provides a conceptual account of how loss of limb control, ambiguity in proprioceptive input, residual noxious input, and pre-amputation pain may contribute to the emergence and persistence of phantom limb pain. Furthermore, it offers insight into the possible mechanisms underlying common interventions and may help account for their variable efficacy across individuals.
Files
PublicationCode.zip
Files
(169.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:bb93dda26b9add7cbf363023fe187f84
|
169.6 MB | Preview Download |
Additional details
Related works
- Requires
- Software: 10.21105/joss.04098 (DOI)