Abstract
Reinforcement learning (RL) tasks are typically framed as Markov Decision Processes (MDPs), assuming that decisions are made at fixed time intervals. However, many applications of great importance, especially in healthcare, involve irregular time gaps between observations and actions. This paper introduces a framework to adapt offline RL algorithms into "Semi-Markov" versions that explicitly handle variable time gaps between patient visits. Their proposed algorithm, SBCQ, demonstrates significantly more robust and realistic performance in clinical tasks like medication dosing compared to traditional methods.
Introduction: The Challenge of Irregular Timing
Most reinforcement learning research relies on the Markov Decision Process (MDP) framework. This framework assumes a "ticking clock" where actions and observations occur at perfectly regular intervals—for example, every second in a robotics task or every day in a financial model.
In real-world healthcare, this assumption is frequently violated. Patients visit clinics sporadically; one follow-up might occur after two days, while the next might be scheduled three months later. To apply standard RL to this irregular data, researchers often resort to "artificial reshaping," such as interpolating missing values or aggregating data into fixed time bins. However, this process introduces significant bias. For instance, if a clinician maintains a dose for a month, an interpolated daily MDP would record 30 identical "Maintain" actions, potentially tricking an agent into over-valuing the status quo. Furthermore, healthcare is inherently an offline domain; we cannot allow an untrained agent to experiment on live patients, necessitating learning from retrospective medical records.
Methodology: Semi-Markov Decision Processes
To address these irregularities, the authors pivot from MDPs to Semi-Markov Decision Processes (SMDPs). In an SMDP, an action (or "option") can take a variable amount of time ($k$ steps) to complete.
The core technical contribution is a systematic modification of the Bellman equation to account for variable duration. Instead of the standard update, the framework uses:
$$r + \gamma^k \max Q(s', a')$$
Here, $\gamma^k$ discounts the future reward based on the exact amount of time ($k$) that has elapsed between observations. Building on this logic, the researchers introduced three algorithms:
- SDQN (Semi-Deep Q-Network)
- SDDQN (Semi-Double DQN)
- SBCQ (Semi-Batch-Constrained Q-learning)
SBCQ is particularly vital for healthcare. It combines SMDP timing with "Batch-Constrained" learning, which prevents the agent from selecting actions that are not well-represented in the training data—a common cause of "hallucinated" high rewards in offline RL.
Experimental Evaluation
The researchers evaluated their methods using both a controlled simulation and a large-scale clinical dataset.
Simulated Environment: Minigrid
To prove that MDP-based agents fail when time is inconsistent, the team used a modified grid-world environment. In this setup, the agent's "step size" (the time it takes to move) varies depending on its location in the grid. This serves as a benchmark for testing whether an algorithm can recover the optimal path despite temporal noise.
Clinical Dataset: Warfarin Dosing
The primary real-world application involved a massive dataset of 29,272 patients from four major randomized controlled trials (ARISTOTLE, ENGAGE AF, ROCKET AF, and RELY). The objective was to determine the optimal dose of Warfarin, an anticoagulant, to maintain a patient's blood clotting levels (INR) within a safe therapeutic range. This dataset is characterized by highly irregular monitoring intervals, making it a perfect test case for SMDPs.
Key Results and Insights
Optimal Policy Recovery
In the simulated Minigrid environment, only the SMDP-based algorithms successfully learned the optimal path. Standard MDP agents were misled by the irregular timing and consistently chose suboptimal routes, demonstrating the danger of ignoring temporal dynamics.
Clinical Alignment and Reduced Overestimation
On the Warfarin dataset, SBCQ learned a policy that closely aligned with expert clinical judgment. While standard MDP models tended to obsessively favor "Maintain Dose" actions due to interpolation bias, SBCQ successfully learned nuanced adjustments (increasing or decreasing dosage) that matched clinical reality.
Crucially, SBCQ addressed the issue of over-optimism. The authors found that SDDQN (without batch constraints) overestimated the true value of its actions by nearly 20x. SBCQ reduced this error by an order of magnitude, providing a far more reliable assessment of its own performance.
Conclusion
By incorporating the duration between observations into the discount factor, the Semi-Markov framework allows RL agents to value rewards accurately in the face of irregular data. The introduction of SBCQ provides a safer, more clinically grounded approach to offline learning in healthcare. While future work is needed to handle intra-visit rewards and define more complex temporal options, this research marks a significant step toward deploying robust AI in real-world clinical settings.
Summary updated