Manuscript Offprint

arXiv:2609.40108

OverdoseMoE: A Multi-Expert Framework for Opioid Overdose Risk Prediction

Mingchen Li, Rohan Pandey, Junhui Qian, Feiyun Ouyang, Sunjae Kwon, Avijit Mitra, Zonghai Yao, Hong Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Opioid overdose remains a major clinical and public health burden, highlighting the need for scalable approaches to identify patients at high risk. Here, we investigate diagnosis-specific adaptation for 180-day opioid overdose risk prediction from patients' preceding one-year longitudinal ICD histories. We develop OOD-MAMBA and OODQWEN through continued pretraining on longitudinal diagnostic sequences followed by task-specific fine-tuning. Building on the stronger Qwen-based predictors, we further propose OVERDOSEMOE, a multi-expert framework that integrates models of different scales using complementary expert-weighting strategies. Diagnosis-specific adaptation consistently improved predictive performance over general-purpose language-model baselines, with OODQWEN achieving an AUPRC of 24.47 and an AUROC of 68.56. OVERDOSEMOE further improved discrimination and precision, achieving an AUPRC of 25.17 and an AUROC of 69.49 while outperforming the strongest single-model baselines. Among patients ranked in the top 5% of predicted risk, OVERDOSEMOE identified substantially enriched overdose risk, achieving a PPV of 25.38% while retaining meaningful recall. Evaluation on an independent MIMIC-IV cohort further demonstrated cross-cohort robustness, with complementary weighting strategies showing advantages across different performance measures. These findings demonstrate that diagnosis-specific language-model adaptation combined with multi-expert integration can improve opioid overdose risk stratification and support more robust prediction across heterogeneous electronic health record populations.

1 Introduction

Opioid-involved overdose remains a major public health challenge in the United States. Although overdose mortality has declined in recent years, the most recent CDC provisional data still predict 67,798 drug overdose deaths during the 12 months ending in March 2026, representing a 12.3% decline from the previous year 1^{1}. Importantly, opioid overdose is preventable. Overdose education and naloxone distribution have been associated with reductions in opioid-related mortality [1], while medications for opioid use disorder, particularly buprenorphine and methadone, are associated with lower mortality following nonfatal overdose [2]. Clinical guidelines further recommend targeted risk-mitigation strategies, including naloxone provision, prescription drug monitoring, appropriate toxicology screening, and evidence-based treatment for opioid use disorder, particularly among patients at increased risk [3]. These effective interventions underscore a critical challenge for health systems: identifying patients at elevated near-term overdose risk early enough to prioritize preventive care.

Prior studies have demonstrated the feasibility of predicting opioid overdose from routinely collected EHR and administrative data. Lo-Ciganic et al. applied logistic regression, random forest, gradient boosting, and deep neural networks to predict subsequent opioid overdose among Medicare beneficiaries with opioid prescriptions [4], while Dong et al. evaluated traditional machine-learning and neural models using longitudinal claims and EHR histories [5]. More recent work has incorporated temporal modeling: Dong et al. developed LSTM-based models to capture longitudinal clinical patterns for opioid overdose risk prediction [6], and Rahman et al. compared classical and machine-learning survival models, including random survival forests and survival SVMs, for imminent overdose prediction [7]. Collectively, these studies demonstrate the value of longitudinal EHR data for overdose risk prediction. However, most existing approaches rely on structured or engineered clinical features rather than large-scale continued pretraining over longitudinal diagnosis sequences.

Recent advances in pretrained EHR and clinical language models provide new opportunities to learn representations directly from longitudinal patient histories. TransformEHR demonstrated that large-scale pretraining over longitudinal EHR sequences can improve downstream clinical outcome prediction [8], while ClinicalMamba showed that state-space architectures can efficiently model long clinical sequences at scale [9]. However, these models were developed primarily for general clinical representation learning rather than being specifically adapted to longitudinal diagnosis trajectories associated with opioid overdose. The use of continued pretraining on large-scale diagnosis histories followed by task-specific fine-tuning for opioid overdose prediction therefore remains underexplored.

Ensemble and multi-model approaches have also been investigated for opioid overdose prediction. For example, Ripperger et al [10]. trained multiple random-regression-forest weak learners using aggregated features derived from prescription drug monitoring data, hospital discharge records, diagnoses, medications, healthcare utilization, and socioeconomic indicators, and subsequently combined their predictions using several ensemble strategies. More recently, HIBERT [11] employed multiple specialized BERT

1^{1}https://www.cdc.gov/overdose-prevention/data-research/facts-stats/index.html modules for different EHR feature categories, including diagnoses, laboratory tests, and medications, pretrained these modules using unlabeled EHR data, and integrated their representations for opioid overdose prediction. Nevertheless, it remains underexplored whether general-purpose pretrained models can be further adapted through continued pretraining on large-scale longitudinal diagnosis text, fine-tuned for opioid overdose prediction, and subsequently integrated across model scales within a multi-expert framework.

To address these gaps, we develop OODMAMBA and OODQWEN, two diagnosis-adapted models for 180-day opioid overdose risk prediction from patients' preceding one-year longitudinal diagnosis histories. Both models are obtained through continued pretraining on large-scale longitudinal ICD-coded diagnosis sequences followed by task-specific fine-tuning. Building on the stronger Qwen-based predictors, we further propose OVERDOSEMOE, a multi-expert framework that integrates models of different scales using three expert-weighting strategies. We evaluate our approach on a nationwide Veterans Health Administration cohort against classical machine-learning methods, deep sequential models, and pretrained language models, with additional analyses of high-risk patient identification, inference efficiency, and cross-cohort generalizability. OVERDOSEMOE achieved an AUPRC of 25.17 and an AUROC of 69.49, while attaining a PPV of 25.38% among patients ranked in the top 5% of predicted risk. Our OODMAMBA additionally demonstrated strong cross-cohort generalizability on MIMIC-IV.

Our contributions are fourfold. First, we construct a large-scale longitudinal diagnosis dataset from a nationwide VHA cohort for 180-day opioid overdose risk prediction, representing patients' preceding clinical histories as chronologically ordered ICD-based diagnosis text. Second, we develop two diagnosis-adapted models, OODMAMBA and OODQWEN, through continued pretraining on large-scale longitudinal diagnosis histories followed by task-specific fine-tuning. Third, our experiments demonstrate that diagnosis-specific continued pretraining consistently improves downstream overdose prediction over directly fine-tuned counterparts, supporting the value of adapting pretrained models to longitudinal diagnostic trajectories. Finally, we propose OVERDOSEMOE, a multi-expert framework that integrates Qwen-based predictors of different scales, and show that multi-expert learning further improves predictive performance and high-risk patient identification beyond individual models.

References (37)