SummerTime: Variable-length Time SeriesSummarization with Applications to PhysicalActivity Analysis

Kevin Michael Amaral, Zihan Li, Wei Ding, Scott E. Crouter, Ping ChenarXiv 2020 · DOI

Abstract

SummerTime seeks to summarize globally time series signals and provides a fixed-length, robust summarization of the variable-length time series. Many classical machine learning methods for classification and regression depend on data instances with a fixed number of features. As a result, those methods cannot be directly applied to variable-length time series data. One common approach is to perform classification over a sliding window on the data and aggregate the decisions made at local sections of the time series in some way, through majority voting for classification or averaging for regression. The downside to this approach is that minority local information is lost in the voting process and averaging assumes that each time series measurement is equal in significance. Also, since time series can be of varying length, the quality of votes and averages could vary greatly in cases where there is a close voting tie or bimodal distribution of regression domain. Summarization conducted by the SummerTime method will be a fixed-length feature vector which can be used in-place of the time series dataset for use with classical machine learning methods. We use Gaussian Mixture models (GMM) over small same-length disjoint windows in the time series to group local data into clusters. The time series' rate of membership for each cluster will be a feature in the summarization. The model is naturally capable of converging to an appropriate cluster count. We compare our results to state-of-the-art studies in physical activity classification and show high-quality improvement by classifying with only the summarization. Finally, we show that regression using the summarization can augment energy expenditure estimation, producing more robust and precise results.

Introduction

Most classical machine learning algorithms—like Artificial Neural Networks (ANNs) or Linear Regression—require a fixed number of input features. However, real-world time series data, such as accelerometer data from a fitness tracker, is inherently variable in length. Standard approaches to handle this, such as resizing signals or using sliding windows with majority voting, often fail to capture critical nuances or distort the temporal relationship between movement and time. SummerTime addresses this "variable-length headache" by transforming activity bouts into fixed-length "summaries" that represent the distribution of movement patterns rather than a simple sequence of points.

Methodology

The SummerTime framework operates in three distinct phases: Cluster Generation, Classification, and Regression.

The SummerTime framework pipeline, illustrating the flow from raw accelerometer data through featurization and clustering to final PAEE estimation.

1. Cluster Generation (Summarization)

The raw signal is broken into small, 12-second disjoint windows. For each window, 18 features are extracted, including the 10th, 25th, 50th, 75th, and 90th percentiles of accelerometer counts to ensure robustness against outliers, along with lag-1 autocorrelation features. These are fed into a Variational Bayesian Gaussian Mixture Model (GMM), which automatically determines the optimal number of clusters ($K$). Every activity bout is then represented as a fixed-length vector of size $K$, where each value is the ratio of windows in that bout belonging to a specific cluster.

2. Classification and Regression

An ANN utilizes these fixed-length summary vectors to classify activity types (e.g., Sedentary, Walking, Running). To estimate Physical Activity Energy Expenditure (PAEE), the model uses "Linear $n$-Regression," selecting a specific linear model based on the predicted activity class and refining the estimate using both local window features and global summary features.

The step-by-step summarization process: (a) raw signal, (b) featurization, (c) PCA of clusters, (d) cluster distribution histogram, and (e) the final fixed-length ratio vector.

Experimental Setup

The framework was validated using a dataset from two NIH-funded studies involving 184 children (aged 8 to 15). Participants performed 13 different activities while wearing Actigraph X accelerometers and a Cosmed K4b2 portable metabolic system to provide ground truth for energy expenditure (METs). The dataset was highly imbalanced, posing a significant challenge for traditional classification methods.

Key Results

The SummerTime method demonstrated substantial improvements over state-of-the-art baselines:

  • Classification Accuracy: In the "Running" category, which is often confused with walking by traditional models, SummerTime achieved a 72.16% recall, compared to just 8.25% for standard windowed voting.
  • Energy Estimation (PAEE): The model achieved an overall RMSE of 0.7206, significantly lower than standard Linear Regression (2.3690) and standard ANN (1.4402).
  • Robustness: Unlike other methods where error rates spiked for high-intensity activities, SummerTime maintained consistent error rates across different activity intensities.

Conclusion

By focusing on the "texture" and distribution of movement patterns through cluster membership rates, SummerTime provides a robust solution for variable-length time series analysis. While currently focused on pediatric physical activity, the framework's ability to preserve global information while respecting local nuances suggests broad applicability to other time series domains, such as finance or industrial sensor monitoring.

Summary updated

BibTeX
@misc{amaral2020summertime,
  author = {Kevin Michael Amaral and Zihan Li and Wei Ding and Scott E. Crouter and Ping Chen},
  title = {{SummerTime: Variable-length Time SeriesSummarization with Applications to PhysicalActivity Analysis}},
  year = {2020},
  eprint = {2002.09000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.09000},
}
Figure