From Clinical Trials to Real‐World Impact: Introducing a Computational Framework to Detect Endpoint Bias in Opioid Use Disorder Research
- 7 December 2025
- journal article
- Published by Wiley in Drug and Alcohol Review
- Vol. 45 (1) , e70085
Abstract
Introduction: Clinical trial endpoints are a ‘finite sequence of instructions to perform a task’ (measure treatment effectiveness), making them algorithms. Consequently, they may exhibit algorithmic bias: internal and external performance can vary across demographic groups, impacting fairness, validity and clinical decision‐making. Methods: We developed the open‐source Detecting Algorithmic Bias (DAB) Pipeline in Python to identify endpoint ‘performance variance’—a specific algorithmic bias—as the proportion of minority participants changes. This pipeline assesses internal performance (on demographically matched test data) and external performance (on demographically diverse validation data) using metrics including F1 scores and area under the receiver operating characteristic curve (AUROC). We applied it to representative opioid use disorder (OUD) trial endpoints. Results: F1 scores remained stable across minority representation levels, suggesting consistency in precision‐recall balance (F1) despite demographic shifts. Conversely, AUROC measures were more sensitive, revealing significant performance variance. Training on demographically homogeneous populations boosted internal performance (accuracy within similar cohorts) but critically compromised external generalisability (accuracy within diverse cohorts). This pattern reveals an ‘endpoint bias trade‐off’: optimising performance for homogeneous populations vs. having generalisable performance for the real world. Discussion and Conclusions: Consistently performing endpoints for one demographic profile may lose generalisability during population shifts, potentially introducing endpoint bias. Increasing minority representation in the training data consistently improved generalisability. The endpoint bias trade‐off reinforces the importance of diverse recruitment in OUD trials. The DAB Pipeline helps researchers systematically pinpoint when an endpoint may suffer ‘performance variance’ (i.e., bias). As an open‐source tool, it promotes transparent endpoint evaluation and supports selecting demographically invariant OUD endpoints.Keywords
Funding Information
- National Institutes of Health (1OT2OD032581‐01)
- National Institutes of Health (NIMHD FIU‐RCMI AWD000000009108)
- University of Miami
- University of Miami
- Johns Hopkins University
This publication has 27 references indexed in Scilit:
- Short-Acting, Full Agonist Opioids During Initiation of Opioid Agonist Treatment in the Fentanyl EraJAMA Network Open, 2024
- The path toward equal performance in medical machine learningPatterns, 2023
- Lack of Transparency and Potential Bias in Artificial Intelligence Data Sets and AlgorithmsJAMA Dermatology, 2021
- A Deeper Look at Dataset Bias2017
- Buprenorphine/Naloxone and methadone effects on laboratory indices of liver health: A randomized trialDrug and Alcohol Dependence, 2013
- Injectable extended-release naltrexone for opioid dependence: a double-blind, placebo-controlled, multicentre randomised trialThe Lancet, 2011
- What does recovery mean to you? Lessons from the recovery experience for research and practiceJournal of Substance Abuse Treatment, 2007
- Naltrexone for heroin dependence treatment in St. Petersburg, RussiaJournal of Substance Abuse Treatment, 2004
- Buprenorphine maintenance treatment of opiate dependence: a multicenter, randomized clinical trialAddiction, 1998
- A Controlled Trial of Buprenorphine Treatment for Opioid DependenceJAMA, 1992