Severe infections and sepsis often push blood sugar out of range in patients who have never had diabetes. In one COVID-19 cohort, 61% of hospitalized non-diabetic patients became hyperglycemic, driven mainly by acute insulin resistance (Study of new onset hyperglycemia and insulin resistance in COVID-19 patients). Correcting it too hard is also dangerous. In MIMIC-IV sepsis patients, mortality was lowest at a mean glucose of 130–160 mg/dL (about 17%) and higher at both 100 and 220 mg/dL, while hypoglycemia rose from 16% to 77% as targets tightened (What is the ideal glucose range for a patient with sepsis in the ICU?). Keeping each patient inside a middle band requires measuring them. Nurses and point-of-care tests are limited, though, so a ward can check only $K$ of its $N$ patients in any hour. Every unchecked patient keeps drifting.
We propose to treat "which patients to check this hour" as a restless multi-armed bandit. In that model, each patient is an arm that evolves whether or not it is chosen, and a fixed number of arms can be acted on per step. We will compute a per-patient priority score, the Whittle index, from a filtered estimate of that patient's glucose. The technical observation that makes this tractable is the following. If a patient's glucose is modeled as a noisy, mean-reverting linear process, the uncertainty in the estimate depends only on how long it has been since the last check, not on what the checks showed. The continuous belief therefore shrinks to two numbers per patient: the current mean estimate and the hours since the last check. This keeps index computation as cheap as in collapsing bandits, while allowing measurements that are noisy and continuous rather than ones that reveal a binary state exactly.
Core Claim
A Whittle index built on a mean-reverting Gaussian glucose model with a U-shaped harm cost will reduce simulated dysglycemia harm, compared with fixed-interval protocols and with "check whoever looks worst now," at the same check budget. The gain should concentrate in cohorts that mix two kinds of patients. Some have transient stress hyperglycemia that resolves without help. Others have escalating insulin resistance. The second claim is diagnostic: we will map where in the space of patient dynamics the cheap greedy rule is already near-optimal, and where it fails. That resolves a stated tension in the bandit literature. Greedy sensing is provably optimal for identical, positively correlated channels (Multi-channel Opportunistic Access). Yet greedy does worse than random when some arms self-correct (Collapsing Bandits).
How this relates to prior work
Each line of prior work plays a specific role here.
Collapsing Bandits supplies the method template. It applies restless bandits to tuberculosis adherence, where a visit reveals a binary state exactly. That reduces the belief to time since last visit and yields a fast threshold index, 3 seconds versus 3,708 seconds for 200 patients. We keep the reduction to time since last observation. We drop the assumptions of binary states and exact observation, since a glucose meter gives a noisy continuous reading. The cost of dropping them is that the index now also depends on the mean estimate.
The wireless work motivates the problem framing. Smart scheduling and feedback allocation over non-stationary wireless channels shows that measuring a channel is costly. A scheduler that pretends measurements are free goes unstable at loads beyond 10 packets per slot. Its uncertainty-aware probing, which uses Gaussian process uncertainty and queue length, stayed stable up to 12. A glucose check is exactly such a costly probe. That paper chooses whom to probe with a heuristic rather than an index, and we test the index against that heuristic directly. CDF-Based Multiuser Scheduling for NOMA supplies a fairness-preserving ranking: users are ranked by the percentile of their current state within their own distribution, which equalizes how often each is selected. We use it as a baseline and as a fairness reference.
Two lines of work constrain the design. Planning and Learning in Risk-Aware Restless Multi-Arm Bandits handles nonlinear utility by adding accumulated reward to each arm's state, which scales poorly when that reward is continuous. We avoid the augmentation by putting the U-shape into the per-step cost of the glucose state. UCWhittle learns unknown transitions with regret guarantees, but it assumes ergodic arms. We borrow only its optimism idea for estimating per-patient parameters online.
Learning Insulin-Glucose Dynamics in the Wild supports drifting-parameter physiology models. It was tested on only two patients with continuous glucose monitors, so we use it as a check on whether our simple model is adequate, not as the core model.
Research Program
Model each patient $i$'s glucose $g_{i,t}$ as reverting toward a personal set-point $\mu_{i,t}$ at rate $1-a_i$, with process noise variance $q_i$. A check returns $g_{i,t}$ plus meter noise of variance $r$. A check also triggers protocolized correction, insulin or dextrose, that partially moves glucose toward the band. Self-correcting patients have a falling $\mu_{i,t}$. Escalating patients have a rising one, reflecting worsening insulin resistance.
Under a Kalman filter, the posterior variance $\sigma^2_{i,k}$ after $k$ hours without a check follows
$$\sigma^2_{i,k+1} = a_i^2\,\sigma^2_{i,k} + q_i, \qquad \sigma^2 \leftarrow \frac{\sigma^2 r}{\sigma^2 + r}\ \text{on a check},$$
so it is a deterministic function of $k$. The arm state is therefore the pair $(m_{i,t}, k_{i,t})$, the posterior mean and the hours since last check.
The per-step cost is $c(g)$, a U-shaped harm curve. Its minimum is at 130–160 mg/dL. Its slopes on each side are calibrated to the MIMIC-IV mortality-by-glucose curve, with an extra penalty below 80 mg/dL. The Whittle index $W_i(m,k)$ is the subsidy $\lambda$ that makes the planner indifferent between checking patient $i$ now and leaving them unchecked:
$$Q_i^{\lambda}\big((m,k),\text{check}\big) = Q_i^{\lambda}\big((m,k),\text{wait}\big) + \lambda .$$
Here $Q_i^{\lambda}$ is the discounted expected negative harm of the decoupled single-patient problem. Each hour, the policy checks the $K$ patients with the largest indices.
The work has four parts. First, prove indexability for the mean-reverting Gaussian arm, meaning the set of states where waiting is preferred grows steadily as the subsidy rises. We will at least prove a sufficient condition in $(a_i, q_i/r)$ and verify it numerically elsewhere, using the tools discussed in Overcoming the State Space Explosion in Restless Bandits. Second, compute indices quickly by discretizing $m$ and exploiting threshold structure in $k$. Third, estimate per-patient parameters online from a population prior fit to MIMIC-IV, with an optimistic adjustment in the spirit of UCWhittle. Fourth, characterize analytically when greedy matches the index. We expect this to happen when patients are nearly identical and all have positive persistence, mirroring the spectrum-access condition.
We are not proposing to deploy this. The output is a simulation-validated policy and a map of when it matters.
Baselines
The naive reference is the fixed-interval protocol: check every patient every $h$ hours. We choose $h$ so that it uses the same expected number of checks as the other policies, and we also run a two-tier version, hourly for patients currently out of band and four-hourly otherwise. This is what wards actually do, and any learned policy must beat it at an equal budget. We count it as beaten if time-weighted harm falls with no increase in hypoglycemia patient-hours.
The strongest existing method for this question is the uncertainty-aware probing rule from Smart scheduling and feedback allocation, adapted to rank patients by expected harm reduction times posterior uncertainty. It is the only cited method built for exactly the "costly measurement of a drifting state" structure. It gets the same filter, the same parameter estimates and the same tuning budget as our policy, with its trade-off weight tuned on validation patients. No reported result was found on Lacuna for glucose-check scheduling with any method. The only reported number for this baseline is on its own wireless task: stable arrivals up to 12 packets/slot versus 10 for full-CSI Max-Weight. We count it as beaten if our index reduces harm by a margin outside the bootstrap confidence interval across held-out patient cohorts.
The greedy baseline checks the $K$ patients with the highest one-step expected harm $\mathbb{E}[c(g)]$ under the current belief. The CDF baseline ranks each patient by the percentile of their predicted out-of-band deviation within their own history, following CDF-Based Multiuser Scheduling. For risk sensitivity we include a coarsened RAWIP from Planning and Learning in Risk-Aware RMABs on a discretized state. That paper reports a 37.9% average improvement over risk-neutral planning on its breast-cancer simulation.
The key ablation replaces the U-shaped cost with a quadratic cost centered at 100 mg/dL while keeping everything else fixed. This isolates whether the non-monotone harm curve, rather than the bandit machinery, drives the gains. A second ablation gives the index the true patient parameters, which separates planning error from estimation error.
Why not just…?
Why not just check whoever looks worst right now? This is the real threat. If most patients persist rather than self-correct and have similar dynamics, the result in Multi-channel Opportunistic Access suggests greedy may be near-optimal. Against that, Collapsing Bandits found greedy worse than random when self-correcting arms are mixed in. Stress hyperglycemia is plausibly partly adaptive and transient, as the MIMIC-IV authors argue. The experiments settle this by sweeping the fraction of self-correcting patients, starting from the fraction estimated in MIMIC-IV. If greedy stays within the confidence interval of the index at realistic calibrations, we will report that, and the contribution becomes the boundary map and the indexability result.
Why not just use a fixed protocol, tuned per risk tier? Fixed protocols cannot shift checks toward the patient whose uncertainty has grown fastest. The wireless evidence from Smart scheduling shows that ignoring measurement cost and uncertainty breaks down under load. The equal-budget comparison will show whether the same holds when the check budget is tight, which we test by varying $K/N$ from 0.1 to 0.5.
Why not just train a deep reinforcement learning policy over the whole ward? The joint state grows exponentially in $N$, and exact planning is PSPACE-hard. UCWhittle also reports that model-free Whittle Q-learning learned slower and with higher regret than its index-based method. We will include a deep RL policy at $N=20$ as an upper reference, with its compute budget matched to the index pipeline. We do not expect it to be practical at ward scale.
Why not just use the risk-aware RAWIP machinery? Its accumulated-reward augmentation multiplies the state space when the outcome is continuous. A U-shaped harm on the per-step state captures both tails without that augmentation. The coarsened-RAWIP baseline tests whether anything is lost.
Proposed Experiments
We will extract adult sepsis admissions with irregular glucose measurements from MIMIC-IV using the MIMIC-IV processing pipeline, and fit hierarchical per-patient parameters $(a_i, \mu_{i,t}, q_i)$. As a model-adequacy check, the fitted model must forecast held-out next glucose values at least as well as a last-value-carried-forward predictor. From these fits we build a simulator that samples wards of $N \in \{20, 50, 200\}$ patients. A sensitivity variant uses drifting parameters in the style of Learning Insulin-Glucose Dynamics in the Wild, to test robustness to misspecification of our linear model.
The primary metric is simulated time-weighted harm. Secondary metrics are patient-hours below 80 mg/dL and below 50 mg/dL, patient-hours above 220 mg/dL, and checks per patient-day. Fairness is measured as the ratio of check rates and of harm across recorded demographic groups. We report it because the pipeline paper documents a positive-rate disparity of 0.0102 versus 0.0024 in a MIMIC-IV mortality model. Runtime per decision is reported for each policy.
Four decisive checks follow.
- At realistic calibration and $K/N=0.2$, the index must beat both the fixed protocol and the uncertainty-probing baseline on harm without raising hypoglycemia hours.
- The gap between the index and greedy should grow with the fraction of self-correcting patients and vanish for nearly identical, persistent cohorts. That would confirm the boundary predicted by the two bandit results.
- The U-to-quadratic ablation should lose most of the gain. If it does not, the bandit structure rather than the harm shape is doing the work, and we will say so.
- Numerical indexability must hold on the fitted parameter grid. Any region where it fails is reported, with the fallback to greedy quantified.
References
- Study of new onset hyperglycemia and insulin resistance in COVID-19 patients
- What is the ideal glucose range for a patient with sepsis in the ICU? A retrospective analysis of MIMIC-IV
- Multi-channel opportunistic access: A case of restless bandits with multiple plays
- Collapsing Bandits and Their Applications to Public Health Interventions
- Smart scheduling and feedback allocation over non-stationary wireless channels
- CDF-Based Multiuser Scheduling for Downlink Non-Orthogonal Multiple Access (NOMA)
- Planning and Learning in Risk-Aware Restless Multi-Arm Bandits
- Optimistic Whittle Index Policy: Online Learning for Restless Bandits
- Learning Insulin-Glucose Dynamics in the Wild
- Restless-UCB, an Efficient and Low-complexity Algorithm for Online Restless Bandits
- An Extensive Data Processing Pipeline for MIMIC-IV