Video diffusion model improves repetitive action counting accuracy
DiffRAC: Repetitive Action Counting with Video Diffusion Motion Priors
Computer Vision and Pattern Recognition
Summary
Counting repeated actions in videos, like jumping jacks or push-ups, is tricky because similar poses can appear within a single action cycle, and still moments create confusing signals. The authors propose DiffRAC, a method that uses a new kind of video understanding model called a video diffusion model to better recognize how movements change over time. DiffRAC looks at patterns in the model’s attention between frames to guess the length of each action cycle and predict how often the action repeats. This approach produces more accurate counting of repetitive actions across different video datasets without needing to be trained on all of them.
What this means in practice
- •For fitness app developers: Improve automatic counting of exercise repetitions by accurately detecting action cycles in user videos using cross-frame motion relationships.$Commercial implications: Enables commercial fitness apps to provide more reliable rep counting features based on advanced video analysis.
- •For sports analytics teams: Use video diffusion based cycle detection to analyze athlete training videos for precise measurement of repeated motions.
Authors
Junyuan Xiao, Guangmo Yi, Jingqi Tian, Cheng Chen, Lionel Z. Wang, Wenming Yang, Xinjie Li
Abstract
Repetitive action counting (RAC) requires identifying complete cycles in continuous motion, but visual similarity is an unreliable cue for this: a pose can recur within a single cycle, and pauses or static backgrounds produce high similarity without any repetition. We argue that video diffusion models, which must capture how content evolves across frames in order to generate coherent motion, provide a better source of cross-frame relations. We present DiffRAC, which uses a Wan video diffusion transformer, adapted with LoRA and then frozen, as the motion encoder of a counting model. For each video window, DiffRAC reads the query--key attention affinities between time steps of the input clip from several denoiser layers and averages them along temporal lags. Regularly spaced lag responses, summarized by learned lag features, a periodogram, and period templates, yield a posterior over the cycle length. Conditioned on this posterior, a query-based decoder predicts whether the window is repeating (activity) and how fast it repeats (frequency); their product is a local counting rate. Rates from overlapping windows are averaged on the original timeline by coverage normalization, integrated into a count, and calibrated, and an optional evidence-gated refinement step can further update the count. DiffRAC reaches 74.3% off-by-one accuracy (OBO) on RepCount-A and 87.6% on UCFRep. Trained only on RepCount-A, it transfers to UCFRep and Countix with 82.4% and 73.9% OBO.