MINDFUL
Measuring neural instability for long-term iBCI
BCI decoders can degrade over time — so when should we update them? MINDFUL (Measure Instabilities in Neural Data for Useful Long-term iBCI) is my first-authored PhD work published in Nature Communications Biology. It is a label-free way to detect model drift in chronic intracortical brain-computer interfaces and decide when recalibration is needed.
Twitter thread · Paper · PDF · Code
Keywords: iBCI, neural nonstationarity, model drift, KL divergence, recalibration, BrainGate
Highlights
- Intracortical BCIs can provide high-performance cursor control, but the mapping from neural activity to intention drifts over days and months — and fixed decoders eventually fail.
- MINDFUL measures that instability without labels of user intention, by comparing neural-feature distributions from a sliding window against a reference period when control was known to be good.
- On longitudinal BrainGate data (T11: 142 days; T5: 28 days), the MINDFUL score correlated strongly with closed-loop angle error (Pearson r = 0.93 and 0.72).
- The method is complementary to adaptive decoders: it can flag when to retrain and support real-time performance diagnostics during iBCI use.
The problem
Practical iBCIs need reliable performance for extended periods. As neural recordings shift relative to the data used to train a decoder — whether from changes in recorded neurons, tuning, or latent structure — online control degrades. Explicit recalibration interrupts the user, while unsupervised adaptation assumes the decoder is still good enough to generate useful pseudo-labels. Missing piece: a signal that says now is when performance has drifted enough to act.
What MINDFUL does
MINDFUL treats decoder-relevant neural features (e.g., threshold-crossing rates and spike power) as distributions over time.
- Build a reference distribution from early sessions with low error.
- Estimate a comparison distribution from a ~60 s sliding window of ongoing neural activity.
- Score instability with Kullback–Leibler divergence between reference and comparison.
- Track that score continuously as a label-free proxy for closed-loop performance.
Because the score depends only on recorded neural activity (and optionally decoder outputs), it does not require knowing what the user intended in each moment.
What we found
Across fixed-decoder sessions in two BrainGate participants with tetraplegia:
- Cursor performance was initially strong, then degraded, with occasional recovery — so instability is not a simple monotonic decay.
- MINDFUL tracked those ups and downs, including contributions from directional tuning changes and neural latent-space shifts.
- The approach remained useful across tasks, including when the reference was taken from a different context such as independent iBCI use.
Why it matters
MINDFUL is not a replacement for better decoders — it is a monitor. Pairing instability detection with supervised or unsupervised recalibration can make long-term iBCI use more practical, reliable, and accessible.
Links
- Paper: Communications Biology
- Thread: @ewinapun on X
- Code: github.com/ewinapun/MINDFUL
- Data: Dryad (linked from the paper / repo)