Inferring Temporal Logic Properties from Data using Boosted Decision Trees

Erfan Aasi, Cristian Ioan Vasile, Mahroo Bahreinian, Calin BeltaarXiv 2021

Abstract

Autonomous systems require the ability to predict future events from partial data to ensure safety and efficiency. This paper presents a framework for learning human-interpretable rules from time-series data by integrating Signal Temporal Logic (STL) with Boosted Decision Trees (BDTs). By employing an incremental learning approach, the proposed method enables early-stage predictions that significantly outperform traditional offline models, providing both high accuracy and formal explainability.

Introduction

In domains such as autonomous driving and robotics, timely decision-making is critical. A system must often infer the intent of other agents—such as a pedestrian's likelihood of crossing a street—well before the action is completed. While deep learning models offer strong predictive performance, they lack interpretability. Conversely, formal methods like Signal Temporal Logic (STL) offer clear, logical rules but are traditionally difficult to extract from data efficiently.

This research addresses this gap by introducing a system that "mines" STL rules using an ensemble of decision trees. The resulting model is not only predictive but also provides a logical justification for its outputs, bridging the divide between black-box machine learning and formal verification.

Methodology

The framework relies on three core technical components:

  1. Boosted Decision Trees for STL: The authors adapt the AdaBoost algorithm to an ensemble of decision trees. In this setup, each internal node represents a primitive STL formula (e.g., $x > \pi$). Combining multiple "weak" trees allows the model to capture complex temporal patterns while maintaining a structure that can be translated back into a single, albeit large, STL formula.
  2. MILP-Based Optimization: To determine the optimal parameters for the STL primitives at each node—such as the specific threshold $\pi$ or the temporal bounds $[t_0, t_1]$—the authors formulate the split selection as a Mixed-Integer Linear Program (MILP). This ensures global optimality for each split, avoiding the pitfalls of local-search heuristics.
  3. Incremental Learning: To handle real-time data streams, the algorithm processes "prefix signals" (partial trajectories). It uses a specialized heuristic to determine when a signal contains sufficient information to warrant the addition of a new decision tree to the ensemble, allowing the model's predictive power to grow as more data is revealed.

Experimental Setup

The proposed approach was evaluated using two distinct datasets:

  • Autonomous Driving (CARLA): A simulated environment where an ego vehicle must determine if a pedestrian is crossing an intersection. The challenge is heightened by occlusions, requiring the model to infer the pedestrian's presence and intent from the behavior of other visible vehicles.
  • Naval Surveillance: A real-world dataset of vessel trajectories. The goal is to classify behavior as either "normal" (e.g., proceeding to a port) or "anomalous" (e.g., unauthorized course deviations or ship-to-ship meetings).
Figure 1: The CARLA simulation environment used to test intent inference under occlusion.

Results and Discussion

The experimental results highlight the advantages of the incremental BDT approach in terms of both accuracy and timeliness.

Interpretability and Accuracy

In the naval surveillance task, the BDT framework achieved a 12% relative improvement in misclassification rate (MCR) over existing state-of-the-art decision tree baselines. Crucially, the output is a human-readable logical formula. For instance, the model might identify a crossing event based on the relative distance between vehicles remaining below a specific threshold for a defined duration.

Early Prediction Performance

The most significant advantage of the incremental approach is its performance on partial data. As shown in the comparative analysis, traditional offline models—which are trained on full trajectories—often exhibit high error rates (near 50% MCR) until the very end of the signal. In contrast, the incremental model's error rate begins to drop sharply much earlier in the timeline, enabling proactive decision-making.

Figure 6: Comparison of performance over time between Offline and Incremental learning models on the Naval dataset.

Conclusion

This work demonstrates that combining Boosted Decision Trees with Signal Temporal Logic provides a powerful tool for interpretable, real-time prediction in autonomous systems. While the MILP optimization is computationally intensive during the training phase, the resulting satisfaction predictors are efficient enough for real-time deployment. Future research will focus on extending the framework to multi-class classification and improving regularization to prevent overfitting in deeper tree structures.

Summary updated

BibTeX
@misc{aasi2021inferring,
  author = {Erfan Aasi and Cristian Ioan Vasile and Mahroo Bahreinian and Calin Belta},
  title = {{Inferring Temporal Logic Properties from Data using Boosted Decision Trees}},
  year = {2021},
  eprint = {2105.11508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.11508},
}
Figure