OSCR

Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study.

Code ↔ Paper

7 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 7 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Materials and methods › MEG data acquisition and preprocessing ↔ 1_osl_ephys/1_preprocessing.py, lines 18–90 · score 0.91 · notch filtered, Bad segments, Bad channels, MNE, osl ephys, 125 Hz
  2. [2] § Materials and methods › Hidden Markov models › Implementation ↔ 2_osl_dynamics/1_prepare_data.py, lines 57–58 · score 0.64 · TFRecord, sequence length, OSL Dynamics, training, HMM
  3. [3] § Materials and methods › Hidden Markov models › Implementation ↔ 2_osl_dynamics/2_train_hmm_revision.py, lines 14–54 · score 0.59 · sequence length, OSL Dynamics, TFRecord, fitting, training, batch
  4. [4] § Materials and methods › Data analysis ↔ 2_osl_dynamics/5_calc_post_hoc.py, lines 78–93 · score 0.58 · Power spectral densities, multitaper, tapered, weighted
  5. [5] § Materials and methods › Hidden Markov models › Implementation ↔ 2_osl_dynamics/2_train_hmm_revision.py, lines 14–54 · score 0.57 · free energy, epoch, probabilities, training, batches, covariances
  6. [6] § Materials and methods › MEG data acquisition and preprocessing ↔ 1_osl_ephys/3_source_reconstruction.py, lines 47–96 · score 0.50 · symmetric, beamforming, orthogonalization, rank, reconstruct, space
  7. [7] § Materials and methods › MEG data acquisition and preprocessing ↔ 1_osl_ephys/3_source_reconstruction_revise.py, the whole file · a weak match · score 0.50 · symmetric, beamforming, orthogonalization, rank, reconstruct, space

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

Python · 54 lines · 1.4 KB · no license · 2 matches

The registry keeps no copy of this file: its repository has no license, so its authors keep all their rights to it. Your browser shows it from its source, with JavaScript.

It can be read at the source: 2_osl_dynamics/2_train_hmm_revision.py.

Overview

Authors: Hojjatollah Sadeqi1,2, Babak Ahmadi1,2,3, Zohreh Morshedizad1,2, Rachael Burke1,2, Bhavana Patel1,2, Nikolaus R McFarland1,2, Melissa J Armstrong1,2, Abbas Babajani-Feremi1,2
  1. Department of Neurology, University of Florida, Gainesville, FL 32611, USA
  2. The Norman Fixel Institute of Neurological Diseases, University of Florida Health, Gainesville, FL 32608, USA
  3. Department of Industrial and Systems Engineering, University of Florida, Gainesville, FL 32611, USA
Institutions: University of Florida Health (United States); University of Florida (United States)
Journal: Brain communications, volume 8, issue 4, article fcag236
Dates: received 23 September 2025; accepted 7 May 2026; published online 24 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/braincomms/fcag236 · PMID 42491938 · PMCID PMC13378770 · OpenAlex W7165801027
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: MEG (modality), human (organism), Alzheimer's / dementia (population)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, fMRI & imaging
Keywords: cognitive fluctuations (CF), dynamic functional connectivity, hidden Markov modelling (HMM), magnetoencephalography (MEG), Lewy body dementia (LBD)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NINDS NIH HHS (R01 NS121099); NIA NIH HHS (R44 AG062072, P30 AG066506, R01 AG068128, R01 AG089380, R01 AG083828); Biotechnology and Biological Sciences Research Council (BB/H008217/1)
Citations: not cited yet (Europe PMC); 83 references in the paper

Abstract

Cognitive fluctuations are a hallmark clinical feature of Lewy body dementia (LBD), yet their underlying neural mechanisms remain poorly understood. This study aimed to identify dynamic, state-dependent neural signatures of cognitive fluctuations in LBD using magnetoencephalography and dynamic functional connectivity based on hidden Markov modelling. Resting-state magnetoencephalography data were acquired from individuals with LBD, Parkinson’s disease without dementia and cognitively normal controls. Hidden Markov modelling was used to identify transient brain states followed by spectral analyses across regions and states. Additionally, associations between regional spectral power and cognitive fluctuations severity, measured by the Clinician Assessment of Fluctuation, were assessed. Patients with LBD exhibited a distinct pattern of brain dynamics, particularly in two states (States 2 and 6), characterized by increased fractional occupancy of State 2 and markedly reduced occupancy of State 6, contrasting with the more distributed state engagement observed in Parkinson’s disease and normal controls. Spectral analyses revealed widespread slowing in LBD, with elevated theta/beta power ratios in frontal, parietal and visual cortices—most pronounced in States 2 and 6. Region-specific theta/beta power ratio elevations were identified in the anterior cingulate, medial prefrontal cortex, posterior cingulate, dorsal visual stream and auditory cortex. Critically, Clinician Assessment of Fluctuation scores correlated positively with spectral power in low frequency (δ and θ) and negatively with power in the high frequency (α and β), particularly in the ventral visual stream, default mode network hubs and sensorimotor regions. These findings reveal dynamic and spatially specific electrophysiological abnormalities in LBD closely linked to cognitive fluctuations severity, suggesting that magnetoencephalography-hidden-Markov-model characteristics hold promise as biomarkers for diagnosis, monitoring and therapeutic targeting in LBD.

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

Repository

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

