Manuscript Offprint

arXiv:2609.10831

scDEFT: A deep learning framework for drug-effect prediction and counterfactual reasoning

Murthy Devarakonda

Abstract

Longitudinal single-cell atlases now capture matched pre- and post-treatment states from responders and non-responders, presenting an opportunity to mechanistically explain why two patients on the same drug diverge. We introduce scDEFT (single-cell Drug Effect Transducer), which treats a drug as a conditioning operator on cell representations, enabling prediction and explanation. In scDEFT, feature-wise linear modulation produces drug-conditioned cell latents, learned under abundant per-cell supervision and then frozen. Two independent heads aggregate those latents over shared transcriptional neighborhoods to predict drug-induced state change and responder status. A backward stage ranks the latent dimensions by how strongly they separate responders from non-responders and maps them to genes under a cell-composition control. On a harmonized inflammatory bowel disease atlas of 1.16 million cells, three cohorts and two drug classes, scDEFT predicts state change at 45% of the baseline-to-reproducibility-ceiling headroom and stratifies responders before treatment at AUROC 0.70, where standard predictors remain at chance. These predictions and the drivers behind them support target and co-target nomination, patient stratification, and counterfactual prediction of unseen drug-cohort effects.

Introduction

An important question in treatment biology is why two patients receiving the same drug follow different trajectories. Single-cell profiling of matched pre- and post-treatment biopsies, now available for several diseases and drug classes, makes this question approachable for the first time using AI. The same donor is observed before and after drug treatment, and donors are labeled responders (R) or non-responders (NR) by an independent clinical endpoint. Inflammatory bowel disease (IBD) is an ideal setting, because such longitudinal cohorts exist, roughly half of patients fail to respond to anti-tumor-necrosis-factor (anti-TNF) therapy [12,13], and the difference is not explained by any single biomarker.

Existing single-cell perturbation methods [1,7,8,9,16], often using latent representations from single-cell foundation models, were developed to predict the post-state from a pre-state, but recent benchmarks [6,17,18] showed that such models frequently fail to beat simple linear baselines on held-out perturbations. Compositional methods [5] capture one consequence of state dynamics — cells entering or leaving populations — but not the dynamics themselves. Neither is designed to contrast responders with non-responders or to attribute that contrast to interpretable genes. What is missing is a mechanistic approach whose output is the difference between the two journeys, expressed in gene programs.

We designed scDEFT (single-cell Drug Effect Transducer), a multi-stage deep-learning model and model-analyzer, to produce that insight (Figure 1a). scDEFT treats drug action as a transition operator on scRNA-seq data from human gut biopsies and decomposes the analysis into a forward learning stage and a backward attribution stage. In the training stage a drug-conditioned representation is trained for each pre-treatment cell; prediction heads aggregate those latents by transcriptional neighborhood [5] to predict both neighborhood state change and responder status. The aggregation helps to extract signal from otherwise noisy data.

1 of 21

The attribution stage then traces the most predictive neighborhoods and their latents back into the transcriptome, ranking the dimensions that separate eventual responders from non-responders and attributing them to genes and programs. The programs and co-targets identified are prioritized hypotheses for experiment.

Figure

(a)

Figure

(b)

(c)

(d)

Figure 1 | scDEFT framework and the harmonized IBD atlas. (a) scDEFT predictive stage where cells and a drug are embedded and combined into a per-cell drug-conditioned latent, supervised by a neighborhood-aggregated post-treatment target; the representation is then frozen and read by two decoupled heads: neighborhood state change ( Δ\Delta) and responder/non-responder prediction, prospective or retrospective. The attribution stage where the same frozen dimensions are ranked by state change and R/NR separation, mapped to genes under a composition control, and named by enrichment, supporting applications of the method. (b) Donors with matched pre- and post-treatment samples and a response label, by cohort, disease and outcome (total 51 donors; responders blue, non-responders red), with matched cell counts below ( log⁡10\log_{10}; pre-treatment solid, post-treatment hatched). (c) Cells per harmonized compartment ( log⁡10\log_{10}), colored by cohort. (d) As in (c), split into responders (solid) and non-responders (hashed).

2 of 21

References (26)