Packed Peripheral Optic Flow on a Milliwatt Co-Processor for Cybersickness Control

Many virtual-reality users get motion sick, and the best-supported cause is a specific mismatch: the eyes see the world streaming past in the periphery, but the inner ear feels no matching acceleration. A well-tested fix is to narrow the visible field only while that mismatch is high. Existing systems decide when to narrow it with a chain of separate stages: track scene motion, filter outliers, estimate global acceleration, regress a sickness score, then shade the image. On mobile headsets that chain takes about a full frame of compute, and it competes with rendering on the same processor that is already prone to overheating. We propose to move mismatch sensing onto a separate 8-core, milliwatt-class RISC-V co-processor, the kind already shown to run patch-based optical flow at hundreds of frames per second on 25 mW. We also propose to replace the chain of stages with one small network. That network reads sparse peripheral motion measurements together with the headset's inertial sensor and outputs a field-of-view setting directly.

The step that makes this efficient on such a chip is sequence packing, meaning the practice of concatenating variable-length inputs into one dense, fixed-size buffer instead of padding each to the maximum. The number of useful peripheral motion measurements changes from frame to frame with scene texture and with the current field-of-view width. We pack these measurements across several frames into one fixed buffer in the chip's shared scratchpad memory. The cluster can then wake once, process a dense batch on all eight cores, and go back to sleep. Two things are new here: an app-agnostic comfort monitor that runs off the main processor, and the first test of whether boundary-preserving packing actually saves energy on a scratchpad microcontroller, where moving data often costs more than computing on it.

Core Claim

The claim has two parts, and each can be falsified separately. The first is a perception claim. A single network that takes peripheral motion tokens and inertial-sensor (IMU) motion as input, trained to forecast the user's short-term postural sway, will reduce sickness at least as much as the modular dynamic field-of-view pipeline. It must also beat a hand-built "gyroscope-compensated flow" rule, and it must do this while removing the per-frame sensing cost from the headset's application processor. The second is a systems claim. On an 8-core cluster with a shared scratchpad, packing a variable number of tokens across $K$ frames and waking the cluster once per $K$ frames lowers energy per second relative to two alternatives: padding every frame to the worst-case token count, and waking every frame with a dynamic work queue. The saving must come without increasing sickness, up to a latency we will measure. If the hand-built rule matches the learned network, the end-to-end component is unnecessary and the contribution shrinks to the hardware placement and packing study. We treat that as a real possible outcome.

What Exists and What Does Not

Three papers motivate the proposal, and each established one piece. Lim et al.'s dynamic field-of-view method tracks subregion motion in 360° video, predicts sickness with a regression model (R² = 0.869), and narrows the view with a soft luminance edge. It reports a 37.05% reduction in head dispersion, a "60° floor" below which black borders themselves cause discomfort, and roughly 16 ms per frame on mobile VR hardware. We keep its intervention and its outcome measure. We replace its four-stage cascade and move its compute off the main processor. Li et al.'s kinematic predictor trains a headset-motion LSTM to reconstruct an electrodermal-activity embedding, reaching 97.8% four-class accuracy on 157 twenty-second windows. It also reports that models trained on raw physiological signals reach only about 50% because of motion artifacts. That result constrains our design: no wrist sensor is used at runtime. Li et al. never look at the visual stream, run offline on fixed windows, and do not close the loop. The cybersickness navigation dataset supplies synchronized head pose, virtual speed and angular velocity, biosignals, and pre/post questionnaire scores for 159 sessions. As far as the file describes it, it contains no rendered frames.

Three papers supply the hardware method. Kühne, Magno and Benini port sum-of-absolute-differences optical flow to the 8-core GAP8 cluster and reach 529 FPS at 25 mW, compared with 250 FPS at 48 mW on a Cortex-M4. They also found that precomputing interpolations globally ran slower than recomputing them locally inside each patch, because scratchpad and DMA traffic dominated. That finding is the direct threat to packing. PULP-NN provides 8-bit SIMD kernels tiled over output feature maps on a 64 KB shared L1. Q-EEGNet shows how to fold batch normalization into convolutions and interleave layer tiles to cut memory by 85%. Both assume fixed rectangular inputs.

