Improving Activity Discovery with Automatic Neighborhood Estimation

David Minnen, Thad Starner, Irfan A. Essa, Charles Lee Isbell Jr.

Introduction

In the fields of ubiquitous computing and robotics, a fundamental challenge lies in enabling systems to autonomously interpret streams of raw sensor data. Traditionally, identifying recurring patterns—known as "motifs"—required significant human intervention to define what constitutes an activity. This paper, originally presented at IJCAI 2007, introduces an unsupervised method to discover these motifs in multidimensional sensor data without prior knowledge of their location, frequency, or specific characteristics.

The Problem: The Fragility of Manual Tuning

Motif discovery aims to find "perceptual primitives" such as walking, lifting, or gesturing within signals from accelerometers or video. Previous state-of-the-art algorithms, notably the work by Chiu et al., relied heavily on a user-specified parameter $R$, the "neighborhood radius." This radius defines the similarity threshold required for two data segments to be classified as the same activity.

The researchers demonstrate that this parameter is exceptionally sensitive. A minor adjustment of just 2.5% in the radius can cause discovery accuracy to drop from 61% to 39%. Furthermore, a global radius is often ineffective because different activities possess varying levels of natural variability; for instance, a rhythmic walking pattern is far more consistent than the varied motions involved in cleaning a window.

Methodology

The authors extend the "Random Projection" motif discovery framework with two primary innovations: multidimensional integration and automatic neighborhood estimation.

Multidimensional Random Projection

While prior research often focused on 1D time series, this work extends the approach to multivariate data, such as combined 3-axis accelerometer and gyroscope signals. The system utilizes Symbolic Aggregate Approximation (SAX) to convert raw signals into strings. By implementing a "logical AND" approach during the random projection phase, the algorithm requires all dimensions to agree for a potential match to be registered in a collision matrix. This focus on cross-dimensional consistency significantly reduces the search space and highlights motifs that involve the entire sensor suite.

The Random Projection motif discovery framework using SAX strings and collision matrices.

Automatic Neighborhood Estimation

The core contribution of this paper is the elimination of the manual $R$ parameter. The algorithm follows a multi-step process to estimate a motif-specific radius:

  1. Seed Identification: It identifies "seed" pairs of highly similar subsequences.
  2. Distance Calculation: It calculates the distance from these seeds to all other segments in the dataset.
  3. Inflection Point Analysis: By sorting these distances and calculating the discrete first derivative, the algorithm identifies a "knee in the curve." This inflection point serves as a mathematically grounded boundary between true motif occurrences and random noise.
  4. Radius Calculation: A specific radius is then calculated for each motif based on the weighted mean of this derivative.
Automatic Neighborhood Estimation process showing seed distances, derivatives, and final radii.

Experimental Results

The proposed method was evaluated against three diverse datasets: a custom exercise dataset (wrist-mounted IMU), shuttle telemetry (6D), and fetal ECG data (8D).

On the exercise dataset, which included over 20,000 frames and 864 repetitions of dumbbell exercises, the automatic method achieved an event-level accuracy of 78.2%. This is a substantial improvement over the 61.1% achieved by the best-tuned version of previous manual methods, representing a 44% reduction in error. Crucially, the automatic method remained stable across various internal settings, whereas the manual method's performance was highly volatile.

Conclusion

By automating the estimation of the neighborhood radius, the authors successfully shifted the "intelligence" of the system from the researcher to the algorithm itself. This approach not only improves accuracy but also allows for local adaptation to the unique variability of different activities. While limitations remain—such as the assumption of fixed-length motifs—this work provides a robust foundation for higher-level reasoning and the eventual discovery of complex "grammars" in human behavior.

Summary updated

BibTeX
@inproceedings{minnen2007improving,
  author = {David Minnen and Thad Starner and Irfan A. Essa and Charles Lee Isbell Jr.},
  title = {{Improving Activity Discovery with Automatic Neighborhood Estimation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure