TIM: A Time Interval Machine for Audio-Visual Action Recognition

Jacob Chalk, Jaesung Huh, Evangelos Kazakos, Andrew Zisserman, Dima Damen · DOI

Abstract

Diverse actions give rise to rich audio-visual signals in long videos. Recent works showcase that the two modalities of audio and video exhibit different temporal extents of events and distinct labels. We address the interplay between the two modalities in long videos by explicitly modelling the temporal extents of audio and visual events. We propose the Time Interval Machine (TIM) where a modality-specific time interval poses as a query to a transformer encoder that ingests a long video input. The encoder then attends to the specified interval, as well as the surrounding context in both modalities, in order to recognise the ongoing action. We test TIM on three long audio-visual video datasets: EPIC-KITCHENS, Perception Test, and AVE, reporting state-of-the-art (SOTA) for recognition. On EPIC-KITCHENS, we beat previous SOTA that utilises LLMs and significantly larger pre-training by 2.9% top-1 action recognition accuracy. Additionally, we show that TIM can be adapted for action detection, using dense multi-scale interval queries, outperforming SOTA on EPIC-KITCHENS-100 for most metrics, and showing strong performance on the Perception Test. Our ablations show the critical role of integrating the two modalities and modelling their time intervals in achieving this performance.

Introduction

In long, real-world videos, actions are part of a continuous stream where multiple events often overlap or occur in quick succession. Traditionally, action recognition has been treated as a "clipped" problem—feeding a short, trimmed segment into a model to obtain a label. However, audio and visual events rarely share the same boundaries. For instance, the sound of water running often precedes the visual action of rinsing a sponge. Furthermore, current models struggle to distinguish between overlapping actions or fail to utilize the rich context surrounding an action.

TIM addresses these challenges by allowing a model to process a long video window and query specific temporal intervals: "What is happening specifically between time $t_1$ and $t_2$ in the Audio or Visual stream?"

Methodology: The Time Interval Machine

The core of the framework is the Time Interval Machine (TIM), which treats temporal intervals as "first-class citizens." Its architecture consists of three main components:

  1. The Time Interval MLP: Instead of fixed positional encodings, a small MLP maps any start/end time pair into a high-dimensional vector, enabling the model to handle continuous time and varying durations.
  2. Modality-Specific Queries: TIM uses a transformer encoder. To identify an action, it injects a query consisting of a classification [CLS] token, the encoded time interval of interest, and a modality embedding (Visual or Audio).
  3. Long-Context Attention: The transformer ingests a long sequence of video and audio features (e.g., a 30-second window). The query's temporal extent guides the attention mechanism to focus on relevant features while gathering contextual "hints" from the surrounding background.
TIM architecture overview: modality-specific time intervals act as queries to a transformer encoder that processes long-context audio-visual features.

Additionally, a Temporal Distance (TD) Loss is employed as a self-supervised auxiliary task, training the model to predict the time elapsed between random features to learn the underlying temporal structure.

Experimental Results

TIM was evaluated on four challenging benchmarks: EPIC-KITCHENS-100, EPIC-SOUNDS, the Perception Test, and AVE (Audio-Visual Event).

  • EPIC-KITCHENS-100: TIM achieved 56.4% top-1 action accuracy, outperforming previous state-of-the-art models (including those using LLMs) by 2.9%.
  • Perception Test: The model showed significant improvements, with a 9.9% jump in visual recognition and 3.2% in audio recognition over strong baselines.
  • Action Detection: When adapted for detection using a dense pyramid of multi-scale interval queries, TIM outperformed ActionFormer by 1.6 mAP on EPIC-KITCHENS and 4.3 mAP on the Perception Test.
Qualitative examples from EPIC-KITCHENS, Perception Test, and AVE datasets showing TIM's ability to accurately predict actions across different modalities and temporal intervals.

Discussion and Conclusion

The shift from "classifying a clip" to "querying an interval" allows TIM to resolve ambiguity in untrimmed video by focusing attention based on temporal extent. The results demonstrate that incorporating surrounding context significantly boosts accuracy; for example, recognizing a "rinsing" action is easier if the model knows a sponge was just picked up.

While TIM outperforms many large-scale models, limitations remain. The model can occasionally be misled by strong contextual cues (e.g., misidentifying "take liquid" as "wash hands" due to frequent co-occurrence). Future work includes integrating higher-resolution feature extractors and exploring the synergy between TIM's temporal modeling and the semantic knowledge of Large Language Models.

Summary updated

BibTeX
@inproceedings{chalk2024tim,
  author = {Jacob Chalk and Jaesung Huh and Evangelos Kazakos and Andrew Zisserman and Dima Damen},
  title = {{TIM: A Time Interval Machine for Audio-Visual Action Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.01719},
}
Figure