Abstract
As AI assistants transition into complex domains like home repair and industrial assembly, the ability to detect procedural errors becomes critical. We introduce a framework that identifies ordering mistakes by constructing a dynamic knowledge base of spatial and temporal beliefs. Unlike traditional deep learning models that struggle with the rarity of errors and the subtlety of procedural violations, our approach uses logical reasoning over episodic memory. Evaluated on an enriched version of the Assembly101 dataset, our system achieves a 70.6% recall on mistakes, doubling the performance of standard LSTM baselines.
Introduction: The Challenge of Ordering Mistakes
Standard computer vision models excel at recognizing "semantic" anomalies—actions that look physically wrong. However, in assembly, many errors are "ordering mistakes": actions that are physically valid (e.g., attaching a wheel) but procedurally incorrect at a specific time (e.g., attaching the wheel before the axle). Because these mistakes are rare in training data and context-dependent, they are often ignored by black-box neural networks.
Methodology
Our approach centers on a Knowledge Representation and Reasoning (KRR) framework consisting of two primary modules: BELIEFBUILDER and INFERENCER.
BELIEFBUILDER: Constructing the Knowledge Base
The BELIEFBUILDER algorithm processes assembly sequences to update a knowledge base ($K$) containing two types of beliefs:
- Spatial Beliefs ($S$): These represent the physical topology of the object, defining which parts are intended to connect.
- Temporal Beliefs ($T$): These define prerequisites, distinguishing between transitive rules (mandatory sequences) and intransitive rules (flexible orderings).
Knowledge Representation
To enable logical reasoning, we enriched the Assembly101 dataset with explicit part-to-part annotations. This allows the system to understand not just that an "arm connector" is being attached, but where it is being attached in the object's graph.
INFERENCER: Reasoning with Episodic Memory
The INFERENCER acts as the system's "brain." It maintains an Episodic Memory ($M$) of all completed actions. When a new action is observed, the INFERENCER consults the spatial and temporal beliefs to classify the step as 'correct', an 'order mistake', a 'correction', or an 'unnecessary detach'.
Results and Discussion
The proposed method was benchmarked against LSTM and TempAgg baselines. While the models were comparable in overall accuracy, the logic-based framework showed a dramatic advantage in error detection.
- Mistake Detection Recall: Our model achieved 70.6%, compared to just 35.2% for the LSTM.
- F1 Score: We observed a significant gain of +10.5% over the best baseline, reaching a mean F1 of 71.8%.
Qualitative analysis via confusion matrices revealed that while LSTMs frequently misclassified ordering mistakes as "correct," our belief-based system successfully distinguished between fixing a mistake ("correction") and redundant actions ("unnecessary detach").
Conclusion
By shifting from pure pattern matching to symbolic knowledge representation, we can build AI assistants that truly understand the logic of a task. Future work will focus on integrating 3D perception to detect misorientation errors and scaling the framework to more diverse procedural tasks like cooking or industrial manufacturing.
Summary updated