Submitted:
04 August 2025
Posted:
05 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Methods
2.1. Surgical Preparation

2.2. Data
2.3. Model Design

2.4. Implementation
2.5. Software Design
3. Results
3.1. Model Evaluation

| Model | Parameters | Correct (%) | Latency (ms) | |
| Cos. Similarity | 0 | 62.5 | 11.02 | 3.72 |
| 1-Layer LSTM | 12,961 | 92.4 | 691.1 | 2.72 |
| 3-Layer LSTM | 29,857 | 90.7 | 638.8 | 4.08 |
| Transformer | 277,297 | 98.7 | 827.2 | 4.77 |
3.2. Software Evaluation

3.3. In Vivo Evaluation

4. Discussion
5. Conclusions
6. Code Availability
References
- J. Millan. On the need for on-line learning in brain-computer interfaces. In 2004 IEEE International Joint Conference on Neural Networks (IEEE Cat. No.04CH37541), volume 4, pages 2877–2882 vol.4, July 2004.
- Enriquez-Geppert, R. J. Huster, and C. S. Herrmann. EEG-Neurofeedback as a tool to modulate cognition and behavior: A review tutorial. Front Hum Neurosci 2017, 11, 51. [CrossRef]
- H. Marzbani, H. R. Marateb, and M. Mansourian. Neurofeedback: A comprehensive review on system design, methodology and clinical applications. Basic Clin Neurosci, 2016, 7, 143–158. [CrossRef]
- T.-W. Chen, T. J. Wardill, Y. Sun, S. R. Pulver, S. L. Renninger, A. Baohan, E. R. Schreiter, R. A. Kerr, M. B. Orger, V. Jayaraman, L. L. Looger, K. Svoboda, and D. S. Kim. Ultrasensitive fluorescent proteins for imaging neuronal activity. Nature 2013, 499, 295–300. [CrossRef]
- G. Karvat, A. Schneider, M. Alyahyay, F. Steenbergen, M. Tangermann, and I. Diester. Real-time detection of neural oscillation bursts allows behaviourally relevant neurofeedback. Communications Biology 2020, 3. [CrossRef]
- R. J. Schafer and T. Moore. Selective attention from voluntary control of neurons in prefrontal cortex. Science 2011, 332, 1568–1571. [CrossRef] [PubMed]
- K. B. Clancy, A. C. K. B. Clancy, A. C. Koralek, R. M. Costa, D. E. Feldman, and J. M. Carmena. Volitional modulation of optically recorded calcium signals during neuroprosthetic learning. Nature neuroscience 2014, 17, 807–809. [Google Scholar] [CrossRef] [PubMed]
- Z. Liang, Y. Ma, G. D. Watson, and N. Zhang. Simultaneous GCaMP6-based fiber photometry and fMRI in rats. Journal of Neuroscience Methods 2017, 289, 31–38. [CrossRef] [PubMed]
- S. H. Scott. Optimal feedback control and the neural basis of volitional motor control. Nature Reviews Neuroscience 2004, 5, 532–545. [CrossRef] [PubMed]
- R. Nieuwenhuys, L. M. Geeraedts, and J. G. Veening. The medial forebrain bundle of the rat. I. General introduction. Journal of Comparative Neurology 1982, 206, 49–81. [CrossRef] [PubMed]
- D. P. Kingma, M. Welling, et al. An introduction to variational autoencoders. Foundations and Trends® in Machine Learning 2019, 12, 307–392. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).