Assuring safety of vision-based swarm formation control

Chiao Hsieh, Yangge Li, Yubin Koh, Sayan Mitra · DOI

TL;DR

This paper provides a formal framework for ensuring the safety and convergence of drone swarms that rely solely on computer vision for formation control. By modeling vision-based perception errors as non-uniform "perception contracts" within a quantized consensus protocol, the authors prove that swarms can safely reach their target formations even under varying environmental conditions like fog.

What Problem Does This Paper Address?

Vision-based swarm control is highly desirable for GPS-denied environments because it uses inexpensive, passive sensors (cameras). However, computer vision pipelines are notoriously "fragile." Their accuracy isn't uniform; it depends heavily on the distance between agents, lighting, and weather.

In a swarm, these perception errors propagate. If one drone miscalculates its neighbor's position, it takes an incorrect control action, which then affects the next drone, potentially leading to collisions or a total failure to maintain formation. Until now, there has been a lack of formal, end-to-end methods to reason about the safety of these systems from the raw pixels all the way to the motor commands.

Methods

The authors bridge the gap between "messy" vision data and "clean" control theory using three main components:

  1. Vision Pipeline: Each drone uses a downward-facing camera to detect and match features (using algorithms like SIFT or ORB) with images shared by its neighbors to estimate relative positions.
  2. Perception Contracts (PC): Instead of assuming a constant error bound, the authors use the concept of a Perception Contract. This is a formal agreement that the vision system's error will stay within a specific bound that is a function of the drone's actual state (distance and angle).
  3. Log-Polar Quantization: To make the math work, they treat the vision system as a quantizer. They specifically use logarithmic polar coordinates because vision errors naturally scale with distance—the further away a neighbor is, the larger the absolute error in position estimation.
Fig. 2: Architecture of an agent in the vision-based formation control systems.

By building a controller based on this non-uniform quantization, they adapt existing "quantized consensus" algorithms to prove that the swarm will eventually stabilize at the desired formation.

Datasets

The researchers evaluated their approach using the AirSim photorealistic simulator. They collected a dataset of 10,000 sampled positions across three distinct environments:

  • LandscapeMountains
  • AirSimNH (a neighborhood)
  • ZhangJiajie

They specifically tested the system's robustness by introducing four levels of simulated fog (from 0 to 0.050) to see how it degraded feature matching and increased perception error.

Fig. 5: Matched feature points found by the feature detection and matching algorithm under three AirSim environments and four fog levels.

Key Insights and Ideas

  • Error is State-Dependent: A key "aha moment" is that vision error isn't just random noise; it's structured. As drones move further apart, the overlap in their camera views decreases, leading to fewer matched features and higher error.
  • Quantization as a Bridge: By viewing the vision system's output as a quantized value, the authors can use discrete control theory to handle continuous-space vision problems.
  • Natural Coordinates: Using log-polar coordinates is far more efficient than standard Cartesian (X, Y) coordinates for vision. It allows the "perception contract" to be tighter and more representative of how cameras actually fail.
Fig. 4: Perceived relative positions with respect to true relative position. Error increases with distance.

Key Results

  • Convergence Proof: The authors provide a formal proof (Theorem 1) that the swarm will converge to the target formation as long as the perception error stays within the bounds of the defined contract.
  • Safety Guarantees: Theorem 2 defines a "safe set" of initial conditions. If the drones start within this set, they are guaranteed to never get too close (collision) or too far (losing sight) from each other.
  • Environmental Adaptation: The study shows that as fog increases, the "step size" of the quantizer must increase to maintain the contract. In very thick fog (level 0.050), the system correctly identifies that the error is too high to guarantee safety, providing a formal way to define the operational limits of the swarm.

Limitations and Future Work

The current model makes a few simplifying assumptions:

  • Synchronicity: It assumes all drones capture images and exchange data instantly and simultaneously. In reality, network latency and staggered camera shutters would introduce additional errors.
  • Planar Formations: While the drones fly in 3D, the formation control is currently limited to 2D planes.
  • Data-Driven Contracts: The perception contracts are built empirically from simulation data. Future work could look into more robust ways to "learn" these contracts or adapt them online as environmental conditions change.

The authors suggest that this work opens a path toward connecting high-level discrete abstractions with low-level continuous control, a holy grail for formal verification in robotics.

Summary updated

Abstract

Vision-based formation control systems are attractive because they can use inexpensive sensors and can work in GPS-denied environments. The safety assurance for such systems is challenging: the vision component's accuracy depends on the environment in complicated ways, these errors propagate through the system and lead to incorrect control actions, and there exists no formal specification for end-to-end reasoning. We address this problem and propose a technique for safety assurance of vision-based formation control: First, we propose a scheme for constructing quantizers that are consistent with vision-based perception. Next, we show how the convergence analysis of a standard quantized consensus algorithm can be adapted for the constructed quantizers. We use the recently defined notion of perception contracts to create error bounds on the actual vision-based perception pipeline using sampled data from different ground truth states, environments, and weather conditions. Specifically, we use a quantizer in logarithmic polar coordinates, and we show that this quantizer is suitable for the constructed perception contracts for the vision-based position estimation, where the error worsens with respect to the absolute distance between agents. We build our formation control algorithm with this nonuniform quantizer, and we prove its convergence employing an existing result for quantized consensus.
BibTeX
@misc{hsieh2022assuring,
  author = {Chiao Hsieh and Yangge Li and Yubin Koh and Sayan Mitra},
  title = {{Assuring safety of vision-based swarm formation control}},
  year = {2022},
  eprint = {2210.00982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00982},
}
Figure