A Pipeline for fNIRS Data Analysis in Naturalistic Paradigms

MATLAB analysis code for preprocessing and quality control of fNIRS data from naturalistic and hyperscanning experiments (the analysis pipeline used in the associated study). It (1) estimates heart rate from raw fNIRS and validates it against ECG; (2) provides a cardiac signal-to-noise-ratio (SNR) framework to objectively evaluate and optimize preprocessing pipelines, benchmarking seven motion-correction schemes and the global-PCA threshold; and (3) compares interpersonal neural synchronization across preprocessing schemes using wavelet transform coherence (WTC), with two parallel WTC analyses — a main analysis and a 0.1-Hz notch-filtered control analysis.

Execution Options

Download Now:
Download

Specifications

License:
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Development Status:
Domain:
Programming Language: