Learning Temporal Rules from Noisy Timeseries Data

Karan Samel, Zelin Zhao, Binghong Chen, Shuang Li, Dharmashankar Subramanian, Irfan Essa, Le SongarXiv 2022

Deep learning models like LSTMs and Transformers have become the gold standard for predicting events in time-series data. However, these models are often "black boxes"—they might predict a medical complication or a sports play accurately, but it’s unclear if they’ve learned the underlying causal logic or just picked up on spurious correlations in the noise.

In the paper "Learning Temporal Rules from Noisy Time-Series Data," researchers from Georgia Tech, CUHK, and IBM Research propose Neural Temporal Logic Programming (Neural TLP). This framework bridges the gap between the pattern-recognition power of deep learning and the interpretability of symbolic logic.

The Challenge of Temporal Reasoning

Most temporal datasets provide labels for composite events—high-level occurrences like "a patient developing sepsis" or "a baseball player hitting a home run." These are actually composed of atomic events (e.g., a specific medication administered, or a pitcher throwing a ball) occurring in a specific temporal order.

Traditional Inductive Logic Programming (ILP) can find these rules, but it requires "grounded" symbolic data (clean, pre-defined facts). Real-world data, like video or sensor logs, is noisy and probabilistic. Conversely, standard deep learning models handle noise well but fail to provide an explicit "rule" for their predictions, making them hard to trust in high-stakes fields like healthcare.

Conceptual comparison of standard ILP and Temporal ILP for rule learning from structured and unstructured data.

Neural TLP: An End-to-End Framework

Neural TLP is an end-to-end differentiable framework that extracts human-readable logic rules (e.g., "Event A happens before Event B") from raw, noisy time-series data. By learning to identify "atomic" events and their temporal relationships, it outperforms standard deep learning models in both rule discovery and out-of-distribution generalization. The system operates in two main stages:

1. Parameter Learning (The "Neural" Part)

  • Temporal Compression: The model uses 1D convolutions to smooth raw data and mitigate noise.
  • Interval Extraction: It learns to identify the start ($t_{start}$) and end ($t_{end}$) times of atomic events.
  • Predicate Modeling: It calculates scores for temporal relations—specifically before, during, and after—between pairs of atomic events using a Temporal Predicate Network (TPN).

2. Structure Learning (The "Logic" Part)

  • Combinatorial Search: The model searches through the space of possible logic rules (conjunctions of predicates).
  • Differentiable Selection: Instead of a hard search, it uses an attention mechanism over a sparse combinatorial matrix to select the most likely rules that explain the composite labels. This allows the entire system to be trained using standard gradient descent.
The Neural TLP architecture, illustrating the end-to-end pipeline from raw time-series to learned symbolic rules.

Datasets and Evaluation

The authors evaluated Neural TLP on two distinct domains:

  • CATER: A synthetic video dataset involving objects moving in a 3D scene. It serves as a controlled environment where the "ground truth" rules for composite events are known, allowing the authors to measure how accurately the model recovers the actual logic.
  • MIMIC-III: A real-world healthcare dataset containing de-identified clinical data from ICU patients. The task was to predict "normal urine output" (a proxy for circulatory health) in sepsis patients based on vitals and medications.

Key Results

  • Rule Recovery (Hits@k): On the CATER dataset, Neural TLP achieved a 91% Hits@1 rate (correctly identifying the exact rule). In contrast, standard LSTMs and Attention-LSTMs scored near 0%, proving that while they can predict the label, they do not "understand" the underlying rule.
  • Generalization: When tested on "out-of-distribution" data (where the frequency of labels changed), Neural TLP’s performance degraded much more gracefully than the LSTM baseline.
  • Healthcare Utility: In the MIMIC-III experiments, doctors verified that the rules extracted by Neural TLP (involving oxygen levels, bicarbonate, and calcium) were clinically plausible and useful for feature selection in complex environments.

Limitations and Future Work

While Neural TLP represents a significant step forward, several challenges remain. The current implementation focuses on rules of relatively short lengths; as the number of atomic events and the required rule length increase, the combinatorial space may still pose scaling challenges. Additionally, the model currently uses a simplified subset of Allen’s Temporal Algebra (before, during, after). Future work could incorporate more nuanced relations like "overlaps" or "meets," and explore the discovery of atomic events themselves from completely unsupervised data.

Summary updated

BibTeX
@misc{samel2022learning,
  author = {Karan Samel and Zelin Zhao and Binghong Chen and Shuang Li and Dharmashankar Subramanian and Irfan Essa and Le Song},
  title = {{Learning Temporal Rules from Noisy Timeseries Data}},
  year = {2022},
  eprint = {2202.05403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.05403},
}
Figure