OSCR

Evidence of Top-Down Sensory Prediction in Neonates Within 2 Days of Birth.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 154 lines · 7 KB · no license

  1. library(dplyr)
  2. library(reshape)
  3. library(ggplot2)
  4. library(gridExtra)
  5. library(grid)
  6. library(RColorBrewer)
  7. library(ggpattern)
  8. library(lsr)
  9. ## Experiment 1 data
  10. Main <- read.csv("Expt1_anonymized.csv", stringsAsFactors = F)
  11. Main <- filter(Main, HRF != "HbT")
  12. Main$Condition <- sub("SinglePresent", "sA+V+: short Audio-visual block", Main$Condition)
  13. Main$Condition <- sub("SingleOmitted", "A+V-: Visual absent block", Main$Condition)
  14. Main$Condition <- sub("TestBlock", "A+V+: Audio-visual block", Main$Condition)
  15. Main$Condition <- factor(Main$Condition,
  16. levels = c("A+V+: Audio-visual block",
  17. "A+V-: Visual absent block",
  18. "sA+V+: short Audio-visual block"))
  19. ## analysis
  20. ## t-tests
  21. Agg <- cast(Main, anonymizedName + Condition + HRF ~., mean, value = "Signal", subset = Time > 0 & Time <= 40)
  22. names(Agg)[4] <- "Signal"
  23. by(Agg, list(Agg$Condition, Agg$HRF), function(x){t.test(x$Signal, mu = 0)})
  24. # Cohen's d
  25. by(Agg, list(Agg$Condition, Agg$HRF), function(x){cohensD(x$Signal, mu = 0)})
  26. by(Agg, list(Agg$HRF), function(x){t.test(x[x$Condition == "A+V-: Visual absent block",]$Signal,
  27. x[x$Condition == "sA+V+: short Audio-visual block",]$Signal, paired = T)})
  28. # Cohen's d
  29. by(Agg, list(Agg$HRF), function(x){cohensD(x[x$Condition == "A+V-: Visual absent block",]$Signal,
  30. x[x$Condition == "sA+V+: short Audio-visual block",]$Signal, method = "paired")})
  31. by(Agg, list(Agg$HRF), function(x){t.test(x[x$Condition == "A+V+: Audio-visual block",]$Signal,
  32. x[x$Condition == "sA+V+: short Audio-visual block",]$Signal, paired = T)})
  33. # Cohen's d
  34. by(Agg, list(Agg$HRF), function(x){cohensD(x[x$Condition == "A+V+: Audio-visual block",]$Signal,
  35. x[x$Condition == "sA+V+: short Audio-visual block",]$Signal, method = "paired")})
  36. by(Agg, list(Agg$HRF), function(x){t.test(x[x$Condition == "A+V+: Audio-visual block",]$Signal,
  37. x[x$Condition == "A+V-: Visual absent block",]$Signal, paired = T)})
  38. # Cohen's d
  39. by(Agg, list(Agg$HRF), function(x){cohensD(x[x$Condition == "A+V+: Audio-visual block",]$Signal,
  40. x[x$Condition == "A+V-: Visual absent block",]$Signal, method = "paired")})
  41. ## figure
  42. myColors <- brewer.pal(6, "Set1")[c(1, 2, 4)]
  43. Agg <- cast(Main, Condition + Time + HRF ~., mean_se, value = "Signal")
  44. theme_set(theme_bw() + theme(axis.title = element_text(family = "Times"),
  45. axis.text = element_text(family = "Times"),
  46. strip.text = element_text(family = "Times"),
  47. legend.text = element_text(family = "Times")))
  48. # time series chart
  49. TimeSeries <- ggplot(Agg[Agg$Time <= 40, ], aes(Time, y, color = Condition, linetype = HRF)) +
  50. geom_abline(slope = 0, intercept = 0, linetype = 1, linewidth = .5) +
  51. geom_abline(slope = 90, intercept = 0, linetype = 1, linewidth = .5) + geom_line() +
  52. scale_x_continuous("Time (s)", expand = c(0, 0)) +
  53. scale_y_continuous("Changes of Hemoglobin Concentration (Mm mm)\nin Occipital Channels",
  54. limits = c(-.0015, .0018), expand = c(0, 0),
  55. labels = function(x) format(x, scientific = TRUE)) +
  56. scale_colour_manual(values = myColors) +
  57. scale_linetype_discrete() +
  58. guides(col="none") +
  59. facet_wrap("Condition", nrow = 3, strip.position = "top") +
  60. theme(axis.text.x = element_text(color = "black", size = 6),
  61. axis.text.y = element_text(color = "black", size = 6),
  62. axis.title = element_text(color = "black", size = 8, face = "bold")) +
  63. theme(panel.grid.minor = element_blank(),
  64. panel.grid.major.x = element_blank()) +
  65. theme(
  66. legend.position = c(.85, .78),
  67. legend.title = element_blank(),
  68. legend.box.just = "left",
  69. legend.direction="vertical",
  70. legend.text = element_text(color = "black", size = 6, face = "bold"),
  71. legend.key.width= unit(1, 'cm'),
  72. legend.key.height= unit(0.2, 'cm'),
  73. legend.key = element_rect(fill = "transparent", colour = "transparent"),
  74. legend.background = element_rect(fill = "transparent", colour = "transparent")) +
  75. theme(strip.text = element_text(color = "white",
  76. face = "bold", size = 6, hjust = 0, margin = margin(.03, 0, .03, 0.2, "cm")),
  77. strip.background = element_rect(color = "black", fill = "black"))
  78. # bar chart
  79. Agg <- cast(Main, anonymizedName + Condition + HRF ~., mean, value = "Signal", subset = Time > 0 & Time <= 40)
  80. Agg <- cast(Agg, Condition + HRF ~., mean_se, value = "(all)")
  81. bracket <- cast(Agg, HRF + Condition ~., max, value = "ymax")
  82. bracket <- bracket[c(2), ]
  83. bracket <- rbind(bracket, bracket, bracket, bracket)
  84. bracket$X <- c(2, 2, 3, 3)
  85. bracket$Y <- rep(c(.00008, .00008 + .00005, .00008 + .00005, .00008), 1)
  86. bracket$Y <- bracket$`(all)` + bracket$Y
  87. bracket1 <- bracket[1:4,]
  88. bracket1$HRF <- "HbO"
  89. Sig <- cast(Agg, Condition + HRF ~., max, value = "ymax")
  90. Sig$`(all)` <- Sig$`(all)` + .000165
  91. Sig$asterisk <- rep(c("*", ""), 3)
  92. Sig$x <- rep(1:3, each = 2)
  93. Sig[5,]$x <- 2.5
  94. Sig[5,]$`(all)` <- max(Sig$`(all)`) + .00003
  95. BarChart <- ggplot(Agg, aes(x = Condition, y = y, fill = Condition)) +
  96. geom_bar(stat = "identity", width = .7, position='dodge') +
  97. geom_errorbar(aes(ymin = ymin, ymax = ymax), width = .3, size = 0.4) +
  98. geom_text(aes(label = asterisk, x = x, y = `(all)`), size = 6, data = Sig) +
  99. geom_path(data = bracket1, aes(x = X, y = Y), size = .4) +
  100. scale_x_discrete("", labels = c("A+V+", "A+V-", "sA+V+")) +
  101. scale_y_continuous("Changes of Hemoglobin Concentration (Mm mm)\n in Occipital Channels", limits = c(-.0006, .0013),
  102. labels = function(x) format(x, scientific = TRUE)) +
  103. scale_fill_manual(values= myColors) +
  104. scale_linetype() +
  105. geom_abline(slope = 0, intercept = 0, linetype = 1, size = .5) +
  106. facet_grid(.~HRF) +
  107. theme(axis.text.y = element_text(color = "black", size = 6),
  108. axis.title = element_text(color = "black", size = 8, face = "bold"),
  109. axis.text.x = element_text(color = "black", face = "bold", size = 6, angle = 30)) +
  110. theme(panel.grid.minor = element_line(color = "white"),
  111. panel.grid.major = element_line(color = "white")) +
  112. theme(legend.position = "none",
  113. legend.title = element_blank(),
  114. legend.justification = c("left", "top"),
  115. legend.box.just = "left",
  116. legend.direction="vertical",
  117. legend.text = element_text(color = "black", size = 6, face = "bold"),
  118. legend.key.size = unit(2, "mm"),
  119. legend.background = element_rect(fill = "transparent", colour = "transparent"))+
  120. theme(strip.text = element_text(color = "white",
  121. face = "bold", size = 6),
  122. strip.background = element_rect(color = "black", fill = "black"))
  123. quartz("", 6.4, 3)
  124. Ml <- grid.arrange(TimeSeries, BarChart, widths = c(4, 2.4), ncol = 2)
  125. ggsave("Results_Expt1_hbobhr.pdf", Ml, dpi = 300)

