Neural dynamics of mindfulness training: A longitudinal EEG network analysis of focused attention and open monitoring meditation.
One block of code here has 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 1 match
- [1] § METHODS › Statistical Analysis ↔ Code/Modeling_Public.R, lines 189 to 268 · score 0.55 · InStrength, OutStrength, PDC, temporal network, closeness, node · block
oscr:b:J73KG49STVWAY-K· 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
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.1016/j.bpsgos.2024.100357 [code]
- Distinct Mindfulness States Produce Dissociable Effects on Neural Markers of Emotion Processing: Evidence From the Late Positive Potential.Journal: Biological psychiatry global open scienceIn common: tidyverse, EEG, 7 references, author Yanli Lin
- [3] doi:10.1016/j.bpsgos.2024.100423 [code]
- Oscillating Mindfully: Using Machine Learning to Characterize Systems-Level Electrophysiological Activity During Focused Attention Meditation.Journal: Biological psychiatry global open scienceIn common: EEG, 8 references
- [4] 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
- [5] doi:10.1371/journal.pone.0292501 [code]
- Augmenting complex and dynamic performance through mindfulness-based cognitive training: An evaluation of training adherence, trait mindfulness, personality and resting-state EEG.Journal: PloS oneIn common: tidyverse, EEG, 7 references
- [6] doi:10.1038/s41598-024-73789-8 [code]
- Exploring neural markers of dereification in meditation based on EEG and personalized models of electrophysiological brain states.Journal: Scientific reportsIn common: EEG, 6 references
- [7] doi:10.1007/s12671-025-02671-z [code]
- Neurofeedback Training Facilitates Awareness and Enhances Emotional Well-being Associated with Real-World Meditation Practice: A 7-T MRI Study.Journal: MindfulnessIn common: 6 references
- [8] doi:10.1038/s44184-025-00156-4 [code]
- Unlocking deep relaxation: the power of rhythmic breathing on brain rhythms.Journal: Npj mental health researchIn common: EEG, 6 references
- [9] doi:10.1038/s41598-026-41310-y [code]
- Dynamic causal modeling of low-density resting-state EEG in long-term meditation practitioners.Journal: Scientific reportsIn common: systems, EEG, 5 references
- [10] doi:10.1162/imag.a.1145 [code]
- Simultaneous enhancement of stimulus-induced and stimulus-free gamma in open-eye meditators.Journal: Imaging neuroscience (Cambridge, Mass.)In common: systems, EEG, 5 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:bef82e4434bd814d…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1162/netn.a.555)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1162/netn.a.555.svg
:target: https://openscicode.org/badge/doi/10.1162/netn.a.555
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/netn.a.555"><img src="https://openscicode.org/badge/doi/10.1162/netn.a.555.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
