Introduction
Specifying and analyzing complex robotic behaviors is a significant challenge in modern engineering. While Temporal Logics like Signal Temporal Logic (STL) provide mathematical rigor for formal verification, they often become unwieldy for long, sequential tasks. Conversely, Behavior Trees (BTs) offer modularity and human-readability but lack formal robustness measures to quantify how close a system is to failure. This paper introduces Temporal Behavior Trees (TBTs), a formalism that bridges this gap by combining the modularity of BTs with the rigor of STL.
Temporal Behavior Trees: The Core Innovation
TBTs enhance standard behavior trees by decorating leaf nodes with STL formulas. This allows for the definition of real-valued robustness, extending the concept from STL to a tree-based structure. A positive robustness value indicates task satisfaction, while a negative value quantifies the degree of violation.
Beyond simple pass/fail metrics, the core innovation is a "trace segmentation" algorithm. Using a dynamic programming approach, the framework automatically partitions a long execution trace into sub-traces, each mapped to a specific node in the TBT. This explains precisely when and how a robot progressed through its mission.
Computational Efficiency
To handle high-frequency logs containing tens of thousands of data points, the authors implemented two key optimizations:
- Subsampling: A "stride length" ($\delta$) is used to reduce data size while preserving the Boolean truth of the specification.
- Lazy Evaluation: A "short-circuit" logic stops robustness computation as soon as a violation is confirmed, significantly speeding up processing.
Evaluation: Ship Landing and Human Performance
The framework was evaluated using two primary datasets: simulation logs of an unmanned aerial vehicle (UAV) landing on a moving ship, and data from human subjects navigating a drone through waypoints.
In the ship landing case study, the algorithm demonstrated high diagnostic power. It revealed that certain maneuver failures were caused by the controller behaving like a "45-degree" maneuver rather than the intended "Oblique" path—a nuance invisible to standard pass/fail checks. In human trials, segmentation identified specific flight phases (e.g., navigating near obstacles) as consistent bottlenecks for novice pilots.
Expressivity and Insights
TBTs are more expressive than standard STL. The recursive nature of "Sequence" and "Repeat" ($\star$) operators allows TBTs to specify patterns—such as properties holding at specific intervals—that STL cannot. Furthermore, the natural implementation of the "chop" operator from interval temporal logic simplifies the specification of multi-stage missions, such as moving to a location, hovering, and then landing.
Conclusion and Future Work
Temporal Behavior Trees provide a powerful tool for post-mission debugging and performance analysis. While subsampling introduces a "sound but not complete" risk for detecting momentary violations, the system's ability to process 20,000+ data points in seconds makes it highly practical. Future work aims to adapt these offline segmentation algorithms for real-time online monitoring and to explore alternative valid segmentations for deeper behavioral insights.
Summary updated