Expt1_analysis.R, no license · at the source

Overview

Authors: Naiqi G Xiao1,2, Claire E Robertson2,3, Lauren L Emberson2,4
ORCID iDs: Naiqi G Xiao
  1. Department of Psychology, Neuroscience & Behaviour, McMaster University, Hamilton, Ontario, Canada
  2. Department of Psychology, Princeton University, Princeton, New Jersey, USA
  3. Department of Psychology, Colby College, Waterville, Maine, USA
  4. Department of Psychology, the University of British Columbia, Vancouver, British Columbia, Canada
Institutions: Princeton University (United States); McMaster University (Canada); Colby College (United States); University of British Columbia (Canada)
Journal: Developmental science, volume 29, issue 2, article e70114
Dates: received 13 December 2024; accepted 5 December 2025; published online 30 December 2025; in print March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1111/desc.70114 · PMID 41467615 · PMCID PMC12750968 · OpenAlex W7117529890
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fNIRS (modality), human (organism), developmental (subfield)
MeSH: Auditory Perception*, Occipital Lobe*, Visual Perception*, Acoustic Stimulation, Female, Humans, Infant, Newborn, Learning, Male, Photic Stimulation, Spectroscopy, Near-Infrared (* major topic)
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIH HHS (R00 4R00HD076166-02); Foundation for the National Institutes of Health; James S. McDonnell Foundation (220020505); National Institutes of Health (R00 4R00HD076166‐02); NICHD NIH HHS (R00 HD076166); Natural Sciences and Engineering Research Council of Canada (RGPIN-2020-07129, RGPIN‐2020‐07129); McDonnell Foundation (220020505)
Citations: not cited yet (Europe PMC); 64 references in the paper

