Borrowing Real Sensor Noise from the Background to Transfer Stillness Detectors from Simulation

Many monitoring systems must decide, from a stream of estimated speeds, whether a person is truly still, making small movements, or moving normally. In a simulator, "still" means the velocity is exactly zero. In a real camera, an optical-flow estimator (a model that predicts per-pixel motion between frames) reports small non-zero speeds even when nothing moves, because of sensor noise, flicker and compression. A detector trained on synthetic humans therefore learns a shortcut: rest equals zero. On real video it sees phantom motion. The obvious fix is to raise the threshold, but that also erases the small movements that matter clinically, such as twitches or shallow breathing, because their amplitude overlaps with the noise.

We propose to get realistic "stillness noise" for free from the real footage itself. The same flow estimator, run on static background regions of unlabeled real video, outputs almost pure sensor-plus-estimator error for that camera, that lighting and that codec. We collect these residual speed traces, keep their temporal structure, and add them to clean synthetic body-speed trajectories rendered with exact motion labels. A small temporal classifier trained only on this mixture should separate stillness, micro-motion and active motion on real video, and should beat both hand-tuned gating and generic noise injection, especially on the micro-motion class.

Core Claim

The gap between synthetic and real stillness is mostly a gap in the noise floor, not in the body motion. That noise floor has temporal correlation and depends on context, so Gaussian jitter does not reproduce it. It can be measured without labels from background pixels of target-domain video. Adding it to synthetic trajectories gives a three-state classifier that transfers zero-shot to real footage. The part we think is new is the separation of micro-motion from jitter: a threshold cannot do this, while a model trained on correctly structured noise can, because real micro-motions differ from noise in temporal shape rather than in size.

Position Relative to Prior Work

The problem is set up most directly by OPPH. OPPH forces body speed to zero when frame differencing followed by a temporal median filter declares the person immobile. It reports near-zero motion error on the real HuMoLs motionlessness dataset and evaluates separately on synthetic Surreal. OPPH motivates our work because its authors observe that real noise and blinking corrupt velocity estimates in ways Surreal does not show. It also constrains our work: its fixed thresholds and window sizes are hand-set per setting, and it never trains on one domain and tests on the other. We keep its speed-extraction front end (RAFT flow, pose displacement) and replace its gate with a classifier trained in simulation.

The rest of the velocity-classification literature uses the same kind of rigid cutoff. Examples include a 15-second displacement rule for parked cars (illegal parking detection), a 60-second, 75-pixel depth-change rule for lethargic pigs (DepInact), and a 1 m/s distance-over-time rule for cellular stay points (adaptive staying point recognition). In the last paper, the adaptive per-user cost already beat a fixed threshold (91.3% vs 81.48% accuracy). That result supports our view that one global cutoff misreads noise, although that paper adapts to user behavior, not to sensor noise.

Our method draws on sim-to-real noise injection. Adversarially Masking Synthetic to Mimic Real learns where to drop synthetic LiDAR points so that the data looks like real dropout, raising SynLiDAR→SemanticKITTI from 15.2% to 22.8% mIoU. It works on spatial completeness in point clouds, not on temporal noise in speed signals, and it learns noise adversarially where we measure it directly. S2R-Bench shows that off-the-shelf simulated corruptions badly underestimate real ones; for example, real glare degraded LiDAR performance 85% more than simulated glare predicted. This is the strongest reason not to trust a parametric noise model and to sample real noise instead. COMPASS and DrEureka close dynamics gaps by tuning or randomizing simulator physics for control policies. Both show that blind randomization over many parameters works poorly, with 39% real success for the best baseline versus 80% for COMPASS. We deliberately leave body dynamics alone and target only the measurement channel. ROFT uses optical flow as a velocity sensor and benchmarks on synthetic Fast-YCB and real HO-3D. It does not study transfer between them, and it concerns fast motion rather than stillness.

Research Program

We first build a synthetic trajectory source. From Surreal, whose rendered humans come with ground-truth flow and pose across large, subtle and motionless actions, we compute clean per-frame body speed $v_t^{\text{sim}}$ and label each second as still, micro-motion or active. Labels come from ground-truth displacement bands defined in physical units relative to body size, not in raw pixels. Surreal's motionless sequences are mostly exactly still, so we also synthesize micro-motion by adding small periodic and impulsive perturbations to the ground-truth motion of still sequences. These imitate breathing, which is low-frequency and quasi-periodic, and twitches, which are brief bursts.

Second, we build a residual bank. On each unlabeled real video in the target domain, we run the same flow estimator used at test time. We segment static background regions, meaning pixels outside the person mask whose appearance is stable over long windows, and record the resulting pseudo-speed traces $r_t$. Each trace is tagged with cheap context features: mean brightness, local texture energy, and the area of the region used.

Third, we train on noisy synthetic data:

$$\tilde v_t = v_t^{\text{sim}} + \lambda\, r_{t+\tau}^{(c)},$$

