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

AEGIS: Assay-Aware Protocol Validation and Runtime Monitoring for Open-Source Liquid Handling Robots

Priyanka V. Setty, Arvind Ramanathan, Ian Foster, Rick StevensarXiv 2026

TL;DR

AEGIS is an open-source "guardian" system that prevents silent failures in self-driving laboratories by combining LLM-based code validation with real-time computer vision. It ensures that liquid-handling robots like the Opentrons OT-2 aren't just running their scripts, but are actually executing the intended biological experiments correctly.

What Problem Does This Paper Address?

In the world of autonomous "self-driving" labs, liquid-handling robots are the workhorses. However, low-cost platforms like the Opentrons OT-2 operate "open-loop"—they lack the internal pressure sensors found in $100k+ industrial systems. This leads to two types of silent failures:

  1. Assay-level errors: The Python code is syntactically perfect, but biologically disastrous (e.g., reusing a pipette tip between a PCR template and a negative control, causing cross-contamination).
  2. Physical execution failures: The robot misses a tip, draws an air bubble, or fails to dispense liquid. The robot's logs will say "Task Complete," but the resulting data is corrupted.
AEGIS guards against two silent failure modes: assay-level errors in code and physical execution failures.

Methods

AEGIS (Automated Experiment Guardian and Inspection System) uses a two-layer approach to close these gaps:

  • Layer 1: Pre-flight Validation. Before a run starts, AEGIS reads the protocol's Python source code. It uses a hybrid approach: a curated JSON database of 22 assay-specific rules (like "fresh tips for PCR") paired with a Large Language Model (LLM). The LLM acts as the "reasoner," figuring out how to apply these rules to the specific logic of the code.
  • Layer 2: Runtime Monitoring. During the run, a standard USB webcam watches the pipette.
  • Detection: A fine-tuned YOLOv8-nano model localizes the pipette tip in real-time.
  • Triage: A Principal Component Analysis (PCA) "world model," trained only on normal trajectories, scores the visual path of each well (aspirate, transit, dispense, post-dispense).
  • Decision: If the PCA score is anomalous, the frames are sent to a Vision-Language Model (VLM) like Claude 3.5 Opus. The VLM uses a "self-vote" prompt (acting as three different experts) to decide whether to pause the robot.
The two-layer AEGIS architecture: Layer 1 validates code pre-flight, while Layer 2 monitors the run via camera.

Datasets

The authors introduced several new benchmarks to evaluate the system:

  • Protocol Benchmark: 24 OT-2 Python protocols spanning five assay families (PCR, Bradford, serial dilution, etc.). 11 are "correct" tutorials, and 13 have injected assay-level bugs.
  • Trajectory Dataset: 128 labeled samples across three reagent contrasts (red dye, yellow dye, and water) and three physical failure types (partial dispense, no aspirate, no tip).
  • Rule Database: A machine-readable JSON schema containing 22 assay-specific invariants.

Key Insights and Ideas

  • LLMs need a "scaffold": Running an LLM alone on code leads to high false-positive rates (it flags everything as suspicious). Providing a structured rule database acts as a "precision contract," allowing even smaller models to perform at frontier levels.
  • Open-weight models are viable: The authors found that the open-weight NVIDIA Nemotron-3 Ultra tied the best proprietary models (GPT-4o, Claude Opus) for code validation, meaning labs don't need to rely on expensive, paid APIs.
  • The "Cascade" Design: By using PCA for fast, cheap triage and only calling the expensive VLM for "gray zone" cases, AEGIS reduces monitoring costs from ~$10.33 per plate to just ~$1.63.
  • PCA beats Deep Learning for small data: On a small dataset of 26 "normal" runs, linear PCA outperformed complex autoencoders, which tended to overfit and "reconstruct" failures as if they were normal.
The Layer 2 live cascade uses PCA for fast triage and a VLM for the final pause decision.

Key Results

  • Layer 1 (Code): Reached an adjusted F1 score of 0.97 on the 24-protocol benchmark. It achieved 100% recall on all injected bugs.
  • Layer 2 (Vision): In offline testing, it reached an Average Precision of 0.89 and an F1 of 0.71.
  • Live Demonstration: On a physical OT-2, the system caught "no-tip" failures 100% of the time and "partial dispense" failures on colored dyes 100% of the time when using the "always-VLM" mode.
  • Latency: The system can halt the robot at the next protocol boundary with an effective latency of approximately 13.27 seconds.
Comparison of Layer 1 performance across different LLM backends, showing the strength of the hybrid rules+LLM approach.

Limitations and Future Work

  • The "Water" Problem: Transparent liquids in transparent tips are nearly invisible to a side-view camera. AEGIS correctly identified its own uncertainty here rather than guessing, but a top-down "Layer 3" audit is suggested as a fix.
  • Resolution Limits: The system struggles with very small volumes (p20 pipettes) because the consumer-grade webcam doesn't provide enough pixels on the tip to resolve the meniscus.
  • Closing the Loop: Currently, AEGIS pauses the robot and notifies a human. Future work aims for "autonomous correction," where the robot might automatically retry a failed dispense or swap a clogged tip without human intervention.

Summary updated

BibTeX
@misc{setty2026aegis,
  author = {Priyanka V. Setty and Arvind Ramanathan and Ian Foster and Rick Stevens},
  title = {{AEGIS: Assay-Aware Protocol Validation and Runtime Monitoring for Open-Source Liquid Handling Robots}},
  year = {2026},
  eprint = {2607.15620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.15620},
}
Figure