Cyber-physical systems (CPS) designed in simulators behave differently in the real-world. Once they are deployed in the real-world, we would hence like to predict system failures during runtime. We propose robust predictive runtime verification (RPRV) algorithms under signal temporal logic (STL) tasks for general stochastic CPS. The RPRV problem faces several challenges: (1) there may not be sufficient data of the behavior of the deployed CPS, (2) predictive models are based on a distribution over system trajectories encountered during the design phase, i.e., there may be a distribution shift during deployment. To address these challenges, we assume to know an upper bound on the statistical distance (in terms of an f-divergence) between the distributions at deployment and design time, and we utilize techniques based on robust conformal prediction. Motivated by our results in [1], we construct an accurate and an interpretable RPRV algorithm. We use a trajectory prediction model to estimate the system behavior at runtime and robust conformal prediction to obtain probabilistic guarantees by accounting for distribution shifts. We precisely quantify the relationship between calibration data, desired confidence, and permissible distribution shift. To the best of our knowledge, these are the first statistically valid algorithms under distribution shift in this setting. We empirically validate our algorithms on a Franka manipulator within the NVIDIA Isaac sim environment.
翻译:在仿真器中设计的网络物理系统(CPS)在现实世界中表现不同。因此,一旦它们部署到现实世界中,我们希望在运行时预测系统故障。我们针对一般随机CPS的信号时序逻辑(STL)任务,提出了鲁棒预测性运行时验证(RPRV)算法。RPRV问题面临若干挑战:(1)可能没有足够的已部署CPS行为数据;(2)预测模型基于设计阶段遇到的系统轨迹分布,即在部署阶段可能存在分布漂移。为应对这些挑战,我们假设已知部署与设计阶段分布之间的统计距离(以f-散度衡量)的上界,并利用基于鲁棒共形预测的技术。受我们先前研究[1]结果的启发,我们构建了精确且可解释的RPRV算法。我们使用轨迹预测模型估计系统运行时行为,并通过鲁棒共形预测考虑分布漂移以获得概率性保证。我们精确量化了校准数据、期望置信度与允许分布漂移之间的关系。据我们所知,这些是在该设置下首个针对分布漂移具有统计有效性的算法。我们在NVIDIA Isaac仿真环境中的Franka机械臂上对所提算法进行了实证验证。