## Why two patients on the same therapy take different paths

URL: https://theprimary.com/science/2026-12-03/scdeft-ibd-therapy-response
Published: 2026-12-03T22:35:27.410Z
Updated: 2026-12-03T22:35:28.969Z
Category: Science

Subtle cellular states in gut tissue before treatment help explain why inflammatory bowel disease therapies succeed or fail, according to a new computational framework.

When two people with the same chronic condition receive an identical prescription, their bodies often embark on entirely different journeys. One patient experiences lasting remission as inflamed tissues repair themselves, while the other continues to suffer painful flare-ups without measurable relief. In inflammatory bowel disease, which encompasses ulcerative colitis and Crohn's disease, this clinical divergence is a constant reality. Roughly half of all patients treated with anti-tumor-necrosis-factor therapies fail to show a clinical response. Doctors cannot reliably forecast this split using conventional clinical tests or isolated genetic markers, leaving treatment selection to trial and error.

Understanding this split matters because biologic therapies are physically demanding, costly, and carry risks of adverse effects. Months spent on an ineffective drug allow tissue damage to compound, closing therapeutic windows and increasing the eventual likelihood of surgery. If clinicians could anticipate whether an individual's cellular machinery will respond to a targeted therapy before the first infusion, they could direct non-responders toward alternative mechanisms of action immediately, sparing patients futile treatments and stabilizing their disease much sooner.

To see why identical therapies produce divergent outcomes, consider how a therapeutic molecule interacts with diseased tissue. An inflamed gut lining contains a crowded mixture of interacting cells, including epithelial barrier cells, immune cells, and structural fibroblasts. When a drug molecule enters this environment, it binds to a specific molecular target, such as a circulating cytokine or an intracellular signaling kinase. For the drug to arrest inflammation, that binding event must alter the downstream behavior of individual cells, prompting inflammatory cells to quiet down and tissue cells to restore the barrier. If the surrounding cellular network in a particular patient is configured in a way that bypasses that targeted pathway, the drug binds its target without changing the collective cellular trajectory. The drug acts, but the diseased tissue fails to heal.

In a preprint posted to the arXiv repository, Murthy Devarakonda, a researcher at Causal Data AI, describes an artificial intelligence framework named scDEFT, short for single-cell Drug EFfect Transducer. The framework demonstrates that subtle cellular variations present in gut tissue before treatment can predict whether a patient will respond to therapy, while identifying the underlying genetic programs responsible for that divergence. By analyzing single-cell RNA sequencing data, which captures gene activity inside individual cells extracted from intestinal biopsies, the method links pre-treatment cellular states to therapeutic outcomes across multiple patient cohorts.

## How can computers simulate cellular responses to drugs?

Computational models simulate drug responses by treating a therapeutic compound as an operator that mathematically shifts a cell from an untreated state to a treated state. In biology, one cannot measure the exact same physical cell both before and after an intervention, because the laboratory process of profiling a single cell destroys it. Researchers must instead observe populations of cells taken from biopsies before therapy and separate cells harvested from the same donor weeks later. Machine learning systems designed for this problem belong to the broad family of single-cell perturbation models, which attempt to learn how chemical or biological perturbations shift gene expression patterns across high-dimensional transcriptomic space.

Earlier perturbation models frequently failed to beat simple linear averages when predicting the effects of unseen drug interventions on held-out donors. Furthermore, standard single-cell methods often examine cell-type proportions, such as the total count of T cells or macrophages, rather than the subtle behavioral state changes occurring within those populations. To capture those nuances, Devarakonda built scDEFT around a mathematical conditioning mechanism known as feature-wise linear modulation, which applies a scaling factor and a shifting factor to a cell's baseline representation. In this architecture, the baseline representation of a cell serves as an enduring foundation, while a molecular description of the drug acts only to scale and shift that representation, allowing the model to simulate how different drugs might alter identical starting cells.