Packing supplies the remaining ingredient. NaViT packs variable patch sets from many images into one sequence, using masked attention and masked pooling so images do not mix. PackMamba resets recurrent state and convolution context at packed boundaries so that packed and unpacked outputs are identical, and reports a 66.3% padding rate without packing and about 19% residual padding with greedy packing. Both target datacenter accelerators. Neither faces the question that matters on a microcontroller: does the index bookkeeping cost more than the padding it removes?

For collapsing the pipeline, we borrow ideas from speech recognition. Yoshimura et al. replace a standalone voice-activity detector with segmentation read off the recognizer's own blank-symbol runs, with onset and offset margins. We reuse that hysteresis structure to trigger narrowing from the network's own output. Wav2vec-Switch builds noise robustness into the representation through paired clean and noisy inputs. That inspires our paired training, described below. No paper in the file joins all four pieces, and the closest system, Lim et al., is modular and runs on the main processor.

Research Program

Front end and model. Each frame the compositor sees, which may come from a 360° video or an arbitrary app, is downsampled. Only the peripheral annulus outside the current field of view is passed to the co-processor; the field-of-view state is fed back so the annulus can change size. The co-processor runs Kühne-style block-matching flow on patches whose texture passes a contrast test. As a result, the number of tokens $n_t$ per frame varies with content and with the current restriction. Each token holds a patch flow vector, its angular position (factorized x/y embeddings, as in NaViT), and the gyroscope-predicted rotational flow at that position.

That last field matters. Rotational flow does not depend on scene depth and can be computed exactly from the IMU, so the network starts from the physically confirmed component and only has to learn what remains. A shared per-token layer feeds masked per-frame pooling. A small 8-bit recurrent cell, which carries state across frames and resets only at session start, then outputs a scalar mismatch score. A blank-run-style hysteresis with onset and offset margins converts that score into a field-of-view target clamped at 60°.

Packing and duty cycling. Tokens from $K$ consecutive frames are written into a fixed buffer of size $B$ in the shared scratchpad. Per-token frame indices live alongside them so that pooling never mixes frames. This is NaViT's masking expressed as an index array, kept on-chip as PackMamba keeps its position indices in on-chip memory. Contiguous token ranges are assigned to cores so the load is balanced by construction. The recurrent step runs serially over the $K$ pooled frame vectors. Energy per second is then

$$E(K) = \frac{r}{K}E_{\text{wake}} + r\,\bar n\,e_{\text{tok}} + P_{\text{sleep}},$$

where $r$ is the frame rate, $E_{\text{wake}}$ is the fixed cost of powering up the cluster, loading the buffer and synchronizing the cores, $\bar n$ is the mean token count per frame, $e_{\text{tok}}$ is the per-token energy including index overhead, and $P_{\text{sleep}}$ is sleep power. Under padding, $\bar n$ is replaced by the worst case $n_{\max}$. The first term explains why small per-frame workloads lose to Amdahl effects and wake costs, and the second explains why padding wastes energy. Packing helps only if its extra index cost, which enters $e_{\text{tok}}$, is smaller than the savings in the other two terms. We will measure every term on hardware.

Training targets. Questionnaire scores exist only per session, so we need a dense label. Our primary target is the user's head dispersion over the next few seconds, which Lim et al. found tracks postural instability at R = 0.82. Because dispersion is computed from the same IMU the model reads, any gain over a persistence forecaster is the real test. Session-level change in questionnaire score serves as a weak secondary target. Where wrist data are recorded, Li et al.'s physiological-embedding reconstruction is added as an auxiliary loss, used only during training.

To make the model focus on unconfirmed motion, we add paired examples in the spirit of Wav2vec-Switch. The same flow tokens are presented with the true IMU stream and with a time-shifted IMU stream, and the model is trained to raise the mismatch score only in the mismatched case.

Data. The navigation dataset has kinematics but, as described, no frames. We will use it for the kinematic branch and for comparison with Li et al. We will also collect a new study: 360° videos matching Lim et al.'s protocol, plus rendered locomotion with recorded frames, on a standalone headset tethered to a GAP8 board. We will record head IMU, wrist EDA, and pre/post questionnaires.

Baselines

The naive reference is full field of view with no intervention. Next comes a static 60° restriction, which tests whether any dynamics are needed at all.

