Machine learning prediction of substance use at discharge from completed treatment in TEDS-D

Source article: Utilizing categorical boosting and SHAP to understand key predictors of frequency of use at discharge for completed substance abuse treatments in TEDS-D

Background: Substance use disorder is a pressing US public health crisis, with 48.7 million people reporting past-year substance use and over 100 000 overdose deaths in 2022. Building on a growing body of machine learning research using the SAMHSA treatment episode Data set-discharges (TEDS-D), this study introduces frequency of use at discharge as an outcome variable and the inclusion of U.S. state as a predictor. Research Design and Methods: First, reason for discharge was evaluated as a dependent variable and…

Utilizing categorical boosting and SHAP to understand key predictors of frequency of use at discharge for completed substance abuse treatments in TEDS-D
An Audit Report on the Department of Criminal Justice's Oversight of Selected Providers That Deliver Residential Services and Substance Abuse Treatment Programs by Texas. Office of the State Auditor; Keel, John. Public domain
Trace impact readingContested
P 65The P score combines the specificity and measured human impact of the grounded problem claim with the strength of this Trace’s cited sources.

Both sides are scored from claims and sources, not community votes.

G 68The G score combines the specificity and measured human impact of the grounded gain claim with the strength of this Trace’s cited sources.

In brief

Researchers trained a categorical boosting model on about 2.4 million completed treatment episodes from the 2015-2019 national discharge data set to predict how often clients used substances at discharge. They used SHAP to rank which of 62 variables mattered most and compared state-specific models with the national one.

The work matters because completing treatment did not guarantee good outcomes, and the findings suggest that where and how treatment is delivered shapes results. Reporting inconsistencies across states could distort national comparisons, and the analysis is based on administrative data from 2015-2019, so its use for current decisions remains to be shown.

Main points

  1. Treatment completion gave higher no-use rates at discharge than dropout (45% vs 28%).
  2. Among completed episodes, 25% reported active substance use, 9% homelessness and 50% unemployment at discharge.
  3. The four most important features were use frequency at admission, state of treatment, length of stay and service type.
  4. Long-term residential rehabilitation had the lowest SHAP values and lowest predicted probability of use at discharge.
  5. The Hawai'i case study found elevated predicted probability of use at discharge for younger clients.

The gain

A boosted-tree model with SHAP explanations predicted substance use frequency at discharge with strong accuracy and showed that treatment and geographic factors, not patient attributes, mattered most, giving a basis for tailoring treatment.

The problem

State-level models agreed only moderately with the national model, and federal data substantially underreported some treatment modalities in Hawai'i, which complicates national benchmarking and may obscure true drivers of recovery.

The rundown

The study used 2,411,351 completed treatment episodes from 2015-2019 and 62 predictor variables. It first compared reason for discharge with frequency of use at discharge as the outcome, then built the main prediction model around frequency of use.

SHAP supplied both global feature importance and explanations of individual predictions. State-level models were compared with the national model through rank-biased overlap, which averaged 0.59 and ranged from 0.30 to 0.73.

A Hawai'i case study showed how state-level decision support could work. It highlighted younger clients at higher risk and found that long-term residential and therapeutic community treatment were substantially underreported in federal data.

What this doesn’t fix

State-level models showed only moderate agreement with the national model, and underreporting in federal data means national benchmarks may not reflect the true drivers of recovery.

Sources

  1. Peer-reviewedMachine Learning: Health2026-10-07

The debate