Brainstem model using Gradient Frequency Neural Network (GrFNN) toolbox.
This repository contains code to use an oscillatory model of the auditory periphery and brainstem. The first two layers of oscillators represent a gradient of center frequencies within the cochlea. The next layer represents the cochlear nucleus, which is the first synapse of the auditory system and already exhibits many interesting nonlinear properties, including mode-locking. The fourth layer of this model represents another important part of the auditory brainstem, the inferior colliculus. This site is known to code for both temporal fine structure and envelope modulation. It is also believed to be an important area for the perception of pitch, as well as a potential generating site of the FFR (frequency-following response) in response to periodic stimuli. These and other aspects of the auditory brainstem are well accounted for in the GrFNN model contained in this repository.
brainstemPaper sets up a four-layer parameterized brainstem network meant to replicate the network used in Lerud et al. (2014) as closely as possible. It should be noted that the GrFNN Toolbox has changed in the past two years to be more mathematically and numerically accurate, and as a result it is no longer possible to obtain exactly the same results as are reported in the paper. In fact the results with the updated toolbox fit the brainstem data better than before. The script
brainstem sets up a four-layer parameterzed brainstem network which is current with the latest cochlea model.
Neither of the brainstem scripts sets up a stimulus itself, so it will be up to the user to create one. However this repository also includes stimuli and scripts to replicate the FFR model from Lerud et al. The relevant user-facing script is
FFRmodel, which reads in either of the two .wav files used in that paper, and sets them up for alternating polarity. Of course the user can replace these stimuli with their own.
brainstemPaper is eventually called as the basis for this FFR model.
Lerud, K. D., Almonte, F. V., Kim, J. C., and Large, E. W. (2014). Mode-locking neurodynamics predict human auditory brainstem responses to musical intervals. Hearing Research, 308, 41–9.