Explorables

Interactive demos of my computational neuroscience research, simulated live in your browser.

  1. Write side: ask a neuron for a firing rate
  2. Read side: 75 subjects, three cohorts
  3. Rhythm: a gamma peak under a theta comb
1 · Write side · preprint

Ask a neuron for a firing rate

Neuron
Requested rate
30 Hz
Screen
Requested
30 Hz
target rate
Current chosen
–
µA/cm², by the surrogate
Surrogate says
–
 
Real neuron
–
 
 
 
Caveats
  • Connor-Stevens is a model, not a real cell; the parameters are from Fehrman & Meliza (2024).
  • This applies only to constant current; pulsed stimulation can bypass this gap.
  • Firing rate is computed by counting spikes in a 700 ms window, giving a resolution of about 1.43 Hz.
  • The curves are truncated at 40 µA/cm².
2 · Read side · preprint

75 subjects, three cohorts

Cohorts
Step 2 Within-session κ >
0.20
Cross-session κ <
0.10
 
Caveats
  • Transfer gate: when enabled, flagged participants get a dashed line drawn from cross-session κ to within-session κ, directly showing “decodable on the same day, falls apart on a different day.” The two thresholds can be dragged.
  • At 0.20 / 0.10, the flagged participants are circled according to the Step 3 results: green circles are those rescued by a stronger decoder, red circles are transfer failures. The result is 10 flagged in Lee2019 plus 1 in BNCI2015-001, of which 4 are rescued and 7 are transfer failures.
  • After the thresholds are dragged away from 0.20 / 0.10, a note indicates that Step 3 was only run at those thresholds.
3 · Rhythm · preprint

A gamma peak under a theta comb

Theta locking
σ 5 ms
Real gamma
40 Hz
Statistic
Data
Truth
–
what was put in
Peak found
–
 
Surrogate null
–
200 Poisson surrogates
Verdict
–
 
 
Caveats
  • This interactive demo shows how a theta-band comb can hide a genuine gamma rhythm in CA1. It generates 21 seconds of synthetic spikes live (6 Hz theta volleys, optionally plus an independent gamma volley train), then computes the Welch spectrum and prominence, runs 200 Poisson surrogates to obtain p-values, and passes the result through a three-stage screen to produce a verdict.
  • Porting accuracy is checked directly: feeding the seed-6000 signal group from the archive into the JavaScript version reproduces all four rows of the E6 table digit for digit (32.97 dB @ 30.0 Hz, 28.91 dB @ 40.0 Hz, etc.), with a PSD relative error of about 1e-13 and a surrogate null that matches Python.
  • The key point is visible in the statistic choice. With the Raw statistic and default θ locking (σ = 5 ms; tighter behaves the same), a true 40 Hz rhythm is consistently reported as a 30.0 Hz peak (a band edge plus 5×6 Hz harmonics), so the verdict is 'missing the true 40 Hz.' At σ ≥ 6 ms the Raw statistic finds 40.0 Hz as well; switching to Comb-notched recovers the true 40.0 Hz peak at the default σ.