TL;DR
SENTIL is an open-source, high-performance runtime verification tool designed for Probabilistic Signal Temporal Logic (PrSTL) in safety-critical cyber-physical systems. Built with an efficient Rust core and a language-agnostic C-ABI, it bridges the gap between continuous-time signal monitoring and rigorous statistical model checking, delivering 10× to 1,000× speedups over existing tools.
What Problem Does This Paper Address?
Cyber-physical systems (CPS)—such as autonomous vehicles, aerospace systems, and medical devices—increasingly operate in highly unpredictable, stochastic environments. To ensure safety, engineers need to verify requirements that are inherently probabilistic, such as: "The probability of maintaining a safe separation distance over the next ten seconds must exceed 99%."
While the theoretical framework for this—Probabilistic Signal Temporal Logic (PrSTL)—has existed for nearly a decade, practical runtime tools have been missing. As shown in the authors' tool comparison, the landscape has been deeply fragmented:
Deterministic monitors like RTAMT and Breach handle continuous signals but completely forfeit probabilistic reasoning. Conversely, statistical model checkers like PRISM and UPPAAL-SMC handle probabilities but cannot process continuous-time signals natively. SENTIL addresses this gap by providing a unified, real-time deployable infrastructure that handles both continuous signals and rigorous statistical guarantees.
Methods
SENTIL achieves its performance and theoretical coverage through a three-stage pipeline: stochastic signal lifting, robustness evaluation, and statistical aggregation.
Key innovations include:
- Stochastic Signal Lifting: Transforms deterministic sensor readings into probability distributions at runtime by inferring noise models (via Parametric, Nonparametric Bootstrap, or Gaussian Mixture Models).
- Streaming Robustness Computation: Employs a novel monotonic deque-based sliding window algorithm. This reduces the computational complexity of evaluating temporal operators to $O(1)$ amortized time.
- Parallelized & Accelerated SMC: Features a Statistical Model Checking (SMC) engine with two modes: a CPU-parallel Monte Carlo sampler utilizing Rayon-based work-stealing, and a GPU-accelerated Adaptive Multilevel Splitting (AMS) engine via WebGPU for estimating rare events (probabilities below $10^{-6}$).
- Universal Ecosystem Integration: Rather than forcing a specific language ecosystem, SENTIL exposes a minimal C-ABI foreign function interface (FFI). This allows near-zero overhead deployment across ROS, Apollo, MATLAB Simulink, and AUTOSAR, with native bindings for Python, C++, and Java.
Datasets
The authors evaluated SENTIL across a diverse suite of quantitative verification benchmarks and domain-specific case studies:
- Standard SMC Benchmarks: Powertrain Control, Biodiesel Process, Circadian Rhythm, CSMA/CD Protocol, and Tandem Queue.
- FDA Insulin Pump Benchmark: Evaluated using the UVA/Padova Type 1 Diabetes Simulator (S2013) inside MATLAB Simulink to simulate closed-loop blood glucose regulation.
- Biological Networks: A high-dimensional mammalian circadian oscillator model from the BioModels database (BIOMD0000000073).
- Autonomous Driving Streams: Real-time sensor data from a Level 4 autonomous vehicle stack within the Apollo driving framework navigating the CARLA simulator, alongside a 120-minute real-world public road driving dataset.
Key Insights and Ideas
- Algorithmic Architecture Dominates Raw Compilation: Traditional monitors often suffer from memory growth proportional to the total signal length ($O(n)$). SENTIL’s streaming architecture ensures memory usage remains bounded and proportional only to the maximum temporal window ($O(T)$), preventing memory leaks during long-running monitoring sessions.
- Deterministic Monitors Miss Probabilistic Risks: During the CARLA autonomous driving case study, deterministic monitors reported perfect safety compliance. However, SENTIL flagged a critical safety violation: pedestrian trajectory uncertainty had caused the probability of remaining collision-free to drop to 94% (violating the 99% threshold), successfully triggering a proactive vehicle intervention.
- Edge-Computing Probabilities is Feasible: Statistical verification is traditionally computationally heavy, often relegated to offline cluster computing. SENTIL proves that with optimized algorithms, rigorous statistical model checking can run on low-power commodity hardware at the edge.
Key Results
- Throughput Improvements: SENTIL achieved a 14–31× speedup over RTAMT on discrete-time STL monitoring and a massive 383× speedup on dense-time piecewise-linear signals.
- Statistical Model Checking Supremacy: SENTIL completed verification 150–3000× faster than UPPAAL-SMC across the benchmark suite. For the Biodiesel Process, SENTIL's GPU execution took just 0.29 seconds compared to UPPAAL-SMC's 854.12 seconds.
- Rare Event Acceleration: For collision avoidance scenarios with a minute failure probability ($10^{-7}$), SENTIL’s GPU-accelerated importance splitting completed verification in 8.3 seconds, representing a 506× speedup over CPU-based Monte Carlo.
- Physical Embedded Deployment: Deployed on a $55 Raspberry Pi 4 inside a physical vehicle, SENTIL successfully monitored 60 safety specifications simultaneously at 85 Hz over a 120-minute drive with zero deadline violations and a tiny, stable memory footprint of 12.3 MB.
Limitations and Future Work
While SENTIL delivers groundbreaking performance, the authors note that moving from a research tool to commercial deployment requires aligning with strict, domain-specific industrial safety standards. Future work will focus on tailoring SENTIL to meet the rigorous certification requirements of frameworks like ISO 26262 for autonomous vehicles, aerospace certification standards (DO-178C), and FDA compliance pathways for medical devices.
Summary updated