Bayesian Causal Atlas · Vol. Pain · Pearl Structural Causal Model

Chronic Pain & Headache — Structural Causal Analysis

Chronic pain affects roughly 50 million United States adults and migraine ~40 million. Beyond suffering, chronic pain drives disability and deconditioning, depression and suicide, and — critically — opioid dependence and overdose death. This oracle estimates the causal reduction in pain — the shared mediator — achievable by combining non-opioid and opioid therapies, using effect sizes from named trials. The opioid competing-harm path is modelled explicitly; downstream disability/mortality links are partly observational. For clinical education, not individual medical advice.

Method. Structural Causal Model (SCM) with backdoor adjustment (Pearl). Interventions are not assumed independent: their heavy mechanistic overlap (nearly all act by reducing pain sensitization / intensity) is removed by an eigenvalue-corrected equicorrelation model at an adjustable mean cross-correlation ρ̄ (default 0.30). Robustness to unmeasured confounding is quantified per intervention with the E-value. Probabilities of Necessity / Sufficiency (PN / PS / PNS) are reported under a monotonicity assumption. Every hazard ratio is cited to its source trial — no effect size is invented.
ρ̄ = 0.30
A–D (all)
A high (RCT/meta) · B cohort · C case-series/modelled · D consensus/provisional. Lower-grade interventions are excluded from the DAG, front-door pooling, Pareto, Monte‑Carlo & sensitivity.

Interventions

Tick the interventions to combine. Each shows its trial hazard ratio, 95% confidence interval (CI), E-value, mechanism, and citation. ★ = in the current Pareto effective set but not yet ticked.

Combined causal estimate

Headline is the front-door estimate: shared pain-mediator overlap removed via dose-response saturation; residual direct-effect overlap removed via the eigenvalue model at ρ̄.

1.00
Combined HR
0%
Relative risk ↓
Pooled E-value
Interventions selected (k)
0
Effective independent dimensions (n_eff)
0
Redundancy discount applied
0%
Baseline 10-yr risk (illustrative anchor)
Absolute risk after intervention
Absolute risk difference (RD)
Backdoor-only HR (no front-door)
Mediator (weight) overlap removed
Number needed to treat (NNT)

Causal attribution

Under monotonicity + exogeneity (E-value bounds the exogeneity assumption).

Probability of Necessity (PN)
Probability of Sufficiency (PS)
Prob. of Necessity & Sufficiency (PNS, lower bound)
Causal DAG
Cross-correlation
Pareto (threshold)
Monte Carlo
Front-door mediation
What-if / If-not-for
Sensitivity
Antithesis

Faithful causal directed acyclic graph (DAG). Each therapy is a distinct node; most act through the shared mediator pain sensitization / intensity, which drives disability / deconditioning and depression → suicide, both routes to mortality. Physical therapy and cognitive behavioural therapy also act independently of pain (on function and mood). Opioids are double-edged: they reduce pain, but carry a competing-harm path to dependence / overdose. Named confounders open back-door paths (adjusted). Illustrative of structure, not yet the identification engine.

Confounders U:age · pain chronicity · psychiatric history · substance-use history · socioeconomic status · disability / litigation status → back-door paths (adjusted)CGRP monoclonal antibodySNRI / tricyclicGabapentinoidPhysical therapy / exerciseCognitive behavioural therapyOpioid analgesicPain sensitization/ intensity ↓Disability /deconditioningDepressionSuicideOpioid dependence/ overdoseMortality (Y)Front-door: through pain reductionPain-independent (function / mood)Competing harm: opioid dependenceBack-door (adjusted)

Eigenvalue diagnostics for the selected interventions under an equicorrelation matrix (off-diagonal ρ̄). A large λmax relative to k signals redundancy; n_eff is the effective number of independent interventions actually contributing.

k (selected)
0
λmax
λmin
n_eff = (Σλ)² / Σλ²
Condition number

On mechanistic grounds ρ̄ ≈ 0.30 is defensible for this domain: incretin drugs, surgery, diet, and activity overwhelmingly share the weight-loss / insulin-sensitivity pathway, so ~30% of their nominal effects overlap. A mediation analysis of semaglutide found ~80% of its MACE benefit is not mediated by weight loss, which is why ρ̄ is user-adjustable rather than fixed.

Minimum-effective-set analysis. Set a target combined risk reduction; the model finds the smallest set of interventions — accounting for front-door mediator overlap — that reaches it, and highlights them. If the target exceeds what all interventions together can achieve, the full set is shown (never an empty one). "Apply" ticks exactly that set.

