OSCR

Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities.

Code ↔ Paper

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

The 2 matches
  1. [1] § Materials and Methods › Data Analysis › Extraction of individual gestational age and birth weight data ↔ Code/ROIavg_Cond2vs1_HbR.Rmd, lines 163–269 · score 0.63 · 255–298 days, 2235–4535, 255 days, Gestational ages, birth weight
  2. [2] § Materials and Methods › Data Analysis › Extraction of individual gestational age and birth weight data ↔ Code/SingleChannels_Cond2vs1_HbR.Rmd, lines 261–367 · score 0.63 · 255–298 days, 2235–4535, 255 days, Gestational ages, birth weight

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 Markdown · 270 lines · 7.1 KB · no license · 1 match

  1. ---
  2. title: "Analysis: ROI-based - Condition 2 vs 1 - HbR"
  3. author: "Jessica Gemignani"
  4. date: "`r Sys.Date()`"
  5. output:
  6. html_document: default
  7. pdf_document: default
  8. ---
  9. ## *Understanding variability in full-term newborns' NIRS data: the impact of birth weight and gestational age on infants’ speech perception abilities*
  10. ### Neurophotonics (XXX bibliographic details to be added)
  11. Authors:
  12. Noémi Szeberényi (a,d), Judit Gervain (a,b,c), Jessica Gemignani (a,b) *
  13. a University of Padua, Department of Developmental Psychology and Socialization, Padua, Italy
  14. b Padova Neuroscience Center, Padua, Italy
  15. c Université Paris Cité & CNRS, Integrative Neuroscience and Cognition Center, Paris, France
  16. d Budapest University of Technology and Economics, Department of Cognitive Neuroscience, Budapest, Hungary
  17. *Correspondence: jessica.gemignani at unipd.it
  18. These scripts reproduce statistical analyses reported in the manuscript.
  19. ```{r setup, include=FALSE}
  20. knitr::opts_chunk$set(echo = TRUE)
  21. #libraries
  22. #libraries
  23. library(plyr)
  24. library(dplyr)
  25. library(lme4)
  26. library(psych)
  27. library(broom)
  28. library(car)
  29. library(ggplot2)
  30. #library(qqplotr)
  31. library(emmeans)
  32. library(leaps)
  33. library(lmerTest)
  34. library(magrittr)
  35. library(Matrix)
  36. library(olsrr)
  37. library(here)
  38. library(interactions)
  39. library(ggpubr)
  40. library(here)
  41. library(MuMIn)
  42. Final_Activations= read.csv(here::here('Full final data manuscript', 'Effects_RN_HbR_Final.csv'), sep = ",")
  43. # I'll call them again AvgAct only so I can recycle the script, but this time these are actually effect sizes (yi)
  44. Final_Activations$AvgAct = Final_Activations$yi;
  45. ```
  46. # Preparation
  47. Define categorical and numerical variables. Rename columns.
  48. ```{r, include=TRUE}
  49. # Define categorical variables (not numericals)
  50. Final_Activations$ROI= as.factor(Final_Activations$ROI)
  51. Final_Activations$Hemisphere= as.factor(Final_Activations$Hemisphere)
  52. Final_Activations$SubjectID= as.factor(Final_Activations$SubjectID)
  53. Final_Activations$ExperimentName= as.factor(Final_Activations$ExperimentName)
  54. Final_Activations$Age.Test= as.numeric(Final_Activations$Age.Test)
  55. Final_Activations$Birth.Weight= as.numeric(Final_Activations$Birth.Weight)
  56. Final_Activations$GA.in.days= as.numeric(Final_Activations$GA.in.days)
  57. names(Final_Activations)[names(Final_Activations) == "GA.in.days"]= "GA"
  58. names(Final_Activations)[names(Final_Activations) == "Birth.Weight"]= "BW"
  59. names(Final_Activations)[names(Final_Activations) == "Age.Test"]= "Days"
  60. ```
  61. # Model selection: random effects
  62. ```{r, include=TRUE}
  63. # Remove rows displaying NaN in any of these cells, otherwise it won't be able to compare model
  64. vars <- c("AvgAct", "BW", "GA", "ROI", "Hemisphere", "SubjectID", "Days")
  65. data_filt <- na.omit(Final_Activations[, vars])
  66. # Compare these null_models in terms of AIC and explained variance
  67. null_model1 = lmer(AvgAct~(1|SubjectID),data= data_filt,REML = FALSE)
  68. null_model2= lmer(AvgAct~(1|SubjectID)+ (1|SubjectID:ROI) ,data= data_filt,REML = FALSE)
  69. AIC(null_model1, null_model2)
  70. # Null_model2 selected: (1|SubjectID)+ (1|SubjectID:ROI)
  71. ```
  72. # Model selection: fixed effects
  73. Note: run only once because it takes forever, then extract best_model and paste it in the next chunk (var: "selected_full").
  74. ```{r, include=TRUE}
  75. # global_model <- lmer(
  76. # AvgAct ~ BW + GA + Days + ROI + Hemisphere +
  77. # BW:ROI + GA:ROI + Days:ROI +
  78. # BW:Hemisphere + GA:Hemisphere + Days:Hemisphere + ROI:Hemisphere +
  79. # BW:ROI:Hemisphere + GA:ROI:Hemisphere + Days:ROI:Hemisphere +
  80. # (1|SubjectID) + (1|SubjectID:ROI) ,
  81. # data = data_filt,
  82. # REML = FALSE,
  83. # control = lmerControl(check.scaleX = "ignore")
  84. # )
  85. #
  86. # options(na.action = "na.fail")
  87. # dd <- dredge(global_model) # these are all possible models, returned in terms of ascending AIC
  88. #
  89. # # Select the top N models displaying very similar AIC
  90. # top_models <- get.models(dd, subset = delta < 3)
  91. #
  92. # # Keep only models with at least 1 fixed effect (otherwise it will frequently return the random only one)
  93. #
  94. # top_models <- Filter(function(m) {
  95. # length(lme4::fixef(m)) > 1 # >1 because intercept is always included
  96. # }, top_models)
  97. #
  98. # # Among the top N models, select the least complex:
  99. #
  100. # get_complexity <- function(fm) {
  101. # length(lme4::fixef(fm)) + length(lme4::VarCorr(fm))
  102. # }
  103. #
  104. # complexity <- sapply(top_models, get_complexity)
  105. #
  106. # # Best model:
  107. # best_model <- top_models[[which.min(complexity)]]
  108. #
  109. # selected_full= best_model
  110. ```
  111. # Refit best model with REML + anova
  112. ```{r, include=TRUE}
  113. options(na.action = "na.omit")
  114. selected_full= lmer( AvgAct ~ BW + GA + ROI + BW:ROI + GA:ROI + (1 | SubjectID) + (1 | SubjectID:ROI), data= data_filt, REML = TRUE)
  115. anova(selected_full)
  116. ```
  117. # Main effect of ROI
  118. ```{r, include=TRUE}
  119. emmeans(selected_full, pairwise ~ ROI)
  120. ```
  121. # Interaction GA x ROI and BW x ROI
  122. ```{r, include=TRUE}
  123. ####
  124. # Slopes GA x ROI:
  125. slopesGAxROI= emtrends(selected_full, pairwise ~ ROI, var = "GA")
  126. slopesGAxROI
  127. slopesBWxROI= emtrends(selected_full, pairwise ~ ROI, var = "BW")
  128. slopesBWxROI
  129. # Only to create plot:
  130. grid <- emmeans(selected_full, ~ GA * ROI,
  131. at = list(GA = seq(255, 298, length.out = 100)))
  132. grid_df <- as.data.frame(grid)
  133. # plot
  134. p_ga <- ggplot(grid_df, aes(x = GA, y = emmean, color = ROI)) +
  135. geom_line(linewidth = 1) + # <- ONLY solid lines here
  136. geom_ribbon(aes(ymin = lower.CL, ymax = upper.CL, fill = ROI),
  137. alpha = 0.15, color = NA) +
  138. scale_color_manual(values = c("#00BFC4", "#F8766D")) +
  139. scale_fill_manual(values = c("#00BFC4", "#F8766D")) +
  140. theme_bw() +
  141. theme(
  142. legend.position = "bottom",
  143. text = element_text(size = 25)
  144. ) +
  145. labs(
  146. x = "Gestational Age (days)",
  147. y = "Linear prediction (mmol x mm)"
  148. ) +
  149. geom_hline(yintercept = 0, linetype = "dashed") +
  150. coord_cartesian(ylim = c(-0.6, 0.6),
  151. xlim = c(255, 298)) +
  152. theme(plot.margin = margin(t = 10, r = 20, b = 10, l = 10, "pt")) # Add bottom margin
  153. # show
  154. p_ga
  155. # save file
  156. ggsave("ROIavg_RvsN_HbR_GAxROI.png",
  157. plot = p_ga,
  158. width = 25,
  159. height = 20,
  160. units = "cm",
  161. dpi = 300)
  162. # #####
  163. # #BW:
  164. #
  165. # Only to create plot:
  166. grid <- emmeans(selected_full, ~ BW * ROI,
  167. at = list(BW = seq(2235, 4535, length.out = 100)))
  168. grid_df <- as.data.frame(grid)
  169. # plot
  170. p_bw <- ggplot(grid_df, aes(x = BW, y = emmean, color = ROI)) +
  171. geom_line(linewidth = 1) + # <- ONLY solid lines here
  172. geom_ribbon(aes(ymin = lower.CL, ymax = upper.CL, fill = ROI),
  173. alpha = 0.15, color = NA) +
  174. scale_color_manual(values = c("#00BFC4", "#F8766D")) +
  175. scale_fill_manual(values = c("#00BFC4", "#F8766D")) +
  176. theme_bw() +
  177. theme(
  178. legend.position = "bottom",
  179. text = element_text(size = 25)
  180. ) +
  181. labs(
  182. x = "Birth weight (gr)",
  183. y = "Linear prediction (mmol x mm)"
  184. ) +
  185. geom_hline(yintercept = 0, linetype = "dashed") +
  186. coord_cartesian(ylim = c(-0.6, 0.6),
  187. xlim = c(2235, 4535)) +
  188. theme(plot.margin = margin(t = 10, r = 20, b = 10, l = 10, "pt")) # Add bottom margin
  189. # show
  190. p_bw
  191. # save file
  192. ggsave("ROIavg_RvsN_HbR_BWxROI.png",
  193. plot = p_bw,
  194. width = 25,
  195. height = 20,
  196. units = "cm",
  197. dpi = 300)
  198. ```

