OSCR

Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy.

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

Python · 173 lines · 6.4 KB · no license

  1. import argparse
  2. import os.path
  3. import csv
  4. import ipdb
  5. # the "nap" needs to be greater than or equal to this time in order to be filtered out
  6. NAP_TIME_MIN = '600'
  7. INDEX_PARTICIPANT_ID = 22
  8. INDEX_AGE = 1
  9. INDEX_DURATION = 4 #was a time
  10. INDEX_MEANINGFUL = 9 #was a time
  11. INDEX_DISTANT = 11 #was a time
  12. INDEX_TV = 12 #was a time
  13. INDEX_NOISE = 14 #was a time
  14. INDEX_SILENCE = 15 #was a time
  15. INDEX_AWC_ACTUAL = 5
  16. INDEX_CTC_ACTUAL = 6
  17. INDEX_CVC_ACTUAL = 7
  18. def open_source_file(parser, arg):
  19. if not os.path.exists(arg):
  20. parser.error("The file %s does not exist" % arg)
  21. else:
  22. return open(arg, 'r')
  23. def open_dest_file(parser, arg):
  24. if os.path.exists(arg):
  25. parser.error("The file %s exists already" % arg)
  26. else:
  27. return open(arg, 'w', newline='\r\n')
  28. def write_stats(raw_stats, filtered_stats, stat_file, filtered_line_count):
  29. if (stat_file is not None) and (len(raw_stats) != 0):
  30. stat_file.write(','.join(raw_stats) + '\r\n')
  31. stat_file.write(','.join(filtered_stats) + '\r\n')
  32. print('Processed visit: PARTICIPANT_ID=' + raw_stats[INDEX_PARTICIPANT_ID] + ', AGE=' + raw_stats[INDEX_AGE])
  33. print('Filtered out ' + str(filtered_line_count) + ' lines')
  34. # AWC is 0, CVC is 0, CTC is 0, AND at least 3 of the 5 min are either noise or silence
  35. def line_passes_filter(parsed_list):
  36. noise_or_silence = add_numbers(parsed_list[INDEX_NOISE], parsed_list[INDEX_SILENCE])
  37. return (int(parsed_list[INDEX_AWC_ACTUAL]) != 0) or (int(parsed_list[INDEX_CTC_ACTUAL]) != 0) or (int(parsed_list[INDEX_CVC_ACTUAL]) > 10) or (int(noise_or_silence) < 180)
  38. def add_numbers(number1, number2):
  39. #ipdb.set_trace()
  40. return str(int(number1) + int(number2))
  41. def is_time_gte(time1, time2):
  42. if int(time1 > time2):
  43. return True
  44. if int(time1) < int(time2):
  45. return False
  46. return True
  47. def add_to_stats(parsed_list, stats):
  48. stats[INDEX_DURATION] = add_numbers(stats[INDEX_DURATION], parsed_list[INDEX_DURATION])
  49. stats[INDEX_MEANINGFUL] = add_numbers(stats[INDEX_MEANINGFUL], parsed_list[INDEX_MEANINGFUL])
  50. stats[INDEX_DISTANT] = add_numbers(stats[INDEX_DISTANT], parsed_list[INDEX_DISTANT])
  51. stats[INDEX_TV] = add_numbers(stats[INDEX_TV], parsed_list[INDEX_TV])
  52. stats[INDEX_NOISE] = add_numbers(stats[INDEX_NOISE], parsed_list[INDEX_NOISE])
  53. stats[INDEX_SILENCE] = add_numbers(stats[INDEX_SILENCE], parsed_list[INDEX_SILENCE])
  54. stats[INDEX_AWC_ACTUAL] = add_numbers(stats[INDEX_AWC_ACTUAL], parsed_list[INDEX_AWC_ACTUAL])
  55. stats[INDEX_CTC_ACTUAL] = add_numbers(stats[INDEX_CTC_ACTUAL], parsed_list[INDEX_CTC_ACTUAL])
  56. stats[INDEX_CVC_ACTUAL] = add_numbers(stats[INDEX_CVC_ACTUAL], parsed_list[INDEX_CVC_ACTUAL])
  57. # python cli arguments
  58. parser = argparse.ArgumentParser(description='Remove nap rows from LENA data file.')
  59. parser.add_argument("-s", dest="source_file", required=True,
  60. help="source file", metavar="FILE",
  61. type=lambda x: open_source_file(parser, x))
  62. parser.add_argument("-d", dest="dest_file", required=True,
  63. help="destination file", metavar="FILE",
  64. type=lambda x: open_dest_file(parser, x))
  65. parser.add_argument("-t", dest="stat_file", required=True,
  66. help="stats file", metavar="FILE",
  67. type=lambda x: open_dest_file(parser, x))
  68. args = parser.parse_args()
  69. # write out header
  70. header = next(args.source_file)
  71. args.dest_file.write(header)
  72. args.stat_file.write(header)
  73. # loop through source file
  74. raw_stats = []
  75. filtered_stats = []
  76. visit_count = 0
  77. filtered_line_count = 0
  78. parsed_list = []
  79. nap_raw_lines = []
  80. nap_parsed_lists = []
  81. print('Processing visits...')
  82. for raw_line in args.source_file:
  83. if len(raw_line.strip()) == 0:
  84. continue
  85. parsed_line = csv.reader([raw_line], delimiter=',', quotechar='"')
  86. parsed_list = next(parsed_line)
  87. line_passed = line_passes_filter(parsed_list)
  88. # this line is for a different visit from the previous
  89. is_new_visit = len(raw_stats) == 0 or (raw_stats[INDEX_PARTICIPANT_ID] != parsed_list[INDEX_PARTICIPANT_ID]) or (raw_stats[INDEX_AGE] != parsed_list[INDEX_AGE])
  90. if is_new_visit:
  91. # handle accumulated nap lines
  92. nap_length_accum = '0'
  93. for nap_parsed_list in nap_parsed_lists:
  94. nap_length_accum = add_numbers(nap_length_accum, nap_parsed_list[INDEX_DURATION])
  95. if is_time_gte(nap_length_accum, NAP_TIME_MIN):
  96. filtered_line_count += len(nap_parsed_lists)
  97. else:
  98. for nap_parsed_list in nap_parsed_lists:
  99. add_to_stats(nap_parsed_list, filtered_stats)
  100. for nap_raw_line in nap_raw_lines:
  101. args.dest_file.write(nap_raw_line)
  102. nap_parsed_lists = []
  103. nap_raw_lines = []
  104. # write out stats for the previous visit
  105. write_stats(raw_stats, filtered_stats, args.stat_file, filtered_line_count)
  106. visit_count += 1
  107. # start fresh with the new visit
  108. raw_stats = parsed_list.copy()
  109. filtered_stats = parsed_list.copy()
  110. filtered_line_count = 0
  111. if not line_passed:
  112. nap_parsed_lists.append(parsed_list.copy())
  113. nap_raw_lines.append(raw_line)
  114. filtered_stats[INDEX_DURATION] = '0'
  115. filtered_stats[INDEX_MEANINGFUL] = '0'
  116. filtered_stats[INDEX_DISTANT] = '0'
  117. filtered_stats[INDEX_TV] = '0'
  118. filtered_stats[INDEX_NOISE] = '0'
  119. filtered_stats[INDEX_SILENCE] = '0'
  120. filtered_stats[INDEX_AWC_ACTUAL] = '0'
  121. filtered_stats[INDEX_CTC_ACTUAL] = '0'
  122. filtered_stats[INDEX_CVC_ACTUAL] = '0'
  123. else:
  124. args.dest_file.write(raw_line)
  125. # this line is for the same visit as the previous
  126. else:
  127. add_to_stats(parsed_list, raw_stats)
  128. if line_passed:
  129. # handle accumulated nap lines
  130. nap_length_accum = '0'
  131. for nap_parsed_list in nap_parsed_lists:
  132. nap_length_accum = add_numbers(nap_length_accum, nap_parsed_list[INDEX_DURATION])
  133. if is_time_gte(nap_length_accum, NAP_TIME_MIN):
  134. filtered_line_count += len(nap_parsed_lists)
  135. else:
  136. for nap_parsed_list in nap_parsed_lists:
  137. add_to_stats(nap_parsed_list, filtered_stats)
  138. for nap_raw_line in nap_raw_lines:
  139. args.dest_file.write(nap_raw_line)
  140. nap_parsed_lists = []
  141. nap_raw_lines = []
  142. add_to_stats(parsed_list, filtered_stats)
  143. args.dest_file.write(raw_line)
  144. else:
  145. nap_parsed_lists.append(parsed_list.copy())
  146. nap_raw_lines.append(raw_line)
  147. # process final visit
  148. write_stats(raw_stats, filtered_stats, args.stat_file, filtered_line_count)
  149. print('Processed ' + str(visit_count) + ' visits')

