Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation.
The 1 match
- [1] § METHODS › Statistical Analysis ↔ Code/Modeling_Public.R, lines 189–268 · score 0.55 · InStrength, OutStrength, PDC, temporal network, closeness, node
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
R · 372 lines · 9.4 KB · no license · 1 match
- library(qgraph)
- library(tidyverse)
- library(kableExtra)
- library(here)
- library(psychonetrics)
- library(bootnet)
- rm(list = ls())
- source("Code/Test2/Helpers.R")
- Axu_names <- c("Subject", "Session_Number", "Induction")
- DV_names <- c("SMS_Mind", "SMS_Body")
- IV_names <- c(
- "Temp_Theta",
- "Front_Theta",
- "Post_Theta",
- "Front_Alpha",
- "Temp_Alpha",
- "Post_Alpha"
- )
- dat <- readRDS(here("Clean_Data", "Test2_dat_clean.rds")) |>
- mutate(
- Session_Number = factor(Session_Number, levels = 1:max(Session_Number))
- ) |>
- mutate(Subject = factor(Subject, levels = unique(Subject))) |>
- ungroup()
- unique(dat$Session_Number)
- labels <- dat |> select(IV_names, DV_names) |> colnames()
- labels_SMS <- c(IV_names, "SMS")
- dat_FA_Network <- dat |>
- filter(Induction == "FA") |>
- select(Subject, Session_Number, IV_names, DV_names)
- dat_OM_Network <- dat |>
- filter(Induction == "OM") |>
- select(Subject, Session_Number, IV_names, DV_names)
- dat_FA_Network_SMS <- dat_FA_Network |>
- mutate(SMS = SMS_Body + SMS_Mind) |>
- select(-SMS_Body, -SMS_Mind)
- dat_OM_Network_SMS <- dat_OM_Network |>
- mutate(SMS = SMS_Body + SMS_Mind) |>
- select(-SMS_Body, -SMS_Mind)
- N_FA <- nrow(dat_FA_Network)
- N_OM <- nrow(dat_OM_Network)
- mod1_FA_org_con <- gvar(
- data = dat_FA_Network,
- vars = labels,
- idvar = "Subject",
- estimator = "FIML",
- standardize = "z",
- storedata = TRUE
- ) |>
- fixpar(matrix = "beta", row = 1:6, col = 7, value = 0) |>
- fixpar(matrix = "beta", row = 1:6, col = 8, value = 0) |>
- runmodel()
- mod1_FA_org_con_SMS <- gvar(
- data = dat_FA_Network_SMS,
- vars = labels_SMS,
- idvar = "Subject",
- estimator = "FIML",
- standardize = "z",
- storedata = TRUE
- ) |>
- fixpar(matrix = "beta", row = 1:6, col = 7, value = 0) |>
- runmodel()
- FA_temporal_network_str_full <- getmatrix(
- mod1_FA_org_con,
- matrix = "PDC"
- ) |>
- matrix_rename(labels)
- FA_temporal_network_str <- getmatrix(
- mod1_FA_org_con,
- matrix = "PDC",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels)
- FA_temporal_network_str_SMS <- getmatrix(
- mod1_FA_org_con_SMS,
- matrix = "PDC",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels_SMS)
- num_non0(FA_temporal_network_str_full)
- num_non0(FA_temporal_network_str)
- qgraph(FA_temporal_network_str_full, labels = labels)
- qgraph(
- FA_temporal_network_str,
- labels = labels,
- filename = here("Figure", "FA_temporal_network_str"),
- filetype = "jpg"
- )
- FA_temporal_layout <- qgraph(
- FA_temporal_network_str,
- labels = labels
- )$layout
- qgraph(
- FA_temporal_network_str_SMS,
- labels = labels_SMS,
- filename = here("Figure", "FA_temporal_network_str_SMS"),
- filetype = "jpg"
- )
- FA_contem_network_str_full <- getmatrix(mod1_FA_org_con, matrix = "omega_zeta")
- FA_contem_network_str <- getmatrix(
- mod1_FA_org_con,
- matrix = "omega_zeta",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels)
- qgraph(
- FA_contem_network_str,
- labels = labels,
- filename = here("Figure", "FA_contem_network_str"),
- filetype = "jpg"
- )
- FA_contem_network_str_SMS <- getmatrix(
- mod1_FA_org_con_SMS,
- matrix = "omega_zeta",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels_SMS)
- qgraph(
- FA_contem_network_str_SMS,
- labels = labels_SMS,
- filename = here("Figure", "FA_contem_network_str_SMS"),
- filetype = "jpg"
- )
- centrality_temporal_fa <- qgraph::centralityTable(FA_temporal_network_str) |>
- filter(
- measure %in% c("InStrength", "OutStrength", "Betweenness", "Closeness")
- )
- centrality_temporal_fa_tbl <- centrality_temporal_fa |>
- select(node, measure, value) |>
- pivot_wider(names_from = measure, values_from = value) |>
- mutate(node_label = labels) |>
- dplyr::relocate(node_label, .after = node)
- centrality_contem_fa <- qgraph::centralityTable(FA_contem_network_str) |>
- filter(measure %in% c("Strength", "Betweenness", "Closeness"))
- centrality_contem_fa_tbl <- centrality_contem_fa |>
- select(node, measure, value) |>
- pivot_wider(names_from = measure, values_from = value) |>
- mutate(node_label = labels) |>
- dplyr::relocate(node_label, .after = node)
- mod1_OM_org_con <- gvar(
- data = dat_OM_Network,
- vars = labels,
- idvar = "Subject",
- estimator = "FIML",
- standardize = "z"
- ) |>
- fixpar(matrix = "beta", row = 1:6, col = 7, value = 0) |>
- fixpar(matrix = "beta", row = 1:6, col = 8, value = 0) |>
- runmodel()
- mod1_OM_org_con_SMS <- gvar(
- data = dat_OM_Network_SMS,
- vars = labels_SMS,
- idvar = "Subject",
- estimator = "FIML",
- standardize = "z"
- ) |>
- fixpar(matrix = "beta", row = 1:6, col = 7, value = 0) |>
- fixpar(matrix = "beta", row = 1:6, col = 8, value = 0) |>
- runmodel()
- OM_temporal_network_str <- getmatrix(
- mod1_OM_org_con,
- matrix = "PDC",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels)
- qgraph(
- OM_temporal_network_str,
- labels = labels,
- layout = FA_temporal_layout,
- filename = here("Figure", "OM_temporal_network_str"),
- filetype = "jpg"
- )
- OM_temporal_network_str_SMS <- getmatrix(
- mod1_OM_org_con_SMS,
- matrix = "PDC",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels_SMS)
- qgraph(
- OM_temporal_network_str_SMS,
- labels = labels_SMS,
- filename = here("Figure", "OM_temporal_network_str_SMS"),
- filetype = "jpg"
- )
- OM_contem_network_str <- getmatrix(
- mod1_OM_org_con,
- matrix = "omega_zeta",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels)
- qgraph(
- OM_contem_network_str,
- labels = labels,
- filename = here("Figure", "OM_contem_network_str"),
- filetype = "jpg"
- )
- OM_contem_network_str_SMS <- getmatrix(
- mod1_OM_org_con_SMS,
- matrix = "omega_zeta",
- threshold = TRUE,
- alpha = .05
- ) |>
- matrix_rename(labels_SMS)
- qgraph(
- OM_contem_network_str_SMS,
- labels = labels_SMS,
- filename = here("Figure", "OM_contem_network_str_SMS"),
- filetype = "jpg"
- )
- centrality_temporal_OM <- qgraph::centralityTable(OM_temporal_network_str) |>
- filter(
- measure %in% c("InStrength", "OutStrength", "Betweenness", "Closeness")
- )
- centrality_temporal_OM_tbl <- centrality_temporal_OM |>
- select(node, measure, value) |>
- pivot_wider(names_from = measure, values_from = value) |>
- mutate(node_label = labels) |>
- dplyr::relocate(node_label, .after = node)
- centrality_contem_OM <- qgraph::centralityTable(OM_contem_network_str) |>
- filter(measure %in% c("Strength", "Strength", "Betweenness", "Closeness"))
- centrality_contem_OM_tbl <- centrality_contem_OM |>
- select(node, measure, value) |>
- pivot_wider(names_from = measure, values_from = value) |>
- mutate(node_label = labels) |>
- dplyr::relocate(node_label, .after = node)
- load("Clean_Data/Network_Structures_Bootstrapped.RData")
- get_non0_edges_info <- function(matrix) {
- colnames(matrix) <- rownames(matrix) <- labels
- as.data.frame(matrix) |>
- rownames_to_column("Source") |>
- pivot_longer(-Source, names_to = "Target", values_to = "Beta") |>
- filter(Beta != 0)
- }
- get_correct_sign <- function(original, bootstrap, network) {
- if (network == "temporal") {
- which_matrix = "beta"
- } else if (network == "contem") {
- which_matrix = "omega_zeta"
- } else if (network == "between") {
- which_matrix = "exo_cholesky"
- } else {
- stop(
- "Invalid network type. Choose from 'temporal', 'contem', or 'between'."
- )
- }
- bootstrap_table <-
- bootstrap |>
- filter(matrix == which_matrix) |>
- filter(var1 != var2) |>
- select(
- Source = var2,
- Target = var1,
- prop_non0,
- prop_non0_pos,
- prop_non0_neg
- ) |>
- mutate(
- Source = str_replace(Source, "_lag1", ""),
- Target = str_replace(Target, "_lag1", "")
- )
- get_non0_edges_info(original) |>
- left_join(bootstrap_table) |>
- filter(!is.na(prop_non0)) |>
- mutate(prop_correct_sign = ifelse(Beta > 0, prop_non0_pos, prop_non0_neg))
- }
- get_correct_sign(
- original = FA_temporal_network_str,
- bootstrap = FA_bootstrap_networks_agrregate_params,
- network = "temporal"
- ) |>
- summarize(
- Mean_prop_correct_sign = mean(prop_correct_sign),
- Min_prop_correct_sign = min(prop_correct_sign),
- Max_prop_correct_sign = max(prop_correct_sign),
- ) -> FA_temporal_prop_correct_sign
- get_correct_sign(
- original = FA_contem_network_str,
- bootstrap = FA_bootstrap_networks_agrregate_params,
- network = "contem"
- ) |>
- summarize(
- Mean_prop_correct_sign = mean(prop_correct_sign),
- Min_prop_correct_sign = min(prop_correct_sign),
- Max_prop_correct_sign = max(prop_correct_sign),
- ) -> FA_contem_prop_correct_sign
- rbind(
- FA_temporal_prop_correct_sign,
- FA_contem_prop_correct_sign
- ) |>
- mutate(Network = c("Temporal", "Contemporaneous")) |>
- select(Network, everything()) -> FA_correct_sign_summary
- get_correct_sign(
- original = OM_temporal_network_str,
- bootstrap = OM_bootstrap_networks_agrregate_params,
- network = "temporal"
- ) |>
- summarize(
- Mean_prop_correct_sign = mean(prop_correct_sign),
- Min_prop_correct_sign = min(prop_correct_sign),
- Max_prop_correct_sign = max(prop_correct_sign),
- ) -> OM_temporal_prop_correct_sign
- get_correct_sign(
- original = OM_contem_network_str,
- bootstrap = OM_bootstrap_networks_agrregate_params,
- network = "contem"
- ) |>
- summarize(
- Mean_prop_correct_sign = mean(prop_correct_sign),
- Min_prop_correct_sign = min(prop_correct_sign),
- Max_prop_correct_sign = max(prop_correct_sign),
- ) -> OM_contem_prop_correct_sign
- rbind(
- OM_temporal_prop_correct_sign,
- OM_contem_prop_correct_sign
- ) |>
- mutate(Network = c("Temporal", "Contemporaneous")) |>
- select(Network, everything()) -> OM_correct_sign_summary
- save(
- list = ls(all.names = TRUE),
- file = "Clean_Data/FA_Network_Structures.RData"
- )
Modeling_Public.R, no license · at the source
Overview
- Department of Psychological Science, University of Arkansas, Fayetteville, AR, USA
- Department of Psychology, University of Maryland, College Park, MD, USA
- Department of Counseling, Leadership, and Research Methods, University of Arkansas, Fayetteville, AR, USA
- Department of Psychological and Brain Sciences, Washington University in St. Louis, St. Louis, MO, USA
Abstract
Neural oscillatory activity within the alpha and theta bands have long been considered putative markers of state mindfulness, yet understanding of their functional role has been limited by the challenges of linking objective brain indices with subjective experience. To address this gap, the current study applied longitudinal network analysis to a unique dataset from 16 novices who completed up to 24 laboratory training sessions of both focused attention (FA) and open monitoring (OM) meditation, during which both EEG and self-report measures of state mindfulness quality were collected. This approach enabled the parsimonious characterization of both cross-lagged temporal (across-session) and contemporaneous (within-session) influences of regional spectral power on state mindfulness. The analysis revealed distinguishable neurophenomenological network structures for each practice, providing data-driven support for their theoretical differentiation. These distinctions emerged alongside shared commonalities to both practices, including strong autoregressive effects for state mindfulness, consistent with training-related skill acquisition, and opposing regional influences of frontal versus posterior alpha power. Taken together, these findings challenge monolithic interpretations of meditation-related EEG activity, advancing a more nuanced neurophenomenological approach wherein the functional significance of neural activity is dynamically situated within the specific type and time course of training.
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 1 match between paragraphs and lines of code.
OSF buxah
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
2 files
- Code/
Helpers_Public.R , R, 33 lines - Code/
Modeling_Public.R , R, 372 lines, 1 match
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;
- 2 scripts, each with its path and the digest of its content;
- 1 match 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
All data and analytic code, including full model specifications and additional visualizations, are publicly available on the OSF at https://
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, 4 authors, 5 keywords, 1 funder, 69 references.
Cite
This paper
Lin, Y., White, M. L., Zhang, J., & Braver, T. S. (2026). Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation. Network neuroscience (Cambridge, Mass.), 10(3), 655-682. https://
BibTeX
@article{lin2026neural,
author = {Lin, Yanli and White, Marne L and Zhang, Jihong and Braver, Todd S},
title = {{Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation}},
journal = {Network neuroscience (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {10},
number = {3},
pages = {655--682},
publisher = {MIT Press},
issn = {2472-1751},
doi = {10.1162/
url = {https://
pmid = {42529651},
pmcid = {PMC13418251}
}
RIS
TY - JOUR
AU - Lin, Yanli
AU - White, Marne L
AU - Zhang, Jihong
AU - Braver, Todd S
TI - Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation
T2 - Network neuroscience (Cambridge, Mass.)
J2 - Netw Neurosci
PY - 2026
DA - 2026/
VL - 10
IS - 3
SP - 655
EP - 682
SN - 2472-1751
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation",
"container-title": "Network neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Lin",
"given": "Yanli"
},
{
"family": "White",
"given": "Marne L"
},
{
"family": "Zhang",
"given": "Jihong"
},
{
"family": "Braver",
"given": "Todd S"
}
],
"container-title-short":
"volume": "10",
"issue": "3",
"page": "655-682",
"DOI": "10.1162/
"PMID": "42529651",
"PMCID": "PMC13418251",
"ISSN": "2472-1751",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
27
]
]
}
}
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.1007/s12671-026-02850-6 [code]
- Meditation-Specific Neural Predictors of State Mindfulness During Eyes Open Meditation.Journal: MindfulnessIn common: tidyverse, EEG, 20 references
- [2] doi:10.1093/nc/niag036
- Neurodynamic profiles in the alpha band distinguish different forms of meditation.Journal: Neuroscience of consciousnessIn common: systems, EEG, 8 references
- [3] doi:10.1371/journal.pone.0348608
- A novel approach for the EEG-driven assessment of divided attention through mutual information theory: A case study at the wheel.Journal: PloS oneIn common: EEG, 4 references
- [4] doi:10.3758/s13415-026-01434-0
- Neural mechanisms of negative emotionality and cognitive control: The role of frontal midline theta.Journal: Cognitive, affective & behavioral neuroscienceIn common: EEG, 4 references
- [5] doi:10.1038/s41598-026-46182-w [code]
- How the influence of cingulate-lingual interactions on event segmentation changes from early to late adolescence.Journal: Scientific reportsIn common: tidyverse, EEG, 3 references
- [6] doi:10.1111/psyp.70376 [code]
- Changes in Aperiodic (1/
f Slope) Activity During a Picture-Word Interference Task: Effects of Congruency and Sequence Manipulations. Journal: PsychophysiologyIn common: tidyverse, EEG, 3 references - [7] doi:10.7554/elife.111114 [code]
- Theta beta ratio in attention deficit hyperactivity disorder using a multiverse analysis.Journal: eLifeIn common: tidyverse, EEG, 3 references
- [8] doi:10.1162/imag.a.1258 [code]
- Non-specific increase in alpha power during a neurofeedback session targeting its downregulation.Journal: Imaging neuroscience (Cambridge, Mass.)In common: tidyverse, systems, EEG, 2 references
- [9] doi:10.1371/journal.pone.0351872 [code]
- Decoding visual object recognition from EEG signals.Journal: PloS oneIn common: EEG, 3 references
- [10] doi:10.3389/fnagi.2026.1885392
- State sensitivity and five-year longitudinal stability of resting-state EEG biomarker candidates in healthy adults.Journal: Frontiers in aging neuroscienceIn common: 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 2 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:58975ad2a0dd0d18…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
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.