ROIavg_Cond2vs1_HbR.Rmd, no license · at the source

Overview

  1. University of Padua, Department of Developmental Psychology and Socialisation, Padua, Italy
  2. Budapest University of Technology and Economics, Department of Cognitive Science, Budapest, Hungary
  3. Padova Neuroscience Center, Padua, Italy
  4. Université Paris Cité & CNRS, Integrative Neuroscience and Cognition Center, Paris, France
Institutions: University of Padua (Italy)
Journal: Neurophotonics, volume 13, issue 3, article 035001
Dates: received 31 July 2025; accepted 26 May 2026; published online 6 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1117/1.nph.13.3.035001 · PMID 42441174 · PMCID PMC13336347 · OpenAlex W7167516473
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fNIRS (modality), human (organism), developmental (subfield)
Methods: Spectral & time-frequency, Statistics, fMRI & imaging
Keywords: newborns, perinatal physiological measures, prenatal language experience, hemodynamic response, near-infrared spectroscopy
Topic: Infant Development and Preterm Care (Pediatrics, Perinatology and Child Health, Medicine), according to OpenAlex
Funding: National Research Development and Innovation Fund of the Ministry of Culture and Innovation and the Budapest University of Technology and Economics, Doctoral Excellence Fellowship Programme (DCEP) (DKÖP-25-1-BME-15); European Commission (101031716); Ecos-Sud (C20S02); HORIZON EUROPE European Research Council (773202); Agence Nationale de la Recherche (ANR-10-LABX-0083); MUR (R204MPRHKE, PRIN-2022WX3FM5); European Union−Next Generation EU (NRRP M6C2-SYNPHONIA)
Citations: not cited yet (Europe PMC); 56 references in the paper

