arXiv:2610.06227q-bio.QMOct 2026

Manuscript Offprint

arXiv:2610.06227

APOD: reasoning-guided agentic population ordinary differential equation discovery for pharmacological digital twins

Romain Ferrara, Martin Soucail, Victor Gertner, Adil Moussali, Joris Cocquebert, Sandrine Oziel-Taieb, Julien Nicolas, Florence Gattacceca, Mihaela van der Schaar, Sébastien Benzekry

Abstract

Establishing ordinary differential equations (ODEs) describing population data is a fundamental part of mathematical modeling in pharmacology, crucial to developing digital twins. However, doing so from sparse, noisy data is a slow, expert-driven task. Existing automated methods either search a restricted model space or ignore population inter-individual variability. Here we introduce APOD (Agentic Population ODE Discovery), a language-model agent that iteratively reasons over biological knowledge and fit diagnostics in an open-ended search space to discover a population digital twin (PDT), i.e., a shared ODE system with between-subject variability. On synthetic pharmacokinetic and tumor-dynamics benchmarks, APOD recovered ground-truth structures in 94-100% of runs, 12-fold faster in median than an established library-based search. On real cohorts it converged to valid structures, and proposed a PDT of radioligand-therapy-induced platelet dynamics that predicts thrombocytopenia from first-cycle data and simulates alternative dosing schedules that lower the predicted risk of toxicity.

1 Introduction

Digital twins (DTs) are computational representations of a system that are continuously informed by data and used to predict its behavior and guide intervention 1^{1}. Ordinary differential equations (ODEs) are a natural language for such models: by expressing the rate of change of each quantity as a function of the others, they encode an explicit, causal structure rather than a statistical association. When fitted to data (and continuously updated), they allow forward simulations under counterfactual interventions. A pharmacological DT is a patient-specific virtual model that replicates an individual’s pharmacophysiology, is updated as new measurements arrive, predicts clinically relevant outcomes, and informs treatment decisions 2−6^{2-6}. They have two major applications. At the individual level, pharmacological DTs are used for dosing adaptation under therapeutic drug monitoring (model-informed precision dosing) 7^{7}. At the population level, they are used to determine the appropriate dosing regimen in clinical trials (model-informed drug discovery and development) 8^{8} and are now being investigated as synthetic control arms. As expressed by previous authors 2^{2}, one of the biggest challenges for medical DTs is accounting for the biological heterogeneity of patients.

Building ODE models has traditionally been a manual, time-consuming process: a modeler posits candidate equations from domain knowledge, and confronts them with data. Scientific machine learning methods, e.g. symbolic 9,10^{9,10} or sparse 11^{11} regression, have been proposed to automate the recovery of governing equations directly from observations 12^{12}. However, two features limit their reach in biomedicine. First, they operate on one subject at a time, whereas biomedical datasets are often composed of sparse, noisy and partial observations of a mechanism shared across multiple subjects in a population. Second, the search is framed as an optimization problem, driven by a single numeric objective that captures adequacy to the data and parsimony, but not biological plausibility.

A different strategy has recently emerged. Large Language Models (LLMs) have provided significant advances in artificial intelligence, with both advanced abilities for scientific discovery 13^{13} and mathematical and programming tasks 14^{14}. For ODEs, LLMs have been shown to be able to discover models autonomously, proposing equations from a natural-language prompt and iterating over fit diagnostics 15,16^{15,16}, including in the pharmacological field 17^{17}. Existing agents, however, remain far from clinical use. As above, they consider individual trajectories with no population-level inference; they still operate on a single goodness-of-fit metric; and they return an ODE of pre-defined dimension, precluding discovery of models with a different number of latent components. In addition, they have been tested only on data-rich synthetic systems 15,16^{15,16}, and rarely on sparse, heterogeneous cohorts where mechanistic discovery would carry clinical value 17^{17}.

The population approach in pharmacology was built to resolve the question of sparse sampling in individual subjects 18^{18}. In this framework – nonlinear mixed-effects (NLME) modelling – all subjects are assumed to share one mechanistic structure (the ODE), while each subject’s parameters are drawn from a population-level distribution 19^{19}. An ODE model endowed with such a population structure – which we term a population digital twin (PDT) – supports the two operations a twin needs: subject-level prediction, in which the fitted population serves as a Bayesian prior that is personalized from sparse measurements to forecast an endpoint of interest, such as the probability of treatment toxicity, and simulation of counterfactual scenarios, such as an alternative dosing regimen.

Automated model discovery within the NLME framework is restricted to pharmacokinetics (PK), and follows the concepts of symbolic regression. Symbolic regression being an NP-hard problem 20^{20}, the established tools – pyDarwin 21−23^{21-23}, Pharmpy’s modelsearch 24^{24} and mlxModelFinder 25^{25} – search a predefined library of PK building blocks. Thus, they cannot propose mechanisms outside it and a single search can take a few hours to several days per drug 23^{23}. In addition, the computational cost is substantial. Neural-ODE approaches relax the library constraint by fitting the governing function in a high-dimensional latent space 26−29^{26-29}, but need dense per-subject sampling and large cohorts to train and have so far remained case-specific. No existing method combines the two capabilities a population digital twin actually requires – an open structural space, and population-level inference from sparse data (Table 1).

Here, we introduce APOD (Agentic Population ODE Discovery), which supplies both. We evaluated APOD at three levels. First, we assessed whether the agent recovers a known ground-truth model, using synthetic PK and tumor-dynamics (TD) datasets with realistic sampling and benchmarking it against an ablated version of APOD reasoning only on a scalar metric, and an established automated model-selection tool. Second, we tested it on real experimental data, spanning clinical PK, experimental TD and experimental PK-TD response cohorts. Third, we used it to build a population digital twin for hematotoxicity prediction in radioligand therapy – an anti-cancer setting for which no myelosuppression model has been established – and evaluated its forecasts on a held-out cohort.

References (31)