Abstract
From biological systems to cyber-physical systems, monitoring the behavior of such dynamical systems often requires to reason about complex spatio-temporal properties of physical and/or computational entities that are dynamically interconnected and arranged in a particular spatial configuration. Spatio-Temporal Reach and Escape Logic (STREL) is a recent logic-based formal language designed to specify and to reason about spatio-temporal properties. STREL considers each system's entity as a node of a dynamic weighted graph representing their spatial arrangement. Each node generates a set of mixed-analog signals describing the evolution over time of computational and physical quantities characterising the node's behavior. While there are offline algorithms available for monitoring STREL specifications over logged simulation traces, here we investigate for the first time an online algorithm enabling the runtime verification during the system's execution or simulation. Our approach extends the original framework by considering imprecise signals and by enhancing the logics' semantics with the possibility to express partial guarantees about the conformance of the system's behavior with its specification. Finally, we demonstrate our approach in a real-world environmental monitoring case study.
Introduction
As we move toward a world of Collective Adaptive Systems (like fleets of autonomous drones) and Cyber-Physical Systems (like smart power grids), ensuring correct behavior is paramount. Monitoring these systems is inherently difficult because they are distributed in space and evolve dynamically over time.
Existing verification tools often face two major hurdles:
- Offline Analysis: Most tools analyze data logs after a system run, which is insufficient for safety-critical applications requiring immediate intervention.
- Data Imperfection: Real-world sensors are noisy, prone to failure, and often deliver data packets out of chronological order.
This paper addresses these challenges by introducing the first online monitoring algorithm for Spatio-Temporal Reach and Escape Logic (STREL), explicitly designed to handle the uncertainty and imprecision inherent in real-world data.
Methodology
The proposed solution builds upon STREL, representing systems as dynamic graphs where nodes generate signals. The core innovation lies in the transition from point-based to interval-based semantics.
Interval Semantics and Imprecise Signals
Instead of calculating a single robustness value, the monitor computes an interval $[lower, upper]$. If the entire interval is above zero, the property is satisfied; if below, it is violated. If zero falls within the interval, the monitor reports the status as "unknown," providing a honest assessment of system safety based on available data.
The Ripple Effect Algorithm
To ensure efficiency, the algorithm utilizes a "ripple effect" approach. Rather than recomputing the entire logic formula when new data arrives, it identifies the specific temporal and spatial windows affected by the update and only refreshes those segments. This allows the monitor to handle out-of-order data processing and refinements as more precise information becomes available.
Experimental Evaluation
The approach was evaluated across three scenarios: air pollution monitoring in Lombardy, Italy; an Abstract Fuel Control (AFC) benchmark; and a ZigBee protocol simulation.
Real-World Case Study: Air Pollution
Using data from over 80 sensor stations measuring Nitrogen Dioxide ($NO_2$), the researchers demonstrated how the tool handles missing sensor readings. By leveraging spatial context, the monitor can sometimes determine if a pollution threshold was exceeded even when a specific local sensor fails, by analyzing data from neighboring nodes.
Performance Results
- Speed: In the AFC benchmark, the implementation was nearly 120x faster than the state-of-the-art Breach tool (0.113s vs 13.730s for 10,000 samples).
- Real-Time Capability: The monitor processed 10,000 samples in approximately 45 seconds even with extreme out-of-order data arrival, averaging ~4.5ms per sample—well within the requirements for typical 100ms real-time sampling rates.
- Parallelism: The system showed significant performance gains when spatial nodes were processed in parallel across multiple CPU cores.
Conclusion and Future Work
This work demonstrates that online spatio-temporal monitoring is computationally viable even under conditions of data uncertainty. While the current model assumes a "space-synchronization" hypothesis (synchronized time intervals across locations), future research will focus on relaxing this requirement for heterogeneous networks. Additionally, the authors plan to incorporate error correction mechanisms for retracting incorrect sensor values and explore hardware acceleration via FPGAs to further enhance real-time performance.
Summary updated