Abstract
Video Action Counting (VAC) is a critical task in computer vision, yet real-world applications are often hindered by the irregular nature of human actions, such as variable speeds and intermittent pauses. We present IVAC-P$^2$L, a novel framework designed to handle these irregularities by leveraging two fundamental repetition priors: inter-cycle consistency and cycle-interval inconsistency. By employing a unique "pull-push" loss mechanism, our model effectively clusters similar action features while distancing them from non-repetitive intervals. IVAC-P$^2$L achieves state-of-the-art performance on major benchmarks, including RepCount-A, and demonstrates robust zero-shot generalization across diverse video domains.
Introduction: The Challenge of Irregular Actions
Video Action Counting (VAC) involves determining the frequency of specific repetitive actions—such as exercise repetitions or culinary tasks—within a video sequence. While seemingly straightforward, real-world videos are rarely rhythmic. Human performance is naturally inconsistent; individuals may pause, change their pace, or be interrupted, leading to significant spatial-temporal irregularities.
Traditional VAC methods typically struggle with two primary hurdles. First, they must often be class-agnostic, counting actions not seen during training. Second, they must account for spatial-temporal irregularity, where repetitions have inconsistent durations and are separated by "dead air" or unrelated intervals. Most existing models treat VAC as a simple regression problem, failing to model the inherent relationship between repetitive cycles and the non-repetitive intervals that separate them.
Methodology: The IVAC-P$^2$L Framework
The proposed IVAC-P$^2$L (Irregular Video Action Counting with a Pull-Push Loss) addresses these challenges by formalizing two "Irregular Repetition Priors":
- Inter-cycle Consistency: All repetitions of the same action should share similar feature representations.
- Cycle-interval Inconsistency: Action cycle features should be semantically distinct from the "intervals" (pauses or background actions) occurring between repetitions.
System Architecture
The pipeline utilizes a sophisticated multi-scale encoder to capture temporal dynamics at various resolutions:
- Multi-scale Sampling: The video is processed at different temporal scales to capture both rapid and slow movements.
- Feature Extraction: A Video Swin Transformer combined with 3D Convolutions extracts deep spatial-temporal features.
- Temporal Self-Similarity: The model calculates frame-to-frame similarity over time to identify underlying periodic patterns.
- The Pull-Push Loss ($P^2L$): This module is the core innovation. The Pull Loss minimizes the distance between individual cycle features and a global average action embedding. Conversely, the Push Loss uses an exponential function to aggressively distance interval features from that same action embedding in the latent space.
Random Count Augmentation (RCA)
To mitigate the scarcity of diverse training data, the authors introduced Random Count Augmentation (RCA). This strategy involves randomly sampling new action counts for training videos and cropping or extending the footage accordingly. This prevents the model from overfitting to specific frequencies and improves its ability to generalize to unseen action rates.
Experimental Results
The model was evaluated on three major benchmarks representing different levels of complexity:
- RepCount-A: A challenging dataset with fine-grained cycle annotations.
- UCFRep: An extension of UCF101 focusing on controlled environments.
- Countix: A massive, high-variability dataset derived from YouTube.
IVAC-P$^2$L achieved state-of-the-art (SOTA) results across the board. On RepCount-A, it achieved a Mean Absolute Error (MAE) of 0.4022 and an Off-By-One (OBO) accuracy of 34.44%, significantly outperforming previous leaders like TransRAC. Furthermore, the model demonstrated impressive Zero-Shot Generalization, outperforming competitors on UCFRep (MAE 0.5028) and Countix (MAE 0.5071) without dataset-specific fine-tuning.
Key Insights and Conclusion
A primary takeaway from this research is that modeling what isn't an action is as vital as modeling the action itself. By explicitly distancing interval features, the model effectively avoids "false positive" counts during pauses. The authors also found that their $P^2L$ mechanism outperformed standard contrastive losses, which often struggle with the numerical imbalance between action cycles and intervals in typical video data.
While highly effective, IVAC-P$^2$L faces challenges when action cycles themselves exhibit extreme internal variance or when intervals are visually nearly identical to the action. Future work may explore adaptive reference embeddings or multi-modal cues (such as audio) to further refine the distinction between repetitive actions and background noise.
Summary updated