Runtime Enforcement of CPS against Signal Temporal Logic
Han Su, Saumya Shankar, Srinivas Pinisetty, Partha S. Roop, Naijun Zhan
TL;DR
This work addresses enforcing dense-time CPS properties specified in STL by translating STL formulas into Timed Transducers (TTs) and encoding continuous signals into timed words. It presents a formal pipeline: encode signals as timed words, translate STL into TT via a compositional construction that handles $p_1\mathcal{U}_{I}p_2$ and $p_1\mathcal{R}_{I}p_2$, and enforce the property with an online enforcer that minimally modifies the signal using a tractable optimization. The contributions include a sound, transparent, and minimally invasive enforcer, a compositional TT framework with $\land$/$\lor$-products, and empirical case studies on autonomous-vehicle scenarios demonstrating efficiency and scalability. This framework enables real-time safety guarantees for CPS with continuous-time dynamics and lays groundwork for extending to bidirectional enforcement and more general STL specifications.
Abstract
Cyber-Physical Systems (CPSs), especially those involving autonomy, need guarantees of their safety. Runtime Enforcement (RE) is a lightweight method to formally ensure that some specified properties are satisfied over the executions of the system. Hence, there is recent interest in the RE of CPS. However, existing methods are not designed to tackle specifications suitable for the hybrid dynamics of CPS. With this in mind, we develop runtime enforcement of CPS using properties defined in Signal Temporal Logic (STL). In this work, we aim to construct a runtime enforcer for a given STL formula to minimally modify a signal to satisfy the formula. To achieve this, the STL formula to be enforced is first translated into a timed transducer, while the signal to be corrected is encoded as timed words. We provide timed transducers for the temporal operators \emph{until} and \emph{release} noting that other temporal operators can be expressed using these two. Our approach enables effective enforcement of STL properties for CPS. A case study is provided to illustrate the approach and generate empirical evidence of its suitability for CPS.
