Overview
Learning patterns of human behavior from sensor data is crucial for high-level activity inference. Researchers at the University of Washington have developed a unified framework using Relational Markov Networks (RMNs) to simultaneously identify significant locations and label human activities from raw GPS data. By employing a clever "FFT trick" for belief propagation, they successfully integrated global constraints—such as the total number of homes a person has—into the model without the exponential computational costs usually associated with such complex features.
The Problem with Traditional Pipelines
Traditional activity recognition from GPS data often follows a rigid, two-step pipeline: first, identify "significant places" (like home or work) using a simple time threshold (e.g., "if a user stays here for >20 minutes, it's a place"), and second, label the activities occurring at those places.
The authors argue this approach is fundamentally flawed. A quick stop to drop a child at school might be "significant" but last only two minutes, while waiting at a long traffic light might last five minutes but is "insignificant." Furthermore, existing models struggle with non-local features—global constraints such as "a person rarely visits more than one workplace in a day." Incorporating these global "counting" features usually makes the underlying inference computationally impossible for standard algorithms.
Methods: Relational Markov Networks & The FFT Trick
To overcome these limitations, the paper introduces a hierarchical Relational Markov Network (RMN). Unlike standard Conditional Random Fields (CRFs), RMNs allow for "clique templates" that can be dynamically instantiated based on the data.
This approach relies on two core innovations:
- Joint Inference: Instead of a pipeline, the model iteratively re-estimates activities and places. Activities (like "working") help identify places (the "office"), and knowing a place is an "office" helps refine the labels of other activities occurring there. Context flows both ways.
- Summation Trees & The FFT Trick: To handle global constraints, the authors represent the sum of nodes as a binary tree. They observe that the message-passing math for a sum is equivalent to a convolution. By using the Fast Fourier Transform (FFT), they convert these expensive convolutions into simple point-wise multiplications. This reduces the computational complexity of global features from exponential to $O(n \log^2 n)$, making it feasible to reason over thousands of variables.
Experimental Setup
The study utilized real-world GPS traces collected from four different individuals over approximately seven days each. This resulted in roughly 40,000 GPS measurements per person, segmented into about 10,000 10-meter segments. The researchers used leave-one-out cross-validation—training the model on three people and testing it on the fourth—to ensure the model learned general patterns of human behavior rather than just memorizing one person's routine.
Key Results
By treating "significance" as a latent variable to be inferred rather than a hard-coded time limit, the model becomes much more robust to the messy reality of human movement.
- Place Extraction Accuracy: The RMN model significantly outperformed the traditional threshold method. While a 1-minute threshold produced ~40 false positives, and a 10-minute threshold produced ~10 false negatives, the proposed model achieved a tight cluster of only 4 false positives and 3 false negatives.
- Activity Labeling: The system achieved an impressive 90.6% accuracy in place detection and labeling.
- Computational Speedup: For a clique of 1,000 nodes, the optimized FFT-based Belief Propagation was orders of magnitude faster than MCMC (Markov Chain Monte Carlo) and infinitely more practical than Naive BP, which becomes extremely slow at just 20 nodes. The authors' method successfully handled 2,000 variables in just a few minutes.
Limitations and Future Work
While highly effective, the current model relies solely on GPS. The authors acknowledge that adding accelerometers, audio signals, or barometric pressure (to detect floor level) would allow for much finer-grained activity recognition (e.g., distinguishing between "cooking" and "cleaning" while at home). They also suggest that future iterations could incorporate more specialized inference mechanisms, such as local dynamic programming, to further refine the efficiency of the relational templates. Finally, while they mention associating traces with street maps, the full potential of geographic information systems (GIS) as a prior for activity types remains an area for deeper integration.
Summary updated