NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Logic for Monitoring Dynamic Networks of Spatially-distributed Cyber-Physical Systems

Ezio Bartocci, Luca Bortolussi, Laura Nenzi, Michele Loreti · DOI

Abstract

Cyber-Physical Systems (CPS) integrate computational and physical components that interact through sensors and actuators. These systems are often networked and dynamic, with nodes joining, leaving, or moving through space. Monitoring the spatio-temporal properties of such systems is crucial for understanding complex emergent behaviors. This paper revisits Spatio-Temporal Reach and Escape Logic (STREL), a formal language designed to monitor requirements over mobile and spatially distributed CPS. STREL treats physical space as a dynamic weighted graph, combining Signal Temporal Logic with spatial operators like reach and escape. We present qualitative and quantitative semantics based on constraint semirings and provide an offline monitoring algorithm, demonstrated through simulations of mobile ad-hoc networks and COVID-19 epidemic spreading.

Introduction: The Challenge of Dynamic Space

Cyber-Physical Systems—ranging from autonomous vehicle fleets to smart grids and mobile sensor networks—are increasingly pervasive. These systems are inherently "spatially distributed" and "dynamic," meaning their topology is constantly in flux as nodes move or change status.

Traditional verification methods like model checking often struggle with the "state-space explosion" inherent in these configurations. A more practical alternative is runtime monitoring, which checks specific execution traces against formal requirements. However, existing languages like Signal Temporal Logic (STL) excel at handling time but often lack the primitives to handle a shifting spatial "map." STREL bridges this gap by treating space as a dynamic, weighted graph where both nodes and edges can have time-evolving attributes.

Comparison of spatial modeling techniques: Voronoi diagrams/proximity graphs (left) versus connectivity graphs based on communication range (right).

The STREL Framework

The core of the STREL logic is its operation on a Dynamical Spatial Model. Unlike static grid-based approaches, STREL evaluates properties over a graph where connectivity and weights (such as distance or signal strength) change over time.

Spatial Operators

STREL introduces two fundamental spatial primitives:

  • Reach: Determines if a node can reach a target area (satisfying property B) by traveling through a region (satisfying property A) within a specific distance threshold.
  • Escape: Determines if a node can "escape" a region by following a path that remains within a distance threshold.

From these primitives, other essential spatial concepts such as everywhere, somewhere, and surround can be derived.

Constraint Semirings and Monitoring

By defining semantics using constraint semirings, STREL supports both Qualitative (Boolean: true/false) and Quantitative (Real-valued robustness) monitoring. This allows the logic to not only state if a property is satisfied but also how robustly it is satisfied (e.g., "how many meters am I from a violation?").

A weighted graph representation of a spatial model where nodes represent locations and edges represent connectivity with associated weights.

Evaluation and Case Studies

The framework was evaluated using two distinct simulations:

  1. ZigBee MANET (Mobile Ad-hoc Network): A simulation of mobile devices with varying roles (coordinator, router, end-device) and sensors tracking battery levels and environmental data.
  2. COVID-19 Epidemic Model: A simulation of 500 agents moving through contact networks. STREL successfully identified "dangerous days" where susceptible individuals were at high risk of infection based on their proximity to infected clusters.

Key Insights

  • Scalability: STREL is evaluated locally at each node, making it inherently scalable to large networks.
  • Geometric Invariance: In Euclidean spaces, STREL properties are invariant to rotation and translation, ensuring that a property holding for a group of moving agents remains valid if they move together.
  • Efficiency: The monitoring complexity is linear relative to formula size and signal length, and quadratic relative to the number of locations, proving feasible for practical applications.

Conclusion and Future Work

While the current offline monitoring algorithm demonstrates the power of STREL, future work focuses on online, distributed monitoring to allow nodes to check properties in real-time. Additionally, the authors aim to use STREL for controller synthesis, moving from simply monitoring failures to generating logic that prevents them, while improving the explainability of property violations in complex dynamic networks.

Summary updated

BibTeX
@article{bartocci2021logic,
  author = {Ezio Bartocci and Luca Bortolussi and Laura Nenzi and Michele Loreti},
  title = {{A Logic for Monitoring Dynamic Networks of Spatially-distributed Cyber-Physical Systems}},
  journal = {Log. Methods Comput. Sci.},
  year = {2021},
  doi = {10.46298/lmcs-18(1:4)2022},
}
Figure