PR07 - Biopac NK Synchronisation Analysis

Problem

While collected in parallel, offline analysis required matching timestamps. A TTL pulse was sent to both systems, and used to align data streams

This page demonstrates the synchronisation process between Biopac and NK (iEEG) data streams.

1. Pre-Synchronisation Timeline

Original Timeline - Before Synchronisation Correction

What you're seeing: The pre-sync timeline reveals the complexity of the PR07 dataset with extensive recording sessions across multiple days. The TTL markers show significant temporal drift that accumulates over the recording period.

Key observations:

2. Discrepancy Analysis

Discrepancy Analysis

Synchronisation Methodology

To quantify the synchronisation problem, we analysed the time discrepancies between TTL pulses in both systems:

  1. TTL Extraction: Extract TTL timestamps from both BioPac and iEEG systems
  2. Discrepancy Calculation: discrepancy = nk_timestamp - bp_timestamp across all files
  3. Linear Regression: offset = m × time_since_start + b
  4. Offset Correction: Apply calculated offset correction to Biopac timestamps per file
Discrepancy Regression

3. Post-Synchronisation Timeline

Corrected Timeline - After Advanced Synchronisation Correction

What changed: TThe post-sync timeline shows the same data with corrected Biopac timestamps. The TTL markers from both systems now align much more closely, all within 1 second of each other. across the entire multi-day recording period.