AI for Substance Use and Overdose Prevention
AI can support identification and treatment outreach, but the strongest recent implementation evidence is observational. In a prospective pre/post evaluation, patients who received an addiction consultation had 47% lower adjusted odds of 30-day readmission than eligible patients who did not receive one; overall hospital readmission did not significantly change, and the design does not establish that the NLP screening system caused the difference (Afshar et al., 2025). Medicaid-claims models and wastewater surveillance provide additional population signals, with important limits in transportability, privacy, stigma, and treatment capacity.
AI applications span the substance use continuum. Readers will learn to:
- Evaluate EHR-based risk models for opioid use disorder identification
- Compare published prediction studies for alcohol misuse, youth substance-use detection, and cigarette cessation with overdose-risk models
- Understand PDMP-integrated AI tools and their validated accuracy metrics
- Assess digital therapeutics for addiction treatment and their evidence base
- Apply 42 CFR Part 2 privacy requirements for substance use data
- Distinguish demonstrated capabilities from theoretical applications
- Identify implementation barriers specific to addiction medicine contexts
- Apply surveillance AI for real-time overdose spike detection
Prerequisites: Machine Learning Fundamentals, The Data Problem, Ethics, Bias, and Equity.
Introduction
The overdose crisis remains a major public-health burden. U.S. drug-overdose deaths peaked near 108,000 in 2022 and declined substantially by 2024 (CDC, 2026). Prescription opioids were followed by heroin and illicitly manufactured fentanyl, which is now found across multiple drug markets, but prevalence varies by place and substance.
Machine-learning models can estimate overdose risk, treatment discontinuation, and community-level drug trends. A 2025 prospective pre/post evaluation associated addiction consultation after NLP-supported screening with lower adjusted readmission odds among patients receiving consultation, but did not show a significant change in overall hospital readmission or establish causality.
However, substance-use AI faces distinct implementation barriers. Part 2 protections apply to records created by federally assisted Part 2 programs and can complicate linkage and reuse; applicability is record- and program-specific rather than universal to all substance-use information. Stigma amplifies harm from false positives. Most critically, treatment capacity constraints mean that identifying high-risk patients accomplishes nothing if no treatment slots exist.
AI applications span prevention, identification, treatment, and surveillance. The evidence base includes observational implementation and external-validation studies, distinguished from theoretical applications, alongside the regulatory, ethical, and practical challenges specific to this domain.
The AI Opportunity in Substance Use Prevention
In 2023, 105,007 Americans died from drug overdoses in final national data, down from 107,941 in 2022, followed by a substantial decline in 2024 (CDC, 2024; CDC, 2026). Synthetic opioids, primarily illicitly manufactured fentanyl, drove most deaths, but burden varies by place and substance.
AI offers potential interventions at multiple points:
| Intervention Point | AI Application | Current Evidence |
|---|---|---|
| Prevention | Identify high-risk prescribing patterns | Claims-based models externally validated for defined short-term overdose endpoints |
| Identification | Screen hospitalized patients for OUD | Prospective pre/post implementation evidence; no causal overall readmission reduction shown |
| Treatment | Predict medication adherence, relapse risk | Limited validation studies |
| Surveillance | Detect community overdose spikes | Demonstrated in wastewater, EMS data |
| Harm Reduction | Optimize naloxone distribution | Theoretical, emerging evidence |
The Unique Challenges of Substance Use AI
Substance use AI faces barriers distinct from other clinical AI applications:
Stigma amplifies harm from errors: False positives in cancer screening cause anxiety. False positives for opioid misuse can trigger discrimination, loss of pain treatment, and criminal justice involvement.
Part 2 has a specific scope: 42 CFR Part 2 applies to records created by federally assisted Part 2 programs; duties depend on the record, program, consent, and proposed use.
Treatment capacity constraints: Identifying patients is insufficient when treatment access is delayed or unavailable.
Shifting drug supply: Models trained on prescription opioid patterns may not generalize to illicit fentanyl, which now dominates overdose deaths.
Overdose Prediction and Prevention
EHR-Based Risk Models
Electronic health record data contains signals predictive of overdose risk. AI models analyze clinical notes, diagnoses, prescriptions, and utilization patterns.
University of Wisconsin NLP-Supported Screening Evaluation
A 2025 prospective pre/post evaluation published in Nature Medicine assessed NLP-supported screening and addiction consultation (Afshar et al., 2025):
Design:
- 51,760 hospitalizations across a 16-month preimplementation period and an 8-month postimplementation period
- AI analyzed EHR documentation in real time using convolutional neural networks
- High-risk patients triggered alerts recommending addiction medicine consultation
Results:
- Among eligible patients, those who received addiction consultation had 47% lower adjusted odds of 30-day readmission than those who did not
- Overall hospital readmission did not significantly change between the preimplementation and postimplementation periods
- The nonrandomized pre/post design does not establish that the NLP system caused the consultation or readmission difference
Multimodal substance-misuse screening from clinical notes
Substance-misuse prediction includes alcohol and non-opioid drug endpoints as well as opioid overdose. Afshar and colleagues developed SMART-AI, a retrospective multilabel convolutional neural network that screened the first 24 hours of inpatient EHR notes for alcohol misuse, opioid misuse, and non-opioid drug misuse. The Alcohol Use Disorder Identification Test and the Drug Abuse Screening Tool were the reference standards. In temporal validation the mean AUROC was 0.97, and on external validation at Loyola University Medical Center in Chicago the AUROCs were 0.88 for alcohol misuse and 0.94 for opioid misuse; an external AUROC for non-opioid drug misuse was not reported (Afshar et al., 2022, Lancet Digital Health). An external validation of a publicly available alcohol NLP classifier at an independent Midwestern center reported an AUROC of 0.91 for unhealthy alcohol use in the first 24 hours of notes, with specificity 0.98 and a positive predictive value of 0.35 at a threshold of 0.5 (Lin et al., 2022, Addiction). Note-based models identify alcohol and multimodal substance misuse with published discrimination metrics, in addition to opioid overdose risk from claims or PDMP features. Discrimination is not a treatment effect. Hospitals still need a defined referral pathway, Part 2 scope review where applicable, and capacity to act on true positives.
Pediatric substance-use signals in the EHR
Adolescent substance use is often documented in free text rather than structured fields. Ni and colleagues combined logic rules with NLP and deep learning on retrospective structured and narrative pediatric EHR data for patients aged 10 to 20 years. The integrated system had an AUROC of at least 0.957 across alcohol, tobacco, marijuana, and opiate labels for lifetime, current, and family use (Ni et al., 2021, JAMIA). The work is a detection and phenotyping study, not a prospective trial of prevention outcomes. Youth substance-use screening is uneven, and models trained only on adult opioid claims miss this population.
Predicting cigarette cessation in a national cohort
Machine learning has been applied to population survey data on tobacco cessation as well as to clinical notes. Using PATH waves 1 to 3 among adult current established smokers, a random-forest model with bagging predicted next-wave cigarette cessation with balanced accuracy of 72% on held-out data (sensitivity 73%, specificity 71%) (Issabakhsh et al., 2023, PLOS One). The same approach had accuracy of 70% when applied to the next wave pair (Issabakhsh et al., 2023, PLOS One). Of 9,281 wave 1 established smokers, 710 had quit by the next wave (Issabakhsh et al., 2023, PLOS One). Higher predicted cessation was associated with more e-cigarette use in the past 30 days, fewer cigarettes in the past 30 days, age older than 18 at initiation, and fewer years of smoking (Issabakhsh et al., 2023, PLOS One). This is survey-based prediction of cessation. It does not show that an intervention based on the score improves quit rates. Smoking-cessation apps are discussed in AI-Driven Behavioral Interventions in Public Health.
PDMP-Integrated AI
Prescription Drug Monitoring Programs (PDMPs) track controlled substance prescriptions across all dispensers in a state. AI models built on PDMP data can identify high-risk patterns.
Medicaid Claims Overdose Prediction Model
Researchers developed and externally validated a machine-learning model using Medicaid claims (Lo-Ciganic et al., 2022, Lancet Digital Health):
Data:
- 284 candidate predictors from Pennsylvania Medicaid claims
- Training cohort: Pennsylvania, 2013–2016
- External validation: later Pennsylvania and Arizona cohorts
- Endpoint: hospital or emergency-department overdose in the next three months
Model:
- Gradient boosting machine
- Performance and thresholds varied across validation cohorts; the model did not predict fatal overdose and was not a PDMP product
Key predictors:
- Morphine milligram equivalents (MME) prescribed
- Number of prescribers
- Number of pharmacies
- Overlapping opioid and benzodiazepine prescriptions
- History of medication for opioid use disorder
“PDMP-generated risk scores are created by algorithms in software applied to patient information. Such scores have not been validated against clinical outcomes such as overdose and should not take the place of clinical judgment.”
This applies to commercial tools like NarxCare. Research models with published validation (like the Pennsylvania study) have demonstrated predictive validity, but most deployed commercial tools lack such validation.
Commercial PDMP Tools: A Critical Assessment
NarxCare (Bamboo Health) is embedded in most state PDMPs and generates “Overdose Risk Scores.” However:
- Peer-reviewed validation is limited. A cross-sectional study in 19 pharmacies found fair concurrent validity of the PDMP Narcotic Score against the WHO ASSIST screening test, not against overdose (Cochran et al., 2021). A 2023 JAMIA perspective found the three public studies of the Overdose Risk Score limited to small cohorts from Ohio, Indiana, and Michigan and noted that the score has never been clinically evaluated (McElfresh et al., 2023).
- Clinicians report using scores to justify denying pain treatment
- Civil liberties groups have raised concerns about algorithmic discrimination
Evidence gap: Despite widespread deployment, no published clinical trial demonstrates NarxCare reduces overdoses. The tool may reduce prescribing without reducing harm, or shift patients to illicit markets.
A 2026 study in npj Digital Medicine reinforces this concern: Wang et al. replicated NarxCare-aligned feature sets across PDMP and claims data and found precision ranging from 0.01 to 0.32, far below the vendor-reported benchmark of 0.75. The authors conclude that commercial tool opacity makes independent bias auditing impossible and call for mandatory transparency requirements in AI-based clinical decision support regulation (Wang et al., 2026).
Treatment Optimization
Medication-Assisted Treatment (MAT) Adherence
Medications for opioid use disorder (MOUD), including buprenorphine, methadone, and naltrexone, are highly effective, but adherence is challenging. AI models attempt to predict treatment discontinuation.
Current evidence:
- Multiple studies develop predictive models for MOUD discontinuation
- Features include demographics, prior treatment episodes, co-occurring disorders
- Validation typically limited to single health systems
- No published trials demonstrate that predictions improve retention
The intervention gap: Models can estimate who is likely to discontinue treatment. What to do with that prediction is unclear. Evidence-based interventions for improving MAT retention are limited.
Relapse Prediction
AI researchers have attempted to predict substance use relapse using:
- Ecological momentary assessment (EMA): Smartphone-based mood, craving, and context reporting
- Passive sensing: GPS, accelerometer, phone usage patterns
- Social media analysis: Language patterns on public posts
Evidence status: Research-stage. Studies demonstrate correlation between digital biomarkers and relapse, but no clinical trials show prediction-based interventions improve outcomes.
Demonstrated: AI can estimate relapse risk from digital data in research studies
Not demonstrated: Acting on predictions improves outcomes
The gap is significant. Alerting someone that they are “high risk for relapse” could be helpful, harmful, or neutral; current evidence does not show which.
Digital Therapeutics for Addiction
Prescription digital therapeutics for substance use disorders have received FDA marketing authorization:
reSET and reSET-O (Pear Therapeutics, company dissolved 2023):
- Prescription digital therapeutics for SUD and OUD
- Cognitive behavioral therapy delivered via app
- FDA authorized based on submitted clinical evidence
- Company bankruptcy in 2023 left patients without access
Lessons from the Pear Therapeutics failure:
- Clinical evidence does not guarantee commercial viability
- Digital therapeutics require ongoing maintenance and support
- Patients lose access when companies fail
- Business model sustainability matters for public health tools
Current landscape: The digital therapeutics for addiction space remains fragmented. Academic-developed tools (like A-CHESS) continue in research contexts, but commercial products face reimbursement and adoption challenges.
Surveillance Applications
Wastewater-Based Epidemiology
Wastewater surveillance can detect drug metabolites at the community level without individual testing, but it does not eliminate group privacy or stigma risks, particularly in small or identifiable sewersheds.
How it works:
- Collect samples from wastewater treatment plants
- Analyze for drug metabolites (fentanyl, methamphetamine, cocaine, etc.)
- Normalize by population biomarkers (caffeine, creatinine)
- Track trends over time and compare across communities
AI applications:
- Time series forecasting of drug trends
- Anomaly detection for sudden changes (new drug introduction)
- Spatial analysis linking wastewater data to overdose hotspots
Advantages:
- Population-level data without individual identification
- Captures drug use by people not in the healthcare system
- Near-real-time (24–48 hour lag vs. weeks for overdose death data)
- Avoids individual testing, but small or identifiable catchments can create group privacy and stigma concerns
Limitations:
- Infrastructure requirements (access to treatment plant samples)
- Cannot distinguish therapeutic use from misuse
- Geographic resolution limited to sewershed
Emergency Department Syndromic Surveillance
ED chief complaints and triage notes can signal overdose surges before death data becomes available.
ESSENCE (Electronic Surveillance System for the Early Notification of Community-based Epidemics):
- CDC-developed syndromic surveillance platform
- Analyzes ED visit data in near-real-time
- Includes overdose syndrome category
AI enhancements to syndromic surveillance include:
- NLP classification of free-text chief complaints
- Anomaly detection for geographic/temporal clusters
- Forecasting models to anticipate resource needs
EMS Naloxone Administration
Emergency medical services data on naloxone (Narcan) administration provides another real-time signal:
- Each administration indicates suspected opioid overdose
- GPS data enables geographic clustering
- Timestamp data enables temporal pattern detection
Several jurisdictions use EMS naloxone data for:
- Directing mobile outreach resources
- Alerting harm reduction organizations
- Triggering public health advisories
Implementation Challenges
The 42 CFR Part 2 Privacy Framework
Records created by federally assisted substance-use-disorder programs covered by Part 2 receive specific protections under 42 CFR Part 2. Not every mention of substance use in a health record is a Part 2 record.
2024 final rule timeline: The final rule took effect April 16, 2024, and persons subject to the regulation have been required to comply since February 16, 2026 (HHS, Feb 2024). From that date, the HHS Office for Civil Rights accepts complaints and breach notifications for Part 2 records, the first time civil enforcement mechanisms have been available for them; investigations may end in resolution agreements, monetary settlements, corrective action, or civil money penalties, which align with HIPAA penalties (HHS OCR, Feb 2026).
Key provisions (2024 final rule):
| Part 2 question | 2024 final-rule boundary |
|---|---|
| Scope | Records created by federally assisted Part 2 programs, not all substance-use information |
| TPO consent | A single consent may authorize future treatment, payment, and health-care operations uses and disclosures |
| Redisclosure | HIPAA-regulated recipients may redisclose records under HIPAA after a valid TPO consent, subject to the final rule’s conditions |
| Counseling notes | Receive protections analogous to HIPAA psychotherapy notes |
| Breach and enforcement | Several requirements and penalties are aligned with HIPAA |
2024 updates (compliance required by February 16, 2026):
- Single consent for treatment, payment, and healthcare operations now permitted
- Aligns notice requirements with HIPAA Notice of Privacy Practices
- Redisclosure rules depend on the recipient, consent, purpose, and whether HIPAA applies
- SUD counselor notes receive protections analogous to psychotherapy notes
Implications for AI:
- Determine whether the source records were created by a Part 2 program
- Map consent, recipient, purpose, redisclosure, and data-linkage authority before use
- Determine whether model inputs or outputs retain protected Part 2 information
- Apply institutional privacy, security, and de-identification review in addition to technical controls
Stigma and Discrimination Risks
AI for substance use carries unique risks of harm:
Treatment denial: Patients flagged as “high risk for opioid misuse” may be denied appropriate pain treatment, even when they do not have an opioid use disorder.
Criminal justice: Unlike other medical conditions, substance use can trigger legal consequences. AI predictions could inform decisions about probation, parole, or prosecution.
Employment/insurance: Despite ADA protections, discrimination against people with substance use disorders remains common. AI-generated risk scores could leak into non-medical contexts.
Trust erosion: Patients who learn their records are analyzed by AI may withhold information, harming both their care and data quality for future models.
Treatment Capacity Mismatch
Identifying at-risk patients has limited value without treatment access:
- Buprenorphine: DEA X-waiver removed in 2023, but many providers still do not prescribe
- Methadone: Only available through federally licensed opioid treatment programs, with limited geographic availability
- Residential treatment: Wait times can delay admission
- Outpatient counseling: Insurance coverage and workforce shortages limit access
The equity paradox: AI may be most accurate for populations with extensive healthcare data, but those populations often already have treatment access. The populations most in need (uninsured, rural, justice-involved) are underrepresented in training data and underserved by the healthcare system.
Regulatory and Policy Landscape
NIDA HEAL Strategic Plan FY 2025-2029
The National Institute on Drug Abuse’s HEAL Opioid Use Disorder and Overdose Strategic Plan includes specific AI priorities:
“Utilize data, monitoring, technology, and Artificial Intelligence (AI) to identify and inform the deployment of interventions for populations at high-risk of opioid use and overdose.”
Specific objectives include:
- Develop real-time or near-real-time substance use monitoring
- Mine EHR, clinical trial data, digital health devices, and social media
- Optimize clinical data standards for AI research
- Address challenges in pain management alongside OUD treatment
FDA Regulation of Addiction AI
FDA regulates AI/ML-based software as a medical device (SaMD) when it is intended for diagnosis or treatment recommendations:
Historical authorization:
- FDA authorized reSET and reSET-O as prescription digital therapeutics; Pear Therapeutics later ceased operations, so authorization history should not be read as current commercial availability (FDA, 2017)
- Clinical decision support tools (various)
Regulatory considerations:
- Prospective clinical trial evidence strengthens a marketing submission
- Post-market surveillance requirements
- Algorithm change protocols (predetermined change control plans)
State-Level PDMP Mandates
All 50 states plus DC now operate PDMPs, with varying AI integration:
- Some states mandate PDMP checks before prescribing
- NarxCare or similar risk scores displayed in most state systems
- Data sharing agreements between states are inconsistent
- Clinical decision support rules vary by state
Evaluation Framework
When assessing substance use AI, consider:
1. Validation Rigor
| Question | Red Flag | Green Flag |
|---|---|---|
| Was external validation performed? | Single-site internal validation | Multi-site prospective validation |
| Is the validation population published? | “Representative sample” (vague) | Specific demographics, timeframe, setting |
| Were outcomes clinically meaningful? | AUC only | Clinical outcomes (overdose, treatment retention) |
2. Equity Assessment
| Question | Red Flag | Green Flag |
|---|---|---|
| Were subgroup analyses performed? | “No significant differences” without data | Published performance by race, SES, insurance |
| Are high-risk populations represented? | Insured patients only | Includes Medicaid, uninsured |
| Were justice-involved populations considered? | Not mentioned | Explicit analysis of carceral settings |
3. Implementation Readiness
| Question | Red Flag | Green Flag |
|---|---|---|
| Is 42 CFR Part 2 compliance addressed? | Not mentioned | Scope, authority, consent where applicable, recipient, and redisclosure are mapped |
| Are workflow integration plans described? | “Alert-based” without details | Usability testing, alert burden analysis |
| Is treatment access coupled to identification? | Identification only | Linked to treatment navigation |
Key Takeaways
The 2025 Nature Medicine evidence is prospective but nonrandomized. Patients receiving addiction consultation had 47% lower adjusted readmission odds than eligible patients without consultation, while overall hospital readmission did not significantly change.
Claims-based models can estimate near-term overdose risk. Lo-Ciganic et al. predicted hospital or emergency-department overdose in the next three months using Medicaid claims and external validation; this evidence does not validate commercial PDMP scores.
Published prediction studies cover alcohol misuse, youth detection, and cigarette cessation. SMART-AI and a related alcohol classifier report note-based discrimination; a pediatric EHR system detects substance-use labels; a PATH model predicts next-wave cessation. None of these results is a treatment effect.
42 CFR Part 2 creates record- and program-specific data duties. Updated regulations permit a single TPO consent and align several provisions with HIPAA, but AI implementations still must verify scope, consent, recipients, and redisclosure.
Treatment capacity must match identification capacity. Identifying at-risk patients without ensuring treatment access raises ethical concerns and limits clinical benefit.
Stigma amplifies harm from false positives. Substance-use predictions can trigger discrimination, criminal-justice involvement, and treatment denial. Threshold selection should reflect the relative harms of false positives and false negatives for the specific intervention.
Wastewater surveillance avoids individual testing, not every privacy concern. Small or identifiable catchments can create group privacy and stigma risks.
Digital therapeutics face sustainability challenges. Pear Therapeutics ceased operations after receiving FDA authorization for prescription digital therapeutics. Product continuity and access require attention alongside regulatory status.
The NIDA HEAL Strategic Plan FY 2025–2029 prioritizes AI. Federal research priorities include real-time monitoring, EHR mining, and AI deployment for high-risk populations.
Further Resources
Official Guidance
- 42 CFR Part 2 Final Rule Fact Sheet - HHS explanation of 2024 updates
- CDC PDMP Clinical Guidance - CDC guidance on PDMP use
- NIDA HEAL Strategic Plan FY 2025-2029 - Federal AI priorities for OUD
Key Research
- Afshar et al., 2025, Nature Medicine - Prospective pre/post evaluation of NLP-supported screening and addiction consultation
- Afshar et al., 2022, Lancet Digital Health - SMART-AI multilabel screening of inpatient notes for alcohol, opioid, and non-opioid misuse
- Lin et al., 2022, Addiction - External validation of an alcohol NLP classifier
- Ni et al., 2021, JAMIA - Detection of substance-use information in pediatric EHRs
- Issabakhsh et al., 2023, PLOS One - Machine-learning prediction of cigarette cessation in PATH
- Lo-Ciganic et al., 2022, Lancet Digital Health - Medicaid claims-based overdose prediction validation
Professional Organizations
- SAMHSA - Substance Abuse and Mental Health Services Administration
- ASAM - American Society of Addiction Medicine
- Legal Action Center - 42 CFR Part 2 guidance for practitioners