↑↓ move↵ open[] previous / next lesson? all shortcuts
Appearance
Theme
Type size
Reading

Focus mode hides the sidebars. Press f to toggle it anywhere.

Keyboard shortcuts
/
Search
[ ]
Previous / next lesson
t
Jump to the table of contents
r
Review queue
f
Focus mode
?
This panel
ProjectTwo weekends plus the IRB$0 beyond the amplifierTier 2Needs a lab

Project D: Your own ERPs

P300, the face-sensitive N170, and the error-related negativity, recorded from friends under a lab's protocol with PsychoPy and LSL. Learning to run a clean human experiment is a skill most engineers never acquire.

AssumesLab Streaming Layer and PsychoPyDesigning an experiment that can failSpineDecoding / signal processing / MLClinical / regulatory / human factors
On this pageTwo weekends plus the IRB
  1. Three experiments
  2. Doing it cleanly
  3. Analysis

An is the brain’s stereotyped electrical response to an event, invisible in one trial and clear after averaging fifty. Three classic ones, each a fifteen-minute experiment: the to a rare target, the to a face, and the when you press the wrong button. Recording them on other people, under a real protocol, with consent, triggers, and a saved dataset, is the experience that turns an engineer who can build an amplifier into one who can be trusted with participants.

How the ERP emergesSimulated signal
This interactive needs JavaScript. If you are reading a printout, the caption describes what it shows.
Figure 1. The averaging principle again. Every ERP experiment is this figure, with a different stimulus.

Three experiments

, oddball. A stream of tones or shapes, 80 percent one kind, 20 percent another. The participant counts the rare ones. Two hundred trials, ten minutes. Average rare versus frequent at Pz: a positive peak of 5 to 15 µV at 300 to 400 ms for the rare ones. The is the fruit fly of research.

, faces. Grayscale photographs of faces and of houses, matched for size and contrast, each shown for 300 ms, participant presses a key for an occasional target. Sixty of each. Average faces versus houses at P8 (right, back, low): a negative peak around 170 ms, larger for faces by a few microvolts. The most robust cognitive there is, and it says something about a brain region specialized for faces.

, flanker task. Arrows: press left for a left-pointing centre arrow surrounded by distractors. Fast responses, forced errors. On error trials, average time-locked to the button press at FCz: a sharp negative wave at 50 to 100 ms after the press, before the person consciously knows they erred. You need enough errors, so push for speed.

Doing it cleanly

Fixed trial timing with jittered inter-stimulus intervals, so nothing periodic lines up with the heartbeat or alpha. Markers via at the flip. Photodiode check of screen delay once. Blink breaks every forty trials. A fixation cross. from −200 to 0 ms. Rejection rule (say, ±100 µV) fixed before looking. 0.1 to 30 Hz, continuous, zero-phase, before epoching. At least sixteen participants for anything you would present; three for learning.

Analysis

Mean amplitude in a window (for example 300 to 500 ms for ) is more robust than peak amplitude. Compare conditions with a paired test across participants, not across trials. For the whole-waveform question “where do the conditions differ,” use cluster-based permutation, which the statistics explainer covers.

  1. Get added to your lab’s protocol. Read it. Practice the consent script out loud.
  2. Implement the oddball in with markers. Pilot on yourself. Confirm a .
  3. Run three participants. Save data with participant codes, not names, and the consent forms in the locked place the protocol specifies.
  4. Analyze: grand-average waveforms at Pz with both conditions, shaded standard error, and the mean-amplitude comparison.
  5. Repeat for and .
  6. Write a two-page report in the format of a methods and results section. Include the rejection counts.
Recall
Why must trial timing be jittered?
So that nothing periodic in the recording (heartbeat, alpha, hum) lines up consistently with the stimulus and survives averaging as a fake component.
Recall
Why compare conditions across participants rather than across trials?
Trials within one person are not independent samples of the population; the question is whether the effect holds across people. A paired test across participants answers it.
Recall
Why is mean amplitude in a window preferred to peak amplitude?
Peaks are biased upward by noise (the maximum of noisy data is always high) and depend on the number of trials; the mean over a window is unbiased and stable.