---
title: Neural stimulation and recording
heading: Stimulating nerves with charge-balanced current pulses, the electrode–tissue interface under stimulation with its double-layer capacitance and charge-injection limits, Shannon's safety criterion, cochlear implants and deep brain stimulators, and recording spikes with their noise and data rates
eyebrow: S15 · Lesson 44 · Neural stimulation
xp: 50
---

::: hook
A pacemaker stimulates one heart through one or two electrodes. A cochlear implant stimulates the auditory nerve through 12 to 22, hundreds to thousands of times a second each, for decades; a deep brain stimulator does the same deep in the brain. The same electrodes must deliver enough charge to fire neurons without corroding or damaging tissue, and the recording versions must pick out microvolt spikes. The limits come from the electrode–tissue interface of lesson 14, now driven hard.
:::

::: play
- The axis across is the charge per phase of a stimulus pulse. The solid curve is Shannon's limit on charge density for safe stimulation, $\log D = k - \log Q$; above it, tissue damage has been observed.
- The dashed line is the charge density an electrode of area A actually experiences, D = Q/A.
- Where they cross is the largest safe charge per phase for that electrode: larger electrodes can deliver more, and the limit grows only as the square root of area.
:::

```sim plot
view: graph
x: Q = 0.01..100 log
y: D = 1..10000 log
slider: k = 1.5..2 = 1.85
slider: A = 0.001..1 = 0.01 log
plot: 10^k/Q | label: Shannon limit, µC/cm²
plot: Q/A | dashed | label: electrode, µC/cm²
```

::: predict
## A 1 mm² electrode (0.01 cm²) delivers charge-balanced pulses. With Shannon's k = 1.85, what is the largest safe charge per phase?

- [ ] About 0.01 µC
- [ ] About 0.1 µC
- [x] About 0.8 µC
- [ ] About 7 µC

::: reveal
Safe stimulation needs $Q \cdot D \le 10^k$ with D = Q/A, so $Q \le \sqrt{10^kA} = \sqrt{70.8 \times 0.01}$ = 0.84 µC, a charge density of 84 µC/cm². A 1 mA pulse could last up to 840 µs; cochlear implants use much shorter, smaller pulses, well inside the limit.
:::
:::

::: nameit
## Stimulating with charge

A neuron fires when its membrane is depolarized past threshold, which takes a certain charge delivered quickly (the strength–duration curve of lesson 43). Stimulators therefore control current, not voltage, so the charge is fixed whatever the electrode's impedance, and they deliver **biphasic, charge-balanced** pulses: a stimulating phase followed by an equal and opposite one, so no net charge accumulates to drive electrochemical reactions over time. A series capacitor on each output guarantees zero DC current even under a fault.

## The interface under stimulation

A stimulating electrode passes charge into tissue first by charging its **double-layer capacitance** (about 10 to 40 µF/cm² for smooth platinum), and beyond that by reversible surface reactions. The electrode's voltage during a constant-current pulse is the drop across the tissue's access resistance plus the double layer's charge:
$$V = IR_a + \frac{Q}{C_\text{dl}}$$
If the interface voltage leaves the electrode's safe "water window" (about −0.6 to +0.8 V for platinum), irreversible reactions such as electrolysis begin, generating gas and pH changes and dissolving the electrode. The charge a material can inject reversibly, its **charge-injection limit**, is about 50 to 150 µC/cm² for platinum and some 1 to 5 mC/cm² for activated iridium oxide or roughened coatings, which is why small electrodes use them. The stimulator's supply must provide the **compliance voltage** V for the largest pulse.

## Tissue safety

Shannon's criterion, from animal data, marks damage above the line
$$\log_{10}D = k - \log_{10}Q$$
with D in µC/cm² per phase and Q in µC per phase; k = 1.85 is a commonly used safe value. For an electrode of area A, the largest safe charge per phase is $\sqrt{10^kA}$.

## Applications

**Cochlear implants** place 12 to 22 electrodes along the cochlea, each stimulating the nerve fibers tuned to one band of frequencies, at hundreds to a few thousand pulses a second per channel, with phases of tens of microseconds. **Deep brain stimulators** for Parkinson's disease run continuously at about 130 Hz with 60 to 90 µs phases. Spinal cord stimulators and functional electrical stimulation of muscles follow the same rules with larger electrodes.

## Recording

Extracellular spikes are 50 to 500 µV and last about a millisecond, so recording amplifiers pass about 300 Hz to 6 kHz (below that lie local field potentials). The electrode's thermal noise, $\sqrt{4kTRB}$, sets a floor: a 1 MΩ electrode over 6 kHz contributes about 10 µV RMS. Digitized at 20 to 30 kHz per channel, a thousand-channel array produces hundreds of megabits a second, more than an implant can transmit, so implants detect spikes on the chip and send only their times or features.
:::

::: example
## A cochlear implant drives 16 channels at 1000 biphasic pulses per second each, with 25 µs phases at 1 mA, from an 8 V compliance supply. What is the average stimulation current and power, and the charge per phase?

