This script is used to conduct a EEG session on Stochastic Figure Ground (SFG) and Speech in Noise (SPIN) paradigm using Psychophysics toolbox.
A critical aspect of auditory scene analysis is the ability to extract a sound of relevance (figure) from a background of competing sounds (ground) such as when we hear a speaker in a cafe. This is formally known as auditory figure-ground segregation. This is colloquially known as "cocktail party problem".
Here, I assessed potential clinical electroencephalographic (EEG) measures of central auditory grouping (stochastic figure-ground test) and speech-in-noise perception (speech-in-babble test). Auditory targets were presented within background noise: 16 talker-babble or randomly generated pure-tones in 50% of the trials and composed either a figure (pure-tone frequency chords repeating over time) or speech (English names), while the rest of the trials only had background noise.
If you use this code please cite the following paper:
Xiaoxuan Guo, Pradeep Dheerendra, Ester Benzaquen, William Sedley, Timothy D Griffiths, "EEG responses to auditory figure ground perception", Hearing Research, vol. 422, pp. 108524, 2022
https://www.sciencedirect.com/science/article/pii/S0378595522000934