Design-Based GEE for Adaptively Throttled Sensor Streams

Phones, wearables and edge devices save battery by sampling sensors slowly when nothing is happening and quickly when the signal starts to move. That is good engineering. It also quietly ruins the data for statistics. When the device decides when to measure based on what it has just seen, the measurement times carry information about the outcome. A downstream analysis that treats those times as given produces biased effect estimates and confidence intervals that are too narrow. This proposal fixes the problem at the source. Because the device itself chooses the sampling schedule, it can make each sampling decision a logged coin flip with a known probability and a guaranteed minimum. Inference then needs no model of the observation process. Each measured value is weighted by one over its known sampling probability, and the result is plugged into generalized estimating equations (GEE), the standard semi-parametric regression method for repeated measurements on the same person, which reports population-averaged effects with "sandwich" standard errors that stay valid when the within-person correlation is modeled wrongly.

The second half of the idea turns this correction into a design tool. Once the estimator's variance is written as a function of the sampling probabilities, the throttling policy can be chosen to minimize that variance under a fixed energy budget. This replaces the usual goal of minimizing prediction error. Put in two sentences: randomize the throttling with a known floor so that inverse-probability-weighted GEE is valid by construction, and then pick the probabilities so that each unit of battery buys the most statistical precision. The test is whether, at equal energy, this gives honest confidence intervals that are narrower than those from uniform low-rate sampling.

What exists and what is missing

Adaptive sampling work optimizes acquisition for a predictive or tracking objective. Learning Datum-Wise Sampling Frequency for Energy-Efficient Human Activity Recognition learns a Markov decision process policy that picks each window's sampling frequency to trade classification accuracy against an energy penalty. Sampling Policy Design for Tracking Time-varying Graph Signals with Adaptive Budget Allocation shifts a fixed long-run budget across time steps with look-ahead dynamic programming. OCMDP treats "observe or not" as a learned action. All three produce deterministic, state-triggered schedules and offer no population-level inference. Deterministic triggers are exactly what breaks inference, because some states are then never sampled at all.

Three lines of statistical work come closest, and each plays a different role here.

  • Motivation. Adaptive Linear Estimating Equations shows that when data collection depends on past outcomes, ordinary estimators lose asymptotic normality. It restores normality with "predictable" weights in linear models and leaves generalized linear models (GLMs) open.
  • Method. Incorporating Auxiliary Variables to Improve the Efficiency of Time-Varying Treatment Effect Estimation supplies the template we reuse: known randomization probabilities in micro-randomized trials make weighted, centered estimating equations valid, and cheap auxiliary covariates add efficiency without harm. There, however, it is the treatment that is randomized, on a fixed schedule. Here it is the observation, at sensor time scales.
  • Constraint. A stochastic second-order GEE approach … informative missing data builds inverse-probability-weighted and doubly robust GEE for informative missingness. It must estimate the missingness model and handles static binary indicators. Our setting removes that estimation burden entirely, because the probabilities are logged.

Two further papers are contrasts. Neural Controlled Differential Equations handle informative observation timing by feeding a cumulative-count channel into a predictor, which yields no interpretable marginal parameter and no standard errors. Generalized Fitted Q-Iteration With Clustered Data puts GEE inside reinforcement learning on fixed time steps and does not treat observation rate as a decision.

The new piece is therefore narrow. It has three parts:

  • a sampling controller whose decisions are randomized with known, floored probabilities;
  • an augmented inverse-probability-weighted GEE that uses an always-on cheap channel;
  • a variance-optimal allocation of the energy budget.

To my knowledge none of the papers in the file does any of these for longitudinal sensor streams.

Core Claim

Setting. Let the sensor have a base grid of potential sampling ticks $t$ (for example, 100 Hz). For subject $i$:

  • $R_{it}\in\{0,1\}$ indicates whether the expensive channel is actually read at tick $t$.
  • $\pi_{it}=P(R_{it}=1\mid H_{it})$ is the logged probability, where $H_{it}$ is everything the device knew before deciding (the cheap always-on channel and earlier expensive readings).
  • $\pi_{it}\ge\varepsilon>0$ by construction.

