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.
On this pageTwo weekends plus the IRB
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. Related: P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller., N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right., Error-related negativity (ERN)Error-related negativity (ERN) A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice., Trial averagingTrial averaging Adding many time-locked epochs together so the consistent response grows and the random noise shrinks by the square root of the number of trials.. 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 P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. Related: Event-related potential (ERP)Event-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., Oddball paradigmOddball paradigm An experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300.. Glossary entry to a rare target, the N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. Related: Event-related potential (ERP)Event-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 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. Related: Event-related potential (ERP)Event-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 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
P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. Related: Event-related potential (ERP)Event-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. , Oddball paradigmOddball paradigm An experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300. . Glossary entry, 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 paradigm An experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300. Related: P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller.. Glossary entry is the fruit fly of ERPEvent-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. Related: P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. , N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. , Error-related negativity (ERN)Error-related negativity (ERN) A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice. , Trial averagingTrial averaging Adding many time-locked epochs together so the consistent response grows and the random noise shrinks by the square root of the number of trials. . Glossary entry research.
N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. Related: Event-related potential (ERP)Event-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, 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 ERPEvent-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. Related: P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. , N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. , Error-related negativity (ERN)Error-related negativity (ERN) A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice. , Trial averagingTrial averaging Adding many time-locked epochs together so the consistent response grows and the random noise shrinks by the square root of the number of trials. . Glossary entry there is, and it says something about a brain region specialized for faces.
ERNError-related negativity (ERN) A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice. Related: Event-related potential (ERP)Event-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, 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 LSLLab Streaming Layer (LSL) A protocol that timestamps and synchronizes streams from many devices and stimulus programs on a network; every BCI lab uses it. Related: PsychoPyPsychoPy Free Python software for presenting stimuli with precise timing and logging responses. , BrainFlowBrainFlow A library that talks to OpenBCI and most consumer EEG headsets with one API, in Python and other languages. . Glossary entry at the flip. Photodiode check of screen delay once. Blink breaks every forty trials. A fixation cross. Baseline correctionBaseline correction Subtracting the mean of the pre-stimulus interval from each epoch so trials line up. Related: EpochEpoch A fixed-length slice of the recording locked to an event, such as one second starting 200 milliseconds before each stimulus. . Glossary entry from −200 to 0 ms. Rejection rule (say, ±100 µV) fixed before looking. FilterFilter An operation that passes some frequencies and attenuates others; every filter also delays or distorts the timing of what it passes. Related: High-pass filterHigh-pass filter Removes slow drifts and DC offsets, passing everything above a cutoff; set it too high and you erase slow brain activity. , Low-pass filterLow-pass filter Removes fast content above a cutoff; the anti-alias filter is one, and so is the smoothing you apply to a noisy trace. , Notch filterNotch filter A very narrow filter that removes one frequency, usually 60 Hz mains hum; it also rings and distorts nearby content, so fix the hum at the source first. , Phase distortionPhase distortion Different frequencies being delayed by different amounts, which smears and shifts waveforms such as an ERP peak. . Glossary entry 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 P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. Related: Event-related potential (ERP)Event-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. , Oddball paradigmOddball paradigm An experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300. . Glossary entry) 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 EEGElectroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. Related: Electrocorticography (ECoG)Electrocorticography (ECoG) Recording from electrodes placed on the surface of the brain under the skull, usually during epilepsy surgery evaluation; cleaner and sharper than EEG. , Magnetoencephalography (MEG)Magnetoencephalography (MEG) Recording the tiny magnetic fields produced by cortical currents with superconducting sensors in a shielded room; less blurred by the skull than EEG, and far more expensive. , Volume conductionVolume conduction The spreading of currents from a source through the conductive tissues of the head, which is why one source shows up on many electrodes and why scalp EEG is blurry. , Microvolt (µV)Microvolt (µV) One millionth of a volt. Scalp EEG is tens of microvolts; a AA battery is 1.5 million of them. . Glossary entry protocol. Read it. Practice the consent script out loud.
- Implement the oddball in PsychoPyPsychoPy Free Python software for presenting stimuli with precise timing and logging responses. Related: Lab Streaming Layer (LSL)Lab Streaming Layer (LSL) A protocol that timestamps and synchronizes streams from many devices and stimulus programs on a network; every BCI lab uses it. . Glossary entry with LSLLab Streaming Layer (LSL) A protocol that timestamps and synchronizes streams from many devices and stimulus programs on a network; every BCI lab uses it. Related: PsychoPyPsychoPy Free Python software for presenting stimuli with precise timing and logging responses. , BrainFlowBrainFlow A library that talks to OpenBCI and most consumer EEG headsets with one API, in Python and other languages. . Glossary entry markers. Pilot on yourself. Confirm a P300P300 A positive bump about 300 milliseconds after a rare or meaningful stimulus, the basis of the classic BCI speller. Related: Event-related potential (ERP)Event-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. , Oddball paradigmOddball paradigm An experiment in which a rare target is mixed in among frequent standards; the rare one produces a P300. . Glossary entry.
- 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 N170N170 A negative deflection about 170 milliseconds after seeing a face, over the back of the head on the right. Related: Event-related potential (ERP)Event-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 and ERNError-related negativity (ERN) A sharp negative wave about 50 to 100 milliseconds after you make a mistake, before you consciously notice. Related: Event-related potential (ERP)Event-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.
- Write a two-page report in the format of a methods and results section. Include the rejection counts.