Abstract

Recent studies have demonstrated top‐down modulation in perceptual cortices in infants as young as 6 months. However, it is unclear when and how this ability emerges given conflicting evidence available. This study investigates top‐down perceptual modulation by focusing on a neural signature referred to as top‐down sensory prediction, where the prediction of upcoming sensory information is exhibited in the modulation of activity in perceptual cortices. We extended a paradigm previously used to identify top‐down sensory prediction in 6‐month‐old infants to neonates. Using functional near‐infrared spectroscopy (fNIRS), we monitored occipital lobe activity in sleeping neonates held by their caregivers. The study consisted of a Learning session, where neonates were exposed to a novel auditory‐visual stimulus combination (A+V+), followed by sessions presenting occasional visual stimulus omissions (A+V−). Results showed that fNIRS channels over the occipital lobe, which were active during the Learning session, also responded to the unexpected visual omissions, indicating neonatal brains’ capability for top‐down sensory prediction. Experiment 2 confirmed that this response depended on learning the audiovisual association, ruling out non‐specific mechanisms such as heightened arousal or an increase in the visual response when a non‐specific auditory stimulus is presented. These findings offer the first evidence of top‐down modulation of visual responses in neonates, suggesting this capacity exists at birth, significantly earlier than previously thought. This study suggests that top‐down predictive processing is crucial for early perceptual and cognitive development.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

OSF zvgue

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: R (3)
Size: 5 files, 3 scripts
Software Heritage: not checked
Found in: “Data Availability Statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: reshape2 (3 files), tidyverse (3 files), ggplot2 (2 files)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
3 files
At the source: osf.io/zvgue/

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;
  • 3 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 Statement

