Mood modulations of emotional word processing: A predictive perspective view of EEG data.
The 1 match
- [1] § Method › Analysis › ERP ↔ Scripts/ERP_LMM.R, lines 84 to 135 · score 0.50 · singular fit, Treatment, permutation, clusters, predictors, model · 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 · 315 lines · 9.4 KB · no license · 1 match
- # ERP Mood-Valence study_words
- # ERP_LMM
- # libraries
- {
- library(rstatix)
- library(ggplot2)
- library(ggpubr)
- library(car)
- library(plyr)
- library(dplyr)
- library(psych)
- library(hrbrthemes)
- library(devtools)
- library(emmeans)
- library(tidyverse)
- library(hrbrthemes)
- library(viridis)
- library(effects)
- library(afex) # for 'allFit' on lmer models
- library(xtable) # for printing latex-tables
- library(sjPlot) # for plotting interactions in LMMs
- library(sjmisc) # for plotting interactions in LMMs
- }
- setwd("D:/Desktop/...")
- # Mac:
- setwd("/Users/el1445ko/Desktop/...")
- # ==========================================================================
- # datasets:
- # permutation cluster 1, N1 parietal ((Hi-Neu)Happy-Ctrl), electrodes CP3P3P5P1PO3PO7
- erp <- read.csv2(file = "N1_cluster1_trials.csv", fileEncoding = "UTF-8-BOM")
- # permutation cluster 2, N1 frontal ((Hi-Neu)Happy-Ctrl), electrodes F8FT8T8AF8C6FT10
- erp <- read.csv2(file = "N1_cluster2_trials.csv", fileEncoding = "UTF-8-BOM")
- # permutation cluster 3, N1 parietal ((Hi-Low)Happy-Ctrl), electrodes P1P2PzO1O2OzPO4POz
- erp <- read.csv2(file = "N1_cluster3_trials.csv", fileEncoding = "UTF-8-BOM")
- # permutation cluster 4, P2 frontal ((Hi-Low)Happy-Ctrl), electrodes F7F5F3FT7FC5AF7AF3
- erp <- read.csv2(file = "P2_cluster1_trials.csv", fileEncoding = "UTF-8-BOM")
- # permutation cluster 5, P2 frontal ((Neu-Low)Happy-Ctrl), electrodes F7F5F3F1FzFT7FC5FC3FC1AF3C3
- erp <- read.csv2(file = "P2_cluster2_trials.csv", fileEncoding = "UTF-8-BOM")
- # permutation cluster 6, EPN parietal ((Hi-Neu)Happy-Sad), electrodes CP5CP3P7P3PO7PO3
- erp <- read.csv2(file = "EPN_cluster1_trials.csv", fileEncoding = "UTF-8-BOM")
- # factors
- erp$participant = as.factor(erp$participant)
- erp$mood = as.factor(erp$mood)
- erp$valence = as.factor(erp$valence)
- erp$score = as.numeric(erp$score)
- erp$item = as.factor(erp$item)
- erp$condition <- NULL
- erp$itemID <- NULL
- # reorder levels of mood and valence
- erp$mood <- factor(erp$mood, levels = c("base", "happy", "sad"))
- erp$valence <- factor(erp$valence, levels = c("neut", "high", "low"))
- # head(erp, 3)
- summary(erp)
- str(erp)
- describe(erp)
- # View(erp)
- ## sample balance:
- table(erp$valence, erp$mood)
- # visual inspection:
- (QQ <- ggqqplot(erp, "score", ggtheme = theme_bw()) +
- facet_grid(mood ~ valence, labeller = "label_both"))
- (Density <- ggplot(erp, aes(x=score))+
- geom_density(alpha = 0.5, fill = '#E69F00')+
- facet_grid(mood ~ valence))
- ## boxplot
- erp %>%
- ggplot(aes(x=mood, y=score, fill=valence)) +
- geom_boxplot() +
- scale_fill_viridis(discrete = TRUE, alpha=0.6) +
- # geom_jitter(aes(color=valence), width = 0.25, size=3, alpha=0.9) +
- theme_ipsum() +
- theme(
- legend.position="bottom",
- plot.title = element_text(size=20)
- ) +
- ggtitle("N1") +
- xlab("")
- ## boxplot by predictor
- par(mfrow=c(1, 2))
- plot(erp$mood, erp$score, pch=16); lines(lowess(erp$score ~ erp$mood))
- plot(x=erp$valence, y=erp$score, pch=16); lines(lowess(erp$score ~ erp$valence))
- par(mfrow=c(1, 1))
- # ==========================================================================
- # models
- # treatment coding for both predictors, since reflects the permutation contrasts
- summary(model1 <- lmer(score ~ valence * mood + (1 + mood | participant) + (1 | item),
- contrasts = list(mood = contr.treatment(3, base = 1),
- valence = contr.treatment(3, base = 1)),
- data = erp,REML = FALSE))
- # N1_1: singular fit
- # N1_2: singular fit
- # N1_3: failed to converge
- # P2_1: singular fit
- # P2_2: singular fit
- # EPN_1: converged
- performance::r2(model1)
- summary(model2 <- lmer(score ~ valence * mood + (1 | participant) + (1 | item),
- contrasts = list(mood = contr.treatment(3, base = 1),
- valence = contr.treatment(3, base = 1)),
- data = erp, REML = FALSE))
- # converged for all clusters
- performance::r2(model2)
- anova(model2)
- # summary(rePCA(model2))
- # Confint(model2) # confidence intervals
- plot(model2)
- plot(residuals(model2))
- hist(residuals(model2))
- qqnorm(residuals(model2))
- # ! list of models, run and saved:
- # model2_N1_1
- # model2_N1_2
- # model2_N1_3
- # model2_P2_1
- # model2_P2_2
- # model2_EPN_1
- # ==========================================================================
- # CONRASTS AND INTERACTIONS
- emm_options(pbkrtest.limit = 7659) # observations = 7659
- # If lags, limit = 5964
- # emm_options(pbkrtest.limit = 5964)
- # N1_1. valence (high, neutral) × mood (positive, control)
- (N1_1_emmp_means <- emmeans(model2_N1_1, ~ mood | valence, adjust = "holm")) # means
- (N1_1_emmp_contrasts <- contrast(N1_1_emmp_means, "pairwise"))
- N1_1_emmp_means
- N1_1_emmp_contrasts
- # N1_2. valence (high, neutral) × mood (positive, control)
- (N1_2_emmp_means <- emmeans(model2_N1_2, ~ mood | valence, adjust = "holm")) # means
- (N1_2_emmp_contrasts <- contrast(N1_2_emmp_means, "pairwise"))
- N1_2_emmp_means
- N1_2_emmp_contrasts
- # N1_3. valence (high, low) × mood (positive, control)
- (N1_3_emmp_means <- emmeans(model2_N1_3, ~ mood | valence, adjust = "holm")) # means
- (N1_3_emmp_contrasts <- contrast(N1_3_emmp_means, "pairwise"))
- N1_3_emmp_means
- N1_3_emmp_contrasts
- # P2_1. valence (high, low) × mood (positive, control)
- (P2_1_emmp_means <- emmeans(model2_P2_1, ~ mood | valence, adjust = "holm")) # means
- (P2_1_emmp_contrasts <- contrast(P2_1_emmp_means, "pairwise"))
- P2_1_emmp_means
- P2_1_emmp_contrasts
- # interaction terms for ((HiVal-LoVal)Pos minus Ctrl):
- emm_options(pbkrtest.limit = 5964)
- (P2_1_emmp_means_new <- emmeans(model2_P2_1, ~ valence | mood, adjust = "holm")) # means
- val23_diffs <- contrast(P2_1_emmp_means_new, method = list("Val2 - Val3" = c(0, 1, -1)), # Valence2 - Valence3
- by = "mood")
- interaction_contrast <- contrast(val23_diffs, method = list("Mood2 vs Mood1 on (Val2-Val3)" = c(-1, 1, 0)), by = NULL)
- summary(interaction_contrast, infer = c(TRUE, TRUE))
- # P2_2
- (P2_2_emmp_means <- emmeans(model2_P2_2, ~ mood | valence, adjust = "holm")) # means
- (P2_2_emmp_contrasts <- contrast(P2_2_emmp_means, "pairwise"))
- P2_2_emmp_means
- P2_2_emmp_contrasts
- # interaction terms for ((HiVal-LoVal)Pos minus Ctrl):
- emm_options(pbkrtest.limit = 5964)
- (P2_2_emmp_means_new <- emmeans(model2_P2_2, ~ valence | mood, adjust = "holm")) # means
- val13_diffs <- contrast(P2_2_emmp_means_new, method = list("Val1 - Val3" = c(1, 0, -1)), # Valence1 - Valence3
- by = "mood")
- interaction_contrast <- contrast(val13_diffs, method = list("Mood2 vs Mood1 on (Val1-Val3)" = c(-1, 1, 0)), by = NULL)
- summary(interaction_contrast, infer = c(TRUE, TRUE))
- # EPN
- (EPN_1_emmp_means <- emmeans(model2_EPN_1, ~ mood | valence, adjust = "holm")) # means
- (EPN_1_emmp_contrasts <- contrast(EPN_1_emmp_means, "pairwise"))
- EPN_1_emmp_means
- EPN_1_emmp_contrasts
- # interaction terms for ((HiVal-NeuVal)Pos-Neg):
- (EPN_1_emmp_means_new <- emmeans(model2_EPN_1, ~ valence | mood, adjust = "holm"))
- val21_diffs <- contrast(EPN_1_emmp_means_new, method = list("Val2 - Val1" = c(-1, 1, 0)), # Valence2 - Valence1
- by = "mood")
- interaction_contrast <- contrast(val21_diffs, method = list("Mood2 vs Mood3 on (Val2-Val1)" = c(0, 1, -1)),
- by = NULL)
- summary(interaction_contrast, infer = c(TRUE, TRUE))
- # ==========================================================================
- # PLOT:
- # NB ! change data frame, ylim and labels for each clusters as necessary
- # N1_2 = right anterior
- # N1_1 = left parietal
- # N1_3 = central parietal
- # P2_1: smaller
- # P2_2: larger
- plot <- as.data.frame(EPN_1_emmp_means) # change for other clusters accordingly
- ggplot(plot, aes(x = mood, y = emmean, color = valence, group = valence)) +
- geom_point(size = 2, position = position_dodge(0.2)) +
- geom_line(size = 1, position = position_dodge(0.2)) +
- geom_errorbar(aes(ymin = emmean-SE, ymax = emmean+SE), width = 0.1, position = position_dodge(0.2)) +
- scale_y_reverse() +
- scale_color_manual(values = c("#619CFF", "#F8766D", "#00BA38")) +
- # ylim(0, -1.2) + # change appr as follows for clusters:
- # for N1_1 and N1_2: ylim(0,-1.2);
- # for N1_3: ylim(1,-0.2);
- # for P2_1: ylim(1.25, 0.05) or as above;
- # for P2_2: ylim(1.75, 0.55);
- # for EPN: ylim(0, -1.2)
- labs(title = "EPN, Left Parietal", x = "Mood", y = "Amplitude (microV)", color = "Valence") +
- # change title as needed
- scale_x_discrete(labels = c("Control", "Positive", "Negative")) +
- theme_minimal(base_size = 14) +
- theme(text = element_text(size = 20), legend.position="top",
- axis.text.x = element_text(size=18), axis.title.x = element_text(size=18, face="bold"),
- axis.text.y = element_text(size=18), axis.title.y = element_text(size=18, face="bold"))
- # ==========================================================================
- # summary
- # N1_1
- summary(model2_N1_1)
- anova(model2_N1_1)
- performance::r2(model2_N1_1)
- N1_1_emmp_means
- N1_1_emmp_contrasts
- # N1_2
- summary(model2_N1_2)
- anova(model2_N1_2)
- performance::r2(model2_N1_2)
- N1_2_emmp_means
- N1_2_emmp_contrasts
- # N1_3
- summary(model2_N1_3)
- anova(model2_N1_3)
- performance::r2(model2_N1_3)
- N1_3_emmp_means
- N1_3_emmp_contrasts
- # P2_1
- summary(model2_P2_1)
- anova(model2_P2_1)
- performance::r2(model2_P2_1)
- P2_1_emmp_means
- P2_1_emmp_contrasts
- # P2_2
- summary(model2_P2_2)
- anova(model2_P2_2)
- performance::r2(model2_P2_2)
- P2_2_emmp_means
- P2_2_emmp_contrasts
- # EPN_1
- summary(model2_EPN_1)
- anova(model2_EPN_1)
- performance::r2(model2_EPN_1)
- EPN_1_emmp_means
- EPN_1_emmp_contrasts
ERP_LMM.R, no license · at the source
Overview
Abstract
Mood is a pervasive affective state that influences cognition, including language processing, where it functions as part of the pragmatic context. When linguistic expressions carry emotional valence, mood may amplify or attenuate their perceived emotional nature. Motivated by inconsistent findings on the timing and nature of mood and valence interactions, we conducted an EEG study to investigate whether induced moods alter the temporal profile of emotional word processing. Participants rated words of high, low, and neutral valence in a control condition and after positive and negative mood induction. Event-related potentials were analysed across three early processing windows using cluster-based permutation tests. Results showed that mood modulated early neural activity: in the positive mood, high-valence words reduced N1 amplitudes compared with control, reflecting diminished prediction error. In the subsequent P2 and EPN windows, reduced amplitudes for high- and neutral-valence words indicated a decreased need for model updating under mood-congruent expectations. By contrast, the negative mood exerted weaker and later effects. Behavioural responses corroborated these findings, with faster response times to valenced words. Within predictive coding frameworks, mood can be understood as a hyperprior that shapes precision weighting and error dynamics. Our results suggest that induced positive mood facilitates the processing of congruent words and broadens the range of input treated as predictable, whereas induced negative mood primarily reduces positive affect. These findings highlight the role of mood in dynamically tuning early language processing through the regulation of prediction error and model update.
Supplementary Information: The online version contains supplementary material available at 10.3758/
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 j2enh
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
4 files
- Scripts/
ERP_LMM.R , R, 315 lines, 1 match - Scripts/
Evaluations_LMM.R , R, 104 lines - Scripts/
Mood_manipulation_Friedm , R, 98 linesan.R - Scripts/
RT_LMM.R , R, 127 lines
Code availability
R scripts are available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 4 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.
Availability of data and materials
The data and materials for this experiment are available 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, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 6 keywords, 12 MeSH terms, 4 funders, 97 references.
Cite
This paper
Kopaeva, E., Blomberg, J., & Roll, M. (2026). Mood modulations of emotional word processing: A predictive perspective view of EEG data. Cognitive, affective & behavioral neuroscience, 26(3), 1101-1122. https://
BibTeX
@article{kopaeva2026mood
author = {Kopaeva, Ekaterina and Blomberg, Johan and Roll, Mikael},
title = {{Mood modulations of emotional word processing: A predictive perspective view of EEG data}},
journal = {Cognitive, affective \& behavioral neuroscience},
year = {2026},
month = mar,
volume = {26},
number = {3},
pages = {1101--1122},
publisher = {Springer Science+Business Media},
issn = {1530-7026},
doi = {10.3758/
url = {https://
pmid = {41882306},
pmcid = {PMC13260159}
}
RIS
TY - JOUR
AU - Kopaeva, Ekaterina
AU - Blomberg, Johan
AU - Roll, Mikael
TI - Mood modulations of emotional word processing: A predictive perspective view of EEG data
T2 - Cognitive, affective & behavioral neuroscience
J2 - Cogn Affect Behav Neurosci
PY - 2026
DA - 2026/
VL - 26
IS - 3
SP - 1101
EP - 1122
SN - 1530-7026
PB - Springer Science+Business Media
DO - 10.3758/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3758/
"type": "article-journal",
"title": "Mood modulations of emotional word processing: A predictive perspective view of EEG data",
"container-title": "Cognitive, affective & behavioral neuroscience",
"author": [
{
"family": "Kopaeva",
"given": "Ekaterina"
},
{
"family": "Blomberg",
"given": "Johan"
},
{
"family": "Roll",
"given": "Mikael"
}
],
"container-title-short":
"volume": "26",
"issue": "3",
"page": "1101-1122",
"DOI": "10.3758/
"PMID": "41882306",
"PMCID": "PMC13260159",
"ISSN": "1530-7026",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
25
]
]
}
}
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.1038/s41598-023-43794-4
- Dissociating different temporal stages of emotional word processing by feature-based attention.Journal: Scientific reportsIn common: EEG, cognitive, 19 references
- [2] doi:10.1371/journal.pone.0353990 [code]
- Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.Journal: PloS oneIn common: afex, psych, emmeans, 4 other tools, EEG, cognitive, 15 references
- [3] doi:10.1371/journal.pone.0295148
- Neural correlates of word processing influenced by painful primes.Journal: PloS oneIn common: EEG, 15 references
- [4] doi:10.1111/psyp.70318
- EEG Based Decoding of the Perception and Regulation of Taboo Words.Journal: PsychophysiologyIn common: EEG, cognitive, 13 references
- [5] doi:10.1162/imag_a_00162 [code]
- Relevance acquisition through motivational incentives: Modeling the time-course of associative learning and the role of visual features.Journal: Imaging neuroscience (Cambridge, Mass.)In common: EEG, cognitive, 12 references
- [6] doi:10.1038/s41598-025-34117-w [code]
- The impact of awareness on affective emoji priming in visual word recognition.Journal: Scientific reportsIn common: afex, easystats, emmeans, 3 other tools, EEG, cognitive, 6 references
- [7] doi:10.1111/psyp.14696 [code]
- Linking brain-heart interactions to emotional arousal in immersive virtual reality.Journal: PsychophysiologyIn common: afex, easystats, rstatix, 4 other tools, EEG, cognitive, 5 references
- [8] doi:10.1016/j.dcn.2023.101251 [code]
- Age and vocabulary knowledge differentially influence the N400 and theta responses during semantic retrieval.Journal: Developmental cognitive neuroscienceIn common: afex, easystats, rstatix, 5 other tools, EEG, 4 references
- [9] doi:10.3758/s13415-025-01303-2 [code]
- Impaired reinforcement learning and coding of prediction errors in patients with cerebellar degeneration - a study with EEG and voxel-based morphometry.Journal: Cognitive, affective & behavioral neuroscienceIn common: afex, easystats, rstatix, 5 other tools, EEG, cognitive, 3 references
- [10] doi:10.1111/nyas.15407 [code]
- Foreign cultural norms are better accepted in the second language.Journal: Annals of the New York Academy of SciencesIn common: afex, easystats, psych, 4 other tools, EEG, cognitive, 4 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, 4 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:381206358ae3ce98…
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.3758/s13415-025-01394-x)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3758/s13415-025-01394-x.svg
:target: https://openscicode.org/badge/doi/10.3758/s13415-025-01394-x
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3758/s13415-025-01394-x"><img src="https://openscicode.org/badge/doi/10.3758/s13415-025-01394-x.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.
