Introduction
Modern smart homes are increasingly equipped with a vast array of IoT sensors, yet translating raw sensor data into proactive, meaningful assistance remains a significant challenge. Most current activity recognition systems rely on supervised learning, which requires extensive manual labeling—a process that is both costly and difficult to scale. Furthermore, these systems often focus solely on recognizing current actions, neglecting the temporal relationships necessary for predicting future needs. This paper proposes a unified framework that leverages a hybrid Edge-Cloud architecture to discover, model, and predict human activities in real-time, prioritizing resident convenience through proactive automation.
System Architecture
The authors introduce a hierarchical four-layer architecture designed to balance computational power with low-latency responsiveness.
- Thing Layer: Comprises the physical sensors and devices within the home.
- IoT Service Layer: Abstracts device functions into usable services (e.g., "Fridge service").
- Edge Layer: Deployed locally to ensure immediate processing. It handles real-time data segmentation, activity recognition, and short-term prediction.
- Cloud Layer: Manages long-term data storage and performs the intensive training of activity models and temporal pattern mining.
Core Methodology
The framework employs a multi-stage approach to learn and predict resident behavior without requiring pre-labeled data:
- Activity Discovery: Using agglomerative hierarchical clustering, the system groups sensor events based on spatial, temporal, and structural similarities. This unsupervised approach allows the system to adapt to unique household habits automatically.
- Activity Modeling: Discovered activities are modeled using Hidden Markov Models (HMMs). This captures the inherent variability in how different individuals perform a task.
- Temporal Pattern Discovery (TPMiner): The core novelty is the TPMiner algorithm. By applying Allen’s temporal logic to activity sequences, TPMiner identifies frequent patterns and transitions (e.g., "Activity A usually precedes B").
- Recognition and Prediction: The system utilizes the Forward algorithm to match live sensor streams to HMMs for recognition. Once an activity is identified, the mined temporal rules are used to forecast the most likely subsequent action.
Experimental Evaluation
The framework was validated using a real-world dataset from a smart apartment inhabited by an elderly resident. The environment included 84 sensors monitoring 21 distinct activity types over two weeks.
Key performance metrics include:
- Clustering Accuracy: The unsupervised discovery component achieved a peak F1 score of 0.68 at a distance threshold of 0.9.
- System Efficiency: The clustering algorithm demonstrated strong scalability, processing 90% of the dataset in approximately 29.7 seconds.
- Pattern Extraction: TPMiner successfully identified hundreds of temporal patterns. At a 3% minimum support threshold, the algorithm extracted between 211 and 342 patterns, leading to 132 actionable rules for proactive automation.
Conclusion
By combining unsupervised clustering with advanced temporal pattern mining in a hybrid Edge-Cloud framework, this research addresses the scalability and latency issues of traditional smart home systems. The "least effort" principle guides the system toward providing proactive convenience rather than just reactive monitoring. Future work will focus on improving real-time segmentation of continuous sensor streams and developing physical prototypes for resident interaction.
Summary updated