Published January 16, 2026 | Version v1

Successful single-session neural self-regulation through neurofeedback varies between features

Description

Data and code from: Successful single-session neural self-regulation through neurofeedback varies between features

Dataset DOI: 10.5281/zenodo.18266174

Dataset Overview

This repository contains the pre-processed EEG data supporting the findings of the pre-print "Successful single-session neural self-regulation through neurofeedback varies between features" published open access at Human Brain Mapping with the doi: 10.1002/hbm.70611 and as a pre-print with the doi:  10.64898/2026.01.07.698228. The dataset is organized at the single-subject level, provided in MATLAB (.mat) format. Each subject file contains time-frequency resolved data separated by feature, allowing for modular analysis. The data has been pre-processed and downsampled to 100 Hz, resulting in a three-dimensional array structure of 40 × 62 × 19,100 per feature. In addition, we share supporting information, and the code used to reproduce the results in the manuscript.

Description of the data and file structure

Data and computer code for "Successful single-session neural self-regulation through neurofeedback varies between features"

Files and variables

File: feedback_sessions.zip

Description: The main data file (see below for the complete archived repository including data overviews and computer code).

Variables:

The feedback_sessions.zip file contains individual neurofeedback files for each participant and session following this formatS(N) + Feature + feedbackPower.mat each file contains the following variables:

  • feedbackPowerASRdB: A three dimensional matrix of the size 40 x 62 x 19,100 corresponding to frequencies 1-40, 62 channels, and, 19,100 samples.
  • nftChanlocs: MATLAB structure that contains the channel names and locations.
  • nftChannels: Vector with indices to the channels which feedback was based on.
  • nftFreqs: Vector with indices to the frequencies which feedback was based on.

File: demographics.csv

Description: Demographic information about the participants, with the variables: ID, age, gender, handedness, and education.

Various files: aggregated_data.zip

Description: For convenience, we also provide some of the aggregated data generated by the shared code files in the repository.

Software

MATLAB (version R2022b) was used for pre-processing of raw EEG data. Analyses were performed with R (version 4.2.1), JOPS package (version 0.1.2), dtwclust package (version 5.5.11), eegUtils package (version 0.4.6), and mgcv package (version 1.9-1).

Code

Pre-process the raw EEG files

finalPreprocessNFT.m

  • Inputs
    • Feature.mat Raw EEG files
  • Outputs
    • S + ID + Feature + avgFeedbackPowerdBASR.mat
    • S + ID + Feature + avgFeedbackPower.mat
  • Dependencies
    • fExtractFeedbackPowerWaveletCompletedB.m
    • extractFeedbackSamples.m #
    • blocks2samples.m # Blocks to sample indices
    • laplacian_perrinX.m # Spatial filter

Export averaged EEG power to a text file for further analysis

export_EEG_PowerforAnalysis.m

  • Inputs
    • S + ID + Feature + avgFeedbackPowerdBASR.mat
  • Outputs
    • newPipelineAvgPowerdB + Feature + N20ASR.txt

Fit B-spline models with V-curve smoothing of power time-series data and compute Bayesian CIs for each participants and feature, save results, especially coefficients, for further analysis

smoothV-CurvSplineClustering.R

  • Inputs
    • newPipelineAvgPowerdB + Feature + N20ASR.txt
  • Outputs
    • Feature + CoeffsSmoothV127.rds
    • Feature + FitSmoothV127.rds

Cluster the learners

clusteringLearners.R

  • Inputs
    • Feature + CoeffsSmoothV127.rds
    • Feature + FitSmoothV127.rds
  • Outputs
    • Feature + Clusters.csv

Export averaged EEG power (per feature) for all EEG channels to a text file for further analysis

exportAvgNFTbyChannel.m

  • Inputs
    • S + ID + Feature + feedbackPower.mat
  • Outputs
    • S + ID + Feature + NFTbyChannel.txt

Model coefficients by cluster with mgcv package (bam), save data for plots with topoplot and trendlines

smoothModelsForClustersCoeffsAndToposFINAL.R

  • Inputs
    • Feature + Clusters.csv
    • Feature + NFTbyChannel.txt
    • chanlocs.txt
  • Outputs
    • Feature + CoeffsbyClusters2.csv
    • Feature + ToposbyBlockandClusters2.csv
  • Dependencies
    • flipSMRAmplitudesLaterallyAndEvaluate.R

Create plots for each feature displaying topoplots and trendlines for the clusters

plotCoeffsandTopoplotsByClusteredData.m

  • Inputs
    • Feature + NFTsettings.mat
    • Feature + Clusters.csv
    • Feature + CoeffsbyClusters2.csv
    • Feature + ToposbyBlockandClusters2.csv
  • Outputs
    • Figure3 + Feature + .png
    • Figure3 + Feature + .svg

Create plots for each feature displaying change between first and last block for each frequency band in the controlled channels

figureChangeLastblockVsThreshold.R

  • Inputs
    • S + ID + Feature + NFTbyChannelFrequency.txt
    • Feature + Clusters.csv
  • Outputs
    • Feature + FreqBandChangeFINAL2.svg

Files

aggregated_data.zip

Files (29.2 GB)

Name Size
md5:baaf6600d28377b889643cc7b9e804d0
56.8 MB Preview Download
md5:4b73d487750d9317cf2b75958ebfead4
348 Bytes Preview Download
md5:9ff11cc7dbbf9b8e783c2a28c54be9ae
5.0 kB Download
md5:d243012d6d3b25f6b0283cfb1bbdd574
328 Bytes Preview Download
md5:3edac610fb1cda5d44e39393bcfeba8d
5.0 kB Download
md5:f5592c636cd3bf38456f017854b1a332
874 Bytes Download
md5:cfd427fb45e63eeb3e2992ed0be6bfa0
17.0 kB Download
md5:a4959525a14dd20c03092a9dfeda36fd
930 Bytes Preview Download
md5:e595591b24da43f23aa254e8db0f499d
2.0 kB Download
md5:ccd9a52cc185eafaa35a47a034336abb
1.6 kB Download
md5:83b500873234ba39d2011f80093d1fc8
645 Bytes Download
md5:4655401502c5914704246630857a721f
29.2 GB Preview Download
md5:052f8445d63e24818014560446d63dea
1.5 kB Download
md5:8cb39069da0baf2fcb31a36485fa6eb8
15.7 kB Download
md5:e4499bc9cf835f7a5307c62e7ce7b79f
5.3 kB Download
md5:98990ad1b4f60233cd06c58ccd5f9215
3.7 kB Download
md5:01bb9b3adb45eb7b185913a55f032689
3.3 kB Download
md5:55283d348381c61fe0cc198253f8ba4a
16.0 kB Download
md5:1c28dacbc85ffd47267cddc0138ddd95
7.7 kB Download
md5:5a0210f07aa3f51159b277df8efa430d
6.2 kB Download
md5:44af5e114ce1ddf514e5182012af43fa
308 Bytes Preview Download
md5:27ff067ba7cf0fa63feb4af8bf35dd6e
5.0 kB Download
md5:5df963b4680a0748ef4141273f680cf0
348 Bytes Preview Download
md5:1a5e7f5139fc10fa359bd539f74ad3e5
5.0 kB Download

Additional details

Funding

Knowledge Foundation
RECOG 20190099

Software

Programming language
MATLAB