::: solution
1. **Charge per phase.**
   $$\begin{aligned} Q &= 1\ \text{mA} \times 25\ \mu\text{s} \\ &= 25\ \text{nC} \end{aligned}$$
2. **Average current per channel.** Each channel draws current for 2 × 25 µs per pulse, 1000 times a second:
   $$I_1 = 50\ \mu\text{A}$$
3. **All 16 channels.**
   $$\begin{aligned} I &= 16 \times 50\ \mu\text{A} \\ &= 0.8\ \text{mA} \end{aligned}$$
4. **Power.** From 8 V:
   $$\begin{aligned} P &= 8\ \text{V} \times 0.8\ \text{mA} \\ &= 6.4\ \text{mW} \end{aligned}$$
   for stimulation alone, which is why the processor and radio link are designed around a budget of tens of milliwatts, delivered by an inductive link through the skin (lesson 49).

**Answer:** each phase carries 25 nC, and stimulation averages 0.8 mA and 6.4 mW.
:::
:::

::: example
## A 1 mA, 100 µs constant-current phase passes through a 0.01 cm² platinum electrode with 20 µF/cm² of double-layer capacitance and 1 kΩ of access resistance. What voltage does the stimulator need, and how far is the interface pushed?

::: solution
1. **Charge.**
   $$\begin{aligned} Q &= 1\ \text{mA} \times 100\ \mu\text{s} \\ &= 0.1\ \mu\text{C} \end{aligned}$$
2. **Double-layer capacitance.**
   $$\begin{aligned} C_{dl} &= 20 \times 0.01\ \mu\text{F} \\ &= 0.2\ \mu\text{F} \end{aligned}$$
3. **Interface voltage.**
   $$\begin{aligned} \Delta V &= \frac{0.1\ \mu\text{C}}{0.2\ \mu\text{F}} \\ &= 0.5\ \text{V} \end{aligned}$$
   inside platinum's water window.
4. **Compliance needed.** The access resistance adds 1 mA × 1 kΩ = 1 V, so the stimulator needs at least 1.5 V of compliance, plus headroom.
5. **Limits.** Doubling the charge would push the interface past the window, which is when coatings with more capacitance are needed.

**Answer:** the stimulator needs at least 1.5 V of compliance plus headroom, and the interface is pushed 0.5 V, inside platinum's water window.
:::
:::

::: example
## A neural recording array has 1024 channels sampled at 30 kHz with 12 bits. What raw data rate does it produce, and what does a 1 MΩ electrode contribute in thermal noise over 300 Hz to 6 kHz at 37 °C?

::: solution
1. **Raw data rate.**
   $$\begin{aligned} R &= 1024 \times 30\,000 \times 12 \\ &= 369\ \text{Mb/s} \end{aligned}$$
   far beyond what an implant can transmit on a few milliwatts.
2. **Electrode noise.** Over the 5700 Hz band:
   $$\begin{aligned} v_n^2 &= 4kTRB \\ &= 4 \times 1.38 \times 10^{-23} \times 310 \\ &\quad \times 10^6 \times 5700\ \text{V}^2 \end{aligned}$$
   so $v_n$ = 9.9 µV RMS.
3. **Spike against noise.** A 50 µV spike stands only five times above it.
4. **Cutting the data.** Detecting spikes on the chip and sending their times cuts the data by a factor of hundreds.

**Answer:** the array produces 369 Mb/s of raw data, and the electrode contributes 9.9 µV RMS of thermal noise.
:::
:::

::: check
kind: parts
given: A = 0.0005 | 0.005 | 0.05; k = 1.7 | 1.85

## A stimulating electrode has an area of {A} cm², and the safety criterion uses k = {k}.

::: part
answer: sqrt(10^k*A)
unit: µC
tolerance: 0.5%

### What is the largest safe charge per phase?

::: misses
- [10^k*A] The criterion limits Q·D, so Q goes as the square root of area.
- [any] $\sqrt{10^kA}$.
:::
:::

::: part
answer: sqrt(10^k*A)/A
unit: µC/cm^2
tolerance: 0.5%

### What charge density is that?

::: misses
- [any] Q/A.
:::
:::
:::

::: check
kind: parts
given: I = 0.5 | 1 | 3; t = 50 | 200; A = 0.005 | 0.05; c = 20 | 40; R = 0.5 | 2

## A {I} mA constant-current phase lasts {t} µs through an electrode of {A} cm² with {c} µF/cm² of double-layer capacitance and {R} kΩ of access resistance.

::: part
answer: I*t*1e-3/(c*A)
unit: V
tolerance: 0.5%

### How far does the double layer charge?

::: misses
- [I*t*1e-3/c] Multiply the capacitance per area by the area.
- [any] $Q/C_\text{dl}$.
:::
:::

::: part
answer: I*R + I*t*1e-3/(c*A)
unit: V
tolerance: 0.5%

### What compliance voltage does the pulse need?

::: misses
- [any] $IR_a + Q/C_\text{dl}$.
:::
:::
:::

