Introduction
In the domain of pervasive computing, particularly within smart home environments, the primary objective is to provide seamless automation that anticipates resident needs. However, a significant challenge persists: human behavior is inherently dynamic. Most existing data mining models are static, assuming that once a behavioral pattern is learned, it remains constant. In reality, schedules shift due to lifestyle changes, seasonal variations, or new employment. When a smart home relies on an inflexible model, it eventually becomes a source of friction rather than assistance. This paper presents a framework designed to not only discover frequent activities but also to adapt as those activities evolve over time.
Methodology: The Adaptive Framework
The proposed framework addresses the limitations of static modeling through a multi-stage process involving pattern discovery, context capture, and continuous adaptation.
Frequent and Periodic Pattern Miner (FPPM)
The FPPM component identifies sequences of events using a novel time-based compression metric. Unlike traditional algorithms that measure frequency based on the number of event occurrences (tuples), FPPM evaluates how effectively a pattern compresses the dataset relative to actual time units. This ensures that the discovery process remains robust even if a resident's activity level fluctuates significantly from day to day. Furthermore, FPPM identifies periodic events—such as weekly chores—using flexible "temporal granules" that accommodate the natural variability of human schedules.
Pattern Adaptation Miner (PAM)
The PAM serves as the system's adaptation engine. It assigns a Potential Value ($Q$) to every learned activity, which is updated through two primary mechanisms:
- Compensation: The $Q$ value increases whenever a pattern is observed.
- Decay: All patterns experience a gradual decay in $Q$ over time.
This "intentional forgetting" mimics human memory; if a routine is abandoned, its $Q$ value eventually falls below a critical threshold, and the system prunes it from the model. PAM can operate via "Smart Detection" for automatic updates or "Explicit Request" to focus on specific user-defined activities.
Key Insights: Trigger Logic and Modeling
A critical innovation of this framework is its systematic handling of "startup triggers." In many automation scenarios, it is difficult to distinguish between the sensor event that initiates an action (e.g., a motion sensor) and the action itself (e.g., a light turning on).
As illustrated above, if a specific sensor event consistently precedes an activity, the framework strips that event from the core sequence and labels it as a trigger. This allows the Hierarchical Activity Model (HAM)—which utilizes Markov chains and Gaussian distributions—to represent sequences and timing with high precision, facilitating more effective automation.
Experimental Validation
The framework was validated using both synthetic and real-world datasets:
- Synthetic Testing: Using a custom generator simulating one month of data, FPPM correctly identified six distinct activities despite injected noise. When an activity's duration was manually altered from 5 to 7 minutes, PAM successfully detected the shift, converging on a new estimate of 6.44 minutes.
- Real-World Application (CASAS): In the CASAS Smart Workplace testbed at Washington State University, the system was tested against live sensor data (motion, light, and power-line sensors). When a volunteer increased a task's duration from 1 to 2 minutes, PAM successfully identified the change and updated the model parameters accordingly.
Conclusion and Future Work
This framework represents a significant step toward truly autonomous smart environments that evolve alongside their inhabitants. By moving away from static tuple-based counts toward time-sensitive, adaptive modeling, the system maintains accuracy over long durations. Future research will focus on handling parallel activities—where multiple routines occur simultaneously—and improving the detection of abrupt behavioral changes where a routine ceases instantly rather than gradually.
Summary updated