NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A real-time anomaly detection method for robots based on a flexible and sparse latent space

Taewook Kang, Bum-Jae You, Juyoun Park, Yisoo LeeEngineering Applications of AI 2025

TL;DR

This paper introduces Sparse MAF-AAE, a novel deep learning model for real-time anomaly detection in robots operating in dynamic environments. By combining Masked Autoregressive Flows with Adversarial Autoencoders and incorporating sparsity, the model achieves superior accuracy and efficiency, making it ideal for safety-critical robotic applications.

What Problem Does This Paper Address?

As robots move beyond structured factory settings into more dynamic and human-populated environments, the need for robust, real-time anomaly detection becomes critical. These systems must be able to identify unexpected behaviors or malfunctions to prevent accidents and ensure safe operation. However, current deep learning approaches face challenges due to limited training data, noisy sensor signals, and the computational demands of real-time processing, especially on embedded robotic systems. Existing methods often struggle with limited feature spaces or require extensive computational resources, hindering their practical deployment.

Methods

The core of this work is the Sparse Masked Autoregressive Flow-based Adversarial AutoEncoder (Sparse MAF-AAE). This model builds upon the Adversarial AutoEncoder (AAE) framework by integrating two key innovations:

  • Masked Autoregressive Flow (MAF): MAF layers are incorporated into the AAE's encoder to create a more flexible and adaptable latent space. This allows the model to better capture complex data distributions, even with limited training data, by transforming simple distributions into more intricate ones through a series of invertible mappings.
  • Sparsity Constraint (Sparse Autoencoder): The concept of a sparse autoencoder is applied to focus on important features. By increasing the latent space size and applying L1 regularization, the model encourages sparsity in its hidden representations, ensuring that only a few important units are activated. This is particularly beneficial when dealing with limited sensor signals, allowing for efficient feature preservation and a more robust latent space.

The model is trained in an unsupervised manner, learning to reconstruct normal operational data. Anomalies are detected when the model fails to reconstruct new data accurately, leading to a significant reconstruction error.

Datasets

The primary dataset used for training and evaluation is a customized version of the voraus-AD dataset. This dataset is designed for anomaly detection in the pick-and-place operations of a collaborative robotic arm (Yu-Cobot). It includes 130 signals, such as torques, joint positions, and current. For this study, the researchers focused on using only torque signals due to their strong indication of faults. The dataset was also sampled at various frequencies (100 Hz, 50 Hz, 25 Hz, and 10 Hz) to assess model performance across different operational rates.

Key Insights and Ideas

  • Flexibility in Latent Space is Crucial: The MAF integration allows for a more adaptable latent space, which is vital for capturing the complex and often non-Gaussian distributions of real-world robotic sensor data.
  • Sparsity for Efficiency: Applying sparsity constraints helps the model focus on the most informative features, making it effective even with a limited number of sensor inputs, which is common in cost-effective robotic systems.
  • Torque Signals are Highly Informative: The experiments strongly suggest that torque signals are the most effective for detecting a wide range of anomalies in robotic operations, outperforming joint positions and currents in most cases.
  • Real-time Performance is Achievable: The proposed model not only achieves high accuracy but also performs inferences within 1 millisecond, meeting the critical requirement for real-time anomaly detection in dynamic environments.

Key Results

  • State-of-the-Art Performance: Sparse MAF-AAE achieved the highest Area Under the Receiver Operating Characteristic (AUROC) scores across all tested frequencies (100 Hz, 50 Hz, 25 Hz, 10 Hz) compared to Anomaly Transformer, LSTM-VAE, and MVT-Flow.
  • Significant Improvements: The model demonstrated a 4.96% to 9.75% higher AUROC than the state-of-the-art MVT-Flow.
  • Collision Detection Excellence: Notably, Sparse MAF-AAE showed up to 19.67% better performance in scenarios involving collisions with lightweight objects.
  • Real-time Inference: The model achieves inference times under 1 millisecond, making it suitable for real-time applications.
  • Robustness: The model maintains consistent performance across different anomaly types and is less sensitive to variations in training data size.

Limitations and Future Work

  • Miscommutation Anomaly: The paper notes that the model did not perform as well in detecting miscommutation anomalies, likely because these do not have a direct relationship with torque values.
  • Limited Sensor Signals: While the model is designed to be effective with limited signals, its performance slightly declined when all available machine signals were used compared to using only torque signals. This suggests that while the model can handle more data, its optimal performance is achieved with carefully selected, informative signals.
  • Future Work: The authors suggest that the model's scalability and robustness make it ideal for deployment in low-cost commercial robots and other safety-critical domains, implying potential for broader applications beyond robotics. Further research could explore incorporating more diverse sensor modalities or investigating more advanced methods for handling specific challenging anomalies like miscommutation.

Summary updated

Abstract

The growing demand for robots to operate effectively in diverse environments necessitates the need for robust real-time anomaly detection techniques during robotic operations. However, deep learning-based models in robotics face significant challenges due to limited training data and highly noisy signal features. In this paper, we present Sparse Masked Autoregressive Flow-based Adversarial AutoEncoder model to address these problems. This approach integrates Masked Autoregressive Flow model into Adversarial AutoEncoders to construct a flexible latent space and utilizes Sparse autoencoder to efficiently focus on important features, even in scenarios with limited feature space. Our experiments demonstrate that the proposed model achieves a 4.96% to 9.75% higher area under the receiver operating characteristic curve for pick-and-place robotic operations with randomly placed cans, compared to existing state-of-the-art methods. Notably, it showed up to 19.67% better performance in scenarios involving collisions with lightweight objects. Additionally, unlike the existing state-of-the-art model, our model performs inferences within 1 millisecond, ensuring real-time anomaly detection. These capabilities make our model highly applicable to machine learning-based robotic safety systems in dynamic environments. The code is available at https://github.com/twkang43/sparse-maf-aae.
BibTeX
@article{kang2025real,
  author = {Taewook Kang and Bum-Jae You and Juyoun Park and Yisoo Lee},
  title = {{A real-time anomaly detection method for robots based on a flexible and sparse latent space}},
  journal = {Engineering Applications of Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=cCXwE2qQYi},
}
Figure