Murthy explained the biological intuition behind this linear operation in response to questions from Primary. "Drugs usually don't turn one cell type into a completely different cell type. Instead, they adjust the activity of processes the cell is already running, like turning volume knobs up or down rather than replacing the entire stereo system. That's why the model lets the drug scale or shift existing cellular programs instead of completely rewiring them. It also means that if we encounter a drug we've never seen before, the model has a sensible default assumption: no drug effect at all."

To supply a reliable learning signal without destroying biological detail, the framework groups similar cells into shared transcriptional neighborhoods across donors. Aggregating cells into these local clusters filters out technical noise while preserving localized functional shifts that broad cell-type labels obscure. The framework first trains its drug-conditioned representations using per-cell comparisons against neighborhood shifts, and then locks those representations in place. Independent prediction modules then read these frozen representations to forecast two distinct biological outcomes: how much a local cell neighborhood will shift under treatment, and whether the donor will clinically respond to the drug.

Early development revealed that alternative configurations broke down. Murthy noted that several intuitive approaches stumbled before arriving at this decoupled structure. "Several seemingly reasonable ideas failed in practice. Pooling latents by broad cell types added almost no value because the drug's shared effect already explained most of the biological variation. Predicting each cell separately and averaging later was also inferior to first pooling latents per neighborhood and then predicting. Finally, letting the predictive heads reshape the backbone hurt cell-state prediction without meaningfully improving response prediction, so we kept latent training separate and decoupled from  the downstream tasks."

## What changes when cells are grouped into local neighborhoods?

Grouping individual cells into local transcriptional neighborhoods dramatically sharpens the computational signal, lifting prospective response predictions well above random guessing. When evaluating how accurately the model predicted drug-induced state shifts in tissue, Devarakonda measured performance against the total headroom between a simple cohort-average baseline and an empirical split-half reproducibility ceiling. A version of the model evaluated on individual cells without neighborhood pooling gained only 14 percent of that available headroom above baseline, whereas aggregating cells into neighborhoods using an attention mechanism captured 45 percent of the headroom, representing an absolute cosine similarity gain of 0.273 over the baseline value of 0.15 on held-out donors.

Evaluating this shift prediction confirmed the value of neighborhood aggregation. Murthy stated to Primary that "scDEFT recovered 45% of the headroom. For comparison, the next best existing method recovered 20%." In published comparisons, the next best baseline, an implementation of the scGen algorithm using latent arithmetic, reached 20 percent of that available headroom, while alternative methods failed to improve over the simple average shift observed across training cohorts.

This neighborhood aggregation proved equally vital when forecasting patient outcomes before the start of therapy. In a harmonized inflammatory bowel disease atlas assembled from three published longitudinal cohorts spanning 51 donors, 518,437 pre-treatment cells, and two drug classes, prospective prediction using unaggregated cell representations achieved an area under the receiver operating characteristic curve of 0.55 across cross-validation folds, which is barely better than flipping a coin. When the model aggregated representations across 80 shared transcriptional neighborhoods, prospective classification accuracy rose to an area under the curve of 0.70, with a 95 percent confidence interval spanning 0.56 to 0.84. In that benchmark, scDEFT was the only prospective method whose confidence interval excluded pure chance, correctly categorizing 34 of the 51 donors compared to 28 donors correctly identified without neighborhood pooling.

When the model was tasked with retrospective classification, meaning it evaluated tissue biopsies harvested after treatment had already finished, the classification task proved far simpler. Using mean-pooled post-treatment cell embeddings from the 51 donors, the model distinguished responders from non-responders with an area under the curve of 0.93 and a 95 percent confidence interval spanning 0.84 to 0.99, correctly classifying 45 of the 51 patients under cross-validation. This stark separation indicates that therapeutic success or failure is unmistakably written into the tissue after treatment completes, while the prospective challenge lies in discerning the faint, early transcriptomic signatures that dictate which path the tissue will follow.

