Skip to content

Methodology

Multimodal synchronization: aligning EEG, gaze and GSR

Clocks, Lab Streaming Layer, triggers and display latency: how to synchronize biosensors and verify it with a photodiode before a study.

Databrain Nov 23, 2026 7 min read

Multimodal synchronization: aligning EEG, gaze and GSR

A biosensor study records several signals at once: brain activity with EEG, gaze with eye tracking, electrodermal response with GSR, heart activity with ECG and facial expressions with a camera. The hard part is integration: every device has its own clock, its own sampling rate and its own internal delay. Left uncorrected, those differences make the analysis attribute a response to the wrong stimulus or wash out a real effect. Multimodal synchronization is the set of technical decisions that lets you state that second 12.350 in the EEG and second 12.350 in the gaze data describe the same instant.

Why is integration the hard part?

In neuromarketing, the value of combining sensors lies in reading them together: gaze shows where attention was, EEG shows how that moment was processed, and GSR shows whether there was arousal. That combined reading only holds when every signal shares one timeline.

The problem has three layers. First, the clock: every computer and amplifier keeps time with its own oscillator, which starts at a different value and ticks at a slightly different rate. Second, latency: the time a sample takes to travel from the sensor to the file. Third, jitter: the variability of that latency from one sample to the next.

Event-related potentials in EEG unfold over tens of milliseconds, and a synchronization error of that size is enough to shift or flatten a component.

Evidence

Iwama and colleagues (2024) define jitter as the timing variability with which a computer receives signals, and latency as the absolute time samples take to arrive. Their simulation shows that millisecond-order jitter already lowers the signal-to-noise ratio of the electrophysiological response. Neuroscience Research, 2024.

How does Lab Streaming Layer work?

Lab Streaming Layer (LSL) is an open-source software framework started in 2012 at the Swartz Center for Computational Neuroscience, UC San Diego, and now one of the main synchronization platforms for multimodal recording. Each device publishes its signal as a stream on the local network, and every sample carries a timestamp. A central recorder receives all streams and stores them in a single XDF file.

Clock offset

To bring every timestamp onto a common reference, LSL estimates the offset between each sender's clock and the recorder's clock through an NTP-style packet exchange: it sends a query, receives the reply, subtracts the round-trip time and keeps the estimate with the shortest network delay, which is the most reliable one.

Clock drift

No two oscillators tick at exactly the same rate. The offset is therefore re-measured periodically throughout the session, and the accumulated difference, the drift, is corrected during analysis.

Evidence

Kothe and colleagues (2025), the authors of LSL, describe its architecture and performance: the ecosystem supports more than 150 device classes and reaches sub-millisecond jitter on consumer-grade laptops with default settings. They also warn that LSL cannot measure or correct the internal delays of each device. Imaging Neuroscience, 2025.

Hardware or software triggers?

A trigger, or event marker, records the moment something happened: a stimulus onset, a response, a scene change.

In practice, labs combine both. Kothe and colleagues recommend measuring the on-device delay of every acquisition stream at least once, for instance by sending the same pulse from a microcontroller to LSL and to the instrument and averaging the difference between both markers. That value is then subtracted from every event in the stream.

When does the stimulus actually appear on screen?

The command to draw a stimulus and the moment the image appears on the monitor are two different events. Between them sit the refresh cycle, the monitor's internal processing and the graphics card. On a given setup that display latency is constant, so it can be measured and corrected.

Evidence

Bridges, Pitiot, MacAskill and Peirce (2020) measured the timing of ten stimulus presentation packages across more than 110,000 trials. In the lab, the best performers achieved mean precision under 1 ms; in browsers there was more variability, and audio-visual synchrony was the least precise aspect. PeerJ, 2020.

The size of the delay depends heavily on the hardware. Swami and colleagues (2023) synchronized EEG, EMG, photoplethysmography, motion capture and a photodiode with a virtual reality platform, and measured an average latency of about 122 ms between trigger and image on an LED screen, and 70 to 83 ms on a VR headset (Frontiers in Human Neuroscience, 2023). Those figures belong to their setup; the general lesson is that every lab needs to measure its own.

How do you verify synchronization with a photodiode?

A photodiode is a light sensor attached to a corner of the screen that records the exact instant the brightness changes. The test takes four steps:

  1. Flag the onset on screen. The presentation program draws a small square that switches from black to white on the same frame each stimulus appears.
  2. Record the photodiode as one more channel. The signal enters the amplifier through an auxiliary input, on the same clock as the EEG.
  3. Compare marker and light over many trials. The mean difference is the latency to correct; its spread is the remaining jitter.
  4. Repeat after every configuration change. A different monitor, an operating system update or a new graphics card changes the latency.

For input latencies, such as a button box or a touchscreen, Kothe and colleagues also suggest high-frame-rate cameras.

How do you align signals with different sampling rates?

EEG is usually sampled at hundreds of samples per second, eye tracking at tens or hundreds depending on the device, and the facial coding camera at its frame rate. There are two strategies for analyzing them together:

One technical detail deserves attention: when importing XDF files, tools can linearly smooth timestamps to remove jitter. Kothe and colleagues warn that if a device's effective sampling rate differs from its nominal rate, this smoothing can severely distort the data, and they recommend turning it off in those cases.

It also helps to separate technical latency from physiological latency. Every bodily response has its own reaction time to a stimulus, and that delay is part of the phenomenon under study. Synchronization removes the technical latency so the physiological one can be measured precisely.

How does this play out in a real study?

In Neurolab studies, every sensor, from EEG to eye tracking, GSR, ECG and facial coding, publishes its signal over LSL and is recorded on a shared timeline together with the marker for each stimulus. That foundation shows whether an electrodermal response coincides with gaze on the product or with the moment the price appears.

For a research team, the minimum pre-study checklist is short: confirm that every stream reaches the recorder, measure display latency with a photodiode, measure each device's internal delay, and document the setup so it can be reproduced.

If your team is planning a multimodal study and wants to review its synchronization design, book a meeting with our team.

Contact

Let science make your advertising work harder.

Fill in the form and one of our specialists will get in touch to show you how Databrain can transform your advertising.

Thanks for reaching out!

We will be in touch shortly to arrange a personalized demo.