Inter Subject Correlation in EEG

This is matlab code to compute intersubject correlation (ISC) in EEG using correlated component analysis, as described in the references below (description closest to the present code is in Cohen et al, 2016).

isceeg.m -- main code, keeping clutter to a minimum.

You will need these files to run this code:
topoplot.m -- stand-alone version of EEGlab's popular display function (does not require EEGlab).
BioSemi64.loc -- BioSemi location file for topoplot
notBoxPlot.m -- stand-alone version of Rob Campbell's scatter plot (does not require suplementary functions)
EEGVolume.mat -- Samantha Cohen's EEG data with 64 electrodes from 18 subjects while watching this video.

Other ISC files:
preprocessEEG_RPCA.m -- EEG preprocessing routine utilizing RPCA
multiStimISC.m -- ISC routine that can be run on multiple stimuli simultaneously

Find papers here.

  1. Samantha S. Cohen, Lucas C. Parra, Memorable audiovisual narratives synchronize sensory and supramodal neural responses, eNeuro, 3(6), November 2016. Full text,
  2. Agustin Petroni, Samantha Cohen, Nicolas Langer, Simon Henin, Tamara Vanderwal, Michael P. Milham, Lucas C. Parra, Children, particularly males, exhibit higher intersubject correlation of neural responses to natural stimuli than adults", in review. preprint
  3. Andreas Trier Poulsen, Simon Kamronn, Jacek Dmochowski, Lucas C. Parra, Lars Kai Hansen, Measuring engagement in a classroom: Synchronised neural recordings during a video presentation. in review. preprint
  4. Jason Ki, Simon Kelly, Lucas C. Parra, Attention strongly modulates reliability of neural responses to naturalistic narrative stimuli. Journal of Neuroscience, 36 (10), 3092-3101.
  5. Jacek P. Dmochowski, Matthew A. Bezdek, Brian P. Abelson, John S. Johnson, Eric H. Schumacher, Lucas C. Parra, Audience preferences are predicted by temporal reliability of neural processing, Nature Communication, 5567, July 2014.
  6. Jacek P. Dmochowski, Paul Sajda, Joao Dias, Lucas C. Parra, Components of ongoing EEG with high correlation point to emotionally-laden attention -- a possible marker of engagement?, Frontiers in Human Neuroscience, 6:112, April 2012.