Introduction
Online Action Detection (OAD) involves identifying human activities as they occur in a continuous video stream. This is vital for real-time applications such as robotics and surveillance. However, a significant discrepancy exists in the field: while the task is inherently online, evaluation metrics like mean Average Precision (mAP) are "offline," requiring the entire video and its annotations to be processed before a score is generated. These metrics fail to capture temporal performance fluctuations and struggle with the high ratio of background frames typical in untrimmed videos.
The Instantaneous Accuracy Metric
To address these limitations, the authors propose Instantaneous Accuracy (IA), a metric designed for truly online evaluation. Unlike offline metrics, IA is calculated at specific time steps, measuring the ratio of correct predictions (both actions and background) to the total time elapsed.
Core Components
- Dynamic Weighting: To prevent models from achieving high scores by simply predicting "background" in videos where actions are sparse, a weighted version of IA balances the importance of action and background frames based on their prevalence in the stream.
- maIA: The mean average Instantaneous Accuracy (maIA) provides a summary score by averaging IA over the video duration and across the entire dataset.
Experimental Setup
The proposed metric was validated using the TVSeries dataset, which features complex, overlapping actions in high-resolution video. The evaluation compared several models, including a "Perfect Model" (PM) that always predicts correctly, an "All-BG" baseline that always predicts background, and standard deep learning approaches like 3D-CNNs.
Results and Discussion
The results demonstrate that traditional metrics are fundamentally ill-suited for OAD. As shown in the table below, even a "Perfect Model" fails to reach 100% when evaluated with mAP, scoring only 30.9%. In contrast, the Perfect Model achieves a 100% score under the maIA metric, confirming its mathematical validity for this task.
The weighted maIA proves particularly effective at penalizing "lazy" models. While the All-BG baseline achieves a misleadingly high 78.3% on unweighted maIA due to the abundance of background frames, its score drops to 22.9% when weighting is applied. Furthermore, the 3D-CNN baseline achieved a weighted maIA of 28.9%, significantly outperforming previous state-of-the-art CNNs (12.46%) when viewed through an online lens.
Conclusion
Instantaneous Accuracy provides a more logical and rigorous framework for evaluating online action detection. By treating performance as a continuous curve rather than a single end-of-video number, researchers can better understand model behavior at different stages of an action. Future work will focus on reducing computational overhead and exploring IA as a loss function for training real-time detection models.
Summary updated