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.
You are skimming: the title, the first figure, and the short version. Switch to Read in the header for the full page, or Deep to open every deep dive.
An event-related potentialEvent-related potential (ERP)The small, stereotyped voltage waveform the brain produces in response to an event, invisible in a single trial and revealed by averaging many. Glossary entry 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 P300P300A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. Glossary entry to a rare target, the N170N170A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. Glossary entry to a face, and the error-related negativityError-related negativity (ERN)A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice. Glossary entry 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.
Three experiments
P300, 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 oddballOddball paradigmAn experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300. Glossary entry is the fruit fly of ERP research.
N170, 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 ERP there is, and it says something about a brain region specialized for faces.
ERN, 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 LSL at the flip. Photodiode check of screen delay once. Blink breaks every forty trials. A fixation cross. Baseline correction from −200 to 0 ms. Rejection rule (say, ±100 µV) fixed before looking. Filter 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 P300) 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.
- Get added to your lab’s EEG protocol. Read it. Practice the consent script out loud.
- Implement the oddball in PsychoPy with LSL markers. Pilot on yourself. Confirm a P300.
- Run three participants. Save data with participant codes, not names, and the consent forms in the locked place the protocol specifies.
- Analyze: grand-average waveforms at Pz with both conditions, shaded standard error, and the mean-amplitude comparison.
- Repeat for N170 and ERN.
- Write a two-page report in the format of a methods and results section. Include the rejection counts.