Bench modeSteps, parts, and safety only. Big type for a phone at the bench.
Phase 6: Beyond the scalpProjectA month eachAbout $60 eachTier 2

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.

AssumesProject A: The ADS1299 boardProject C: Make your own electrodesSpineAnalog / mixed-signal hardware

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.

Scalp EEG is one window. Two others are within reach of the Phase 2 bench and are far less crowded. 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 EEG puts electrodes 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.

Predict before you look

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. fNIRS is therefore slow, like fMRI, and cannot see the millisecond events EEG sees. What it can see is sustained activation of a cortical region through hair-free skin, without electrodes, in a moving person, which EEG 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 fNIRS 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 EEG picks up alpha, sleep stages, auditory evoked responses, and some SSVEP, with amplitudes a few times smaller than scalp electrodes 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 electrodes on its surface: silver-coated dry contacts, or conductive silicone pads, or Ag/AgCl dots with a trace of gel. Wires out to your ADS1299 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 electrodes see well. Then wear it to sleep alongside your forehead band and compare the stagers.

  1. fNIRS: 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.
  2. Build the headband holder. Run the arithmetic-versus-rest blocks. Average and plot oxygenated and deoxygenated haemoglobin.
  3. In-ear: make an ear impression and cast an earpiece with two electrodes. Measure impedance.
  4. Alpha test in-ear versus O1. Then the 40 Hz auditory steady-state response.
  5. Record a night with both the in-ear and the forehead band; compare hypnograms.
Recall
What does fNIRS measure and what is its time resolution?
Changes in oxygenated and deoxygenated haemoglobin in superficial cortex, from the differential absorption of two near-infrared wavelengths; the haemodynamic response peaks four to six seconds after neural activity, so it is slow like fMRI.
Recall
Why is in-ear EEG attractive despite smaller amplitudes?
The ear canal is stable, hidden, and comfortable for hours, making it suited to sleep and everyday wearables; it captures alpha, sleep stages, and auditory responses well.