The Alcoholic Mind Model (AMM) is an interpretable behavioral simulation engine designed to explore how alcoholism, relapse pressure, recovery engagement, support utilization, and life stability interact over time.
AMM is an interpretable, equation-based computational model that simulates how emotional accumulation, rumination, mental pressure, recovery engagement, social support, and external life stability interact over time in the context of alcohol use disorder and recovery.
The model is grounded in established addiction research literature — including the work of George E. Vaillant and others — and is designed to produce structured, explainable outputs without machine-learning or black-box inference.
AMM models addiction and recovery through interacting subsystems, each governed by interpretable differential equations with fixed constants and no opaque machine-learning layers.
Resentment, unresolved emotional load, and guilt build over time and decay slowly. This is the primary input to the rumination loop.
Unresolved emotional load feeds into a self-reinforcing rumination cycle. Without intervention, this loop amplifies mental pressure.
The accumulated output of emotional load and rumination. High mental pressure drives relapse risk and behavioral-state transitions.
A modeled probability of consuming alcohol on any simulated day, driven by mental pressure, emotional load, and moderated by recovery engagement and external stability.
Recovery stability S(t), resilience buffer B(t), and recovery momentum G(t) grow through engagement, sponsor contact, meeting attendance, and support utilization.
A six-state finite-state machine models discrete behavioral modes. Users transition probabilistically between states depending on internal and external conditions.
Sponsor contact, meeting attendance, daily recovery actions, and amends work are modeled as recovery inputs that reduce risk and build stability.
Purpose/work stability, family/home stability, and support network density are modeled as independent dimensions that moderate relapse risk and state transitions.
Vaillant-informed typologies (stable recovery, chronic relapse, late-onset, etc.) are reconstructed as event timelines and compared against simulated trajectories.
Every variable in AMM is tracked continuously over simulated time so modeled behavior can be reviewed, tested, and explained.
εR(t)M(t)C(t)S(t)B(t)G(t)P(t)F(t)N(t)ESI(t)AMM models behavioral states as a six-state finite-state machine. Users transition probabilistically between states depending on internal pressure, recovery engagement, support utilization, and life stability. State transitions are not deterministic — identical conditions can yield different outcomes, which is consistent with real human behavior.
Sustained engagement in recovery. Low mental pressure, high recovery stability, active support utilization.
Low engagement, no active use, but little active recovery work. Modeled pressure accumulates gradually.
Elevated mental pressure with active contributing signals. A prompt to reconnect with support, not a forecast of use.
Actively consuming. The model does not moralize this state — it represents the biological reality of resumed use.
Post-use shame spiral. Emotional load spikes, isolation increases, recovery engagement drops sharply.
Re-engagement with recovery after a lapse. Fragile but oriented toward stability.
AMM has been tested with 200 synthetic users across 730 simulated days in multiple experimental runs. These are simulation results, not clinical data. They demonstrate model behavior, not real-world outcomes.
High engagement users showed materially lower relapse pressure and better stabilization than low engagement users in synthetic 200-user simulation runs:
Simulation result, not clinical prediction.
Across all simulated users and all days, the aggregate state occupancy reflects the difficulty of sustained recovery without active engagement:
Exploratory behavioral model comparison — These are simulation results, not clinical predictions.
Addiction does not occur inside a vacuum. Job stability, meaningful work, housing, safe relationships, and actual support utilization affect relapse and recovery trajectories. AMM models these dimensions explicitly.
Employment stability, daily structure, sense of meaning. Decays toward baseline when disrupted; grows slowly when stable.
Housing security, relationship safety, family support. Negative events (eviction, family conflict) produce sharp drops.
Quality and density of sober social connections. Stronger networks buffer relapse risk and accelerate state recovery transitions.
Weighted composite [0–100] of P, F, and N. Higher values correlate with lower relapse probability and faster recovery transitions in simulation.
Seed-controlled comparison (same 200 users, same 730 days, same RNG seed, external stability layer toggled):
These are simulation results, not clinical predictions. The magnitude of the effect depends on model parameters and synthetic user distributions. The direction of the effect is consistent with existing research on social determinants of recovery.
AMM was regression-tested against hand-authored, research-informed composite fixtures derived from George E. Vaillant's longitudinal alcoholism outcome studies (1983, 1995) and extended with findings from other recovery literature. These are not individual records or a held-out validation cohort.
AMM 1.0.0 is integrated into the Stillwater beta through an authenticated Supabase Edge Function. It processes normalized daily check-in inputs with the same deterministic dynamics as the independent /amm package and returns modeled-pressure output, contributing signals, and suggested protective actions.
The amm-analyze Edge Function accepts normalized check-in values, prior AMM state, journal text for transient deterministic scanning, and days-sober from authenticated check-ins. Analysis runs server-side; derived inputs and modeled-pressure outputs are written through the service role with no direct client write access.
AMM analysis is gated by authenticated AMM-tier access. The app checks subscription_tier and subscription_status via the user_has_amm_access() PostgreSQL helper. Free-tier users are blocked before any database writes (403). RLS policies enforce read-own-only on output tables.
Every risk output is tied to model_version_id (FK to amm_model_versions), enabling full auditability of which model version produced which result. The version table stores parameter snapshots as JSONB, deployment timestamps, and rollback references — supporting future model upgrades without breaking historical lineage.
A simulation framework generates synthetic users across 8 recovery archetypes (stable recovery, pink cloud newcomer, chronic relapser, dry drunk, sponsor-supported, isolated user, grief trigger, high-functioning hidden). Runs of 200 users × 90 days produce 18,000 risk observations per run with metrics, archetype validation, and anomaly detection.
The synthetic simulation pipeline generates six chart types — average risk by archetype, risk over time, risk state distribution, volatility, max risk, and individual sample trajectories — as both standalone SVG files and as a self-contained offline HTML dashboard with 7 interactive Chart.js charts.
Multi-line chart showing average risk score per day across all 8 archetypes. Reveals pink cloud late-life escalation, grief-trigger midpoint spikes, and isolated-user upward drift over 90-day windows.
Bar chart comparing mean risk scores. Chronic relapser (μ=0.44) and isolated user (μ=0.48) consistently highest; stable recovery (μ=0.09) lowest.
Stacked bar showing days classified as stable, moderate, elevated, or high per archetype. Chronic relapsers spend 91% of days in elevated+ states; stable recovery users spend 100% in stable.
Individual user trajectories (3 per archetype) plotted across full simulation window. Shows per-user volatility not visible in archetype averages — chronic relapsers oscillate rapidly while stable recovery users maintain flat low-risk profiles.
Infrastructure work, not clinical validation. These tools test model behavior and pipeline correctness. They do not evaluate, predict, or treat any individual's recovery outcome.
Below are selected simulation outputs from the AMM engine. Each chart is generated from synthetic data using internal simulation tooling.
These are the complete HTML simulation reports with embedded Chart.js visualizations. Each report is self-contained — open it in any browser to explore the full interactive data.
AMM is a privately developed research project. Researchers, clinicians, recovery professionals, and systems-modeling people interested in reviewing or critiquing the Alcoholic Mind Model are invited to reach out to Stillwater Systems for discussion.
Contact: jeff@alcoholicmindmodel.com
This project is guided by the following principles: