← Research

Brain-implant drift11 min read

The Signal That Won't Stay Still: SBP Drift in Chronic BCI Recordings

This post is part of an earlier series and is no longer updated. The current answer is on Can a brain implant work without daily re-tuning?.

Part 1 of 3. I establish the drift problem here. Part 2 covers the fix. Part 3 introduces the nonlinear cross-session decoder.

Correction (2026-10-25): the decoder used across Parts 1–3 predicted finger velocity 60 ms ahead of the newest SBP bin. Checked against the LINK authors' own ridge baseline on their split, that lead cost about 0.07 R² on raw SBP, and it was never chosen on data. The decoder now predicts velocity at the current bin (picked on the 17 earliest sessions and confirmed on the 13 later ones; on the authors' split it matches their ridge, 0.252 vs 0.246). Every number below is re-stated from that run. The story here does not change; the raw-SBP failure is larger than first reported.

Correction (2026-10-23): an earlier version of this post described a different run (sessions up to June 2023, "three years", one session at R² −10) and scored Day 0 on the decoder's own training data (R² 0.299). All numbers, dates and figures below now come from the notebook run on the 30 sessions analysed, 2020-01-27 to 2021-04-14. Day 0 is scored on held-out blocks, and sessions are labelled by days since Day 0, not by their position in the list. Updated the same day: every number in Parts 1–3 now comes from one decoder (100 ms of SBP history, 60 ms lead, regularisation chosen on a wider grid, first 6 s of each session unscored), so this part and Part 2 report the same Day-0 test.


Think about what it means for a brain-computer interface to actually work. Not in a lab demo. In someone's life.

A person with ALS gets a Utah array implanted. A decoder is calibrated: it learns to map the neural firing patterns in their motor cortex to the intended movement. On day one, it works. On day thirty, it might not. Not because the person's intention changed. Not because the task changed. Because the signal changed.

This is the SBP drift problem, and it bothers me enough to write about it.

Spiking-band power (SBP) is one of the most practical neural features we have for decoding movement intent from chronic implants. It's stable enough to compute reliably, informative enough to decode from, and it doesn't require spike-sorting. But "stable enough to compute" is not the same as "stable across days." The electrode tips oxidize. The tissue around them responds. Channels gain-shift. The population amplitude structure, the fingerprint of the array, slowly reorganizes over weeks and months.

A static decoder doesn't know any of this. It just knows what it learned on day one.


The Data I'm Working With

I'm using the LINK dataset from the DANDI Archive (accession 001201), distributed in NWB format. It's chronic Utah-array recordings from a non-human primate doing a finger-flexion task. Each session gives me precomputed SBP at 20 ms bins across 96 channels, plus the corresponding finger-velocity traces.

I loaded 30 sessions spanning 20200127 through 20210414 (January 2020 to April 2021, 443 days). I sorted them by date and processed them with no cross-day alignment applied. I want to see the raw problem before any correction.

One thing I checked immediately: does the LINK release already normalize across sessions? The answer is no. The SBP values are stored as recorded. Whatever stability exists in the cross-day representation has to come from preprocessing, or it doesn't exist at all.

The 30 sessions above are the fixed analysis set for this series: same recording dates, same pipeline, end to end for Parts 1–3.


What I Found

The Heatmap Tells the Story Immediately

The most direct thing I can show you is a channel × session heatmap: mean SBP for every channel, every session, all at once. Each column is a session, each row is a channel.

Channel × session heatmap of mean SBP across all 30 sessions. Each column is one recording day. Each row is one electrode. Color encodes mean amplitude.

The rows have structure. Each channel has a characteristic amplitude level that persists across time. The spatial fingerprint of the array is real and stable. But look at the columns. The overall brightness shifts. Some sessions are systematically hotter than others. That column-to-column variation is the drift, and no static decoder can compensate for it.

If the signal were stationary, the columns would look identical. They don't.

The Spatial Fingerprint Is Real, Which Makes the Drift Worse

Before looking at how things change over time, I want to show you what the array's amplitude profile looks like when averaged across all 30 sessions.

Per-channel mean SBP averaged across all 30 sessions, with ± SEM shown as the shaded band. X-axis is channel index (0–96), not time.

Each point is one channel. The SEM band is tight: channels maintain their relative amplitude ordering consistently across sessions. Two regions dominate: one channel near 32 and a cluster around 70–72. The spatial fingerprint of the array is real and reproducible.

This matters because it tells you what kind of drift you're dealing with. If channels were drifting randomly and independently, the SEM would be wide and noisy. It's not. The relative structure is stable. What changes, as the heatmap showed, is the overall session-level amplitude. The whole pattern shifts, and individual channels decay over months. That's a harder problem than random noise: the decoder's weights are calibrated to a specific amplitude scale, not just a relative ordering.

Each Channel Drifts Differently, and That's the Hard Part

Here's where it gets worse. If every channel drifted by the same amount, you could correct it with a global offset. That's not what happens.

I plotted per-channel mean SBP on day 0 against the same values on the last session. Points on the identity line mean no drift. Points off it mean the channel moved.

Per-channel mean SBP on Day 0 (20200127) on the x-axis versus day 443 (20210414) on the y-axis. Orange points = decay/dropout (amplitude fell). Green = increased. Gray = no change.

This is the scatter I expected but didn't want to see. Most of the mid- and high-amplitude channels are orange (decay and dropout), and the four highest-amplitude channels on day 0 all sit well below the identity line by day 443. Only one channel drifted up (green). The low-amplitude channels mostly stayed put (gray). There's no single bias correction that fixes this.

When the biggest channels on day 0 lose a large share of their amplitude in 15 months while the quiet ones barely move, the spatial structure the decoder learned has been reorganized. The weights no longer point where they're supposed to.

And It Keeps Getting Worse With Time

I compared day 0 against progressively later sessions to see whether drift accumulates or plateaus.

Five panels comparing Day 0 per-channel mean SBP against day 3 (20200130), day 28 (20200224), day 52 (20200319), day 287 (20201109) and day 443 (20210414). Same orange/teal/gray color coding as above.

Day 3: points close to the identity line, a mix of orange and teal. Days 28 and 52: still a mix, with channels moving both up and down. Day 287 (~9.5 months): orange dominates and the teal points are gone. Day 443 matches the scatter above: the high-amplitude channels have dropped well below the line. Within the first two months channels move both ways; by nine months the movement is mostly downward.


The Part That Actually Matters: The Decoder Fails

Feature drift is an interesting observation. Decoder failure is a real problem. So I ran the direct test.

I trained a ridge decoder on day 0 (SBP over the last 100 ms → finger velocity at the current bin). Then I transferred it, with no retraining and no recalibration, to every subsequent session and recorded the cross-day R².

Decoder R² for each test session when training is fixed on Day 0 and raw SBP is used. The x-axis labels sessions by days since 2020-01-27. The Day 0 bar is scored on held-out blocks of Day 0.

Day 0 (the blue bar): R² 0.32, scored on blocks of Day 0 the decoder never trained on. That is the honest starting point; scoring Day 0 on its own training rows gives 0.34, which flatters it. After that, 27 of the 29 later sessions are orange bars below zero. Many fall below −1; the lowest is day 29 (2020-02-25) at −3.97. By day 443 the decoder sits at −0.83, a drop of 1.15 from Day 0.

Before I go further: negative R² doesn't just mean "bad decoding." By construction, it means the decoder's error is higher than the no-skill baseline used in this scoring: predicting the session mean at every time step. In other words, for these days the day-0-learned mapping is not just less accurate; it's actively failing the cross-day generalization check. At R² −3.97, its squared error is almost 5 times the baseline's.

How Does It Depend on the Gap?

The same Day-0 decoder, grouped by how many days separate the test session from Day 0.

Decoder R² by time-gap bin: 1–7 days, 8–30 days, and more than 30 days. Training always on Day 0, testing on later sessions; Day 0 itself is not in any bin.

Three bins: within a week, within a month, beyond a month. Only one session falls in the first week (day 3, R² −0.43), so that bin is a single point. The 8–30 d bin (7 sessions) has median −0.73 and holds the worst session (−3.97); beyond 30 days (21 sessions) the median is −0.55, with the lowest at −2.68. Every bin is below zero.

The variance is high, and only 2 of the 29 later sessions score above zero. But the central tendency is clear: if you train on Day 0 raw SBP and test on a different day, you should plan to fail. The full picture, training on any session and testing on any later one, is in Part 2.

Limitations

This Part 1 intentionally applies no cross-day alignment (no recalibration), so we measure raw transfer failure. It is SBP-only, and the reported R² depends on the exact per-time-bin scoring/aggregation used in this figure. Day 0 is scored with 5 contiguous held-out blocks (with a gap around each block so no time bin is shared); every later session is held out by construction. The first 300 bins (6 s) of every session are not scored. Results reflect the fixed 30-session subset described above; generalization to other sessions in the LINK release is not claimed here.


What the Data Is Telling Me

Wide table: on a narrow screen, scroll sideways to see all columns.

What I testedWhat I found
Population SBP over 443 daysNot stationary. No stable baseline, anywhere in the span.
Per-channel driftAsymmetric. The biggest channels lost the most amplitude; the quiet ones barely moved.
Drift vs. time gapMixed in the first two months, mostly downward by nine months. No safe window.
Day-0 decoder R²0.32 on held-out Day 0. 27 of 29 later sessions below zero; median −0.55 beyond 30 days; lowest −3.97.

Here's the thing that stays with me: the signal isn't gone. The monkey is still doing the task. The motor cortex is still firing. The information is there. The same animal, the same task, 15 months of data.

But the raw SBP encoding of that information has shifted so far from what the decoder learned on day one that the model is now actively working against you. Not merely degraded. The learned mapping no longer matches the shifted representation. The problem isn't the brain. The problem is that we're feeding a static model a representation that keeps changing underneath it.

This is an engineering failure, not a neuroscience one. And engineering failures have engineering solutions.


What's Next

I'm not satisfied leaving it here.

In Part 2, I introduce Gold r_norm: a per-channel, per-session z-score followed by 50 ms Gaussian smoothing. No cross-day alignment model. No labels. No recalibration sessions. It runs in milliseconds and requires nothing from the user.

That single preprocessing step shifts mean cross-day R² from −0.907 to +0.030 (gain +0.937, 95 % CI +0.576 to +1.399). The negative-transfer regime shrinks at short gaps, but it does not disappear: past five months the decoder still fails.

I'll show you exactly why it works, what it doesn't fix, and where the limits are.


References

  • Magland, J. F., Ly, R., Rübel, O., & Dichter, B. K. (2025). Facilitating analysis of open neurophysiology data on the DANDI Archive using large language model tools. Scientific Data, 12, 285. https://doi.org/10.1038/s41597-025-06285-x
  • Rübel, O., Tritt, A., Ly, R., Dichter, B. K., Ghosh, S., Niu, L., Baker, P., Soltesz, I., Ng, L., Svoboda, K., Frank, L., & Bouchard, K. E. (2022). The Neurodata Without Borders ecosystem for neurophysiological data science. eLife, 11, e78362. https://doi.org/10.7554/eLife.78362

The repository includes the analysis notebooks, the neurosignal package and related code, and HTML exports of those notebooks.

Code: github.com/radhakrishnanrishaban/ephys-signal-atlas · neurosignal v0.2.0