remove_naps_hub_No_IT_sec.py at commit 3ee2e09, no license · at the source

Overview

Authors: Katrina R. Simon1, Belen Azofra Macarron2, Aislinn Sandre3, Melina Amarante4, Sonya V. Troller-Renfree5, Kimberly G. Noble5
ORCID iDs: Katrina R. Simon
  1. Mailman School of Public Health, Columbia University, New York City, New York, USA
  2. Universite Paris Cité, Paris, France
  3. University of Western Ontario, London, Ontario, Canada
  4. Fordham University, New York City, New York, USA
  5. Teachers College, Columbia University, New York City, New York, USA
Institutions: Columbia University (United States); Université Paris Cité (France); Western University (Canada); Fordham University (United States)
Journal: Developmental psychobiology, volume 68, issue 2, article e70128
Dates: published online 1 March 2026; in print March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1002/dev.70128 · PMID 41619203 · PMCID PMC13005931 · OpenAlex W7126465781
Open access: green, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), human (organism), developmental (subfield)
Methods: Smoothing, state filtering, decompositions, Statistics, Preprocessing, Spectral & time-frequency, Evoked potentials, Connectivity
MeSH: Auditory Perception*, Evoked Potentials*, Evoked Potentials, Auditory*, Home Environment*, Language Development*, Noise*, Social Class*, Electroencephalography, Female, Humans, Infant, Longitudinal Studies, Male, Socioeconomic Disparities in Health (* major topic)
Topic: Neuroscience and Music Perception (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Canadian Institutes of Health Research Fellowship (187925); NICHD NIH HHS (R00 HD104923, K99 HD104923, R01 HD093707); Eunice Kennedy Shriver National Institute of Child Health and Human Development (R01HD093707, R00HD10492, K99HD104923)
Citations: not cited yet (Europe PMC); 87 references in the paper

Abstract

Socioeconomic resources have long been associated with children’s language development. Several proximal factors have been suggested as candidate mechanisms underlying socioeconomic disparities in language development, including differences in the home language environment and home noise levels. These experiences may in part shape auditory discrimination skills, a key component of language comprehension. To index early auditory discrimination, researchers measured brain function in relation to the detection of different sounds with an event-related potential (ERP) called the mismatch response (MMR). The current study aimed to examine associations among socioeconomic circumstances, the home language environment, home noise exposure, and the MMR in a socioeconomically, racially, and ethnically diverse longitudinal sample of 6- and 12-month-old infants. Socioeconomic circumstances were measured prenatally via parent report. The home language environment and home noise levels were measured using digital language processing devices when infants were approximately 6 months of age. The MMR was elicited during a passive auditory oddball task at two timepoints—6 and 12 months of age. Results showed that neither SES, the home language environment, nor home noise levels predicted infant MMR at either age. These findings add to a growing body of literature examining the role of distal and proximal factors in shaping infant brain activity related to language 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.

trollerrenfr/LENA_Scripts

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 3ee2e09f87e797c2a3c7d03941ae290addc18b13, 31 March 2022
Languages: Python (3)
Size: 3 files, 3 scripts
Software Heritage: not archived
Found in: the text, “Home Language Environment”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
3 files

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

The data that support the findings of this study are available from the corresponding author, KGN, upon reasonable request.

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, 6 authors, 14 MeSH terms, 3 funders, 74 references.

Cite

This paper

Simon, K. R., Macarron, B. A., Sandre, A., Amarante, M., Troller-Renfree, S. V., & Noble, K. G. (2026). Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy. Developmental psychobiology, 68(2), e70128. https://doi.org/10.1002/dev.70128

BibTeX

@article{simon2026socioeconomic,
author = {Simon, Katrina R. and Macarron, Belen Azofra and Sandre, Aislinn and Amarante, Melina and Troller-Renfree, Sonya V. and Noble, Kimberly G.},
title = {{Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy}},
journal = {Developmental psychobiology},
year = {2026},
month = mar,
volume = {68},
number = {2},
pages = {e70128},
publisher = {Wiley},
issn = {0012-1630},
doi = {10.1002/dev.70128},
url = {https://doi.org/10.1002/dev.70128},
pmid = {41619203},
pmcid = {PMC13005931}
}

RIS

TY - JOUR
AU - Simon, Katrina R.
AU - Macarron, Belen Azofra
AU - Sandre, Aislinn
AU - Amarante, Melina
AU - Troller-Renfree, Sonya V.
AU - Noble, Kimberly G.
TI - Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy
T2 - Developmental psychobiology
J2 - Dev Psychobiol
PY - 2026
DA - 2026/03/01
VL - 68
IS - 2
SP - e70128
SN - 0012-1630
PB - Wiley
DO - 10.1002/dev.70128
UR - https://doi.org/10.1002/dev.70128
LA - en
ER -

CSL-JSON

{
"id": "10.1002/dev.70128",
"type": "article-journal",
"title": "Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy",
"container-title": "Developmental psychobiology",
"author": [
{
"family": "Simon",
"given": "Katrina R."
},
{
"family": "Macarron",
"given": "Belen Azofra"
},
{
"family": "Sandre",
"given": "Aislinn"
},
{
"family": "Amarante",
"given": "Melina"
},
{
"family": "Troller-Renfree",
"given": "Sonya V."
},
{
"family": "Noble",
"given": "Kimberly G."
}
],
"container-title-short": "Dev Psychobiol",
"volume": "68",
"issue": "2",
"page": "e70128",
"DOI": "10.1002/dev.70128",
"PMID": "41619203",
"PMCID": "PMC13005931",
"ISSN": "0012-1630",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/dev.70128",
"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.1016/j.dcn.2026.101727 [code]
Neonatal brain activity across sleep states: Evidence from resting EEG and auditory event-related potentials.
Journal: Developmental cognitive neuroscience
In common: developmental, EEG, 6 references, author Katrina R Simon
[2] doi:10.1016/j.dcn.2026.101741
Pediatric resting EEG collection, preprocessing, and analysis: A systematic review.
Journal: Developmental cognitive neuroscience
In common: developmental, EEG, 6 references
[3] doi:10.1111/ejn.70503
Modulation of Predictive Coding in Auditory Paradigms of Varying Complexity in Children With Developmental Language Disorder.
Journal: The European journal of neuroscience
In common: EEG, 6 references
[4] doi:10.3758/s13423-026-02911-w
This sounds important: Electrophysiological responses reveal a dedicated learning mechanism to process salient consonant sounds in human newborns.
Journal: Psychonomic bulletin & review
In common: developmental, EEG, 4 references
[5] doi:
Tutorial on using EEG microstates to study moment-to-moment large-scale functional brain network dynamics in neurodevelopment
Journal: Frontiers in neuroscience
In common: developmental, EEG, 3 references
[6] doi:10.3389/fneur.2026.1791834 [code]
Minimum data requirements and automated preprocessing for reliable EEG biomarkers in Rett syndrome.
Journal: Frontiers in neurology
In common: EEG, 3 references
[7] doi:10.1038/s41539-026-00419-5 [code]
Home numeracy experiences are associated with number-related brain activity and connectivity in early childhood.
Journal: NPJ science of learning
In common: developmental, 2 references
[8] doi:10.1073/pnas.2538139123
Cognition does not automatically influence perception: Evidence from neural encoding of colors belonging to different categories.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: EEG, 3 references
[9] doi:10.1111/ejn.70490
Analysis of Task Demand Effects on Visual and Auditory Mismatch Negativity (MMN) Across Autistic and Schizotypal Traits.
Journal: The European journal of neuroscience
In common: EEG, 3 references
[10] doi:10.7554/elife.107088 [code]
Development of auditory and spontaneous movement responses to music over the first postnatal year.
Journal: eLife
In common: developmental, EEG, 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.