Time-Incremental Learning from Data Using Temporal Logics

Erfan Aasi, Mingyu Cai, Cristian Ioan Vasile, Calin BeltaarXiv 2021

Introduction

Real-time decision-making in cyber-physical systems (CPS), such as autonomous vehicles or naval surveillance, often requires classifying behaviors based on incomplete or "prefix" signals. For instance, an autonomous vehicle must determine if a nearby driver is "aggressive" or "safe" well before the interaction is complete.

An urban driving scenario where an ego vehicle must classify the behavior of another car in real-time.

Traditional formal methods like Signal Temporal Logic (STL) are effective for specifying behavior but often remain inconclusive when applied to short signal prefixes. Conversely, deep learning models offer high performance but lack interpretability. This paper introduces a framework that bridges this gap by combining STL with neural networks to learn time-varying weights for real-time, interpretable classification.

The Time-Incremental Learning Framework

The proposed framework consists of three integrated stages designed to optimize both accuracy and computational efficiency.

The proposed framework (a) and the signal analysis heuristic used to identify optimal decision times (b).

1. Signal Analysis

To avoid the computational burden of training models for every millisecond, the authors identify specific "decision times" ($\mathcal{T} = \{t_k\}_{k=1}^K$). These are points where the classes (e.g., normal vs. anomalous) are most distinct or where behavior changes rapidly, determined by calculating the Euclidean distance between positive and negative classes over time.

2. Classifier Learning

At each decision time, a decision tree is trained on the prefix signals and subsequently translated into human-readable STL formulas ($\mathbf{F} = \{\phi_k\}_{k=1}^K$). This ensures the classification logic is transparent and verifiable.

3. Classifier Evaluation

Because the importance of specific logic rules changes as more data becomes available, the framework employs a neural network to learn time-variant weights ($\omega_k(t)$) for the STL formulas. The final output is a weighted STL (wSTL) predictor ($\Phi$) that calculates a weighted sum of the "robustness" of the prefix signal against all learned formulas.

Experimental Evaluation

The framework was tested on two benchmarks: an Urban-Driving Scenario using the CARLA simulator (4D data) and a Naval Surveillance dataset of 2,000 vessel trajectories (2D data).

Key Results

The "Time-Incremental Learning" approach significantly outperformed static baselines in several key areas:

  • Accuracy: The method achieved a lower Incremental Misclassification Rate (IMCR), showing particular strength in the naval scenario as more data was processed.
  • Efficiency: In the driving case, the framework reduced the number of required formulas from 477 to just 9. This led to a runtime of 646 seconds, compared to over 33,000 seconds for a model trained at every time step.
  • Interpretability: By using STL, the system provides human-understandable reasons for its classifications, such as "the car maintained high velocity near the crosswalk."

Conclusion

By treating classification as a dynamic ensemble of logic rules, this framework enables efficient and interpretable real-time monitoring. The use of "decision times" and learned temporal weights allows the system to gain confidence and refine its predictions as signals unfold, making it highly suitable for deployment on resource-constrained edge hardware in autonomous systems.

Summary updated

BibTeX
@misc{aasi2021time,
  author = {Erfan Aasi and Mingyu Cai and Cristian Ioan Vasile and Calin Belta},
  title = {{Time-Incremental Learning from Data Using Temporal Logics}},
  year = {2021},
  eprint = {2112.14300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.14300},
}
Figure