Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos.
5 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 5 matches
- [1] § Methods › Statistical analyses ↔ Analysis code/analysis_code.zip/GLMM_EDA_coupling.Rmd, lines 17 to 40 · score 0.65 · Linear mixed models, right skewed, glmer, log, family, gamma · block
oscr:b:2913N065J80NY-Q· Report a mismatch - [2] § Methods › Statistical analyses ↔ Analysis code/analysis_code.zip/LMM_ECG_coupling.Rmd, lines 22 to 44 · score 0.56 · Linear mixed models, right skewed, lme4, family, gamma, IBI · block
oscr:b:FKKNDR5Z8SVBT-B· Report a mismatch - [3] § Results › Temporal presence does not influence affective empathy ↔ Analysis code/analysis_code.zip/LMM_behavior_affective_empathy.Rmd, lines 44 to 107 · score 0.54 · affective empathy, unpleasantness ratings, predict observers, video call, prerecording, interaction · block
oscr:b:P3FGPG2YZWXNX-G· Report a mismatch - [4] § Results › Temporal presence does not modulate physiological coupling between observers and targets ↔ Analysis code/analysis_code.zip/GLMM_EDA_coupling.Rmd, lines 43 to 105 · score 0.54 · targets SCR, random slopes, predicting observers, video call, GLMM, coupling · block
oscr:b:58PE8YAFV71MA-R· Report a mismatch - [5] § Results › Temporal presence does not modulate physiological coupling between observers and targets ↔ Analysis code/analysis_code.zip/LMM_ECG_coupling.Rmd, lines 47 to 111 · score 0.52 · targets IBI, random slopes, predicting observers, video call, coupling, prerecording · block
oscr:b:PBEC9RV3X5R9M-1· 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 Markdown · 117 lines · 3.3 KB · no license · 2 matches
- ---
- title: "PiP23 - GLMM EDA coupling"
- author: "Jannik Heimann"
- date: "`r Sys.Date()`"
- output: pdf_document
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- library(lme4)
- library(ggplot2)
- library(MuMIn)
- ```
- ## Build generalized linear mixed models to predict observer EDA data with target EDA
- Fixed effects structure according to hypotheses!
- Family gamma function is used for positive, slightly right skewed data.
- ```{r model}
- DF <- read.csv('PiP23_EDA_GLMM_4000_7000ms_all.csv')
- # prepare simple effect coding
- DF$cond[DF$cond==2] <- -0.5 # OFF condition
- DF$cond[DF$cond==1] <- 0.5 # ON condition
- DF$EDA_targ = scale(DF$EDA_targ)
- M3 <- glmer(EDA_obs ~ 1 + cond * EDA_targ + (1 + cond * EDA_targ | obs), data = DF, family = Gamma(link = "log"), glmerControl(optimizer = "bobyqa", optCtrl = list(maxfun = 100000)))
- summary(M3)
- cat("\nR-squared marginal and conditional for the full model\n")
- print(r.squaredGLMM(M3))
- ```
- ## Plot Model 3
- ```{r Plot Model 3}
- DF1 <- DF
- DF1$EDA_obs <- DF1$EDA_obs + 1
- DF1 <- DF1[!is.na(DF1$EDA_obs), ]
- DF1 <- DF1[!is.na(DF1$EDA_targ), ]
- row.names(DF1) <- NULL
- DF1$EDA_obs <- log(DF1$EDA_obs)
- randef_EDA<- ranef(M3)
- ref_EDA<-randef_EDA$obs[,3]
- observers <- unique(DF1$obs)
- count<-1
- slopes_EDA<- NULL
- for (obser in observers){
- slope<- ref_EDA[count]
- data <- data.frame(DF1[DF1$obs == obser,])
- trials <- nrow(data)
- slope_all<- data.frame(rep(slope,trials))
- slopes_EDA<- rbind(slopes_EDA, slope_all)
- count <- count+1
- }
- colnames(slopes_EDA)<-c("slopes")
- DF1$slopes <- slopes_EDA$slopes
- DF1$EDA_obs_pred<- predict(M3, type ="response")
- DF1_off <- DF1[DF1$cond == -0.5,]
- DF1_on <- DF1[DF1$cond == 0.5,]
- DF1$cond<-as.numeric(DF1$cond)
- DF1$cond<-factor(DF1$cond, levels = c(0.5,-0.5), labels = c("video call","prerecording"))
- SCR <- ggplot(data = DF1, aes(EDA_targ, EDA_obs_pred, color = slopes, linetype = cond, group = interaction(slopes,cond,obs))) +
- stat_summary(fun = mean, geom ="line", aes(EDA_targ, EDA_obs_pred, color = slopes, linetype = cond), linewidth = 1.2) +
- geom_smooth(data = DF1_on, aes(EDA_targ, EDA_obs_pred), color = "black", inherit.aes = FALSE, method = "glm", alpha = 0, linewidth = 4) +
- geom_smooth(data = DF1_off, aes(EDA_targ, EDA_obs_pred), color = "black", inherit.aes = FALSE, method = "glm", alpha = 0, linewidth = 4, linetype = "dotted") +
- scale_color_gradient2(low = "darkorange3", high = "darkgreen", mid = "orange2", midpoint=0, name = "random slope\nof target SCR")+theme_classic() +
- theme_classic() +
- labs(x = "target SCR (z-std)", y = "predicted observers'\n SCR") +
- theme(
- axis.title.x = element_text(size = 13),
- axis.title.y = element_text(size = 13),
- legend.position = "bottom",legend.title = element_text(size = 12),
- legend.text = element_text(size = 12),axis.text.y = element_text(size =12),
- axis.text.x = element_text(size = 12)
- ) +
- guides(
- linetype = guide_legend(nrow = 2, byrow = TRUE)
- )
- print(SCR)
- ```
- # BIC to Bayes Factor
- ```{r BF}
- M3r <- glmer(EDA_obs ~ 1 + EDA_targ + (1 + cond * EDA_targ | obs), data = DF, family = Gamma(link = "log"), glmerControl(optimizer = "bobyqa", optCtrl = list(maxfun = 100000)))
- BF_SCR <- exp((BIC(refitML(M3))-BIC(refitML(M3r)))/(-2))
- print(BF_SCR)
- ```
GLMM_EDA_coupling.Rmd, no license · at the source
Overview
- Institute of Medical Psychology, Center of Brain, Behavior and Metabolism, University of Lübeck,Ratzeburger Allee 160, 23562 Lübeck, Germany
- Department of Neurology, University of Lübeck,Ratzeburger Allee 160, 23562 Lübeck, Germany
- Psychology Department, Hebrew University of Jerusalem,Mount Scopus, 91905 Jerusalem, Israel
Abstract
The impact of digitally mediated social interaction on understanding others and sharing their emotions has not been thoroughly investigated. We examined how live, video-mediated interaction, as opposed to watching a prerecorded video, affects behavioral, neural, and physiological aspects of empathy for pain. Thirty-five observers watched targets undergoing painful electric stimulation in an electroencephalogram study. We hypothesized that reduced temporal presence, the immediacy or delay with which information is transferred during social interactions, would result in diminished behavioral and electrophysiological empathic responses. However, observer’s behavioral empathic responses were not diminished with reduced temporal presence. On a neural level, midfrontal theta was sensitive to the other’s pain intensity, and we observed significant physiological coupling between participants. Conversely, Mu suppression was not modulated by pain intensity. Importantly, neural and physiological indices of empathy were independent of temporal presence. However, exploratory analyses indicated a latency effect of temporal presence on pain-related theta activity with an earlier theta increase in interactions with high temporal presence. The results suggest that the temporal presence of individuals may not be necessary for empathy towards another’s pain. Future studies may investigate more naturalistic social interactions and include motivational aspects of empathy. We discuss implications of these findings for debates on social presence and on second-person neuroscience.
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 5 matches between paragraphs and lines of code.
OSF 3jdf4
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
- 29 September 2026: the link answers (HTTP 200)
8 files
- Analysis code/
analysis_code.zip/ , R, 67 linesBayes_factors_EEG.Rmd - Analysis code/
analysis_code.zip/ , R, 117 lines, 2 matchesGLMM_EDA_coupling.Rmd - Analysis code/
analysis_code.zip/ , R, 125 lines, 2 matchesLMM_ECG_coupling.Rmd - Analysis code/
analysis_code.zip/ , R, 82 linesLMM_EEG.Rmd - Analysis code/
analysis_code.zip/ , R, 261 linesLMM_behavior_OP.Rmd - Analysis code/
analysis_code.zip/ , R, 119 lines, 1 matchLMM_behavior_affective_e mpathy.Rmd - Analysis code/
analysis_code.zip/ , R, 130 linesLMM_behavior_empathic_ac curacy.Rmd - additional information/
EEG_trigger_information. , MATLAB, 25 linesm
Code availability
The analysis code can be found 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;
- 8 scripts, each with its path and the digest of its content;
- 5 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.
Availability of data and materials
The raw data and the final preprocessed data, which is prepared for statistical analysis, can be found 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, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 12 MeSH terms, 2 funders, 137 references.
Cite
This paper
Heimann, J., Petereit, P., Perry, A., & Krämer, U. M. (2026). Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos. Cognitive, affective & behavioral neuroscience, 26(4), 1795-1816. https://
BibTeX
@article{heimann2026empa
author = {Heimann, Jannik and Petereit, Pauline and Perry, Anat and Krämer, Ulrike M.},
title = {{Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos}},
journal = {Cognitive, affective \& behavioral neuroscience},
year = {2026},
month = apr,
volume = {26},
number = {4},
pages = {1795--1816},
publisher = {Springer Science+Business Media},
issn = {1530-7026},
doi = {10.3758/
url = {https://
pmid = {41986865},
pmcid = {PMC13385010}
}
RIS
TY - JOUR
AU - Heimann, Jannik
AU - Petereit, Pauline
AU - Perry, Anat
AU - Krämer, Ulrike M.
TI - Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos
T2 - Cognitive, affective & behavioral neuroscience
J2 - Cogn Affect Behav Neurosci
PY - 2026
DA - 2026/
VL - 26
IS - 4
SP - 1795
EP - 1816
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": "Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos",
"container-title": "Cognitive, affective & behavioral neuroscience",
"author": [
{
"family": "Heimann",
"given": "Jannik"
},
{
"family": "Petereit",
"given": "Pauline"
},
{
"family": "Perry",
"given": "Anat"
},
{
"family": "Krämer",
"given": "Ulrike M."
}
],
"container-title-short":
"volume": "26",
"issue": "4",
"page": "1795-1816",
"DOI": "10.3758/
"PMID": "41986865",
"PMCID": "PMC13385010",
"ISSN": "1530-7026",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
15
]
]
}
}
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.1093/scan/nsae080 [code]
- Neural empathy mechanisms are shared for physical and social pain, and increase from adolescence to older adulthood.Journal: Social cognitive and affective neuroscienceIn common: lmerTest, lme4, ggplot2, 1 other tool, pain, EEG, 13 references
- [2] doi:10.3758/s13415-025-01382-1 [code]
- Individual differences in the empathic experience of pain: An EEG and machine learning approach.Journal: Cognitive, affective & behavioral neuroscienceIn common: pain, EEG, cognitive, 14 references
- [3] doi:10.1093/scan/nsad008 [code]
- Are women more empathetic than men? Questionnaire and EEG estimations of sex/
gender differences in empathic ability. Journal: Social cognitive and affective neuroscienceIn common: EEG, cognitive, 13 references - [4] doi:10.1093/scan/nsac011 [code]
- Mu rhythm suppression over sensorimotor regions is associated with greater empathic accuracy.Journal: Social cognitive and affective neuroscienceIn common: lmerTest, lme4, ggplot2, 1 other tool, EEG, cognitive, 7 references
- [5] doi:10.1016/j.isci.2025.112642
- Empathy aligns brains in synchrony.Journal: iScienceIn common: 11 references
- [6] doi:10.1038/s41467-024-49541-1 [code]
- Intracranial EEG signals disentangle multi-areal neural dynamics of vicarious pain perception.Journal: Nature communicationsIn common: pain, EEG, cognitive, 9 references
- [7] doi:10.1093/scan/nsag018 [code]
- Shared effects of the opioid antagonist naltrexone on first-hand and empathic pain.Journal: Social cognitive and affective neuroscienceIn common: lme4, ggplot2, tidyverse, pain, 7 references
- [8] doi:10.1093/scan/nsad030
- Close to me but unreachable: spotting the link between peripersonal space and empathy.Journal: Social cognitive and affective neuroscienceIn common: pain, EEG, cognitive, 8 references
- [9] doi:10.1126/sciadv.adt6207 [code]
- Reducing racial ingroup biases in empathy and altruistic decision-making by shifting racial identification.Journal: Science advancesIn common: pain, cognitive, 9 references
- [10] doi:10.3758/s13415-025-01268-2
- Machine learning classification of active viewing of pain and non-pain images using EEG does not exceed chance in external validation samples.Journal: Cognitive, affective & behavioral neuroscienceIn common: pain, EEG, cognitive, 8 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, 8 scripts, and 5 matches 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:ea478f6d140b9d7a…
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-026-01442-0)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3758/s13415-026-01442-0.svg
:target: https://openscicode.org/badge/doi/10.3758/s13415-026-01442-0
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3758/s13415-026-01442-0"><img src="https://openscicode.org/badge/doi/10.3758/s13415-026-01442-0.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.