sadeqi60/MEG_HMM_LBD

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: f3cb5a03419aea21585549eabd3492360e210030, 1 August 2026
Languages: Python (12), R (10)
Size: 24 files, 22 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: OHBA Software Library (OSL) (6 files), broom (4 files), NumPy (4 files), ggseg (2 files), pandas (2 files), tidyverse (2 files), caret (1 file), cowplot (1 file), easystats (1 file), ggpubr (1 file), igraph (1 file), MNE-Python (1 file), patchwork (1 file), Plotly (1 file), pROC (1 file), psych (1 file), randomForest (1 file), reshape2 (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
23 files, not copied: shown from their source

OSCR keeps no copy of these files: this repository has no license that allows it. The reader above shows each one from its source, fetched by your browser at commit f3cb5a0, when its fingerprint is the one OSCR verified. How this works.

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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 22 scripts, each with its path and the digest of its content;
  • 7 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

No dataset and no data link were found in the paper.

Data availability

The preprocessing scripts, hidden Markov model (HMM) analysis code and visualization pipelines used in this study are openly available in a dedicated GitHub repository: https://github.com/sadeqi60/MEG_HMM_LBD.

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, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 5 keywords, 3 funders, 77 references.

Cite

This paper

Sadeqi, H., Ahmadi, B., Morshedizad, Z., Burke, R., Patel, B., McFarland, N. R., Armstrong, M. J., & Babajani-Feremi, A. (2026). Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study. Brain communications, 8(4), fcag236. https://doi.org/10.1093/braincomms/fcag236

BibTeX

@article{sadeqi2026dynamic,
author = {Sadeqi, Hojjatollah and Ahmadi, Babak and Morshedizad, Zohreh and Burke, Rachael and Patel, Bhavana and McFarland, Nikolaus R and Armstrong, Melissa J and Babajani-Feremi, Abbas},
title = {{Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study}},
journal = {Brain communications},
year = {2026},
month = jun,
volume = {8},
number = {4},
pages = {fcag236},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/braincomms/fcag236},
url = {https://doi.org/10.1093/braincomms/fcag236},
pmid = {42491938},
pmcid = {PMC13378770}
}

RIS

TY - JOUR
AU - Sadeqi, Hojjatollah
AU - Ahmadi, Babak
AU - Morshedizad, Zohreh
AU - Burke, Rachael
AU - Patel, Bhavana
AU - McFarland, Nikolaus R
AU - Armstrong, Melissa J
AU - Babajani-Feremi, Abbas
TI - Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/06/24
VL - 8
IS - 4
SP - fcag236
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/braincomms/fcag236
UR - https://doi.org/10.1093/braincomms/fcag236
LA - en
ER -

CSL-JSON

{
"id": "10.1093/braincomms/fcag236",
"type": "article-journal",
"title": "Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study",
"container-title": "Brain communications",
"author": [
{
"family": "Sadeqi",
"given": "Hojjatollah"
},
{
"family": "Ahmadi",
"given": "Babak"
},
{
"family": "Morshedizad",
"given": "Zohreh"
},
{
"family": "Burke",
"given": "Rachael"
},
{
"family": "Patel",
"given": "Bhavana"
},
{
"family": "McFarland",
"given": "Nikolaus R"
},
{
"family": "Armstrong",
"given": "Melissa J"
},
{
"family": "Babajani-Feremi",
"given": "Abbas"
}
],
"container-title-short": "Brain Commun",
"volume": "8",
"issue": "4",
"page": "fcag236",
"DOI": "10.1093/braincomms/fcag236",
"PMID": "42491938",
"PMCID": "PMC13378770",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/braincomms/fcag236",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
24
]
]
}
}

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.1002/hbm.70516 [code]
Effects of Age on Resting-State Cortical Networks.
Journal: Human brain mapping
In common: OHBA Software Library (OSL), MNE-Python, pandas, 1 other tool, MEG, 11 references
[2] doi:10.1162/imag.a.1190 [code]
Canonical Hidden Markov Model Networks for studying M/EEG.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: OHBA Software Library (OSL), MNE-Python, pandas, 1 other tool, MEG, 9 references
[3] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: randomForest, pROC, igraph, 9 other tools
[4] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: randomForest, caret, igraph, 8 other tools
[5] doi:10.1093/nc/niag029 [code]
A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.
Journal: Neuroscience of consciousness
In common: ggseg, easystats, broom, 7 other tools, MEG, 1 reference
[6] doi:10.1002/hbm.70605 [code]
BrainEnrich: Revealing Biological Insights for Imaging-Derived Phenotypes Through Transcriptomic Enrichment.
Journal: Human brain mapping
In common: ggseg, easystats, igraph, 8 other tools
[7] doi:10.1093/braincomms/fcag146 [code]
Convergent structural brain alterations in chronic pain: a multi-metric individual participant data meta-analysis.
Journal: Brain communications
In common: ggseg, pROC, caret, 6 other tools
[8] doi:10.1162/imag.a.1237 [code]
Modelling discrete states and long-term dynamics in functional brain networks.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: MNE-Python, pandas, NumPy, MEG, 8 references
[9] doi:10.3390/ijms27104466 [code]
Uncovering the Key Circuit FOSL2/FOS/EGR3/EGR1, Contributing to the Hyperexcitability of Excitatory Neurons in the Epileptic Temporal Cortex and Hippocampus.
Journal: International journal of molecular sciences
In common: pROC, caret, igraph, 7 other tools
[10] doi:10.1016/j.isci.2026.115657 [code]
Integration of machine learning to develop a disulfidptosis model for predicting glioma prognosis, immunotherapy response, and drug.
Journal: iScience
In common: pROC, psych, igraph, 7 other tools

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.