Decentralized Predicate Detection Over Partially Synchronous Continuous-Time Signals

Charles Koll, Anik Momtaz, Borzoo Bonakdarpour, Houssam Abbas

Introduction

In the rapidly evolving landscape of distributed cyber-physical systems (CPS)—such as autonomous drone swarms or networked industrial robotics—ensuring global safety is paramount. A critical challenge in these systems is "predicate detection": the ability to monitor whether a specific condition (e.g., "no two agents are within a hazardous distance") is violated across the entire network. This task is complicated by the inherent nature of CPS: agents operate in continuous time, possess only local knowledge, and rely on local clocks that inevitably drift.

This paper presents the first decentralized algorithm designed to detect safety violations in such environments. By introducing "Physical Vector Clocks" (PVCs) and leveraging the mathematical properties of "extremal cuts," the proposed method provides a computationally efficient way to monitor continuous-time signals under partial synchrony.

The Challenge of Distributed Monitoring

Monitoring global safety properties in a decentralized CPS is hindered by three primary factors:

  1. Lack of Global Knowledge: Each agent observes only its own state. Without a central observer, agents must communicate to reconstruct the global state.
  2. Clock Drift and Partial Synchrony: There is no universal clock. Local clocks drift, meaning agents cannot perfectly agree on when an event occurred. We can only guarantee simultaneity if local timestamps fall within a known bound $\epsilon$.
  3. Continuous-Time Signals: Unlike discrete computer systems, CPS signals are continuous. A safety violation could occur at an infinite number of points in time, making it impossible to enumerate every failure.

Existing approaches often rely on centralized monitors, which create single points of failure, or are limited to discrete-time systems that do not capture the nuances of physical signals.

Methodology: Abstractors and Slicers

The proposed decentralized architecture runs two concurrent processes on each agent: the Abstractor and the Slicer.

The Abstractor and Physical Vector Clocks (PVCs)

The Abstractor converts continuous-time signals into a discrete stream of "root" events—points where the signal crosses a threshold or changes sign. To manage the lack of a global clock, the authors introduce Physical Vector Clocks (PVCs). While traditional vector clocks track logical ordering in discrete message-passing systems, PVCs generalize this to continuous time. They allow agents to establish a "happened-before" relationship that accounts for both physical timing and the maximum clock skew ($\epsilon$).

The Slicer and Extremal Cuts

The Slicer receives these discrete events and identifies "satisfying cuts"—sets of timestamps across all agents that indicate a predicate violation. To address the problem of uncountable violations in continuous time, the algorithm identifies extremal cuts (leftmost and rightmost).

The authors prove that the set of all satisfying cuts forms a mathematical lattice. Because of this structure, the entire interval of a violation can be represented by its boundaries. Any time point between the leftmost and rightmost cuts is guaranteed to be a violation, allowing a finite representation of an infinite set of failure points.

Experimental Evaluation

The researchers evaluated the detector using both synthetic data and realistic simulations:

  • Synthetic Signals: By varying the "root rates" (frequency of threshold crossings), the team tested the algorithm's scaling limits.
  • UAV Simulation: Using the Fly-by-Logic toolbox, the team monitored trajectories of up to six drones. They tested a height predicate: "All UAVs are at a height of at least 10m simultaneously."

Key Results

  • Efficiency: The algorithm's time complexity is $O(2RN)$ per agent (where $R$ is the number of roots and $N$ is the number of agents), matching the complexity of detectors for simpler discrete systems.
  • Real-Time Capability: In UAV simulations, the detector processed 6 seconds of flight data in under 0.4 seconds, demonstrating its suitability for live monitoring.
  • Scalability: Runtime scales linearly with the event rate and the number of agents, suggesting it can handle complex, high-frequency distributed systems.
  • Completeness: The authors mathematically proved that the slicer identifies all extremal cuts, ensuring no violation is missed due to clock drift.

Conclusion and Future Work

This research provides a robust framework for decentralized safety monitoring in CPS. By bridging the gap between physical time and logical ordering via PVCs, the algorithm ensures safety guarantees even with drifting clocks.

However, some limitations remain. The current implementation supports only "conjunctive" predicates (simple logical AND conditions) and does not yet handle complex temporal logic. Additionally, the model assumes reliable FIFO communication and a static bound on clock skew. Future research will focus on extending the logic to more complex formulas and addressing potential message loss in wireless environments.

Summary updated

BibTeX
@inproceedings{koll2023decentralized,
  author = {Charles Koll and Anik Momtaz and Borzoo Bonakdarpour and Houssam Abbas},
  title = {{Decentralized Predicate Detection Over Partially Synchronous Continuous-Time Signals}},
  booktitle = {RV},
  year = {2023},
  doi = {10.1007/978-3-031-44267-4\_11},
}
Figure