Estimator. Let $\hat m_{it}$ be any prediction of the expensive reading $Y_{it}$ that uses only $H_{it}$, cross-fitted across subjects. Form the pseudo-outcome $\tilde Y_{it}=\hat m_{it}+(R_{it}/\pi_{it})(Y_{it}-\hat m_{it})$ at every tick and solve the ordinary GEE

$$\sum_{i=1}^{K} D_i^\top V_i^{-1}\big(\tilde Y_i-\mu_i(\beta)\big)=0,$$

where:

  • $\mu_i(\beta)$ is the marginal GLM mean given exogenous covariates;
  • $D_i=\partial\mu_i/\partial\beta$;
  • $V_i$ is a working covariance;
  • $K$ is the number of independent subjects.

Why it is valid. The decision $R_{it}$ is made before $Y_{it}$ is seen, so $E[\tilde Y_{it}\mid H_{it},Y_{it}]$ equals $Y_{it}$ whatever $\hat m$ is. The pseudo-outcomes therefore have the same marginal mean as the full-rate data. GEE consistency and the subject-level sandwich variance then carry over unchanged, as long as subjects are independent.

Practical consequences. Because the pseudo-outcome lives on the regular base grid, a first-order autoregressive working correlation becomes usable again. This is the discrete form of an Ornstein–Uhlenbeck process, whose tridiagonal precision matrix the OUF model exploits. Inverting it costs time linear in the number of ticks. Efficiency is added with a single Newton step from the independence fit, following one-step fGEE.

Design rule. For a scalar target (one coefficient, with influence direction $d_{it}$), the variance added by subsampling is roughly $\sum_t E[(1/\pi_{it}-1)\,d_{it}^2 (Y_{it}-\hat m_{it})^2]$. Minimizing this subject to an expected energy budget $\sum_t \pi_{it}\le B$ gives the Neyman-type allocation

$$\pi_{it}=\min\Big\{1,\ \max\big\{\varepsilon,\ c\,|d_{it}|\,\hat\sigma(H_{it})\big\}\Big\},$$

where:

  • $\hat\sigma(H_{it})$ is a predicted size of the residual given what the cheap channel shows;
  • $c$ is set so the budget binds.

The rule comes from a Lagrangian argument, the same one behind optimal unequal-probability survey sampling. In practice it is a lookup table on the cheap channel, so the controller costs almost nothing to run. That matters given the overhead concern raised by Green Edge AI.

Research Program

Aim 1: theory.

  • Prove consistency and asymptotic normality of the augmented weighted GEE as the number of subjects $K$ grows, for logistic and Poisson links.
  • Bound the variance penalty as a function of the floor $\varepsilon$, which gives an explicit price for guarding against the "inverse information paradox" (bursts that fall between sparse samples).
  • Show where validity breaks. The estimator stays valid when each subject's policy depends only on that subject's own history. If the $\hat\sigma$ table is learned online by pooling subjects, subjects become dependent, and that is exactly the regime where ALEE finds normality failing. We will compare two fixes: batch-wise sample splitting (learn the table on earlier subjects, freeze it for later ones), and an ALEE-style predictable-weight correction extended to GLM links.

Aim 2: software.

  • A device-side controller that logs $\pi_{it}$ at each tick.
  • An analysis package that fits the independence and one-step autoregressive versions with small-sample-corrected sandwich errors. The correction is needed because, as the GEE2 paper notes, the plain sandwich undercovers at small $K$.

Aim 3: empirical study. This is the semi-synthetic and real-data program described below.

Baselines

Fixed full-rate oracle. GEE on every tick. It defines the truth for semi-synthetic estimands and the maximum energy cost. Being equally precise at a fraction of its energy is the ideal outcome.

Uniform fixed-rate subsampling at matched energy, analyzed with standard GEE. This is the "do nothing clever" reference. Uniform sampling is exogenous, so this baseline is unbiased and covers nominally. It is the strongest valid competitor, and the proposal wins only if its intervals are clearly narrower at the same number of expensive reads, for example at least 20% shorter while keeping coverage within one Monte Carlo standard error of 95%.

The strongest existing adaptive method. This is the datum-wise frequency selection policy of Cheng et al., reimplemented and trained on the same data at the same energy penalty sweep, with two analyses:

  • naive GEE that ignores how the samples were chosen;
  • inverse-intensity weights estimated after the fact, with doubly robust augmentation in the spirit of DR-GEE2.

