Project C: Other windows on the brain
A DIY fNIRS prefrontal band, which is a pulse oximeter pointed at the cortex, and in-ear EEG on a custom earpiece, the frontier for sleep and consumer wearables. Two modalities almost nobody builds as a student.
On this pageA month each
Scalp 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 is one window. Two others are within reach of the Phase 2 bench and are far less crowded. Functional near-infrared spectroscopyFunctional near-infrared spectroscopy (fNIRS) Shining near-infrared light through the scalp and measuring how much comes back to estimate blood oxygenation in the cortex underneath; a pulse oximeter pointed at the brain. Related: Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity.. Glossary entry shines near-infrared light through the scalp and skull and measures how much comes back to estimate blood oxygenation in the cortex beneath: the same physics as a pulse oximeter, pointed at the brain. In-ear 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 puts electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry on a custom earpiece, out of sight and stable for sleep and everyday wear. Both have real research literatures and both are being commercialized now.
fNIRS measures a haemodynamic response. How long after neurons become active does the fNIRS signal peak?
Four to six seconds. Active neurons demand oxygen; blood flow increases with a delay of a few seconds, overshoots, and the oxygenated haemoglobin peaks around five seconds after the activity. fNIRSFunctional near-infrared spectroscopy (fNIRS) Shining near-infrared light through the scalp and measuring how much comes back to estimate blood oxygenation in the cortex underneath; a pulse oximeter pointed at the brain. Related: Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. . Glossary entry is therefore slow, like fMRI, and cannot see the millisecond events 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 sees. What it can see is sustained activation of a cortical region through hair-free skin, without electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry, in a moving person, which 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 does badly.
fNIRS
The physics. Oxygenated and deoxygenated haemoglobin absorb near-infrared light differently, and the difference flips around 800 nm. Two wavelengths, one either side (760 and 850 nm are standard), let you separate the two. A source LED and a detector photodiode three centimetres apart on the forehead: the light that reaches the detector has travelled a banana-shaped path through skin, skull, and the top millimetre or two of cortex. Changes in detected intensity over seconds, converted through the modified Beer-Lambert law, give changes in oxygenated and deoxygenated haemoglobin concentration.
The hardware. Two LEDs (760, 850 nm) and a photodiode with a transimpedance amplifier, time-multiplexed so the detector sees one wavelength at a time plus a dark period, sampled at 10 to 20 Hz. The MAX30101-class pulse oximeter chips do exactly this on one chip and can be pressed into fNIRSFunctional near-infrared spectroscopy (fNIRS) Shining near-infrared light through the scalp and measuring how much comes back to estimate blood oxygenation in the cortex underneath; a pulse oximeter pointed at the brain. Related: Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. . Glossary entry service for a first prototype; a discrete design with a bigger photodiode and a more sensitive front end does better. Mount on a headband with the optodes in a 3D-printed holder that presses gently and blocks room light.
The experiment. Mental arithmetic versus rest, twenty-second blocks, ten repetitions. Prefrontal cortex activates during the arithmetic. Average the blocks; you should see oxygenated haemoglobin rise and deoxygenated fall, peaking about five seconds in. The heartbeat will be visible in the raw signal, which is your confirmation that you are measuring blood. Motion is the enemy; the head must be still or the optode-skin coupling changes.
In-ear EEG
Why. The ear canal is close to the temporal lobe, stable, hidden, and comfortable for hours. In-ear 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 picks up alpha, sleep stages, auditory evoked responses, and some SSVEPSteady-state visual evoked potential (SSVEP) When you stare at something flickering at a fixed rate, visual cortex oscillates at that rate, and the frequency can be read straight out of the EEG spectrum. Related: Canonical correlation analysis (CCA)Canonical correlation analysis (CCA) Finding the combination of channels that correlates best with reference sinusoids at each candidate frequency; the standard SSVEP decoder. , Brain-computer interface (BCI)Brain-computer interface (BCI) A system that turns measured brain activity into control of something outside the body, from a cursor to a wheelchair to a speech synthesizer. . Glossary entry, with amplitudes a few times smaller than scalp electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry and a very different reference geometry. Several sleep-wearable companies and hearing aid manufacturers are building it.
The hardware. An ear impression (an audiologist can make one, or a hobby kit does an acceptable job), a soft earpiece cast or printed from it, and two or three electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry on its surface: silver-coated dry contacts, or conductive silicone pads, or Ag/AgClSilver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. Related: ElectrodeElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry dots with a trace of gel. Wires out to your ADS1299ADS1299 Texas Instruments' 8-channel, 24-bit biopotential front-end chip used in OpenBCI and many research amplifiers. Related: Delta-sigma ADCDelta-sigma ADC A converter that samples very fast with a crude 1-bit decision and averages, achieving 24-bit resolution at modest rates; what the ADS1299 uses. , OpenBCIOpenBCI The open-source EEG hardware company whose Cyton (ADS1299) and Ganglion boards are the default hobby and research-lite amplifiers. . Glossary entry board. Reference on the other ear’s earpiece or a mastoid; bias on the neck.
The experiment. The eyes-closed alpha test, again. It should appear, smaller than at O1. Then an auditory steady-state response: a tone amplitude-modulated at 40 Hz produces a 40 Hz response the in-ear electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry see well. Then wear it to sleep alongside your forehead band and compare the stagers.
- fNIRSFunctional near-infrared spectroscopy (fNIRS) Shining near-infrared light through the scalp and measuring how much comes back to estimate blood oxygenation in the cortex underneath; a pulse oximeter pointed at the brain. Related: Electroencephalography (EEG)Electroencephalography (EEG) Recording the brain's electrical activity from electrodes on the scalp, a few tens of microvolts of blurred, summed cortical activity. . Glossary entry: breadboard the two-LED, one-photodiode front end with time multiplexing. Confirm the heartbeat in the raw signal on a fingertip, then on the forehead.
- Build the headband holder. Run the arithmetic-versus-rest blocks. Average and plot oxygenated and deoxygenated haemoglobin.
- In-ear: make an ear impression and cast an earpiece with two electrodesElectrode The conductor that turns ion currents in tissue into electron currents in a wire; its chemistry and contact quality set the noise you live with. Related: Silver/silver-chloride (Ag/AgCl)Silver/silver-chloride (Ag/AgCl) The standard electrode material for biopotentials, because its chemistry produces a stable, low-noise, low-drift interface with salty gel. , Electrode impedanceElectrode impedance How hard it is to push current through the skin-electrode contact, typically 5 to 50 kilohms with gel and megohms dry, higher at low frequencies. , Half-cell potentialHalf-cell potential The DC voltage that appears wherever a metal meets an electrolyte; two electrodes with different half-cell potentials produce an offset that can swamp the signal. . Glossary entry. Measure impedance.
- Alpha test in-ear versus O1. Then the 40 Hz auditory steady-state response.
- Record a night with both the in-ear and the forehead band; compare hypnogramsHypnogram The staircase plot of sleep stage against time across a night, scored in 30-second epochs from EEG, EOG, and EMG. Related: Polysomnography (PSG)Polysomnography (PSG) The overnight sleep study: EEG, EOG, chin EMG, breathing, oxygen, and heart rate recorded together and scored in 30-second epochs. , Sleep-EDFSleep-EDF A public PhysioNet dataset of whole-night sleep recordings with expert stage labels, the standard training set for automatic sleep staging. . Glossary entry.