Neural rhythms as priors of speech computations.
3 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 3 matches
- [1] § Methods › Model description ↔ Arabic/coRNN.py, lines 7 to 46 · score 0.72 · recurrent weight, hidden states, tanh, velocity, bias, activation · block
oscr:b:1BCGESR3N4M2C-H· Report a mismatch - [2] § Methods › Network training ↔ Arabic/task.py, lines 66 to 200 · score 0.58 · cross entropy loss, optimizer, dimension, trained, signal, networks · block
oscr:b:00KADFS3ZW5RW-G· Report a mismatch - [3] § Methods › Network training ↔ English/task.py, lines 66 to 198 · score 0.58 · cross entropy loss, optimizer, dimension, trained, signal, networks · block
oscr:b:EYCF1ZQK9ZTCY-H· 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
Python · 75 lines · 2.2 KB · BSD-3-Clause · 1 match
- from torch import nn
- import torch
- device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
- class coRNNCell(nn.Module):
- def __init__(self, network_type, n_inp, n_hid, dt, gamma, epsilon):
- super(coRNNCell, self).__init__()
- # network parameters
- self.network_type = network_type
- self.dt = dt
- self.gamma = gamma
- self.epsilon = epsilon
- # define activation fxn
- activation = "tanh"
- if activation == "tanh":
- self.activation = nn.Tanh()
- elif activation == "sin":
- self.activation = torch.sin
- else:
- raise NotImplementedError
- # input weights
- self.I_ext = nn.Linear(in_features=n_inp, out_features=n_hid, bias=True)
- # recurrent weights of hidden states
- self.R = nn.Linear(in_features=n_hid, out_features=n_hid, bias=False)
- # recurrent weights of velocity of hidden states
- self.F = nn.Linear(in_features=n_hid, out_features=n_hid, bias=False)
- def forward(self, x, hy, hz):
- # our update equations
- alpha = 1
- activation = self.activation(
- alpha * (self.R(hy) + self.F(hz) + self.I_ext(x))
- )
- hz = hz + self.dt * (activation - self.gamma * hy - self.epsilon * hz)
- hy = hy + self.dt * hz
- return hy, hz, activation
- class coRNN(nn.Module):
- def __init__(self, network_type, n_inp, n_hid, n_out, dt, gamma, epsilon):
- super(coRNN, self).__init__()
- # network parameters
- self.n_hid = n_hid
- self.gamma = gamma
- self.epsilon = epsilon
- self.n_out = n_out
- self.cell = coRNNCell(network_type, n_inp, n_hid, dt, self.gamma, self.epsilon)
- self.readout = nn.Linear(n_hid, n_out)
- def forward(self, x):
- # initialize hidden states
- hy = torch.zeros(x.size(1), self.n_hid, device=device)
- hz = torch.zeros(x.size(1), self.n_hid, device=device)
- # roll the recurrence forward over the full sequence
- for t in range(x.size(0)):
- hy, hz, activation = self.cell(x[t], hy, hz)
- # read out the final hidden state only
- output = self.readout(hy)
- return output
coRNN.py at commit 5f3448d, under BSD-3-Clause · at the source
Overview
- School of Computational Science and Engineering, Georgia Institute of Technology, Atlanta, GA 30332, USA
- Machine Learning Center, Georgia Institute of Technology, Atlanta, GA 30332, USA
Abstract
Endogenous rhythms of auditory neural circuits have a striking resemblance to the temporal modulations of incoming speech signals. Here, we show that these rhythms may serve as priors for speech recognition, encoding knowledge of speech structure in the dynamics of network computations. In a network of coupled oscillators, we find that speech is readily identified when characteristic frequencies of the oscillators match low-frequency circuit rhythms in the auditory cortex. When signal and circuit rhythms are mismatched, speech identification is impaired. Compared to a baseline recurrent neural network without intrinsic oscillations, the coupled oscillatory network has significantly higher performance in speech recognition across languages but not in the recognition of signals that lack speech-like structure, such as urban sounds. Our results suggest a central computational role of brain rhythms in speech processing.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
nandchandravadia/rhythmRNNs_speech
5f3448d85312bdbdc541a3816d19485110b22472, 22 May 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
18 files
- Arabic/
coRNN.py , Python, 75 lines, 1 match - Arabic/
config.py , Python, 52 lines - Arabic/
task.py , Python, 204 lines, 1 match - Arabic/
utils.py , Python, 259 lines - Bengali/
coRNN.py , Python, 75 lines - Bengali/
config.py , Python, 52 lines - Bengali/
task.py , Python, 203 lines - Bengali/
utils.py , Python, 289 lines - English/
coRNN.py , Python, 75 lines - English/
config.py , Python, 40 lines - English/
task.py , Python, 202 lines, 1 match - English/
utils.py , Python, 257 lines - UrbanSounds/
coRNN.py , Python, 75 lines - UrbanSounds/
config.py , Python, 52 lines - UrbanSounds/
task.py , Python, 192 lines - UrbanSounds/
utils.py , Python, 289 lines - LICENSE, License, 28 lines
- README.md, Text, 104 lines
Zenodo 19411357
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 16 scripts, each with its path and the digest of its content;
- 3 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.
Data and code availability
The code to reproduce the results of this study is available as a GitHub repository: https://
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 2, 28 September 2026
- Authors: added Nabil Imam (0000-0003-2143-2286); removed Nabil Imam
- Funding: added National Science Foundation: 2319060, 2223811
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 6 keywords, 59 references.
Cite
This paper
Chandravadia, N., & Imam, N. (2026). Neural rhythms as priors of speech computations. Patterns (New York, N.Y.), 7(8), 101563. https://
BibTeX
@article{chandravadia202
author = {Chandravadia, Nand and Imam, Nabil},
title = {{Neural rhythms as priors of speech computations}},
journal = {Patterns (New York, N.Y.)},
year = {2026},
month = may,
volume = {7},
number = {8},
pages = {101563},
publisher = {Elsevier},
issn = {2666-3899},
doi = {10.1016/
url = {https://
pmid = {42630811},
pmcid = {PMC13494615}
}
RIS
TY - JOUR
AU - Chandravadia, Nand
AU - Imam, Nabil
TI - Neural rhythms as priors of speech computations
T2 - Patterns (New York, N.Y.)
J2 - Patterns (N Y)
PY - 2026
DA - 2026/
VL - 7
IS - 8
SP - 101563
SN - 2666-3899
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Neural rhythms as priors of speech computations",
"container-title": "Patterns (New York, N.Y.)",
"author": [
{
"family": "Chandravadia",
"given": "Nand"
},
{
"family": "Imam",
"given": "Nabil"
}
],
"container-title-short":
"volume": "7",
"issue": "8",
"page": "101563",
"DOI": "10.1016/
"PMID": "42630811",
"PMCID": "PMC13494615",
"ISSN": "2666-3899",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
19
]
]
}
}
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.1126/sciadv.ado8915 [code]
- The human auditory cortex concurrently tracks syllabic and phonemic timescales via acoustic spectral flux.Journal: Science advancesIn common: pandas, 7 references
- [2] doi:10.1126/sciadv.aec6112 [code]
- Dual computational systems in the development and evolution of mammalian brains.Journal: Science advancesIn common: 3 references, author Nabil Imam
- [3] doi:10.1038/s44271-023-00053-6 [code]
- Auditory-motor synchronization and perception suggest partially distinct time scales in speech and music.Journal: Communications psychologyIn common: cognitive, 6 references
- [4] doi:10.1038/s42003-025-09481-y [code]
- Effects of speech periodicity and speech rate on auditory-motor coupling during speech comprehension.Journal: Communications biologyIn common: cognitive, 6 references
- [5] doi:10.1093/cercor/bhae479 [code]
- Concurrent processing of the prosodic hierarchy is supported by cortical entrainment and phase-amplitude coupling.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: pandas, cognitive, 5 references
- [6] doi:10.3758/s13428-025-02747-7 [code]
- Aligning syntactic structure to the dynamics of verbal communication: A pipeline for annotating syntactic phrases onto speech acoustics.Journal: Behavior research methodsIn common: pandas, cognitive, 5 references
- [7] doi:10.1371/journal.pbio.3003924
- Endogenous auditory and motor brain rhythms predict individual speech tracking.Journal: PLoS biologyIn common: cognitive, 5 references
- [8] doi:10.1002/hbm.70199 [code]
- Temporal Structure of Music Improves the Cortical Encoding of Speech.Journal: Human brain mappingIn common: cognitive, 5 references
- [9] doi:10.1371/journal.pbio.3001713
- Neural dynamics differentially encode phrases and sentences during spoken language comprehension.Journal: PLoS biologyIn common: cognitive, 5 references
- [10] doi:10.1162/imag.a.1305
- Can you &
lt;i& gt;feel& lt;/ i& gt; what I am saying? Speech-based vibrotactile stimulation enhances the cortical tracking of attended speech in a multi-talker background. Journal: Imaging neuroscience (Cambridge, Mass.)In common: cognitive, 4 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: 2 repositories of the authors' code, each at its verified commit and with its license, 16 scripts, and 3 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:ee004864c8fe131c…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1016/j.patter.2026.101563)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.patter.2026.101563.svg
:target: https://openscicode.org/badge/doi/10.1016/j.patter.2026.101563
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.patter.2026.101563"><img src="https://openscicode.org/badge/doi/10.1016/j.patter.2026.101563.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