The file reports no exact error or energy numbers for this policy on HASC 2011, HARSD or DSA. It reports only that it beats fixed-frequency baselines at p < 0.05 and has a frequency-changing rate of 0.1–0.3. It also reports nothing on inferential coverage. There is no reported result on Lacuna for GEE coverage under adaptive sensor sampling, so we will generate these numbers ourselves. The closest inferential reference point is ALEE, which reports about 91% coverage for nominal 90% intervals in its bandit simulations. We will run its predictable-weight estimator in the linear-link version of our experiments as a further competitor. All methods get the same subjects, the same cross-fitting folds and the same tuning budget for any learned component.

Ablations. Each isolates one ingredient:

  • floor $\varepsilon=0$ (a deterministic trigger) versus $\varepsilon>0$;
  • logged versus re-estimated probabilities;
  • augmentation $\hat m$ on versus off;
  • Neyman-optimal versus heuristic randomized allocation (probability proportional to cheap-channel variance);
  • independence versus one-step autoregressive working correlation.

Why not just…?

Why not just sample uniformly at a lower rate and run ordinary GEE? For marginal means this is unbiased, so it is the real threat. Its weakness is efficiency when the estimand is driven by brief, rare episodes. Examples are transient high-impact events, where fall classification work shows that coarse capture loses much of the signal, and bursty dynamics, where adaptive budget allocation cut accumulated tracking error from 460.124 to 22.412 against one fixed-budget baseline. The matched-energy comparison settles the question. If uniform sampling ties the optimized design on burst-sensitive estimands, the contribution shrinks to "randomization makes adaptive sampling safe," and we will report it that way.

Why not keep the deterministic trigger and add sampling rate as a covariate, as the count channel in Neural CDEs does? Conditioning on the sampling process changes the estimand from a population-averaged effect to a conditional one. It also cannot recover states that were never sampled. The $\varepsilon=0$ ablation shows directly whether coverage collapses.

Why not estimate the observation intensity after the fact, as in DR-GEE2? Doubly robust weighting protects against misspecification of one of two models. A deterministic policy, however, has sampling probabilities of exactly zero or one, so no estimated intensity can be inverted in quiet regions. When the probabilities are known, estimating them only adds noise. The logged-versus-re-estimated ablation measures that cost.

Why not ALEE's predictable weights? ALEE targets dependence induced across a single adaptive stream and is linear-only. When subjects are independent and the probabilities are logged, the plain sandwich should already be valid. ALEE becomes relevant only under pooled online policy learning, which Aim 1 tests directly.

Proposed Experiments

Semi-synthetic sensor studies. We use full-rate traces from HASC 2011 (100 Hz), HARSD (50 Hz) and DSA (25 Hz), and add the Stisen multi-device data to test robustness to sensor heterogeneity. On each subject:

  • the cheap channel is a low-rate magnitude summary;
  • the expensive channel is the full tri-axial window feature;
  • the estimands are marginal logistic and Poisson regressions, for example the probability of a high-intensity movement window as a function of session time and device model, with the full-rate fit as truth.

Policies are replayed offline by subsampling ticks with their logged probabilities, over 500 resamplings per energy level. We report bias, 95% interval coverage, interval width and expensive reads per hour.

Real-data study. In the Intern Health Study used by GFQI and A2-WCLS:

  • Fitbit steps and sleep act as the always-on cheap channel;
  • the daily mood self-report acts as the burdensome expensive measurement;
  • we subsample prompts and estimate the marginal mood–activity association.

A2-WCLS's reported relative efficiency of 2.33 for mood from auxiliary adjustment is evidence that the cheap channel carries real information for $\hat m$. PhysioNet Sepsis 2019 serves as a cautionary negative control: its clinician-driven timing is informative and its probabilities are unknown, so it shows what the method cannot do without logged probabilities.

Decisive checks.

  • Motivation. Naive GEE after the deterministic datum-wise policy should undercover clearly, below 90% for a nominal 95% interval. If it does not, the motivation is weak.
  • Validity. The proposed estimator should hold nominal coverage at every energy level and floor.
  • Value. At matched energy, its interval width should beat uniform subsampling on burst-driven estimands while staying no worse on smooth ones.
  • Pooled learning. Under pooled online learning of the allocation table, sample splitting should restore coverage. If it does not, the ALEE-style correction becomes necessary rather than optional.