Introduction
Real-time procedural monitoring via egocentric video is a transformative capability for fields such as manufacturing, healthcare, and skill-based training. For instance, an Augmented Reality (AR) system guiding a technician through a complex assembly must provide immediate feedback if a step is omitted or performed out of sequence. However, developing such systems faces two primary hurdles: the "Open-Set" problem and the "Online" constraint.
The "Open-Set" problem refers to the infinite variety of potential errors; training a model on every possible mistake is infeasible. Instead, systems must learn to recognize "correctness" and flag deviations. The "Online" constraint requires the system to process video frames as they arrive, without access to future information. TI-PREGO addresses these challenges by framing mistake detection as a One-Class Classification (OCC) task within an online dual-branch architecture.
Methodology: The Dual-Branch Architecture
TI-PREGO separates the task into two distinct components: "seeing" (recognition) and "reasoning" (anticipation).
Recognition Branch
The recognition branch identifies the current action from incoming video frames. The authors utilize MiniROAD, a state-of-the-art action recognition model. To mitigate the inherent noise in per-frame predictions, they introduce Non-Overlapping Mode Aggregation (NOMA). NOMA aggregates frame-level labels over a temporal window, selecting the most frequent label to produce stable "action tokens."
Anticipation Branch
The anticipation branch serves as the system's cognitive core, leveraging the pattern-matching and reasoning capabilities of Large Language Models (LLMs), specifically Llama 3.1 8B. By converting visual actions into natural language (e.g., "attach-bumper"), the system utilizes the LLM's pre-trained knowledge of procedural logic.
To enhance prediction accuracy, the authors employ Automatic Chain of Thought (ACoT). Rather than direct prediction, the LLM is prompted to first analyze the consequences of previous actions before determining the expected next step.
Mistake Detection
Mistakes are identified through a mismatch between the recognized action and the anticipated action. If the recognition branch reports an action that deviates from the LLM's prediction, a procedural error is flagged.
Experimental Setup and Datasets
The framework was evaluated on two new benchmarks derived from existing datasets, specifically adapted for online, one-class mistake detection:
- Assembly101-O: Based on toy vehicle assembly, this dataset features sequences where models are trained only on correct procedures and tested on sequences that terminate at the point of the first error.
- Epic-tent-O: Derived from outdoor tent assembly videos, focusing on errors such as omission, repetition, and incorrect ordering.
Results and Discussion
TI-PREGO demonstrates significant improvements over existing baselines. On the Assembly101-O dataset, the framework achieved a 74.7% Balanced F1 Score, a substantial leap from the 26.7% achieved by the previous state-of-the-art model, OadTR.
The Impact of Reasoning
The inclusion of ACoT proved critical. Standard zero-shot prompting was significantly less effective than the structured reasoning approach, which improved the F1 score by nearly 20%. This suggests that the intermediate "reasoning" step allows the LLM to better handle the complexities of long-term procedural dependencies.
Real-World Constraints
While TI-PREGO is highly effective, it faces a trade-off between accuracy and latency. The NOMA aggregation window (approximately 6.67 seconds) is necessary to stabilize noisy vision outputs but introduces a delay that may be unsuitable for high-stakes, rapid-response environments like surgery. Furthermore, the system's reliance on symbolic text labels means it may overlook subtle physical errors (e.g., a screw tightened insufficiently) that do not change the high-level action label.
Conclusion
TI-PREGO establishes a new benchmark for online procedural mistake detection by combining robust vision-based recognition with the symbolic reasoning power of LLMs. By treating mistake detection as a deviation from an anticipated "correct" path, the system effectively addresses the open-set nature of human error in real-time egocentric video.
Summary updated