One-Shot Open-Set Skeleton-Based Action Recognition

Stefano Berti, Andrea Rosasco, Michele Colledanchise, Lorenzo Natale

Introduction

In the evolving field of Human-Robot Interaction (HRI), the ability of a robotic system to adapt to new environments and user behaviors is paramount. Traditional action recognition systems often rely on massive, static datasets and extensive retraining to incorporate new movements. However, real-world deployment requires a more dynamic approach. This paper introduces a framework for One-Shot Open-Set Skeleton-Based Action Recognition, addressing two critical hurdles: learning from a single demonstration (One-Shot Learning) and identifying when an action is entirely unknown (Open-Set Recognition).

The Problem: Adaptability and Safety

Most current action recognition models operate under a "closed-set" assumption, where every input must belong to one of the pre-defined categories. In a robotics context, this is inherently dangerous. If a robot is programmed to recognize "waving" and "sitting," but a user performs a "falling" motion, a closed-set model will force that input into the "waving" or "sitting" category, potentially leading to inappropriate or unsafe robotic responses.

Furthermore, the requirement for large-scale labeled data makes it difficult for end-users to teach robots new tasks on the fly. While Few-Shot Learning (FSL) addresses the data scarcity, it often lacks the "rejection" mechanism necessary for Open-Set Recognition (OSR). A robust system must be able to learn a new task from one example while maintaining the integrity to reject actions it has never seen before.

Methodology: The TRX-OS Model

The researchers propose TRX-OS, an extension of the Temporal-Relational Cross-Transformer (TRX) architecture specifically optimized for skeleton-based data and open-set scenarios.

1. Skeleton-Based Representation

Rather than processing computationally expensive RGB video frames, TRX-OS utilizes 3D skeleton sequences. By focusing on joint positions, the model becomes invariant to background noise, lighting conditions, and clothing variations. The system uses a Multi-Layer Perceptron (MLP) to project these 3D coordinates into a high-dimensional feature space. To ensure high-quality data, the authors utilized MetrABS, a state-of-the-art 3D human pose estimator, to refine the skeletons from the NTURGBD-120 dataset.

2. Temporal-Relational Cross-Transformer

The core of the recognition engine compares pairs of frames from a "Query" sequence (the action being performed) against pairs from a "Support" sequence (the single example provided). This allows the model to capture the temporal evolution of an action—distinguishing, for instance, the difference between "sitting down" and "standing up," which might look identical in a single static frame.

3. The Discriminator and Rejection Mechanism

The primary innovation of TRX-OS is its approach to Open-Set Recognition. Instead of simply selecting the class with the highest similarity score, the model employs a dedicated Discriminator. This component analyzes the difference between the query features and the best-matching support features.

By training on the difference rather than the query alone, the Discriminator learns the specific characteristics of a "good match." It outputs a confidence score; if this score falls below a predefined threshold ($τ$), the action is rejected as "unknown." The model is trained using balanced episodic training, exposing the discriminator to both correct matches and actions from classes outside the current support set.

Experimental Results

The model was evaluated using the NTURGBD-120 dataset, focusing on single-agent actions.

Quantitative Performance

In a 5-way one-shot configuration—where the model must choose between five known classes or label the input as unknown—TRX-OS achieved an accuracy of 67% ($± 0.05$). This significantly outperformed baseline models that relied on simple exponential distance functions for rejection, proving that a learned discriminator is more robust than fixed mathematical heuristics.

Qualitative Insights

The study highlighted the importance of temporal signatures. For example, the model successfully rejected the action "Put on headphones" when it only knew "Take off glasses." While the spatial positioning of the hands is similar in both actions (near the head), the movement patterns over time are distinct. The TRX-OS architecture successfully captured these nuances, whereas static-image models would likely have produced a false positive.

Limitations and Future Directions

Despite its success, TRX-OS faces challenges related to granularity:

  • Fine-Grained Hand Tracking: The current skeleton model lacks finger-level detail, making it difficult to distinguish between subtle gestures like "Hush" versus "Apply cream on face."
  • Object Blindness: Since the model only "sees" the skeleton, it cannot distinguish between identical movements involving different objects (e.g., "Stapling a book" vs. "Tear up paper").

Future work will focus on integrating hand-specific tracking and object-context features to resolve these ambiguities while maintaining the computational efficiency of the skeleton-based approach.

Conclusion

TRX-OS represents a significant step toward safer and more adaptable human-robot interaction. By combining the efficiency of 3D skeletons with a robust temporal discriminator, the system allows robots to learn from minimal examples while maintaining the critical ability to identify and reject unknown behaviors.

Summary updated

Abstract

Action recognition is a fundamental capability for humanoid robots to interact and cooperate with humans. This application requires the action recognition system to be designed so that new actions can be easily added, while “unknown” actions are identified and ignored. In recent years, deep-learning approaches represented the principal solution to the Action Recognition problem. However, most models often require a large dataset of manually-labeled samples. In this work we target One-Shot deep-learning models, because they can deal with just a single instance for class. Unfortunately, One-Shot models assume that, at inference time, the action to recognize falls into the support set and they fail when the action lies outside the support set. Few-Shot Open-Set Recognition (FSOSR) solutions attempt to address that flaw, but current solutions consider only static images and not sequences of images. Static images remain insufficient to discriminate actions such as sitting-down and standing-up. In this paper we propose a novel model that addresses the FSOSR problem with a One-Shot model that is augmented with a discriminator that rejects “unknown” actions. This model is useful for applications in humanoid robotics, because it allows to easily add new classes and determine whether an input sequence is among the ones that are known to the system. We show how to train the whole model in an end-to-end fashion and we perform quantitative and qualitative analyses. Finally, we provide real-world examples.
BibTeX
@inproceedings{berti2022one,
  author = {Stefano Berti and Andrea Rosasco and Michele Colledanchise and Lorenzo Natale},
  title = {{One-Shot Open-Set Skeleton-Based Action Recognition}},
  booktitle = {Humanoids},
  year = {2022},
  url = {https://openreview.net/forum?id=wNS3SJeNpXF},
}
Figure