Abstract
Drug resistance in cancer and bacterial infections often arises from phenotypic plasticity, where cells switch between susceptible and resistant states. This process is frequently non-Markovian, as populations "remember" past drug exposures and adapt more quickly upon re-exposure. We present a reinforcement learning (RL) framework using Deep Q-Networks (DQN) to discover optimal dosing schedules in these memory-dependent systems. By modeling population dynamics with fractional differential equations, we demonstrate that RL agents can learn high-frequency "pulsing" strategies that outperform traditional constant or memoryless protocols, even when biological parameters are unknown.
Introduction
In the fight against cancer and bacterial infections, the primary challenge is adaptation. Many cell types exhibit phenotypic plasticity, allowing them to switch between a susceptible state, which is killed by drugs, and a resistant state that survives treatment. Crucially, these populations often possess a "memory" of past environments. When a drug is reapplied after a period of removal, the population adapts to resistance significantly faster than during the initial exposure.
Mathematically, this behavior is non-Markovian: the future state of the system depends not only on the current state but on the entire history of treatment. While traditional control theory can address simple "memoryless" models, finding optimal dosing schedules for complex biological systems with unknown parameters and long-term memory remains an open problem.
Methods
The researchers bridged physics-based modeling and machine learning through a novel population model using Fractional Differential Equations (FDEs). The fractional component introduces a memory kernel, allowing past states to influence current dynamics across multiple timescales.
Mathematically, the optimal dosing strategy for such a system was proven to be "bang-bang" control—applying the drug at either 100% or 0% concentration rather than intermediate doses. To discover these strategies, the authors employed Deep Q-Networks (DQN) and Fully Parameterized Quantile Function (FQF) agents. To account for the non-Markovian nature of the system, they used frame-stacking, providing the agent with a short history of recent growth rates and actions. Furthermore, domain randomization was used during training across various "memory strengths" ($\mu$) to ensure the policy's robustness against unknown biological parameters.
Key Insights: The Power of Pulsing
A central finding is that the RL agent does not require knowledge of the "resistant fraction" of cells, which is difficult to measure clinically. Instead, it can derive optimal policies using only the instantaneous growth rate.
The learned policies revealed a sophisticated strategy: to combat adaptation in systems with memory, the agent must increase the frequency of drug pulses over time. A static pulsing schedule eventually fails as cells accelerate their adaptation; the RL agent compensates by shortening the "off" periods.
Additionally, the study found that discrete "bang-bang" algorithms like DQN significantly outperformed continuous action algorithms (such as PPO or SAC). This aligns with the underlying physics, where intermediate doses may inadvertently "train" cells for resistance without effectively reducing the population.
Results and Performance
The RL-learned policies consistently outperformed several baselines, including constant drug application (which leads to total resistance) and standard "memoryless" pulsing protocols. In cases where an exact mathematical solution for a memoryless system is known, the RL agent successfully recovered that optimal strategy without prior knowledge of the rules.
As shown in the performance metrics, the "generalist" agent trained with domain randomization successfully controlled populations across a wide spectrum of memory strengths ($\mu$ values from 0.6 to 1.0). The policies also remained effective in the presence of significant measurement noise, suggesting potential for real-world clinical application.
Discussion and Future Work
While the model provides a robust framework for non-Markovian control, several challenges remain for clinical translation. The "sim-to-real" gap involves complexities such as drug metabolism (pharmacokinetics) and toxicity to healthy tissues. Furthermore, real-world tumors are more heterogeneous than the two-state model assumes. Future research may explore Recurrent Neural Networks (RNNs or LSTMs) to capture even longer-range temporal effects and extend the model to handle greater population diversity.
Summary updated