Addressing the disparity between prospective forecasting and retrospective accuracy, Murthy pointed out that the retrospective task evaluates an established reality. "Much of the performance gap comes from the fact that the retrospective task is observational rather than predicting what might be. The post-treatment tissue already contains the biological evidence of whether treatment worked, so the model is largely reading the outcome rather than forecasting it. In contrast, a baseline prediction must anticipate future events it cannot see, such as drug exposure, immune reactions, patient adherence, and changes in the microbiome or diet. Within this noisy scenario, it has to relate existing gene programs before treatment with the outcome. As a result, part of the remaining prediction error reflects genuinely unpredictable factors that occur after the baseline sample is collected."

## What can the model explain about why therapies fail?

Beyond predicting whether a patient will respond, the framework includes an analytical stage that traces predictions back to specific gene programs active in pre-treatment cells. Because deep neural networks do not inherently reveal which biological features drive their outputs, the framework inspects the frozen representation dimensions that most sharply separate responders from non-responders. It then correlates those latent dimensions with real gene expression levels across cell compartments while applying statistical controls for differences in cell composition. This process isolates the internal transcriptional programs that distinguish the two groups of patients, nominating biological targets and co-targets that might overcome therapeutic resistance.

The current findings, however, represent a computational simulation rather than a certified clinical diagnostic. The study analyzed data from 51 donors across three historical cohorts receiving two drug classes: anti-tumor-necrosis-factor biologics, such as adalimumab and infliximab, and the small-molecule Janus kinase inhibitor tofacitinib. While the harmonized dataset contained over 1.16 million total single cells, the small number of unique human donors limits statistical power and makes prospective stratification challenging. Furthermore, the preprint by Devarakonda has been posted publicly to the arXiv repository and has not yet undergone formal peer review.

The model also assumes that gut tissue dynamics can be effectively captured across a fixed scaffold of 80 transcriptional neighborhoods. In response to questions about this choice, Murthy clarified how the scaffold resolution was selected and why individual states are retained. "The number of transcriptional neighborhoods is a hyper-parameter to the model. We empirically determined the optimum value, by experimenting with a range of values between 30 and 200. Nothing falls outside because all cells are assigned to their closest neighborhood."

Experimental tests will also be needed to ensure identified pre-treatment programs are causal mechanisms rather than passive markers of tissue severity. Asked what finding would demonstrate that the programs are correlative artifacts, Murthy outlined a key falsification condition: "If you compare responders and non-responders after making sure they started out equally sick, and the biological differences between the groups disappear, then those differences were probably just reflecting how damaged or inflamed the tissue already was. They were not the cause of treatment success or failure."

Expanding the technique to additional diseases faces practical requirements as well. Murthy observed that the system depends heavily on structured clinical records: "the model needs matched pre/post treatment samples and a clear response label, so settings with slow or ambiguous endpoints break the supervision, not just the architecture."

For clinicians and drug developers, the wider implication of this work is that drug responsiveness is not a mysterious systemic trait, but a consequence of identifiable cellular states that exist prior to treatment. If validated prospectively in prospective clinical trials, models that simulate drug-induced state transitions could enable counterfactual reasoning, allowing researchers to computationally test how a patient who failed an anti-tumor-necrosis-factor antibody might respond to an alternative mechanism like a Janus kinase inhibitor. By mapping the specific gene programs that separate responders from non-responders, such platforms could also help pharmaceutical developers design combination therapies that inhibit bypass pathways, turning non-responders into responders.

The immediate next step is testing whether the framework can generalize to prospective patient cohorts before any therapy is administered, verifying its predictions against blinded real-world outcomes. Researchers also face the challenge of determining whether the substantial performance gap between prospective forecasting, at an area under the curve of 0.70, and retrospective classification, at 0.93, stems from limited donor cohort sizes or from unmeasured environmental and biological variables that evolve during the course of treatment. Answering that question will determine whether single-cell computational modeling can move from retrospective atlas analysis into routine clinical decision support.
