The Instantaneous Accuracy: a Novel Metric for the Problem of Online Human Behaviour Recognition in Untrimmed Videos

Marcos Baptista-Ríos, Roberto Javier López-Sastre, Fabian Caba Heilbron, Jan van Gemert, Francisco Javier Acevedo-Rodríguez, Saturnino Maldonado-BascónWorkshops @ ICCV 2019 · DOI · arXiv

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.

Comparison of previous offline protocols versus the proposed online evaluation protocol.

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.

Quantitative comparison of models using traditional metrics (mAP, cAP) versus the proposed online metrics (maIA, weighted maIA).

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

BibTeX
@inproceedings{baptistarios2019instantaneous,
  author = {Marcos Baptista-Ríos and Roberto Javier López-Sastre and Fabian Caba Heilbron and Jan van Gemert and Francisco Javier Acevedo-Rodríguez and Saturnino Maldonado-Bascón},
  title = {{The Instantaneous Accuracy: a Novel Metric for the Problem of Online Human Behaviour Recognition in Untrimmed Videos}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00162},
}
Figure