Anonymized fNIRS data and corresponding analysis scripts can be found on the OSF website (https://osf.io/zvgue/). These data and scripts will be accessible for anyone.

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, 11 MeSH terms, 7 funders, 64 references.

Cite

This paper

Xiao, N. G., Robertson, C. E., & Emberson, L. L. (2026). Evidence of Top-Down Sensory Prediction in Neonates Within 2 Days of Birth. Developmental science, 29(2), e70114. https://doi.org/10.1111/desc.70114

BibTeX

@article{xiao2026evidence,
author = {Xiao, Naiqi G and Robertson, Claire E and Emberson, Lauren L},
title = {{Evidence of Top-Down Sensory Prediction in Neonates Within 2 Days of Birth}},
journal = {Developmental science},
year = {2026},
month = mar,
volume = {29},
number = {2},
pages = {e70114},
publisher = {Wiley},
issn = {1363-755X},
doi = {10.1111/desc.70114},
url = {https://doi.org/10.1111/desc.70114},
pmid = {41467615},
pmcid = {PMC12750968}
}

RIS

TY - JOUR
AU - Xiao, Naiqi G
AU - Robertson, Claire E
AU - Emberson, Lauren L
TI - Evidence of Top-Down Sensory Prediction in Neonates Within 2 Days of Birth
T2 - Developmental science
J2 - Dev Sci
PY - 2026
DA - 2026/03/01
VL - 29
IS - 2
SP - e70114
SN - 1363-755X
PB - Wiley
DO - 10.1111/desc.70114
UR - https://doi.org/10.1111/desc.70114
LA - en
ER -

CSL-JSON

{
"id": "10.1111/desc.70114",
"type": "article-journal",
"title": "Evidence of Top-Down Sensory Prediction in Neonates Within 2 Days of Birth",
"container-title": "Developmental science",
"author": [
{
"family": "Xiao",
"given": "Naiqi G"
},
{
"family": "Robertson",
"given": "Claire E"
},
{
"family": "Emberson",
"given": "Lauren L"
}
],
"container-title-short": "Dev Sci",
"volume": "29",
"issue": "2",
"page": "e70114",
"DOI": "10.1111/desc.70114",
"PMID": "41467615",
"PMCID": "PMC12750968",
"ISSN": "1363-755X",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/desc.70114",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
1
]
]
}
}

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.1117/1.nph.13.3.035001 [code]
Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities.
Journal: Neurophotonics
In common: ggplot2, tidyverse, fNIRS, developmental, 4 references
[2] doi:10.7554/elife.107088 [code]
Development of auditory and spontaneous movement responses to music over the first postnatal year.
Journal: eLife
In common: reshape2, ggplot2, tidyverse, developmental, 2 references
[3] doi:10.1117/1.nph.13.3.035006 [code]
Characterizing developmental changes in infant habituation using functional change point detection.
Journal: Neurophotonics
In common: fNIRS, developmental, 4 references
[4] doi:10.1038/s41467-026-71415-x [code]
Regional BOLD variability reflects microstructural maturation and neuronal ensheathment in the preterm infant cortex.
Journal: Nature communications
In common: reshape2, ggplot2, tidyverse, developmental, 2 references
[5] 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, 3 references
[6] doi:10.1371/journal.pone.0357956 [code]
Early electrophysiological responses reflect precision-weighted prediction errors to face features.
Journal: PloS one
In common: 4 references
[7] doi:10.1162/imag.a.1161
The infant brain rapidly entrains to visual statistical regularities during stimulus exposure.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 3 references
[8] doi:10.1523/jneurosci.0889-25.2026 [code]
Neural Evidence for Action-Related Somatosensory Predictions.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: 3 references
[9] doi:10.1038/s41593-026-02345-6 [code]
Human hippocampal ripples tune cortical responses based on predicted uncertainty.
Journal: Nature neuroscience
In common: tidyverse, 3 references
[10] doi:10.1371/journal.pone.0358044 [code]
An exploratory fNIRS study on directional asymmetry in segmental discrimination: Lateral-rhotic (/la-ra/) and labial-dorsal (/ba-ga/) contrasts tested in 5- and 9-month-old Japanese infants.
Journal: PloS one
In common: fNIRS, developmental, 2 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.

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.