Target combined risk ↓ ≥ 50%

Monte Carlo propagation. Each selected intervention's log-hazard-ratio is sampled from a normal distribution implied by its 95% CI; samples are combined with the same eigenvalue overlap discount. 5,000 draws.

Median combined HR
95% simulation interval
Standard deviation of combined HR
P(combined HR < 0.90)

Antithesis — challenging this oracle's own conclusions

Opioids are NOT superior long-term. The randomised SPACE trial found opioids no better than non-opioid medication for chronic back / osteoarthritis pain over 12 months — while causing dependence, overdose and opioid-induced hyperalgesia. The opioid pain hazard ratio here is short-term analgesia only, and the diagram routes its dominant effect through the competing-harm path.
The endpoint is a surrogate. Pain relief and responder status predict less disability and depression, but the suicide and mortality translations are observational. Pain, depression and mortality also share upstream causes (the back-door), so associations overstate the causal effect.
Migraine and chronic pain are different problems. CGRP antibodies, topiramate and onabotulinumtoxin are migraine-specific; gabapentinoids, SNRIs, opioids and blocks target chronic pain. A pooled "combined" estimate only applies to a patient who genuinely has both.
Non-drug therapies are undersold by a pain HR. Exercise and cognitive behavioural therapy have modest effects on pain intensity but larger, partly pain-independent effects on function and mood — which is why the graph gives them separate gold arrows and the front-door layer does not discount them against the analgesics.
Gabapentinoids are not benign. Pregabalin and gabapentin carry misuse potential and, combined with opioids or sedatives, raise the risk of respiratory depression — a harm not captured by their analgesic hazard ratio.

What-if — the do-operator: P(Y | do(S))

Intervening on the selected set S with Pearl's do-operator (setting the interventions, not merely observing them). Contrast against do(∅) = no intervention.

P(mortality | do(∅)) — baseline
P(mortality | do(S)) — intervened
Absolute risk reduction (ARR)
Number needed to treat (NNT)

If-not-for — but-for counterfactual (leave-one-out)

For each intervention: "if not for this one, the combined front-door hazard ratio would be…". Isolates each intervention's marginal causal contribution after mediator-overlap removal, so shared-pathway agents are not double-credited.

If not for…HR without itHR with full setmarginal RRR lost

One-at-a-time sensitivity. Each intervention's hazard ratio is swung across its 95% confidence interval (others held at point estimate); the bar is the resulting swing in the combined front-door HR. A long bar means the combined estimate leans heavily on that single trial's precision.

Optimistic bound (all HRs at CI-low)
Point estimate
Pessimistic bound (all HRs at CI-high)
Pooled E-value (confounding robustness)

Front-door (mediation) decomposition. Most pain therapies act through one shared mediator — reduction of pain sensitization / intensity. Each log-effect is split into a pain-mediated (indirect) and a pain-independent (direct) part. Indirect parts are pooled through the mediator with dose-response saturation (pain relief saturates — stacking a third analgesic on two others yields diminishing returns), removing the mediator cross-correlation; direct parts keep the residual eigenvalue correlation at ρ̄. Cognitive behavioural therapy and exercise, whose effects on mood and function are partly pain-independent, are therefore NOT fully discounted for overlap with the analgesics. The opioid competing-harm is a SEPARATE path, not netted into the pain hazard ratio.

Mediator saturation cap = 60% pain ↓
Sum of standalone pain reduction (naive)
Combined pain reduction after saturation
Mediator overlap removed (1 - saturation)
Direct-effect redundancy removed (1 - n_eff/k)
Front-door combined HR
Backdoor-only combined HR (comparison)
InterventionHR%pain↓pain-medindirect logHRdirect logHR

Which % of cross-correlation is appropriate? Not one number. The mediator overlap is fixed empirically by the pain-relief saturation (currently removing of the summed pain-mediated effect when analgesics are stacked). Note a domain caveat: migraine-specific agents (CGRP antibody, topiramate, onabotulinumtoxin) and chronic-pain agents only combine in a patient with both syndromes. Pain-mediated fractions are transparent, adjustable priors.

Front-door caveat (antithesis): the cited endpoint is pain relief / responder status — a surrogate. The disability, depression, suicide and mortality translations are partly observational. Critically, the opioid pain hazard ratio reflects SHORT-TERM analgesia only: the randomised SPACE trial found opioids no better than non-opioids over 12 months, so a favourable opioid pain HR must be read alongside its competing-harm path, not instead of it.

Executive summary

Select interventions to generate a plain-language summary.