where $r^{(c)}$ is a residual trace drawn from the bank with context $c$ close to the synthetic frame's context. The offset $\tau$ is a random start time, so temporal correlation is preserved while phase is randomized. The scale $\lambda$ corrects for the gap between background and body regions and is fit once, as described below. The classifier is a small one-dimensional temporal convolutional network over roughly 4-second windows of $\tilde v_t$, together with pose-displacement speed.

The main open risk is that noise on textureless skin and clothing differs from noise on walls. We handle it with a small calibration recording of a mannequin and draped clothing under the same cameras and lighting. This gives pure body-like rest noise, which we use to fit $\lambda$ and to test whether background residuals match body-region residuals in spectrum and amplitude.

Baselines

The naive reference point is a classifier trained on clean Surreal speeds and applied directly to real video. We expect it to over-report motion during rest, and it measures the size of the gap.

The strongest hand-engineered competitor is OPPH gating on top of RAFT, followed by a two-threshold rule that splits the gated speed into the three states. OPPH reports a mean motion RMSE of $2.7\times10^{-4}$ pixels on HuMoLs with RAFT. No reported result was found on Lacuna for three-state or micro-motion classification on HuMoLs or JHMDB, so we will establish that number ourselves. To keep the comparison fair, OPPH's frame-difference threshold and window length $m$ get the same tuning budget as our method's hyperparameters, a grid searched on the same small real validation split.

The strongest learned competitor is an adaptation of ASM to one-dimensional speed signals. A learnable noise generator, trained adversarially against a real-versus-synthetic discriminator that sees unlabeled real speeds, perturbs synthetic trajectories. It uses the same unlabeled real videos, the same classifier and the same compute. Unlike our method, it is not restricted to background regions, so its discriminator also sees real body motion.

Beyond these, we run a threshold oracle: the three-state threshold rule tuned on labeled real data, with 1, 5 and 20 labeled minutes. We also run a classifier trained on the same small labeled real set. Finally, two ablations isolate the key ingredient. In one, the residual bank is shuffled in time, which keeps the amplitude distribution but destroys correlation. In the other, the bank is replaced by Gaussian noise with matched variance.

We count our method as beating a baseline if micro-motion F1 improves by at least 5 points over the best baseline at an equal or lower false-motion rate during rest, across held-out subjects.

Why not just…?

Why not just add Gaussian jitter to the synthetic speeds? Real flow noise at rest comes from compression blocks, lighting flicker and estimator artifacts. It is temporally correlated and has a heavy tail. S2R-Bench's finding that parametric corruptions badly misjudge real degradation suggests Gaussian noise will not match it. Our matched-variance Gaussian ablation and the time-shuffled ablation test this directly. If either matches the full method, the claim that temporal structure matters is false and we will report that.

Why not just tune the threshold on a few minutes of labeled real video? This is the most serious threat. For the two-way still-versus-active decision, we expect a tuned threshold to come close to our method. That is why the threshold oracle is run at several label budgets. Our claim rests on the micro-motion class, where amplitudes overlap with noise and no threshold can separate them. If the 5-minute oracle matches us on micro-motion F1 too, the idea reduces to calibration, and we would narrow our claim to label-free deployment on new cameras.

Why not just filter harder, with Kalman or median filters, before classifying? OPPH already shows that standard smoothing leaves phantom motion during rest, and its own median gating is our baseline. Heavier smoothing trades phantom motion for missed twitches. We measure this trade by sweeping the filter strength and plotting the curve of rest false-motion rate against micro-motion recall. We compare our method's operating point against that whole curve, not against one setting.

Why not just learn the noise adversarially, as ASM does for LiDAR? Without masks, a discriminator on real speed traces cannot tell sensor noise from real subtle body motion. It may teach the generator to add fake micro-motion to "still" training samples, which would blur the very class we care about. The adapted-ASM baseline tests whether this confusion actually happens.

Proposed Experiments and Decisive Checks

Training uses only Surreal plus unlabeled real video. For evaluation, we annotate per-second states on HuMoLs, which is intentionally motionless and so supplies still and incidental micro-motion segments, and on JHMDB, which supplies active segments. We add a small new recording in which subjects are cued to perform instructed micro-movements, so micro-motion has trustworthy labels. The residual bank is always harvested from videos of held-out subjects, never from the test clips. Metrics are macro-F1, micro-motion F1, false-motion rate during rest, and missed-stillness rate. Results are reported separately for RAFT-derived and pose-derived speed.

The first decisive check is the mannequin test. If background residuals and mannequin-body residuals differ in power spectrum by more than the scale $\lambda$ can absorb, the core assumption fails, and we fall back to body-region harvesting from the mannequin recordings. The second is the pair of time-shuffled and Gaussian ablations, which decide whether temporal structure of the noise is what transfers. The third is the label-budget curve against the threshold oracle, which decides whether the method adds anything beyond cheap calibration. A final cross-camera test harvests the bank on one camera and tests on another. It shows whether the bank must be collected per deployment, which is a cheap requirement since it needs no labels but should be stated. If these checks succeed, the same recipe could later be applied to stay-point detection in GPS data, using parked-device traces as the background.