Skip to content
← All work

Engineering

Processing Video and Sensor Data

A real-time monitoring and orchestration platform for an autonomous chemistry laboratory: dozens of camera feeds and thousands of sensor readings per second, synchronized to the millisecond and shown as one operational view of a running synthesis.

An autonomous laboratory runs molecule synthesis with robotic arms, syringe pumps, liquid dispensers, reactors and analytical instruments. The people responsible for it need to see everything at once, in time, and to go back to any moment of an experiment when something deviates. The platform integrates live process data, multi-sensor telemetry and the video from cameras positioned across the lab into one interface, and keeps a complete, replayable record of every run.

What we built

  • An ingestion pipeline that processes dozens of simultaneous video streams alongside thousands of sensor readings per second.
  • A synchronization layer with the Precision Time Protocol (PTP) as the master clock. Instruments speak MQTT, OPC-UA, serial and custom APIs at rates from 1 Hz temperature readings to 10 kHz vibration sensors and 30 fps video. Each adapter applies its own latency correction from measured transport delays, and a time-ordered merge buffer interpolates sensor readings to video frame timestamps.
  • A contextual overlay system in two layers. The spatial layer uses camera calibration and 3D scene models to project sensor data onto the instrument it measures, and the reading follows the instrument if the camera moves. The temporal layer adds trend sparklines, threshold indicators and alerts that update live.
  • Priority-based rendering, because with dozens of sensors per view, showing everything shows nothing. The system surfaces the data that matters for the current experiment phase, the anomaly state and where the operator is looking, and users can pin overlays or save presets per experiment type.
  • Dynamic camera control with multi-view layouts and recording triggers driven by sensor thresholds.
  • An event correlation engine built on a causal graph of each experiment protocol. It knows that when a pump changes flow rate, a reactor's temperature should respond within a window with a predictable profile, and when it does not, it walks the graph upstream to find the cause.
  • A synchronized archive with replay, collaborative annotation, automated highlight detection and a searchable experiment history.
  • Audio as a sensor modality, with spectral analysis for early anomaly detection.

Design decisions

One clock for everything. Without a master clock and per-adapter latency correction, a pause on a video frame shows sensor values from a different moment. With PTP and the merge buffer, pausing at any frame shows the sensor state at that instant, with sub-millisecond accuracy for the measurements where it matters.

Project data onto the scene, not onto the screen. A temperature printed in a corner of a feed is a number. The same temperature anchored next to the reactor that produced it is information. The 3D scene model made the overlays spatial.

Correlate through the protocol's causality. Anomaly detection on isolated signals produces alerts nobody can act on. The causal graph turns a deviation into a timeline: which upstream dependency failed, and what the video shows at that moment, a disconnected tube, a clogged needle, a robot arm positioned wrong.

Build for the lab, not for the server room. Corrosive fumes and splashes meant IP67 enclosures with chemically resistant coatings for cameras and sensors, which changed thermal management and forced a redesign of the edge computing housings.

In use

A researcher pauses a run on the frame where a reactor's temperature left its profile and sees every upstream reading at that instant. The correlation engine shows the cascade that led there. A colleague reviewing the experiment the next day annotates the moment, and the annotation is searchable for the whole team. A recording trigger starts a high-resolution capture when a pressure sensor crosses its threshold, so the interesting seconds are never missed.

Where it fits

Automated laboratories, and any facility where instruments, robots and cameras produce data at different rates and someone has to understand a process in time: chemistry and materials labs, pilot plants, test benches.

What we learned

Researchers can hear trouble before they see it: a pump sounds different when it cavitates, a reactor sounds different when mixing is poor, which is why audio became a first-class sensor. Replay and annotation became the most used part of the system, because people spend more time reviewing past experiments than watching live ones. And the physical environment decides the hardware long before the software does.

Technology

Precision Time Protocol as the master clock. Adapters for MQTT, OPC-UA, serial links and custom instrument APIs. A time-ordered merge buffer with interpolation. Camera calibration and 3D scene models for spatial overlays. A causal graph for event correlation. Audio spectral analysis. IP67 edge enclosures. A synchronized archive with replay, annotation, highlight detection and search.

Production Notes

All notes