Socioeconomic Status, the Home Language Environment, Noise Exposure, and the Mismatch Response in Infancy.
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
- import argparse
- import os.path
- import csv
- import ipdb
- # the "nap" needs to be greater than or equal to this time in order to be filtered out
- NAP_TIME_MIN = '600'
- INDEX_PARTICIPANT_ID = 22
- INDEX_AGE = 1
- INDEX_DURATION = 4 #was a time
- INDEX_MEANINGFUL = 9 #was a time
- INDEX_DISTANT = 11 #was a time
- INDEX_TV = 12 #was a time
- INDEX_NOISE = 14 #was a time
- INDEX_SILENCE = 15 #was a time
- INDEX_AWC_ACTUAL = 5
- INDEX_CTC_ACTUAL = 6
- INDEX_CVC_ACTUAL = 7
- def open_source_file(parser, arg):
- if not os.path.exists(arg):
- parser.error("The file %s does not exist" % arg)
- else:
- return open(arg, 'r')
- def open_dest_file(parser, arg):
- if os.path.exists(arg):
- parser.error("The file %s exists already" % arg)
- else:
- return open(arg, 'w', newline='\r\n')
- def write_stats(raw_stats, filtered_stats, stat_file, filtered_line_count):
- if (stat_file is not None) and (len(raw_stats) != 0):
- stat_file.write(','.join(raw_stats) + '\r\n')
- stat_file.write(','.join(filtered_stats) + '\r\n')
- print('Processed visit: PARTICIPANT_ID=' + raw_stats[INDEX_PARTICIPANT_ID] + ', AGE=' + raw_stats[INDEX_AGE])
- print('Filtered out ' + str(filtered_line_count) + ' lines')
- # AWC is 0, CVC is 0, CTC is 0, AND at least 3 of the 5 min are either noise or silence
- def line_passes_filter(parsed_list):
- noise_or_silence = add_numbers(parsed_list[INDEX_NOISE], parsed_list[INDEX_SILENCE])
- 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)
- def add_numbers(number1, number2):
- #ipdb.set_trace()
- return str(int(number1) + int(number2))
- def is_time_gte(time1, time2):
- if int(time1 > time2):
- return True
- if int(time1) < int(time2):
- return False
- return True
- def add_to_stats(parsed_list, stats):
- stats[INDEX_DURATION] = add_numbers(stats[INDEX_DURATION], parsed_list[INDEX_DURATION])
- stats[INDEX_MEANINGFUL] = add_numbers(stats[INDEX_MEANINGFUL], parsed_list[INDEX_MEANINGFUL])
- stats[INDEX_DISTANT] = add_numbers(stats[INDEX_DISTANT], parsed_list[INDEX_DISTANT])
- stats[INDEX_TV] = add_numbers(stats[INDEX_TV], parsed_list[INDEX_TV])
- stats[INDEX_NOISE] = add_numbers(stats[INDEX_NOISE], parsed_list[INDEX_NOISE])
- stats[INDEX_SILENCE] = add_numbers(stats[INDEX_SILENCE], parsed_list[INDEX_SILENCE])
- stats[INDEX_AWC_ACTUAL] = add_numbers(stats[INDEX_AWC_ACTUAL], parsed_list[INDEX_AWC_ACTUAL])
- stats[INDEX_CTC_ACTUAL] = add_numbers(stats[INDEX_CTC_ACTUAL], parsed_list[INDEX_CTC_ACTUAL])
- stats[INDEX_CVC_ACTUAL] = add_numbers(stats[INDEX_CVC_ACTUAL], parsed_list[INDEX_CVC_ACTUAL])
- # python cli arguments
- parser = argparse.ArgumentParser(description='Remove nap rows from LENA data file.')
- parser.add_argument("-s", dest="source_file", required=True,
- help="source file", metavar="FILE",
- type=lambda x: open_source_file(parser, x))
- parser.add_argument("-d", dest="dest_file", required=True,
- help="destination file", metavar="FILE",
- type=lambda x: open_dest_file(parser, x))
- parser.add_argument("-t", dest="stat_file", required=True,
- help="stats file", metavar="FILE",
- type=lambda x: open_dest_file(parser, x))
- args = parser.parse_args()
- # write out header
- header = next(args.source_file)
- args.dest_file.write(header)
- args.stat_file.write(header)
- # loop through source file
- raw_stats = []
- filtered_stats = []
- visit_count = 0
- filtered_line_count = 0
- parsed_list = []
- nap_raw_lines = []
- nap_parsed_lists = []
- print('Processing visits...')
- for raw_line in args.source_file:
- if len(raw_line.strip()) == 0:
- continue
- parsed_line = csv.reader([raw_line], delimiter=',', quotechar='"')
- parsed_list = next(parsed_line)
- line_passed = line_passes_filter(parsed_list)
- # this line is for a different visit from the previous
- 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])
- if is_new_visit:
- # handle accumulated nap lines
- nap_length_accum = '0'
- for nap_parsed_list in nap_parsed_lists:
- nap_length_accum = add_numbers(nap_length_accum, nap_parsed_list[INDEX_DURATION])
- if is_time_gte(nap_length_accum, NAP_TIME_MIN):
- filtered_line_count += len(nap_parsed_lists)
- else:
- for nap_parsed_list in nap_parsed_lists:
- add_to_stats(nap_parsed_list, filtered_stats)
- for nap_raw_line in nap_raw_lines:
- args.dest_file.write(nap_raw_line)
- nap_parsed_lists = []
- nap_raw_lines = []
- # write out stats for the previous visit
- write_stats(raw_stats, filtered_stats, args.stat_file, filtered_line_count)
- visit_count += 1
- # start fresh with the new visit
- raw_stats = parsed_list.copy()
- filtered_stats = parsed_list.copy()
- filtered_line_count = 0
- if not line_passed:
- nap_parsed_lists.append(parsed_list.copy())
- nap_raw_lines.append(raw_line)
- filtered_stats[INDEX_DURATION] = '0'
- filtered_stats[INDEX_MEANINGFUL] = '0'
- filtered_stats[INDEX_DISTANT] = '0'
- filtered_stats[INDEX_TV] = '0'
- filtered_stats[INDEX_NOISE] = '0'
- filtered_stats[INDEX_SILENCE] = '0'
- filtered_stats[INDEX_AWC_ACTUAL] = '0'
- filtered_stats[INDEX_CTC_ACTUAL] = '0'
- filtered_stats[INDEX_CVC_ACTUAL] = '0'
- else:
- args.dest_file.write(raw_line)
- # this line is for the same visit as the previous
- else:
- add_to_stats(parsed_list, raw_stats)
- if line_passed:
- # handle accumulated nap lines
- nap_length_accum = '0'
- for nap_parsed_list in nap_parsed_lists:
- nap_length_accum = add_numbers(nap_length_accum, nap_parsed_list[INDEX_DURATION])
- if is_time_gte(nap_length_accum, NAP_TIME_MIN):
- filtered_line_count += len(nap_parsed_lists)
- else:
- for nap_parsed_list in nap_parsed_lists:
- add_to_stats(nap_parsed_list, filtered_stats)
- for nap_raw_line in nap_raw_lines:
- args.dest_file.write(nap_raw_line)
- nap_parsed_lists = []
- nap_raw_lines = []
- add_to_stats(parsed_list, filtered_stats)
- args.dest_file.write(raw_line)
- else:
- nap_parsed_lists.append(parsed_list.copy())
- nap_raw_lines.append(raw_line)
- # process final visit
- write_stats(raw_stats, filtered_stats, args.stat_file, filtered_line_count)
- print('Processed ' + str(visit_count) + ' visits')
remove_naps_hub_No_IT_sec.py at commit 3ee2e09, no license · at the source
Overview
- Mailman School of Public Health, Columbia University, New York City, New York, USA
- Universite Paris Cité, Paris, France
- University of Western Ontario, London, Ontario, Canada
- Fordham University, New York City, New York, USA
- Teachers College, Columbia University, New York City, New York, USA
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
3ee2e09f87e797c2a3c7d03941ae290addc18b13, 31 March 2022Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
3 files
- remove_naps_hub_No_IT_se
c.py , Python, 173 lines - remove_naps_hub_has_IT_s
ec.py , Python, 171 lines - remove_naps_pro.py, Python, 205 lines
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://
BibTeX
@article{simon2026socioe
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/
url = {https://
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/
VL - 68
IS - 2
SP - e70128
SN - 0012-1630
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"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":
"volume": "68",
"issue": "2",
"page": "e70128",
"DOI": "10.1002/
"PMID": "41619203",
"PMCID": "PMC13005931",
"ISSN": "0012-1630",
"publisher": "Wiley",
"URL": "https://
"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 neuroscienceIn 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 neuroscienceIn 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 neuroscienceIn 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 & reviewIn common: developmental, EEG, 4 references
- [5] doi:
- Tutorial on using EEG microstates to study moment-to-moment large-scale functional brain network dynamics in neurodevelopmentJournal: Frontiers in neuroscienceIn 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 neurologyIn 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 learningIn 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 AmericaIn 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 neuroscienceIn 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: eLifeIn 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.
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, 3 scripts, and 0 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:b4f9b22c1b72130e…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