::: check
kind: parts
given: N = 8 | 16 | 22; r = 500 | 1500 | 3500; t = 20 | 50; I = 0.5 | 1.5; V = 5 | 10

## A cochlear implant runs {N} channels at {r} biphasic pulses per second each, with {t} µs phases of {I} mA, from a {V} V supply.

::: part
answer: N*r*2*t*1e-6*I*1e3
unit: µA
tolerance: 0.5%

### What average current does stimulation draw?

::: misses
- [N*r*t*1e-6*I*1e3] Each biphasic pulse has two phases.
- [any] Channels × rate × 2 phases × duration × current.
:::
:::

::: part
answer: N*r*2*t*1e-6*I*V
unit: mW
tolerance: 0.5%

### What power is that?

::: misses
- [any] Average current times supply voltage.
:::
:::
:::

::: check
kind: parts
given: c = 64 | 256 | 1024; f = 20 | 30; b = 10 | 12 | 16

## A recording array has {c} channels sampled at {f} kHz with {b} bits.

::: part
answer: c*f*1e3*b/1e6
unit: Mb/s
tolerance: 0.5%

### What raw data rate does it produce?

::: misses
- [any] Channels × rate × bits.
:::
:::
:::

::: check
kind: parts
given: R = 0.1 | 1 | 5; B = 3 | 6 | 10; s = 50 | 200

## A recording electrode of {R} MΩ is used over a {B} kHz band at 37 °C.

::: part
answer: sqrt(4*1.380649e-23*310.15*R*1e6*B*1e3)*1e6
unit: µV
tolerance: 0.5%

### What RMS thermal noise does it contribute?

::: misses
- [any] $\sqrt{4kTRB}$.
:::
:::

::: part
answer: s/(sqrt(4*1.380649e-23*310.15*R*1e6*B*1e3)*1e6)
tolerance: 0.5%

### What is a {s} µV spike's peak-to-noise ratio, considering only that noise?

::: misses
- [any] Spike amplitude over RMS noise.
:::
:::
:::

::: check
kind: choice

## Why are stimulation pulses made biphasic and charge-balanced?

- [ ] The second phase doubles the stimulating effect
- [x] Equal and opposite charge returns the electrode interface to where it started each pulse, so no net charge accumulates to drive irreversible reactions that damage the electrode and tissue
- [ ] It halves the stimulator's power consumption
- [ ] Nerves respond only to alternating current

::: misses
- [1] The stimulating phase does the work; the second phase undoes the charge.
- [3] It adds a phase, so it uses more charge, not less.
- [4] A single monophasic pulse can fire a nerve; the issue is what happens to the interface over many pulses.
:::
:::

::: check
kind: derivation
vars: I = 0.1..5, t = 10..500, A = 0.001..0.1, c = 5..50, R = 0.1..5, k = 1.5..2

## A constant-current phase of I mA and t µs passes through an electrode of area A (cm²) with double-layer capacitance c (µF/cm²) and access resistance R (kΩ).

::: step
answer: I*t*1e-3

### How much charge does the phase carry, in µC?
:::

::: step
answer: I*R + I*t*1e-3/(c*A)

### What voltage does the stimulator need, at the end of the phase?
:::

::: step
answer: sqrt(10^k*A)

### What is the largest safe charge per phase by Shannon's criterion?
:::

::: right
Right. Charge sets both the stimulus and the risk; area sets how much the electrode can deliver safely.
:::
:::

::: explain
## Why does a stimulating electrode have a charge limit that depends on its material?

::: model
Current enters tissue as ions, so at the electrode's surface electrons must be handed over to ions or the surface must charge like a capacitor. Small charges just charge the double layer, a capacitor that discharges again without changing anything chemically. Larger charges push the interface voltage up until reactions begin; some are reversible surface reactions that a balancing phase undoes, but past a point the voltage reaches water's electrolysis or the metal's own corrosion, which make gas, change pH and dissolve the electrode. How much charge a surface can store before that point depends on its double-layer capacitance and its reversible surface chemistry, which is why rough, high-capacitance coatings like iridium oxide inject far more charge than smooth platinum.
:::
:::

::: practice
::: check
given: A = 0.002 | 0.02; k = 1.85 | 1.75
answer: sqrt(10^k*A)
unit: µC
tolerance: 0.5%

## Safe charge per phase: {A} cm², k = {k}?

::: misses
- [any] $\sqrt{10^kA}$.
:::
:::

::: check
given: I = 1 | 2; t = 100 | 300; A = 0.01 | 0.03; c = 20 | 30
answer: I*t*1e-3/(c*A)
unit: V
tolerance: 0.5%

## Double-layer voltage: {I} mA, {t} µs, {A} cm², {c} µF/cm²?

::: misses
- [any] $Q/(cA)$.
:::
:::

::: check
given: c = 128 | 512; f = 20 | 30; b = 12 | 16
answer: c*f*1e3*b/1e6
unit: Mb/s
tolerance: 0.5%

## Data rate: {c} channels, {f} kHz, {b} bits?

::: misses
- [any] c × f × b.
:::
:::
:::
