A Deep Subgrouping Framework for Precision Drug Repurposing via Emulating Clinical Trials on Real-world Patient Data

Seungyeon Lee, Ruoqi Liu, Feixiong Cheng, Ping Zhang

Introduction

Traditional drug discovery is a high-stakes, multi-billion dollar endeavor that often spans over a decade. Drug repurposing—identifying new therapeutic uses for existing, FDA-approved medications—offers a significantly faster and more cost-effective alternative. However, a major hurdle in computational repurposing is the "one-size-fits-all" approach. Many drugs fail clinical trials not due to a lack of efficacy, but because their benefits are concentrated within specific patient subsets. In heterogeneous conditions like Alzheimer’s Disease (AD), a drug might provide substantial relief to a small percentage of patients while appearing ineffective at the population level.

To address this, researchers have developed STEDR (Subgroup-based Treatment Effect Estimation for Drug Repurposing), a deep learning framework designed to identify hidden patient subgroups and estimate treatment effects with high precision by emulating clinical trials using real-world electronic health records (EHR).

The STEDR Framework

STEDR integrates subgroup analysis with causal inference to discover drugs that provide significant benefits to specific populations, even when those effects are "washed out" in general population studies. The pipeline moves from raw EHR data through a structured study design to identify repurposable candidates tailored to specific patient profiles.

The STEDR pipeline for precision drug repurposing, illustrating the flow from EHR data to subgroup-specific treatment estimation.

Core Methodology

The STEDR architecture is built on three technical pillars designed to handle the complexity and noise of real-world medical data:

  1. Dual-Level Attention Representation: The model employs two layers of attention to process EHR data. Covariate-level attention identifies the most relevant medical codes (e.g., specific diagnoses), while visit-level attention weighs the importance of different temporal points in a patient's history. This is further enhanced by temporal embeddings to account for irregular visit intervals.
  2. Subgroup Representation Learning: Utilizing a Variational Auto-Encoder (VAE) with a Gaussian Mixture prior, STEDR learns a global distribution for the entire population while simultaneously identifying distinct "local" distributions for subgroups. This allows the model to capture the inherent heterogeneity of the patient population.
  3. Causal Inference via Trial Emulation: To ensure robust results, the model emulates randomized clinical trials. It uses Inverse Probability of Treatment Weighting (IPTW) to adjust for confounding variables between "case" cohorts (those taking the drug) and "control" cohorts.
The STEDR model framework, showcasing the integration of dual-level attention, Transformer encoders, and subgroup representation for causal inference.

Experimental Results and Clinical Insights

STEDR was evaluated using the MarketScan MDCR database, which contains claims data for over 8 million retirees. The study specifically tracked 155,000 patients with Mild Cognitive Impairment (MCI) to identify drugs that could slow progression to Alzheimer’s Disease.

Key Findings

  • Identifying Hidden Candidates: STEDR identified 14 potential drug candidates for AD. Crucially, 8 of these would have been missed by traditional population-level methods. For example, drugs like Pravastatin and Metformin showed significant benefits within specific subgroups that were invisible in average treatment effect (ATE) analyses.
  • Precision Mapping: For the drug Trazodone, the model successfully segmented the population into "enhanced," "neutral," and "diminished" response groups. Analysis of attention scores revealed that the "enhanced" group was characterized by specific physiological profiles, such as higher rates of lymphadenitis and acute myocardial infarction.
  • Superior Accuracy: On synthetic and semi-synthetic benchmarks (such as the IHDP dataset), STEDR outperformed state-of-the-art models like DragonNet and TransTEE, achieving a 35.3% reduction in error (PEHE) compared to the next-best model.

Conclusion and Future Directions

STEDR demonstrates that deep subgrouping can unlock the potential of existing drugs for complex, heterogeneous diseases. By moving beyond average treatment effects, the framework provides a roadmap for precision prescribing and more efficient drug development. While the model is currently limited by the variables available in EHR data and requires pre-defined subgroup counts, future iterations may incorporate automated subgroup discovery and integrate additional data types like genetics. Ultimately, the 14 identified candidates serve as high-priority leads for prospective clinical validation.

Summary updated

BibTeX
@inproceedings{lee2024deep,
  author = {Seungyeon Lee and Ruoqi Liu and Feixiong Cheng and Ping Zhang},
  title = {{A Deep Subgrouping Framework for Precision Drug Repurposing via Emulating Clinical Trials on Real-world Patient Data}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure