Abstract
In real-world environments, robots frequently encounter unexpected states due to sensor noise, mechanical failures, or human interference. This paper introduces a narrative-based framework for cognitive robotics that employs postdictive reasoning—the ability to explain past events based on current observations—to resolve discrepancies between internal models and sensory observations. By leveraging incremental Answer Set Programming (ASP) and a computationally efficient planning formalism ($h$-approximation), the proposed system allows for real-time abnormality detection and exogenous action abduction. The framework is validated through a complex wheelchair navigation case study in a smart home environment, demonstrating robust performance in the face of dynamic obstacles and action failures.
Introduction
Traditional AI planning often relies on "strong planning," which attempts to account for every possible contingency before execution. In complex, real-world settings like smart homes, this approach is computationally prohibitive. Robots operating in these environments face the "qualification problem"—the impossibility of modeling every reason an action might fail. This paper addresses the challenge of incomplete and conflicting narrative knowledge by enabling robots to "postdict" or abduce explanations for observed discrepancies on the fly, allowing for fluid re-planning.
Methodology
The core of the system is an interleaved reasoning loop between a high-level symbolic planner and a low-level controller. The framework utilizes $h$-approximation ($HPX$), a planning formalism that maintains computational complexity within NP, avoiding the higher complexity of traditional Possible World Semantics.
The logic is implemented using the oclingo incremental ASP solver. This allows the robot to append new narrative "chapters"—such as sensor readings or action outcomes—to its knowledge base without re-solving the entire problem. When an observation contradicts the current model, the system uses abduction to find an explanation (e.g., an abnormality predicate ab_doOpen or an exogenous action exoClosed) that restores logical consistency.
Experimental Evaluation
The framework was evaluated in the Bremen Ambient Assisted Living Lab (BAALL), a smart home equipped with autonomous robotic wheelchairs and automated infrastructure. The evaluation focused on the system's ability to handle "weak planning," where the robot starts executing a possible path and refines it as new information arrives.
In a representative scenario, a robotic wheelchair encountered a jammed door. The system detected the failure, postdicted an abnormality, and immediately generated a new plan through an alternative route. During navigation, the system further demonstrated its adaptability by sensing a human closing a door on its new path, abducing the exogenous action, and updating its plan to include re-opening the door. These high-level reasoning tasks were performed in real-time, proving the efficiency of the incremental ASP approach.
Discussion and Future Work
While the current system effectively handles dynamic environments, it faces limitations regarding solver constraints; current ASP solvers do not simultaneously support incremental solving and optimization statements (like #minimize). This requires the controller to manually select the optimal plan from the solver's output. Future work will focus on integrating procedural heuristics into the declarative ASP framework and expanding the system's availability through integration with the ExpCog framework for ROS and Gazebo simulators.
Summary updated