OSCR

Opposing cortical forces: Alpha slowing and sensorimotor mu acceleration during motor-related BCI training.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches · all tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › Tracking alpha/mu dynamics ↔ EKFOT.m, the whole file · a weak match · score 0.68 · initial damping, process noise, measurement noise, covariance, optimized, oscillator
  2. [2] § Materials and methods › Extended Kalman filter based oscillator tracking ↔ EKFOT.m, the whole file · a weak match · score 0.65 · measurement noise covariances, Jacobians, damped, linearize, prediction, optimized
  3. [3] § Materials and methods › Extended Kalman filter based oscillator tracking ↔ SIM_EKFOT.m, the whole file · a weak match · score 0.54 · measurement noise covariances, linearize, uncertainty, prediction, trajectories, oscillator

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 85 lines · 2.4 KB · MIT · 2 matches

  1. function [J, Up] = EKFOT(X, Y, ignore, Fs)
  2. %EKFOT EKF oscillator tracking cost for GA optimization.
  3. %
  4. % [J, Up] = EKFOT(X, Y, ignore, Fs)
  5. %
  6. % Inputs
  7. % X : parameter vector [R2_ct, Q_ct, omega0, alpha0, P0scale]
  8. % R2_ct : continuous-time measurement noise intensity
  9. % Q_ct : continuous-time process noise intensity (scalar, shared)
  10. % omega0 : initial angular frequency [rad/s]
  11. % alpha0 : initial damping [1/s]
  12. % P0scale: scale factor for initial covariance
  13. % Y : signal (1 x N) or (N x 1)
  14. % ignore : number of initial samples to ignore in cost
  15. % Fs : sampling rate [Hz]
  16. %
  17. % Method
  18. % AR(2) resonator with time-varying omega, alpha estimated by EKF:
  19. % a1 = 2*exp(-alpha*Ts)*cos(omega*Ts)
  20. % a2 = -exp(-2*alpha*Ts)
  21. % State z = [x(k); x(k-1); omega; alpha]
  22. % y(k) = x(k) + v(k)
  23. %
  24. % Cost
  25. % J = ||innovation(ignore:end)|| / ||Y(ignore:end)||
  26. % --- Continuous -> discrete scaling ---
  27. Ts = 1/Fs;
  28. R2_ct = X(1);
  29. Q_ct = X(2);
  30. R2 = R2_ct * Ts; % measurement noise variance per sample
  31. R1 = Q_ct * Ts * eye(4); % process noise covariance per sample
  32. omega = X(3); % [rad/s] (despite old comment "rad/sample")
  33. alpha = X(4); % [1/s]
  34. pin = X(end); % P0 scale
  35. % --- Init ---
  36. z = [0; 0; omega; alpha]; % [x(k); x(k-1); omega; alpha]
  37. P = pin * eye(4);
  38. H = [1 0 0 0];
  39. N = numel(Y);
  40. Y = double(Y(:)'); % ensure row
  41. e = zeros(1, N);
  42. for k = 3:N
  43. % --- Predict ---
  44. a11 = 2*exp(-z(4)*Ts)*cos(z(3)*Ts);
  45. a12 = -exp(-2*z(4)*Ts);
  46. A2 = [a11, a12; 1, 0];
  47. x_pred = A2 * z(1:2);
  48. z_pred = [x_pred; z(3); z(4)];
  49. % --- Linearize (Jacobian) ---
  50. F = eye(4);
  51. F(1:2,1:2) = A2;
  52. F(1,3) = -2*exp(-z(4)*Ts)*sin(z(3)*Ts)*Ts * z(1);
  53. F(1,4) = -2*Ts*exp(-z(4)*Ts)*cos(z(3)*Ts)*z(1) ...
  54. + 2*Ts*exp(-2*z(4)*Ts)*z(2);
  55. P_pred = F*P*F' + R1;
  56. % --- Update ---
  57. y_pred = H * z_pred;
  58. inov = Y(k) - y_pred;
  59. S = H*P_pred*H' + R2; % scalar
  60. K = (P_pred*H') / S; % 4x1
  61. z = z_pred + K*inov;
  62. P = (eye(4)-K*H)*P_pred;
  63. % --- Wrap omega (discrete-time angle wrapping) ---
  64. z(3) = wrapToPiLocal(z(3)*Ts)/Ts;
  65. e(k) = inov;
  66. end
  67. Up = e(ignore:end);
  68. J = norm(Up) / norm(Y(ignore:end));
  69. end

EKFOT.m at commit e37663f, under MIT · at the source

Overview

Authors: Kyriaki Kostoglou1, Gernot R Müller-Putz1,2
  1. Institute of Neural Engineering, Graz University of Technology, Graz, Austria
  2. BioTechMed, Graz, Austria
Institutions: Graz University of Technology (Austria); BioTechMed-Graz (Austria)
Journal: PLoS computational biology, volume 22, issue 4, article e1014112
Dates: received 10 August 2025; accepted 9 March 2026; published online 1 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pcbi.1014112 · PMID 41920806 · PMCID PMC13065009 · OpenAlex W7147058873
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, fMRI & imaging, Machine learning
MeSH: Alpha Rhythm*, Brain-Computer Interfaces*, Sensorimotor Cortex*, Calibration, Computational Biology, Electroencephalography, Humans (* major topic)
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 62 references in the paper

Abstract

Brain-computer interfaces (BCIs) depend on the reliable decoding of brain activity, yet key rhythms like alpha and mu are not spectrally static and can shift with cognitive and motor demands. Here, we investigated within-session changes in instantaneous alpha/mu frequency and magnitude during motor-related BCI calibration using an oscillator-tracking framework based on an extended Kalman filter (EKF). We applied this method to four public EEG datasets spanning motor execution and imagery tasks. Across all datasets, we observed consistent increases in mu instantaneous frequency and magnitude over central sensorimotor regions, indicative of motor engagement and possible training-related neuroplasticity. In contrast, posterior and surrounding cortical areas often showed alpha slowing, suggestive of declining vigilance or cognitive fatigue, or alternatively, resource reallocation via inhibition of task-irrelevant regions. These opposing spatial trends underscore the functional heterogeneity of alpha-band activity across the cortex. Our results highlight the potential of real-time frequency tracking not only to improve decoding accuracy but also to monitor neurophysiological state changes and guide adaptive adjustments in BCI calibration paradigms.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

kyriakikostoglou/EKF-Oscillator-Tracking

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: f6af8352d39a6ad99d40618acfcff9fc37a6a295, 1 April 2026
Languages: MATLAB (6)
Size: 8 files, 6 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Optimization Toolbox (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

graz-bci/EKF-Oscillator-Tracking

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: e37663f3bc5bc04c754dab0747afceb8a7d326c8, 1 April 2026
Languages: MATLAB (6)
Size: 8 files, 6 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Optimization Toolbox (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 12 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data Availability

All datasets used in this study are publicly available. The Schalk2004 dataset is available from PhysioNet (https://physionet.org/content/eegmmidb/1.0.0/). The Dreyer2023 dataset is available on the general-purpose open-access repository Zenodo (https://doi.org/10.5281/zenodo.8089820). The Schwarz2020 and the Pulferer2022 dataset can be accessed via the BNCI Horizon 2020 database (http://bnci-horizon-2020.eu/database/data-sets, #27 and #32, respectively). No new data was generated in this study. The analysis code is publicly available at: https://github.com/kyriakikostoglou/EKF-Oscillator-Tracking and https://github.com/graz-bci/EKF-Oscillator-Tracking.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 7 MeSH terms, 62 references.

Cite

This paper

Kostoglou, K., & Müller-Putz, G. R. (2026). Opposing cortical forces: Alpha slowing and sensorimotor mu acceleration during motor-related BCI training. PLoS computational biology, 22(4), e1014112. https://doi.org/10.1371/journal.pcbi.1014112

BibTeX

@article{kostoglou2026opposing,
author = {Kostoglou, Kyriaki and Müller-Putz, Gernot R},
title = {{Opposing cortical forces: Alpha slowing and sensorimotor mu acceleration during motor-related BCI training}},
journal = {PLoS computational biology},
year = {2026},
month = apr,
volume = {22},
number = {4},
pages = {e1014112},
publisher = {PLOS},
issn = {1553-734X},
doi = {10.1371/journal.pcbi.1014112},
url = {https://doi.org/10.1371/journal.pcbi.1014112},
pmid = {41920806},
pmcid = {PMC13065009}
}

RIS

TY - JOUR
AU - Kostoglou, Kyriaki
AU - Müller-Putz, Gernot R
TI - Opposing cortical forces: Alpha slowing and sensorimotor mu acceleration during motor-related BCI training
T2 - PLoS computational biology
J2 - PLoS Comput Biol
PY - 2026
DA - 2026/04/01
VL - 22
IS - 4
SP - e1014112
SN - 1553-734X
PB - PLOS
DO - 10.1371/journal.pcbi.1014112
UR - https://doi.org/10.1371/journal.pcbi.1014112
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pcbi.1014112",
"type": "article-journal",
"title": "Opposing cortical forces: Alpha slowing and sensorimotor mu acceleration during motor-related BCI training",
"container-title": "PLoS computational biology",
"author": [
{
"family": "Kostoglou",
"given": "Kyriaki"
},
{
"family": "Müller-Putz",
"given": "Gernot R"
}
],
"container-title-short": "PLoS Comput Biol",
"volume": "22",
"issue": "4",
"page": "e1014112",
"DOI": "10.1371/journal.pcbi.1014112",
"PMID": "41920806",
"PMCID": "PMC13065009",
"ISSN": "1553-734X",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pcbi.1014112",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
1
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.3390/brainsci16080873
Evaluating Validation Strategies in Motor Imagery EEG: A Full-Cohort GAF-PLV Analysis and Matched Sensitivity Study.
Journal: Brain sciences
In common: DOI 10.13026/c28g6p, physionet.org/content/eegmmidb, EEG, 2 references
[2] doi:10.1093/nc/niag036
Neurodynamic profiles in the alpha band distinguish different forms of meditation.
Journal: Neuroscience of consciousness
In common: systems, EEG, 7 references
[3] doi:10.1093/cercor/bhag113 [code]
Long-term reliability and stability of parameterized resting state EEG: evidence from a five-year follow-up.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: EEG, 6 references
[4] doi:10.1038/s41467-026-75435-5 [code]
Sensory-guided human-machine joint learning accelerates the acquisition of motor imagery brain computer interface control.
Journal: Nature communications
In common: EEG, 6 references
[5] doi:10.7554/elife.108408 [code]
Frequency and laminar profile of feature-specific visual activity revealed by interleaved EEG-fMRI.
Journal: eLife
In common: systems, EEG, 6 references
[6] doi:10.3390/s26134019 [code]
NeuroStat: An Open-Source EEG Connectivity Platform for Randomised Controlled Trials.
Journal: Sensors (Basel, Switzerland)
In common: physionet.org/content/eegmmidb, EEG, 4 references
[7] doi:10.1016/j.isci.2026.116166 [code]
High-frequency EEG synchronization modes as a stable biometric signature in humans.
Journal: iScience
In common: physionet.org/content/eegmmidb, EEG, 3 references
[8] doi:10.3389/fnhum.2026.1811759
MCFANet: a multi-class fusion attention network for motor imagery EEG classification.
Journal: Frontiers in human neuroscience
In common: bnci-horizon-2020.eu/database/data-sets, EEG, 2 references
[9] doi:10.3390/s26134045
Brain Signal for Secure EEG Biometric Authentication: A Comprehensive Survey.
Journal: Sensors (Basel, Switzerland)
In common: physionet.org/content/eegmmidb, EEG, 3 references
[10] doi:10.1038/s41598-026-56070-y [code]
SSDLabeler: realistic semi-synthetic data generation for multi-label artifact classification in EEG.
Journal: Scientific reports
In common: physionet.org/content/eegmmidb, EEG, 3 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.