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.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 3 matches · all tie a paragraph to a whole file without 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 · block oscr:b:J6AB2KKYA85M2-S · Report a mismatch
  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 · block oscr:b:J6AB2KKYA85M2-S · Report a mismatch
  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 · block oscr:b:TMCJ2Q0M6H3HK-T · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: 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 (how the code is found and 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.3389/fnhum.2022.915815
Using linear parameter varying autoregressive models to measure cross frequency couplings in EEG signals.
Journal: Frontiers in human neuroscience
In common: bnci-horizon-2020.eu/database/data-sets, EEG, 2 references, author Kyriaki Kostoglou
[2] doi:10.1523/eneuro.0159-22.2022 [code]
Visual Working Memory Recruits Two Functionally Distinct Alpha Rhythms in Posterior Cortex.
Journal: eNeuro
In common: EEG, 10 references
[3] doi:10.1038/s41597-023-02445-z [code]
A large EEG database with users' profile information for motor imagery brain-computer interface research.
Journal: Scientific data
In common: Zenodo 8089820, EEG, 5 references
[4] 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
[5] doi:10.3389/fpsyg.2025.1598196 [code]
Investigating mu and alpha oscillations as indicators of intra-individual success and inter-individual ability in motor imagery performance.
Journal: Frontiers in psychology
In common: Optimization Toolbox, EEG, 7 references
[6] doi:10.1007/s12021-025-09733-6 [code]
Estimation of Task-Related Dynamic Brain Connectivity via Data Inflation and Classification Model Explainability.
Journal: Neuroinformatics
In common: DOI 10.13026/c28g6p, physionet.org/content/eegmmidb, EEG, 1 reference
[7] doi:10.3390/s25113389
Gate Control Mechanisms of Autoencoders for EEG Signal Reconstruction.
Journal: Sensors (Basel, Switzerland)
In common: DOI 10.13026/c28g6p, physionet.org/content/eegmmidb, EEG, 1 reference
[8] doi:10.1155/2021/1160454 [code]
CNN-Based Personal Identification System Using Resting State Electroencephalography.
Journal: Computational intelligence and neuroscience
In common: DOI 10.13026/c28g6p, physionet.org/content/eegmmidb, EEG, 1 reference
[9] doi:10.1038/s41598-023-45374-y [code]
Videoconference fatigue from a neurophysiological perspective: experimental evidence based on electroencephalography (EEG) and electrocardiography (ECG).
Journal: Scientific reports
In common: EEG, 2 references, author Kyriaki Kostoglou
[10] doi:10.3389/fncom.2022.882290
Deep Residual Convolutional Neural Networks for Brain-Computer Interface to Visualize Neural Processing of Hand Movements in the Human Brain.
Journal: Frontiers in computational neuroscience
In common: DOI 10.13026/c28g6p, systems, 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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112.svg)](https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112.svg
   :target: https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112"><img src="https://openscicode.org/badge/doi/10.1371/journal.pcbi.1014112.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

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