Stale Skeletons: Qualifying a HAR Pipeline for the Failures That Only Show Up Under Load
Under load, an action recognition pipeline rarely crashes. The pose stage falls behind, the temporal classifier keeps getting fed whatever skeletons are left in its buffer, and the system keeps emitting labels with full confidence about a scene it stopped seeing a while ago. A qualification plan built on clean benchmark clips at nominal throughput will never trigger this, because the defect lives in the timing between stages and not in any one model.
The failure worth designing the test around
The failure mode is temporal starvation. When GPU contention or a burst of detected people pushes pose inference past its frame budget, most implementations either duplicate the last skeleton to keep the sliding window full or quietly pack it with fewer, unevenly spaced samples. Either way, the spatio-temporal classifier gets a sequence that looks valid in shape but is false in time: duplicated frames read as stillness, and compressed spacing turns ordinary joint motion into velocity spikes. The result is a confident "standing" label during a fall, or a phantom "running" while someone walks across the room. Nothing in the logs flags it, since every stage reports success.
A test that makes time the variable
The test that catches this replays annotated sequences with known action onsets through the full deployed pipeline while a separate load generator ramps contention on the shared accelerator and adds tracked subjects to the scene, so pose latency climbs in a controlled, repeatable way. Every skeleton is stamped at capture, and every classifier output carries the capture timestamp of the oldest and newest skeleton in its window. That lets you plot, for each emitted label, its confidence against the age of its evidence. A healthy pipeline shows confidence dropping, or labels being withheld, as evidence ages. A pipeline with the starvation defect shows a flat confidence curve that stays high long after the input went stale, and that flat line is the finding. Run the same ramp a second time with the pose stage killed outright for a few seconds, because a hard stop and a slow stall go through different buffer code paths and only one of them is usually tested.
The decision rule to put in the plan: if the newest skeleton in a classifier window is older than 200 ms at inference time, the system must emit an explicit degraded or unknown state rather than an action label, and any confident label produced past that age counts as a test failure no matter whether it happens to be correct.
What keeps it working when a stage fails
Graceful degradation here is an architectural property, so the test has to verify the mechanism and not only the outcome. The pose stage should drop frames at the source with honest timestamps instead of padding the window, the classifier should consume real capture times so motion features are computed over actual intervals, and a supervisor should own the degraded state so downstream consumers such as alarm logic can tell "no fall detected" apart from "cannot currently see". Functional safety standards such as IEC 61508 give you the vocabulary for this: a detected loss of function moves the system into a defined safe state, while an undetected one is the hazard. The trade-off is real. Withholding labels under load increases missed detections in the moments when the scene is busiest, and by my estimate a well tuned staleness gate will suppress output during a meaningful share of peak load events, so the operations team has to accept a visible "degraded" indicator in place of a stream that only looks continuous.
Technical FAQ: Why not just provision enough compute so the pose stage never falls behind?
Because peak load in activity recognition depends on the scene, not on the hardware: the number of tracked people, occlusion driven re-detection and co-located workloads all scale independently of your sizing assumptions. Overprovisioning moves the point where starvation begins without removing it, so you still have to qualify what happens past that point, and the staleness ramp test is how you locate that threshold on the hardware you actually ship.