BACKGROUND: Early treatment discontinuation in substance use disorder treatment settings is common and often difficult to predict. We leveraged a machine learning approach (i.e., random forest) to identify individuals at risk for treatment attrition,...