IDEAS home Printed from https://ideas.repec.org/a/plo/pdig00/0001801.html

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

Author

Listed:
  • Thomas Frost
  • Hrisheekesh Vaidya
  • Steve Harris

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.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 investigated whether this practice leads to lower quality models that would perform poorly in the real clinical world. We ran a virtual clinical trial using an FDA-approved diabetes simulator to test how well models that had been trained on resampled data perform in environments with unpredictable decision intervals. We found that models trained on artificially regular decisions perform worse than expected when trialled in environments with these irregular timings. Concerningly, standard tests used to predict model safety before clinical use do not detect this, producing falsely optimistic scores. We then assessed models trained on natural, unedited data. These models performed much better and the safety tests accurately predicted their true performance. We therefore recommend training and evaluating AI models using unedited data to preserve the authentic timing of clinical practice.

Suggested Citation

  • Thomas Frost & Hrisheekesh Vaidya & Steve Harris, 2026. "The impact of temporal resampling on the safety of clinical reinforcement learning: A simulated trial," PLOS Digital Health, Public Library of Science, vol. 5(11), pages 1-19, November.
  • Handle: RePEc:plo:pdig00:0001801
    DOI: 10.1371/journal.pdig.0001801
    as

    Download full text from publisher

    File URL: https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001801
    Download Restriction: no

    File URL: https://journals.plos.org/digitalhealth/article/file?id=10.1371/journal.pdig.0001801&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pdig.0001801?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pdig00:0001801. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: digitalhealth (email available below). General contact details of provider: https://journals.plos.org/digitalhealth .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.