Skip to content

Cognitive Agentic AI: Probabilistic Novelty Detection for Continual Adaptation in HRI

IEEE RO-MAN 2025 • Khashayar Ghamati • University of Hertfordshire

About the Paper

Khashayar Ghamati
University of Hertfordshire, UK

Adapting to novel tasks in human-robot interaction (HRI) is crucial for long-term autonomy, yet remains a major challenge for autonomous agents deployed in unpredictable open-world settings. This paper introduces CAPA-AI, a novel framework that integrates probabilistic novelty detection with continual post-deployment adaptation achieved via transfer learning to address this challenge. The framework's novelty detection component employs conditional probability and the Jaccard Index to identify unfamiliar tasks by quantifying their deviation from the agent's knowledge base of previously learned tasks. Upon detecting a novel task, the agent utilises transfer learning to repurpose prior knowledge and update its models without retraining from scratch. We detail the design of CAPA-AI, including an isolated learning phase for initial skill acquisition and the construction of a dynamic knowledge base. The complete system was deployed on a social robot in real-world HRI scenarios to evaluate its performance. Experimental results demonstrated that the agent accurately detects novel tasks and adapts to them, achieving adaptation and novelty detection accuracies of 80% and 89%, respectively. These findings underscore the efficacy of the proposed approach and highlight a significant step towards robust open-world deployment of AI agents in HRI, where continuous adaptation and the safe handling of unforeseen tasks are essential.

Did you know?

Most deployed AI agents freeze after initial training -- they cannot tell when the world changes. CAPA-AI can!

CAPA-AI continual learning agentic AI architecture for reinforcement learning and HRI
Figure 1: Overview of the CAPA-AI architecture. A reinforcement learning (RL) agent is pre-trained in isolation, while a knowledge base stores task-specific information for novelty detection. When a novel task is detected during real-world operation, the agent leverages transfer learning or its own exploration to adapt, updating both its policy and knowledge base.

Continual Learning & Adaptation: Motivation

Autonomous robots operating in dynamic, human-centred environments constantly face unpredictability -- no dataset or pre-training can prepare them for everything. Traditional AI systems are prone to catastrophic forgetting if retrained, or simply ignore novel tasks, which risks safety and erodes user trust.

CAPA-AI addresses this by equipping the robot with two essential abilities:

Open-World Autonomy

This paves the way for true open-world autonomy -- robots that can self-improve as the world changes.

How the CAPA-AI Architecture Works

Reinforcement Learning & Vision Language Models in CAPA-AI

Isolated Learning Phase
The RL agent is initially trained on a set of known tasks (e.g., using the RHM dataset). Task-specific experiences and environmental keywords are stored in an Agent Knowledge Base (AKB).
Novelty Detection Module
During real-world operation, incoming sensor data (video frames) are processed using vision-language models (e.g., LLaVA) and contextual keywords are extracted (e.g., via DeepSeek).
Probabilistic Novelty Detection
New keywords are compared with the AKB using conditional probability and the Jaccard Index, computing a posterior probability of task similarity. High similarity (>90%) uses the pre-trained model; partial similarity (60-89%) triggers transfer learning; genuinely novel cases (<60%) trigger exploration.
Transfer Learning
The agent updates its RL policy using strategies from similar tasks, rapidly adapting to the new task and updating its AKB.

Innovation

CAPA-AI uniquely combines probabilistic reasoning, memory, transfer learning, and real-time feedback to enable seamless, explainable adaptation in unpredictable settings.

CAPA-AI Framework Explained

Watch this comprehensive video explanation of the CAPA-AI framework architecture. Learn how probabilistic novelty detection using conditional probability and the Jaccard Index enables robots to identify unfamiliar tasks, and how transfer learning allows autonomous agents to adapt in real-time without retraining. The video demonstrates the complete system deployment on the ARI social robot in real-world human-robot interaction scenarios.

Video: Detailed explanation of CAPA-AI framework - how probabilistic novelty detection and transfer learning enable continual adaptation in human-robot interaction.

Novelty detection results using probabilistic methods and Jaccard Index in continual learning for reinforcement learning agent in HRI
Figure 2: Example result of the novelty detection pipeline. Posterior probabilities and the Jaccard Index are used to quantify how closely new observations match known tasks (here, the "Drinking" activity). This enables reliable detection and triggers adaptation only when truly necessary.

Step-by-Step Adaptation and Results

Presented at IEEE RO-MAN 2025 Conference

Evaluation workflow for CAPA-AI agent with simulation and real-world continual adaptation, leveraging reinforcement learning and transfer learning in machine learning
Figure 3: Evaluation workflow: CAPA-AI is pre-trained, then deployed in both simulated (EatSense/Polar) and real-world HRI scenarios, where it processes sensory data and adapts in real time.
89%
Novelty Detection
80%
Adaptation Accuracy
14
Pre-trained Activities
CAPA-AI real-world test: drinking task correctly recognised by continual learning agent using reinforcement learning and vision language models in human-robot interaction

a) Task: Drinking, CAPA-AI Decision: Drinking

CAPA-AI real-world novelty detection: using tissue task identified as novel and mapped to cleaning using transfer learning and contextual adaptation in HRI

b) Task: Using Tissue, CAPA-AI Decision: Novelty, Similar Task: Cleaning

CAPA-AI agent adaptation: laying down task detected as novel but similar to sitting down, demonstrating explainable continual adaptation in real-world human-robot interaction

c) Task: Laying, CAPA-AI Decision: Novelty, Similar Task: Sitting Down

Figure 4: CAPA-AI real-world decisions: (a) "Drinking" correctly identified as familiar; (b) "Using tissue" detected as a novel action and mapped to "cleaning"; (c) "Lying down" treated as novel but similar to "sitting down," showing CAPA-AI's fine-grained, explainable adaptation.

Why It Matters

CAPA-AI advances the state of the art in robot autonomy and trust by:

Impact

This approach benefits social robotics, assistive technologies, service robots, and any AI deployed "in the wild."

Open Science & Collaboration

Interested in collaborating, adapting, or extending CAPA-AI? We support open, reproducible science and welcome new partnerships to push forward robust and adaptive agentic AI.

Full Paper & Code

Download Full Paper View Code

Research outputs will be available following conference presentation and publication.