DecNefLab: A Modular and Interpretable Simulation Framework for Decoded Neurofeedback
Alexander Olza, Roberto Santana, David Soto
TL;DR
DecNefLab addresses the robustness and interpretability challenges of decoded neurofeedback by offering a modular in silico framework that replaces human participants with latent-variable generative models. It enables direct observation of internal cognitive states $Z$ while streaming observable data $X$ through a trainable classifier, thereby allowing causal analysis of how feedback shapes learning. The paper demonstrates a concrete instantiation using a Variational Autoencoder and Fashion-MNIST, showing that alternative-class choices, initial conditions, and stochastic regulation critically influence learning trajectories and apparent non-response. By exposing the full cognitive trajectory and feedback topology, DecNefLab supports principled protocol design, reproducibility, and rapid in silico experimentation prior to human studies.
Abstract
Decoded Neurofeedback (DecNef) is a flourishing non-invasive approach to brain modulation with wide-ranging applications in neuromedicine and cognitive neuroscience. However, progress in DecNef research remains constrained by subject-dependent learning variability, reliance on indirect measures to quantify progress, and the high cost and time demands of experimentation. We present DecNefLab, a modular and interpretable simulation framework that formalizes DecNef as a machine learning problem. Beyond providing a virtual laboratory, DecNefLab enables researchers to model, analyze and understand neurofeedback dynamics. Using latent variable generative models as simulated participants, DecNefLab allows direct observation of internal cognitive states and systematic evaluation of how different protocol designs and subject characteristics influence learning. We demonstrate how this approach can (i) reproduce empirical phenomena of DecNef learning, (ii) identify conditions under which DecNef feedback fails to induce learning, and (iii) guide the design of more robust and reliable DecNef protocols in silico before human implementation. In summary, DecNefLab bridges computational modeling and cognitive neuroscience, offering a principled foundation for methodological innovation, robust protocol design, and ultimately, a deeper understanding of DecNef-based brain modulation.