Abstract

Significance: Language acquisition is a complex process already influenced by prenatal neural development and auditory experiences. From the onset of the third trimester, fetuses perceive sounds already influencing the fetal brain.

Aim: The study investigates how the length of intrauterine language exposure, indexed by gestational age (GA), and overall maturation, indexed by birth weight (BW), affect full-term newborns’ brain responses to linguistic stimuli.

Approach: Data from 14 near-infrared spectroscopy studies testing responses to different auditory sound patterns in 192 0- to 7-day-old newborns were pooled together and analyzed to assess the impact of GA and BW on changes in oxygenated hemoglobin (HbO) and deoxygenated hemoglobin (HbR).

Results: Results showed that, for HbO, activations in both considered conditions were larger in the temporal than in the frontal areas, irrespective of BW or GA. A similar spatial pattern was observed for HbR, with stronger responses in the temporal compared with frontal regions across conditions. In contrast, when considering effect sizes and reflecting discrimination abilities, these were more strongly associated with BW in the bilateral frontal regions, whereas in the bilateral temporal regions, they were more strongly associated with GA.

Conclusions: The findings suggest a differential impact of BW and GA on neural measures of linguistic sensitivity in newborns, reflecting their roles in biological maturation and auditory experience, respectively. Overall, the study suggests that both the length of prenatal experience and maturation play significant roles in shaping newborns’ hemodynamic responses.

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 2 matches between paragraphs and lines of code.

