Temporal Behavior Trees - Segmentation

Sebastian Schirmer, Jasdeep Singh, Emily Jensen, Johann C. Dauer, Bernd Finkbeiner, Sriram Sankaranarayanan

Introduction

In modern robotics, Behavior Trees (BTs) have become a standard framework for organizing complex, hierarchical tasks. While BTs excel at real-time execution—managing sequences like "take off," "hover," and "land"—they lack native mechanisms for post-hoc verification. Traditionally, researchers turn to Signal Temporal Logic (STL) to verify if a robot met its mission requirements. However, STL typically provides a binary "pass/fail" verdict for an entire mission trace. If a drone fails a complex landing, a simple "fail" does not specify whether the error occurred during the approach, the hover, or the final touchdown.

Temporal Behavior Trees (TBTs) address this gap by retrofitting standard behavior trees with temporal logic, enabling automatic segmentation of execution traces and providing granular "robustness" scores for every sub-behavior in a mission.

The TBT Framework

The core innovation of TBTs is the attachment of STL formulas to the leaf nodes (the primitive actions) of a behavior tree. This creates a formal link between high-level mission logic and low-level sensor data recorded during flight.

A Temporal Behavior Tree (TBT) for a UAV ship landing mission, featuring sequential and fallback nodes with STL formulas at the leaves.

By defining these temporal requirements at the leaf level, the entire tree can be evaluated against a recorded trace. The framework uses an offline segmentation algorithm to determine the optimal way to slice a timeline into segments that correspond to specific nodes in the tree. Unlike traditional state machines where transitions are hard-coded, TBT transitions are inferred by the algorithm based on the physics and logic defined in the STL formulas.

Robustness and Debugging

Instead of a simple Boolean result, the TBT toolbox calculates a numerical robustness value. A positive value indicates the requirement was met, while a negative value signals a violation. This "grading" system allows engineers to identify "close calls"—segments where a robot technically succeeded but with a low robustness score, perhaps indicating that control gains need tuning.

Furthermore, the tool can generate alternative "interpretations" of ambiguous data. For instance, if a pilot intended a 45-degree approach but the tool segments the flight as a "failed Straight-In approach," it reveals a critical discrepancy between the intended logic and the actual execution path.

Experimental Demonstration: UAV Ship Landing

The authors demonstrated the tool using a simulated trace of an autonomous UAV landing on a moving ship deck. The task required the UAV to choose between two maneuvers, maintain a position behind the ship, move to a touchdown point, and descend.

3D visualization of the UAV landing trajectory, automatically segmented into distinct behaviors (2: move to position, 4: stay in position, 5: move to touchdown, 6: descend) by the TBT toolbox.

In a trace of over 500 data points, the tool successfully identified the root mission as successful (robustness ~0.498) and precisely segmented the trajectory into its constituent behaviors. As shown in the 3D visualization, the algorithm correctly identifies the transitions between moving to a position, maintaining that position, and the final descent.

Limitations and Future Work

While the current TBT toolbox is a powerful diagnostic tool, it is currently limited to offline analysis, processing logs after a mission is complete. Transitioning to real-time, "online" monitoring during flight is a primary goal for future development. Additionally, the current implementation requires users to manually interface their specific log formats with the Rust-based tool.

Despite these limitations, TBTs represent a significant step toward comprehensive robotic system analysis, helping engineers move beyond simple success/failure metrics toward a deeper understanding of complex autonomous behaviors.

Summary updated

BibTeX
@inproceedings{schirmer2024temporal,
  author = {Sebastian Schirmer and Jasdeep Singh and Emily Jensen and Johann C. Dauer and Bernd Finkbeiner and Sriram Sankaranarayanan},
  title = {{Temporal Behavior Trees - Segmentation}},
  booktitle = {HSCC},
  year = {2024},
  doi = {10.1145/3641513.3652534},
}
Figure