Abstract
We present a novel method for weakly-supervised action segmentation and unseen error detection in anomalous instructional videos. In the absence of an appropriate dataset for this task, we introduce the Anomalous Toy Assembly (ATA) dataset, which comprises 1152 untrimmed videos of 32 participants assembling three different toys, recorded from four different viewpoints. The training set comprises 27 participants who assemble toys in an expected and consistent manner, while the test and validation sets comprise 5 participants who display sequential anomalies in their task. We introduce a weakly labeled segmentation algorithm that is a generalization of the constrained Viterbi algorithm and identifies potential anomalous moments based on the difference between future anticipation and current recognition results. The proposed method is not restricted by the training transcripts during testing, allowing for the inference of anomalous action sequences while maintaining real-time performance. Based on these segmentation results, we also introduce a baseline to detect pre-defined human errors, and benchmark results on the ATA dataset. Experiments were conducted on the ATA and CSV datasets, outperforming the state-of-the-art in segmenting anomalous videos under both online and offline conditions.
Introduction
In computer vision, action segmentation involves identifying the precise start and end times of actions within a video sequence. Most current models rely on "weak supervision," where they are provided with an ordered list of actions (a transcript) but lack frame-level timestamps. A significant challenge arises when these models encounter "anomalous" sequences—where a human deviates from the expected procedure by skipping steps, repeating actions, or changing the order. Traditional models are often "slaves to the script," failing when the visual data does not perfectly match the training transcript. This research addresses the need for AI systems that can handle such deviations and detect human errors without requiring exhaustive frame-by-frame labels for every possible mistake.
Methodology: The Unconstrained Viterbi Algorithm
The authors propose a novel "Unconstrained Viterbi" algorithm to overcome the rigidity of standard approaches. This hybrid method uses a threshold ($\tau$) to monitor the discrepancy between future anticipation (what the model expects to happen next) and current recognition (what the model actually observes).
If the discrepancy—measured via cosine similarity—is low, the model follows the provided transcript. However, if the discrepancy is high, indicating a "surprise" or anomaly, the model pivots to an unconstrained mode. In this mode, it explores all possible actions, allowing it to recognize sequences that were never seen during training. Furthermore, by comparing the action frequencies of this unconstrained pass against a constrained "ideal" pass, the system can infer specific errors, such as "Missing Leg" or "Extra Screw," using simple frequency-based logic.
The Anomalous Toy Assembly (ATA) Dataset
To benchmark this task, the researchers introduced the Anomalous Toy Assembly (ATA) dataset, the first of its kind specifically designed for sequential anomalies in instructional videos.
The ATA dataset features 1,152 videos of participants building three different toys: an airplane, a table, and a record player. While the training data is "clean," the test set contains 11 types of errors and various unseen action permutations. This variety allows for a robust evaluation of an AI's ability to generalize beyond its training script.
Key Results
The proposed method achieved state-of-the-art performance on the ATA dataset, with a frame-wise accuracy of 62.8% (online) and 66.1% (offline). It significantly outperformed previous benchmarks like CDFL and TASL, which often failed entirely on anomalous sequences.
In terms of error detection, the system achieved an F1-score of 56.0%. While seemingly modest, this represents a major breakthrough compared to previous constrained models that effectively had a 0% success rate on unseen anomalies. Additionally, the algorithm maintains a processing speed of approximately 310 fps, ensuring it is viable for real-time industrial applications.
Conclusion and Future Work
While the Unconstrained Viterbi algorithm successfully identifies sequential anomalies, it currently lacks a deep semantic understanding of spatial errors, such as placing a component in the wrong location. The authors acknowledge that the system's performance is also tied to the quality of the underlying visual recognition model. Future research will focus on incorporating human pose data and object bounding boxes—metadata already included in the ATA dataset—to create more context-aware and robust error detection systems.
Summary updated