cs.LGFeb 6, 2026

The impact of temporal resampling on the safety of clinical reinforcement learning: A simulated trial

Authors: Thomas Frost, Hrisheekesh Vaidya, Steve Harris

Organizations: University College London, London, United Kingdom · University College London Hospitals NHS Foundation Trust, London, United Kingdom

Abstract

Reinforcement learning (RL) is a type of artificial intelligence for making optimal choices. In healthcare, researchers generally use offline RL (ORL), where models are trained and evaluated from retrospective observational data. To accommodate naturally irregular clinical records, researchers often resample the data into uniform time intervals before training (known as binning). However, binning may create counterfactual trajectories that do not represent clinical practice. We first quantified these distortions in patients receiving continuous insulin infusions in the MIMIC-IV intensive care database. Binning reversed the apparent causal order for over 70% of paired glucose measurements and insulin adjustments within the same interval, and frequently masked significant dysglycaemic events and merged distinct treatment decisions together. We then conducted an in silico clinical trial using 30 virtual patients with type 1 diabetes from the FDA-approved UVA/Padova simulator. The simulator was modified to include stochastic intervals between decisions and used to generate a training dataset for offline RL. We trained three ORL algorithms on both the unprocessed dataset and equivalent datasets resampled at 10-minute, 2-hour, and 4-hour intervals. When deployed back into the simulated environment, temporal resampling was found to reduce model performance by up to 60% relative to unprocessed data, with 4-hour binning causing all agents to perform worse than the dataset's baseline. Retrospective evaluation on resampled data actively obscured this effect, predicting 1.5-3x better returns than agents achieved in practice. We recommend that future research in this area prioritises datasets with natural clinical timings between decisions, which may be a necessary step before these models can be safely deployed into patient care.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Insulin4RL: Real-Time Insulin Management in the Intensive Care Unit for Offline Reinforcement Learning

    Jun 17, 2026Thomas Frost, Steve HarrisRL BenchmarksOffline RL

  2. Unmasking Toxic Mimicry in Medical Offline Reinforcement Learning for ICU Sepsis Management via Counterfactual Clinical Audits

    Aug 11, 2026Hangqi Ren, Junyi LiaoCounterfactual EvaluationOffline RL

  3. ResidencyRL: Reinforcement Learning in Simulated Clinical Environments

    Aug 7, 2026Valentin Liévin, Samuel Schmidgall, Tim Strother +32Clinical Decision-MakingClinical Reasoning