OSCR

Empathy for pain persists across live two-way video interactions and viewing of prerecorded videos.

Code ↔ Paper

5 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.

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. [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. [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. [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. [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. [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

  1. ---
  2. title: "PiP23 - GLMM EDA coupling"
  3. author: "Jannik Heimann"
  4. date: "`r Sys.Date()`"
  5. output: pdf_document
  6. ---
  7. ```{r setup, include=FALSE}
  8. knitr::opts_chunk$set(echo = TRUE)
  9. library(lme4)
  10. library(ggplot2)
  11. library(MuMIn)
  12. ```
  13. ## Build generalized linear mixed models to predict observer EDA data with target EDA
  14. Fixed effects structure according to hypotheses!
  15. Family gamma function is used for positive, slightly right skewed data.
  16. ```{r model}
  17. DF <- read.csv('PiP23_EDA_GLMM_4000_7000ms_all.csv')
  18. # prepare simple effect coding
  19. DF$cond[DF$cond==2] <- -0.5 # OFF condition
  20. DF$cond[DF$cond==1] <- 0.5 # ON condition
  21. DF$EDA_targ = scale(DF$EDA_targ)
  22. 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)))
  23. summary(M3)
  24. cat("\nR-squared marginal and conditional for the full model\n")
  25. print(r.squaredGLMM(M3))
  26. ```
  27. ## Plot Model 3
  28. ```{r Plot Model 3}
  29. DF1 <- DF
  30. DF1$EDA_obs <- DF1$EDA_obs + 1
  31. DF1 <- DF1[!is.na(DF1$EDA_obs), ]
  32. DF1 <- DF1[!is.na(DF1$EDA_targ), ]
  33. row.names(DF1) <- NULL
  34. DF1$EDA_obs <- log(DF1$EDA_obs)
  35. randef_EDA<- ranef(M3)
  36. ref_EDA<-randef_EDA$obs[,3]
  37. observers <- unique(DF1$obs)
  38. count<-1
  39. slopes_EDA<- NULL
  40. for (obser in observers){
  41. slope<- ref_EDA[count]
  42. data <- data.frame(DF1[DF1$obs == obser,])
  43. trials <- nrow(data)
  44. slope_all<- data.frame(rep(slope,trials))
  45. slopes_EDA<- rbind(slopes_EDA, slope_all)
  46. count <- count+1
  47. }
  48. colnames(slopes_EDA)<-c("slopes")
  49. DF1$slopes <- slopes_EDA$slopes
  50. DF1$EDA_obs_pred<- predict(M3, type ="response")
  51. DF1_off <- DF1[DF1$cond == -0.5,]
  52. DF1_on <- DF1[DF1$cond == 0.5,]
  53. DF1$cond<-as.numeric(DF1$cond)
  54. DF1$cond<-factor(DF1$cond, levels = c(0.5,-0.5), labels = c("video call","prerecording"))
  55. SCR <- ggplot(data = DF1, aes(EDA_targ, EDA_obs_pred, color = slopes, linetype = cond, group = interaction(slopes,cond,obs))) +
  56. stat_summary(fun = mean, geom ="line", aes(EDA_targ, EDA_obs_pred, color = slopes, linetype = cond), linewidth = 1.2) +
  57. geom_smooth(data = DF1_on, aes(EDA_targ, EDA_obs_pred), color = "black", inherit.aes = FALSE, method = "glm", alpha = 0, linewidth = 4) +
  58. geom_smooth(data = DF1_off, aes(EDA_targ, EDA_obs_pred), color = "black", inherit.aes = FALSE, method = "glm", alpha = 0, linewidth = 4, linetype = "dotted") +
  59. scale_color_gradient2(low = "darkorange3", high = "darkgreen", mid = "orange2", midpoint=0, name = "random slope\nof target SCR")+theme_classic() +
  60. theme_classic() +
  61. labs(x = "target SCR (z-std)", y = "predicted observers'\n SCR") +
  62. theme(
  63. axis.title.x = element_text(size = 13),
  64. axis.title.y = element_text(size = 13),
  65. legend.position = "bottom",legend.title = element_text(size = 12),
  66. legend.text = element_text(size = 12),axis.text.y = element_text(size =12),
  67. axis.text.x = element_text(size = 12)
  68. ) +
  69. guides(
  70. linetype = guide_legend(nrow = 2, byrow = TRUE)
  71. )
  72. print(SCR)
  73. ```
  74. # BIC to Bayes Factor
  75. ```{r BF}
  76. 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)))
  77. BF_SCR <- exp((BIC(refitML(M3))-BIC(refitML(M3r)))/(-2))
  78. print(BF_SCR)
  79. ```

GLMM_EDA_coupling.Rmd, no license · at the source

Overview

Authors: Jannik Heimann1, Pauline Petereit2, Anat Perry3, Ulrike M. Krämer1
  1. Institute of Medical Psychology, Center of Brain, Behavior and Metabolism, University of Lübeck,Ratzeburger Allee 160, 23562 Lübeck, Germany
  2. Department of Neurology, University of Lübeck,Ratzeburger Allee 160, 23562 Lübeck, Germany
  3. Psychology Department, Hebrew University of Jerusalem,Mount Scopus, 91905 Jerusalem, Israel
Institutions: University of Lübeck (Germany); Hebrew University of Jerusalem (Israel)
Journal: Cognitive, affective & behavioral neuroscience, volume 26, issue 4, pages 1795-1816
Dates: received 7 August 2025; accepted 16 March 2026; published online 15 April 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3758/s13415-026-01442-0 · PMID 41986865 · PMCID PMC13385010 · OpenAlex W7154447834
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), pain (population), cognitive (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, Evoked potentials, Physiology & signal measures
Keywords: Electroencephalography, Empathic accuracy, Neural oscillations, Physiological coupling, Social cognition
MeSH: Brain Waves*, Empathy*, Interpersonal Relations*, Pain*, Social Interaction*, Adult, Electroencephalography, Female, Humans, Male, Video Recording, Young Adult (* major topic)
Topic: Action Observation and Synchronization (Social Psychology, Psychology), according to OpenAlex
Funding: Deutsche Forschungsgemeinschaft (KR 3691/12-1); Universität zu Lübeck (3165)
Citations: not cited yet (Europe PMC); 143 references in the paper

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/s13415-026-01442-0.

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

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Languages: MATLAB (1)
Size: 51 files, 1 script
Software Heritage: not checked
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (5 files), lmerTest (5 files), lme4 (2 files), tidyverse (2 files)
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
  • 29 September 2026: the link answers (HTTP 200)
8 files
At the source: osf.io/3jdf4/

Code availability

The analysis code can be found at https://osf.io/3jdf4/ (10.17605/OSF.IO/3JDF4).

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://osf.io/3jdf4/ (10.17605/OSF.IO/3JDF4).

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://doi.org/10.3758/s13415-026-01442-0

BibTeX

@article{heimann2026empathy,
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/s13415-026-01442-0},
url = {https://doi.org/10.3758/s13415-026-01442-0},
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/04/15
VL - 26
IS - 4
SP - 1795
EP - 1816
SN - 1530-7026
PB - Springer Science+Business Media
DO - 10.3758/s13415-026-01442-0
UR - https://doi.org/10.3758/s13415-026-01442-0
LA - en
ER -

CSL-JSON

{
"id": "10.3758/s13415-026-01442-0",
"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": "Cogn Affect Behav Neurosci",
"volume": "26",
"issue": "4",
"page": "1795-1816",
"DOI": "10.3758/s13415-026-01442-0",
"PMID": "41986865",
"PMCID": "PMC13385010",
"ISSN": "1530-7026",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.3758/s13415-026-01442-0",
"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 neuroscience
In 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 neuroscience
In 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 neuroscience
In 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 neuroscience
In 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: iScience
In 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 communications
In 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 neuroscience
In 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 neuroscience
In 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 advances
In 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 neuroscience
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.3758/s13415-026-01442-0.svg)](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:end
HTML
<!-- 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.