Enhancing Video-Based Robot Failure Detection Using Task Knowledge

Santosh Thoduka, Sebastian Houben, Juergen Gall, Paul G. Plöger

TL;DR

This paper introduces a novel approach to robot failure detection by leveraging task-specific knowledge, such as the robot's actions and relevant objects, to intelligently select and pre-process video frames. This method significantly improves failure detection accuracy, especially when combined with a new data augmentation technique that dynamically adjusts frame rates.

What Problem Does This Paper Address?

Reliable robot task execution hinges on the ability to detect failures promptly and accurately. Traditional video-based failure detection methods often struggle with real-world scenarios due to their inability to incorporate task context. Many approaches either treat each frame independently, losing temporal information, or use fixed sampling strategies that may miss crucial moments or overemphasize less important ones. This paper addresses the challenge of making failure detection more robust and context-aware by integrating "task knowledge" – information about what the robot is doing and what objects are involved – into the video analysis pipeline.

Methods

The core of this paper's contribution lies in how it utilizes task knowledge for frame selection and pre-processing. Instead of uniform frame sampling, the authors propose using the temporal boundaries of robot actions (e.g., "pick," "place") and the spatial locations of task-relevant objects (e.g., containers, end-effector) to guide which frames are fed into a video classification model.

Key methodological aspects include:

  • Action-Aligned Frame Selection: Focusing on specific actions known to be critical for failure detection (e.g., "MoveDestination," "Wait," "Place").
  • Region of Interest (ROI) Cropping: Dynamically cropping frames based on the current action and the location of relevant objects, reducing background noise and focusing on the interaction.
  • Variable Frame Rate Data Augmentation: A novel training and test-time augmentation technique that samples frames at different rates for different actions within a video. This aims to balance capturing the overall task flow with providing sufficient detail for shorter, critical actions. This is inspired by models like SlowFast and similar time-series augmentation methods.
  • Models Used: The primary video classification model employed is MViT-B, a powerful transformer-based architecture. They also experiment with ResNet-18 for image pair classification and VGG-RGB as a baseline.

Datasets

The paper evaluates its approach on three datasets:

  • ARMBench Video Defect Dataset: This is the primary dataset, which the authors have significantly revised. They fixed incorrect labels, annotated temporal action boundaries, and provided bounding boxes for task-relevant objects. This dataset contains videos of robots performing pick-and-place operations with "open" and "deconstruction" defects.
  • FAILURE Dataset: A dataset with 229 clips of robot manipulation tasks, featuring successful and failed executions. The authors annotated temporal boundaries for actions.
  • (Im)PerfectPour Dataset: This dataset, with 1096 samples, focuses on robot drink preparation tasks and includes failures like spills. It already provides action segment annotations.

Key Insights and Ideas

  • Task knowledge is crucial: Simply processing raw video frames is insufficient. Knowing what the robot is doing and where it's looking dramatically improves failure detection.
  • Not all actions are equal: Focusing on specific, critical actions (like "MoveDestination" or "Place") where failures are more likely to occur yields better results than analyzing the entire task uniformly.
  • Dynamic ROI cropping is effective: Cropping frames based on the robot's actions and object locations helps the model focus on relevant interactions, reducing noise and improving performance.
  • Variable frame rates matter for augmentation: Dynamically adjusting frame rates during training and testing can capture both long-term context and short, critical moments, leading to improved accuracy.
  • Single-action classification can be misleading: Classifying failures based on individual actions alone can lead to lower performance and higher false positive rates, highlighting the need for broader task context.

Key Results

  • On the ARMBench dataset, the proposed action-aligned ROI cropping improved the F1 score from 77.9% to 80.0% compared to a baseline with uniform sampling.
  • Further improvements were seen with test-time augmentation, reaching an F1 score of 81.4%.
  • The action subset selection method improved performance on ARMBench, with an F1 score of 80.0% (train) and 81.0% (both train/test augmentation).
  • The variable frame rate data augmentation consistently improved performance across all three datasets, though the gains were more pronounced with test-time augmentation.
  • For the FAILURE and (Im)PerfectPour datasets, the MViT-B model achieved F1 scores of 87.0% and 96.9% respectively, with further improvements using augmentation.

Limitations and Future Work

  • Data Imbalance: While the ARMBench dataset was re-annotated, the inherent class imbalance in failure detection datasets remains a challenge.
  • Computational Cost of Test-Time Augmentation: While effective, test-time augmentation increases inference time.
  • Multimodal Data: The authors suggest that incorporating multimodal sensor data (e.g., tactile, proprioceptive) could lead to even more intelligent frame selection and improved failure detection. However, the lack of large-scale multimodal failure datasets is a significant hurdle.
  • Subtle Failures: Detecting very short-lived or subtle failures might require even denser frame sampling and more precise ROI cropping.

Summary updated

BibTeX
@inproceedings{thoduka2025enhancing,
  author = {Santosh Thoduka and Sebastian Houben and Juergen Gall and Paul G. Plöger},
  title = {{Enhancing Video-Based Robot Failure Detection Using Task Knowledge}},
  booktitle = {ECMR},
  year = {2025},
}
Figure