The strongest existing method is Lim et al.'s modular dynamic field-of-view pipeline. It reports a 37.05% head-dispersion reduction relative to full field of view, regression R² = 0.869, and about 16 ms per frame on mobile VR Lim et al.. We will reimplement it on the same headset and the same videos with the same 60° floor and vignette profile, and tune its thresholds on the same held-out users we use for our own model. Beating it means two things: an equal or larger dispersion and questionnaire reduction, with a confidence interval on the difference from a within-subject design, and essentially zero added load on the main processor, measured as frame-time headroom and thermal throttling events over a 20-minute session.

For prediction alone on the navigation dataset, the strongest number is Li et al.'s 97.8% four-class accuracy Li et al.. We will rerun their model on our subject-disjoint splits rather than compare against that figure directly, because 157 windows from 53 subjects can easily leak between subjects. No reported result was found on Lacuna for the energy or latency of any cybersickness predictor on microcontroller hardware. Our hardware baselines are therefore our own, run on identical boards and firmware.

The hardware baselines are the same model under three schedules: zero-padded to $n_{\max}$ and woken every frame; packed within a single frame with a per-frame wake; and a dynamic per-frame work queue. We also run the model on a single-core Cortex-M4, the reference point Kühne et al. used (250 FPS, 48 mW for their flow), and on the headset application processor.

Two ablations isolate the key ingredients. The first is the same network fed by Lim's hand-engineered global-acceleration features instead of tokens, which isolates end-to-end consolidation. The second is the network without the gyroscope-predicted flow channel, which isolates the physics prior.

Why not just…?

Why not just read virtual velocity from the game engine instead of computing optic flow? For apps that expose it, this is cheaper, and the navigation dataset shows such signals are available. But a comfort service at the operating-system or compositor level cannot see inside third-party apps, streamed content, or 360° video. Virtual velocity also ignores scene structure: the same speed past a textured wall and across an open field produce very different peripheral flow. On our recorded rendered sessions we will train the same controller on engine velocity alone. If it matches the flow-token model there, we will restrict our claim to app-agnostic and video settings.

Why not just subtract gyroscope-predicted rotational flow and threshold the leftover peripheral flow? This is the most serious threat. It is physically motivated, needs no training, and is cheap. We include it as a tuned baseline, with thresholds and hysteresis margins fit on the same users. If it matches the learned model on dispersion and questionnaire scores, the learned component is unjustified. In that case we would report the result as a hardware-placement finding, with the rule running on the packed co-processor.

Why not just run Li et al.'s kinematic LSTM, or any predictor, on the headset's main chip? A kinematics-only model is cheap, but it never sees the visual motion that causes the mismatch, and it was validated only offline on fixed windows. The expensive part of closing the loop is visual sensing, roughly a frame's worth of compute in Lim et al., and the file lists thermal throttling and frame drops as aggravating sickness. We will run both placements and log frame-time and thermal data. If main-chip execution shows no measurable headroom loss, the co-processor argument fails.

Why not just pad, or use a dynamic work queue, instead of packing? Padding is simple, and Kühne et al.'s global-versus-local result shows that indexing overhead can erase savings on this kind of chip. A work queue balances cores without packing across frames. The schedule ablation answers this directly by measuring each term of $E(K)$. Packing must beat both alternatives in energy per second at matched sickness outcomes, or we will report that it does not.

Decisive Experiments

The first experiment is the energy curve. We sweep $K$ from 1 to 16 frames on GAP8 using token-count traces recorded from the user study, and measure energy per second, per-token overhead, and core idle fraction under packing, padding, and the work queue. The expected shape is a decline that flattens once $E_{\text{wake}}$ is amortized. A curve where padding wins at every $K$ would falsify the systems claim.

The second experiment fixes the latency budget. In the within-subject study we vary $K$, and therefore the delay before the field of view responds. We find the largest $K$ at which dispersion and questionnaire reductions are statistically indistinguishable from $K=1$, and report the energy saved at that point.

The third experiment compares controllers. Users are randomized across full field of view, static 60°, Lim's pipeline, the gyroscope rule, and the packed end-to-end controller, with outcomes measured as dispersion reduction, change in questionnaire score, a presence questionnaire, and main-processor frame-time headroom.

The fourth experiment checks generalization, the gap the file names as unproven. We hold out a high-intensity content category, such as flight-style motion, from training. If the learned model's advantage over the gyroscope rule disappears there, its added value is limited to the training distribution, and we will say so.