Structured Prediction in Time Series Data

Jia LiAAAI 2017

Abstract

Traditional approaches to structured prediction in time series often rely on empirical risk minimization (ERM) using surrogate loss functions, which can lead to a discrepancy between training objectives and evaluation metrics. This paper introduces an adversarial sequence tagging framework that directly optimizes performance measures like Hamming loss. By framing the problem as a minimax game and utilizing oracle-based constraint generation, the proposed method achieves Fisher Consistency and demonstrates superior performance across diverse domains, including human activity recognition and natural language processing.

Introduction

In time series analysis—ranging from financial forecasting to tracking animal movement—data points are rarely independent. Structured prediction is the subfield of machine learning that accounts for these interdependencies. For instance, in animal behavior classification, if a subject is identified as "running" at time $t$, there is a high statistical probability that it remains in that state at $t+1$.

Despite the importance of these structures, direct optimization of the metrics we care about, such as Hamming loss (the total number of incorrect timesteps), is computationally NP-hard. To circumvent this, standard models like Conditional Random Fields (CRFs) and Structured Support Vector Machines (SSVMs) employ convex "surrogate" losses (log-loss or hinge loss). This creates a fundamental mismatch: the model is trained to minimize a surrogate proxy but is evaluated on a different metric entirely. Furthermore, the label space grows exponentially with the length of the sequence ($|Y|^L$), presenting a massive computational hurdle for exact modeling.

Methodology: Adversarial Sequence Tagging

This paper proposes a shift from the standard ERM framework toward an adversarial sequence tagging approach. The problem is reformulated as a minimax game between two players:

  1. The Adversary: Tasked with choosing a conditional label distribution that matches the statistics of the training data while being as "difficult" as possible for the predictor.
  2. The Predictor: Tasked with minimizing the expected loss against this worst-case adversarial distribution.

Theoretical Guarantees

A significant contribution of this work is the proof of Fisher Consistency. A model is Fisher Consistent if, given the true data distribution and a sufficiently rich feature set, it is mathematically guaranteed to minimize the expected loss. While SSVMs lack this property, the adversarial approach ensures that the model remains theoretically sound and reliable as data volume increases.

Computational Tractability

To address the exponential growth of the label space, the author employs double oracle and single oracle constraint generation methods. These algorithms allow the model to incrementally build a "sub-game" of the full exponential search space. This makes the optimization of non-convex, NP-hard problems tractable without sacrificing the integrity of the structured prediction.

Empirical Evaluation

The effectiveness of the adversarial approach was tested across several distinct datasets:

  • Human Activity Recognition: Utilizing data from wearable sensors to classify movement.
  • Animal Behavior: Analyzing GPS and accelerometer data to track baboon activity patterns.
  • Natural Language Processing (NLP): Performing Named Entity Recognition (NER) tasks to test the model's versatility beyond physical sensors.
  • Dynamic Networks: Predicting changes in network topology over time in real-world network datasets.

Key Insights and Results

The research yielded several critical findings:

  • Closing the Metric Gap: By avoiding surrogate losses and directly addressing relevant performance measures, the model achieved higher real-world utility and accuracy compared to CRFs and SSVMs.
  • Robustness through Adversity: The minimax framework acts as a natural regularizer. Training against a worst-case distribution ensures the model is robust even when training data only approximates the true underlying distribution.
  • Joint Prediction Benefits: In the context of dynamic networks, the paper demonstrates that predicting edges jointly—rather than independently—captures the complex inherent structures of the network more effectively.

Discussion and Future Work

While the adversarial approach provides a robust framework for structured prediction, the author identifies two primary areas for future exploration:

  1. Active Learning for Sequences: Labeling time series data is resource-intensive because individual timestamps cannot be labeled in isolation; they require surrounding context. Future research is needed to develop active learning strategies that optimize the balance between labeling effort and contextual requirements.
  2. Joint Modeling of Networks and Attributes: There is a significant opportunity in modeling the co-evolution of network structures (e.g., social proximity) and node attributes (e.g., individual activity). Recognizing that an individual's behavior influences their social network, and vice versa, remains a major open challenge in the field.

Summary updated

BibTeX
@inproceedings{li2017structured,
  author = {Jia Li},
  title = {{Structured Prediction in Time Series Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10525},
}
Figure