Abstract
Pervasive computing environments require systems that can act autonomously on behalf of users with minimal manual intervention. This paper proposes a logic-based framework that learns and adapts user behavior models by observing real-world actions. By employing the XHAIL non-monotonic learning system and Event Calculus, the framework bridges the gap between raw sensor data and human-readable policy rules. The system is capable of revising existing rules when user habits change, ensuring that context-aware behaviors remain both accurate and explainable.
Introduction
The promise of pervasive computing—smart homes and context-aware mobile applications—relies on devices making intelligent decisions based on user context. Traditionally, these systems use policy-based models, where users explicitly define rules such as "If I am in a meeting, silence my phone." However, this approach faces two significant challenges: the manual burden of maintaining complex rule sets and the "adaptability gap" that occurs when a user's habits evolve.
While statistical machine learning can predict behavior, it often operates as a "black box," making it difficult for users to understand or override system decisions. This research seeks a middle ground: an autonomous system that learns from behavior but expresses its knowledge through transparent, logical rules.
Methodology: The Theory Revision Algorithm
The core of the framework is a three-phase Theory Revision Algorithm powered by XHAIL (eXtended Hybrid Abductive Inductive Learning). This approach allows the system to incrementally update its "theory" of user behavior as new evidence arrives.
- Pre-processing (Defeasibility): The system transforms existing user rules into "defeasible" rules. By adding placeholders for potential exceptions, the logic is made flexible enough to be "broken" if new observations contradict the current model.
- Learning Phase: Using the XHAIL engine, the system compares current rules against new sensor data. It employs Abductive Logic Programming to identify failures in the current theory and Inductive Logic Programming (ILP) to generalize new rules or exceptions from these failures.
- Post-processing (Refactoring): The system integrates the newly learned exceptions back into a streamlined, non-defeasible rule set, ensuring the logic remains clean and efficient.
The framework utilizes Event Calculus (EC) to reason about temporal dynamics, such as the duration of activities and the effects of specific events (e.g., moving between home and work).
Case Study: Learning Call Preferences
The authors evaluated the framework using real-world data from the Cityware project, which tracks mobile phone usage including GPS locations, Bluetooth scans of nearby devices, and call logs.
The task involved learning the context in which a user accepts or rejects incoming calls over a three-day period. Initially, the system might hold a rule to only accept calls from specific groups while at a university. As the user's behavior changes—for instance, answering calls from different groups when near their desktop—the system must adapt.
In testing, the algorithm successfully identified "proximity to desktop" as a new valid context for accepting calls, regardless of the caller's group. This revision process was computationally efficient, taking only a few seconds on standard hardware, suggesting the potential for local execution on mobile devices.
Key Insights and Discussion
The framework highlights several critical requirements for adaptive pervasive systems:
- Non-Monotonic Reasoning: Unlike standard logic, where new information only adds conclusions, user behavior models must be non-monotonic—allowing new habits to retract or modify previous rules.
- Minimalism as a Heuristic: When a contradiction occurs, the system seeks the minimal revision to the existing theory. This preserves the core of previously learned knowledge while accommodating new evidence.
- Explainability: By "lifting" the learning task to a meta-level, the system learns about its rules, maintaining a human-readable logic that can be verified or manually adjusted.
Limitations and Future Directions
Despite its success in small-scale scenarios, several challenges remain. Logic-based systems are sensitive to "noisy" sensor data, necessitating robust statistical pre-processing. Furthermore, the system must be scaled to handle hundreds of overlapping policies in complex environments and address "concept drift" (the gradual shifting of habits over long durations). Future work points toward Probabilistic ILP as a way to handle the inherent uncertainty of human behavior more gracefully than binary logic.
Summary updated