Electrosensory cell bursts: which spike statistics actually separate them
A 2025 study fits two models to bursting electrosensory neurons and scores them on six spike statistics. We rebuild those statistics from the paper's own burst description and show which of them can tell a burster from a Poisson cell.
Weakly electric fish sense their surroundings through an electric field they generate themselves, and the first brain area that reads that field, the electrosensory lateral line lobe, is full of pyramidal cells that fire in bursts: two or three spikes packed close together, then a pause. A 2025 paper in PLOS Computational Biology recorded 32 of these cells in live fish and asked whether two very different models, one built from ion channels and one a stripped-down three-variable model, can reproduce what the cells do. The models are judged on six numbers measured from the spike trains, and the spike train analyser computes all six in a browser. To go the other way and build spikes from conductances, use the hodgkin-Huxley simulator; for imaging instead of electrodes, the calcium imaging ΔF/F tool; and for the mains hum that spoils an electrode recording, the notch filter.
The paper in brief
The authors recorded pyramidal cells in the hindbrain of Apteronotus leptorhynchus with no stimulus applied, so what they measured is the cells’ own baseline activity: firing rates between 5 and 60 Hz across 32 cells from 8 fish. In vivo those cells burst in twos and threes, not the 5 to 8 spike bursts seen in slices, and in a representative cell the intervals inside a burst cluster around 12 ms while the gaps between bursts cluster near 100 ms.
They then fitted two models per cell. The first is a biophysical model with the usual sodium and potassium currents plus the dendritic feedback thought to cause the bursting. The second is a modified Hindmarsh-Rose model, which has no ion channels at all, only three abstract variables. Both were scored by correlating six measured statistics across the 32 cells: mean firing rate, burst fraction, mean interval, median interval, the SD of the intervals and the CV, the SD divided by the mean. The biophysical model scored 0.99, 0.88, 0.95, 0.92, 0.83 and 0.98; the simpler model was close behind. Their conclusion is that you do not need the channels to get the spike statistics right, which matters because the simple model runs hundreds of times faster.
Checked with the tools
Two different things happen in this section, and it is worth keeping them apart. Step 1 is arithmetic on the paper’s own stated numbers. Steps 2 to 4 use simulated spike trains we built from the paper’s burst description, to ask how much each of its six statistics can actually tell you. Nothing here is the paper’s recorded data, which is not in the text.
Step 1: is the burst description consistent with the reported rates? If a cell fires n spikes per burst with 12 ms between them and 100 ms between bursts, each burst cycle lasts (n − 1) × 12 + 100 ms and delivers n spikes. That gives:
| Spikes per burst | Firing rate implied |
|---|---|
| 2 | 17.9 Hz |
| 2.5 | 21.2 Hz |
| 3 | 24.2 Hz |
All three sit comfortably inside the 5 to 60 Hz the paper reports, in the lower middle of it. The two interval modes and the rate range are telling the same story, which is a small but real consistency check: three stated numbers, one of which is implied by the other two.
Step 2: a burster and a Poisson cell, side by side. We built 40 trials of 5 s with 2 or 3 spikes per burst, gamma-distributed intervals whose modes sit at the paper’s 12 ms and 100 ms, and a 3 ms dead time, and a Poisson train matched to the same mean rate. Then we built a third train: the same bursts, but with the gaps between bursts drawn from an exponential distribution instead, so the burst clock itself is random. Read with the tool:
| Statistic | Bursting (regular clock) | Poisson, same rate | Bursting (Poisson clock) |
|---|---|---|---|
| Mean firing rate | 18.1 Hz | 18.0 Hz | 17.6 Hz |
| Mean interval | 54.0 ms | 55.3 ms | 55.6 ms |
| Median interval | 15.5 ms | 36.9 ms | 14.6 ms |
| SD of interval | 59.4 ms | 56.6 ms | 93.8 ms |
| CV of interval | 1.10 | 1.02 | 1.69 |
| Fano factor of counts | 0.28 | 0.73 | 1.63 |
| Intervals under 30 ms | 60.7 % | 42.9 % | 69.6 % |
The lesson is blunt. Mean rate, mean interval and the SD of the interval barely move between a burster and a Poisson cell at the same rate: the first three rows are nearly identical. The median interval separates them at a glance (15 ms against 37 ms), because more than half of a burster’s intervals are inside bursts. The CV separates them only weakly, 1.10 against 1.02, because a regular burst clock pulls the CV down just as bursting pushes it up. And the Fano factor, which counts spikes per trial rather than intervals, measures the burst clock, not the bursting: 0.28 for a regular clock and 1.63 for a random one, with the identical burst structure inside.
So a model that matches mean rate, mean interval and SD of interval has matched almost nothing; a model that matches the median interval and the burst fraction has matched something real. The paper’s six statistics are not six independent tests, and its two weakest correlations (SD of interval, 0.83, and burst fraction, 0.88) are on the two statistics that carry the most information about bursting.
Step 3: the interval histogram is where bursting shows. Figure 1 puts the burster’s and the Poisson cell’s interval histograms on one axis. The burster has two humps, one at the paper’s 12 ms and one near 110 ms; the Poisson cell has one, falling away smoothly from zero. No summary statistic shows this as plainly as the shape does, which is why the paper compares interval distributions with a Kolmogorov-Smirnov test as well as correlating the six numbers.
Step 4: the autocorrelogram says the same thing in time. Figure 2 shows a tall narrow peak within about 30 ms of every spike and a hollow for the next hundred milliseconds: the signature of a burst followed by a pause. A Poisson cell at the same rate is flat apart from its dead time.
Step 5: how CV and rate work together. Figure 3 varies the gap between bursts from 30 to 450 ms for 1, 2, 3 and 4 spikes per burst. Every burst size covers the same range of firing rates, so the rate alone tells you nothing about burst size, but at a given rate the CV rises steadily with it: near 22 Hz it is about 0.41 for single spikes, 0.88 for twos, 1.17 for threes and 1.39 for fours. Read the other way, a cell with a CV of 1.1 at 20 Hz is firing in twos or threes, which is what the paper reports in vivo.
How we made the graphs
Every number and all three charts come from scripts/blog-figures/electrosensory-pyramidal-cell-bursts-isi-modes-cv-burst-fraction.mjs in fibub’s public code. It calls summarise, isis, histogram and autocorrelogram from src/lib/sci/spikes.ts, the maths behind the spike train analyser.
From the paper: 2 to 3 spikes per burst, an intra-burst interval mode of 12 ms, an inter-burst mode of about 100 ms, 5 s records and the 5 to 60 Hz rate range. Our construction: gamma intervals of shape 16 inside bursts and shape 6 between them (a gamma with shape k and mean m has its mode at m(k − 1)/k, so means of 12.8 and 120 ms put the modes at 12 and 100 ms), a 3 ms dead time, 40 trials, the exponential-gap variant and the Poisson comparison. The trains are simulated. They are not the paper’s recordings, which are not published as numbers in the text.
How we test the maths
tests/sci.mjs runs tests/sci-tools/spike-train-analyser.mjs on every change to fibub, checked against an independent NumPy 2.5 calculation:
- On the tool’s own 20-trial example, the mean rate must be 12.7 spikes/s, the Fano factor 0.9714048901782014 and the pooled CV 1.6287401178350271, matching
np.diffandnp.var. - The 40-bin PSTH, the 50-bin autocorrelogram and the 50-bin interval histogram must match
np.histogrambin for bin, including NumPy’s rule that the last bin includes its right edge. - A long simulated Poisson train must come back with a CV within 0.03 of 1 and a Fano factor within 0.25 of 1, which is the sanity check behind every comparison in this article.
- New with this article: the 33 spike times of our bursting trial (below) must give a rate of 16.5 spikes/s, a mean interval of 56.34 ms and a pooled CV of 1.1154, and a 10 ms interval histogram whose second bin holds 16 of its 32 intervals.
Check it yourself
On the spike train analyser page:
- Set Times are in to milliseconds and leave Layout on One train per line.
- Paste this single simulated trial (2 s, 33 spikes) into the spike-times box as one line: 115 126.8 288.1 298.3 306.7 379.6 384.4 394.7 604.3 617.8 763.1 771.6 788.2 919.6 932.4 1094.5 1110 1122.5 1257.7 1270.8 1282.6 1458.6 1470.3 1562.2 1574.5 1591.1 1659.3 1666.7 1679.2 1790.1 1804.1 1906.1 1917.8
- In Settings, set Window from (s) to 0 and Window to (s) to 2. Clear Stimulus at (s) (there was no stimulus). Set ISI bin (ms) to 10 and ISI up to (ms) to 250.
- The result shows Trains 1, Spikes in window 33, Mean firing rate 16.50 spikes/s, CV of ISIs (pooled) 1.12 and ISIs under 2 ms 0 of 32. Fano factor (counts) says needs 2+ trains, which is the point of Step 2: the Fano factor is a between-trial measure.
- The table gives Mean ISI (ms) 56.34. Look at the interval histogram: 16 of the 32 intervals fall in the 10 to 20 ms bin, and almost nothing lands between 20 and 60 ms. That gap is the burst.
- Set Autocorrelogram lag (ms) to 200 and Autocorrelogram bin (ms) to 4: the peak inside 30 ms and the hollow after it appear even in one trial.
- For the comparison, paste a Poisson train of your own at the same rate and watch the median interval and the histogram shape change while the mean rate does not.
What researchers can use it for
- Report the median interval, not just the mean, when cells burst: it is the one single number that separates a burster from a Poisson cell at the same rate.
- Say what your Fano factor is measuring. Over trials it reads the burst clock’s regularity; a bursting cell can have a Fano factor well below 1 if its bursts are evenly spaced.
- Check a model fit the hard way: match the interval histogram and the autocorrelogram, not only a list of summary numbers that mostly repeat each other.
- Set an ISI threshold for burst detection by looking at where the histogram’s valley sits, instead of inheriting a threshold from another paper.
- Flag sorting errors with the refractory-period count before any of the statistics are believed.
The fine print
- The spike trains here are simulated from the paper’s stated burst description; the paper’s recordings are presented in figures, not as numbers.
- The paper reports its interval modes for one representative cell. Across 32 cells they will vary, and our two gamma shapes are a guess at that spread.
- Our comparison asks how well each statistic separates burst structures. It says nothing about whether the paper’s models are good, which its own fits answer.
- A real cell’s bursts are not independent of each other, and real recordings include slow rate drift. Both change the CV and the Fano factor.
- Burst fraction depends on the threshold used to define a burst, so two papers’ burst fractions are comparable only if their thresholds are.
Sources
- Akhshi, A., Metzen, M. G., Chacron, M. J. and Khadra, A. (2025), In vivo neural activity of electrosensory pyramidal cells: Biophysical characterization and phenomenological modeling, PLOS Computational Biology 21(11): e1013711, doi:10.1371/journal.pcbi.1013711. Licence CC BY 4.0 (Creative Commons Attribution), checked on the PLOS article page, 2026-11-24. Values used here: 32 pyramidal cells from 8 weakly electric fish; baseline firing rates between 5 and 60 Hz with no stimulation; bursts of typically 2 to 3 spikes in vivo (5 to 8 in vitro); an intra-burst interval mode of 12 ms and an inter-burst mode of about 100 ms in a representative cell; 5 s recordings; model-to-data correlations across the 32 cells of 0.99 (mean firing rate), 0.88 (burst fraction), 0.95 (mean interval), 0.92 (median interval), 0.83 (SD of interval) and 0.98 (CV of interval) for the biophysical model.
- Methods behind the maths: the CV of the inter-spike intervals and the Fano factor as in P. Dayan and L. F. Abbott, Theoretical Neuroscience (MIT Press, 2001), chapter 1; histograms follow numpy.histogram's bin rules.
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.