Introduction
Human Activity Recognition (HAR) using wearable sensors, such as smartphone accelerometers and gyroscopes, is traditionally approached as a supervised classification problem. However, this paradigm faces two significant challenges: the requirement for massive amounts of manually annotated data and the "one activity" assumption, which fails to account for the compound nature of human behavior. For instance, an activity like "brushing teeth" is actually a mixture of micro-movements such as standing, holding an arm up, and moving a hand.
While unsupervised clustering could alleviate the labeling bottleneck, standard algorithms often struggle with high-dimensional, continuous time-series data. This paper introduces LaHAR, an unsupervised approach that treats continuous sensor data like text documents, enabling the application of Latent Dirichlet Allocation (LDA) to discover latent activity patterns.
Methodology
To bridge the gap between continuous physics and discrete Natural Language Processing (NLP), the authors propose a three-step pipeline to create a "sensory vocabulary":
- Sensory Character Extraction: The system slides a window over individual sensor channels (e.g., the x-axis of an accelerometer). It extracts subsequences and clusters them using K-means. The resulting cluster centroids act as a finite alphabet of "sensory characters" (SC).
- Sensory Word Extraction: Because movements across different sensors on the same physical axis are correlated, the system synchronizes and concatenates the sensory characters from different sensors (e.g., accelerometer x-axis + gyroscope x-axis) to form "sensory words" (SW).
- Latent Dirichlet Allocation (LDA): A time-bounded sequence of sensor data is represented as a Bag-of-Words (BoW). This BoW is fed into standard LDA with Gibbs sampling. Just as LDA finds latent topics in a document, it finds latent activities (mixtures of sensory words) in a data sequence.
Experimental Setup
The experiments were conducted on the well-known UCI HAR dataset, which contains data from 30 volunteers performing six Activities of Daily Living (ADL): Sitting, Standing, Laying, Walking, Walking Upstairs, and Walking Downstairs. Data was collected using a waist-mounted smartphone recording 3-axial linear acceleration and 3-axial angular velocity at 50Hz.
Results and Analysis
LaHAR achieved an impressive 91% macro F1-score in a completely unsupervised manner. For context, a heavily engineered supervised baseline (SVM using 561 handcrafted features) on the same dataset achieved 96%. Getting within 5% of a supervised model without using any labels is a significant achievement for unsupervised HAR.
Qualitatively, the LDA model was highly effective at separating similar dynamic activities, such as Walking, Walking Upstairs, and Walking Downstairs, despite overlapping sensory word distributions. However, the model struggled to differentiate between Sitting and Standing. Since both are static activities and the smartphone was waist-mounted in the same position for both, they generated nearly identical sensory words.
Discussion
The "sensory word" abstraction serves as a powerful bridge, unlocking the arsenal of existing NLP algorithms for physical sensor data. A key insight is that activities are mixtures, not monoliths; LDA naturally models the physical world where a macro-activity is a probabilistic mixture of micro-movements. Furthermore, the authors found that vocabulary size is a more critical driver of performance than document length, mirroring findings in standard text corpora.
Limitations and Future Work
Currently, LaHAR requires the number of latent topics (activity classes) to be defined prior to training. Additionally, it struggles with static activities that lack distinct motion signatures. Future work will focus on replacing standard LDA with non-parametric Bayesian methods, specifically the Hierarchical Dirichlet Process (HDP), to automatically infer the optimal number of latent topics. The authors also plan to test the approach on datasets featuring more complex, compound activities to further validate the "mixture of activities" hypothesis.
Summary updated