The Predictive Brain in Chronic Pain.
A research handbook on predictive coding & active inference — mechanisms of the chronic pain cycle and their clinical applications.
For clinicians, researchers, and graduate trainees in pain medicine, psychology, physiotherapy, and digital therapeutics. Conditions in scope: primary nociplastic pain, chronic low back pain, fibromyalgia, migraine, IBS, chronic pelvic pain, persistent post-injury pain, and related psychophysiologic disorders.
Pain is inferred, not transmitted.
Chronic pain has historically been modeled as a faithful readout of peripheral tissue state. That model fails to explain the large fraction of patients whose pain persists, spreads, or intensifies in the absence of commensurate nociceptive input.
Predictive processing — the proposal that the brain is a hierarchical inference machine that generates perception by predicting the causes of its sensory signals and updating those predictions against incoming evidence — offers a mechanistic alternative.1,3
Under this framework, pain is not transmitted but inferred: it is the brain's best explanation for noisy, ambiguous bodily signals, weighted by prior expectation and by the estimated reliability (precision) of prediction and evidence.4,5 Chronic pain is reframed as a condition of aberrant inference: a high-precision prior predicting bodily danger that comes to dominate sensory evidence, sustained by a self-reinforcing loop of attention, fear, and avoidance that is itself a form of active inference.6,16
This reframing is not merely theoretical. It predicts, and recent randomized trials confirm, that interventions targeting the prior — its precision and the beliefs that sustain it — can produce substantial, durable reductions in pain. The landmark trial of Pain Reprocessing Therapy reported that two-thirds of patients with chronic back pain were pain-free or nearly so after treatment, with effects maintained at one year and mediated by changes in pain-related belief.12,13
The handbook develops the theory (Part I), applies it to the chronic pain cycle (Part II), and surveys the clinical applications it motivates (Part III).
This handbook is a research and educational synthesis. It does not constitute medical advice. The framework applies to primary/nociplastic and psychophysiologic pain after appropriate medical evaluation has excluded structural and systemic disease. Clinical decisions remain the responsibility of qualified practitioners.
A map of the argument.
Theoretical foundations.
How the brain constructs perception, why that matters for pain, and the core machinery of predictive coding and active inference.
The Brain as a Prediction Machine.
For most of the twentieth century, perception was modeled as a bottom-up, feed-forward process: sensory receptors transduce energy, signals ascend a processing hierarchy, and at the top a percept is assembled. Predictive processing inverts this picture. On the predictive account, the dominant flow of information is top-down. The brain continuously generates a model of the most likely causes of its sensory input and sends those predictions down the cortical hierarchy; what travels back up is not raw data but prediction error — the residual mismatch between what was predicted and what was sensed.2,3
This architecture is hierarchical and reciprocal (Figure 1). Each level predicts the activity of the level below and receives error signals from it. Higher levels encode slower, more abstract, more context-laden expectations (the body schema, the meaning of a sensation, the expectation of harm); lower levels encode fast-changing sensory and interoceptive detail. Perception is the brain's equilibrium solution — the set of predictions that, for the moment, best explains away the incoming signal.1
The practical upshot is profound: we do not perceive the world directly. We perceive our brain's best model of the world, corrected only where the model is surprised. Andy Clark summarizes the view in a phrase that has become its motto — the brain is a guessing engine whose guesses are, most of the time, "good enough" that the sensory stream simply confirms them.3 Anil Seth's related framing, that ordinary perception is a "controlled hallucination" reined in by sensory evidence, captures the same inversion of the classical model.
Pain as Inference, Not Transmission.
If perception in general is inference, then pain in particular is inference. This is the conceptual hinge of the entire handbook. Nociception — the peripheral signaling of actual or potential tissue damage — is an input to the inferential process, not the experience itself. Pain is what the brain infers when it concludes that the body is in danger. As with any inference, the conclusion depends jointly on the evidence (nociceptive and interoceptive signals) and on the prior (the brain's expectation of bodily threat).
Formally, several groups have cast this as Bayesian inference over the hidden state "the body is in a damaging condition."5,6 The brain combines a likelihood (how probable the current sensations are, given pain or no pain) with a prior (how probable pain is, before looking) to produce a posterior — the perceived probability and intensity of pain. Two consequences follow immediately and are central to chronic pain:
- Priors can manufacture pain. A sufficiently strong prior expectation of pain can yield a painful percept from innocuous or absent peripheral input — a direct prediction of the model, and the computational signature of allodynia and of pain that outlives healing.5
- Learning reshapes the likelihood. Repeated pairing of sensations with pain broadens the range of bodily signals the brain reads as evidence of danger, so that progressively more benign inputs are inferred as painful.6
The same mathematics explains placebo and nocebo effects, which have been a stumbling block for transmission models but fall out naturally here: an expectation (prior) of relief or of harm shifts the posterior percept, and does so through identifiable descending pathways.4,27,28 Experimentally, cueing a high probability of intense pain biases perceptual decisions toward pain even when the delivered stimulus is held constant5 — a clean demonstration that the prior, not the stimulus alone, determines the experience.
Inference is not invention. A Bayesian percept is a real, neurally instantiated state with real suffering and real physiological consequences. The claim is about source, not legitimacy: the pain is generated centrally by a system doing exactly what it evolved to do — protect the body — on the basis of a miscalibrated prediction.
This distinction is clinically decisive, because reattributing pain to a reversible brain process (rather than to damage) is itself associated with recovery.13
The brain is a guessing engine whose guesses are, most of the time, good enough that the sensory stream simply confirms them.
Active Inference and Precision.
A predictive system has two ways to reduce the mismatch between what it expects and what it senses. It can change the model to fit the world (perceptual inference), or it can change the world to fit the model (active inference): act so that the predicted sensations are the ones actually received.1
Reaching for a cup is active inference — the brain predicts the proprioceptive consequences of the arm already being at the cup, and movement unfolds to fulfill that prediction. Crucially, avoidance and guarding are also active inference. A brain that predicts danger from bending will generate the muscular guarding, postural bracing, and behavioral avoidance that prevent the feared sensation — and thereby prevent the disconfirming evidence that would update the prediction.16
The second pivotal construct is precision. Predictions and error signals are not weighted equally; each is scaled by its estimated reliability. Precision is the brain's confidence in a signal, and it functions as a gain control — neurobiologically linked to attention and to neuromodulators acting on the synaptic gain of error units.3,10
When the precision assigned to a prior is high relative to the precision of sensory evidence, the prior wins: the percept is dragged toward prediction. When sensory precision is high, evidence wins and the model updates. Pain is exquisitely sensitive to the balance of precision (Figure 3), not to nociceptive magnitude alone.
This gives the framework its therapeutic leverage. Two levers move the percept: the content of the prior (what the brain expects) and its precision (how strongly it holds that expectation). Effective treatments, examined in Part III, can be read as operating on one or both — supplying disconfirming evidence to revise the content, and reducing threat and hypervigilance to lower the precision. The free-energy account also clarifies why insight or reappraisal can sometimes change pain rapidly: a high-level belief, once revised, re-weights everything beneath it.25
The chronic pain cycle.
How an adaptive protective system becomes a self-sustaining loop — and the neurobiology that implements it.
From Acute Protection to Chronic Prediction.
Acute pain is adaptive. A nociceptive signal, inferred as bodily threat, motivates protective action and learning: the organism withdraws, guards, and updates its model so that the precipitating context is treated as dangerous in future. This is normal, useful Bayesian learning. The problem of chronic pain is the problem of a prior that fails to update after the tissue threat has resolved — what several authors call a "stubborn" or hyper-precise prior.6,29
Three processes convert an adaptive acute response into a maintained chronic one:
- Central sensitization — activity-dependent increases in the gain of central nociceptive circuits, so that the same input produces larger responses and the system reports pain to progressively weaker stimuli.17 In predictive terms, sensitization raises the precision the system assigns to nociceptive prediction error and lowers the threshold of the danger prior.
- Associative learning — through Pavlovian and operant conditioning, initially neutral cues (a posture, a place, a time of day, an emotion) become predictors of pain, broadening the set of triggers.14,22
- Avoidance as active inference — protective behaviors prevent the very experiences that could disconfirm the danger prior, so the prediction is shielded from correction and, through deconditioning, made more accurate over time.
Chronic primary pain is best modeled not as ongoing nociception but as aberrant inference: a generative model that has learned, with excessive confidence, to predict bodily danger, and that recruits attention, affect, and behavior in ways that continually confirm its own prediction. The pain is the posterior of a miscalibrated inference.5,6
Anatomy of the Self-Reinforcing Loop.
The maintained condition is best understood as a positive-feedback loop in which each component increases the next and the last reinforces the first (Figure 2). The loop is the predictive-coding re-description of the classical fear-avoidance model of Vlaeyen and Linton,14,15 now given an explicit computational mechanism: every link is an instance of the brain working to minimize prediction error against a danger prior.16
Tracing the loop, link by link
- Danger prior. A high-precision belief that movement or sensation signals harm ("my back is fragile," "pain means damage"). Often seeded by an acute injury, reinforced by alarming explanations, imaging language, or prior trauma, which raises baseline precision.13,30
- Hypervigilant attention. The prior allocates precision to the body, so the system preferentially samples and up-weights bodily signals — attentional bias and body-scanning that make benign interoceptive noise salient.10
- Amplified pain percept. With prediction outweighing evidence, the posterior is dragged toward pain; sensitization ensures the percept is large. This is the experienced symptom.
- Fear and catastrophizing. The percept is appraised as threatening, recruiting affective circuitry (notably the anterior cingulate and insula) that further raises the precision of the danger prior.18,22
- Guarding and avoidance. Active inference generates protective behavior that prevents disconfirming experience — the patient does not test, and so does not learn, that the movement is safe.16
- Deconditioning & sensitization. Disuse, vigilance, and stress make the body genuinely more reactive, supplying evidence that appears to confirm the prior and closing the loop with higher precision than before.17
Because the loop is self-confirming, it is stable: it persists without any peripheral driver. But because it is a loop, it is also breakable at every node. Interrupting any link — down-weighting the prior, redirecting attention, reappraising the percept, reducing fear, or re-exposing the body to safe movement — reduces the prediction-error minimization that sustains the whole. This is the rationale shared by the therapies in Part III.
Neurobiological Substrates.
The framework is not merely metaphorical; it maps onto identifiable circuitry. No single "pain center" exists. Instead, a distributed set of regions — historically the "pain matrix," more precisely the dynamic pain connectome — implements the hierarchical inference, with different hubs carrying prediction, error, precision, and affective valuation.18
Two empirical anchors are worth highlighting. First, direct electrical stimulation of the human insula and S2 evokes pain, identifying these as nodes where bodily inference becomes painful experience.20 Second, the affective and sensory dimensions are dissociable: lesioning the ACC in animals leaves nociceptive withdrawal intact but abolishes the learned aversiveness of pain,22 exactly as a precision/valuation account predicts — the "hurt" and the "threat" are computed in part by different machinery. Multivariate fMRI work has further identified distributed, reproducible signatures of evoked pain,19 and treatment trials now use such imaging to show that successful psychological treatment shifts activity in precisely these prefrontal–limbic and interoceptive circuits.12
Interoception — the sensing and regulation of the body's internal state — is the sensory stream most relevant to pain, and is itself organized predictively.9,10 Dysfunctional interoceptive inference, in which the brain mis-weights or misreads internal signals, is implicated across psychophysiologic disorders including chronic pain, anxiety, and functional gastrointestinal conditions.11
In loop terms, the interoceptive system is where benign internal "weather" is mis-forecast as a storm; therapies that retrain interoceptive interpretation (somatic tracking, interoceptive exposure) target this node directly.
Clinical applications.
Turning the framework into treatment: the principles that unify modern brain-based pain therapies, the specific interventions, the evidence, and a clinical workflow.
Principles of Brain-Based Treatment.
Every intervention examined below can be read as operating on one of two levers identified in Part I: the content of the danger prior, or its precision. Three principles follow directly from the model and unify otherwise disparate therapies.
- Reattribute the cause. Because the prior's content is the belief that pain signals damage, treatment begins by reattributing pain to a reversible, non-dangerous brain process. This is not reassurance for its own sake; reattribution to mind/brain processes is a statistical mediator of recovery in controlled data.13,30
- Supply disconfirming evidence safely. Because avoidance shields the prior from correction, recovery requires re-exposure to feared sensations and movements under conditions safe enough that the brain updates rather than defends. This is perceptual inference deliberately engineered.16
- Lower precision through safety. Because a high-precision danger prior dominates evidence, reducing threat — via reappraisal, attention retraining, autonomic down-regulation, and a trusting therapeutic relationship — lowers the gain on the prior so that corrective evidence can take hold.4
Pain Reprocessing Therapy, graded exposure, somatic tracking, mindfulness, interoceptive exposure, and virtual embodiment differ in delivery but share one mechanism: they change what the brain predicts about the body, and how strongly it holds that prediction.
The framework thus offers not a single new technique but a mechanistic rationale that integrates the field and tells the clinician what each technique is for.
The Intervention Toolkit.
8.1 Pain neuroscience education & reattribution
Teaching patients that pain is constructed by the brain and does not require tissue damage directly targets the content of the danger prior. Modern "Explain Pain" approaches show that conceptual change in pain beliefs reduces threat and disability.30 In the Pain Reprocessing Therapy (PRT) trial, the degree to which patients came to attribute their pain to mind/brain (rather than bodily) causes statistically mediated their recovery,13 confirming that belief change is not incidental but mechanistic.
8.2 Pain Reprocessing Therapy & somatic tracking
PRT combines reattribution with somatic tracking: attending to feared bodily sensations with curiosity and an explicit appraisal of safety, rather than alarm. In predictive terms, somatic tracking presents the interoceptive signal to the system while withholding the threat valuation that would raise the prior's precision — supplying "safe" evidence and lowering gain simultaneously.
The randomized trial in chronic back pain found that 66% of PRT patients were pain-free or nearly pain-free post-treatment, versus 20% on placebo and 10% on usual care, with gains largely maintained at one year and corroborated by reduced activity in prefrontal and anterior insular regions.12
8.3 Graded exposure to feared movement
Derived from the fear-avoidance model, graded exposure systematically re-exposes the patient to avoided movements, beginning with those rated least threatening, to generate disconfirming evidence that updates the danger prior.14 Exposure-based treatment of pain-related fear improves function and reduces catastrophizing, and the active-inference reading clarifies why graded, predictable exposure works where abrupt confrontation does not: belief updating requires that prediction error be both present and survivable, so that the system revises rather than defends.16
8.4 Mindfulness & attention retraining
Mindfulness training reduces the precision the system grants to the danger prior by altering the global balance between prior-driven and evidence-driven processing — a mechanism articulated explicitly in predictive accounts of meditation.25 By cultivating non-reactive, present-moment attention to sensation, the practitioner decouples the sensory signal from automatic threat valuation, attenuating the hypervigilance and catastrophizing links of the loop.
8.5 Interoceptive retraining
Because chronic pain involves mis-weighted interoceptive inference, therapies that retrain the interpretation of internal signals — interoceptive exposure, breath and body-awareness practices — target the loop at its sensory root,11 helping the brain "fact-check" the body's alarms and reassign benign signals to the benign category.
8.6 Virtual embodiment & immersive VR
Immersive virtual reality can present the brain with vivid, first-person evidence that movement is safe and that the body is whole and capable, exploiting embodiment and presence to drive perceptual updating. VR for chronic pain is thought to act through distraction (transiently lowering sensory precision) and, more durably, through embodiment — manipulating the experienced body to revise the body schema and the danger prior.
A double-blind, placebo-controlled trial of a behavioral-skills VR program (EaseVRx) in chronic low back pain demonstrated superiority over sham VR with durable benefit,23 and an open-label study of virtual embodiment training reported significant within-session reductions in pain intensity and improvements in fear-avoidance and disability measures, motivating controlled trials.24
Targets prior CONTENT: pain neuroscience education, reattribution, graded exposure, virtual embodiment (disconfirming evidence).
Targets prior PRECISION: somatic tracking, mindfulness, autonomic regulation, therapeutic safety (lower threat gain).
Targets the SENSORY node: interoceptive retraining, VR distraction (re-weighting evidence).
Evidence summary.
The table below collates representative controlled evidence for the framework's clinical predictions. It is illustrative rather than exhaustive; effect sizes vary with population, comparator, and outcome, and several modalities still await large, well-controlled, active-comparator trials.
JAMA Psychiatry 202212
JAMA Netw Open 202313
JMIR 202123
JMIR Form Res 202424
Pain 201117
Read together, these findings support the framework's central clinical claim: that interventions which change the brain's predictions about the body — and the precision of those predictions — can reduce or resolve chronic primary pain, and do so through the mechanistic pathway the theory specifies.
A Clinical Workflow.
The framework yields a pragmatic sequence for assessment and treatment. It presupposes appropriate medical evaluation; the workflow applies to primary (nociplastic) pain after structural and systemic disease have been suitably addressed.
Confirm a primary/nociplastic presentation. Features pointing to a predominantly predictive (centrally generated) mechanism: pain inconsistent with anatomy, that spreads or moves, varies with stress/attention/emotion, began at a stressful period, or coexists with other psychophysiologic conditions. Exclude red flags and structural disease first.30
Establish, with the patient, a brain-based formulation: the pain is real and protective, generated by a sensitized prediction rather than ongoing damage, and therefore reversible. Reattribution is both the foundation and an active ingredient.13
Reduce threat and hypervigilance through somatic tracking, mindfulness, autonomic regulation, and a safe therapeutic alliance, so that the danger prior loses its grip on the percept.12,25
Through graded exposure and, where available, virtual embodiment, give the brain repeated, survivable experiences of safe movement and benign sensation, driving the prior to update.16,23
Translate gains into daily function and identity — the patient's functional goals — reframing flares as transient mispredictions to be met with the same skills rather than as evidence of damage. Durability is the test of genuine model change, and is observed in the strongest trials.12
"Your pain is completely real, and it is your brain doing its job: predicting danger and protecting you. After an injury or a stressful period, the brain can learn to predict pain so strongly that it keeps generating it even after the tissues are fine — the alarm stays on. The encouraging part is that what the brain learns, it can unlearn. Treatment retrains the prediction: we lower the sense of threat, and we give your brain safe, repeated proof that movement and sensation are okay, until it turns the alarm back down."
Open Questions & Research Agenda.
The framework is generative precisely because it is falsifiable and quantitative. Priorities for the next phase of research include:
- Computational phenotyping. Fitting Bayesian/active-inference models to individual patients to estimate prior precision and learning rates, enabling mechanism-based subtyping and treatment matching.6
- Objective markers. Validating neural (fMRI signatures, EEG measures such as alpha asymmetry), behavioral (movement guarding), and psychophysical readouts of prior precision and its change with treatment.19
- Active-comparator trials. Rigorous, same-content controlled trials for VR/embodiment and somatic therapies to isolate specific from expectation effects.23
- First-person measurement. Developing structured phenomenological methods to quantify subjective experience and link it to model parameters — a standing gap in the field.
- Trauma & precision. Testing the hypothesis that adverse experience raises the baseline precision of bodily-threat priors, and whether trauma-informed care modifies it.11
- Generalization across PPD. Determining how far the same inferential mechanism, and the same treatment levers, extend across migraine, IBS, fibromyalgia, and pelvic pain.11
The throughline is a shift in the explanatory target of pain medicine — from the tissues to the inference — and a corresponding shift in treatment, from managing a symptom to retraining a prediction. The accumulating controlled evidence suggests the shift is not only conceptually coherent but clinically consequential.
References.
Numbered to match the footnote citations throughout. Identifiers (PMID / DOI) are provided for retrieval via PubMed.
"From the tissues, to the inference."
This handbook is a research and educational synthesis. It does not constitute medical advice, and the framework it describes applies to primary/nociplastic and psychophysiologic pain after appropriate medical evaluation has excluded structural and systemic disease.
Clinical decisions remain the responsibility of qualified practitioners.