World Model Failure Classification and Anomaly Detection for Autonomous Inspection
Organizations: Stanford University, Stanford, CA 94305 USA · Field AI, Mission Viejo, CA 92691 USA
Abstract
Autonomous inspection robots for monitoring industrial sites can reduce costs and risks associated with human-led inspection. However, accurate readings can be challenging due to occlusions, limited viewpoints, or unexpected environmental conditions. We propose a hybrid framework that combines supervised failure classification with anomaly detection, enabling classification of inspection tasks as a success, known failure, or anomaly (i.e., out-of-distribution) case. Our approach uses a world model backbone with compressed video inputs. This policy-agnostic, distribution-free framework determines classifications based on two decision functions set by conformal prediction (CP) thresholds before a human observer does. We evaluate the framework on gauge inspection feeds collected from office and industrial sites and demonstrate real-time deployment on a Boston Dynamics Spot. Experiments show over 90% accuracy in distinguishing between successes, failures, and OOD cases, with classifications occurring earlier than a human observer. These results highlight the potential for robust, anticipatory failure detection in autonomous inspection tasks or as a feedback signal for model training to assess and improve the quality of training data. Project website: https://autoinspection-classification.github.io
Figures & tables
| Method | Type | Description |
| Reconstruction error | Residual-based | Pixel-level error between input and reconstruction. |
| Latent Prediction error | Residual-based | Deviation between latent representations of predicted and actual future frames. |
| Latent standard deviation | Residual-based | Temporal standard deviation of latent embeddings. |
| Mahalanobis distance | Distance-based | Squared distance of latent embedding from the estimated Gaussian distribution. |
| Latent distance (L2) | Distance-based | Euclidean distance between latent embedding and calibration mean. |
| Latent cosine distance | Distance-based | Complement of cosine similarity (directional alignment of latent vectors). |
| Metric | OOD (Succ) | OOD (Fail) | Success (Fail) | Failure (Succ) |
|---|---|---|---|---|
| Reconstruct. error | ||||
| Latent pred. error | ||||
| Latent std dev. | ||||
| Mahalanobis | ||||
| Latent dist. (L2) | ||||
| Latent cosine dist. |
| Optimizer | AdamW with weight decay ( ) |
| Batch size | Default 32 (configurable) |
| Learning rate | Defined in hyperparameters |
| Gradient clipping | Value of 1.0 |
| Early stopping | Patience 15 epochs, |
| Check-pointing | Minimum validation loss |
| Epochs | Configurable (default: 10) |
Robot Failure Detection
Robot failure detection identifies when autonomous systems are failing, predicts emerging faults, and supports diagnosis or recovery.
See all 44 papers