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

Author summary Artificial Intelligence (AI) models could help future doctors by recommending personalised treatments for patients. These models are currently trained and tested using historical patient records rather than real patients. Medical decisions happen at unpredictable intervals, but before training an AI model, researchers usually shift and align the timings of recorded decisions into a regular schedule (‘temporal resampling’). This makes training the AI models easier with standard techniques. We inves…

The impact of temporal resampling on the safety of clinical reinforcement learning: A simulated trial
How the two sides scoreContested
P 58P is the problem side, out of 100. It goes up when the problem is specific, when it measurably hurt people and when the sources behind it are strong.

A fixed formula sets both scores from the evidence and its sources. Reader votes don’t move them.

G 62G is the gain side, out of 100. It goes up when the gain is specific, when it measurably helped people and when the sources behind it are strong.

In brief

A peer-reviewed simulated trial in PLOS Digital Health tested what happens when researchers squeeze irregularly timed clinical decisions into regular time slots before training reinforcement learning models. Using 30 virtual patients with type 1 diabetes from the FDA-approved UVA/Padova simulator, the team found resampling cut model performance by up to 60% relative to models trained on unprocessed data.

With 4-hour binning, an interval commonly used in this research, all three algorithms performed worse than the baseline behaviour in the training data. Standard retrospective evaluation did not catch this: it predicted 1.5–3x better returns than the agents achieved when deployed into the simulated environment.

The concern is that falsely optimistic scores could justify moving weak models into human trials. Models trained on unedited, naturally timed data did much better and their safety checks were accurate. All results come from simulation, so how well they carry over to real patients is untested.

Main points

  1. In a review of 50 healthcare offline reinforcement learning studies, the authors found 43 used temporally resampled data and only three had been tested in a prospective human trial.
  2. In 12,238 intensive care patients on insulin infusions in the MIMIC-IV database (19,449 episodes), binning reversed the apparent order of glucose measurements and insulin changes for over 70% of paired events.
  3. Binning also masked significant low and high blood sugar events and merged separate insulin adjustment decisions into one.
  4. In the simulator, resampling reduced performance by up to 60%, and models trained on 4-hour bins all performed worse than the dataset's baseline.
  5. Fitted Q-evaluation, the standard retrospective check, overestimated binned-data agents by 1.5–3x but was reasonably calibrated for unprocessed and interpolated data.
  6. Models trained on unprocessed data with irregular timings were the only ones to improve consistently on time in target glucose range and avoid early episode termination.
  7. The authors recommend keeping natural decision intervals and using semi-Markov frameworks that account for them.

The gain

In a simulated trial, offline reinforcement learning models trained on unedited, naturally timed insulin data outperformed the simulated clinician baseline, and retrospective safety tests predicted their performance accurately.

The problem

In a simulated trial with 30 virtual type 1 diabetes patients, resampling decision timings cut AI insulin-dosing performance by up to 60%, and standard retrospective tests predicted 1.5–3x better returns than the models achieved.

The full story

The authors first checked real data. From MIMIC-IV, they extracted 12,238 ICU patients receiving continuous insulin infusions and applied 1-, 2-, 3- and 4-hour bins. More than 70% of reactive glucose-insulin pairs ended up in the same bin, which flips cause and effect, and the share rose as bins widened.

For the trial, they modified the UVA/Padova simulator (10 adults, 10 adolescents and 10 children; 18 for training, 6 for validation, 6 for testing) to use random decision intervals of 1–12 ten-minute steps. A reinforcement learning agent acting as a stand-in clinician generated 10 million transitions, which were kept unprocessed, interpolated or binned.

Behavioural cloning, implicit Q-learning and conservative Q-learning were trained on each version. Performance fell as time abstraction increased: interpolation beat 2-hour binning, which beat 4-hour binning. No model trained on resampled data beat its dataset's baseline, apart from modest gains with implicit Q-learning on interpolated data.

The authors say the optimistic scores arise because binned data contain counterfactual trajectories, so the evaluation predictions amount to hallucinations rather than accurate estimates. Even interpolated models did worse than expected, which they link to compounding errors from distributional shift.

What this doesn’t fix

The simulated environments have simpler observations and random, state-independent decision intervals, which may limit generalisability to complex real clinical settings, and only model-free algorithms were tested.

Sources

  1. JournalismPLOS (Public Library of Science)2026-11-06

The debate