OSF 6mzqp

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (12)
Size: 24 files, 12 scripts
Software Heritage: not checked
Found in: “Code and Data Availability”
Holds: 12 notebooks
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: broom (12 files), car (12 files), emmeans (12 files), ggplot2 (12 files), lme4 (12 files), lmerTest (12 files), psych (12 files), tidyverse (12 files), ggpubr (11 files)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
12 files
At the source: osf.io/6mzqp

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;
  • 12 scripts, each with its path and the digest of its content;
  • 2 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.

Code and Data Availability

The codes used for all statistical analyses reported in this study, along with their results, are available at https://osf.io/6mzqp. The data are available upon reasonable request to the authors.

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, 3 authors, 5 keywords, 7 funders, 54 references.

Cite

This paper

Szeberényi, N. P., Gervain, J., & Gemignani, J. (2026). Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities. Neurophotonics, 13(3), 035001. https://doi.org/10.1117/1.nph.13.3.035001

BibTeX

@article{szeberenyi2026understanding,
author = {Szeberényi, Noémi Petra and Gervain, Judit and Gemignani, Jessica},
title = {{Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities}},
journal = {Neurophotonics},
year = {2026},
month = jul,
volume = {13},
number = {3},
pages = {035001},
publisher = {Society of Photo-Optical Instrumentation Engineers},
issn = {2329-423X},
doi = {10.1117/1.nph.13.3.035001},
url = {https://doi.org/10.1117/1.nph.13.3.035001},
pmid = {42441174},
pmcid = {PMC13336347}
}

RIS

TY - JOUR
AU - Szeberényi, Noémi Petra
AU - Gervain, Judit
AU - Gemignani, Jessica
TI - Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities
T2 - Neurophotonics
J2 - Neurophotonics
PY - 2026
DA - 2026/07/06
VL - 13
IS - 3
SP - 035001
SN - 2329-423X
PB - Society of Photo-Optical Instrumentation Engineers
DO - 10.1117/1.nph.13.3.035001
UR - https://doi.org/10.1117/1.nph.13.3.035001
LA - en
ER -

CSL-JSON

{
"id": "10.1117/1.nph.13.3.035001",
"type": "article-journal",
"title": "Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities",
"container-title": "Neurophotonics",
"author": [
{
"family": "Szeberényi",
"given": "Noémi Petra"
},
{
"family": "Gervain",
"given": "Judit"
},
{
"family": "Gemignani",
"given": "Jessica"
}
],
"container-title-short": "Neurophotonics",
"volume": "13",
"issue": "3",
"page": "035001",
"DOI": "10.1117/1.nph.13.3.035001",
"PMID": "42441174",
"PMCID": "PMC13336347",
"ISSN": "2329-423X",
"publisher": "Society of Photo-Optical Instrumentation Engineers",
"URL": "https://doi.org/10.1117/1.nph.13.3.035001",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
6
]
]
}
}

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.1016/j.dcn.2026.101782 [code]
Do babies perceive cries as speech?
Journal: Developmental cognitive neuroscience
In common: fNIRS, 15 references, author Jessica Gemignani
[2] doi:10.1038/s44271-026-00451-6 [code]
Singing to the newborn brain uncovers early traces of specialized neural networks.
Journal: Communications psychology
In common: 9 references, author Jessica Gemignani
[3] doi:10.1093/braincomms/fcag279 [code]
Network flexibility facilitates treatment-induced recovery in post-stroke aphasia.
Journal: Brain communications
In common: psych, car, broom, 6 other tools
[4] doi:10.1073/pnas.2606871123 [code]
Oxytocin modulates the neurocomputational mechanisms engaged in learning rank relationships in social networks.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: psych, car, broom, 6 other tools
[5] doi:10.1016/j.nicl.2026.104053 [code]
Childhood white matter organization predicts adolescent internalizing problems among youth with and without ADHD.
Journal: NeuroImage. Clinical
In common: psych, broom, emmeans, 5 other tools, developmental
[6] doi:10.1038/s41398-026-04010-9 [code]
Bullying victimization and brain development: a longitudinal structural magnetic resonance imaging study from adolescence to early adulthood.
Journal: Translational psychiatry
In common: psych, broom, emmeans, 5 other tools, developmental
[7] doi:10.1111/desc.70214
Hemodynamic Responses to Word Forms in Japanese Infant-Directed Vocabulary in 5- and 9-Month-Old Infants: Early Sensitivity to Prosodic Structure and Emergence of Prosodic Representations.
Journal: Developmental science
In common: fNIRS, developmental, 6 references
[8] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: psych, car, broom, 5 other tools
[9] 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 one
In common: psych, car, emmeans, 5 other tools
[10] doi:10.1016/j.neuroimage.2026.122115 [code]
Midfrontal theta power relates to response speeding following frustrative nonreward.
Journal: NeuroImage
In common: psych, car, emmeans, 5 other tools

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.

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