Introduction
Repetition counting—the automated process of identifying and tallying recurring actions such as exercise reps or industrial cycles—is a fundamental challenge in computer vision. Despite its conceptual simplicity, the task is complicated by variable action durations, interruptions, and environmental noise. Traditional state-of-the-art (SOTA) models often address memory constraints by down-sampling videos to a fixed number of frames (e.g., 64 frames). However, this creates a "Goldilocks" dilemma: excessive down-sampling misses fast, subtle movements, while short sliding windows lose the global context of the entire sequence.
This paper proposes a "full resolution" approach that leverages offline feature extraction and Dilated Temporal Convolutional Networks (TCNs) to maintain high temporal resolution across long video sequences.
Methodology
The proposed framework utilizes a three-stage pipeline designed to preserve fine-grained temporal data while maintaining a broad receptive field.
1. Feature Extraction and the Encoder
To bypass the memory bottlenecks associated with end-to-end training on high-resolution video, the authors employ a decoupled strategy. A pre-trained Video Swin Transformer is used to extract features for every frame offline. These features are then processed by a Temporal Convolutional Network (TCN).
2. Dilated Convolutions
The core of the architecture lies in the use of dilated 1D convolutions. By introducing "gaps" in the convolution kernel, the model can achieve a massive temporal receptive field. This allows the network to perceive the "big picture" of a long exercise set without increasing parameter counts or sacrificing the resolution of individual frames. Ablation studies indicate that this dilation strategy improves the Mean Absolute Error (MAE) by 10.28% compared to standard convolutions.
3. Temporal Self-Similarity Matrix (TSSM) and Decoding
The model employs multi-head attention to compare the features of every frame against every other frame, generating a Temporal Self-Similarity Matrix (TSSM). This matrix visually encodes the "rhythm" of the video, where repetitive actions manifest as distinct periodic patterns. A decoder, consisting of 2D convolutions and a Transformer, processes this matrix to generate a Density Map. The final repetition count is derived by summing the values across this map, a technique that proves more robust to interruptions than traditional classification.
Experimental Results
The model was evaluated against three major benchmarks: RepCount (1,041 videos), UCFRep (526 videos), and QUVA (100 videos).
Performance Benchmarks
On the RepCount dataset, the proposed method established a new state-of-the-art:
- Mean Absolute Error (MAE): 0.4103 (improving upon TransRAC’s 0.4431).
- Off-By-One (OBO): 0.3267 (surpassing TransRAC’s 0.2913).
Sampling Optimization
The authors conducted extensive testing to find the ideal temporal resolution. They determined that 5 frames per second (fps) is the "sweet spot," providing enough information density to capture rapid movements without overwhelming the computational pipeline.
Discussion and Limitations
One of the most significant findings is the model's ability to generalize. Even when trained exclusively on the RepCount dataset, the model performed competitively on UCFRep and QUVA. This suggests that the TCN-based architecture learns the underlying structural concept of a "repetition" rather than over-fitting to specific dataset characteristics.
However, two primary challenges remain:
- Dynamic Backgrounds: Highly active backgrounds can introduce noise into the self-similarity matrix, leading to counting inaccuracies.
- Extreme Inconsistency: While the dilated TCN handles moderate variations in speed, extreme fluctuations (e.g., a 1-second rep followed by a 10-second rep) still challenge the model’s temporal logic.
Conclusion
By moving away from fixed-length down-sampling and embracing a full-resolution TCN-based approach, this research demonstrates that temporal density is critical for accurate repetition counting. Future work will focus on improving foreground-background separation and enhancing the model's robustness to extreme variations in action tempo.
Summary updated